/* Fieldnote / study atlas. Functional geometry, no heavy visual libraries. */
html{--atlas-shadow:0 5px 24px #17295008;--atlas-deep:#14253e;--atlas-lime:#dcf48e;--atlas-radius:20px;--atlas-accent:#245bc4;--atlas-tint:#eef3ff}
html:not([data-fieldnote]){--fn-surface:#fff;--fn-backdrop:#f5f7fc;--fn-ink:#182940;--fn-muted:#53657e;--fn-line:#dce3ef;--fn-soft:#edf2fa}
html[data-fn-theme=dark]{--atlas-shadow:0 6px 28px #00000014;--atlas-deep:#102036;--atlas-lime:#dcf48e;--atlas-accent:#a9caff;--atlas-tint:#243953}
html[data-fn-theme=dark]:not([data-fieldnote]){--fn-surface:#1a2a40;--fn-backdrop:#101c2d;--fn-ink:#eef4fd;--fn-muted:#b5c6dd;--fn-line:#3a4d67;--fn-soft:#23364f}
.masthead{min-height:76px;padding-inline:32px;box-shadow:none!important}
.brand{font-weight:750;letter-spacing:-.06em}
.brand-mark{border-radius:12px;background:#182d4c}
.brand-caption{font-size:12px;letter-spacing:.1em}
.desk-label{border:0;background:var(--fn-soft);border-radius:100px;padding:8px 14px;color:var(--fn-muted);font-size:12px}
.fn-search-launch,.picker-button,.fn-appearance>summary,.fn-header-tips{border-radius:12px!important}
.fn-search-launch:hover{border-color:var(--atlas-accent)!important}
.fn-search-launch kbd{color:var(--fn-muted)!important;background:var(--fn-surface)!important;border-color:var(--fn-line)!important}
:is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid var(--atlas-accent)!important;outline-offset:4px}
#home{max-width:1320px;padding:34px 40px 30px}
#home .home-welcome{grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr);gap:40px;margin-bottom:24px}
#home .intro .eyebrow{color:var(--atlas-accent);font-size:12px;letter-spacing:.15em;margin-bottom:12px;font-weight:750}
#home .intro h1{font-size:clamp(34px,3.7vw,48px);font-weight:730;letter-spacing:-.055em;line-height:1.1}
#home .intro h1>span{color:var(--atlas-accent)}
#home .intro-note{font-size:16px;color:var(--fn-muted);margin-top:15px;line-height:1.6}
#home .home-finder{padding:24px;border:1px solid var(--fn-line);border-radius:var(--atlas-radius);background:var(--fn-surface)!important}
#home .home-finder h2{font-size:17px;color:var(--fn-ink);margin-bottom:7px}
#home .home-finder p{display:block;font-size:14px;color:var(--fn-muted);margin:0 0 15px;line-height:1.6}
#home .home-finder .fn-search-launch{background:var(--fn-soft);border:1px solid var(--fn-line);min-height:48px;font-size:14px;padding:12px 14px}
#home .fn-today-disclosure{background:var(--fn-surface);border-color:var(--fn-line);border-radius:14px;margin-bottom:16px;--learn-bg:var(--fn-surface);--learn-ink:var(--fn-ink);--learn-muted:var(--fn-muted);--learn-line:var(--fn-line);--learn-accent:var(--atlas-accent)}
#home .fn-today-summary{min-height:56px;padding:12px 18px;border-radius:14px}
#home .fn-today-summary h2{font-size:15px}
#home .fn-today-toggle{background:var(--fn-soft);border:0;width:30px;height:30px;color:var(--atlas-accent)}
#home .fn-today-disclosure[open]>.fn-today-summary{border-radius:14px 14px 0 0}
#home .resume-panel{background:var(--fn-surface)!important;border:1px solid var(--fn-line)!important;border-left:4px solid var(--atlas-accent)!important;border-radius:16px;padding:18px 20px;margin-bottom:26px;box-shadow:var(--atlas-shadow)}
#home .resume-copy h2{font-size:20px;line-height:1.3;font-weight:700}
#home .resume-label{font-size:12px!important;letter-spacing:.06em!important}
#home .continue-button{background:var(--atlas-deep);color:#fff;border:0;border-radius:10px;font-size:14px;padding:12px 18px;transform:none}
#home .continue-button:hover{background:#294975}
#home .continue-button>span,#home .quick-arrow{display:none}
#home .quick-action{border:0;background:var(--fn-soft)!important;border-radius:10px;padding:10px 12px}
#home .quick-action:hover{background:var(--fn-soft);border:0;transform:none;outline:1px solid var(--atlas-accent)}
#home .section-label{margin:0 0 16px;gap:20px}
#home .section-label h2{font-size:24px;letter-spacing:-.04em;font-weight:700}
#home .section-label>span{font-size:14px;color:var(--fn-muted);letter-spacing:0}
#home .subjects{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
html[data-fn-theme] #home .subjects .subject{display:grid;grid-template-rows:auto 1fr auto;min-height:235px;padding:20px 24px 0;border:1px solid var(--fn-line);border-radius:var(--atlas-radius);background:var(--fn-surface)!important;color:var(--fn-ink);box-shadow:var(--atlas-shadow);isolation:isolate}
#home .subject::before{content:"";position:absolute;inset:0 0 auto;height:76px;background:var(--tile);z-index:0;pointer-events:none}
html[data-fn-theme] #home .subjects .subject::before{display:block!important}
#home .subject>:is(.card-top,.card-copy,.card-bottom){position:relative;z-index:1}
#home .subject.maths{--tone:#315ac2;--tile:#edf2ff}
#home .subject.biology{--tone:#166b4d;--tile:#eaf6ef}
#home .subject.physics{--tone:#a54132;--tile:#fff0e9}
#home .subject.chemistry{--tone:#815b14;--tile:#fff6dc}
#home .subject.business{--tone:#7549a7;--tile:#f3edff}
#home .subject.computing{--tone:#126c75;--tile:#e9f7f8}
html[data-fn-theme=dark] #home .subject.maths{--tone:#adcbff;--tile:#273d60}
html[data-fn-theme=dark] #home .subject.biology{--tone:#a8e7c0;--tile:#244738}
html[data-fn-theme=dark] #home .subject.physics{--tone:#ffb9a8;--tile:#4f3534}
html[data-fn-theme=dark] #home .subject.chemistry{--tone:#f8dc92;--tile:#49402b}
html[data-fn-theme=dark] #home .subject.business{--tone:#d8befa;--tile:#43375a}
html[data-fn-theme=dark] #home .subject.computing{--tone:#a5e3e8;--tile:#284750}
#home .subject .card-top{justify-content:flex-start;gap:10px;padding-right:57px;min-height:36px;align-items:center}
#home .subject .subject-number{display:block;font-size:12px;letter-spacing:.06em;color:var(--tone)!important;font-weight:750}
#home .subject .course-code{padding-left:10px;border-left:1px solid var(--fn-line);font-size:12px;letter-spacing:0;color:var(--fn-muted)!important;white-space:nowrap}
#home .subject .subject-symbol{top:14px;right:20px;width:50px;height:50px;border-radius:14px;background:var(--fn-surface);border:1px solid var(--fn-line);color:var(--tone);font-size:32px;box-shadow:0 3px 10px #17294006}
#home .subject .subject-symbol .fn-brand-icon{width:32px;height:32px}
#home .subject .card-copy{margin:29px 0 0;padding:0 0 19px}
#home .subject .card-copy h3{font-size:26px;line-height:1.25;font-weight:730;letter-spacing:-.045em;margin:0 0 10px;color:var(--fn-ink)!important;padding:0}
#home .subject .card-copy p{font-size:16px;line-height:1.6;color:var(--fn-muted)!important;max-width:34ch}
#home .subject .card-bottom{padding:12px 0 16px;min-height:51px;border-color:var(--fn-line);font-size:12px;color:var(--fn-muted)!important;gap:12px}
#home .subject .open-label{min-height:0;font-size:14px;font-weight:700;display:block;background:none;padding:0;color:var(--tone)!important}
#home .subject:hover{transform:translateY(-3px);border-color:var(--tone);box-shadow:0 10px 28px #17295012}
#home .paper-entry{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--fn-soft)!important;border:1px solid var(--fn-line);border-radius:16px;padding:22px 24px;box-shadow:none}
#home .paper-entry .card-copy{flex:1;padding:0;margin:0}
#home .paper-entry .card-copy h3{font-size:21px;font-weight:700;letter-spacing:-.025em}
#home .paper-entry .card-copy p{max-width:65ch;font-size:15px}
#home .paper-entry .card-bottom{border:0;display:flex;gap:18px;padding:0}
#home .paper-entry .card-bottom>span:first-child{display:none}
#home .paper-entry .open-label{background:var(--atlas-deep);color:#fff!important;border-radius:10px;padding:12px 18px;font-size:14px}
#home .science-papers{border-radius:24px;background:var(--fn-surface);border:1px solid var(--fn-line);box-shadow:none;margin-top:28px}
#home .science-heading{padding-bottom:24px}
#home .science-heading h2{font-size:32px!important;font-weight:700;letter-spacing:-.04em}
#home .science-code{border-radius:16px;background:var(--fn-soft);color:var(--fn-ink)}
#home .science-filters{background:var(--fn-soft);padding:20px;border-radius:16px}
#home .science-paper{border-radius:16px;box-shadow:none}
#home .home-footer{padding-top:20px;border-top:1px solid var(--fn-line);margin-top:30px;font-size:14px}
/* One learning system, six recognisable subject palettes. */
html[data-fieldnote]{--fn-surface:#fff;--fn-backdrop:#f5f7fc;--fn-ink:#182940;--fn-muted:#53657e;--fn-line:#dce3ef;--fn-soft:#edf2fa;--atlas-accent:#315ac2;--atlas-tint:#edf2ff;--atlas-button:#244a9b;--atlas-button-ink:#fff;--atlas-rail:#fff;--atlas-rail-ink:#182940}
html[data-fieldnote=biology]{--atlas-accent:#166b4d;--atlas-tint:#eaf6ef;--atlas-button:#166b4d}
html[data-fieldnote=chemistry]{--atlas-accent:#815b14;--atlas-tint:#fff6dc;--atlas-button:#77520b}
html[data-fieldnote=physics]{--atlas-accent:#a54132;--atlas-tint:#fff0e9;--atlas-button:#963d2e}
html[data-fieldnote=business]{--atlas-accent:#7549a7;--atlas-tint:#f3edff;--atlas-button:#70409c}
html[data-fieldnote=computer-science]{--atlas-accent:#126c75;--atlas-tint:#e9f7f8;--atlas-button:#12626a}
html[data-fn-theme=dark][data-fieldnote]{--fn-surface:#1a2a40;--fn-backdrop:#101c2d;--fn-ink:#eef4fd;--fn-muted:#b5c6dd;--fn-line:#3a4d67;--fn-soft:#23364f;--atlas-accent:#adcbff;--atlas-tint:#273d60;--atlas-button:#adcbff;--atlas-button-ink:#14253e;--atlas-rail:#142338;--atlas-rail-ink:#eef4fd}
html[data-fn-theme=dark][data-fieldnote=biology]{--atlas-accent:#a8e7c0;--atlas-tint:#244738;--atlas-button:#a8e7c0}
html[data-fn-theme=dark][data-fieldnote=chemistry]{--atlas-accent:#f8dc92;--atlas-tint:#49402b;--atlas-button:#f8dc92}
html[data-fn-theme=dark][data-fieldnote=physics]{--atlas-accent:#ffb9a8;--atlas-tint:#4f3534;--atlas-button:#ffb9a8}
html[data-fn-theme=dark][data-fieldnote=business]{--atlas-accent:#d8befa;--atlas-tint:#43375a;--atlas-button:#d8befa}
html[data-fn-theme=dark][data-fieldnote=computer-science]{--atlas-accent:#a5e3e8;--atlas-tint:#284750;--atlas-button:#a5e3e8}
html[data-fieldnote] body{background:var(--fn-backdrop)!important;color:var(--fn-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html[data-fieldnote] :is(h1,h2,h3,h4){font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.035em}
html[data-fieldnote] :is(h1,h2){font-weight:700}
html[data-fn-language=th][data-fieldnote] :is(body,button,a,h1,h2,h3,h4,p,summary){font-family:"Kanit Thai",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:normal}
html[data-fieldnote] :is(.chem-topbar,.topbar,.studio-topbar,.ref-topbar){background:var(--fn-surface)!important;border-color:var(--fn-line)!important;font-size:14px}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail,[data-slot=sidebar-inner]){background:var(--atlas-rail)!important;color:var(--atlas-rail-ink)!important;border-right:1px solid var(--fn-line);box-shadow:none}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(a,button){color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(.nav-link,.fn-nav-group a){color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(.chem-brand,.brand,.business-desk-brand,.brand-name){color:var(--fn-ink)!important;font-family:inherit;font-weight:700;font-size:21px;letter-spacing:-.03em}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(.brand-sub,.brand-subtitle,.chem-brand small,.business-desk-brand small,.rail-label,.nav-heading,.nav-group,.rail-save,.sidebar-footnote,.save-indicator,.brand small){color:var(--fn-muted)!important;font-size:12px}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(.chem-brand>span,.brand-mark,.brand-icon){background:var(--atlas-tint)!important;color:var(--atlas-accent)!important;border:1px solid var(--fn-line);border-radius:14px}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(.course-label,.course-chip,.sidebar-progress){background:var(--fn-soft)!important;color:var(--fn-ink)!important;border-color:var(--fn-line)!important;border-radius:14px}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(.course-label span,.course-chip strong,.progress-meta,.progress-meta strong,.sidebar-progress p){color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(.course-chip small,.business-save-note,.tiny-label){color:var(--fn-muted)!important;font-size:12px}
html[data-fn-theme][data-fieldnote=business] .business-course-chip{background:var(--fn-soft)!important;color:var(--fn-ink)!important;border-color:var(--fn-line)!important;border-radius:14px}
html[data-fn-theme][data-fieldnote=business] .business-course-chip span{color:var(--fn-muted)!important}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) nav :is(a,button){color:var(--fn-ink)!important;background:transparent;border:1px solid transparent;border-radius:10px;min-height:44px;font-size:14px;line-height:1.5}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) nav :is(a,button):hover{background:var(--fn-soft)!important;color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) nav :is(a.active,a[aria-current=page],button.active,button.selected){background:var(--atlas-tint)!important;color:var(--atlas-accent)!important;border:1px solid var(--fn-line)!important;box-shadow:inset 3px 0 var(--atlas-accent);font-weight:700}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) nav :is(a,button) :is(span,em,strong){color:inherit!important}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) .fn-tips-link{color:var(--fn-ink)!important;background:var(--fn-soft)!important;border-color:var(--fn-line)!important}
html[data-fn-theme][data-fieldnote] .fn-nav-group{border-color:var(--fn-line);color:var(--fn-ink)}
html[data-fn-theme][data-fieldnote] .fn-nav-group>summary{background:transparent!important;color:var(--fn-muted)!important;border-radius:10px;font-size:14px;font-weight:650}
html[data-fn-theme][data-fieldnote] .fn-nav-group>summary:hover{background:var(--fn-soft)!important}
html[data-fn-theme][data-fieldnote] :is(.page-heading,.page-header,.studio-header,.tool-header,.tips-hero,.ref-heading){background:var(--atlas-tint)!important;color:var(--fn-ink)!important;border:1px solid var(--fn-line)!important;border-left:5px solid var(--atlas-accent)!important;border-radius:20px!important;padding:26px 28px!important;margin:0 0 26px;box-shadow:none}
html[data-fieldnote] :is(.page-heading,.page-header,.studio-header,.tool-header,.tips-hero,.ref-heading) h1{font-size:clamp(30px,3.7vw,44px)!important;font-weight:730;line-height:1.16;letter-spacing:-.05em;margin:5px 0 12px;color:var(--fn-ink)!important}
html[data-fieldnote] :is(.page-heading,.page-header,.studio-header,.tool-header,.tips-hero,.ref-heading) p{font-size:16px;line-height:1.65;color:var(--fn-muted)!important;max-width:65ch}
html[data-fieldnote] :is(.page-heading,.page-header,.studio-header,.tool-header,.tips-hero,.ref-heading) :is(.eyebrow,.studio-kicker){color:var(--atlas-accent)!important;font-size:12px;font-weight:750;letter-spacing:.1em}
html[data-fn-theme][data-fieldnote] .course-mode-desk{background:var(--fn-surface)!important;border:1px solid var(--fn-line)!important;border-radius:14px;padding:13px 18px!important;margin-bottom:20px;box-shadow:none}
html[data-fieldnote] .course-mode-top{gap:10px;align-items:center}
html[data-fieldnote] .course-mode-desk .course-change{background:var(--atlas-tint)!important;color:var(--atlas-accent)!important;border:1px solid var(--fn-line)!important;border-radius:10px;min-height:44px;font-size:14px}
html[data-fieldnote] .course-mode-desk .fn-course-details{margin-top:5px}
html[data-fieldnote] .course-mode-desk p{margin:8px 0 0!important;padding-top:8px;border-top:1px solid var(--fn-line);font-size:14px}
html[data-fn-theme][data-fieldnote] .fn-thai-support{background:var(--fn-surface)!important;color:var(--fn-ink)!important;border-color:var(--fn-line);padding:11px 16px;border-radius:12px;margin:16px 0;--learn-bg:var(--fn-surface);--learn-ink:var(--fn-ink);--learn-muted:var(--fn-muted);--learn-line:var(--fn-line);--learn-accent:var(--atlas-accent)}
html[data-fieldnote] .fn-thai-support>summary{background:none!important;color:var(--fn-muted)!important;padding:0;min-height:28px;font-size:14px}
html[data-fn-theme][data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){background:var(--fn-surface)!important;color:var(--fn-ink);border:1px solid var(--fn-line)!important;border-radius:20px!important;padding:25px!important;box-shadow:var(--atlas-shadow);position:relative;overflow:hidden}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card) :is(h3,h2){font-size:24px;font-weight:700;line-height:1.3;color:var(--fn-ink)!important}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card) p{font-size:16px;line-height:1.7;color:var(--fn-muted)!important}
html[data-fieldnote] :is(.tile-top>span,.topic-no,.topic-number,.unit-number){background:var(--atlas-tint)!important;color:var(--atlas-accent)!important;border:1px solid var(--fn-line);border-radius:12px;min-width:40px;min-height:40px;font-family:inherit;font-size:17px;font-weight:700;line-height:1.4}
html[data-fieldnote] .topic-tile .tile-meta{color:var(--atlas-accent);border-color:var(--fn-line);font-size:14px}
html[data-fieldnote] :is(.topic-grid,.unit-grid,.grid.cols-3){gap:20px}
html[data-fieldnote] :is(.tile-icon,.bio-tile-art){background:var(--atlas-tint)!important;border:1px solid var(--fn-line);border-radius:14px}
html[data-fn-theme][data-fieldnote] :is(.lesson-paper,.source-paper,.practice-card,.lesson-aside>.card,.contents,.ref-card,.formula-card,.formula-tool,.tips-card,.ss-step,.ss-question,.sim-view,.sim-inspector,.sim-challenge){background:var(--fn-surface)!important;color:var(--fn-ink);border:1px solid var(--fn-line)!important;border-radius:20px;box-shadow:var(--atlas-shadow)}
html[data-fieldnote] :is(.lesson-section,.notes-section){padding-block:28px}
html[data-fieldnote] :is(.lesson-section,.notes-section) h2{font-size:26px;font-weight:700;line-height:1.3;margin-bottom:18px}
html[data-fieldnote] :is(.lesson-section,.notes-section) :is(p,li){font-size:16px;line-height:1.85}
html[data-fieldnote] :is(.worked,.trap,.reading-example){border-radius:14px;border-left:4px solid var(--atlas-accent)}
html[data-fieldnote] :is(.lesson-aside,.contents) h3{color:var(--atlas-accent)!important}
html[data-fieldnote] :is(.btn,.ss-button,.primary-tool-button,.button){border-radius:11px!important;min-height:44px;font-size:14px!important;font-weight:650}
html[data-fieldnote] .fn-connected{--learn-line:var(--fn-line);--learn-accent:var(--atlas-accent);--learn-muted:var(--fn-muted);--learn-ink:var(--fn-ink);background:none;border-top-style:dashed;padding-top:16px}
html[data-fieldnote] .fn-connected nav{gap:8px;margin-top:10px}
html[data-fieldnote] .fn-connected a{background:var(--atlas-tint);color:var(--atlas-accent);border-radius:10px;padding:8px 14px;text-decoration:none;min-height:44px}
html[data-fieldnote] :is(.ss-tabs,.physics-lesson-tabs,.fn-lesson-tabs,.detail-study-tabs,.ref-sections){gap:6px;padding:6px;border:1px solid var(--fn-line);border-radius:14px!important;background:var(--fn-soft);margin-bottom:24px;max-width:100%;flex-wrap:wrap}
html[data-fieldnote] :is(.ss-tabs,.physics-lesson-tabs,.fn-lesson-tabs,.detail-study-tabs) button{background:transparent!important;color:var(--fn-muted)!important;border:1px solid transparent!important;border-radius:10px!important;min-height:44px;line-height:1.4;padding:10px 16px!important;font-size:14px!important}
html[data-fieldnote] :is(.ss-tabs,.physics-lesson-tabs,.fn-lesson-tabs,.detail-study-tabs) :is(button.active,button.selected,button[aria-pressed=true]){background:var(--fn-surface)!important;color:var(--atlas-accent)!important;border-color:var(--fn-line)!important;box-shadow:0 2px 8px #14253e08;font-weight:700}
html[data-fn-theme][data-fieldnote] :is(.recall-card,.flashcard,.flashcard-tool){background:var(--fn-surface)!important;color:var(--fn-ink)!important;border:1px solid var(--fn-line)!important;border-top:6px solid var(--atlas-accent)!important;border-radius:24px!important;box-shadow:var(--atlas-shadow)}
html[data-fieldnote] :is(.flashcard .prompt,.recall-card h2){font-family:inherit;font-weight:650;font-size:clamp(25px,3vw,36px);letter-spacing:-.035em;line-height:1.4}
html[data-fieldnote] :is(.ref-example,.formula-example,.formula-how,.sim-readout){background:var(--atlas-tint)!important;color:var(--fn-ink)!important;border-radius:14px}
html[data-fieldnote] .ref-sections a{background:none;border:0;border-radius:10px;color:var(--atlas-accent);font-size:14px}
html[data-fieldnote] .ref-sections a:hover{background:var(--fn-surface)}
html[data-fieldnote] .sim-library{padding:6px;background:var(--fn-soft);border:1px solid var(--fn-line);border-radius:18px;gap:6px}
html[data-fieldnote] .sim-library button{background:transparent!important;color:var(--fn-ink)!important;border:1px solid transparent!important;border-radius:13px;padding:15px;font-size:14px}
html[data-fieldnote] .sim-library button span{color:var(--fn-muted)!important}
html[data-fieldnote] .sim-library button[aria-pressed=true]{background:var(--fn-surface)!important;border-color:var(--fn-line)!important;box-shadow:var(--atlas-shadow);color:var(--atlas-accent)!important}
html[data-fieldnote] .sim-view-heading{background:var(--atlas-tint);border-bottom:1px solid var(--fn-line);padding:20px 22px}
html[data-fieldnote] .sim-view-heading h2{font-size:25px;line-height:1.3}
html[data-fieldnote] .sim-view-heading>span{color:var(--fn-muted)!important}
html[data-fieldnote] .fn-guided-model{background:var(--fn-surface);border:1px solid var(--fn-line);border-radius:20px;--learn-bg:var(--fn-surface);--learn-ink:var(--fn-ink);--learn-muted:var(--fn-muted);--learn-line:var(--fn-line);--learn-accent:var(--atlas-accent)}
html[data-fieldnote] .fn-guide-disclosure{padding:0;margin:20px 0;border-radius:14px}
html[data-fieldnote] .fn-guide-disclosure>.fn-guide-summary{cursor:pointer;list-style:none;background:transparent!important;padding:16px 20px;min-height:56px;border-radius:14px}
.fn-guide-summary::-webkit-details-marker{display:none}
html[data-fieldnote] .fn-guide-summary h2{display:flex;gap:16px;align-items:center;justify-content:space-between;font:650 16px/1.5 Inter,system-ui,sans-serif;color:var(--fn-ink)!important;margin:0;letter-spacing:-.015em}
.fn-guide-toggle{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--atlas-tint);color:var(--atlas-accent);flex:none}
.fn-guide-toggle::before{content:"+";font-size:22px;line-height:1}
.fn-guide-disclosure[open]>.fn-guide-summary{border-bottom:1px solid var(--fn-line)}
.fn-guide-disclosure[open] .fn-guide-toggle::before{content:"−"}
.fn-guide-body{padding:22px}
.fn-guide-disclosure:not([open])>.fn-learning-note{display:none}
html[data-fn-language=th] .fn-guide-summary h2{font-family:"Kanit Thai",Inter,system-ui,sans-serif;letter-spacing:normal}
/* Biology's next lesson gets an open-notebook treatment. */
html[data-fn-theme][data-fieldnote=biology] .study-card{background:var(--atlas-tint)!important;color:var(--fn-ink)!important;border:1px solid var(--fn-line);border-radius:24px;padding:30px;min-height:265px}
html[data-fn-theme][data-fieldnote=biology] .study-card :is(h2,p,.eyebrow){color:var(--fn-ink)!important}
html[data-fieldnote=biology] .study-card h2{font-family:inherit;font-size:34px!important;font-weight:700;line-height:1.2!important}
html[data-fieldnote=biology] .study-card .specimen{background:var(--fn-surface);border-color:var(--fn-line);transform:none;padding:15px;max-width:180px;color:var(--atlas-accent)}
html[data-fn-theme][data-fieldnote=biology] .study-card .btn{background:var(--atlas-button)!important;color:var(--atlas-button-ink)!important;border-color:var(--atlas-button)!important}
html[data-fieldnote=biology] .stat strong{font:700 32px/1.2 Inter,system-ui,sans-serif;color:var(--atlas-accent)!important}
html[data-fieldnote=biology] .dashboard-side .card{border-radius:20px}
/* Physics reading retains a narrow formula rail and spacious notes. */
html[data-fn-theme][data-fieldnote=physics] .site-shell .topic-hero{background:var(--atlas-tint)!important;border:1px solid var(--fn-line)!important;border-left:5px solid var(--atlas-accent)!important;padding:28px!important;border-radius:20px!important}
html[data-fieldnote=physics] .topic-hero h1{font-size:clamp(32px,3.8vw,46px)!important;line-height:1.15;font-weight:730}
html[data-fieldnote=physics] .subtopic-list{background:var(--fn-surface)!important;border-color:var(--fn-line);border-radius:20px;padding:6px 26px}
html[data-fieldnote=physics] .subtopic-card{border-radius:0!important;padding-block:28px;background:transparent!important}
html[data-fieldnote=physics] .subtopic-card h4{font-size:24px;line-height:1.3;font-weight:700}
html[data-fieldnote=physics] .physics-progress-drawer{font-size:14px;margin-bottom:20px}
html[data-fieldnote=physics] .right-rail .rail-card{border-radius:18px!important;padding:21px}
/* Business case-work is a clear reading desk, not a promotional hero. */
html[data-fn-theme][data-fieldnote=business] :is(.hero,.topic-detail-hero,.detail-hero){background:var(--atlas-tint)!important;color:var(--fn-ink)!important;border-bottom:1px solid var(--fn-line);padding:28px 36px;margin-bottom:24px;min-height:0}
html[data-fieldnote=business] :is(.hero,.detail-hero) h1{font-size:clamp(32px,3.8vw,44px)!important;font-weight:730;line-height:1.2;color:var(--fn-ink)!important}
html[data-fieldnote=business] :is(.hero,.detail-hero) p{font-size:16px;color:var(--fn-muted)!important;line-height:1.7}
html[data-fieldnote=business] .unit-card{min-height:240px}
html[data-fieldnote=business] :is(.desk-card,.detail-card,.chapter-guide,.flashcard-face){border-radius:20px!important;border-color:var(--fn-line);box-shadow:none}
html[data-fieldnote=business] .study-route-strip{border-radius:16px;margin-bottom:24px}
/* Mathematics keeps its existing navigation and adds sharper working panels. */
html[data-fieldnote=arc] .studio-panel{border-radius:20px!important;border-color:var(--fn-line)!important;background:var(--fn-surface)!important}
html[data-fn-theme][data-fieldnote=arc] header.studio-panel{background:var(--atlas-tint)!important;border-left:5px solid var(--atlas-accent)!important;padding:28px!important;border-radius:20px!important}
html[data-fieldnote=arc] header.studio-panel h1{font-size:clamp(32px,3.8vw,44px)!important;font-weight:730;line-height:1.2}
html[data-fn-theme][data-fieldnote=arc]{--sidebar:var(--atlas-rail);--sidebar-foreground:var(--fn-ink);--sidebar-border:var(--fn-line);--sidebar-accent:#e1f58c;--sidebar-accent-foreground:#233e20}
html[data-fn-theme][data-fieldnote=arc] [data-slot=sidebar-inner] a{color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote=arc] [data-slot=sidebar-inner] :is(.text-foreground,.fn-tips-link span){color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote=arc] [data-slot=sidebar-inner] :is(.text-muted-foreground,summary){color:var(--fn-muted)!important;font-size:12px}
html[data-fn-theme][data-fieldnote=arc] [data-slot=sidebar-inner] a[href="/arc/select-course"]{background:var(--fn-soft)!important;border-color:var(--fn-line)!important;color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote=arc] [data-slot=sidebar-inner] :is(p,[data-slot=sidebar-group-label]){color:var(--fn-muted)!important}
html[data-fn-theme][data-fieldnote=arc] [data-slot=sidebar-inner] [data-active=true]{background:#e1f58c!important;color:#233e20!important;border-radius:10px}
html[data-fn-theme][data-fieldnote=arc] [data-slot=sidebar-inner] [data-active=true] :is(span,svg){color:inherit!important}
html[data-fieldnote=arc] nav[aria-label="Lesson stages"]{background:var(--fn-soft);border:1px solid var(--fn-line);border-radius:16px;padding:6px;gap:6px}
html[data-fieldnote=arc] nav[aria-label="Lesson stages"] button{border-radius:11px;border-color:transparent!important;min-height:58px;background:none;color:var(--fn-muted)}
html[data-fieldnote=arc] nav[aria-label="Lesson stages"] :is(button[aria-current=step],button[aria-pressed=true]){background:var(--fn-surface)!important;color:var(--atlas-accent)!important;border-color:var(--fn-line)!important}
html[data-fieldnote=arc] .studio-metric{border-radius:16px;background:var(--fn-surface);border-color:var(--fn-line)}
html[data-fieldnote=arc] .axis-route{border-radius:20px;border:1px solid var(--fn-line);background:var(--atlas-tint);padding:24px}
html[data-fieldnote=arc] .axis-route-step{border-radius:14px}
/* Thumb-friendly: keep the existing menus, with wrapping rather than clipping. */
@media(max-width:820px){html[data-fieldnote] :is(.page-heading,.page-header,.studio-header,.tool-header,.tips-hero,.ref-heading){padding:22px!important;border-radius:18px!important}html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail).open{box-shadow:16px 0 40px #09182d26!important}html[data-fieldnote] :is(.ss-tabs,.physics-lesson-tabs,.fn-lesson-tabs,.detail-study-tabs){flex-wrap:wrap}html[data-fieldnote=business] :is(.hero,.topic-detail-hero,.detail-hero){padding:24px}html[data-fieldnote] .sim-library{flex-wrap:wrap}html[data-fieldnote] .sim-library button{flex:1 1 150px}html[data-fieldnote=physics] .site-shell .topic-hero{padding:22px!important}}
@media(max-width:580px){html[data-fieldnote] :is(.page-heading,.page-header,.studio-header,.tool-header,.tips-hero,.ref-heading) h1{font-size:32px!important}html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){padding:22px!important}html[data-fieldnote] .course-mode-desk{padding:13px 14px!important}html[data-fieldnote] .course-mode-top>div{flex-basis:100%}html[data-fieldnote] .fn-thai-support{padding:10px 14px}html[data-fieldnote] :is(.ss-tabs,.physics-lesson-tabs,.fn-lesson-tabs,.detail-study-tabs) button{padding:10px 12px!important;flex:1 1 auto}html[data-fieldnote=physics] .subtopic-list{padding:4px 18px}html[data-fieldnote=biology] .study-card{padding:24px;min-height:0}html[data-fieldnote=business] :is(.hero,.topic-detail-hero,.detail-hero){padding:24px 20px}html[data-fieldnote] .fn-connected a{flex:1;justify-content:center;text-align:center}html[data-fieldnote] .sim-library button{flex-basis:120px}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){transition:transform 160ms ease,border-color 160ms ease,box-shadow 160ms ease}html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card):hover{transform:translateY(-3px);border-color:var(--atlas-accent)!important;box-shadow:0 10px 24px #14253e10}}
@media(hover:none){html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){transform:none!important}}
@media(prefers-reduced-motion:reduce){html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){transform:none!important;transition:none!important}}
@media print{.masthead{position:static}html[data-fieldnote] :is(.page-heading,.page-header,.studio-header,.tool-header,.tips-hero,.ref-heading){background:#fff!important;color:#111!important;border-color:#ccc!important;box-shadow:none}#home .subject{box-shadow:none!important;break-inside:avoid}}
html[data-fn-language=th] :is(#home .intro h1,.page-heading h1,.page-header h1,.studio-header h1,.tool-header h1,.tips-hero h1,.ref-heading h1,.topic-hero h1){line-height:1.45!important;letter-spacing:normal}
@media(max-width:1050px){#home{padding-inline:28px}#home .subjects{grid-template-columns:repeat(2,minmax(0,1fr))}#home .subject .subject-number{font-size:12px}#home .home-welcome{gap:26px}#home .resume-panel{gap:18px}}
@media(max-width:820px){#home .home-welcome{grid-template-columns:1fr;gap:18px}#home .home-finder{padding:20px}#home .resume-panel{display:block}#home .quick-study{margin-top:14px}#home .intro h1{font-size:40px}#home .home-finder h2{display:none}#home .home-finder p{display:none}#home .home-finder .fn-search-launch{min-height:48px}}
@media(max-width:580px){#home{padding:24px 18px}#home .intro h1{font-size:36px;line-height:1.12}#home .intro .eyebrow{font-size:12px}#home .intro-note{font-size:16px;max-width:none}#home .home-finder{padding:0;border:0;background:none!important}#home .home-finder .fn-search-launch{min-height:52px}#home .section-label h2{font-size:23px}#home .subjects{grid-template-columns:1fr;gap:16px}html[data-fn-theme] #home .subjects .subject{min-height:215px;padding:18px 22px 0}#home .subject .card-copy{margin-top:24px}#home .subject .card-copy h3{font-size:25px}#home .subject .card-copy p{font-size:16px}#home .subject .subject-symbol{top:12px;right:18px}#home .subject .card-top{padding-right:60px}#home .subject .course-code{font-size:12px}#home .paper-entry{display:block;padding:22px}#home .paper-entry .card-bottom{margin-top:16px}#home .resume-copy{grid-template-columns:minmax(0,1fr) auto}#home .resume-copy h2{font-size:18px}#home .quick-action{padding:10px}#home .science-papers{padding:22px 18px}#home .science-heading h2{font-size:27px!important}}
@media(max-width:360px){#home .subject .course-code{display:none}#home .resume-copy{grid-template-columns:1fr}#home .continue-button{grid-column:1;grid-row:auto;justify-self:start;margin-top:10px}#home .intro h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){#home .subject:hover{transform:none!important}}
