/* Layout: a document-like proposal page. White ground, left column of controls, right column of tabbed proofs.
     Single light theme by design (Team Satyug theme admits no dark pages). */
  :root {
    --ink: #111111; --paper: #FFFFFF; --ivory: #FBF8E2; --ivory-2: #F9F6E4;
    --mustard: #D8AD2F; --table-yellow: #E8C640; --pale-yellow: #FBF3C4; --sunflower: #F3DD5A; --deep-gold: #BC8424; --dotted: #E3A74A;
    --crimson: #CC3343; --crimson-bg: #FBECEE; --maroon: #8A101F; --brown: #90540D; --muted: #6B6652; --rule: #E4DFCB; --field: #F5F2E6;
    --ok: #3F7D3A; --ok-bg: #EAF3E6;
    --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 13px; line-height: 1.5; }
  html, body { height: 100%; }
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
  .shell.collapsed { grid-template-columns: 64px minmax(0, 1fr); }
  .side { background: var(--ivory); border-right: 1px dotted var(--dotted); padding-block: 14px 16px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; align-self: start; height: 100vh; overflow: auto; }
  .side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; flex: none; }
  .side-toggle { border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; width: 30px; height: 30px; font-size: 14px; color: var(--ink); flex: none; }
  .nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .nav a { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 600; }
  .nav a:hover { background: var(--pale-yellow); }
  .nav a.active { background: var(--paper); border: 1px dashed var(--mustard); }
  .nav .ico { width: 24px; height: 24px; border-radius: 50%; background: var(--mustard); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
  .nav a.active .ico { background: var(--crimson); color: var(--paper); }
  .nav .txt small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
  .side-foot { margin-top: auto; font-size: 11px; color: var(--muted); }
  .chip { border: 1px dashed var(--mustard); border-radius: 8px; padding: 8px 10px; background: var(--paper); font-size: 11px; line-height: 1.4; }
  .chip b { color: var(--maroon); }
  .shell.collapsed .nav .txt, .shell.collapsed .side-foot, .shell.collapsed .side-head .brand { display: none; }
  .brand { display: block; width: 120px; max-width: 100%; text-decoration: none; }
  .mono { display: none; width: 36px; height: 36px; }
  .mono .monogram { display: block; width: 36px; height: auto; }
  .shell.collapsed .side-head { flex-direction: column; gap: 10px; }
  .shell.collapsed .mono { display: block; }
  .brand.small { width: 84px; }
  .logo-svg { display: block; width: 100%; height: auto; }
  .shell.collapsed .nav a { justify-content: center; padding: 8px 0; }
  .content { min-width: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 40px; max-width: 1240px; }
  .topbar { display: flex; align-items: center; gap: 12px; padding-block: 10px 6px; font-size: 11.5px; color: var(--muted); }
  .menu-btn { display: none; border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
  .crumbs b { color: var(--ink); }
  .skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 6px 10px; border: 1px solid var(--ink); } .skip:focus { left: 8px; z-index: 20; }
  .overlay { display: none; }
  @media (max-width: 900px) {
    .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); }
    .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-105%); transition: transform .2s ease; height: 100%; }
    .shell.open .side { transform: none; }
    .shell.collapsed .nav .txt, .shell.collapsed .side-foot, .shell.collapsed .side-head .brand { display: initial; }
    .shell.collapsed .mono { display: none; }
    .shell.collapsed .nav a { justify-content: flex-start; padding: 8px; }
    .side-toggle { display: none; }
    .menu-btn { display: inline-block; }
    .overlay { position: fixed; inset: 0; background: rgba(17,17,17,.35); z-index: 25; }
    .shell.open .overlay { display: block; }
  }
  @media (prefers-reduced-motion: reduce) { .side { transition: none; } }
  .page-head { padding-block: 4px 14px; border-bottom: 6px solid var(--sunflower); }
  .page-head h1 { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.15; margin-top: 10px; }
  .page-head h1 em { font-style: normal; color: var(--crimson); }
  .page-head p { margin: 8px 0 0; max-width: 72ch; }
  .reads { border: 1px dashed var(--mustard); background: var(--pale-yellow); border-radius: 8px; padding: 9px 12px; font-size: 12px; margin: 14px 0 0; }
  .reads a { color: var(--crimson); font-weight: 700; }
  .gate { margin: 18px 0 8px; }
  a.pbtn { text-decoration: none; display: inline-block; line-height: 1.3; }
  .gate-card { background: var(--ivory); border: 1px solid var(--mustard); border-left: 6px solid var(--crimson); border-radius: 10px; padding: 18px 20px; max-width: 560px; }
  .gate-card h2 { font-size: 19px; margin: 2px 0 10px; }
  .gate-card .eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
  .gate-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .gate-form input[type=password] { flex: 1 1 200px; min-width: 0; border: 1.5px solid var(--ink); border-radius: 8px; padding: 9px 12px; font-size: 14px; background: var(--paper); }
  .gate-form .remember { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-basis: 100%; }
  .gate-msg { font-size: 12px; color: var(--crimson); font-weight: 600; min-height: 16px; margin-top: 6px; }
  .gate-ok { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .gate-ok .lock { font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; }
  .shell.locked .nav a:not([data-nav=welcome]) { opacity: .45; pointer-events: none; }
  .shell.locked .side-foot, .shell.locked #calib { display: none; }
  .shell.locked .intro .cards a, .shell.locked .intro .starts a { opacity: .55; pointer-events: none; }
  .intro h2 { font-size: 20px; margin: 26px 0 8px; }
  .intro p, .intro li { max-width: 72ch; }
  .intro ol { padding-left: 22px; } .intro ol li { margin: 6px 0; }
  .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
  .cards a { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--mustard); }
  .cards a:hover { background: var(--ivory); border-top-color: var(--crimson); }
  .cards a b { display: block; font-family: var(--display); font-size: 15px; margin-bottom: 4px; }
  .cards a span { font-size: 12px; color: var(--muted); line-height: 1.4; }
  .cards a .num { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--mustard); color: var(--ink); font-size: 11px; font-weight: 700; text-align: center; line-height: 22px; margin-right: 8px; font-family: var(--body); }
  .starts .cards a { border-top-color: var(--deep-gold); }
  .starts .cards a.sq { border-top-color: var(--muted); } .starts .cards a.full { border-top-color: var(--crimson); }
  .intro .fine { font-size: 11.5px; color: var(--muted); margin-top: 22px; border-top: 1px dotted var(--dotted); padding-top: 10px; }
  h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
  .num { font-variant-numeric: lining-nums tabular-nums; }
  header { border-bottom: 6px solid var(--sunflower); background: var(--ivory); }
  header .wrap { padding-block: 22px 18px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
  .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); }
  header h1 { font-size: clamp(22px, 3vw, 34px); line-height: 1.15; margin-top: 6px; }
  header h1 em { font-style: normal; color: var(--crimson); }
  header p { margin: 8px 0 0; max-width: 72ch; color: var(--ink); }
  .logo { display: grid; grid-template-columns: auto auto; align-items: center; gap: 12px; justify-self: end; }
  .logo .mantra { font-family: 'Noto Sans Devanagari', 'Mangal', sans-serif; font-weight: 700; color: var(--mustard); font-size: 11px; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .04em; line-height: 1; }
  .logo .mark { display: flex; align-items: baseline; gap: 7px; border-bottom: 3px solid var(--mustard); padding-bottom: 3px; }
  .logo .team { font-family: var(--body); font-weight: 700; letter-spacing: .22em; font-size: 15px; color: var(--ink); }
  .logo .dev { font-family: 'Noto Sans Devanagari', 'Mangal', sans-serif; font-weight: 700; font-size: 26px; line-height: 1; color: var(--mustard); }
  .logo .tag { grid-column: 2; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
  .logo.small .dev { font-size: 18px; } .logo.small .team { font-size: 11px; } .logo.small .mark { border-bottom-width: 2px; }
  .matrix td, .matrix th { text-align: center; } .matrix td:first-child, .matrix th:first-child { text-align: left; }
  .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; }
  .dot.y { background: var(--deep-gold); } .dot.n { background: var(--crimson); } .dot.p { background: var(--pale-yellow); border: 1.5px solid var(--deep-gold); }
  .presets { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-start; padding-block: 12px; border-bottom: 1px dotted var(--dotted); }
  .pgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 7px 10px 8px; background: var(--ivory); border: 1px dotted var(--dotted); border-radius: 12px; }
  .pgroup:first-child { flex-basis: 100%; }
  .presets .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex-basis: 100%; line-height: 1; margin-bottom: 2px; }
  button { font-family: var(--body); cursor: pointer; }
  .pbtn { border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; }
  .pbtn:hover { background: var(--ivory); }
  .pbtn.active { background: var(--ink); color: var(--paper); }
  .pbtn.gold { border-color: var(--deep-gold); color: var(--brown); }
  .pbtn.gold.active { background: var(--deep-gold); color: var(--paper); }
  .pbtn.small { padding: 5px 11px; font-size: 11.5px; }
  .pbtn:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
  .grid { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 26px; padding-top: 18px; }
  @media (max-width: 1100px) { .grid { grid-template-columns: 1fr; } }
  .grid > * { min-width: 0; }

  /* Controls */
  .gear { border-top: 1px dotted var(--dotted); padding-block: 14px 6px; }
  .gear:first-child { border-top: 0; padding-top: 0; }
  .gear h2 { font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; cursor: pointer; }
  .gear h2 .tag { font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); }
  .gear h2 .chev { font-family: var(--body); font-size: 11px; color: var(--muted); }
  .gear-body { display: grid; gap: 8px; padding-top: 10px; }
  .gear-body[hidden] { display: none; }
  .gear h2 .chev { margin-left: auto; transition: transform .15s ease; }
  .gear.collapsed h2 .chev { transform: rotate(-90deg); }
  .gear h2 .gsum { display: inline-flex; gap: 4px; font-family: var(--body); font-size: 10.5px; font-weight: 700; }
  .gear h2 .gsum b { border-radius: 999px; padding: 0 7px; line-height: 16px; white-space: nowrap; }
  .gear h2 .gsum b.pos { background: var(--ok-bg); color: var(--ok); } .gear h2 .gsum b.neg { background: var(--crimson-bg); color: var(--crimson); }
  .ctabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 4px 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
  .ctabs button { border: 0; background: var(--paper); padding: 8px 10px; font: 600 12.5px var(--body); color: var(--ink); cursor: pointer; }
  .ctabs button + button { border-left: 1.5px solid var(--ink); }
  .ctabs button b { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--ivory); font-size: 11px; }
  .ctabs button.on { background: var(--ink); color: var(--paper); }
  .ctabs button.on b { background: var(--mustard); color: var(--ink); }
  .cpane[hidden] { display: none; }
  .cpane-note { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
  .cpane-note a { color: var(--maroon); font-weight: 600; }
  .gearbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 11px; color: var(--muted); padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dotted var(--dotted); }
  .gearbar .lbl { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
  .gearbar .gb-btns { margin-left: auto; display: flex; gap: 4px; }
  .gearbar button { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 2px 9px; font-size: 10.5px; font-weight: 600; color: var(--ink); }
  .gearbar button:hover { background: var(--ivory); }
  #controls .ctl, #controls label.chk, #controls .row { position: relative; padding: 9px 10px 8px 13px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); box-shadow: inset 4px 0 0 #E4DFCB; margin: 0; }
  #controls label.chk { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
  #controls .ctl .hd { flex-wrap: nowrap; align-items: flex-start; }
  .imp-pos { box-shadow: inset 4px 0 0 var(--ok) !important; } .imp-neg { box-shadow: inset 4px 0 0 var(--crimson) !important; } .imp-zero { box-shadow: inset 4px 0 0 #CFC9B0 !important; }
  .impline { grid-column: 1 / -1; flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 5px; border-top: 1px dotted var(--dotted); font-size: 10.5px; color: var(--muted); font-weight: 500; }
  .impline .dot { width: 9px; height: 9px; border-radius: 50%; background: #CFC9B0; flex: none; }
  .impline b { font-weight: 700; color: var(--muted); }
  .impline.pos .dot { background: var(--ok); } .impline.pos b { color: var(--ok); }
  .impline.neg .dot { background: var(--crimson); } .impline.neg b { color: var(--crimson); }
  .impline.none { color: var(--muted); } .impline.none .dot { background: transparent; border: 1px solid var(--dotted); }
  .gearnote { font-size: 11px; color: var(--muted); line-height: 1.45; margin: 0; flex-basis: 100%; }
  .gearnote i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 2px; vertical-align: -1px; }
  .gearnote i.pos { background: var(--ok); } .gearnote i.neg { background: var(--crimson); } .gearnote i.zero { background: #CFC9B0; }

  .ctl .hd { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 12.5px; }
  .ctl .hd .v { font-weight: 700; color: var(--maroon); white-space: nowrap; }
  .ctl .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
  input[type=range] { width: 100%; accent-color: var(--crimson); margin: 6px 0 0; }
  select, input[type=number] { font-family: var(--body); font-size: 12.5px; border: 1px solid var(--rule); border-radius: 6px; background: var(--field); color: var(--ink); padding: 7px 9px; width: 100%; }
  input[type=number] { width: 72px; padding: 4px 6px; }
  .chk { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; cursor: pointer; }
  .chk input { margin-top: 3px; accent-color: var(--crimson); flex: none; }
  .chk b { font-weight: 700; }
  .chk .sub { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
  .row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 12px; }
  .row label { display: flex; align-items: center; gap: 6px; }
  .qstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .q { border: 1px dashed var(--mustard); border-radius: 6px; padding: 5px 3px; text-align: center; font-size: 10.5px; color: var(--muted); background: var(--paper); }
  .q.on { background: var(--pale-yellow); color: var(--ink); font-weight: 700; border-style: solid; }

  /* Results */
  .verdict { border: 1.5px dashed var(--crimson); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
  .verdict .head { background: var(--crimson); color: var(--paper); font-family: var(--display); font-size: 16px; padding: 9px 14px; }
  .verdict.ok { border-color: var(--deep-gold); }
  .verdict.ok .head { background: var(--deep-gold); }
  .verdict .body { padding: 10px 14px; font-size: 12.5px; }
  .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
  .kpi { border: 1px dashed var(--mustard); border-radius: 8px; padding: 10px 12px; background: var(--paper); }
  .kpi .l { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .kpi .n { font-family: var(--display); font-size: 24px; line-height: 1.1; margin-top: 4px; font-variant-numeric: lining-nums tabular-nums; }
  .kpi .n.crimson { color: var(--crimson); } .kpi .n.gold { color: var(--brown); }
  .kpi .s { font-size: 11px; color: var(--muted); margin-top: 3px; }
  .kpi .cmp { font-size: 11px; color: var(--maroon); margin-top: 2px; }
  .card { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; background: var(--paper); }
  .card h3 { font-size: 15px; margin-bottom: 4px; }
  .card .lead { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; max-width: 80ch; }
  table { width: 100%; border-collapse: collapse; font-size: 12px; }
  th { background: var(--table-yellow); color: var(--ink); text-align: left; padding: 7px 8px; font-weight: 700; border: 1px dashed var(--mustard); }
  td { padding: 7px 8px; border: 1px dashed var(--mustard); vertical-align: top; }
  td.hi { background: var(--pale-yellow); }
  .tscroll { overflow-x: auto; }
  .pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
  .pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--crimson-bg); color: var(--crimson); } .pill.na { background: var(--ivory); color: var(--muted); }
  .bars { display: grid; gap: 10px; }
  .bar .lab { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 3px; gap: 8px; }
  .bar .trk { height: 18px; background: var(--field); border-radius: 4px; overflow: hidden; }
  .bar .fill { height: 100%; border-radius: 4px; transition: width .25s ease; }
  .bar .fill.plea { background: var(--mustard); } .bar .fill.contest { background: var(--crimson); }
  .formula { background: var(--ivory); border-left: 4px solid var(--deep-gold); padding: 9px 12px; border-radius: 4px; font-size: 12px; margin-top: 10px; }
  .formula i { font-style: italic; }
  .note { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }
  .crim { color: var(--crimson); font-weight: 700; }
  svg { max-width: 100%; height: auto; display: block; }
  .legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; margin-top: 6px; }
  .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin-right: 4px; }
  .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
  .toast { font-size: 11.5px; color: var(--brown); }
  .steps { margin: 0; padding-left: 20px; font-size: 13px; display: grid; gap: 6px; max-width: 80ch; }
  .steps li::marker { color: var(--crimson); font-weight: 700; }
  .note-card h4 { font-family: var(--body); font-size: 12.5px; font-weight: 700; color: var(--maroon); margin: 14px 0 4px; letter-spacing: .02em; }
  .note-card p { max-width: 82ch; margin: 0 0 8px; }
  .note-card a { color: var(--crimson); text-decoration: none; font-weight: 600; }
  .note-card a:hover { text-decoration: underline; }
  .refs { border-top: 1px dotted var(--dotted); margin-top: 14px; padding-top: 10px; font-size: 11.5px; }
  .refs ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; }
  .refs a { color: var(--ink); font-weight: 400; }
  details.arith { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
  details.arith summary { cursor: pointer; color: var(--brown); font-weight: 600; }
  details.arith .step { padding: 2px 0 2px 10px; border-left: 2px solid var(--pale-yellow); margin-top: 3px; }
  .range { font-size: 11.5px; color: var(--muted); }
  .seg-head { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
  .tipable { border-bottom: 1px dotted var(--deep-gold); cursor: help; }
  .msym { text-decoration: none; color: inherit; } .msym sub { font-size: 72%; } a.msym:hover { color: var(--crimson); }
  th.tipable { border-bottom-style: dotted; }
  a.itemlink, a.rulelink { color: var(--maroon); text-decoration: none; font-weight: 600; }
  a.lawlink { color: var(--brown); text-decoration: none; font-weight: 600; border-bottom-style: dashed; }
  a.itemlink:hover, a.rulelink:hover, a.lawlink:hover { background: var(--pale-yellow); }
  .nav-group { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 8px 2px; }
  .shell.collapsed .nav-group { display: none; }
  .mathbox { background: var(--ivory); border: 1px solid var(--rule); border-left: 4px solid var(--deep-gold); border-radius: 6px; padding: 10px 14px; margin: 8px 0 12px; font-size: 13px; line-height: 1.7; overflow-x: auto; }
  .mathbox .eq { font-family: 'Cambria Math', 'STIX Two Math', Georgia, serif; font-size: 14px; }
  .mathbox .where { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
  .live { color: var(--brown); font-weight: 600; }
  .status-pill { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
  .st-existing { background: var(--ivory); color: var(--muted); } .st-extended { background: var(--pale-yellow); color: var(--brown); } .st-new { background: var(--sunflower); color: var(--ink); } .st-india { background: var(--ok-bg); color: var(--ok); }
  .pr0 { color: var(--crimson); font-weight: 700; }
  .tipable:focus-visible { outline: 2px solid var(--crimson); outline-offset: 1px; }
  .tipcard { position: absolute; z-index: 60; background: var(--ivory); border: 1px solid var(--mustard); border-left: 4px solid var(--crimson); border-radius: 8px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(17,17,17,.14); font-size: 12px; line-height: 1.45; color: var(--ink); pointer-events: none; }
  .tipcard .tt { font-family: var(--display); font-size: 13.5px; margin-bottom: 3px; }
  .tipcard .tf { margin-top: 5px; font-size: 11px; color: var(--maroon); }
  .tipcard .tl { margin-top: 5px; font-size: 11px; color: var(--brown); font-weight: 600; }
  svg [data-tiptext] { cursor: help; }
  .hint { font-size: 11px; color: var(--muted); margin-left: auto; }
  @media (prefers-reduced-motion: reduce) { .bar .fill { transition: none; } }
  footer { border-top: 6px solid var(--sunflower); margin-top: 28px; padding-block: 14px; font-size: 11px; color: var(--muted); display: flex; align-items: flex-start; gap: 18px; }
  footer .foot-lines { display: grid; gap: 4px; line-height: 1.45; }
  footer .foot-lines b { color: var(--ink); }
  footer .foot-credit { padding-top: 4px; border-top: 1px dotted var(--dotted); margin-top: 2px; }
  @media (max-width: 600px) { footer { flex-direction: column; gap: 10px; } }
