/* prism.css */
/* Prism: a colourful, static glass shell. Reading and interactive data remain
   quiet. Bundled at assembly; no asset imports or runtime design library. */
html[data-fn-theme]{
  --prism-accent:#6248b2;--prism-solid:#574198;
  --prism-tint:rgba(137,109,216,.12);--prism-border:rgba(112,102,170,.23);
  --prism-card:rgba(255,255,255,.68);--prism-reading:rgba(255,255,255,.97);
  --prism-inset:rgba(245,247,255,.82);--prism-shadow:0 14px 38px rgba(50,59,112,.08),inset 0 1px 0 rgba(255,255,255,.92);
  --prism-glow:rgba(159,135,233,.23);--prism-rail:#182944;
  --fn-glass:var(--prism-card);--fn-glass-reading:var(--prism-reading);
  --fn-glass-header:rgba(250,251,255,.82);--fn-glass-inset:var(--prism-inset);
  --fn-glass-border:rgba(255,255,255,.86);--fn-glass-edge:var(--prism-border);
  --fn-glass-shadow:var(--prism-shadow);--fn-glass-base:#edf1fa;
}
html[data-fieldnote=arc]{--prism-accent:#3158bf;--prism-solid:#2b4fac;--prism-tint:rgba(102,141,230,.13);--prism-glow:rgba(132,165,249,.24)}
html[data-fieldnote=biology]{--prism-accent:#126c53;--prism-solid:#12684f;--prism-tint:rgba(70,188,152,.13);--prism-glow:rgba(102,219,184,.23)}
html[data-fieldnote=physics]{--prism-accent:#ab482d;--prism-solid:#99432e;--prism-tint:rgba(230,130,102,.13);--prism-glow:rgba(245,167,136,.24)}
html[data-fieldnote=chemistry]{--prism-accent:#825511;--prism-solid:#785013;--prism-tint:rgba(237,190,85,.14);--prism-glow:rgba(243,206,124,.28)}
html[data-fieldnote=business]{--prism-accent:#6d43b0;--prism-solid:#6541a1;--prism-tint:rgba(163,116,224,.13);--prism-glow:rgba(191,150,245,.25)}
html[data-fieldnote=computer-science]{--prism-accent:#076b7c;--prism-solid:#086575;--prism-tint:rgba(83,188,210,.13);--prism-glow:rgba(109,211,230,.25)}
html[data-fn-theme=dark]{
  --prism-accent:#c9b6ff;--prism-border:rgba(167,184,224,.25);
  --prism-card:rgba(31,43,70,.76);--prism-reading:rgba(23,35,55,.98);
  --prism-inset:rgba(47,62,94,.78);--prism-shadow:0 14px 38px rgba(4,9,25,.2),inset 0 1px 0 rgba(231,237,255,.09);
  --prism-glow:rgba(131,92,208,.19);--prism-rail:#14223b;
  --fn-glass-header:rgba(21,32,53,.85);--fn-glass-border:rgba(191,208,243,.24);
  --fn-glass-base:#10192a;
}
html[data-fn-theme=dark][data-fieldnote=arc]{--prism-accent:#a9c5ff;--prism-tint:rgba(107,152,244,.15);--prism-glow:rgba(72,119,222,.22)}
html[data-fn-theme=dark][data-fieldnote=biology]{--prism-accent:#9be5c9;--prism-tint:rgba(77,199,157,.13);--prism-glow:rgba(38,144,126,.22)}
html[data-fn-theme=dark][data-fieldnote=physics]{--prism-accent:#ffbca5;--prism-tint:rgba(238,154,130,.13);--prism-glow:rgba(166,81,76,.22)}
html[data-fn-theme=dark][data-fieldnote=chemistry]{--prism-accent:#f8da99;--prism-tint:rgba(226,186,103,.13);--prism-glow:rgba(160,123,55,.19)}
html[data-fn-theme=dark][data-fieldnote=business]{--prism-accent:#d3baff;--prism-tint:rgba(165,121,231,.15);--prism-glow:rgba(128,72,191,.23)}
html[data-fn-theme=dark][data-fieldnote=computer-science]{--prism-accent:#9ae2ee;--prism-tint:rgba(106,207,223,.13);--prism-glow:rgba(40,141,166,.22)}
html[data-fn-theme] body,html[data-fn-theme][data-fieldnote] body{
  background:radial-gradient(ellipse 65% 670px at 3% 2%,var(--prism-glow),transparent 82%),
    radial-gradient(ellipse 62% 750px at 100% 280px,rgba(184,162,230,.2),transparent 80%),
    radial-gradient(ellipse 72% 800px at 15% 1250px,rgba(126,204,211,.17),transparent 85%),
    var(--fn-glass-base)!important;
}
html[data-fn-theme=dark] body,html[data-fn-theme=dark][data-fieldnote] body{
  background:radial-gradient(ellipse 65% 670px at 3% 2%,var(--prism-glow),transparent 82%),
    radial-gradient(ellipse 65% 750px at 100% 280px,rgba(92,66,148,.17),transparent 80%),
    radial-gradient(ellipse 72% 800px at 15% 1250px,rgba(39,123,134,.13),transparent 85%),
    var(--fn-glass-base)!important;
}
/* One glass plane per navigation region. Never blur the application wrapper:
   mobile drawer/modal containing blocks must remain native. */
html[data-fn-theme] .masthead,
html[data-fn-theme][data-fieldnote] :is(.chem-topbar,.topbar,.studio-topbar,.ref-topbar,.mq-top){
  border-color:var(--prism-border)!important;
  background:var(--fn-glass-header)!important;
  box-shadow:0 4px 26px rgba(39,44,99,.055),inset 0 -1px 0 var(--fn-glass-border)!important;
}
html[data-fn-theme] .masthead>.brand .brand-mark{
  background:linear-gradient(145deg,#6555b0,#334d88);color:#fff;border:1px solid rgba(255,255,255,.35);
  box-shadow:0 4px 12px rgba(76,65,149,.17);
}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail,.studio-sidebar [data-slot=sidebar-inner],.studio-sidebar[data-mobile=true]){
  background:linear-gradient(150deg,rgba(111,100,194,.18),transparent 58%),var(--prism-rail)!important;
  border-right-color:rgba(211,220,255,.18)!important;
  box-shadow:inset -1px 0 0 rgba(255,255,255,.035);
}
html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail,.studio-sidebar [data-slot=sidebar-inner]) nav :is(a,button){
  border-radius:14px!important;line-height:1.55;min-height:44px;
}
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),
html[data-fn-theme][data-fieldnote=arc] .studio-sidebar [data-slot=sidebar-menu-button][data-active=true]{
  background:linear-gradient(135deg,var(--prism-solid),color-mix(in srgb,var(--prism-solid) 76%,#394787))!important;
  color:#fff!important;border-color:rgba(230,232,255,.25)!important;
  box-shadow:0 5px 16px rgba(0,8,28,.15),inset 3px 0 0 rgba(255,255,255,.8)!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) :is(svg,span,strong,small){color:inherit!important}
/* The Physics rail stays dark in both modes. Native italic labels and an
   older light-mode selected rule must follow the final rail, not the lesson. */
html[data-fn-theme][data-fieldnote=physics] .site-shell .sidebar .topic-nav-copy :is(em,small,strong){color:#dbe6f6!important}
html[data-fn-theme][data-fieldnote=physics] .site-shell .sidebar .topic-nav-item.selected :is(em,small,strong){color:#fff!important}
html[data-fn-theme][data-fieldnote] .fn-nav-group{padding-top:8px;margin-top:12px;border-color:rgba(211,220,255,.17)}
html[data-fn-theme][data-fieldnote] .fn-nav-group>summary{padding-block:10px;min-height:44px}
html[data-fn-theme][data-fieldnote] :is(.fn-nav-group,.fn-study-summary,.fn-thai-support)>summary{cursor:pointer}
/* Tool controls remain solid enough for text; glass is a surrounding effect,
   not a transparent form. */
html[data-fn-theme] :is(.fn-appearance>summary,.fn-account-launch,.picker-button,.fn-focus-button,.fn-header-tips){
  border-radius:999px!important;border:1px solid var(--prism-border)!important;
  background:var(--prism-reading)!important;color:var(--fn-ink)!important;
}
html[data-fn-theme] .fn-pill-switch{padding:4px;border-radius:999px;border-color:var(--prism-border);background:var(--prism-inset)}
html[data-fn-theme] .fn-pill-switch button[aria-pressed=true]{box-shadow:0 3px 9px rgba(20,30,65,.1)}
html[data-fn-theme] :is(.fn-search-dialog,.fn-problem-dialog,.fn-display-panel){
  background:var(--fn-surface)!important;border:1px solid var(--prism-border);
  border-radius:22px;box-shadow:0 22px 75px rgba(7,19,44,.28);
}
html[data-fn-theme] .fn-search-dialog::backdrop,html[data-fn-theme] .fn-problem-dialog::backdrop{background:rgba(9,21,42,.58)}
html[data-fn-theme] :is(.fn-search-result,.fn-search-launch,.fn-study-header-actions>a){border-radius:14px!important}
html[data-fn-theme] .fn-search-launch{background:var(--prism-reading)!important;color:var(--fn-ink)!important;border-color:var(--prism-border)!important}
html[data-fn-theme] .fn-search-result:hover{background:var(--prism-tint)!important}
html[data-fn-theme] .fn-study-header-actions>a{background:var(--prism-reading)!important;border-color:var(--prism-border)!important}
html[data-fieldnote] :is(.fn-study-summary,.fn-lesson-example,.fn-reading-visual,.fn-thai-support){border-radius:18px;overflow-wrap:break-word}
html[data-fn-theme][data-fieldnote] :is(.fn-reading-visual,.fn-thai-support){background:var(--prism-reading)!important;border-color:var(--prism-border)!important;color:var(--fn-ink)}
html[data-fn-theme][data-fieldnote] :is(.fn-lesson-example,.fn-reading-visual)>summary{background:var(--prism-tint)!important;color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote] .fn-thai-support>summary{background:transparent!important;color:var(--fn-ink)!important}
html[data-fieldnote] :is(.fn-lesson-example,.fn-reading-visual)>summary{min-height:52px;padding:15px 18px;line-height:1.6}
/* Reference, recall and practice: the same visual language without changing
   scientific drawing colours, code tokens, scores or semantic feedback. */
html[data-fn-theme][data-fieldnote] :is(.ref-toolbar,.ref-links,.mq-controls,.mq-topics,.tips-grid .tips-card,.sim-library,.sim-toolbar,.formula-filter-row){
  border-radius:18px;border-color:var(--prism-border);background:var(--prism-card)!important;color:var(--fn-ink);
}
html[data-fn-theme][data-fieldnote] :is(.ref-card,.mq-topic,.tips-card,.formula-card,.formula-tool,.flashcard,.flashcard-face,.recall-card,.quiz-card,.practice-card){
  border-radius:22px!important;border-color:var(--prism-border)!important;
  background:var(--prism-reading)!important;box-shadow:0 8px 25px rgba(23,40,86,.055);
}
html[data-fn-theme][data-fieldnote] :is(.ref-card h2,.ref-card h3,.formula-name,.tips-card h2){color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote] :is(.ref-toolbar button,.mq-controls button,.mq-topic,.sim-library button,.formula-filter-row button){min-height:44px}
html[data-fn-theme][data-fieldnote] :is(.ref-toolbar button[aria-pressed=true],.mq-topic[aria-pressed=true],.formula-filter-row button.selected){
  background:var(--prism-solid)!important;color:white!important;border-color:var(--prism-solid)!important;
}
html[data-fn-theme] .fn-account-page .fn-account-card,
html[data-fn-theme] :is(.fn-review-topic,.fn-review-history){background:var(--prism-reading)!important;border-radius:24px;box-shadow:var(--prism-shadow);border-color:var(--prism-border)}
html[data-fn-theme] .fn-account-header{border-bottom-color:var(--prism-border)}
html[data-fn-theme] :is(.fn-account-card input,.fn-account-card textarea,.fn-search-form input){background:var(--fn-surface)!important;color:var(--fn-ink)!important;border-color:var(--fn-line)!important}
html[data-fn-theme] .fn-release-help{color:var(--fn-muted);border-color:var(--prism-border)}
html[data-fn-theme] :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid var(--prism-accent)!important;outline-offset:4px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  html[data-fn-theme] :is(.fn-search-launch,.fn-study-header-actions>a,.fn-account-launch,.fn-appearance>summary){transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
  html[data-fn-theme] :is(.fn-search-launch,.fn-study-header-actions>a,.fn-account-launch):hover{border-color:var(--prism-accent)!important;box-shadow:0 4px 12px rgba(43,51,111,.09)}
}
@media(max-width:820px){
  /* No blur on mobile drawer contents; only the single top bar can blur. */
  html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail,.studio-sidebar [data-slot=sidebar-inner],.studio-sidebar[data-mobile=true]){-webkit-backdrop-filter:none;backdrop-filter:none}
  html[data-fieldnote] :is(.fn-lesson-example,.fn-reading-visual)>summary{padding:13px 15px;min-height:48px}
  html[data-fn-theme] :is(.fn-search-dialog,.fn-problem-dialog){max-width:calc(100vw - 24px);border-radius:18px}
}
@media(max-width:600px){
  /* Five lesson actions fit one toolbar row even on a 320px phone.
     Preserve 44px touch targets and all previous/next/search/display actions. */
  html[data-fieldnote] .fn-study-header-actions:has([data-fn-inline-display]){gap:4px}
  html[data-fieldnote] .fn-study-header-actions>[data-fn-all-topics]{font-size:13px;padding:8px}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html[data-fn-theme]{--prism-card:var(--fn-surface);--fn-glass-header:var(--fn-surface);--prism-reading:var(--fn-surface)}
}
@media(prefers-reduced-transparency:reduce){
  html[data-fn-theme]{--prism-card:var(--fn-surface);--prism-reading:var(--fn-surface);--fn-glass-header:var(--fn-surface)}
  html[data-fn-theme] :is(.masthead,.chem-topbar,.topbar,.studio-topbar,.ref-topbar,.mq-top,.chem-rail,.sidebar,.business-desk-rail,.studio-sidebar [data-slot=sidebar-inner]){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
@media(prefers-reduced-motion:reduce){
  html[data-fn-theme] :is(.fn-search-launch,.fn-study-header-actions>a,.fn-account-launch,.fn-appearance>summary){transition:none!important;transform:none!important}
}
@media(forced-colors:active){
  html[data-fn-theme]{--prism-card:Canvas;--prism-reading:Canvas;--prism-inset:Canvas;--prism-border:CanvasText;--prism-accent:LinkText;--prism-solid:Highlight;--prism-shadow:none;--prism-rail:Canvas}
  html[data-fn-theme] body,html[data-fn-theme][data-fieldnote] body{background:Canvas!important}
  html[data-fn-theme][data-fieldnote] :is(.chem-rail,.sidebar,.business-desk-rail,.studio-sidebar [data-slot=sidebar-inner],.studio-sidebar[data-mobile=true]){background:Canvas!important;color:CanvasText!important;box-shadow:none}
  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:Highlight!important;color:HighlightText!important;box-shadow:none!important}
  html[data-fn-theme][data-fieldnote=physics] .site-shell .sidebar .topic-nav-copy :is(em,small,strong){color:CanvasText!important}
  html[data-fn-theme][data-fieldnote=physics] .site-shell .sidebar .topic-nav-item.selected :is(em,small,strong){color:HighlightText!important}
}
@media print{
  html[data-fn-theme]{--prism-card:white;--prism-reading:white;--prism-border:#bbb;--prism-shadow:none}
  html[data-fn-theme] body,html[data-fn-theme][data-fieldnote] body{background:white!important;color:#111}
}

/* prism-subjects.css */
/* Fieldnote Prism: six deliberately different learning desks.
   Colour belongs to orientation, discovery and tools. Lessons, code, charts
   and feedback retain quiet reading surfaces and their semantic colours.
   This layer never changes the geometry of native mobile navigation drawers. */
html[data-fieldnote]{
  --prism-subject-accent:var(--prism-accent,var(--atlas-accent));
  --prism-subject-tint:var(--prism-tint,var(--atlas-tint));
  --prism-subject-card:var(--prism-card,var(--fn-glass));
  --prism-subject-reading:var(--prism-reading,var(--fn-glass-reading));
  --prism-subject-edge:var(--prism-border,var(--fn-glass-edge));
  --prism-subject-wash:color-mix(in srgb,var(--prism-subject-accent) 7%,var(--prism-subject-card));
  --prism-subject-shadow:0 10px 26px rgba(28,47,89,.055),inset 0 1px 0 var(--fn-glass-border);
}
html[data-fn-theme=dark][data-fieldnote]{--prism-subject-shadow:0 10px 30px rgba(2,9,24,.18),inset 0 1px 0 rgba(218,231,255,.08)}

/* Every workspace gets a composed introduction and a distinct next-action
   shelf, rather than another stack of unrelated, equally loud cards. */
html[data-fn-theme][data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading){
  background:linear-gradient(115deg,var(--prism-subject-wash),var(--prism-subject-card) 80%)!important;
  border:1px solid var(--prism-subject-edge)!important;
  border-left:1px solid var(--prism-subject-edge)!important;
  border-bottom:3px solid color-mix(in srgb,var(--prism-subject-accent) 40%,var(--prism-subject-edge))!important;
  border-radius:26px!important;box-shadow:var(--prism-subject-shadow)!important;
  padding:clamp(22px,2.7vw,32px)!important;margin-bottom:24px;
}
html[data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading) h1{
  font-size:clamp(29px,3vw,42px)!important;max-width:24ch;line-height:1.2!important;
}
html[data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading) p:last-child{max-width:67ch}
html[data-fieldnote] :is(.section-head,.section-heading){gap:14px;align-items:center}
html[data-fieldnote] :is(.lesson-tools,.lesson-top){
  padding:12px 14px;border:1px solid var(--prism-subject-edge);border-radius:17px;
  background:var(--prism-subject-card);gap:10px 12px;margin-bottom:20px;min-width:0;
}
html[data-fieldnote] :is(.lesson-tools,.lesson-top)>a{
  display:inline-flex;align-items:center;gap:6px;min-height:44px;
  border-radius:11px;padding:9px 12px;text-decoration:none;line-height:1.5;
}
html[data-fieldnote] :is(.lesson-tools,.lesson-top)>a:first-child{
  background:var(--prism-subject-tint);color:var(--prism-subject-accent)!important;
  font-weight:700;border:1px solid var(--prism-subject-edge);
}
html[data-fieldnote] :is(.lesson-tools,.lesson-top)>a:hover{text-decoration:underline;text-underline-offset:4px}
html[data-fieldnote] .lesson-tools>button{margin-left:auto;max-width:100%}
html[data-fieldnote] .lesson-bottom{padding-top:20px;border-top:1px solid var(--prism-subject-edge);flex-wrap:wrap}
html[data-fn-theme][data-fieldnote] .fn-study-summary{
  border-radius:18px!important;background:var(--prism-subject-card)!important;
  box-shadow:none!important;margin-bottom:16px;
}
html[data-fieldnote] .fn-study-summary>summary{padding:17px 19px;min-height:56px;line-height:1.6}
html[data-fieldnote] .fn-study-summary[open]{border-color:var(--prism-subject-accent)!important}
html[data-fieldnote] .fn-study-summary-body{padding:0 19px 19px;line-height:1.75}
html[data-fieldnote] .fn-study-summary-body>div{display:flex;flex-wrap:wrap;gap:9px 16px}
html[data-fieldnote] .fn-study-summary-body>div>a{display:inline-flex;align-items:center;min-height:44px}

/* BIOLOGY — a field-journal start, a tidy index of living systems and an
   article/contents desk. Existing biological artwork remains untouched. */
html[data-fieldnote=biology] .dashboard-grid{grid-template-columns:minmax(0,1.7fr) minmax(245px,1fr);gap:22px;align-items:start}
html[data-fn-theme][data-fieldnote=biology] .study-card{
  grid-template-columns:minmax(0,1fr) 150px;gap:22px;min-height:270px;
  padding:30px!important;border-radius:27px!important;
  background:linear-gradient(125deg,var(--prism-subject-tint),var(--prism-subject-card))!important;
  border:1px solid var(--prism-subject-edge)!important;box-shadow:var(--prism-subject-shadow);
}
html[data-fieldnote=biology] .study-card h2{font-size:clamp(28px,3vw,38px)!important;max-width:21ch}
html[data-fieldnote=biology] .study-card .specimen{
  width:150px;max-width:100%;border-radius:27px;
  border:1px solid var(--prism-subject-edge);background:var(--prism-subject-reading)!important;
}
html[data-fn-theme][data-fieldnote=biology] .dashboard-side>.card{
  border:1px solid var(--prism-subject-edge);border-radius:22px;
  background:var(--prism-subject-card)!important;box-shadow:var(--prism-subject-shadow);padding:23px;
}
html[data-fn-theme][data-fieldnote=biology] .dashboard-side>.card.teal{background:var(--prism-subject-wash)!important}
html[data-fieldnote=biology] .stats-grid{gap:12px}
html[data-fn-theme][data-fieldnote=biology] .stats-grid>.card{
  padding:19px;border-radius:18px;border:1px solid var(--prism-subject-edge);
  background:var(--prism-subject-card)!important;box-shadow:none;
}
html[data-fieldnote=biology] .stats-grid .stat strong{font-size:30px!important;line-height:1.35}
html[data-fieldnote=biology] .topic-row{
  display:grid;grid-template-columns:44px minmax(0,1fr) auto;
  gap:13px;align-items:center;padding:16px 0;min-width:0;
}
html[data-fieldnote=biology] .topic-row>div{min-width:0}
html[data-fieldnote=biology] .topic-row h3{font-size:16px;line-height:1.5}
html[data-fieldnote=biology] .topic-row small{display:block;line-height:1.7}
html[data-fieldnote=biology] #lesson-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
html[data-fn-theme][data-fieldnote=biology] #lesson-results>.topic-card{
  display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px 16px;
  padding:22px!important;border-radius:23px!important;align-content:start;
  background:linear-gradient(135deg,var(--prism-subject-wash),var(--prism-subject-card) 75%)!important;
}
html[data-fieldnote=biology] #lesson-results .bio-tile-art{display:flex;grid-column:1/-1;margin:0 0 7px;height:80px;align-items:center;justify-content:center}
html[data-fieldnote=biology] #lesson-results .bio-tile-art svg{height:100px;width:145px}
html[data-fieldnote=biology] #lesson-results .topic-no{grid-column:1;grid-row:2/4;margin:0;width:48px;height:48px}
html[data-fieldnote=biology] #lesson-results :is(h3,p){grid-column:2;margin:0;min-height:0}
html[data-fieldnote=biology] #lesson-results h3{font-size:22px!important}
html[data-fieldnote=biology] #lesson-results :is(.flex,.success-mark){grid-column:1/-1}
html[data-fieldnote=biology] .toolbar{border:1px solid var(--prism-subject-edge);border-radius:18px;padding:17px;background:var(--prism-subject-card);gap:14px}
html[data-fieldnote=biology] .lesson-layout{grid-template-columns:minmax(0,1fr) 245px;gap:24px;align-items:start}
html[data-fieldnote=biology] .lesson-layout>article{
  background:var(--prism-subject-reading);border:1px solid var(--prism-subject-edge);
  border-radius:25px;padding:clamp(20px,2.7vw,34px);min-width:0;
}
html[data-fieldnote=biology] .lesson-layout .lesson-section{padding-block:22px;margin-bottom:10px;border-bottom:1px solid var(--prism-subject-edge)}
html[data-fieldnote=biology] .lesson-aside>.card{padding:20px;border-radius:20px!important;background:var(--prism-subject-card)!important}
html[data-fieldnote=biology] .lesson-aside a{line-height:1.6;padding-block:7px}
/* Section jumps must clear the native sticky header, including diagram links. */
html[data-fieldnote=biology] .lesson-layout :is(.lesson-section[id],#lesson-illustration,#lesson-visual){scroll-margin-top:100px}
html[data-fieldnote=arc] :is(.scroll-mt-24,[data-lesson-stage]){scroll-margin-top:100px}
html[data-fieldnote=physics] .physics-focused-workspace .subtopic-card[id]{scroll-margin-top:100px}
html[data-fieldnote=biology] .definition{grid-template-columns:minmax(105px,1fr) minmax(0,2.5fr);gap:14px}

/* PHYSICS — numbered chapter decks open into distinct lesson choices.
   The explicit Back/jump strip remains in flow, not another fixed toolbar. */
html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}
html[data-fn-theme][data-fieldnote=physics] .teacher-topic-picker .teacher-chapter{
  border-radius:23px!important;box-shadow:var(--prism-subject-shadow)!important;
  background:var(--prism-subject-card)!important;
}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter>summary{
  padding:22px;min-height:107px;gap:17px;
  background:linear-gradient(120deg,var(--prism-subject-wash),transparent)!important;
}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter-number{
  width:48px;height:48px;border-radius:15px;flex-shrink:0;
  background:var(--prism-subject-tint)!important;color:var(--prism-subject-accent)!important;
  border:1px solid var(--prism-subject-edge);font-family:inherit;font-size:17px;font-weight:700;line-height:1.3;
}
html[data-fieldnote=physics] .teacher-chapter-copy strong{font-size:19px!important;line-height:1.5!important}
html[data-fieldnote=physics] .teacher-chapter-copy small{font-size:13px!important;line-height:1.65}
html[data-fieldnote=physics] .teacher-chapter-toggle{width:28px;text-align:center;color:var(--prism-subject-accent);font-size:25px}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter[open]{grid-column:1/-1;border-color:var(--prism-subject-accent)!important}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter[open]>summary{border-bottom:1px solid var(--prism-subject-edge)}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter>ul{padding:15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter>ul>li{
  border:1px solid var(--prism-subject-edge);border-radius:16px;
  padding:18px;display:flex;flex-direction:column;gap:8px;
  background:var(--prism-subject-reading);min-width:0;
}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-section-title{align-items:flex-start;gap:10px;flex-wrap:wrap}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-section-title strong{line-height:1.6}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-coverage{align-self:flex-start}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-reading-links{margin-top:auto;padding-top:8px;justify-content:flex-start;max-width:none;gap:8px}
html[data-fieldnote=physics] .teacher-topic-picker .teacher-reading-links a{
  background:var(--prism-subject-tint)!important;color:var(--prism-subject-accent)!important;
  min-height:45px;padding:10px 14px;line-height:1.5;border-radius:11px;
}
/* Match the older glass :is() card group's type-selector specificity. */
html[data-fn-theme][data-fieldnote=physics] nav.physics-topic-switcher{
  /* A reading toolbar must not show earlier lesson links through its labels. */
  background:var(--prism-subject-reading)!important;border-bottom-color:var(--prism-subject-edge)!important;
  padding:14px 24px;gap:14px;
}
html[data-fieldnote=physics] .physics-topic-switcher>button:first-child{
  background:var(--prism-subject-tint)!important;color:var(--prism-subject-accent)!important;
  border-color:var(--prism-subject-edge)!important;box-shadow:none;min-height:46px;
}
html[data-fieldnote=physics] .physics-chapter-crumb{font-size:14px;line-height:1.6;min-width:0;overflow-wrap:anywhere}
html[data-fieldnote=physics] .physics-lesson-outline>div:last-child{gap:14px}
html[data-fn-theme][data-fieldnote=physics] .physics-lesson-outline button{
  min-height:82px;padding:20px;background:var(--prism-subject-card)!important;
  border-radius:20px!important;box-shadow:none!important;
}
html[data-fieldnote=physics] .physics-lesson-outline button>span:first-child{color:var(--prism-subject-accent);font-size:20px}
html[data-fn-theme][data-fieldnote=physics] .physics-focused-workspace .topic-hero{
  border:1px solid var(--prism-subject-edge)!important;border-radius:25px!important;
  background:linear-gradient(120deg,var(--prism-subject-wash),var(--prism-subject-card))!important;
  padding:28px!important;
}
html[data-fieldnote=physics] .physics-focused-workspace .subtopic-list{padding:12px 26px;background:var(--prism-subject-reading)!important;border-radius:25px}
html[data-fieldnote=physics] .physics-focused-workspace .subtopic-card{box-shadow:none!important;background:transparent!important}
html[data-fieldnote=physics] .fn-reading-focus{border:1px solid var(--prism-subject-edge);border-radius:16px;padding:12px 14px;background:var(--prism-subject-card);gap:12px}
html[data-fieldnote=physics] .right-rail .rail-card{background:var(--prism-subject-card)!important;border:1px solid var(--prism-subject-edge);border-radius:19px!important}

/* CHEMISTRY — compact diagram-led discovery cards; reactions stay in a
   single reading column with an unobtrusive lesson path beside them. */
html[data-fieldnote=chemistry] #topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
html[data-fn-theme][data-fieldnote=chemistry] #topic-grid>.topic-tile{
  display:grid;grid-template-columns:74px minmax(0,1fr);align-content:start;gap:9px 17px;
  padding:24px!important;min-height:225px;
  background:linear-gradient(125deg,var(--prism-subject-wash),var(--prism-subject-card) 77%)!important;
  border-radius:23px!important;
}
html[data-fieldnote=chemistry] #topic-grid .tile-top{grid-column:1/-1;margin:0 0 8px;align-items:center}
html[data-fieldnote=chemistry] #topic-grid .tile-icon{display:flex;grid-column:1;grid-row:2/4;margin:0;align-self:start;width:74px;height:74px;min-height:74px;max-width:100%;align-items:center;justify-content:center}
html[data-fieldnote=chemistry] #topic-grid .tile-icon svg{width:100%;height:90px}
html[data-fieldnote=chemistry] #topic-grid h3{grid-column:2;line-height:1.4!important;font-size:22px!important;margin:0}
html[data-fieldnote=chemistry] #topic-grid p{grid-column:2;font-size:15px!important;line-height:1.7!important;margin:0;flex:none}
html[data-fieldnote=chemistry] #topic-grid .tile-meta{grid-column:1/-1;margin-top:9px;padding-top:13px;font-size:13px}
html[data-fieldnote=chemistry] .lesson-grid{grid-template-columns:minmax(0,1fr) 250px;gap:24px}
html[data-fn-theme][data-fieldnote=chemistry] .lesson-paper{border-radius:25px!important;padding:clamp(22px,2.7vw,34px);background:var(--prism-subject-reading)!important}
html[data-fieldnote=chemistry] .visual-explanation{padding-bottom:8px}
html[data-fieldnote=chemistry] .notes-section{padding-block:27px}
html[data-fieldnote=chemistry] .notes-section h2{font-size:25px;line-height:1.4}
html[data-fieldnote=chemistry] .contents{padding:20px;border-radius:20px;background:var(--prism-subject-card)!important;border:1px solid var(--prism-subject-edge);gap:8px}
html[data-fieldnote=chemistry] .contents a{padding:9px 11px;border-radius:10px;line-height:1.65}
html[data-fieldnote=chemistry] .contents a:hover{background:var(--prism-subject-tint)}
html[data-fieldnote=chemistry] .equation{padding:17px 19px;border-radius:12px;border-left:3px solid var(--prism-subject-accent);line-height:1.8}

/* COMPUTER SCIENCE — unit index, a lab workbench and clear code/data lanes.
   Bit/gate states, code syntax and diagram colours are not overwritten. */
html[data-fieldnote=computer-science] #topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html[data-fn-theme][data-fieldnote=computer-science] #topic-grid>.topic-tile{
  min-height:215px;padding:24px!important;border-radius:23px!important;
  background:linear-gradient(135deg,var(--prism-subject-wash),var(--prism-subject-card) 75%)!important;
}
html[data-fieldnote=computer-science] #topic-grid .tile-top{margin-bottom:18px}
html[data-fieldnote=computer-science] #topic-grid h3{font-size:23px!important}
html[data-fieldnote=computer-science] #topic-grid .tile-meta{font-size:13px;line-height:1.75}
html[data-fieldnote=computer-science] .cs-topic-filters{gap:10px;flex:1;justify-content:flex-end;min-width:0}
html[data-fieldnote=computer-science] .cs-topic-filters :is(input,select){border-radius:12px;min-width:0}
html[data-fieldnote=computer-science] .lesson-grid{grid-template-columns:minmax(0,1fr) 250px;gap:24px}
html[data-fn-theme][data-fieldnote=computer-science] .lesson-paper{border-radius:25px!important;padding:clamp(22px,2.7vw,34px);background:var(--prism-subject-reading)!important}
html[data-fieldnote=computer-science] .contents{padding:20px;border-radius:20px;background:var(--prism-subject-card)!important;border:1px solid var(--prism-subject-edge)}
html[data-fieldnote=computer-science] .contents a{padding:8px 10px;border-radius:10px;line-height:1.7}
html[data-fieldnote=computer-science] .contents a:hover{background:var(--prism-subject-tint)}
html[data-fieldnote=computer-science] .cs-lab-tabs{padding:6px;background:var(--prism-subject-card);border:1px solid var(--prism-subject-edge);border-radius:17px;gap:6px}
html[data-fieldnote=computer-science] .cs-lab-tabs a{border-radius:11px;padding:11px 15px;line-height:1.5}
html[data-fn-theme][data-fieldnote=computer-science] :is(.cs-lab,.cs-calculator){
  border-radius:25px;border-color:var(--prism-subject-edge);background:var(--prism-subject-reading)!important;
  padding:clamp(22px,2.7vw,32px);
}
html[data-fieldnote=computer-science] .cs-lab-intro{padding-bottom:18px;border-bottom:1px solid var(--prism-subject-edge)}
html[data-fieldnote=computer-science] .cs-readouts{gap:13px}
html[data-fieldnote=computer-science] .cs-readouts>div{border-radius:16px;padding:18px;border-color:var(--prism-subject-edge)}
html[data-fieldnote=computer-science] .cs-readouts strong{font-size:24px;line-height:1.4}
html[data-fieldnote=computer-science] .cs-code{border-radius:16px;padding:21px;line-height:1.85;max-width:100%;overflow-x:auto;white-space:pre;tab-size:2}
html[data-fieldnote=computer-science] .cs-reference-grid{gap:18px}
html[data-fieldnote=computer-science] .cs-reference-grid .chem-formula-card{border-radius:22px;padding:24px}
html[data-fieldnote=computer-science] .cs-reference-grid details{border-top:1px solid var(--prism-subject-edge);padding-top:10px;margin-top:16px}
html[data-fieldnote=computer-science] .cs-reference-grid summary{min-height:44px;padding:9px 0;line-height:1.6}

/* BUSINESS — case-study desk and a scannable six-unit course index.
   The answer lab keeps its prompt, method and writing areas clearly apart. */
html[data-fn-theme][data-fieldnote=business] :is(.hero,.detail-hero){
  margin:26px 32px 22px;border:1px solid var(--prism-subject-edge)!important;border-radius:26px;
  padding:30px!important;background:linear-gradient(115deg,var(--prism-subject-wash),var(--prism-subject-card))!important;
  box-shadow:var(--prism-subject-shadow);min-width:0;
}
html[data-fieldnote=business] :is(.hero,.detail-hero) h1{max-width:25ch;font-size:clamp(30px,3.2vw,43px)!important;line-height:1.25!important}
html[data-fieldnote=business] .hero-actions{gap:12px;flex-wrap:wrap}
html[data-fieldnote=business] .desk-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
html[data-fn-theme][data-fieldnote=business] .desk-card{background:var(--prism-subject-card)!important;border-color:var(--prism-subject-edge);padding:23px;border-radius:22px!important;box-shadow:var(--prism-subject-shadow)}
html[data-fieldnote=business] .desk-card:first-child{background:var(--prism-subject-wash)!important}
html[data-fieldnote=business] .desk-card .inline-button{min-height:44px;padding-block:10px;line-height:1.5}
html[data-fieldnote=business] .unit-grid{gap:18px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
html[data-fn-theme][data-fieldnote=business] .unit-card{padding:25px!important;min-height:250px;display:flex;flex-direction:column;background:linear-gradient(125deg,var(--prism-subject-wash),var(--prism-subject-card) 78%)!important;border-radius:23px!important}
html[data-fieldnote=business] .unit-card .unit-card-top{gap:12px;margin-bottom:20px;align-items:center}
html[data-fieldnote=business] .unit-card h3{font-size:25px!important;line-height:1.35}
html[data-fieldnote=business] .unit-card .chapter-list{line-height:1.9;margin-block:12px}
html[data-fieldnote=business] .unit-card .unit-footer{margin-top:auto;padding-top:16px;border-top:1px solid var(--prism-subject-edge);gap:10px;flex-wrap:wrap}
html[data-fieldnote=business] .unit-card .open-topic-link{min-height:44px;line-height:1.6}
html[data-fieldnote=business] .detail-content{grid-template-columns:minmax(0,1fr) 245px;gap:24px}
html[data-fn-theme][data-fieldnote=business] .detail-main>div[id]{border-radius:23px;padding:28px;background:var(--prism-subject-reading)!important;border-color:var(--prism-subject-edge);margin-bottom:20px}
html[data-fieldnote=business] .detail-aside .detail-card{border-radius:19px!important;background:var(--prism-subject-card)!important;border:1px solid var(--prism-subject-edge);padding:21px}
html[data-fieldnote=business] .detail-jumpbar{border:1px solid var(--prism-subject-edge);border-radius:15px;gap:8px 14px;line-height:1.7;flex-wrap:wrap;background:var(--prism-subject-card)!important}
html[data-fieldnote=business] .detail-jumpbar a{display:inline-flex;align-items:center;min-height:36px}
html[data-fieldnote=business] .answer-lab-grid{gap:22px;align-items:start}
html[data-fieldnote=business] :is(.answer-prompt-card,.answer-method-card,.answer-writing-area,.model-answer-card){border-radius:22px!important;border-color:var(--prism-subject-edge);padding:24px;min-width:0}
html[data-fieldnote=business] .answer-model-list button{min-height:60px;gap:5px;line-height:1.6}
html[data-fieldnote=business] .answer-model-list button strong{font-size:14px}
html[data-fieldnote=business] .answer-model-list button span{font-size:12px;line-height:1.6}
html[data-fieldnote=business] .answer-prompt-card h3{font-size:clamp(24px,2.5vw,34px);line-height:1.4;letter-spacing:-.035em}
html[data-fieldnote=business] .case-study-cue{display:block}
html[data-fieldnote=business] .case-study-cue strong{display:block;font-size:12px;line-height:1.6;margin-bottom:6px}
html[data-fieldnote=business] .case-study-cue span{display:block;font-size:14px;line-height:1.8}
html[data-fieldnote=business] .answer-method-card h3{line-height:1.5}
html[data-fieldnote=business] .answer-method-card ol{font-size:14px;line-height:1.8}
html[data-fieldnote=business] .sentence-starter{font-size:14px;line-height:1.8}
html[data-fieldnote=business] .sentence-starter strong{font-size:12px;line-height:1.6;letter-spacing:.03em}
html[data-fieldnote=business] :is(.deep-dive-card>div>span,.chapter-example span,.chapter-exam-link span,.formula-example p){font-size:14px;line-height:1.8}
/* The native method desk was a dark card with white copy. Our light reading
   surface must own the foreground too, not leave that old white/yellow pair. */
html[data-fn-theme][data-fieldnote=business] .answer-method-card{background:var(--prism-subject-reading)!important;color:var(--fn-ink)!important;border:1px solid var(--prism-subject-edge)}
html[data-fn-theme][data-fieldnote=business] .answer-method-card h3{color:var(--fn-ink)!important}
html[data-fn-theme][data-fieldnote=business] .answer-method-card :is(ol,.sentence-starter){color:var(--fn-muted)!important}
html[data-fn-theme][data-fieldnote=business] .answer-method-card :is(.card-kicker,.sentence-starter strong,.inline-button){color:var(--prism-subject-accent)!important}
html[data-fn-theme][data-fieldnote=business] .answer-method-card .sentence-starter{border-color:var(--fn-line)}
html[data-fieldnote=business] .answer-method-card{background:var(--prism-subject-wash)!important}

/* MATHEMATICS — a constellation-like dashboard with distinct start/tools
   regions, well-spaced course groups and a clear staged working notebook. */
html[data-fieldnote=arc] .studio-page{max-width:1350px;padding:30px clamp(20px,3vw,36px) 46px}
html[data-fieldnote=arc] .studio-page>.grid:has(.studio-motif){gap:22px;align-items:stretch}
html[data-fieldnote=arc] .studio-page>.grid>section:has(.studio-motif){
  border:1px solid var(--prism-subject-edge);border-radius:27px;
  background:linear-gradient(120deg,#192d52,#1e4860)!important;
  min-height:285px;box-shadow:var(--prism-subject-shadow);padding:30px!important;
}
html[data-fieldnote=arc] .studio-page>.grid>section:has(.studio-motif) h1{font-size:clamp(29px,3.2vw,42px)!important;max-width:23ch;line-height:1.2}
html[data-fieldnote=arc] .studio-page .studio-motif{max-width:220px}
html[data-fn-theme][data-fieldnote=arc] .studio-panel{background:var(--prism-subject-card)!important;border-radius:24px!important;border-color:var(--prism-subject-edge)!important;box-shadow:var(--prism-subject-shadow)}
html[data-fieldnote=arc] .studio-metrics{border-radius:20px;background:var(--prism-subject-edge);border-color:var(--prism-subject-edge);gap:1px}
html[data-fn-theme][data-fieldnote=arc] .studio-metrics>a{background:var(--prism-subject-card)!important;padding:23px;min-width:0;line-height:1.6}
html[data-fieldnote=arc] .studio-metrics>a:hover{background:var(--prism-subject-wash)!important}
html[data-fn-theme][data-fieldnote=arc] .dashboard-link{border-radius:22px!important;padding:25px;min-height:170px;background:var(--prism-subject-card)!important;border-color:var(--prism-subject-edge);box-shadow:var(--prism-subject-shadow)}
html[data-fieldnote=arc] .studio-filter{border-radius:18px;background:var(--prism-subject-card)!important;border-color:var(--prism-subject-edge);padding:18px}
html[data-fn-theme][data-fieldnote=arc] .studio-course-group{border-radius:24px!important;border-color:var(--prism-subject-edge);background:var(--prism-subject-card)!important}
html[data-fieldnote=arc] .studio-course-group>summary{
  background:linear-gradient(115deg,var(--prism-subject-wash),var(--prism-subject-card))!important;
  padding:22px;min-height:90px;gap:16px;
}
html[data-fieldnote=arc] .studio-course-group[open]>summary{background:var(--prism-subject-tint)!important;border-bottom:1px solid var(--prism-subject-edge)}
html[data-fieldnote=arc] .studio-topic-row{padding:19px 22px;gap:15px;border-color:var(--prism-subject-edge);background:var(--prism-subject-reading);min-height:80px}
html[data-fieldnote=arc] .studio-topic-row:hover{background:var(--prism-subject-wash)!important}
html[data-fieldnote=arc] .studio-topic-row h3{font-size:16px;line-height:1.6}
html[data-fieldnote=arc] .studio-topic-row>div{min-width:0}
html[data-fieldnote=arc] .studio-lesson>.studio-panel{background:linear-gradient(120deg,var(--prism-subject-wash),var(--prism-subject-card))!important}
html[data-fieldnote=arc] .studio-lesson .lesson-card{border-radius:22px!important;background:var(--prism-subject-reading)!important;border-color:var(--prism-subject-edge);box-shadow:none!important}
/* Native amber notes must keep their warning meaning without a pale drawing
   canvas behind dark-mode lesson text. Leave diagrams and light mode alone. */
html[data-fn-theme=dark][data-fieldnote=arc] :is([class~="bg-amber-50"],[class~="bg-amber-50/40"],[class~="bg-amber-50/60"],[class~="bg-amber-100"]){background:var(--fn-warning-bg)!important;color:var(--fn-warning)!important}
html[data-fn-theme=dark][data-fieldnote=arc] :is([class~="bg-amber-50"],[class~="bg-amber-50/40"],[class~="bg-amber-50/60"],[class~="bg-amber-100"]) :is(h2,h3,h4,p,small,strong,span,label,[class~="text-amber-900"],[class~="text-amber-800"],[class~="text-amber-700"]){color:var(--fn-warning)!important}
html[data-fieldnote=arc] .studio-lesson .lesson-outline{padding:17px 0;gap:10px 18px;line-height:1.6;flex-wrap:wrap}
html[data-fieldnote=arc] .studio-lesson nav[aria-label="Lesson stages"]{border-radius:18px;padding:7px;gap:7px;background:var(--prism-subject-card);border-color:var(--prism-subject-edge)}
html[data-fieldnote=arc] .studio-lesson nav[aria-label="Lesson stages"] :is(a,button){border-radius:12px;min-height:44px;line-height:1.5}
html[data-fieldnote=arc] .axis-route{padding:25px;border-radius:24px;background:var(--prism-subject-wash)!important;border-color:var(--prism-subject-edge)}
html[data-fieldnote=arc] .axis-route-steps{gap:13px}
html[data-fieldnote=arc] .axis-route-steps>a{background:var(--prism-subject-card)!important;border-color:var(--prism-subject-edge);border-radius:16px;padding:18px;color:var(--fn-ink)}
html[data-fieldnote=arc] .axis-route-steps>a>span{color:var(--prism-subject-accent)}
html[data-fieldnote=arc] .axis-route-steps p{color:var(--fn-muted);line-height:1.75}

/* Practical/simulation/reference workspaces: an obvious model/content lane
   and a controls lane. Canvas resolution, labels and semantic states stay
   under their original renderers rather than this decorative CSS layer. */
html[data-fieldnote] :is(.sim-grid,.model-workspace){gap:22px}
html[data-fn-theme][data-fieldnote] :is(.sim-view,.sim-inspector,.sim-challenge){border-radius:24px;border-color:var(--prism-subject-edge);box-shadow:none}
html[data-fieldnote] .sim-view-heading{padding:22px 24px;background:var(--prism-subject-wash);gap:14px}
html[data-fieldnote] .sim-inspector{padding:24px}
html[data-fieldnote] .sim-inspector .sim-controls{gap:19px}
html[data-fieldnote] .sim-toolbar{padding:15px 19px;gap:10px}
html[data-fieldnote] .sim-challenge{padding:24px;margin-top:22px}
html[data-fieldnote] .sim-library{gap:8px;padding:7px;border-radius:19px;background:var(--prism-subject-card)}
html[data-fieldnote] .sim-library button{border-radius:13px;line-height:1.6;min-width:0}
html[data-fieldnote] .sim-library button[aria-pressed=true]{border-color:var(--prism-subject-accent)!important;box-shadow:inset 0 -3px 0 var(--prism-subject-accent)}
html[data-fieldnote] :is(.ref-card,.formula-card,.tips-card){border-radius:22px!important;border-color:var(--prism-subject-edge)!important}

/* The native scrolling containers own wide equations, diagrams and tables;
   avoid masking overflow on entire application wrappers or clipping labels. */
html[data-fieldnote] :is(.lesson-paper,.lesson-layout>article,.detail-main,.cs-lab,.cs-calculator,.studio-course-group){min-width:0}
html[data-fieldnote] :is(.cs-table-scroll,.table-wrap,.diagram-scroll,.reaction-table-wrap){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html[data-fieldnote] :is(.cs-code,.equation){overscroll-behavior-x:contain}
/* Small periodic tiles use their existing ellipsis, not a clipped second line.
   The original full-precision mass stays in the selected detail and label. */
html[data-fieldnote=chemistry] .pt-mass{white-space:nowrap}
html[data-fieldnote] :is(.topic-row,.studio-topic-row,.unit-card,.topic-tile,.teacher-chapter-copy) :is(h2,h3,h4,strong,p){overflow-wrap:break-word}

@media(min-width:821px) and (hover:hover) and (prefers-reduced-motion:no-preference){
  html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card,.dashboard-link,.teacher-chapter){transition:border-color .16s ease,box-shadow .16s ease}
  html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card,.dashboard-link):hover{border-color:var(--prism-subject-accent)!important;box-shadow:0 13px 29px rgba(26,43,81,.1)!important;transform:none!important}
}
@media(max-width:1180px){
  html[data-fieldnote=biology] .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  html[data-fieldnote=biology] .dashboard-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  html[data-fieldnote=biology] .lesson-layout,
  html[data-fieldnote=chemistry] .lesson-grid,
  html[data-fieldnote=computer-science] .lesson-grid,
  html[data-fieldnote=business] .detail-content{grid-template-columns:minmax(0,1fr)}
  html[data-fieldnote=business] .desk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-fieldnote=business] .desk-grid>.desk-card:last-child{grid-column:1/-1}
  html[data-fieldnote=chemistry] .contents,html[data-fieldnote=computer-science] .contents{position:static;grid-row:1;display:flex;flex-wrap:wrap;gap:6px}
  html[data-fieldnote=chemistry] .contents h3,html[data-fieldnote=computer-science] .contents h3{width:100%;margin-bottom:6px}
  html[data-fieldnote=chemistry] .contents p,html[data-fieldnote=computer-science] .contents p{display:none}
  html[data-fieldnote=biology] .lesson-aside{position:static;order:-1}
  html[data-fieldnote=biology] .lesson-aside>.card{display:flex;flex-wrap:wrap;gap:7px 15px;align-items:center}
  html[data-fieldnote=biology] .lesson-aside h3{width:100%;margin:0}
}
@media(max-width:820px){
  html[data-fieldnote=biology] .lesson-layout :is(.lesson-section[id],#lesson-illustration,#lesson-visual),
  html[data-fieldnote=arc] :is(.scroll-mt-24,[data-lesson-stage]){scroll-margin-top:148px}
  html[data-fieldnote=physics] .physics-focused-workspace .subtopic-card[id]{scroll-margin-top:200px}
  html[data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading){padding:22px!important;border-radius:22px!important;margin-bottom:20px}
  html[data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading) h1{font-size:29px!important;max-width:none}
  html[data-fieldnote] :is(.lesson-tools,.lesson-top){padding:10px;gap:8px;align-items:flex-start}
  html[data-fieldnote] .lesson-tools>button{margin-left:0}
  html[data-fieldnote=physics] .physics-topic-switcher{padding:13px 16px;flex-wrap:wrap;gap:10px}
  html[data-fieldnote=physics] .physics-topic-switcher label{flex-basis:100%;min-width:0}
  html[data-fieldnote=physics] .physics-topic-switcher select{width:100%;max-width:100%}
  html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter>summary{padding:19px;min-height:98px;gap:13px}
  html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter>ul{grid-template-columns:minmax(0,1fr);padding:12px}
  html[data-fieldnote=business] :is(.hero,.detail-hero){margin:20px 20px;padding:24px!important;border-radius:23px}
  html[data-fieldnote=arc] .studio-page{padding:23px 18px 38px}
  html[data-fieldnote=arc] .studio-page>.grid>section:has(.studio-motif){padding:25px!important;min-height:0}
  html[data-fieldnote] .sim-library{flex-wrap:wrap}
  html[data-fieldnote] .sim-library button{flex:1 1 145px}
  html[data-fieldnote] .sim-inspector{padding:21px}
  html[data-fieldnote] .sim-view-heading{padding:20px}
}
@media(max-width:600px){
  /* Keep the native menu and shared controls on one compact phone row.
     Physics' original actions are empty after the shared controls replace them. */
  html[data-fieldnote=physics] .topbar{flex-wrap:nowrap!important;gap:10px;min-height:64px;padding:10px 16px!important}
  html[data-fieldnote=physics] .topbar>.topbar-actions{display:none}
  html[data-fieldnote=physics] .topbar>.fn-study-header-actions:has([data-fn-inline-display]){flex:0 1 auto;width:auto;min-width:0;margin-left:auto;padding-top:0;flex-wrap:nowrap;gap:6px}
  html[data-fieldnote=physics] .content-inner>.fn-thai-support{margin:0 0 12px!important}
  html[data-fieldnote=physics] .content-inner>.course-mode-desk{margin-bottom:12px!important}
  html[data-fieldnote=physics] .content-inner>.physics-progress-drawer{margin:0 0 12px!important;box-shadow:none!important}
  html[data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading){padding:20px!important;border-radius:21px!important}
  html[data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading) h1{font-size:27px!important}
  html[data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading) p{font-size:15px!important;line-height:1.8}
  html[data-fieldnote=biology] :is(#lesson-results,.dashboard-side),
  html[data-fieldnote=chemistry] #topic-grid,
  html[data-fieldnote=computer-science] #topic-grid,
  html[data-fieldnote=business] :is(.desk-grid,.unit-grid),
  html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter-list{grid-template-columns:minmax(0,1fr)}
  html[data-fieldnote=biology] .study-card{grid-template-columns:minmax(0,1fr);padding:24px!important;min-height:0}
  html[data-fieldnote=biology] .study-card .specimen{display:none}
  html[data-fieldnote=biology] .study-card h2{font-size:30px!important}
  html[data-fieldnote=biology] .stats-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  html[data-fieldnote=biology] .stats-grid>.card{padding:16px 18px;gap:8px}
  html[data-fieldnote=biology] .stats-grid .stat strong{font-size:28px!important}
  html[data-fieldnote=biology] #lesson-results>.topic-card{padding:20px!important}
  html[data-fieldnote=biology] .lesson-layout>article{padding:19px;border-radius:21px}
  html[data-fieldnote=biology] .lesson-layout .lesson-section{padding-block:19px}
  html[data-fieldnote=biology] .definition{grid-template-columns:minmax(0,1fr);gap:7px}
  html[data-fieldnote=biology] .definition dt{margin-bottom:0}
  html[data-fieldnote=physics] .physics-lesson-outline>div:last-child{grid-template-columns:minmax(0,1fr)}
  html[data-fieldnote=physics] .teacher-chapter-copy strong{font-size:18px!important}
  html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter-number{width:42px;height:42px;font-size:16px}
  html[data-fieldnote=physics] .physics-focused-workspace .topic-hero{padding:21px!important}
  html[data-fieldnote=physics] .physics-focused-workspace .subtopic-list{padding:8px 17px;border-radius:21px}
  html[data-fieldnote=physics] .teacher-topic-picker .teacher-chapter>ul>li{padding:16px}
  html[data-fieldnote=chemistry] #topic-grid>.topic-tile{grid-template-columns:60px minmax(0,1fr);gap:8px 14px;padding:20px!important;min-height:0}
  html[data-fieldnote=chemistry] #topic-grid .tile-icon{width:60px;height:60px;min-height:60px}
  html[data-fieldnote=chemistry] #topic-grid h3{font-size:21px!important}
  html[data-fieldnote=chemistry] #topic-grid p{font-size:14px!important}
  html[data-fieldnote=chemistry] .lesson-paper,html[data-fieldnote=computer-science] .lesson-paper{padding:20px;border-radius:21px!important}
  html[data-fieldnote=chemistry] .contents,html[data-fieldnote=computer-science] .contents{display:flex;flex-wrap:nowrap;align-items:center;overflow-x:auto;max-width:100%;padding:12px;overscroll-behavior-x:contain}
  html[data-fieldnote=chemistry] .contents h3,html[data-fieldnote=computer-science] .contents h3{width:auto;flex-shrink:0;margin:0;font-size:14px}
  html[data-fieldnote=chemistry] .contents a,html[data-fieldnote=computer-science] .contents a{flex-shrink:0;padding:7px 9px;min-height:44px;max-width:180px;white-space:normal;font-size:13px;line-height:1.6}
  html[data-fieldnote=computer-science] #topic-grid>.topic-tile{min-height:0;padding:20px!important}
  html[data-fieldnote=computer-science] .cs-lab-tabs a{flex:1 1 115px;font-size:14px}
  html[data-fieldnote=computer-science] :is(.cs-lab,.cs-calculator){padding:19px;border-radius:21px}
  html[data-fieldnote=computer-science] .cs-readouts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  html[data-fieldnote=computer-science] .cs-readouts>div{padding:14px}
  html[data-fieldnote=computer-science] .cs-readouts strong{font-size:21px}
  html[data-fieldnote=computer-science] .cs-code{padding:16px;font-size:14px}
  html[data-fieldnote=computer-science] .cs-reference-grid{grid-template-columns:minmax(0,1fr)}
  html[data-fieldnote=business] :is(.hero,.detail-hero){margin:18px 16px;padding:22px!important}
  html[data-fieldnote=business] :is(.hero,.detail-hero) h1{font-size:30px!important}
  html[data-fieldnote=business] .desk-grid>.desk-card:last-child{grid-column:auto}
  html[data-fieldnote=business] .unit-card{padding:22px!important;min-height:0}
  html[data-fieldnote=business] .unit-card h3{font-size:23px!important}
  html[data-fieldnote=business] .detail-main>div[id]{padding:21px;border-radius:21px}
  html[data-fieldnote=business] :is(.answer-prompt-card,.answer-method-card,.answer-writing-area,.model-answer-card){padding:20px}
  html[data-fieldnote=arc] .studio-page{padding:22px 16px 34px}
  html[data-fieldnote=arc] .studio-metrics{grid-template-columns:minmax(0,1fr)}
  html[data-fieldnote=arc] .studio-metrics>a{padding:17px 20px}
  html[data-fieldnote=arc] .studio-course-group>summary{padding:19px;gap:12px;min-height:82px}
  html[data-fieldnote=arc] .studio-topic-row{padding:17px;grid-template-columns:28px minmax(0,1fr) 16px;gap:10px;min-height:78px}
  html[data-fieldnote=arc] .studio-topic-row h3{font-size:15px}
  html[data-fieldnote=arc] .axis-route{padding:21px}
  html[data-fieldnote=arc] .axis-route-steps{grid-template-columns:minmax(0,1fr)}
  html[data-fieldnote] .sim-library button{flex-basis:115px}
  html[data-fieldnote] .sim-library button span{display:block;font-size:12px;line-height:1.6}
  html[data-fieldnote] .sim-challenge{padding:20px;border-radius:21px}
}
@media(prefers-reduced-motion:reduce){
  html[data-fieldnote] :is(.topic-tile,.topic-card,.unit-card,.dashboard-link,.teacher-chapter){transition:none!important;transform:none!important}
}
@media(prefers-reduced-transparency:reduce){
  html[data-fieldnote]{--prism-subject-card:var(--fn-surface);--prism-subject-reading:var(--fn-surface);--prism-subject-wash:var(--fn-soft)}
}
@media(forced-colors:active){
  html[data-fieldnote]{--prism-subject-accent:LinkText;--prism-subject-tint:Canvas;--prism-subject-card:Canvas;--prism-subject-reading:Canvas;--prism-subject-wash:Canvas;--prism-subject-edge:CanvasText;--prism-subject-shadow:none}
  html[data-fieldnote=arc] .studio-page>.grid>section:has(.studio-motif){background:Canvas!important;color:CanvasText}
}
@media print{
  html[data-fieldnote]{--prism-subject-accent:#111;--prism-subject-tint:#fff;--prism-subject-card:#fff;--prism-subject-reading:#fff;--prism-subject-wash:#fff;--prism-subject-edge:#bbb;--prism-subject-shadow:none}
  html[data-fieldnote=biology] .lesson-layout>article{padding:0;border:0}
  html[data-fieldnote] :is(.page-heading,.page-header,.tool-header,.studio-heading,.ref-heading,.lesson-paper,.detail-main>div[id]){background:#fff!important;box-shadow:none!important;border-radius:0!important}
}

/* prism-home.css */
/* Homepage launchpad: six equal choices, one quiet next step.
   The subject illustrations are original inline SVG, not fetched assets.
   Glass lives in the shell; text, search and paper controls remain readable. */
html[data-fn-theme] #home.prism-home{
  max-width:1370px;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;padding:32px clamp(18px,4vw,58px) 32px;
}
#home.prism-home> :is(.home-welcome,.resume-panel,.section-label,.subjects,.paper-entry,.science-papers,.home-footer){grid-column:1/-1;min-width:0}
html[data-fn-theme] #home.prism-home .home-welcome{
  position:relative;isolation:isolate;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  align-items:center;gap:clamp(24px,4vw,56px);padding:30px 34px;margin:0;
  border:1px solid var(--prism-border,var(--fn-glass-border));border-radius:30px;
  background:linear-gradient(125deg,rgba(174,219,247,.2),transparent 47%,rgba(185,163,239,.12)),var(--prism-card,var(--fn-glass))!important;
  box-shadow:0 14px 40px rgba(44,62,94,.065),inset 0 1px 0 rgba(255,255,255,.48);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
#home.prism-home .home-welcome::before{
  content:"";position:absolute;pointer-events:none;inset:auto auto -60px -40px;
  width:210px;height:210px;border:1px solid var(--prism-border,var(--fn-glass-edge));
  border-radius:50%;z-index:-1;
}
#home.prism-home .intro{min-width:0;display:block;margin:0!important}
#home.prism-home .intro .eyebrow{
  color:var(--fn-muted);font-size:11px;font-weight:750;letter-spacing:.12em;
  display:flex;align-items:center;gap:9px;margin:0 0 12px;
}
#home.prism-home .intro .eyebrow::before{
  content:"";width:7px;height:7px;border-radius:50%;background:#6a8fea;
  box-shadow:0 0 0 5px rgba(106,143,234,.12);flex:none;
}
#home.prism-home .intro h1{
  font-size:clamp(30px,3.55vw,47px);font-weight:730;letter-spacing:-.045em;
  line-height:1.17;max-width:none;margin:0;
}
#home.prism-home .intro h1>span{color:#416abd}
html[data-fn-theme=dark] #home.prism-home .intro h1>span{color:#b8c8ff}
#home.prism-home .intro-note{font-size:15px;line-height:1.75;max-width:43ch;margin:12px 0 0;color:var(--fn-muted)}
#home.prism-home .intro-index{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-size:12px;color:var(--fn-muted)}
#home.prism-home .intro-index>span{
  border-radius:8px;width:29px;height:29px;font-size:12px;font-weight:750;letter-spacing:0;
  border:1px solid var(--prism-border,var(--fn-line));background:var(--fn-surface);color:var(--fn-ink);
}
html[data-fn-theme] #home.prism-home .home-finder{
  position:relative;min-width:0;padding:0!important;background:none!important;
  border:0;border-radius:0;box-shadow:none;margin:0;
}
#home.prism-home .prism-discovery-art{height:69px;max-width:255px;color:var(--fn-muted);margin:-6px 0 12px;opacity:.85}
#home.prism-home .prism-discovery-art svg{width:100%;height:100%;display:block;overflow:visible}
#home.prism-home .prism-orbit-maths{fill:#ddea9b;stroke:#849a42}
#home.prism-home .prism-orbit-bio{fill:#a9dfc2;stroke:#408765}
#home.prism-home .prism-orbit-physics{fill:#f6bcae;stroke:#b86754}
#home.prism-home .prism-orbit-chem{fill:#f4d99b;stroke:#ad873f}
#home.prism-home .prism-orbit-business{fill:#d2c1f0;stroke:#8c6bbf}
#home.prism-home .prism-orbit-computing{fill:#a9dce4;stroke:#4795a1}
#home.prism-home .home-finder h2{font-size:18px;line-height:1.45;font-weight:700;margin:0 0 6px;color:var(--fn-ink)}
#home.prism-home .home-finder p{display:block;font-size:13px;line-height:1.7;margin:0 0 16px;color:var(--fn-muted);max-width:42ch}
html[data-fn-theme] #home.prism-home .home-finder .fn-search-launch{
  min-height:52px;padding:12px 15px;font-size:14px;border-radius:15px;
  color:var(--fn-ink);background:var(--fn-surface)!important;
  border:1px solid var(--prism-border,var(--fn-line));box-shadow:0 4px 14px rgba(44,62,94,.055);
}
#home.prism-home .home-finder .fn-search-launch>svg{color:#6384c7}
#home.prism-home .home-finder kbd{font-size:11px;background:var(--fn-soft);border-radius:6px;box-shadow:none;border:1px solid var(--fn-line)}
#home.prism-home .section-label{margin:7px 0 -4px;gap:12px;align-items:center;flex-wrap:wrap}
#home.prism-home .section-label h2{font-size:23px;line-height:1.45;letter-spacing:-.035em}
#home.prism-home .section-label>span{font-size:12px;color:var(--fn-muted);letter-spacing:0}
html[data-fn-theme] #home.prism-home .subjects{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
html[data-fn-theme] #home.prism-home .subject.maths{--tone:#667d21;--prism-home-wash:rgba(216,232,140,.34);--prism-home-rim:rgba(120,151,40,.3)}
html[data-fn-theme] #home.prism-home .subject.biology{--tone:#207955;--prism-home-wash:rgba(130,213,178,.23);--prism-home-rim:rgba(49,151,101,.26)}
html[data-fn-theme] #home.prism-home .subject.physics{--tone:#b25243;--prism-home-wash:rgba(246,173,146,.23);--prism-home-rim:rgba(192,99,77,.28)}
html[data-fn-theme] #home.prism-home .subject.chemistry{--tone:#96671c;--prism-home-wash:rgba(244,211,129,.27);--prism-home-rim:rgba(167,125,39,.3)}
html[data-fn-theme] #home.prism-home .subject.business{--tone:#7852ad;--prism-home-wash:rgba(190,157,239,.24);--prism-home-rim:rgba(137,91,201,.28)}
html[data-fn-theme] #home.prism-home .subject.computing{--tone:#237b8b;--prism-home-wash:rgba(127,204,224,.25);--prism-home-rim:rgba(48,143,164,.28)}
html[data-fn-theme=dark] #home.prism-home .subject.maths{--tone:#d9ed88;--prism-home-wash:rgba(175,199,68,.13);--prism-home-rim:rgba(193,214,102,.24)}
html[data-fn-theme=dark] #home.prism-home .subject.biology{--tone:#9cdec0;--prism-home-wash:rgba(72,168,126,.16);--prism-home-rim:rgba(126,203,169,.23)}
html[data-fn-theme=dark] #home.prism-home .subject.physics{--tone:#ffb9a5;--prism-home-wash:rgba(198,119,94,.15);--prism-home-rim:rgba(230,161,139,.25)}
html[data-fn-theme=dark] #home.prism-home .subject.chemistry{--tone:#ecd097;--prism-home-wash:rgba(184,146,59,.16);--prism-home-rim:rgba(215,184,111,.23)}
html[data-fn-theme=dark] #home.prism-home .subject.business{--tone:#d6bbff;--prism-home-wash:rgba(158,118,214,.17);--prism-home-rim:rgba(187,155,237,.25)}
html[data-fn-theme=dark] #home.prism-home .subject.computing{--tone:#9fdaea;--prism-home-wash:rgba(58,145,179,.17);--prism-home-rim:rgba(108,188,213,.25)}
html[data-fn-theme] #home.prism-home .subjects .subject{
  display:flex;flex-direction:column;position:relative;isolation:isolate;overflow:hidden;
  min-height:288px;min-width:0;padding:20px 22px 0;border-radius:26px;
  color:var(--fn-ink);border:1px solid var(--prism-home-rim);
  background:linear-gradient(135deg,var(--prism-home-wash),transparent 68%),var(--prism-card,var(--fn-glass))!important;
  box-shadow:0 7px 24px rgba(31,52,89,.045),inset 0 1px 0 rgba(255,255,255,.45);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
html[data-fn-theme] #home.prism-home .subjects .subject::before{
  display:block!important;content:"";pointer-events:none;position:absolute;
  width:156px;height:156px;inset:-72px -60px auto auto;
  background:var(--prism-home-wash);border:1px solid var(--prism-home-rim);border-radius:50%;opacity:1;z-index:0;
}
#home.prism-home .subject .subject-symbol{
  position:absolute;inset:19px auto auto 22px;margin:0;
  width:43px;height:43px;font-size:27px;border-radius:14px;
  color:var(--tone);background:var(--fn-surface);
  border:1px solid var(--prism-home-rim);box-shadow:none;
}
#home.prism-home .subject .subject-symbol .fn-brand-icon{width:28px;height:28px}
#home.prism-home .subject .card-top{
  padding:0 0 0 58px;min-height:43px;flex-direction:column;align-items:flex-start;
  justify-content:center;gap:2px;position:relative;z-index:1;
}
#home.prism-home .subject .subject-number{display:block;font-size:10px;line-height:1.5;letter-spacing:.06em;color:var(--fn-muted)!important;font-weight:650;opacity:1;overflow-wrap:anywhere}
#home.prism-home .subject .course-code{border:0;padding:0;font-size:11px;line-height:1.5;letter-spacing:.02em;font-weight:650;color:var(--tone)!important;white-space:normal}
#home.prism-home .prism-subject-art{position:absolute;right:16px;top:62px;width:134px;height:75px;color:var(--tone);opacity:.77;pointer-events:none}
#home.prism-home .prism-subject-art svg{display:block;width:100%;height:100%}
#home.prism-home .subject .card-copy{position:relative;z-index:1;flex:1;margin:68px 0 0;padding:0 0 18px;min-width:0}
#home.prism-home .subject .card-copy h3{font-size:26px;line-height:1.25;font-weight:730;letter-spacing:-.04em;margin:0 0 8px;padding:0;color:var(--fn-ink)!important;overflow-wrap:normal}
#home.prism-home .subject .card-copy p{font-size:14px;line-height:1.75;max-width:34ch;margin:0;padding:0;color:var(--fn-muted)!important}
#home.prism-home .subject .tool-tags{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 0}
#home.prism-home .subject .tool-tags span{font-size:11px;line-height:1.4;color:var(--fn-muted);border-radius:7px;border:1px solid var(--prism-home-rim);padding:4px 7px;background:var(--fn-surface)}
#home.prism-home .subject .card-bottom{
  display:flex;flex-direction:row;align-items:center;gap:8px;min-height:54px;
  padding:12px 0 15px;border-color:var(--prism-home-rim);font-size:11px;line-height:1.6;color:var(--fn-muted)!important;
}
#home.prism-home .subject .card-bottom>span:first-child{max-width:60%;flex:1}
#home.prism-home .subject .open-label{margin-left:auto;display:flex;align-items:center;gap:8px;width:auto;padding:0;min-height:32px;white-space:normal;font-size:12px;line-height:1.5;color:var(--tone)!important;background:none}
#home.prism-home .subject .open-label::after{display:block;content:"↗";font-size:18px;line-height:1;transform:none;flex:none}
#home.prism-home .subject:hover .subject-symbol{transform:none}
/* Personal revision remains optional and compact, not another wall of cards. */
html[data-fn-theme] #home.prism-home :is(.fn-today,.fn-review-home){border-radius:20px!important;box-shadow:none!important;min-width:0;margin:0;align-self:stretch}
#home.prism-home .fn-today-summary{min-height:72px;padding:16px 19px}
#home.prism-home .fn-review-home{padding:18px 20px;gap:16px}
#home.prism-home .fn-review-home h2{font-size:16px;line-height:1.45}
#home.prism-home .fn-review-home p{font-size:13px;line-height:1.75}
#home.prism-home .resume-panel{margin:0;padding:19px 22px;gap:20px}
#home.prism-home .continue-button{border-radius:12px}
/* The paper link is deliberately outside the six-subject selection grid. */
html[data-fn-theme] #home.prism-home>.paper-entry{
  display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:18px;align-items:center;
  margin:0;padding:22px 25px;border-radius:24px!important;border:1px solid var(--prism-border,var(--fn-line))!important;
  background:linear-gradient(105deg,rgba(124,168,219,.15),transparent 75%),var(--prism-card,var(--fn-glass))!important;
  box-shadow:none!important;
}
#home.prism-home .prism-paper-symbol{width:50px;height:56px;padding:7px;border:1px solid var(--prism-border,var(--fn-line));border-radius:15px;background:var(--fn-surface);color:var(--fn-link,#416abd)}
#home.prism-home .prism-paper-symbol svg{width:100%;height:100%;display:block}
#home.prism-home .paper-entry .card-top{display:none}
#home.prism-home .paper-entry .card-copy{margin:0;padding:0;min-width:0}
#home.prism-home .paper-entry .card-copy h3{font-size:21px;line-height:1.35;margin:0 0 5px;color:var(--fn-ink)}
#home.prism-home .paper-entry .card-copy p{max-width:62ch;font-size:13px;line-height:1.75;color:var(--fn-muted)}
#home.prism-home .paper-entry .card-bottom{border:0;padding:0;margin:0;display:flex;justify-content:flex-end}
#home.prism-home .paper-entry .open-label{min-height:44px;display:flex;align-items:center;padding:10px 14px;border-radius:12px;font-size:13px;color:var(--fn-ink)!important;background:var(--fn-surface);border:1px solid var(--prism-border,var(--fn-line))}
html[data-fn-theme] #home.prism-home .science-papers{margin:0;padding:30px;border-radius:26px!important}
#home.prism-home .science-heading{margin-bottom:20px;padding-bottom:20px}
#home.prism-home .science-heading h2{font-size:28px!important;line-height:1.3;letter-spacing:-.035em}
#home.prism-home .science-heading .eyebrow{font-size:10px}
#home.prism-home .science-heading p:last-child{font-size:14px;line-height:1.7}
#home.prism-home .science-scope{font-size:14px;line-height:1.8}
#home.prism-home .science-code{font-size:22px;border-radius:15px;padding:14px 18px}
#home.prism-home .science-route-note{background:var(--fn-soft);border:1px solid var(--fn-line);border-radius:17px;font-size:13px;padding:16px 20px}
#home.prism-home .science-sources{background:var(--fn-soft);border:1px solid var(--fn-line);border-radius:18px}
#home.prism-home .science-sources h3{font-size:18px}
#home.prism-home .science-filters{border-radius:18px}
#home.prism-home .science-paper{border-radius:20px}
#home.prism-home .home-footer{padding-top:20px;font-size:13px;line-height:1.75;margin:0;align-items:flex-start}
#home.prism-home .home-footer p{max-width:62ch;font-size:12px;line-height:1.8}
#home.prism-home .home-footer{flex-wrap:wrap}
#home.prism-home .fn-resource-home-links{display:flex;flex-wrap:wrap;flex-basis:100%;gap:12px 22px;font-size:13px}
#home.prism-home .fn-resource-home-links a{color:inherit;text-underline-offset:.2em;min-height:44px;display:inline-flex;align-items:center}
@media(max-width:750px){#home.prism-home .home-footer{flex-wrap:nowrap}#home.prism-home .fn-resource-home-links{flex-basis:auto;width:100%}}
@media(min-width:900px) and (hover:hover) and (prefers-reduced-motion:no-preference){
  #home.prism-home .subject{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
  #home.prism-home .subject:hover{transform:translateY(-4px);border-color:var(--tone);box-shadow:0 14px 30px rgba(31,52,89,.12),inset 0 1px 0 rgba(255,255,255,.35)}
  #home.prism-home .paper-entry:hover{transform:translateY(-2px)}
}
@media(max-width:1000px){
  html[data-fn-theme] #home.prism-home{padding-inline:26px}
  html[data-fn-theme] #home.prism-home .home-welcome{padding:27px;gap:25px}
  #home.prism-home .intro h1{font-size:36px}
  #home.prism-home .subject .card-copy h3{font-size:23px}
  #home.prism-home .subject .card-bottom{flex-wrap:wrap}
  #home.prism-home .subject .card-bottom>span:first-child{max-width:none;flex-basis:100%}
  #home.prism-home .subject .open-label{margin-left:0}
}
@media(max-width:820px){
  html[data-fn-theme] #home.prism-home{grid-template-columns:1fr;gap:18px;padding-top:24px}
  html[data-fn-theme] #home.prism-home .home-welcome{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px;padding:24px}
  #home.prism-home .intro h1{font-size:31px}
  #home.prism-home .intro-note{font-size:13px;line-height:1.8}
  #home.prism-home .intro-index{font-size:11px;margin-top:14px}
  #home.prism-home .prism-discovery-art{height:52px;margin-bottom:10px}
  #home.prism-home .home-finder h2{font-size:16px}
  #home.prism-home .home-finder p{font-size:12px}
  html[data-fn-theme] #home.prism-home .subjects{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  #home.prism-home :is(.fn-today,.fn-review-home){grid-column:1/-1}
}
@media(max-width:600px){
  html[data-fn-theme] #home.prism-home{padding:18px 16px 28px!important;gap:16px}
  html[data-fn-theme] #home.prism-home .home-welcome{grid-template-columns:1fr;padding:22px!important;gap:18px;border-radius:25px}
  #home.prism-home .intro h1{font-size:31px!important;line-height:1.2;margin:0;letter-spacing:-.04em}
  #home.prism-home .intro .eyebrow{font-size:10px;margin-bottom:10px}
  #home.prism-home .intro-note{font-size:13px;line-height:1.8;margin:10px 0 0;max-width:none}
  #home.prism-home .intro-index{display:none}
  #home.prism-home .prism-discovery-art{display:none}
  #home.prism-home .home-finder h2,#home.prism-home .home-finder p{display:none}
  html[data-fn-theme] #home.prism-home .home-finder .fn-search-launch{min-height:48px;font-size:13px;padding:12px 13px}
  #home.prism-home .home-finder kbd{display:none}
  #home.prism-home .section-label{margin:0 0 -3px}
  #home.prism-home .section-label h2{font-size:20px;letter-spacing:-.025em}
  #home.prism-home .section-label>span{display:none}
  html[data-fn-theme] #home.prism-home .subjects{grid-template-columns:1fr;gap:14px}
  html[data-fn-theme] #home.prism-home .subjects .subject{min-height:0;padding:18px 20px 0;border-radius:24px}
  #home.prism-home .subject .subject-symbol{left:20px;top:17px;width:39px;height:39px;border-radius:12px;font-size:24px}
  #home.prism-home .subject .subject-symbol .fn-brand-icon{width:26px;height:26px}
  #home.prism-home .subject .card-top{padding-left:53px;padding-right:70px;min-height:39px}
  #home.prism-home .subject .subject-number{font-size:9px;letter-spacing:.035em}
  #home.prism-home .subject .course-code{font-size:10px}
  #home.prism-home .prism-subject-art{right:10px;top:13px;width:83px;height:46px;opacity:.6}
  #home.prism-home .subject .card-copy{margin:17px 0 0;padding-bottom:16px}
  #home.prism-home .subject .card-copy h3{font-size:23px;line-height:1.35;margin-bottom:7px}
  #home.prism-home .subject .card-copy p{font-size:13px;line-height:1.75;max-width:none}
  #home.prism-home .subject .tool-tags{display:none}
  #home.prism-home .subject .card-bottom{min-height:50px;padding:11px 0 14px;flex-wrap:nowrap;font-size:10px;gap:12px}
  #home.prism-home .subject .card-bottom>span:first-child{flex:1;flex-basis:auto;max-width:62%}
  #home.prism-home .subject .open-label{font-size:11px;white-space:normal;gap:6px;margin-left:auto}
  #home.prism-home .subject .open-label::after{font-size:17px}
  #home.prism-home .fn-today-summary{padding:15px 17px;min-height:66px}
  #home.prism-home .fn-review-home{padding:18px}
  html[data-fn-theme] #home.prism-home>.paper-entry{grid-template-columns:38px minmax(0,1fr);gap:12px;padding:20px;border-radius:23px!important}
  #home.prism-home .prism-paper-symbol{width:38px;height:44px;border-radius:12px;padding:5px}
  #home.prism-home .paper-entry .card-copy h3{font-size:19px}
  #home.prism-home .paper-entry .card-copy p{font-size:12px}
  #home.prism-home .paper-entry .card-bottom{grid-column:2;justify-content:flex-start}
  #home.prism-home .paper-entry .open-label{font-size:12px;padding:9px 12px}
  html[data-fn-theme] #home.prism-home .science-papers{padding:22px 18px;border-radius:24px!important}
  #home.prism-home .science-heading{gap:12px}
  #home.prism-home .science-heading h2{font-size:24px!important}
  #home.prism-home .science-heading p:last-child{font-size:12px}
  #home.prism-home .science-heading .eyebrow{font-size:9px;letter-spacing:.06em}
  #home.prism-home .science-code{font-size:16px;padding:10px 12px;flex:none}
  #home.prism-home .science-scope{font-size:13px}
  #home.prism-home .science-route-note{padding:15px;gap:13px;font-size:12px}
  #home.prism-home .home-footer{gap:12px}
  #home.prism-home .home-footer p{max-width:none}
}
@media(max-width:360px){
  #home.prism-home .intro h1{font-size:28px!important}
  html[data-fn-theme] #home.prism-home .home-welcome{padding:20px!important}
  #home.prism-home .subject .card-top{padding-right:56px}
  #home.prism-home .prism-subject-art{width:70px;right:8px}
}
@media(prefers-reduced-motion:reduce){
  #home.prism-home :is(.subject,.paper-entry,.subject-symbol,.open-label::after){transition:none!important;transform:none!important}
}
@media(prefers-reduced-transparency:reduce){
  html[data-fn-theme] #home.prism-home :is(.home-welcome,.subjects .subject,.paper-entry){background:var(--fn-surface)!important}
}
@media(forced-colors:active){
  #home.prism-home :is(.home-welcome,.subject,.paper-entry){background:Canvas!important;box-shadow:none!important;border-color:CanvasText!important}
  #home.prism-home :is(.prism-subject-art,.prism-discovery-art,.home-welcome::before,.subject::before){display:none!important}
  #home.prism-home :is(.subject-symbol,.subject .open-label,.subject .course-code){color:LinkText!important}
}
@media print{
  #home.prism-home :is(.home-welcome,.subject,.paper-entry){background:white!important;box-shadow:none!important;break-inside:avoid}
  #home.prism-home :is(.prism-discovery-art,.prism-subject-art,.home-welcome::before,.subject::before){display:none!important}
  #home.prism-home .subject .card-copy{margin-top:20px}
}
