  :root {
    --abyss: #04142a; --deep: #07294a; --lagoon: #0fb5a8; --biolume: #6ff7e3; --jelly: #ff5fa2; --sun: #ffd23f;
    --foam: #eef8f7; --card: #ffffff; --ink: #07192a; --muted: #3f5a6b; --line: #d6e7e6;
    --e: #e08a00; --c: #2f6bff; --a: #12a150; --no: #e5484d;
    --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font-family: var(--body); font-size: 17px; font-weight: 500; line-height: 1.55; background: var(--foam); color: var(--ink); -webkit-font-smoothing: antialiased; }
  button { font-family: inherit; }
  :focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 10px; }
  @keyframes sway { from { transform: translateX(-30px) skewX(-4deg); } to { transform: translateX(30px) skewX(4deg); } }
  .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
  .brand i { width: 30px; height: 30px; border-radius: 50%; display: block;
    background: radial-gradient(circle at 34% 30%, #fff 0 9%, #8ffff0 16%, var(--lagoon) 48%, #075e6e 100%);
    box-shadow: 0 0 18px rgba(111,247,227,.6), inset -3px -4px 8px rgba(0,0,0,.25); }
  .lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
  .lang button { border: 0; background: transparent; color: #cfeff0; font-weight: 700; font-size: 13px; padding: 6px 12px; min-height: 32px; min-width: 36px; border-radius: 999px; cursor: pointer; }
  .lang button.on { background: #fff; color: var(--deep); }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111,247,227,.7); } 80%,100% { box-shadow: 0 0 0 12px rgba(111,247,227,0); } }
  .free { margin: 14px 0 0; font-size: 14px; color: #a9d8db; }
  .key3d { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; font-weight: 800; font-size: 17px;
    padding: 13px 22px; border-radius: 16px; transform: translateY(0); transition: transform .12s ease, box-shadow .12s ease; }
  .key3d .ic { font-size: 22px; line-height: 1; display: inline-block; }
  .key3d.code { color: #04223a; background: linear-gradient(180deg, #ffffff 0%, #c9fff7 55%, #6ff7e3 100%);
    box-shadow: 0 6px 0 #0b8f86, 0 14px 24px rgba(4,20,42,.45), inset 0 2px 0 #fff; }
  .key3d.buy { color: #fff; background: linear-gradient(180deg, #ff9cc6 0%, var(--jelly) 50%, #d93a80 100%);
    box-shadow: 0 6px 0 #9e1f58, 0 14px 24px rgba(4,20,42,.45), inset 0 2px 0 rgba(255,255,255,.6); }
  .key3d:hover { transform: translateY(-3px); }
  .key3d.code:hover { box-shadow: 0 9px 0 #0b8f86, 0 18px 28px rgba(4,20,42,.5), inset 0 2px 0 #fff; }
  .key3d.buy:hover { box-shadow: 0 9px 0 #9e1f58, 0 18px 28px rgba(4,20,42,.5), inset 0 2px 0 rgba(255,255,255,.6); }
  .key3d:active { transform: translateY(5px); }
  .key3d.code:active { box-shadow: 0 1px 0 #0b8f86, 0 4px 10px rgba(4,20,42,.4), inset 0 2px 0 #fff; }
  .key3d.buy:active { box-shadow: 0 1px 0 #9e1f58, 0 4px 10px rgba(4,20,42,.4), inset 0 2px 0 rgba(255,255,255,.6); }
  .key3d::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 38%; left: -60%; transform: skewX(-20deg);
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0)); animation: shine 4.5s ease-in-out infinite; }
  .key3d.buy::after { animation-delay: 2.2s; }
  .key3d.code.big { font-size: 38px; padding: 26px 46px; gap: 16px; border-radius: 26px; box-shadow: 0 10px 0 #0b8f86, 0 22px 34px rgba(4,20,42,.5), inset 0 3px 0 #fff; }
  .key3d.code.big .ic { font-size: 48px; }
  .key3d.code.big:hover { box-shadow: 0 13px 0 #0b8f86, 0 26px 38px rgba(4,20,42,.55), inset 0 3px 0 #fff; }
  .key3d.code.big:active { transform: translateY(8px); box-shadow: 0 2px 0 #0b8f86, 0 6px 12px rgba(4,20,42,.4), inset 0 3px 0 #fff; }
  @media (max-width: 520px) { .key3d.code.big { font-size: 24px; padding: 16px 22px; width: 100%; justify-content: center; border-radius: 20px; } .key3d.code.big .ic { font-size: 30px; } }
  @media (max-width: 600px) { #chips { display: none; } .free { margin-top: 10px; } }
  @keyframes shine { 0%, 62% { left: -60%; } 82%, 100% { left: 130%; } }
  .key3d.code .ic { animation: wiggle 4.5s ease-in-out infinite; }
  .key3d.buy .ic { animation: wiggle 4.5s ease-in-out 2.2s infinite; }
  @keyframes wiggle { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-16deg) scale(1.15); } 84% { transform: rotate(12deg) scale(1.15); } 90% { transform: none; } }
  .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0 4px; }
  #buyModal .sheet { max-width: 1100px !important; }
  @media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
  .plan.freep { background: #f2fbfa; } .plan.freep .send { background: #fff; color: #0a5f5b; border: 1.5px solid #a7dcd8; box-shadow: none; }
  .plan { border: 2px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
  .plan.hot { border-color: var(--jelly); box-shadow: 0 10px 24px rgba(255,95,162,.18); }
  .plan h3 { font-family: var(--display); font-size: 20px; margin: 0; }
  .plan .price { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--deep); }
  .plan .price small { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--muted); }
  .plan ul { margin: 2px 0 6px; padding-left: 18px; font-size: 14.5px; color: var(--ink); } .plan li { margin: 2px 0; }
  .plan .send { margin-top: auto; }
  .plan .tagline { font-size: 12px; font-weight: 800; color: #b4235f; }
  .buynote { font-size: 14px; color: var(--muted); margin: 10px 2px 0; }
  .tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 600;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
  .tag b { font-variant-numeric: tabular-nums; }
  .tag i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -2px -2px 4px rgba(0,0,0,.25); }
  .hint { position: absolute; right: 22px; bottom: 96px; z-index: 2; font-size: 13px; color: #a9d8db; pointer-events: none; }

  main { max-width: 780px; margin: -40px auto 0; padding: 0 16px 40px; position: relative; z-index: 3; }
  .note { font-size: 13.5px; color: var(--muted); margin: -6px 4px 18px; line-height: 1.45; }
  @media (max-width: 600px) { .hint { display: none; } }

  .today { display: none; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; box-shadow: 0 8px 22px rgba(7,41,74,.08); }
  .today.show { display: flex; }
  .today .bar { flex: 1; height: 10px; background: #e2f1f0; border-radius: 99px; overflow: hidden; }
  .today .bar span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .6s ease;
    background: linear-gradient(90deg, var(--lagoon), #36d399, var(--sun)); box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
  .contactbtn { margin-top: 10px; cursor: pointer; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #a7dcd8; background: #fff; color: #0a5f5b; }
  .modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4,20,42,.55); backdrop-filter: blur(4px); }
  .modal.show { display: flex; }
  /* 27 Nov: review pop-up after a practice round */
  .rvstars { display: flex; gap: 6px; margin: 6px 0 12px; } .rvstars button { font-size: 30px; line-height: 1; background: none; border: 0; cursor: pointer; color: #c9d6d3; padding: 2px; }
  .rvstars button.on { color: #f4b400; } .rvstars button:focus-visible { outline: 3px solid #0b7d75; border-radius: 8px; }
  .rvstars button { font-size: 40px; transition: transform .12s; } .rvstars button.on { text-shadow: 0 2px 0 #c98a00, 0 4px 10px rgba(244,180,0,.35); } .rvstars button:active { transform: scale(.9); }
  .sheet label.rvok { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin-top: 14px; cursor: pointer; } .sheet .rvok input { width: 22px; height: 22px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #0b9a91; }
  .sheet select { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.3); max-height: 92vh; overflow: auto; }
  .sheet h2 { font-family: var(--display); margin: 0 0 4px; font-size: 26px; }
  .sheet p.sub { margin: 0 0 14px; color: var(--muted); }
  .kinds { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .kinds button { cursor: pointer; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid #a7dcd8; background: #fff; color: #0a5f5b; }
  .kinds button.on { background: #0b9a91; border-color: #0b9a91; color: #fff; }
  .sheet label { display: block; font-weight: 700; font-size: 15px; margin: 10px 0 4px; }
  .sheet input, .sheet textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; }
  .sheet textarea { min-height: 120px; resize: vertical; }
  .sheet .row2 { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
  .sheet .ghost { cursor: pointer; font-weight: 700; padding: 12px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
  .sheet .err { color: var(--no); font-weight: 600; min-height: 1.2em; margin: 8px 0 0; }

  #chat { scroll-margin-top: 20px; }
  .msg { display: flex; margin: 12px 0; }
  .bubble { background: var(--card); border-radius: 18px; padding: 14px 17px; max-width: 92%; line-height: 1.6; font-size: 17px; white-space: pre-wrap; box-shadow: 0 6px 18px rgba(7,41,74,.07); }
  .bot .bubble { border-top-left-radius: 6px; }
  .me { justify-content: flex-end; }
  .me .bubble { color: #fff; border-top-right-radius: 6px; background: linear-gradient(160deg, #19c4b5, #0a8f88); box-shadow: 0 8px 20px rgba(15,181,168,.3); }
  .choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
  .choices button { cursor: pointer; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 999px; color: #0a5f5b; background: var(--card); border: 1.5px solid #a7dcd8;
    box-shadow: 0 3px 0 #c7e9e6; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
  .choices button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #b5e2de; background: #f3fdfb; }
  .choices button:active { transform: translateY(2px); box-shadow: 0 1px 0 #c7e9e6; }
  .choices button.primary { color: #fff; border-color: transparent; background: linear-gradient(180deg, #2fd6c6, #0b9a91); box-shadow: 0 3px 0 #07726c, inset 0 1px 0 rgba(255,255,255,.4); }
  .choices button.soon { color: #7b97a0; background: transparent; border-style: dashed; border-color: #b9cfd1; box-shadow: none; }
  .choices button.soon::after { content: ' 🔒'; font-size: 12px; }
  .choices button.soon:hover { transform: none; box-shadow: none; background: rgba(255,255,255,.6); }
  .qhead { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; white-space: normal; }
  .qhead span { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #e6f6f4; color: #0a6f69; }
  .qhead span.lvl-hard { background: #ffe7ef; color: #b4235f; } .qhead span.lvl-medium { background: #fff3cf; color: #8a5a00; } .qhead span.lvl-easy { background: #e3f7e9; color: #137a3c; }
  .qpic { margin: 4px 0 12px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; overflow-x: auto; }
  .qpic svg { max-width: 100%; height: auto; }
  .repbtn { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 8px 6px 4px 0; min-height: 32px; }
  .repbtn:hover { color: #c2185b; }
  .repmenu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .repmenu b { width: 100%; font-size: 13px; }
  .repmenu button { border: 1.5px solid var(--line); background: #fff; color: var(--deep); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
  .repmenu button:hover { border-color: #ff5fa2; }
  .cards { display: grid; gap: 12px; max-width: 640px; }
  .cards .pfield { display: grid; gap: 4px; }
  .fcard { background: linear-gradient(180deg, #ffffff, #f2fbfa); border: 2px solid #bfe9e4; border-radius: 22px; padding: 22px 20px; box-shadow: 0 10px 26px rgba(4,34,58,.10), inset 0 1px 0 #fff; min-height: 170px; font-size: 18px; line-height: 1.5; white-space: pre-wrap; transition: transform .25s ease, box-shadow .25s ease; }
  .fcard.flipped { border-color: var(--lagoon); box-shadow: 0 12px 30px rgba(15,181,168,.22); }
  .fcard .fopts { margin: 10px 0 0; padding-left: 18px; white-space: normal; }
  .fcard .fback { margin-top: 14px; padding-top: 12px; border-top: 2px dashed #bfe9e4; white-space: normal; }
  .fcard .fback b { display: block; color: #0a6e66; font-size: 14px; margin-bottom: 4px; }
  .cards .crow { display: flex; flex-wrap: wrap; gap: 10px; }
  .cards .cof { margin: 0; color: var(--muted); font-weight: 700; font-size: 14px; }
  .cards .cdone { margin: 6px 0; }
  @media (prefers-reduced-motion: reduce) { .fcard { transition: none; } }
  .wrongbtn { display: block; margin: 12px 0 2px; border: 1.5px solid #e8c25a; background: #fff8dc; color: #5a4300; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 40px; }
  .wrongbtn.strong { background: linear-gradient(180deg, #ffe6a3, var(--sun)); border-color: #c49a12; color: #04223a; box-shadow: 0 3px 0 #c49a12; }
  .wrongbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #c49a12; }
  .wrongbtn.done { background: #e8f8f2; border-color: #7fd1b9; color: #0a5a46; box-shadow: none; }
  .qimg { display: block; max-width: 100%; border-radius: 12px; margin: 4px 0 12px; border: 1px solid var(--line); background: #fff; }
  /* Batch A: new-bank question details */
  .qhead span.src { background: #eef1fb; color: #2f4a8a; } .qhead span.time { background: #f2f2f2; color: #444; } .qhead span.nocalc { background: #fdeee3; color: #8a3d00; } .qhead span.draft { background: #333; color: #fff; } .qhead span.pts { background: #e9f0ff; color: #1d3f8f; }
  .qcredit { display: block; font-size: 12px; color: var(--muted, #5b6b7a); margin: -6px 0 10px; }
  .fb2 ul.mistakes { margin: 6px 0 10px; padding-left: 20px; } .fb2 ul.mistakes li { margin: 4px 0; }
  .md { white-space: normal; }
  .md p { margin: 0 0 10px; } .md p:last-child { margin-bottom: 0; }
  .enmiss { font-size: .9em; color: #4a5a7a; background: #eef5ff; border-radius: 10px; padding: 6px 10px; }
  .md ul, .md ol { margin: 4px 0 10px; padding-left: 22px; } .md li { margin: 4px 0; }
  .md .tw { overflow-x: auto; margin: 8px 0 14px; border-radius: 12px; border: 1px solid var(--line); }
  .md table { border-collapse: collapse; width: 100%; font-size: 15px; }
  .md th, .md td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
  .md th { background: #e6f6f4; color: #0a5f5b; font-weight: 700; }
  .md tr:last-child td { border-bottom: 0; } .md td:first-child { font-weight: 600; }
  .md strong { color: #07294a; }
  .level { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 20px; padding: 7px 16px; border-radius: 999px; color: #fff; margin-bottom: 8px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.15), 0 8px 18px rgba(0,0,0,.15); animation: pop .6s cubic-bezier(.2,1.7,.4,1) both; }
  @keyframes pop { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
  .level.E { background: linear-gradient(180deg, #ffb340, var(--e)); } .level.C { background: linear-gradient(180deg, #6f98ff, var(--c)); }
  .level.A { background: linear-gradient(180deg, #3fd47f, var(--a)); } .level.not_yet_E { background: linear-gradient(180deg, #ff7b7f, var(--no)); }
  .cheer { font-weight: 700; margin: 0 0 6px; }
  .fb h4 { margin: 12px 0 3px; font-size: 14px; color: #0a5f5b; }
  .fb p { margin: 0; }
  .model { background: #f2fbfa; border-left: 4px solid var(--lagoon); padding: 10px 12px; border-radius: 10px; margin-top: 4px; }
  .typing { color: var(--muted); font-style: italic; }
  .msg.bot { animation: rise .35s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px; display: none;
    background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .composer.show { display: block; }
  .composer .row { max-width: 780px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; }
  @media (max-width: 500px) { /* phones: the answer box gets the whole width, buttons underneath */
    .composer .row { flex-wrap: wrap; } .composer .row textarea { flex: 1 1 100%; min-height: 72px; }
    .composer .row .send { flex: 1 1 auto; } .composer .row .restart { flex: 0 0 auto; }
  }
  textarea { flex: 1; min-height: 64px; max-height: 220px; resize: vertical; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
  textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(15,181,168,.15); }
  .send { border: 0; cursor: pointer; font-weight: 700; font-size: 16px; padding: 14px 20px; border-radius: 14px; color: #fff;
    background: linear-gradient(180deg, #2fd6c6, #0b9a91); box-shadow: 0 3px 0 #07726c, inset 0 1px 0 rgba(255,255,255,.4); }
  .restart { border: 1.5px solid var(--line); background: #fff; color: #0a5f5b; cursor: pointer; font-weight: 700; font-size: 14px; padding: 14px 12px; border-radius: 14px; white-space: nowrap; }
  .testbar { max-width: 780px; margin: 0 auto 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #fff; border-radius: 14px; padding: 8px 12px; font-weight: 800;
    background: linear-gradient(180deg, #0b3a5c, #07294a); box-shadow: 0 6px 16px rgba(4,20,42,.25), inset 0 1px 0 rgba(255,255,255,.15); }
  .testbar[hidden] { display: none; }
  .testbar.warn { background: linear-gradient(180deg, #ff7aa8, #c2185b); }
  #tbTime { font-size: 20px; font-variant-numeric: tabular-nums; } #tbQ { font-size: 14px; opacity: .9; } .tbsp { flex: 1; }
  .testbar button { border: 0; cursor: pointer; font-weight: 800; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
  #tbSkip { background: rgba(255,255,255,.15); color: #fff; } #tbHand { background: linear-gradient(180deg, #ffe6a3, var(--sun)); color: #04223a; box-shadow: 0 3px 0 #c49a12; }
  .sidecard.hw { color: #04223a; background: linear-gradient(180deg, #e9ffd9 0%, #8ee07a 55%, #4cbf3f 100%); box-shadow: 0 5px 0 #2f8a26, 0 10px 18px rgba(7,41,74,.15), inset 0 2px 0 rgba(255,255,255,.7); }
  @media (max-width: 640px) { .side { flex-wrap: wrap; } .side .sidecard { min-width: 46%; } }
  .sidecard.test { color: #fff; background: linear-gradient(180deg, #5fa8ff 0%, #2f6fe0 55%, #1d4fb8 100%); box-shadow: 0 5px 0 #143a8a, 0 10px 18px rgba(7,41,74,.15), inset 0 2px 0 rgba(255,255,255,.5); }
  .tres h3 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; } .tres .tlab { margin: 0 0 4px; font-weight: 700; color: var(--muted); font-size: 13px; }
  .tres .tnote { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
  .anslab { display: block; max-width: 780px; margin: 0 auto 4px; padding-left: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .tres .terr { color: var(--ink, #1d2b36); font-weight: 600; }
  .ttab { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; clear: both; } .ttab td:last-child { width: 104px; } .ttab td { padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: middle; } .ttab .muted { color: var(--muted); font-size: 12.5px; }
  .level.lvmini { font-size: 13px; padding: 3px 10px; margin: 0; white-space: nowrap; animation: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.15); } .ttab .tn { font-weight: 800; width: 28px; } .ttab td:last-child { text-align: right; } .tskip { font-size: 13px; color: var(--muted); font-weight: 700; }
  .trev .tyour { background: #f2fbfa; border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; }
  .tools { max-width: 780px; margin: 0 auto 8px; display: flex; gap: 8px; }
  .tools[hidden] { display: none; } #sLang[hidden] { display: none; }
  .tool { border: 0; cursor: pointer; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--deep);
    background: linear-gradient(180deg, #ffffff 0%, #e6f1f7 100%); box-shadow: 0 3px 0 #c3d6df, inset 0 1px 0 #fff; transition: transform .08s; }
  .tool[aria-expanded="true"] { color: #04223a; background: linear-gradient(180deg, #ffffff 0%, #c9fff7 55%, #6ff7e3 100%); box-shadow: 0 3px 0 #0b8f86, inset 0 1px 0 #fff; }
  .tool:active { transform: translateY(2px); box-shadow: 0 1px 0 #c3d6df; }
  .mkb { max-width: 780px; margin: 0 auto 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 7px; }
  .mkb[hidden], .calc[hidden], .fpanel[hidden] { display: none; }
  /* Formula sheet beside the answer (owner idea 19 Nov): same data as the Formelblad page, compact. */
  .fpanel { max-width: 780px; margin: 0 auto 10px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%); border: 1px solid #DCE7EF; box-shadow: 0 6px 18px rgba(11,37,69,.14); color: var(--navy); }
  .fpanel h4 { margin: 12px 0 6px; font-family: var(--display); font-weight: 900; font-size: 16px; } .fpanel h4:first-child { margin-top: 0; }
  .fpanel dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 15px; }
  .fpanel dt { color: #3D5872; } .fpanel dd { margin: 0; font-weight: 700; text-align: right; font-family: 'NP Greek', var(--body); overflow-wrap: anywhere; }
  .fpanel dt.long, .fpanel dd.long { grid-column: 1 / -1; } .fpanel dd.long { text-align: left; margin-bottom: 4px; }
  .fpanel .ptable { padding: 10px; margin: 0 0 10px; box-shadow: none; } .fpanel .ptable h3 { font-size: 16px; } .fpanel .plegend, .fpanel .pmore { font-size: 12px; }
  .fpanel .flink { display: inline-block; margin-top: 10px; font-weight: 700; color: #0B6F69; }
  .mkb button, .ckeys button { border: 0; cursor: pointer; font-size: 18px; font-weight: 700; padding: 9px 4px; border-radius: 12px; color: var(--deep); font-family: 'Cambria Math', 'STIX Two Math', Georgia, serif;
    background: linear-gradient(180deg, #ffffff 0%, #eaf3f8 100%); box-shadow: 0 3px 0 #c3d6df, inset 0 1px 0 #fff; transition: transform .08s; }
  .mkb button:active, .ckeys button:active { transform: translateY(2px); box-shadow: 0 1px 0 #c3d6df; }
  .mkb button.on { background: linear-gradient(180deg, #ffe6a3, var(--sun)); box-shadow: 0 3px 0 #c49a12, inset 0 1px 0 #fff; }
  .mkb button.sup { font-size: 26px; line-height: 1; padding-top: 4px; padding-bottom: 6px; }
  .mkb button.wide { grid-column: span 2; font-family: var(--body); font-size: 15px; }
  .mkb .hint2 { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-family: var(--body); margin: -2px 0 0; }
  .calc { max-width: 420px; margin: 0 auto 10px; background: linear-gradient(180deg, #0b3a5c, #07294a); border-radius: 20px; padding: 12px; box-shadow: 0 10px 24px rgba(4,20,42,.3), inset 0 1px 0 rgba(255,255,255,.15); }
  .cdisp { background: linear-gradient(180deg, #e9fffb, #c9f3ec); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; text-align: right; box-shadow: inset 0 2px 6px rgba(7,41,74,.25); min-height: 64px; }
  .cexpr { font-size: 15px; color: #3f5a6b; min-height: 20px; word-break: break-all; font-family: 'Cambria Math', Georgia, serif; }
  .cres { font-size: 26px; font-weight: 800; color: #07192a; font-family: var(--display); min-height: 32px; }
  .ckeys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .ckeys button { font-size: 18px; padding: 10px 2px; }
  .ckeys button.op { background: linear-gradient(180deg, #ffffff 0%, #c9fff7 55%, #6ff7e3 100%); box-shadow: 0 3px 0 #0b8f86, inset 0 1px 0 #fff; }
  .ckeys button.eq { background: linear-gradient(180deg, #ffe6a3, var(--sun)); box-shadow: 0 3px 0 #c49a12, inset 0 1px 0 #fff; }
  .ckeys button.clr { background: linear-gradient(180deg, #fff, #ffd9dc); box-shadow: 0 3px 0 #e7a5aa, inset 0 1px 0 #fff; }
  .ckeys button.ins { grid-column: span 5; font-family: var(--body); font-size: 15px; font-weight: 800; }
  .tool:focus-visible, .mkb button:focus-visible, .ckeys button:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
  @media (max-width: 520px) { .mkb { grid-template-columns: repeat(6, 1fr); gap: 6px; } .mkb button { font-size: 16px; padding: 8px 2px; } .calc { padding: 9px; border-radius: 16px; } .ckeys { gap: 6px; } .ckeys button { font-size: 16px; padding: 7px 2px; } .cdisp { min-height: 50px; padding: 5px 10px; margin-bottom: 8px; } .cexpr { font-size: 13px; min-height: 16px; } .cres { font-size: 20px; min-height: 26px; } }
  .count-left { max-width: 780px; margin: 6px auto 0; font-size: 12px; color: var(--muted); text-align: right; }
  .toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: 90vw; text-align: center;
    background: var(--deep); color: #fff; padding: 13px 18px; border-radius: 16px; font-weight: 600; box-shadow: 0 14px 30px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }
  .prog { display: none; background: var(--card); border-radius: 18px; padding: 14px 16px; margin: 0 0 16px; box-shadow: 0 8px 22px rgba(7,41,74,.08); }
  .prog.show { display: block; }
  .stats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .stat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #eef8f7; font-weight: 600; font-size: 15px; }
  .stat b { font-family: var(--display); font-size: 19px; font-variant-numeric: tabular-nums; }
  .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .badge { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; display: grid; place-items: center; padding: 0;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 6px rgba(0,0,0,.25), 0 4px 10px rgba(7,41,74,.18); transition: transform .15s; }
  .badge:hover { transform: translateY(-2px) scale(1.06); }
  .badge.locked { filter: grayscale(1); opacity: .32; box-shadow: none; }
  .prog .pill { margin-top: 12px; cursor: pointer; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid #a7dcd8; background: #fff; color: #0a5f5b; }
  .map h3 { font-family: var(--display); font-size: 19px; margin: 18px 0 6px; display: flex; align-items: center; gap: 8px; }
  .map h3 i { width: 16px; height: 16px; border-radius: 50%; display: block; }
  .trow { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: center; font-size: 15px; padding: 6px 8px; border-radius: 10px; }
  .trow.go { cursor: pointer; } .trow.go:hover { background: #eef8f7; }
  .trow .bar { height: 10px; background: #e2f1f0; border-radius: 99px; overflow: hidden; }
  .trow .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lagoon), #36d399, var(--sun)); }
  .trow small { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
  .trow.soon { color: #8aa3ab; }
  .pic { text-align: center; }
  .pic img { display: block; width: 100%; max-width: 320px; margin: 4px auto 14px; border-radius: 16px; box-shadow: 0 14px 30px rgba(7,41,74,.25); }
  .pic .row2 { justify-content: center; flex-wrap: wrap; }
  @media (max-width: 440px) { .brand { font-size: 16px; gap: 7px; white-space: nowrap; } .brand i { width: 22px; height: 22px; } .lang button { padding: 5px 9px; font-size: 12px; }
  }
  @media (max-width: 360px) { .brand { font-size: 14px; gap: 5px; } .lang button { padding: 5px 7px; min-width: 32px; }
  }
  .bigcode { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 6vw, 34px); white-space: nowrap; text-align: center; letter-spacing: .02em; color: var(--deep);
    background: #eef8f7; border: 2px dashed #a7dcd8; border-radius: 16px; padding: 14px 10px; margin: 6px 0 12px; user-select: all; word-break: break-all; }
  .kinfo { margin: 4px 0; font-weight: 600; }
  .ttab { border-collapse: collapse; width: 100%; font-size: 14px; } .ttab th, .ttab td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
  .ttab th { background: #e6f6f4; color: #0a5f5b; }
  .kinfo.bad { color: var(--no); }
  .brand i { background: url('https://wpqrhlummfkdbcwlqstt.supabase.co/storage/v1/object/public/question-images/site/np_plankton_08_app_icon.webp') center/cover, radial-gradient(circle at 34% 30%, #fff 0 9%, #8ffff0 16%, var(--lagoon) 48%, #075e6e 100%); border-radius: 9px; }
  @keyframes bob { 50% { transform: translateY(-14px) rotate(-2deg); } }
  .mini { width: 46px; height: 46px; object-fit: contain; vertical-align: middle; margin: -6px 8px -6px 0; }
  .fbm { float: right; width: 92px; height: 92px; object-fit: contain; margin: -6px -4px 4px 8px; animation: pop .7s cubic-bezier(.2,1.7,.4,1) both; }
  .prog { position: relative; }
  .progm { position: absolute; right: 8px; top: -34px; width: 74px; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(7,41,74,.25)); }
  .toast img { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; margin: -8px 8px -8px -4px; }
  .sheetm { display: block; width: 120px; height: 120px; object-fit: contain; margin: -4px auto 4px; }
  .pic .sheetm { width: 120px; max-width: none; height: 120px; box-shadow: none; border-radius: 0; margin: -4px auto 4px; }
  .startgrid { display: grid; grid-template-columns: 1fr 220px; gap: 14px; align-items: start; margin: 10px 0 4px; }
  .startgrid .choices { justify-content: center; margin: 0; }
  .side { display: flex; flex-direction: column; gap: 10px; }
  .sidecard { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; border-radius: 16px; padding: 12px 14px; font-weight: 800; font-size: 16px; line-height: 1.25;
    transition: transform .12s ease, box-shadow .12s ease; }
  .sidecard small { display: block; font-weight: 600; font-size: 13px; opacity: .85; margin-top: 3px; }
  .sidecard.daily { color: #04223a; background: linear-gradient(180deg, #fff6c2 0%, var(--sun) 55%, #f5a800 100%); box-shadow: 0 5px 0 #c98400, 0 10px 18px rgba(7,41,74,.15), inset 0 2px 0 rgba(255,255,255,.8); }
  .sidecard.mist { color: #fff; background: linear-gradient(180deg, #ff9cc6 0%, var(--jelly) 55%, #d93a80 100%); box-shadow: 0 5px 0 #9e1f58, 0 10px 18px rgba(7,41,74,.15), inset 0 2px 0 rgba(255,255,255,.5); }
  .sidecard:hover { transform: translateY(-2px); } .sidecard:active { transform: translateY(4px); }
  .sidecard:disabled { cursor: default; filter: grayscale(.85); opacity: .55; transform: none; }
  @media (max-width: 640px) { .startgrid { grid-template-columns: 1fr; } .side { flex-direction: row; } .sidecard { flex: 1; } }
  .fb .streakline { margin-top: 10px; font-weight: 600; color: #0a5f5b; }
  /* New feedback (marking v2): calm, one idea per block. */
  .fb2 { padding-top: 6px; overflow-wrap: anywhere; min-width: 0; } .fb2 .fhead > div { min-width: 0; }
  .fb2 .fhead { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; background: #f1f6f9; border: 1px solid #dbe7ee; }
  .fb2 .fhead.ok { background: #eefaf3; border-color: #bfe6cf; } .fb2 .fhead.no { background: #fdf1f1; border-color: #f2c9c9; } .fb2 .fhead.part { background: #fdf7ec; border-color: #ecd9b4; }
  .fb2 .fhead .fbm { float: none; flex: none; width: 58px; height: 58px; margin: -4px -4px -4px auto; }
  .fb2 .ficon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; font-weight: 800; font-size: 18px; border: 1px solid rgba(0,0,0,.08); }
  .fb2 .fhead h3 { margin: 0; font-size: 20px; color: #0b2f4a; } .fb2 .fhead p { margin: 3px 0 0; color: #33505f; }
  .ptsline { display: inline-block; margin-left: 8px; font-weight: 800; font-size: 14px; padding: 3px 10px; border-radius: 999px; background: #eef8f7; color: #0a5f5b; border: 1px solid #bfe3df; vertical-align: middle; }
  .fb2 .ladder { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
  .fb2 .ladder span { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #d5e2ea; color: #5b7482; }
  .fb2 .ladder span.on { background: #0e7f6e; border-color: #0e7f6e; color: #fff; }
  .fb2 .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
  .fb2 .card { border: 1px solid #dbe7ee; border-radius: 12px; padding: 10px 12px; background: #f8fbfc; min-width: 0; overflow-wrap: anywhere; }
  .fb2 .card.key { background: #f0faf6; border-color: #c4e6d6; }
  .fb2 .card small { display: block; font-weight: 700; color: #4b6573; font-size: 13px; margin-bottom: 2px; } .fb2 .card b { font-size: 18px; color: #0b2f4a; }
  .fb2 .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 10px; }
  .fb2 .cols > div { border-left: 4px solid #1f9d7a; padding-left: 10px; } .fb2 .cols > div.imp { border-left-color: #c98a1b; }
  .fb2 h4 { margin: 0 0 3px; font-size: 15px; color: #0b2f4a; } .fb2 ol { margin: 4px 0 10px 20px; padding: 0; }
  .fb2 .unsure { background: #fff8e6; border: 1px solid #f0d9a0; border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; font-size: 14px; }
  .fb2 details { border: 1px solid #e3ebf0; border-radius: 12px; padding: 8px 12px; margin-top: 8px; background: #fbfdfe; }
  .fb2 summary { cursor: pointer; font-weight: 700; color: #0b2f4a; min-height: 44px; display: flex; align-items: center; }
  .fb2 .crit { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 8px 0; }
  .fb2 .crit > div { border: 1px solid #dbe7ee; border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 14px; overflow-wrap: anywhere; }
  .fb2 .crit > div.met { border-color: #bfe6cf; } .fb2 .crit .cl { font-weight: 800; color: #0b2f4a; } .fb2 .crit .met .cl { color: #0e7f3f; }
  .fb2 .crit q { display: block; margin-top: 4px; color: #33505f; font-style: italic; }
  .fb2 .fsol { margin: 0 0 10px; } .fb2 .fsol h4 { margin: 0 0 4px; }
  .fb2 .ftip { margin: 8px 0 0; padding: 8px 10px; background: #fff7df; border-radius: 10px; border-left: 4px solid #c98a1b; }
  @media (max-width: 520px) { .fb2 .pair, .fb2 .cols { grid-template-columns: 1fr; } }
  @media (prefers-reduced-motion: reduce) { .key3d::after, .key3d .ic { animation: none; } html { scroll-behavior: auto; } }

  /* ================= Batch 2: app shell (design C, premium glossy 3D, words-only menu) ================= */
  :root { --display: 'Nunito', system-ui, sans-serif; --body: 'NP Digits', 'Atkinson Hyperlegible', system-ui, sans-serif;
    --navy: #0B2545; --abyss2: #071A33; --teal2: #13A89E; --link2: #0E6E8C; --soft: #F5F8FB; --side: 270px; }
  body { font-weight: 400; background: linear-gradient(180deg, #F7FAFD 0%, #EEF4F9 100%); min-height: 100vh; }
  .skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 60; }
  .skip:focus { left: 8px; }
  .shell { display: flex; align-items: stretch; min-height: 100vh; }
  .sbrand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 21px; }
  .sbrand img { width: 38px; height: 38px; border-radius: 10px; }
  .sidenav { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: 0 0 var(--side); width: var(--side); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px;
    background: linear-gradient(180deg, #12335c 0%, var(--navy) 45%, var(--abyss2) 100%); color: #fff; box-shadow: 6px 0 24px rgba(7,26,51,.18); z-index: 30; }
  .sidenav .sbrand { margin: 0 8px 8px; }
  .snav { display: flex; flex-direction: column; gap: 6px; }
  .snav a { display: block; color: #DDEBF7; text-decoration: none; font-weight: 700; font-size: 17px; padding: 12px 16px; border-radius: 14px; transition: background .15s, transform .12s; }
  .snav a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .snav a[aria-current="page"] { color: var(--navy); font-family: var(--display); font-weight: 900; position: relative;
    background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%); box-shadow: 0 4px 0 #C98400, 0 10px 18px rgba(0,0,0,.25); }
  .snav a[aria-current="page"]::after { content: ''; position: absolute; left: 10%; right: 10%; top: 3px; height: 40%; border-radius: 10px 10px 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); }
  .smini { margin: 4px 4px 0; padding: 14px 16px; border-radius: 16px; font-size: 15px; color: #DDEBF7; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.18); }
  .smini b { display: block; font-family: var(--display); font-size: 20px; color: #fff; }
  .sfoot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 0; border-top: 1px solid rgba(255,255,255,.14); }
  .sfoot button, .sfoot a { text-align: left; font: inherit; font-size: 16px; color: #DDEBF7; background: none; border: 0; padding: 8px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; min-height: 40px; }
  .sfoot button:hover, .sfoot a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .pane { flex: 1 1 auto; min-width: 0; padding: 34px 40px 200px; max-width: 980px; margin: 0 auto; outline: none; }
  .sectitle { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 42px); color: var(--navy); margin: 0 0 6px; line-height: 1.1; }
  .seclead { margin: 0 0 20px; font-size: 18px; color: #3D5872; }
  .mbar { display: none; }
  .menubtn { font: inherit; font-weight: 800; font-size: 16px; color: var(--navy); border: 0; border-radius: 12px; padding: 10px 18px; min-height: 44px; cursor: pointer;
    background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%); box-shadow: 0 4px 0 #C98400; }
  /* Practice area: cards instead of chat bubbles */
  .pane #prog, .pane #today { display: none; }
  .pane.sec-plan #prog.show { display: block; padding: 22px 24px; border-radius: 24px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%); border: 1px solid #E3ECF3; box-shadow: 0 6px 0 #DCE7EF, 0 16px 30px rgba(11,37,69,.07); }
  .pane.sec-plan #today.show { display: flex; }
  .pane.sec-plan #prog .progm { display: none; }
  .pane.sec-plan #prog .stat { min-height: 40px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(180deg, #fff, #EAF2F9); border: 1px solid #DCE7EF; box-shadow: 0 3px 0 #DCE7EF; color: var(--navy); font-size: 15px; }
  .pane.sec-plan #prog .pill { position: relative; min-height: 44px; margin: 14px 10px 0 0; padding: 10px 18px; border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--navy); border: 1px solid #CBD8E5;
    background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); box-shadow: 0 4px 0 #C3D3E0; }
  .pane .msg.me { display: none; }
  .pane .msg { margin: 14px 0; }
  .pane .bubble { max-width: 100%; width: 100%; font-size: 18px; border-radius: 20px; padding: 20px 22px; background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFD 100%);
    border: 1px solid #E3ECF3; box-shadow: 0 5px 0 #DCE7EF, 0 14px 26px rgba(11,37,69,.07); }
  .pane .bot .bubble { border-top-left-radius: 20px; }
  .pane .choices { gap: 12px; margin: 14px 0 6px; }
  .pane .choices button { position: relative; font-family: var(--display); font-weight: 800; font-size: 17px; min-height: 48px; padding: 12px 22px; border-radius: 16px; color: var(--navy);
    background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); border: 1px solid #CBD8E5; box-shadow: 0 5px 0 #C3D3E0, 0 10px 18px rgba(11,37,69,.08); }
  .pane .choices button:hover { transform: translateY(-1px); box-shadow: 0 6px 0 #C3D3E0, 0 12px 20px rgba(11,37,69,.1); background: linear-gradient(180deg, #FFFFFF 0%, #EAF2F9 100%); }
  .pane .choices button:active { transform: translateY(3px); box-shadow: 0 2px 0 #C3D3E0; }
  .pane .choices button.primary { color: var(--navy); border: 0; background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%); box-shadow: 0 5px 0 #C98400, 0 10px 20px rgba(201,132,0,.3); }
  .pane .choices button.soon { font-family: var(--body); font-weight: 400; font-size: 16px; color: #5D7486; background: transparent; border: 2px dashed #C9D6E2; box-shadow: none; min-height: 44px; }
  .pane .choices button.soon::after { content: ''; }
  .pane .startgrid { display: block; }
  .pane .startgrid .side { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; position: static; height: auto; width: auto; background: none; box-shadow: none; padding: 0; }
  .pane .startgrid .sidecard.daily, .pane .startgrid .sidecard.mist, .pane .startgrid .sidecard.test { display: none; }
  .pane .startgrid .sidecard.hw { width: auto; min-width: 240px; }
  .soongroup { margin-top: 18px; }
  .soongroup summary { cursor: pointer; font-weight: 700; color: #3D5872; padding: 8px 0; }
  .emptybox { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, #FFFFFF, #F3F8FC); border: 1px solid #E3ECF3; box-shadow: 0 5px 0 #DCE7EF; }
  .emptybox img { width: 120px; height: 120px; object-fit: contain; }
  .emptybox p { margin: 0 0 12px; font-size: 18px; }
  .gbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 16px; border: 0; cursor: pointer; text-decoration: none;
    font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--navy); background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%); box-shadow: 0 5px 0 #C98400, 0 10px 20px rgba(201,132,0,.3); }
  .gbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 #C98400; }
  .gbtn.ghost { background: linear-gradient(180deg, #ffffff, #eef4fa); box-shadow: 0 5px 0 #c3d2e0, inset 0 1px 0 #fff; }
  .gbtn.ghost:active { box-shadow: 0 2px 0 #c3d2e0; }
  .pane .choices { justify-content: flex-start; }
  .pane .subjgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
  .pane .subjgrid .subjcard { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; min-height: 96px; padding: 18px 20px 18px 74px; font-size: 21px; border-radius: 20px; }
  .pane .subjgrid .subjcard small { font-family: var(--body); font-weight: 400; font-size: 16px; color: #3D5872; }
  .pane .subjgrid .subjcard::before { content: ''; position: absolute; left: 20px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff 0 9%, #7FE3D8 40%, #0B8F86 100%); box-shadow: 0 5px 10px rgba(0,0,0,.18), inset -3px -4px 8px rgba(0,0,0,.18); }
  .pane .subjgrid .s-fysik::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFE28A 40%, #D99A00 100%); }
  .pane .subjgrid .s-kemi::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFA8CB 40%, #C2306E 100%); }
  .pane .subjgrid .s-biologi::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #A9C8FF 40%, #2F5FBF 100%); }
  /* Formula sheets */
  .fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 6px; }
  .fcard { padding: 18px 20px; border-radius: 20px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%); border: 1px solid #E3ECF3; box-shadow: 0 5px 0 #DCE7EF, 0 12px 22px rgba(11,37,69,.06); }
  .fcard h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 900; font-size: 21px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
  .fcard h3::before { content: ''; width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 32% 28%, #fff 0 9%, #7FE3D8 40%, #0B8F86 100%); box-shadow: 0 3px 6px rgba(0,0,0,.18); }
  .fcard dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: baseline; }
  .fcard dt { color: #3D5872; font-size: 16px; } .fcard dd { margin: 0; font-weight: 700; font-size: 17px; color: var(--navy); text-align: right; overflow-wrap: anywhere; font-family: 'NP Greek', var(--body); }
  .fcard dt.long { grid-column: 1 / -1; } .fcard dd.long { grid-column: 1 / -1; text-align: left; margin: -4px 0 4px; }
  .ptable { margin: 4px 0 18px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%); border: 1px solid #E3ECF3; box-shadow: 0 5px 0 #DCE7EF; }
  .ptable h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 900; font-size: 21px; color: var(--navy); }
  .pscroll { overflow-x: auto; padding-bottom: 6px; container-type: inline-size; }
  .pgrid { display: grid; grid-template-columns: repeat(18, minmax(31px, 1fr)); gap: 3px; min-width: 620px; }
  /* Owner look-through 19 Nov: the whole table fits on a computer; on narrower space the names hide (shown on hover/press) before anything is cut off. */
  @container (max-width: 780px) { .pel span { display: none; } .pel b { font-size: 16px; margin-top: 4px; } .pel { min-height: 52px; } }
  @container (max-width: 640px) { .pel b { font-size: 14px; } .pel small, .pel em { font-size: 9px; } }
  .pel { position: relative; padding: 4px 4px 5px; border-radius: 8px; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1;
    background: linear-gradient(180deg, #FFFFFF, #E6EEF5); box-shadow: 0 2px 0 #CBD8E5, inset 0 1px 0 #fff; color: var(--navy); }
  .pel small { position: absolute; left: 4px; top: 2px; font-size: 10px; color: #3D5872; }
  .pel b { font-family: var(--display); font-weight: 900; font-size: 18px; margin-top: 6px; } .pel span { font-size: 10px; } .pel em { font-style: normal; font-size: 10px; color: #3D5872; }
  .pel.met { background: linear-gradient(180deg, #F2F7FF, #D7E5FA); box-shadow: 0 2px 0 #B5C9EA; }
  .pel.non { background: linear-gradient(180deg, #F3FCF9, #CFEFE7); box-shadow: 0 2px 0 #A8DDD0; }
  .pel.semi { background: linear-gradient(180deg, #FFFBEF, #FCEBC0); box-shadow: 0 2px 0 #EBD58E; }
  .pel.nob { background: linear-gradient(180deg, #FFF6FA, #F8D9E8); box-shadow: 0 2px 0 #E8B5CD; }
  .plegend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 0; font-size: 15px; color: #3D5872; align-items: center; }
  .plegend .lg { display: inline-flex; align-items: center; gap: 6px; } .plegend .lg::before { content: ''; width: 16px; height: 16px; border-radius: 4px; }
  .plegend .met::before { background: #D7E5FA; } .plegend .non::before { background: #CFEFE7; } .plegend .semi::before { background: #FCEBC0; } .plegend .nob::before { background: #F8D9E8; }
  .pmore { margin: 10px 0 0; font-size: 15px; color: #3D5872; }
  .hintbtn { position: relative; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--navy); min-height: 40px; padding: 8px 16px; margin: 6px 0 2px; border-radius: 12px; border: 0;
    background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%); box-shadow: 0 4px 0 #C98400; }
  .hintbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #C98400; }
  .hintbtn:disabled { cursor: default; color: #5D7486; background: linear-gradient(180deg, #FFFFFF, #EAF0F5); box-shadow: 0 3px 0 #D5E0EA; }
  .hintbox { flex-basis: 100%; margin: 6px 0 2px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(180deg, #FFFBEA, #FFF1C2); border: 1px solid #F3D77A; box-shadow: 0 3px 0 #EBD58E; }
  .hintbox b { display: block; font-size: 14px; color: #7A5600; } .hintbox p { margin: 2px 0 0; }
  .qtools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .readbtn { border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: #0E6E8C; padding: 8px 0 4px; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
  .readbtn:hover { color: var(--navy); }
  .qtools .repmenu { flex-basis: 100%; }
  .trnote { margin: 10px 0 0; font-size: 15px; color: #3D5872; font-style: italic; }
  .roundbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 10px; font-weight: 700; color: #3D5872; font-size: 16px; }
  .roundbar .dots { display: flex; gap: 6px; }
  .roundbar .again { font-weight: 600; color: #8a5a00; background: #fff3cf; border-radius: 999px; padding: 2px 10px; font-size: 14px; }
  .roundhint { margin: -4px 0 10px; color: #3D5872; font-size: 15px; }
  .badgenote { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .badgenote button { border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; color: #13304d; background: linear-gradient(180deg, #ffe680, #ffc928); box-shadow: 0 2px 0 #c99a00, inset 0 1px 0 rgba(255,255,255,.7); }
  .roundbar .dots i { width: 30px; height: 10px; border-radius: 5px; background: #D9E4EE; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
  .roundbar .dots i.ok { background: linear-gradient(180deg, #4FD1C5, #0B8F86); } .roundbar .dots i.no { background: linear-gradient(180deg, #FFB0B3, #E5484D); }
  .roundbar .dots i.now { background: linear-gradient(180deg, #FFE28A, #F5A800); }
  .pane .msg.me { display: flex; justify-content: flex-end; }
  .pane .msg.me .bubble { width: auto; max-width: 92%; color: var(--navy); background: linear-gradient(180deg, #F4FBFA, #E2F4F1); border: 1px solid #BFE5DE; box-shadow: 0 4px 0 #CDE8E3; white-space: pre-wrap; }
  .pane .msg.me .bubble::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 700; color: #3D5872; margin-bottom: 2px; }
  .pane .qhead span { font-size: 14px; padding: 5px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 rgba(11,37,69,.08); }
  .pane .repbtn { font-size: 14px; }
  .roundsum { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
  .roundsum .rsm { width: 120px; height: 120px; object-fit: contain; }
  .roundsum > div { flex: 1 1 300px; min-width: 0; }
  .roundsum h3 { font-family: var(--display); font-weight: 900; font-size: 28px; margin: 0 0 6px; color: var(--navy); }
  .roundsum p { margin: 0 0 12px; }
  .rchips { display: flex; flex-wrap: wrap; gap: 8px; }
  .pane .level { box-shadow: 0 3px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.45); }
  .pane .fb2 .fhead { border-radius: 18px; padding: 16px 18px; box-shadow: 0 4px 0 rgba(11,37,69,.06), inset 0 1px 0 #fff; }
  .pane .fb2 .fhead.ok { background: linear-gradient(180deg, #F2FCF7, #DDF4E7); } .pane .fb2 .fhead.no { background: linear-gradient(180deg, #FFF6F6, #FBE2E2); } .pane .fb2 .fhead.part { background: linear-gradient(180deg, #FFFBEF, #FCEFC9); }
  .pane .fb2 .fhead h3 { font-family: var(--display); font-weight: 900; font-size: 24px; }
  .pane .fb2 .ladder span { font-size: 14px; padding: 5px 12px; box-shadow: 0 2px 0 rgba(11,37,69,.1); }
  .pane .fb2 .ladder span.on { background: linear-gradient(180deg, #2FB7A6, #0E7F6E); }
  .pane .fb2 .card { border-radius: 16px; background: linear-gradient(180deg, #FFFFFF, #F4F8FB); box-shadow: 0 3px 0 #DCE7EF; padding: 12px 14px; }
  .pane .fb2 .card small { font-size: 14px; }
  .pane .fb2 h4 { font-size: 16px; } .pane .fb2 .unsure, .pane .fb2 .crit > div { font-size: 15px; }
  .pane .fb2 details { border-radius: 16px; background: linear-gradient(180deg, #FFFFFF, #F6F9FC); box-shadow: 0 3px 0 #E3ECF3; }
  .pane .fb h4 { font-size: 16px; color: var(--navy); }
  .pane .tool { font-family: var(--display); font-weight: 800; font-size: 16px; min-height: 44px; padding: 10px 18px; border-radius: 14px; color: var(--navy);
    background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); border: 1px solid #CBD8E5; box-shadow: 0 4px 0 #C3D3E0; }
  .tool[aria-expanded="true"] { background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%) !important; border-color: transparent !important; box-shadow: 0 4px 0 #C98400 !important; }
  .composer .tool { font-family: var(--display); font-weight: 800; font-size: 16px; min-height: 44px; padding: 10px 18px; border-radius: 14px; color: var(--navy);
    background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); border: 1px solid #CBD8E5; box-shadow: 0 4px 0 #C3D3E0; }
  .composer { background: linear-gradient(180deg, rgba(247,250,253,.92), #EEF4F9); backdrop-filter: blur(8px); border-top: 1px solid #DCE7EF; box-shadow: 0 -8px 24px rgba(11,37,69,.08); }
  .composer .send { font-family: var(--display); font-weight: 900; color: var(--navy); background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%); box-shadow: 0 5px 0 #C98400, 0 10px 18px rgba(201,132,0,.3); border: 0; }
  .composer .restart { font-family: var(--display); font-weight: 800; color: var(--navy); background: linear-gradient(180deg, #FFFFFF 0%, #EAF2F9 100%); border: 1px solid #CBD8E5; box-shadow: 0 4px 0 #C3D3E0; }
  .composer textarea { font-family: var(--body); font-size: 18px; border-radius: 16px; }
  .anslab { font-size: 15px; }
  @media (max-width: 900px) { .composer .mkb, .composer .calc, .composer .fpanel { max-height: 33vh; overflow-y: auto; } }
  @media (min-width: 1100px) {
    .composer.show { display: grid; grid-template-columns: minmax(0, 640px) 380px; grid-template-rows: 1fr auto auto auto auto auto auto; column-gap: 20px; justify-content: center; }
    .composer .testbar, .composer .tools, .composer .npch, .composer .anslab, .composer .row, .composer .count-left { grid-column: 1; max-width: none; margin-left: 0; margin-right: 0; }
    .composer .testbar { grid-row: 2; } .composer .tools { grid-row: 3; } .composer .npch { grid-row: 4; } .composer .anslab { grid-row: 5; } .composer .row { grid-row: 6; } .composer .count-left { grid-row: 7; }
    .composer .mkb, .composer .calc, .composer .fpanel { grid-column: 2; grid-row: 1 / -1; align-self: end; margin: 0; max-height: 60vh; overflow-y: auto; }
  }
  /* Year tabs (glossy 3D) on the practice page */
  .years { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }
  .ytab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 130px; min-height: 58px; padding: 10px 20px; border-radius: 18px; cursor: pointer;
    font: inherit; text-align: left; color: var(--navy); border: 1px solid #CBD8E5; background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); box-shadow: 0 5px 0 #C3D3E0, 0 10px 18px rgba(11,37,69,.08); }
  .ytab::after { content: ''; position: absolute; left: 10%; right: 10%; top: 3px; height: 38%; border-radius: 12px 12px 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); pointer-events: none; }
  .ytab b { font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1.15; } .ytab small { font-size: 14px; color: #3D5872; }
  .ytab.open small { color: #0B7F77; font-weight: 700; }
  .ytab:active { transform: translateY(3px); box-shadow: 0 2px 0 #C3D3E0; }
  .ytab[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(180deg, #2B5E93 0%, #12335c 45%, #071A33 100%); box-shadow: 0 5px 0 #030C18, 0 12px 22px rgba(7,26,51,.3); }
  .ytab[aria-selected="true"]::after { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); }
  .ytab[aria-selected="true"] small { color: #DDEBF7; } .ytab[aria-selected="true"].open small { color: #FFD23F; }
  .ysoon[hidden], .startgrid[hidden], .soongroup[hidden] { display: none; }
  /* 2 Dec 2026: clearer year row and subject families */
  .pane .years { gap: 10px; } .pane .years .ytab { min-height: 48px; min-width: 0; padding: 8px 18px; justify-content: center; } .pane .years .ytab b { font-size: 18px; }
  .subjwrap { display: flex; flex-direction: column; gap: 10px; } .subjwrap .subjgrid { margin: 0; } .pane .subjwrap .subjgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } .subjfam { margin: 10px 0 0; font-size: 16px; font-weight: 800; color: #3D5872; letter-spacing: .01em; } .subjfam:first-child { margin-top: 0; }
  @media (max-width: 640px) {
    .pane .years { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; margin-right: -4px; padding: 2px 4px 8px; } .pane .years::-webkit-scrollbar { display: none; }
    .pane .years .ytab { flex: 0 0 auto; white-space: nowrap; }
    .pane .subjgrid, .pane .subjwrap .subjgrid { grid-template-columns: 1fr; gap: 10px; }
    .pane .subjgrid .subjcard { min-height: 64px; padding: 10px 14px 10px 54px; font-size: 18px; border-radius: 16px; }
    .pane .subjgrid .subjcard::before { left: 12px; width: 28px; height: 28px; margin-top: -14px; }
    .pane .subjgrid .subjcard small { font-size: 14px; }
  }
  .ysoonlead { margin: 0 0 12px; font-size: 18px; color: #3D5872; }
  .ysoongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .soonc { position: relative; padding: 52px 14px 14px; border-radius: 18px; border: 2px dashed #CBD8E5; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(238,244,249,.95)); }
  .soonc::before { content: ''; position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; opacity: .8; filter: saturate(.35) brightness(1.08);
    background: radial-gradient(circle at 32% 28%, #fff 0 9%, #7FE3D8 40%, #0B8F86 100%); box-shadow: 0 4px 8px rgba(0,0,0,.12); }
  .soonc.c-sun::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFE28A 40%, #D99A00 100%); }
  .soonc.c-pink::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFA8CB 40%, #C2306E 100%); }
  .soonc.c-blue::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #A9C8FF 40%, #2F5FBF 100%); }
  .soonc b { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--navy); hyphens: auto; overflow-wrap: anywhere; }
  .soonc em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 700; color: #3D5872; padding: 3px 12px; border-radius: 999px; background: linear-gradient(180deg, #FFFFFF, #EAF0F5); box-shadow: 0 2px 0 #D5E0EA; }
  @media (max-width: 600px) { .ysoongrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ytab { min-width: 0; flex: 1 1 130px; } }
  @media (min-width: 901px) { .composer { left: var(--side); } .pane > .composer.show:not(:has(> .mkb:not([hidden]), > .calc:not([hidden]), > .fpanel:not([hidden]))) { grid-template-columns: minmax(0, 760px); justify-content: start; } .pane > .composer { position: sticky; left: auto; right: auto; bottom: 0; margin: 14px -40px 0; padding: 12px 40px; border-radius: 22px 22px 0 0; } }
  @media (max-width: 900px) {
    .mbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; position: sticky; top: 0; z-index: 40;
      background: linear-gradient(180deg, #12335c 0%, var(--navy) 100%); box-shadow: 0 4px 16px rgba(7,26,51,.25); }
    .sidenav { position: fixed; left: 0; top: 0; bottom: 0; height: auto; transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; z-index: 50; }
    .sidenav.open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
    .pane { padding: 22px 16px 220px; }
  }
  /* Audit 37: reduced motion applies to the whole practice experience (animations, transitions, smooth scrolling). Confetti is also skipped in JS. */
  .chgans { display: block; width: 100%; margin: 12px 0; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 14px; border: 1px solid #CBD8E5; background: #fff; color: var(--navy); }
  .langpick { position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); padding: 18px 20px 14px; border-radius: 22px; text-align: center;
    background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 100%); color: var(--navy); border: 1px solid #DCE7EF; box-shadow: 0 8px 0 #CBD8E5, 0 24px 48px rgba(4,20,42,.35); }
  .langpick p { margin: 0 0 12px; font-size: 18px; } .langpick .lprow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
  .langpick .gbtn, .langpick .sbtn { min-width: 150px; } .langpick small { color: #4A6378; font-size: 14px; }
  .goalbar .ytab { min-width: 92px; align-items: center; }
  .goalbar .ytab b { font-size: 24px; }
  .ytab[aria-checked="true"] { color: #fff; border-color: transparent; background: linear-gradient(180deg, #2B5E93 0%, #12335c 45%, #071A33 100%); box-shadow: 0 5px 0 #030C18, 0 12px 22px rgba(7,26,51,.3); }
  .pcard { margin: 0 0 22px; padding: 24px 26px; border-radius: 24px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%); border: 1px solid #E3ECF3; box-shadow: 0 6px 0 #DCE7EF, 0 16px 30px rgba(11,37,69,.07); }
  .pcard h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--navy); }
  .pcard h3 { margin: 20px 0 10px; font-family: var(--display); font-weight: 900; font-size: 19px; color: var(--navy); }
  .pcard .plead { margin: 0 0 16px; color: #3D5872; font-size: 17px; max-width: 64ch; }
  .pfield { border: 0; margin: 0 0 16px; padding: 0; display: block; }
  .pfield legend, .plab { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 16px; }
  .pdate { font: inherit; font-size: 17px; min-height: 48px; padding: 8px 14px; border-radius: 14px; border: 1px solid #CBD8E5; background: linear-gradient(180deg, #fff, #F2F7FB); box-shadow: inset 0 2px 3px rgba(11,37,69,.06); color: var(--navy); }
  .pchips { display: flex; flex-wrap: wrap; gap: 10px; }
  /* Batch D: one plan card per subject – glossy cards with a raised edge */
  .psubjs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 10px 0 18px; }
  .psubj { position: relative; border-radius: 22px; padding: 18px 20px; background: linear-gradient(165deg, #FFFFFF 0%, #EEF7FF 60%, #DDEEFC 100%); box-shadow: inset 0 2px 0 #fff, 0 7px 0 #A9CBE8, 0 16px 26px rgba(11,37,69,.12); display: flex; flex-direction: column; gap: 12px; }
  .pshead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
  .pshead h3 { margin: 0 !important; font-size: 22px !important; }
  .psrow { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: flex-end; }
  .psubj .goalbar .ytab { min-width: 64px; padding: 8px 12px; }
  .psubj .goalbar .ytab b { font-size: 20px; }
  .psubj .prsub { grid-template-columns: auto minmax(0, 1fr) auto; }
  .psubj .prsub b { font-size: 15px; }
  .padd { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #F5F9FC; border: 2px dashed #CFDDEA; }
  .psel { font: inherit; font-size: 17px; padding: 10px 12px; border-radius: 12px; border: 2px solid #CBD8E5; background: #fff; max-width: 100%; }
  .pempty { font-weight: 700; color: #3D5872; }
  .pchip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px 8px 14px; border-radius: 16px; cursor: pointer; font-weight: 700; color: var(--navy);
    background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); border: 1px solid #CBD8E5; box-shadow: 0 4px 0 #C3D3E0; }
  .pchip input { width: 20px; height: 20px; accent-color: #13A89E; }
  .pchip:has(input:checked) { background: linear-gradient(180deg, #F3FFFC 0%, #CFF3EC 100%); border-color: #7FD3C7; box-shadow: 0 4px 0 #8CCFC4; }
  .perr { color: #B3261E; font-weight: 700; margin: 0; min-height: 1px; }
  .prow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
  .pbyparent { font-size: 12px; font-weight: 700; color: #7A4B00; background: linear-gradient(135deg,#FFF4CC,#FFE08A); border-radius: 99px; padding: 4px 10px; box-shadow: 0 2px 0 #E9C46A; }
  .pnote { margin: 14px 0 0; font-size: 15px; color: #4A6378; max-width: 70ch; }
  .pmuted { color: #4A6378; font-size: 15px; margin: 0; }
  .sbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 16px; cursor: pointer;
    font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--navy); border: 1px solid #CBD8E5;
    background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); box-shadow: 0 5px 0 #C3D3E0, 0 10px 18px rgba(11,37,69,.08); }
  .sbtn::after, .gbtn::after { content: ''; position: absolute; left: 10px; right: 10px; top: 4px; height: 40%; border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
  .sbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 #C3D3E0; }
  .sbtn.small { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 13px; }
  .ptop { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 4px; }
  .pgoal, .pcount { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-family: var(--display); font-weight: 900; font-size: 18px; }
  .pgoal { color: var(--navy); background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%); box-shadow: 0 4px 0 #C98400; }
  .pcount { color: #fff; background: linear-gradient(180deg, #2B5E93 0%, #12335c 45%, #071A33 100%); box-shadow: 0 4px 0 #030C18; }
  .pcount.past { background: linear-gradient(180deg, #FFE1DE, #F7B9B2); color: #6B1A12; box-shadow: 0 4px 0 #D98A80; }
  .plist { display: grid; gap: 12px; }
  .prsub { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) auto; align-items: center; gap: 14px; }
  .prsub b { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--navy); }
  .pstage { font-weight: 700; color: #234A6B; font-size: 15px; white-space: nowrap; }
  .meter { position: relative; height: 18px; border-radius: 999px; background: linear-gradient(180deg, #DCE7EF, #EEF4F9); box-shadow: inset 0 2px 4px rgba(11,37,69,.14); overflow: hidden; }
  .meter span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(180deg, #7FE3D8 0%, #13A89E 55%, #0B7F77 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
  .pnext { margin: 14px 0 0; font-weight: 700; color: var(--navy); }
  .resgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
  .ressub { padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid #E3ECF3; box-shadow: 0 4px 0 #E3ECF3; }
  .ressub h3 { margin: 0 0 10px; }
  .ressub h4 { margin: 14px 0 6px; font-size: 15px; color: #234A6B; }
  .reslv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .reslv .plab { margin: 0; width: 100%; }
  .reslv small { color: #4A6378; font-size: 14px; }
  .lvchip { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; font-family: var(--display); font-weight: 900; font-size: 16px; color: var(--navy); background: linear-gradient(180deg, #F2F7FB, #DCE7EF); box-shadow: 0 3px 0 #C3D3E0; }
  .lvchip.lv-E { background: linear-gradient(180deg, #E9FFF4, #A9EBC9); box-shadow: 0 3px 0 #7CCBA3; }
  .lvchip.lv-C { background: linear-gradient(180deg, #EAF3FF, #AFCBF4); box-shadow: 0 3px 0 #86A8D8; }
  .lvchip.lv-A { background: linear-gradient(180deg, #FFF6C2, #FFD23F); box-shadow: 0 3px 0 #C98400; }
  .restops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .restops li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; }
  .resdays { margin-top: 8px; }
  .resdays p { margin: 0 0 8px; }
  .daystrip { display: grid; grid-template-columns: repeat(14, minmax(0, 22px)); gap: 5px; margin: 6px 0; }
  .daystrip i { display: block; aspect-ratio: 1; border-radius: 6px; background: #E3ECF3; box-shadow: inset 0 1px 2px rgba(11,37,69,.1); }
  .daystrip i.on { background: radial-gradient(circle at 35% 30%, #fff 0 10%, #7FE3D8 45%, #0B8F86 100%); box-shadow: 0 2px 0 #0B6F69; }
  @media (max-width: 600px) { .prsub { grid-template-columns: 1fr auto; } .prsub .meter { grid-column: 1 / -1; grid-row: 2; } .pcard { padding: 20px 18px; } }
  /* Print engine: one A4 layout for every printout. Only #printRoot is printed. */
  @media screen { #printRoot { display: none !important; } }
  @page { size: A4; margin: 14mm 14mm 16mm; }
  @media print {
    body > :not(#printRoot) { display: none !important; }
    html, body { background: #fff !important; }
    #printRoot { display: block; color: #0B2545; font: 11.5pt/1.45 'NP Digits', 'Atkinson Hyperlegible', Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .pr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 10px; border-bottom: 3px solid #0B2545; margin-bottom: 12px; }
    .pr-brand { display: flex; align-items: center; gap: 8px; font-family: 'Nunito', Arial, sans-serif; font-weight: 900; font-size: 13pt; white-space: nowrap; }
    .pr-orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 12%, #7FE3D8 42%, #0B8F86 100%); }
    .pr-titles { text-align: right; }
    .pr-titles h1 { margin: 0; font-family: 'Nunito', Arial, sans-serif; font-weight: 900; font-size: 19pt; line-height: 1.15; }
    .pr-titles p { margin: 2px 0 0; color: #3D5872; font-size: 10.5pt; }
    .pr-name { display: flex; gap: 14px; margin: 0 0 12px; }
    .pr-field { flex: 1; border-bottom: 1px solid #8FA6BA; padding: 14px 0 3px; font-size: 9.5pt; color: #3D5872; }
    .pr-field.wide { flex: 2; }
    .pr-intro { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid #13A89E; background: #F1FAF8; }
    .pr-q { break-inside: avoid; margin: 0 0 14px; padding: 10px 12px 12px; border: 1px solid #CBD8E5; border-radius: 10px; }
    .pr-qh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
    .pr-qh b { font-family: 'Nunito', Arial, sans-serif; font-weight: 900; font-size: 12.5pt; }
    .pr-lv { font-size: 9.5pt; font-weight: 700; color: #0B6F69; border: 1px solid #8CCFC4; border-radius: 99px; padding: 1px 9px; }
    .pr-qt p { margin: 4px 0; } .pr-qt table { border-collapse: collapse; margin: 6px 0; } .pr-qt td, .pr-qt th { border: 1px solid #A9BCCD; padding: 3px 8px; }
    .pr-img { max-width: 70%; max-height: 70mm; display: block; margin: 6px 0; }
    .pr-pic svg { max-width: 70%; max-height: 70mm; height: auto; display: block; margin: 6px 0; }
    .pr-ans { margin-top: 8px; padding: 0 8px; border-radius: 6px; border: 1px solid #DCE5EE; position: relative; }
    .pr-line { display: block; height: 8mm; border-bottom: 0.3mm solid #C9D6E2; }
    .pr-line:last-child { border-bottom: 0; }
    .pr-ans span { position: absolute; left: 8px; top: 2px; font-size: 8.5pt; color: #8FA6BA; }
    .pr-key { break-before: page; }
    .pr-key h2, .pr-sub h2 { font-family: 'Nunito', Arial, sans-serif; font-weight: 900; font-size: 15pt; margin: 0 0 6px; }
    .pr-keynote, .pr-muted { color: #4A6378; font-size: 9.5pt; }
    .pr-keyi { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid #E3ECF3; } .pr-keyi p { margin: 2px 0; }
    .pr-ready { display: grid; gap: 6px; margin: 0 0 12px; }
    .pr-rrow { display: grid; grid-template-columns: 40mm 1fr 42mm; align-items: center; gap: 10px; }
    .pr-rrow .meter { height: 10px; }
    .pr-sub { break-inside: avoid; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #CBD8E5; border-radius: 10px; }
    .pr-sub h3 { font-size: 11pt; margin: 6px 0 2px; }
    .pr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .pr-two ul { margin: 0; padding-left: 18px; }
    .pr-sub .daystrip { grid-template-columns: repeat(28, 5mm); gap: 1.2mm; }
    .pr-foot { margin-top: 16px; padding-top: 6px; border-top: 1px solid #CBD8E5; font-size: 8.5pt; color: #4A6378; text-align: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  }
  .mypnote { margin: 6px 0 0; font-size: 13px; opacity: .8; }
  .sdemo { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; background: #FFD23F; color: #071A33; border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; font-weight: 700; font-size: 14px; }
  .sdemo a { color: #071A33; background: #fff; border-radius: 10px; padding: 6px 12px; text-decoration: none; font-weight: 800; white-space: nowrap; }
