/* Styles are scoped to the AI launcher and learning-support dialog. */
.lh-launch,.lh-dialog,.lh-reader-launch{box-sizing:border-box;font-family:var(--jp,'BIZ UDPGothic',sans-serif);letter-spacing:normal}
.lh-launch{position:fixed;right:18px;bottom:calc(14px + var(--lh-offset,0px) + env(safe-area-inset-bottom));z-index:45;display:flex;align-items:center;gap:10px;min-height:62px;padding:16px 34px;border:1px solid #e4b843;border-radius:999px;background:#f4c64e;color:#39291c;font-size:16px;font-weight:700;line-height:1.4;box-shadow:0 5px 18px #442a1a26;cursor:pointer}
.lh-launch::before{content:'';flex:none;width:28px;height:28px;background:currentColor;mask:var(--lh-sparkle) center/contain no-repeat}
.learning-has-launcher body::after{content:'';display:block;height:92px;pointer-events:none}
.lh-dialog{--lh-paper:#fff8e5;--lh-muted:#756956;--lh-line:#e8ddc5;--lh-ink:#39291c;inset:auto 16px 16px auto;width:min(620px,calc(100vw - 32px));height:min(820px,90dvh);max-width:100vw;max-height:100dvh;margin:0;padding:0;overflow:hidden;border:1px solid var(--lh-line);border-radius:24px;background:var(--lh-paper);color:var(--lh-ink);box-shadow:0 15px 70px #1d211a30;font-size:15px;line-height:1.65;text-align:left}
.lh-dialog[open]{display:grid;grid-template: auto auto minmax(0,1fr) / minmax(0,1fr)}
.lh-dialog::backdrop{background:#1a211b66}
.lh-dialog *{box-sizing:border-box;min-width:0;max-width:100%;text-shadow:none}
.lh-dialog [hidden]{display:none!important}
.lh-dialog h2,.lh-dialog h3,.lh-dialog h4{border:0;background:none;color:inherit;font-weight:700;line-height:1.5;padding:0;margin:0 0 12px;clear:none}
.lh-dialog h2{font-size:21px;margin:0}.lh-dialog h3{font-size:21px}.lh-dialog h4{font-size:16px}
.lh-dialog p{margin:10px 0;overflow-wrap:anywhere;white-space:pre-wrap}
.lh-dialog button,.lh-dialog input,.lh-dialog textarea{font:inherit;line-height:1.5;color:inherit}
.lh-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 22px;border-bottom:1px solid var(--lh-line)}
.lh-eyebrow{font-size:11px;color:#813f28;font-weight:700;letter-spacing:.08em}
.lh-dialog .lh-close{border:1px solid var(--lh-line);background:var(--lh-paper);border-radius:10px;min-height:42px;padding:8px 13px;font-size:13px;cursor:pointer}
.lh-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 14px;gap:6px;border-bottom:1px solid var(--lh-line)}
.lh-dialog .lh-tab{padding:9px 4px;border:0;border-radius:10px;background:none;font-size:12px;font-weight:700;cursor:pointer;min-height:42px}
.lh-dialog .lh-tab[aria-current=true]{background:#f9e9b6;color:#654713}
.lh-content{overflow:auto;overscroll-behavior:contain;padding:24px;min-height:0;scrollbar-gutter:stable}
.lh-intro{font-size:17px;font-weight:700}.lh-menu{display:grid;gap:12px}
.lh-dialog .lh-menu-card{display:grid;grid-template-columns:38px minmax(0,1fr) 12px;gap:12px;align-items:center;text-align:left;padding:20px 16px;min-height:105px;border:1px solid var(--lh-line);border-radius:18px;background:#f3f0e6;cursor:pointer}
.lh-menu-number{font-size:21px;color:#a56b52;font-weight:700}.lh-menu-card strong{display:block;font-size:18px;color:inherit}.lh-menu-card small{display:block;font-size:12px;color:var(--lh-muted);margin-top:5px;font-weight:400}
.lh-dialog .lh-button,.lh-dialog .lh-primary{min-height:46px;padding:10px 16px;border:1px solid var(--lh-line);border-radius:12px;background:#edeadd;font-weight:700;cursor:pointer}
.lh-dialog .lh-primary{background:#f4c64e;color:#39291c;border-color:#e4b843}
.lh-dialog button:disabled{opacity:.5;cursor:default}
.lh-dialog button:focus-visible,.lh-dialog a:focus-visible,.lh-dialog input:focus-visible,.lh-dialog textarea:focus-visible,.lh-reader-launch:focus-visible,.lh-launch:focus-visible{outline:3px solid #bb805d;outline-offset:3px}
.lh-field{display:grid;gap:6px;margin-bottom:15px;font-size:13px;font-weight:700}.lh-dialog .lh-field input{display:block;width:100%;min-height:48px;padding:10px 12px;border:1px solid #c9c6ba;border-radius:11px;background:var(--lh-paper);font-size:17px;font-weight:400}
.lh-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;padding-top:18px}.lh-settings{margin:10px 0 20px}.lh-dialog summary{cursor:pointer;padding:10px 0;list-style:revert;font-weight:700}
.lh-notice{font-size:13px;color:#813f28}.lh-note{font-size:12px;color:var(--lh-muted)}
.lh-preview:not(:empty){padding:18px;border:1px solid var(--lh-line);border-radius:16px;margin-top:15px;background:#f1ede2}
.lh-plan-form{padding-top:8px}.lh-progress+.lh-plan-form{margin-top:28px;padding-top:24px;border-top:1px solid var(--lh-line)}
.lh-pace{display:inline-block;border-radius:8px;padding:5px 9px;background:#efe8dc;font-size:13px}.lh-pace[data-status=behind]{background:#f3e0d7;color:#8e4227}.lh-pace[data-status=ahead],.lh-pace[data-status=completed]{background:#e2ebe1;color:#35503b}
.lh-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.lh-stats>div{background:#efede3;border-radius:12px;padding:13px 7px;text-align:center}.lh-stats b{display:block;font-size:24px;line-height:1.3}.lh-stats span{display:block;font-size:10px;color:var(--lh-muted);margin-top:7px}
.lh-metric{margin:18px 0}.lh-metric>div{display:flex;justify-content:space-between;gap:10px;font-size:13px}.lh-metric small{display:block;font-size:11px;color:var(--lh-muted)}.lh-metric progress{display:block;width:100%;height:9px;border:0;border-radius:9px;overflow:hidden;margin:8px 0;accent-color:#a36647;background:#e7e3d8}.lh-metric progress::-webkit-progress-bar{background:#e7e3d8}.lh-metric progress::-webkit-progress-value{background:#a36647}
.lh-dialog ul.lh-daily,.lh-dialog ol.lh-schedule{padding:0;margin:12px 0 20px;list-style:none}.lh-dialog .lh-daily li{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:12px 0;border-bottom:1px solid var(--lh-line);font-size:13px;list-style:none}.lh-daily .lh-link{flex-basis:100%;font-size:12px;padding:0;border:0;border-radius:0;background:none}
.lh-dialog .lh-link{display:block;margin:7px 0;padding:12px 14px;border:1px solid var(--lh-line);border-radius:10px;background:#f1ede2;color:#813f28;text-decoration:underline;text-underline-offset:3px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.lh-dialog .lh-schedule li{display:grid;gap:5px;list-style:none;border-left:3px solid #dfdbce;margin:0;padding:10px 0 16px 16px}.lh-schedule li[data-current=true]{border-color:#a36647}.lh-schedule small{font-size:11px;color:var(--lh-muted)}.lh-schedule p{font-size:13px;margin:0}
.lh-coach,.lh-ai-more{border-top:1px solid var(--lh-line);padding-top:15px;margin-top:25px}.lh-dialog textarea{display:block;width:100%;padding:12px;border:1px solid #c9c6ba;border-radius:12px;background:var(--lh-paper);margin:12px 0;resize:vertical;min-height:90px;font-size:16px}
.lh-recommendation{margin:16px 0;padding:19px;border:1px solid var(--lh-line);border-radius:16px}.lh-recommendation p{font-size:13px}.lh-recommendation details{font-size:12px;color:var(--lh-muted)}
.lh-dialog .study-ai{font-family:inherit;color:inherit;border-color:var(--lh-line)}.lh-dialog .study-ai h4{font-size:16px}.lh-dialog .study-ai button{border-radius:10px;padding:9px 13px;min-height:44px;background:#f1ede2;color:#813f28;border-color:#cdb3a2}.lh-dialog .study-ai-answer{border-color:#a36647;background:#f1ede2}.lh-dialog .study-ai textarea{background:var(--lh-paper)}.lh-dialog .study-ai a,.lh-dialog .study-ai summary{color:#813f28}
.lh-reader-launch{grid-column:1/-1;border:0;border-radius:8px;padding:7px 14px;min-height:36px;background:#f4c64e;color:#39291c;font-size:12px;font-weight:700;cursor:pointer;justify-self:center}
:root[data-theme=night] .lh-dialog{--lh-paper:#252722;--lh-muted:#b9b9ad;--lh-line:#484a41;--lh-ink:#eeeee4}:root[data-theme=night] .lh-dialog :is(.lh-menu-card,.lh-stats>div,.lh-link,.lh-preview,.study-ai-answer){background:#34362f}:root[data-theme=night] .lh-dialog :is(.lh-link,.lh-eyebrow,.lh-notice,.study-ai summary,.study-ai a){color:#e4a98c}
@media(max-width:600px){.lh-launch{right:12px;padding:16px 32px;font-size:15px}.lh-dialog{inset:0;margin:0;width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.lh-header{padding:13px 16px}.lh-content{padding:19px 16px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.lh-nav{padding:8px}.lh-fields{grid-template-columns:1fr}.lh-menu-card small{font-size:12px}.lh-dialog .lh-menu-card{padding:17px 12px}.lh-recommendation{padding:15px}.lh-stats b{font-size:21px}}
@media(prefers-reduced-motion:reduce){.lh-dialog,.lh-launch{scroll-behavior:auto}}

.lh-day-plan{margin:18px 0 8px;padding-top:14px;border-top:1px solid var(--lh-line)}.lh-day-plan summary{cursor:pointer;font-weight:700}.lh-day-plan ol{max-height:260px;overflow:auto;padding:0;list-style:none}.lh-day-plan li{padding:10px 0;border-bottom:1px solid var(--lh-line)}.lh-day-plan li b,.lh-day-plan li span{display:block}.lh-day-plan li span{font-size:13px;color:var(--lh-muted)}

/* Mustard AI controls; the site's page theme is unchanged. */
.lh-launch,.lh-reader-launch{--lh-sparkle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12 7 15.5 15.5 24 19 15.5 22.5 12 31 8.5 22.5 0 19 8.5 15.5ZM25 0 27 5 32 7 27 9 25 14 23 9 18 7 23 5ZM26 22 27.5 25.5 31 27 27.5 28.5 26 32 24.5 28.5 21 27 24.5 25.5Z'/%3E%3C/svg%3E")}
.lh-launch:hover,.lh-reader-launch:hover{background:#edbd3d}
.lh-reader-launch{display:inline-flex;align-items:center;gap:6px;border-radius:999px}
.lh-reader-launch::before{content:'';width:18px;height:18px;background:currentColor;mask:var(--lh-sparkle) center/contain no-repeat}
.lh-dialog .lh-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--lh-muted);font-size:28px;font-weight:400;cursor:pointer}
.lh-dialog[data-view=menu]{height:auto;max-height:90dvh;width:min(460px,calc(100vw - 32px));padding-top:18px;grid-template-rows:auto minmax(0,1fr);border-radius:24px}
.lh-dialog[data-view=menu]::before{content:'';position:absolute;top:10px;left:calc(50% - 22px);width:44px;height:5px;border-radius:6px;background:#aaa390}
.lh-dialog[data-view=menu] .lh-header{padding:12px 20px 6px;border:0}
.lh-dialog[data-view=menu] .lh-header .lh-eyebrow,.lh-dialog[data-view=menu] .lh-nav{display:none}
.lh-dialog[data-view=menu] .lh-content{padding:6px 18px 22px;scrollbar-gutter:auto}
.lh-menu{gap:10px}
.lh-dialog .lh-menu-card{position:relative;grid-template-columns:46px minmax(0,1fr) 12px;gap:12px;min-height:82px;padding:12px 14px;border:0;border-left:6px solid #e8bc43;border-radius:9px;background:#fffefa}
.lh-dialog .lh-menu-card:hover{background:#fff2c8}
.lh-menu-card strong{font-size:16px}.lh-menu-card small{font-size:12px;margin-top:3px}
.lh-menu-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff5da;color:#62441e}
.lh-menu-icon::before{content:'';width:28px;height:28px;background:currentColor;mask:var(--lh-icon) center/contain no-repeat}
.lh-menu-icon[data-icon=plan]{--lh-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4M17 3v4M3 11h18'/%3E%3C/svg%3E")}
.lh-menu-icon[data-icon=weakness]{--lh-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='m16 16 6 6'/%3E%3C/svg%3E")}
.lh-menu-icon[data-icon=ask]{--lh-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-7l-5 4v-4H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M7 10h.01M12 10h.01M17 10h.01' stroke-width='3'/%3E%3C/svg%3E")}
:root[data-theme=night] .lh-dialog .lh-menu-icon{background:#49412b;color:#f4d276}
:root[data-theme=night] .lh-dialog .lh-menu-card:hover{background:#454334}
@media(max-width:600px){.lh-dialog[data-view=menu]{inset:auto 8px 8px;width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px);border:1px solid var(--lh-line);border-radius:22px}.lh-dialog[data-view=menu] .lh-content{padding-bottom:calc(18px + env(safe-area-inset-bottom))}.lh-dialog[data-view=menu] .lh-header{padding-left:18px;padding-right:14px}.lh-dialog .lh-menu-card{gap:9px;padding:11px 10px}.lh-menu-card strong{font-size:15px}}

.lh-membership-gate .lh-member-heading{margin:4px 0 16px;font-size:16px;font-weight:700;line-height:1.7}
.lh-member-offers{display:grid;gap:12px}
.lh-member-offer{padding:16px;border:1px solid var(--lh-line);border-radius:14px;background:#fffefa}
.lh-dialog .lh-member-offer h3{font-size:16px;margin:0 0 6px}
.lh-dialog .lh-member-offer p{font-size:13px;margin:6px 0;white-space:normal}
.lh-dialog .lh-member-offer .lh-member-price{font-size:24px;font-weight:700;line-height:1.4;margin:4px 0 10px}
.lh-member-price small{font-size:12px;font-weight:400}
.lh-member-paid{padding:20px;border:2px solid #d9b449;background:#fff4d1;box-shadow:0 5px 16px #9f741214}
.lh-dialog .lh-member-paid h3{font-size:19px}
.lh-dialog .lh-member-paid .lh-member-price{font-size:32px;margin:5px 0 10px}
.lh-dialog .lh-member-paid .lh-member-benefit{font-size:14px;font-weight:700}
.lh-member-free{padding:12px 14px;background:transparent}
.lh-dialog .lh-member-free h3{font-size:14px}
.lh-dialog .lh-member-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:10px 12px;margin-top:13px;border:1px solid #d9b449;border-radius:10px;background:#fffefa;color:#39291c;text-decoration:none;font-size:14px;font-weight:700;cursor:pointer}
.lh-dialog .lh-member-subscribe{min-height:52px;font-size:16px;background:#f4c64e;border-color:#cba02b;box-shadow:0 3px 8px #9f74121a}
.lh-dialog .lh-member-register{background:transparent;border-color:var(--lh-line);color:var(--lh-ink);font-size:13px;margin-top:10px}
.lh-dialog .lh-member-cta:focus-visible{outline:3px solid #936908;outline-offset:3px}
.lh-dialog .lh-member-refresh{display:block;margin:14px auto 0;padding:6px 8px;min-height:40px;background:transparent;border:0;text-decoration:underline;font-size:12px;color:var(--lh-muted)}
:root[data-theme=night] .lh-member-offer{background:#34362f}:root[data-theme=night] .lh-member-paid{background:#413c29}

html[data-play-app="true"] .lh-member-paid{display:none!important}

.lh-dialog[data-view=support] .lh-content section>section{margin:20px 0;padding:18px;border:1px solid var(--lh-line);border-radius:14px}.lh-dialog[data-view=support] .lh-button{margin:5px 6px 5px 0;white-space:normal;height:auto;max-width:100%}.lh-dialog[data-view=support] progress{width:100%;accent-color:#3e7861}.lh-dialog[data-view=support] p{overflow-wrap:anywhere}
@media(max-width:430px){.lh-dialog .lh-tab{font-size:11px;line-height:1.5}.lh-dialog[data-view=support] .lh-content section>section{padding:13px}}

/* One row of short tabs, shared by the plan and pass-support tools. */
.lh-dialog .lh-tab{white-space:nowrap;overflow-wrap:normal;word-break:keep-all;font-size:clamp(10px,2.9vw,12px);padding:9px 3px}
.lh-dialog[data-view=support] .lh-content>section>section{margin:18px 0;padding:15px;border:1px solid var(--lh-line);border-radius:14px}
@media(max-width:430px){.lh-nav{gap:4px;padding:8px}.lh-dialog .lh-tab{font-size:clamp(10px,2.9vw,12px);white-space:nowrap}}

/* Plan, daily targets and all four reference scores share one compact dashboard. */
.lh-dialog[data-view=support] .lh-header{padding-block:11px}
.lh-dialog[data-view=support] .lh-content{padding:10px 12px}
.lh-support-dashboard{display:grid;gap:8px;align-content:start}
.lh-dialog[data-view=support] .lh-support-dashboard>.lh-support-plan,
.lh-dialog[data-view=support] .lh-support-dashboard>.lh-support-meter{margin:0;padding:10px 11px;border:1px solid #dedfce;border-radius:14px;background:linear-gradient(145deg,#fffef9,#fffdf4);box-shadow:0 2px 7px #352b1805}
.lh-dialog[data-view=support] .lh-support-dashboard>.lh-support-plan{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px}
.lh-plan-overview{grid-column:1/-1}
.lh-plan-heading,.lh-meter-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.lh-dialog .lh-plan-heading h3,.lh-dialog .lh-meter-heading h4{margin:0;font-size:15px;line-height:1.3;letter-spacing:.015em}
.lh-plan-heading .lh-plan-date,.lh-meter-heading>small{font-size:10px;line-height:1.4;color:var(--lh-muted);white-space:nowrap}
.lh-plan-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0 7px}
.lh-mini-stat{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:7px 3px 5px;border:1px solid #e9e6d7;border-radius:10px;background:#f5f3e9;text-align:center}
.lh-mini-stat:first-child{background:#e8f0e9;border-color:#d6e3d7}
.lh-mini-stat>b{display:block;font-size:clamp(17px,5vw,22px);line-height:1.1;letter-spacing:-.035em;font-variant-numeric:tabular-nums;color:#244e43}
.lh-mini-stat>b>small{font-size:10px;margin-left:2px;font-weight:500;letter-spacing:0}
.lh-mini-stat>span{display:flex;align-items:center;justify-content:center;min-height:24px;font-size:9px;line-height:1.3;color:var(--lh-muted);white-space:normal;word-break:normal}
.lh-plan-daily-brief{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 6px;font-size:11px;line-height:1.4}
.lh-plan-daily-brief>span{color:var(--lh-muted);font-size:10px}
.lh-plan-daily-brief>strong{font-size:12px;font-variant-numeric:tabular-nums}
.lh-plan-daily-brief>small{font-size:9px;color:var(--lh-muted)}
.lh-dialog .lh-plan-editor{margin:0;align-self:start}
.lh-dialog .lh-plan-editor>summary{display:inline-flex;align-items:center;gap:10px;min-height:32px;padding:5px 11px;border:1px solid #d7c27d;border-radius:9px;background:#f8e5a2;font-size:12px;font-weight:700;cursor:pointer;list-style:none}
.lh-dialog .lh-plan-editor>summary::-webkit-details-marker{display:none}
.lh-dialog .lh-plan-editor>summary::after{content:'＋';font-size:14px}
.lh-dialog .lh-plan-editor[open]{grid-column:1/-1}
.lh-dialog .lh-plan-editor[open]>summary::after{content:'−'}
.lh-dialog .lh-plan-editor[open]>.lh-plan-form{margin-top:12px}
.lh-dialog .lh-plan-records{margin:0;justify-self:end;align-self:start}
.lh-dialog .lh-plan-records>summary{display:flex;align-items:center;min-height:32px;gap:5px;font-size:11px;font-weight:700;cursor:pointer;list-style:none;color:#43675b}
.lh-plan-records>summary::after{content:'⌄'}
.lh-plan-records[open]>summary::after{content:'⌃'}
.lh-dialog .lh-plan-records[open]{grid-column:1/-1;justify-self:stretch}
.lh-dialog .lh-plan-records>.lh-progress{margin-top:10px}
.lh-meter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.lh-score-card{min-width:0;padding:7px 8px;border:1px solid #e3e6d8;border-radius:10px;background:#f2f5ed}
.lh-score-card:first-child{background:#e8f1e9;border-color:#cdded1}
.lh-score-heading{display:flex;justify-content:space-between;align-items:center;gap:4px;line-height:1.3}
.lh-score-heading>strong{font-size:11px;font-weight:700;white-space:nowrap}
.lh-score-heading>small{font-size:9px;color:var(--lh-muted);white-space:nowrap}
.lh-score-numbers{display:flex;align-items:baseline;gap:3px;margin:4px 0 5px;font-variant-numeric:tabular-nums;line-height:1.1}
.lh-score-numbers>b{font-size:20px;font-weight:700;letter-spacing:-.035em;color:#244e43}
.lh-score-numbers>small{font-size:8px;color:var(--lh-muted)}
.lh-score-numbers>span{margin-left:auto;font-size:9px;white-space:nowrap;color:#476d5e}
.lh-score-track{position:relative;height:5px;border-radius:6px;background:#dde3d6}
.lh-score-track::after{content:'';position:absolute;top:-1px;bottom:-1px;left:var(--lh-threshold);width:1px;background:#7b826f}
.lh-dialog[data-view=support] .lh-score-track>progress{display:block;width:100%;height:5px;margin:0;border:0;border-radius:6px;overflow:hidden;background:#dde3d6;accent-color:#3e7861}
.lh-score-track>progress::-webkit-progress-bar{background:#dde3d6}
.lh-score-track>progress::-webkit-progress-value{background:#3e7861;border-radius:6px}
.lh-score-track>progress::-moz-progress-bar{background:#3e7861;border-radius:6px}
.lh-dialog .lh-meter-sample-note{margin:5px 0 3px;font-size:9px;line-height:1.35;color:var(--lh-muted)}
.lh-dialog .lh-meter-disclosure>summary{cursor:pointer;list-style:none;min-height:22px;display:flex;align-items:center;gap:6px;font-size:10px;color:#43675b}
.lh-meter-disclosure>summary::after{content:'⌄'}
.lh-meter-disclosure[open]>summary::after{content:'⌃'}
.lh-meter-domain{margin:10px 0;padding-top:8px;border-top:1px solid var(--lh-line);font-size:12px}
.lh-dialog .lh-meter-domain p{font-size:12px;line-height:1.5;margin:4px 0}
.lh-support-extras{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:start}
.lh-dialog .lh-support-disclosure{min-width:0;border:1px solid var(--lh-line);border-radius:10px;background:#fffdf5;padding:0 10px}
.lh-dialog .lh-support-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:37px;font-size:11px;line-height:1.4;font-weight:700;cursor:pointer;list-style:none}
.lh-dialog .lh-support-disclosure>summary::-webkit-details-marker{display:none}
.lh-dialog .lh-support-disclosure>summary::after{content:'＋';flex:none}
.lh-dialog .lh-support-disclosure[open]{grid-column:1/-1;padding-bottom:12px}
.lh-dialog .lh-support-disclosure[open]>summary::after{content:'−'}
.lh-dialog .lh-support-disclosure h4{font-size:15px;margin:8px 0}
.lh-dialog .lh-support-disclosure p{font-size:12px;line-height:1.55}
.lh-dialog .lh-support-dashboard>.lh-support-allowance{margin:0;font-size:10px;line-height:1.4;color:var(--lh-muted)}
.lh-dialog[data-view=support] summary:focus-visible{outline:2px solid #a27917;outline-offset:3px;border-radius:6px}
.lh-dialog .lh-plan-records .lh-stats{gap:6px;margin:12px 0}
.lh-dialog .lh-plan-records .lh-stats>div{padding:9px 5px;border-radius:10px;background:#f0f3e9}
.lh-dialog .lh-plan-records .lh-stats b{font-size:22px}
.lh-dialog .lh-plan-records .lh-metric{margin:12px 0}
.lh-dialog .lh-plan-records .lh-metric progress{height:5px;margin:5px 0}
.lh-dialog .lh-plan-records .lh-daily{display:grid;gap:6px;margin:8px 0 12px}
.lh-dialog .lh-plan-records .lh-daily li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:8px 10px;border:1px solid var(--lh-line);border-radius:9px;background:#f7f5ec;font-size:12px}
.lh-dialog .lh-plan-records .lh-daily .lh-link{grid-column:1/-1;width:max-content;min-height:0;margin:0;font-size:11px;text-decoration:none;color:#24685c}
.lh-dialog .lh-plan-records .lh-schedule{display:grid;gap:8px;margin:8px 0 12px}
.lh-dialog .lh-plan-records .lh-schedule li{padding:10px 12px;border:1px solid var(--lh-line);border-left:3px solid #d5d9cb;border-radius:9px;background:#fffdf5;gap:3px}
.lh-dialog .lh-plan-records .lh-schedule li[data-current=true]{border-left-color:#3e7861;background:#f0f5eb}
.lh-dialog .lh-plan-records .lh-schedule p{font-size:12px;line-height:1.5;margin:0}

/* The expanded editor uses the same quiet cards as the support overview. */
.lh-dialog .lh-plan-editor[open]>.lh-plan-form{margin-top:12px;padding-top:12px;border-top:1px solid #e1e6d9}
.lh-dialog .lh-plan-editor .lh-plan-form>h3{margin:0 0 12px;font-size:16px;line-height:1.4}
.lh-plan-inputs{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:10px}
.lh-dialog .lh-plan-editor .lh-field{gap:5px;margin-bottom:0;font-size:11px;line-height:1.5;color:var(--lh-muted)}
.lh-dialog .lh-plan-editor .lh-field input{width:100%;min-width:0;min-height:46px;padding:10px;border:1px solid #d9dfd1;border-radius:10px;background:#fffefa;color:var(--lh-ink);font-size:16px;font-variant-numeric:tabular-nums;box-shadow:0 1px 3px #352b1804}
.lh-dialog .lh-plan-editor .lh-field input:focus{border-color:#6b907c}
.lh-dialog .lh-plan-editor .lh-settings{margin:10px 0 12px;padding:0 11px;border:1px solid #e1e6d9;border-radius:10px;background:#f6f7ef}
.lh-dialog .lh-plan-editor .lh-settings>summary{display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:8px 0;list-style:none;font-size:12px;color:#43675b}
.lh-dialog .lh-plan-editor .lh-settings>summary::after{content:'＋'}
.lh-dialog .lh-plan-editor .lh-settings[open]>summary::after{content:'−'}
.lh-dialog .lh-plan-editor .lh-settings>summary::-webkit-details-marker{display:none}
.lh-dialog .lh-plan-editor .lh-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 0 12px}
.lh-dialog .lh-plan-editor .lh-fields .lh-field>span{min-height:33px;display:flex;align-items:end}
.lh-dialog .lh-plan-editor .lh-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:10px 12px;border-radius:10px;font-size:14px;box-shadow:0 2px 5px #9f74120d}
.lh-dialog .lh-plan-editor .lh-plan-notice{margin:8px 0;font-size:11px;line-height:1.6;color:#43675b}
.lh-dialog .lh-plan-editor .lh-plan-notice:empty{display:none}
.lh-dialog .lh-plan-editor .lh-preview:not(:empty){margin-top:10px;padding:12px;border-color:#d9e3d4;border-radius:12px;background:#edf3e9}
.lh-dialog .lh-plan-editor .lh-preview>h4{font-size:14px;margin:0 0 10px;color:#244e43}
.lh-dialog .lh-plan-editor .lh-preview .lh-daily{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px;padding:0}
.lh-dialog .lh-plan-editor .lh-preview .lh-daily li{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:7px;margin:0;padding:9px 5px 5px;border:1px solid #dce5d6;border-radius:9px;background:#fffefa;text-align:center}
.lh-dialog .lh-plan-editor .lh-preview .lh-daily-label{display:flex;align-items:center;justify-content:center;min-height:28px;font-size:10px;line-height:1.4;color:var(--lh-muted)}
.lh-dialog .lh-plan-editor .lh-preview .lh-daily b{font-size:clamp(12px,3.4vw,16px);line-height:1.4;color:#244e43;font-variant-numeric:tabular-nums;white-space:nowrap}
.lh-dialog .lh-plan-editor .lh-preview .lh-link{display:flex;align-items:center;justify-content:center;flex-basis:auto;min-height:34px;margin:0;padding:5px 2px;border:0;border-radius:6px;background:#edf3e9;font-size:10px;line-height:1.3;text-decoration:none;color:#245b4d}
.lh-dialog .lh-plan-editor .lh-plan-storage{margin-top:10px;border-top:1px solid #e1e6d9}
.lh-dialog .lh-plan-editor .lh-plan-storage>summary{display:flex;align-items:center;justify-content:space-between;min-height:34px;padding:7px 0;list-style:none;font-size:10px;font-weight:400;color:var(--lh-muted)}
.lh-dialog .lh-plan-editor .lh-plan-storage>summary::after{content:'＋'}
.lh-dialog .lh-plan-editor .lh-plan-storage[open]>summary::after{content:'−'}
.lh-dialog .lh-plan-editor .lh-plan-storage>summary::-webkit-details-marker{display:none}
.lh-dialog .lh-plan-editor .lh-plan-storage>.lh-note{margin:0 0 6px;font-size:11px;line-height:1.7}
:root[data-theme=night] .lh-dialog .lh-plan-editor :is(.lh-settings,.lh-preview){background:#303b31;border-color:#4b5544}
:root[data-theme=night] .lh-dialog .lh-plan-editor :is(.lh-field input,.lh-preview .lh-daily li){background:#293229;border-color:#4b5544}
:root[data-theme=night] .lh-dialog .lh-plan-editor :is(.lh-preview>h4,.lh-preview .lh-daily b,.lh-settings>summary,.lh-plan-notice,.lh-preview .lh-link){color:#bce3c9}
:root[data-theme=night] .lh-dialog .lh-plan-editor .lh-preview .lh-link{background:#3b493b}
:root[data-theme=night] .lh-dialog :is(.lh-support-plan,.lh-support-meter,.lh-support-disclosure,.lh-score-card,.lh-mini-stat){background:#343b31;border-color:#4b5544}
:root[data-theme=night] .lh-dialog :is(.lh-score-numbers>b,.lh-mini-stat>b){color:#bce3c9}
@media(max-width:359px){.lh-score-numbers{flex-wrap:wrap;row-gap:3px}.lh-score-numbers>span{flex-basis:100%;margin-left:0}.lh-score-card{padding:6px}.lh-score-heading>strong{font-size:10px}.lh-score-heading>small{font-size:8px}.lh-score-numbers>b{font-size:18px}.lh-score-numbers>span{font-size:8px}.lh-plan-heading .lh-plan-date{font-size:9px}}
@media(max-height:700px){.lh-dialog[data-view=support] .lh-header{padding-block:8px}.lh-dialog[data-view=support] .lh-content{padding:8px 10px}.lh-support-dashboard{gap:6px}.lh-dialog[data-view=support] .lh-support-dashboard>.lh-support-plan,.lh-dialog[data-view=support] .lh-support-dashboard>.lh-support-meter{padding:8px 10px}.lh-plan-kpis{margin:6px 0}.lh-mini-stat{padding-block:5px}.lh-score-card{padding-block:6px}}
