/* Glass Study Studio. This final layer belongs to the subject homepage only.
   Colour is static; glass is reserved for the hero and the six subject tiles.
   Search, text and study controls keep enough body to stay readable. */
body:not(.subject-mode) #home.home-studio{
  --studio-ink:var(--fn-ink,#183b55);
  --studio-muted:var(--fn-muted,#526d81);
  --studio-glass:rgba(255,255,255,.73);
  --studio-solid:#f7f9ff;
  --studio-inset:rgba(255,255,255,.86);
  --studio-edge:rgba(100,112,162,.24);
  --studio-highlight:rgba(255,255,255,.92);
  --studio-shadow:0 12px 34px rgba(50,57,105,.065);
  --studio-accent:#6548b7;
  position:relative;isolation:isolate;
  display:grid;grid-template-columns:minmax(0,1fr) 272px;
  gap:22px 24px;max-width:1450px;margin:0 auto;
  padding:30px clamp(20px,3.8vw,54px) 34px;
  color:var(--studio-ink);background:transparent;
}
html[data-fn-theme=dark] body:not(.subject-mode) #home.home-studio{
  --studio-glass:rgba(30,42,66,.78);
  --studio-solid:#202e47;
  --studio-inset:rgba(39,54,80,.9);
  --studio-edge:rgba(182,198,233,.23);
  --studio-highlight:rgba(217,230,255,.15);
  --studio-shadow:0 12px 34px rgba(2,8,24,.18);
  --studio-accent:#d2bbff;
}
body:not(.subject-mode) #home.home-studio::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:0 8px 90px;border-radius:60px;
  background:radial-gradient(ellipse 52% 35% at 8% 14%,rgba(130,208,237,.25),transparent 80%),
    radial-gradient(ellipse 45% 36% at 88% 19%,rgba(178,142,245,.2),transparent 80%),
    radial-gradient(ellipse 48% 42% at 53% 70%,rgba(245,183,161,.15),transparent 85%);
}
body:not(.subject-mode) #home.home-studio> :is(.home-welcome,.studio-heading,.science-papers,.home-footer){grid-column:1/-1;min-width:0}
body:not(.subject-mode) #home.home-studio> :is(.studio-board,.studio-rail){min-width:0;align-self:start}
body:not(.subject-mode) #home.home-studio .home-welcome{
  position:relative;isolation:isolate;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.61fr);
  grid-template-rows:auto auto;gap:22px 34px;align-items:center;
  margin:0;padding:34px 38px 32px;border-radius:32px;
  border:1px solid var(--studio-edge);
  background:linear-gradient(115deg,rgba(190,220,250,.22),transparent 46%,rgba(211,177,251,.22)),var(--studio-solid)!important;
  box-shadow:var(--studio-shadow),inset 0 1px 0 var(--studio-highlight);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
body:not(.subject-mode) #home.home-studio .home-welcome::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:320px;height:320px;inset:auto auto -250px 32%;
  border:1px solid var(--studio-highlight);border-radius:50%;
  background:radial-gradient(circle,rgba(122,221,202,.28),transparent 74%);
}
body:not(.subject-mode) #home.home-studio .home-welcome::after{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:185px;height:185px;inset:-118px auto auto 35%;
  border:1px solid var(--studio-highlight);border-radius:50%;
}
body:not(.subject-mode) #home.home-studio .intro{grid-column:1;grid-row:1;display:block;min-width:0;margin:0!important}
body:not(.subject-mode) #home.home-studio .intro .eyebrow{
  display:flex;align-items:center;gap:10px;margin:0 0 15px;
  font-size:10px;font-weight:750;letter-spacing:.15em;color:var(--studio-muted);
}
body:not(.subject-mode) #home.home-studio .intro .eyebrow::before{
  content:"";flex:none;width:7px;height:7px;border-radius:50%;
  background:#8b6bdf;box-shadow:0 0 0 5px rgba(143,105,224,.13);
}
body:not(.subject-mode) #home.home-studio .intro h1{
  font-size:clamp(35px,4.25vw,59px);font-weight:740;
  line-height:1.12;letter-spacing:-.045em;max-width:none;margin:0;
}
body:not(.subject-mode) #home.home-studio .intro h1>span{color:var(--studio-accent)}
body:not(.subject-mode) #home.home-studio .intro-note{
  font-size:14px;line-height:1.8;max-width:48ch;margin:15px 0 0;color:var(--studio-muted);
}
body:not(.subject-mode) #home.home-studio .intro-index{display:none}
body:not(.subject-mode) #home.home-studio .home-finder{
  grid-column:1;grid-row:2;display:block;min-width:0;max-width:590px;
  padding:0!important;margin:0;background:none!important;border:0;border-radius:0;box-shadow:none;
}
body:not(.subject-mode) #home.home-studio .home-finder :is(.prism-discovery-art,h2,p){display:none}
body:not(.subject-mode) #home.home-studio .home-finder .fn-search-launch{
  display:flex;align-items:center;width:100%;min-height:55px;padding:13px 17px;
  border:1px solid var(--studio-edge)!important;border-radius:16px!important;
  color:var(--studio-ink)!important;background:var(--studio-inset)!important;
  box-shadow:0 5px 17px rgba(39,58,108,.06),inset 0 1px 0 var(--studio-highlight);
  font-size:14px;gap:11px;
}
body:not(.subject-mode) #home.home-studio .home-finder .fn-search-launch>svg{color:var(--studio-accent);flex:none}
body:not(.subject-mode) #home.home-studio .home-finder .fn-search-launch>span{text-align:left;white-space:normal}
body:not(.subject-mode) #home.home-studio .home-finder kbd{
  margin-left:auto;flex:none;padding:4px 6px;border:1px solid var(--studio-edge);
  border-radius:7px;font-size:10px;background:var(--fn-soft);box-shadow:none;
}
/* An original, noninteractive SVG constellation makes the glass tangible. */
body:not(.subject-mode) #home.home-studio .studio-orbit{
  grid-column:2;grid-row:1/3;min-width:0;align-self:center;
  display:flex;flex-direction:column;align-items:center;margin:-10px -15px 0 0;
  color:var(--studio-muted);pointer-events:none;
}
body:not(.subject-mode) #home.home-studio .studio-orbit>svg{display:block;width:100%;max-width:480px;height:auto;overflow:visible}
body:not(.subject-mode) #home.home-studio .studio-orbit-track{stroke:currentColor;stroke-width:1;fill:none;opacity:.28}
body:not(.subject-mode) #home.home-studio .studio-orbit-core{color:var(--studio-accent)}
body:not(.subject-mode) #home.home-studio .studio-orbit-core>rect{fill:var(--studio-inset);stroke:var(--studio-highlight);stroke-width:1.5}
body:not(.subject-mode) #home.home-studio .studio-orbit-core text{fill:currentColor;font-family:inherit;font-size:52px;font-weight:750;letter-spacing:-3px}
body:not(.subject-mode) #home.home-studio .studio-orbit-node{color:var(--tone);filter:drop-shadow(0 7px 8px rgba(61,56,116,.11))}
body:not(.subject-mode) #home.home-studio .studio-orbit-tile{fill:rgba(var(--studio-rgb),.3);stroke:var(--studio-highlight);stroke-width:1.5}
body:not(.subject-mode) #home.home-studio .studio-orbit-icon{stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none}
body:not(.subject-mode) #home.home-studio .studio-orbit-caption{
  margin:3px 0 0;text-align:center;font-size:11px;line-height:1.7;letter-spacing:.025em;color:var(--studio-muted);
}
body:not(.subject-mode) #home.home-studio :is(.subject.maths,.studio-orbit-maths){--tone:#657522;--studio-rgb:195,218,105}
body:not(.subject-mode) #home.home-studio :is(.subject.biology,.studio-orbit-biology){--tone:#197455;--studio-rgb:99,203,162}
body:not(.subject-mode) #home.home-studio :is(.subject.physics,.studio-orbit-physics){--tone:#ac4d3a;--studio-rgb:247,155,124}
body:not(.subject-mode) #home.home-studio :is(.subject.chemistry,.studio-orbit-chemistry){--tone:#906319;--studio-rgb:240,196,85}
body:not(.subject-mode) #home.home-studio :is(.subject.business,.studio-orbit-business){--tone:#7044a3;--studio-rgb:179,138,235}
body:not(.subject-mode) #home.home-studio :is(.subject.computing,.studio-orbit-computing){--tone:#1c7488;--studio-rgb:93,194,220}
html[data-fn-theme=dark] body:not(.subject-mode) #home.home-studio :is(.subject.maths,.studio-orbit-maths){--tone:#d8e994;--studio-rgb:164,188,70}
html[data-fn-theme=dark] body:not(.subject-mode) #home.home-studio :is(.subject.biology,.studio-orbit-biology){--tone:#96e0bf;--studio-rgb:53,167,124}
html[data-fn-theme=dark] body:not(.subject-mode) #home.home-studio :is(.subject.physics,.studio-orbit-physics){--tone:#ffb69f;--studio-rgb:215,115,91}
html[data-fn-theme=dark] body:not(.subject-mode) #home.home-studio :is(.subject.chemistry,.studio-orbit-chemistry){--tone:#f5d596;--studio-rgb:197,154,64}
html[data-fn-theme=dark] body:not(.subject-mode) #home.home-studio :is(.subject.business,.studio-orbit-business){--tone:#d3b5ff;--studio-rgb:155,106,218}
html[data-fn-theme=dark] body:not(.subject-mode) #home.home-studio :is(.subject.computing,.studio-orbit-computing){--tone:#9bdded;--studio-rgb:53,157,187}
body:not(.subject-mode) #home.home-studio .studio-heading{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin:6px 0 -5px;padding:0 2px;
}
body:not(.subject-mode) #home.home-studio .studio-heading h2{
  margin:0;font-size:23px;line-height:1.4;font-weight:720;letter-spacing:-.035em;color:var(--studio-ink);
}
body:not(.subject-mode) #home.home-studio .studio-heading>span{font-size:11px;line-height:1.8;letter-spacing:.025em;color:var(--studio-muted)}
body:not(.subject-mode) #home.home-studio .subjects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;min-width:0}
body:not(.subject-mode) #home.home-studio .subjects .subject{
  display:flex;flex-direction:column;grid-column:auto;position:relative;isolation:isolate;overflow:hidden;
  min-height:278px;min-width:0;padding:19px 19px 0;border-radius:24px;
  border:1px solid rgba(var(--studio-rgb),.34);color:var(--studio-ink);
  background:linear-gradient(140deg,rgba(var(--studio-rgb),.24),transparent 80%),var(--studio-solid)!important;
  box-shadow:0 6px 22px rgba(47,57,105,.045),inset 0 1px 0 var(--studio-highlight);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
body:not(.subject-mode) #home.home-studio .subjects .subject::before{
  content:"";display:block!important;position:absolute;z-index:-1;pointer-events:none;
  inset:-74px -65px auto auto;width:180px;height:180px;border-radius:50%;
  background:rgba(var(--studio-rgb),.18);border:1px solid rgba(var(--studio-rgb),.22);opacity:1;
}
body:not(.subject-mode) #home.home-studio .subjects .subject::after{
  content:"";position:absolute;pointer-events:none;inset:0;border-radius:inherit;
  border:1px solid transparent;border-top-color:var(--studio-highlight);
}
body:not(.subject-mode) #home.home-studio .subject .subject-symbol{
  position:absolute;inset:18px auto auto 19px;display:grid;place-items:center;margin:0;
  width:43px;height:43px;border-radius:14px;font-size:27px;opacity:1;
  color:var(--tone);background:var(--studio-inset);border:1px solid rgba(var(--studio-rgb),.3);box-shadow:0 2px 7px rgba(24,45,74,.03);
}
body:not(.subject-mode) #home.home-studio .subject .subject-symbol .fn-brand-icon{width:27px;height:27px}
body:not(.subject-mode) #home.home-studio .subject .card-top{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  min-height:43px;gap:2px;padding:0 0 0 55px;position:relative;z-index:1;
}
body:not(.subject-mode) #home.home-studio .subject .subject-number{
  display:block;font-size:9px;font-weight:650;line-height:1.6;letter-spacing:.035em;
  color:var(--studio-muted)!important;opacity:1;overflow-wrap:anywhere;
}
body:not(.subject-mode) #home.home-studio .subject .course-code{
  font-size:10px;font-weight:700;line-height:1.5;letter-spacing:.025em;
  color:var(--tone)!important;border:0;padding:0;white-space:normal;
}
body:not(.subject-mode) #home.home-studio .prism-subject-art{
  position:absolute;right:10px;top:57px;width:113px;height:64px;
  color:var(--tone);opacity:.54;pointer-events:none;
}
body:not(.subject-mode) #home.home-studio .subject .card-copy{
  position:relative;z-index:1;flex:1;min-width:0;margin:59px 0 0;padding:0 0 16px;
}
body:not(.subject-mode) #home.home-studio .subject .card-copy h3{
  margin:0 0 8px;padding:0;font-size:23px;font-weight:730;
  line-height:1.25;letter-spacing:-.035em;color:var(--studio-ink)!important;overflow-wrap:normal;
}
body:not(.subject-mode) #home.home-studio .subject .card-copy p{
  margin:0;padding:0;font-size:13px;line-height:1.75;max-width:32ch;color:var(--studio-muted)!important;
}
body:not(.subject-mode) #home.home-studio .subject .tool-tags{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0 0}
body:not(.subject-mode) #home.home-studio .subject .tool-tags span{
  padding:3px 6px;border-radius:7px;border:1px solid rgba(var(--studio-rgb),.27);
  color:var(--studio-muted);background:var(--studio-inset);font-size:10px;line-height:1.5;
}
body:not(.subject-mode) #home.home-studio .subject .card-bottom{
  display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:5px 8px;
  min-height:56px;padding:11px 0 14px;font-size:10px;line-height:1.55;
  border-color:rgba(var(--studio-rgb),.27);color:var(--studio-muted)!important;
}
body:not(.subject-mode) #home.home-studio .subject .card-bottom>span:first-child{max-width:100%;flex:1 1 100%}
body:not(.subject-mode) #home.home-studio .subject .open-label{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  width:100%;min-height:25px;margin:0;padding:0;font-size:11px;line-height:1.5;
  color:var(--tone)!important;background:none;white-space:normal;
}
body:not(.subject-mode) #home.home-studio .subject .open-label::after{display:block;content:"↗";flex:none;font-size:17px;line-height:1;transform:none}
body:not(.subject-mode) #home.home-studio .subjects .subject:hover{transform:none}
/* A single compact desk holds optional study state beside the subject board. */
body:not(.subject-mode) #home.home-studio .studio-rail{
  display:flex;flex-direction:column;gap:13px;padding:17px;border:1px solid var(--studio-edge);
  border-radius:26px;background:linear-gradient(155deg,rgba(172,180,238,.13),transparent 75%),var(--studio-glass);
  box-shadow:inset 0 1px 0 var(--studio-highlight);
}
body:not(.subject-mode) #home.home-studio #studio-rail-heading{
  margin:1px 2px 3px;font-size:14px;line-height:1.6;letter-spacing:-.01em;font-weight:700;color:var(--studio-muted);
}
body:not(.subject-mode) #home.home-studio .studio-rail> :is(.resume-panel,.fn-today,.fn-review-home,.paper-entry){
  grid-column:auto!important;min-width:0;margin:0;border-radius:18px!important;
  border:1px solid var(--studio-edge)!important;background:var(--studio-inset)!important;
  box-shadow:0 3px 10px rgba(18,39,67,.025)!important;color:var(--studio-ink);
}
body:not(.subject-mode) #home.home-studio .studio-rail .resume-panel{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:15px}
body:not(.subject-mode) #home.home-studio .resume-context{display:flex;align-items:flex-start;gap:10px;min-width:0}
body:not(.subject-mode) #home.home-studio .resume-mark{
  flex:0 0 30px;width:30px;height:32px;margin:0;border-radius:10px;
  background:var(--fn-soft);border-color:var(--studio-edge);color:var(--studio-accent);font-size:21px;
}
body:not(.subject-mode) #home.home-studio .resume-copy{display:block;min-width:0}
body:not(.subject-mode) #home.home-studio .resume-panel .resume-label{font-size:9px!important;line-height:1.7;letter-spacing:.055em!important;margin:0 0 6px!important;color:var(--studio-muted)!important}
body:not(.subject-mode) #home.home-studio .resume-name{display:block;margin:3px 0 0;font-size:10px;letter-spacing:0;color:var(--studio-accent)}
body:not(.subject-mode) #home.home-studio .resume-panel h2{font-size:17px;line-height:1.45;letter-spacing:-.025em;margin:0 0 6px;color:var(--studio-ink)}
body:not(.subject-mode) #home.home-studio .resume-panel .resume-detail{font-size:11px!important;line-height:1.75;margin:0 0 12px!important;color:var(--studio-muted)!important}
body:not(.subject-mode) #home.home-studio .continue-button{
  display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;width:100%;
  padding:9px 11px;border-radius:11px;border:1px solid var(--studio-edge);
  background:var(--fn-soft);font-size:11px;line-height:1.5;white-space:normal;color:var(--studio-ink);
}
body:not(.subject-mode) #home.home-studio .quick-study{border:0;border-top:1px solid var(--studio-edge);padding:12px 0 0;min-width:0}
body:not(.subject-mode) #home.home-studio .quick-heading{display:block;font-size:10px;line-height:1.6;margin:0 0 8px;color:var(--studio-muted)}
body:not(.subject-mode) #home.home-studio .quick-actions{display:flex;flex-direction:column;gap:6px}
body:not(.subject-mode) #home.home-studio .quick-action{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:39px;padding:8px 10px;border-radius:10px;background:var(--fn-soft);border:1px solid var(--studio-edge);color:var(--studio-ink)}
body:not(.subject-mode) #home.home-studio .quick-label{font-size:11px;line-height:1.6;white-space:normal}
body:not(.subject-mode) #home.home-studio .quick-icon{width:16px;height:16px;flex:none;color:var(--studio-accent)}
body:not(.subject-mode) #home.home-studio .quick-arrow{display:none}
body:not(.subject-mode) #home.home-studio :is(.continue-button,.quick-action):hover{background:var(--fn-soft);border-color:var(--studio-accent);transform:none}
body:not(.subject-mode) #home.home-studio .studio-rail .fn-today{display:block;padding:0;--learn-ink:var(--studio-ink);--learn-muted:var(--studio-muted);--learn-line:var(--studio-edge);--learn-accent:var(--studio-accent)}
body:not(.subject-mode) #home.home-studio .fn-today-summary{min-height:66px;padding:14px;gap:10px}
body:not(.subject-mode) #home.home-studio .fn-today-summary h2{font-size:14px;font-weight:700;line-height:1.5}
body:not(.subject-mode) #home.home-studio .fn-today-toggle{flex-basis:24px;width:24px;height:24px;font-size:17px}
body:not(.subject-mode) #home.home-studio .fn-today-body{padding:14px}
body:not(.subject-mode) #home.home-studio .fn-today-head{flex-direction:column;align-items:stretch;gap:10px}
body:not(.subject-mode) #home.home-studio .fn-today-head label{flex-direction:column;align-items:stretch;gap:6px;font-size:11px}
body:not(.subject-mode) #home.home-studio .fn-today select{width:100%;max-width:100%;min-height:44px;font-size:12px;padding:8px;background:var(--fn-soft);color:var(--studio-ink)}
body:not(.subject-mode) #home.home-studio .fn-today-topic{flex-direction:column;align-items:flex-start;gap:8px;margin:16px 0}
body:not(.subject-mode) #home.home-studio .fn-today-topic h3{font-size:14px;line-height:1.6}
body:not(.subject-mode) #home.home-studio .fn-today-topic p{font-size:11px;line-height:1.8}
body:not(.subject-mode) #home.home-studio :is(.fn-course-chip,.fn-session-time){font-size:10px;white-space:normal}
body:not(.subject-mode) #home.home-studio .fn-session-steps{grid-template-columns:1fr;border-radius:12px}
body:not(.subject-mode) #home.home-studio .fn-session-steps li{border-left:0;border-top:1px solid var(--studio-edge);padding:13px 10px;gap:8px;min-width:0}
body:not(.subject-mode) #home.home-studio .fn-session-steps li:first-child{border-top:0}
body:not(.subject-mode) #home.home-studio .fn-session-steps h4{font-size:12px;line-height:1.7}
body:not(.subject-mode) #home.home-studio .fn-session-steps h4 span{display:block;margin:1px 0 0;font-size:10px}
body:not(.subject-mode) #home.home-studio .fn-session-steps p{font-size:11px;line-height:1.8}
body:not(.subject-mode) #home.home-studio .fn-today a{font-size:11px;line-height:1.7;overflow-wrap:anywhere}
body:not(.subject-mode) #home.home-studio .fn-today .fn-learning-note{font-size:10px!important;line-height:1.8}
body:not(.subject-mode) #home.home-studio .studio-rail .fn-review-home{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:15px}
body:not(.subject-mode) #home.home-studio .fn-review-home h2{font-size:14px;line-height:1.5;font-weight:700}
body:not(.subject-mode) #home.home-studio .fn-review-home p{font-size:11px;line-height:1.85;margin:6px 0 0;color:var(--studio-muted)}
body:not(.subject-mode) #home.home-studio .fn-review-home a{display:flex;align-items:center;min-height:36px;font-size:11px;color:var(--studio-accent);text-underline-offset:3px}
body:not(.subject-mode) #home.home-studio .studio-rail .paper-entry{
  display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:9px 10px;
  padding:15px;text-decoration:none;min-height:0;
}
body:not(.subject-mode) #home.home-studio .paper-entry .prism-paper-symbol{width:32px;height:38px;padding:5px;border-radius:10px;border-color:var(--studio-edge);background:var(--fn-soft);color:var(--studio-accent)}
body:not(.subject-mode) #home.home-studio .paper-entry .card-top{display:none}
body:not(.subject-mode) #home.home-studio .paper-entry .card-copy{min-width:0;margin:0;padding:0}
body:not(.subject-mode) #home.home-studio .paper-entry .card-copy h3{font-size:14px;line-height:1.5;margin:0 0 6px;letter-spacing:-.015em;color:var(--studio-ink)}
body:not(.subject-mode) #home.home-studio .paper-entry .card-copy p{font-size:11px;line-height:1.8;margin:0;color:var(--studio-muted)}
body:not(.subject-mode) #home.home-studio .paper-entry .tool-tags{display:none}
body:not(.subject-mode) #home.home-studio .paper-entry .card-bottom{grid-column:2;border:0;margin:0;padding:0;justify-content:flex-start}
body:not(.subject-mode) #home.home-studio .paper-entry .open-label{
  display:flex;align-items:center;min-height:36px;padding:0;border:0;border-radius:0;
  font-size:11px;background:none;color:var(--studio-accent)!important;
}
body:not(.subject-mode) #home.home-studio .paper-entry .open-label::after{content:"↗";margin-left:7px}
body:not(.subject-mode) #home.home-studio .studio-rail .paper-entry:hover{transform:none;border-color:var(--studio-accent)!important}
body:not(.subject-mode) #home.home-studio .home-footer{
  display:flex;align-items:flex-start;flex-wrap:wrap;gap:14px 25px;margin:4px 0 0;padding:21px 2px 0;
  border-top:1px solid var(--studio-edge);font-size:12px;line-height:1.8;color:var(--studio-muted);
}
body:not(.subject-mode) #home.home-studio .home-footer p{font-size:11px;max-width:58ch;line-height:1.85}
body:not(.subject-mode) #home.home-studio :is(a,button,select,summary):focus-visible{outline:3px solid var(--studio-accent);outline-offset:4px}
body:not(.subject-mode) #home.home-studio .subject:focus-visible{outline-offset:5px}
/* Blur is an enhancement on separate surfaces, never on a parent wrapper. */
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  body:not(.subject-mode) #home.home-studio .home-welcome{
    background:linear-gradient(115deg,rgba(190,220,250,.22),transparent 46%,rgba(211,177,251,.22)),var(--studio-glass)!important;
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  }
  body:not(.subject-mode) #home.home-studio .subjects .subject{
    background:linear-gradient(140deg,rgba(var(--studio-rgb),.24),transparent 80%),var(--studio-glass)!important;
    -webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
  }
}
@media(min-width:1001px) and (hover:hover) and (prefers-reduced-motion:no-preference){
  body:not(.subject-mode) #home.home-studio .subjects .subject{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
  body:not(.subject-mode) #home.home-studio .subjects .subject:hover{
    transform:translateY(-4px);border-color:var(--tone);
    box-shadow:0 14px 29px rgba(44,49,104,.12),inset 0 1px 0 var(--studio-highlight);
  }
}
@media(max-width:1200px){
  body:not(.subject-mode) #home.home-studio{grid-template-columns:minmax(0,1fr) 252px;padding-inline:28px;gap:21px}
  body:not(.subject-mode) #home.home-studio .home-welcome{padding:30px;grid-template-columns:minmax(0,1fr) minmax(250px,.6fr);gap:20px 22px}
  body:not(.subject-mode) #home.home-studio .intro h1{font-size:clamp(35px,4.25vw,50px)}
  body:not(.subject-mode) #home.home-studio .subjects{gap:14px}
  body:not(.subject-mode) #home.home-studio .subjects .subject{padding-inline:16px}
  body:not(.subject-mode) #home.home-studio .subject .subject-symbol{left:16px}
  body:not(.subject-mode) #home.home-studio .subject .card-copy h3{font-size:21px}
  body:not(.subject-mode) #home.home-studio .subject .card-copy p{font-size:12px}
  body:not(.subject-mode) #home.home-studio .subject .tool-tags span{font-size:9px}
  body:not(.subject-mode) #home.home-studio .studio-rail{padding:14px;gap:12px}
}
@media(max-width:1000px){
  body:not(.subject-mode) #home.home-studio{grid-template-columns:minmax(0,1fr);gap:20px;padding:24px 26px 30px}
  body:not(.subject-mode) #home.home-studio .studio-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px;padding:19px}
  body:not(.subject-mode) #home.home-studio .studio-rail> :is(.resume-panel,.fn-today,.fn-review-home,.paper-entry){align-self:start}
  body:not(.subject-mode) #home.home-studio #studio-rail-heading{grid-column:1/-1;margin:0 2px 0}
  body:not(.subject-mode) #home.home-studio .subjects .subject{padding-inline:20px;min-height:276px}
  body:not(.subject-mode) #home.home-studio .subject .subject-symbol{left:20px}
  body:not(.subject-mode) #home.home-studio .subject .card-copy h3{font-size:23px}
  body:not(.subject-mode) #home.home-studio .subject .card-copy p{font-size:13px}
  body:not(.subject-mode) #home.home-studio .subject .tool-tags span{font-size:10px}
  body:not(.subject-mode) #home.home-studio .fn-review-home p{font-size:12px}
  body:not(.subject-mode) #home.home-studio .paper-entry .card-copy p{font-size:12px}
}
@media(max-width:820px){
  body:not(.subject-mode) #home.home-studio .home-welcome{grid-template-columns:minmax(0,1fr) minmax(210px,.57fr);padding:27px;gap:19px 16px}
  body:not(.subject-mode) #home.home-studio .intro h1{font-size:36px}
  body:not(.subject-mode) #home.home-studio .intro-note{font-size:13px;line-height:1.85}
  body:not(.subject-mode) #home.home-studio .studio-orbit{margin-right:-14px}
  body:not(.subject-mode) #home.home-studio .studio-orbit-caption{font-size:10px;max-width:24ch}
  body:not(.subject-mode) #home.home-studio .subjects{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  body:not(.subject-mode) #home.home-studio .subjects .subject{min-height:270px}
}
@media(max-width:600px){
  body:not(.subject-mode) #home.home-studio{padding:18px 16px 28px!important;gap:18px}
  body:not(.subject-mode) #home.home-studio .home-welcome{
    grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:21px;padding:24px 22px!important;
    border-radius:27px;background:linear-gradient(130deg,rgba(174,217,245,.22),transparent 55%,rgba(202,178,237,.23)),var(--studio-solid)!important;
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  body:not(.subject-mode) #home.home-studio .intro .eyebrow{font-size:9px;letter-spacing:.12em;margin-bottom:13px}
  body:not(.subject-mode) #home.home-studio .intro h1{font-size:clamp(30px,7.5vw,39px)!important;line-height:1.18;letter-spacing:-.04em}
  body:not(.subject-mode) #home.home-studio .intro-note{font-size:12px;margin-top:13px;line-height:1.85;max-width:none}
  body:not(.subject-mode) #home.home-studio .studio-orbit{display:none}
  body:not(.subject-mode) #home.home-studio .home-finder .fn-search-launch{min-height:49px;padding:12px 13px;font-size:12px;border-radius:14px!important;gap:9px}
  body:not(.subject-mode) #home.home-studio .home-finder kbd{display:none}
  body:not(.subject-mode) #home.home-studio .studio-heading{margin:3px 0 -3px;gap:3px}
  body:not(.subject-mode) #home.home-studio .studio-heading h2{font-size:20px}
  body:not(.subject-mode) #home.home-studio .studio-heading>span{display:block;font-size:10px;flex-basis:100%}
  body:not(.subject-mode) #home.home-studio .subjects{grid-template-columns:minmax(0,1fr);gap:13px}
  body:not(.subject-mode) #home.home-studio .subjects .subject{
    min-height:0;padding:18px 20px 0;border-radius:23px;
    background:linear-gradient(135deg,rgba(var(--studio-rgb),.23),transparent 82%),var(--studio-solid)!important;
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
  body:not(.subject-mode) #home.home-studio .subject .subject-symbol{top:17px;left:20px;width:39px;height:39px;border-radius:12px;font-size:25px}
  body:not(.subject-mode) #home.home-studio .subject .subject-symbol .fn-brand-icon{width:25px;height:25px}
  body:not(.subject-mode) #home.home-studio .subject .card-top{padding:0 70px 0 52px;min-height:39px}
  body:not(.subject-mode) #home.home-studio .subject .subject-number{font-size:9px;letter-spacing:.015em}
  body:not(.subject-mode) #home.home-studio .subject .course-code{font-size:10px}
  body:not(.subject-mode) #home.home-studio .prism-subject-art{top:15px;right:10px;width:80px;height:44px;opacity:.45}
  body:not(.subject-mode) #home.home-studio .subject .card-copy{margin:17px 0 0;padding-bottom:15px}
  body:not(.subject-mode) #home.home-studio .subject .card-copy h3{font-size:22px;line-height:1.4;margin-bottom:6px}
  body:not(.subject-mode) #home.home-studio .subject .card-copy p{font-size:12px;line-height:1.8;max-width:none}
  body:not(.subject-mode) #home.home-studio .subject .tool-tags{display:none}
  body:not(.subject-mode) #home.home-studio .subject .card-bottom{flex-wrap:nowrap;min-height:52px;padding:10px 0 14px;font-size:10px;gap:10px}
  body:not(.subject-mode) #home.home-studio .subject .card-bottom>span:first-child{flex:1;max-width:62%;flex-basis:auto}
  body:not(.subject-mode) #home.home-studio .subject .open-label{width:auto;min-height:28px;gap:8px;margin-left:auto;font-size:10px}
  body:not(.subject-mode) #home.home-studio .studio-rail{grid-template-columns:minmax(0,1fr);padding:16px;gap:12px;border-radius:24px}
  body:not(.subject-mode) #home.home-studio #studio-rail-heading{font-size:13px;margin-bottom:1px}
  body:not(.subject-mode) #home.home-studio .studio-rail> :is(.resume-panel,.fn-review-home,.paper-entry){padding:16px}
  body:not(.subject-mode) #home.home-studio .fn-today-summary{padding:15px 16px;min-height:65px}
  body:not(.subject-mode) #home.home-studio .fn-today-summary h2{font-size:14px}
  body:not(.subject-mode) #home.home-studio .fn-today-body{padding:16px}
  body:not(.subject-mode) #home.home-studio .fn-review-home a{font-size:12px;min-height:40px}
  body:not(.subject-mode) #home.home-studio .paper-entry .card-copy h3{font-size:15px}
  body:not(.subject-mode) #home.home-studio .paper-entry .open-label{font-size:12px}
  body:not(.subject-mode) #home.home-studio .home-footer{gap:12px;padding-top:18px;flex-wrap:wrap}
  body:not(.subject-mode) #home.home-studio .home-footer p{text-align:left;max-width:none;font-size:10px}
}
@media(max-width:360px){
  body:not(.subject-mode) #home.home-studio .home-welcome{padding:22px 18px!important}
  body:not(.subject-mode) #home.home-studio .intro h1{font-size:29px!important}
  body:not(.subject-mode) #home.home-studio .subjects .subject{padding-inline:18px}
  body:not(.subject-mode) #home.home-studio .subject .subject-symbol{left:18px}
  body:not(.subject-mode) #home.home-studio .subject .card-top{padding-right:61px}
  body:not(.subject-mode) #home.home-studio .prism-subject-art{width:68px;right:8px}
  body:not(.subject-mode) #home.home-studio .subject .card-copy h3{font-size:21px}
  body:not(.subject-mode) #home.home-studio .studio-rail{padding:13px}
}
html[data-fn-language=th] body:not(.subject-mode) #home.home-studio :is(h1,h2,h3,.eyebrow){letter-spacing:normal;line-height:1.5}
html[data-fn-language=th] body:not(.subject-mode) #home.home-studio .intro h1{line-height:1.35}
@media(prefers-reduced-motion:reduce){
  body:not(.subject-mode) #home.home-studio :is(.subject,.subject-symbol,.paper-entry,.quick-action,.continue-button),
  body:not(.subject-mode) #home.home-studio .open-label::after{transition:none!important;transform:none!important}
}
@media(prefers-reduced-transparency:reduce){
  html[data-fn-theme] body:not(.subject-mode) #home.home-studio{--studio-glass:var(--studio-solid);--studio-inset:var(--studio-solid)}
  body:not(.subject-mode) #home.home-studio::before{display:none}
  body:not(.subject-mode) #home.home-studio :is(.home-welcome,.subjects .subject,.studio-rail){
    background:var(--studio-solid)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  body:not(.subject-mode) #home.home-studio .studio-orbit-node{filter:none}
}
@media(forced-colors:active){
  html[data-fn-theme] body:not(.subject-mode) #home.home-studio{--studio-ink:CanvasText;--studio-muted:CanvasText;--studio-edge:CanvasText;--studio-solid:Canvas;--studio-inset:Canvas;--studio-accent:LinkText}
  body:not(.subject-mode) #home.home-studio::before,
  body:not(.subject-mode) #home.home-studio .home-welcome::before,
  body:not(.subject-mode) #home.home-studio .home-welcome::after,
  body:not(.subject-mode) #home.home-studio .subjects .subject::before,
  body:not(.subject-mode) #home.home-studio .subjects .subject::after{display:none!important}
  body:not(.subject-mode) #home.home-studio .studio-orbit{display:none}
  body:not(.subject-mode) #home.home-studio :is(.home-welcome,.subjects .subject,.studio-rail,.resume-panel,.fn-today,.fn-review-home,.paper-entry){
    background:Canvas!important;border:1px solid CanvasText!important;color:CanvasText!important;box-shadow:none!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  html[data-fn-theme] body:not(.subject-mode) #home.home-studio .subjects .subject{--tone:LinkText}
  body:not(.subject-mode) #home.home-studio .subject .subject-symbol{background:Canvas;border-color:CanvasText;color:CanvasText}
  body:not(.subject-mode) #home.home-studio .subject .tool-tags span{background:Canvas;border-color:CanvasText;color:CanvasText}
}
@media print{
  body:not(.subject-mode) #home.home-studio{display:block;padding:0!important;--studio-ink:#111;--studio-muted:#333;--studio-edge:#aaa}
  body:not(.subject-mode) #home.home-studio :is(.studio-orbit,.studio-rail,.home-finder){display:none}
  body:not(.subject-mode) #home.home-studio .subjects{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px}
  body:not(.subject-mode) #home.home-studio :is(.home-welcome,.subjects .subject){background:white!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;break-inside:avoid}
}
