/* Fieldnote's working surface: vivid subject accents, quieter reading panels. */
html[data-fieldnote]{--fn-accent:#236fa5;--fn-tint:#e8f2ff;--fn-soft:#cee5fa;--fn-deep:#174c76;--fn-rail:#142c46;--fn-page:#f1f5fb}
html[data-fieldnote=chemistry]{--fn-accent:#ad7018;--fn-tint:#fff4df;--fn-soft:#f4d498;--fn-deep:#795013}
html[data-fieldnote=biology]{--fn-accent:#197b57;--fn-tint:#e5f6ed;--fn-soft:#aee7cb;--fn-deep:#15543e}
html[data-fieldnote=arc]{--fn-accent:#4268bf;--fn-tint:#edf1ff;--fn-soft:#ccd9ff;--fn-deep:#304e94}
html[data-fieldnote=business]{--fn-accent:#8157b0;--fn-tint:#f2ebfc;--fn-soft:#e0caf7;--fn-deep:#66408d;--ss-accent:#e0caf7;--ss-tint:#f2ebfc;--ss-deep:#66408d}
html[data-fieldnote=computer-science]{--fn-accent:#147c7c;--fn-tint:#e2f6f1;--fn-soft:#ade8db;--fn-deep:#145d5d}
html[data-fieldnote] body{background:var(--fn-page)}
html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail){background:var(--fn-rail)}
html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) :is(a,button){font-size:14px}
html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) nav :is(a.active,button.active,button.selected){background:var(--fn-soft);color:#142c46;box-shadow:none;border-color:transparent}
html[data-fieldnote] [data-fn-tool]{display:flex;align-items:center;gap:11px}
html[data-fieldnote] [data-fn-tool]:before{content:'';display:block;width:18px;height:18px;flex-shrink:0;background:currentColor;mask:var(--fn-tool-icon) center/contain no-repeat;-webkit-mask:var(--fn-tool-icon) center/contain no-repeat;opacity:.88}
html[data-fieldnote] [data-fn-tool] .icon{display:none}
html[data-fieldnote=arc] [data-fn-tool]>svg{display:none}
html[data-fieldnote=arc].fn-reading-focus [data-slot=sidebar]{display:none!important}
html[data-fieldnote] :is(.chem-topbar,.topbar,.top-nav){border-color:#d7e0ec}
html[data-fieldnote] :is(.page-heading,.page-header){padding:0 0 19px;margin-bottom:23px;border-bottom:1px solid #d8e2ed}
html[data-fieldnote] :is(.page-heading,.page-header) h1{font-size:clamp(28px,3vw,40px);letter-spacing:-.035em;line-height:1.15}
html[data-fieldnote] :is(.page-heading,.page-header) p{font-size:16px;line-height:1.7;max-width:70ch}
html[data-fieldnote] .course-mode-desk{padding:16px 20px;font-size:13px;border-radius:14px;margin-bottom:22px}
html[data-fieldnote] .course-mode-top{gap:12px}
html[data-fieldnote] .course-mode-top strong{font-size:16px;line-height:1.5}
html[data-fieldnote] .course-mode-desk p{font-size:13px;margin-top:9px}
html[data-fieldnote] .course-change{padding:10px 14px;min-height:42px}
html[data-fieldnote] :is(.eyebrow,.ss-kicker,.overline){font-size:12px;letter-spacing:.12em;line-height:1.5}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card,.studio-panel,.dashboard-card,.lesson-card,.subtopic-card,.chem-formula-card,.formula-card){box-shadow:0 4px 15px #18324705;border:1px solid #d5e0ec;border-radius:16px}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){border-top:3px solid var(--fn-soft)}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card) h3{font-size:23px;line-height:1.25;letter-spacing:-.025em}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card) p{font-size:16px;line-height:1.65}
html[data-fieldnote] :is(.tile-meta,.tile-top small,.topic-code,.topic-status,.unit-number){font-size:13px}
html[data-fieldnote] :is(.course-overview,.dashboard-strip,.study-card){border-radius:18px;box-shadow:0 6px 20px #18324706;overflow:hidden}
html[data-fieldnote] .course-overview .continue{background:#17334f;background-image:linear-gradient(125deg,#18364e,#203e58);min-height:190px;padding:26px}
html[data-fieldnote] :is(.course-stat,.quick-tools){padding:25px}
html[data-fieldnote] :is(.course-stat small,.quick-tools span){font-size:13px}
html[data-fieldnote] :is(.recall-card,.flashcard,.flashcard-tool){border:1px solid #cbdbe7;border-top:4px solid var(--fn-accent);border-radius:19px;background:linear-gradient(145deg,#fff 55%,var(--fn-tint));box-shadow:0 10px 28px #18324708}
html[data-fieldnote] :is(.recall-count,.recall-hint,.flashcard-meta,.flashcard-bottom){font-size:13px}
html[data-fieldnote] :is(.recall-card p,.flashcard .answer){font-size:18px;line-height:1.65}
html[data-fieldnote] :is(.study-toolbar,.toolbar,.formula-toolbar,.flashcard-controls){border-radius:12px}
html[data-fieldnote] :is(.filter,.study-toolbar label,.toolbar label,.formula-toolbar label,.ss-section-head label,.ss-plan-form label,.ss-shelf-controls label){font-size:14px}
html[data-fieldnote] :is(.lesson-paper,.source-paper,.practice-card,.reading-note){border-color:#d7e2ed;border-radius:17px}
html[data-fieldnote] :is(.lesson-section,.notes-section) :is(p,li){font-size:16px;line-height:1.8}
html[data-fieldnote] :is(.worked,.reading-example,.callout,.trap){border-radius:12px;border-left:4px solid var(--fn-accent)}
html[data-fieldnote] :is(.worked,.reading-example){background:var(--fn-tint)}
html[data-fieldnote] :is(.contents,.lesson-aside>.card){border:1px solid #d5e1eb;border-radius:12px;background:#fff;padding:20px}
html[data-fieldnote] :is(.contents,.lesson-aside) a{font-size:14px;line-height:1.6}
html[data-fieldnote] :is(.btn,.ss-button,.ss-text-button,.primary-tool-button,.button,.inline-button,.filter-row button,.ss-tabs button,.physics-lesson-tabs button){font-size:14px;min-height:44px;border-radius:9px}
html[data-fieldnote] :is(.ss-step,.ss-question,.ss-session){border-radius:15px;border-color:#d5e1eb}
html[data-fieldnote] .ss-hero{padding:27px 30px;border-radius:19px;background:#17334f;background-image:linear-gradient(120deg,#163248,#274966);margin-bottom:23px}
html[data-fieldnote] .ss-hero h1{font-size:clamp(28px,3vw,38px);line-height:1.15}
html[data-fieldnote] .ss-hero p{font-size:16px;line-height:1.65}
html[data-fieldnote] :is(.ss-fine,.ss-status,.ss-step-no,.ss-session-date,.ss-question .ss-kicker,.ss-save){font-size:13px!important}
html[data-fieldnote] .ss-tabs{padding:5px;border-radius:12px;background:#e7edf5}.ss-tabs button[aria-pressed=true]{box-shadow:0 2px 6px #17324810}
html[data-fieldnote] .cs-lab{border-top:4px solid var(--fn-accent)}
html[data-fieldnote=physics] .tool-header{min-height:120px;padding:24px;border-radius:17px;background:#17334f}
html[data-fieldnote=physics] .site-shell .tool-header :is(h1,p,.overline){color:#eef5fc!important}
html[data-fieldnote=physics] .site-shell .tool-header .overline{color:#c6dbed!important}
html[data-fieldnote=physics] .physics-discovery{border-radius:18px;padding:25px 30px}
html[data-fieldnote=physics] .physics-discovery p{font-size:16px}
html[data-fieldnote=business] .hero{border-radius:0 0 20px 20px;padding:28px 4vw}
html[data-fieldnote=business] .hero h1{font-size:clamp(28px,3vw,40px)}
html[data-fieldnote=business] .hero h1 em{color:#dec5f7}
html[data-fieldnote=business] .unit-grid{gap:18px}.business-save-note{font-size:13px!important}
html[data-fieldnote=business] :is(.formula-hub-card,.glossary-card,.page-card){border:1px solid #d5e0ec;border-top:3px solid var(--fn-soft);border-radius:15px;box-shadow:0 4px 15px #18324705}
html[data-fieldnote=business] .formula-hub-card{padding:22px}
html[data-fieldnote=business] .formula-hub-card h3{font-size:23px;line-height:1.3}
html[data-fieldnote=business] .formula-hub-card pre{background:var(--fn-tint);color:var(--fn-deep);border-radius:8px;padding:14px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-fieldnote=business] :is(.formula-explain,.formula-example,.formula-tip) p{font-size:14px;line-height:1.7}
html[data-fieldnote=business] :is(.formula-explain,.formula-example,.formula-tip) strong{font-size:13px}
html[data-fieldnote=arc] .studio-tabs{gap:5px;padding:5px;border-radius:12px;background:#e7edf5}
html[data-fieldnote=arc] .studio-tabs [role=tab][data-state=active]{background:#fff;color:#304e94;box-shadow:0 2px 6px #18324710}
html[data-fieldnote=arc] .studio-sidebar [data-slot=sidebar-menu-button]{border-radius:8px;min-height:44px;font-size:14px}
html.fn-reading-focus :is(.chem-rail,.sidebar,.business-desk-rail,.studio-sidebar,.studio-sidebar-toggle,.business-desk-menu,.mobile-course-nav,.mobile-tools,.bottom-nav){display:none!important}
html.fn-reading-focus :is(.chem-body,.main-shell,.main-content,.content-shell,.main,.site-shell,.content-wrap,.business-app){margin-left:0!important;grid-template-columns:1fr!important}
html.fn-reading-focus .chem-shell{grid-template-columns:1fr!important}
html.fn-reading-focus .shell{grid-template-columns:1fr!important}
html[data-fieldnote=biology].fn-reading-focus .main{max-width:1250px;width:100%;margin-inline:auto!important;padding-inline:40px}
html.fn-reading-focus .chem-body>main{max-width:1150px;margin-inline:auto;width:100%}
html.fn-reading-focus .studio-sidebar-layout{grid-template-columns:1fr!important}
html.fn-reading-focus .studio-page{max-width:1250px;margin-inline:auto}
html[data-fieldnote=physics] .site-shell[data-theme=dim] :is(.flashcard-tool,.formula-card,.subtopic-card){background:#203b53;color:#e5eef6;border-color:#41617a}
html[data-fieldnote=physics] .site-shell[data-theme=dim] :is(.worked,.reading-example){background:#213f57;color:#e5eef6}
html[data-fieldnote=physics][data-theme=dim] :is(.ss-step,.ss-question,.ss-session){background:#203b53;color:#e5eef6;border-color:#41617a}
html[data-fieldnote=physics][data-theme=dim] .study-studio :is(.ss-step h3,.ss-question h3,.ss-session strong){color:#e5eef6!important}
html[data-fieldnote=physics][data-theme=dim] .study-studio :is(.ss-step p,.ss-step .ss-check,.ss-step-no,.ss-question p,.ss-question-top,.ss-session small){color:#c1d3e7}
html[data-fieldnote=physics][data-theme=dim] .study-studio :is(.ss-step,.ss-question,.ss-session) .ss-text-button{color:#b9dfff!important}
@media(hover:hover){html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card):hover{transform:translateY(-3px);border-color:var(--fn-accent);box-shadow:0 10px 25px #1832470d}html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail) nav :is(a,button):hover:not(.active):not(.selected){background:#29445f;color:white}html[data-fieldnote] :is(.btn,.button,.ss-button):hover{box-shadow:0 3px 10px #18324712}}
@media(max-width:820px){html[data-fieldnote] .ss-hero{padding:24px 22px}.fn-reading-focus :is(.main,.content-inner){padding-inline:18px!important}html[data-fieldnote] :is(.contents,.lesson-aside>.card){padding:17px}html[data-fieldnote] .course-overview .continue{padding:23px}}
@media(max-width:520px){html[data-fieldnote] :is(.page-heading,.page-header){padding-bottom:16px;margin-bottom:19px}html[data-fieldnote] :is(.page-heading,.page-header) h1{font-size:29px}.fn-reading-focus .chem-body>main{padding-inline:16px}html[data-fieldnote=business] .unit-grid{grid-template-columns:1fr}}
@media(max-width:600px){html[data-fieldnote] .course-mode-desk{padding:14px}.course-mode-top .overline,.course-mode-desk .tier-selection-status{display:none!important}html[data-fieldnote] .course-mode-top{gap:8px 12px}html[data-fieldnote] .course-mode-top>div{flex-basis:100%}html[data-fieldnote] .course-mode-desk summary{padding-top:10px}}
@media(prefers-reduced-motion:reduce){html[data-fieldnote] *,html[data-fieldnote] *:before,html[data-fieldnote] *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
html.reduce-motion *,html.reduce-motion *:before,html.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.high-contrast :is(.worked,.reading-example,.recall-card,.flashcard){border-color:#142c46;background:white;color:#142c46}
@media print{.fn-search-launch,.fn-focus-button,.fn-search-dialog{display:none!important}html[data-fieldnote] :is(.worked,.reading-example){background:white;box-shadow:none}}
@media(max-width:820px){html[data-fieldnote] .mobile-tools{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;white-space:nowrap}html[data-fieldnote] .mobile-tools a{flex-shrink:0;min-height:44px}html[data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail){overscroll-behavior-y:contain}html[data-fieldnote] :is(.chem-topbar,.topbar){scroll-margin-top:10px}}
html[data-fieldnote] :is(.topic-grid,.unit-grid){content-visibility:auto;contain-intrinsic-size:auto 600px}
/* The learning workbench: coloured chapter covers and diagram-led reading. */
html[data-fieldnote]:not([data-theme=dim]) :is(.page-heading,.page-header){background:linear-gradient(105deg,var(--fn-tint),#ffffff 80%);border:1px solid #d4e2ed;border-left:5px solid var(--fn-accent);border-radius:0 18px 18px 0;padding:23px 26px;position:relative}
html[data-fieldnote] :is(.page-heading,.page-header) .eyebrow{color:var(--fn-deep);font-weight:750}
html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card){border-top-width:1px;border-left:4px solid var(--fn-soft);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
html[data-fieldnote]:not([data-theme=dim]) :is(.topic-tile,.topic-card,.unit-card){background:linear-gradient(150deg,#fff 55%,var(--fn-tint))}
html[data-fieldnote] .topic-tile .tile-top>span{background:var(--fn-tint);color:var(--fn-deep);width:42px;min-height:42px;display:grid;place-items:center;border-radius:11px;font-size:17px;font-weight:750;border:1px solid var(--fn-soft)}
html[data-fieldnote] .topic-tile .tile-meta{padding-top:13px;margin-top:16px;border-top:1px solid #d8e4ee;color:var(--fn-deep);font-size:13px;line-height:1.6}
html[data-fieldnote] .topic-tile h3{margin-top:19px}
html[data-fieldnote] :is(.course-overview,.ss-hero,.physics-discovery){border-left:5px solid var(--fn-accent)}
html[data-fieldnote] .quick-tools a{border:1px solid #d1e1ec;border-radius:11px;padding:14px 16px;background:var(--fn-tint)}
html[data-fieldnote] .quick-tools a strong{color:var(--fn-deep);font-size:17px}
html[data-fieldnote] :is(.diagram,.diagram-panel,.inline-visual){border:1px solid #c9dce5;border-top:3px solid var(--fn-accent);border-radius:14px;overflow:hidden;box-shadow:none}
html[data-fieldnote] .diagram{margin:24px 0;background:#fff}
html[data-fieldnote] .diagram .diagram-scroll{padding:14px 12px;background:#f8fbfe}
html[data-fieldnote] .diagram figcaption{padding:17px 20px!important;background:var(--fn-tint);color:#345b6f;line-height:1.7;font-size:14px}
html[data-fieldnote] :is(.diagram-panel,.inline-visual) figcaption{font-size:14px;line-height:1.7}
html[data-fieldnote] .diagram svg text{font-family:inherit}
.cs-explorer-link{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #baded5;border-radius:14px;background:#e3f5ee;padding:22px;margin:22px 0}.cs-explorer-link h2{font-size:22px;margin:3px 0 8px}.cs-explorer-link p{font-size:16px;line-height:1.6}.cs-explorer-link .btn{flex-shrink:0;text-align:center}.memory-compare{display:grid;grid-template-columns:1fr 1fr;padding:20px;gap:18px}.memory-compare section{border-left:3px solid #57ac9f;padding:4px 15px}.memory-compare section+section{border-color:#698dca}.memory-compare h3{font-size:24px;margin:6px 0}.memory-compare p{font-size:16px;line-height:1.7}.memory-compare span{font-size:14px;color:#31556d;display:block;line-height:1.6;margin-top:12px}
html[data-fieldnote=biology] .diagram-canvas{background:#f8fbfe}html[data-fieldnote=biology] .inline-visual{margin:22px 0;border-top-width:3px}
html[data-fieldnote=arc] .studio-page [data-slot=card]{border-radius:16px;border-color:#d1dded;box-shadow:0 5px 16px #17334f08}
@media(max-width:600px){html[data-fieldnote]:not([data-theme=dim]) :is(.page-heading,.page-header){padding:19px 18px;border-radius:0 14px 14px 0}.cs-explorer-link{flex-direction:column;align-items:stretch;padding:18px}.memory-compare{grid-template-columns:1fr;padding:18px}.memory-compare section{padding-left:13px}html[data-fieldnote] .diagram figcaption{padding:15px 17px!important}}
html[data-theme=dim] .diagram{background:#172d43}html[data-theme=dim] .diagram figcaption{background:#203e53;color:#d0e6f0}html[data-theme=dim] .memory-compare :is(p,h3,span){color:#d1e5f0}html[data-theme=dim] .cs-explorer-link{background:#204956;color:#e1f4fb}html[data-theme=dim] .cs-explorer-link :is(h2,p){color:#e1f4fb}
