/* Phase 6: one component language, lime routine / teal free. No data selectors. */
body[data-study-mode="routine"]{--bg:#111a14;--surface:#19251b;--surface-2:#213123;--glass:rgba(21,34,24,.82);--line:#334b35;--accent:rgba(202,245,139,.16);--accent-strong:rgba(202,245,139,.34);background-image:radial-gradient(ellipse at 90% 0,#526f2928,transparent 55%),radial-gradient(ellipse at 0 65%,#355c2825,transparent 60%)}
#app{min-width:0}#app>*,.free-subject-header>*,.routine-hero>*,.routine-week-hero>*{min-width:0}
.routine-hero,.routine-week-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:1.3fr 1fr;gap:18px;padding:clamp(24px,4vw,48px);border:1px solid var(--accent-strong);border-radius:28px;background:radial-gradient(ellipse at 90% 12%,#71933d26,transparent 58%),linear-gradient(145deg,#253b2455,#15251e88);box-shadow:0 24px 64px #0003,inset 0 1px 0 #ffffff0a;overflow:hidden;margin-bottom:24px}
.routine-hero h1,.routine-week-hero h1{font-size:clamp(34px,4vw,55px);font-weight:650;line-height:1.08;letter-spacing:-.055em;margin:18px 0 24px}.routine-hero h1 span,.routine-week-hero h1 span{color:var(--green)}
.routine-hero .eyebrow,.routine-week-hero .eyebrow{color:var(--green);letter-spacing:.15em;font-size:10px;text-transform:uppercase}
.routine-lead{font-size:clamp(23px,2.6vw,33px);letter-spacing:-.035em;line-height:1.25;margin:0 0 14px}.routine-description{max-width:375px;color:var(--muted);font-size:14px;line-height:1.7}
.routine-hero-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:24px}.routine-hero-actions .primary{display:flex;gap:24px;align-items:center;border-radius:14px}
.routine-hero-art{position:relative;display:grid;place-items:center;min-height:250px}.routine-orbit{position:absolute;width:92%;aspect-ratio:1;border:1px solid var(--accent-strong);border-radius:50%;transform:rotate(-30deg) scaleY(.75)}.routine-orbit:after{content:"";position:absolute;inset:18px;border-radius:50%;border:1px solid var(--accent);transform:rotate(75deg)}
.routine-focus-mark{display:grid;place-items:center;width:142px;aspect-ratio:1;border-radius:34px;color:var(--green);font-size:75px;font-weight:300;border:1px solid var(--accent-strong);background:linear-gradient(145deg,#b3e47422,#29463044);box-shadow:0 30px 50px #0003,inset 0 1px 0 #ffffff20;transform:rotate(9deg)}.routine-art-caption{position:absolute;bottom:8px;right:12px;color:var(--muted);font-size:11px;letter-spacing:.1em;transform:rotate(-5deg)}
.routine-day-facts{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1.3fr;border-top:1px solid var(--accent);padding-top:22px;margin-top:8px;gap:24px}.routine-day-facts strong{display:block;font-size:clamp(23px,2.5vw,31px);font-weight:550;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.routine-day-facts span{display:block;color:var(--muted);font-size:12px;margin-top:6px}
.routine-week-hero{grid-template-columns:1.5fr 1fr;align-items:center;padding-block:30px}.routine-week-hero h1{font-size:clamp(30px,3.4vw,42px);margin:12px 0}.routine-week-hero p{color:var(--muted);line-height:1.6}.routine-week-facts{display:flex;gap:28px;justify-content:flex-end}.routine-week-facts span{color:var(--muted);font-size:12px}.routine-week-facts strong{display:block;color:var(--text);font-size:26px;margin-bottom:6px;font-weight:550}
body[data-study-mode="routine"] .today-grid{gap:18px;margin-top:0}body[data-study-mode="routine"] .hero-card{position:relative;background:radial-gradient(ellipse at 100% 0,#bfe9790e,transparent 70%),var(--glass);border:1px solid var(--accent);border-radius:24px;box-shadow:inset 0 1px 0 #ffffff08;overflow:hidden}body[data-study-mode="routine"] .hero-card h2{font-size:27px;letter-spacing:-.03em}.hero-card .hero-top>.eyebrow{font-size:10px;letter-spacing:.16em}.hero-card .topic-line{font-size:16px;color:var(--muted)}.hero-card .hero-actions{flex-wrap:wrap}.more-study{border-color:var(--accent)}
body[data-study-mode="routine"] .side-card{border-radius:24px;border-color:var(--accent);background:linear-gradient(150deg,#21372766,var(--glass));box-shadow:inset 0 1px 0 #ffffff09}body[data-study-mode="routine"] .side-card .big-time{font-size:clamp(31px,3.2vw,47px);letter-spacing:-.05em;color:var(--green)}
.heading-row{margin-top:30px;margin-bottom:16px}.heading-row h2{letter-spacing:-.025em;font-weight:550}.card,.dp-card,.day-card{border-radius:22px;box-shadow:inset 0 1px 0 #ffffff07}.card.session-list .session-item{padding-block:20px}
body[data-study-mode="routine"] [data-daycard]{border:1px solid var(--accent);border-radius:24px;background:linear-gradient(160deg,#263b2255,var(--glass));box-shadow:0 8px 32px #0001,inset 0 1px 0 #ffffff09;overflow:hidden}body[data-study-mode="routine"] [data-daycard].is-today{border-color:var(--accent-strong);box-shadow:inset 3px 0 0 var(--green),0 8px 30px #0002}body[data-study-mode="routine"] [data-daycard] [data-daytoggle]{padding-block:20px}body[data-study-mode="routine"] .dp-row{border-radius:16px;background:var(--surface);border-color:var(--accent)}body[data-study-mode="routine"] .day-card{background:var(--glass);border-color:var(--accent);border-radius:18px}body[data-study-mode="routine"] .day-card.selected{background:linear-gradient(145deg,#bce98712,var(--surface));border-color:var(--accent-strong)}
body[data-study-mode="routine"] .semana-grid .day-time{display:block}body[data-study-mode="routine"] .semana-grid .day-time strong{font-size:clamp(17px,1.45vw,21px);line-height:1.35;letter-spacing:-.025em}body[data-study-mode="routine"] .semana-grid .day-time small{display:block;margin-top:6px}
.cronometrar-screen>.intro{margin-bottom:25px}.cronometrar-screen>.intro h1{font-size:clamp(37px,4.5vw,58px);letter-spacing:-.055em}.crono-stage{position:relative;border-radius:28px;background:radial-gradient(ellipse at 50% 20%,#a7d37b12,transparent 60%);padding:8px}.crono-card{border-radius:28px;background:radial-gradient(ellipse at 80% 10%,#bbef8011,transparent 70%),var(--glass);border:1px solid var(--accent-strong);box-shadow:0 20px 55px #0003,inset 0 1px 0 #fff1;max-width:760px;margin:auto;padding:clamp(26px,4vw,46px)}.crono-card .crono-time{font-size:clamp(42px,7vw,86px);font-weight:450;letter-spacing:-.045em}.crono-card .crono-analog{filter:drop-shadow(0 8px 18px #0002)}.crono-card.is-active{box-shadow:0 20px 55px #0003,inset 0 2px 0 var(--accent-strong)}.crono-item{padding:19px 6px}.crono-item strong{font-size:16px;font-weight:550}.crono-item-actions{gap:10px}
.cfg-wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cfg-wrap .cfg-sec{margin:0;border-radius:24px;background:var(--glass);border-color:var(--accent)}.cfg-wrap .cfg-danger{grid-column:1/-1}.cfg-sec h2{font-weight:550;letter-spacing:-.025em}.cfg-sec-head .eyebrow{color:var(--green)}.cfg-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.cfg-wrap .cfg-sec-desc{line-height:1.7}.cfg-account-note{color:var(--muted);font-size:13px}
body[data-study-mode="routine"] .free-screen{--free-line:var(--accent)}body[data-study-mode="routine"] .free-subject,body[data-study-mode="routine"] .free-total,body[data-study-mode="routine"] .free-topic,body[data-study-mode="routine"] .free-soon{background:linear-gradient(145deg,#b8e47808,var(--glass));border-color:var(--accent)}body[data-study-mode="routine"] .free-symbol,body[data-study-mode="routine"] .free-topic-mark{color:var(--green);border-color:var(--accent-strong);background:#b4e5790c}body[data-study-mode="routine"] .free-live{background:linear-gradient(150deg,#bde5820b,var(--glass))}
.topic-catalogue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.topic-catalogue-row{display:flex;align-items:center;background:var(--glass);border:1px solid var(--accent);border-radius:18px;padding:7px;min-width:0;transition:border-color .18s,transform .18s,background .18s}.topic-catalogue-row:hover{border-color:var(--accent-strong);background:var(--surface-2);transform:translateY(-2px)}.topic-catalogue-row.is-archived{opacity:.8}
.topic-destination,.topic-options{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font:inherit}.topic-destination{display:flex;align-items:center;gap:14px;min-width:0;flex:1;text-align:left;min-height:70px;padding:12px}.topic-destination>span:nth-child(2){min-width:0;flex:1}.topic-destination strong{font-size:15px;font-weight:550;display:block;overflow-wrap:anywhere}.topic-destination small{color:var(--muted);display:block;margin-top:6px;font-size:12px}.topic-glyph{color:var(--green);font-size:22px}.topic-options{width:44px;height:44px;border-radius:12px;cursor:pointer;color:var(--muted);letter-spacing:2px}.topic-options:hover{background:var(--accent);color:var(--text)}
.topic-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 15px;font-size:12px;color:var(--muted)}.topic-toolbar select{margin-left:8px;appearance:none;border:1px solid var(--accent);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;min-height:44px;padding:10px 24px 10px 12px}.topic-empty{padding:28px;border:1px dashed var(--accent-strong);border-radius:20px;color:var(--muted);line-height:1.7}.topic-empty>span{font-size:25px;color:var(--green)}.topic-empty h3{font-weight:500;color:var(--text);margin:10px 0;font-size:18px}.topic-empty p{font-size:13px;max-width:520px;margin:0}.topic-add{white-space:nowrap}.topic-catalogue .free-section-heading{gap:12px}.free-subject-header>[data-topic-edit]{margin-left:auto}
#topic-dialog{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 30px);border:1px solid var(--accent-strong);border-radius:24px;background:var(--surface);padding:clamp(20px,4vw,30px);box-shadow:0 30px 80px #0006}#topic-dialog::backdrop{background:#06150d99;backdrop-filter:blur(7px)}.topic-form{min-width:0}.topic-form label{display:block;font-size:13px;margin:24px 0 10px}.topic-form input{width:100%;min-width:0;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;padding:14px}.topic-form .hint{font-size:12px;line-height:1.7;margin-top:12px}.topic-feedback{color:#ffd6a0;font-size:13px;min-height:20px}.topic-form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}.topic-lifecycle{border-top:1px solid var(--accent);padding-top:20px;margin-top:24px;display:flex;gap:12px;flex-wrap:wrap}.danger-text{color:#ffc3b5!important}.topic-lifecycle p{flex-basis:100%}
:where(.routine-hero,.topic-catalogue,.cfg-wrap,.free-screen) button{min-height:44px}.topic-form :focus-visible,.topic-catalogue :focus-visible,.routine-hero :focus-visible{outline:2px solid var(--green);outline-offset:4px;box-shadow:0 0 0 5px var(--accent)}
.routine-hero,.routine-week-hero,.topic-catalogue-row,.cfg-sec{animation:v5-rise .35s var(--ease-emphasized) both}@keyframes v5-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.routine-hero-actions button:active,.topic-destination:active,.free-continue:active{transform:scale(.98)}
@media(min-width:1440px){.routine-hero-art{min-height:285px}.routine-hero{gap:30px}.routine-day-facts{padding-top:28px}}
@media(min-width:700px){.today-week:not(.as-list){grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.today-week .day-card{min-width:0;padding:18px 14px;gap:16px}.today-week .day-topic{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.today-week .day-status{max-width:100%;font-size:10px}.today-week .day-time{display:block}.today-week .day-time strong{font-size:21px}.today-week .day-time small{display:block;margin-top:5px}}
@media(max-width:1024px){.routine-hero-art{min-height:220px}.routine-focus-mark{width:122px;font-size:65px}.routine-week-facts{gap:18px}.routine-week-hero{grid-template-columns:1.4fr 1fr}.cfg-wrap{gap:14px}}
@media(max-width:768px){.routine-hero{grid-template-columns:1fr .6fr;padding:27px}.routine-hero-art{min-height:190px}.routine-focus-mark{width:100px;font-size:57px;border-radius:26px}.routine-hero h1{font-size:38px}.routine-lead{font-size:25px}.routine-art-caption{display:none}.routine-day-facts{gap:18px}.cfg-wrap{grid-template-columns:1fr}.routine-week-hero{grid-template-columns:1fr}.routine-week-facts{justify-content:flex-start;gap:40px}.topic-catalogue-list{grid-template-columns:1fr}}
@media(max-width:500px){.routine-hero{display:block;padding:24px;border-radius:24px}.routine-hero-art{display:none}.routine-hero h1{font-size:36px}.routine-description{font-size:13px}.routine-day-facts{gap:12px;margin-top:26px}.routine-day-facts span{font-size:10px;line-height:1.5}.routine-day-facts strong{font-size:24px}.routine-week-hero{padding:24px;border-radius:24px}.routine-week-hero h1{font-size:34px}.routine-week-facts strong{font-size:24px}.crono-stage{padding:0}.crono-card{padding:24px 16px}.crono-card .crono-time{font-size:clamp(38px,12vw,58px)}.topic-catalogue .free-section-heading{align-items:center;flex-wrap:wrap}.topic-toolbar{flex-wrap:wrap}.topic-destination{gap:10px;padding:10px;min-height:68px}.topic-destination strong{font-size:14px}.free-subject-header{flex-wrap:wrap}.free-subject-header>[data-topic-edit]{margin-left:0}.cfg-wrap{gap:16px}.cfg-sec{padding:24px!important}.crono-item-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.routine-hero,.routine-week-hero,.topic-catalogue-row,.cfg-sec{animation:none}.topic-catalogue-row,.routine-hero-actions button,.topic-destination,.free-continue{transition:none;transform:none!important}}
html[data-reduced-motion="true"] .routine-hero,html[data-reduced-motion="true"] .routine-week-hero,html[data-reduced-motion="true"] .topic-catalogue-row,html[data-reduced-motion="true"] .cfg-sec,.reduce-motion .routine-hero,.reduce-motion .routine-week-hero,.reduce-motion .topic-catalogue-row,.reduce-motion .cfg-sec{animation:none}


/* Master product pass: native controls, compact catalogues, and readable study details. */
:where(button){appearance:none;-webkit-appearance:none;border:0;background:transparent;font:inherit;color:inherit}
body{color-scheme:dark}
select,.form-field select,.topic-toolbar select,.insight-select select,.subject-form select{
  appearance:none;-webkit-appearance:none;color-scheme:dark;
  background-color:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:12px;
  background-image:linear-gradient(45deg,transparent 50%,var(--green) 50%),linear-gradient(135deg,var(--green) 50%,transparent 50%);
  background-position:calc(100% - 20px) calc(50% + 1px),calc(100% - 14px) calc(50% + 1px);
  background-size:6px 6px,6px 6px;background-repeat:no-repeat;
  padding:12px 40px 12px 14px;font-family:inherit;font-size:16px;line-height:1.4;min-height:48px;max-width:100%;cursor:pointer;
}
select option,select optgroup{background:var(--surface);color:var(--text);font:inherit}
select:disabled{cursor:not-allowed;opacity:.6}
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),textarea{
  color-scheme:dark;font-family:inherit;max-width:100%;min-width:0;
}
input[type=checkbox],input[type=radio]{accent-color:var(--green);color-scheme:dark}
button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:2px solid var(--green);outline-offset:4px;
}
.free-screen,.subject-catalogue-screen{max-width:1120px;margin-inline:auto}
.free-screen button,.insights-screen button,.free-screen summary,.insights-screen summary{min-height:44px}
.catalogue-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.catalogue-heading>div{min-width:0;max-width:630px}.catalogue-heading .primary{flex-shrink:0;white-space:nowrap;margin-top:36px}
.subject-catalogue-screen .free-subject-grid{display:block;border-top:1px solid var(--line);border-radius:0}
.subject-catalogue-row{border-bottom:1px solid var(--line)}
.subject-catalogue-row .free-subject{width:100%;align-items:center;flex-wrap:nowrap;gap:18px;padding:18px 8px;border:0;border-radius:0;box-shadow:none;background:transparent;transform:none}
body[data-study-mode] .subject-catalogue-row .free-subject{background:transparent}
.subject-catalogue-row .free-subject .free-symbol{width:44px;height:44px;font-size:21px;border-radius:13px}
.subject-catalogue-row .free-subject-copy strong{font-size:17px;font-weight:550;letter-spacing:-.025em;line-height:1.4}
.subject-catalogue-row .free-subject-copy>span{font-size:13px;margin-top:5px;line-height:1.6}
.subject-catalogue-row .free-arrow{font-size:27px;line-height:1;padding:8px;color:var(--muted)}
.archived-subjects,.historical-topics,.free-all-notes{margin-top:26px;color:var(--muted)}
.archived-subjects>summary,.historical-topics>summary,.free-all-notes>summary{cursor:pointer;padding:12px 2px;font-size:13px;line-height:1.6;min-height:44px}
.archived-subjects .free-subject-grid,.historical-topics .free-topic-grid{margin-top:10px}
.archived-subjects .free-subject-copy strong{color:var(--muted)}
.free-subject-header{gap:18px;margin:0 0 18px;align-items:flex-start}
.free-subject-header>.free-symbol{width:58px;height:58px;border-radius:17px;font-size:27px;margin-top:5px}
.free-subject-header>div{flex:1;min-width:0}.free-subject-header h1{line-height:1.16;font-size:clamp(30px,3.3vw,45px);margin-top:7px;overflow-wrap:anywhere}
.free-subject-header .eyebrow{line-height:1.6;margin-bottom:0;overflow-wrap:anywhere}
.free-subject-header>.secondary{margin-left:auto;margin-top:8px;flex-shrink:0}
.study-summary{font-size:14px;color:var(--muted);line-height:1.7;margin:12px 0 0}
.free-last-study{font-size:12px;line-height:1.6;margin-top:5px}
.topic-detail-header{padding-bottom:22px;border-bottom:1px solid var(--line);margin-bottom:18px}
.topic-detail-header h1{font-size:clamp(35px,4vw,52px);font-weight:600;letter-spacing:-.045em}
.subject-mode-action{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-block:1px solid var(--line)}
.subject-mode-action p{font-size:13px;color:var(--muted);line-height:1.7;margin:0}
.subject-mode-action .primary{font-size:13px;flex-shrink:0}
.catalogue-archived-note{font-size:13px;color:var(--muted);line-height:1.7;padding:14px 0;border-block:1px solid var(--line)}
.free-soon.study-action{display:block;border:0;border-radius:0;background:transparent;box-shadow:none;padding:4px 0 18px;margin:0}
.free-soon.study-action>div{display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap;min-width:0}
.free-soon.study-action h2{font-size:16px;letter-spacing:-.02em;margin:0}.free-soon.study-action p{margin:0;font-size:13px;flex:1;min-width:180px}
.free-soon.study-action button{opacity:1;cursor:pointer;min-height:44px;font-size:13px}.free-soon.study-action button:disabled{opacity:.6;cursor:not-allowed}
.free-soon.study-action p[role=alert]{flex-basis:100%;color:#ffd0b4}
.subject-planning{margin-top:25px}.subject-planning .free-section-heading h2{font-size:18px}
.subject-plan-list{display:flex;gap:9px;flex-wrap:wrap;padding:0;list-style:none;margin:0}
.subject-plan-list li{padding:10px 13px;border:1px solid var(--line);border-radius:12px;display:flex;gap:12px;align-items:center;font-size:13px;line-height:1.6}
.subject-plan-list small{font-size:11px;color:var(--green)}
.topic-catalogue-list{grid-template-columns:1fr;gap:0;border-top:1px solid var(--line)}
.topic-catalogue-row{padding:2px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;animation:none;transform:none}
.topic-catalogue-row:hover{transform:none}.topic-destination{min-height:72px;padding:12px 5px;gap:14px}
.topic-destination strong{font-size:15px;line-height:1.5}.topic-destination small{margin-top:4px;line-height:1.6}
.topic-options{flex-shrink:0}.topic-glyph{width:30px;text-align:center;font-size:22px;flex-shrink:0}
.topic-destination .free-arrow{font-size:24px}.topic-toolbar{margin-bottom:14px}.topic-toolbar label{display:flex;align-items:center;gap:10px;min-width:0}
.topic-toolbar select{margin-left:0;min-width:112px;font-size:13px}.topic-toolbar .text-button{font-size:12px}
.topic-empty{padding:22px 0;border:0;border-top:1px solid var(--line);border-radius:0}.topic-empty h3{font-size:17px;margin-top:0}
.free-topic-grid{display:block;border-top:1px solid var(--line)}
.free-topic-grid .free-topic{width:100%;display:flex;flex-direction:row;align-items:center;gap:14px;padding:17px 5px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;transform:none}
.free-topic-grid .free-topic:hover{transform:none}.free-topic-copy{flex:1;min-width:0}.free-topic-copy strong{font-size:15px;line-height:1.5}
.free-topic-copy small{display:block;font-size:12px;margin-top:5px}.free-topic-grid .free-topic-mark{font-size:20px;width:30px;text-align:center}
.free-topic-grid .free-arrow{font-size:24px}
.topic-notes{margin-top:26px}.topic-notes .free-section-heading{margin-bottom:15px}.topic-notes .free-section-heading h2{margin-top:0;font-size:23px}
.section-count{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted);padding:5px 10px;border:1px solid var(--line);border-radius:999px}
.free-notes{gap:0;border-top:1px solid var(--line)}
.free-note{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:20px 0;background:transparent}
.free-note .free-date{letter-spacing:.06em;font-size:11px;margin-bottom:8px}.free-note h3{font-size:14px;color:var(--text);margin:0;line-height:1.6;font-weight:500}
.free-note-text{color:var(--text);font-size:14px;line-height:1.85;margin-top:8px;max-width:800px}
.free-note-full>summary{padding:10px 0;margin-top:5px;min-height:44px;font-size:12px;color:var(--green);cursor:pointer}
.free-all-notes{margin-top:8px}.topic-notes-empty{display:flex;gap:14px;align-items:center;padding:20px 0;border-block:1px solid var(--line);color:var(--muted)}
.topic-notes-empty>span{font-size:24px;color:var(--green);flex-shrink:0}.topic-notes-empty p{font-size:14px;line-height:1.7;margin:0}
.topic-studies{margin-top:32px}.free-session-list{border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;padding:0;background:transparent}
.free-session{padding:18px 2px}.free-session-copy strong{overflow-wrap:anywhere;line-height:1.6}.free-session-time{line-height:1.5}
.free-topic-session .free-session-copy{flex:1}.free-topic-session .study-details{font-size:12px;padding:8px 10px;margin-left:6px}
.free-round{margin-left:0;flex-basis:auto;padding:8px 10px}.free-session-note{display:none}
.free-live{margin:20px 0 26px}.free-note-actions label{min-height:44px;line-height:1.7}
.insights-screen{max-width:1120px}.insight-select{min-width:0;flex:1}.insight-select select{max-width:100%;width:100%}
.insight-selects{flex:1;min-width:250px;max-width:580px}.insight-filters{gap:16px 28px}
.insight-symbol{color:var(--green)}.insight-history{border-top:1px solid var(--line)}
.insight-day{margin:24px 0 8px;font-size:12px;letter-spacing:.03em}.insight-session{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:18px 4px;margin:0}
.insight-session-copy strong{overflow-wrap:anywhere;line-height:1.6;font-weight:550}.insight-session-time{line-height:1.5}.insight-session-time strong{font-weight:550}
.insight-session .free-arrow{font-size:24px}.origin-badge{font-size:11px}.origin-routine{color:#d3edaa;background:#c9f58b12;border-color:#c9f58b40}.origin-free{color:#8de2cc;background:#73d6bd12;border-color:#73d6bd40}
.insight-metrics{gap:0;border-block:1px solid var(--line);margin:25px 0 32px}
.insight-metrics article{padding:24px 18px;border-radius:0;border:0;border-right:1px solid var(--line);background:transparent;box-shadow:none;gap:12px}
.insight-metrics article:first-child{padding-left:0}.insight-metrics article:last-child{border-right:0}.insight-metrics strong{font-weight:550;color:var(--text);font-variant-numeric:tabular-nums}
.insight-metrics article:first-child strong{color:var(--green)}
.insight-breakdown{padding:0 0 28px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;margin:0 0 30px}
.insight-breakdown h2{font-size:21px}.insight-mode-grid{margin:20px 0 14px;gap:18px}.insight-mode-grid strong{font-size:22px;font-weight:550}
.insight-mode-grid [data-origin-total=routine]>span{color:#d3edaa}.insight-mode-grid [data-origin-total=free]>span{color:#8de2cc}.insight-breakdown .hint{max-width:660px;font-size:12px;line-height:1.7}
.insight-subject{padding:0;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.insight-subject:first-of-type{border-top:1px solid var(--line)}
.insight-subject-link{display:flex;gap:14px;align-items:center;min-height:76px;cursor:pointer;list-style:none;padding:17px 4px}
.insight-subject-link::-webkit-details-marker{display:none}.insight-subject-link>strong{flex:1;min-width:0;font-size:16px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}
.insight-subject-symbol{font-size:21px;color:var(--green);width:30px;text-align:center;flex-shrink:0}.insight-subject-meta{color:var(--muted);font-size:13px;text-align:right;line-height:1.6}
.insight-subject-link>span.insight-chevron{font-size:21px;line-height:1;width:22px;flex-shrink:0;margin:0;color:var(--muted)}.insight-subject[open]>.insight-subject-link>span.insight-chevron{transform:rotate(180deg)}
.insight-topics{margin:0 0 0 48px}.insight-topics button{gap:14px;padding:14px 4px;display:grid;grid-template-columns:minmax(0,1fr) auto 20px;font-size:14px}
.insight-topics button>span:nth-child(2){font-size:12px;color:var(--muted);text-align:right;line-height:1.7}.insight-topics button>.free-arrow{font-size:22px;max-width:none}
.insight-open-subject{margin:14px 0 18px 48px;font-size:12px}.insight-empty{border:0;background:transparent;box-shadow:none;padding:25px 0;line-height:1.7}
.insight-detail-card{padding:24px 0;border-block:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}.insight-detail-card h2{font-size:23px}.insight-notes{color:var(--text)}
.insight-weekly-context{margin-top:35px}.insight-weekly-context>summary{cursor:pointer;min-height:48px;padding:15px 0;font-size:14px;color:var(--muted)}
#subject-dialog,#study-choice{width:min(660px,calc(100vw - 28px));max-width:660px;max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;border:1px solid var(--accent-strong);border-radius:24px;background:var(--surface);padding:clamp(20px,4vw,30px);box-shadow:0 30px 80px #0006}
#subject-dialog::backdrop,#study-choice::backdrop{background:#06150dcc;backdrop-filter:blur(6px)}
#subject-dialog form,#study-choice form{min-width:0}.subject-form h2,#study-choice h2{overflow-wrap:anywhere;line-height:1.35}
.subject-form input,.subject-form textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;font-size:16px;min-height:48px}
.subject-form label{display:block;min-width:0;font-size:13px;line-height:1.7;margin-top:16px}.subject-form input[name=search],.subject-form select[name=category]{margin-top:7px;width:100%}
.subject-form .hint{font-size:12px;line-height:1.7}.subject-suggestions{margin:22px 0;max-height:min(380px,43dvh);overflow:auto;overscroll-behavior:contain;padding-right:4px}
.subject-suggestions details{border-bottom:1px solid var(--line);padding:4px 0}.subject-suggestions summary{min-height:48px;padding:12px 3px;cursor:pointer;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.subject-suggestions details details{margin-left:14px}.subject-suggestions details details>summary{font-size:13px;color:var(--muted)}
.subject-suggestion{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;padding:12px 14px;min-height:48px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.subject-suggestion::after{content:"＋";color:var(--green);flex-shrink:0;font-size:20px}.subject-suggestion:disabled{color:var(--muted);opacity:.65}.subject-suggestion:disabled::after{content:"✓";color:var(--muted)}
.subject-feedback{min-height:22px;line-height:1.7;font-size:13px;color:#ffd0b4;overflow-wrap:anywhere}.subject-lifecycle{padding-top:20px;border-top:1px solid var(--line);margin-top:24px;display:flex;flex-wrap:wrap;gap:10px}.subject-lifecycle p{flex-basis:100%;font-size:12px;line-height:1.7;color:var(--muted)}
.subject-form .form-actions,#study-choice .form-actions{gap:10px;flex-wrap:wrap}.subject-form .form-actions button,#study-choice .form-actions button{min-height:48px;max-width:100%;white-space:normal}
#study-choice .hint,#study-choice p{line-height:1.7;overflow-wrap:anywhere}#study-choice select{width:100%}
@media(hover:hover){.subject-catalogue-row .free-subject:hover,.topic-catalogue-row:hover,.free-topic-grid .free-topic:hover,.insight-session:hover,.insight-subject-link:hover{background:var(--accent)}.subject-suggestion:hover{border-color:var(--accent-strong);background:var(--accent)}}
@media(min-width:1600px){.free-screen,.insights-screen{max-width:1180px}.subject-catalogue-row .free-subject{padding-block:20px}}
@media(max-width:768px){.catalogue-heading{gap:15px;flex-wrap:wrap}.catalogue-heading .primary{margin-top:0}.subject-mode-action{align-items:flex-start}.insight-selects{max-width:none}.insight-metrics article{padding:20px 14px}.insight-metrics article:nth-child(2){border-right:0}.insight-metrics article:nth-child(n+3){border-top:1px solid var(--line)}.insight-metrics article:nth-child(3){padding-left:0}.insight-subject-meta{font-size:12px}.insight-subject-link>strong{font-size:15px}}
@media(max-width:500px){.subject-catalogue-row .free-subject{gap:12px;padding:16px 2px}.subject-catalogue-row .free-subject .free-symbol{width:38px;height:42px;font-size:20px}.subject-catalogue-row .free-subject-copy strong{font-size:16px}.subject-catalogue-row .free-subject-copy>span{font-size:12px}.subject-catalogue-row .free-arrow{padding:4px;font-size:25px}.free-subject-header{gap:13px;flex-wrap:wrap}.free-subject-header>.free-symbol{width:46px;height:48px;font-size:24px;border-radius:14px}.free-subject-header>div{flex-basis:calc(100% - 60px)}.free-subject-header>.secondary{margin:4px 0 0;font-size:12px;padding:9px 12px}.topic-detail-header>div{flex-basis:100%}.topic-detail-header h1{font-size:35px}.study-summary{font-size:13px}.subject-mode-action{flex-direction:column;gap:12px}.subject-mode-action .primary{width:100%;justify-content:center}.free-soon.study-action>div{align-items:flex-start}.free-soon.study-action p{min-width:0;flex-basis:100%;line-height:1.7}.topic-destination{gap:10px;padding-left:2px}.topic-glyph{width:24px}.topic-toolbar{gap:10px}.topic-toolbar select{font-size:16px;min-width:107px}.topic-toolbar .text-button{font-size:11px;padding:10px}.topic-notes .free-section-heading h2{font-size:22px}.free-note{padding-block:18px}.free-note-text{font-size:14px}.free-session{gap:10px}.free-topic-session .free-session-copy{flex-basis:calc(100% - 38px)}.free-topic-session .free-session-time{padding-left:35px;flex:1;font-size:13px}.free-topic-session .free-session-time small{font-size:11px}.free-topic-session .study-details{margin-left:0}.free-round{flex-basis:100%;margin-left:35px;text-align:left;width:fit-content}.insight-session{padding:18px 2px;gap:11px}.insight-session-copy strong{font-size:14px}.insight-session-time{max-width:33%;font-size:13px}.insight-session-time small{font-size:11px;line-height:1.6}.insight-session>.free-arrow{display:none}.insight-filters{display:block}.insight-selects{min-width:0;gap:10px;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.78fr)}.insight-select{min-width:0}.insight-select select{padding-left:10px;padding-right:33px;font-size:15px;background-position:calc(100% - 17px) calc(50% + 1px),calc(100% - 11px) calc(50% + 1px)}.insight-metrics article{padding:18px 12px;gap:10px}.insight-metrics article>span{font-size:11px;line-height:1.6}.insight-metrics strong{font-size:23px}.insight-mode-grid>div{grid-template-columns:minmax(0,1fr) auto;gap:8px}.insight-mode-grid small{grid-column:1/-1}.insight-subject-link{display:grid;grid-template-columns:26px minmax(0,1fr) 22px;gap:4px 11px;padding:15px 2px}.insight-subject-symbol{width:26px;grid-row:1/3}.insight-subject-link>strong{font-size:15px;grid-column:2;grid-row:1}.insight-subject-meta{grid-row:2;grid-column:2;text-align:left;line-height:1.7}.insight-subject-link>.insight-chevron{grid-column:3;grid-row:1/3;width:22px}.insight-topics{margin-left:37px}.insight-topics button{grid-template-columns:minmax(0,1fr) 18px;gap:5px 10px}.insight-topics button>span:first-child{grid-column:1;grid-row:1}.insight-topics button>span:nth-child(2){grid-column:1;grid-row:2;text-align:left;max-width:none;font-size:11px}.insight-topics button>.free-arrow{grid-column:2;grid-row:1/3}.insight-open-subject{margin-left:37px}.insight-detail-card{padding:22px 0}.catalogue-heading .primary{font-size:13px;width:100%;justify-content:center}.subject-suggestions{max-height:35dvh}.subject-suggestions details details{margin-left:9px}.subject-suggestion{font-size:13px;padding:12px 9px}}
@media(max-width:359px){.mode-switch button{padding-inline:10px}.topic-toolbar{align-items:flex-start;flex-direction:column}.topic-toolbar .text-button{padding-inline:12px}.free-subject-header h1{font-size:29px}.topic-detail-header h1{font-size:32px}.insight-selects{grid-template-columns:1fr}.insight-metrics strong{font-size:21px}.insight-chips button{padding-inline:14px}#subject-dialog,#study-choice{padding:19px 16px;border-radius:20px}.subject-form .form-actions button,#study-choice .form-actions button{flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){.subject-catalogue-row button,.topic-catalogue-row,.free-topic-grid button,.insight-session,.insight-subject-link{transition:none;animation:none;transform:none!important}}
html.reduce-motion :is(.subject-catalogue-row button,.topic-catalogue-row,.free-topic-grid button,.insight-session,.insight-subject-link){transition:none;animation:none;transform:none!important}
@media(forced-colors:active){select,.form-field select,.topic-toolbar select,.insight-select select,.subject-form select{appearance:auto;background-image:none}.origin-badge{border-color:ButtonText}.subject-catalogue-row,.topic-catalogue-row,.insight-session{border-color:ButtonText}}

/* Arbitrary subject/topic words wrap in headings as well as note body text. */
.free-screen :is(h1,h2,h3),.insights-screen :is(h1,h2,h3),.insight-detail :is(h1,h2,h3){overflow-wrap:anywhere;min-width:0}

.free-screen .intro p,.insights-screen .intro p{overflow-wrap:anywhere;min-width:0}
