/* English Guidance Language Academy — stylesheet
   Palette sampled directly from the logo file. Do not add new colours;
   if you need another shade, lighten or darken one of these. */

:root{
  --navy:#045597;        /* logo frame — headings, primary buttons */
  --blue:#0197D8;        /* logo upper mark */
  --mint:#00C0B4;        /* logo lower mark — the single accent */
  --deep-1:#063E6E;      /* corridor, dark end */
  --deep-2:#0F7F86;      /* corridor, light end */
  --wash:#EAF4FB;        /* pale blue background wash */
  --ink:#10222C;         /* body text */
  --grey:#5E6E77;        /* secondary text */
  --line:#D8E4EC;        /* hairlines */
  --paper:#FFFFFF;

  --max:1120px;
  --radius:10px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans Armenian','Noto Sans',-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:17px;
  line-height:1.6;
}
h1,h2,h3,.brand-name,.door-level,.stat-num{
  font-family:'Noto Sans','Noto Sans Armenian',sans-serif;
  font-weight:600;
  line-height:1.15;
  letter-spacing:-0.01em;
  margin:0 0 .5em;
}
h1{font-size:clamp(2rem,5vw,3.1rem)}
h2{font-size:clamp(1.5rem,3vw,2.1rem)}
h3{font-size:1.15rem}
p{margin:0 0 1em;max-width:66ch}
a{color:var(--navy)}
img{max-width:100%;display:block}

.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.section{padding:72px 0}
.section--wash{background:var(--wash)}
.lede{font-size:1.15rem;color:var(--grey);max-width:60ch}

/* ---------- header ---------- */
.site-head{
  position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.head-in{display:flex;align-items:center;gap:24px;padding:14px 24px;max-width:var(--max);margin:0 auto}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);margin-right:auto}
.brand img{width:34px;height:auto}
.brand-name{font-size:1.05rem;margin:0;line-height:1.05}
.brand-sub{display:block;font-size:.66rem;letter-spacing:.13em;color:var(--grey);text-transform:uppercase;font-family:'Noto Sans',sans-serif}
.nav{display:flex;gap:22px;align-items:center}
.nav a{text-decoration:none;color:var(--ink);font-size:.95rem;padding:4px 0;border-bottom:2px solid transparent}
.nav a:hover{border-bottom-color:var(--mint)}
.nav a[aria-current="page"]{border-bottom-color:var(--navy);font-weight:600}
.langs{display:flex;gap:2px;border:1px solid var(--line);border-radius:999px;padding:2px}
.langs button{
  border:0;background:none;cursor:pointer;border-radius:999px;
  padding:4px 11px;font:inherit;font-size:.82rem;color:var(--grey);
}
.langs button[aria-pressed="true"]{background:var(--navy);color:#fff}
.menu-btn{display:none}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;text-decoration:none;cursor:pointer;
  font:inherit;font-weight:600;font-size:1rem;
  padding:13px 26px;border-radius:var(--radius);border:1px solid transparent;
}
.btn--primary{background:var(--navy);color:#fff}
.btn--primary:hover{background:#03467c}
.btn--mint{background:var(--mint);color:#04333a}
.btn--mint:hover{background:#00aca2}
.btn--ghost{border-color:rgba(255,255,255,.5);color:#fff}
.btn--ghost:hover{background:rgba(255,255,255,.12)}
.btn--quiet{border-color:var(--line);color:var(--navy);background:#fff}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.45;pointer-events:none}

/* ---------- corridor ---------- */
.corridor{
  background:linear-gradient(103deg,var(--deep-1) 0%,#0A6383 58%,var(--deep-2) 100%);
  color:#fff;padding:64px 0 0;overflow:hidden;
}
.corridor h1{color:#fff;max-width:15ch;margin-bottom:.4em}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:end}
.hero-side{padding-bottom:6px}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:8px;align-items:start}
}
.corridor .lede{color:rgba(255,255,255,.82)}
.corridor-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.corridor-note{
  margin-top:26px;font-size:.85rem;color:rgba(255,255,255,.7);
  display:flex;align-items:center;gap:9px;
}
.dot{width:9px;height:9px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 4px rgba(0,192,180,.25)}

.doors{
  display:grid;grid-template-columns:repeat(6,1fr);gap:16px;
  margin-top:18px;padding-bottom:0;align-items:end;
}
.door{
  position:relative;display:block;width:100%;text-align:left;cursor:pointer;
  aspect-ratio:.56;
  display:flex;flex-direction:column;
  border:1px solid rgba(255,255,255,.18);
  border-bottom:0;
  border-radius:6px 6px 0 0;
  background:linear-gradient(178deg,#0B4573 0%,#072F53 100%);
  padding:20px 12px 44px;
  color:#fff;font:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  transition:transform .18s ease, box-shadow .18s ease;
}
.door::before{ /* recessed panel line */
  content:"";position:absolute;inset:10px 10px 36px;
  border:1px solid rgba(255,255,255,.10);border-radius:3px;
}
.door:hover,.door:focus-visible{transform:translateY(-6px)}
.door:focus-visible{outline:3px solid var(--mint);outline-offset:3px}
.door-level{
  display:block;font-size:1.45rem;text-align:center;margin:2px 0 0;color:#fff;
}
.door-plaque{
  display:block;position:relative;margin:14px 0 0;background:var(--wash);color:#0A3550;
  border-radius:2px;padding:7px 5px;text-align:center;
  font-size:.74rem;line-height:1.35;
}
.door-plaque b{display:block;font-size:.83rem;font-weight:600}
.door-status{
  position:absolute;left:10px;right:10px;bottom:16px;
  text-align:center;font-size:.7rem;color:rgba(255,255,255,.62);
}
.door-handle{
  position:absolute;right:15px;bottom:58px;width:9px;height:9px;border-radius:50%;
  background:rgba(255,255,255,.55);
}
.door.is-live{
  border-color:rgba(0,192,180,.75);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 34px rgba(0,192,180,.4);
}
.door.is-live .door-status{color:var(--mint);font-weight:600}
.door.is-live::after{ /* light under the door */
  content:"";position:absolute;left:6%;right:6%;bottom:-3px;height:7px;
  background:var(--mint);filter:blur(5px);opacity:.95;
}
.corridor-floor{
  height:26px;
  background:linear-gradient(180deg,rgba(0,0,0,.30),rgba(0,0,0,0));
  border-top:1px solid rgba(255,255,255,.28);
}

/* door dialog */
.door-dialog{
  border:0;border-radius:14px;padding:0;max-width:460px;width:calc(100% - 32px);
  box-shadow:0 24px 70px rgba(4,40,70,.4);
}
.door-dialog::backdrop{background:rgba(6,40,66,.55)}
.dlg-head{background:var(--navy);color:#fff;padding:20px 24px}
.dlg-head h3{color:#fff;margin:0 0 2px}
.dlg-head span{font-size:.85rem;color:rgba(255,255,255,.8)}
.dlg-body{padding:22px 24px 24px}
.dlg-body dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0 0 18px;font-size:.95rem}
.dlg-body dt{color:var(--grey)}
.dlg-body dd{margin:0}
.dlg-actions{display:flex;gap:10px;flex-wrap:wrap}
.dlg-close{
  position:absolute;top:14px;right:16px;background:none;border:0;color:#fff;
  font-size:1.5rem;line-height:1;cursor:pointer;padding:4px 8px;border-radius:6px;
}
.dlg-close:hover{background:rgba(255,255,255,.15)}

/* ---------- content blocks ---------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.point h3{margin-bottom:.35em}
.point p{color:var(--grey);margin:0}
.point .mark{width:34px;height:3px;background:var(--mint);margin-bottom:14px;border-radius:2px}

.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;
  display:flex;flex-direction:column;
}
.card .btn{margin-top:auto;align-self:flex-start}
.card--price{border-top:4px solid var(--navy)}
.price{font-family:'Noto Sans',sans-serif;font-size:1.7rem;color:var(--navy);margin:0 0 2px}
.price small{font-size:.85rem;color:var(--grey);font-weight:400}
.card ul{margin:0 0 20px;padding-left:1.1em;color:var(--grey)}
.card li{margin-bottom:.4em}

.teacher{display:grid;grid-template-columns:200px 1fr;gap:28px;align-items:start;
  padding:32px 0;border-top:1px solid var(--line)}
.teacher:first-of-type{border-top:0}
.teacher .video{
  aspect-ratio:3/4;background:var(--wash);border-radius:var(--radius);
  display:flex;align-items:center;justify-content:center;text-align:center;
  color:var(--grey);font-size:.85rem;padding:16px;border:1px dashed var(--line);
}
.teacher .video iframe,.teacher .video video{width:100%;height:100%;border:0;border-radius:var(--radius)}
.teacher-role{color:var(--mint);font-weight:600;font-size:.9rem;margin:0 0 6px}

/* ---------- forms / test ---------- */
.field{margin-bottom:18px;max-width:460px}
.field label{display:block;font-size:1.02rem;color:var(--ink);font-weight:600;margin-bottom:6px}
.field input,.field textarea,.field select{
  width:100%;font:inherit;padding:11px 13px;border:1px solid var(--line);
  border-radius:8px;background:#fff;color:var(--ink);
}
.field input:focus,.field textarea:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}

.q{padding:22px 0;border-top:1px solid var(--line)}
.q:first-of-type{border-top:0}
.q-num{font-family:'Noto Sans',sans-serif;color:var(--grey);font-size:1rem;margin-right:2px}
.q-line{font-size:1.05rem;margin:2px 0 12px}
.q p{font-size:1.05rem;margin:2px 0 12px}
.opts{display:flex;flex-direction:column;gap:8px;max-width:520px}
.opt{
  display:flex;align-items:center;gap:11px;padding:10px 14px;
  border:1px solid var(--line);border-radius:8px;cursor:pointer;
}
.opt:hover{border-color:var(--blue);background:var(--wash)}
.opt input{accent-color:var(--navy);width:18px;height:18px}
.opt:has(input:checked){border-color:var(--navy);background:var(--wash)}
.progress{
  position:sticky;bottom:0;background:rgba(255,255,255,.96);border-top:1px solid var(--line);
  padding:14px 0;display:flex;align-items:center;gap:18px;flex-wrap:wrap;
}
.progress-bar{flex:1;min-width:140px;height:6px;background:var(--wash);border-radius:3px;overflow:hidden}
.progress-bar i{display:block;height:100%;width:0;background:var(--mint);transition:width .3s}
.result{
  background:var(--wash);border-radius:var(--radius);padding:34px;text-align:center;max-width:560px;margin:0 auto;
}
.hidden{display:none !important}

/* ---------- footer ---------- */
.site-foot{background:var(--deep-1);color:rgba(255,255,255,.8);padding:44px 0 34px;margin-top:0}
.site-foot a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35)}
.foot-in{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;font-size:.92rem}
.foot-in img{width:40px;margin-bottom:12px}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .grid-3,.grid-2{grid-template-columns:1fr}
  .teacher{grid-template-columns:1fr}
  .teacher .video{aspect-ratio:16/9;max-width:340px}
  .doors{grid-template-columns:repeat(3,1fr);gap:12px}
}
@media (max-width:620px){
  .section{padding:52px 0}
  .doors{grid-template-columns:repeat(2,1fr)}
  .nav{
    display:none;position:absolute;top:100%;left:0;right:0;background:#fff;
    flex-direction:column;align-items:flex-start;gap:0;padding:8px 24px 16px;
    border-bottom:1px solid var(--line);
  }
  .nav.is-open{display:flex}
  .nav a{padding:11px 0;width:100%}
  .menu-btn{
    display:block;background:none;border:1px solid var(--line);border-radius:8px;
    padding:7px 11px;font-size:1.1rem;cursor:pointer;line-height:1;
  }
  .head-in{position:relative;gap:12px}
  .brand-sub{display:none}
  .brand-name{font-size:.98rem}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important}
}


/* ---------- home stage: depth + logo bird ---------- */
.stage{
  position:relative;overflow:hidden;
  background:linear-gradient(155deg,#033f74 0%,#08508A 42%,#12A0B6 78%,#21CEBB 100%);
  padding:78px 0 96px;isolation:isolate;
}
.stage-glow{
  position:absolute;inset:auto -10% -55% -10%;height:70%;
  background:radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.34),transparent 62%);
  filter:blur(6px);z-index:-1;pointer-events:none;
}
.stage::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:120px;
  background:linear-gradient(to top,rgba(2,26,48,.42),transparent);
  z-index:-1;pointer-events:none;
}
.stage-in{position:relative;text-align:center;perspective:1100px}
.eyebrow{
  color:rgba(255,255,255,.72);font-family:'Noto Sans',sans-serif;
  font-size:.74rem;letter-spacing:.19em;text-transform:uppercase;margin:0 0 20px;
}
.signature{
  color:#fff;margin:0 auto;max-width:24ch;font-size:clamp(1.85rem,4.1vw,3.1rem);
  line-height:1.14;text-shadow:0 6px 26px rgba(2,30,54,.4);
}
.signature span{display:block}
.signature-2{color:#BFF4EE;font-weight:500}
.stage-lede{
  color:rgba(255,255,255,.9)!important;margin:26px auto 0;max-width:54ch;
}
.stage-actions{display:flex;gap:13px;justify-content:center;flex-wrap:wrap;margin-top:32px}

/* the box the bird leaves */
.markbox{
  position:relative;width:150px;height:104px;margin:0 auto 20px;
}
.markbox-logo{
  position:absolute;left:50%;top:0;width:96px;height:auto;
  filter:drop-shadow(0 14px 26px rgba(1,22,42,.45));
  transform:translateX(-50%);
}

/* ---------- depth for the cards below ---------- */
.section--tilt{background:linear-gradient(180deg,#fff 0%,var(--wash) 100%)}
.point--lift{
  background:#fff;border-radius:16px;padding:26px 24px 28px;
  border:1px solid rgba(4,85,151,.10);
  box-shadow:0 22px 40px -26px rgba(4,60,110,.34),0 2px 5px rgba(4,60,110,.06);
  transform:translateZ(0);transition:transform .28s ease,box-shadow .28s ease;
}
.point--lift:hover{
  transform:translateY(-7px);
  box-shadow:0 34px 56px -26px rgba(4,60,110,.42),0 3px 8px rgba(4,60,110,.08);
}
.lift-grid{perspective:900px}
.btn--lift{
  box-shadow:0 12px 24px -12px rgba(2,32,58,.55);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.btn--lift:hover{transform:translateY(-3px);box-shadow:0 18px 30px -12px rgba(2,32,58,.6)}

/* deeper corridor perspective on the classes page */
.corridor .doors{perspective:1200px}

@media (prefers-reduced-motion: reduce){
  .point--lift,.btn--lift{transition:none}
}
@media (max-width:720px){
  .markbox{width:126px;height:112px}
  .markbox-box{width:94px;height:66px}
  .markbox-logo{width:62px}
  .stage{padding:56px 0 70px}
}

.btn--apply{padding:9px 17px;font-size:.9rem;white-space:nowrap;box-shadow:0 8px 18px -10px rgba(2,32,58,.5)}
.btn--white{background:#fff;color:var(--navy);font-weight:600}
.btn--white:hover{background:#EAF4FB}
@media (max-width:960px){.btn--apply{display:none}}

/* ---------- founder ---------- */
.founder-sec{background:#fff}
.founder{display:grid;grid-template-columns:.85fr 1.15fr;gap:48px;align-items:center}
.founder-photo{
  position:relative;border-radius:18px;overflow:hidden;background:var(--wash);
  box-shadow:0 34px 60px -30px rgba(4,60,110,.45);
  transform:rotate(-1.2deg);
}
.founder-photo img{width:100%;height:auto;display:block}
.founder-photo::after{
  content:"";position:absolute;inset:0;border-radius:18px;
  box-shadow:inset 0 0 0 1px rgba(4,85,151,.12);
}
.eyebrow--dark{color:var(--mint)}
.founder-text h2{margin:0 0 18px}
.founder-text p{color:var(--grey);margin:0 0 14px;max-width:52ch}
.founder-sign{display:flex;flex-direction:column;margin-top:22px!important}
.founder-sign b{color:var(--ink);font-family:'Noto Sans',sans-serif;font-size:1.1rem}
.founder-sign span{font-size:.88rem;color:var(--mint);font-weight:600}
@media (max-width:860px){
  .founder{grid-template-columns:1fr;gap:28px}
  .founder-photo{max-width:340px;margin:0 auto}
}

/* ---------- academy name dominant, saying secondary ---------- */
.schoolname{
  color:#fff;margin:0 0 18px;line-height:1.02;
  text-shadow:0 8px 30px rgba(2,30,54,.45);
}
.schoolname .sn-1{
  display:block;font-size:clamp(2.4rem,6.2vw,4.6rem);font-weight:700;letter-spacing:-.015em;
}
.schoolname .sn-2{
  display:block;margin-top:12px;font-family:'Noto Sans',sans-serif;font-weight:500;
  font-size:clamp(.78rem,1.5vw,1rem);letter-spacing:.24em;text-transform:uppercase;
  color:rgba(255,255,255,.78);
}
.signature{
  margin:0 auto;max-width:34ch;border:0;padding:0;
  font-size:clamp(1.02rem,1.9vw,1.32rem);font-style:italic;font-weight:400;
  color:#CFF6F0;line-height:1.5;position:relative;
}
.signature span{display:block}
.signature-2{color:rgba(207,246,240,.85)}
.signature::before{
  content:"";display:block;width:44px;height:2px;border-radius:2px;
  background:rgba(0,192,180,.85);margin:0 auto 16px;
}

/* ---- proof section ---- */
.proof-list{list-style:none;padding:0;margin:26px 0 0;display:grid;gap:14px}
.proof-list li{
  position:relative;padding-left:26px;font-size:1.12rem;color:var(--ink);line-height:1.5;
}
.proof-list li::before{
  content:"";position:absolute;left:0;top:.6em;width:14px;height:3px;
  background:var(--mint);border-radius:2px;
}
.hear-grid{display:grid;gap:22px;margin-top:22px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.hear{margin:0;padding:20px;background:#fff;border-radius:16px;box-shadow:0 6px 22px rgba(4,85,151,.08)}
.hear figcaption{font-weight:600;color:var(--navy);margin-bottom:12px}
.hear-row{display:flex;align-items:center;gap:12px;margin-top:10px}
.hear-row span{min-width:52px;font-size:.85rem;color:var(--grey)}
.hear-row audio{width:100%;max-width:230px}

/* ---- open doors: discussion club, pronunciation course ---- */
.door--open{border-color:var(--mint)}
.door--open .door-level{background:rgba(255,255,255,.10);color:#E7F2FA}
.door--open .door-plaque i{
  display:block;font-style:normal;font-size:.72rem;letter-spacing:.04em;
  text-transform:uppercase;color:var(--mint);margin-top:4px
}

/* ---- doors for groups being formed ---- */
.door--soon{border-style:dashed;opacity:.86}
.door--soon .door-level{background:rgba(255,255,255,.10);color:#E7F2FA}
.door--soon .door-plaque i{
  display:block;font-style:normal;font-size:.72rem;letter-spacing:.04em;
  text-transform:uppercase;color:var(--grey);margin-top:4px
}
.door--soon .door-handle{opacity:.45}

/* ============================================================
   DOORS — built to look like doors, not tiles.
   Frame, two recessed panels, three hinges, a lever handle on a
   backplate, a kick plate, and light under the door when a class
   is running.
   ============================================================ */

.doors{gap:26px 22px;align-items:end}

.door{
  padding:26px 14px 52px;
  border:0;
  border-radius:5px 5px 0 0;
  background:
    linear-gradient(90deg,rgba(255,255,255,.07) 0 2px,transparent 2px 100%),
    linear-gradient(177deg,#0E4E7E 0%,#0A3A62 46%,#072E51 100%);
  /* the frame: architrave down both sides and across the head */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.28),
    -7px 0 0 rgba(255,255,255,.055),
     7px 0 0 rgba(0,0,0,.20),
     0 -7px 0 rgba(255,255,255,.055),
     12px 10px 26px rgba(0,0,0,.30);
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.door::before{content:none}

/* --- recessed panels --- */
.door-panel{
  position:absolute;left:16px;right:16px;pointer-events:none;
  border-radius:2px;
  background:linear-gradient(177deg,rgba(0,0,0,.16),rgba(255,255,255,.03));
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,.42),
    inset 0 -1px 0 rgba(255,255,255,.10),
    0 1px 0 rgba(255,255,255,.07);
}
.door-panel--top{top:16px;height:44%}
.door-panel--bot{top:calc(44% + 30px);bottom:34px}

/* --- hinges on the opening edge --- */
.door-hinge{
  position:absolute;left:-2px;width:5px;height:26px;border-radius:1px;
  background:linear-gradient(90deg,#C8CFD4,#8C979E 55%,#5F6A71);
  box-shadow:0 1px 2px rgba(0,0,0,.45);
  pointer-events:none;
}
.door-hinge--1{top:11%}
.door-hinge--2{top:48%}
.door-hinge--3{top:85%}

/* --- lever handle on a round backplate --- */
.door-handle{
  position:absolute;right:14px;top:56%;width:15px;height:15px;border-radius:50%;
  background:radial-gradient(circle at 34% 30%,#F2F5F7,#B9C2C8 52%,#78848B);
  box-shadow:0 2px 4px rgba(0,0,0,.5), inset 0 -1px 0 rgba(0,0,0,.25);
  pointer-events:none;
}
.door-handle i{
  position:absolute;right:9px;top:5px;width:17px;height:5px;border-radius:3px;
  background:linear-gradient(180deg,#EDF1F3,#A9B3B9 60%,#6E7A81);
  box-shadow:0 2px 3px rgba(0,0,0,.45);
}

/* --- kick plate --- */
.door-kick{
  position:absolute;left:12px;right:12px;bottom:8px;height:14px;border-radius:2px;
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.03));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
  pointer-events:none;
}

/* --- what is written on the door --- */
.door-level{position:relative;z-index:2;letter-spacing:.02em;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.door-plaque{
  position:relative;z-index:2;
  background:linear-gradient(180deg,#F7FAFC,#DDE7EE);
  box-shadow:0 2px 5px rgba(0,0,0,.35), inset 0 1px 0 #fff;
  border-radius:3px;
}
.door-status{z-index:2}

/* --- the door swings a little when you reach for it --- */
.door:hover,.door:focus-visible{
  transform:translateY(-4px) perspective(900px) rotateY(-4deg);
  filter:brightness(1.06);
}

/* --- a class is running: warm light spills under and around --- */
.door.is-live{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.28),
    -7px 0 0 rgba(255,255,255,.055),
     7px 0 0 rgba(0,0,0,.20),
     0 -7px 0 rgba(0,192,180,.35),
     12px 10px 26px rgba(0,0,0,.30),
     0 0 40px rgba(0,192,180,.40);
}
.door.is-live::after{
  content:"";position:absolute;left:3%;right:3%;bottom:-5px;height:10px;
  background:var(--mint);filter:blur(6px);opacity:.95;
}

/* --- the two open doors: mint frame, brass-free plaque --- */
.door--open{background:
    linear-gradient(90deg,rgba(255,255,255,.07) 0 2px,transparent 2px 100%),
    linear-gradient(177deg,#0D5A6E 0%,#0A4457 46%,#07333F 100%)}
.door--open .door-panel{box-shadow:
    inset 0 2px 3px rgba(0,0,0,.38),
    inset 0 -1px 0 rgba(0,192,180,.22),
    0 1px 0 rgba(255,255,255,.07)}

/* --- doors for groups being formed: unpainted, no handle yet --- */
.door--soon{
  opacity:.9;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 9px),
    linear-gradient(177deg,#22415C 0%,#1B3550 50%,#152B42 100%);
}
.door--soon .door-handle{opacity:.3}
.door--soon .door-hinge{filter:saturate(.4) brightness(.8)}
.door--soon .door-plaque{background:linear-gradient(180deg,#E6EDF2,#CBD8E1)}

@media (max-width:640px){
  .doors{gap:20px 16px}
  .door{padding:20px 10px 44px}
  .door-panel--top{height:40%}
  .door-panel--bot{top:calc(40% + 24px)}
}

/* --- door proportions and spacing, corrected --- */
.door{
  aspect-ratio:.47;                 /* a real door is far taller than wide */
  padding:16px 14px 60px;
}
.door-level{font-size:1.25rem;margin-top:2px}
.door-panel--top{top:50px;height:34%}
.door-panel--bot{top:calc(50px + 34% + 20px);bottom:52px}
.door-plaque{margin-top:18px}
.door-kick{bottom:10px;height:12px;left:14px;right:14px}
.door-status{bottom:28px;font-size:.68rem;line-height:1.3}
.door-handle{top:58%;right:13px;width:16px;height:16px}
.door-hinge{left:-3px;width:6px}

/* the doors stand on the floor, so no shadow gap under them */
.corridor .doors{margin-bottom:0}
.corridor-floor{
  height:34px;
  background:
    linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.05)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 60px);
  border-top:2px solid rgba(255,255,255,.32);
}

/* --- one continuous corridor you scroll along, not a grid of tiles --- */
.corridor .doors{
  display:flex;flex-wrap:nowrap;align-items:flex-end;
  gap:26px;overflow-x:auto;overflow-y:visible;
  padding:0 4px 6px;margin:0;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent;
}
.corridor .door{flex:0 0 176px;scroll-snap-align:center}
.corridor .doors::-webkit-scrollbar{height:8px}
.corridor .doors::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:4px}
.corridor .doors::-webkit-scrollbar-track{background:transparent}
.corridor{overflow:visible}
.corridor-hint{
  margin:14px 0 0;font-size:.82rem;color:rgba(255,255,255,.62);
}
@media (max-width:640px){
  .corridor .door{flex:0 0 138px}
  .corridor .doors{gap:18px}
}
.corridor-hint{margin:0 0 16px;padding-left:4px}
.corridor .doors{padding-bottom:0}


/* ---- v19: tighter hero, signature band, smaller founder photo ---- */
.stage { padding:40px 0 46px }
.markbox { width:104px;height:92px;margin:0 auto 14px }
.markbox-logo { width:54px }
.schoolname { margin:0 0 14px }
.schoolname .sn-1 { font-size:clamp(2.1rem,5vw,3.6rem) }
.stage-actions { margin-top:26px }

.sigband { background:var(--wash,#EAF4FB);padding:54px 0 50px;text-align:center }
.sigband-in { display:block }
.sigband .signature { color:#045597;max-width:30ch;margin:0 auto;
  font-size:clamp(1.35rem,2.8vw,2.05rem);font-style:normal;font-weight:600;
  line-height:1.22;text-shadow:none; }
.sigband .signature-2 { color:#0197D8;font-weight:500 }
.sigband .signature::before { background:#00C0B4;margin:0 auto 18px }
.sigband-lede { color:#5E6E77!important;max-width:46ch;
  margin:26px 0 0 auto;text-align:right;font-size:.98rem;line-height:1.6; }
@media (max-width:720px){
  .sigband-lede { text-align:center;margin:22px auto 0 }
}

.founder-photo { max-width:250px }


/* ---- v19: classes page intro + warm doors ---- */
.classes-intro { background:linear-gradient(160deg,#08508A 0%,#0197D8 100%);
  color:#fff;padding:38px 0 34px; }
.classes-intro h1 { color:#fff;font-size:clamp(1.5rem,2.6vw,1.95rem);margin:0 0 .35em }
.classes-intro .lede { color:rgba(255,255,255,.86);font-size:.94rem;
  line-height:1.55;max-width:52ch;margin:0 }

/* real doors: warm timber instead of navy */
.corridor .door {
  background:
    linear-gradient(90deg,rgba(255,255,255,.05) 0 2px,transparent 2px 100%),
    linear-gradient(177deg,#9A6B43 0%,#7E5434 46%,#67431F 100%); }
.corridor .door--open {
  background:
    linear-gradient(90deg,rgba(255,255,255,.05) 0 2px,transparent 2px 100%),
    linear-gradient(177deg,#A87A4E 0%,#8B6038 46%,#6F4B26 100%); }
.corridor .door--soon {
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 9px),
    linear-gradient(177deg,#8A7666 0%,#6F5D50 50%,#57483D 100%); }
.corridor .door-plaque { background:linear-gradient(180deg,#F3E9D8,#DCC9AC);color:#3E2D16 }
.corridor .door-status { color:rgba(255,245,230,.7) }


/* ---- v20: chalkboard plaque, chalk handwriting ---- */
.corridor .door-plaque {
  background:
    radial-gradient(ellipse at 30% 20%,rgba(255,255,255,.05),transparent 60%),
    linear-gradient(180deg,#2E4238,#24352C);
  color:#F3F6F0;
  border:2px solid #8A6238;
  border-radius:3px;
  box-shadow:0 2px 6px rgba(0,0,0,.45), inset 0 0 18px rgba(0,0,0,.35);
  padding:9px 6px;
}
.corridor .door-plaque b,
.corridor .door-plaque u,
.corridor .door-plaque i,
.corridor .door-level {
  font-family:'Caveat',cursive;
  text-decoration:none;
  color:#F6F9F2;
  text-shadow:0 0 2px rgba(255,255,255,.35);
}
.corridor .door-plaque b { font-size:1.12rem;font-weight:700;letter-spacing:.01em }
.corridor .door-plaque u { display:block;margin-top:5px;
  font-size:.95rem;line-height:1.25;color:rgba(246,249,242,.82) }
.corridor .door-plaque i { color:#9FE9DF;font-size:.85rem;letter-spacing:0;text-transform:none }
.corridor .door-level { font-size:1.7rem;font-weight:700 }


/* ---- v20: knock on the door ---- */
.corridor .door.is-knocking { animation:doorShake .62s ease-out }
@keyframes doorShake {
  0%,100% { transform:translateY(0) }
  18% { transform:translateY(0) translateX(-1.5px) }
  26% { transform:translateY(0) translateX(1.5px) }
  46% { transform:translateY(0) translateX(-1.5px) }
  54% { transform:translateY(0) translateX(1.5px) }
}
.door-knock { position:absolute;right:26px;top:42%;width:30px;height:30px;
  z-index:5;pointer-events:none;
  border-radius:14px 14px 11px 11px;
  background:radial-gradient(circle at 36% 28%,#F6DFC6,#E2BE9A 58%,#C39A72);
  box-shadow:0 3px 7px rgba(0,0,0,.45), inset 0 -2px 0 rgba(0,0,0,.18);
  animation:knockTap .62s ease-out; }
.door-knock::before,.door-knock::after {
  content:"";position:absolute;left:5px;right:5px;height:1.5px;border-radius:2px;
  background:rgba(140,100,66,.55); }
.door-knock::before { top:11px }
.door-knock::after  { top:17px }
@keyframes knockTap {
  0%   { opacity:0;transform:translateX(26px) scale(.9) }
  22%  { opacity:1;transform:translateX(0) scale(1) }
  38%  { transform:translateX(9px) scale(.98) }
  54%  { transform:translateX(0) scale(1) }
  70%  { transform:translateX(9px) scale(.98) }
  86%  { opacity:1;transform:translateX(0) scale(1) }
  100% { opacity:0;transform:translateX(18px) scale(.95) }
}


/* ---- v21: more air between doors ---- */
.corridor .doors { gap:52px }
@media (max-width:720px){ .corridor .doors { gap:34px } }


/* ---- v22: rising level diagram on the door ---- */
.corridor .door-level { display:flex;align-items:flex-end;justify-content:center;gap:8px }
.lvl-steps { display:inline-flex;align-items:flex-end;gap:2.5px;height:22px;
  font-style:normal;position:relative;top:-2px; }
.lvl-steps b { display:block;width:4px;border-radius:1.5px;
  background:rgba(255,255,255,.22);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10); }
.lvl-steps b.on { background:linear-gradient(180deg,#7CF0E3,#00C0B4);
  box-shadow:0 0 6px rgba(0,192,180,.55) }


/* ================= v24: design modernisation ================= */

/* --- rhythm & type --- */
body { font-size:1.02rem;line-height:1.66;color:#10222C }
h2 { font-size:clamp(1.6rem,3vw,2.3rem);letter-spacing:-.018em;line-height:1.12 }
h3 { font-size:1.12rem }
.section { padding:74px 0 }
.lede { font-size:1.06rem;max-width:58ch }

/* --- eyebrows: sentence case, mint rule, no caps --- */
.eyebrow,.eyebrow--dark { text-transform:none;letter-spacing:0;font-weight:600;
  color:#0197D8;font-size:.92rem;display:flex;align-items:center;gap:10px }
.eyebrow::before,.eyebrow--dark::before { content:"";width:26px;height:2px;
  border-radius:2px;background:#00C0B4 }

/* --- washes: never hospital white --- */
.section--wash,.sigband { background:linear-gradient(180deg,#EDF5FA,#E4F0F7) }
.section--tilt { background:#F4F9FC }

/* --- differentiators: quiet ruled list instead of card kit --- */
.lift-grid { gap:0;border-top:1px solid rgba(4,85,151,.14) }
.point--lift { background:none;box-shadow:none;border-radius:0;padding:26px 26px 26px 0;
  border-bottom:1px solid rgba(4,85,151,.14);transform:none }
.point--lift:hover { transform:none;box-shadow:none }
.point--lift .mark { width:9px;height:9px;border-radius:50%;
  background:#00C0B4;box-shadow:0 0 0 5px rgba(0,192,180,.14);margin-bottom:14px }
@media (min-width:721px){
  .lift-grid { border-top:0 }
  .point--lift { border-bottom:0;border-left:1px solid rgba(4,85,151,.14);padding-left:26px }
  .point--lift:first-child { border-left:0;padding-left:0 }
}

/* --- buttons: clearer hierarchy, calmer radius --- */
.btn { border-radius:9px;font-weight:600;letter-spacing:.005em }
.btn--mint { box-shadow:0 10px 22px -10px rgba(0,192,180,.55) }
.btn--primary { box-shadow:0 10px 22px -10px rgba(4,85,151,.5) }

/* --- courses: featured middle card --- */
.card--price { border:1px solid rgba(4,85,151,.12);box-shadow:none;border-radius:14px }
.card--price:hover { transform:none }
.card--feature { background:linear-gradient(165deg,#045597,#08508A 55%,#0A6383);
  color:#fff;border:0;box-shadow:0 26px 48px -22px rgba(4,60,110,.55) }
.card--feature h3,.card--feature .price,.card--feature li { color:#fff }
.card--feature .price small { color:rgba(255,255,255,.75) }
.card--feature li::marker { color:#7CF0E3 }
.card--feature .btn--quiet { background:rgba(255,255,255,.14);color:#fff;
  border-color:rgba(255,255,255,.35) }
.card--feature .btn--quiet:hover { background:rgba(255,255,255,.22) }

/* --- founder: calmer frame --- */
.founder-photo { transform:none;border-radius:14px;
  box-shadow:0 22px 44px -24px rgba(4,60,110,.5) }

/* --- footer: deeper, tidier --- */
.site-foot { background:linear-gradient(180deg,#062E4F,#04223C) }

/* --- floor: focus + reduced motion --- */
a:focus-visible,button:focus-visible { outline:3px solid #00C0B4;outline-offset:3px;border-radius:4px }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after { animation-duration:.01ms!important;transition-duration:.01ms!important }
}


/* v24.1 fixes */
.point--lift .mark { position:static;display:block }
.schoolname .sn-2 { letter-spacing:.06em;text-transform:none;font-size:clamp(.92rem,1.6vw,1.08rem) }


/* ============ v25: cappuccino timber + hanging sign ============ */

/* lighter wood with visible grain: fine vertical fibres + broad cathedral bands */
.corridor .door {
  background:
    /* fine grain fibres */
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.07) 0 1px,
      rgba(120,86,54,.05) 1px 2px,
      transparent 2px 6px),
    /* broader growth-ring bands */
    repeating-linear-gradient(92deg,
      rgba(150,110,72,.16) 0 7px,
      rgba(206,168,124,.10) 7px 15px,
      rgba(168,126,84,.13) 15px 26px),
    /* base cappuccino tone, lighter at the top */
    linear-gradient(178deg,#D9B388 0%,#C9A177 44%,#B98F65 100%);
  box-shadow:
    inset 3px 0 0 rgba(255,255,255,.18),
    inset -3px 0 0 rgba(90,62,36,.30),
    12px 10px 26px rgba(0,0,0,.28);
}
.corridor .door--open {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, rgba(120,86,54,.05) 1px 2px, transparent 2px 6px),
    repeating-linear-gradient(92deg, rgba(150,110,72,.15) 0 7px, rgba(210,174,132,.10) 7px 15px, rgba(170,130,88,.12) 15px 26px),
    linear-gradient(178deg,#E0BE96 0%,#CFA981 44%,#BE9569 100%);
}
.corridor .door--soon {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, rgba(120,96,74,.05) 1px 2px, transparent 2px 6px),
    repeating-linear-gradient(92deg, rgba(146,124,102,.14) 0 7px, rgba(196,176,154,.09) 7px 15px, rgba(164,142,120,.12) 15px 26px),
    linear-gradient(178deg,#CBBBA6 0%,#B9A894 44%,#A89680 100%);
  opacity:.94;
}

/* panels re-cut for the lighter timber */
.corridor .door-panel {
  background:linear-gradient(177deg,rgba(92,62,34,.13),rgba(255,255,255,.10));
  box-shadow:
    inset 0 2px 3px rgba(92,62,34,.30),
    inset 0 -1px 0 rgba(255,255,255,.34),
    0 1px 0 rgba(255,255,255,.22);
}

/* the level text sits on wood now, so darken it */
.corridor .door-level { color:#4A3116;text-shadow:0 1px 0 rgba(255,255,255,.35) }
.corridor .lvl-steps b { background:rgba(74,49,22,.20);box-shadow:none }
.corridor .lvl-steps b.on { background:linear-gradient(180deg,#0FB9AC,#00897F);
  box-shadow:0 0 6px rgba(0,137,127,.45) }

/* ---- the sign HANGS from a nail, on two little cords ---- */
.corridor .door-plaque {
  margin-top:30px;
  transform-origin:50% -22px;
  animation:signRest 0s;
}
.corridor .door-plaque::before {
  content:"";position:absolute;left:50%;top:-24px;width:1px;height:24px;
  background:rgba(60,40,20,.55);
  transform:translateX(-50%) rotate(19deg);transform-origin:50% 100%;
}
.corridor .door-plaque::after {
  content:"";position:absolute;left:50%;top:-24px;width:1px;height:24px;
  background:rgba(60,40,20,.55);
  transform:translateX(-50%) rotate(-19deg);transform-origin:50% 100%;
}
/* the nail it hangs on */
.corridor .door-nail {
  position:absolute;left:50%;transform:translateX(-50%);
  width:7px;height:7px;border-radius:50%;z-index:3;
  background:radial-gradient(circle at 34% 30%,#F0F3F5,#A9B3B9 55%,#6E7A81);
  box-shadow:0 1px 2px rgba(0,0,0,.5);
  pointer-events:none;
}
/* the sign swings when the door is knocked */
.corridor .door.is-knocking .door-plaque { animation:signSwing .9s ease-out }
@keyframes signSwing {
  0%   { transform:rotate(0deg) }
  18%  { transform:rotate(3.2deg) }
  38%  { transform:rotate(-2.4deg) }
  58%  { transform:rotate(1.5deg) }
  78%  { transform:rotate(-.8deg) }
  100% { transform:rotate(0deg) }
}




/* v25: knocking-fist cursor over the doors */
.corridor .door { cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj4KPGcgdHJhbnNmb3JtPSJyb3RhdGUoLTE4IDE2IDE2KSI+CjxyZWN0IHg9IjgiIHk9IjkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNSIgcng9IjYuNSIgZmlsbD0iI0VGQ0JBOCIgc3Ryb2tlPSIjOEM2NDQyIiBzdHJva2Utd2lkdGg9IjEuNiIvPgo8cGF0aCBkPSJNMTAuNSAxMy41aDExTTEwLjUgMTdoMTFNMTAuNSAyMC41aDExIiBzdHJva2U9IiNCOThBNjMiIHN0cm9rZS13aWR0aD0iMS4zIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPHJlY3QgeD0iMTIiIHk9IjIyIiB3aWR0aD0iOSIgaGVpZ2h0PSI2IiByeD0iMyIgZmlsbD0iI0U2QkU5OSIgc3Ryb2tlPSIjOEM2NDQyIiBzdHJva2Utd2lkdGg9IjEuNCIvPgo8L2c+PC9zdmc+") 16 16, pointer }


/* v26: deeper hero, matching the footer navy the logo sits best on */
.stage {
  background:linear-gradient(162deg,#041F38 0%,#062E4F 38%,#08508A 72%,#0A6E86 100%);
}
.stage-glow { background:radial-gradient(ellipse at 50% 0%,rgba(120,220,215,.20),transparent 64%) }
.markbox-logo { filter:drop-shadow(0 14px 30px rgba(0,0,0,.55)) }
.schoolname .sn-2 { color:rgba(255,255,255,.72) }


/* v27: mouth-and-ear mark replaces the rule above the quote */
.sigband .signature::before { display:none }
.sigmark { display:block;width:132px;height:56px;margin:0 auto 18px;overflow:visible }
@media (max-width:720px){ .sigmark { width:112px;height:48px;margin-bottom:14px } }
/* price line with no unit reads as a statement, not a number */
.card--price .price:has(small:empty) { letter-spacing:-.005em }

.sigmark { width:150px;height:96px;margin:0 auto 16px }
@media (max-width:720px){ .sigmark { width:126px;height:80px } }

.sigmark { width:140px;height:64px;margin:0 auto 16px }
@media (max-width:720px){ .sigmark { width:118px;height:54px } }

.sigmark { width:118px;height:60px;margin:0 auto 18px }
@media (max-width:720px){ .sigmark { width:100px;height:52px;margin-bottom:14px } }

.sigmark { width:236px;height:110px;margin:0 auto 20px }
@media (max-width:720px){ .sigmark { width:188px;height:88px;margin-bottom:16px } }

.sigmark { width:280px;height:160px;margin:0 auto 22px }
@media (max-width:720px){ .sigmark { width:224px;height:128px;margin-bottom:16px } }

img.sigmark { width:min(420px,86vw);height:auto;display:block;margin:0 auto 22px }
@media (max-width:720px){ img.sigmark { width:min(300px,84vw);margin-bottom:16px } }

/* mark removed: restore the mint rule above the quote */
.sigband .signature::before { display:block }


/* ============ v34: frosted glass panes in the timber frame ============ */
.corridor .door-panel {
  border-radius:3px;
  border:1px solid rgba(255,255,255,.38);
  background:
    /* two angled reflections across the pane */
    linear-gradient(116deg,
      rgba(255,255,255,.00) 0 12%,
      rgba(255,255,255,.46) 12% 21%,
      rgba(255,255,255,.10) 21% 30%,
      rgba(255,255,255,.34) 30% 37%,
      rgba(255,255,255,.00) 37% 100%),
    /* milky frosting, cooler at the foot */
    linear-gradient(180deg,
      rgba(233,246,252,.80) 0%,
      rgba(212,234,246,.72) 48%,
      rgba(186,214,232,.70) 100%);
  box-shadow:
    /* glass sits in a rebate cut into the wood */
    inset 0 2px 6px rgba(38,26,14,.34),
    inset 0 -1px 0 rgba(255,255,255,.55),
    inset 2px 0 4px rgba(38,26,14,.18),
    0 1px 0 rgba(255,255,255,.34);
}
/* the rebate lip around each pane */
.corridor .door-panel::after {
  content:"";position:absolute;inset:-4px;border-radius:5px;pointer-events:none;
  box-shadow:
    inset 0 1px 0 rgba(70,47,25,.45),
    inset 0 -1px 0 rgba(255,255,255,.26);
}
/* level text now sits over glass: keep it readable */
.corridor .door-level { color:#0B3E63;text-shadow:0 1px 0 rgba(255,255,255,.65) }
.corridor .lvl-steps b { background:rgba(11,62,99,.22) }
/* a soft glow of light behind the glass on a live class */
.corridor .door.is-live .door-panel {
  background:
    linear-gradient(116deg,
      rgba(255,255,255,.00) 0 12%, rgba(255,255,255,.50) 12% 21%,
      rgba(255,255,255,.12) 21% 30%, rgba(255,255,255,.38) 30% 37%,
      rgba(255,255,255,.00) 37% 100%),
    linear-gradient(180deg, rgba(242,252,251,.86), rgba(206,240,236,.76) 55%, rgba(178,226,220,.72));
}




/* ============ v35: smaller boards, hung off-centre, handles raised ============ */
.corridor .door-plaque {
  width:80%;margin:8px auto 0;padding:6px 5px;
  transform:rotate(-3.4deg);transform-origin:50% -20px;
}
.corridor .door-plaque b { font-size:.94rem }
.corridor .door-plaque u { font-size:.78rem;margin-top:3px;line-height:1.2 }
.corridor .door-plaque i { font-size:.74rem }
/* the two cords are different lengths, so it hangs crooked */
.corridor .door-plaque::before {
  top:-22px;height:22px;transform:translateX(-50%) rotate(13deg);
}
.corridor .door-plaque::after {
  top:-27px;height:27px;transform:translateX(-50%) rotate(-24deg);
}
/* handle sits higher on the door */
.corridor .door-handle { bottom:auto;top:56% }

.corridor .door-nail { top:30px }


/* v35.1: hang the board from one nail set off to the left */
.corridor .door-plaque { transform-origin:22% -20px }
.corridor .door-plaque::before { left:22%;top:-22px;height:22px;transform:rotate(14deg);transform-origin:50% 100% }
.corridor .door-plaque::after  { left:22%;top:-26px;height:26px;transform:rotate(-21deg);transform-origin:50% 100% }
.corridor .door-nail { left:28%;transform:none;top:32px }

/* v35.2: clear of the level lettering */
.corridor .door-plaque { transform-origin:12% -20px }
.corridor .door-plaque::before { left:12% }
.corridor .door-plaque::after  { left:12% }
.corridor .door-nail { left:20%;top:34px }


/* ============ v36: back to the navy doors with plain labels ============ */
.corridor .door,
.corridor .door--open,
.corridor .door--soon {
  background:linear-gradient(177deg,#0B5E97 0%,#075184 46%,#053F68 100%);
  box-shadow:
    inset 3px 0 0 rgba(255,255,255,.16),
    inset -3px 0 0 rgba(0,0,0,.28),
    10px 9px 24px rgba(0,0,0,.30);
}
.corridor .door--soon { opacity:.82 }

/* recessed navy panels, not glass */
.corridor .door-panel,
.corridor .door.is-live .door-panel {
  border:0;border-radius:2px;background:rgba(0,0,0,.10);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.32),
    inset 0 -1px 0 rgba(255,255,255,.13),
    0 1px 0 rgba(255,255,255,.09);
}
.corridor .door-panel::after { content:none }

/* small white label, hung straight, no cords or nail */
.corridor .door-plaque {
  width:auto;margin:14px 16px 0;padding:8px 6px;
  transform:none;transform-origin:50% 50%;
  background:linear-gradient(180deg,#FBFDFE,#E6EDF3);
  border:0;border-radius:4px;
  box-shadow:0 2px 5px rgba(0,0,0,.30), inset 0 1px 0 #fff;
}
.corridor .door-plaque::before,
.corridor .door-plaque::after { content:none }
.corridor .door-nail { display:none }
.corridor .door.is-knocking .door-plaque { animation:none }

.corridor .door-plaque b,
.corridor .door-plaque i,
.corridor .door-plaque u {
  font-family:inherit;text-shadow:none;color:#0A3550;
}
.corridor .door-plaque b { font-size:.92rem;font-weight:600;letter-spacing:0 }
.corridor .door-plaque u { display:none }           /* times live in "Next class" below */
.corridor .door-plaque i { color:#0E7C74;font-size:.72rem }

/* level: plain white, no bars */
.corridor .door-level {
  font-family:inherit;font-size:1.32rem;font-weight:700;
  color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.35);
}
.corridor .lvl-steps { display:none }


/* v36.1: small square room plate at the left edge, metal hinges */
.corridor .door-plaque {
  position:absolute;z-index:3;
  top:calc(16px + 1.32rem + 14px);left:14px;
  width:52px;margin:0;padding:9px 4px;
  border-radius:5px;text-align:center;
}
.corridor .door-plaque b { font-size:.86rem }
.corridor .door-hinge {
  background:linear-gradient(180deg,#E4E8EB,#AEB6BC 55%,#8E979E);
  box-shadow:0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.8);
  border-radius:2px;
}

/* v37: full word on the plate, so it needs to be wider */
.corridor .door-plaque { width:auto;left:14px;right:14px;padding:9px 6px }
.corridor .door-plaque b { font-size:.9rem }


/* ============ v39: American academy door, in navy ============ */

/* solid slab: no recessed panels */
.corridor .door-panel--bot { display:none }

/* narrow vertical vision lite on the handle side */
.corridor .door-panel--top {
  left:auto; right:16px; top:52px;
  width:26%; height:46%;
  border-radius:2px;
  border:2px solid rgba(10,30,48,.55);
  background:
    linear-gradient(118deg,
      rgba(255,255,255,.00) 0 14%,
      rgba(255,255,255,.30) 14% 22%,
      rgba(255,255,255,.06) 22% 31%,
      rgba(255,255,255,.22) 31% 38%,
      rgba(255,255,255,.00) 38% 100%),
    linear-gradient(180deg, rgba(196,224,240,.62), rgba(150,196,224,.54));
  box-shadow:
    inset 0 2px 5px rgba(6,26,44,.45),
    inset 0 -1px 0 rgba(255,255,255,.35),
    0 1px 0 rgba(255,255,255,.10);
}
.corridor .door-panel--top::before {
  content:""; position:absolute; inset:2px; pointer-events:none;
  background:
    repeating-linear-gradient(0deg, rgba(40,70,90,.24) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(40,70,90,.24) 0 1px, transparent 1px 9px);
}
.corridor .door-panel--top::after { content:none }

.corridor .door.is-live .door-panel--top {
  background:
    linear-gradient(118deg,
      rgba(255,255,255,.00) 0 14%, rgba(255,255,255,.34) 14% 22%,
      rgba(255,255,255,.08) 22% 31%, rgba(255,255,255,.26) 31% 38%,
      rgba(255,255,255,.00) 38% 100%),
    linear-gradient(180deg, rgba(214,246,242,.72), rgba(168,224,218,.60));
}

/* steel kick plate along the foot */
.corridor .door-kick {
  left:10px; right:10px; bottom:14px; height:13%;
  border-radius:2px;
  background:linear-gradient(180deg,#D2D7DB,#A6ADB3 58%,#8C949B);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 1px 3px rgba(0,0,0,.35);
}

/* lever handle, not a knob */
.corridor .door-handle {
  top:54%; bottom:auto; right:14px;
  width:12px; height:12px; border-radius:50%;
  background:linear-gradient(180deg,#E2E7EA,#A8B0B6);
  box-shadow:0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.8);
}
.corridor .door-handle i {
  position:absolute; right:10px; top:3px;
  width:22px; height:6px; border-radius:3px;
  background:linear-gradient(180deg,#E6EBEE,#A9B1B7 60%,#8F979D);
  box-shadow:0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.8);
}

/* room plate keeps clear of the glass */
.corridor .door-plaque { right:auto; width:44%; left:14px }


/* v39: realistic knocking hand replaces the flat fist */
.door-knock {
  width:46px;height:40px;right:20px;top:40%;
  border-radius:0;background:none;box-shadow:none;
  background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA1NiI+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InMiIHgxPSIwIiB5MT0iMCIgeDI9IjAiIHkyPSIxIj4KPHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRjdFM0NCIi8+PHN0b3Agb2Zmc2V0PSIuNTUiIHN0b3AtY29sb3I9IiNFOUM2QTIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNDRkEwNzkiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJ0IiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMSI+CjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0YzREJDMCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0Q3QTg3RSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+CjxnIHN0cm9rZT0iI0E4N0I1NiIgc3Ryb2tlLXdpZHRoPSIxLjEiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgo8cGF0aCBkPSJNMjAgNDAgQzEwIDQwIDQgMzcgMyAzMyBDMiAyOSA2IDI3IDEyIDI3IEwyMiAyNyBaIiBmaWxsPSJ1cmwoI3QpIi8+CjxyZWN0IHg9IjE0IiB5PSIxMCIgd2lkdGg9IjQyIiBoZWlnaHQ9IjM0IiByeD0iMTMiIGZpbGw9InVybCgjcykiLz4KPHBhdGggZD0iTTUwIDIwIEM1OCAyMSA2MCAyNyA1NyAzMiBDNTUgMzYgNTAgMzcgNDcgMzUiIGZpbGw9InVybCgjdCkiLz4KPC9nPgo8ZyBmaWxsPSJub25lIiBzdHJva2U9IiNDNzlBNzIiIHN0cm9rZS13aWR0aD0iMS4yIiBzdHJva2UtbGluZWNhcD0icm91bmQiPgo8cGF0aCBkPSJNMjAgMTYgQzI2IDEzIDM0IDEzIDQwIDE1Ii8+CjxwYXRoIGQ9Ik0xOCAyNSBoMzAiLz4KPHBhdGggZD0iTTE4IDMzIGgyOCIvPgo8L2c+CjxlbGxpcHNlIGN4PSIzMCIgY3k9IjE3IiByeD0iMTEiIHJ5PSI0IiBmaWxsPSIjZmZmZmZmIiBvcGFjaXR5PSIwLjE4Ii8+Cjwvc3ZnPg==");
  background-size:contain;background-repeat:no-repeat;background-position:center;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.45));
}
.door-knock::before,.door-knock::after { content:none }

/* v39: cursor matches the knocking hand */
.corridor .door { cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDY0IDU2Ij4KPGcgc3Ryb2tlPSIjOEM2NDQyIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+CjxwYXRoIGQ9Ik0yMCA0MCBDMTAgNDAgNCAzNyAzIDMzIEMyIDI5IDYgMjcgMTIgMjcgTDIyIDI3IFoiIGZpbGw9IiNFRkNCQTgiLz4KPHJlY3QgeD0iMTQiIHk9IjEwIiB3aWR0aD0iNDIiIGhlaWdodD0iMzQiIHJ4PSIxMyIgZmlsbD0iI0YyRDNCMiIvPgo8cGF0aCBkPSJNNTAgMjAgQzU4IDIxIDYwIDI3IDU3IDMyIEM1NSAzNiA1MCAzNyA0NyAzNSIgZmlsbD0iI0VGQ0JBOCIvPgo8L2c+CjxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0M3OUE3MiIgc3Ryb2tlLXdpZHRoPSIxLjYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+CjxwYXRoIGQ9Ik0xOCAyNSBoMzAiLz48cGF0aCBkPSJNMTggMzMgaDI4Ii8+CjwvZz4KPC9zdmc+") 18 16, pointer }

/* v39b: lever clears the glass; status line clears the kick plate */
.corridor .door-panel--top { top:56px; height:38% }

.corridor .door-handle { top:auto; bottom:34%; right:14px }

.corridor .door-kick { bottom:12px; height:26px }
.corridor .door-status { bottom:48px }

/* v39c: the knocking hand sits above the door's navy layer */
.corridor .door-knock { z-index:9 }

/* v39d: knock on the solid slab, not on the glass */
.corridor .door-knock { right:auto; left:20px; top:40% }

/* ============ v40: Lilit's hand illustration + darker slab ============ */

/* the drawn hand replaces the coded one */
.corridor .door-knock {
  width:86px; height:88px;
  left:14px; right:auto; top:34%;
  background-image:url("knock-hand.png");
  background-size:contain; background-repeat:no-repeat; background-position:center;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.5));
}
.corridor .door-knock::before,
.corridor .door-knock::after { content:none }

/* slab darkened back to the v38 navy */
.corridor .door::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(180deg,
    rgba(2,20,36,.10) 0%,
    rgba(2,20,36,.14) 46%,
    rgba(2,20,36,.20) 100%);
}

/* v40: the knock arrives from the left, where the hand now stands */
@keyframes knockTap {
  0%   { opacity:0; transform:translateX(-30px) scale(.92) }
  22%  { opacity:1; transform:translateX(0) scale(1) }
  38%  { transform:translateX(-10px) scale(.98) }
  54%  { transform:translateX(0) scale(1) }
  70%  { transform:translateX(-10px) scale(.98) }
  86%  { opacity:1; transform:translateX(0) scale(1) }
  100% { opacity:0; transform:translateX(-14px) scale(.96) }
}
.corridor .door { cursor:url("knock-cursor.png") 20 18, pointer }

/* v40b: hand scaled to the door — a fist is about a ninth of a door's width */
.corridor .door-knock {
  width:38px; height:39px;
  left:22px; top:41%;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.5));
}


/* ============ v42: soft wall light around each door ============ */

.corridor .door { overflow:visible }

/* a warm pool of light spilling from the door onto the wall */
.corridor .door::after {
  content:"";
  position:absolute;
  left:-38px; right:-38px; top:-32px; bottom:-32px;
  border-radius:26px;
  background:radial-gradient(58% 54% at 50% 40%,
    rgba(255,246,226,.30) 0%,
    rgba(255,240,214,.17) 44%,
    rgba(255,238,210,.06) 70%,
    rgba(255,238,210,0) 100%);
  pointer-events:none;
  z-index:-1;
  opacity:.9;
  transition:opacity .45s ease;
}

/* the light lifts as you approach */
.corridor .door:hover::after,
.corridor .door:focus-visible::after { opacity:1 }

/* a class in progress spills mint instead of warm white */
.corridor .door.is-live::after {
  background:radial-gradient(58% 54% at 50% 40%,
    rgba(206,255,249,.34) 0%,
    rgba(174,247,239,.19) 44%,
    rgba(158,243,235,.07) 70%,
    rgba(158,243,235,0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .corridor .door::after { transition:none }
}


/* ============ v43: class times back on the door plate ============ */
.corridor .door-plaque u {
  display:block;
  margin-top:4px;
  font-size:.68rem;
  line-height:1.25;
  font-weight:500;
  color:#2A5A78;
  letter-spacing:.01em;
}


/* ---- v47: nothing in the header wraps mid-phrase, in any language ---- */
.brand-name{white-space:nowrap}
.brand-sub{white-space:nowrap}
.nav a{white-space:nowrap}
.nav{flex-wrap:nowrap}
@media (max-width:420px){
  .brand-name{font-size:.92rem}
}
@media (min-width:861px) and (max-width:1100px){
  .nav{gap:15px}
  .nav a{font-size:.88rem}
}


/* ---- v47: the corridor always scrolls sideways, never wraps to a new row ---- */
.corridor .doors{
  display:flex !important;
  grid-template-columns:none !important;
  flex-wrap:nowrap !important;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  padding-bottom:10px;
}
.corridor .door{
  flex:0 0 176px !important;
  width:176px !important;
  scroll-snap-align:center;
}
/* one constant door size at every screen width, so the sign text never re-wraps */
@media (max-width:900px){ .corridor .doors{gap:22px} }
@media (max-width:620px){ .corridor .doors{gap:20px} }
/* long names wrap inside the sign instead of running off its edge */
.corridor .door-plaque{ overflow:hidden }
.corridor .door-plaque b,
.corridor .door-plaque i,
.corridor .door-plaque u{
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:auto;
  max-width:100%;
}
.corridor .door-plaque b{ line-height:1.15 }


/* ---- v50: brand and menu can never touch ---- */
.head-in{gap:34px}
.brand{flex:0 0 auto;padding-right:8px}
.nav{flex:0 1 auto;min-width:0}
@media (min-width:861px) and (max-width:1180px){
  .head-in{gap:22px}
  .nav{gap:14px}
  .nav a{font-size:.86rem}
  .brand-name{font-size:.98rem}
}


/* ---- v51: header can never crowd, whatever the font ---- */
.btn--apply{flex:0 0 auto;margin-left:14px}
.nav{flex:0 1 auto;min-width:0}
/* below a comfortable laptop width the turquoise button steps out;
   the Placement test link goes to the same page, so nothing is lost */
@media (max-width:1240px){.btn--apply{display:none}}
@media (min-width:1241px) and (max-width:1420px){
  .nav{gap:16px}
  .nav a{font-size:.88rem}
  .btn--apply{padding:8px 14px;font-size:.85rem}
}
/* the menu keeps its own width and can never be squeezed under the button */
.nav{flex:0 0 auto;min-width:auto}

/* v51b: the menu keeps its own width and can never slide under the button */
.nav{flex:0 0 auto}

/* last-resort tightening, applied by the header room guard */
.nav--tight{gap:12px}
.nav--tight a{font-size:.84rem}
/* menu keeps its own width, so it can never slide under the button */
.nav{flex:0 0 auto}
/* v52: the "I don't know" choice sits apart from the real answers */
.opt--dk{margin-top:6px;border-top:1px dashed var(--line);padding-top:10px}
.opt--dk span{color:var(--grey);font-style:italic}
/* v52: Armenian menu is wider than English, so give the narrow-laptop
   range more room before the mobile menu takes over at 860px */
@media (max-width:1100px){
  .head-in{gap:14px;padding-left:16px;padding-right:16px}
  .nav{gap:10px}
  .nav a{font-size:.8rem}
  .brand-name{font-size:.92rem}
  .brand-sub{font-size:.6rem;letter-spacing:.07em}
  .brand img{width:28px}
  .langs button{padding:3px 8px;font-size:.76rem}
}

/* ---------- Progress checks section ---------- */
.pc-list{display:grid;gap:16px;margin-top:30px}
.pc-card{display:grid;gap:5px;padding:22px 24px;border:1px solid #DCE8F1;border-radius:16px;
  background:#fff;text-decoration:none;color:var(--ink);position:relative;transition:.18s}
.pc-card:hover{border-color:var(--mint);box-shadow:0 8px 26px rgba(4,85,151,.10);transform:translateY(-2px)}
.pc-level{font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--blue);font-weight:600}
.pc-units{font-size:1.18rem;font-weight:600;line-height:1.3}
.pc-book{font-size:.88rem;color:var(--grey)}
.pc-meta{font-size:.82rem;color:var(--grey);margin-top:2px}
.pc-count{font-size:.82rem;font-weight:400;color:var(--grey);white-space:nowrap;display:inline}
.pc-topics{font-size:.78rem;color:var(--grey);line-height:1.35;margin-top:1px;font-style:normal}
.pc-card:not(.pc-card--empty) .pc-topics{padding-right:96px}
@media (max-width:640px){ .pc-card:not(.pc-card--empty) .pc-topics{padding-right:0} }

.pc-go{position:absolute;right:24px;top:50%;transform:translateY(-50%);padding:9px 20px;font-size:.9rem}
@media (max-width:640px){
  .pc-go{position:static;transform:none;justify-self:start;margin-top:12px}
}

/* ---------- THE EXAM ROOM DOOR ----------
   Same navy as every classroom door. It is set slightly apart at
   the end of the corridor, and its plate is wider because it
   carries words rather than a group number.                     */
.corridor .door--exam{ margin-left:0 }
.corridor .door--exam .door-plaque{ width:92%; padding:7px 4px }
.corridor .door--exam .door-plaque b{ font-size:.70rem; line-height:1.2;
  hyphens:none; word-break:keep-all; overflow-wrap:normal }
.corridor .door--exam .door-plaque i{ font-size:.58rem; line-height:1.15 }

/* ---- v58: corridor interior — skirting board and floor surface ---- */
.corridor .doors{
  position:relative;
  padding-bottom:0;
}
/* skirting board running the whole length, behind the doors */
.corridor .doors::before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:14px;
  background:linear-gradient(180deg,#0A4A78,#073657);
  border-top:1px solid rgba(255,255,255,.22);
  box-shadow:0 -1px 0 rgba(255,255,255,.10) inset, 0 2px 5px rgba(0,0,0,.35);
  z-index:0;pointer-events:none;
}
.corridor .door{position:relative;z-index:1}

/* floor: a surface receding away, not a flat band */
.corridor-floor{
  position:relative;
  height:54px;
  background:
    linear-gradient(180deg,rgba(0,0,0,.50) 0%,rgba(0,0,0,.18) 55%,rgba(0,0,0,.04) 100%),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.055) 0 1px,
      transparent 1px 74px);
  border-top:2px solid rgba(255,255,255,.34);
  overflow:hidden;
}
/* soft reflection of the doors on the floor just below them */
.corridor-floor::before{
  content:"";position:absolute;left:0;right:0;top:0;height:20px;
  background:linear-gradient(180deg,rgba(159,233,223,.14),rgba(159,233,223,0));
  filter:blur(3px);pointer-events:none;
}
@media (max-width:640px){
  .corridor-floor{height:40px}
  .corridor .doors::before{height:11px}
}


/* ---- v59: wooden floor ---- */
.corridor-floor{
  height:58px;
  background:
    /* shading: darker where it meets the skirting, lighter toward the viewer */
    linear-gradient(180deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.10) 60%,rgba(0,0,0,.20) 100%),
    /* plank end-joints, staggered */
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.30) 0 2px, transparent 2px 190px),
    /* grain */
    repeating-linear-gradient(180deg,
      rgba(255,255,255,.05) 0 1px,
      rgba(0,0,0,.05) 1px 2px,
      transparent 2px 7px),
    /* board separations running along the corridor */
    repeating-linear-gradient(180deg,
      rgba(0,0,0,.34) 0 1px,
      transparent 1px 15px),
    /* the timber itself, warm against the navy walls */
    linear-gradient(180deg,#7A4B26,#95602F 40%,#6E4322);
  border-top:2px solid rgba(255,255,255,.30);
  box-shadow:inset 0 3px 8px rgba(0,0,0,.45);
  overflow:hidden;
}
.corridor-floor::before{
  content:"";position:absolute;left:0;right:0;top:0;height:22px;
  background:linear-gradient(180deg,rgba(159,233,223,.16),rgba(159,233,223,0));
  filter:blur(3px);pointer-events:none;
}
@media (max-width:640px){ .corridor-floor{height:42px} }

/* ---- v60: real wood grain floor, walnut ---- */
.corridor-floor{
  height:58px;
  background:
    /* light falling from the doors, and shadow at the wall */
    linear-gradient(180deg,rgba(0,0,0,.50) 0%,rgba(0,0,0,.12) 45%,rgba(0,0,0,.26) 100%),
    /* board separations, uneven widths so it is not a grid */
    repeating-linear-gradient(180deg,
      rgba(0,0,0,.42) 0 1px, transparent 1px 13px,
      rgba(0,0,0,.42) 13px 14px, transparent 14px 31px,
      rgba(0,0,0,.42) 31px 32px, transparent 32px 47px),
    /* the timber itself */
    url("floor-wood.svg");
  background-size:auto, auto, 900px 160px;
  background-repeat:repeat, repeat, repeat;
  border-top:2px solid rgba(255,255,255,.26);
  box-shadow:inset 0 3px 9px rgba(0,0,0,.50);
  overflow:hidden;
}
.corridor-floor::before{
  content:"";position:absolute;left:0;right:0;top:0;height:20px;
  background:linear-gradient(180deg,rgba(159,233,223,.13),rgba(159,233,223,0));
  filter:blur(3px);pointer-events:none;
}
@media (max-width:640px){ .corridor-floor{height:42px} }


/* ---- v61: doors meet the floor, scrollbar in walnut ---- */
.corridor .doors{
  padding-bottom:0;
  margin-bottom:0;
  gap:26px;
}
.corridor .doors::before{ display:none }
.corridor-floor{ margin-top:0 }

.corridor .doors{ scrollbar-color:#5A3E2C #46301F }
.corridor .doors::-webkit-scrollbar{ height:10px }
.corridor .doors::-webkit-scrollbar-track{ background:#46301F }
.corridor .doors::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#63452F,#4C3421);
  border-radius:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}


/* ---- v64: small bracketed helper text under form fields ---- */
.field-hint{
  font-size:.74rem;
  line-height:1.35;
  color:var(--grey);
  margin:5px 0 0;
  opacity:.9;
}


/* ---- v65: placement test on a turquoise gradient, questions as white cards ---- */
body.test-page{
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(255,255,255,.34), transparent 60%),
    radial-gradient(900px 560px at 100% 8%, rgba(1,151,216,.42), transparent 62%),
    linear-gradient(155deg, #08508A 0%, #0197D8 42%, #21CEBB 100%);
  background-attachment:fixed;
}
/* the reading column, so 50 questions are not full screen width */
body.test-page .section > .wrap{ max-width:780px }
body.test-page .q:has(input:checked){ border-left:4px solid var(--mint) }

body.test-page .test-head h1{ color:#fff }
body.test-page .test-head .lede{ color:#fff; opacity:.93 }
body.test-page .test-head p[data-i18n="ut.book"]{ color:rgba(255,255,255,.85) !important }

/* identity fields and each question: white cards lifted off the colour */
body.test-page .field,
body.test-page .q{
  background:#fff;
  border:1px solid rgba(255,255,255,.7);
  border-radius:16px;
  padding:20px 22px;
  margin:0 0 16px;
  max-width:none;
  box-shadow:0 10px 26px rgba(4,40,70,.18), 0 2px 5px rgba(4,40,70,.10);
  border-top:none;
  transition:box-shadow .2s, transform .2s;
}
body.test-page .q:hover{
  box-shadow:0 14px 32px rgba(4,40,70,.24), 0 3px 7px rgba(4,40,70,.12);
}
/* a card the student has answered gets a mint edge, so progress is visible */
body.test-page .q:has(input:checked){
  border-left:4px solid var(--mint);
  padding-left:19px;
}
body.test-page .opts{ max-width:none }

/* the sticky finish bar reads as glass over the colour */
body.test-page .progress{
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:14px;
  padding:12px 16px;
  box-shadow:0 10px 26px rgba(4,40,70,.20);
}
body.test-page .result{
  background:#fff;border-radius:16px;padding:26px;
  box-shadow:0 10px 26px rgba(4,40,70,.18);
}
@media (max-width:640px){
  body.test-page .field,
  body.test-page .q{ padding:16px 15px; border-radius:13px }
}


/* ---- v73: the bird leaves the box on the finished screen ---- */
.bird-box{position:relative;width:132px;height:132px;margin:0 auto 22px;overflow:visible}
.bird-box .bird-frame{position:absolute;inset:0;border:2px solid rgba(255,255,255,.55);
  border-radius:18px;background:rgba(255,255,255,.10);
  transition:opacity .7s ease,transform .7s ease}
.bird-box .bird{position:absolute;left:50%;top:50%;width:76px;height:auto;
  transform:translate(-50%,-50%);transform-origin:50% 50%;
  filter:drop-shadow(0 8px 18px rgba(3,40,70,.35))}
.bird-box.fly .bird{animation:eg-fly 2.1s cubic-bezier(.3,.05,.2,1) forwards}
.bird-box.fly .bird-frame{opacity:.25;transform:scale(.94)}
@keyframes eg-fly{
  0%{transform:translate(-50%,-50%) rotate(0deg) scale(1);opacity:1}
  18%{transform:translate(-50%,-38%) rotate(-3deg) scale(.97);opacity:1}
  48%{transform:translate(-14%,-135%) rotate(-13deg) scale(1.03);opacity:1}
  78%{transform:translate(78%,-250%) rotate(-19deg) scale(.86);opacity:.75}
  100%{transform:translate(150%,-340%) rotate(-24deg) scale(.66);opacity:0}
}
@media (max-width:640px){
  .bird-box{width:108px;height:108px}
  .bird-box .bird{width:62px}
}
@media (prefers-reduced-motion:reduce){
  .bird-box.fly .bird{animation:none;opacity:1}
}


/* ---- v73: the 'not sure of your level' prompt on the registration form ---- */
.reg-testnote{margin:10px 0 0;padding:12px 14px;border-radius:12px;
  background:#EAF4FB;border-left:4px solid var(--mint);
  font-size:.88rem;line-height:1.5;color:var(--ink)}
.reg-testnote a{display:inline-block;margin-top:4px;font-weight:600;color:var(--navy)}
body.test-page .reg-testnote{background:rgba(255,255,255,.92)}


/* ---- v74: the placement-test button inside the prompt box ---- */
.reg-testnote{display:block}
.reg-testnote > span{display:block}
.reg-testbtn{margin-top:12px;padding:11px 20px;font-size:.92rem;
  box-shadow:0 6px 16px rgba(0,192,180,.32)}
.reg-testbtn:hover{transform:translateY(-1px)}
@media (max-width:640px){
  .reg-testnote .reg-testbtn.btn{display:block;width:100%;text-align:center}
}


/* ---- v75: highlight the prompt when the student picks 'rather take the test' ---- */
.reg-testnote{transition:box-shadow .25s ease,border-color .25s ease}
.reg-testnote--on{box-shadow:0 0 0 3px rgba(0,192,180,.35);border-left-color:var(--navy)}

/* ---------- THE LIBRARY DOOR ----------
   Same navy as the rest of the corridor, set beside the exam room
   at the far end. Its plate is wider, like the exam plate.       */
.corridor .door--library, .corridor .door--interview{ margin-left:0 }
.corridor .door--library .door-plaque, .corridor .door--interview .door-plaque{ width:92%; padding:7px 4px }
.corridor .door--interview .door-plaque b,
.corridor .door--library .door-plaque b{ font-size:.70rem; line-height:1.2;
  hyphens:none; word-break:keep-all; overflow-wrap:normal }
.corridor .door--library .door-plaque i{ font-size:.58rem; line-height:1.15 }
.corridor .door--interview .door-plaque i{ font-size:.58rem; line-height:1.15 }

/* ---------- THE GRAMMAR LIBRARY ---------- */
body.lib-page{ background:#F3F7FA }
.lib-head{ text-align:center; margin:0 0 26px }
.lib-head h1{ margin:0 0 10px }
.lib-head p{ margin:0 auto; max-width:620px; color:var(--grey) }
.lib-key{
  max-width:520px; margin:0 auto 34px; background:#fff; border-radius:16px;
  padding:22px 24px; box-shadow:0 10px 26px rgba(4,40,70,.10);
  border-left:5px solid var(--mint);
}
.lib-key label{ display:block; font-weight:600; margin:0 0 8px }
.lib-key input{
  width:100%; padding:12px 14px; border:1px solid #CFDDE7; border-radius:10px;
  font:inherit; margin:0 0 12px;
}
.lib-key .note{ margin:12px 0 0; font-size:.9rem; color:var(--grey) }
.lib-key .bad{ margin:10px 0 0; color:#B4402F; font-weight:600; display:none }
.lib-key.is-bad .bad{ display:block }
.lib-ok{
  max-width:520px; margin:0 auto 34px; background:#E8F8F5; border-radius:14px;
  padding:14px 18px; text-align:center; font-weight:600; color:#0B6156;
}
.lib-group{ margin:0 0 30px }
.lib-group > h2{
  font-size:1.05rem; letter-spacing:.04em; text-transform:uppercase;
  color:var(--navy); margin:0 0 14px; padding:0 0 8px;
  border-bottom:2px solid #DCE8F1;
}
.lib-list{ display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)) }
.lib-item{
  display:block; background:#fff; border-radius:14px; padding:16px 18px;
  box-shadow:0 6px 16px rgba(4,40,70,.08); text-decoration:none; color:inherit;
  border-left:5px solid var(--blue); transition:transform .15s ease, box-shadow .15s ease;
}
.lib-item:hover{ transform:translateY(-2px); box-shadow:0 12px 24px rgba(4,40,70,.14) }
.lib-item b{ display:block; font-size:1.02rem; color:var(--navy) }
.lib-item i{ display:block; font-style:normal; font-size:.88rem; color:var(--grey); margin-top:3px }
.lib-item--locked{ border-left-color:#C3D2DC; opacity:.72; cursor:not-allowed }
.lib-item--locked:hover{ transform:none; box-shadow:0 6px 16px rgba(4,40,70,.08) }
.lib-item--soon{ border-left-color:#E2B978; opacity:.8; cursor:default }
.lib-tag{
  display:inline-block; margin-top:8px; font-size:.76rem; letter-spacing:.05em;
  text-transform:uppercase; color:#7A8A94;
}

/* ---------- A GRAMMAR PAGE ---------- */
body.gr-page{ background:#F3F7FA }
.gr{ max-width:760px; margin:0 auto }
.gr-top{ margin:0 0 22px }
.gr-back{ font-size:.92rem; text-decoration:none; color:var(--blue) }
.gr-back:hover{ text-decoration:underline }
.gr h1{ margin:12px 0 4px; color:var(--navy) }
.gr .gr-sub{ margin:0; color:var(--grey); font-size:1.02rem }
.gr-sheet{
  background:#fff; border-radius:18px; padding:30px 34px;
  box-shadow:0 12px 30px rgba(4,40,70,.10);
}
.gr-sheet h2{
  font-size:1.14rem; color:var(--navy); margin:30px 0 12px;
  padding:0 0 7px; border-bottom:2px solid #E4EDF4;
}
.gr-sheet h2:first-child{ margin-top:0 }
.gr-sheet p{ margin:0 0 12px; line-height:1.68 }
.gr-rule{
  background:#EAF4FB; border-left:5px solid var(--navy); border-radius:0 12px 12px 0;
  padding:14px 18px; margin:0 0 16px;
}
.gr-rule p:last-child{ margin-bottom:0 }
.gr-form{
  background:#0C5A94; color:#fff; border-radius:12px; padding:14px 18px;
  font-size:1.12rem; font-weight:600; text-align:center; margin:0 0 18px;
  letter-spacing:.01em;
}
.gr-ex{ margin:0 0 16px; padding:0; list-style:none }
.gr-ex li{ margin:0 0 10px; padding:0 0 0 16px; border-left:3px solid var(--mint) }
.gr-ex b{ display:block; color:var(--ink) }
.gr-ex i{ display:block; font-style:normal; color:var(--grey); font-size:.95rem; margin-top:2px }
.gr-tbl{ width:100%; border-collapse:collapse; margin:0 0 18px; font-size:.98rem }
.gr-tbl th, .gr-tbl td{ padding:10px 12px; border:1px solid #DCE8F1; text-align:left }
.gr-tbl th{ background:#EAF4FB; color:var(--navy); font-weight:600 }
.gr-words{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; padding:0; list-style:none }
.gr-words li{
  background:#EAF4FB; border-radius:999px; padding:7px 14px; font-size:.94rem;
}
.gr-words li b{ color:var(--navy) }
.gr-fig{ margin:0 0 20px }
.gr-fig svg{ width:100%; height:auto; display:block }
.gr-fig figcaption{ margin-top:8px; font-size:.88rem; color:var(--grey); text-align:center }
.gr-note{
  background:#FFF6E6; border-left:5px solid #E2B978; border-radius:0 12px 12px 0;
  padding:14px 18px; margin:0 0 16px; font-size:.96rem;
}
.gr-note b{ color:#8A6220 }
.gr-body[hidden]{ display:none }
@media (max-width:640px){
  .gr-sheet{ padding:22px 18px; border-radius:14px }
  .gr-sheet h2{ font-size:1.06rem }
  .lib-list{ grid-template-columns:1fr }
}

/* ---------- THE TENSE CHART ---------- */
.gr--wide{ max-width:1040px }
.tc-legend{
  max-width:920px; margin:0 auto 18px; background:#fff; border-radius:14px;
  padding:14px 20px; box-shadow:0 6px 16px rgba(4,40,70,.08);
}
.tc-legend > p{ margin:0 0 8px; font-weight:600; color:var(--navy) }
.tc-legend ul{ margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:10px 26px }
.tc-legend li{ font-size:.94rem; color:var(--grey) }
.tc-legend li b{ color:var(--ink); margin-right:7px }
.tc{ max-width:920px; margin:0 auto; display:grid; gap:10px }
.tc-row{ display:grid; grid-template-columns:48px repeat(4,1fr); gap:10px; align-items:stretch }
.tc-row--head .tc-h{
  text-align:center; font-size:.82rem; letter-spacing:.05em; text-transform:uppercase;
  font-weight:700; color:#fff; padding:9px 6px; border-radius:10px; line-height:1.25;
  display:flex; align-items:center; justify-content:center;
}
.tc-h--simple{ background:#045597 }
.tc-h--cont{   background:#0197D8 }
.tc-h--perf{   background:#00A79C }
.tc-h--perfc{  background:#8A6220 }
.tc-when{
  display:flex; justify-content:center; align-items:center;
  background:var(--navy); color:#fff; border-radius:10px;
  padding:12px 3px; font-weight:700; font-size:.8rem; letter-spacing:.04em;
  text-transform:uppercase; text-align:center; line-height:1.25;
  writing-mode:vertical-rl; transform:rotate(180deg);
}
.tc-cell{
  display:block; background:#fff; border-radius:12px; padding:12px 13px;
  box-shadow:0 5px 14px rgba(4,40,70,.08); border-top:4px solid #DCE8F1;
  text-decoration:none; color:inherit;
}
.tc-cell--simple{ border-top-color:#045597 }
.tc-cell--cont{   border-top-color:#0197D8 }
.tc-cell--perf{   border-top-color:#00A79C }
.tc-cell--perfc{  border-top-color:#8A6220 }
.tc-form{ display:block; font-size:.92rem; color:var(--navy); font-weight:700; margin:0 0 6px }
.tc-ex{ display:block; font-size:.9rem; color:var(--ink); line-height:1.45 }
.tc-hy{ display:block; font-style:normal; font-size:.84rem; color:var(--grey); margin-top:4px; line-height:1.45 }
.tc-mini{ display:none }
.tc-cell--link{ position:relative; transition:transform .15s ease, box-shadow .15s ease }
.tc-cell--link::after{
  content:'\2192'; position:absolute; top:9px; right:11px; color:var(--mint); font-weight:700;
}
.tc-cell--link:hover{ transform:translateY(-2px); box-shadow:0 12px 22px rgba(4,40,70,.14) }
@media (max-width:860px){
  /* the whole chart is built at full width, then shrunk as one picture
     so it fits the screen. Students pinch to zoom into a row. */
  .tc-scroll{ overflow:hidden }
  .tc-fit{ transform-origin:top left }
  .tc{ width:680px; min-width:680px; max-width:none; gap:6px }
  .tc-row{ grid-template-columns:44px repeat(4,1fr); gap:6px }
  .tc-row--head{ display:grid }
  .tc-when{ padding:10px 2px; font-size:.74rem }
  .tc-legend ul{ flex-direction:column; gap:6px }
}

/* ---------- the academy mark and the author's name on every library page ---------- */
.gr-mast{
  display:flex; align-items:center; gap:12px; margin:0 0 20px;
  padding:0 0 14px; border-bottom:1px solid #DCE8F1;
}
.gr-mast img{ width:36px; height:36px; object-fit:contain; flex:0 0 auto }
.gr-mast span{ display:block; line-height:1.3 }
.gr-mast b{
  display:block; font-size:.92rem; color:var(--navy); font-weight:700;
  letter-spacing:.01em;
}
.gr-mast i{ display:block; font-style:normal; font-size:.82rem; color:var(--grey); margin-top:2px }
.gr-credit{
  display:flex; align-items:center; gap:12px; max-width:920px; margin:26px auto 0;
  padding:16px 20px; background:#fff; border-radius:14px;
  box-shadow:0 6px 16px rgba(4,40,70,.07);
}
.gr-credit img{ width:30px; height:30px; object-fit:contain; flex:0 0 auto; opacity:.9 }
.gr-credit p{ margin:0; font-size:.86rem; color:var(--grey); line-height:1.55 }
@media (max-width:640px){
  .gr-mast b{ font-size:.86rem }
  .gr-credit{ padding:14px 16px }
}

/* ---------- THE LIBRARY, LAID OUT AS A BOOK'S CONTENTS ---------- */
.toc{
  max-width:720px; margin:0 auto; background:#fff; border-radius:18px;
  padding:34px 40px 30px; box-shadow:0 12px 30px rgba(4,40,70,.10);
}
.toc-head{
  margin:0 0 26px; text-align:center; font-size:.86rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--grey);
}
.toc-part{ margin:0 0 26px }
.toc-part:last-child{ margin-bottom:0 }
.toc-part > h2{
  display:flex; align-items:baseline; gap:12px; margin:0 0 10px; padding:0 0 8px;
  font-size:1.04rem; color:var(--navy); border-bottom:1px solid #E4EDF4;
}
.toc-part > h2 span{
  font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:#9AAEBC; font-weight:600; flex:0 0 auto;
}
.toc-line{
  display:flex; align-items:baseline; gap:10px; padding:9px 4px;
  text-decoration:none; color:inherit; border-radius:8px;
}
.toc-line:hover{ background:#F3F8FC }
.toc-no{
  flex:0 0 26px; text-align:right; font-size:.86rem; color:#9AAEBC; font-weight:600;
}
.toc-name{ flex:0 1 auto }
.toc-name b{ display:block; font-weight:600; color:var(--ink); line-height:1.35 }
.toc-name i{ display:block; font-style:normal; font-size:.84rem; color:var(--grey); margin-top:1px }
.toc-dots{
  flex:1 1 auto; min-width:16px; align-self:flex-end; margin-bottom:5px;
  border-bottom:2px dotted #CFDDE7;
}
.toc-end{ flex:0 0 auto; font-size:.84rem; color:var(--mint); font-weight:700 }
.toc-line--locked{ cursor:not-allowed }
.toc-line--locked:hover{ background:none }
.toc-line--locked .toc-name b{ color:#7A8A94 }
.toc-line--locked .toc-end{
  color:#9AAEBC; font-weight:600; font-size:.74rem; letter-spacing:.06em; text-transform:uppercase;
}
@media (max-width:640px){
  .toc{ padding:24px 18px 20px; border-radius:14px }
  .toc-dots{ display:none }
  .toc-end{ margin-left:auto }
}

/* ---------- THE LIBRARY CODE PLATE, BRUSHED METAL ---------- */
.vault{ max-width:420px; margin:0 auto 42px; text-align:center }
.vault-line{
  margin:0 0 18px; font-size:.78rem; font-weight:600;
  letter-spacing:.18em; text-transform:uppercase; color:#8C98A1;
}
.vault-body{
  position:relative; border-radius:20px; padding:30px 26px 26px;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.55) 0 1px, rgba(255,255,255,0) 1px 2px,
      rgba(0,0,0,.05) 2px 3px, rgba(255,255,255,0) 3px 4px),
    linear-gradient(160deg,#F2F5F7 0%,#D3DAE0 26%,#EDF1F4 48%,#C3CCD3 74%,#E4E9ED 100%);
  box-shadow:
    0 20px 44px rgba(20,40,55,.22),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -2px 3px rgba(80,100,115,.22);
  overflow:hidden;
}
.vault-body::before{
  content:''; position:absolute; inset:0; border-radius:20px; padding:1.5px;
  background:linear-gradient(150deg,#FFFFFF,#9FAEB9 38%,#FFFFFF 58%,#8E9CA7);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.vault-body::after{
  content:''; position:absolute; top:-60%; left:-25%; width:55%; height:220%;
  background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0));
  transform:rotate(14deg); pointer-events:none;
}
.vault-label{
  position:relative; margin:0 0 20px; font-size:.7rem; letter-spacing:.24em;
  text-transform:uppercase; color:#59686F; text-shadow:0 1px 0 rgba(255,255,255,.9);
}
.vault-slots{ position:relative; display:flex; justify-content:center; gap:12px }
.vault-slots input{
  width:60px; height:72px; text-align:center; font:inherit; font-size:1.75rem; font-weight:600;
  color:#E8EEF2; caret-color:#00C0B4;
  background:linear-gradient(180deg,#2C3941,#1B252B);
  border:1px solid #96A4AE; border-radius:12px; outline:none;
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,.55),
    0 1px 0 rgba(255,255,255,.85);
  transition:border-color .16s ease, box-shadow .16s ease;
}
.vault-slots input:focus{
  border-color:#00C0B4;
  box-shadow:inset 0 3px 7px rgba(0,0,0,.55), 0 0 0 3px rgba(0,192,180,.22), 0 1px 0 rgba(255,255,255,.85);
}
.vault .bad{
  position:relative; display:none; margin:18px 0 0; color:#A8352A; font-weight:600; font-size:.88rem;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
}
.vault.is-bad .bad{ display:block }
.vault.is-bad .vault-body{ animation:vshake .42s }
.vault.is-bad .vault-slots input{ border-color:#C0392B; color:#F0A9A0 }
.vault.is-open .vault-slots input{
  border-color:#00C0B4; color:#6FE7DE;
  box-shadow:inset 0 3px 7px rgba(0,0,0,.5), 0 0 0 3px rgba(0,192,180,.25);
}
.vault.is-open .vault-body{ animation:vopen .46s forwards }
.vault .note{ margin:14px 0 0; font-size:.86rem; color:var(--grey) }
@keyframes vshake{
  0%,100%{ transform:translateX(0) } 20%{ transform:translateX(-8px) }
  40%{ transform:translateX(7px) } 60%{ transform:translateX(-5px) } 80%{ transform:translateX(3px) }
}
@keyframes vopen{ to{ transform:scale(.96); opacity:0 } }
@media (max-width:640px){
  .vault{ max-width:330px }
  .vault-body{ padding:24px 16px 22px }
  .vault-slots{ gap:9px }
  .vault-slots input{ width:52px; height:64px; font-size:1.5rem }
}


/* ---- v88: the named doors carry words, so they take the same wider
   plate as the exam and library doors instead of breaking mid-word ---- */
.corridor .door--open .door-plaque,
.corridor .door--soon .door-plaque{ width:92%; padding:7px 4px }
.corridor .door--open .door-plaque b,
.corridor .door--soon .door-plaque b{
  font-size:.70rem; line-height:1.2; hyphens:none; word-break:keep-all; overflow-wrap:normal;
}
.corridor .door--open .door-plaque i,
.corridor .door--soon .door-plaque i{ font-size:.58rem; line-height:1.15 }

/* ---- v89: two floors ---- */
.floor-name{
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
  margin:0 0 6px; color:#fff;
}
.floor-name b{ font-size:1.12rem; font-weight:700; letter-spacing:.01em }
.floor-name i{ font-style:normal; font-size:1.02rem; font-weight:600; color:rgba(255,255,255,.88) }
.corridor--upper{ padding-top:26px }
.corridor--upper .doors{ justify-content:flex-start }
.stairs{
  background:linear-gradient(180deg,#0A3F66,#08508A);
  padding:0;
}
.stairs-in{
  display:flex; align-items:center; gap:16px;
  padding:14px 0 16px;
}
.stairs-in p{
  margin:0; color:rgba(255,255,255,.80); font-size:.9rem; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase;
}
.stairs-steps{ display:flex; align-items:flex-end; gap:3px }
.stairs-steps i{
  display:block; width:16px; background:linear-gradient(180deg,#6B4A32,#4E3423);
  border-top:2px solid #8A6244; border-radius:2px 2px 0 0;
}
.stairs-steps i:nth-child(1){ height:10px }
.stairs-steps i:nth-child(2){ height:17px }
.stairs-steps i:nth-child(3){ height:24px }
.stairs-steps i:nth-child(4){ height:31px }
.stairs-steps i:nth-child(5){ height:38px }
@media (max-width:640px){
  .floor-name{ gap:6px }
  .floor-name b{ font-size:1rem }
  .floor-name i{ font-size:.82rem }
  .stairs-steps i{ width:12px }
}

/* ---- v91: the second floor sits above the ground floor on the page,
   so the staircase between them runs downwards ---- */
.stairs-steps--down i:nth-child(1){ height:38px }
.stairs-steps--down i:nth-child(2){ height:31px }
.stairs-steps--down i:nth-child(3){ height:24px }
.stairs-steps--down i:nth-child(4){ height:17px }
.stairs-steps--down i:nth-child(5){ height:10px }

/* ---- v93: same walls on both floors; the upper doors take the
   deep navy of the page footer ---- */
.corridor--upper .door{
  background:linear-gradient(180deg,#0A3A5E 0%,#062E4F 52%,#04223C 100%);
}
.corridor--upper .door::after{ background:none }
.corridor--upper .door-panel{ border-color:rgba(255,255,255,.07) }

/* phone with country code, and the time slots */
.phone-row{display:flex;gap:8px}
.phone-row .cc{flex:0 0 46%;min-width:0}
.phone-row input[type="tel"]{flex:1 1 auto;min-width:0}
.slots{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
@media (max-width:640px){.slots{grid-template-columns:1fr}}
.slot{display:flex;align-items:center;gap:9px;padding:10px 12px;
  border:1px solid #D8E4EC;border-radius:10px;background:#fff;cursor:pointer;
  font-size:.95rem;line-height:1.3}
.slot:hover{border-color:var(--blue)}
.slot input{width:17px;height:17px;accent-color:var(--mint);flex:0 0 auto;margin:0 9px 0 0}
.slot:has(input:checked){border-color:var(--mint);box-shadow:0 0 0 2px rgba(0,192,180,.18)}


/* required marker, and the hours label made to stand out */
.req{color:#D64545;margin-left:3px;font-weight:600}
.field label.big{font-size:1.12rem;margin-bottom:14px;margin-top:6px}
.slots{margin-top:10px}
/* narrower country box, with an arrow drawn inside the edge */
.phone-row .cc{flex:0 0 33%;
  -webkit-appearance:none;appearance:none;
  padding-right:30px;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235E6E77' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 11px center}


/* ============ v112: a bulb behind the glass ============
   Dark by default. Lit when a class is running, and always lit
   in the library. The plaque is lifted clear of the pane. */
.door-panel--top{overflow:hidden}
.corridor .door-bulb{
  position:absolute;left:50%;top:26px;width:15px;height:15px;
  margin-left:-7.5px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 40% 34%,#C9D6DE,#9DAEB9 60%,#7C8C96);
  box-shadow:inset 0 -1px 2px rgba(0,0,0,.30);
  transition:background .5s ease, box-shadow .5s ease;
}
/* the little brass cap and the flex holding it to the ceiling */
.corridor .door-bulb::before{
  content:"";position:absolute;left:50%;top:-7px;width:5px;height:7px;
  margin-left:-2.5px;border-radius:1px;
  background:linear-gradient(180deg,#C6A66B,#947A46);
}
.corridor .door-bulb::after{
  content:"";position:absolute;left:50%;top:-26px;width:1.5px;height:20px;
  margin-left:-.75px;background:rgba(60,45,28,.55);
}
/* lit */
.corridor .door.is-live .door-bulb,
.corridor .door--library .door-bulb{
  background:radial-gradient(circle at 42% 34%,#FFF7DC,#FFE08A 48%,#F4B942 78%,#D99A21);
  box-shadow:
    0 0 10px 3px rgba(255,205,105,.85),
    0 0 26px 10px rgba(255,190,80,.42),
    inset 0 -1px 2px rgba(150,95,10,.28);
}
/* warm wash of light filling the pane under a lit bulb */
.corridor .door.is-live .door-panel--top,
.corridor .door--library .door-panel--top{
  background:
    radial-gradient(60% 34% at 50% 20%, rgba(255,214,130,.62), rgba(255,214,130,0) 72%),
    linear-gradient(116deg,
      rgba(255,255,255,.00) 0 12%, rgba(255,255,255,.44) 12% 21%,
      rgba(255,255,255,.12) 21% 30%, rgba(255,255,255,.34) 30% 37%,
      rgba(255,255,255,.00) 37% 100%),
    linear-gradient(180deg, rgba(255,250,235,.86), rgba(252,238,205,.78) 52%, rgba(240,220,180,.72));
}
/* lift the board so the whole pane is visible */
.corridor .door-plaque{margin-top:-14px}


/* ============ v112b: no hanging board — lettering on the door ============ */
.corridor .door-plaque{
  background:none;box-shadow:none;border-radius:0;
  transform:none;width:auto;margin:10px 4px 0;padding:0;
  color:#EAF4FB;text-shadow:0 1px 2px rgba(0,0,0,.55);
}
.corridor .door-plaque::before,
.corridor .door-plaque::after{content:none}
.corridor .door-nail{display:none}
.corridor .door-plaque b{
  color:#FFFFFF;font-weight:700;letter-spacing:.01em;
}
.corridor .door-plaque i,
.corridor .door-plaque u{
  color:#BFE4F5;
}
.corridor .door.is-knocking .door-plaque{animation:none}


/* ============ v113: subtler bulb ============
   Unlit bulbs are invisible - you would not see one through frosted
   glass. The flex is barely there, and the light is a cleaner white. */
.corridor .door-bulb{opacity:0}
.corridor .door.is-live .door-bulb,
.corridor .door--library .door-bulb{opacity:1}

/* thinner, fainter flex and a smaller cap */
.corridor .door-bulb::before{
  top:-5px;width:4px;height:5px;margin-left:-2px;
  background:linear-gradient(180deg,rgba(198,166,107,.55),rgba(148,122,70,.45));
}
.corridor .door-bulb::after{
  top:-22px;height:17px;width:1px;margin-left:-.5px;
  background:rgba(70,60,45,.22);
}

/* cooler, cleaner light - less yellow */
.corridor .door.is-live .door-bulb,
.corridor .door--library .door-bulb{
  background:radial-gradient(circle at 42% 34%,#FFFFFF,#FFFBEF 45%,#FDEFC8 74%,#F2DCA4);
  box-shadow:
    0 0 9px 3px rgba(255,248,225,.75),
    0 0 22px 9px rgba(255,245,215,.34),
    inset 0 -1px 2px rgba(170,140,70,.20);
}
/* and a paler wash in the pane */
.corridor .door.is-live .door-panel--top,
.corridor .door--library .door-panel--top{
  background:
    radial-gradient(58% 32% at 50% 20%, rgba(255,250,232,.55), rgba(255,250,232,0) 72%),
    linear-gradient(116deg,
      rgba(255,255,255,.00) 0 12%, rgba(255,255,255,.46) 12% 21%,
      rgba(255,255,255,.12) 21% 30%, rgba(255,255,255,.36) 30% 37%,
      rgba(255,255,255,.00) 37% 100%),
    linear-gradient(180deg, rgba(252,253,250,.88), rgba(244,248,244,.80) 52%, rgba(226,236,236,.74));
}


/* v113b: shorter flex, bulb sits nearer the head of the pane */
.corridor .door-bulb{top:16px}
.corridor .door-bulb::after{top:-13px;height:9px}


/* ============ v114: name clear of the glass, warm light round the door ============
   The vision lite is a narrow strip on the handle side, so the lettering
   is kept on the timber to the left of it and aligned there. */
.corridor .door-plaque{
  margin:52px 0 0;
  padding-right:30%;          /* keeps the words off the glass strip */
  padding-left:14px;
  text-align:left;
  position:relative;z-index:3;
}
.corridor .door-plaque b{display:block;line-height:1.24}
.corridor .door-plaque i{display:block;margin-top:4px;line-height:1.25}

/* bulb belongs to the narrow lite, so centre it in that strip */
.corridor .door-bulb{left:auto;right:calc(13% - 7px);margin-left:0;top:14px}
.corridor .door-bulb::before{left:50%}
.corridor .door-bulb::after{left:50%;top:-11px;height:8px}

/* --- light escaping a room that is in use: warm, not mint --- */
.corridor .door.is-live{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.28),
    -7px 0 0 rgba(255,246,222,.30),
     7px 0 0 rgba(255,240,205,.24),
     0 -7px 0 rgba(255,244,215,.42),
     12px 10px 26px rgba(0,0,0,.30),
     0 0 46px rgba(255,238,198,.46);
}
.corridor .door.is-live::after{
  background:rgba(255,246,222,.95);
}
.corridor .door--library{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.28),
    -7px 0 0 rgba(255,246,222,.26),
     7px 0 0 rgba(255,240,205,.20),
     0 -7px 0 rgba(255,244,215,.36),
     12px 10px 26px rgba(0,0,0,.30),
     0 0 40px rgba(255,238,198,.38);
}


/* v114b: everything written on the door keeps to the timber, left of the lite */
.corridor .door-level{
  justify-content:flex-start;
  text-align:left;
  padding-left:14px;padding-right:30%;
}
.corridor .door-status{
  text-align:left;
  left:14px;right:30%;
}
.corridor .door-plaque b{font-size:1.02rem}


/* ============ v115: back to the warm bulb, short flex ============
   The cooler white of v113 was wrong - the warm one reads as a room
   with someone in it. Keeping only the shortened flex. */
.corridor .door.is-live .door-bulb,
.corridor .door--library .door-bulb{
  background:radial-gradient(circle at 42% 34%,#FFF7DC,#FFE08A 48%,#F4B942 78%,#D99A21);
  box-shadow:
    0 0 10px 3px rgba(255,205,105,.85),
    0 0 26px 10px rgba(255,190,80,.42),
    inset 0 -1px 2px rgba(150,95,10,.28);
}
.corridor .door.is-live .door-panel--top,
.corridor .door--library .door-panel--top{
  background:
    radial-gradient(60% 34% at 50% 18%, rgba(255,214,130,.62), rgba(255,214,130,0) 72%),
    linear-gradient(118deg,
      rgba(255,255,255,.00) 0 14%, rgba(255,255,255,.30) 14% 22%,
      rgba(255,255,255,.06) 22% 31%, rgba(255,255,255,.22) 31% 38%,
      rgba(255,255,255,.00) 38% 100%),
    linear-gradient(180deg, rgba(255,246,224,.80), rgba(250,228,186,.72) 52%, rgba(238,210,164,.66));
}
/* brass cap back to full warmth, flex stays short */
.corridor .door-bulb::before{
  background:linear-gradient(180deg,#C6A66B,#947A46);
}


/* ============ v116: the name sits above the vision lite ============
   Full width of the door, on the timber head above the glass, so nothing
   overlaps the pane. The lite starts lower to make room for two lines. */
.corridor .door-panel--top{top:84px;height:34%}

.corridor .door-plaque{
  position:absolute;left:0;right:0;top:12px;
  margin:0;padding:0 12px;
  text-align:center;
  z-index:4;
}
.corridor .door-plaque b{
  display:block;font-size:1.0rem;line-height:1.18;font-weight:700;
}
.corridor .door-plaque i{display:block;margin-top:3px;font-size:.72rem;line-height:1.2}

/* level and status keep to the timber left of the glass */
.corridor .door-level{
  margin-top:74px;
}
/* bulb hangs from just under the door head, inside the lite */
.corridor .door-bulb{top:12px}
.corridor .door-bulb::after{top:-11px;height:8px}


/* ============ v117: uneven light leak ============
   An even halo looks drawn. Real light escapes through gaps: strongest
   under the door, patchy down the hinge side, weakest where the door
   meets the jamb on the handle side. */
.corridor .door.is-live,
.corridor .door--library{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.28),
    12px 10px 26px rgba(0,0,0,.30);
}
/* the leak itself, drawn as three separate soft edges of different strength */
.corridor .door.is-live::before,
.corridor .door--library::before{
  content:"";position:absolute;inset:-8px -7px -10px -7px;
  pointer-events:none;z-index:0;border-radius:6px 6px 0 0;
  background:
    /* head of the door: thin, interrupted */
    linear-gradient(90deg,
      rgba(255,226,160,0) 0 6%,
      rgba(255,230,170,.42) 14% 38%,
      rgba(255,226,160,.10) 44% 52%,
      rgba(255,232,178,.50) 58% 86%,
      rgba(255,226,160,0) 94% 100%) top/100% 7px no-repeat,
    /* hinge side: brightest near the middle hinge */
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 8%,
      rgba(255,230,170,.30) 18% 33%,
      rgba(255,222,150,.06) 38% 46%,
      rgba(255,234,182,.46) 54% 78%,
      rgba(255,222,150,.08) 86% 100%) left/6px 100% no-repeat,
    /* handle side: weaker, tighter to the jamb */
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 14%,
      rgba(255,228,164,.22) 24% 44%,
      rgba(255,222,150,.04) 50% 62%,
      rgba(255,230,170,.28) 70% 92%,
      rgba(255,222,150,0) 96% 100%) right/5px 100% no-repeat;
  filter:blur(3.5px);
}
/* the pool under the door: widest and warmest, but off-centre */
.corridor .door.is-live::after,
.corridor .door--library::after{
  content:"";position:absolute;left:-2%;right:6%;bottom:-6px;height:12px;
  background:
    radial-gradient(70% 100% at 38% 0%, rgba(255,240,205,.95), rgba(255,226,160,.30) 62%, rgba(255,222,150,0) 100%);
  filter:blur(5px);opacity:.95;z-index:0;
}


/* ============ v117: bulb centred in the vision lite ============
   v114 anchored it to the door edge, which pushed it to the handle side.
   The bulb is a child of .door-panel--top, so 50% is the middle of the glass. */
.corridor .door-bulb{left:50%;right:auto;margin-left:-7.5px;top:14px}
.corridor .door-bulb::before{left:50%;margin-left:-2.5px}
.corridor .door-bulb::after{left:50%;top:-11px;height:8px}


/* ============ v118: leak strongest at the opening edge ============
   A hung door has a real gap where it swings open and almost none at the
   hinge, so the light should be lopsided to the handle side (right). */
.corridor .door.is-live::before,
.corridor .door--library::before{
  background:
    /* head: faint, mostly toward the opening edge */
    linear-gradient(90deg,
      rgba(255,226,160,0) 0 30%,
      rgba(255,228,164,.14) 44% 60%,
      rgba(255,234,182,.40) 72% 94%,
      rgba(255,226,160,0) 99% 100%) top/100% 5px no-repeat,
    /* hinge side: barely there */
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 20%,
      rgba(255,228,164,.10) 34% 58%,
      rgba(255,222,150,.03) 66% 82%,
      rgba(255,222,150,0) 92% 100%) left/3px 100% no-repeat,
    /* handle side: the real gap, bright and uneven down its length */
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 5%,
      rgba(255,238,196,.62) 12% 30%,
      rgba(255,226,160,.16) 36% 44%,
      rgba(255,242,206,.78) 52% 74%,
      rgba(255,228,166,.28) 80% 92%,
      rgba(255,222,150,0) 98% 100%) right/9px 100% no-repeat;
  filter:blur(3.5px);
}
/* the pool under the door pushed toward the opening edge */
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:14%;right:-6%;
  background:
    radial-gradient(74% 100% at 74% 0%, rgba(255,242,208,.95), rgba(255,226,160,.28) 60%, rgba(255,222,150,0) 100%);
}

/* ============ v119: softer opening-edge leak, and stop the clipping ======
   Two faults in v118. The light at the handle side was far too strong, and
   the doors row is a horizontal scroller - when one axis scrolls the other
   cannot stay visible, so the glow was being sliced off in a straight line.
   Padding sits inside the scroll box, so the spill has room to live. */
.corridor .doors{padding:10px 16px 20px}

.corridor .door.is-live::before,
.corridor .door--library::before{
  background:
    /* head: barely a suggestion */
    linear-gradient(90deg,
      rgba(255,226,160,0) 0 34%,
      rgba(255,228,164,.08) 48% 62%,
      rgba(255,234,182,.18) 74% 92%,
      rgba(255,226,160,0) 99% 100%) top/100% 4px no-repeat,
    /* hinge side: the faint line it was before */
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 20%,
      rgba(255,228,164,.10) 34% 58%,
      rgba(255,222,150,.03) 66% 82%,
      rgba(255,222,150,0) 92% 100%) left/3px 100% no-repeat,
    /* handle side: still the wider gap, but much calmer */
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 6%,
      rgba(255,238,196,.26) 14% 30%,
      rgba(255,226,160,.07) 36% 46%,
      rgba(255,242,206,.32) 54% 74%,
      rgba(255,228,166,.12) 80% 92%,
      rgba(255,222,150,0) 98% 100%) right/5px 100% no-repeat;
  filter:blur(3px);
}
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:20%;right:0%;
  background:
    radial-gradient(70% 100% at 70% 0%, rgba(255,242,208,.52), rgba(255,226,160,.16) 60%, rgba(255,222,150,0) 100%);
}

/* ============ v120: light all round, so the outline reads =============
   Enough on every edge for the door to be legible as a shape, with the
   handle side still the strongest. A faint continuous halo underneath
   keeps the corners from disappearing. */
.corridor .door.is-live::before,
.corridor .door--library::before{
  background:
    radial-gradient(76% 62% at 50% 52%,
      rgba(255,232,176,0) 58%,
      rgba(255,232,176,.16) 82%,
      rgba(255,228,168,.05) 100%),
    linear-gradient(90deg,
      rgba(255,226,160,0) 0 8%,
      rgba(255,230,172,.22) 20% 44%,
      rgba(255,226,160,.10) 50% 58%,
      rgba(255,234,182,.30) 68% 92%,
      rgba(255,226,160,0) 99% 100%) top/100% 6px no-repeat,
    linear-gradient(90deg,
      rgba(255,226,160,0) 0 6%,
      rgba(255,232,178,.26) 18% 46%,
      rgba(255,226,160,.12) 52% 62%,
      rgba(255,238,192,.34) 70% 94%,
      rgba(255,226,160,0) 99% 100%) bottom/100% 6px no-repeat,
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 10%,
      rgba(255,230,172,.22) 22% 44%,
      rgba(255,222,150,.07) 50% 60%,
      rgba(255,232,178,.26) 68% 88%,
      rgba(255,222,150,0) 96% 100%) left/5px 100% no-repeat,
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 6%,
      rgba(255,238,196,.38) 14% 32%,
      rgba(255,226,160,.12) 38% 46%,
      rgba(255,242,206,.44) 54% 76%,
      rgba(255,228,166,.18) 82% 93%,
      rgba(255,222,150,0) 98% 100%) right/7px 100% no-repeat;
  filter:blur(3px);
}
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:8%;right:-2%;
  background:
    radial-gradient(72% 100% at 66% 0%, rgba(255,242,208,.62), rgba(255,226,160,.20) 62%, rgba(255,222,150,0) 100%);
}

/* ============ v121: same outline, about half the strength ============
   All four edges still read, but the light sits back into the corridor
   instead of announcing itself. */
.corridor .door.is-live::before,
.corridor .door--library::before{
  background:
    radial-gradient(76% 62% at 50% 52%,
      rgba(255,232,176,0) 58%,
      rgba(255,232,176,.08) 84%,
      rgba(255,228,168,.02) 100%),
    linear-gradient(90deg,
      rgba(255,226,160,0) 0 8%,
      rgba(255,230,172,.11) 20% 44%,
      rgba(255,226,160,.05) 50% 58%,
      rgba(255,234,182,.15) 68% 92%,
      rgba(255,226,160,0) 99% 100%) top/100% 5px no-repeat,
    linear-gradient(90deg,
      rgba(255,226,160,0) 0 6%,
      rgba(255,232,178,.13) 18% 46%,
      rgba(255,226,160,.06) 52% 62%,
      rgba(255,238,192,.17) 70% 94%,
      rgba(255,226,160,0) 99% 100%) bottom/100% 5px no-repeat,
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 10%,
      rgba(255,230,172,.11) 22% 44%,
      rgba(255,222,150,.03) 50% 60%,
      rgba(255,232,178,.13) 68% 88%,
      rgba(255,222,150,0) 96% 100%) left/4px 100% no-repeat,
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 6%,
      rgba(255,238,196,.19) 14% 32%,
      rgba(255,226,160,.06) 38% 46%,
      rgba(255,242,206,.22) 54% 76%,
      rgba(255,228,166,.09) 82% 93%,
      rgba(255,222,150,0) 98% 100%) right/6px 100% no-repeat;
  filter:blur(3px);
}
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:8%;right:-2%;
  background:
    radial-gradient(72% 100% at 66% 0%, rgba(255,242,208,.32), rgba(255,226,160,.10) 62%, rgba(255,222,150,0) 100%);
}

/* ============ v122: the two side edges only ============
   No head, no foot, no wash across the door face and no pool on the floor.
   Light escapes down the left and right edges and nowhere else. */
.corridor .door.is-live::before,
.corridor .door--library::before{
  background:
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 10%,
      rgba(255,230,172,.13) 22% 44%,
      rgba(255,222,150,.04) 50% 60%,
      rgba(255,232,178,.15) 68% 88%,
      rgba(255,222,150,0) 96% 100%) left/4px 100% no-repeat,
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 6%,
      rgba(255,238,196,.20) 14% 32%,
      rgba(255,226,160,.06) 38% 46%,
      rgba(255,242,206,.23) 54% 76%,
      rgba(255,228,166,.09) 82% 93%,
      rgba(255,222,150,0) 98% 100%) right/6px 100% no-repeat;
  filter:blur(3px);
}
.corridor .door.is-live::after,
.corridor .door--library::after{
  background:none;
  filter:none;
  opacity:0;
}

/* ============ v122: light from the two sides only ============
   No head, no foot, no halo, no pool on the floor. Just the vertical
   gap down each side of the door. */
.corridor .door.is-live::before,
.corridor .door--library::before{
  background:
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 10%,
      rgba(255,230,172,.13) 22% 44%,
      rgba(255,222,150,.04) 50% 60%,
      rgba(255,232,178,.15) 68% 88%,
      rgba(255,222,150,0) 96% 100%) left/4px 100% no-repeat,
    linear-gradient(180deg,
      rgba(255,222,150,0) 0 6%,
      rgba(255,238,196,.22) 14% 32%,
      rgba(255,226,160,.07) 38% 46%,
      rgba(255,242,206,.26) 54% 76%,
      rgba(255,228,166,.10) 82% 93%,
      rgba(255,222,150,0) 98% 100%) right/6px 100% no-repeat;
  filter:blur(3px);
}
.corridor .door.is-live::after,
.corridor .door--library::after{
  background:none;
  filter:none;
  box-shadow:none;
}

/* ============ v123: the door stands on the floor ============
   v122 took away the pool of light and with it the only thing grounding
   the door. A real door is not held down by glow but by a contact shadow:
   a tight dark line where it meets the boards, fading outward.
   Also drops the bar of light across the head and the big soft halo left
   over from v114, since the light is meant to come from the sides only. */
.corridor .door{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.26),
    0 3px 0 -1px rgba(4,18,30,.44),
    0 8px 11px -5px rgba(4,18,30,.46),
    0 16px 24px -12px rgba(4,18,30,.34);
}
.corridor .door.is-live{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.28),
    -5px 0 0 rgba(255,246,222,.22),
     6px 0 0 rgba(255,240,205,.26),
    0 3px 0 -1px rgba(4,18,30,.44),
    0 8px 11px -5px rgba(4,18,30,.46),
    0 16px 24px -12px rgba(4,18,30,.34);
}
.corridor .door--library{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.28),
    -5px 0 0 rgba(255,246,222,.20),
     6px 0 0 rgba(255,240,205,.24),
    0 3px 0 -1px rgba(4,18,30,.44),
    0 8px 11px -5px rgba(4,18,30,.46),
    0 16px 24px -12px rgba(4,18,30,.34);
}

/* ============ v124: doors down onto the boards, and a living light ======
   The 20px I added under the row in v119 to stop the glow being clipped
   was reading as a wall between the door and the floor. Side padding stays,
   so the light at the edges is still not cut; the bottom goes. */
.corridor .doors{padding:10px 16px 0}

/* A steady strip of light reads as a drawn line. Real light from a room
   moves: someone crosses the floor, the lamp settles. Slow and irregular,
   never a blink - the period is long enough that you notice it only if
   you watch. */
@keyframes doorLeak{
  0%   {opacity:.92}
  11%  {opacity:1}
  19%  {opacity:.83}
  27%  {opacity:.97}
  38%  {opacity:.74}
  44%  {opacity:.9}
  55%  {opacity:1}
  63%  {opacity:.86}
  71%  {opacity:.68}
  78%  {opacity:.95}
  88%  {opacity:.8}
  100% {opacity:.92}
}
.corridor .door--library::before{
  animation:doorLeak 17s ease-in-out infinite;
}
.corridor .door.is-live::before{
  animation:doorLeak 23s ease-in-out infinite;
  animation-delay:-6s;
}
@media (prefers-reduced-motion:reduce){
  .corridor .door--library::before,
  .corridor .door.is-live::before{animation:none}
}

/* ============ v125: broken light, not a drawn line ============
   The strip was continuous down its whole length, which is why it read as
   a dash. A real gap is not even: the frame touches in places and the door
   is warped in others, so the light comes in separated patches of different
   length and brightness, with dead stretches between them. Both sides are
   broken at different heights so they do not mirror each other. */
.corridor .door.is-live::before,
.corridor .door--library::before{
  background:
    /* hinge side: little escapes, two short patches only */
    linear-gradient(180deg,
      rgba(255,222,150,0)   0 14%,
      rgba(255,230,172,.16) 17% 26%,
      rgba(255,222,150,0)   29% 52%,
      rgba(255,228,164,.10) 55% 61%,
      rgba(255,222,150,0)   64% 79%,
      rgba(255,230,172,.13) 82% 89%,
      rgba(255,222,150,0)   92% 100%) left/4px 100% no-repeat,
    /* handle side: the working gap, four uneven patches */
    linear-gradient(180deg,
      rgba(255,222,150,0)   0 7%,
      rgba(255,240,200,.30) 10% 21%,
      rgba(255,222,150,0)   24% 31%,
      rgba(255,236,190,.14) 33% 38%,
      rgba(255,222,150,0)   41% 47%,
      rgba(255,244,210,.34) 50% 68%,
      rgba(255,222,150,0)   71% 77%,
      rgba(255,232,176,.20) 80% 91%,
      rgba(255,222,150,0)   94% 100%) right/6px 100% no-repeat;
  filter:blur(2.4px);
}

/* ============ v126: light that fans out, not a painted strip ==========
   The fault was structural, not a matter of values: the leak was drawn in
   a box with straight vertical sides, so its outer boundary was always a
   perfectly straight line and the eye read the line rather than the light.
   Light from a gap has no straight outer edge - it fans away from the
   opening and dies raggedly. Drawn now with ellipses that bleed outward,
   each its own size and offset, so there is no shared boundary anywhere. */
.corridor .door.is-live::before,
.corridor .door--library::before{
  inset:-26px -30px -18px -24px;
  border-radius:0;
  filter:blur(6px);
  background:
    radial-gradient(26px 52px at calc(100% - 30px) 22%,
      rgba(255,242,206,.34), rgba(255,226,160,.10) 52%, rgba(255,222,150,0) 78%),
    radial-gradient(34px 88px at calc(100% - 30px) 58%,
      rgba(255,244,212,.40), rgba(255,228,166,.12) 50%, rgba(255,222,150,0) 80%),
    radial-gradient(20px 44px at calc(100% - 30px) 86%,
      rgba(255,236,190,.22), rgba(255,224,156,.06) 54%, rgba(255,222,150,0) 80%),
    radial-gradient(17px 46px at 24px 30%,
      rgba(255,234,182,.20), rgba(255,224,156,.06) 52%, rgba(255,222,150,0) 80%),
    radial-gradient(14px 34px at 24px 72%,
      rgba(255,230,172,.14), rgba(255,222,150,.04) 54%, rgba(255,222,150,0) 80%);
}

/* v126b: drop the hard side bars. A box-shadow with zero blur is a solid
   painted line down the edge - no amount of work on the fans helps while
   those are still there. Ground shadow stays. */
.corridor .door.is-live,
.corridor .door--library{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.28),
    0 3px 0 -1px rgba(4,18,30,.44),
    0 8px 11px -5px rgba(4,18,30,.46),
    0 16px 24px -12px rgba(4,18,30,.34);
}

/* ============ v127: light on the wall only, full height of both edges ===
   Two faults at once. The glow box overlapped the door face, so light was
   washing across the timber - a door is opaque, the light that escapes
   past it falls on the wall and nowhere else. And the leak was cut into
   separate patches, when it should run the whole height of each edge.
   One tall fan per side now: brightest at mid height, thinning toward the
   head and the foot, with a soft ragged outer edge instead of a rectangle. */
.corridor .door{position:relative;z-index:1}

.corridor .door.is-live::before,
.corridor .door--library::before{
  content:"";position:absolute;
  left:-36px;right:-36px;top:-6px;bottom:0;
  z-index:-1;                      /* behind the door, so nothing lands on it */
  pointer-events:none;
  border-radius:0;
  filter:blur(7px);
  background:
    /* handle side: one fan the full height, strongest in the middle */
    radial-gradient(30px 46% at 36px 52%,
      rgba(255,244,212,.42), rgba(255,230,172,.16) 46%, rgba(255,222,150,0) 84%),
    radial-gradient(20px 30% at 36px 20%,
      rgba(255,240,200,.22), rgba(255,226,160,.06) 52%, rgba(255,222,150,0) 84%),
    radial-gradient(18px 26% at 36px 85%,
      rgba(255,238,194,.18), rgba(255,224,156,.05) 54%, rgba(255,222,150,0) 84%),
    /* hinge side: the same shape, weaker */
    radial-gradient(20px 44% at calc(100% - 36px) 50%,
      rgba(255,236,186,.22), rgba(255,226,160,.08) 48%, rgba(255,222,150,0) 84%),
    radial-gradient(14px 26% at calc(100% - 36px) 18%,
      rgba(255,232,178,.12), rgba(255,222,150,.04) 54%, rgba(255,222,150,0) 84%),
    radial-gradient(13px 24% at calc(100% - 36px) 84%,
      rgba(255,230,172,.10), rgba(255,222,150,.03) 54%, rgba(255,222,150,0) 84%);
}
/* the door face stays plain navy - no wash, no rays, no hard bars */
.corridor .door.is-live,
.corridor .door--library{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.26),
    0 3px 0 -1px rgba(4,18,30,.44),
    0 8px 11px -5px rgba(4,18,30,.46),
    0 16px 24px -12px rgba(4,18,30,.34);
}
.corridor .door.is-live .door-panel--top,
.corridor .door--library .door-panel--top{
  background:
    linear-gradient(118deg,
      rgba(255,255,255,.00) 0 14%, rgba(255,255,255,.26) 14% 22%,
      rgba(255,255,255,.05) 22% 31%, rgba(255,255,255,.19) 31% 38%,
      rgba(255,255,255,.00) 38% 100%),
    linear-gradient(180deg, rgba(255,246,224,.78), rgba(250,228,186,.70) 52%, rgba(238,210,164,.64));
}

/* v127b: .door must NOT establish a stacking context, or the z-index:-1
   glow paints above the door's own background instead of behind it, which
   is the exact fault we are fixing. Positioned with z-index:auto. */
.corridor .door{z-index:auto}

/* ============ v127c: put the leak on the element built for it ==========
   ::before is the door's own slab shading (inset:0, z-index:1 - on the
   door face). ::after is the wall light (inset -38px, z-index:-1 - behind
   the door, on the wall). Every version since v114 painted the leak onto
   ::before, which is precisely why light kept landing on the timber.
   Slab shading restored; the leak moved to ::after where it belongs. */
.corridor .door.is-live::before,
.corridor .door--library::before{
  inset:0;
  left:auto;right:auto;top:auto;bottom:auto;
  z-index:1;
  filter:none;
  animation:none;
  border-radius:inherit;
  background:linear-gradient(180deg,
    rgba(2,20,36,.10) 0%,
    rgba(2,20,36,.14) 46%,
    rgba(2,20,36,.20) 100%);
}

/* the wall leak: full height of both edges, ragged outer edge, never on
   the door - ::after sits behind it */
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:-40px;right:-40px;top:-8px;bottom:-6px;
  border-radius:0;
  opacity:1;
  filter:blur(7px);
  background:
    radial-gradient(30px 46% at 40px 52%,
      rgba(255,244,212,.40), rgba(255,230,172,.15) 46%, rgba(255,222,150,0) 84%),
    radial-gradient(20px 30% at 40px 19%,
      rgba(255,240,200,.21), rgba(255,226,160,.06) 52%, rgba(255,222,150,0) 84%),
    radial-gradient(18px 26% at 40px 86%,
      rgba(255,238,194,.17), rgba(255,224,156,.05) 54%, rgba(255,222,150,0) 84%),
    radial-gradient(20px 44% at calc(100% - 40px) 50%,
      rgba(255,236,186,.21), rgba(255,226,160,.07) 48%, rgba(255,222,150,0) 84%),
    radial-gradient(14px 26% at calc(100% - 40px) 17%,
      rgba(255,232,178,.11), rgba(255,222,150,.04) 54%, rgba(255,222,150,0) 84%),
    radial-gradient(13px 24% at calc(100% - 40px) 85%,
      rgba(255,230,172,.09), rgba(255,222,150,.03) 54%, rgba(255,222,150,0) 84%);
  animation:doorLeak 19s ease-in-out infinite;
}
.corridor .door--library::after{animation-duration:15s;animation-delay:-4s}
@media (prefers-reduced-motion:reduce){
  .corridor .door.is-live::after,
  .corridor .door--library::after{animation:none}
}

/* ============ v128: the door is masked out of the light ==============
   v127 hid the leak behind the door with z-index:-1, which also put it
   behind the corridor wall, so nothing showed at all. Sitting it above
   the wall instead and cutting the door out of it with a mask: the light
   exists only in the strips of wall either side, and stops dead at the
   timber the way it would against a real door. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:-22px;right:-22px;top:-8px;bottom:-4px;
  z-index:3;
  border-radius:0;
  opacity:1;
  filter:blur(6px);
  background:
    radial-gradient(18px 46% at 22px 52%,
      rgba(255,244,212,.52), rgba(255,230,172,.20) 46%, rgba(255,222,150,0) 86%),
    radial-gradient(13px 30% at 22px 19%,
      rgba(255,240,200,.28), rgba(255,226,160,.08) 52%, rgba(255,222,150,0) 86%),
    radial-gradient(12px 26% at 22px 86%,
      rgba(255,238,194,.22), rgba(255,224,156,.06) 54%, rgba(255,222,150,0) 86%),
    radial-gradient(13px 44% at calc(100% - 22px) 50%,
      rgba(255,236,186,.27), rgba(255,226,160,.09) 48%, rgba(255,222,150,0) 86%),
    radial-gradient(10px 26% at calc(100% - 22px) 17%,
      rgba(255,232,178,.14), rgba(255,222,150,.05) 54%, rgba(255,222,150,0) 86%),
    radial-gradient(9px 24% at calc(100% - 22px) 85%,
      rgba(255,230,172,.12), rgba(255,222,150,.04) 54%, rgba(255,222,150,0) 86%);
  -webkit-mask:linear-gradient(90deg,
    #000 0 22px, transparent 22px calc(100% - 22px), #000 calc(100% - 22px) 100%);
          mask:linear-gradient(90deg,
    #000 0 22px, transparent 22px calc(100% - 22px), #000 calc(100% - 22px) 100%);
  animation:doorLeak 19s ease-in-out infinite;
}
.corridor .door--library::after{animation-duration:15s;animation-delay:-4s}

/* v128b: only the door side of the mask should be a hard edge. The outer
   side must fade, or the mask itself draws the straight boundary that was
   making it read as a strip. Fans given more contrast so the band varies
   down its height instead of filling evenly. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  -webkit-mask:linear-gradient(90deg,
    rgba(0,0,0,0) 0, rgba(0,0,0,.55) 8px, #000 16px 22px,
    transparent 22px calc(100% - 22px),
    #000 calc(100% - 22px) calc(100% - 16px), rgba(0,0,0,.55) calc(100% - 8px),
    rgba(0,0,0,0) 100%);
          mask:linear-gradient(90deg,
    rgba(0,0,0,0) 0, rgba(0,0,0,.55) 8px, #000 16px 22px,
    transparent 22px calc(100% - 22px),
    #000 calc(100% - 22px) calc(100% - 16px), rgba(0,0,0,.55) calc(100% - 8px),
    rgba(0,0,0,0) 100%);
  background:
    radial-gradient(17px 34% at 22px 54%,
      rgba(255,246,216,.62), rgba(255,230,172,.18) 48%, rgba(255,222,150,0) 88%),
    radial-gradient(12px 16% at 22px 20%,
      rgba(255,240,200,.26), rgba(255,226,160,.05) 54%, rgba(255,222,150,0) 88%),
    radial-gradient(11px 13% at 22px 88%,
      rgba(255,238,194,.20), rgba(255,224,156,.04) 56%, rgba(255,222,150,0) 88%),
    radial-gradient(12px 30% at calc(100% - 22px) 46%,
      rgba(255,238,192,.30), rgba(255,226,160,.08) 50%, rgba(255,222,150,0) 88%),
    radial-gradient(9px 14% at calc(100% - 22px) 78%,
      rgba(255,232,178,.15), rgba(255,222,150,.04) 56%, rgba(255,222,150,0) 88%);
}


/* ============ v129: visible spill, still not a stripe ================
   v128 had the right shape but was too faint to see. Brightness up; the
   shape is what keeps it from reading as a bar - hard edge at the timber,
   ragged fade outward, widest at mid height and pinched toward the head
   and foot, different heights on each side so they do not mirror. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:-26px;right:-26px;top:-10px;bottom:-6px;
  background:
    radial-gradient(22px 33% at 26px 55%,
      rgba(255,247,222,1), rgba(255,236,186,.42) 42%, rgba(255,224,156,.08) 72%, rgba(255,222,150,0) 92%),
    radial-gradient(14px 15% at 26px 22%,
      rgba(255,242,204,.58), rgba(255,228,166,.12) 52%, rgba(255,222,150,0) 88%),
    radial-gradient(12px 12% at 26px 87%,
      rgba(255,240,198,.44), rgba(255,226,160,.09) 54%, rgba(255,222,150,0) 88%),
    radial-gradient(16px 28% at calc(100% - 26px) 45%,
      rgba(255,242,204,.62), rgba(255,230,172,.18) 46%, rgba(255,222,150,0) 90%),
    radial-gradient(11px 13% at calc(100% - 26px) 76%,
      rgba(255,236,186,.34), rgba(255,224,156,.07) 56%, rgba(255,222,150,0) 88%);
  -webkit-mask:linear-gradient(90deg,
    rgba(0,0,0,0) 0, rgba(0,0,0,.5) 10px, #000 19px 26px,
    transparent 26px calc(100% - 26px),
    #000 calc(100% - 26px) calc(100% - 19px), rgba(0,0,0,.5) calc(100% - 10px),
    rgba(0,0,0,0) 100%);
          mask:linear-gradient(90deg,
    rgba(0,0,0,0) 0, rgba(0,0,0,.5) 10px, #000 19px 26px,
    transparent 26px calc(100% - 26px),
    #000 calc(100% - 26px) calc(100% - 19px), rgba(0,0,0,.5) calc(100% - 10px),
    rgba(0,0,0,0) 100%);
  filter:blur(5px);
}

/* ============ v130: no mask - the light is built the right width ======
   Measured: with the mask in place nothing rendered on the wall at all.
   Dropping it. Each side is now its own background box, 26px wide, pinned
   to the outer edge of the element. Light cannot reach the door because
   the box it is painted in never touches the door. Blur kept small so it
   does not smear back over the timber. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:-26px;right:-26px;top:-10px;bottom:-6px;
  z-index:3;
  border-radius:0;
  opacity:1;
  filter:blur(2px);
  -webkit-mask:none;
          mask:none;
  background:
    /* handle side strip */
    radial-gradient(20px 34% at 100% 55%,
      rgba(255,247,222,.95), rgba(255,236,186,.40) 44%, rgba(255,224,156,.08) 74%, rgba(255,222,150,0) 94%)
      left / 26px 100% no-repeat,
    radial-gradient(13px 14% at 100% 21%,
      rgba(255,242,204,.52), rgba(255,228,166,.10) 54%, rgba(255,222,150,0) 90%)
      left / 26px 100% no-repeat,
    radial-gradient(12px 12% at 100% 88%,
      rgba(255,240,198,.40), rgba(255,226,160,.08) 56%, rgba(255,222,150,0) 90%)
      left / 26px 100% no-repeat,
    /* hinge side strip */
    radial-gradient(15px 29% at 0% 45%,
      rgba(255,242,204,.58), rgba(255,230,172,.16) 48%, rgba(255,222,150,0) 92%)
      right / 26px 100% no-repeat,
    radial-gradient(10px 13% at 0% 77%,
      rgba(255,236,186,.30), rgba(255,224,156,.06) 58%, rgba(255,222,150,0) 90%)
      right / 26px 100% no-repeat;
}

/* v130b: forced. Something earlier in this long file keeps winning on the
   background of this pseudo-element, so the leak is declared !important
   here. Two strips of wall, 26px wide, pinned outside the door. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  background:
    radial-gradient(20px 34% at 100% 55%,
      rgba(255,247,222,.95), rgba(255,236,186,.40) 44%, rgba(255,224,156,.08) 74%, rgba(255,222,150,0) 94%)
      left / 26px 100% no-repeat,
    radial-gradient(13px 14% at 100% 21%,
      rgba(255,242,204,.52), rgba(255,228,166,.10) 54%, rgba(255,222,150,0) 90%)
      left / 26px 100% no-repeat,
    radial-gradient(12px 12% at 100% 88%,
      rgba(255,240,198,.40), rgba(255,226,160,.08) 56%, rgba(255,222,150,0) 90%)
      left / 26px 100% no-repeat,
    radial-gradient(15px 29% at 0% 45%,
      rgba(255,242,204,.58), rgba(255,230,172,.16) 48%, rgba(255,222,150,0) 92%)
      right / 26px 100% no-repeat,
    radial-gradient(10px 13% at 0% 77%,
      rgba(255,236,186,.30), rgba(255,224,156,.06) 58%, rgba(255,222,150,0) 90%)
      right / 26px 100% no-repeat !important;
  filter:blur(2px) !important;
  opacity:1 !important;
  -webkit-mask:none !important;
          mask:none !important;
}

/* v131b: the position in a background shorthand must be two values when a
   size follows the slash - "left / 26px" is invalid and made the browser
   throw the whole declaration away, which is why nothing rendered. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  background:
    radial-gradient(20px 34% at 100% 55%,
      rgba(255,247,222,.95), rgba(255,236,186,.40) 44%, rgba(255,224,156,.08) 74%, rgba(255,222,150,0) 94%)
      0% 50% / 26px 100% no-repeat,
    radial-gradient(13px 14% at 100% 21%,
      rgba(255,242,204,.52), rgba(255,228,166,.10) 54%, rgba(255,222,150,0) 90%)
      0% 50% / 26px 100% no-repeat,
    radial-gradient(12px 12% at 100% 88%,
      rgba(255,240,198,.40), rgba(255,226,160,.08) 56%, rgba(255,222,150,0) 90%)
      0% 50% / 26px 100% no-repeat,
    radial-gradient(15px 29% at 0% 45%,
      rgba(255,242,204,.58), rgba(255,230,172,.16) 48%, rgba(255,222,150,0) 92%)
      100% 50% / 26px 100% no-repeat,
    radial-gradient(10px 13% at 0% 77%,
      rgba(255,236,186,.30), rgba(255,224,156,.06) 58%, rgba(255,222,150,0) 90%)
      100% 50% / 26px 100% no-repeat !important;
}

/* v132b: longhand, so there is no shorthand left to be rejected. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  background-image:
    radial-gradient(20px 34% at 100% 55%,
      rgba(255,247,222,.95), rgba(255,236,186,.40) 44%, rgba(255,224,156,.08) 74%, rgba(255,222,150,0) 94%),
    radial-gradient(13px 14% at 100% 21%,
      rgba(255,242,204,.52), rgba(255,228,166,.10) 54%, rgba(255,222,150,0) 90%),
    radial-gradient(15px 29% at 0% 45%,
      rgba(255,242,204,.58), rgba(255,230,172,.16) 48%, rgba(255,222,150,0) 92%),
    radial-gradient(10px 13% at 0% 77%,
      rgba(255,236,186,.30), rgba(255,224,156,.06) 58%, rgba(255,222,150,0) 90%) !important;
  background-position:0% 50%, 0% 50%, 100% 50%, 100% 50% !important;
  background-size:26px 100%, 26px 100%, 26px 100%, 26px 100% !important;
  background-repeat:no-repeat !important;
  background-color:transparent !important;
}

/* v133: pure pixel radii. Mixed units in a radial-gradient radius
   ("20px 34%") are rejected by this engine, which silently killed every
   version of the leak since v129. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  background-image:
    radial-gradient(20px 130px at 100% 55%,
      rgba(255,247,222,.95), rgba(255,236,186,.40) 44%, rgba(255,224,156,.08) 74%, rgba(255,222,150,0) 94%),
    radial-gradient(13px 56px at 100% 21%,
      rgba(255,242,204,.52), rgba(255,228,166,.10) 54%, rgba(255,222,150,0) 90%),
    radial-gradient(15px 112px at 0% 45%,
      rgba(255,242,204,.58), rgba(255,230,172,.16) 48%, rgba(255,222,150,0) 92%),
    radial-gradient(10px 50px at 0% 77%,
      rgba(255,236,186,.30), rgba(255,224,156,.06) 58%, rgba(255,222,150,0) 90%) !important;
  background-position:0% 50%, 0% 50%, 100% 50%, 100% 50% !important;
  background-size:26px 100% !important;
  background-repeat:no-repeat !important;
}

/* ============ v134: back to the light that actually worked ============
   I could not get the side-only leak to render after many attempts, and
   kept shipping versions with no light at all. Restoring the original
   warm wall pool from v42, which is known to work, rather than leaving
   the corridor dark. Warm, not mint. */
.corridor .door.is-live::after,
.corridor .door--library::after{
  left:-38px !important; right:-38px !important;
  top:-32px !important; bottom:-32px !important;
  border-radius:26px !important;
  z-index:-1 !important;
  filter:none !important;
  opacity:.92 !important;
  background-image:radial-gradient(58% 54% at 50% 40%,
    rgba(255,246,226,.34) 0%,
    rgba(255,240,214,.19) 44%,
    rgba(255,238,210,.07) 70%,
    rgba(255,238,210,0) 100%) !important;
  background-position:50% 50% !important;
  background-size:auto !important;
  background-repeat:no-repeat !important;
}


/* ============ the exam room: one column per book level =============
   Four columns side by side - Elementary, Intermediate, Upper
   intermediate, Advanced. Tests run down inside each column, and each
   card says whether it is vocabulary or grammar. Levels with nothing
   written yet still show, so the page maps out the whole plan. */
.pc-bands{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
  align-items:start;
}
.pc-band{ display:flex; flex-direction:column; gap:12px; min-width:0 }

.pc-head{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding-bottom:9px;
  border-bottom:2px solid #D8E4EC;
}
.pc-band-name{
  font-size:1.04rem;
  font-weight:700;
  color:var(--navy);
  line-height:1.25;
}
.pc-band-cefr{
  align-self:flex-start;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.05em;
  color:#0A7F78;
  background:#E6F7F5;
  border-radius:999px;
  padding:2px 9px;
}

/* the subject label, since the columns are levels now and no longer
   say by their position whether a test is vocabulary or grammar */
.pc-subject{
  display:block;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#0A7F78;
}

.pc-card--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed #C9D8E4;
  background:transparent;
  box-shadow:none;
  cursor:default;
  min-height:110px;
}
.pc-soon{ color:var(--grey); font-size:.94rem }

/* Four columns are too narrow on a tablet, and far too narrow on a
   phone, so they step down to two and then to one. */
@media (max-width:1200px){
  .pc-bands{ grid-template-columns:repeat(2, 1fr) }
}
@media (max-width:620px){
  .pc-bands{ grid-template-columns:1fr; gap:26px }
  .pc-card--empty{ min-height:78px }
}


/* ============ v140: unlit panes read as unlit ============
   She asked for the contrast between a running class and a quiet one
   to be more obvious - but from the dark side, not by making the lit
   bulb brighter. So the lit rules above are untouched. This only
   deepens and cools the default pane, so an unlit door looks like a
   room with the light off rather than a room in daylight. Kept
   moderate on purpose: too dark and the doors read as derelict. */
.corridor .door-panel--top{
  border-color:rgba(8,24,40,.62);
  background:
    linear-gradient(118deg,
      rgba(255,255,255,.00) 0 14%,
      rgba(255,255,255,.18) 14% 22%,
      rgba(255,255,255,.04) 22% 31%,
      rgba(255,255,255,.13) 31% 38%,
      rgba(255,255,255,.00) 38% 100%),
    linear-gradient(180deg, rgba(104,140,166,.66), rgba(72,106,134,.62));
  box-shadow:
    inset 0 3px 7px rgba(4,18,32,.55),
    inset 0 -1px 0 rgba(255,255,255,.18),
    0 1px 0 rgba(255,255,255,.08);
}
/* the wire mesh darkens with the glass behind it */
.corridor .door-panel--top::before{
  background:
    repeating-linear-gradient(0deg, rgba(20,44,62,.30) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(20,44,62,.30) 0 1px, transparent 1px 9px);
}

/* ============ v141: no mesh in the glass ============
   The criss-cross was wired safety glass, but against the darker pane
   of v140 it read as bars on a cell. Removed outright rather than
   lightened - plain glass is what a language academy has. The two
   earlier rules that painted it (the base one and the v140 one) are
   left in place and simply overridden here, so the history stays
   readable. */
.corridor .door-panel--top::before{ content:none }

/* ============ v142: frosted glass, no straight lines ============
   v141 stripped the mesh because it read as bars. Plain glass then
   looked like a hole in the door, so the pane gets a matte finish
   instead: soft irregular blooms, a faint vertical ripple like
   reeded glass but far too soft to count as lines, and a fine grain.
   Nothing here repeats on a square grid, which is what made the
   mesh read as a cell. */
.corridor .door-panel--top::before{
  content:"";
  position:absolute; inset:2px; pointer-events:none;
  border-radius:1px;
  opacity:.85;
  background:
    radial-gradient(38% 22% at 22% 18%, rgba(255,255,255,.20), rgba(255,255,255,0) 70%),
    radial-gradient(30% 18% at 74% 38%, rgba(255,255,255,.14), rgba(255,255,255,0) 72%),
    radial-gradient(44% 26% at 40% 72%, rgba(255,255,255,.12), rgba(255,255,255,0) 74%),
    radial-gradient(26% 16% at 82% 84%, rgba(255,255,255,.10), rgba(255,255,255,0) 76%),
    linear-gradient(90deg,
      rgba(255,255,255,.07) 0 6%, rgba(255,255,255,.00) 6% 14%,
      rgba(255,255,255,.05) 14% 21%, rgba(255,255,255,.00) 21% 33%,
      rgba(255,255,255,.06) 33% 41%, rgba(255,255,255,.00) 41% 54%,
      rgba(255,255,255,.04) 54% 62%, rgba(255,255,255,.00) 62% 76%,
      rgba(255,255,255,.06) 76% 84%, rgba(255,255,255,.00) 84% 100%);
}
/* the fine grain sits on its own layer so it survives the lit state */
.corridor .door-panel--top::after{
  content:"";
  position:absolute; inset:2px; pointer-events:none;
  border-radius:1px;
  opacity:.5;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}


/* ============ v145: both floors in one window ============
   The corridor was built for scrolling: a 374px door meant the upper
   and lower floors could never be seen together. The doors are now
   sized from the height of the window itself, and the space between
   the two floors is cut back, so the whole building is visible at once.
   Sideways scrolling stays - that is how a corridor should read. */
.corridor .door{
  flex:0 0 auto !important;
  width:auto !important;
  height:clamp(226px, 29.5vh, 344px);
  aspect-ratio:.52;
  padding:12px 10px 34px;
}
/* everything on the door face scales down with it */
.corridor .door-plaque{ margin-top:10px }
.corridor .door-plaque b{ font-size:.80rem; line-height:1.12 }
.corridor .door-plaque i{ font-size:.62rem }
.corridor .door-level{ font-size:.95rem }
.corridor .door-status{ bottom:15px; font-size:.58rem; line-height:1.25 }
.corridor .door-kick{ bottom:7px; height:8px; left:9px; right:9px }
.corridor .door-handle{ top:58%; right:9px; width:11px; height:11px }
.corridor .door-panel--top{ top:26%; height:28% }
/* the name must never run across the lit pane */
.corridor .door-plaque{ z-index:2 }

/* the room above and below the doors, trimmed */
.classes-intro{ padding-top:20px; padding-bottom:8px }
.classes-intro h1{ margin-bottom:6px }
.classes-intro .lede{ margin-bottom:0 }
.corridor--upper{ padding-top:10px }
.corridor .corridor-floor{ height:34px }
.stairs{ padding:0 }
.stairs .stairs-in{ padding:5px 0 }
.stairs p{ font-size:.66rem; letter-spacing:.14em; margin:0 }
.corridor{ padding-top:12px; padding-bottom:0 }
.corridor--upper{ padding-bottom:0 }
.corridor .corridor-hint{ margin:0 0 8px }
.corridor .doors{ padding-bottom:0 }

/* on a short window the doors may still not fit; they stop shrinking
   at 196px rather than becoming slots */
@media (max-height:620px){
  .classes-intro{ padding-top:14px }
  .classes-intro h1{ font-size:1.5rem; margin-bottom:4px }
  .classes-intro .lede{ font-size:.86rem }
}


/* ============ v146: bigger doors, smaller lettering ============
   v145 fitted both floors by shrinking the doors, which left the
   lettering looking oversized on a small slab and pushed the longer
   Armenian names out to the edges. The doors grow by about a fifth;
   the room for them is taken from the headings and the bands between
   the floors instead. Type is cut back so the name sits inside the
   slab with air around it, Armenian a step smaller again because its
   words are longer. */
.corridor .door-plaque{ margin-top:8px; padding:0 7px }
.corridor .door-plaque b{ font-size:.72rem; line-height:1.14; letter-spacing:.01em }
.corridor .door-plaque i{ font-size:.56rem }
.corridor .door-level{ font-size:.88rem }
.corridor .door-status{ bottom:15px; left:11px; right:11px; font-size:.53rem; line-height:1.24 }

html[lang="hy"] .corridor .door-plaque b{ font-size:.66rem; line-height:1.18 }
html[lang="hy"] .corridor .door-status{ font-size:.49rem; line-height:1.26 }
/* Armenian words are long: honour the soft hyphen in the name, and never
   let a word run past the edge of the slab */
html[lang="hy"] .corridor .door-plaque b{ hyphens:manual; overflow-wrap:anywhere }

/* the space the doors grew into */
.classes-intro{ padding-top:16px; padding-bottom:6px }
.classes-intro h1{ margin-bottom:4px }
.classes-intro .lede{ font-size:.86rem; line-height:1.4; max-width:62ch; margin-bottom:0 }
html[lang="hy"] .classes-intro .lede{ font-size:.82rem; max-width:74ch }
.corridor--upper{ padding-top:8px; padding-bottom:0 }
.corridor{ padding-top:8px; padding-bottom:0 }
.corridor .corridor-floor{ height:28px }
.stairs .stairs-in{ padding:3px 0 }
.stairs p{ font-size:.6rem }
.corridor .corridor-hint{ margin:0 0 2px; font-size:.74rem }

/* ---- teacher floors: the teacher stands at the start of her corridor ---- */
.corridor--teacher{ padding-top:22px }
.floor-host{
  flex:0 0 auto; position:relative; align-self:flex-end;
  display:flex; flex-direction:column; justify-content:flex-end; align-items:center;
  min-width:176px; scroll-snap-align:start;
}
.floor-host.has-photo{ width:260px; height:360px }
.floor-host-img{
  position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  height:100%; width:auto; max-width:none; pointer-events:none;
  filter:drop-shadow(0 14px 18px rgba(0,0,0,.35));
  -webkit-mask-image:linear-gradient(180deg,#000 82%,transparent 100%);
          mask-image:linear-gradient(180deg,#000 82%,transparent 100%);
}
.floor-sign{
  position:relative; z-index:2; margin-bottom:14px;
  background:rgba(8,40,70,.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.28); border-radius:14px;
  padding:9px 16px 10px; text-align:center; color:#fff; white-space:nowrap;
}
.floor-sign b{ display:block; font-size:1.08rem; letter-spacing:.02em }
.floor-sign i{ display:block; font-style:normal; font-size:.78rem; color:#9FE9DF; margin-top:2px; letter-spacing:.04em }
.floor-host:not(.has-photo){ height:260px; justify-content:center }
.floor-host:not(.has-photo) .floor-sign{ margin-bottom:0; padding:16px 22px }
@media (max-width:640px){
  .floor-host.has-photo{ width:200px; height:290px }
  .floor-host{ min-width:140px }
}

/* smaller teacher photo: picture above, name sign below it */
.floor-host.has-photo{ width:auto; height:auto; min-width:176px }
.floor-host.has-photo .floor-host-img{
  position:static; transform:none; height:190px; width:auto; margin-bottom:-6px;
}
.floor-host.has-photo .floor-sign{ padding:7px 14px 8px }
@media (max-width:640px){
  .floor-host.has-photo{ width:auto; height:auto }
  .floor-host.has-photo .floor-host-img{ height:150px }
}

/* the teacher is drawn to the same scale as the doors:
   a door is about 2 m, a person about 1.65 m. The photo shows her
   from the head down to the top of the legs, so it covers about 46%
   of the door's height and her head comes to about 83% of it.      */
.floor-host.has-photo{ align-self:stretch; height:auto; width:130px; min-width:130px; position:relative }
.floor-host.has-photo .floor-host-img{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:37%; height:46%; width:auto; margin:0;
}
.floor-host.has-photo .floor-sign{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:22%; margin:0; padding:6px 14px 7px;
}
@media (max-width:640px){
  .floor-host.has-photo{ width:110px; min-width:110px }
  .floor-host.has-photo .floor-host-img{ height:46% }
}


/* framed portrait: the photo hangs in a frame on the corridor wall,
   so it no longer looks like the teacher is floating. Overrides the
   free-standing cut-out rules above. */
.floor-host.has-photo{
  align-self:flex-end; width:150px; min-width:150px; height:auto;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  margin-bottom:10px;
}
.floor-host.has-photo .floor-host-img{
  position:static; transform:none; margin:0;
  width:100%; height:auto; aspect-ratio:3/4; object-fit:cover; object-position:top center;
  background:#EAD9BE;
  border:7px solid #6B4A32;
  border-radius:4px;
  box-shadow:0 10px 20px rgba(0,0,0,.4), inset 0 0 0 2px #B9905F;
  -webkit-mask-image:none; mask-image:none;
}
.floor-host.has-photo .floor-sign{
  position:static; transform:none; margin:0; padding:7px 15px 8px;
}
@media (max-width:640px){
  .floor-host.has-photo{ width:120px; min-width:120px }
}

/* caption under the framed portrait, like a line on a CV */
.floor-sign .floor-role{
  display:block; font-style:normal; margin-top:3px;
  font-size:.72rem; color:rgba(255,245,230,.82);
  letter-spacing:.03em; white-space:normal; max-width:150px; line-height:1.3;
}

/* much smaller frame: about the size of a door's top window, upright */
.floor-host.has-photo{ width:90px; min-width:90px; gap:8px; margin-bottom:12px }
.floor-host.has-photo .floor-host-img{
  border-width:4px;
  box-shadow:0 6px 12px rgba(0,0,0,.4), inset 0 0 0 1px #B9905F;
}
.floor-sign .floor-role{ font-size:.64rem; max-width:110px }
.floor-sign b{ font-size:.92rem }
@media (max-width:640px){
  .floor-host.has-photo{ width:76px; min-width:76px }
}

/* modest signpost, not a portrait: small plain photo, soft corners, no frame */
.floor-host.has-photo .floor-host-img{
  border:none;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,.28);
  background:transparent;
}
.floor-host.has-photo{ width:84px; min-width:84px; gap:7px }
@media (max-width:640px){
  .floor-host.has-photo{ width:72px; min-width:72px }
}

/* the name under the photo is just a small caption, no box,
   never wider than the photo itself */
.floor-host.has-photo .floor-sign{
  background:none; border:none; backdrop-filter:none; -webkit-backdrop-filter:none;
  padding:0; max-width:100%; white-space:normal;
}
.floor-host.has-photo .floor-sign b{ font-size:.74rem; letter-spacing:.03em }
.floor-host.has-photo .floor-sign .floor-role{
  font-size:.54rem; max-width:100%; margin-top:2px; line-height:1.25;
  color:rgba(255,245,230,.7);
}

/* raise the photo to the doors' window level; caption in two lines */
.floor-host.has-photo{
  align-self:stretch; justify-content:flex-start;
  padding-top:69px; margin-bottom:0;
}
.floor-host.has-photo .floor-sign{
  width:150px; max-width:none; margin:0 -33px;
}
@media (max-width:640px){
  .floor-host.has-photo .floor-sign{ width:130px; margin:0 -29px }
}
/* give the caption real room instead of spilling over the doors */
.floor-host.has-photo{ width:140px; min-width:140px; align-items:center }
.floor-host.has-photo .floor-host-img{ width:84px }
.floor-host.has-photo .floor-sign{ width:auto; margin:0; text-align:center }
.floor-host.has-photo .floor-sign .floor-role{ white-space:nowrap }
@media (max-width:640px){
  .floor-host.has-photo{ width:124px; min-width:124px }
  .floor-host.has-photo .floor-host-img{ width:72px }
  .floor-host.has-photo .floor-sign{ width:auto; margin:0 }
}

/* photo top lines up with the top of the doors;
   name and title run together on one line under the photo */
.floor-host.has-photo{ padding-top:0 }
.floor-host.has-photo .floor-sign{ width:140px; text-align:center; line-height:1.3 }
.floor-host.has-photo .floor-sign b{ display:inline; font-size:.62rem }
.floor-host.has-photo .floor-sign .floor-role{
  display:inline; white-space:normal; margin:0; font-size:.58rem;
}
.floor-host.has-photo .floor-sign .floor-role::before{ content:" — " }
@media (max-width:640px){
  .floor-host.has-photo .floor-sign{ width:124px }
}
.floor-host.has-photo .floor-sign,
.floor-host.has-photo .floor-sign b,
.floor-host.has-photo .floor-sign .floor-role{ line-height:1.35 }
.floor-host.has-photo .floor-sign{ font-size:.6rem }

/* caption exactly as wide as the photo: starts at its left edge,
   ends at its right edge, wraps to as many lines as it needs */
.floor-host.has-photo .floor-sign{
  width:84px; margin:0; font-size:.56rem;
  text-align:justify; text-align-last:left;
}
@media (max-width:640px){
  .floor-host.has-photo .floor-sign{ width:72px; font-size:.52rem }
}
.floor-host.has-photo .floor-sign{ text-align:left; font-size:.5rem }
.floor-host.has-photo .floor-sign b{ font-size:.54rem }
.floor-host.has-photo .floor-sign .floor-role{ font-size:.5rem }
@media (max-width:640px){
  .floor-host.has-photo .floor-sign,
  .floor-host.has-photo .floor-sign .floor-role{ font-size:.46rem }
  .floor-host.has-photo .floor-sign b{ font-size:.5rem }
}

/* caption: exactly two lines, never wider than the photo (size fitted by site.js) */
.floor-host.has-photo .floor-sign{ white-space:nowrap; text-align:left; line-height:1.35 }
.floor-host.has-photo .floor-sign b,
.floor-host.has-photo .floor-sign .floor-role{ font-size:1em }
.floor-host.has-photo .floor-sign b{ font-size:1.05em }
.floor-host.has-photo .floor-sign,
.floor-host.has-photo .floor-sign .floor-role{ white-space:nowrap }
.floor-host.has-photo .floor-sign{ overflow:hidden }
.floor-host.has-photo .floor-sign{ overflow:visible; padding-left:1px }


/* every floor's name/photo signpost is the same fixed width, so the
   first door starts at exactly the same point on every floor */
.floor-host, .floor-host.has-photo{
  width:150px !important; min-width:150px !important; flex:0 0 150px !important;
  box-sizing:border-box;
}
@media (max-width:640px){
  .floor-host, .floor-host.has-photo{
    width:120px !important; min-width:120px !important; flex:0 0 120px !important;
  }
}
/* name-only floors (no photo yet): small text, same style as the captions,
   not a big sign */
.floor-host:not(.has-photo){ height:auto; align-self:flex-end; margin-bottom:10px;
  display:flex; flex-direction:column; justify-content:flex-end; align-items:center }
.floor-host:not(.has-photo) .floor-sign{
  background:none; border:none; backdrop-filter:none; -webkit-backdrop-filter:none;
  padding:0; text-align:center; color:#fff;
}
.floor-host:not(.has-photo) .floor-sign b{ font-size:.8rem; letter-spacing:.02em }
.floor-host:not(.has-photo) .floor-sign .floor-role{
  display:block; font-style:normal; margin-top:2px;
  font-size:.62rem; color:rgba(255,245,230,.72); white-space:normal; line-height:1.3;
}

/* invisible spacer keeps the top and ground floors aligned with the rest */
.floor-host--spacer{ visibility:hidden; pointer-events:none }

/* empty spot where a teacher's photo will go: same size as Lilit's photo,
   only a hair-thin, almost invisible outline */
.floor-host-img--empty{
  background:transparent !important; box-shadow:none !important;
  border:1px solid rgba(255,255,255,.14); border-radius:10px;
  box-sizing:border-box;
}
.floor-host.has-photo .floor-host-img.floor-host-img--empty{
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:10px !important; background:transparent !important; box-shadow:none !important;
}

/* ---- timed unit tests: the clock stays at the top while scrolling ---- */
.ut-timer{
  position:sticky;top:76px;z-index:30;
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  margin:22px 0 0;padding:10px 18px;
  background:rgba(255,255,255,.96);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.7);border-radius:14px;
  box-shadow:0 10px 26px rgba(4,40,70,.20);
}
.ut-timer-att{font-size:.85rem;color:var(--grey);margin-right:auto}
.ut-timer-lab{font-size:.9rem;color:var(--grey)}
.ut-timer-num{font-family:'Noto Sans',sans-serif;font-weight:700;font-size:1.6rem;color:var(--navy);
  font-variant-numeric:tabular-nums;min-width:4.2ch;text-align:right}
.ut-timer--low .ut-timer-num{color:#B3261E}
.ut-note{background:var(--wash);border-radius:10px;padding:12px 14px;margin:0 0 16px;max-width:460px}
#utIntro{margin-top:8px}
#testDone .btn{margin-top:14px}
.field input:disabled{opacity:.75;cursor:not-allowed}
body.test-page .test-head p[data-ut="book"]{ color:rgba(255,255,255,.85) !important }

/* placement test: "Save and finish later" sits beside "Finish and send";
   on a phone both share one row so the bar stays small */
@media (max-width: 600px){
  body.test-page .progress{ gap:10px 8px; }
  body.test-page .progress .progress-bar{ flex-basis:100%; order:0; }
  body.test-page .progress #testSave,
  body.test-page .progress #testSubmit{ flex:1 1 0; padding:11px 8px; font-size:.86rem; line-height:1.25; }
}


/* ===== Exam room as two books ===== */
.pc-books{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:30px; max-width:600px; margin:38px auto 0;
}
.pc-book{
  position:relative; text-align:left; cursor:pointer; border:none;
  padding:0; background:transparent; font:inherit;
  transition:transform .18s ease;
}
.pc-book:hover{ transform:translateY(-4px); }
.pc-book-face{
  display:flex; flex-direction:column; gap:8px;
  border-radius:12px 16px 16px 12px;
  padding:40px 28px 34px 34px; min-height:360px;
  color:#fff; box-shadow:0 16px 34px -14px rgba(4,60,90,.5);
}
.pc-book-spine{
  position:absolute; left:8px; top:0; bottom:0; width:12px;
  border-radius:12px 0 0 12px; background:rgba(0,0,0,.18);
}
.pc-book--vocab .pc-book-face{ background:linear-gradient(150deg,#00C0B4,#009a9f); }
.pc-book--gram  .pc-book-face{ background:linear-gradient(150deg,#0197D8,#0463a6); }
.pc-book-kind{ font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; opacity:.9; }
.pc-book-name{ font-size:1.7rem; font-weight:700; line-height:1.1; }
.pc-book-count{ margin-top:auto; font-size:.92rem; opacity:.92; }
.pc-book-open{ font-weight:600; font-size:.95rem; }

/* inside a book */
.pc-back{
  border:1px solid #CFE0EC; background:#fff; border-radius:20px;
  padding:7px 16px; font-size:.9rem; cursor:pointer; color:var(--blue);
}
.pc-back:hover{ border-color:var(--blue); }
.pc-open-title{ margin:18px 0 6px; font-size:1.5rem; }
.pc-open--vocab .pc-open-title{ color:#009a9f; }
.pc-open--gram  .pc-open-title{ color:var(--blue); }
.pc-open--vocab .pc-card:hover{ border-color:var(--mint); }
.pc-open--gram  .pc-card:hover{ border-color:var(--blue); box-shadow:0 8px 26px rgba(4,85,151,.12); }
.pc-open--gram  .pc-go.btn--mint{ background:var(--blue); color:#fff; }
.pc-open--gram  .pc-go.btn--mint:hover{ background:#0463a6; }

@media (max-width:560px){
  .pc-books{ grid-template-columns:1fr; gap:22px; max-width:320px; }
  .pc-book-face{ min-height:300px; }
}


/* logo on the book covers + the exam-room good-luck line */
.pc-book-logo{
  width:46px; height:46px; object-fit:contain; margin:0 0 4px;
  filter:brightness(0) invert(1); opacity:.95;
}
.pc-luck{
  text-align:center; font-size:1.15rem; font-weight:600;
  color:#009a9f; margin:22px 0 0;
}


/* ===== Teachers' register ===== */
.reg-row{
  display:grid; grid-template-columns:1fr auto auto; align-items:center;
  gap:14px 20px; padding:16px 18px; border:1px solid #DCE8F1;
  border-radius:12px; margin-bottom:12px;
}
.reg-row-head{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.reg-group{ font-weight:700; font-size:1.05rem; }
.reg-level{ font-size:.78rem; letter-spacing:.06em; color:var(--blue); font-weight:600; }
.reg-teacher{ font-size:.85rem; color:var(--grey); }
.reg-field{ display:flex; align-items:center; gap:8px; font-size:.9rem; color:var(--grey); }
.reg-field input{ width:74px; }
.reg-ready{ display:flex; align-items:center; gap:7px; font-size:.9rem; cursor:pointer; }
.reg-when{ grid-column:1/-1; font-size:.8rem; color:var(--grey); }
@media (max-width:560px){
  .reg-row{ grid-template-columns:1fr; gap:10px; }
  .reg-field input{ width:90px; }
}

/* ============================================================
   Teachers' register v2 — two trails per group + the level climb
   ============================================================ */
.reg-wrap{max-width:960px}
.rg-bar{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 6px}
.rg-who{font-family:'Noto Sans','Noto Sans Armenian',sans-serif;font-weight:600;font-size:1.25rem;margin:0;color:var(--navy)}
.rg-toggle{background:none;border:0;padding:4px 0;font:inherit;font-size:.92rem;font-weight:600;color:var(--navy);
  cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.rg-toggle:hover{color:var(--blue)}
.rg-legend{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-wrap:wrap;gap:6px 20px;font-size:.84rem;color:var(--grey)}
.rg-legend li{display:flex;align-items:center;gap:8px}
.rg-legend .tr-test{min-width:22px;height:16px;padding:0;border-radius:5px;gap:0}
.rg-saved{position:sticky;bottom:16px;margin:16px 0 0;padding:10px 16px;width:max-content;max-width:100%;
  background:var(--deep-1);color:#fff;border-radius:999px;font-size:.92rem}
.rg-empty{color:var(--grey)}

.rg{border:1px solid var(--line);border-radius:14px;padding:12px 16px 8px;margin:0 0 12px;background:var(--paper)}
.rg-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 8px}
.rg-id{font-family:'Noto Sans',sans-serif;font-weight:700;font-size:1.25rem;line-height:1;color:var(--ink)}
.rg-teacher{font-size:.92rem;color:var(--grey)}
.rg-when{margin-left:auto;font-size:.8rem;color:var(--grey)}

/* the level ladder — A1 .. C2, always all six, with a progress marker */
.climb.lad{display:block;
  background:linear-gradient(118deg,var(--deep-1) 0%,#08507F 55%,var(--deep-2) 100%);
  color:#fff;border-radius:16px;padding:36px 30px 34px}
.lad-track{position:relative;height:3px;margin:8px 10px 0;
  background:rgba(255,255,255,.22);border-radius:3px}
.lad-fill{position:absolute;left:0;top:0;height:100%;border-radius:3px;width:0;
  background:linear-gradient(90deg,#00C0B4,#7FE3FF);
  box-shadow:0 0 8px rgba(127,227,255,.8);transition:width .25s}
.lad-stop{position:absolute;top:50%;transform:translate(-50%,-50%);
  display:flex;flex-direction:column;align-items:center;gap:7px;white-space:nowrap}
.lad-dot{width:11px;height:11px;border-radius:50%;background:#0C3C63;
  border:2px solid rgba(255,255,255,.5);box-shadow:0 0 0 3px rgba(4,62,110,.5)}
.lad-lv{font-family:'Noto Sans',sans-serif;font-weight:700;font-size:.72rem;
  letter-spacing:.02em;color:rgba(255,255,255,.55);position:absolute;top:16px}
.lad-stop--past .lad-dot{background:var(--mint);border-color:#fff}
.lad-stop--past .lad-lv{color:rgba(255,255,255,.85)}
.lad-stop--here .lad-dot{background:#fff;border-color:var(--mint);
  box-shadow:0 0 0 4px rgba(0,192,180,.55)}
.lad-stop--here .lad-lv{color:#fff}
.lad-marker{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);
  width:18px;height:18px;border-radius:50%;background:#fff;
  border:3px solid var(--mint);box-shadow:0 0 10px rgba(127,227,255,.95);
  transition:left .25s;z-index:2}
.lad-pct{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);
  font-family:'Noto Sans',sans-serif;font-weight:700;font-size:.74rem;color:#fff;
  background:rgba(4,62,110,.85);padding:1px 7px;border-radius:999px;white-space:nowrap}
.lad.lad--up .lad-marker{border-color:#fff;background:var(--mint);
  box-shadow:0 0 14px rgba(0,192,180,1)}

/* a trail: units, then a test square, then more units */
.tr{margin-top:6px}
.tr + .tr{border-top:1px solid var(--line);padding-top:6px}
.tr-head{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}
.tr-name{font-family:'Noto Sans','Noto Sans Armenian',sans-serif;font-weight:600;color:var(--navy);min-width:118px}
.tr-book{font:inherit;font-size:.9rem;padding:6px 30px 6px 10px;border:1px solid var(--line);border-radius:9px;background-color:#fff;width:auto}
.tr-unit{display:flex;align-items:center;gap:8px;font-size:.88rem;color:var(--grey)}
.tr-unit-short{display:none}
.tr-unit-in{width:72px;font:inherit;font-size:.95rem;padding:6px 8px;border:1px solid var(--line);border-radius:9px}
.tr-steps{display:flex;flex-wrap:wrap;align-items:center;gap:4px;overflow:visible;padding:5px 2px 3px}
.rg-list--all .tr-steps{flex-wrap:wrap;overflow:visible}
.tr-u{flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:8px;
  border:1px solid var(--line);font-size:.76rem;color:var(--grey);font-variant-numeric:tabular-nums}
.tr-u{cursor:pointer;font:inherit;padding:0;background:#fff}
.tr-u:hover{border-color:var(--mint)}
.tr-u--on{background:linear-gradient(135deg,#00C0B4,#2BD49B);border-color:#00A99E;color:#fff;font-weight:700}
.tr-u--now{box-shadow:0 0 0 2px #fff,0 0 0 4px #00C0B4}
.tr-test{flex:none;display:inline-flex;align-items:center;gap:6px;height:38px;min-width:86px;margin:0 6px;
  padding:0 11px;border-radius:11px;font-family:'Noto Sans',sans-serif;cursor:pointer;
  transition:background .15s,color .15s,border-color .15s}
.tr-test-txt{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.tr-test-kind{font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;opacity:.78}
.tr-test-units{font-size:.84rem;font-weight:700;font-variant-numeric:tabular-nums}
.tr-test-mark{font-size:.95rem;line-height:1}
.tr-test--ready{border:2px solid var(--navy);background:#fff;color:var(--navy)}
.tr-test--ready:hover{background:var(--wash)}
.tr-test--due{border:2px solid var(--navy);background:var(--navy);color:#fff;box-shadow:0 0 0 3px rgba(0,192,180,.35)}
.tr-test--due:hover{background:var(--deep-1)}
.tr-test--done{border:2px solid var(--mint);background:var(--mint);color:var(--deep-1)}
.tr-test--soon{border:2px dashed var(--line);background:transparent;color:#9AA8B0;cursor:not-allowed}
.tr-test:focus-visible,.tr-book:focus-visible,.tr-unit-in:focus-visible,.rg-toggle:focus-visible{outline:3px solid var(--mint);outline-offset:2px}
.tr-earlier{flex:none;padding:6px 10px;border-radius:999px;background:rgba(0,192,180,.14);color:var(--deep-2);font-size:.8rem;font-weight:600;margin-right:4px}
.tr-more,.tr-finished{flex:none;font-size:.82rem;color:var(--grey);padding-left:4px}
.tr-finished{color:var(--deep-2);font-weight:600}

@media (max-width:640px){
  .rg{padding:16px 14px 10px;border-radius:14px}
  .climb.lad{padding:34px 22px 32px}
  .rg{padding:10px 12px 6px}
  .tr-head{gap:6px 10px}
  .tr-name{min-width:0;width:100%;font-size:.92rem}
  .tr-head{flex-wrap:nowrap;gap:6px}
  .tr-head .tr-name{width:auto;flex:0 0 auto}
  .tr-book{font-size:.8rem;padding:4px 22px 4px 7px;min-width:0;flex:1 1 auto;max-width:150px}
  .tr-unit{gap:4px;font-size:.74rem;flex:0 0 auto}
  .tr-unit-long{display:none}
  html[lang="hy"] .tr-head .tr-name{font-size:.78rem;letter-spacing:-.01em}
  html[lang="hy"] .tr-unit{font-size:.68rem}
  .tr-unit-short{display:inline}
  .tr-book{max-width:none}
  .tr-unit-in{width:46px;font-size:.85rem;padding:4px 5px}
  .tr-u{width:24px;height:24px;font-size:.7rem}
  .tr-test{height:34px;min-width:74px;padding:0 8px;margin:0 4px}
}

.rg-hometip{margin:16px 0 0;padding:10px 14px;border-radius:12px;background:#EAF6F6;color:var(--deep-1);font-size:.86rem;line-height:1.45}

/* v203: "who has taken this test" window on the teachers' register */
.who-wrap{position:fixed;inset:0;z-index:200;background:rgba(6,30,52,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.who-wrap.hidden{display:none}
.who{position:relative;background:#fff;border-radius:16px;width:100%;max-width:420px;max-height:84vh;overflow:auto;
  padding:20px 20px 16px;box-shadow:0 24px 60px -20px rgba(2,32,58,.55)}
.who-x{position:absolute;top:8px;right:10px;border:0;background:none;font-size:1.6rem;line-height:1;color:var(--grey);cursor:pointer;padding:4px 8px}
.who-kicker{margin:0 0 2px;font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--deep-2)}
.who-title{margin:0 28px 12px 0;font-size:1.05rem;color:var(--ink)}
.who-count{margin:0 0 8px;font-size:.88rem;color:var(--grey)}
.who-none{margin:6px 0 14px;font-size:.92rem;color:var(--grey);background:var(--wash);border-radius:10px;padding:10px 12px}
.who-list{list-style:none;margin:0 0 14px;padding:0;border-top:1px solid var(--line)}
.who-list li{display:grid;grid-template-columns:1fr auto;gap:0 10px;padding:8px 2px;border-bottom:1px solid var(--line)}
.who-name{font-weight:600;color:var(--ink);font-size:.95rem}
.who-score{font-weight:700;color:var(--navy);font-size:.95rem;text-align:right}
.who-meta{grid-column:1/-1;font-size:.78rem;color:var(--grey)}
.who-tick{width:100%;border:0;border-radius:12px;padding:11px 14px;font:inherit;font-weight:600;cursor:pointer;
  background:var(--mint);color:#fff}
.who-tick--on{background:#fff;color:var(--grey);border:1px solid var(--line)}

/* v204: keep unit labels on one line beside the Start button */
.pc-card:not(.pc-card--empty) .pc-units{padding-right:96px}
@media (max-width:640px){ .pc-card:not(.pc-card--empty) .pc-units{padding-right:0} }

/* pass-mark row: one bar per test in the book, fills the rest of the line */
.tr-marks{flex:1 1 150px;min-width:150px;display:flex;align-items:center;gap:8px;margin-left:8px}
.tr-marks-bars{flex:1;display:flex;gap:3px;align-items:center}
.tr-marks-bars i{flex:1;max-width:16px;min-width:3px;height:9px;border-radius:3px;background:var(--line)}
.tr-marks-bars i.on{background:linear-gradient(135deg,#00C0B4,#2BD49B)}
.tr-marks-bars i.next{background:#fff;box-shadow:inset 0 0 0 2px #00C0B4}
.tr-marks-n{flex:none;font-size:.78rem;font-weight:700;color:var(--deep-2)}
@media (max-width:640px){ .tr-marks{margin-left:0;flex-basis:100%} }

.tr-blk{display:flex;align-items:center;gap:4px;flex:none;margin-right:6px}

/* exam-room cards: Start button always below, so "Units 1-5 (30 questions)" stays on one line */
.pc-card .pc-go{position:static;transform:none;justify-self:start;margin-top:12px}
.pc-card:not(.pc-card--empty) .pc-units,
.pc-card:not(.pc-card--empty) .pc-topics{padding-right:0}

/* ===== Grammar exam room: colours of the Cambridge covers =====
   red  = Essential Grammar in Use (Elementary)
   blue = English Grammar in Use (Intermediate + Upper intermediate)
   Cards get a soft watercolour wash; Start buttons are glassy with a glow. */
.pc-open--gram .pc-bands{ grid-template-columns:repeat(3, 1fr); gap:22px }
@media (max-width:900px){ .pc-open--gram .pc-bands{ grid-template-columns:1fr; gap:28px } }

.pc-band--red { --tone:#E0313A; --tone-deep:#B81E28; --tone-glow:rgba(232,49,58,.42);
                --wash-a:rgba(255,92,100,.16); --wash-b:rgba(255,150,128,.13); --wash-bg:#FFF7F7;
                --tone-line:#F6C6C9; --tone-pill:#FDE7E8 }
.pc-band--blue{ --tone:#1F78D1; --tone-deep:#155AA8; --tone-glow:rgba(31,120,209,.40);
                --wash-a:rgba(70,150,240,.15); --wash-b:rgba(120,190,245,.14); --wash-bg:#F5F9FE;
                --tone-line:#C5DCF3; --tone-pill:#E4F0FC }

.pc-band--red .pc-head, .pc-band--blue .pc-head{ border-bottom:2px solid var(--tone-line) }
.pc-band--red .pc-band-name, .pc-band--blue .pc-band-name{ color:var(--tone-deep) }
.pc-band--red .pc-band-cefr, .pc-band--blue .pc-band-cefr{ color:var(--tone-deep); background:var(--tone-pill) }

/* the card: watercolour wash, coloured edge */
.pc-band--red .pc-card:not(.pc-card--empty),
.pc-band--blue .pc-card:not(.pc-card--empty){
  border:1.5px solid var(--tone-line);
  background:
    radial-gradient(120% 90% at 8% 0%,  var(--wash-a), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, var(--wash-b), transparent 62%),
    var(--wash-bg);
}
.pc-band--red .pc-card:not(.pc-card--empty):hover,
.pc-band--blue .pc-card:not(.pc-card--empty):hover{
  border-color:var(--tone);
  box-shadow:0 10px 28px -6px var(--tone-glow);
}
.pc-band--red .pc-card--empty, .pc-band--blue .pc-card--empty{ border-color:var(--tone-line) }

/* glassy Start button with a glow line */
.pc-band--red .pc-go.btn--mint,
.pc-band--blue .pc-go.btn--mint{
  position:relative; top:auto; right:auto; left:auto; overflow:hidden; isolation:isolate;
  color:#fff; font-weight:600; letter-spacing:.02em;
  padding:9px 24px; border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 52%),
    linear-gradient(135deg, var(--tone), var(--tone-deep));
  box-shadow:
    0 0 0 1px var(--tone-line),
    0 4px 14px -2px var(--tone-glow),
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -2px 6px rgba(0,0,0,.12);
  text-shadow:0 1px 1px rgba(0,0,0,.18);
  transition:box-shadow .25s, transform .2s;
}
/* the light that sweeps across the glass */
.pc-band--red .pc-go.btn--mint::after,
.pc-band--blue .pc-go.btn--mint::after{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%; z-index:-1;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-20deg); transition:left .6s ease;
}
.pc-band--red .pc-card:hover .pc-go.btn--mint,
.pc-band--blue .pc-card:hover .pc-go.btn--mint{
  box-shadow:
    0 0 0 1px var(--tone),
    0 0 18px 2px var(--tone-glow),
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -2px 6px rgba(0,0,0,.12);
  transform:translateY(-1px);
}
.pc-band--red .pc-card:hover .pc-go.btn--mint::after,
.pc-band--blue .pc-card:hover .pc-go.btn--mint::after{ left:120% }
@media (prefers-reduced-motion:reduce){
  .pc-band--red .pc-go.btn--mint::after, .pc-band--blue .pc-go.btn--mint::after{ transition:none }
}

/* green = Advanced Grammar in Use (same treatment as red/blue) */
.pc-band--green{ --tone:#2E9B52; --tone-deep:#1F7A3E; --tone-glow:rgba(46,155,82,.40);
                --wash-a:rgba(80,190,120,.15); --wash-b:rgba(140,210,160,.14); --wash-bg:#F4FBF6;
                --tone-line:#C3E6CE; --tone-pill:#E2F4E8 }
.pc-band--green .pc-head, .pc-band--green .pc-head{ border-bottom:2px solid var(--tone-line) }
.pc-band--green .pc-band-name, .pc-band--green .pc-band-name{ color:var(--tone-deep) }
.pc-band--green .pc-band-cefr, .pc-band--green .pc-band-cefr{ color:var(--tone-deep); background:var(--tone-pill) }

/* the card: watercolour wash, coloured edge */
.pc-band--green .pc-card:not(.pc-card--empty),
.pc-band--green .pc-card:not(.pc-card--empty){
  border:1.5px solid var(--tone-line);
  background:
    radial-gradient(120% 90% at 8% 0%,  var(--wash-a), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, var(--wash-b), transparent 62%),
    var(--wash-bg);
}
.pc-band--green .pc-card:not(.pc-card--empty):hover,
.pc-band--green .pc-card:not(.pc-card--empty):hover{
  border-color:var(--tone);
  box-shadow:0 10px 28px -6px var(--tone-glow);
}
.pc-band--green .pc-card--empty, .pc-band--green .pc-card--empty{ border-color:var(--tone-line) }

/* glassy Start button with a glow line */
.pc-band--green .pc-go.btn--mint,
.pc-band--green .pc-go.btn--mint{
  position:relative; top:auto; right:auto; left:auto; overflow:hidden; isolation:isolate;
  color:#fff; font-weight:600; letter-spacing:.02em;
  padding:9px 24px; border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 52%),
    linear-gradient(135deg, var(--tone), var(--tone-deep));
  box-shadow:
    0 0 0 1px var(--tone-line),
    0 4px 14px -2px var(--tone-glow),
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -2px 6px rgba(0,0,0,.12);
  text-shadow:0 1px 1px rgba(0,0,0,.18);
  transition:box-shadow .25s, transform .2s;
}
/* the light that sweeps across the glass */
.pc-band--green .pc-go.btn--mint::after,
.pc-band--green .pc-go.btn--mint::after{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%; z-index:-1;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-20deg); transition:left .6s ease;
}
.pc-band--green .pc-card:hover .pc-go.btn--mint,
.pc-band--green .pc-card:hover .pc-go.btn--mint{
  box-shadow:
    0 0 0 1px var(--tone),
    0 0 18px 2px var(--tone-glow),
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -2px 6px rgba(0,0,0,.12);
  transform:translateY(-1px);
}
.pc-band--green .pc-card:hover .pc-go.btn--mint::after,
.pc-band--green .pc-card:hover .pc-go.btn--mint::after{ left:120% }
@media (prefers-reduced-motion:reduce){
  .pc-band--green .pc-go.btn--mint::after, .pc-band--green .pc-go.btn--mint::after{ transition:none }
}



/* ---- English Guidance logo at the start of the upper corridor:
        same spot and same size as a teacher's photo on the floors below ---- */
.floor-host--logo{ pointer-events:none }
.floor-host.has-photo.floor-host--logo .floor-host-img{
  -webkit-mask-image:none; mask-image:none;
  object-fit:contain; object-position:50% 50%;
  box-shadow:none; border-radius:0;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.3));
}

/* ---- exam room "Good luck" tag: upright, not handwritten-slant, a little smaller ---- */
.corridor .door--exam .door-plaque i{
  font-family:inherit; font-style:normal; font-size:.52rem; line-height:1.18;
  letter-spacing:.01em;
}


/* ===================== v255: the exam room as a bookshelf =====================
   Two plain shelves - Vocabulary (4 books) above Grammar (3 books).
   Books stand ON the shelf: each slot carries its own piece of plank and the
   slots touch, so a row reads as one continuous shelf (also when it wraps). */
.pc-shelves{ display:block; margin-top:34px }
.shelf{ margin:0 auto 46px; max-width:820px }
.shelf--g{ max-width:620px }
.shelf-title{
  margin:0 0 16px; font-size:1.3rem; color:var(--navy);
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
}
.shelf-sub{ font-size:.8rem; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:var(--grey) }

.shelf-row{ display:grid; column-gap:0; row-gap:30px; align-items:end }
.shelf-row--4{ grid-template-columns:repeat(4, 1fr) }
.shelf-row--3{ grid-template-columns:repeat(3, 1fr) }

.shelf-slot{
  position:relative; display:flex; justify-content:center; align-items:flex-end;
  padding:0 12px 14px;              /* 14px = plank thickness */
}
.shelf-slot::after{                  /* the plank */
  content:""; position:absolute; left:0; right:0; bottom:0; height:14px;
  background:linear-gradient(180deg, #E2C9A3 0%, #CFAE80 55%, #B8925F 100%);
  box-shadow:0 8px 12px -6px rgba(70,45,15,.35);
}
.shelf-slot:first-child::after{ border-radius:4px 0 0 4px }
.shelf-slot:last-child::after { border-radius:0 4px 4px 0 }

/* a book standing upright */
.shelf-book{
  --tone:#1F78D1; --tone-deep:#155AA8; --tone-glow:rgba(31,120,209,.40);
  position:relative; width:100%; max-width:160px; aspect-ratio:3 / 4.3; min-height:0;
  display:flex; flex-direction:column; gap:6px; text-align:left;
  padding:16px 12px 14px 22px; border:none; cursor:pointer; font:inherit; color:#fff;
  border-radius:4px 9px 9px 4px; overflow:hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.06) 45%, rgba(255,255,255,0) 50%),
    linear-gradient(140deg, var(--tone), var(--tone-deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 2px 0 rgba(0,0,0,.08),
    0 10px 18px -10px var(--tone-glow);
  transform-origin:50% 100%;
  transition:transform .2s ease, box-shadow .25s ease;
}
.shelf-book::before{                 /* the spine */
  content:""; position:absolute; left:0; top:0; bottom:0; width:10px;
  background:linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.08));
}
.shelf-book::after{                  /* light sweeping across the glass */
  content:""; position:absolute; top:0; bottom:0; left:-70%; width:45%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform:skewX(-20deg); transition:left .6s ease; pointer-events:none;
}
.shelf-book:hover, .shelf-book:focus-visible{
  transform:translateY(-6px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 0 18px 2px var(--tone-glow), 0 16px 22px -12px var(--tone-glow);
  outline:none;
}
.shelf-book:hover::after, .shelf-book:focus-visible::after{ left:130% }
@media (prefers-reduced-motion:reduce){ .shelf-book, .shelf-book::after{ transition:none } }

.shelf-book-series{ font-size:.62rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; opacity:.92; line-height:1.3 }
.shelf-book-level{ font-size:1.12rem; font-weight:700; line-height:1.15; margin-top:4px; text-shadow:0 1px 1px rgba(0,0,0,.15) }
.shelf-book-cefr{
  align-self:flex-start; font-size:.68rem; font-weight:700; letter-spacing:.04em;
  background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.4);
  border-radius:999px; padding:1px 8px;
}
.shelf-book-count{ margin-top:auto; font-size:.76rem; opacity:.95 }

.shelf-book--red  { --tone:#E0313A; --tone-deep:#B81E28; --tone-glow:rgba(232,49,58,.42) }
.shelf-book--turq { --tone:#3CC8D6; --tone-deep:#1497A8; --tone-glow:rgba(40,190,210,.42) }
.shelf-book--blue { --tone:#1F78D1; --tone-deep:#155AA8; --tone-glow:rgba(31,120,209,.40) }
.shelf-book--green{ --tone:#2E9B52; --tone-deep:#1F7A3E; --tone-glow:rgba(46,155,82,.40) }

@media (max-width:620px){
  .shelf-row--4{ grid-template-columns:repeat(2, 1fr) }
  .shelf-slot{ padding:0 8px 12px }
  .shelf-slot::after{ height:12px }
  .shelf-row--4 .shelf-slot:nth-child(2n)::after{ border-radius:0 4px 4px 0 }
  .shelf-row--4 .shelf-slot:nth-child(2n+1)::after{ border-radius:4px 0 0 4px }
  .shelf-row--4 .shelf-book{ max-width:140px }
  .shelf-row--3 .shelf-book{ padding:11px 6px 9px 14px; gap:3px }
  .shelf-row--3 .shelf-book-cefr{ font-size:.6rem; padding:0 6px }
  .shelf-row--3 .shelf-book::before{ width:7px }
  .shelf-row--3 .shelf-book-series{ font-size:.5rem }
  .shelf-row--3 .shelf-book-level{ font-size:.82rem; margin-top:2px }
  .shelf-row--3 .shelf-book-count{ font-size:.66rem }
}

/* ----- inside an open book: one level only, cards in a grid ----- */
.pc-open--book .pc-band{ margin-top:20px }
.pc-head--book{ gap:6px }
.pc-head--book .pc-band-name{ font-size:1.45rem }
.pc-book-series{ font-size:.78rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--grey) }
.pc-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:14px; margin-top:6px }

/* light turquoise-blue tone (vocabulary Intermediate) + one shared glassy
   treatment for every tone in an open book */
.pc-band--turq{ --tone:#3CC8D6; --tone-deep:#0F8696; --tone-glow:rgba(40,190,210,.42);
                --wash-a:rgba(60,200,215,.16); --wash-b:rgba(140,225,235,.15); --wash-bg:#F2FBFC;
                --tone-line:#BDEAF0; --tone-pill:#DFF6F9 }
.pc-tinted .pc-head{ border-bottom:2px solid var(--tone-line) }
.pc-tinted .pc-band-name{ color:var(--tone-deep) }
.pc-tinted .pc-band-cefr{ color:var(--tone-deep); background:var(--tone-pill) }
.pc-tinted .pc-card:not(.pc-card--empty){
  border:1.5px solid var(--tone-line);
  background:
    radial-gradient(120% 90% at 8% 0%,  var(--wash-a), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, var(--wash-b), transparent 62%),
    var(--wash-bg);
}
.pc-tinted .pc-card:not(.pc-card--empty):hover{ border-color:var(--tone); box-shadow:0 10px 28px -6px var(--tone-glow) }
.pc-tinted .pc-card--empty{ border-color:var(--tone-line) }
.pc-tinted .pc-go.btn--mint{
  position:relative; top:auto; right:auto; left:auto; overflow:hidden; isolation:isolate;
  color:#fff; font-weight:600; letter-spacing:.02em; padding:9px 24px; border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 52%),
    linear-gradient(135deg, var(--tone), var(--tone-deep));
  box-shadow:0 0 0 1px var(--tone-line), 0 4px 14px -2px var(--tone-glow),
    inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 6px rgba(0,0,0,.12);
  text-shadow:0 1px 1px rgba(0,0,0,.18); transition:box-shadow .25s, transform .2s;
}
.pc-tinted .pc-go.btn--mint::after{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%; z-index:-1;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-20deg); transition:left .6s ease;
}
.pc-tinted .pc-card:hover .pc-go.btn--mint{
  box-shadow:0 0 0 1px var(--tone), 0 0 18px 2px var(--tone-glow),
    inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 6px rgba(0,0,0,.12);
  transform:translateY(-1px);
}
.pc-tinted .pc-card:hover .pc-go.btn--mint::after{ left:120% }
@media (prefers-reduced-motion:reduce){ .pc-tinted .pc-go.btn--mint::after{ transition:none } }
#pcList{ scroll-margin-top:90px }
/* open book: Start buttons line up along the bottom of each card */
.pc-grid .pc-card:not(.pc-card--empty){ display:flex; flex-direction:column; align-items:flex-start; gap:5px }
.pc-grid .pc-card .pc-go{ margin-top:auto; position:relative }
.pc-grid .pc-card .pc-topics{ margin-bottom:12px }


/* ===================== v256: homepage hero, left-aligned with a door =====================
   Name block on the left: logo the height of the two lines (both sized in em of the h1),
   two buttons + a note under them. A small door on the right leads into the academy. */
.stage-in.hero2{
  text-align:left; perspective:none;
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:40px;
}
.hero2-name{
  margin:0; display:flex; align-items:center; gap:.28em;
  font-size:clamp(2.3rem, 5.4vw, 4rem); line-height:1; color:#fff;
}
.hero2-logo{
  height:1.5em; width:auto; flex:none; display:block;
  filter:drop-shadow(0 10px 22px rgba(0,0,0,.45));
}
.hero2-lines{ display:flex; flex-direction:column; justify-content:center; height:1.5em }
.hero2-l1{ font-size:1em; font-weight:700; line-height:1.05; letter-spacing:-.01em }
.hero2-l2{ font-size:.34em; font-weight:500; line-height:1.3; letter-spacing:.04em; color:rgba(255,255,255,.78); margin-top:.18em }
.hero2-actions{ justify-content:flex-start; margin-top:30px }
.hero2-note{
  margin:16px 0 0; max-width:56ch; font-size:.92rem; line-height:1.55;
  color:rgba(255,255,255,.78);
}

/* the door — same dark academy blue, framed, standing on the floor */
.hero-door{
  display:flex; flex-direction:column; align-items:center; gap:14px;
  text-decoration:none; color:#fff; justify-self:end;
  align-self:end;                 /* sit the door on the baseline, not mid-air */
}
.hero-door-frame{
  position:relative; display:block; width:150px; height:228px;
  padding:9px 9px 0; border-radius:9px 9px 0 0;
  /* stone architrave around the opening */
  background:linear-gradient(180deg,#0A3A5F,#06283F);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 20px 30px -14px rgba(0,0,0,.55);
}
.hero-door-frame::before{            /* the floor the door rests on */
  content:""; position:absolute; left:-26px; right:-26px; bottom:-14px; height:14px;
  border-radius:3px;
  background:linear-gradient(180deg,#0B4066 0%,#072A43 70%,#05202f 100%);
  box-shadow:0 10px 18px -8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-door-frame::after{             /* contact shadow where the door meets the floor */
  content:""; position:absolute; left:-10px; right:-10px; bottom:-15px; height:16px;
  background:radial-gradient(60% 100% at 50% 0%, rgba(0,0,0,.45), transparent 70%);
  filter:blur(2px);
}
.hero-door-leaf{
  position:relative; display:flex; flex-direction:column; gap:12px;
  width:100%; height:100%; padding:16px 15px;
  border-radius:4px 4px 0 0;
  /* the dark academy blue, lit from top-left */
  background:
    linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 26%, rgba(0,0,0,0) 48%),
    linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 100%),
    linear-gradient(177deg,#0E4E7E 0%,#0A3A62 46%,#072E51 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 3px 0 0 rgba(255,255,255,.06),
    inset -3px 0 0 rgba(0,0,0,.30),
    inset 0 -26px 30px -22px rgba(0,0,0,.5);
  transform-origin:0 50%; transform-style:preserve-3d;
  transition:transform .5s ease, box-shadow .5s ease, filter .3s ease;
}
.hero-door-panel{
  flex:1; border-radius:3px;
  background:linear-gradient(177deg,rgba(0,0,0,.20),rgba(255,255,255,.04));
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.45),
    inset 0 -1px 0 rgba(255,255,255,.10),
    0 1px 0 rgba(255,255,255,.07);
}
.hero-door-knob{
  position:absolute; right:16px; top:52%; width:13px; height:13px; border-radius:50%;
  background:radial-gradient(circle at 34% 30%,#FFF6D6,#E2B64A 58%,#A87A1E);
  box-shadow:0 2px 4px rgba(0,0,0,.5), inset 0 -1px 0 rgba(0,0,0,.25);
}
.hero-door-label{
  font-weight:600; font-size:.98rem; padding:8px 16px; border-radius:999px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.3);
  transition:background .25s, border-color .25s, color .25s;
}
/* reach for it: the leaf swings ajar and warm light spills from the gap */
.hero-door:hover .hero-door-leaf,
.hero-door:focus-visible .hero-door-leaf{
  transform:perspective(900px) rotateY(-26deg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    18px 0 30px -12px rgba(0,0,0,.5);
  filter:brightness(1.05);
}
.hero-door:hover .hero-door-frame,
.hero-door:focus-visible .hero-door-frame{
  background:linear-gradient(180deg,#123f60,#0A2E49);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 0 44px rgba(255,214,120,.5),
    0 20px 30px -14px rgba(0,0,0,.55);
}
.hero-door:hover .hero-door-label,
.hero-door:focus-visible .hero-door-label{ background:var(--mint); border-color:var(--mint); color:#062B3A }
.hero-door:focus-visible{ outline:none }
@media (prefers-reduced-motion:reduce){ .hero-door-leaf{ transition:none } }

@media (max-width:760px){
  .stage-in.hero2{ grid-template-columns:1fr; gap:34px }
  .hero-door{ justify-self:center }
  .hero-door-frame{ width:110px; height:170px }
  .hero2-actions .btn{ flex:1 1 auto; text-align:center }
}

/* ---- the path: three numbered steps ---- */
.path-steps{
  list-style:none; padding:0; margin:34px 0 0;
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
.path-step{
  position:relative; padding:26px 24px 24px; border-radius:16px;
  background:#fff; border:1px solid var(--line);
  box-shadow:0 10px 26px -18px rgba(4,85,151,.35);
}
.path-step h3{ margin:14px 0 .35em }
.path-step p{ margin:0; color:var(--grey) }
.path-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  font-weight:700; color:#fff;
  background:linear-gradient(135deg,var(--mint),var(--blue));
}
@media (max-width:860px){ .path-steps{ grid-template-columns:1fr } }

/* ---- progress checks + founder oversight, side by side ---- */
.care-grid{ display:grid; grid-template-columns:1fr 1fr; gap:28px }
.care-card{
  padding:30px 30px 28px; border-radius:16px; border:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#F5FAFD);
}
.care-card .mark{ display:block; width:34px; height:3px; background:var(--mint); margin-bottom:16px; border-radius:2px }
.care-card h2{ font-size:1.45rem; margin:0 0 12px }
.care-card p{ margin:0; color:var(--grey) }
@media (max-width:860px){ .care-grid{ grid-template-columns:1fr } }

/* founder story without the photo */
.founder.founder--text{ grid-template-columns:1fr }
.founder--text .founder-text p{ max-width:70ch }
/* phones: keep "English Guidance" on one line so the logo still matches the two lines */
.hero2-l1{ white-space:nowrap }
@media (max-width:760px){ .hero2-name{ font-size:min(clamp(2.3rem, 5.4vw, 4rem), 8.6vw) } }
@media (max-width:760px){ .hero2-l2{ font-size:max(.34em, .78rem) } .hero2-lines{ height:auto } .hero2-logo{ height:1.55em } }


/* ===================== v257: the hero door, standing on a floor =====================
   Same deep blue as the academy's upper-floor doors (#0E4E7E -> #072E51).
   Lit from the upper left; a threshold and floor under it, a contact shadow at the
   base, and warm light from inside when it opens. Replaces the v256 door styles. */
.hero-door{ gap:18px }
.hd-scene{
  position:relative; display:block; width:190px; height:262px;
  perspective:900px;
}
/* soft pool of light on the wall behind, from the upper left */
.hd-wall-light{
  position:absolute; inset:-30px -40px 30px -50px; pointer-events:none;
  background:radial-gradient(60% 55% at 35% 30%, rgba(140,200,255,.16), transparent 70%);
}
/* the frame (architrave), sitting on the floor */
.hd-frame{
  position:absolute; left:28px; right:28px; bottom:22px; top:0;
  border-radius:5px 5px 0 0; padding:9px 9px 0;
  background:
    linear-gradient(100deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%),
    linear-gradient(180deg,#123F63,#0A2C49);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset -2px 0 0 rgba(0,0,0,.35),
    10px 6px 22px rgba(0,0,0,.40);
}
/* what you see when it opens: warm room light */
.hd-inside{
  position:absolute; left:9px; right:9px; top:9px; bottom:0;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(255,214,140,.95), rgba(255,190,110,.55) 45%, rgba(120,70,30,.5) 100%);
  box-shadow:inset 0 0 18px rgba(0,0,0,.45);
}
/* the door leaf */
.hd-leaf{
  position:relative; display:block; width:100%; height:100%;
  border-radius:3px 3px 0 0;
  background:
    linear-gradient(90deg,rgba(255,255,255,.07) 0 2px,transparent 2px 100%),
    linear-gradient(177deg,#0E4E7E 0%,#0A3A62 46%,#072E51 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 3px 0 0 rgba(255,255,255,.05),
    inset -3px 0 0 rgba(0,0,0,.30),
    inset 0 -14px 16px -8px rgba(0,0,0,.45);       /* darker towards the floor */
  transform-origin:0 50%;
  transition:transform .55s cubic-bezier(.3,.7,.3,1), box-shadow .55s ease;
}
.hd-panel{
  position:absolute; left:13px; right:13px; border-radius:2px;
  background:linear-gradient(177deg,rgba(0,0,0,.18),rgba(255,255,255,.04));
  box-shadow:inset 0 2px 3px rgba(0,0,0,.45), inset 0 -1px 0 rgba(255,255,255,.12), 0 1px 0 rgba(255,255,255,.07);
}
.hd-panel--top{ top:14px; height:42% }
.hd-panel--bot{ top:calc(42% + 26px); bottom:30px }
.hd-hinge{
  position:absolute; left:-2px; width:5px; height:20px; border-radius:1px;
  background:linear-gradient(90deg,#C8CFD4,#8C979E 55%,#5F6A71);
  box-shadow:0 1px 2px rgba(0,0,0,.45);
}
.hd-hinge--1{ top:10% } .hd-hinge--2{ top:47% } .hd-hinge--3{ top:84% }
.hd-handle{
  position:absolute; right:11px; top:54%; width:13px; height:13px; border-radius:50%;
  background:radial-gradient(circle at 34% 30%,#F4F7F9,#BCC5CB 52%,#76828A);
  box-shadow:0 2px 4px rgba(0,0,0,.55), inset 0 -1px 0 rgba(0,0,0,.25);
}
.hd-handle i{
  position:absolute; right:8px; top:4px; width:15px; height:5px; border-radius:3px;
  background:linear-gradient(180deg,#EEF2F4,#A9B3B9 60%,#6E7A81);
  box-shadow:0 2px 3px rgba(0,0,0,.45);
}
.hd-kick{
  position:absolute; left:9px; right:9px; bottom:7px; height:12px; border-radius:2px;
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.03));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
}
/* key light from the upper left falling across the leaf */
.hd-sheen{
  position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  background:linear-gradient(125deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 30%, transparent 55%, rgba(0,0,0,.12) 100%);
}
/* the floor: threshold, boards fading away, contact shadow under the door */
.hd-floor{
  position:absolute; left:0; right:0; bottom:0; height:22px;
  border-top:3px solid #3C6E92;                     /* threshold */
  background:
    radial-gradient(42% 70% at 50% 0%, rgba(0,0,0,.55), transparent 75%),   /* contact shadow */
    linear-gradient(180deg, rgba(110,170,215,.28), rgba(110,170,215,0));
  border-radius:0 0 50% 50% / 0 0 100% 100%;
}
.hd-floor::before{                                    /* a faint reflection of the door */
  content:""; position:absolute; left:37px; right:37px; top:0; height:16px;
  background:linear-gradient(180deg, rgba(14,78,126,.55), transparent);
  filter:blur(1px);
}
.hd-floor::after{                                     /* warm light spilling out when open */
  content:""; position:absolute; left:30%; right:22%; top:-2px; height:14px;
  background:radial-gradient(50% 100% at 50% 0%, rgba(255,200,120,.9), transparent);
  opacity:0; transition:opacity .5s ease;
}

/* opening */
.hero-door:hover .hd-leaf,
.hero-door:focus-visible .hd-leaf{
  transform:rotateY(-38deg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset -3px 0 0 rgba(0,0,0,.30),
    inset 0 -14px 16px -8px rgba(0,0,0,.45),
    20px 0 28px -8px rgba(0,0,0,.55);
}
.hero-door:hover .hd-floor::after,
.hero-door:focus-visible .hd-floor::after{ opacity:1 }
.hero-door:hover .hd-frame,
.hero-door:focus-visible .hd-frame{ background:
    linear-gradient(100deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%),
    linear-gradient(180deg,#123F63,#0A2C49) }
@media (prefers-reduced-motion:reduce){ .hd-leaf, .hd-floor::after{ transition:none } }

@media (max-width:760px){
  .hd-scene{ width:160px; height:224px }
  .hd-frame{ left:24px; right:24px }
  .hd-floor::before{ left:33px; right:33px }
}
/* v257 tweaks: floor reads as ground (fades out sideways, no plate edge); brighter room light */
.hd-floor{
  left:-40px; right:-40px; height:30px; border:0; border-radius:0;
  background:
    linear-gradient(90deg, transparent, #4A7FA6 22%, #4A7FA6 78%, transparent) top/100% 2px no-repeat,  /* floor line */
    radial-gradient(28% 55% at 50% 0%, rgba(0,0,0,.55), transparent 80%),                          /* contact shadow */
    radial-gradient(60% 100% at 50% 0%, rgba(110,170,215,.22), transparent 80%);                    /* lit floor */
}
.hd-floor::before{ left:77px; right:77px; top:2px }
.hd-floor::after{ top:0; left:40%; right:30%; height:18px }
.hd-inside{
  background:
    linear-gradient(180deg, rgba(255,226,170,.95) 0%, rgba(255,200,120,.95) 60%, rgba(230,160,80,.95) 100%);
  box-shadow:inset 6px 0 14px rgba(0,0,0,.35), inset 0 0 10px rgba(120,60,10,.3);
}
@media (max-width:760px){ .hd-floor::before{ left:73px; right:73px } }
.hd-frame{ bottom:30px }
.hd-inside{ opacity:0; transition:opacity .25s ease }
.hero-door:hover .hd-inside, .hero-door:focus-visible .hd-inside{ opacity:1 }

/* v258: two knocks, not three — timed to the two knocks in knock.mp3 (0.13s and 0.38s) */
@keyframes knockTap {
  0%   { opacity:0; transform:translateX(-30px) scale(.92) }
  14%  { opacity:1; transform:translateX(-10px) scale(.98) }
  20%  { opacity:1; transform:translateX(0) scale(1) }        /* knock 1 */
  38%  { transform:translateX(-10px) scale(.98) }
  60%  { transform:translateX(0) scale(1) }                   /* knock 2 */
  82%  { opacity:1; transform:translateX(-8px) scale(.98) }
  100% { opacity:0; transform:translateX(-14px) scale(.96) }
}
@keyframes doorShake {
  0%,100% { transform:translateY(0) }
  20% { transform:translateX(1.5px) }  24% { transform:translateX(-1px) }  30% { transform:translateX(0) }
  60% { transform:translateX(1.5px) }  64% { transform:translateX(-1px) }  70% { transform:translateX(0) }
}


/* ===================== v258: a real bookcase in a library room =====================
   Room: blurred, colourful library shelves behind, warm light, a wooden floor.
   Bookcase: walnut crown, side panels, dark back, thick shelf boards with a brass label;
   the seven test books stand inside with ordinary decorative books and a bookend. */
.pc-shelves{ margin-top:30px }
.lib-room{
  position:relative; overflow:hidden; isolation:isolate;
  border-radius:22px; padding:48px 26px 0;
  background:#3A2617;
  box-shadow:0 24px 50px -28px rgba(40,22,8,.6);
}
.lib-wall{
  position:absolute; inset:-12px; z-index:-2;
  background:
    repeating-linear-gradient(180deg, transparent 0 104px, #4A2E1A 104px 116px, #2B1A0E 116px 120px),
    repeating-linear-gradient(90deg,
      transparent 0 3px,
      #C0392B 3px 17px, #E67E22 17px 27px, #F1C40F 27px 36px, #27AE60 36px 53px,
      #2980B9 53px 65px, #8E44AD 65px 75px, #16A085 75px 92px, #D35400 92px 101px,
      #2C3E50 101px 116px, #E84393 116px 126px, #6D4C41 126px 142px, #F5F0E1 142px 150px,
      #1F6FB2 150px 163px, #A93226 163px 175px, #D4AC0D 175px 184px, #117A65 184px 201px,
      #5D6D7E 201px 210px, #CA6F1E 210px 226px, #7D3C98 226px 237px, #E74C3C 237px 249px),
    #3A2617;
  filter:blur(2.5px) saturate(1.05) brightness(.82);
}
/* warm lamplight in the middle, darker corners, so the bookcase stands forward */
.lib-room::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(55% 60% at 50% 38%, rgba(255,214,150,.30), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(20,10,4,.62) 100%),
    linear-gradient(180deg, rgba(20,10,4,.25), rgba(20,10,4,0) 30%);
}
.lib-floor{
  position:relative; z-index:0; height:46px; margin:0 -26px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, #7A5232 0%, #946640 40%, #6E4A2D 100%);
  box-shadow:inset 0 10px 14px -8px rgba(0,0,0,.55);
}

/* --- the bookcase --- */
.bookcase{ position:relative; z-index:1; max-width:900px; margin:0 auto; }
.bc-crown{
  height:24px; margin:0 -14px; border-radius:4px 4px 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 35%),
    linear-gradient(180deg, #8A5A34 0%, #6E4526 60%, #54331B 100%);
  box-shadow:0 6px 10px -4px rgba(0,0,0,.55), inset 0 -3px 0 rgba(0,0,0,.25);
}
.bc-body{
  padding:0 20px;                                   /* the side panels */
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), transparent 6%, transparent 94%, rgba(0,0,0,.25)),
    linear-gradient(180deg, #7A4D2B, #64401F);
}
.bc-plinth{
  height:30px; margin:0 -6px;
  background:linear-gradient(180deg, #5E3A1F 0%, #4A2D17 70%, #3A2311 100%);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.10), 0 10px 16px -6px rgba(0,0,0,.7);
}
.bookcase .shelf{ max-width:none; margin:0 }
/* each compartment: dark back panel, shadow under the shelf above */
.bc-cell{
  position:relative; padding-top:30px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2A1A0F, #3A2516);
  box-shadow:inset 0 16px 18px -10px rgba(0,0,0,.75), inset 8px 0 14px -8px rgba(0,0,0,.6), inset -8px 0 14px -8px rgba(0,0,0,.6);
}
.bc-row{
  display:flex; align-items:flex-end; justify-content:center; gap:7px;
  padding:0 14px;
}
/* the shelf board the books stand on */
.bc-board{
  position:relative; height:24px;
  background:
    linear-gradient(180deg, #B07A4A 0 4px, #8A5A34 4px, #73482A 100%);   /* top surface catches light */
  box-shadow:0 8px 12px -4px rgba(0,0,0,.65), inset 0 -2px 0 rgba(0,0,0,.25);
  display:flex; justify-content:center; align-items:center;
}
.bc-plate{
  display:inline-flex; align-items:baseline; gap:8px;
  padding:1px 12px; border-radius:2px; transform:translateY(1px);
  font-size:.74rem; font-weight:700; letter-spacing:.04em; color:#3B2A10;
  background:linear-gradient(180deg, #F6E3A8, #D8B460 55%, #B48E3C);
  box-shadow:0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6);
}
.bc-plate small{ font-size:.6rem; font-weight:600; text-transform:uppercase; opacity:.75 }

/* the test books, upright in the case */
.bc-row .shelf-book{
  flex:0 0 auto; width:150px; max-width:none;
  border-radius:3px 6px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    -3px 0 6px rgba(0,0,0,.45),
    4px 0 8px rgba(0,0,0,.35);
}
.bc-row .shelf-book:hover, .bc-row .shelf-book:focus-visible{
  transform:translateY(-8px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 0 20px 3px var(--tone-glow), 0 14px 18px -6px rgba(0,0,0,.6);
}

/* ordinary books filling the shelf, and a bookend */
.bc-fill{ display:flex; align-items:flex-end; gap:2px; align-self:stretch }
.bc-spine{
  display:block; flex:none; width:var(--w); height:var(--h);
  border-radius:2px 2px 0 0;
  background:
    linear-gradient(180deg, transparent 11%, rgba(232,200,120,.85) 11% 13%, transparent 13% 83%, rgba(232,200,120,.85) 83% 85%, transparent 85%),
    linear-gradient(90deg, rgba(0,0,0,.40), rgba(255,255,255,.16) 30%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.40)),
    var(--c);
  box-shadow:1px 0 2px rgba(0,0,0,.4);
}
.bc-spine--lean{ transform:rotate(-9deg); transform-origin:0 100%; margin-left:6px }
.bc-bookend{
  display:block; flex:none; width:7px; height:46%; margin-left:4px; position:relative;
  border-radius:2px 2px 0 0;
  background:linear-gradient(90deg, #2B2E31, #6A7177 45%, #2B2E31);
  box-shadow:1px 0 3px rgba(0,0,0,.5);
}
.bc-bookend::after{ content:""; position:absolute; left:-12px; bottom:0; width:19px; height:3px; background:#3C4146 }

@media (max-width:900px){ .bc-row .shelf-book{ width:130px } }
@media (max-width:760px){ .bc-row .shelf-book{ width:112px } .bc-row{ gap:5px; padding:0 8px } }
@media (max-width:620px){
  .lib-room{ padding:30px 12px 0; border-radius:16px }
  .lib-floor{ margin:0 -12px; height:30px }
  .bc-crown{ margin:0 -8px; height:18px }
  .bc-body{ padding:0 10px }
  .bc-cell{ padding-top:24px }
  .bc-row{ gap:4px; padding:0 6px }
  .bc-plate{ font-size:.66rem; padding:0 8px }
  .bc-plate small{ display:none }
  .shelf--v .bc-row .shelf-book{ width:118px }
  .shelf--g .bc-row .shelf-book{ width:calc((100% - 50px) / 3); padding:11px 6px 9px 14px; gap:3px }
  .shelf--g .shelf-book::before{ width:7px }
  .shelf--g .shelf-book-series{ font-size:.5rem }
  .shelf--g .shelf-book-level{ font-size:.8rem; margin-top:2px }
  .shelf--g .shelf-book-cefr{ font-size:.58rem; padding:0 6px }
  .shelf--g .shelf-book-count{ font-size:.64rem }
}
@media (max-width:620px){
  .bc-row .shelf-book{ overflow-wrap:break-word; hyphens:auto }
  .shelf--v .bc-row .shelf-book{ padding:14px 9px 12px 18px }
  .shelf--v .shelf-book-level{ font-size:.95rem }
  .shelf--v .shelf-book-series{ font-size:.55rem }
  .shelf--g .bc-row .shelf-book{ width:calc((100% - 26px) / 3); padding:10px 5px 9px 12px }
  .shelf--g .shelf-book-level{ font-size:.7rem; line-height:1.2 }
  .shelf--g .shelf-book-series{ font-size:.46rem }
}
/* v259: "Բարձրագույն" is long - a touch smaller so it fits the Advanced books */
.shelf-book--green .shelf-book-level{ font-size:1rem; letter-spacing:-.01em }
@media (max-width:620px){
  .shelf--v .shelf-book--green .shelf-book-level{ font-size:.86rem }
  .shelf--g .shelf-book--green .shelf-book-level{ font-size:.62rem }
}

/* ===== v260: modern exam room - clean test cards (replaces the bookcase) ===== */
.xr-room{ background:#F7F9FB; border:1px solid #E3E7EC; border-radius:24px; overflow:hidden;
  box-shadow:0 18px 40px rgba(27,39,51,.07); margin-top:8px }
.xr-bar{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:#fff;
  border-bottom:1px solid #E6EAEF; padding:20px 32px }
.xr-dot{ width:11px; height:11px; border-radius:50%; background:#19C37D;
  box-shadow:0 0 0 4px rgba(25,195,125,.18); animation:xrPulse 2.4s ease-in-out infinite }
@keyframes xrPulse{ 50%{ box-shadow:0 0 0 7px rgba(25,195,125,.06) } }
.xr-title{ font-size:1.2rem; font-weight:700; color:#1B2733; letter-spacing:-.01em }
.xr-sub{ color:#8A97A6; font-size:.92rem }
.xr-sub::before{ content:"\00B7"; margin-right:8px }
.xr-total{ margin-left:auto; font-size:.86rem; font-weight:700; color:#5B6775;
  background:#F1F4F7; padding:7px 14px; border-radius:30px }
.xr-body{ padding:28px 32px 36px }
.xr-cap{ font-size:.78rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:#9AA6B4; margin:0 0 14px 4px }
.xr-grid{ display:grid; gap:20px; margin-bottom:34px }
.xr-grid:last-child{ margin-bottom:0 }
.xr-grid--4{ grid-template-columns:repeat(4,minmax(0,1fr)) }
.xr-grid--3{ grid-template-columns:repeat(3,minmax(0,1fr)); max-width:calc(75% - 5px) }

.xr-card{ --c:#1F78D1; --t:#E3EEFA; position:relative; display:flex; flex-direction:column; align-items:flex-start;
  text-align:left; font:inherit; cursor:pointer; background:#fff; border:1px solid #E6EAEF;
  border-radius:18px; padding:26px 20px 18px; overflow:hidden;
  box-shadow:0 8px 20px rgba(27,39,51,.05);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease }
.xr-card--red  { --c:#E0313A; --t:#FCE4E5 }
.xr-card--turq { --c:#1497A8; --t:#DDF2F5 }
.xr-card--blue { --c:#1F78D1; --t:#E1ECF9 }
.xr-card--green{ --c:#2E9B52; --t:#E0F2E6 }
.xr-card:hover, .xr-card:focus-visible{ transform:translateY(-4px); border-color:var(--c);
  box-shadow:0 16px 30px rgba(27,39,51,.12); outline:none }
.xr-strip{ position:absolute; left:0; right:0; top:0; height:6px; background:var(--c) }
.xr-kind{ font-size:.7rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:#9AA6B4 }
.xr-level{ font-size:1.3rem; font-weight:700; color:#1B2733; letter-spacing:-.02em; line-height:1.15;
  margin-top:6px; overflow-wrap:anywhere }
.xr-chip{ margin:12px 0 18px; font-size:.76rem; font-weight:700; color:var(--c); background:var(--t);
  padding:5px 12px; border-radius:30px }
.xr-meta{ align-self:stretch; display:flex; align-items:center; justify-content:space-between;
  margin-top:auto; padding-top:16px; border-top:1px solid #EEF1F4 }
.xr-count{ font-size:.85rem; font-weight:600; color:#6B7686 }
.xr-go{ width:34px; height:34px; border-radius:50%; background:var(--c); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.05rem; font-weight:700;
  transition:transform .22s ease }
.xr-card:hover .xr-go, .xr-card:focus-visible .xr-go{ transform:translateX(3px) }

@media (max-width:900px){
  .xr-grid--4{ grid-template-columns:repeat(2,minmax(0,1fr)) }
  .xr-grid--3{ grid-template-columns:repeat(2,minmax(0,1fr)); max-width:none }
}
@media (max-width:620px){
  .xr-bar{ padding:16px 18px }
  .xr-sub{ display:none }
  .xr-body{ padding:20px 16px 24px }
  .xr-grid{ gap:12px; margin-bottom:26px }
  .xr-card{ padding:22px 14px 14px; border-radius:16px }
  .xr-level{ font-size:1.05rem }
  .xr-go{ width:30px; height:30px }
}
@media (prefers-reduced-motion:reduce){
  .xr-dot{ animation:none } .xr-card, .xr-go{ transition:none }
}

/* ===================== v263: readable teacher captions =====================
   Name on the first line, title underneath, at fixed readable sizes.
   The caption may use the full width of the photo spot, not just the photo. */
.floor-host.has-photo .floor-sign{
  font-size:13px !important; width:auto !important; max-width:100%;
  margin:0; padding:6px 0 0 1px; text-align:left !important; text-align-last:auto;
  white-space:normal !important; overflow:visible; line-height:1.3;
}
.floor-host.has-photo .floor-sign b{
  display:block !important; font-size:15px !important; line-height:1.25; letter-spacing:.01em;
}
.floor-host.has-photo .floor-sign .floor-role{
  display:block !important; font-size:12.5px !important; line-height:1.3;
  white-space:normal !important; margin-top:3px !important; max-width:none;
}
.floor-host.has-photo .floor-sign .floor-role::before{ content:none !important }
@media (max-width:640px){
  .floor-host.has-photo .floor-sign b{ font-size:13.5px !important }
  .floor-host.has-photo .floor-sign .floor-role{ font-size:11.5px !important }
}
.floor-host.has-photo .floor-sign{ text-align:center !important; width:100% !important; padding-left:0 }

/* ===================== v263: home-page door light, near-white =====================
   was warm yellow/orange; now a bright cool-white glow through the open door */
.hd-inside{
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,250,255,.97) 60%, rgba(226,236,246,.96) 100%) !important;
  box-shadow:inset 6px 0 14px rgba(0,0,0,.22), inset 0 0 12px rgba(150,180,210,.25) !important;
}
.hd-floor::after{
  background:radial-gradient(50% 100% at 50% 0%, rgba(255,255,255,.92), rgba(235,244,255,.35) 55%, transparent) !important;
}
.hd-inside{
  background:linear-gradient(180deg,#FFFFFF 0%,#FFFFFF 55%,#F1F7FD 100%) !important;
  box-shadow:inset 3px 0 8px rgba(0,0,0,.10), 0 0 22px 4px rgba(255,255,255,.45) !important;
}
.hd-floor::after{
  background:radial-gradient(52% 100% at 50% 0%, #FFFFFF, rgba(255,255,255,.45) 50%, transparent) !important;
}

/* ===================== v263: no zooming when knocking =====================
   On phones, two quick taps on a door (a "knock") were read as the
   double-tap-to-zoom gesture, so the page and its text grew bigger.
   touch-action:manipulation keeps taps as taps (pinch-zoom still works),
   and text-size-adjust stops phones from enlarging text by themselves. */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100% }
.door, .door *, .hero-door, .hero-door *, .xr-card, button, a, .btn,
.corridor, .doors, dialog{ touch-action:manipulation }
.door, .hero-door{ -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent }


/* ===== v264 answer card ===== */
.egc{border:1px solid #d9e2e8;border-radius:12px;padding:20px 22px;max-width:560px;margin:0 auto;background:#fff;text-align:left}
.egc-head{display:flex;justify-content:space-between;align-items:baseline;border-top:6px solid #045597;padding-top:12px;margin:-20px -22px 14px;padding-left:22px;padding-right:22px}
.egc-logo{font-family:Georgia,serif;font-weight:700;color:#045597;font-size:1.25rem}
.egc-title{color:#5b6b75;font-size:.9rem;font-weight:600}
.egc-meta{color:#5b6b75;font-size:.9rem;line-height:1.5;border-bottom:1px solid #d9e2e8;padding-bottom:12px;margin-bottom:14px}
.egc-meta b{color:#12303f;font-size:1rem}
.egc-row{display:flex;align-items:center;gap:10px;padding:5px 0}
.egc-box{flex:0 0 auto;width:20px;height:20px;border:2px solid #00C0B4;border-radius:4px}
.egc-n{flex:0 0 auto;color:#5b6b75;font-weight:600;min-width:26px}
.egc-a{color:#12303f}
.egc-foot{color:#5b6b75;font-size:.82rem;margin-top:14px;border-top:1px solid #d9e2e8;padding-top:10px}
@media (max-width:520px){ .egc{padding:16px} .egc-head{margin:-16px -16px 12px;padding-left:16px;padding-right:16px} }
.egc-brand{display:flex;align-items:center;gap:10px}
.egc-img{width:auto;height:40px}


/* v264b answer card: two columns */
.egc-rows{display:grid;grid-template-columns:1fr 1fr;column-gap:22px;row-gap:0}
@media (max-width:520px){ .egc-rows{grid-template-columns:1fr} }


/* v264c answer card: modern framed look */
.egc{border:3px solid #045597;border-radius:18px;padding:0;max-width:600px;margin:0 auto;background:#f3f8fb;overflow:hidden;box-shadow:0 8px 24px rgba(4,85,151,.12)}
.egc-head{background:#045597;border:0;margin:0;padding:16px 22px;display:flex;align-items:center;justify-content:space-between}
.egc-logo{font-family:Georgia,serif;font-weight:700;color:#fff;font-size:1.2rem}
.egc-title{color:rgba(255,255,255,.85);font-size:.85rem;font-weight:600}
.egc-brand{display:flex;align-items:center;gap:10px}
.egc-img{height:34px;width:auto}
.egc-meta{color:#5b6b75;font-size:.88rem;line-height:1.55;padding:16px 22px 12px;margin:0;border:0}
.egc-meta b{color:#12303f;font-size:1rem}
.egc-rows{display:grid;grid-template-columns:1fr 1fr;column-gap:26px;row-gap:2px;padding:4px 22px 0}
.egc-row{display:flex;align-items:center;gap:9px;padding:4px 0}
.egc-box{flex:0 0 auto;width:18px;height:18px;border:2px solid #00C0B4;border-radius:5px;background:#fff}
.egc-n{flex:0 0 auto;color:#8a99a2;font-weight:600;min-width:24px;font-size:.9rem}
.egc-a{color:#12303f;font-size:.95rem}
.egc-foot{color:#5b6b75;font-size:.8rem;margin:0;padding:14px 22px 18px}
@media (max-width:520px){ .egc-rows{grid-template-columns:1fr} }

.egc-grade{display:inline-flex;align-items:baseline;gap:8px;margin-left:12px;vertical-align:middle}
.egc-g{color:#045597;font-size:1.9rem;font-weight:800;line-height:1}
.egc-gp{color:#5b6b75;font-size:.85rem;font-weight:600}


/* v264d result band: big letter, (percent), pass badge, celebration */
.egc-res{position:relative;overflow:hidden;display:flex;align-items:center;gap:18px;margin:4px 22px 14px;padding:14px 18px;border-radius:14px;background:#fff;border:2px solid #d9e2e8}
.egc-res.is-pass{background:#e6fbf3;border-color:#0FBF8F}
.egc-res .egc-g{font-size:3.4rem;font-weight:800;line-height:1;color:#045597;position:relative;z-index:1}
.egc-res.is-pass .egc-g{color:#0FBF8F}
.egc-rt{position:relative;z-index:1}
.egc-res .egc-gp{color:#5b6b75;font-weight:700;font-size:1rem;margin-right:10px}
.egc-badge{display:inline-block;padding:3px 12px;border-radius:999px;background:#8a99a2;color:#fff;font-weight:700;font-size:.85rem}
.is-pass .egc-badge{background:#0FBF8F}
.egc-fun{margin-top:6px;color:#12303f;font-style:italic;font-size:.95rem}
@keyframes egcFall{from{transform:translateY(0) rotate(0)}to{transform:translateY(120px) rotate(540deg);opacity:0}}
@media (max-width:520px){.egc-res{gap:12px}.egc-res .egc-g{font-size:2.6rem}}

/* v264e: answers run down the first column, then the second, like the image */
.egc-rows{grid-auto-flow:column;grid-template-rows:repeat(var(--per,15),auto)}
@media (max-width:520px){ .egc-rows{grid-auto-flow:row;grid-template-rows:none} }

/* v264f pass medal next to the badge */
.egc-medal{vertical-align:middle;margin-left:8px;margin-top:-10px;transform-origin:40% 40%;animation:egcPop .6s cubic-bezier(.3,1.6,.5,1) both .15s}
.egc-medal .egc-sp{transform-box:fill-box;transform-origin:center;animation:egcTw 1.6s ease-in-out infinite alternate}
.egc-medal .egc-sp:nth-of-type(2){animation-delay:.5s}
@keyframes egcPop{from{transform:scale(0) rotate(-25deg);opacity:0}to{transform:none;opacity:1}}
@keyframes egcTw{from{opacity:.35;transform:scale(.7)}to{opacity:1;transform:scale(1.1)}}
@media (prefers-reduced-motion:reduce){.egc-medal,.egc-medal .egc-sp{animation:none}}

/* v265 attendance in the teachers' register */
.rg-date{display:inline-flex;align-items:center;gap:8px;font-size:.92rem;font-weight:600;color:var(--navy)}
.rg-date input{width:auto;padding:6px 10px;font:inherit;font-weight:500}
.att{margin:14px 0 0;border-top:1px solid #e3ecf2;padding-top:10px}
.att summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-weight:600;color:var(--navy)}
.att summary::-webkit-details-marker{display:none}
.att summary::before{content:'\25B8';color:#00C0B4;transition:transform .2s}
.att[open] summary::before{transform:rotate(90deg)}
.att-sum{font-weight:500;font-size:.9rem;color:#5b6b75}
.att-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.att-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.att-name{display:inline-flex;align-items:center;gap:10px;min-width:min(100%,320px);padding:8px 12px;border-radius:10px;
  border:1.5px solid #cfe7e4;background:#f3fbfa;font:inherit;text-align:left;cursor:pointer;color:var(--navy)}
.att-name:hover{border-color:#00C0B4}
.att-mark{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:700;background:#00C0B4;color:#fff;flex:none}
.att-st{margin-left:auto;font-size:.82rem;color:#5b6b75}
.att-name--off{background:#fff4f2;border-color:#f2c6bf}
.att-name--off .att-mark{background:#d4553f}
.att-name--off .att-st{color:#b3261e;font-weight:600}
.att-tally{font-size:.82rem;font-weight:600;color:#0B2F4E;background:#eef6f7;border:1px solid #d6e6e8;
  border-radius:999px;padding:3px 10px;white-space:nowrap}
.att-miss{font-size:.85rem;color:#b3261e}
.att-empty{font-size:.92rem;color:#5b6b75}
.att-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px}
.att-state{font-size:.88rem;color:#5b6b75}
.att-state--warn{color:#b3261e;font-weight:600}
.tr-u--dated{box-shadow:inset 0 -3px 0 #00C0B4}
.att-name:focus-visible{outline:3px solid var(--mint);outline-offset:2px}

/* v266 master view: other teachers' groups are view-only */
.rg-lock{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:#5b6b75;
  background:#eef3f7;border-radius:999px;padding:3px 10px}
.rg-lock::before{content:'\1F512';font-size:.75rem}
.rg-lock--box{margin:14px 0 0;width:max-content}
.rg--locked .tr-u, .rg--locked .att-name, .rg--locked select, .rg--locked input{cursor:default}
.rg--locked .tr-u:disabled, .rg--locked .att-name:disabled{opacity:1}
.rg--locked .att-save{display:none}
.rg--locked .att-state{display:none}

/* ---------- v41: the book look for grammar units ----------
   watermark on every sheet, a unit label, the irregular-verbs
   button, the click-to-choose test, and the verb tables.        */
.gr-sheet{ position:relative; overflow:hidden }
.gr-sheet::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:url(gr-watermark.png) center 40px / 280px auto repeat;
}
.gr-sheet > *{ position:relative; z-index:1 }
.gr-unit{
  display:inline-block; margin:14px 0 0; padding:4px 12px; border-radius:999px;
  background:var(--navy); color:#fff; font-size:.78rem; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
}
.gr-insight{
  background:linear-gradient(135deg,#E6F8F6,#EAF4FB); border-radius:14px;
  padding:14px 18px; margin:0 0 16px; border:1px solid #CDEDEA;
}
.gr-insight p:last-child{ margin-bottom:0 }
.gr-insight b{ color:#0B6156 }
.gr-pair{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 0 14px }
.gr-pair > div{ border-radius:12px; padding:10px 14px; font-size:.96rem }
.gr-pair .ok{ background:#E3F6EA }
.gr-pair .no{ background:#FCE6E3 }
.gr-pair .no s{ text-decoration-color:#D9483B; text-decoration-thickness:2px }
@media (max-width:560px){ .gr-pair{ grid-template-columns:1fr } }
.gr-tbl-scroll{ overflow-x:auto; margin:0 0 18px }
.gr-tbl-scroll .gr-tbl{ margin:0; min-width:440px }
.gr-tbl td.v{ color:var(--navy); font-weight:600 }

/* the button that opens the irregular verbs list */
.gr-irr{
  display:flex; align-items:center; gap:12px; margin:0 0 18px; padding:12px 16px;
  background:#fff; border:2px solid var(--mint); border-radius:14px;
  text-decoration:none; color:var(--navy); font-weight:600;
  transition:transform .15s ease, box-shadow .15s ease;
}
.gr-irr:hover{ transform:translateY(-2px); box-shadow:0 10px 20px rgba(4,40,70,.12) }
.gr-irr .ic{
  flex:0 0 auto; width:56px; height:40px; border-radius:10px; background:var(--mint);
  color:#fff; display:grid; place-items:center; font-size:.74rem; font-weight:700; letter-spacing:.02em;
}
.gr-irr i{ display:block; font-style:normal; font-weight:400; font-size:.86rem; color:var(--grey) }
.gr-irr::after{ content:'\2192'; margin-left:auto; color:var(--mint); font-weight:700 }

/* irregular verbs: colour groups and sound families */
.iv-group{ border-radius:16px; padding:18px 18px 8px; margin:0 0 22px; border:2px solid }
.iv-group h3{ margin:0 0 4px; font-size:1.06rem; color:var(--navy) }
.iv-group > p{ margin:0 0 12px; font-size:.95rem; color:var(--grey) }
.iv-g1{ background:#FFFBE6; border-color:#F2D34B }
.iv-g2{ background:#EEFBF0; border-color:#5CC97A }
.iv-g3{ background:#FFF0EF; border-color:#E8655A }
.iv-g4{ background:#F1F0FF; border-color:#8C84E0 }
.iv-g5{ background:#EAF4FB; border-color:var(--navy) }
.iv-fam{ background:#fff; border-radius:12px; padding:10px 12px 4px; margin:0 0 12px; box-shadow:0 3px 10px rgba(4,40,70,.06) }
.iv-fam h4{ margin:0 0 6px; font-size:.95rem; color:var(--ink); display:flex; flex-wrap:wrap; gap:8px; align-items:baseline }
.iv-fam h4 .tune{ font-weight:700; color:#0B6156; background:#E6F8F6; border-radius:999px; padding:1px 10px; font-size:.86rem }
.iv-tbl{ width:100%; border-collapse:collapse; font-size:.98rem; margin:0 0 6px }
.iv-tbl td{ padding:5px 8px; border-top:1px solid #EEF3F7 }
.iv-tbl tr:first-child td{ border-top:0 }
.iv-tbl td:nth-child(1){ font-weight:600; color:var(--ink); width:26% }
.iv-tbl td:nth-child(2), .iv-tbl td:nth-child(3){ color:var(--navy); font-weight:600; width:26% }
.iv-tbl td.mean{ color:var(--grey); font-size:.9rem }
.iv-tbl .hl{ background:#FFF1B8; border-radius:4px; padding:0 2px }
.iv-new{ display:inline-block; margin-left:6px; font-size:.66rem; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:#fff; background:var(--mint); border-radius:6px; padding:1px 6px; vertical-align:2px }
.iv-fix{ background:#FCE6E3; border-radius:6px; padding:0 4px }

/* the click-to-choose test */
.gr-test{ margin:26px 0 0 }
.gr-test > h2{ margin:0 0 6px; color:var(--navy) }
.gr-test .t-lead{ margin:0 0 18px; color:var(--grey) }
.t-ex{ margin:0 0 26px }
.t-ex h3{ margin:0 0 4px; font-size:1.08rem; color:var(--navy) }
.t-ex .t-task{ margin:0 0 12px; color:var(--grey); font-size:.95rem }
.t-q{ background:#fff; border:2px solid #DCE8F1; border-radius:14px; padding:12px 14px; margin:0 0 10px }
.t-q .t-stem{ margin:0 0 10px; font-size:1.04rem }
.t-q .t-num{ font-weight:700; color:var(--mint); margin-right:6px }
.t-gap{ display:inline-block; min-width:3em; border-bottom:2px dashed var(--grey); text-align:center; font-weight:700 }
.t-opts{ display:flex; flex-wrap:wrap; gap:8px }
.t-opts.stack{ flex-direction:column }
.t-opt{ font-weight:600; font-size:1rem; font-family:inherit; color:var(--ink); background:#F3F7FA; border:2px solid #DCE8F1;
  border-radius:10px; padding:7px 14px; cursor:pointer; text-align:left }
.t-opt:hover:not(:disabled){ border-color:var(--mint) }
.t-opt:disabled{ cursor:default }
.t-opt.right{ background:#E3F6EA; border-color:#1E9E5A; color:#0F5E35 }
.t-opt.wrong{ background:#FCE6E3; border-color:#D9483B; color:#8E2A21 }
.t-opt.dim{ opacity:.5 }
.t-fb{ display:none; margin:8px 0 0; font-size:.94rem }
.t-q.done .t-fb{ display:block }
.t-q.is-right{ border-color:#1E9E5A } .t-q.is-wrong{ border-color:#D9483B }
.t-q.is-right .t-mark{ color:#1E9E5A; font-weight:700 } .t-q.is-wrong .t-mark{ color:#D9483B; font-weight:700 }
.t-progress{ position:sticky; top:8px; z-index:3; display:inline-block; margin:0 0 14px; padding:6px 14px;
  background:var(--navy); color:#fff; border-radius:999px; font-size:.88rem; font-weight:600 }
.t-result{ background:var(--navy); color:#fff; border-radius:18px; padding:22px; text-align:center }
.t-result .big{ font-family:'Noto Sans',sans-serif; font-size:2.8rem; font-weight:700; color:#7FE6DD; line-height:1.1; margin:4px 0 8px }
.t-result p{ margin:4px 0 }
.t-result button{ font:600 1rem 'Noto Sans',sans-serif; background:var(--mint); color:#fff; border:0; border-radius:12px; padding:10px 20px; cursor:pointer; margin:12px 4px 0 }


/* ---------- v45: side charts on tense pages (verbs left, tenses right) ---------- */
.wrap.wrap--side{ max-width:1440px }
.gr.gr--side{ max-width:none }
.gr-body--side{ display:grid; grid-template-columns:250px minmax(0,1fr) 300px; gap:0 22px; align-items:start }
.gr-body--side > .gr-top{ grid-column:1 / -1 }
.gr-body--side > .sc-left{ grid-column:1; grid-row:2 }
.gr-body--side > .gr-sheet{ grid-column:2; grid-row:2 }
.gr-body--side > .sc-right{ grid-column:3; grid-row:2 }
.sc-side{ position:sticky; top:16px; box-sizing:border-box; width:100%; background:#fff; border-radius:16px;
  padding:14px 12px; box-shadow:0 8px 22px rgba(4,40,70,.10); overflow:hidden }
.sc-title{ margin:0 0 10px; font-weight:700; color:var(--navy); font-size:.95rem; text-align:center }
.sc-more{ display:block; margin:10px 0 0; text-align:center; font-size:.84rem; font-weight:600; color:var(--blue); text-decoration:none }

/* tense chart */
.ts-grid{ display:grid; grid-template-columns:52px repeat(4,minmax(0,1fr)); grid-auto-rows:minmax(54px,auto); gap:4px }
.ts-grid > span:first-child{ min-height:0 }
.ts-ch{ align-self:stretch; min-height:34px; font-size:.54rem; font-weight:700; text-transform:uppercase; letter-spacing:0; color:#fff;
  border-radius:6px; padding:3px 2px; text-align:center; line-height:1.1; display:flex; align-items:center; justify-content:center;
  overflow-wrap:anywhere; hyphens:auto }
.ts-grid{ grid-template-rows:auto }
.ts-ch.ts-simple{ background:#045597 } .ts-ch.ts-cont{ background:#0197D8 } .ts-ch.ts-perf{ background:#00A79C } .ts-ch.ts-perfc{ background:#8A6220 }
.ts-rh{ font-size:.56rem; font-weight:700; text-transform:uppercase; color:#fff; background:var(--navy); border-radius:6px;
  display:flex; align-items:center; justify-content:center; text-align:center; padding:2px; line-height:1.15; overflow-wrap:anywhere }
.ts-cell{ display:flex; align-items:center; justify-content:center; text-align:center; min-width:0; border-radius:7px; background:#F3F7FA;
  border-top:3px solid #DCE8F1; padding:3px; font-size:.6rem; font-weight:600; line-height:1.2; color:var(--grey);
  text-decoration:none; overflow-wrap:anywhere }
.ts-cell.ts-simple{ border-top-color:#045597 } .ts-cell.ts-cont{ border-top-color:#0197D8 } .ts-cell.ts-perf{ border-top-color:#00A79C } .ts-cell.ts-perfc{ border-top-color:#8A6220 }
.ts-cell.has-page{ background:#fff; color:var(--ink); box-shadow:0 2px 6px rgba(4,40,70,.10) }
a.ts-cell:hover{ outline:2px solid var(--mint) }
.ts-cell.is-here{ background:var(--mint); color:#fff; border-top-color:#0B6156; box-shadow:0 0 0 3px rgba(0,192,180,.30) }

/* irregular verbs chart */
.iv-mini-head, .iv-mini-row{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px }
.iv-mini-head span{ background:var(--navy); color:#fff; font-size:.66rem; font-weight:700; text-align:center; border-radius:6px; padding:4px 0 }
.iv-mini-scroll{ max-height:calc(100vh - 150px); overflow-y:auto; margin-top:4px; padding-right:2px }
.iv-mini{ border-left:4px solid; border-radius:8px; margin:0 0 6px; padding:4px 4px 5px 6px }
.iv-mini.iv-g1{ background:#FFFBE6; border-color:#F2D34B } .iv-mini.iv-g2{ background:#EEFBF0; border-color:#5CC97A }
.iv-mini.iv-g3{ background:#FFF0EF; border-color:#E8655A } .iv-mini.iv-g4{ background:#F1F0FF; border-color:#8C84E0 }
.iv-mini.iv-g5{ background:#EAF4FB; border-color:var(--navy) }
.iv-mini-g{ margin:2px 0 3px; font-size:.64rem; font-weight:700; text-transform:uppercase; color:var(--ink); letter-spacing:.02em }
.iv-mini-row span{ font-size:.74rem; line-height:1.5; color:var(--ink); min-width:0; overflow-wrap:anywhere }
.iv-mini-row span:first-child{ font-weight:600 }
.iv-mini-row.is-first{ border-top:1px dashed rgba(4,40,70,.18); margin-top:2px; padding-top:2px }
.iv-mini > .iv-mini-row.is-first:nth-child(2){ border-top:0 }

@media (max-width:1180px){
  .gr-body--side{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px }
  .gr-body--side > .sc-left{ grid-column:1; grid-row:2 }
  .gr-body--side > .sc-right{ grid-column:2; grid-row:2 }
  .gr-body--side > .gr-sheet{ grid-column:1 / -1; grid-row:3 }
  .sc-side{ position:static }
  .iv-mini-scroll{ max-height:300px }
}
@media (max-width:700px){
  .gr-body--side{ display:block }
  .sc-side{ margin:0 0 16px }
  .ts-cell{ font-size:.66rem }
}

/* ---------- v43: library page opens with the home-page blue band ---------- */
.lib-band{ padding:54px 0 62px; text-align:center; color:#fff }
.lib-band-in{ display:flex; flex-direction:column; align-items:center }
.lib-band-logo{ width:64px; height:64px; object-fit:contain; margin:0 0 12px;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.25)) }
.lib-band h1{ margin:0 0 10px; color:#fff; font-size:clamp(2rem,5vw,3rem) }
.lib-band p{ margin:0; max-width:620px; color:rgba(255,255,255,.86); font-size:1.08rem }
body.lib-page{ background:#F3F7FA }


/* ---------- v44: band title + tiny corner note ---------- */
.lib-band{ position:relative }
.lib-band p.lib-band-note{ position:absolute; right:18px; bottom:10px; max-width:340px; margin:0;
  font-size:.68rem; line-height:1.35; text-align:right; color:rgba(255,255,255,.72) }
@media (max-width:640px){ .lib-band p.lib-band-note{ position:static; margin:14px auto 0; text-align:center } }


/* ---------- v46: centred topic title on tense pages ---------- */
.gr-body--side > .gr-top{ text-align:center }
.gr-body--side > .gr-top .gr-back{ display:inline-block }
.gr-body--side > .gr-top h1, .gr-body--side > .gr-top .gr-sub{ margin-left:auto; margin-right:auto }


/* ---------- v47: blue strip on lesson pages ---------- */
.gr-band{ padding:34px 0 38px }
.gr-band .gr-band-title{ margin:0; color:#fff; font-weight:700; font-size:clamp(1.6rem,4vw,2.4rem); line-height:1.15 }
.gr-band .gr-band-sub{ margin:6px 0 0; color:rgba(255,255,255,.82); font-size:.95rem; letter-spacing:.04em }

.gr-band + .section{ padding-top:30px }


/* ---------- v48: less empty space around the lesson-page strip ---------- */
.gr-band{ padding:22px 0 24px }
.gr-band + .section{ padding-top:14px }
.gr-band + .section .gr-top{ margin-top:0; padding-top:0 }
.gr-band + .section .gr-top .gr-back{ margin-top:0 }


/* ---------- v49: glassy, brighter tense chart (same glass as the test Start buttons) ---------- */
.ts-cell, .ts-ch, .ts-rh{ position:relative; overflow:hidden; isolation:isolate }
.ts-ch, .ts-rh{
  border:1px solid rgba(255,255,255,.55);
  background-image:linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 52%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 5px rgba(0,0,0,.14), 0 2px 6px rgba(4,40,70,.18);
  text-shadow:0 1px 1px rgba(0,0,0,.2) }
.ts-cell.has-page{
  background:linear-gradient(180deg, #fff 0%, #F4FAFF 48%, #E9F3FB 52%, #fff 100%);
  border:1px solid rgba(4,85,151,.18); border-top-width:3px;
  box-shadow:inset 0 1px 0 #fff, 0 3px 8px rgba(4,40,70,.14); transition:transform .2s, box-shadow .25s }
a.ts-cell.has-page:hover{ outline:0; transform:translateY(-1px); box-shadow:0 0 0 2px #19E3D2, 0 0 14px rgba(25,227,210,.55) }

/* the lit-up tense: bright, shiny, glowing */
.ts-cell.is-here{
  color:#fff; font-weight:700; border:1px solid rgba(255,255,255,.7); border-top:3px solid #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.14) 46%, rgba(255,255,255,0) 52%),
    linear-gradient(135deg, #2BF5E2 0%, #00C9B8 50%, #00A6E0 100%);
  box-shadow:0 0 0 2px #fff, 0 0 0 4px #19E3D2, 0 0 22px 4px rgba(25,227,210,.75),
             inset 0 1px 0 rgba(255,255,255,.85), inset 0 -3px 6px rgba(0,0,0,.14);
  text-shadow:0 1px 2px rgba(0,60,80,.45); z-index:2; transform:scale(1.06) }
.ts-cell.is-here::after, .ts-cell.has-page::after{
  content:""; position:absolute; top:0; bottom:0; left:-70%; width:45%; z-index:-1;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform:skewX(-20deg) }
.ts-cell.is-here::after{ animation:tsShine 3.2s ease-in-out infinite }
a.ts-cell.has-page::after{ transition:left .6s ease }
a.ts-cell.has-page:hover::after{ left:120% }
@keyframes tsShine{ 0%,55%{ left:-70% } 100%{ left:130% } }
@media (prefers-reduced-motion:reduce){ .ts-cell.is-here::after{ animation:none } }
.ts-grid{ padding:4px }

/* ---------- v50: clearer words in the tense chart ---------- */
.ts-cell{ color:#0B2F4E; font-weight:700; font-size:.66rem; line-height:1.25 }
.ts-cell.has-page{ color:#04305A }
.ts-cell.is-here{ color:#fff; font-size:.7rem; font-weight:800 }
.ts-ch{ font-size:.58rem; font-weight:800 }
.ts-rh{ font-size:.6rem; font-weight:800 }
.sc-title{ font-size:1rem }

/* ---------- v51: cherry-red "you are here" + bluish page background ---------- */
.ts-cell.is-here{
  border:1px solid rgba(255,255,255,.75); border-top:3px solid #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.12) 46%, rgba(255,255,255,0) 52%),
    linear-gradient(135deg, #F0446A 0%, #DC1846 50%, #C40F3C 100%);
  box-shadow:0 0 0 2px #fff, 0 0 0 4px #E8264F, 0 0 22px 4px rgba(232,38,79,.55),
             inset 0 1px 0 rgba(255,255,255,.85), inset 0 -3px 6px rgba(0,0,0,.16);
  text-shadow:0 1px 2px rgba(90,0,20,.45) }

body.gr-page{ background:linear-gradient(180deg, #DCEAF7 0%, #CFE1F2 100%) fixed }
body.gr-page .gr-sheet{ background:#fff; border:1px solid #B9D2EA;
  box-shadow:0 10px 30px rgba(11,47,78,.16), 0 2px 6px rgba(11,47,78,.08) }
body.gr-page .sc-side{ box-shadow:0 8px 22px rgba(11,47,78,.14) }

/* ---------- v52: library contents as squares, bluish room ---------- */
body.lib-page{ background:linear-gradient(180deg,#DCEAF7 0%,#CBDFF1 100%) fixed }
#libList{ max-width:1000px; margin:0 auto }
.tiles{ display:flex; flex-direction:column; gap:30px; padding:6px 0 30px }
.tile-head{ display:flex; align-items:center; gap:12px; margin:0 0 14px; font-size:1.2rem; color:#0B2F4E }
.tile-head span{ display:inline-grid; place-items:center; width:34px; height:34px; border-radius:10px;
  background:#045597; color:#fff; font-size:.85rem; font-weight:800 }
.tile-grid{ display:grid; gap:16px; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)) }
.tile{ position:relative; display:flex; flex-direction:column; aspect-ratio:1/1; padding:18px 18px 16px;
  border-radius:18px; background:#fff; text-decoration:none; color:#0B2F4E; overflow:hidden;
  border:1px solid #B9D2EA; border-top:6px solid var(--tc,#00A79C);
  box-shadow:0 10px 24px rgba(11,47,78,.12); transition:transform .2s, box-shadow .2s }
a.tile:hover{ transform:translateY(-4px); box-shadow:0 16px 32px rgba(11,47,78,.2) }
.tile-no{ font-size:2.4rem; font-weight:800; line-height:1; color:var(--tc,#00A79C); opacity:.9; margin:0 0 10px }
.tile-name{ font-size:1.08rem; line-height:1.3 }
.tile-sub{ font-style:normal; font-size:.86rem; color:#5E6E77; margin-top:6px }
.tile-end{ margin-top:auto; font-weight:700; font-size:.9rem; color:var(--tc,#00A79C) }
.tile--locked{ opacity:.7; cursor:not-allowed }
.tile--locked .tile-end{ color:#7A8A94 }
.tile--start{ --tc:#00A79C } .tile--present{ --tc:#0A7FD0 } .tile--past{ --tc:#5B4BC4 }
.tile--future{ --tc:#D9822B } .tile--compare{ --tc:#DC1846 } .tile--words{ --tc:#2E8B57 } .tile--elementary{ --tc:#E0A400 }
@media (max-width:520px){ .tile-grid{ grid-template-columns:1fr 1fr; gap:12px } .tile{ padding:14px } .tile-no{ font-size:1.8rem } .tile-name{ font-size:.95rem } .tile-sub{ font-size:.78rem } }

/* ---------- v53: mistake list in the warning box ---------- */
.gr-warn{ margin:6px 0 0; padding:0 0 0 18px }
.gr-warn li{ margin:0 0 6px }
.gr-warn s{ color:#B4402F; text-decoration-thickness:2px }

/* v54 library: tense chart as the contents */
.lib-chart .tc-scroll{ margin-top:6px }
.lib-chart-note{ margin:0 0 14px; color:var(--grey); font-size:.95rem }
.lib-chart .tc-cell--link{ cursor:pointer; transition:transform .15s ease, box-shadow .15s ease }
.lib-chart .tc-cell--link:hover{ transform:translateY(-3px); box-shadow:0 12px 24px rgba(4,40,70,.16) }
.lib-chart .tc-cell--soon{ opacity:.45; filter:grayscale(.6) }
.lib-chart .tc-cell--locked{ position:relative; opacity:.8 }
.lib-chart .tc-lock{ position:absolute; top:6px; right:8px; font-size:.85rem }

/* v56 library: comparisons as modern balance scales.
   Only the beam and plates move; stand and base stay still.
   Each plate is a tense-chart cell. */
.bal-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px }
.bal{ position:relative; display:block; background:linear-gradient(180deg,#FFFFFF 0%,#F4F8FC 100%);
  border:1px solid #DCE7F0; border-radius:22px; padding:18px 14px 16px; text-decoration:none; color:var(--navy);
  box-shadow:0 6px 18px rgba(4,40,70,.06); transition:transform .2s ease, box-shadow .2s ease }
a.bal:hover{ transform:translateY(-4px); box-shadow:0 16px 32px rgba(4,40,70,.14) }
.bal--locked{ opacity:.8 }
.bal-fig{ position:relative; display:block; height:232px }
/* stand */
.bal-base{ position:absolute; left:50%; bottom:4px; width:42%; height:12px; transform:translateX(-50%);
  border-radius:999px; background:linear-gradient(180deg,#1C4E78,#0B2F4E); box-shadow:0 6px 12px rgba(11,47,78,.25) }
.bal-post{ position:absolute; left:50%; top:22px; bottom:14px; width:8px; transform:translateX(-50%);
  border-radius:4px; background:linear-gradient(90deg,#0B2F4E,#2C6A9C 50%,#0B2F4E) }
.bal-pivot{ position:absolute; left:50%; top:14px; width:18px; height:18px; transform:translateX(-50%);
  border-radius:50%; background:#DC1846; box-shadow:0 0 0 4px #fff, 0 2px 8px rgba(220,24,70,.45); z-index:3 }
/* moving part */
.bal-beam{ position:absolute; left:22%; right:22%; top:20px; height:6px; transform-origin:50% 50%;
  animation:balBeam 5s ease-in-out infinite; z-index:2 }
.bal-bar{ position:absolute; inset:0; border-radius:999px; background:linear-gradient(90deg,#2C6A9C,#0B2F4E 50%,#2C6A9C) }
.bal-bar::before,.bal-bar::after{ content:""; position:absolute; top:50%; width:10px; height:10px; margin-top:-5px;
  border-radius:50%; background:#0B2F4E; box-shadow:0 0 0 3px #fff }
.bal-bar::before{ left:-5px } .bal-bar::after{ right:-5px }
.bal-hang{ position:absolute; top:3px; width:min(160px, 78%); display:flex; flex-direction:column; align-items:stretch;
  transform-origin:50% 0; animation:balHang 5s ease-in-out infinite }
.bal-hang--l{ left:0; transform:translateX(-50%) } .bal-hang--r{ right:0; transform:translateX(50%) }
.bal-hang--l{ --tx:-50% } .bal-hang--r{ --tx:50% }
.bal-cords{ display:block; width:100%; height:38px; overflow:visible }
.bal-cords path{ fill:none; stroke:#7F95A6; stroke-width:1.4; vector-effect:non-scaling-stroke }
.bal-plate.tc-cell{ display:flex; flex-direction:column; gap:3px; min-height:104px; padding:10px 10px 12px;
  border-radius:12px; box-shadow:0 8px 16px rgba(4,40,70,.12); text-align:left }
.bal-plate .tc-mini{ display:block }
.bal-name{ font-size:.92rem; line-height:1.2; color:var(--navy) }
.bal-form{ font-size:.8rem; color:#3E5566; font-weight:600 }
.bal-sub{ display:block; margin-top:6px; text-align:center; font-style:normal; color:var(--grey); font-size:.92rem }
@keyframes balBeam{ 0%,100%{ transform:rotate(-4deg) } 50%{ transform:rotate(4deg) } }
@keyframes balHang{ 0%,100%{ transform:translateX(var(--tx)) rotate(4deg) } 50%{ transform:translateX(var(--tx)) rotate(-4deg) } }
a.bal:hover .bal-beam, a.bal:hover .bal-hang{ animation-duration:2.4s }
@media (prefers-reduced-motion:reduce){ .bal-beam,.bal-hang{ animation:none } }
@media (max-width:420px){ .bal-fig{ height:246px } .bal-name{ font-size:.86rem } }
.bal-plate .tc-mini{ font-size:.66rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#5E6E77 }
.bal-plate.tc-cell--simple .tc-mini{ color:#045597 } .bal-plate.tc-cell--cont .tc-mini{ color:#0197D8 }
.bal-plate.tc-cell--perf .tc-mini{ color:#00A79C } .bal-plate.tc-cell--perfc .tc-mini{ color:#8A6220 }
.bal-fig{ height:268px }
.bal-plate.tc-cell{ min-height:126px }
@media (max-width:420px){ .bal-fig{ height:280px } .bal-plate.tc-cell{ min-height:140px } }
/* v57 scales on a blue card so the white plates stand out */
.bal{ background:linear-gradient(180deg,#CFE3F4 0%,#B7D3EC 100%); border-color:#A9C8E4; box-shadow:0 8px 20px rgba(4,40,70,.12) }
.bal-plate.tc-cell{ background:#fff; box-shadow:0 10px 20px rgba(4,40,70,.22) }
.bal-cords path{ stroke:#3E5F7A; stroke-width:1.6 }
.bal-sub{ color:#1F4566; font-weight:600 }
.bal-pivot{ box-shadow:0 0 0 4px #EAF3FB, 0 2px 8px rgba(220,24,70,.45) }
.bal-bar::before,.bal-bar::after{ box-shadow:0 0 0 3px #EAF3FB }
.bal{ background:linear-gradient(180deg,#B9D5EE 0%,#94BBE0 100%); border-color:#86AFD6 }
/* v58 future simple cell split into will / going to / which one */
.lib-chart .tc-cell--split{ display:flex; flex-direction:column; gap:5px; padding:8px 8px 9px }
.tc-split-title{ font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#045597; margin:0 2px 1px }
.tc-part{ position:relative; display:block; padding:6px 8px; border-radius:8px; background:#EEF5FB; border-left:3px solid #045597;
  text-decoration:none; color:inherit; transition:background .15s ease, transform .15s ease }
a.tc-part:hover{ background:#DCEBF8; transform:translateX(2px) }
.tc-part .tc-form{ display:block; font-size:.85rem }
.tc-part .tc-ex{ display:block; font-size:.8rem }
.tc-part .tc-hy{ display:block; font-size:.76rem }
.tc-part--cmp{ background:#FCEBEF; border-left-color:#DC1846 }
a.tc-part--cmp:hover{ background:#F9DCE3 }
.tc-part--cmp .tc-form{ color:#B0123A }
.tc-part-cmp{ float:right; color:#DC1846; font-size:.95rem; line-height:1 }
.tc-part--locked{ opacity:.75 }
/* v59 future cell: four quarters divided by a cross */
.tc-split-head{ display:flex; align-items:center; justify-content:space-between; gap:6px; flex-wrap:wrap }
.tc-which{ font-size:.72rem; font-weight:700; color:#B0123A; background:#FCEBEF; border-radius:999px; padding:2px 8px; text-decoration:none; white-space:nowrap }
.tc-which:hover{ background:#F9DCE3 }
.tc-cross{ display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; flex:1; margin-top:2px }
.tc-cross .tc-part{ border-left:0; border-radius:0; background:transparent; padding:7px 7px 8px }
.tc-cross .tc-part:nth-child(odd){ border-right:2px solid #045597 }
.tc-cross .tc-part:nth-child(-n+2){ border-bottom:2px solid #045597 }
.tc-cross a.tc-part:hover{ background:#EEF5FB; transform:none }
.tc-cross .tc-part .tc-form{ font-size:.8rem }
.tc-cross .tc-part .tc-ex{ font-size:.76rem }
.tc-cross .tc-part .tc-hy{ font-size:.72rem }

/* v60 compact four-part future cell */
.lib-chart .tc-cell--split{ padding:6px 6px 7px; gap:3px }
.tc-split-title{ font-size:.66rem }
.tc-which{ font-size:.66rem; padding:1px 6px }
.tc-cross .tc-part{ padding:4px 5px 5px }
.tc-cross .tc-part .tc-form{ font-size:.72rem; line-height:1.2 }
.tc-cross .tc-part .tc-ex{ font-size:.68rem; line-height:1.2 }
.tc-cross .tc-part .tc-hy{ display:none }

/* v61 usage section highlighted orange; repetition notes */
.gr-usage{ margin:28px 0; padding:18px 22px 20px; border:3px solid #F07A1A; border-radius:16px;
  background:linear-gradient(180deg,#FFF4E6 0%,#FFE8CC 100%); box-shadow:0 6px 18px rgba(240,122,26,.18) }
.gr-usage > h2{ color:#C2560A; margin-top:0 }
.gr-usage .gr-rule{ border-left-color:#F07A1A; background:#fff }
.gr-why{ display:block; margin-top:4px; font-weight:400; font-style:italic; color:#A8480B; font-size:.95em }
.gr-aside{ font-size:.88em; color:#5A6B7A; border-top:1px dashed #C9D6E2; padding-top:8px }
@media (max-width:520px){ .gr-usage{ padding:14px 12px 16px; margin:22px -4px } }
/* v62 section tags with icons + red Watch out section */
.gr-tag{ display:inline-flex; align-items:center; gap:6px; margin:26px 0 -4px; padding:3px 11px 3px 5px; border-radius:999px;
  font-size:.74rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#045597; background:#E3EEF8; border:1.5px solid #B9D3EA }
.gr-tag-ic{ display:inline-flex; width:20px; height:20px }
.gr-tag-ic svg{ width:100%; height:100% }
.gr-tag--idea{ color:#7A5A00; background:#FFF6D6; border-color:#F2D77A }
.gr-tag--build{ color:#8A4B12; background:#FDEBDA; border-color:#F0C49A }
.gr-tag--tips{ color:#fff; background:#F07A1A; border-color:#D8650B }
.gr-tag--watch{ color:#fff; background:#D7263D; border-color:#B81D31 }
.gr-tag--spot{ color:#0B6E62; background:#DDF3EF; border-color:#9FD8CE }
.gr-tag--side{ color:#045597; background:#DCEAF7; border-color:#A9C8E4 }
.gr-usage > .gr-tag, .gr-watch > .gr-tag{ margin-top:0 }
.gr-watch{ margin:28px 0; padding:18px 22px 20px; border:3px solid #D7263D; border-radius:16px;
  background:linear-gradient(180deg,#FFF1F2 0%,#FFE1E5 100%); box-shadow:0 6px 18px rgba(215,38,61,.15) }
.gr-watch > h2{ color:#B81D31; margin-top:6px }
.gr-watch .gr-warn li{ background:#fff; border-radius:8px; padding:7px 10px; list-style:none; margin:0 0 7px -18px }
@media (max-width:520px){ .gr-watch{ padding:14px 12px 16px; margin:22px -4px } }
.gr-tag + h2{ margin-top:8px }
.gr-tag--build .gr-tag-ic{ width:26px; height:26px; margin:-3px 0 }

/* v63 key idea box: why is it called simple */
.gr-key{ margin:10px 0 28px; padding:18px 22px 20px; border:3px solid #E0A800; border-radius:16px;
  background:linear-gradient(180deg,#FFF8D6 0%,#FFEC99 100%); box-shadow:0 6px 18px rgba(224,168,0,.22) }
.gr-key > .gr-tag{ margin-top:0 }
.gr-key > h2{ color:#7A5A00 }
.gr-key .gr-rule{ background:#fff; border-left-color:#E0A800 }
.gr-key .gr-aside{ color:#6B5A2A; border-top-color:#E8CF6A }
@media (max-width:520px){ .gr-key{ padding:14px 12px 16px; margin:8px -4px 22px } }

/* v68 squirrel: real bites, acorn finishes, new one pops up */
.sq{width:280px;max-width:78vw;height:auto;display:block;margin:0 auto}
.sq-fig{margin:16px auto 4px;text-align:center}.sq-fig figcaption{font-weight:700;color:#7A5A00;margin-top:8px}
.sq-wheel{transform-origin:130px 125px}
.sq-head{transform-origin:158px 190px}.sq-legA{transform-origin:116px 196px}.sq-legB{transform-origin:122px 205px}
.sq-legF{transform-origin:156px 198px}.sq-legF2{transform-origin:160px 196px}.sq-jaw{transform-origin:170px 186px}
.sq-b1,.sq-b2,.sq-b3{transform-box:fill-box;transform-origin:center;transform:scale(0)}
.sq-cr{opacity:0}
.sq-eye{transform-origin:178px 171px;animation:sqBlink 4.3s infinite}
@keyframes sqBlink{0%,94%,100%{transform:none}96.5%{transform:scaleY(.1)}}
.sq-tailg{transform-origin:104px 200px;animation:sqTail .64s ease-in-out infinite alternate}
@keyframes sqTail{to{transform:rotate(-4deg)}}
.sqv-main .sq-wheel{animation:sqW_main 6.4s linear infinite}
@keyframes sqW_main{0%,37.50%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.sqv-main .sq-nut{animation:sqN_main 6.4s linear infinite}
@keyframes sqN_main{0%,37.50%{transform:rotate(0)}100%{transform:rotate(-360deg)}}
.sqv-main .sq-vis{animation:sqV_main 6.4s step-end infinite}
@keyframes sqV_main{0%{opacity:1}40.28%{opacity:0}93.06%{opacity:1}}
.sqv-main .sq-legA{animation:sqLA_main 6.4s ease-in-out infinite}
@keyframes sqLA_main{0.00%{transform:rotate(0)}37.50%{transform:rotate(0)}39.38%{transform:rotate(-14deg)}44.38%{transform:rotate(16deg)}49.37%{transform:rotate(-14deg)}54.37%{transform:rotate(16deg)}59.37%{transform:rotate(-14deg)}64.37%{transform:rotate(16deg)}69.37%{transform:rotate(-14deg)}74.37%{transform:rotate(16deg)}79.38%{transform:rotate(-14deg)}84.38%{transform:rotate(16deg)}89.38%{transform:rotate(-14deg)}94.38%{transform:rotate(16deg)}100.00%{transform:rotate(0)}}
.sqv-main .sq-legB{animation:sqLB_main 6.4s ease-in-out infinite}
@keyframes sqLB_main{0.00%{transform:rotate(0)}37.50%{transform:rotate(0)}39.38%{transform:rotate(16deg)}44.38%{transform:rotate(-14deg)}49.37%{transform:rotate(16deg)}54.37%{transform:rotate(-14deg)}59.37%{transform:rotate(16deg)}64.37%{transform:rotate(-14deg)}69.37%{transform:rotate(16deg)}74.37%{transform:rotate(-14deg)}79.38%{transform:rotate(16deg)}84.38%{transform:rotate(-14deg)}89.38%{transform:rotate(16deg)}94.38%{transform:rotate(-14deg)}100.00%{transform:rotate(0)}}
.sqv-main .sq-legF{animation:sqLF_main 6.4s ease-in-out infinite}
@keyframes sqLF_main{0.00%{transform:rotate(-55deg)}37.50%{transform:rotate(-55deg)}39.38%{transform:rotate(22deg)}44.38%{transform:rotate(-22deg)}49.37%{transform:rotate(22deg)}54.37%{transform:rotate(-22deg)}59.37%{transform:rotate(22deg)}64.37%{transform:rotate(-22deg)}69.37%{transform:rotate(22deg)}74.37%{transform:rotate(-22deg)}79.38%{transform:rotate(22deg)}84.38%{transform:rotate(-22deg)}89.38%{transform:rotate(22deg)}94.38%{transform:rotate(-22deg)}100.00%{transform:rotate(-55deg)}}
.sqv-main .sq-legF2{animation:sqLF2_main 6.4s ease-in-out infinite}
@keyframes sqLF2_main{0.00%{transform:rotate(-52deg)}37.50%{transform:rotate(-52deg)}39.38%{transform:rotate(-22deg)}44.38%{transform:rotate(22deg)}49.37%{transform:rotate(-22deg)}54.37%{transform:rotate(22deg)}59.37%{transform:rotate(-22deg)}64.37%{transform:rotate(22deg)}69.37%{transform:rotate(-22deg)}74.37%{transform:rotate(22deg)}79.38%{transform:rotate(-22deg)}84.38%{transform:rotate(22deg)}89.38%{transform:rotate(-22deg)}94.38%{transform:rotate(22deg)}100.00%{transform:rotate(-52deg)}}
.sqv-main .sq-body{animation:sqB_main 6.4s ease-in-out infinite}
@keyframes sqB_main{0.00%{transform:none}37.50%{transform:none}39.38%{transform:translateY(0px)}44.38%{transform:translateY(-2.5px)}49.37%{transform:translateY(0px)}54.37%{transform:translateY(-2.5px)}59.37%{transform:translateY(0px)}64.37%{transform:translateY(-2.5px)}69.37%{transform:translateY(0px)}74.37%{transform:translateY(-2.5px)}79.38%{transform:translateY(0px)}84.38%{transform:translateY(-2.5px)}89.38%{transform:translateY(0px)}94.38%{transform:translateY(-2.5px)}100.00%{transform:none}}
.sqv-main .sq-head{animation:sqH_main 6.4s ease-in-out infinite}
@keyframes sqH_main{0.00%{transform:rotate(4deg) translate(-2px,1px)}5.62%{transform:rotate(-4deg) translate(-6px,-1px)}11.25%{transform:rotate(6deg) translate(0,2px)}15.00%{transform:rotate(4deg) translate(-2px,1px)}18.75%{transform:rotate(-4deg) translate(-6px,-1px)}24.38%{transform:rotate(6deg) translate(0,2px)}28.12%{transform:rotate(4deg) translate(-2px,1px)}37.50%{transform:rotate(4deg) translate(-2px,1px)}42.19%{transform:none}95.31%{transform:none}100.00%{transform:rotate(4deg) translate(-2px,1px)}}
.sqv-main .sq-jaw{animation:sqJ_main 6.4s ease-in-out infinite}
@keyframes sqJ_main{0.00%{transform:rotate(0deg)}3.75%{transform:rotate(0deg)}8.25%{transform:rotate(26deg)}11.25%{transform:rotate(0deg)}13.50%{transform:rotate(9deg)}15.75%{transform:rotate(0deg)}17.25%{transform:rotate(0deg)}21.37%{transform:rotate(26deg)}24.38%{transform:rotate(0deg)}26.62%{transform:rotate(9deg)}28.87%{transform:rotate(0deg)}100.00%{transform:rotate(0deg)}}
.sqv-main .sq-b1{animation:sqb1_main 12.8s linear infinite}
@keyframes sqb1_main{0.00%{transform:scale(0)}5.47%{transform:scale(0)}5.62%{transform:scale(1)}65.00%{transform:scale(1)}65.16%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-main .sq-b2{animation:sqb2_main 12.8s linear infinite}
@keyframes sqb2_main{0.00%{transform:scale(0)}12.03%{transform:scale(0)}12.19%{transform:scale(1)}65.00%{transform:scale(1)}65.16%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-main .sq-b3{animation:sqb3_main 12.8s linear infinite}
@keyframes sqb3_main{0.00%{transform:scale(0)}55.47%{transform:scale(0)}55.62%{transform:scale(1)}65.00%{transform:scale(1)}65.16%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-main .sq-eat{animation:sqE_main 12.8s ease-out infinite}
@keyframes sqE_main{0.00%{transform:scale(1)}62.03%{transform:scale(1)}62.58%{transform:scale(0)}65.38%{transform:scale(0)}67.44%{transform:scale(1.3)}68.75%{transform:scale(1)}100.00%{transform:scale(1)}}
.sqv-main .sq-cr{animation:sqC_main 6.4s ease-in infinite}
@keyframes sqC_main{0.00%{opacity:0;transform:none}10.94%{opacity:0;transform:none}11.25%{opacity:1;transform:none}19.06%{opacity:0;transform:translate(-3px,20px)}19.37%{opacity:0;transform:none}24.06%{opacity:0;transform:none}24.38%{opacity:1;transform:none}32.19%{opacity:0;transform:translate(-3px,20px)}32.50%{opacity:0;transform:none}100.00%{opacity:0;transform:none}}
.sqv-main .sq-cr:nth-child(2){animation-duration:6.4s;transform-origin:center}
.sqv-seldom .sq-wheel{animation:sqW_seldom 10.8s linear infinite}
@keyframes sqW_seldom{0%,16.67%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.sqv-seldom .sq-nut{animation:sqN_seldom 10.8s linear infinite}
@keyframes sqN_seldom{0%,16.67%{transform:rotate(0)}100%{transform:rotate(-360deg)}}
.sqv-seldom .sq-vis{animation:sqV_seldom 10.8s step-end infinite}
@keyframes sqV_seldom{0%{opacity:1}20.37%{opacity:0}90.74%{opacity:1}}
.sqv-seldom .sq-legA{animation:sqLA_seldom 10.8s ease-in-out infinite}
@keyframes sqLA_seldom{0.00%{transform:rotate(0)}16.67%{transform:rotate(0)}17.78%{transform:rotate(-14deg)}20.74%{transform:rotate(16deg)}23.70%{transform:rotate(-14deg)}26.67%{transform:rotate(16deg)}29.63%{transform:rotate(-14deg)}32.59%{transform:rotate(16deg)}35.56%{transform:rotate(-14deg)}38.52%{transform:rotate(16deg)}41.48%{transform:rotate(-14deg)}44.44%{transform:rotate(16deg)}47.41%{transform:rotate(-14deg)}50.37%{transform:rotate(16deg)}53.33%{transform:rotate(-14deg)}56.30%{transform:rotate(16deg)}59.26%{transform:rotate(-14deg)}62.22%{transform:rotate(16deg)}65.19%{transform:rotate(-14deg)}68.15%{transform:rotate(16deg)}71.11%{transform:rotate(-14deg)}74.07%{transform:rotate(16deg)}77.04%{transform:rotate(-14deg)}80.00%{transform:rotate(16deg)}82.96%{transform:rotate(-14deg)}85.93%{transform:rotate(16deg)}88.89%{transform:rotate(-14deg)}91.85%{transform:rotate(16deg)}94.81%{transform:rotate(-14deg)}97.78%{transform:rotate(16deg)}100.00%{transform:rotate(0)}}
.sqv-seldom .sq-legB{animation:sqLB_seldom 10.8s ease-in-out infinite}
@keyframes sqLB_seldom{0.00%{transform:rotate(0)}16.67%{transform:rotate(0)}17.78%{transform:rotate(16deg)}20.74%{transform:rotate(-14deg)}23.70%{transform:rotate(16deg)}26.67%{transform:rotate(-14deg)}29.63%{transform:rotate(16deg)}32.59%{transform:rotate(-14deg)}35.56%{transform:rotate(16deg)}38.52%{transform:rotate(-14deg)}41.48%{transform:rotate(16deg)}44.44%{transform:rotate(-14deg)}47.41%{transform:rotate(16deg)}50.37%{transform:rotate(-14deg)}53.33%{transform:rotate(16deg)}56.30%{transform:rotate(-14deg)}59.26%{transform:rotate(16deg)}62.22%{transform:rotate(-14deg)}65.19%{transform:rotate(16deg)}68.15%{transform:rotate(-14deg)}71.11%{transform:rotate(16deg)}74.07%{transform:rotate(-14deg)}77.04%{transform:rotate(16deg)}80.00%{transform:rotate(-14deg)}82.96%{transform:rotate(16deg)}85.93%{transform:rotate(-14deg)}88.89%{transform:rotate(16deg)}91.85%{transform:rotate(-14deg)}94.81%{transform:rotate(16deg)}97.78%{transform:rotate(-14deg)}100.00%{transform:rotate(0)}}
.sqv-seldom .sq-legF{animation:sqLF_seldom 10.8s ease-in-out infinite}
@keyframes sqLF_seldom{0.00%{transform:rotate(-55deg)}16.67%{transform:rotate(-55deg)}17.78%{transform:rotate(22deg)}20.74%{transform:rotate(-22deg)}23.70%{transform:rotate(22deg)}26.67%{transform:rotate(-22deg)}29.63%{transform:rotate(22deg)}32.59%{transform:rotate(-22deg)}35.56%{transform:rotate(22deg)}38.52%{transform:rotate(-22deg)}41.48%{transform:rotate(22deg)}44.44%{transform:rotate(-22deg)}47.41%{transform:rotate(22deg)}50.37%{transform:rotate(-22deg)}53.33%{transform:rotate(22deg)}56.30%{transform:rotate(-22deg)}59.26%{transform:rotate(22deg)}62.22%{transform:rotate(-22deg)}65.19%{transform:rotate(22deg)}68.15%{transform:rotate(-22deg)}71.11%{transform:rotate(22deg)}74.07%{transform:rotate(-22deg)}77.04%{transform:rotate(22deg)}80.00%{transform:rotate(-22deg)}82.96%{transform:rotate(22deg)}85.93%{transform:rotate(-22deg)}88.89%{transform:rotate(22deg)}91.85%{transform:rotate(-22deg)}94.81%{transform:rotate(22deg)}97.78%{transform:rotate(-22deg)}100.00%{transform:rotate(-55deg)}}
.sqv-seldom .sq-legF2{animation:sqLF2_seldom 10.8s ease-in-out infinite}
@keyframes sqLF2_seldom{0.00%{transform:rotate(-52deg)}16.67%{transform:rotate(-52deg)}17.78%{transform:rotate(-22deg)}20.74%{transform:rotate(22deg)}23.70%{transform:rotate(-22deg)}26.67%{transform:rotate(22deg)}29.63%{transform:rotate(-22deg)}32.59%{transform:rotate(22deg)}35.56%{transform:rotate(-22deg)}38.52%{transform:rotate(22deg)}41.48%{transform:rotate(-22deg)}44.44%{transform:rotate(22deg)}47.41%{transform:rotate(-22deg)}50.37%{transform:rotate(22deg)}53.33%{transform:rotate(-22deg)}56.30%{transform:rotate(22deg)}59.26%{transform:rotate(-22deg)}62.22%{transform:rotate(22deg)}65.19%{transform:rotate(-22deg)}68.15%{transform:rotate(22deg)}71.11%{transform:rotate(-22deg)}74.07%{transform:rotate(22deg)}77.04%{transform:rotate(-22deg)}80.00%{transform:rotate(22deg)}82.96%{transform:rotate(-22deg)}85.93%{transform:rotate(22deg)}88.89%{transform:rotate(-22deg)}91.85%{transform:rotate(22deg)}94.81%{transform:rotate(-22deg)}97.78%{transform:rotate(22deg)}100.00%{transform:rotate(-52deg)}}
.sqv-seldom .sq-body{animation:sqB_seldom 10.8s ease-in-out infinite}
@keyframes sqB_seldom{0.00%{transform:none}16.67%{transform:none}17.78%{transform:translateY(0px)}20.74%{transform:translateY(-2.5px)}23.70%{transform:translateY(0px)}26.67%{transform:translateY(-2.5px)}29.63%{transform:translateY(0px)}32.59%{transform:translateY(-2.5px)}35.56%{transform:translateY(0px)}38.52%{transform:translateY(-2.5px)}41.48%{transform:translateY(0px)}44.44%{transform:translateY(-2.5px)}47.41%{transform:translateY(0px)}50.37%{transform:translateY(-2.5px)}53.33%{transform:translateY(0px)}56.30%{transform:translateY(-2.5px)}59.26%{transform:translateY(0px)}62.22%{transform:translateY(-2.5px)}65.19%{transform:translateY(0px)}68.15%{transform:translateY(-2.5px)}71.11%{transform:translateY(0px)}74.07%{transform:translateY(-2.5px)}77.04%{transform:translateY(0px)}80.00%{transform:translateY(-2.5px)}82.96%{transform:translateY(0px)}85.93%{transform:translateY(-2.5px)}88.89%{transform:translateY(0px)}91.85%{transform:translateY(-2.5px)}94.81%{transform:translateY(0px)}97.78%{transform:translateY(-2.5px)}100.00%{transform:none}}
.sqv-seldom .sq-head{animation:sqH_seldom 10.8s ease-in-out infinite}
@keyframes sqH_seldom{0.00%{transform:rotate(4deg) translate(-2px,1px)}2.50%{transform:rotate(-4deg) translate(-6px,-1px)}5.00%{transform:rotate(6deg) translate(0,2px)}6.67%{transform:rotate(4deg) translate(-2px,1px)}8.33%{transform:rotate(-4deg) translate(-6px,-1px)}10.83%{transform:rotate(6deg) translate(0,2px)}12.50%{transform:rotate(4deg) translate(-2px,1px)}16.67%{transform:rotate(4deg) translate(-2px,1px)}19.44%{transform:none}97.22%{transform:none}100.00%{transform:rotate(4deg) translate(-2px,1px)}}
.sqv-seldom .sq-jaw{animation:sqJ_seldom 10.8s ease-in-out infinite}
@keyframes sqJ_seldom{0.00%{transform:rotate(0deg)}1.67%{transform:rotate(0deg)}3.67%{transform:rotate(26deg)}5.00%{transform:rotate(0deg)}6.00%{transform:rotate(9deg)}7.00%{transform:rotate(0deg)}7.67%{transform:rotate(0deg)}9.50%{transform:rotate(26deg)}10.83%{transform:rotate(0deg)}11.83%{transform:rotate(9deg)}12.83%{transform:rotate(0deg)}100.00%{transform:rotate(0deg)}}
.sqv-seldom .sq-b1{animation:sqb1_seldom 21.6s linear infinite}
@keyframes sqb1_seldom{0.00%{transform:scale(0)}2.41%{transform:scale(0)}2.50%{transform:scale(1)}56.67%{transform:scale(1)}56.76%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-seldom .sq-b2{animation:sqb2_seldom 21.6s linear infinite}
@keyframes sqb2_seldom{0.00%{transform:scale(0)}5.32%{transform:scale(0)}5.42%{transform:scale(1)}56.67%{transform:scale(1)}56.76%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-seldom .sq-b3{animation:sqb3_seldom 21.6s linear infinite}
@keyframes sqb3_seldom{0.00%{transform:scale(0)}52.41%{transform:scale(0)}52.50%{transform:scale(1)}56.67%{transform:scale(1)}56.76%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-seldom .sq-eat{animation:sqE_seldom 21.6s ease-out infinite}
@keyframes sqE_seldom{0.00%{transform:scale(1)}55.32%{transform:scale(1)}55.65%{transform:scale(0)}56.83%{transform:scale(0)}57.75%{transform:scale(1.3)}58.33%{transform:scale(1)}100.00%{transform:scale(1)}}
.sqv-seldom .sq-cr{animation:sqC_seldom 10.8s ease-in infinite}
@keyframes sqC_seldom{0.00%{opacity:0;transform:none}4.81%{opacity:0;transform:none}5.00%{opacity:1;transform:none}9.63%{opacity:0;transform:translate(-3px,20px)}9.81%{opacity:0;transform:none}10.65%{opacity:0;transform:none}10.83%{opacity:1;transform:none}15.46%{opacity:0;transform:translate(-3px,20px)}15.65%{opacity:0;transform:none}100.00%{opacity:0;transform:none}}
.sqv-seldom .sq-cr:nth-child(2){animation-duration:10.8s;transform-origin:center}
.sqv-sometimes .sq-wheel{animation:sqW_sometimes 6.8s linear infinite}
@keyframes sqW_sometimes{0%,26.47%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.sqv-sometimes .sq-nut{animation:sqN_sometimes 6.8s linear infinite}
@keyframes sqN_sometimes{0%,26.47%{transform:rotate(0)}100%{transform:rotate(-360deg)}}
.sqv-sometimes .sq-vis{animation:sqV_sometimes 6.8s step-end infinite}
@keyframes sqV_sometimes{0%{opacity:1}29.74%{opacity:0}91.83%{opacity:1}}
.sqv-sometimes .sq-legA{animation:sqLA_sometimes 6.8s ease-in-out infinite}
@keyframes sqLA_sometimes{0.00%{transform:rotate(0)}26.47%{transform:rotate(0)}28.24%{transform:rotate(-14deg)}32.94%{transform:rotate(16deg)}37.65%{transform:rotate(-14deg)}42.35%{transform:rotate(16deg)}47.06%{transform:rotate(-14deg)}51.76%{transform:rotate(16deg)}56.47%{transform:rotate(-14deg)}61.18%{transform:rotate(16deg)}65.88%{transform:rotate(-14deg)}70.59%{transform:rotate(16deg)}75.29%{transform:rotate(-14deg)}80.00%{transform:rotate(16deg)}84.71%{transform:rotate(-14deg)}89.41%{transform:rotate(16deg)}94.12%{transform:rotate(-14deg)}100.00%{transform:rotate(0)}}
.sqv-sometimes .sq-legB{animation:sqLB_sometimes 6.8s ease-in-out infinite}
@keyframes sqLB_sometimes{0.00%{transform:rotate(0)}26.47%{transform:rotate(0)}28.24%{transform:rotate(16deg)}32.94%{transform:rotate(-14deg)}37.65%{transform:rotate(16deg)}42.35%{transform:rotate(-14deg)}47.06%{transform:rotate(16deg)}51.76%{transform:rotate(-14deg)}56.47%{transform:rotate(16deg)}61.18%{transform:rotate(-14deg)}65.88%{transform:rotate(16deg)}70.59%{transform:rotate(-14deg)}75.29%{transform:rotate(16deg)}80.00%{transform:rotate(-14deg)}84.71%{transform:rotate(16deg)}89.41%{transform:rotate(-14deg)}94.12%{transform:rotate(16deg)}100.00%{transform:rotate(0)}}
.sqv-sometimes .sq-legF{animation:sqLF_sometimes 6.8s ease-in-out infinite}
@keyframes sqLF_sometimes{0.00%{transform:rotate(-55deg)}26.47%{transform:rotate(-55deg)}28.24%{transform:rotate(22deg)}32.94%{transform:rotate(-22deg)}37.65%{transform:rotate(22deg)}42.35%{transform:rotate(-22deg)}47.06%{transform:rotate(22deg)}51.76%{transform:rotate(-22deg)}56.47%{transform:rotate(22deg)}61.18%{transform:rotate(-22deg)}65.88%{transform:rotate(22deg)}70.59%{transform:rotate(-22deg)}75.29%{transform:rotate(22deg)}80.00%{transform:rotate(-22deg)}84.71%{transform:rotate(22deg)}89.41%{transform:rotate(-22deg)}94.12%{transform:rotate(22deg)}100.00%{transform:rotate(-55deg)}}
.sqv-sometimes .sq-legF2{animation:sqLF2_sometimes 6.8s ease-in-out infinite}
@keyframes sqLF2_sometimes{0.00%{transform:rotate(-52deg)}26.47%{transform:rotate(-52deg)}28.24%{transform:rotate(-22deg)}32.94%{transform:rotate(22deg)}37.65%{transform:rotate(-22deg)}42.35%{transform:rotate(22deg)}47.06%{transform:rotate(-22deg)}51.76%{transform:rotate(22deg)}56.47%{transform:rotate(-22deg)}61.18%{transform:rotate(22deg)}65.88%{transform:rotate(-22deg)}70.59%{transform:rotate(22deg)}75.29%{transform:rotate(-22deg)}80.00%{transform:rotate(22deg)}84.71%{transform:rotate(-22deg)}89.41%{transform:rotate(22deg)}94.12%{transform:rotate(-22deg)}100.00%{transform:rotate(-52deg)}}
.sqv-sometimes .sq-body{animation:sqB_sometimes 6.8s ease-in-out infinite}
@keyframes sqB_sometimes{0.00%{transform:none}26.47%{transform:none}28.24%{transform:translateY(0px)}32.94%{transform:translateY(-2.5px)}37.65%{transform:translateY(0px)}42.35%{transform:translateY(-2.5px)}47.06%{transform:translateY(0px)}51.76%{transform:translateY(-2.5px)}56.47%{transform:translateY(0px)}61.18%{transform:translateY(-2.5px)}65.88%{transform:translateY(0px)}70.59%{transform:translateY(-2.5px)}75.29%{transform:translateY(0px)}80.00%{transform:translateY(-2.5px)}84.71%{transform:translateY(0px)}89.41%{transform:translateY(-2.5px)}94.12%{transform:translateY(0px)}100.00%{transform:none}}
.sqv-sometimes .sq-head{animation:sqH_sometimes 6.8s ease-in-out infinite}
@keyframes sqH_sometimes{0.00%{transform:rotate(4deg) translate(-2px,1px)}3.97%{transform:rotate(-4deg) translate(-6px,-1px)}7.94%{transform:rotate(6deg) translate(0,2px)}10.59%{transform:rotate(4deg) translate(-2px,1px)}13.24%{transform:rotate(-4deg) translate(-6px,-1px)}17.21%{transform:rotate(6deg) translate(0,2px)}19.85%{transform:rotate(4deg) translate(-2px,1px)}26.47%{transform:rotate(4deg) translate(-2px,1px)}30.88%{transform:none}95.59%{transform:none}100.00%{transform:rotate(4deg) translate(-2px,1px)}}
.sqv-sometimes .sq-jaw{animation:sqJ_sometimes 6.8s ease-in-out infinite}
@keyframes sqJ_sometimes{0.00%{transform:rotate(0deg)}2.65%{transform:rotate(0deg)}5.82%{transform:rotate(26deg)}7.94%{transform:rotate(0deg)}9.53%{transform:rotate(9deg)}11.12%{transform:rotate(0deg)}12.18%{transform:rotate(0deg)}15.09%{transform:rotate(26deg)}17.21%{transform:rotate(0deg)}18.79%{transform:rotate(9deg)}20.38%{transform:rotate(0deg)}100.00%{transform:rotate(0deg)}}
.sqv-sometimes .sq-b1{animation:sqb1_sometimes 13.6s linear infinite}
@keyframes sqb1_sometimes{0.00%{transform:scale(0)}3.82%{transform:scale(0)}3.97%{transform:scale(1)}60.59%{transform:scale(1)}60.74%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-sometimes .sq-b2{animation:sqb2_sometimes 13.6s linear infinite}
@keyframes sqb2_sometimes{0.00%{transform:scale(0)}8.46%{transform:scale(0)}8.60%{transform:scale(1)}60.59%{transform:scale(1)}60.74%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-sometimes .sq-b3{animation:sqb3_sometimes 13.6s linear infinite}
@keyframes sqb3_sometimes{0.00%{transform:scale(0)}53.82%{transform:scale(0)}53.97%{transform:scale(1)}60.59%{transform:scale(1)}60.74%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-sometimes .sq-eat{animation:sqE_sometimes 13.6s ease-out infinite}
@keyframes sqE_sometimes{0.00%{transform:scale(1)}58.46%{transform:scale(1)}58.97%{transform:scale(0)}60.85%{transform:scale(0)}62.31%{transform:scale(1.3)}63.24%{transform:scale(1)}100.00%{transform:scale(1)}}
.sqv-sometimes .sq-cr{animation:sqC_sometimes 6.8s ease-in infinite}
@keyframes sqC_sometimes{0.00%{opacity:0;transform:none}7.65%{opacity:0;transform:none}7.94%{opacity:1;transform:none}15.29%{opacity:0;transform:translate(-3px,20px)}15.59%{opacity:0;transform:none}16.91%{opacity:0;transform:none}17.21%{opacity:1;transform:none}24.56%{opacity:0;transform:translate(-3px,20px)}24.85%{opacity:0;transform:none}100.00%{opacity:0;transform:none}}
.sqv-sometimes .sq-cr:nth-child(2){animation-duration:6.8s;transform-origin:center}
.sqv-often .sq-wheel{animation:sqW_often 3.1s linear infinite}
@keyframes sqW_often{0%,48.39%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.sqv-often .sq-nut{animation:sqN_often 3.1s linear infinite}
@keyframes sqN_often{0%,48.39%{transform:rotate(0)}100%{transform:rotate(-360deg)}}
.sqv-often .sq-vis{animation:sqV_often 3.1s step-end infinite}
@keyframes sqV_often{0%{opacity:1}50.68%{opacity:0}94.27%{opacity:1}}
.sqv-often .sq-legA{animation:sqLA_often 3.1s ease-in-out infinite}
@keyframes sqLA_often{0.00%{transform:rotate(0)}48.39%{transform:rotate(0)}52.26%{transform:rotate(-14deg)}62.58%{transform:rotate(16deg)}72.90%{transform:rotate(-14deg)}83.23%{transform:rotate(16deg)}93.55%{transform:rotate(-14deg)}100.00%{transform:rotate(0)}}
.sqv-often .sq-legB{animation:sqLB_often 3.1s ease-in-out infinite}
@keyframes sqLB_often{0.00%{transform:rotate(0)}48.39%{transform:rotate(0)}52.26%{transform:rotate(16deg)}62.58%{transform:rotate(-14deg)}72.90%{transform:rotate(16deg)}83.23%{transform:rotate(-14deg)}93.55%{transform:rotate(16deg)}100.00%{transform:rotate(0)}}
.sqv-often .sq-legF{animation:sqLF_often 3.1s ease-in-out infinite}
@keyframes sqLF_often{0.00%{transform:rotate(-55deg)}48.39%{transform:rotate(-55deg)}52.26%{transform:rotate(22deg)}62.58%{transform:rotate(-22deg)}72.90%{transform:rotate(22deg)}83.23%{transform:rotate(-22deg)}93.55%{transform:rotate(22deg)}100.00%{transform:rotate(-55deg)}}
.sqv-often .sq-legF2{animation:sqLF2_often 3.1s ease-in-out infinite}
@keyframes sqLF2_often{0.00%{transform:rotate(-52deg)}48.39%{transform:rotate(-52deg)}52.26%{transform:rotate(-22deg)}62.58%{transform:rotate(22deg)}72.90%{transform:rotate(-22deg)}83.23%{transform:rotate(22deg)}93.55%{transform:rotate(-22deg)}100.00%{transform:rotate(-52deg)}}
.sqv-often .sq-body{animation:sqB_often 3.1s ease-in-out infinite}
@keyframes sqB_often{0.00%{transform:none}48.39%{transform:none}52.26%{transform:translateY(0px)}62.58%{transform:translateY(-2.5px)}72.90%{transform:translateY(0px)}83.23%{transform:translateY(-2.5px)}93.55%{transform:translateY(0px)}100.00%{transform:none}}
.sqv-often .sq-head{animation:sqH_often 3.1s ease-in-out infinite}
@keyframes sqH_often{0.00%{transform:rotate(4deg) translate(-2px,1px)}7.26%{transform:rotate(-4deg) translate(-6px,-1px)}14.52%{transform:rotate(6deg) translate(0,2px)}19.35%{transform:rotate(4deg) translate(-2px,1px)}24.19%{transform:rotate(-4deg) translate(-6px,-1px)}31.45%{transform:rotate(6deg) translate(0,2px)}36.29%{transform:rotate(4deg) translate(-2px,1px)}48.39%{transform:rotate(4deg) translate(-2px,1px)}58.06%{transform:none}90.32%{transform:none}100.00%{transform:rotate(4deg) translate(-2px,1px)}}
.sqv-often .sq-jaw{animation:sqJ_often 3.1s ease-in-out infinite}
@keyframes sqJ_often{0.00%{transform:rotate(0deg)}4.84%{transform:rotate(0deg)}10.65%{transform:rotate(26deg)}14.52%{transform:rotate(0deg)}17.42%{transform:rotate(9deg)}20.32%{transform:rotate(0deg)}22.26%{transform:rotate(0deg)}27.58%{transform:rotate(26deg)}31.45%{transform:rotate(0deg)}34.35%{transform:rotate(9deg)}37.26%{transform:rotate(0deg)}100.00%{transform:rotate(0deg)}}
.sqv-often .sq-b1{animation:sqb1_often 6.2s linear infinite}
@keyframes sqb1_often{0.00%{transform:scale(0)}6.94%{transform:scale(0)}7.26%{transform:scale(1)}69.35%{transform:scale(1)}69.68%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-often .sq-b2{animation:sqb2_often 6.2s linear infinite}
@keyframes sqb2_often{0.00%{transform:scale(0)}15.40%{transform:scale(0)}15.73%{transform:scale(1)}69.35%{transform:scale(1)}69.68%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-often .sq-b3{animation:sqb3_often 6.2s linear infinite}
@keyframes sqb3_often{0.00%{transform:scale(0)}56.94%{transform:scale(0)}57.26%{transform:scale(1)}69.35%{transform:scale(1)}69.68%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-often .sq-eat{animation:sqE_often 6.2s ease-out infinite}
@keyframes sqE_often{0.00%{transform:scale(1)}65.40%{transform:scale(1)}66.53%{transform:scale(0)}69.84%{transform:scale(0)}72.50%{transform:scale(1.3)}74.19%{transform:scale(1)}100.00%{transform:scale(1)}}
.sqv-often .sq-cr{animation:sqC_often 3.1s ease-in infinite}
@keyframes sqC_often{0.00%{opacity:0;transform:none}13.87%{opacity:0;transform:none}14.52%{opacity:1;transform:none}30.65%{opacity:0;transform:translate(-3px,20px)}30.81%{opacity:0;transform:none}31.29%{opacity:0;transform:none}31.45%{opacity:1;transform:none}47.58%{opacity:0;transform:translate(-3px,20px)}48.23%{opacity:0;transform:none}100.00%{opacity:0;transform:none}}
.sqv-often .sq-cr:nth-child(2){animation-duration:3.1s;transform-origin:center}
.sqv-usually .sq-wheel{animation:sqW_usually 4.8s linear infinite}
@keyframes sqW_usually{0%,37.50%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.sqv-usually .sq-nut{animation:sqN_usually 4.8s linear infinite}
@keyframes sqN_usually{0%,37.50%{transform:rotate(0)}100%{transform:rotate(-360deg)}}
.sqv-usually .sq-vis{animation:sqV_usually 4.8s step-end infinite}
@keyframes sqV_usually{0%{opacity:1}40.28%{opacity:0}93.06%{opacity:1}}
.sqv-usually .sq-legA{animation:sqLA_usually 4.8s ease-in-out infinite}
@keyframes sqLA_usually{0.00%{transform:rotate(0)}37.50%{transform:rotate(0)}40.00%{transform:rotate(-14deg)}46.67%{transform:rotate(16deg)}53.33%{transform:rotate(-14deg)}60.00%{transform:rotate(16deg)}66.67%{transform:rotate(-14deg)}73.33%{transform:rotate(16deg)}80.00%{transform:rotate(-14deg)}86.67%{transform:rotate(16deg)}93.33%{transform:rotate(-14deg)}100.00%{transform:rotate(0)}}
.sqv-usually .sq-legB{animation:sqLB_usually 4.8s ease-in-out infinite}
@keyframes sqLB_usually{0.00%{transform:rotate(0)}37.50%{transform:rotate(0)}40.00%{transform:rotate(16deg)}46.67%{transform:rotate(-14deg)}53.33%{transform:rotate(16deg)}60.00%{transform:rotate(-14deg)}66.67%{transform:rotate(16deg)}73.33%{transform:rotate(-14deg)}80.00%{transform:rotate(16deg)}86.67%{transform:rotate(-14deg)}93.33%{transform:rotate(16deg)}100.00%{transform:rotate(0)}}
.sqv-usually .sq-legF{animation:sqLF_usually 4.8s ease-in-out infinite}
@keyframes sqLF_usually{0.00%{transform:rotate(-55deg)}37.50%{transform:rotate(-55deg)}40.00%{transform:rotate(22deg)}46.67%{transform:rotate(-22deg)}53.33%{transform:rotate(22deg)}60.00%{transform:rotate(-22deg)}66.67%{transform:rotate(22deg)}73.33%{transform:rotate(-22deg)}80.00%{transform:rotate(22deg)}86.67%{transform:rotate(-22deg)}93.33%{transform:rotate(22deg)}100.00%{transform:rotate(-55deg)}}
.sqv-usually .sq-legF2{animation:sqLF2_usually 4.8s ease-in-out infinite}
@keyframes sqLF2_usually{0.00%{transform:rotate(-52deg)}37.50%{transform:rotate(-52deg)}40.00%{transform:rotate(-22deg)}46.67%{transform:rotate(22deg)}53.33%{transform:rotate(-22deg)}60.00%{transform:rotate(22deg)}66.67%{transform:rotate(-22deg)}73.33%{transform:rotate(22deg)}80.00%{transform:rotate(-22deg)}86.67%{transform:rotate(22deg)}93.33%{transform:rotate(-22deg)}100.00%{transform:rotate(-52deg)}}
.sqv-usually .sq-body{animation:sqB_usually 4.8s ease-in-out infinite}
@keyframes sqB_usually{0.00%{transform:none}37.50%{transform:none}40.00%{transform:translateY(0px)}46.67%{transform:translateY(-2.5px)}53.33%{transform:translateY(0px)}60.00%{transform:translateY(-2.5px)}66.67%{transform:translateY(0px)}73.33%{transform:translateY(-2.5px)}80.00%{transform:translateY(0px)}86.67%{transform:translateY(-2.5px)}93.33%{transform:translateY(0px)}100.00%{transform:none}}
.sqv-usually .sq-head{animation:sqH_usually 4.8s ease-in-out infinite}
@keyframes sqH_usually{0.00%{transform:rotate(4deg) translate(-2px,1px)}5.63%{transform:rotate(-4deg) translate(-6px,-1px)}11.25%{transform:rotate(6deg) translate(0,2px)}15.00%{transform:rotate(4deg) translate(-2px,1px)}18.75%{transform:rotate(-4deg) translate(-6px,-1px)}24.38%{transform:rotate(6deg) translate(0,2px)}28.13%{transform:rotate(4deg) translate(-2px,1px)}37.50%{transform:rotate(4deg) translate(-2px,1px)}43.75%{transform:none}93.75%{transform:none}100.00%{transform:rotate(4deg) translate(-2px,1px)}}
.sqv-usually .sq-jaw{animation:sqJ_usually 4.8s ease-in-out infinite}
@keyframes sqJ_usually{0.00%{transform:rotate(0deg)}3.75%{transform:rotate(0deg)}8.25%{transform:rotate(26deg)}11.25%{transform:rotate(0deg)}13.50%{transform:rotate(9deg)}15.75%{transform:rotate(0deg)}17.25%{transform:rotate(0deg)}21.38%{transform:rotate(26deg)}24.38%{transform:rotate(0deg)}26.63%{transform:rotate(9deg)}28.88%{transform:rotate(0deg)}100.00%{transform:rotate(0deg)}}
.sqv-usually .sq-b1{animation:sqb1_usually 9.6s linear infinite}
@keyframes sqb1_usually{0.00%{transform:scale(0)}5.42%{transform:scale(0)}5.63%{transform:scale(1)}65.00%{transform:scale(1)}65.21%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-usually .sq-b2{animation:sqb2_usually 9.6s linear infinite}
@keyframes sqb2_usually{0.00%{transform:scale(0)}11.98%{transform:scale(0)}12.19%{transform:scale(1)}65.00%{transform:scale(1)}65.21%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-usually .sq-b3{animation:sqb3_usually 9.6s linear infinite}
@keyframes sqb3_usually{0.00%{transform:scale(0)}55.42%{transform:scale(0)}55.62%{transform:scale(1)}65.00%{transform:scale(1)}65.21%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-usually .sq-eat{animation:sqE_usually 9.6s ease-out infinite}
@keyframes sqE_usually{0.00%{transform:scale(1)}61.98%{transform:scale(1)}62.71%{transform:scale(0)}65.38%{transform:scale(0)}67.44%{transform:scale(1.3)}68.75%{transform:scale(1)}100.00%{transform:scale(1)}}
.sqv-usually .sq-cr{animation:sqC_usually 4.8s ease-in infinite}
@keyframes sqC_usually{0.00%{opacity:0;transform:none}10.83%{opacity:0;transform:none}11.25%{opacity:1;transform:none}21.67%{opacity:0;transform:translate(-3px,20px)}22.08%{opacity:0;transform:none}23.96%{opacity:0;transform:none}24.38%{opacity:1;transform:none}34.79%{opacity:0;transform:translate(-3px,20px)}35.21%{opacity:0;transform:none}100.00%{opacity:0;transform:none}}
.sqv-usually .sq-cr:nth-child(2){animation-duration:4.8s;transform-origin:center}
.sqv-never .sq-wheel{transform:rotate(180deg)}
.sqv-never .sq-nut{transform:rotate(-180deg)}
.sqv-never .sq-vis{opacity:0}
.sqv-never .sq-tailg{animation:sqTailN 2.8s ease-in-out infinite alternate}
@keyframes sqTailN{from{transform:rotate(3deg)}to{transform:rotate(-7deg)}}
.sqv-never .sq-body{transform-origin:150px 215px;animation:sqBreath 1.9s ease-in-out infinite alternate}
@keyframes sqBreath{to{transform:scale(1.015,1.03)}}
.sqv-never .sq-head{animation:sqLook 7s ease-in-out infinite}
@keyframes sqLook{0%,24%{transform:rotate(7deg) translate(0,3px)}32%,46%{transform:rotate(-14deg) translate(-3px,-2px)}54%,70%{transform:rotate(2deg) translate(0,1px)}76%,82%{transform:rotate(-4deg) translate(-1px,0)}90%,100%{transform:rotate(7deg) translate(0,3px)}}
.sqv-always .sq-vis{opacity:1}
.sqv-always .sq-legF{transform:rotate(-55deg)}
.sqv-always .sq-legF2{transform:rotate(-52deg)}
.sqv-always .sq-head{animation:sqH_always 2.0s ease-in-out infinite}
@keyframes sqH_always{0.00%{transform:rotate(4deg) translate(-2px,1px)}15.00%{transform:rotate(-4deg) translate(-6px,-1px)}30.00%{transform:rotate(6deg) translate(0,2px)}40.00%{transform:rotate(4deg) translate(-2px,1px)}50.00%{transform:rotate(-4deg) translate(-6px,-1px)}65.00%{transform:rotate(6deg) translate(0,2px)}75.00%{transform:rotate(4deg) translate(-2px,1px)}100.00%{transform:rotate(4deg) translate(-2px,1px)}100.00%{transform:rotate(4deg) translate(-2px,1px)}}
.sqv-always .sq-jaw{animation:sqJ_always 2.0s ease-in-out infinite}
@keyframes sqJ_always{0.00%{transform:rotate(0deg)}10.00%{transform:rotate(0deg)}22.00%{transform:rotate(26deg)}30.00%{transform:rotate(0deg)}36.00%{transform:rotate(9deg)}42.00%{transform:rotate(0deg)}46.00%{transform:rotate(0deg)}57.00%{transform:rotate(26deg)}65.00%{transform:rotate(0deg)}71.00%{transform:rotate(9deg)}77.00%{transform:rotate(0deg)}100.00%{transform:rotate(0deg)}}
.sqv-always .sq-b1{animation:sqb1_always 4.0s linear infinite}
@keyframes sqb1_always{0.00%{transform:scale(0)}14.50%{transform:scale(0)}15.00%{transform:scale(1)}90.00%{transform:scale(1)}90.50%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-always .sq-b2{animation:sqb2_always 4.0s linear infinite}
@keyframes sqb2_always{0.00%{transform:scale(0)}32.00%{transform:scale(0)}32.50%{transform:scale(1)}90.00%{transform:scale(1)}90.50%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-always .sq-b3{animation:sqb3_always 4.0s linear infinite}
@keyframes sqb3_always{0.00%{transform:scale(0)}64.50%{transform:scale(0)}65.00%{transform:scale(1)}90.00%{transform:scale(1)}90.50%{transform:scale(0)}100.00%{transform:scale(0)}}
.sqv-always .sq-eat{animation:sqE_always 4.0s ease-out infinite}
@keyframes sqE_always{0.00%{transform:scale(1)}82.00%{transform:scale(1)}83.75%{transform:scale(0)}91.00%{transform:scale(0)}96.50%{transform:scale(1.3)}100.00%{transform:scale(1)}100.00%{transform:scale(1)}}
.sqv-always .sq-cr{animation:sqC_always 2.0s ease-in infinite}
@keyframes sqC_always{0.00%{opacity:0;transform:none}29.00%{opacity:0;transform:none}30.00%{opacity:1;transform:none}55.00%{opacity:0;transform:translate(-3px,20px)}56.00%{opacity:0;transform:none}64.00%{opacity:0;transform:none}65.00%{opacity:1;transform:none}90.00%{opacity:0;transform:translate(-3px,20px)}91.00%{opacity:0;transform:none}100.00%{opacity:0;transform:none}}
.sqv-always .sq-cr:nth-child(2){animation-duration:2.0s;transform-origin:center}
@media (prefers-reduced-motion:reduce){.sq *{animation:none!important}}



/* v65 squirrel frequency show */
.sq-show{margin:18px 0 30px;padding:20px 18px;border:3px solid #E0A800;border-radius:18px;background:linear-gradient(180deg,#FFFBEA,#FFF1BF)}
.sq-title{text-align:center;font-size:1.35em;color:#7A5A00;margin:0 0 14px}
.sq-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.sq-card{margin:0;background:#fff;border-radius:14px;padding:10px 8px 12px;text-align:center;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.sq-card .sq{width:100%;max-width:200px}
.sq-word{display:block;font-size:1.3em;font-weight:800;color:#045597;margin-top:4px}
.sq-card--never .sq-word{color:#B4402F}.sq-card--always .sq-word{color:#1B7F3B}
.sq-sen{display:block;font-weight:600;margin:4px 0}
.sq-note{display:block;font-size:.88em;color:#6B5A2A}
.sq-moral{margin-top:16px;background:#fff;border-left:5px solid #E0A800;border-radius:10px;padding:12px 16px}
.sq-pos{margin-bottom:0}
@media (max-width:900px){.sq-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:420px){.sq-show{padding:14px 8px}.sq-grid{gap:8px}}

/* v66 uncle passage in compare */
.gr-uncle-h{ margin:18px 0 6px; color:#045597; font-size:1.05em }

/* v69 uncle story, ticks, pen and diary */
.un-story{margin:18px 0 26px}
.un-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.un-panel{margin:0;position:relative;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.un-panel svg{display:block;width:100%;height:auto}
.un-panel figcaption{padding:10px 14px 12px;line-height:1.45}
.un-n{position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:50%;background:#045597;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:.95em}
.un-opts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.un-opt{border-radius:16px;padding:14px 16px;text-align:center;border:3px solid}
.un-opt--no{background:#FDF2F0;border-color:#E6A39A}.un-opt--yes{background:#EEF9F1;border-color:#8FD0A5}
.un-sen{font-size:1.3em;font-weight:800;margin:0 0 8px;color:#0B2F4E}
.un-face{width:130px;height:130px;display:block;margin:0 auto 8px}
.un-note{margin:0;text-align:left;line-height:1.5}
@media (max-width:700px){.un-grid,.un-opts{grid-template-columns:1fr}}
.gr-h-ic{display:flex;align-items:center;gap:10px}
.gr-h-ic .gr-h-clock{display:inline-flex;width:34px;height:34px;color:#00897B;flex:none}
.gr-h-ic .gr-h-clock svg{width:100%;height:100%}
.gr-warn.gr-marks{list-style:none;padding-left:0}
.gr-marks li{padding:8px 0;border-bottom:1px dashed #F0C4BD;line-height:1.6}
.gr-marks li:last-child{border-bottom:0}
.mk{display:inline-flex;width:22px;height:22px;vertical-align:-5px;margin:0 6px 0 4px}
.mk svg{width:100%;height:100%}
.gr-marks .mk-ok-t{color:#1B7F3B;font-weight:800}
.sp-head{display:flex;align-items:center;gap:14px}
.sp-art{width:96px;height:auto;flex:none}
.sp-ok{display:inline-block;white-space:nowrap;margin:2px 10px 2px 0}
.sp-ok::after{content:"";display:inline-block;width:16px;height:16px;margin-left:5px;vertical-align:-3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%231B9E4B'/%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' stroke='%23fff' stroke-width='2.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain}
.gr-marks s{color:#B07A72;font-size:.92em}
.gr-marks s+.mk+span,.gr-marks b{color:#146C33;font-size:1.06em}

/* v70 plain ticks and crosses, small pen and diary */
.mk{width:20px;height:20px;vertical-align:-4px}
.sp-head .sp-art{width:auto;height:1.3em}
.sp-head{gap:8px}
.sp-ok::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5' stroke='%231B9E4B' stroke-width='3.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain}

/* v71 option scenes */
.un-scene{display:block;width:100%;max-width:420px;height:auto;margin:0 auto 10px;border-radius:12px}

/* v-rec: hallway with two inner doors (Live Class / Recorded Lessons) */
.dlg-actions{flex-direction:column;align-items:stretch}
.hallway{display:flex;gap:18px;justify-content:center;padding:14px 10px 6px;
  background:linear-gradient(#f4efe6 0 78%,#d9cbb3 78% 100%);border-radius:10px;margin-bottom:6px}
.hall-door{position:relative;width:128px;height:190px;border-radius:10px 10px 0 0;border:0;cursor:pointer;
  display:flex;align-items:flex-end;justify-content:center;padding:0 0 14px;text-decoration:none;color:#fff;
  font:inherit;box-shadow:inset 0 0 0 6px rgba(0,0,0,.12),0 6px 14px rgba(0,0,0,.18);
  transition:transform .35s ease,box-shadow .35s ease;transform-origin:left center}
.hall-door:hover,.hall-door:focus-visible{transform:perspective(500px) rotateY(-14deg);box-shadow:inset 0 0 0 6px rgba(0,0,0,.12),10px 8px 18px rgba(0,0,0,.25)}
.hall-door--live{background:linear-gradient(160deg,#3fae6a,#23794a)}
.hall-door--rec{background:linear-gradient(160deg,#d8473f,#9e2620)}
.hall-door[aria-disabled="true"]{filter:grayscale(.8);opacity:.6;pointer-events:none}
.hd-knob{position:absolute;right:14px;top:52%;width:11px;height:11px;border-radius:50%;background:#f5d77a;box-shadow:0 0 0 2px rgba(0,0,0,.15)}
.hd-sign{background:rgba(255,255,255,.95);color:#222;font-weight:700;font-size:.82rem;padding:6px 8px;border-radius:6px;text-align:center;line-height:1.2;max-width:110px}
.hd-light{position:absolute;top:14px;left:50%;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#b9ffcf;
  box-shadow:0 0 10px 4px rgba(150,255,190,.8);animation:hdGlow 1.8s ease-in-out infinite}
@keyframes hdGlow{50%{opacity:.45;box-shadow:0 0 4px 1px rgba(150,255,190,.5)}}
.hd-rec{position:absolute;top:14px;left:50%;transform:translateX(-50%);font-size:.72rem;font-weight:800;letter-spacing:.06em;
  background:#fff;color:#c62828;padding:3px 9px;border-radius:20px;display:flex;align-items:center;gap:5px}
@keyframes hdBlink{50%{color:#fff;background:#c62828;box-shadow:0 0 0 2px #fff}}
.rec-room{background:#fbf6f5;border:2px solid #e9c9c6;border-radius:10px;padding:12px;margin-bottom:6px}
.rec-shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.rec-card{border:0;border-left:5px solid #c62828;background:#fff;border-radius:8px;padding:10px;text-align:left;cursor:pointer;
  font:inherit;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.rec-card b{display:block;font-size:.95rem}.rec-card small{color:#777}
.rec-card.on,.rec-card:hover{background:#fdeceb}
.rec-player{position:relative;padding-top:56.25%;margin-bottom:12px;border-radius:8px;overflow:hidden;background:#000}
.rec-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.rec-empty{color:#777;margin:4px 0;text-align:center}
@media (prefers-reduced-motion:reduce){.hd-light,.hd-rec{animation:none}.hall-door{transition:none}}

.rec-lock{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;padding:6px}
.rec-lock-t{margin:0;font-weight:700}.rec-lock-err{margin:0;color:#c62828;font-size:.9rem}
.rec-lock input{width:100%;max-width:240px;padding:10px 12px;border:2px solid #e9c9c6;border-radius:8px;font:inherit;text-align:center}

.hd-dot{width:8px;height:8px;border-radius:50%;background:#e53935;animation:hdPulse 2.8s ease-in-out infinite}
@keyframes hdPulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.hd-dot{animation:none}}

/* v-rec2: inner doors built like the main doors, standing on a floor */
.hallway{display:block;padding:0;background:none;border-radius:10px;overflow:hidden;margin-bottom:8px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.hall-wall{display:flex;gap:30px;justify-content:center;align-items:flex-end;padding:22px 12px 0;
  background:linear-gradient(180deg,#E9EEF2,#D6DFE6)}
.hall-floor{height:30px;position:relative;
  background:repeating-linear-gradient(90deg,#9C7650 0 46px,#8B6845 46px 48px),linear-gradient(#A47E57,#7A5A3B);
  background-blend-mode:multiply;box-shadow:inset 0 6px 8px -4px rgba(0,0,0,.45)}
.hall-floor::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:#5E4630}
.hall-door{position:relative;width:118px;height:196px;padding:26px 12px 52px;border:0;border-radius:5px 5px 0 0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;cursor:pointer;
  text-decoration:none;font:inherit;color:#fff;transform-origin:left bottom;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 3px 0 0 rgba(255,255,255,.05),inset -3px 0 0 rgba(0,0,0,.28),
    -7px 0 0 rgba(255,255,255,.35),7px 0 0 rgba(0,0,0,.12),0 -7px 0 rgba(255,255,255,.35),10px 6px 18px rgba(0,0,0,.22);
  transition:transform .22s ease,filter .22s ease}
.hall-door:hover,.hall-door:focus-visible{transform:translateY(-3px) perspective(900px) rotateY(-6deg);filter:brightness(1.07)}
.hall-door--live{background:linear-gradient(90deg,rgba(255,255,255,.07) 0 2px,transparent 2px 100%),
  linear-gradient(177deg,#2E8B57 0%,#21704A 46%,#17583A 100%)}
.hall-door--rec{background:linear-gradient(90deg,rgba(255,255,255,.07) 0 2px,transparent 2px 100%),
  linear-gradient(177deg,#B83A32 0%,#962C26 46%,#76201B 100%)}
.hall-door .door-panel--top{top:16px;height:40%}
.hall-door .door-panel--bot{top:calc(40% + 26px);bottom:34px}
.hall-door .door-handle{top:56%}
.hall-door .hd-sign{position:relative;z-index:2;margin-top:44px;color:#14324A;font-size:.78rem;font-weight:700;
  padding:6px 8px;text-align:center;line-height:1.2;max-width:96px}
.hall-door .hd-light,.hall-door .hd-rec{z-index:2}
.hall-door .hd-light{top:14px}
.hall-door .hd-rec{top:12px;font-size:.66rem;padding:2px 8px}
.hall-door--live::after{content:"";position:absolute;left:4%;right:4%;bottom:-4px;height:8px;background:#7DF0A8;filter:blur(6px);opacity:.8}
@media (max-width:420px){.hall-wall{gap:18px}.hall-door{width:104px;height:178px}}

.btn.ask-full{pointer-events:none;background:#EEF2F5;color:#5B6B78;border:1px dashed #B8C4CE;box-shadow:none;cursor:default}

/* v-rec3: flat doors, white wall, wooden floor, slim handles, calm REC */
.hall-wall{background:#fff;gap:34px;padding-top:24px}
.hall-door{width:120px;height:196px;padding:0 0 18px;justify-content:flex-end;gap:0;border-radius:6px 6px 0 0;
  box-shadow:0 0 0 5px #fff,0 0 0 6px #D9E1E7,6px 6px 14px rgba(0,0,0,.12);transform-origin:left center}
.hall-door:hover,.hall-door:focus-visible{transform:perspective(500px) rotateY(-12deg);filter:none}
.hall-door--live{background:linear-gradient(160deg,#3fae6a,#23794a)}
.hall-door--rec{background:linear-gradient(160deg,#d8473f,#9e2620)}
.hall-door .hd-sign{margin:0;background:rgba(255,255,255,.95);color:#222;font-size:.8rem;border-radius:6px;box-shadow:none}
.hd-handle{position:absolute;right:12px;top:48%;width:3px;height:30px;border-radius:2px;
  background:linear-gradient(90deg,#f3f3f3,#bfc5c9);box-shadow:0 1px 2px rgba(0,0,0,.25)}
.hall-door .hd-rec{animation:none;background:#fff;color:#c62828}
.hd-dot{animation:none !important;background:#e53935}
.hall-door--live::after{display:none}
.btn.ask-full{pointer-events:none;cursor:default;background:linear-gradient(135deg,#FFF4E0,#FFE3EC);
  color:#B4233F;border:0;font-weight:700;letter-spacing:.01em;box-shadow:0 2px 8px rgba(180,35,63,.15)}
.btn.ask-full::before{content:"★ "}

/* v-rec4: navy doors like the corridor, coloured sign plates at the top, real wall + corridor floor */
.hallway{border-radius:10px;overflow:hidden;box-shadow:0 0 0 1px rgba(10,58,98,.12)}
.hall-wall{position:relative;gap:34px;padding:26px 12px 0;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.0) 0 58px,rgba(120,150,175,.10) 58px 59px),
    linear-gradient(180deg,#F3F7FA 0%,#E6EEF4 70%,#DCE6EE 100%)}
.hall-wall::after{content:"";position:absolute;left:0;right:0;bottom:0;height:10px;background:linear-gradient(#cdd8e1,#b9c7d2)}
.hall-door{z-index:1;justify-content:flex-start;padding:18px 0 0;
  box-shadow:0 0 0 5px #F7FAFC,0 0 0 6px #C9D5DF,6px 6px 14px rgba(0,0,0,.18)}
.hall-door--live,.hall-door--rec{background:
  linear-gradient(90deg,rgba(255,255,255,.07) 0 2px,transparent 2px 100%),
  linear-gradient(177deg,#0E4E7E 0%,#0A3A62 46%,#072E51 100%)}
.hall-door .hd-sign{order:-1;margin:0 0 0;color:#fff;font-weight:700;font-size:.8rem;padding:7px 8px;border-radius:5px;
  box-shadow:0 2px 6px rgba(0,0,0,.35)}
.hall-door--live .hd-sign{background:#2E9E5B}
.hall-door--rec .hd-sign{background:#C9372F}
.hall-door .hd-light{top:auto;bottom:22px}
.hall-door .hd-rec{top:auto;bottom:18px}
.hall-floor{height:34px;position:relative;overflow:hidden;
  background:
    linear-gradient(180deg,rgba(0,0,0,.50) 0%,rgba(0,0,0,.12) 45%,rgba(0,0,0,.26) 100%),
    repeating-linear-gradient(180deg,rgba(0,0,0,.42) 0 1px,transparent 1px 13px,rgba(0,0,0,.42) 13px 14px,transparent 14px 31px),
    url("floor-wood.svg");
  background-size:auto,auto,900px 160px;
  border-top:2px solid rgba(255,255,255,.26);box-shadow:inset 0 3px 9px rgba(0,0,0,.50);background-blend-mode:normal}
.hall-floor::before{display:none}
.btn.ask-full::before{content:"★★★★★ ";letter-spacing:1px;color:#E0A100}

/* v-rec5: tidy recordings room */
.door-dialog.rec-open #dlgAsk{display:none !important}
.hall-door{transition:height .3s ease,transform .22s ease}
.rec-room,.rec-room *{box-sizing:border-box}
.rec-room{overflow:hidden;width:100%;padding:10px}
.rec-player{width:100%;padding-top:0;aspect-ratio:16/9;position:relative;border-radius:6px;margin-bottom:10px}
.rec-player iframe{position:absolute;top:0;left:0;width:100% !important;height:100% !important;max-width:100%}
.rec-lock-row{display:flex;gap:8px;width:100%;max-width:280px}
.rec-lock-row input{flex:1;min-width:0;max-width:none;height:38px;padding:0 10px;margin:0}
.rec-lock-btn{height:38px;padding:0 16px;border:0;border-radius:8px;background:#0A3A62;color:#fff;font:inherit;font-weight:700;font-size:.9rem;cursor:pointer}
.rec-lock-btn:hover{background:#0E4E7E}

/* v-rec6: doors keep full size while a video plays; the window scrolls with a slim side bar */
.door-dialog{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#9FB3C4 transparent}
.door-dialog::-webkit-scrollbar{width:6px}
.door-dialog::-webkit-scrollbar-thumb{background:#9FB3C4;border-radius:3px}
.door-dialog::-webkit-scrollbar-track{background:transparent}
.hall-door{flex-shrink:0}

/* v-rec7: the window's top bar (with the close button) stays visible while scrolling */
.door-dialog .dlg-head{position:sticky;top:0;z-index:5}

/* v-rec8: enlarge the video ON the page (no new tab) */
.rec-cover{position:absolute;top:0;right:0;width:64px;height:56px;z-index:3;background:transparent}
.rec-big{position:absolute;top:8px;right:8px;z-index:4;width:40px;height:40px;border:0;border-radius:8px;
  background:rgba(10,58,98,.92);color:#fff;font-size:1.3rem;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.rec-big:hover{background:#0E4E7E}
.rec-player.rec-big-on{position:fixed;z-index:1000;margin:0;padding:0;aspect-ratio:auto;
  top:6vh;bottom:6vh;left:6vw;right:6vw;width:auto !important;height:auto;border-radius:12px;
  box-shadow:0 0 0 4px #fff,0 0 0 9999px rgba(6,40,66,.55),0 20px 60px rgba(0,0,0,.5)}
.door-dialog.rec-theatre{overflow:visible}
@media (max-width:600px){.rec-player.rec-big-on{left:2vw;right:2vw;top:auto;bottom:auto;
  top:50%;transform:translateY(-50%);aspect-ratio:16/9}}

/* v-rec9: phone / iPad / laptop tuning */
/* enlarged video: always a true 16:9 picture, centred, as big as the screen allows */
.rec-player.rec-big-on{top:50% !important;left:50% !important;right:auto !important;bottom:auto !important;
  transform:translate(-50%,-50%) !important;aspect-ratio:16/9 !important;height:auto !important;
  width:min(92vw, calc(84vh * 16 / 9)) !important;width:min(92vw, calc(84dvh * 16 / 9)) !important}
/* door swing only where there is a real mouse; on phones/iPads a tap must not leave a door stuck half-open */
@media (hover:none){
  .hall-door:hover,.hall-door:focus-visible{transform:none;filter:none}
  .hall-door:active{transform:scale(.97)}
}
/* bigger, easier-to-tap enlarge button on touch screens */
@media (pointer:coarse){ .rec-big{width:46px;height:46px;font-size:1.45rem} .rec-cover{width:72px;height:64px} }
/* small phones: doors and gaps shrink so both always fit side by side */
@media (max-width:380px){
  .hall-wall{gap:16px;padding-left:6px;padding-right:6px}
  .hall-door{width:104px;height:176px}
  .hall-door .hd-sign{font-size:.72rem;padding:6px}
  .door-dialog{width:calc(100% - 16px)}
  .dlg-body{padding:16px 14px 18px}
}
/* iPad and laptop: give the video more room once the recordings room is open */
.rec-shelf{grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),1fr))}

/* v-rec10: no knocking hand; the normal arrow pointer on the doors */
.corridor .door, .corridor .door *{cursor:default !important}
.door-knock{display:none !important}

/* v-rec11: no level on the doors; group number on a small bright label */
.corridor .door-level{display:none !important}
.corridor .door-plaque b.grp-no{display:inline-block;background:#FFC94D;color:#0A3A62;
  font-size:.86rem !important;font-weight:800;letter-spacing:.02em;line-height:1.2 !important;
  padding:3px 8px;border-radius:5px;box-shadow:0 1px 4px rgba(0,0,0,.30);white-space:nowrap;hyphens:none}
html[lang="hy"] .corridor .door-plaque b.grp-no{font-size:.8rem !important;overflow-wrap:normal}

/* v-rec12: no level inside the group window either */
#dlgLevelT,#dlgLevel{display:none !important}

/* v-rec13: Lilit chose mint for the group number labels */
.corridor .door-plaque b.grp-no{background:#6EDCAA !important;color:#0A3A62 !important}

/* v-rec14: enlarge button moved OUT of the video into its own bar, so it never covers Drive's buttons;
   taller player on phones so the timeline, gear and sound buttons fit */
.rec-player .rec-big{display:none}
.rec-bar{display:flex;justify-content:center;margin:0 0 10px}
.rec-bar .rec-big{position:static;width:auto;height:auto;padding:9px 18px;font-size:.95rem;font-weight:700;border-radius:8px}
.rec-cover{width:56px;height:52px}
.rec-bar.rec-bar-on{position:fixed;z-index:1001;left:50%;transform:translateX(-50%);bottom:max(14px,env(safe-area-inset-bottom));margin:0}
@media (max-width:600px){
  .rec-player{aspect-ratio:4/3 !important}
  .rec-player.rec-big-on{width:96vw !important;aspect-ratio:4/3 !important}
}

/* v-rec15: trim Google's top strip (new-tab arrow, title line), own play button, separate Close */
.rec-player{overflow:hidden}
.rec-player iframe{top:-60px !important;height:calc(100% + 60px) !important}
.rec-cover{display:none}
.rec-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;width:76px;height:76px;
  border:0;border-radius:50%;background:rgba(10,58,98,.9);color:#fff;font-size:2rem;line-height:1;padding-left:6px;
  cursor:pointer;box-shadow:0 0 0 4px rgba(255,255,255,.85),0 6px 18px rgba(0,0,0,.45)}
.rec-play.gone{display:none}
.rec-bar{gap:10px}
.rec-bar .rec-x{border:0;padding:9px 18px;font:inherit;font-size:.95rem;font-weight:700;border-radius:8px;cursor:pointer;
  background:#fff;color:#C9372F;box-shadow:0 0 0 2px #C9372F inset}
.rec-bar.rec-bar-on .rec-x{display:none}

/* v-rec16: own play button removed - Drive already shows one */
.rec-play{display:none !important}

/* v-rec17: player no longer shifted (that pushed Google's buttons off-centre and cut the pause button);
   a small black patch hides only Drive's new-tab arrow in the top-right corner */
.rec-player iframe{top:0 !important;height:100% !important}
.rec-cover{display:block !important;position:absolute;top:0;right:0;width:60px;height:56px;z-index:3;background:#000;pointer-events:auto}
.rec-player,.rec-player.rec-big-on{aspect-ratio:16/9 !important}

/* v-rec18: small enlarge + close icons ON the video (top-right, over the hidden arrow); loading spinner */
.rec-bar{display:none !important}
.rec-tools{position:absolute;top:8px;right:8px;z-index:6;display:flex;gap:6px}
.rec-tools button,.rec-player .rec-big{display:flex !important;position:static !important;align-items:center;justify-content:center;
  width:32px !important;height:32px !important;padding:0 !important;border:0;border-radius:7px;cursor:pointer;
  background:rgba(10,58,98,.88);color:#fff;font-size:1.05rem !important;font-weight:700;line-height:1;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.rec-tools .rec-x{background:rgba(201,55,47,.92);color:#fff;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.rec-cover{width:84px !important;height:50px !important}
@media (pointer:coarse){.rec-tools button{width:36px !important;height:36px !important}}
.rec-loading{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 6px;color:#555}
.rec-loading p{margin:0;font-weight:600}
.rec-spin{width:34px;height:34px;border-radius:50%;border:4px solid #e9c9c6;border-top-color:#C9372F;animation:recSpin .8s linear infinite}
@keyframes recSpin{to{transform:rotate(360deg)}}

/* v-rec19: no trimming or covering at all - the video shows exactly as Google sends it */
.rec-cover{display:none !important}
.rec-player iframe{top:0 !important;height:100% !important}

/* v-rec20: icons styled like Google's own player buttons, moved left of Drive's pop-out button */
.rec-tools{top:8px !important;right:60px !important;gap:6px}
.rec-tools button,.rec-tools .rec-x,.rec-player .rec-big{background:rgba(32,33,36,.55) !important;color:#fff !important;
  box-shadow:none !important;border-radius:6px !important;width:36px !important;height:36px !important;
  font-size:1.05rem !important;font-weight:400 !important}
.rec-tools button:hover{background:rgba(32,33,36,.8) !important}

/* ---------- homework notice board (inside the door) ---------- */
.nb{position:relative;margin:14px 0 18px;padding:18px 18px 16px;border-radius:12px;
  background:#FFFDF6;border:1px solid #EADFC4;box-shadow:0 2px 0 #EADFC4,0 10px 24px rgba(16,34,44,.08);
  transform:rotate(-.4deg)}
.nb.hidden{display:none}
.nb-pin{position:absolute;top:-8px;left:50%;width:16px;height:16px;margin-left:-8px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#7FF0D8,var(--mint) 55%,#00897F);box-shadow:0 2px 3px rgba(0,0,0,.25)}
.nb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.nb-head h4{margin:0;font-size:1rem;color:var(--navy);letter-spacing:.02em}
.nb-edit{border:1px solid var(--line);background:#fff;color:var(--grey);border-radius:999px;padding:4px 10px;font-size:.78rem;cursor:pointer}
.nb-edit:hover{color:var(--navy);border-color:var(--navy)}
.nb-edit.hidden,.nb-view.hidden,.nb-form.hidden,.nb-signin.hidden{display:none}
.nb-date{margin:0 0 8px;font-size:.8rem;color:var(--grey);text-transform:capitalize}
.nb-news{margin:0 0 10px;padding:8px 10px;border-radius:8px;background:#FFF3D6;color:#7A5200;font-weight:600;font-size:.92rem}
.nb-row{margin:0 0 10px}
.nb-row b{display:block;font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;color:var(--grey);margin-bottom:2px}
.nb-row p{margin:0;white-space:pre-wrap;color:var(--ink);line-height:1.45}
.nb-row--homework{padding:10px 12px;border-left:4px solid var(--mint);background:#EFFBF8;border-radius:6px}
.nb-row--homework b{color:#00897F}
.nb-row a{color:var(--navy);word-break:break-all}
.nb-empty{margin:0;color:var(--grey);font-size:.9rem}
.nb-signin p{margin:0 0 10px;font-size:.9rem;color:var(--ink)}
.nb-form{display:grid;gap:10px}
.nb-form label{display:grid;gap:4px;font-size:.8rem;color:var(--grey)}
.nb-form input,.nb-form textarea{font:inherit;font-size:.95rem;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff;width:100%;box-sizing:border-box}
.nb-form textarea{resize:vertical}
.nb-form input:focus,.nb-form textarea:focus{outline:2px solid var(--mint);border-color:transparent}
.nb-msg{margin:0;font-size:.85rem;color:#B3261E;min-height:1em}
.nb-btns{display:flex;justify-content:flex-end;gap:8px}
.nb-save{background:var(--navy);color:#fff;border:0;border-radius:8px;padding:9px 18px;font-weight:600;cursor:pointer}
.nb-save:disabled{opacity:.6}
.nb-cancel{background:transparent;border:1px solid var(--line);color:var(--grey);border-radius:8px;padding:9px 14px;cursor:pointer}
@media (prefers-reduced-motion:reduce){.nb{transform:none}}
.nb-files-in{display:grid;gap:6px;font-size:.8rem;color:var(--grey)}
.nb-attach{display:inline-flex;align-items:center;justify-self:start;gap:6px;padding:8px 14px;border:1px dashed var(--mint);border-radius:8px;background:#EFFBF8;color:#00897F;font-weight:600;font-size:.88rem;cursor:pointer}
.nb-attach input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.nb-attach:focus-within{outline:2px solid var(--mint)}
.nb-chosen{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.nb-chosen li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:.88rem}
.nb-chosen li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nb-chosen button{border:0;background:none;color:var(--grey);cursor:pointer;font-size:.9rem}
.nb-row--files ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.nb-row--files a{display:block;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);text-decoration:none;font-weight:600;word-break:break-word}
.nb-row--files a:hover{border-color:var(--navy)}

/* ===== progress tests: marked answers + time-up choice (v265) ===== */
.ut-rv-hint{background:var(--wash,#eef5f9);border-radius:10px;padding:12px 14px;margin:14px 0 0;font-size:.95rem;line-height:1.5}
.egc-rows.egc-rows--rv{display:block;padding:6px 22px 2px}
.egc-row--rv{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid #e3ebf0}
.egc-row--rv:last-child{border-bottom:0}
.egc .egc-box.egc-ok,.egc .egc-box.egc-x{display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:.8rem;line-height:1;margin-top:2px}
.egc .egc-box.egc-ok{background:#0FBF8F;border-color:#0FBF8F}
.egc .egc-box.egc-x{background:#B3261E;border-color:#B3261E}
.egc .egc-box.egc-x--soft{background:#8a99a2;border-color:#8a99a2}
.egc-row--rv .egc-n{padding-top:1px}
.egc-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.egc-q{color:#12303f;font-size:.95rem;line-height:1.5}
.egc-row--rv .egc-a{color:#5b6b75;font-size:.9rem;font-style:italic}
.egc-fill{font-style:normal;padding:0 5px;border-radius:5px;background:#eef3f6}
.is-ok .egc-fill{background:#e3f7ee;color:#08765a}
.is-x .egc-fill{background:#fdeceb;color:#B3261E}
.ut-locked{opacity:.5;pointer-events:none;user-select:none}
.ut-timeup{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));
  width:min(540px,calc(100% - 24px));background:#fff;border:2px solid #B3261E;border-radius:16px;
  box-shadow:0 14px 38px rgba(0,0,0,.2);padding:16px 18px;z-index:80}
.ut-timeup-t{margin:0 0 4px;font-weight:700;color:#B3261E;font-size:1.1rem}
.ut-timeup-p{margin:0 0 12px;font-size:.95rem;line-height:1.5;color:#12303f}
.ut-timeup-b{display:flex;gap:10px;flex-wrap:wrap}
.ut-past{margin-top:18px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.ut-past.hidden{display:none}
.ut-past-card{width:100%}

/* v-training: the menu has one more link (Practice room). Below 980px the
   row no longer fits (Armenian words are long), so tablets get the same
   folding menu as phones: the three-line button opens the list.          */
@media (max-width:980px){
  .head-in{ position:relative; gap:12px }
  .nav{ display:none; position:absolute; top:100%; left:0; right:0; background:#fff; z-index:60;
    flex-direction:column; align-items:flex-start; gap:0 !important; padding:8px 24px 16px;
    border-bottom:1px solid var(--line); box-shadow:0 12px 24px -12px rgba(4,40,70,.25) }
  .nav.is-open{ display:flex }
  .nav a{ padding:11px 0; width:100%; font-size:.95rem !important }
  .menu-btn{ display:block; background:none; border:1px solid var(--line); border-radius:8px;
    padding:7px 11px; font-size:1.1rem; cursor:pointer; line-height:1 }
  .langs{ margin-left:auto }
}

/* progress checks beside each student in the register */
.pc-tally{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;
  font-size:.72rem;font-weight:600;white-space:nowrap;cursor:help;
  background:rgba(4,85,151,.10);color:#0b2f4e}
.pc-tally--all{background:rgba(0,167,156,.16);color:#00756d}


/* ---------- notice board timeline: one button per class day ---------- */
.nb-days{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 10px;margin:0 0 12px;border-bottom:1px dashed #EADFC4;scrollbar-width:thin;scroll-behavior:smooth}
.nb-days.hidden{display:none}
.nb-day{flex:0 0 auto;border:1px solid #EADFC4;background:#fff;color:#5B4A2A;border-radius:999px;padding:5px 12px;font:inherit;font-size:.82rem;line-height:1.2;cursor:pointer;white-space:nowrap}
.nb-day:hover{background:#FFF6DD}
.nb-day.on{background:#1F3A4D;border-color:#1F3A4D;color:#fff;box-shadow:0 2px 6px rgba(16,34,44,.18)}

/* exam room: Cambridge and Oxford shelves */
.xr-series{margin:22px 0 4px;font-size:1.05rem;font-weight:600;color:var(--ink,#1F3A4D);letter-spacing:.2px}
.xr-body > .xr-series:first-child{margin-top:4px}
.xr-note{margin:22px 0 0;font-size:.8rem;line-height:1.5;color:var(--grey,#6b7280)}

/* ---------- legal pages, footer links, storage notice, consent tick ---------- */
.legal-doc .legal h1{margin:6px 0 4px}
.legal-date{margin:0 0 18px;color:var(--grey,#6b7280);font-size:.88rem}
.legal-intro{font-size:1.02rem}
.legal-sec{margin:20px 0 0}
.legal-sec h2{font-size:1.08rem;margin:0 0 6px}
.legal-sec p,.legal-sec li{line-height:1.6}
.legal-sec ul{padding-left:20px;margin:6px 0 0}
.legal-sec li{margin:0 0 6px}
.legal-links{margin:8px 0 0;font-size:.85rem}
.legal-links a{color:inherit;opacity:.8}
.eg-notice{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:9999;max-width:560px;margin:0 auto;
  background:#fff;color:#1d2b36;border:1px solid #E3E8EE;border-radius:14px;box-shadow:0 10px 30px rgba(16,34,44,.18);padding:14px 16px;
  display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:.88rem;line-height:1.45}
.eg-notice p{margin:0;flex:1 1 280px}
.eg-notice-act{display:flex;gap:12px;align-items:center;margin-left:auto}
.eg-notice-act a{font-size:.85rem}
.eg-notice .btn{padding:8px 18px}
.consent{display:flex;gap:10px;align-items:flex-start;margin:14px 0 12px;font-size:.9rem;line-height:1.45;cursor:pointer;border-radius:10px;padding:6px 8px;transition:background .3s}
.consent input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}
.consent--flash{background:#FFF1D6}
.consent-need{margin:-4px 0 12px;color:#B3261E;font-size:.86rem}
/* legal pages: same paper look as the student agreement */
.legal-doc{max-width:820px;margin:0 auto;background:#fff;color:#14202A;border:1px solid #D3DCE3;border-radius:2px;
  box-shadow:0 1px 2px rgba(11,47,78,.06),0 10px 30px rgba(11,47,78,.07);padding:56px 64px 52px}
.legal-doc .doc-head{display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:2px solid #0B2F4E}
.legal-doc .doc-head img{width:46px;height:auto}
.legal-doc .doc-org{margin:0;font-weight:600;font-size:1.02rem;color:#0B2F4E;line-height:1.3}
.legal-doc .doc-org small{display:block;font-weight:400;font-size:.84rem;color:#5E6E77}
.legal-doc .legal h1{font-size:2rem;line-height:1.2;color:#0B2F4E;text-align:center;margin:34px 0 6px}
.legal-doc .legal-date{text-align:center}
.legal-doc .legal-sec h2{color:#0B2F4E}
.legal-doc .legal-sec p,.legal-doc .legal-sec li,.legal-doc .legal-intro{font-size:.98rem;line-height:1.75;max-width:68ch}
@media (max-width:640px){.legal-doc{padding:30px 22px 32px}.legal-doc .legal h1{font-size:1.5rem}}
.consent{background:#fff;color:#1d2b36;border:1px solid #E3E8EE;padding:10px 12px}
.consent a{color:#0B5C8E}
.consent-need{display:inline-block;background:#fff;border-radius:8px;padding:4px 10px;margin:0 0 12px}
.consent-need.hidden{display:none}

/* =====================================================================
   2026 DESIGN LAYER — calm, academic, elegant.
   One palette, two typefaces (Cormorant Garamond for headings,
   Noto Sans for text, both with matching Armenian), soft motion.
   Everything below overrides the older styles above.
   ===================================================================== */
:root{
  --navy:#1E2B4D; --navy-deep:#131C35; --blue:#2F5DA8; --mint:#2AA89E;
  --deep-1:#1E2B4D; --deep-2:#2B3B63;
  --wash:#F4F6FA; --ink:#1B2236; --grey:#5A6378; --line:#E2E6EE; --paper:#FFFFFF;
  --serif:'Cormorant Garamond','Noto Serif Armenian',Georgia,serif;
  --sans:'Noto Sans','Noto Sans Armenian',-apple-system,'Segoe UI',Roboto,sans-serif;
  --ease:cubic-bezier(.45,.05,.2,1);
}
body{font-family:var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased}
h1,h2{font-family:var(--serif);font-weight:500;letter-spacing:-.005em;line-height:1.08}
html[lang="hy"] h1,html[lang="hy"] h2{line-height:1.25;letter-spacing:0}
h3,.door-level,.stat-num{font-family:var(--sans);letter-spacing:0}
.lede{color:var(--grey)}

/* glass menu */
.site-head{background:rgba(255,255,255,.72);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);border-bottom:1px solid var(--line)}
.brand-name{font-family:var(--serif);font-weight:600;font-size:1.3rem;letter-spacing:.005em}
.brand-sub{font-family:var(--sans);letter-spacing:.14em}
.nav a{color:var(--grey);transition:color .3s}
.nav a:hover{color:var(--ink)}
.nav a[aria-current]{color:var(--ink);border-bottom-color:var(--mint)}

/* buttons: one calm system */
.btn{border-radius:999px;font-family:var(--sans);font-weight:500;letter-spacing:0;transition:transform .35s var(--ease),box-shadow .35s,background .35s,border-color .35s}
.btn--primary{background:var(--navy);color:#fff;border-color:var(--navy);box-shadow:0 12px 26px -14px rgba(19,28,53,.55)}
.btn--primary:hover{background:var(--navy-deep)}
.btn--mint{background:var(--mint);color:#fff;border-color:var(--mint)}
.btn--ghost{background:rgba(255,255,255,.7);color:var(--ink);border:1px solid var(--line)}
.btn--ghost:hover{border-color:var(--mint)}
.btn--lift:hover{transform:translateY(-2px)}

/* footer */
.site-foot{background:var(--navy-deep)}

/* ---------- HOME ---------- */
.h{background:#F7F8FB}
.h-hero{position:relative;overflow:hidden;padding:clamp(48px,8vw,104px) 0 clamp(40px,6vw,80px);
  background:linear-gradient(100deg,#FBFAF7 0%,#F5F6F9 55%,#F1F3F7 100%)}
.h-hero-in{display:grid;grid-template-columns:1.35fr .65fr;gap:clamp(28px,5vw,72px);align-items:end}
.h-eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 26px;color:var(--grey);font-size:.92rem}
.h-eyebrow img{width:28px;height:auto}
.h-eyebrow span:nth-child(2){font-family:var(--serif);font-weight:600;font-size:1.2rem;color:var(--ink)}
.h-dot{width:4px;height:4px;border-radius:50%;background:var(--mint)}
.h-title{margin:0;font-size:clamp(2.6rem,5.6vw,4.9rem);line-height:1.03;max-width:18ch}
.h-title2{display:block;margin-top:.3em;font-style:italic;color:var(--grey);font-size:.68em;line-height:1.12;max-width:24ch}
html[lang="hy"] .h-title{font-size:clamp(2rem,4.2vw,3.5rem);line-height:1.2}
html[lang="hy"] .h-title2{font-style:normal}
.h-acts{display:flex;flex-wrap:wrap;gap:12px;margin:34px 0 0}
.h-acts--c{justify-content:center}
.h-note{margin:18px 0 0;max-width:56ch;color:var(--grey);font-size:.92rem}
.h-rise{opacity:0;transform:translateY(14px);animation:hUp 1.1s var(--ease) forwards}
.h-acts.h-rise{animation-delay:.25s}.h-note.h-rise{animation-delay:.4s}
@keyframes hUp{to{opacity:1;transform:none}}

/* the door on the home page — same family as the corridor doors */
.h-door{display:flex;flex-direction:column;align-items:center;gap:14px;text-decoration:none;color:var(--ink)}
.h-door-wall{position:relative;display:block;width:min(100%,260px);padding:0 0 30px;
  background:url(floor-light.jpg) repeat-x left bottom/auto 30px}
.h-door-frame{position:relative;display:block;margin:0 auto;width:68%;aspect-ratio:.5;background:linear-gradient(180deg,#1a2646,var(--navy-deep));
  padding:7% 7% 0;border-radius:3px 3px 0 0;perspective:1200px;box-shadow:0 22px 34px -20px rgba(20,26,48,.5)}
.h-door-in{position:absolute;inset:7% 7% 0;background:radial-gradient(120% 80% at 35% 60%,#FFFBF2,#EAF3F4 45%,#C9DCE4)}
.h-door-leaf{position:absolute;inset:7% 7% 0;transform-origin:left center;transition:transform 1.1s var(--ease);
  background:linear-gradient(100deg,#283a66,#21315a 45%,#1b2a4d);box-shadow:inset -8px 0 14px -10px rgba(0,0,0,.35)}
.h-door-leaf::before,.h-door-leaf::after{content:"";position:absolute;left:14%;right:14%;border-radius:2px;box-shadow:inset 1px 1px 2px rgba(0,0,0,.28),inset -1px -1px 1px rgba(255,255,255,.07)}
.h-door-leaf::before{top:34%;height:22%}.h-door-leaf::after{top:62%;bottom:7%}
.h-door-plate{position:absolute;top:10%;left:10%;right:10%;padding:.45em .3em;border-radius:6px;text-align:center;font-family:var(--serif);font-weight:600;font-size:.95rem;line-height:1.1;color:#E6F7F5;
  background:rgba(255,255,255,.12);border:1px solid rgba(165,224,217,.42)}
.h-door-handle{position:absolute;right:9%;top:55%;width:24%;height:4px;border-radius:9px;background:linear-gradient(180deg,#7fd8cf,#2aa89e)}
.h-door:hover .h-door-leaf,.h-door:focus-visible .h-door-leaf{transform:rotateY(55deg)}
.h-door-label{font-size:.92rem;color:var(--grey);border-bottom:1px solid transparent;transition:color .3s,border-color .3s}
.h-door:hover .h-door-label{color:var(--ink);border-bottom-color:var(--mint)}

.h-sec{padding:clamp(56px,9vw,112px) 0}
.h-sec h2{font-size:clamp(2.1rem,4.2vw,3.2rem);margin:0 0 14px}
.h-sec .lede{max-width:60ch;margin:0}
.h-sec--paper{background:#fff;border-block:1px solid var(--line)}
.h-sec--navy{background:var(--navy-deep);color:#E9EEF7}
.h-sec--navy h2{color:#fff}

.h-steps{position:relative;list-style:none;margin:52px 0 0;padding:0;display:grid;gap:clamp(48px,7vw,88px)}
.h-path{position:absolute;left:27px;top:14px;bottom:14px;width:2px;background:var(--line)}
.h-path i{position:absolute;left:0;right:0;top:0;height:0;background:var(--mint)}
.h-step{position:relative;display:grid;grid-template-columns:56px 1fr 1.25fr;gap:clamp(18px,3vw,42px);align-items:center}
.h-num{position:relative;z-index:1;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font-family:var(--serif);font-size:1.6rem;font-weight:600;
  background:#fff;border:1px solid var(--line);color:var(--navy);transition:background .6s,color .6s,border-color .6s}
.h-step.in .h-num{background:var(--navy);border-color:var(--navy);color:#fff}
.h-step h3,.h-trio h3,.h-note-card h3{font-family:var(--serif);font-weight:600;font-size:clamp(1.5rem,2.4vw,1.95rem);line-height:1.15;margin:0 0 8px}
html[lang="hy"] .h-step h3,html[lang="hy"] .h-trio h3,html[lang="hy"] .h-note-card h3{font-size:1.25rem}
.h-step p{margin:0;color:var(--grey);max-width:42ch}
.h-pic{margin:0;border-radius:18px;overflow:hidden;background:#EEF1F8;box-shadow:0 30px 60px -36px rgba(19,28,53,.45)}
.h-pic img{display:block;width:100%;height:auto}
.h-after{margin:52px 0 0}
.h-rev{opacity:0;transform:translateY(22px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
.h-rev.in,.in .h-rev{opacity:1;transform:none}
.in .h-d2{transition-delay:.15s}

.h-trio{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,3vw,40px);margin-top:40px}
.h-trio > div{border-top:2px solid var(--mint);padding-top:18px}
.h-trio p{margin:0;color:var(--grey);font-size:.98rem}

.h-split{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(32px,5vw,72px);align-items:center}
.h-split--rev{grid-template-columns:1fr 1.1fr}
.h-split--rev > .h-pic{order:2}
.h-split p{color:var(--grey)}
.h-note-card{margin-top:26px;padding:20px 22px;border-radius:14px;background:rgba(42,168,158,.09);border-left:3px solid var(--mint)}
.h-note-card h3{font-size:1.45rem}
.h-note-card p{margin:0;color:var(--ink);font-size:.97rem}

.h-rows{margin-top:36px;border-top:1px solid rgba(255,255,255,.12)}
.h-rows > div{display:grid;grid-template-columns:1fr 1.4fr;gap:32px;padding:26px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.h-rows h3{font-family:var(--serif);font-weight:500;font-size:clamp(1.5rem,2.4vw,1.95rem);margin:0;line-height:1.15;color:#fff}
.h-rows p{margin:0;color:#B9C2D4}

.h-founder .h-quote{font-family:var(--serif);font-size:clamp(1.45rem,2.4vw,1.85rem);line-height:1.25;color:var(--ink)}
html[lang="hy"] .h-founder .h-quote{font-size:1.2rem}
.h-sign{display:flex;flex-direction:column;margin-top:22px}
.h-sign b{font-family:var(--serif);font-style:italic;font-weight:500;font-size:1.5rem;color:var(--ink)}
.h-sign span{font-size:.88rem;color:var(--grey)}
.h-end{text-align:center}
.h-end .lede{margin-inline:auto}

@media (max-width:860px){
  .h-hero-in{grid-template-columns:1fr}
  .h-door{order:2}
  .h-step{grid-template-columns:44px 1fr}
  .h-step .h-pic{grid-column:2}
  .h-num{width:44px;height:44px;font-size:1.35rem}
  .h-path{left:21px}
  .h-trio{grid-template-columns:1fr}
  .h-split,.h-split--rev{grid-template-columns:1fr}
  .h-split--rev > .h-pic{order:0}
  .h-rows > div{grid-template-columns:1fr;gap:6px}
}

/* ---------- THE CORRIDOR: light walls in soft daylight, navy doors ---------- */
.classes-intro{background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
.classes-intro h1{color:var(--ink);font-size:clamp(2.4rem,5vw,3.8rem)}
.classes-intro .lede{color:var(--grey);max-width:58ch}
.corridor,.corridor--upper,.corridor--teacher{
  background:linear-gradient(180deg,rgba(24,32,58,.045) 0%,rgba(24,32,58,0) 28%,rgba(24,32,58,0) 75%,rgba(24,32,58,.05) 100%),
             linear-gradient(100deg,#FBFAF7 0%,#F5F6F9 55%,#F1F3F7 100%);
  color:var(--ink)}
.corridor .corridor-hint{color:var(--grey)}
.corridor .floor-sign b,.corridor .floor-host b{color:var(--ink);font-family:var(--serif);font-weight:600;font-size:1.25rem}
.corridor .floor-sign .floor-role,.corridor .floor-role{color:var(--grey)}
.corridor-floor{background:url(floor-light.jpg) repeat-x left top/auto 100%;border-top:2px solid #D9DEE8;box-shadow:none}
.corridor-floor::before,.corridor-floor::after{display:none}
.stairs{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stairs p{color:var(--grey)}
.corridor .doors::-webkit-scrollbar-track{background:#EEF1F5}
.corridor .doors::-webkit-scrollbar-thumb{background:#C9D0DC;border-radius:6px;box-shadow:none}

/* the doors */
.corridor .door{
  background:linear-gradient(100deg,#283a66 0%,#21315a 45%,#1b2a4d 100%);
  border:7px solid #18233F;border-bottom:0;border-radius:3px 3px 0 0;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 22px 30px -20px rgba(20,26,48,.45);
  filter:none;transform-origin:left center;transition:transform .9s var(--ease),box-shadow .5s}
.corridor .door-hinge,.corridor .door-nail,.corridor .door-kick{display:none}
.corridor .door-panel{background:transparent;border:0;box-shadow:inset 1px 1px 2px rgba(0,0,0,.3),inset -1px -1px 1px rgba(255,255,255,.07)}
.corridor .door-handle,.corridor .door-handle i{background:linear-gradient(180deg,#7fd8cf,#2aa89e);box-shadow:0 2px 3px rgba(0,0,0,.3)}
.corridor .door-plaque{background:rgba(255,255,255,.12);border:1px solid rgba(165,224,217,.42);border-radius:6px;box-shadow:none;color:#E6F7F5;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.corridor .door-plaque b{font-family:var(--serif);font-weight:600;color:#E6F7F5;background:none;box-shadow:none;letter-spacing:.01em}
.corridor .door-plaque .grp-no{background:none;color:#E6F7F5}
.corridor .door-plaque i{color:#A5E0D9}
.corridor .door-status{color:rgba(230,236,246,.72);background:none}
.corridor .door:hover,.corridor .door:focus-visible{transform:perspective(1200px) rotateY(8deg)}
.corridor .door.is-knocking{transform:perspective(1200px) rotateY(38deg)!important;animation:none}
.corridor .door.is-live{box-shadow:0 0 0 2px rgba(42,168,158,.55),0 0 34px -4px rgba(42,168,158,.55),0 22px 30px -20px rgba(20,26,48,.45)}

/* the dialog behind a door: a calm panel, with a cream notice board */
.door-dialog{border:1px solid var(--line);border-radius:20px;box-shadow:0 40px 80px -36px rgba(12,18,34,.55);animation:dlgIn .6s var(--ease)}
.door-dialog::backdrop{background:rgba(12,18,34,.32);backdrop-filter:none}
@keyframes dlgIn{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
.door-dialog .dlg-head h3{font-family:var(--serif);font-weight:600;font-size:1.9rem}
.nb{background:#FFFBF1;border:1px solid rgba(120,100,60,.16);border-radius:14px;box-shadow:0 10px 26px -18px rgba(60,45,20,.35)}
.nb h4{font-family:var(--serif);font-weight:600;font-size:1.45rem;color:var(--ink)}

@media (prefers-reduced-motion:reduce){
  .h-rise,.h-rev{animation:none;opacity:1;transform:none;transition:none}
  .corridor .door,.h-door-leaf,.door-dialog{transition:none;animation:none}
}
.corridor .door-plaque b.grp-no,html[lang="hy"] .corridor .door-plaque b.grp-no{background:none !important;color:#E6F7F5 !important;font-family:var(--serif);font-weight:600}
.corridor .floor-sign i.floor-role{color:var(--grey) !important;font-style:normal}
.corridor .floor-sign{background:transparent}

/* ===== round 2 ===== */
/* Apply for classes: bright, shining turquoise */
.btn--apply,.site-head .btn--apply{position:relative;overflow:hidden;color:#fff !important;border:0 !important;
  background:linear-gradient(135deg,#3BE3D2 0%,#19C2B2 55%,#0FA99B 100%) !important;
  box-shadow:0 10px 24px -10px rgba(25,194,178,.75),inset 0 1px 0 rgba(255,255,255,.45) !important}
.btn--apply::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;transform:skewX(-20deg);
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0));animation:egShine 4.5s ease-in-out infinite}
@keyframes egShine{0%,62%{left:-60%}100%{left:130%}}
.btn--apply:hover{transform:translateY(-1px);box-shadow:0 14px 28px -10px rgba(25,194,178,.85),inset 0 1px 0 rgba(255,255,255,.45) !important}

/* home: one calm statement, no italics; the door stands on its own wall and floor */
.h-title{font-size:clamp(2.4rem,5vw,4.3rem);line-height:1.08;max-width:19ch;font-style:normal}
html[lang="hy"] .h-title{font-size:clamp(1.9rem,3.8vw,3.1rem);line-height:1.22}
.h-hero{padding-top:clamp(56px,9vw,120px)}
.h-door-wall{width:min(100%,300px);padding:34px 0 34px;border-radius:16px;overflow:hidden;
  background:url(floor-light.jpg) repeat-x left bottom/auto 34px,linear-gradient(180deg,#FFFFFF 0%,#F3F5F9 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 24px 50px -34px rgba(19,28,53,.4);border:1px solid var(--line)}
.h-door-wall::after{content:"";position:absolute;left:0;right:0;bottom:34px;height:3px;background:#DCE1EA}
.h-door-frame{width:56%}

/* phonetics lab: the signature line in one style */
.lab-band h1 .lab-2{font-style:normal}

/* the corridor */
.cor-dream{font-family:var(--serif);font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.25;color:var(--ink) !important;margin:6px 0 0}
.cor-glow{margin:10px 0 0;color:var(--grey);font-size:.92rem;max-width:62ch}
/* each floor is only as wide as its doors, and fades softly into the page at both ends */
.corridor,.corridor--upper,.corridor--teacher{background:#fff !important;padding-top:18px;padding-bottom:18px}
.corridor-floor{display:none !important}
.corridor .doors{width:fit-content;max-width:100%;margin-inline:auto;padding:26px 48px 34px !important;
  background:url(floor-light.jpg) repeat-x left bottom/auto 34px,
    linear-gradient(180deg,rgba(24,32,58,.045) 0%,rgba(24,32,58,0) 30%,rgba(24,32,58,0) 76%,rgba(24,32,58,.05) 100%),
    linear-gradient(100deg,#FBFAF7 0%,#F5F6F9 55%,#F1F3F7 100%) !important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);
  box-shadow:inset 0 -37px 0 -34px #DCE1EA}
.corridor .corridor-hint{text-align:center}
.stairs{background:#fff;border:0}
/* the boxed logo, as in the top menu */
.floor-host--logo{justify-content:center !important;align-items:center !important}
.floor-host-img.floor-logo-box{width:84px !important;height:84px !important;object-fit:contain;padding:14px;border-radius:18px;background:#fff;
  box-shadow:0 0 0 1px var(--line),0 14px 30px -18px rgba(19,28,53,.45);position:static !important;inset:auto !important;margin:auto}

/* inside a room: the two doors side by side, the small notice board beside them */
#doorDialog .hall-wall{flex-wrap:nowrap;align-items:flex-end;gap:22px}
#doorDialog .hall-wall > .nb{order:3;align-self:center;margin:0 0 28px;padding:0;width:150px;flex:none;background:none;border:0;box-shadow:none;transform:none}
#doorDialog .nb > *:not(.nb-peek){display:none}
#doorDialog .nb.hidden{display:none}
.nb-peek{position:relative;display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;cursor:pointer;padding:16px 14px 12px;border-radius:10px;
  background:#FFFBF1;border:1px solid rgba(120,100,60,.18);box-shadow:0 12px 24px -16px rgba(60,45,20,.45);font:inherit;color:var(--ink);transition:transform .35s var(--ease),box-shadow .35s}
.nb-peek::before{content:"";position:absolute;top:-5px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#a6e9e1,#2aa89e 70%);box-shadow:0 2px 3px rgba(0,0,0,.25)}
.nb-peek:hover,.nb-peek:focus-visible{transform:translateY(-2px);box-shadow:0 16px 28px -16px rgba(60,45,20,.5)}
.nb-peek small{color:#7A7262;font-size:.74rem}
.nb-peek b{font-family:var(--serif);font-weight:600;font-size:1.15rem;line-height:1.1}
.nb-peek span{font-size:.78rem;line-height:1.35;color:var(--grey);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nb-peek i{font-style:normal;font-size:.74rem;color:#1E8F85;margin-top:4px}
/* opened: a cream sheet in the middle of the screen */
#doorDialog .nb.nb-open{position:fixed;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw,480px);max-height:min(84vh,680px);overflow:auto;margin:0;
  padding:22px 22px 18px;border-radius:16px;background:#FFFBF1;border:1px solid rgba(120,100,60,.16);box-shadow:0 40px 80px -30px rgba(12,18,34,.55);animation:dlgIn .45s var(--ease)}
#doorDialog .nb.nb-open > *{display:revert}
#doorDialog .nb.nb-open > .hidden{display:none}
#doorDialog .nb.nb-open > .nb-peek,#doorDialog .nb.nb-open > .nb-pin{display:none}
.nb-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(120,100,60,.2);background:#fff;font-size:1.3rem;line-height:1;cursor:pointer;color:var(--ink)}
#doorDialog .nb.nb-open .nb-head{padding-right:44px}
#doorDialog .nb .nb-date{display:none}
.nb-days{display:flex !important;align-items:center;gap:10px;margin:6px 0 14px;overflow:visible}
.nb-days.hidden{display:none !important}
.nb-arrow{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid rgba(120,100,60,.22);background:#fff;color:var(--ink);font-size:1.4rem;line-height:1;cursor:pointer;transition:border-color .3s}
.nb-arrow:hover:not(:disabled){border-color:var(--mint)}
.nb-arrow:disabled{opacity:.3;cursor:default}
.nb-when{flex:1;text-align:center;font-family:var(--serif);font-weight:600;font-size:1.2rem}
@media (max-width:560px){
  #doorDialog .hall-wall{gap:10px}
  #doorDialog .hall-wall > .nb{width:112px;margin-bottom:20px}
  .nb-peek{padding:12px 10px 10px}
  .nb-peek span{-webkit-line-clamp:2}
}

/* the recorded-lessons door swings open, then you are inside its room */
#doorDialog .hall-door{transform-origin:left center;transition:transform .65s var(--ease)}
#doorDialog .hall-door.is-opening{transform:perspective(900px) rotateY(55deg)}
.door-dialog.rec-open #dlgHall,.door-dialog.rec-open #dlgBio,.door-dialog.rec-open .dlg-body > dl,.door-dialog.rec-open #dlgNote,.door-dialog.rec-open #dlgBank{display:none !important}
.rec-room{border-radius:14px;padding:18px 16px 20px;background:linear-gradient(100deg,#FBFAF7,#F2F4F8);border:1px solid var(--line);animation:dlgIn .5s var(--ease)}
.rec-head{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.rec-head h4{margin:0;font-family:var(--serif);font-weight:600;font-size:1.5rem}
.rec-back{flex:none;padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;cursor:pointer;font:inherit;font-size:.88rem;color:var(--ink)}
.rec-back:hover{border-color:var(--mint)}
.rec-shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.rec-card{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px 16px;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer;text-align:left;font:inherit;color:var(--ink);transition:border-color .3s,transform .3s var(--ease)}
.rec-card::before{content:"\25B6";font-size:.7rem;color:#fff;background:var(--navy);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;margin-bottom:6px}
.rec-card:hover{border-color:var(--mint);transform:translateY(-1px)}
.rec-card.on{border-color:var(--mint);box-shadow:0 0 0 2px rgba(42,168,158,.25)}
.rec-card b{font-weight:600;font-size:.95rem}
.rec-card small{color:var(--grey)}
@media (prefers-reduced-motion:reduce){.btn--apply::after{animation:none;display:none}#doorDialog .hall-door{transition:none}}
.classes-intro .lede.cor-dream{font-family:var(--serif);font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.25;color:var(--ink);max-width:none}
.floor-host-img.floor-logo-box{padding:0;background:none;box-shadow:none;border-radius:0;width:76px !important;height:76px !important}
#doorDialog{width:min(calc(100% - 24px),640px);max-width:640px}
#doorDialog .hallway{overflow:visible}
#doorDialog .hall-wall{justify-content:center;padding-left:14px;padding-right:14px}
@media (max-width:560px){
  #doorDialog .hall-door{width:92px !important;height:160px !important}
  #doorDialog .hall-door .hd-sign{font-size:.68rem;padding:5px}
  #doorDialog .hall-wall > .nb{width:100px}
  #doorDialog .hall-wall{gap:8px;padding-left:6px;padding-right:6px}
}
#doorDialog .nb:not(.nb-open) .nb-days{display:none !important}
#doorDialog .hall-wall > .nb.nb-open{width:min(92vw,480px);margin:0;align-self:auto}

/* ===== round 4 ===== */
/* top strip: solid, nothing shows through it */
.site-head{background:#FFFFFF !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;box-shadow:0 1px 0 var(--line)}
/* Apply for classes: a deep, rich turquoise that stands out */
.btn--apply,.site-head .btn--apply{background:linear-gradient(180deg,#00BFAE 0%,#009E91 100%) !important;color:#fff !important;font-weight:600 !important;
  box-shadow:0 8px 20px -8px rgba(0,158,145,.75),inset 0 1px 0 rgba(255,255,255,.35) !important}
.btn--apply:hover{background:linear-gradient(180deg,#00C9B7 0%,#00A497 100%) !important}

/* the corridor: no fog anywhere — clean ends, a bookshelf to close each floor */
.corridor .doors{-webkit-mask-image:none !important;mask-image:none !important;border-radius:6px;padding:26px 26px 34px !important;
  box-shadow:inset 0 -37px 0 -34px #DCE1EA,0 0 0 1px rgba(30,43,77,.05)}
.corridor .door::after{display:none !important}
.corridor .door.is-live{box-shadow:0 0 0 2px rgba(0,191,174,.7),0 0 26px -4px rgba(0,191,174,.6),0 22px 30px -20px rgba(20,26,48,.45)}

/* bookshelf at the end of every floor */
.floor-end{flex:none;align-self:flex-end;display:flex;align-items:flex-end;margin-left:18px}
.floor-end .eg-shelf{position:relative;display:block;width:120px;height:210px;border-radius:3px 3px 0 0;
  background:linear-gradient(90deg,#6E5137,#8A6747 50%,#6E5137);box-shadow:0 18px 26px -18px rgba(20,26,48,.5),inset 0 0 0 5px #5A412B}
.floor-end .eg-shelf i{position:absolute;left:8px;right:8px;height:52px;
  background:
    linear-gradient(90deg,#1E2B4D 0 12%,transparent 12% 14%,#7A8396 14% 24%,transparent 24% 26%,#EAE4D6 26% 34%,transparent 34% 36%,#2AA89E 36% 44%,transparent 44% 46%,#1E2B4D 46% 58%,transparent 58% 60%,#B9AE95 60% 68%,transparent 68% 70%,#2F5DA8 70% 80%,transparent 80% 82%,#EAE4D6 82% 92%,transparent 92%);
  border-bottom:6px solid #5A412B;background-size:100% 100%;background-repeat:no-repeat}
.floor-end .eg-shelf i:nth-child(1){top:10px;height:56px}
.floor-end .eg-shelf i:nth-child(2){top:76px;height:56px;transform:scaleX(-1)}
.floor-end .eg-shelf i:nth-child(3){top:142px;height:56px;background:
    linear-gradient(90deg,#7A8396 0 16%,transparent 16% 18%,#EAE4D6 18% 30%,transparent 30% 34%,#1E2B4D 34% 46%,transparent 46% 48%,#2AA89E 48% 56%,transparent 56% 100%) no-repeat}

/* student of the month, framed on the wall beside the bookshelf */
.som{flex:none;align-self:center;margin-left:22px;margin-bottom:24px}
.som-frame{position:relative;width:150px;padding:18px 14px 16px;text-align:center;background:#FFFDF8;border-radius:2px;
  box-shadow:0 0 0 6px #C9A24A,0 0 0 7px #A8842F,0 16px 28px -14px rgba(19,28,53,.45)}
.som-star{display:block;font-size:1.4rem;line-height:1;color:#C9A24A;margin-bottom:6px}
.som-frame small{display:block;font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;color:#7A7262}
.som-frame b{display:block;margin-top:6px;font-family:var(--serif);font-weight:600;font-size:1.35rem;line-height:1.15;color:var(--ink)}
.som--empty .som-frame b{color:#A79F8E;font-style:italic;font-weight:500;font-size:1.1rem}

/* the academy plaque: brushed metal frame, glass panel, four bolts */
.floor-host--logo{display:flex !important;align-items:center !important;justify-content:center !important;background:none !important}
.plaque{position:relative;padding:9px;border-radius:5px;
  background:linear-gradient(135deg,#F4F6F9 0%,#C3C9D2 22%,#EEF1F5 45%,#A9B1BD 70%,#E3E7EC 100%);
  box-shadow:0 1px 0 #fff inset,0 -1px 0 rgba(0,0,0,.18) inset,0 26px 36px -20px rgba(19,28,53,.55),0 8px 12px -8px rgba(19,28,53,.35)}
.pl-glass{position:relative;width:150px;padding:18px 12px 14px;text-align:center;border-radius:2px;overflow:hidden;
  background:linear-gradient(160deg,rgba(255,255,255,.96) 0%,rgba(232,239,246,.9) 55%,rgba(210,222,234,.88) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),inset 0 2px 6px rgba(19,28,53,.12)}
.pl-glass::after{content:"";position:absolute;top:-30%;left:-60%;width:80%;height:160%;transform:rotate(24deg);
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.65),rgba(255,255,255,0));pointer-events:none}
.pl-glass img{display:block;width:58px;height:auto;margin:0 auto 9px;filter:drop-shadow(0 2px 2px rgba(19,28,53,.2))}
.pl-glass b{display:block;font-family:var(--serif);font-weight:600;font-size:1.15rem;line-height:1.1;color:#1E2B4D;text-shadow:0 1px 0 #fff}
.pl-glass span{display:block;margin-top:4px;font-size:.56rem;letter-spacing:.22em;text-transform:uppercase;color:#5A6378}
.pl-bolt{position:absolute;z-index:2;width:8px;height:8px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#FFFFFF 0%,#DCE0E6 30%,#8D96A4 72%,#666F7D 100%);box-shadow:0 1px 1px rgba(0,0,0,.4)}
.pl-b1{top:3px;left:3px}.pl-b2{top:3px;right:3px}.pl-b3{bottom:3px;left:3px}.pl-b4{bottom:3px;right:3px}

/* inside a group: tiny boards for earlier class days */
.nb-prevrow{margin:4px 0 0;text-align:center}
.nb-prevrow.hidden{display:none}
.nb-prevrow-t{margin:0 0 8px;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--grey)}
.nb-minis{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.nb-mini{position:relative;min-width:66px;padding:10px 10px 8px;border-radius:6px;cursor:pointer;font:inherit;font-size:.8rem;font-weight:600;color:var(--ink);
  background:#FFFBF1;border:1px solid rgba(120,100,60,.2);box-shadow:0 6px 12px -8px rgba(60,45,20,.45);transition:transform .3s var(--ease),border-color .3s}
.nb-mini::before{content:"";position:absolute;top:-4px;left:50%;width:7px;height:7px;margin-left:-3.5px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#a6e9e1,#2aa89e 70%)}
.nb-mini:hover,.nb-mini:focus-visible{transform:translateY(-2px);border-color:var(--mint)}

/* home: the path is a glowing turquoise light, like a lit neon tube */
.h-path{background:rgba(0,191,174,.14) !important;width:3px !important;border-radius:3px}
.h-path i{border-radius:3px;background:linear-gradient(180deg,#B9FFF7 0%,#3FF2DF 40%,#00D3BF 100%) !important;
  box-shadow:0 0 4px #7FFFF2,0 0 10px rgba(0,224,204,.95),0 0 22px rgba(0,224,204,.65),0 0 40px rgba(0,224,204,.35);animation:neon 3.2s ease-in-out infinite}
@keyframes neon{0%,100%{filter:brightness(1)}48%{filter:brightness(1.15)}50%{filter:brightness(.9)}52%{filter:brightness(1.12)}}
.h-spark{position:absolute;left:50%;bottom:-7px;width:14px;height:14px;margin-left:-7px;border-radius:50%;
  background:radial-gradient(circle,#FFFFFF 0%,#C8FFF9 30%,#2EF0DC 65%,rgba(0,224,204,0) 100%);box-shadow:0 0 16px 6px rgba(0,224,204,.75)}
.h-step.in .h-num{box-shadow:0 0 0 4px rgba(0,224,204,.22),0 0 16px rgba(0,224,204,.5)}
@media (prefers-reduced-motion:reduce){.h-path i{animation:none}}
.floor-end{align-self:stretch;margin-left:22px}
.som{align-self:stretch;display:flex;align-items:center;margin-bottom:0}

/* ===== round 5 ===== */
/* home path: back to the slim line, lit softly like a real light */
.h-path{width:2px !important;background:var(--line) !important}
.h-path i{background:#34E8D5 !important;animation:none !important;
  box-shadow:0 0 3px rgba(52,232,213,.9),0 0 9px rgba(52,232,213,.45) !important}
.h-spark{width:8px;height:8px;margin-left:-4px;bottom:-4px;background:radial-gradient(circle,#fff 0%,#9FF7EE 45%,rgba(52,232,213,0) 100%);box-shadow:0 0 8px 2px rgba(52,232,213,.6)}
.h-step.in .h-num{box-shadow:0 0 0 3px rgba(52,232,213,.18)}
/* progress picture: the student's own staircase line glows */
.h-prog{position:relative}
.h-prog .h-graph{display:none}
.h-line{position:absolute;z-index:1;left:8.333%;top:33.333%;width:18.333%;height:auto;pointer-events:none;
  filter:drop-shadow(0 0 1.5px #7FFFF2) drop-shadow(0 0 5px rgba(46,240,220,.75));animation:egGlow 3.6s ease-in-out infinite}
@keyframes egGlow{0%,100%{opacity:.85}50%{opacity:1;filter:drop-shadow(0 0 2px #B5FFF8) drop-shadow(0 0 8px rgba(46,240,220,.9))}}

/* smaller plaque */
.pl-glass{width:112px;padding:12px 8px 10px}
.pl-glass img{width:38px;margin-bottom:6px}
.pl-glass b{font-size:.92rem}
.pl-glass span{font-size:.48rem;letter-spacing:.18em}
.plaque{padding:6px}
.pl-bolt{width:6px;height:6px}.pl-b1{top:2px;left:2px}.pl-b2{top:2px;right:2px}.pl-b3{bottom:2px;left:2px}.pl-b4{bottom:2px;right:2px}

/* floors stand on real ground: a deeper wooden floor, a skirting board, and side walls */
.corridor .doors{padding:26px 34px 46px !important;border-radius:0;
  background:url(floor-light.jpg) repeat-x left bottom/auto 46px,
    linear-gradient(180deg,#EEF1F6 0%,#F6F7FA 30%,#F3F5F8 80%,#E6EAF0 100%) !important;
  box-shadow:inset 0 -46px 0 0 transparent,inset 0 -49px 0 0 #CBD2DD,inset 14px 0 18px -10px rgba(30,43,77,.16),inset -14px 0 18px -10px rgba(30,43,77,.16),0 14px 22px -18px rgba(30,43,77,.35) !important}
.corridor .door{margin-bottom:0}
/* a real-looking bookshelf */
.floor-end .eg-shelf{width:118px;height:192px;background:url(bookshelf.svg) no-repeat center bottom/contain !important;box-shadow:0 14px 20px -14px rgba(20,26,48,.55) !important;border-radius:0}
.floor-end .eg-shelf i{display:none}
/* student of the month: navy frame with gold edges */
.som-frame{background:linear-gradient(160deg,#24345E 0%,#1E2B4D 60%,#18233F 100%);
  box-shadow:0 0 0 2px #E2C27A,0 0 0 5px #1E2B4D,0 0 0 6px #C9A24A,0 16px 28px -14px rgba(19,28,53,.55)}
.som-star{color:#E2C27A}
.som-frame small{color:#C9D0DE}
.som-frame b{color:#F3E3B5}
.som--empty .som-frame b{color:#AEB8CC}

/* inside a group: a smaller current board, and a tiny "previous" card beside Recorded lessons */
#doorDialog .hall-wall > .nb{width:128px}
.nb-peek{padding:13px 11px 10px}
.nb-peek b{font-size:1rem}
.nb-peek span{font-size:.74rem;-webkit-line-clamp:2}
#doorDialog .hall-wall > .nb.nb-open{width:min(92vw,420px)}
#doorDialog .hall-wall > .nb-prevrow{flex:none;align-self:center;margin:0 0 28px}
.nb-prevcard{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;width:78px;padding:10px 6px 8px;border-radius:6px;cursor:pointer;font:inherit;text-align:center;
  background:#FFFBF1;border:1px solid rgba(120,100,60,.22);color:var(--ink);
  box-shadow:3px -3px 0 -1px #FBF5E6,3px -3px 0 0 rgba(120,100,60,.22),6px -6px 0 -1px #F7F0DE,6px -6px 0 0 rgba(120,100,60,.18),0 8px 14px -10px rgba(60,45,20,.5);
  transition:transform .3s var(--ease)}
.nb-prevcard:hover,.nb-prevcard:focus-visible{transform:translateY(-2px)}
.nb-prevcard small{font-size:.58rem;line-height:1.2;color:#7A7262}
.nb-prevcard b{font-family:var(--serif);font-weight:600;font-size:1rem}
.nb-prevcard::before{content:"\2039";position:absolute;left:5px;top:50%;transform:translateY(-50%);color:#1E8F85;font-size:1rem}
@media (max-width:560px){
  #doorDialog .hall-wall > .nb{width:96px}
  .nb-prevcard{width:64px}
  #doorDialog .hall-door{width:84px !important;height:150px !important}
}
@media (prefers-reduced-motion:reduce){.h-line{animation:none}}
@media (max-width:560px){
  #doorDialog .hall-wall{gap:6px !important;padding-left:4px !important;padding-right:4px !important}
  #doorDialog .hall-door{width:76px !important;height:140px !important}
  #doorDialog .hall-wall > .nb{width:86px}
  .nb-prevcard{width:56px;padding:8px 4px 6px}
  .nb-peek{padding:10px 8px 8px}
}
.h-prog img.h-line{width:18.333% !important;max-width:none}
.corridor .doors{
  background:linear-gradient(#C3CAD6,#C3CAD6) no-repeat left calc(100% - 46px)/100% 3px,
    url(floor-light.jpg) repeat-x left bottom/auto 46px,
    linear-gradient(180deg,#EEF1F6 0%,#F6F7FA 30%,#F3F5F8 80%,#E6EAF0 100%) !important;
  box-shadow:inset 14px 0 18px -10px rgba(30,43,77,.16),inset -14px 0 18px -10px rgba(30,43,77,.16),0 14px 22px -18px rgba(30,43,77,.35) !important}

/* ===== back to the corridor, on every page behind a door ===== */
.back-bar{background:#fff;border-bottom:1px solid var(--line)}
.back-bar .wrap{padding-top:10px;padding-bottom:10px}
.back-corridor{display:inline-flex;align-items:center;gap:8px;padding:7px 16px 7px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;
  color:var(--ink);text-decoration:none;font-size:.9rem;font-weight:500;transition:border-color .3s,color .3s}
.back-corridor:hover{border-color:var(--mint);color:#1E8F85}
/* discussion room header: light and calm like the corridor intro */
/* discussion room header: the same navy band as the practice room */
.db-band{color:#fff !important}
.db-band h1{color:#fff !important;font-family:var(--serif);font-weight:500;font-size:clamp(2.4rem,5vw,3.6rem)}
.db-band .db-lede{color:rgba(255,255,255,.88) !important}
.db-band img{width:64px;height:64px}

/* door name plates: centred, high on the door, clear of the glass */
.corridor .door .door-plaque{left:50% !important;right:auto !important;top:5% !important;transform:translateX(-50%) !important;
  width:auto !important;max-width:84% !important;min-width:58%;text-align:center !important;justify-content:center !important;align-items:center !important;
  display:flex !important;flex-direction:column;padding:4px 10px !important;margin:0 !important}
.corridor .door .door-plaque b,.corridor .door .door-plaque i{text-align:center;white-space:nowrap}
.corridor .door .door-panel--top{top:30% !important}

/* door names: easy to read — a light plate with dark navy lettering */
.corridor .door .door-plaque{background:linear-gradient(180deg,#FFFFFF 0%,#EEF2F7 100%) !important;border:1px solid #2AA89E !important;border-radius:5px !important;
  box-shadow:0 2px 4px rgba(0,0,0,.35),inset 0 1px 0 #fff !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;padding:5px 10px !important}
.corridor .door .door-plaque b,.corridor .door .door-plaque b.grp-no,html[lang="hy"] .corridor .door .door-plaque b.grp-no{color:#1E2B4D !important;background:none !important;
  font-family:var(--serif) !important;font-weight:700 !important;font-size:1.02rem !important;line-height:1.15 !important;text-shadow:none !important;letter-spacing:.01em}
.corridor .door .door-plaque i{color:#1E8F85 !important;font-size:.7rem !important}
html[lang="hy"] .corridor .door .door-plaque b{font-size:.86rem !important}

/* ===== plaque the size of a teacher photo ===== */
.plaque{padding:5px !important}
.pl-glass{width:74px !important;padding:9px 5px 8px !important}
.pl-glass img{width:28px !important;margin:0 auto 5px !important}
.pl-glass b{font-size:.72rem !important;line-height:1.1}
.pl-glass span{font-size:.4rem !important;letter-spacing:.14em !important;margin-top:3px !important}
.pl-bolt{width:5px !important;height:5px !important}
.pl-b1{top:2px !important;left:2px !important}.pl-b2{top:2px !important;right:2px !important}.pl-b3{bottom:2px !important;left:2px !important}.pl-b4{bottom:2px !important;right:2px !important}

/* ===== student of the month: ivory card in a real gold frame ===== */
.som .som-frame{width:150px;padding:18px 14px 16px;background:linear-gradient(160deg,#FFFDF7 0%,#F7F0DE 100%) !important;
  border:5px solid transparent;border-image:linear-gradient(135deg,#7E5E17 0%,#E9C96B 22%,#B88A2C 45%,#FBE6A2 62%,#A57A22 80%,#6E5013 100%) 1;
  box-shadow:0 16px 28px -14px rgba(19,28,53,.45),0 3px 6px -3px rgba(19,28,53,.3) !important;border-radius:0}
.som .som-frame::before{content:"";position:absolute;inset:4px;border:1px solid rgba(184,138,44,.55);pointer-events:none}
.som .som-star{font-size:1.6rem;margin-bottom:6px;color:transparent !important;
  background:linear-gradient(180deg,#FFF1BE 0%,#E8C25A 38%,#B8862A 62%,#F2D27A 82%,#8C6517 100%);-webkit-background-clip:text;background-clip:text;
  filter:drop-shadow(0 1px 1px rgba(110,80,19,.45))}
.som .som-frame small{color:#8A7550 !important}
.som .som-frame b{color:#1E2B4D !important}
.som.som--empty .som-frame b{color:#9C8E72 !important}

/* ===== door plates: back to frosted bluish glass with white letters, centred, nothing cut off ===== */
.corridor .door .door-plaque{background:rgba(255,255,255,.12) !important;border:1px solid rgba(165,224,217,.45) !important;border-radius:6px !important;
  backdrop-filter:blur(6px) !important;-webkit-backdrop-filter:blur(6px) !important;box-shadow:none !important;
  left:50% !important;right:auto !important;transform:translateX(-50%) !important;width:82% !important;max-width:82% !important;min-width:0 !important;
  top:6% !important;padding:5px 6px !important;overflow:visible !important;height:auto !important}
.corridor .door .door-plaque b,.corridor .door .door-plaque b.grp-no,html[lang="hy"] .corridor .door .door-plaque b.grp-no{
  color:#F2FBFA !important;background:none !important;font-family:var(--serif) !important;font-weight:600 !important;font-size:.9rem !important;
  line-height:1.12 !important;white-space:normal !important;overflow:visible !important;text-overflow:clip !important;overflow-wrap:normal !important;word-break:normal !important;
  text-wrap:balance;display:block !important;width:100% !important;max-width:none !important;text-shadow:0 1px 2px rgba(0,0,0,.35) !important}
.corridor .door .door-plaque i{color:#A5E0D9 !important;white-space:normal !important;overflow:visible !important;font-size:.66rem !important;display:block;width:100%}
html[lang="hy"] .corridor .door .door-plaque b{font-size:.74rem !important}
/* the window back where it was */
.corridor .door .door-panel--top{top:26% !important}

/* registration: three simple time buttons */
.slots--simple{display:flex !important;flex-wrap:wrap;gap:10px;grid-template-columns:none !important}
.slots--simple .slot{position:relative;flex:1 1 120px;display:flex !important;align-items:center;justify-content:center;padding:12px 16px !important;border-radius:999px !important;
  border:1.5px solid var(--line) !important;background:#fff !important;cursor:pointer;font-weight:500;color:var(--ink);transition:border-color .25s,background .25s,color .25s;text-align:center}
.slots--simple .slot input{position:absolute;opacity:0;pointer-events:none}
.slots--simple .slot:has(input:checked){background:var(--navy) !important;border-color:var(--navy) !important;color:#fff}
.slots--simple .slot:has(input:focus-visible){outline:2px solid var(--mint);outline-offset:3px}

/* doors stay still under the mouse; they swing open only when clicked */
.corridor .door:hover,.corridor .door:focus-visible,.corridor .door:active{transform:none !important}
.corridor .door.is-knocking,.corridor .door.is-knocking:hover{transform:perspective(1200px) rotateY(38deg) !important}
#doorDialog .hall-door:hover,#doorDialog .hall-door:focus-visible{transform:none !important}
#doorDialog .hall-door.is-opening,#doorDialog .hall-door.is-opening:hover{transform:perspective(900px) rotateY(55deg) !important}

/* ===== exam room: two clear choices ===== */
.exam-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin-top:34px}
.exam-card{display:flex;flex-direction:column;gap:8px;padding:28px 26px 24px;border-radius:16px;background:#fff;border:1px solid var(--line);
  text-decoration:none;color:var(--ink);box-shadow:0 18px 36px -28px rgba(19,28,53,.45);transition:transform .35s var(--ease),border-color .35s,box-shadow .35s}
.exam-card:hover,.exam-card:focus-visible{transform:translateY(-3px);border-color:var(--mint);box-shadow:0 24px 40px -26px rgba(19,28,53,.5)}
.exam-card h2{margin:6px 0 0;font-size:clamp(1.7rem,2.6vw,2.1rem)}
.exam-card p{margin:0;color:var(--grey)}
.exam-ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:var(--navy)}
.exam-ic svg{width:24px;height:24px;fill:none;stroke:#7FE3D8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.exam-go{margin-top:auto;padding-top:12px;font-weight:600;color:#1E8F85}
@media (max-width:700px){.exam-choices{grid-template-columns:1fr}}
/* level check: who is taking it */
.lc-who{display:grid;grid-template-columns:repeat(3,1fr);gap:0 18px}
.lc-who select{width:100%}
@media (max-width:760px){.lc-who{grid-template-columns:1fr}}

/* =====================================================================
   STUDENT DIARIES (v300)
   ===================================================================== */
/* --- ranking board at the end of each teacher's floor --- */
.rank-board{flex:none;align-self:center;position:relative;width:224px;margin-left:22px;padding:22px 14px 14px;border-radius:4px;
  background:linear-gradient(170deg,#FFFDF6 0%,#FBF6E8 100%);border:1px solid rgba(120,100,60,.18);
  box-shadow:0 1px 0 #fff inset,0 18px 26px -16px rgba(19,28,53,.5),0 4px 8px -4px rgba(19,28,53,.18);
  opacity:0;transform:translateY(6px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
.rank-board.is-ready{opacity:1;transform:none}
.rank-board:empty{display:none}
.rb-pin{position:absolute;top:-5px;left:50%;width:11px;height:11px;margin-left:-5.5px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#F3E3B5,#C9A24A 60%,#8A6A22);box-shadow:0 2px 3px rgba(0,0,0,.3)}
.rb-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin:0 0 10px;padding-bottom:7px;border-bottom:1px solid rgba(120,100,60,.2)}
.rb-head b{font-family:var(--serif);font-size:1.15rem;font-weight:600;color:#1E2B4D;line-height:1}
.rb-head small{font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:#8A7E66}
.rb-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rb-row{display:grid;grid-template-columns:18px 1fr;grid-template-rows:auto 5px;column-gap:6px;row-gap:3px;align-items:center}
.rb-n{grid-row:1/3;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:.66rem;font-weight:700;color:#fff;background:#8C96AB}
.rb-row:nth-child(1) .rb-n{background:linear-gradient(135deg,#F1D88E,#C9A24A);color:#3B2C08}
.rb-row:nth-child(2) .rb-n{background:linear-gradient(135deg,#E8ECF2,#AEB7C4);color:#2A3243}
.rb-row:nth-child(3) .rb-n{background:linear-gradient(135deg,#E8C3A0,#B07A4B);color:#fff}
.rb-name{font-size:.8rem;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
.rb-name i{font-style:normal;font-weight:700;color:#1E8F85}
.rb-bar{display:block;height:5px;border-radius:3px;background:rgba(30,43,77,.08);overflow:hidden}
.rb-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#2AA89E,#34C8BB)}
.rb-row:nth-child(1) .rb-bar i{background:linear-gradient(90deg,#C9A24A,#E2C27A)}
.rb-row.is-me .rb-name{color:#1E8F85}
.rb-dots{display:flex;flex-wrap:wrap;gap:5px;margin-top:11px;padding-top:9px;border-top:1px dashed rgba(120,100,60,.22)}
.rb-dot{position:relative;width:8px;height:8px;border-radius:50%;background:#C3C9D4}
.rb-dot.is-me{width:auto;height:auto;padding:2px 8px;border-radius:999px;background:#2AA89E;box-shadow:0 0 0 3px rgba(42,168,158,.18)}
.rb-dot.is-me em{font-style:normal;font-size:.66rem;font-weight:700;color:#fff;white-space:nowrap}

/* --- "My diary" inside a class door --- */
.dlg-diary{display:flex;align-items:center;gap:10px;justify-content:center;margin:0 0 14px;padding:12px 18px;border-radius:14px;
  background:linear-gradient(135deg,#24345E,#1E2B4D);color:#F3E3B5;font-weight:600;font-size:1rem;text-decoration:none;
  box-shadow:0 0 0 1px rgba(226,194,122,.55) inset,0 8px 18px -8px rgba(19,28,53,.6);transition:transform .25s var(--ease),filter .25s}
.dlg-diary:hover{transform:translateY(-1px);filter:brightness(1.08)}
.dlg-diary i{font-style:normal}
.dlg-diary b{color:#E2C27A}
.dlg-diary.hidden{display:none}

/* --- the small note on study pages --- */
.diary-pill{position:fixed;left:16px;bottom:16px;z-index:60;display:inline-flex;align-items:center;gap:8px;max-width:calc(100vw - 32px);
  padding:9px 15px 9px 11px;border-radius:999px;font-size:.82rem;line-height:1.3;text-decoration:none;color:#1E2B4D;
  background:rgba(255,253,246,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border:1px solid rgba(201,162,74,.55);box-shadow:0 10px 24px -12px rgba(19,28,53,.45)}
.diary-pill:hover{border-color:#C9A24A}
.diary-pill.is-on{background:rgba(30,43,77,.9);color:#E9EDF5;border-color:rgba(226,194,122,.45)}
.diary-pill.is-on b{color:#F3E3B5}
.dp-ic{font-size:1rem}
@media print{.diary-pill{display:none}}

/* --- diary page --- */
.diary-page{padding:34px 0 70px;background:linear-gradient(180deg,#F4F6FA 0%,#FFFFFF 340px)}
.diary-page h1{margin:0 0 6px}
.dy-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 14px 30px -24px rgba(19,28,53,.45)}
.dy-sign{max-width:470px;margin:22px auto 0}
.dy-sign h2{font-size:1.7rem;margin:0 0 8px}
.dy-sign p{color:var(--grey);margin:0 0 16px;font-size:.95rem}
.dy-or{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--grey);font-size:.8rem;text-transform:uppercase;letter-spacing:.14em}
.dy-or::before,.dy-or::after{content:"";flex:1;height:1px;background:var(--line)}
.dy-gbtn{min-height:44px;display:flex;justify-content:center}
.dy-field{display:flex;gap:8px;flex-wrap:wrap}
.dy-field input{flex:1 1 200px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:1rem}
.dy-field input:focus{outline:none;border-color:var(--mint);box-shadow:0 0 0 3px rgba(42,168,158,.15)}
.dy-code{letter-spacing:.4em;font-weight:700;text-align:center}
.dy-btn{padding:12px 18px;border:0;border-radius:10px;font:inherit;font-weight:600;cursor:pointer;background:#1E2B4D;color:#fff}
.dy-btn:hover{filter:brightness(1.15)}
.dy-btn[disabled]{opacity:.55;cursor:default}
.dy-btn--ghost{background:#fff;color:#1E2B4D;border:1px solid var(--line)}
.dy-btn--gold{background:linear-gradient(135deg,#E2C27A,#C9A24A);color:#2B2008}
.dy-msg{min-height:1.3em;margin:10px 0 0;font-size:.88rem;color:#B4413A}
.dy-msg.is-ok{color:#1E8F85}
.dy-small{font-size:.78rem;color:var(--grey);margin:16px 0 0}
.dy-note{font-size:.68rem!important;line-height:1.4!important;opacity:.75;margin-top:12px!important}
.dy-priv{font-size:.66rem!important;line-height:1.4;opacity:.7;margin-top:6px!important}
.dy-priv a{color:inherit}
.dy-link{background:none;border:0;padding:0;font:inherit;color:#1E8F85;text-decoration:underline;cursor:pointer}
.dy-pick{max-width:640px;margin:22px auto 0}
.dy-teachers{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.dy-chip{padding:9px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;font-size:.9rem;cursor:pointer;color:var(--ink)}
.dy-chip[aria-pressed="true"]{background:#1E2B4D;color:#fff;border-color:#1E2B4D}
.dy-names{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}
.dy-name{text-align:left;padding:11px 13px;border-radius:12px;border:1px solid var(--line);background:#fff;font:inherit;cursor:pointer;color:var(--ink)}
.dy-name:hover{border-color:var(--mint)}
.dy-name b{display:block;font-size:.95rem}
.dy-name small{color:var(--grey);font-size:.75rem}
.dy-alt{display:grid;gap:22px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.dy-alt h3{margin:0 0 4px;font-size:1rem}
.dy-alt p{margin:0 0 8px;font-size:.86rem;color:var(--grey)}
.dy-alt select{padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff}

.dy-top{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.dy-who{color:var(--grey);margin:0;font-size:.95rem}
.dy-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 18px}
.dy-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 16px 14px}
.dy-stat b{display:block;font-family:var(--serif);font-size:2.3rem;font-weight:600;line-height:1;color:#1E2B4D;font-variant-numeric:tabular-nums}
.dy-stat span{display:block;margin-top:6px;font-size:.78rem;color:var(--grey);line-height:1.3}
.dy-stat--gold{background:linear-gradient(160deg,#24345E,#1A2646);border-color:transparent}
.dy-stat--gold b{color:#F3E3B5}
.dy-stat--gold span{color:#C9D0DE}
.dy-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;margin-bottom:14px}
.dy-card h3{margin:0 0 14px;font-size:1rem}
.dy-chart{display:flex;align-items:flex-end;gap:5px;height:140px;padding-top:16px}
.dy-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.dy-col i{display:block;width:100%;max-width:26px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#34C8BB,#2AA89E);min-height:3px;position:relative}
.dy-col i.is-zero{background:#E5E9F0}
.dy-col i em{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:3px;font-style:normal;font-size:.62rem;font-weight:700;color:#1E2B4D;white-space:nowrap}
.dy-col small{margin-top:6px;font-size:.62rem;color:var(--grey);font-variant-numeric:tabular-nums}
.dy-col.is-today small{color:#1E8F85;font-weight:700}
.dy-rooms{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.dy-rooms li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;font-size:.88rem}
.dy-rooms li span{color:var(--grey);font-variant-numeric:tabular-nums}
.dy-rooms li i{grid-column:1/3;height:6px;border-radius:3px;background:rgba(30,43,77,.07);overflow:hidden}
.dy-rooms li i b{display:block;height:100%;border-radius:3px;background:#2F5DA8}
.dy-tasks{width:100%;border-collapse:collapse;font-size:.88rem}
.dy-tasks th{text-align:left;font-weight:600;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--grey);padding:0 8px 8px;border-bottom:1px solid var(--line)}
.dy-tasks td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.dy-tasks td:first-child{white-space:nowrap;color:var(--grey);font-variant-numeric:tabular-nums}
.dy-sc{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.dy-sc.is-full{color:#1E8F85}
.dy-tag{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:.66rem;font-weight:600;background:#F0F2F6;color:var(--grey);vertical-align:1px}
.dy-empty{color:var(--grey);font-size:.92rem;margin:0}
.dy-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;font-size:.85rem;color:var(--grey)}
.dy-ig{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:rgba(19,28,53,.55)}
.dy-ig .dy-card{max-width:420px;text-align:center;padding:30px 26px}
.dy-ig .dy-medal{font-size:2.6rem;line-height:1}
.dy-ig h2{font-size:1.7rem;margin:10px 0 8px}
.dy-ig p{color:var(--grey);margin:0 0 20px}
.dy-ig .dy-field{justify-content:center}
@media (max-width:820px){
  .dy-stats{grid-template-columns:repeat(2,1fr)}
  .dy-grid{grid-template-columns:1fr}
  .dy-tasks th:nth-child(3),.dy-tasks td:nth-child(3){display:none}
}

/* --- teacher view --- */
.td-gate{max-width:420px;margin:30px auto 0}
.td-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}
.td-bar select{padding:9px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff;margin-left:auto}
.td-table{width:100%;border-collapse:collapse;font-size:.9rem}
.td-table th{text-align:left;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--grey);font-weight:600;padding:0 8px 9px;border-bottom:1px solid var(--line);white-space:nowrap}
.td-table td{padding:11px 8px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.td-table .td-num{text-align:right}
.td-name{background:none;border:0;padding:0;font:inherit;font-weight:600;color:#1E2B4D;cursor:pointer;text-align:left}
.td-name:hover{color:#1E8F85;text-decoration:underline}
.td-place{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:12px;font-size:.75rem;font-weight:700;background:#EEF1F6;color:#1E2B4D}
.td-place.p1{background:linear-gradient(135deg,#F1D88E,#C9A24A)}
.td-how{font-size:.72rem;padding:2px 8px;border-radius:999px;background:#EEF1F6;color:var(--grey);white-space:nowrap}
.td-how.is-name{background:#FFF4DC;color:#7A5A10}
.td-ig{font-weight:700}
.td-ig.yes{color:#1E8F85}.td-ig.no{color:#B4413A}
.td-sec{margin:26px 0 10px;font-size:1.05rem}
.td-scroll{overflow-x:auto}
.td-detail{position:fixed;inset:0;z-index:80;display:flex;justify-content:flex-end;background:rgba(19,28,53,.45)}
.td-panel{width:min(640px,100%);height:100%;overflow:auto;background:#fff;padding:24px 22px 40px;box-shadow:-20px 0 40px -20px rgba(0,0,0,.4)}
.td-panel h2{font-size:1.6rem;margin:0 0 4px}
.td-x{float:right;border:1px solid var(--line);background:#fff;border-radius:50%;width:36px;height:36px;font-size:1rem;cursor:pointer}

/* Log in button in the top bar — every page, everyone */
.login-btn{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap;
  text-decoration:none;color:var(--navy);font-size:.9rem;font-weight:600;
  border:1.5px solid var(--navy);border-radius:999px;padding:6px 13px;line-height:1}
.login-btn:hover{background:var(--navy);color:#fff}
.login-btn.is-in{background:var(--mint);border-color:var(--mint);color:var(--navy)}
.login-btn[aria-current="page"]{background:var(--navy);color:#fff}
.login-btn svg{flex:0 0 auto}
.nav .nav-login{display:none}
@media (max-width:620px){
  .head-in{padding:12px 14px;gap:8px}
  .brand{gap:8px}
  .brand img{width:28px}
  .brand-name{font-size:.86rem}
  .login-btn{padding:7px 9px}
  .login-btn span{display:none}
  .nav .nav-login{display:block;font-weight:600;color:var(--navy)}
}
@media (min-width:400px) and (max-width:620px){ .login-btn span{display:inline} }
@media (min-width:621px){ .head-in{gap:18px} }
@media (min-width:1300px){ .head-in{max-width:1260px} }

.nb-delete{justify-self:start;background:#FDF0EF;color:#B3261E;border:1px solid #F3C7C3;border-radius:8px;padding:8px 14px;font:inherit;font-size:.85rem;font-weight:600;cursor:pointer}
.nb-delete:hover{background:#FBE1DE}.nb-delete:disabled{opacity:.6}.nb-delete.hidden{display:none}

/* ===== Diary v2 (calendar, live clock, ticks, simple task list) ===== */
/* home: the opening line smaller */
.h-title{font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.15;max-width:24ch}
html[lang="hy"] .h-title{font-size:clamp(1.45rem,2.4vw,2.05rem);line-height:1.28}

/* clock face */
.eg-clock{display:block;width:100%;height:100%}
.eg-clock .ck-face{fill:#fff;stroke:#1E2B4D;stroke-width:5}
.eg-clock .ck-marks line{stroke:#1E2B4D;stroke-width:3;stroke-linecap:round}
.eg-clock .ck-min{stroke:#1E2B4D;stroke-width:6;stroke-linecap:round}
.eg-clock .ck-sec{stroke:#2AA89E;stroke-width:3;stroke-linecap:round}
.eg-clock .ck-pin{fill:#C9A24A}
.dy-stat--gold .eg-clock .ck-face{fill:rgba(255,255,255,.08);stroke:#E2C27A}
.dy-stat--gold .eg-clock .ck-marks line,.dy-stat--gold .eg-clock .ck-min{stroke:#E2C27A}

.dy-stat{position:relative}
.dy-ic{position:absolute;top:14px;right:14px;width:34px;height:34px;display:grid;place-items:center}
.dy-tick{border-radius:50%;background:#E3F6F3;color:#1E8F85;font-size:1.1rem;font-weight:800}
.dy-medal-ic{font-size:1.6rem}
.dy-stat--live{background:linear-gradient(160deg,#F2FBFA,#FFFFFF);border-color:#BFE7E2}
.dy-stat--live .dy-ic{width:46px;height:46px;top:10px;right:10px}
.dy-stat--live b{color:#1E8F85}
.dy-stat--live.is-idle .ck-sec{stroke:#AEB7C4}
.dy-ticks{display:flex;flex-wrap:wrap;gap:3px;margin-top:8px}
.dy-ticks i{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#2AA89E;color:#fff;font-style:normal;font-size:.58rem;font-weight:800}
.dy-ticks em{font-style:normal;font-size:.7rem;font-weight:700;color:#1E8F85;align-self:center;margin-left:2px}

/* the two-week calendar */
.dy-cal{position:relative;overflow:hidden;margin-bottom:14px;padding:22px 22px 18px;border-radius:18px;color:#E9EDF5;
  background:
    radial-gradient(120% 90% at 0% 0%,rgba(52,200,187,.18) 0%,transparent 55%),
    radial-gradient(90% 80% at 100% 100%,rgba(120,150,230,.22) 0%,transparent 60%),
    radial-gradient(60% 50% at 70% 10%,rgba(255,255,255,.07) 0%,transparent 70%),
    linear-gradient(160deg,#34508F 0%,#2B4278 55%,#26396A 100%);
  box-shadow:0 18px 34px -22px rgba(19,28,53,.7)}
.dy-cal-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dy-cal-head h3{margin:0;font-size:1.05rem;color:#fff}
.dy-cal-head span{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#BFD0F2}
.dy-cal-p{margin:4px 0 16px;font-size:.82rem;color:#C9D4EC}
.dy-cal-grid{display:grid;grid-template-columns:repeat(14,1fr);gap:6px}
.dy-day{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.dy-bar-wrap{position:relative;height:120px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.dy-bar-wrap i{display:block;width:70%;max-width:26px;border-radius:6px 6px 2px 2px;
  background:linear-gradient(180deg,#5FE3D6 0%,#2AB5A9 100%);box-shadow:0 0 14px -2px rgba(60,220,205,.55)}
.dy-bar-wrap em{font-style:normal;font-size:.68rem;font-weight:700;color:#fff;margin-bottom:3px}
.dy-date{margin-top:6px;padding:5px 0 6px;border-radius:8px;text-align:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14)}
.dy-date small{display:block;font-size:.58rem;letter-spacing:.06em;text-transform:uppercase;color:#BFD0F2;line-height:1.2}
.dy-date b{display:block;font-size:.95rem;color:#fff;font-variant-numeric:tabular-nums;line-height:1.2}
.dy-day.is-zero .dy-date b{color:#C9D4EC;font-weight:500}
.dy-day.is-today .dy-date{background:#2AA89E;border-color:#5FE3D6}
.dy-day.is-today .dy-date small{color:#E3FBF8}

/* everything you have done: short rows that open */
.dy-tlist{list-style:none;margin:0;padding:0}
.dy-task{border-bottom:1px solid var(--line)}
.dy-trow{display:grid;grid-template-columns:52px 1fr auto 18px;align-items:center;gap:10px;width:100%;padding:12px 4px;border:0;background:none;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.dy-trow:hover .dy-tname{color:#1E8F85}
.dy-tdate{color:var(--grey);font-size:.85rem;font-variant-numeric:tabular-nums}
.dy-tname{font-weight:600;font-size:.95rem}
.dy-sc{padding:3px 10px;border-radius:999px;background:#F0F2F6;font-size:.85rem}
.dy-sc.is-full{background:#E3F6F3}
.dy-chev{color:var(--grey);font-size:1.3rem;transition:transform .2s}
.dy-trow[aria-expanded="true"] .dy-chev{transform:rotate(90deg)}
.dy-tmore{padding:2px 4px 16px 66px}
.dy-tmore p{margin:0 0 6px;font-size:.92rem}
.dy-btn--sm{display:inline-block;margin-top:6px;padding:9px 14px;font-size:.88rem;text-decoration:none}

/* sign-up: name, are you our student, teacher */
.dy-step{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.dy-step.is-off{opacity:.4;pointer-events:none}
.dy-step h3{margin:0 0 10px;font-size:1.05rem}
.dy-yn{display:flex;gap:8px}
.dy-yn .dy-chip{min-width:84px}
.dy-tgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.dy-tch{padding:14px;border-radius:12px;border:1px solid var(--line);background:#fff;font:inherit;font-weight:600;cursor:pointer;color:#1E2B4D}
.dy-tch:hover{border-color:#2AA89E;background:#F2FBFA}

/* the note on study pages: a little clock */
.diary-pill .dp-clock{width:24px;height:24px;flex:none}
.diary-pill.is-on .eg-clock .ck-face{fill:rgba(255,255,255,.1);stroke:#E2C27A}
.diary-pill.is-on .eg-clock .ck-marks line,.diary-pill.is-on .eg-clock .ck-min{stroke:#E2C27A}
.diary-pill.is-on .eg-clock .ck-sec{stroke:#5FE3D6}
.diary-pill.is-idle .eg-clock .ck-sec{stroke:#8C96AB}
.diary-pill .dp-time{font-variant-numeric:tabular-nums}
.diary-pill small{opacity:.8}

@media (max-width:820px){
  .dy-cal-grid{grid-template-columns:repeat(7,1fr);row-gap:12px}
  .dy-bar-wrap{height:90px}
  .dy-tmore{padding-left:4px}
  .dy-trow{grid-template-columns:44px 1fr auto 14px;gap:8px}
}
.dy-stat b{padding-right:44px}
.dy-stat--live b{padding-right:52px}
.dy-tick{background:#2AA89E;color:#fff;font-size:1rem;box-shadow:0 4px 10px -4px rgba(42,168,158,.6)}
@media (max-width:820px){
  .dy-stat b{font-size:1.9rem}
  .dy-stat--live b{font-size:1.45rem;padding-right:0;margin-top:40px}
  .dy-stat--live .dy-ic{width:38px;height:38px}
}

.dy-stat .dy-ic{margin:0;color:inherit;font-size:inherit;line-height:1}
.dy-stat .dy-tick{display:grid;place-items:center;color:#fff;font-size:1.05rem;font-weight:800}

/* ===== Diary v3: notes, streak, goal, books, challenges & victories, unit list, report ===== */
.dy-top-r{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.dy-notes{display:grid;gap:10px;margin:0 0 16px}
.dy-note{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,#FFF9EA,#FFF3D6);border:1px solid #EBD39A}
.dy-note-ic{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#C9A24A;color:#fff;font-size:1.1rem}
.dy-note small{display:block;color:#7A5A10;font-weight:600;font-size:.78rem;letter-spacing:.02em}
.dy-note p{margin:4px 0 0;font-size:1rem;color:#2B2008}

.dy-row3{display:grid;grid-template-columns:.8fr 1.2fr 1.4fr;gap:12px;margin:0 0 14px}
.dy-row3 .dy-card{padding:18px}
.dy-row3 h3{margin:0 0 4px;font-size:1rem}
.dy-streak{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(160deg,#FFF4EC,#fff)!important;border-color:#F6D2B8!important}
.dy-flame{font-size:1.7rem;line-height:1}
.dy-streak b{font-family:var(--serif);font-size:2.4rem;color:#C2571A;line-height:1.1}
.dy-streak span:last-child{font-size:.82rem;color:var(--grey)}
.dy-goal{display:flex;gap:14px;align-items:center}
.dy-ring{flex:none;width:104px;height:104px}
.dy-ring .rg-bg{fill:none;stroke:#E6ECF4;stroke-width:12}
.dy-ring .rg-fg{fill:none;stroke:#2AA89E;stroke-width:12;stroke-linecap:round;transition:stroke-dasharray .6s}
.dy-ring .rg-n{font:700 26px var(--sans, Inter, sans-serif);fill:#1E2B4D}
.dy-ring .rg-s{font:500 12px var(--sans, Inter, sans-serif);fill:#7A8499}
.dy-goal-set{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:.82rem;color:var(--grey)}
.dy-goal-set select{padding:5px 8px;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fff}
.dy-bk{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.dy-bk-top{display:flex;justify-content:space-between;gap:8px;font-size:.84rem}
.dy-bk-top span{color:var(--grey);white-space:nowrap}
.dy-bk li>i{display:block;height:7px;margin-top:5px;border-radius:4px;background:#EEF1F6;overflow:hidden}
.dy-bk li>i b{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#2F5DA8,#2AA89E)}

.dy-cal-grid--7{grid-template-columns:repeat(7,1fr);gap:10px}
.dy-cal-grid--7 .dy-bar-wrap{height:130px}
.dy-cal-grid--7 .dy-bar-wrap i{max-width:44px}
.dy-day.is-future .dy-date{opacity:.45;border-style:dashed}

.dy-two{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 14px}
.dy-box-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dy-box-h h3{margin:0}
.dy-count{min-width:34px;padding:3px 10px;border-radius:999px;background:#FDEDEA;color:#B4413A;font-weight:800;text-align:center}
.dy-count--gold{background:#FFF4DC;color:#8A6A22}
.dy-chbox{border-top:4px solid #E8836F}
.dy-vibox{border-top:4px solid #C9A24A}
.dy-weak{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px;padding:10px 12px;border-radius:12px;background:#FFF6F3}
.dy-weak small{width:100%;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:#B4413A;font-weight:700}
.dy-weak span{font-size:.82rem;padding:4px 10px;border-radius:999px;background:#fff;border:1px solid #F3CFC6}
.dy-weak span i{font-style:normal;color:var(--grey)}
.dy-chl{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}
.dy-ch,.dy-vi{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}
.dy-ch-q{margin:0 0 6px;font-weight:600;font-size:.92rem}
.dy-ch-u,.dy-ch-a{margin:0;font-size:.86rem}
.dy-ch-u span,.dy-ch-a span{color:var(--grey)}
.dy-ch-u s,.dy-vi-line s{color:#B4413A;text-decoration-thickness:2px}
.dy-ch-a b,.dy-vi-line b{color:#1E8F85}
.dy-ch details{margin:6px 0 0}
.dy-ch summary{cursor:pointer;font-size:.82rem;color:#2F5DA8;font-weight:600}
.dy-ch-why{margin:4px 0 0;font-size:.82rem;color:var(--grey)}
.dy-mini{display:inline-block;margin-top:8px;padding:5px 12px;border-radius:999px;font-size:.8rem;font-weight:600;text-decoration:none;color:#fff;background:#E8836F}
.dy-mini:hover{filter:brightness(1.07)}
.dy-vi{background:linear-gradient(160deg,#FFFDF5,#fff)}
.dy-vi-line{margin:0;font-size:.88rem}
.dy-vi small{display:block;margin-top:4px;color:#8A6A22;font-size:.76rem}
.dy-more{margin-top:10px;font-size:.86rem}

.dy-ulist{list-style:none;margin:0;padding:0}
.dy-u{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 2px;border-bottom:1px solid var(--line)}
.dy-u-l b{display:block;font-size:.98rem}
.dy-u-l small{display:block;color:var(--grey);font-size:.76rem}
.dy-u-t{display:block;color:var(--grey);font-size:.8rem;font-variant-numeric:tabular-nums;margin-top:2px}
.dy-u-r{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
.dy-done{padding:5px 12px;border-radius:999px;background:#E3F6F3;color:#1E8F85;font-weight:700;font-size:.85rem}
.dy-tbtn{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border-radius:10px;font-size:.84rem;font-weight:600;text-decoration:none;border:1.5px solid}
.dy-tbtn small{font-weight:500;opacity:.8}
.dy-tbtn em{font-style:normal;font-weight:700}
.dy-tbtn.is-ok{color:#1E8F85;border-color:#BFE7E2;background:#F2FBFA}
.dy-tbtn.is-bad{color:#B4413A;border-color:#F3CFC6;background:#FFF6F3}
.dy-tbtn:hover{filter:brightness(.97)}

.dy-rep .dy-card{max-width:460px;width:100%;padding:18px}
.dy-rep canvas{display:block;width:100%;height:auto;border-radius:12px;margin:12px 0}
.dy-rep-tabs{display:flex;gap:8px;justify-content:center}
.dy-rep .dy-field{justify-content:center}
.dy-rep a.dy-btn{text-decoration:none}

/* a task opened from the diary flashes once */
.eg-flash{animation:egFlash 2.4s ease}
@keyframes egFlash{0%,100%{box-shadow:none}15%,60%{box-shadow:0 0 0 4px rgba(42,168,158,.55),0 12px 30px -10px rgba(42,168,158,.6)}}

/* ===== the podium at the end of each teacher's floor ===== */
.pd-stage{display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:end;gap:4px;margin-top:6px}
.pd-col{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center}
.pd-medal{font-size:1.3rem;line-height:1}
.pd-name{display:block;max-width:100%;margin:3px 0 4px;font-size:.72rem;font-weight:700;color:var(--ink);line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-you{font-style:normal;font-size:.62rem;font-weight:700;color:#1E8F85;margin:-2px 0 3px}
.pd-step{display:grid;place-items:center;width:100%;border-radius:6px 6px 0 0;color:#fff;font-weight:800;font-family:var(--serif)}
.pd-1 .pd-step{height:62px;font-size:1.4rem;background:linear-gradient(180deg,#E2C27A,#C9A24A)}
.pd-2 .pd-step{height:44px;font-size:1.15rem;background:linear-gradient(180deg,#C9D0DC,#9AA5B6)}
.pd-3 .pd-step{height:32px;font-size:1rem;background:linear-gradient(180deg,#D9A57A,#B07A4B)}
.pd-col.is-me .pd-name{color:#1E8F85}
.rank-board .rb-dots{margin-top:0;border-top:3px solid #D8CDB3;padding-top:9px}

/* ===== the Achievements door (start of each teacher's floor) ===== */
.door--achieve .door-plaque--gold{background:linear-gradient(180deg,#F3E3B5,#D9B866)!important;border-color:#C9A24A!important}
.door--achieve .door-plaque--gold b{color:#3B2C08!important}
.door-ach-ic{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-size:2rem;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
a.door{text-decoration:none}

@media (max-width:980px){
  .dy-row3{grid-template-columns:1fr 1fr}
  .dy-books{grid-column:1/-1}
}
@media (max-width:820px){
  .dy-two{grid-template-columns:1fr}
  .dy-cal-grid--7{grid-template-columns:repeat(7,1fr);gap:4px}
  .dy-cal-grid--7 .dy-bar-wrap em{font-size:.58rem}
  .dy-top-r{width:100%}
}
@media (max-width:520px){
  .dy-row3{grid-template-columns:1fr}
  .dy-goal{flex-wrap:wrap}
}

/* ===== Achievements room ===== */
.ac-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.ac-head img{width:78px;height:78px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px #F3E3B5,0 10px 24px -12px rgba(19,28,53,.5)}
.ac-head h1{margin:2px 0 0;font-size:clamp(1.7rem,3.4vw,2.6rem)}
.ac-head .back-corridor{margin-left:auto}
.ac-eyebrow{margin:0;font-size:.76rem;letter-spacing:.16em;text-transform:uppercase;color:#8A6A22;font-weight:700}
.ac-stage-wrap{padding:28px 24px 22px;border-radius:22px;text-align:center;color:#fff;
  background:radial-gradient(90% 70% at 50% 0%,rgba(226,194,122,.25),transparent 60%),radial-gradient(80% 80% at 100% 100%,rgba(120,150,230,.25),transparent 60%),linear-gradient(160deg,#34508F,#26396A);
  box-shadow:0 22px 40px -26px rgba(19,28,53,.8)}
.ac-stage-wrap h2{margin:0 0 18px;font-size:1.3rem;color:#F3E3B5}
.ac-stage-wrap .dy-empty{color:#C9D4EC}
.ac-stage{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:10px;max-width:560px;margin:0 auto}
.ac-col{display:flex;flex-direction:column;align-items:center;min-width:0}
.ac-medal{font-size:2.4rem;line-height:1}
.ac-name{margin:6px 0 8px;font-size:1.05rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac-col.is-me .ac-name{color:#5FE3D6}
.ac-step{display:grid;place-items:center;width:100%;border-radius:10px 10px 0 0;font-family:var(--serif);font-weight:700;color:#fff}
.ac-1 .ac-step{height:140px;font-size:2.6rem;background:linear-gradient(180deg,#E2C27A,#B68E37)}
.ac-2 .ac-step{height:100px;font-size:2rem;background:linear-gradient(180deg,#D3D9E3,#98A3B5)}
.ac-3 .ac-step{height:72px;font-size:1.7rem;background:linear-gradient(180deg,#DDAA7F,#A8723F)}
.ac-you{margin:18px 0 0;font-weight:600;color:#E3FBF8}
.ac-you a{color:#F3E3B5}
.ac-how{margin:8px auto 0;max-width:560px;font-size:.8rem;color:#C9D4EC}
.ac-teacher{margin-top:22px}
.ac-gate{max-width:440px;margin-left:auto;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.ac-gate summary{cursor:pointer;font-weight:600;color:#1E2B4D}
.ac-gate form{margin-top:12px}
.ac-list-h{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.ac-list-h h2{margin:0;font-size:1.3rem}
.ac-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ac-st{padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.ac-st-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ac-st-top small{display:block;color:var(--grey);font-size:.78rem}
.ac-nums{display:flex;gap:14px;flex-wrap:wrap;margin-left:auto;font-size:.82rem;color:var(--grey)}
.ac-nums b{color:#1E2B4D;font-size:1rem}
.ac-last{margin:10px 0 0;padding:10px 12px;border-radius:10px;background:#FFF9EA;font-size:.9rem}
.ac-last small{display:block;color:#7A5A10;font-weight:600;font-size:.74rem}
.ac-note{margin-top:10px;display:grid;gap:8px}
.ac-note textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;resize:vertical}
.ac-note>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
@media (max-width:620px){ .ac-1 .ac-step{height:100px} .ac-2 .ac-step{height:74px} .ac-3 .ac-step{height:54px} .ac-name{font-size:.85rem} .ac-medal{font-size:1.8rem} }
.corridor .door.door--achieve .door-plaque{background:linear-gradient(180deg,#F3E3B5,#D9B866);border-color:#C9A24A;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.corridor .door.door--achieve .door-plaque b{color:#3B2C08;font-size:.92em}
.pd-name{white-space:normal;overflow-wrap:anywhere;font-size:.7rem}

/* ranking list (no podium): top three with medals */
.rb-n.rb-medal{background:none!important;width:22px;height:22px;font-size:1.05rem}
.rank-board .rb-row{grid-template-columns:22px 1fr}
.ac-rank{list-style:none;margin:0 auto;padding:0;max-width:560px;display:grid;gap:12px;text-align:left}
.ac-row{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto 8px;column-gap:12px;row-gap:6px;align-items:center;
  padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14)}
.ac-row .ac-medal{grid-row:1/3;font-size:2rem;text-align:center}
.ac-row .ac-name{margin:0;font-size:1.15rem;white-space:normal}
.ac-row .ac-name i{font-style:normal;color:#5FE3D6;font-size:.9rem}
.ac-bar{display:block;height:8px;border-radius:4px;background:rgba(255,255,255,.12);overflow:hidden}
.ac-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#2AB5A9,#5FE3D6)}
.ac-row:first-child{background:rgba(226,194,122,.16);border-color:rgba(226,194,122,.45)}
.ac-row:first-child .ac-bar i{background:linear-gradient(90deg,#C9A24A,#F3E3B5)}
.ac-row.is-me .ac-name{color:#5FE3D6}
.corridor .door.door--achieve .door-plaque{background:linear-gradient(180deg,#F3E3B5,#D9B866)!important;border-color:#C9A24A!important}
.corridor .door.door--achieve .door-plaque b{color:#3B2C08!important}

/* ===== Diary v4: level card + small week chart ===== */
.dy-row2{display:grid;grid-template-columns:1fr 1.25fr;gap:12px;margin:0 0 14px}
.dy-lvl{display:flex;align-items:center;gap:16px;padding:16px 18px!important;background:linear-gradient(150deg,#FFFDF6,#FFF6E0)!important;border-color:#EBD39A!important}
.dy-lvl-badge,.dy-up-badge{flex:none;position:relative;display:grid;place-items:center;width:74px;height:74px;
  background:linear-gradient(160deg,#F3E3B5,#C9A24A);clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%)}
.dy-lvl-badge span,.dy-up-badge span{display:grid;place-items:center;width:60px;height:60px;background:linear-gradient(160deg,#24345E,#1A2646);
  clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);color:#F3E3B5;font:700 1.7rem var(--serif)}
.dy-lvl-txt{flex:1;min-width:0}
.dy-lvl-txt small{display:block;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:#8A6A22;font-weight:700}
.dy-lvl-txt b{display:block;font-size:1.15rem;color:#1E2B4D;margin:2px 0 8px}
.dy-lvl-bar{height:9px;border-radius:5px;background:#EFE4C6;overflow:hidden}
.dy-lvl-bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#C9A24A,#E2C27A)}
.dy-lvl-txt>span{display:block;margin-top:6px;font-size:.8rem;color:var(--grey)}
.dy-eng{display:inline-block;margin-top:8px;font-style:normal;font-size:.78rem;padding:3px 10px;border-radius:999px;background:#fff;border:1px solid #EBD39A;color:#5A4110}
.dy-week{padding:14px 16px 6px;border-radius:16px;color:#E9EDF5;
  background:radial-gradient(90% 80% at 0% 0%,rgba(52,200,187,.18),transparent 60%),radial-gradient(80% 80% at 100% 100%,rgba(120,150,230,.22),transparent 60%),linear-gradient(160deg,#34508F,#2B4278 60%,#26396A);
  box-shadow:0 14px 28px -20px rgba(19,28,53,.7)}
.dy-week .dy-cal-head h3{font-size:.95rem}
.dy-wk{display:block;width:100%;height:auto;max-height:170px}
.dy-wk .wk-base{stroke:rgba(255,255,255,.18);stroke-width:1}
.dy-wk .wk-col{fill:rgba(95,227,214,.35)}
.dy-wk .wk-line{fill:none;stroke:#5FE3D6;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.dy-wk .wk-dot{fill:#1E2B4D;stroke:#5FE3D6;stroke-width:2.5}
.dy-wk .wk-dot.is-today{fill:#5FE3D6;stroke:#fff}
.dy-wk .wk-n{fill:#fff;font:700 12px Inter,Arial,sans-serif}
.dy-wk .wk-d{fill:#BFD0F2;font:600 10px Inter,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.dy-wk .wk-dn{fill:#fff;font:600 13px Inter,Arial,sans-serif}
.dy-wk .is-today{fill:#5FE3D6}
.dy-wk .is-future{opacity:.4}
.dy-up .dy-card{max-width:360px;text-align:center;padding:30px 24px}
.dy-up .dy-up-badge{margin:0 auto;width:96px;height:96px;animation:egPop .6s cubic-bezier(.2,1.6,.4,1)}
.dy-up .dy-up-badge span{width:78px;height:78px;font-size:2.2rem}
.dy-up h2{margin:14px 0 6px;font-size:1.8rem}
.dy-up p{color:var(--grey);margin:0 0 18px}
.dy-up .dy-field{justify-content:center}
@keyframes egPop{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
@media (max-width:860px){ .dy-row2{grid-template-columns:1fr} }

/* ===== My road (diary) ===== */
.rm{position:relative;margin:0 0 16px;border-radius:22px;overflow:hidden;background:#fff;border:1px solid var(--line);box-shadow:0 22px 40px -28px rgba(19,28,53,.55)}
.rm-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;padding:20px 22px 8px}
.rm-head small{display:block;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:#8A6A22;font-weight:700}
.rm-head h2{margin:4px 0 2px;font-family:var(--serif);font-size:1.9rem;font-weight:600;color:#1E2B4D}
.rm-head p{margin:0;color:var(--grey);font-size:.92rem;max-width:560px}
.rm-chips{display:flex;gap:8px;flex-wrap:wrap}
.rm-chip{display:flex;flex-direction:column;align-items:center;min-width:88px;padding:8px 14px;border-radius:14px;background:#F4F6FA;border:1px solid var(--line)}
.rm-chip b{font-family:var(--serif);font-size:1.5rem;color:#1E2B4D;line-height:1.1}
.rm-chip span{font-size:.66rem;color:var(--grey);text-transform:uppercase;letter-spacing:.08em;text-align:center}
.rm-chip--now{background:#E3F6F3;border-color:#BFE7E2}.rm-chip--now b{color:#1E8F85}
.rm-chip--goal{background:#FFF6E0;border-color:#EBD39A}.rm-chip--goal b{color:#8A6A22}
.rm-chip--steps{background:#1E2B4D;border-color:#1E2B4D}.rm-chip--steps b{color:#F3E3B5}.rm-chip--steps span{color:#C9D4EC}
.rm svg.map{display:block;width:100%;height:auto}
.rm .rm-lbl{font:700 13px var(--sans,'Noto Sans',Arial,sans-serif);fill:#1E2B4D}
.rm .rm-sub{font:400 10.5px var(--sans,'Noto Sans',Arial,sans-serif);fill:#5E6E77}
.rm .rm-lbl-s{font:700 11px var(--sans,'Noto Sans',Arial,sans-serif);fill:#1E8F85}
.rm-stone{cursor:pointer}
.rm-stone .rm-st-c{fill:#fff;stroke-width:3;transition:r .2s}
.rm-stone--g .rm-st-c{stroke:#2F5DA8}.rm-stone--g .rm-st-t{fill:#2F5DA8}
.rm-stone--v .rm-st-c{stroke:#1E8F85}.rm-stone--v .rm-st-t{fill:#1E8F85}
.rm-stone--test .rm-st-c,.rm-stone--flag .rm-st-c{stroke:#C9A24A}.rm-stone--test .rm-st-t,.rm-stone--flag .rm-st-t{fill:#8A6A22}
.rm-stone .rm-st-t{font:800 11px var(--sans,'Noto Sans',Arial,sans-serif)}
.rm-stone:hover .rm-st-c{fill:#FFF6E0}
.rm-flag{cursor:pointer}
.rm-gate.is-open path{animation:rmGlow 1.6s ease-in-out infinite}
@keyframes rmGlow{50%{stroke-width:9}}
.rm-pulse{fill:#D7263D;opacity:.4;animation:rmPulse 1.8s ease-out infinite}
@keyframes rmPulse{0%{r:14;opacity:.5}100%{r:34;opacity:0}}
.rm-next{display:flex;gap:10px 14px;align-items:center;flex-wrap:wrap;padding:12px 22px 4px}
.rm-next>b{font-size:.85rem;color:#1E2B4D}
.rm-next>div{display:flex;gap:8px;flex-wrap:wrap}
.rm-ns{display:inline-flex;align-items:center;gap:7px;padding:6px 12px 6px 6px;border-radius:999px;border:1.5px solid var(--line);background:#fff;font-size:.82rem;font-weight:600;color:#1E2B4D;text-decoration:none}
.rm-ns i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-style:normal;font-size:.72rem;font-weight:800;color:#fff}
.rm-ns--g i{background:#2F5DA8}.rm-ns--v i{background:#1E8F85}.rm-ns--test i,.rm-ns--flag i{background:#C9A24A}
.rm-ns:hover{border-color:#2AA89E;background:#F2FBFA}
.rm-gate-open{margin:12px 22px 0;padding:10px 14px;border-radius:12px;background:#FFF6E0;color:#5A4110;font-weight:600}
.rm-gate-open a{color:#8A6A22}
.rm-foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 22px 18px}
.rm-bar{flex:1;min-width:220px}
.rm-bar-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.85rem;color:#1E2B4D;font-weight:600;margin-bottom:6px}
.rm-bar-top span{color:var(--grey);font-weight:500}
.rm-bar>i{display:block;height:10px;border-radius:6px;background:#EEF1F6;overflow:hidden}
.rm-bar>i b{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#2AA89E,#5FE3D6)}
.rm-key{display:flex;gap:14px;flex-wrap:wrap;font-size:.78rem;color:var(--grey)}
.rm-key span{display:inline-flex;align-items:center;gap:6px}
.rm-key .k-dot{width:10px;height:10px;border-radius:50%;background:#1E8F85}
.rm-key .k-stone{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;border:2px solid #2F5DA8;font-style:normal;font-size:.55rem;font-weight:800;color:#2F5DA8}
.rm-key .k-flag{width:12px;height:12px;background:linear-gradient(180deg,#F1D88E,#C9A24A);clip-path:polygon(0 0,100% 40%,0 80%)}
.rm-key .k-gate{width:14px;height:12px;border:3px solid #C9A24A;border-bottom:0;border-radius:7px 7px 0 0}
@media (max-width:620px){ .rm-head h2{font-size:1.5rem} .rm-chip{min-width:74px;padding:6px 10px} .rm-chip b{font-size:1.2rem} }
.rm .rm-lbl-l{font:700 10px var(--sans,'Noto Sans',Arial,sans-serif);fill:#8C96AB}
.rm-map{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}

/* road v2: plain task dots, test dots gold */
.rm-stone .rm-st-hit{fill:transparent}
.rm-stone .rm-st-c{fill:#fff;stroke:#1E8F85;stroke-width:3;transition:r .18s ease}
.rm-stone .rm-st-c.is-test{stroke:#C9A24A}
.rm-stone:hover .rm-st-c,.rm-stone:focus .rm-st-c{fill:#E3F6F3}
.rm-stone:hover .rm-st-c.is-test{fill:#FFF6E0}
.rm-ns i{width:14px;height:14px;background:#fff!important;border:3px solid #1E8F85}
.rm-ns.is-test i{border-color:#C9A24A}
.rm-key .k-stone{width:12px;height:12px;border:3px solid #1E8F85;background:#fff}

/* ===== My class, reminders, install, splash ===== */
.dy-remind{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 12px;padding:14px 18px;border-radius:16px;background:linear-gradient(135deg,#FFF6E6,#FFEFD6);border:1px solid #F1CD8E}
.dy-remind>div{flex:1;min-width:200px}
.dy-remind b{display:block;color:#5A3A08;font-size:1.02rem}
.dy-remind p{margin:2px 0 0;color:#7A5A28;font-size:.9rem}
.dy-remind-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;font-size:1.25rem;box-shadow:0 4px 10px -6px rgba(90,58,8,.5)}
.dy-remind.is-done{background:linear-gradient(135deg,#E9F8F5,#DDF3EF);border-color:#9EDBD2}
.dy-remind.is-done b{color:#14675F}.dy-remind.is-done p{color:#1E8F85;font-weight:600}
.dy-remind.is-done .dy-remind-ic{color:#1E8F85;font-weight:800}
.dy-remind--pc{background:linear-gradient(135deg,#F3F6FC,#EAF0FA);border-color:#C9D6EE}
.dy-remind--pc b{color:#1E2B4D}.dy-remind--pc p{color:#4A5875}
.dy-remind .dy-btn{white-space:nowrap;text-decoration:none}
.dy-class{margin:0 0 16px}
.dy-class-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.dy-class-h h3{margin:0}
.dy-class-h span{color:var(--grey);font-size:.85rem}
.dy-class-next{display:inline-flex;flex-direction:column;margin:12px 0 4px;padding:10px 16px;border-radius:12px;background:#1E2B4D;color:#fff}
.dy-class-next small{font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:#C9D4EC}
.dy-class-next b{font-size:1.05rem;color:#F3E3B5}
.dy-bd-date{margin:12px 0 8px;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--grey);font-weight:600}
.dy-bd-hw{padding:12px 14px;border-radius:12px;background:#FFF9EA;border:1px solid #EBD39A;margin-bottom:10px}
.dy-bd-hw small,.dy-bd-row small{display:block;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8A6A22}
.dy-bd-row small{color:var(--grey)}
.dy-bd-hw p{margin:4px 0 0;font-size:1rem;color:#2B2008}
.dy-bd-row{padding:6px 2px}
.dy-bd-row p{margin:2px 0 0;font-size:.93rem}
.dy-bd-row a{display:inline-block;margin:2px 8px 2px 0;color:#2F5DA8}
.dy-install{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px;background:linear-gradient(135deg,#F4F7FC,#fff)!important}
.dy-install img{border-radius:14px;box-shadow:0 6px 14px -8px rgba(19,28,53,.6)}
.dy-install>div{flex:1;min-width:200px}
.dy-install p{margin:2px 0 0;font-size:.86rem;color:var(--grey)}
.dy-splash{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  background:radial-gradient(70% 60% at 30% 20%,rgba(52,200,187,.25),transparent 70%),linear-gradient(160deg,#2B4278,#16213F);color:#fff;transition:opacity .55s ease}
.dy-splash img{width:132px;height:132px;border-radius:30px;box-shadow:0 18px 40px -16px rgba(0,0,0,.6)}
.dy-splash b{font-family:var(--serif);font-size:1.7rem;color:#F3E3B5;text-align:center;padding:0 20px}
.dy-splash small{letter-spacing:.2em;text-transform:uppercase;color:#C9D4EC;font-size:.7rem}
.dy-splash.is-out{opacity:0}

/* ===== diary v5: presence, extra tasks, one Done, steps from classes ===== */
.dy-class-top{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin:12px 0 4px}
.dy-class-top .dy-class-next{margin:0}
.dy-pres{flex:1;min-width:240px;padding:10px 14px;border-radius:12px;background:#F6F8FC;border:1px solid #E1E7F1}
.dy-pres-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}
.dy-pres-h b{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:#4A5875}
.dy-pres-h small{color:var(--grey);font-size:.78rem}
.dy-pr-row{display:flex;flex-wrap:wrap;gap:6px}
.dy-pr{display:inline-flex;align-items:center;gap:5px;padding:4px 9px 4px 5px;border-radius:999px;background:#fff;border:1px solid #DCE3EE;font-size:.8rem;font-weight:600;color:#4A5875;text-decoration:none;white-space:nowrap}
.dy-pr i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#E8EDF5;font-style:normal;font-size:.7rem;color:#7A879C}
.dy-pr.is-ok{border-color:#9EDBD2;background:#EFFAF8;color:#14675F}
.dy-pr.is-ok i{background:#2AA89E;color:#fff}
.dy-pr.is-miss{border-color:#F2B8C0;background:#FFF3F4;color:#9B1C2E}
.dy-pr.is-miss i{background:#D7263D;color:#fff}
.dy-pr.is-miss span{font-weight:700;color:#D7263D;margin-left:2px}
.dy-pr.is-miss:hover{background:#FFE7EA}
.dy-pr.is-soon{border-style:dashed;background:transparent}
.dy-pr.is-soon span{font-weight:500;color:var(--grey)}
.dy-extra{margin-top:10px;padding-top:10px;border-top:1px dashed #E6CD8C}
.dy-extra>b{display:block;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#8A6A22;margin-bottom:6px}
.dy-extra>div{display:flex;flex-wrap:wrap;gap:8px}
.dy-extra a{display:inline-flex;align-items:center;gap:7px;padding:6px 12px 6px 6px;border-radius:999px;background:#fff;border:1px solid #E6CD8C;color:#5A3A08;font-weight:600;font-size:.88rem;text-decoration:none}
.dy-extra a i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#C9A24A;color:#fff;font-style:normal;font-size:.75rem}
.dy-extra a span{color:#A08550;font-weight:500;font-size:.78rem}
.dy-extra a:hover{background:#FFF3D6}
.dy-bd-hw a{color:#2F5DA8;word-break:break-all}
.dy-hw-done{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:12px}
.dy-hw-done small{color:#8A6A22;font-size:.8rem;flex:1;min-width:200px}
.dy-hw-done.is-done{padding:9px 14px;border-radius:10px;background:#E9F8F5;border:1px solid #9EDBD2}
.dy-hw-done.is-done b{color:#14675F}
.dy-hw-done.is-done span{color:#1E8F85;font-weight:700}
.dy-remind--pc.is-due{background:linear-gradient(135deg,#FFF1F2,#FDE6E9);border-color:#F2B8C0}
.dy-remind--pc.is-due b{color:#9B1C2E}
.rm-cls{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:12px;padding:10px 14px;border-radius:12px;background:#F3F6FC;border:1px solid #DCE3EE}
.rm-cls b{font-size:.85rem;color:#1E2B4D;margin-right:4px}
.rm-cls b em{font-style:normal;color:#1E8F85}
.rm-cls span{padding:3px 10px;border-radius:999px;background:#fff;border:1px solid #DCE3EE;font-size:.8rem;color:#4A5875}
.rm-flag.is-due{animation:rmWave 1.6s ease-in-out infinite;transform-box:fill-box;transform-origin:bottom left}
@keyframes rmWave{0%,100%{transform:rotate(0)}50%{transform:rotate(-6deg)}}
@media (prefers-reduced-motion:reduce){.rm-flag.is-due{animation:none}}
.rm .rm-cls{margin:0 22px 20px}
@media (max-width:640px){.rm .rm-cls{margin:0 14px 16px}}

/* ===== road v3: one circle per unit, growing toward her; green / orange done units; finish line ===== */
.rm-stone .rm-st-c{fill:#fff;stroke:#1E8F85;stroke-width:2.4;transition:transform .18s ease,fill .18s ease}
.rm-stone:hover .rm-st-c,.rm-stone:focus .rm-st-c{transform:scale(1.45);fill:#E3F6F3}
.rm-stone.is-next .rm-st-c{stroke-width:3.2;fill:#E3F6F3;filter:drop-shadow(0 2px 3px rgba(19,33,58,.25))}
.rm-stone.is-next:hover .rm-st-c,.rm-stone.is-next:focus .rm-st-c{transform:scale(1.06);fill:#C9F1EB}
.rm-stone.is-test .rm-st-c{stroke:#C9A24A}
.rm-stone.is-test:hover .rm-st-c{fill:#FFF6E0}
.rm-stone .rm-st-prog{fill:none;stroke:#F0A04B;stroke-width:3.2;stroke-linecap:round;pointer-events:none}
.rm-past{cursor:pointer}
.rm-past .rm-hit{fill:transparent}
.rm-past .rm-pc{stroke:#fff;stroke-width:1.6;transition:transform .18s ease}
.rm-past.is-ok .rm-pc{fill:#2AA89E}
.rm-past.is-redo .rm-pc{fill:#F0A04B}
.rm-past:hover .rm-pc,.rm-past:focus .rm-pc{transform:scale(1.5)}
.rm-finish{cursor:pointer}
.rm-finish:hover rect{fill:#B38C33}
.rm-key .k-ok,.rm-key .k-redo{width:11px;height:11px;border-radius:50%;background:#2AA89E}
.rm-key .k-redo{background:#F0A04B}
.rm-key .k-finish{width:16px;height:8px;background:repeating-conic-gradient(#1E2B4D 0 25%,#fff 0 50%) 0 0/8px 8px;border:1px solid #1E2B4D}
.rm-ns.is-first{border-color:#1E8F85;background:#F2FBFA}
.rm-ns small{color:#C77A1E;font-weight:700}

/* ===== diary v6: simpler ===== */
.dy-mclock{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;background:#fff;border:1px solid #EBD39A;box-shadow:0 6px 14px -10px rgba(90,58,8,.5)}
.dy-mclock-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#FFF6E0}
.dy-mclock-ic svg{width:24px;height:24px}
.dy-mclock b{font-size:1.15rem;color:#1E2B4D;line-height:1}
.dy-mclock small{color:#8A6A22;font-size:.78rem;font-weight:600;line-height:1.1;max-width:70px}
.dy-stats--2{grid-template-columns:repeat(2,1fr)}
.dy-stats:not(.dy-stats--2){grid-template-columns:repeat(3,1fr)}
.dy-row2--wk{grid-template-columns:1fr 200px}
.dy-row2--wk .dy-streak{padding:18px;align-items:center;text-align:center}
.dy-row3--2{grid-template-columns:1fr 1.2fr}
.dy-bk-k{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--grey);margin-bottom:-6px}
.dy-bk-sel{font:inherit;font-size:.86rem;font-weight:700;color:#1E2B4D;border:1px solid var(--line);border-radius:8px;padding:4px 8px;background:#fff;max-width:62%;cursor:pointer}
.dy-bk-hint{margin:10px 0 0;font-size:.78rem;color:var(--grey)}
@media (max-width:760px){
  .dy-row2--wk,.dy-row3--2{grid-template-columns:1fr}
  .dy-stats:not(.dy-stats--2){grid-template-columns:1fr 1fr}
  .dy-mclock small{max-width:none}
}
.dy-row3--2>*,.dy-row2--wk>*{min-width:0}
.dy-books .dy-bk-top{flex-wrap:wrap;align-items:center}
.dy-books .dy-bk-sel{flex:1 1 180px;min-width:0;max-width:100%;text-overflow:ellipsis}
.dy-books .dy-bk{grid-template-columns:minmax(0,1fr)}
.dy-books .dy-bk-top span{white-space:normal}
/* the diary is showing the copy kept on this device while the newest one comes */
.is-updating .dy-top h1::after{content:'';display:inline-block;width:14px;height:14px;margin-left:12px;border:2px solid #D8E1EE;border-top-color:#1E8F85;border-radius:50%;vertical-align:middle;animation:dySpin .8s linear infinite}
@keyframes dySpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.is-updating .dy-top h1::after{animation:none}}

/* ===== road v4: circles to the finish line, one named flag, units from the notice board ===== */
.rm-past .rm-pc{stroke:#fff;stroke-width:2;filter:drop-shadow(0 1px 2px rgba(19,33,58,.3))}
.rm-past .rm-pc-i{fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.rm-stone.is-far .rm-st-c{stroke-width:1.6}
.rm-stone.is-far:hover .rm-st-c{transform:scale(2.2)}
.rm-flag-t{font:700 10px var(--sans,'Inter',Arial,sans-serif);fill:#8A6A22}
.rm-units{display:flex;flex-wrap:wrap;gap:10px 14px;padding:12px 22px 4px}
.rm-u{display:flex;flex-direction:column;gap:6px;padding:10px 14px;border-radius:14px;background:#F6F8FC;border:1px solid #E1E7F1;min-width:0}
.rm-u small{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--grey)}
.rm-u>div{display:flex;flex-wrap:wrap;gap:8px}
.rm-u.is-now{background:#EFFAF8;border-color:#9EDBD2}
.rm-u.is-now small{color:#14675F}
@media (max-width:640px){.rm-units{padding:12px 14px 4px}.rm-u{flex:1 1 100%}}

/* ===== diary v7: one clean page ===== */
.dy-btn--sm{padding:9px 14px;font-size:.88rem}
.dy-top-r{gap:8px}
/* road: small chips  A1 ——— 106 steps ——— A2 */
.rm-bar2{display:flex;align-items:center;gap:12px;padding:14px 22px}
.rm-lv{flex:none;display:grid;place-items:center;min-width:46px;height:34px;padding:0 10px;border-radius:10px;font:700 1rem/1 var(--serif,Georgia,serif)}
.rm-lv.is-now{background:#E3F6F3;color:#14675F;border:1px solid #9EDBD2}
.rm-lv.is-goal{background:#FFF6E0;color:#8A6A22;border:1px solid #E2C27A}
.rm-way{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.rm-way>i{display:block;height:6px;border-radius:3px;background:#EEF1F6;overflow:hidden}
.rm-way>i b{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#2AA89E,#5FE3D6)}
.rm-way>span{font-size:.8rem;color:var(--grey);text-align:center}
.rm-way>span b{color:#1E2B4D;font-size:.95rem}
.rm-mapwrap{position:relative}
.rm-sky{position:absolute;left:14px;top:12px;z-index:2;display:flex;align-items:center;gap:7px;padding:5px 12px 5px 5px;border-radius:999px;background:rgba(255,255,255,.88);border:1px solid #E2E8F2;box-shadow:0 6px 14px -10px rgba(19,33,58,.5)}
.rm-sky svg{width:30px;height:30px}
.rm-sky b{font-size:1.05rem;color:#1E2B4D;line-height:1}
.rm-sky small{font-size:.74rem;color:var(--grey);font-weight:600}
.rm-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;padding:12px 22px 4px;font-size:.88rem;color:#4A5875}
.rm-hint span{display:inline-flex;align-items:center;gap:5px;font-size:.78rem;color:var(--grey)}
.rm-hint i{width:10px;height:10px;border-radius:50%;background:#2AA89E}
.rm-hint i.k-redo{background:#F0A04B}
.rm .rm-units{padding-bottom:18px}
.rm .rm-gate-open{margin-bottom:18px}
.rm>.rm-hint:last-child{padding-bottom:18px}
.rm-ghost{pointer-events:none}
/* my class: two buttons */
.dy-class-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 8px}
.dy-cbtn{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:14px;border:1px solid var(--line);background:#fff;font:inherit;text-align:left;color:#1E2B4D;text-decoration:none;cursor:pointer;min-width:0}
.dy-cbtn>span:first-child{font-size:1.35rem}
.dy-cbtn>span:nth-child(2){flex:1;display:flex;flex-direction:column;min-width:0}
.dy-cbtn small{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--grey)}
.dy-cbtn b{font-size:1rem}
.dy-cbtn i{font-style:normal;color:var(--grey)}
.dy-cbtn--hw{background:#FFF9EA;border-color:#EBD39A}
.dy-cbtn--hw small{color:#8A6A22}
.dy-cbtn--hw:hover{background:#FFF3D6}
.dy-cbtn--meet{background:#1E2B4D;border-color:#1E2B4D;color:#fff}
.dy-cbtn--meet small{color:#C9D4EC}.dy-cbtn--meet b{color:#F3E3B5}.dy-cbtn--meet i{color:#F3E3B5}
a.dy-cbtn--meet:hover{background:#26386A}
.dy-class .dy-pres{margin:4px 0 0}
.dy-class-board{margin-top:6px}
@media (max-width:640px){.dy-class-btns{grid-template-columns:1fr}}
/* floating progress check reminder */
.dy-float{position:fixed;right:18px;bottom:18px;z-index:60;display:flex;align-items:center;gap:4px;padding:6px 6px 6px 8px;border-radius:999px;background:#fff;border:1.5px solid #E2C27A;box-shadow:0 18px 40px -16px rgba(19,33,58,.55);transform:translateY(140%);opacity:0;transition:transform .5s cubic-bezier(.2,.9,.3,1.2),opacity .3s}
.dy-float.is-in{transform:none;opacity:1}
.dy-float.no-anim{transition:none}
.dy-float a{display:flex;align-items:center;gap:10px;text-decoration:none;color:#1E2B4D;padding:4px 8px 4px 2px}
.dy-float-ic{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#FFF6E0;font-size:1.15rem;animation:dyRing 2.4s ease-in-out 1s 3}
.dy-float b{display:block;font-size:.95rem}
.dy-float small{display:block;font-size:.78rem;color:#8A6A22}
.dy-float a>i{font-style:normal;font-weight:700;color:#8A6A22}
.dy-float button{border:0;background:transparent;color:var(--grey);font-size:.9rem;width:30px;height:30px;border-radius:50%;cursor:pointer}
.dy-float button:hover{background:#F2F4F8}
.dy-float.is-due{border-color:#F2B8C0}
.dy-float.is-due .dy-float-ic{background:#FFF1F2}
@keyframes dyRing{0%,100%{transform:rotate(0)}10%{transform:rotate(14deg)}20%{transform:rotate(-12deg)}30%{transform:rotate(8deg)}40%{transform:rotate(-5deg)}50%{transform:rotate(0)}}
@media (prefers-reduced-motion:reduce){.dy-float{transition:none}.dy-float-ic{animation:none}}
@media (max-width:640px){.dy-float{left:12px;right:12px;bottom:12px;justify-content:space-between}}
/* weekly report / my books windows */
.dy-sheet .dy-card{width:min(640px,100%);max-height:88vh;overflow:auto;text-align:left}
.dy-sheet-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.dy-sheet-h h2{margin:0;font-size:1.3rem}
.dy-x{border:0;background:#F2F4F8;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:.95rem;color:#4A5875}
.dy-sheet .dy-goal{display:flex;align-items:center;gap:16px;margin-top:14px;padding:14px;border-radius:14px;background:#F6F8FC}
.dy-sheet .dy-goal .dy-ring{width:110px;height:110px;flex:none}
.dy-sheet .dy-week{margin:0}
.dy-sheet .dy-card{max-width:640px;padding:22px}
@media (max-width:640px){
  .dy-top-r .dy-btn--sm{padding:8px 12px;font-size:.84rem}
  .dy-top-r .back-corridor{font-size:.84rem}
  .rm-bar2{padding:12px 14px}
  .rm-hint{padding:12px 14px 4px}
}
/* the sky: today's clock and today's steps */
.rm-sky{flex-direction:column;align-items:stretch;gap:2px;padding:6px 12px 6px 6px;border-radius:16px}
.rm-sky-r{display:flex;align-items:center;gap:7px}
.rm-steps{padding-left:3px}
.rm-feet{display:inline-flex;gap:1px;min-width:24px;justify-content:center}
.rm-feet svg{width:20px;height:20px;fill:#1E8F85}
.rm-feet svg.is-off{fill:#C9D3E2}
.rm-steps b{font-size:1.05rem;color:#1E2B4D;line-height:1}
.rm-steps small{font-size:.74rem;color:var(--grey);font-weight:600}

/* ===== the staircase: pearl steps in a deep blue evening sky ===== */
.rm--stairs .rm-title{margin:0;padding:18px 22px 0;font:600 1.35rem/1.2 var(--serif,'Playfair Display',Georgia,serif);color:#1E2B4D}
.rm--stairs .rm-map{background:#1B2F60}
.rm--stairs .rm-map svg{display:block;width:100%;height:auto}
.rm--stairs .rm-sky{background:rgba(12,24,56,.55);border:1px solid rgba(233,201,120,.4);box-shadow:0 10px 24px -14px rgba(0,0,0,.6);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.rm--stairs .rm-sky b{color:#fff}
.rm--stairs .rm-sky small{color:#C9D4EC}
.rm--stairs .rm-sky .eg-clock .ck-face{fill:rgba(255,255,255,.08);stroke:#E9C978}
.rm--stairs .rm-sky .eg-clock .ck-marks line,.rm--stairs .rm-sky .eg-clock .ck-min{stroke:#fff}
.rm--stairs .rm-feet svg{fill:#E9C978}
.rm--stairs .rm-feet svg.is-off{fill:rgba(255,255,255,.3)}
.st-step{cursor:default}
a.st-step{cursor:pointer}
.st-lift{transition:transform .2s ease,filter .2s ease}
a.st-step:hover .st-lift,a.st-step:focus .st-lift{transform:translateY(-4px);filter:brightness(1.08)}
.st-plq{font:700 10.5px Inter,Arial,sans-serif;letter-spacing:1.2px;fill:#F8E7B6}
.st-plq.is-gold{fill:#1E2B4D}
.st-plq--s{font-size:9.5px;letter-spacing:.8px}
.st-lc,.st-flag{cursor:pointer}
.st-lc:hover rect,.st-flag:hover rect{fill:rgba(233,201,120,.25)}
.st-flag.is-due{animation:stPulse 1.8s ease-in-out infinite}
@keyframes stPulse{0%,100%{opacity:1}50%{opacity:.65}}
.st-quote{font:italic 600 15px 'Playfair Display',Georgia,serif;fill:rgba(255,255,255,.78)}
.rm-hint em{font-style:normal;font-weight:600;color:#1E2B4D}
.rm-hint i{border-radius:3px}
.rm-hint i.k-ok{background:#D9B45C}
.rm-hint i.k-next{background:#5FE3D6}
@media (prefers-reduced-motion:reduce){.st-lift{transition:none}.st-flag.is-due{animation:none}}
/* weekly report: narrower */
.dy-sheet--week .dy-card{max-width:500px}
.dy-sheet--week .dy-week svg{max-height:150px}
/* next class: brighter blue, no camera */
.dy-cbtn--meet{background:linear-gradient(135deg,#3B6FC9,#2F5DA8);border-color:#2F5DA8}
.dy-cbtn--meet small{color:#DCE7FA}.dy-cbtn--meet b{color:#fff}.dy-cbtn--meet i{color:#fff}
a.dy-cbtn--meet:hover{background:linear-gradient(135deg,#4A7DD6,#3566B8)}
/* challenges: "correction waiting" tag */
.dy-ch-tag{display:inline-block;margin-bottom:6px;padding:2px 9px;border-radius:999px;background:#FFF3E3;color:#B4691E;font-size:.72rem;font-weight:700;letter-spacing:.02em}
/* home task pop-up */
.dy-hwpop .dy-card{max-width:400px}
.dy-hwpop-ic{width:56px;height:56px;margin:0 auto 10px;display:grid;place-items:center;border-radius:50%;background:#FFF6E0;font-size:1.6rem}
.dy-hwpop h2{margin:0 0 8px;font-size:1.3rem}
.dy-hwpop p{margin:0 0 16px;color:#4A5568}
.dy-cbtn--meet>span:first-child{flex:1;display:flex;flex-direction:column;font-size:inherit;min-width:0}

/* ===== password eye ===== */
input.pw-has-eye{padding-right:42px !important}
.pw-eye{flex:none;width:34px;height:34px;margin-left:-40px;margin-right:6px;align-self:center;display:inline-grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#6B7487;cursor:pointer;position:relative;z-index:2;vertical-align:middle}
.pw-eye svg{width:20px;height:20px}
.pw-eye:hover,.pw-eye.is-on{color:#1E2B4D;background:rgba(30,43,77,.06)}
.pw-eye:focus-visible{outline:2px solid #1E8F85;outline-offset:1px}
/* ===== notice board: add a new board / edit this one ===== */
.nb-choose{display:flex;flex-direction:column;gap:10px;padding:6px 0}
.nb-ch{padding:12px 16px;border-radius:12px;border:1px solid #E2D6B4;background:#fff;font:inherit;font-weight:600;color:#1E2B4D;text-align:left;cursor:pointer}
.nb-ch:hover{background:#FFF9EA}
.nb-ch--new{background:#1E8F85;border-color:#1E8F85;color:#fff}
.nb-ch--new:hover{background:#177A71}
.nb-ch--x{background:transparent;border-color:transparent;color:#6B7487;text-align:center}
.nb-formh{margin:0 0 8px;font-weight:700;color:#1E2B4D}
/* ===== the home task under the staircase ===== */
.rm-hw{padding:4px 22px 20px}
.rm-hw:empty{display:none}
.rm-hw-card{padding:16px 18px;border-radius:16px;background:#FFFBF0;border:1px solid #EEDCAE;box-shadow:0 8px 20px -16px rgba(90,58,8,.45)}
.rm-hw-card.is-done{background:#F3FBF9;border-color:#BFE5DF}
.rm-hw-card.is-empty{background:#F6F8FC;border-color:#E1E7F1;color:var(--grey)}
.rm-hw-card.is-empty p{margin:6px 0 0;font-size:.9rem}
.rm-hw-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 14px;margin-bottom:8px}
.rm-hw-h b{font-size:1.02rem;color:#1E2B4D}
.rm-hw-h small{font-size:.76rem;color:#8A6A22;font-weight:600}
.rm-hw-txt{margin:0;font-size:.98rem;line-height:1.55;color:#2A2F3A;overflow-wrap:anywhere}
.rm-hw-txt.is-none{color:var(--grey);font-size:.9rem}
.rm-hw-note{margin:8px 0 0;font-size:.9rem;color:#5A4A2A;overflow-wrap:anywhere}
.rm-hw-files a i{background:#2F5DA8}
.rm-hw.is-flash .rm-hw-card{animation:rmHwFlash 1.4s ease}
@keyframes rmHwFlash{0%,100%{box-shadow:0 8px 20px -16px rgba(90,58,8,.45)}30%{box-shadow:0 0 0 4px rgba(201,162,74,.45)}}
@media (max-width:640px){.rm-hw{padding:4px 14px 16px}.rm-hw-card{padding:14px}}
@media (prefers-reduced-motion:reduce){.rm-hw.is-flash .rm-hw-card{animation:none}}
/* one pair of footprints next to "steps today" */
.rm-feet{min-width:0}
.rm-feet svg{width:26px;height:31px}
/* ===== achievements: teacher tabs and the automatic register ===== */
.ac-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 16px}
.ac-tabs [role=tab]{padding:9px 16px;border-radius:999px;border:1px solid #DCE3EE;background:#fff;font:inherit;font-weight:600;color:#1E2B4D;cursor:pointer}
.ac-tabs [role=tab][aria-selected=true]{background:#1E2B4D;border-color:#1E2B4D;color:#fff}
.ac-tabs #acLock{margin-left:auto}
.rg-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 20px;margin-bottom:14px}
.rg-head h2{margin:0 0 4px}
.rg-head .ac-how{margin:0;max-width:52ch}
.rg-pick{display:flex;flex-direction:column;gap:4px;font-size:.78rem;font-weight:700;color:var(--grey);text-transform:uppercase;letter-spacing:.05em;min-width:0}
.rg-pick select{font:inherit;font-size:.95rem;text-transform:none;letter-spacing:0;font-weight:600;color:#1E2B4D;padding:9px 12px;border-radius:10px;border:1px solid #DCE3EE;background:#fff;max-width:100%}
.rg-scroll{overflow-x:auto;border:1px solid #E1E7F1;border-radius:14px;background:#fff}
.rg-table{border-collapse:collapse;font-size:.88rem;min-width:100%}
.rg-table th,.rg-table td{padding:8px 10px;border-bottom:1px solid #EEF1F6;text-align:center;white-space:nowrap}
.rg-table thead th{font-size:.74rem;color:var(--grey);font-weight:700;background:#F6F8FC}
.rg-table tbody th{text-align:left;font-weight:600;color:#1E2B4D;position:sticky;left:0;background:#fff;z-index:1}
.rg-table thead th:first-child{position:sticky;left:0;z-index:2;text-align:left}
.rg-table tbody th small{color:#9AA8B0;font-weight:500;font-size:.72rem}
.rg-table tr:last-child th,.rg-table tr:last-child td{border-bottom:0}
.rg-c{display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:26px;height:24px;padding:0 4px;border-radius:7px;font-weight:800;font-size:.8rem}
.rg-c i{font-style:normal;font-size:.72rem}
.rg-p{background:#E3F6F2;color:#14675F}
.rg-a{background:#FDECEE;color:#B3364A}
.rg-u{background:#F1F3F7;color:#9AA8B0}
.rg-key{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.8rem;color:var(--grey);margin:10px 0 18px}
.rg-days{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.rg-day{padding:12px 16px;border-radius:14px;border:1px solid #E1E7F1;background:#fff}
.rg-day-h{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px}
.rg-day-h span{font-size:.82rem;color:var(--grey)}
.rg-day p{margin:4px 0 0;font-size:.9rem;line-height:1.45;overflow-wrap:anywhere}
.rg-day p small{display:block;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--grey)}
.rg-day p em{color:#8A6A22;font-style:normal;font-weight:600}
.rg-done{color:#14675F}
.rm--stairs .rm-feet svg{color:#E9C978}
.rm--stairs .rm-feet svg.is-off{color:rgba(255,255,255,.3)}
.rg-auto{margin:0;max-width:52ch;font-size:.88rem;color:var(--grey)}
.rg-table tbody th small{display:block}
@media (max-width:640px){.rg-table tbody th{white-space:normal;min-width:120px;max-width:150px;font-size:.84rem}.rg-table th,.rg-table td{padding:7px 6px}}
#doorDialog .nb.nb-open > .nb-choose:not(.hidden){display:flex}
/* the key under the stairs: one line; done well = green, try again = coral */
.rm-hint{flex-wrap:nowrap}
.rm-hint em{flex:0 1 auto;min-width:0}
.rm-hint span{flex:none;white-space:nowrap}
.rm-hint i.k-ok{background:#2BC27A}
.rm-hint i.k-redo{background:#FF6F61}
@media (max-width:480px){.rm-hint{gap:4px 9px;font-size:.8rem}.rm-hint span{font-size:.72rem;gap:4px}}
/* ===== Join the class ===== */
.dy-join>span:first-child{flex:none;display:block;font-size:1.3rem}
.dy-join>span:nth-child(2){flex:1;display:flex;flex-direction:column;min-width:0}
.dy-join b{font-size:1.02rem}
.dy-join small{text-transform:none;letter-spacing:0;font-size:.78rem;font-weight:600}
.dy-join.is-live{background:linear-gradient(135deg,#19B3A6,#0E8C82);border-color:#0E8C82;animation:joinPulse 1.8s ease-in-out infinite}
.dy-join.is-live small{color:#E6FFFB}
a.dy-join.is-live:hover{background:linear-gradient(135deg,#1CC4B6,#10998E)}
@keyframes joinPulse{0%,100%{box-shadow:0 0 0 0 rgba(25,179,166,.55)}60%{box-shadow:0 0 0 10px rgba(25,179,166,0)}}
.dy-cbtn--meet.is-off{background:#EEF1F6;border-color:#E1E7F1;color:var(--grey)}
.dy-cbtn--meet.is-off small,.dy-cbtn--meet.is-off b{color:var(--grey)}
@media (prefers-reduced-motion:reduce){.dy-join.is-live{animation:none}}
/* ===== top buttons: calendar, challenges, victories ===== */
.dy-top-r{flex-wrap:wrap}
.dy-btn .dy-n{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;margin-left:4px;border-radius:999px;background:#FDECEE;color:#B3364A;font-size:.78rem;font-weight:800}
.dy-btn .dy-n--gold{background:#FFF3D6;color:#8A6A22}
/* ===== my calendar ===== */
.dy-sheet--cal .dy-card{max-width:620px}
.cl-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 10px}
.cl-arrow{width:38px;height:38px;border-radius:50%;border:1px solid #DCE3EE;background:#fff;font-size:1.3rem;line-height:1;color:#1E2B4D;cursor:pointer}
.cl-arrow:disabled{opacity:.35;cursor:default}
.cl-month{border:0;background:transparent;font:700 1.15rem/1.2 'Playfair Display',Georgia,serif;color:#1E2B4D;cursor:pointer;padding:8px 14px;border-radius:12px}
.cl-month i{font-style:normal;font-size:.75rem;color:#8A6A22;margin-left:4px}
.cl-month:hover,.cl-month.is-on{background:#FFF6E0}
.cl-grid{display:grid;grid-template-columns:36px repeat(7,minmax(0,1fr));gap:5px}
.cl-dh{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--grey);text-align:center;padding:2px 0}
.cl-wk{border:0;border-radius:10px;background:#F1F4F9;color:#5A6782;font:700 .68rem/1 Inter,Arial,sans-serif;cursor:pointer}
.cl-wk:hover,.cl-wk.is-on{background:#1E2B4D;color:#fff}
.cl-d{position:relative;aspect-ratio:1/1;min-height:38px;border-radius:12px;border:1px solid #E6EBF3;background:#fff;font:600 .92rem Inter,Arial,sans-serif;color:#1E2B4D;cursor:pointer;display:grid;place-items:center;padding:0}
.cl-d:hover{border-color:#9FB2D3}
.cl-d.lv1{background:#DDF6F2;border-color:#C7EEE8}
.cl-d.lv2{background:#A9E8DF;border-color:#94E0D5}
.cl-d.lv3{background:#4FCFC1;border-color:#3FC3B5;color:#0B3B37}
.cl-d.lv4{background:#16A396;border-color:#118C81;color:#fff}
.cl-d.is-out{opacity:.38}
.cl-d.is-future{color:#8C97AD}
.cl-d.is-today{box-shadow:0 0 0 2px #C9A24A}
.cl-d.is-on{box-shadow:0 0 0 2.5px #1E2B4D}
.cl-c{position:absolute;left:50%;bottom:5px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:#1E2B4D}
.cl-c.is-ok{background:#C9A24A}
.cl-c.is-miss{background:#E05A6A}
.cl-d.lv4 .cl-c:not(.is-ok):not(.is-miss){background:#fff}
.cl-d.lv4 .cl-c.is-ok{background:#F6D57A}
.cl-key{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:10px 0 4px;font-size:.78rem;color:var(--grey)}
.cl-key span{display:inline-flex;align-items:center;gap:6px}
.cl-key .cl-c{position:static;margin:0}
.cl-key .lv-k{width:14px;height:14px;border-radius:4px;background:#A9E8DF}
.cl-key-h{flex-basis:100%;font-style:italic}
.cl-view{margin-top:14px;padding:16px;border-radius:16px;background:#F7F9FC;border:1px solid #E6EBF3}
.cl-view-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;margin-bottom:6px}
.cl-view-h b{color:#1E2B4D}
.cl-view-h span{font-size:.85rem;color:#14675F;font-weight:600}
.cl-cols{display:block;width:100%;height:auto}
.cl-base{stroke:#D5DCE8;stroke-width:1}
.cl-col{fill:#4FCFC1}
.cl-col.is-now{fill:#16A396}
.cl-col.is-zero{fill:#E3E8F0}
.cl-n{font:700 13px Inter,Arial,sans-serif;fill:#1E2B4D}
.cl-l{font:700 12px Inter,Arial,sans-serif;fill:#5A6782}
.cl-s{font:500 11px Inter,Arial,sans-serif;fill:#8C97AD}
.cl-l.is-now,.cl-s.is-now{fill:#0E8C82}
.cl-l.is-future,.cl-s.is-future{fill:#B7C0D0}
.cl-dot{fill:#1E2B4D}
.cl-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-top:10px}
.cl-tile{padding:12px 14px;border-radius:12px;background:#fff;border:1px solid #E6EBF3}
.cl-tile b{display:block;font:700 1.5rem/1.1 'Playfair Display',Georgia,serif;color:#0E8C82}
.cl-tile.is-main b{color:#1E2B4D}
.cl-tile span{font-size:.76rem;color:var(--grey)}
.cl-cls{margin:10px 0 0;font-size:.9rem;color:#1E2B4D;font-weight:600}
.cl-cls.is-ok{color:#14675F}
.cl-cls.is-miss{color:#B3364A}
.cl-tasks{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:4px}
.cl-tasks li{display:flex;justify-content:space-between;gap:10px;font-size:.88rem;padding:7px 10px;background:#fff;border-radius:9px;border:1px solid #EEF1F6}
.cl-tasks li span{color:#14675F;font-weight:700;flex:none}
.cl-more{color:var(--grey)}
.cl-view .dy-goal{margin-top:12px}
@media (max-width:480px){.cl-grid{grid-template-columns:28px repeat(7,minmax(0,1fr));gap:3px}.cl-d{min-height:34px;border-radius:9px;font-size:.84rem}.cl-wk{font-size:.6rem}.cl-view{padding:12px}}
/* ===== the progress check reminder can be moved ===== */
.dy-float{touch-action:none;cursor:grab}
.dy-float.is-drag{cursor:grabbing;transition:none;box-shadow:0 24px 48px -16px rgba(19,33,58,.65)}
.dy-float.is-placed{right:auto;bottom:auto}
@media (max-width:640px){.dy-float.is-placed{right:auto;bottom:auto;max-width:calc(100vw - 24px)}}
.dy-float a{-webkit-user-drag:none;user-select:none}
/* a sentence of encouragement before each task */
.eg-motiv{display:flex;align-items:flex-start;gap:10px;margin:10px 0 14px;padding:12px 16px;border-radius:14px;background:linear-gradient(135deg,#FFF8E6,#F2FBF9);border:1px solid #EEDCAE;font:italic 600 1rem/1.45 'Playfair Display',Georgia,serif;color:#1E2B4D}
.eg-motiv span:first-child{font-style:normal;flex:none}
.cl-d{aspect-ratio:auto;height:44px}
@media (max-width:480px){.cl-d{height:38px}}
.cl-tiles{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}
.cl-tile span{display:block;line-height:1.3;margin-top:2px}
.cl-tile b{font-size:1.35rem}
@media (max-width:640px){.cl-n{font-size:20px}.cl-l{font-size:19px}.cl-s{font-size:16px}.cl-dot{r:4px}}
/* less gold in the picture: turquoise plaques, light labels */
.st-plq{fill:#E6FBF8}
.st-plq.is-gold{fill:#FFFFFF}
.rm--stairs .rm-sky{border-color:rgba(160,240,232,.35)}
.rm--stairs .rm-sky .eg-clock .ck-face{stroke:#7FE6DC}
.rm--stairs .rm-feet svg{color:#7FE6DC}

/* ===================== MY CLASS: one row — calendar · home task · challenges · victories · door ===================== */
.dy-row{display:grid;grid-template-columns:minmax(260px,1.8fr) repeat(3,minmax(0,1fr)) 120px;gap:12px;margin:12px 0 10px;align-items:stretch}
.dy-row--nog{grid-template-columns:minmax(260px,1.8fr) repeat(2,minmax(0,1fr))}
.dy-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:220px;padding:16px;border-radius:18px;border:1px solid #E1E7F1;background:#fff;font:inherit;color:#1E2B4D;text-align:left;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.dy-tile:hover{transform:translateY(-2px);box-shadow:0 14px 26px -18px rgba(19,33,58,.5)}
.dy-tile:focus-visible{outline:3px solid var(--mint);outline-offset:2px}
.dy-tile-ic{font-size:1.6rem;line-height:1;margin-bottom:auto}
.dy-tile b{font-size:1rem;line-height:1.25}
.dy-tile small{font-size:.78rem;color:var(--grey);line-height:1.3}
.dy-tile strong{font:700 2.1rem/1 'Playfair Display',Georgia,serif}
.dy-tile em{font-style:normal;font-weight:800;font-size:1.05rem;color:#1E2B4D;margin-top:4px}
.dy-tile-arr{position:absolute;right:14px;top:14px;font-style:normal;color:var(--grey)}
/* each tile's colour has a meaning: home task = the notice board's paper; challenges = coral (to correct); victories = green (done well) */
.dy-tile--hw{background:#FFFBF0;border-color:#EEDCAE}
.dy-tile--hw.is-done{background:#EEFBF3;border-color:#BDE8CC}
.dy-tile--ch{border-color:#F6C7C0;background:linear-gradient(180deg,#FFF6F4,#fff 60%)}
.dy-tile--ch strong{color:#E5533F}
.dy-tile--vi{border-color:#BDE8CC;background:linear-gradient(180deg,#F0FBF4,#fff 60%)}
.dy-tile--vi strong{color:#1E9E57}
/* the calendar tile: the same evening blue as the staircase */
.dy-tile--cal{background:linear-gradient(160deg,#0A1A44,#13306A 60%,#1C4485);border-color:#1C3A78;color:#fff;gap:6px;padding:14px 14px 12px}
.mc-h{display:flex;width:100%;justify-content:space-between;align-items:center}
.mc-h b{font:700 1.05rem/1.2 'Playfair Display',Georgia,serif;color:#fff}
.mc-h i{font-style:normal;font-size:1rem;color:#7FE6DC}
.mc-sub{font-size:.75rem;color:#9FE9E1;font-weight:600}
.mc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;width:100%;margin-top:2px}
.mc-dh{font-size:.6rem;font-weight:700;color:#9FB0D6;text-align:center;text-transform:uppercase}
/* ===================== day cells (big and small calendar) ===================== */
.cl-d{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:6px 2px 8px;height:58px;border-radius:12px;border:1px solid rgba(255,255,255,.0);background:#FFFFFF;font:inherit;color:#1E2B4D;cursor:pointer;overflow:hidden}
.cl-d--mini{height:24px;padding:3px 0 0;border-radius:6px;cursor:inherit}
.cl-num{font-size:.95rem;font-weight:700;line-height:1}
.cl-d--mini .cl-num{font-size:.68rem}
.cl-d.is-out{opacity:.32}
.cl-d.is-future .cl-num{color:#6B7487}
.cl-d.is-on{box-shadow:0 0 0 2.5px #FFFFFF,0 0 0 5px #00C0B4}
/* class day = green; in class = green with a tick; missed = grey */
.cl-d.is-cls{box-shadow:inset 0 0 0 2px #22B35E}
.cl-d.is-att{box-shadow:inset 0 0 0 2px #22B35E;background:#E8F8EE}
.cl-d.is-miss{background:#C3C9D4}
.cl-d.is-miss .cl-num{color:#5B6478}
.cl-att{position:absolute;left:4px;top:3px;font-style:normal;font-size:.62rem;font-weight:900;color:#1E9E57}
.cl-d--mini .cl-att{display:none}
/* practice minutes = a blue bar along the bottom: the longer, the more she worked */
.cl-bar{position:absolute;left:6px;bottom:4px;height:4px;border-radius:2px;background:#3B82F6}
.cl-bar.lv1{width:22%;opacity:.55}.cl-bar.lv2{width:45%;opacity:.75}.cl-bar.lv3{width:70%}.cl-bar.lv4{width:calc(100% - 12px)}
.cl-d--mini .cl-bar{left:3px;bottom:2px;height:3px}
.cl-d--mini .cl-bar.lv4{width:calc(100% - 6px)}
/* today: the only filled cell — brand turquoise, white number, the word "Today", a soft glow */
.cl-d.is-today{background:#00C0B4;box-shadow:0 0 0 3px rgba(0,192,180,.35),0 0 22px rgba(0,192,180,.75);z-index:1}
.cl-d.is-today .cl-num{color:#fff;font-size:1.05rem}
.cl-d.is-today.is-cls,.cl-d.is-today.is-att{box-shadow:inset 0 0 0 2px #22B35E,0 0 0 3px rgba(0,192,180,.35),0 0 22px rgba(0,192,180,.75)}
.cl-d.is-today .cl-bar{background:#fff}
.cl-today{font-size:.58rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#fff;margin-top:2px}
/* the little signs */
.cl-ms{position:absolute;right:3px;top:2px;display:flex;gap:1px}
.cl-m{font-style:normal;font-size:.7rem;line-height:1}
.cl-d--mini .cl-ms{right:1px;top:0}
.cl-d--mini .cl-m{font-size:.48rem}
.cl-star{color:#FFC21A}
.cl-flag{color:#F97316}
.cl-bell{font-size:.62rem}
.cl-pay{position:absolute;left:0;right:0;bottom:9px;font-size:.52rem;font-weight:800;color:#5B5BD6;text-align:center;text-transform:uppercase;letter-spacing:.02em}
.cl-d.is-today .cl-pay{color:#fff}
.cl-pay-m{position:absolute;left:2px;top:0;font-style:normal;font-size:.5rem;font-weight:800;color:#5B5BD6}
/* ===================== the big calendar ===================== */
.dy-sheet--cal .dy-card{max-width:680px}
.dy-sheet--cal .cl{background:linear-gradient(160deg,#0A1A44,#13306A 55%,#1C4485);border-radius:20px;padding:16px;color:#fff}
.dy-sheet--cal .cl-arrow{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:#fff}
.dy-sheet--cal .cl-month{color:#fff}
.dy-sheet--cal .cl-month i{color:#7FE6DC}
.dy-sheet--cal .cl-month:hover,.dy-sheet--cal .cl-month.is-on{background:rgba(255,255,255,.1)}
.cl-active{margin:-4px 0 10px;text-align:center;font-size:.85rem;font-weight:700;color:#9FE9E1}
.dy-sheet--cal .cl-dh{color:#9FB0D6}
.dy-sheet--cal .cl-wk{background:rgba(255,255,255,.1);color:#C9D4EC}
.dy-sheet--cal .cl-wk:hover,.dy-sheet--cal .cl-wk.is-on{background:#00C0B4;color:#fff}
.dy-sheet--cal .cl-grid{grid-template-columns:38px repeat(7,minmax(0,1fr));gap:6px}
.dy-sheet--cal .cl-d{aspect-ratio:auto;height:58px;min-height:0}
.dy-sheet--cal .cl-key{color:#C9D4EC;gap:6px 14px;margin:14px 0 4px}
.k-sw{display:inline-block;width:14px;height:14px;border-radius:4px;background:#fff;vertical-align:-2px;margin-right:5px}
.k-today{background:#00C0B4;box-shadow:0 0 8px rgba(0,192,180,.8)}
.k-bar{height:5px;width:16px;border-radius:2px;background:#3B82F6;vertical-align:2px}
.k-cls{box-shadow:inset 0 0 0 2px #22B35E}
.k-att{box-shadow:inset 0 0 0 2px #22B35E;background:#E8F8EE}
.k-miss{background:#C3C9D4}
.k-star{color:#FFC21A}.k-flag{color:#F97316}.k-pay{color:#A5A6FF}
.cl-hint{margin:2px 0 0;font-size:.76rem;font-style:italic;color:#9FB0D6}
.dy-sheet--cal .cl-view{background:#fff;color:#1E2B4D;border-color:transparent}
.cl-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:8px 0;padding:10px 14px;border-radius:12px}
.cl-note b{font-size:.92rem}
.cl-note span{font-size:.88rem;color:#4A5568}
.cl-note--bell{background:#FFF6DB;border:1px solid #F5DC93}
.cl-note--pay{background:#EEEEFF;border:1px solid #CFCFFA}
.cl-cls.is-star{color:#A77700}
.cl-cls.is-flag{color:#C2410C}
@media (max-width:480px){
  .dy-sheet--cal .cl{padding:10px}
  .dy-sheet--cal .cl-grid{grid-template-columns:24px repeat(7,minmax(0,1fr));gap:3px}
  .dy-sheet--cal .cl-d{height:50px;border-radius:9px}
  .cl-num{font-size:.85rem}
  .cl-pay{font-size:.42rem;bottom:8px}
  .cl-today{font-size:.48rem}
}
/* ===================== the door to the class ===================== */
.dy-door{aspect-ratio:auto;height:100%;min-height:220px;padding:18px 9px 40px;text-decoration:none;transform-origin:left center;transition:transform .5s ease,box-shadow .3s ease}
.dy-door .door-plaque{margin-top:auto;margin-bottom:auto;padding:8px 4px}
.dy-door .door-plaque b{font-size:.8rem;line-height:1.25}
.dy-door .door-status{bottom:12px;font-size:.66rem;line-height:1.25;color:rgba(255,255,255,.8)}
.dy-door .door-handle{right:12px;bottom:62px}
.dy-door:hover{transform:perspective(700px) rotateY(-8deg)}
.dy-door.is-live{transform:perspective(700px) rotateY(-14deg);animation:doorBreathe 2.4s ease-in-out infinite}
.dy-door.is-live .door-status{color:#7FF5EA;font-weight:700}
@keyframes doorBreathe{0%,100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 22px rgba(0,192,180,.45)}50%{box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 44px rgba(0,192,180,.85)}}
@media (prefers-reduced-motion:reduce){.dy-door.is-live{animation:none}}
@media (max-width:900px){
  .dy-row{grid-template-columns:repeat(3,minmax(0,1fr)) 104px;grid-template-areas:"cal cal cal cal" "hw ch vi door"}
  .dy-row--nog{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"cal cal" "ch vi"}
  .dy-tile--cal{grid-area:cal}.dy-tile--hw{grid-area:hw}.dy-tile--ch{grid-area:ch}.dy-tile--vi{grid-area:vi}.dy-door{grid-area:door}
  .dy-tile{min-height:170px}
  .dy-door{min-height:170px}
}
@media (max-width:560px){
  .dy-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 96px;grid-template-areas:"cal cal cal" "hw hw door" "ch vi door";gap:10px}
  .dy-tile{min-height:0;padding:13px}
  .dy-tile--hw{min-height:110px}
  .dy-tile-ic{font-size:1.3rem}
  .dy-tile strong{font-size:1.7rem}
  .dy-door{min-height:0}
}
/* ===================== the progress check on the picture ===================== */
.rm-pc{position:absolute;z-index:3;display:flex;align-items:center;gap:4px;padding:5px 6px 5px 5px;border-radius:999px;background:#E9FBF9;border:1.5px solid #5FE3D6;box-shadow:0 12px 26px -12px rgba(0,0,0,.55);opacity:0;transform:translateY(-6px) scale(.92);transition:opacity .35s ease,transform .45s cubic-bezier(.2,1.4,.4,1)}
.rm-pc.is-in{opacity:1;transform:none}
.rm-pc.no-anim{transition:none}
.rm-pc a{display:flex;align-items:center;gap:9px;text-decoration:none;color:#1E2B4D;min-width:0}
.rm-pc-bell{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#FFD84D;font-size:1.15rem;box-shadow:0 0 0 3px rgba(255,216,77,.35);transform-origin:50% 8%}
.rm-pc.is-ring .rm-pc-bell{animation:bellSwing 1.6s ease-in-out}
@keyframes bellSwing{0%{transform:rotate(0)}10%{transform:rotate(24deg)}22%{transform:rotate(-20deg)}34%{transform:rotate(16deg)}46%{transform:rotate(-12deg)}58%{transform:rotate(8deg)}70%{transform:rotate(-4deg)}82%,100%{transform:rotate(0)}}
.rm-pc-t{display:flex;flex-direction:column;min-width:0}
.rm-pc-t b{font-size:.92rem;line-height:1.2}
.rm-pc-t small{font-size:.74rem;color:#0E7C74;font-weight:600;line-height:1.25}
.rm-pc a>i{font-style:normal;font-weight:700;color:#0E7C74;margin-left:2px}
.rm-pc button{flex:none;width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:#5B6478;cursor:pointer;font-size:.8rem}
.rm-pc button:hover{background:rgba(30,43,77,.08)}
.rm-pc.is-due{border-color:#FF6F61;background:#FFF1EF}
.rm-pc.is-due .rm-pc-t small{color:#C2410C}
@media (prefers-reduced-motion:reduce){.rm-pc.is-ring .rm-pc-bell{animation:none}}
@media (max-width:560px){.rm-pc{padding:4px}.rm-pc-bell{width:30px;height:30px;font-size:.95rem}.rm-pc-t b{font-size:.8rem}.rm-pc-t small{font-size:.66rem}.rm-pc a>i{display:none}}
/* ===================== achievements: register tools, edits, windows ===================== */
.rg-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.rg-sel{position:relative;display:inline-flex;align-items:center}
.rg-sel select{appearance:none;-webkit-appearance:none;font:inherit;font-size:.95rem;font-weight:700;color:#fff;background:#1E2B4D;border:0;border-radius:12px;padding:10px 36px 10px 16px;cursor:pointer;max-width:100%}
.rg-sel i{position:absolute;right:14px;pointer-events:none;font-style:normal;color:#7FE6DC;font-size:.85rem}
.rg-sel select:focus-visible{outline:3px solid #00C0B4;outline-offset:2px}
.rg-boards{font:inherit;font-weight:700;font-size:.92rem;padding:10px 16px;border-radius:12px;border:1px solid #EEDCAE;background:#FFFBF0;color:#1E2B4D;cursor:pointer}
.rg-boards:hover{background:#FFF3D1}
.rg-cell,.rg-dh{border:0;background:transparent;font:inherit;cursor:pointer;padding:2px;border-radius:9px}
.rg-cell:hover,.rg-dh:hover{background:#EEF4FF}
.rg-dh{font-size:.74rem;font-weight:700;color:#5A6782;display:flex;flex-direction:column;align-items:center;gap:1px;padding:4px 6px}
.rg-dh small{font-size:.6rem;font-weight:700;text-transform:uppercase}
.rg-dh.is-moved small{color:#2563EB}
.rg-dh.is-repl small{color:#9333EA}
.rg-c.is-ed{outline:2px dashed rgba(30,43,77,.35);outline-offset:1px}
.rg-tap{font-size:.8rem;color:var(--grey);margin:-10px 0 18px;font-style:italic}
.rg-win{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:16px;background:rgba(10,20,50,.45)}
.rg-win-card{width:100%;max-width:440px;max-height:86vh;overflow:auto;background:#fff;border-radius:20px;padding:18px 20px;box-shadow:0 30px 60px -20px rgba(0,0,0,.5)}
.rg-win--l .rg-win-card{max-width:760px}
.rg-win-h{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.rg-win-h b{font:700 1.15rem/1.3 'Playfair Display',Georgia,serif;color:#1E2B4D}
.rg-x{width:34px;height:34px;border-radius:50%;border:0;background:#F1F4F9;font-size:1.2rem;cursor:pointer;color:#1E2B4D}
.rg-acts{display:grid;gap:8px}
.rg-act{font:inherit;font-weight:600;text-align:left;padding:12px 14px;border-radius:12px;border:1px solid #E1E7F1;background:#fff;color:#1E2B4D;cursor:pointer}
.rg-act:hover{background:#F6F8FC}
.rg-act--p{border-color:#BDE8CC;background:#F0FBF4;color:#14675F}
.rg-act--a{border-color:#F6C7C0;background:#FFF6F4;color:#B3364A}
.rg-move{display:grid;gap:6px;padding:12px 14px;border-radius:12px;border:1px solid #E1E7F1}
.rg-move label{font-weight:600;color:#1E2B4D}
.rg-move div{display:flex;gap:8px;flex-wrap:wrap}
.rg-move input{font:inherit;padding:8px 10px;border:1px solid #DCE3EE;border-radius:10px;min-width:0}
.nbw-row{padding:12px 0;border-bottom:1px solid #EEF1F6}
.nbw-row:last-of-type{border-bottom:0}
.nbw-row h4{margin:0 0 8px;font-size:.95rem;color:#1E2B4D}
.nbw-cards{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity}
.nbw-card{flex:0 0 132px;scroll-snap-align:start;display:flex;flex-direction:column;gap:2px;text-align:left;padding:10px 12px;border-radius:10px;border:1px solid #EEDCAE;background:#FFFBF0;font:inherit;cursor:pointer;box-shadow:0 2px 0 #EEDCAE}
.nbw-card small{font-size:.62rem;font-weight:700;text-transform:uppercase;color:#A07D2C;letter-spacing:.04em}
.nbw-card b{font-size:.95rem;color:#1E2B4D}
.nbw-card span{font-size:.74rem;color:#6B7487;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.nbw-card:hover,.nbw-card.is-on{background:#FFF3D1;border-color:#E2C677}
.nbw-paper{margin-top:6px;padding:14px 16px;border-radius:12px;background:#FFFBF0;border:1px solid #EEDCAE}
.nbw-date{display:block;margin-bottom:6px;color:#1E2B4D}
.nbw-f small{display:block;font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8A6A22;margin-top:8px}
.nbw-f p{margin:2px 0 0;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
.cl-d.is-out{background:transparent;box-shadow:none;opacity:.5}
.cl-d.is-out .cl-num{color:#9FB0D6}
.cl-d.is-out .cl-bar,.cl-d.is-out .cl-ms,.cl-d.is-out .cl-att{display:none}
/* the picture: names appear when the cursor goes over the marker or the flag (a tap on a phone) */
.st-lbl{opacity:0;transition:opacity .2s ease;pointer-events:none}
.st-me:hover .st-lbl,.st-me:focus .st-lbl,.st-me.is-show .st-lbl,a.st-flag:hover .st-lbl,a.st-flag:focus .st-lbl,a.st-flag.is-show .st-lbl{opacity:1}
.st-me{cursor:pointer;outline:none}
.st-plq--reach{font:800 11px Inter,Arial,sans-serif;letter-spacing:1.4px;fill:#13306A}
/* the bell in the progress check: a yellow bell on a deep navy circle */
.rm-pc-bell{background:#13306A;box-shadow:0 0 0 3px rgba(19,48,106,.25)}

/* ===================== round 3: a real wall calendar ===================== */
/* the big calendar: one white page, a printed header, thin lines between the days */
.dy-sheet--cal .cl{background:#FFFFFF;color:#1E2B4D;padding:0;border-radius:16px;border:1px solid #DCE3EE;overflow:hidden;box-shadow:0 18px 40px -28px rgba(19,33,58,.45)}
.dy-sheet--cal .cl-nav{margin:0;padding:14px 16px;background:linear-gradient(135deg,#0A1A44,#13306A 60%,#1C4485)}
.dy-sheet--cal .cl-month{font:600 1.5rem/1.1 'Cormorant Garamond','Playfair Display',Georgia,serif;letter-spacing:.02em}
.cl-active{margin:0;padding:10px 16px;text-align:center;font-size:.9rem;font-weight:600;line-height:1.4;border-bottom:1px solid #E6EBF2}
.cl-active.is-many{background:#ECFBF3;color:#14673F}
.cl-active.is-mid{background:#EEF6FF;color:#1E4E8C}
.cl-active.is-few{background:#FFF8EC;color:#7A5212}
.dy-sheet--cal .cl-grid{gap:0;grid-template-columns:34px repeat(7,minmax(0,1fr));border-top:0}
.dy-sheet--cal .cl-grid>*{border-right:1px solid #E6EBF2;border-bottom:1px solid #E6EBF2;border-radius:0}
.dy-sheet--cal .cl-grid>*:nth-child(8n){border-right:0}
.dy-sheet--cal .cl-dh{padding:8px 0;background:#F6F8FC;color:#5A6782}
.dy-sheet--cal .cl-wk-h{background:#F6F8FC}
.dy-sheet--cal .cl-wk{background:#FBFCFE;color:#8C97AD;font-size:.62rem}
.dy-sheet--cal .cl-wk:hover,.dy-sheet--cal .cl-wk.is-on{background:#EAF9F7;color:#0E8C82}
.dy-sheet--cal .cl-d{height:76px;border:0;border-right:1px solid #E6EBF2;border-bottom:1px solid #E6EBF2;align-items:flex-start;padding:6px 6px 10px;background:#fff}
.dy-sheet--cal .cl-d .cl-num{font-size:1rem}
.dy-sheet--cal .cl-d:hover{background:#F7FAFF}
.dy-sheet--cal .cl-d.is-on{box-shadow:inset 0 0 0 2px #1E2B4D}
.dy-sheet--cal .cl-d.is-cls{box-shadow:inset 0 0 0 2px #22B35E}
.dy-sheet--cal .cl-d.is-att{box-shadow:inset 0 0 0 2px #22B35E;background:#ECF9F1}
.dy-sheet--cal .cl-d.is-miss{background:#E4E7ED}
.dy-sheet--cal .cl-d.is-out{background:#FBFCFE;opacity:.55}
.cl-att{left:auto;right:6px;top:auto;bottom:10px}
.dy-sheet--cal .cl-att{font-size:.75rem}
.dy-sheet--cal .cl-ms{right:5px;top:5px}
.dy-sheet--cal .cl-m{font-size:.8rem}
/* the words inside a day */
.cl-ws{position:absolute;left:5px;right:5px;bottom:9px;display:flex;flex-direction:column;gap:1px;text-align:left}
.cl-w{font-size:.6rem;font-weight:700;line-height:1.15}
.cl-w--bell{color:#B7791F}
.cl-w--cls{color:#1E9E57}
.cl-w--fee{color:#5B5BD6}
.cl-d.is-att .cl-ws{right:18px}
/* today: fresh aqua to the logo turquoise, a clean white glow, the only filled day */
.cl-d.is-today,.dy-sheet--cal .cl-d.is-today{background:linear-gradient(180deg,#7CF6EC 0%,#22D3C5 55%,#00C0B4 100%);box-shadow:inset 0 0 0 2px rgba(255,255,255,.9),0 0 0 3px rgba(124,246,236,.45),0 0 26px rgba(124,246,236,.85);z-index:1}
.cl-d.is-today.is-cls,.cl-d.is-today.is-att,.dy-sheet--cal .cl-d.is-today.is-cls,.dy-sheet--cal .cl-d.is-today.is-att{box-shadow:inset 0 0 0 2px #22B35E,inset 0 0 0 4px rgba(255,255,255,.9),0 0 0 3px rgba(124,246,236,.45),0 0 26px rgba(124,246,236,.85)}
.cl-d.is-today .cl-num{color:#fff;text-shadow:0 1px 2px rgba(0,80,76,.35)}
.cl-d.is-today .cl-today{color:#fff;text-shadow:0 1px 2px rgba(0,80,76,.35)}
.cl-d.is-today .cl-w{color:#fff}
.dy-sheet--cal .cl-today{position:absolute;left:6px;top:24px}
.dy-sheet--cal .cl-key{color:#5A6782;padding:12px 16px 4px;margin:0}
.dy-sheet--cal .cl-hint{padding:0 16px 14px;color:#8C97AD}
.dy-sheet--cal .cl-view{margin:0 16px 16px;background:#F7F9FC;border:1px solid #E6EBF2}
.k-today{background:linear-gradient(180deg,#7CF6EC,#00C0B4);box-shadow:0 0 8px rgba(124,246,236,.9)}
.k-miss{background:#E4E7ED}
.cl-cls.is-miss{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.cl-rec{background:#B3364A;border-color:#B3364A;color:#fff;text-decoration:none}
.cl-rec:hover{background:#9B2B3E}
@media (max-width:480px){
  .dy-sheet--cal .cl-grid{grid-template-columns:22px repeat(7,minmax(0,1fr))}
  .dy-sheet--cal .cl-d{height:64px;padding:4px 3px 8px}
  .dy-sheet--cal .cl-d .cl-num{font-size:.85rem}
  .cl-w{font-size:.46rem}
  .cl-ws{left:3px;right:2px;bottom:8px}
  .dy-sheet--cal .cl-today{top:20px;left:3px;font-size:.42rem}
  .dy-sheet--cal .cl-month{font-size:1.25rem}
}
/* the small calendar on the page: the same white page with a printed header */
.dy-tile--cal{background:#FFFFFF;border-color:#DCE3EE;color:#1E2B4D;padding:0;gap:0;overflow:hidden}
.dy-tile--cal .mc-h{padding:11px 14px 9px;background:linear-gradient(135deg,#0A1A44,#13306A 60%,#1C4485)}
.dy-tile--cal .mc-h b{font:600 1.2rem/1.1 'Cormorant Garamond','Playfair Display',Georgia,serif;color:#fff}
.dy-tile--cal .mc-sub{padding:6px 14px;color:#0E7C74;font-size:.74rem;background:#F2FBFA;width:100%;border-bottom:1px solid #E6EBF2}
.dy-tile--cal .mc-grid{gap:0;margin:0;padding:0;border-top:0}
.dy-tile--cal .mc-grid>*{border-right:1px solid #EEF1F6;border-bottom:1px solid #EEF1F6}
.dy-tile--cal .mc-grid>*:nth-child(7n){border-right:0}
.dy-tile--cal .mc-dh{padding:4px 0;background:#F6F8FC;color:#5A6782}
.dy-tile--cal .cl-d--mini{height:25px;border-radius:0;background:#fff;border-top:0;border-left:0;padding:4px 0 0}
.dy-tile--cal .cl-d--mini.is-out{background:#FBFCFE}
.dy-tile--cal .cl-d--mini.is-cls{box-shadow:inset 0 0 0 1.5px #22B35E}
.dy-tile--cal .cl-d--mini.is-att{box-shadow:inset 0 0 0 1.5px #22B35E;background:#ECF9F1}
.dy-tile--cal .cl-d--mini.is-miss{background:#E4E7ED}
.dy-tile--cal .cl-d--mini.is-today{box-shadow:0 0 0 2px #fff,0 0 12px rgba(124,246,236,.9)}
/* ===================== the row: calendar · challenges over victories · the door ===================== */
.dy-class-who{margin:0 0 6px;text-align:right;font-size:.82rem;color:var(--grey)}
.dy-row,.dy-row--nog{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) 132px;grid-template-areas:none;align-items:stretch}
.dy-row--nog{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.dy-stack{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-width:0}
.dy-stack .dy-tile{min-height:0;flex-direction:row;align-items:center;gap:12px;padding:14px 16px}
.dy-stack .dy-tile-ic{margin:0;font-size:1.7rem}
.dy-tile-tx{display:flex;flex-direction:column;min-width:0;flex:1}
.dy-stack .dy-tile strong{font-size:2rem}
.dy-tile--cal{min-height:0}
/* the door: like the corridor doors; the cursor opens it like the door on the home page */
.dy-doorcol{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.dy-door2{position:relative;display:block;width:100%;flex:1;min-height:170px;max-height:230px;text-decoration:none;border-radius:12px;background:linear-gradient(180deg,#FFFFFF,#F3F5F9);border:1px solid #DCE3EE;overflow:hidden;padding:12px 16px 0}
.dd-frame{position:relative;display:block;height:calc(100% - 14px);background:linear-gradient(180deg,#1a2646,#131C35);padding:6% 7% 0;border-radius:3px 3px 0 0;perspective:900px;box-shadow:0 18px 28px -18px rgba(20,26,48,.55)}
.dd-in{position:absolute;inset:6% 7% 0;background:radial-gradient(120% 80% at 35% 60%,#FFFBF2,#EAF3F4 45%,#C9DCE4)}
.dd-leaf{position:absolute;inset:6% 7% 0;transform-origin:left center;transition:transform 1.1s cubic-bezier(.45,.05,.2,1);
  background:linear-gradient(100deg,#283a66,#21315a 45%,#1b2a4d);box-shadow:inset -8px 0 14px -10px rgba(0,0,0,.35),inset 0 0 0 1px rgba(255,255,255,.06)}
.dd-plaque{position:absolute;top:9%;left:9%;right:9%;padding:5px 3px;border-radius:6px;text-align:center;font:600 .86rem/1.1 'Cormorant Garamond','Playfair Display',Georgia,serif;color:#F2FBFA;background:rgba(255,255,255,.12);border:1px solid rgba(165,224,217,.45)}
.dd-glass{position:absolute;top:36%;right:16%;width:20%;height:30%;border-radius:2px;background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.16),rgba(255,255,255,.05));box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.dd-handle{position:absolute;right:9%;top:60%;width:26%;height:4px;border-radius:9px;background:linear-gradient(180deg,#7fd8cf,#2aa89e)}
.dd-handle::after{content:"";position:absolute;right:-3px;top:-3px;width:10px;height:10px;border-radius:50%;background:#2aa89e}
.dd-status{position:absolute;left:8%;right:8%;bottom:6%;font-size:.6rem;line-height:1.2;color:#7FF5EA;font-weight:700}
.dd-floor{position:absolute;left:0;right:0;bottom:0;height:14px;background:url(floor-light.jpg) repeat-x left bottom/auto 14px,#E9DCC9;border-top:2px solid #DCE1EA}
.dy-door2:hover .dd-leaf,.dy-door2:focus-visible .dd-leaf{transform:rotateY(55deg)}
.dy-door2.is-live .dd-leaf{transform:rotateY(24deg)}
.dy-door2.is-live{border-color:#7FE6DC;box-shadow:0 0 0 3px rgba(0,192,180,.25),0 0 26px rgba(0,192,180,.55);animation:doorGlow 2.4s ease-in-out infinite}
.dy-door2.is-live:hover .dd-leaf{transform:rotateY(55deg)}
.dy-door2.is-off{opacity:.7}
@keyframes doorGlow{0%,100%{box-shadow:0 0 0 3px rgba(0,192,180,.2),0 0 18px rgba(0,192,180,.4)}50%{box-shadow:0 0 0 3px rgba(0,192,180,.35),0 0 34px rgba(0,192,180,.8)}}
@media (prefers-reduced-motion:reduce){.dd-leaf{transition:none}.dy-door2.is-live{animation:none}}
.dd-when{display:flex;flex-direction:column;align-items:center;line-height:1.25;text-align:center}
.dd-when b{font-size:.76rem;color:#1E2B4D;white-space:nowrap}
.dd-when span{font-size:.76rem;color:var(--grey);font-weight:600}
@media (max-width:900px){
  .dy-row{grid-template-columns:minmax(0,1fr) 124px;grid-template-areas:"cal cal" "stack door"}
  .dy-row--nog{grid-template-columns:minmax(0,1fr);grid-template-areas:"cal" "stack"}
  .dy-tile--cal{grid-area:cal}.dy-stack{grid-area:stack}.dy-doorcol{grid-area:door}
  .dy-door2{min-height:150px}
}
@media (max-width:560px){
  .dy-row{grid-template-columns:minmax(0,1fr) 108px}
  .dy-stack .dy-tile{padding:10px 12px;gap:8px}
  .dy-stack .dy-tile small{display:none}
  .dy-stack .dy-tile strong{font-size:1.6rem}
  .dy-door2{padding:10px 12px 0}
}
/* ===================== the home task: one task, its links and files, Step up, two buttons ===================== */
.dy-class-board{margin-top:12px}
.dy-class-board.is-flash .rm-hw-card{animation:rmHwFlash 1.4s ease}
.rm-hw-att{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.rm-hw-att a{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid #EEDCAE;color:#1E2B4D;font-size:.86rem;font-weight:600;text-decoration:none}
.rm-hw-att a:hover{border-color:#D6B868}
.rm-hw-att a i{font-style:normal}
.su{margin:14px 0 0;padding:14px;border-radius:14px;background:#EFFBF9;border:1px solid #BDEDE7}
.su-h{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.su-ic{width:38px;height:36px;color:#00A99D;flex:none}
.su-h b{display:block;font-size:1.05rem;color:#0E5F58}
.su-h small{display:block;font-size:.8rem;color:#3E7D77}
.su-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.su-u{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #CDEFEA;text-decoration:none;color:#1E2B4D}
.su-u:hover{border-color:#7FE6DC}
.su-u span{flex:1;min-width:0;display:flex;flex-direction:column}
.su-u small{font-size:.68rem;font-weight:700;color:#5A6782;text-transform:uppercase;letter-spacing:.03em}
.su-u b{font-size:.86rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis}
.su-u em{font-style:normal;font-weight:800;color:#00A99D}
.su-u.is-done{background:#ECF9F1;border-color:#BDE8CC}
.su-u.is-done em{color:#1E9E57}
.su-k{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;font-style:normal;font-weight:800;font-size:.8rem;color:#fff}
.su-k--gp{background:#2F5DA8}.su-k--vp{background:#00A99D}
.dy-hw-btns{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.dy-hwb{display:inline-flex;align-items:center;gap:6px;padding:11px 18px;border-radius:12px;border:1px solid #1E2B4D;background:#1E2B4D;color:#fff;font:inherit;font-weight:700;font-size:.95rem;cursor:pointer}
.dy-hwb:hover{background:#2A3A63}
.dy-hwb.is-done{background:#1E9E57;border-color:#1E9E57;cursor:default}
.dy-hwb--up{background:#fff;color:#8C97AD;border:1.5px dashed #BFC8D8;cursor:default}
.dy-hwb--up.is-done{background:#1E9E57;color:#fff;border:1px solid #1E9E57}
.dy-hw-flash{color:#1E9E57;font-weight:700}
.dy-stack .dy-tile{grid-area:auto !important}
.dy-class-who{text-align:left}
.dy-tile--cal .cl-d--mini.is-today{background:linear-gradient(180deg,#7CF6EC 0%,#22D3C5 55%,#00C0B4 100%);box-shadow:0 0 0 2px #fff,0 0 14px rgba(124,246,236,.95);z-index:1}
.dy-tile--cal .cl-d--mini.is-today .cl-num{color:#fff}
.dd-glass{top:28%;height:22%}
.dd-handle{top:62%}
.dy-sheet--cal .cl>p.cl-active,.dy-sheet--cal .cl>p.cl-key,.dy-sheet--cal .cl>p.cl-hint{margin:0}
.dy-sheet--cal .cl-d.is-out,.dy-tile--cal .cl-d--mini.is-out{box-shadow:none !important;background:#FBFCFE}
.dy-sheet--cal .cl-d.is-out .cl-ws{display:none}
/* recordings: watched */
.rec-seen{font-style:normal;font-size:.74rem;font-weight:700;color:#1E9E57;margin-top:2px}
.rec-bar .rec-seen-btn{font:inherit;font-weight:700;font-size:.86rem;padding:8px 14px;border-radius:999px;border:1px solid #BDE8CC;background:#F0FBF4;color:#14673F;cursor:pointer}
.rec-bar .rec-seen-btn:disabled{cursor:default;opacity:.85}
.dy-pr.is-watched{background:#F0FBF4;border-color:#BDE8CC;color:#14673F;text-decoration:none}
.dy-pr.is-watched span{color:#1E9E57;font-weight:700}
.cl-rec.is-watched{background:#1E9E57;border-color:#1E9E57}

/* ===================== round 4 ===================== */
/* clearer lines between the days */
.dy-sheet--cal .cl{border-color:#B9C4D6}
.dy-sheet--cal .cl-grid>*,.dy-sheet--cal .cl-d{border-right-color:#B9C4D6;border-bottom-color:#B9C4D6}
.dy-sheet--cal .cl-dh,.dy-sheet--cal .cl-wk-h{border-bottom:1.5px solid #9FAEC6}
.dy-tile--cal{border-color:#B9C4D6}
.dy-tile--cal .mc-grid>*{border-right-color:#C9D2E0;border-bottom-color:#C9D2E0}
/* challenges and victories: the number right beside its name */
.dy-tile-top{display:flex;align-items:baseline;gap:10px}
.dy-stack .dy-tile strong{font-size:1.7rem;line-height:1}
/* the door: the group above it, as tall as challenges and victories together, standing on its floor */
.dy-doorcol{align-self:stretch;justify-content:flex-start;gap:6px}
.dd-who{font-size:.74rem;font-weight:700;color:#5A6782;text-align:center;line-height:1.25}
.dy-door2{flex:1;max-height:none;min-height:150px}
.dd-frame{height:calc(100% - 14px)}
.dd-plaque{font-size:.82rem;padding:4px 3px}
.dd-glass{top:40%;height:18%}
.dd-handle{top:64%}
@media (max-width:560px){.dd-glass{display:none}.dd-plaque{font-size:.74rem;top:7%}.dd-who{font-size:.66rem}}
/* the progress check card on the picture stays turquoise (coral means "try again") */
.rm-pc.is-due{border-color:#5FE3D6;background:#E9FBF9}
.rm-pc.is-due .rm-pc-t small{color:#0E7C74}
/* Step up: brighter, the cards in their book's colour */
.su{background:linear-gradient(135deg,#E3FAF7,#F3FDFC);border:1.5px solid #7FE6DC;box-shadow:0 10px 24px -18px rgba(0,169,157,.6)}
.su-h b{font-size:1.15rem;color:#007F78}
.su-ic{width:44px;height:40px;color:#00A99D}
.su-u{border:1.5px solid color-mix(in srgb,var(--tone) 35%,#fff);border-left:5px solid var(--tone);background:#fff}
.su-u:hover{border-color:var(--tone)}
.su-u small{color:var(--tone)}
.su-k{background:var(--tone)}
.su-u em{color:var(--tone)}
.su-u.is-done{background:color-mix(in srgb,var(--tone) 8%,#fff)}
.su-u.is-done em{color:#1E9E57}
/* the two buttons: bright and clearly clickable */
.dy-hwb{background:linear-gradient(180deg,#22D3C5,#00A99D);border:0;color:#fff;box-shadow:0 8px 18px -10px rgba(0,169,157,.9)}
.dy-hwb:hover{background:linear-gradient(180deg,#2FE3D5,#00B3A7)}
.dy-hwb.is-done{background:#1E9E57;box-shadow:none}
.dy-hwb--up{background:#fff;color:#007F78;border:1.5px dashed #7FE6DC;box-shadow:none}
.dy-hwb--up .su-ic{width:24px;height:22px;color:#00A99D}
.dy-hwb--up.is-done{background:#1E9E57;color:#fff;border:0}
.dy-hwb--up.is-done .su-ic{color:#fff}

/* ===================== round 5: the tile calendar is back (white day tiles on the evening blue) ===================== */
.dy-sheet--cal .cl{background:linear-gradient(160deg,#0A1A44,#13306A 55%,#1C4485);border:0;border-radius:20px;padding:16px;color:#fff;box-shadow:none}
.dy-sheet--cal .cl-nav{background:none;padding:0;margin:2px 0 10px}
.dy-sheet--cal .cl-month{font:700 1.3rem/1.2 'Playfair Display',Georgia,serif;letter-spacing:0}
.dy-sheet--cal .cl>p.cl-active{margin:0 0 12px;padding:9px 14px;border:0;border-radius:12px}
.dy-sheet--cal .cl-grid{gap:6px;grid-template-columns:38px repeat(7,minmax(0,1fr));border:0}
.dy-sheet--cal .cl-grid>*{border:0 !important;border-radius:12px}
.dy-sheet--cal .cl-dh{background:none;color:#9FB0D6;padding:2px 0}
.dy-sheet--cal .cl-wk-h{background:none}
.dy-sheet--cal .cl-wk{background:rgba(255,255,255,.1);color:#C9D4EC;border-radius:10px}
.dy-sheet--cal .cl-wk:hover,.dy-sheet--cal .cl-wk.is-on{background:#00C0B4;color:#fff}
.dy-sheet--cal .cl-d{height:76px;border-radius:12px;background:#FFFFFF;box-shadow:none}
.dy-sheet--cal .cl-d:hover{background:#F2F7FF}
.dy-sheet--cal .cl-d.is-cls{box-shadow:inset 0 0 0 2.5px #22B35E}
.dy-sheet--cal .cl-d.is-att{box-shadow:inset 0 0 0 2.5px #22B35E;background:#E8F8EE}
.dy-sheet--cal .cl-d.is-miss{background:#C3C9D4}
.dy-sheet--cal .cl-d.is-out{background:rgba(255,255,255,.12) !important;opacity:.6}
.dy-sheet--cal .cl-d.is-out .cl-num{color:#C9D4EC}
.dy-sheet--cal .cl-d.is-on{box-shadow:0 0 0 2.5px #FFFFFF,0 0 0 5px #00C0B4}
.dy-sheet--cal .cl-d.is-today{background:linear-gradient(180deg,#7CF6EC 0%,#22D3C5 55%,#00C0B4 100%);box-shadow:0 0 0 3px rgba(255,255,255,.85),0 0 26px rgba(124,246,236,.9)}
.dy-sheet--cal .cl-d.is-today.is-cls,.dy-sheet--cal .cl-d.is-today.is-att{box-shadow:inset 0 0 0 2.5px #22B35E,0 0 0 3px rgba(255,255,255,.85),0 0 26px rgba(124,246,236,.9)}
.dy-sheet--cal .cl>p.cl-key{color:#C9D4EC;padding:14px 2px 4px}
.dy-sheet--cal .cl>p.cl-hint{color:#9FB0D6;padding:0 2px 6px}
.dy-sheet--cal .cl-view{margin:8px 0 0;background:#fff;border:0}
.dy-sheet--cal .k-sw{background:#fff}
.dy-sheet--cal .k-today{background:linear-gradient(180deg,#7CF6EC,#00C0B4)}
.dy-sheet--cal .k-miss{background:#C3C9D4}
.dy-sheet--cal .k-att{background:#E8F8EE}
@media (max-width:480px){
  .dy-sheet--cal .cl{padding:10px}
  .dy-sheet--cal .cl-grid{gap:3px;grid-template-columns:22px repeat(7,minmax(0,1fr))}
  .dy-sheet--cal .cl-d{height:66px;border-radius:9px}
}
/* the small calendar on the page: white tiles on the evening blue */
.dy-tile--cal{background:linear-gradient(160deg,#0A1A44,#13306A 60%,#1C4485);border-color:#1C3A78;color:#fff;padding:14px 14px 12px;gap:6px}
.dy-tile--cal .mc-h{padding:0;background:none}
.dy-tile--cal .mc-h b{font:700 1.05rem/1.2 'Playfair Display',Georgia,serif}
.dy-tile--cal .mc-sub{padding:0;background:none;border:0;color:#9FE9E1}
.dy-tile--cal .mc-grid{gap:3px;margin-top:2px}
.dy-tile--cal .mc-grid>*{border:0 !important}
.dy-tile--cal .mc-dh{background:none;color:#9FB0D6;padding:0}
.dy-tile--cal .cl-d--mini{height:24px;border-radius:6px;background:#fff;padding:3px 0 0}
.dy-tile--cal .cl-d--mini.is-out{background:rgba(255,255,255,.12) !important;opacity:.6}
.dy-tile--cal .cl-d--mini.is-out .cl-num{color:#C9D4EC}
.dy-tile--cal .cl-d--mini.is-cls{box-shadow:inset 0 0 0 2px #22B35E}
.dy-tile--cal .cl-d--mini.is-att{box-shadow:inset 0 0 0 2px #22B35E;background:#E8F8EE}
.dy-tile--cal .cl-d--mini.is-miss{background:#C3C9D4}
.dy-tile--cal .cl-d--mini.is-today{background:linear-gradient(180deg,#7CF6EC 0%,#22D3C5 55%,#00C0B4 100%);box-shadow:0 0 0 2px #fff,0 0 14px rgba(124,246,236,.95)}

/* ===================== round 6: the tiles sit on soft warm ivory, like good paper ===================== */
.dy-sheet--cal .cl{background:#FBF6EC;border:1px solid #EADFCB;color:#1E2B4D}
.dy-sheet--cal .cl-arrow{background:#fff;border:1px solid #E6DCCB;color:#1E2B4D}
.dy-sheet--cal .cl-month{color:#1E2B4D}
.dy-sheet--cal .cl-month i{color:#00A99D}
.dy-sheet--cal .cl-month:hover,.dy-sheet--cal .cl-month.is-on{background:#F3EADA}
.dy-sheet--cal .cl-dh{color:#8A7F6C}
.dy-sheet--cal .cl-wk{background:#F1E8D8;color:#7A6F5C}
.dy-sheet--cal .cl-wk:hover,.dy-sheet--cal .cl-wk.is-on{background:#00C0B4;color:#fff}
.dy-sheet--cal .cl-d{box-shadow:inset 0 0 0 1px #E6DCCB}
.dy-sheet--cal .cl-d.is-out{background:transparent !important;box-shadow:inset 0 0 0 1px #F0E7D7 !important;opacity:1}
.dy-sheet--cal .cl-d.is-out .cl-num{color:#CDBFA8}
.dy-sheet--cal .cl-d.is-miss{background:#D9DCE3}
.dy-sheet--cal .cl>p.cl-key{color:#5A5446}
.dy-sheet--cal .cl>p.cl-hint{color:#9A8F7C}
.dy-sheet--cal .k-sw{background:#fff;box-shadow:inset 0 0 0 1px #E6DCCB}
.dy-sheet--cal .k-cls,.dy-sheet--cal .k-att{box-shadow:inset 0 0 0 2px #22B35E}
.dy-sheet--cal .k-miss{background:#D9DCE3}
.dy-sheet--cal .cl-view{border:1px solid #EADFCB}
/* the small calendar on the page */
.dy-tile--cal{background:#FBF6EC;border-color:#EADFCB;color:#1E2B4D}
.dy-tile--cal .mc-h b{color:#1E2B4D}
.dy-tile--cal .mc-h i{color:#00A99D}
.dy-tile--cal .mc-sub{color:#0E7C74}
.dy-tile--cal .mc-dh{color:#8A7F6C}
.dy-tile--cal .cl-d--mini{box-shadow:inset 0 0 0 1px #E6DCCB}
.dy-tile--cal .cl-d--mini.is-out{background:transparent !important;box-shadow:none !important;opacity:1}
.dy-tile--cal .cl-d--mini.is-out .cl-num{color:#CDBFA8}
.dy-tile--cal .cl-d--mini.is-miss{background:#D9DCE3}
.dy-sheet--cal .k-sw.k-today{background:linear-gradient(180deg,#7CF6EC,#00C0B4);box-shadow:0 0 8px rgba(124,246,236,.9)}
.dy-sheet--cal .k-sw.k-bar{background:#3B82F6;box-shadow:none}
.dy-sheet--cal .k-sw.k-att{background:#E8F8EE}

/* ===================== round 7: the tiles stand out like little cards ===================== */
.dy-sheet--cal .cl-d{box-shadow:inset 0 0 0 1.5px #CBBDA3,0 3px 6px -2px rgba(90,70,40,.22)}
.dy-sheet--cal .cl-d:hover{box-shadow:inset 0 0 0 1.5px #B5A68A,0 6px 12px -4px rgba(90,70,40,.3)}
.dy-sheet--cal .cl-d.is-cls{box-shadow:inset 0 0 0 2.5px #22B35E,0 3px 6px -2px rgba(90,70,40,.22)}
.dy-sheet--cal .cl-d.is-att{box-shadow:inset 0 0 0 2.5px #22B35E,0 3px 6px -2px rgba(90,70,40,.22)}
.dy-sheet--cal .cl-d.is-miss{box-shadow:inset 0 0 0 1.5px #AEB4C0,0 3px 6px -2px rgba(90,70,40,.22)}
.dy-sheet--cal .cl-d.is-on{box-shadow:0 0 0 2.5px #FFFFFF,0 0 0 5px #00C0B4}
.dy-tile--cal .cl-d--mini{box-shadow:inset 0 0 0 1px #CBBDA3,0 2px 3px -1px rgba(90,70,40,.2)}
.dy-tile--cal .cl-d--mini.is-cls,.dy-tile--cal .cl-d--mini.is-att{box-shadow:inset 0 0 0 2px #22B35E,0 2px 3px -1px rgba(90,70,40,.2)}
.dy-tile--cal .cl-d--mini.is-miss{box-shadow:inset 0 0 0 1px #AEB4C0,0 2px 3px -1px rgba(90,70,40,.2)}

/* ===================== round 8: calendar card with a folded corner; the home task as a notebook ===================== */
.dy-row{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) 150px;grid-template-areas:"cal stack stack" "hw hw door";align-items:start;gap:16px}
.dy-row--nog{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);grid-template-areas:"cal stack"}
.dy-row .dy-tile--cal{grid-area:cal}.dy-row .dy-stack{grid-area:stack;align-self:stretch}
.dy-row .dy-class-board{grid-area:hw;margin:0}.dy-row .dy-doorcol{grid-area:door;align-self:start}
.dy-row .dy-door2{flex:none;height:250px;min-height:0}
/* the calendar: a real paper calendar lifted off the page — strong outline, a shadow, one corner folded */
.dy-tile--cal{position:relative;border:2px solid #B9A98C;border-radius:16px 16px 34px 16px;box-shadow:0 2px 0 #E6D8BD,0 18px 30px -16px rgba(90,70,40,.45);transition:transform .2s ease,box-shadow .2s ease}
.dy-tile--cal:hover{transform:translateY(-4px) rotate(-.4deg);box-shadow:0 2px 0 #E6D8BD,0 26px 38px -18px rgba(90,70,40,.55)}
.dy-tile--cal::after{content:"";position:absolute;right:-2px;bottom:-2px;width:40px;height:40px;
  background:linear-gradient(315deg,#FFFFFF 0 50%,#E2D2B3 50% 100%);border-top-left-radius:10px;
  box-shadow:-3px -3px 6px -3px rgba(90,70,40,.35);pointer-events:none}
.dy-tile--cal .mc-grid{padding-bottom:6px}
/* the home task: a notebook page — lined paper, a red margin line, spiral holes on the side */
.dy-class-board .rm-hw-card{position:relative;padding:18px 20px 20px 70px;border-radius:6px 14px 14px 6px;border:1px solid #D5DEEA;
  background:linear-gradient(90deg,transparent 0 56px,#F2A3A3 56px 57.5px,transparent 57.5px) ,repeating-linear-gradient(180deg,#FFFFFF 0 27px,#DCE7F3 27px 28px);
  box-shadow:0 1px 0 #fff inset,0 14px 26px -18px rgba(19,33,58,.45)}
.dy-class-board .rm-hw-card::before{content:"";position:absolute;left:14px;top:16px;bottom:16px;width:24px;
  background:radial-gradient(circle at 12px 12px,#F4F6FA 0 4px,#8D99AE 4.5px 6px,transparent 6.5px) repeat-y 0 0/24px 28px}
.dy-class-board .rm-hw-card.is-done{border-color:#BDE8CC}
.dy-class-board .rm-hw-h b{font-size:1.05rem;color:#1E2B4D;line-height:28px}
.dy-class-board .rm-hw-txt{line-height:28px;margin:0;color:#1E2B4D;font-size:1rem}
.dy-class-board .rm-hw-att{margin:8px 0 0}
.dy-class-board .rm-hw-att a{background:#fff}
/* Step up: one button that leads through the exercises */
.su{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:16px 0 0;padding:14px 16px;border-radius:14px}
.su .su-ic{width:46px;height:40px;flex:none}
.su-t{flex:1;min-width:160px;display:flex;flex-direction:column}
.su-t b{font-size:1.12rem;color:#007F78}
.su-t small{font-size:.82rem;color:#3E7D77}
.su-go{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;padding:11px 20px;border-radius:14px;text-decoration:none;color:#fff;
  background:linear-gradient(180deg,#22D3C5,#00A99D);box-shadow:0 10px 20px -12px rgba(0,169,157,.95);font-weight:800;font-size:1rem}
.su-go:hover{background:linear-gradient(180deg,#2FE3D5,#00B3A7)}
.su-go small{display:flex;align-items:center;gap:5px;font-size:.74rem;font-weight:600;opacity:.95}
.su-dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.4);box-shadow:inset 0 0 0 1.5px #fff}
.su-dot.is-done{background:#fff}
.su-go.is-done{background:#1E9E57;box-shadow:none;flex-direction:row;cursor:default}
.su.is-done{background:#EEFBF3;border-color:#BDE8CC}
@media (max-width:900px){
  .dy-row{grid-template-columns:minmax(0,1fr) 130px;grid-template-areas:"cal cal" "stack door" "hw hw"}
  .dy-row .dy-door2{height:200px}
}
@media (max-width:560px){
  .dy-row{grid-template-columns:minmax(0,1fr) 112px}
  .dy-row .dy-door2{height:170px}
  .dy-class-board .rm-hw-card{padding:14px 14px 16px 50px;background:linear-gradient(90deg,transparent 0 40px,#F2A3A3 40px 41.5px,transparent 41.5px),repeating-linear-gradient(180deg,#FFFFFF 0 27px,#DCE7F3 27px 28px)}
  .dy-class-board .rm-hw-card::before{left:8px}
}

/* ===================== round 9: a calendar pad, every tile a separate card, a bigger door ===================== */
/* one shadow and outline for every tile, so each sits on the page like a separate card */
.dy-row .dy-stack .dy-tile,.dy-row .rm-hw-card,.dy-row .dy-door2,.dy-pad .pad-top,.dy-pad .pad-under{
  box-shadow:0 1px 2px rgba(19,33,58,.10),0 4px 10px rgba(19,33,58,.08),0 18px 32px -16px rgba(19,33,58,.42)}
.dy-row .dy-stack .dy-tile{border-width:1.5px}
.dy-row .rm-hw-card{border:1.5px solid #C9D4E4}
.dy-row .dy-door2{border:1.5px solid #C9D4E4}
.dy-row{gap:18px}
/* the calendar pad: this month on top, more pages underneath, next month right below */
.dy-pad{grid-area:cal;position:relative;margin:0 9px 9px 0;align-self:stretch}
.pad-sheet{position:absolute;inset:0;border-radius:16px;background:#F3EAD8;border:1.5px solid #C9B99B;z-index:0}
.pad-sheet--2{transform:translate(4px,4px)}
.pad-sheet--3{transform:translate(8px,8px);background:#EEE3CE}
.dy-pad .dy-tile--cal{border:2px solid #B9A98C;border-radius:16px;min-height:0;transition:none}
.dy-pad .dy-tile--cal::after{display:none}
.dy-pad .pad-under{position:absolute;inset:0;z-index:1}
.dy-pad .pad-top{position:relative;z-index:2;width:100%;height:100%;transform-origin:50% 0;transition:transform .75s cubic-bezier(.45,.05,.2,1),opacity .55s ease .2s}
.dy-pad:not(.is-flipped) .pad-top:hover{transform:translateY(-3px)}
.dy-pad.is-flipped .pad-top{transform:perspective(1400px) rotateX(-100deg);opacity:0;pointer-events:none}
.dy-pad .pad-under .mc-sub{color:#8A7F6C}
/* the corner at the bottom left, curled up a little: lift it to turn the page */
.pad-corner{position:absolute;left:0;bottom:0;z-index:3;width:44px;height:44px;border:0;padding:0;cursor:pointer;
  border-radius:0 26px 0 16px;
  background:linear-gradient(to top right,#EFE5D1 0 45%,rgba(90,70,40,.38) 48%,#FFFDF6 52%,#F1E6D0 72%,#DCCBA8 100%);
  box-shadow:3px -3px 7px -2px rgba(90,70,40,.35);transition:width .25s ease,height .25s ease}
.pad-corner:hover,.pad-corner:focus-visible{width:58px;height:58px;outline:none}
.pad-corner:focus-visible{box-shadow:3px -3px 7px -2px rgba(90,70,40,.35),0 0 0 3px #00C0B4}
@media (prefers-reduced-motion:reduce){.dy-pad .pad-top{transition:opacity .2s}}
/* the door: bigger, its right edge in line with challenges and victories; the words above it, the floor below */
.dy-row{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) 210px}
.dy-row .dy-doorcol{align-self:stretch;gap:4px}
.dy-row .dy-door2{flex:1;height:auto;min-height:250px;padding:14px 26px 0}
.dd-who{font-size:.76rem}
.dd-when{display:flex;flex-direction:column;align-items:center;margin-bottom:4px}
.dd-when small{font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#00A99D}
.dd-when b{font-size:.82rem;color:#1E2B4D}
/* Step up: the button right after its title, no empty gap */
.su{justify-content:flex-start}
.su-t{flex:0 1 auto;min-width:0;margin-right:6px}
@media (max-width:900px){
  .dy-row{grid-template-columns:minmax(0,1fr) 170px}
  .dy-row .dy-door2{min-height:200px}
}
@media (max-width:560px){
  .dy-row{grid-template-columns:minmax(0,1fr) 128px}
  .dy-row .dy-door2{min-height:170px;padding:10px 12px 0}
  .dd-when b{font-size:.7rem;white-space:normal;text-align:center}
}
@media (max-width:560px){
  .dy-row{grid-template-columns:minmax(0,1fr) 116px;gap:12px}
  .dy-row .dy-stack .dy-tile{min-width:0;overflow:hidden;padding:10px;gap:6px}
  .dy-row .dy-stack .dy-tile-ic{font-size:1.2rem}
  .dy-row .dy-stack .dy-tile b{font-size:.88rem}
  .dy-row .dy-stack .dy-tile-top{gap:6px}
  .dy-row .dy-stack .dy-tile strong{font-size:1.4rem}
  .dy-row .dy-doorcol{min-width:0}
  .dd-when b,.dd-who{white-space:normal !important;text-align:center;font-size:.68rem}
}

/* ===================== round 10: the corner only rolls up a little (no fold) ===================== */
.dy-pad .pad-top{border-bottom-left-radius:46px 30px;transition:transform .75s cubic-bezier(.45,.05,.2,1),opacity .55s ease .2s,border-radius .3s ease}
.dy-pad:has(.pad-corner:hover) .pad-top,.dy-pad:has(.pad-corner:focus-visible) .pad-top{border-bottom-left-radius:62px 42px}
.pad-corner{width:64px;height:48px;border-radius:0 0 0 46px / 0 0 0 30px;
  background:radial-gradient(110% 120% at 0% 100%,transparent 0 52%,rgba(90,70,40,.22) 56%,rgba(255,253,246,.95) 62%,rgba(241,230,208,.6) 72%,transparent 82%);
  box-shadow:none;transition:width .3s ease,height .3s ease,border-radius .3s ease}
.pad-corner:hover,.pad-corner:focus-visible{width:80px;height:60px;border-radius:0 0 0 62px / 0 0 0 42px}
.pad-corner:focus-visible{box-shadow:0 0 0 3px #00C0B4}
/* a soft shadow on the page underneath, where the corner lifts */
.pad-sheet--2{box-shadow:inset 10px -10px 14px -10px rgba(90,70,40,.35)}
.pad-corner{background:linear-gradient(45deg,rgba(214,198,166,.55) 0,rgba(255,254,250,.95) 16%,rgba(250,244,232,.6) 30%,transparent 46%)}
.pad-corner:hover,.pad-corner:focus-visible{background:linear-gradient(45deg,rgba(214,198,166,.6) 0,rgba(255,254,250,.98) 18%,rgba(250,244,232,.6) 34%,transparent 50%)}
/* the corner rolls a bit more, but only in the empty margin below the days */
.dy-pad .pad-top{padding-bottom:30px;border-bottom-left-radius:74px 34px}
.dy-pad:has(.pad-corner:hover) .pad-top,.dy-pad:has(.pad-corner:focus-visible) .pad-top{border-bottom-left-radius:90px 40px}
.pad-corner{width:96px;height:34px;border-radius:0 0 0 74px / 0 0 0 34px;
  background:linear-gradient(28deg,rgba(201,183,148,.7) 0,rgba(255,254,250,.97) 20%,rgba(250,244,232,.65) 38%,transparent 58%)}
.pad-corner:hover,.pad-corner:focus-visible{width:110px;height:40px;border-radius:0 0 0 90px / 0 0 0 40px;
  background:linear-gradient(28deg,rgba(201,183,148,.75) 0,rgba(255,254,250,.98) 22%,rgba(250,244,232,.65) 40%,transparent 60%)}
.pad-sheet--2{box-shadow:inset 16px -10px 16px -12px rgba(90,70,40,.45)}
@media (max-width:560px){.dy-pad .pad-top{padding-bottom:26px}}
/* the rolled corner joins the paper's edges: the outline runs unbroken around the curl,
   and the curl's light fades to nothing where it meets the side and the bottom */
@property --rx{syntax:'<length>';inherits:true;initial-value:72px}
@property --ry{syntax:'<length>';inherits:true;initial-value:32px}
.dy-pad{--rx:72px;--ry:32px;transition:--rx .3s ease,--ry .3s ease}
.dy-pad:has(.pad-corner:hover),.dy-pad:has(.pad-corner:focus-visible){--rx:88px;--ry:38px}
.dy-pad .pad-top,.dy-pad:has(.pad-corner:hover) .pad-top,.dy-pad:has(.pad-corner:focus-visible) .pad-top{
  border-bottom-left-radius:calc(var(--rx) + 2px) calc(var(--ry) + 2px)}
.pad-corner,.pad-corner:hover,.pad-corner:focus-visible{left:2px;bottom:2px;width:var(--rx);height:var(--ry);
  border-radius:0 0 0 var(--rx) / 0 0 0 var(--ry);
  background:radial-gradient(var(--rx) var(--ry) at 100% 0,transparent 0 62%,rgba(255,254,249,.55) 76%,#FFFEF9 90%,rgba(214,196,160,.85) 100%);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 70%),linear-gradient(to left,transparent 0,#000 55%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to bottom,transparent 0,#000 70%),linear-gradient(to left,transparent 0,#000 55%);
  mask-composite:intersect;
  transition:transform .75s cubic-bezier(.45,.05,.2,1)}
.pad-corner:focus-visible{box-shadow:none;outline:3px solid #00C0B4;outline-offset:2px}
/* when the page lifts on hover, the corner lifts with it, so they never separate */
.dy-pad:not(.is-flipped):hover .pad-top,.dy-pad:not(.is-flipped):hover .pad-corner{transform:translateY(-3px)}
@media (max-width:560px){.dy-pad{--rx:62px;--ry:28px}.dy-pad:has(.pad-corner:hover){--rx:74px;--ry:32px}}
/* round 11 — the class area sits on a very pale aqua, a whisper of the brand turquoise */
.dy-card.dy-class{background:#EDF8F7;border-color:#CFEAE6}
/* my challenges / my victories: the name on top, her two newest items below, so the tile is not empty */
.dy-row .dy-stack .dy-tile{flex-direction:column;align-items:stretch;justify-content:flex-start;padding:16px 18px;text-align:left}
.dy-stack .dy-tile-top{display:flex;align-items:center;gap:10px}
.dy-stack .dy-tile-top .dy-tile-ic{font-size:1.5rem;margin:0}
.dy-stack .dy-tile-top b{font-size:1.05rem}
.dy-stack .dy-tile-top strong{margin-left:auto}
.dy-tl{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.dy-tl li{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;background:#fff;border:1px solid #F3D3CC;min-width:0}
.dy-tile--vi .dy-tl li{border-color:#C9EBD5}
.dy-tl li>span{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:800;color:#fff;background:#FF6F61}
.dy-tile--vi .dy-tl li>span{background:#2BC27A}
.dy-tl b{flex:1;min-width:0;font-size:.92rem;font-weight:700;color:#1E2B4D;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dy-tl em{flex:none;font-style:normal;font-size:.8rem;font-weight:700;color:#C44536}
.dy-tile--vi .dy-tl em{color:#1E9E57}
.dy-tl-none{margin:12px 0 0;font-size:.88rem;line-height:1.45;color:#5B6680}
@media (max-width:560px){
  .dy-row .dy-stack .dy-tile{padding:10px}
  .dy-tl{margin-top:8px;gap:6px}.dy-tl li{padding:6px 8px;gap:6px}
  .dy-tl li>span{width:18px;height:18px;font-size:.66rem}
  .dy-tl b{font-size:.78rem}.dy-tl em{font-size:.7rem}
  .dy-tl-none{font-size:.76rem;margin-top:6px}
}
/* the door: taller and narrower like a real door, a longer window, the handle at hand height */
.dy-row .dy-door2{padding:12px 34px 0}
.dy-row .dd-glass{display:block;top:21%;height:31%;right:18%;width:22%}
.dy-row .dd-handle{top:56%}
@media (max-width:900px){.dy-row .dy-door2{padding:10px 24px 0}}
@media (max-width:560px){.dy-row .dy-door2{padding:10px 16px 0}.dy-row .dd-glass{top:24%;height:28%}}
@media (max-width:560px){
  .dy-tl li{display:block;padding:6px 8px}
  .dy-tl li>span{display:none}
  .dy-tl b{display:block;white-space:normal;overflow:visible;line-height:1.25}
  .dy-tl em{display:block;margin-top:2px}
}
/* round 12 — today stands apart: a medium logo blue (not dark navy), white number, soft blue glow */
.cl-d.is-today,.dy-sheet--cal .cl-d.is-today,.dy-tile--cal .cl-d--mini.is-today{
  background:linear-gradient(180deg,#4A90E2 0%,#2F74CC 55%,#1F63B8 100%);border-color:#1F63B8;
  box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(47,116,204,.35),0 0 18px rgba(47,116,204,.55);z-index:1}
.cl-d.is-today.is-cls,.cl-d.is-today.is-att,.dy-sheet--cal .cl-d.is-today.is-cls,.dy-sheet--cal .cl-d.is-today.is-att,
.dy-tile--cal .cl-d--mini.is-today.is-cls,.dy-tile--cal .cl-d--mini.is-today.is-att{
  box-shadow:inset 0 0 0 2px #2BC27A,0 0 0 2px #fff,0 0 0 4px rgba(47,116,204,.35),0 0 18px rgba(47,116,204,.55)}
.cl-d.is-today .cl-num,.cl-d.is-today .cl-today,.dy-tile--cal .cl-d--mini.is-today .cl-num{color:#fff;text-shadow:0 1px 2px rgba(10,40,90,.4)}
.cl-d.is-today .cl-bar{background:rgba(255,255,255,.9)}
.k-today,.dy-sheet--cal .k-today,.dy-sheet--cal .k-sw.k-today{background:linear-gradient(180deg,#4A90E2,#1F63B8);box-shadow:0 0 6px rgba(47,116,204,.6)}
/* the door: a normal door height again, not stretched */
.dy-row .dy-doorcol{align-self:start}
.dy-row .dy-door2{flex:none;height:250px;min-height:0}
@media (max-width:900px){.dy-row .dy-door2{height:220px}}
@media (max-width:560px){.dy-row .dy-door2{height:190px;padding:10px 18px 0}.dy-row .dd-glass{top:26%;height:26%}}
@media (max-width:560px){.dy-row .dd-glass{top:36%;height:22%}.dy-row .dd-handle{top:62%}}
/* round 13 — every day is a day to practise: an empty track waits at the bottom of each day and fills with her minutes */
.cl-trk{position:absolute;left:6px;right:6px;bottom:4px;height:4px;border-radius:2px;background:rgba(120,98,62,.13)}
.cl-d--mini .cl-trk{left:3px;right:3px;bottom:2px;height:3px}
.cl-bar{z-index:1}
.cl-d.is-today .cl-trk{background:rgba(255,255,255,.3)}
/* class days in the pad: no loud green frame, only a small green word */
.dy-tile--cal .cl-d--mini.is-cls,.dy-tile--cal .cl-d--mini.is-att,.dy-tile--cal .cl-d--mini.is-miss{
  background:#fff;box-shadow:inset 0 0 0 1px #CBBDA3,0 2px 3px -1px rgba(90,70,40,.2)}
.dy-tile--cal .cl-d--mini.is-today.is-cls,.dy-tile--cal .cl-d--mini.is-today.is-att{
  box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(47,116,204,.35),0 0 18px rgba(47,116,204,.55)}
.dy-pad .cl-d--mini{height:40px;padding-top:4px}
.cl-tag{position:absolute;left:1px;right:1px;bottom:7px;text-align:center;font-style:normal;font-size:.56rem;font-weight:800;line-height:1.05;
  color:#1E9E57;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-tag--miss{color:#8A93A6;font-weight:700}
.cl-tag--td{color:#fff;white-space:normal;font-size:.52rem;bottom:6px}
.mc-todo{display:none}
@media (max-width:900px){.dy-pad .cl-d--mini{height:36px}}
@media (max-width:560px){
  .dy-pad .cl-d--mini{height:33px;padding-top:3px}
  .cl-tag{font-size:.46rem;bottom:6px}
  .cl-tag--td{display:none}
  .mc-todo{display:flex;align-items:center;gap:6px;margin:2px 0 6px;font-size:.74rem;font-weight:800;color:#1F63B8}
  .mc-todo i{width:9px;height:9px;border-radius:3px;background:linear-gradient(180deg,#4A90E2,#1F63B8)}
}
/* the door stands on the floor: its bottom level with the tile beside it (the notebook on a computer, My victories on a phone) */
.dy-row .dy-doorcol{align-self:end}
.dy-tile--cal .cl-d--mini.is-today,.dy-tile--cal .cl-d--mini.is-today.is-cls,.dy-tile--cal .cl-d--mini.is-today.is-att,.dy-tile--cal .cl-d--mini.is-today.is-miss{
  background:linear-gradient(180deg,#4A90E2 0%,#2F74CC 55%,#1F63B8 100%)}
.dy-pad .cl-d--mini.is-today .cl-num{font-size:.8rem}
.cl-tag--td{white-space:nowrap;font-size:.5rem;letter-spacing:-.01em;bottom:7px;left:0;right:0;overflow:visible}
@media (max-width:900px){.cl-tag--td{font-size:.42rem}}
/* class days: a soft light-green fill with the small "class" word (a missed one stays white with "missed") */
.dy-tile--cal .cl-d--mini.is-cls,.dy-tile--cal .cl-d--mini.is-att{background:#E3F5E9;box-shadow:inset 0 0 0 1px #A9D8B8,0 2px 3px -1px rgba(90,70,40,.2)}
/* round 14 — the dram sign for her fee day (it is small and clear), drawn in the Armenian font that has it */
.dram{font-family:'Noto Sans Armenian','Noto Sans',Arial,sans-serif;font-style:normal;font-weight:700}
.cl-pay-m.dram{font-size:.62rem;color:#5B5BD6;line-height:1}
.k-pay.dram{color:#5B5BD6}
/* the small signs (star, flag, bell, ֏) sit a little in from the tile's edge */
.dy-pad .cl-d--mini .cl-ms{right:5px;top:4px}
.dy-pad .cl-d--mini .cl-pay-m{left:5px;top:4px}
@media (max-width:560px){.dy-pad .cl-d--mini .cl-ms{right:3px;top:3px}.dy-pad .cl-d--mini .cl-pay-m{left:3px;top:3px}}
/* the notebook's holes look punched through: darker, with a soft shadow inside */
.dy-class-board .rm-hw-card::before{
  background:radial-gradient(circle at 12px 12px,#3E4A60 0 2.5px,#5D6982 3.5px,#8F9AAE 4.6px,#CDD3DE 5.2px 6px,transparent 6.5px) repeat-y 0 0/24px 28px}
/* Step up: the button goes to the far side, so the box is filled across the notebook */
.su-t{flex:1 1 auto}
.su-go{margin-left:auto}
/* her photo next to "Hello" */
.dy-hi{display:flex;align-items:center;gap:16px;min-width:0}
.dy-ava-w{position:relative;flex:none}
.dy-ava{position:relative;width:64px;height:64px;border-radius:50%;padding:0;border:3px solid #fff;cursor:pointer;
  background:linear-gradient(180deg,#2FE3D5,#00A99D);box-shadow:0 0 0 2px #CFEAE6,0 8px 18px -8px rgba(19,33,58,.45);display:grid;place-items:center;overflow:visible}
.dy-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.dy-ava>span{font:800 1.6rem/1 'Noto Sans','Noto Sans Armenian',Arial,sans-serif;color:#fff}
.dy-ava>i{position:absolute;right:-4px;bottom:-4px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:.8rem;
  background:#fff;box-shadow:0 2px 6px rgba(19,33,58,.25)}
.dy-ava:focus-visible{outline:3px solid #00C0B4;outline-offset:3px}
.dy-ava-panel{position:absolute;left:0;top:calc(100% + 10px);z-index:30;width:260px;padding:14px;border-radius:14px;background:#fff;
  border:1px solid #D5DEEA;box-shadow:0 18px 40px -16px rgba(19,33,58,.45);display:grid;gap:8px}
.dy-ava-panel[hidden]{display:none}
.dy-ava-pick{justify-content:center;cursor:pointer;text-align:center}
.dy-ava-rm{padding:9px 12px;border-radius:10px;border:1px solid #F3C4BD;background:#fff;color:#C44536;font-weight:700;cursor:pointer}
.dy-ava-note{margin:2px 0 0;font-size:.8rem;line-height:1.45;color:#5B6680}
.dy-ava-msg{margin:0;font-size:.8rem;font-weight:700;color:#1F63B8}
.dy-ava-msg:empty{display:none}
@media (max-width:560px){.dy-ava{width:52px;height:52px}.dy-ava>span{font-size:1.3rem}.dy-hi{gap:12px}}
.dy-ava-pick{display:flex;align-items:center;justify-content:center;padding:11px 14px;border-radius:12px;font-weight:700;color:#fff;
  background:linear-gradient(180deg,#2FE3D5,#00A99D);box-shadow:0 8px 16px -8px rgba(0,169,157,.7)}
.dy-ava-pick:hover{background:linear-gradient(180deg,#45EADD,#00B3A7)}
.dy-pad .cl-d--mini .cl-pay-m.dram{font-size:.82rem;font-weight:800;top:3px}
@media (max-width:560px){.dy-pad .cl-d--mini .cl-pay-m.dram{font-size:.66rem;top:2px;left:3px}}
.st-plq--reach{font:800 9.6px Inter,Arial,sans-serif;letter-spacing:1px}
/* round 15 — "Join the class" is a solid bright sign that catches the eye (turquoise; amber is the other choice) */
.dy-door2 .dd-plaque{background:linear-gradient(180deg,#2FE3D5,#00A99D);border:1px solid #7FF0E6;color:#fff;
  font:800 .8rem/1.15 Inter,'Noto Sans Armenian',Arial,sans-serif;letter-spacing:.01em;padding:6px 4px;border-radius:7px;
  box-shadow:0 0 0 2px rgba(0,0,0,.18),0 0 14px rgba(47,227,213,.55);text-shadow:0 1px 1px rgba(0,80,74,.35)}
.dy-door2.sign-amber .dd-plaque{background:linear-gradient(180deg,#FFCF5A,#F5A623);border-color:#FFE29A;color:#13306A;
  box-shadow:0 0 0 2px rgba(0,0,0,.18),0 0 14px rgba(245,166,35,.6);text-shadow:none}
/* a little bulb behind the window, like the doors in the corridor: dark, and lit warm when the class is about to start */
.dy-row .dd-glass{overflow:visible}
.dd-bulb{position:absolute;left:50%;top:12px;width:11px;height:11px;margin-left:-5.5px;border-radius:50%;
  background:radial-gradient(circle at 40% 34%,#C9D6DE,#9DAEB9 60%,#7C8C96);box-shadow:inset 0 -1px 2px rgba(0,0,0,.3);transition:background .5s,box-shadow .5s}
.dd-bulb::before{content:"";position:absolute;left:50%;top:-5px;width:4px;height:5px;margin-left:-2px;border-radius:1px;background:linear-gradient(180deg,#C6A66B,#947A46)}
.dd-bulb::after{content:"";position:absolute;left:50%;top:-12px;width:1.5px;height:7px;margin-left:-.75px;background:rgba(200,190,170,.5)}
.dy-door2.is-live .dd-bulb{background:radial-gradient(circle at 42% 34%,#FFF7DC,#FFE08A 48%,#F4B942 78%,#D99A21);
  box-shadow:0 0 8px 3px rgba(255,205,105,.85),0 0 22px 8px rgba(255,190,80,.45),inset 0 -1px 2px rgba(150,95,10,.28)}
.dy-door2.is-live .dd-glass{background:radial-gradient(70% 40% at 50% 18%,rgba(255,214,130,.75),rgba(255,214,130,0) 75%),linear-gradient(180deg,rgba(255,246,222,.55),rgba(250,230,190,.35))}
@media (max-width:560px){.dy-door2 .dd-plaque{font-size:.68rem;padding:4px 3px}.dd-bulb{top:9px;width:9px;height:9px;margin-left:-4.5px}}
/* the window sits below the sign, never behind it */
.dy-row .dd-glass{top:34%;height:26%}
.dy-row .dd-handle{top:66%}
@media (max-width:560px){.dy-row .dd-glass{top:40%;height:20%}.dy-row .dd-handle{top:68%}}
/* round 16 — the diary uses the very same door as the corridor, shown a little smaller */
.dy-corr.corridor{background:none !important;padding:0 !important;margin:0;overflow:visible !important;color:inherit;display:flex;flex-direction:column;align-items:center}
.dy-corr .doors{display:flex !important;justify-content:center;overflow:visible !important;padding:0 !important;margin:0 !important;gap:0;zoom:.66}
.dy-corr .doors::before,.dy-corr .doors::after{display:none !important}
.dy-corr .door{text-decoration:none;display:block}
.dy-corr .door.is-off{cursor:default;filter:saturate(.6)}
.dy-corr-floor{display:block;width:100%;height:9px;margin-top:-1px;border-radius:2px;background:linear-gradient(180deg,#E8D7BE,#D6BF9C);box-shadow:0 6px 10px -6px rgba(90,70,40,.5)}
.dy-row .dy-doorcol{justify-content:flex-end}
@media (max-width:900px){.dy-corr .doors{zoom:.58}}
@media (max-width:560px){.dy-corr .doors{zoom:.5}}
.dy-corr .doors{zoom:.76}
@media (max-width:900px){.dy-corr .doors{zoom:.62}}
@media (max-width:560px){.dy-corr .doors{zoom:.52}}
/* round 17 — above the door only the next class: the date in the diary's own plain letters, a little bolder */
.dy-row .dd-when{margin-bottom:8px;gap:2px}
.dy-row .dd-when b{font-family:'Noto Sans','Noto Sans Armenian',Arial,sans-serif;font-size:.95rem;font-weight:700;color:#13306A;
  letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:560px){.dy-row .dd-when b{font-size:.8rem;white-space:normal;text-align:center;line-height:1.3}}
@media (max-width:560px){.dy-row .dd-when b{display:flex;flex-direction:column;align-items:center}.dy-row .dd-when .dd-dot{display:none}}
.dy-row .dd-when b span{color:inherit;font-size:inherit;font-weight:inherit}
/* round 18 — the staircase picture: a little lower, and she can slide it sideways up to the next level */
.rm--stairs .rm-map{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;scroll-behavior:auto}
.rm--stairs .rm-map::-webkit-scrollbar{display:none}
.rm--stairs .rm-map svg{display:block;max-width:none}
.rm-mapwrap .rm-more{position:absolute;right:10px;top:50%;z-index:6;width:40px;height:40px;margin-top:-20px;border-radius:50%;border:1px solid rgba(160,240,232,.6);
  background:rgba(10,20,50,.55);color:#fff;font-size:1.6rem;line-height:1;display:grid;place-items:center;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .3s,background .2s;backdrop-filter:blur(2px)}
.rm-mapwrap.can-more .rm-more{opacity:1;pointer-events:auto}
.rm-mapwrap .rm-more:hover{background:rgba(0,169,157,.75)}
.rm-mapwrap .rm-more span{margin-top:-3px}
@media (max-width:560px){.rm-mapwrap .rm-more{width:32px;height:32px;font-size:1.3rem;margin-top:-16px;right:6px}}
/* every step lifts clearly under the cursor, with a soft turquoise glow */
.st-step .st-lift{transition:transform .22s cubic-bezier(.2,.8,.2,1.2),filter .22s ease}
.st-step:hover .st-lift,a.st-step:focus .st-lift{transform:translateY(-10px);filter:brightness(1.15) drop-shadow(0 0 6px rgba(95,227,214,.85))}
.st-step{cursor:pointer}
/* the door: bigger, and it swings half open under the cursor like the door on the home page */
.dy-corr .doors{zoom:.9}
@media (max-width:900px){.dy-corr .doors{zoom:.72}}
@media (max-width:560px){.dy-corr .doors{zoom:.62}}
.dy-cframe{position:relative;display:block;width:176px;perspective:1200px;text-decoration:none;color:inherit}
.dy-cin{position:absolute;inset:0;border-radius:4px 4px 0 0;background:radial-gradient(120% 80% at 35% 60%,#FFFBF2,#EAF3F4 45%,#C9DCE4);
  box-shadow:inset 0 0 0 6px #14203E}
.dy-corr .dy-cdoor{position:relative;transform-origin:left center;transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.dy-cframe:hover .dy-cdoor,.dy-cframe:focus-visible .dy-cdoor{transform:rotateY(55deg)}
.dy-cframe.is-off:hover .dy-cdoor{transform:none}
.dy-cframe:focus-visible{outline:3px solid #00C0B4;outline-offset:4px}
@media (prefers-reduced-motion:reduce){.dy-corr .dy-cdoor{transition:none}}
.dy-row .dd-when b{font-size:.9rem}
@media (max-width:560px){.dy-row .dd-when b{font-size:.78rem}}
.dy-cframe{perspective:560px}
.dy-cframe:hover .dy-cdoor,.dy-cframe:focus-visible .dy-cdoor{transform:perspective(520px) rotateY(55deg)}
.dy-corr .dy-cdoor{transform:perspective(520px) rotateY(0deg)}
.dy-cframe{width:fit-content}
.dy-corr .dy-cframe .door.dy-cdoor,.dy-corr .dy-cframe .door.dy-cdoor:hover{transform:perspective(520px) rotateY(0deg) !important}
.dy-corr .dy-cframe:hover .door.dy-cdoor,.dy-corr .dy-cframe:focus-visible .door.dy-cdoor{transform:perspective(520px) rotateY(55deg) !important}
.dy-corr .dy-cframe.is-off:hover .door.dy-cdoor{transform:none !important}
.rm--stairs .rm-map.is-drag{cursor:grabbing;user-select:none}
/* round 19 — the box on the picture also shows today's listening and speaking */
.rm-sky .rm-ic{display:inline-grid;place-items:center;min-width:26px;font-size:1.05rem;line-height:1}
@media (max-width:560px){
  .rm--stairs .rm-sky{display:grid;grid-template-columns:auto auto;gap:4px 12px;padding:7px 10px}
  .rm--stairs .rm-sky .rm-sky-r{gap:5px}
  .rm--stairs .rm-sky b{font-size:.9rem}
  .rm--stairs .rm-sky small{font-size:.62rem;line-height:1.15;max-width:52px}
  .rm--stairs .rm-sky .eg-clock{width:22px;height:22px}
  .rm-sky .rm-feet svg{width:20px;height:24px}
  .rm-sky .rm-ic{min-width:22px;font-size:.9rem}
  /* the sentence under the picture stays on one line; the colour key goes under it */
  .rm-hint{flex-wrap:wrap;row-gap:6px}
  .rm-hint em{flex:1 0 100%;white-space:nowrap;font-size:.8rem}
}
/* today's listening and speaking: two cards side by side (one under the other on a phone) */
.dy-daily{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px;align-items:start}
@media (max-width:820px){.dy-daily{grid-template-columns:1fr}}
.dy-dly{padding:20px 22px;border-radius:18px}
.dy-dly--listen{background:linear-gradient(180deg,#F3FBFA,#fff 60%)}
.dy-dly--speak{background:linear-gradient(180deg,#FFF6F2,#fff 60%)}
.dly-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.dly-ic{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:1.35rem;background:#fff;box-shadow:0 6px 14px -8px rgba(19,33,58,.35)}
.dly-top h3{margin:0;font-size:1.12rem;color:#13306A}
.dly-top p{margin:2px 0 0;font-size:.84rem;color:#5B6680}
.ls-name{margin:4px 0 12px;font-weight:700;color:#1E2B4D}
.ls-act{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ls-qbtn,.sp-again{padding:10px 14px;border-radius:12px;border:1px solid #BFE6E1;background:#fff;color:#0E7F76;font-weight:700;cursor:pointer}
.ls-qbtn:hover,.sp-again:hover{background:#F0FBF9}
.ls-form{display:grid;gap:12px;margin-top:6px}
.ls-q{margin:0;padding:12px 14px;border:1px solid #DCE6EE;border-radius:12px;background:#fff}
.ls-q legend{padding:0 4px;font-weight:600;color:#1E2B4D;font-size:.95rem}
.ls-q label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;cursor:pointer;font-size:.93rem}
.ls-q label:hover{background:#F4F8FB}
.ls-q label.is-right{background:#E3F5E9;color:#1E7A45;font-weight:700}
.ls-q label.is-wrong{background:#FDE8E5;color:#B23A2C;text-decoration:line-through}
.ls-q.is-ok{border-color:#9ED9B4}.ls-q.is-no{border-color:#F3B8AF}
.ls-msg,.sp-msg{margin:0;font-size:.9rem;color:#1F63B8;font-weight:600}
.ls-msg:empty,.sp-msg:empty{display:none}
.dly-done{margin:0;padding:10px 12px;border-radius:12px;background:#E3F5E9;color:#1E7A45;font-weight:700}
.sp-rec{display:flex;align-items:center;gap:16px;margin:6px 0 10px}
.sp-btn{flex:none;width:64px;height:64px;border-radius:50%;border:4px solid #fff;cursor:pointer;display:grid;place-items:center;
  background:linear-gradient(180deg,#FF8A7E,#F0534A);box-shadow:0 0 0 2px #F3C4BD,0 10px 20px -10px rgba(240,83,74,.8)}
.sp-btn i{width:22px;height:22px;border-radius:50%;background:#fff;transition:border-radius .2s,width .2s,height .2s}
.dy-dly--speak.is-rec .sp-btn i{width:20px;height:20px;border-radius:4px}
.dy-dly--speak.is-rec .sp-btn{animation:spPulse 1.4s ease-in-out infinite}
@keyframes spPulse{0%,100%{box-shadow:0 0 0 2px #F3C4BD,0 0 0 0 rgba(240,83,74,.45)}50%{box-shadow:0 0 0 2px #F3C4BD,0 0 0 12px rgba(240,83,74,0)}}
@media (prefers-reduced-motion:reduce){.dy-dly--speak.is-rec .sp-btn{animation:none}}
.sp-btn:disabled{opacity:.4;cursor:default}
.sp-time{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px}
.sp-time b{font:800 1.6rem/1 'Noto Sans',Arial,sans-serif;color:#13306A;font-variant-numeric:tabular-nums}
.sp-time small{color:#5B6680;font-weight:600}
.sp-state{flex:1 0 100%;font-size:.85rem;color:#5B6680}
.sp-review{display:grid;gap:10px;margin-bottom:10px}
.sp-review audio{width:100%}
.sp-rv-btns{display:flex;flex-wrap:wrap;gap:10px}
.sp-month{margin:4px 0 8px;padding:9px 14px;border-radius:12px;border:1px solid #C9D7F0;background:#F2F6FD;color:#1F63B8;font-weight:700;cursor:pointer}
.dy-dly h4{margin:12px 0 6px;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:#5B6680}
.sp-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sp-list li{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:10px;background:#fff;border:1px solid #EADFD8}
.sp-list li span{font-weight:700;color:#1E2B4D;font-size:.9rem}
.sp-list li em{font-style:normal;color:#5B6680;font-size:.85rem;margin-right:auto}
.sp-play,.sp-del{border:0;background:#F2F6FD;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:.85rem}
.sp-play{color:#1F63B8}.sp-del{background:#FFF0ED}
.sp-del.is-sure{width:auto;border-radius:16px;padding:0 10px;color:#B23A2C;font-weight:700}
.is-busy{opacity:.5;pointer-events:none}
.sp-note{margin:12px 0 0;font-size:.8rem;line-height:1.45;color:#5B6680}
.sp-review[hidden],.ls-form[hidden],.ls-qbtn[hidden],.ls-check[hidden]{display:none !important}
.dy-dly .btn-cta{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 18px;border-radius:12px;border:0;cursor:pointer;
  font:700 .95rem/1.1 'Noto Sans','Noto Sans Armenian',Arial,sans-serif;color:#fff;text-decoration:none;
  background:linear-gradient(180deg,#2FE3D5,#00A99D);box-shadow:0 8px 16px -8px rgba(0,169,157,.7)}
.dy-dly .btn-cta:hover{background:linear-gradient(180deg,#45EADD,#00B3A7)}
.dy-dly .btn-cta:disabled{opacity:.6;cursor:default}
.dy-dly .ls-check{justify-self:start}
/* round 20 — the box on the picture: every icon has the same width, so all four numbers start on one line; even rows */
.rm--stairs .rm-sky{display:grid;grid-template-columns:auto;row-gap:7px;padding:10px 14px}
.rm--stairs .rm-sky .rm-sky-r{display:grid;grid-template-columns:28px 30px auto;align-items:center;column-gap:6px;min-height:26px;margin:0;padding:0}
.rm--stairs .rm-sky .rm-sky-r>b{text-align:right;font-size:1.02rem;line-height:1;font-variant-numeric:tabular-nums}
.rm--stairs .rm-sky .rm-sky-r>small{white-space:nowrap;line-height:1.1}
.rm--stairs .rm-sky .eg-clock,.rm--stairs .rm-sky .rm-feet,.rm--stairs .rm-sky .rm-ic{width:28px;height:26px;min-width:0;display:grid;place-items:center;margin:0}
.rm--stairs .rm-sky .eg-clock{width:26px;height:26px}
.rm--stairs .rm-sky .rm-feet svg{width:22px;height:26px}
.rm-sky .rm-ic svg{width:22px;height:22px;fill:none;stroke:#7FF0E6;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:560px){
  .rm--stairs .rm-sky{grid-template-columns:auto auto;column-gap:14px;row-gap:6px;padding:8px 10px}
  .rm--stairs .rm-sky .rm-sky-r{grid-template-columns:22px 24px auto;column-gap:5px;min-height:22px}
  .rm--stairs .rm-sky .rm-sky-r>b{font-size:.9rem}
  .rm--stairs .rm-sky .rm-sky-r>small{white-space:normal;max-width:54px;font-size:.6rem}
  .rm--stairs .rm-sky .eg-clock,.rm--stairs .rm-sky .rm-feet,.rm--stairs .rm-sky .rm-ic{width:22px;height:22px}
  .rm--stairs .rm-sky .rm-feet svg{width:18px;height:22px}
  .rm-sky .rm-ic svg{width:18px;height:18px}
}
/* the sentence under the picture on one line, the colour key on the right of the same strip */
.rm-hint{display:flex;align-items:center;flex-wrap:nowrap;gap:12px}
.rm-hint em{flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rm-hint em+span{margin-left:auto}
@media (max-width:560px){
  .rm-hint{flex-wrap:wrap;row-gap:6px}
  .rm-hint em{flex:1 0 100%;font-size:clamp(.68rem,3.5vw,.82rem);overflow:visible}
  .rm-hint em+span{margin-left:auto}
}
/* the notebook's spiral holes, as they were before */
.dy-class-board .rm-hw-card::before{
  background:radial-gradient(circle at 12px 12px,#F4F6FA 0 4px,#8D99AE 4.5px 6px,transparent 6.5px) repeat-y 0 0/24px 28px}
/* the next class, written on the home task paper */
.rm-hw-when{margin:0;line-height:28px;font-size:.92rem;color:#5B6680}
.rm-hw-when b{color:#13306A;font-weight:700}
.rm-hint em{flex:1 1 auto}
@media (max-width:560px){.rm--stairs .rm-sky .rm-sky-r{grid-template-columns:22px 30px auto}.rm--stairs .rm-sky .rm-sky-r>b{font-size:.86rem}}
.rm--stairs .rm-hint{max-width:none;width:100%;box-sizing:border-box}
/* recordings: ▶ becomes ⏸ while playing; a share button beside it */
.sp-play.is-on{background:#1F63B8;color:#fff}
.sp-share{border:0;background:#EEF8F6;width:32px;height:32px;border-radius:50%;cursor:pointer;display:grid;place-items:center}
.sp-share svg{width:16px;height:16px;fill:none;stroke:#0E7F76;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sp-month.is-on{background:#1F63B8;color:#fff;border-color:#1F63B8}
.sp-play{font-size:.95rem;font-weight:800}
/* the bar under a playing recording: drag the dot, or jump 10 seconds back / ahead */
.sp-list li{flex-wrap:wrap}
.sp-seek{flex:1 0 100%;display:flex;align-items:center;gap:8px;padding:6px 0 2px}
.sp-month+.sp-seek{margin:0 0 10px}
.sp-seek input[type=range]{flex:1;min-width:0;height:6px;border-radius:3px;-webkit-appearance:none;appearance:none;cursor:pointer;
  background:linear-gradient(90deg,#1F63B8 0 var(--p,0%),#DCE3EE var(--p,0%) 100%)}
.sp-seek input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#1F63B8;border:3px solid #fff;box-shadow:0 1px 4px rgba(19,33,58,.4)}
.sp-seek input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#1F63B8;border:3px solid #fff;box-shadow:0 1px 4px rgba(19,33,58,.4)}
.sp-jump{flex:none;border:1px solid #C9D7F0;background:#F2F6FD;color:#1F63B8;font-weight:800;font-size:.75rem;border-radius:14px;padding:5px 8px;cursor:pointer}
.sp-tm{flex:none;font-size:.78rem;font-weight:700;color:#5B6680;font-variant-numeric:tabular-nums;min-width:74px;text-align:right}
@media (max-width:560px){.sp-seek{gap:6px}.sp-tm{min-width:0}}
/* round 21 — her photo a little bigger (saved sharper too) */
.dy-ava{width:84px;height:84px}
.dy-ava>span{font-size:2rem}
.dy-ava>i{width:28px;height:28px;right:-3px;bottom:-3px}
@media (max-width:560px){.dy-ava{width:66px;height:66px}.dy-ava>span{font-size:1.6rem}.dy-ava>i{width:24px;height:24px;font-size:.72rem}}
/* the calendar pad: turned pages stay folded at the top as a thin strip */
.dy-pad.has-strip{margin-top:30px}
.pad-strip{position:absolute;left:6px;right:6px;top:-30px;height:30px;z-index:4;display:flex;align-items:stretch;gap:6px}
.pad-strip::before{content:"";position:absolute;inset:6px 0 0;border-radius:8px 8px 0 0;background:linear-gradient(180deg,#F4ECDC,#E9DDC5);
  border:1px solid #CBBDA3;border-bottom:0;box-shadow:0 -2px 0 #FBF6EC inset,0 -3px 0 -1px #DCCFB6,0 -6px 0 -2px #EDE3D0;z-index:-1}
.pad-back,.pad-today{position:relative;margin-top:6px;border:0;background:none;cursor:pointer;font:700 .78rem/1 Inter,'Noto Sans Armenian',Arial,sans-serif;color:#6A5A3E;padding:0 12px;border-radius:8px 8px 0 0}
.pad-back i{font-style:normal;font-size:.62rem;color:#00A99D;margin-right:2px}
.pad-back:hover,.pad-today:hover{color:#13306A;background:rgba(255,255,255,.5)}
.pad-today{margin-left:auto;color:#1F63B8}
.dy-pad.no-anim .pad-top{transition:none !important}
/* round 22 — the home task and the door come first; the calendar, challenges and victories under them */
.dy-row{grid-template-areas:"hw hw door" "cal stack stack"}
@media (max-width:900px){
  /* phone: the home task first, then the door beside challenges/victories, then the calendar */
  .dy-row{grid-template-areas:"hw hw" "stack door" "cal cal"}
}
/* round 23 — a small TV above the class door: it opens the group's recorded lessons */
.dy-row .dy-doorcol{display:flex;flex-direction:column;align-items:center}
.dy-tv{display:flex;flex-direction:column;align-items:center;text-decoration:none;margin-bottom:8px;color:#13306A}
.tv-hang{display:block;width:44px;height:12px;position:relative}
.tv-hang::before,.tv-hang::after{content:"";position:absolute;bottom:0;width:2px;height:14px;background:#8A93A6;border-radius:1px}
.tv-hang::before{left:6px;transform:rotate(-24deg);transform-origin:bottom}
.tv-hang::after{right:6px;transform:rotate(24deg);transform-origin:bottom}
.tv-box{display:block;width:118px;padding:6px;border-radius:12px;background:linear-gradient(180deg,#2A3550,#151D33);
  box-shadow:0 10px 18px -10px rgba(19,33,58,.6),inset 0 1px 0 rgba(255,255,255,.12);transition:transform .25s ease,box-shadow .25s ease}
.tv-screen{display:grid;place-items:center;aspect-ratio:16/10;border-radius:7px;overflow:hidden;
  background:radial-gradient(120% 90% at 30% 20%,#3FA9F5 0%,#1F63B8 45%,#0E2F6B 100%);box-shadow:inset 0 0 14px rgba(0,0,0,.45)}
.tv-play{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.92);position:relative;box-shadow:0 0 16px rgba(127,240,230,.7)}
.tv-play::after{content:"";position:absolute;left:13px;top:10px;border-left:12px solid #1F63B8;border-top:7px solid transparent;border-bottom:7px solid transparent}
.tv-lbl{margin-top:6px;font:800 .78rem/1.1 Inter,'Noto Sans Armenian',Arial,sans-serif;color:#13306A;text-align:center}
.dy-tv:hover .tv-box,.dy-tv:focus-visible .tv-box{transform:translateY(-2px) scale(1.04);box-shadow:0 14px 24px -12px rgba(31,99,184,.7),0 0 0 3px rgba(127,240,230,.5)}
.dy-tv:focus-visible{outline:none}
.dy-corr .doors{zoom:.74}
@media (max-width:900px){.dy-corr .doors{zoom:.6}}
@media (max-width:560px){.dy-corr .doors{zoom:.56}.tv-box{width:96px;padding:5px}.tv-play{width:28px;height:28px}.tv-play::after{left:11px;top:8px;border-left-width:10px;border-top-width:6px;border-bottom-width:6px}.tv-lbl{font-size:.7rem}}
/* the recorded lessons room: a class she missed is red until she watches it, then green */
.rec-card.is-missed{border-color:#F3B8AF;background:#FFF2EF}
.rec-card.is-missed b{color:#B23A2C}
.rec-miss{font-style:normal;font-size:.74rem;font-weight:700;color:#C44536;margin-top:2px}
.rec-card.is-missed:has(.rec-seen){border-color:#BDE8CC;background:#F0FBF4}
.rec-card.is-missed:has(.rec-seen) b{color:inherit}
/* round 24 — the class area fits together like a puzzle: one outer rectangle, equal gaps.
   Top row: the notebook | the TV over the door (the TV's top is level with the notebook's top, the door's foot with its foot).
   Bottom row: the calendar | challenges over victories (their right edge is the door's right edge). */
.dy-row{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) 120px;gap:16px;align-items:stretch}
.dy-row .dy-stack{gap:16px}
.dy-row .dy-doorcol{align-self:stretch !important;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;min-width:0;width:100%}
.dy-row .dy-tv{margin:0;width:100%}
.dy-row .tv-box{width:100%;padding:5px;border-radius:10px;box-sizing:border-box}
.dy-row .tv-screen{aspect-ratio:auto;height:auto;padding:10px 4px 8px;display:flex;flex-direction:column;align-items:center;gap:6px}
.dy-row .tv-play{width:30px;height:30px;flex:none}
.dy-row .tv-play::after{left:12px;top:8px;border-left-width:11px;border-top-width:7px;border-bottom-width:7px}
.dy-row .tv-lbl{margin:0;color:#fff;font-size:.72rem;line-height:1.15;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.dy-row .dy-corr{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
/* the corridor door is 176px wide: shown at 120/176 so its own lettering keeps its proportions; its height fills what is left */
.dy-row .dy-corr .doors{zoom:.682 !important;flex:1 1 auto;min-height:0;display:flex !important;align-items:stretch;justify-content:stretch}
.dy-row .dy-cframe{width:176px;height:100%;display:block}
.dy-row .dy-corr .door.dy-cdoor{width:176px !important;flex:none !important;height:100% !important;aspect-ratio:auto !important;box-sizing:border-box}
.dy-row .dy-corr-floor{flex:none;margin-top:0}
@media (max-width:900px){
  .dy-row{grid-template-columns:minmax(0,1fr) 112px;gap:12px}
  .dy-row .dy-stack{gap:12px}
  .dy-row .dy-corr .doors{zoom:.636 !important}
  .dy-row .tv-lbl{font-size:.66rem}
}
/* round 25 — more pale-green margin on both sides; a narrower, taller-looking door and TV */
.dy-card.dy-class{padding:26px 56px}
.dy-row{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) 100px}
.dy-row .dy-corr .doors{zoom:.568 !important}
.dy-row .tv-screen{padding:8px 3px 7px;gap:5px}
.dy-row .tv-play{width:26px;height:26px}
.dy-row .tv-play::after{left:10px;top:7px;border-left-width:10px;border-top-width:6px;border-bottom-width:6px}
.dy-row .tv-lbl{font-size:.66rem}
@media (max-width:1100px){.dy-card.dy-class{padding:24px 36px}}
@media (max-width:900px){
  .dy-card.dy-class{padding:22px 26px}
  .dy-row{grid-template-columns:minmax(0,1fr) 92px}
  .dy-row .dy-corr .doors{zoom:.523 !important}
  .dy-row .tv-lbl{font-size:.6rem}
}
@media (max-width:400px){.dy-card.dy-class{padding:18px 20px}}
/* round 26 — the diary door a touch lighter (same navy), the TV frame a softer slate */
.dy-row .dy-corr .door.dy-cdoor{background:linear-gradient(100deg,#34497C 0%,#2C3F6E 45%,#25365F 100%) !important}
.dy-row .tv-box{background:linear-gradient(180deg,#5D6B85,#46536B);box-shadow:0 10px 18px -10px rgba(19,33,58,.45),inset 0 1px 0 rgba(255,255,255,.22)}
.dy-row .dy-corr .door.dy-cdoor{border-color:#24335C !important}
/* round 27 — the door keeps one fixed size (2.5 × as tall as wide); it stands on the floor, level with the bottom of the notebook,
   and the TV hangs just above it. A long home task only moves them down, never stretches the door. */
.dy-row .dy-doorcol{justify-content:flex-end !important}
.dy-row .dy-corr{flex:none}
.dy-row .dy-corr .doors{flex:none;height:auto}
.dy-row .dy-cframe{height:440px}
.dy-row .dy-corr .door.dy-cdoor{height:440px !important}
/* round 28 — the staircase picture is a tile too: same width as the home task + TV below (same side margins), rounded, with a shadow */
.rm--stairs{--inset:57px}
.rm--stairs .rm-title{padding-left:var(--inset);padding-right:var(--inset)}
.rm--stairs .rm-bar2{padding-left:var(--inset);padding-right:var(--inset)}
.rm--stairs .rm-mapwrap{margin:4px var(--inset) 0;border-radius:16px;overflow:hidden;box-shadow:0 14px 28px -16px rgba(19,33,58,.55),0 0 0 1px rgba(19,48,106,.25)}
.rm--stairs .rm-map{border-radius:16px}
.rm--stairs .rm-hint{padding-left:var(--inset);padding-right:var(--inset);padding-top:14px}
@media (max-width:1100px){.rm--stairs{--inset:37px}}
@media (max-width:900px){.rm--stairs{--inset:27px}}
@media (max-width:400px){.rm--stairs{--inset:21px}}
/* round 29 — the door twice as tall as it is wide */
.dy-row .dy-cframe{height:352px}
.dy-row .dy-corr .door.dy-cdoor{height:352px !important}
/* round 30 — the TV hangs high (level with the top of the notebook), a departures board just under it, the door stands on the floor */
.dy-row .dy-doorcol{justify-content:flex-start !important;gap:8px}
.dy-row .dy-corr{margin-top:auto}
.dy-flap{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:6px 5px 7px;border-radius:8px;
  background:linear-gradient(180deg,#22262E,#15181E);box-shadow:0 8px 14px -8px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08)}
.fl-lbl{font:800 .52rem/1 Inter,'Noto Sans Armenian',Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#FFC94D;text-align:center;opacity:.9}
.dy-flap>span[aria-hidden]{display:flex;flex-direction:column;gap:3px}
.fl-row{display:flex;justify-content:center;gap:2px}
.fl-c{position:relative;display:inline-grid;place-items:center;width:15px;height:20px;border-radius:2px;font:700 .8rem/1 'Courier New',ui-monospace,monospace;font-style:normal;color:#FFD25A;
  background:linear-gradient(180deg,#3A3F49 0 49%,#0E1014 49% 51%,#2E333C 51% 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 1px rgba(0,0,0,.5)}
.fl-c[data-c="."],.fl-c[data-c=":"]{width:8px;background:none;box-shadow:none}
.fl-c.is-flip{animation:flFlip .07s linear}
@keyframes flFlip{0%{transform:scaleY(1)}50%{transform:scaleY(.15)}100%{transform:scaleY(1)}}
@media (max-width:900px){.fl-c{width:13px;height:18px;font-size:.72rem}.fl-c[data-c="."],.fl-c[data-c=":"]{width:6px}}
/* the notebook paper stretches down to the floor line, so its bottom always meets the door's foot */
.dy-row .dy-class-board{display:flex;flex-direction:column;align-self:stretch}
.dy-row .dy-class-board>.rm-hw-card{flex:1 1 auto}
/* small amber headings on the departures board, like the columns on a real airport board */
.fl-sub{display:block;margin-top:3px;font:800 .46rem/1 Inter,'Noto Sans Armenian',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#E0A93A;text-align:center;opacity:.85}
/* the corridor: no repeated "The corridor" title — the dream line is the heading */
.classes-intro h1.cor-dream{font-size:clamp(1.5rem,2.6vw,2rem);margin:0;font-weight:500;letter-spacing:0}

/* ===== clean turquoise: door handles and the two top-bar buttons share one colour ===== */
:root{--tq-hi:#4BE4D6;--tq-lo:#0FBFB0;--tq-btn-hi:#1FD3C4;--tq-btn-lo:#06B2A3}
.corridor .door-handle,.corridor .door-handle i,.h-door-handle,.dd-handle{background:linear-gradient(180deg,var(--tq-hi),var(--tq-lo)) !important}
.dd-handle::after{background:var(--tq-lo)}
.nb-peek::before,.nb-mini::before{background:radial-gradient(circle at 35% 35%,#B4F4EE,var(--tq-lo) 70%)}
/* Apply for classes and Log in: same height, same turquoise */
.site-head .btn--apply,.site-head .login-btn,.btn--apply,.login-btn{
  height:40px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:0 18px !important;border:0 !important;border-radius:999px;font-size:.9rem !important;font-weight:600 !important;line-height:1;
  color:#fff !important;text-shadow:0 1px 1px rgba(0,90,82,.35);
  background:linear-gradient(180deg,var(--tq-btn-hi) 0%,var(--tq-btn-lo) 100%) !important;
  box-shadow:0 8px 18px -9px rgba(6,178,163,.8),inset 0 1px 0 rgba(255,255,255,.4) !important}
.btn--apply:hover,.login-btn:hover,.login-btn.is-in,.login-btn[aria-current="page"]{color:#fff !important;
  background:linear-gradient(180deg,#22DBCB 0%,#04A496 100%) !important}
.login-btn svg{stroke:currentColor}
@media (max-width:620px){.site-head .login-btn,.login-btn{height:38px;padding:0 11px !important}}
@media (max-width:1240px){.site-head .btn--apply,.btn--apply{display:none !important}}
