/* 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:9px;min-height:48px;padding:12px 18px;border:1px solid #e4b843;border-radius:999px;background:#f4c64e;color:#39291c;font-size:14px;font-weight:700;line-height:1.4;box-shadow:0 5px 18px #442a1a26;cursor:pointer}
.lh-launch::before{content:'';flex:none;width:25px;height:25px;background:currentColor;mask:var(--lh-sparkle) center/contain no-repeat}
.learning-has-launcher body::after{content:'';display:block;height:80px;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:5px 10px;min-height:32px;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:11px 15px;font-size:13px}.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:25px;height:25px;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{border-color:#d9b449;background:#fff4d1}
.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-register,.lh-dialog button.lh-member-cta{background:#f4c64e;border-color:#e4b843}
.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}
