body { margin: 0; background: var(--color-bg); }
  .wrap { max-width: 1100px; margin: 0 auto; padding: clamp(22px,4vw,40px) min(44px,4vw) 80px; }
  .demobar { position: sticky; top: 0; z-index: 40; margin: 0 0 24px;
             border: 1px solid var(--color-divider); border-left: 3px solid var(--color-accent-500);
             border-radius: var(--radius-lg); background: var(--color-surface);
             padding: 11px 16px; display: flex; flex-wrap: wrap;
             gap: 6px 18px; align-items: center; }
  .demobar p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1 1 360px;
               color: var(--color-neutral-700); }
  .demobar b { color: var(--color-text); }
  .demobar a { flex: 0 0 auto; font-size: 13px; font-weight: 600; }
  .supportbar { position: sticky; top: 0; z-index: 40; margin: 0 0 var(--space-5);
                border: 1px solid var(--color-bad-700); border-radius: var(--radius-lg);
                background: var(--color-bad-100); color: #5e2417;
                padding: var(--space-3) var(--space-4); display: flex; flex-wrap: wrap;
                gap: 10px 18px; align-items: center; }
  .supportbar p { margin: 0; font-size: 14px; line-height: 1.55; flex: 1 1 320px; }
  .supportbar b { font-weight: 700; }
  .supportbar .btn { flex: 0 0 auto; }
  .apphead { display: flex; align-items: center; gap: 14px 22px;
             flex-wrap: wrap; margin: 0 0 var(--space-5); }
  .apphead > .brandlink { margin-right: auto; }
  .appnav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .appnav a { font-size: 14px; font-weight: 600; text-decoration: none;
              color: var(--color-neutral-600); padding: 4px 0; }
  .appnav a:hover, .appnav a:focus-visible { color: var(--color-text); }
  .appnav a[aria-current] { color: var(--color-accent-700); }
  .acct { position: relative; }
  .acct > .acctbtn { list-style: none; cursor: pointer; display: inline-flex;
                     align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px;
                     border: 1px solid var(--color-divider); border-radius: 99px;
                     font-size: 14px; font-weight: 600; background: var(--color-bg); }
  .acct > .acctbtn::-webkit-details-marker { display: none; }
  .acct > .acctbtn::marker { content: ""; font-size: 0; }
  .acct > .acctbtn::after, .acct[open] > .acctbtn::after { content: none; }
  .acct > .acctbtn:hover { border-color: var(--color-accent-600); }
  .acct > .acctbtn:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
  .acctcar { width: 0; height: 0; border-left: 4.5px solid transparent;
             border-right: 4.5px solid transparent; border-top: 5px solid var(--color-neutral-600); }
  .acct[open] .acctcar { transform: rotate(180deg); }
  .acctsheet { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
               min-width: 232px; padding: 12px 14px 8px;
               background: var(--color-bg); border: 1px solid var(--color-divider);
               border-radius: var(--radius-lg);
               box-shadow: 0 16px 32px -22px rgba(31,26,16,.6); }
  .acctmail { margin: 0; font-size: 13.5px; font-weight: 600; word-break: break-all; }
  .acctrole { margin: 2px 0 10px; font-size: 12.5px; color: var(--color-neutral-600);
              padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-divider); }
  .acctrow { display: block; padding: var(--space-2) 0; font-size: 14px; font-weight: 600;
             text-decoration: none; color: var(--color-neutral-700); }
  .acctrow:hover, .acctrow:focus-visible { color: var(--color-text); }
  .acctout { color: var(--color-bad-700); border-top: 1px solid var(--color-divider);
             margin-top: 4px; }
  .acctlang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
              padding: var(--space-2) 0; font-size: 13px; color: var(--color-neutral-600); }
  .acctlang button { font: inherit; font-weight: 600; font-size: 13px; padding: 3px 10px;
                     border: 1px solid var(--color-divider); border-radius: 999px;
                     background: transparent; color: var(--color-neutral-700); cursor: pointer; }
  .acctlang button[aria-pressed="true"] { background: var(--color-accent-100);
                     border-color: var(--color-accent-400); color: var(--color-text); }
  @media (max-width: 560px) {
    .appnav { order: 3; width: 100%; gap: 16px; }
    .acctsheet { right: auto; left: 0; }
  }
  .brandlink { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
  .backhome { font-size: 13.5px; font-weight: 600; text-decoration: none;
              color: var(--color-neutral-600); display: inline-flex; align-items: center; gap: 6px; }
  .backhome:hover, .backhome:focus-visible { color: var(--color-text); text-decoration: underline; }
  .brandlink img.icon { height: 32px; width: 32px; display: block; }
  .brandlink img.mark { height: 27px; width: auto; display: block; }
  h1 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 var(--space-2); }
  h2 { font-size: var(--text-card); margin: 0 0 12px; letter-spacing: -.01em; }
  .lede { color: var(--color-neutral-600); line-height: 1.6; margin: 0 0 var(--space-5); max-width: 34em; }
  .measure { max-width: 34em; }
  .card { background: var(--color-card); border: 1px solid var(--color-divider);
          border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
          padding: var(--space-4); margin: 0 0 16px; }
  .grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
  .stat { background: var(--color-accent-100); border: 1px solid var(--color-divider);
          border-radius: var(--radius-md); padding: 16px 18px; }
  .stat .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
  .stat .l { font-size: 13px; color: var(--color-neutral-600); margin-top: 2px; }
  .kicker { font-family: var(--font-heading); font-size: var(--text-micro); font-weight: var(--font-heading-weight);
            letter-spacing: .14em; text-transform: uppercase;
            color: var(--color-accent-700); margin: 0 0 10px; }
  .muted { color: var(--color-neutral-600); }
  .empty { color: var(--color-neutral-600); padding: 8px 0 2px; line-height: 1.6; }
  .earlier { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 7px 0;
             border-bottom: 1px solid var(--color-divider); }
  .earlier:last-child { border-bottom: 0; padding-bottom: 0; }
  .cardfoot { margin: auto 0 0; padding-top: 14px; }
  .btn.small { min-height: 34px; padding: 6px 14px; font-size: var(--text-small); }
  .sk { position: relative; overflow: hidden; }
  .sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    animation: sk-sweep 1.4s ease-in-out infinite; }
  @keyframes sk-sweep { to { transform: translateX(100%); } }
  .sk-fill { background: var(--color-neutral-200); border-radius: 8px; }
  .sk-line { height: 13px; }
  .sk-line + .sk-line { margin-top: 9px; }
  @media (prefers-reduced-motion: reduce) { .sk::after { animation: none; background: none; } }
  #vskel { display: none; }
  html.known-in #vskel, html.demo #vskel { display: block; }
  html.known-in #vwait, html.demo #vwait { display: none; }
  #vskel .sk-h1 { height: calc(var(--text-h1) * 1.1); max-width: 340px; margin: 0 0 var(--space-3); }
  #vskel .sk-lede { height: 15px; max-width: 520px; margin: 0 0 var(--space-5); }
  #vskel .sk-n { height: 33px; width: 60%; max-width: 118px; }
  #vskel .sk-l { height: 15px; width: 82%; max-width: 152px; margin-top: 5px; }
  #vskel .sk-h2 { height: 17px; max-width: 220px; margin: 0 0 16px; }
  #vskel .sk-wide { max-width: none; }
  .field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 var(--space-3); }
  .field.grow { flex: 1 1 170px; }
  .field label { font-size: 13px; font-weight: 600; }
  .field input, .field select, .field textarea {
    font-family: var(--font-body); font-size: 15px; color: var(--color-text);
    background: var(--color-card); border: 1px solid var(--color-neutral-500);
    border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); width: 100%; }
  .field input::placeholder, .field textarea::placeholder { color: var(--color-neutral-500); }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-neutral-500); }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--color-accent-700); outline-offset: 0; border-color: var(--color-accent-700); }
  .row { display: flex; flex-wrap: wrap; gap: 14px; }
  .seglabel { font-size: 13px; font-weight: 600; }
  .codeseg { display: flex; align-items: center; gap: 8px; margin: var(--space-1) 0 0; }
  .codeseg .codebox { font: inherit; font-size: 19px; font-weight: 600; letter-spacing: .14em;
                  text-align: center; text-transform: uppercase; padding: 11px 4px;
                  border-radius: var(--radius-sm); flex: 0 0 auto; min-width: 0; width: auto;
                  border: 1px solid var(--color-neutral-300); background: var(--color-card); color: inherit; }
  .codeseg .codebox::placeholder { font-weight: 400; color: var(--color-neutral-500); }
  .codeseg .codebox[maxlength="3"] { width: 78px; }
  .codeseg .codebox[maxlength="2"] { width: 62px; }
  .codeseg .codebox[maxlength="4"] { width: 96px; }
  .codeseg .dash { color: var(--color-neutral-500); font-weight: 600; }
  .codeseg .tick { width: 24px; height: 24px; border-radius: 50%; display: none; flex: 0 0 auto;
                   align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
                   background: var(--color-accent-400); color: var(--color-accent-900); }
  .codeseg.ok .codebox { border-color: var(--color-accent-600); }
  .codeseg.ok .tick { display: flex; }
  .seghint { font-size: 13px; line-height: 1.55; color: var(--color-neutral-600);
             margin: var(--space-2) 0 0; max-width: 44ch; }
  @media (max-width: 380px) {
    .codeseg { gap: 5px; }
    .codeseg .codebox { font-size: 17px; letter-spacing: .1em; }
    .codeseg .codebox[maxlength="3"] { width: 66px; }
    .codeseg .codebox[maxlength="2"] { width: 52px; }
    .codeseg .codebox[maxlength="4"] { width: 82px; }
  }
  .msg.found { color: var(--color-accent-800); font-weight: 600; }
  .classpick { display: flex; flex-direction: column; gap: 9px; }
  .cprow { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; }
  .cprow .cpg { font-size: 13px; font-weight: 600; flex: 0 0 66px; }
  .chip.sec { min-width: 44px; padding-inline: 12px; }
  .code { font-family: ui-monospace, Menlo, monospace; font-size: 19px; font-weight: 700; letter-spacing: .08em;
          background: var(--color-accent-200); color: var(--color-accent-900);
          padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); display: inline-block; }
  .tablewrap { overflow-x: auto; }
  table caption { caption-side: top; text-align: left; font-size: 12.5px; line-height: 1.6;
                  color: var(--color-neutral-600); margin: 0 0 var(--space-2); max-width: 34em; }
  table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
  th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--color-divider); }
  th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-600); font-weight: 700; }
  tbody tr:last-child td { border-bottom: 0; }
  .tag { align-self: center; white-space: nowrap; }
  .msg { font-size: 14px; margin: 12px 0 0; line-height: 1.5; }
  .msg:empty { display: none; }
  .msg.bad { color: var(--color-bad-700); font-weight: 600; }
  .msg.good { color: var(--color-ok-700); font-weight: 600; }
  .who { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
         font-size: 13px; color: var(--color-neutral-600); margin: 0 0 24px; }
  .who a { font-weight: 600; }
  .copyrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .linkbox { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; padding: var(--space-2) var(--space-2);
             border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); background: var(--color-card);
             flex: 1 1 260px; overflow-x: auto; white-space: nowrap; }
  .linkcode { font-family: var(--font-heading); font-weight: 700; font-size: 13.5px;
              font-variant-numeric: tabular-nums; letter-spacing: .04em;
              color: var(--color-accent-800); }
  .doubt { border-top: 1px solid var(--color-divider); padding: 14px 0 4px; }
  .doubt:first-of-type { border-top: 0; padding-top: 0; }
  .onfilm { margin: 0 0 var(--space-1); font-size: 13.5px; line-height: 1.5; }
  .onfilm a { font-weight: 600; }
  .onfilm .muted { display: block; font-size: 12px; }
  .doubt textarea { font: inherit; font-size: 14px; line-height: 1.55; width: 100%;
    max-width: 34em;
    color: var(--color-text); background: var(--color-card); border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); resize: vertical; min-height: 68px; }
  .heat { display: grid; gap: 3px; font-size: 11px; grid-auto-rows: 26px;
          justify-content: start; }
  .heat .hh { text-align: center; color: var(--color-neutral-600); font-variant-numeric: tabular-nums;
              align-self: end; }
  .heat .hrow { align-self: center; color: var(--color-neutral-600); font-variant-numeric: tabular-nums;
              font-weight: 600; padding-right: 4px; }
  .heat i, .heatkey i { display: block; border-radius: 3px; height: 100%; }
  .heat i { display: grid; place-items: center; }
  .heat i b { font-size: 9.5px; font-weight: 700; font-variant-numeric: tabular-nums;
              line-height: 1; letter-spacing: -.02em; color: var(--color-accent-900); }
  .heat .hb0 b { color: var(--color-neutral-400); }
  .heatkey i b { display: none; }
  .heat .hgap { display: block; }
  .heat .bookband { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
                    color: var(--color-neutral-600); align-self: start; padding: 7px 2px 0;
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .heatkey i { width: 12px; height: 12px; }
  .hb0 { border: 1px dashed var(--color-divider); }
  .hb1 { background: var(--color-accent-200); }
  .hb2 { background: var(--color-accent-300); }
  .hb3 { background: var(--color-accent-400); }
  .hb4 { background: var(--color-accent-600); }
  .heatkey { display: flex; gap: 14px; margin-top: var(--space-3); font-size: 11.5px; flex-wrap: wrap;
             color: var(--color-neutral-600); }
  .heatkey span { display: inline-flex; gap: 5px; align-items: center; }
  .kpis { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 var(--space-5);
          border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
          background: var(--color-accent-100); overflow: hidden; }
  .kpis > div { flex: 1 1 148px; padding: 17px 18px;
                border-right: 1px solid var(--color-divider); }
  .kpis > div:last-child { border-right: 0; }
  .kpis b { display: block; font-size: 34px; font-weight: 700; line-height: 1.12;
            letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
  .kpis span { font-size: 12.5px; color: var(--color-neutral-600); line-height: 1.4;
               display: block; margin-top: 1px; }
  .kpis b .dlt { font-style: normal; font-size: 13px; font-weight: 700; margin-left: 7px;
                 letter-spacing: 0; vertical-align: 3px; color: var(--color-neutral-500); }
  .kpis b .dlt.up   { color: #2f6b3e; }
  .kpis b .dlt.down { color: #8d3b28; }
  .needs { background: var(--color-accent-100); }
  .needsrow { display: grid; gap: 14px; margin: 0 0 var(--space-4);
              grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
  .need { background: var(--color-accent-100); margin: 0; display: flex;
          flex-direction: column; gap: 7px; }
  .need.clear { background: var(--color-ok-100); }
  .need .needn { font-family: var(--font-heading); font-weight: 700; font-size: 30px;
                 line-height: 1; margin: 0; font-variant-numeric: tabular-nums;
                 color: var(--color-bad-700); }
  .need.clear .needn { color: var(--color-ok-700); }
  .need h2 { font-size: 14px; margin: 0; line-height: 1.3; }
  .need .needwhy { font-size: 12.5px; line-height: 1.5; margin: 0;
                   color: var(--color-neutral-600); }
  .need .needok { font-size: 13px; margin: 0; color: var(--color-ok-700); }
  .needtop { display: flex; align-items: center; justify-content: space-between;
             gap: 10px; flex-wrap: wrap; }
  .needpage { display: flex; align-items: center; gap: 6px; margin: 0;
              font-size: 11.5px; color: var(--color-neutral-600);
              font-variant-numeric: tabular-nums; }
  .pgb { font: inherit; font-size: 12px; line-height: 1; width: 23px; height: 23px;
         padding: 0; flex: none; border: 1px solid var(--color-divider); border-radius: 50%;
         background: var(--color-bg); color: var(--color-neutral-600); cursor: pointer; }
  .pgb:hover:not(:disabled) { color: var(--color-text); border-color: var(--color-accent-600); }
  .pgb:disabled { opacity: .35; cursor: default; }
  .whos { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }
  .whos li { border-top: 1px solid var(--color-divider); padding: 5px 0;
             line-height: 1.45; }
  .whos a { font-weight: 600; }
  .whos b { font-variant-numeric: tabular-nums; }
  .whos i { font-style: normal; font-weight: 700;
            font-variant-numeric: tabular-nums; color: var(--color-accent-800); }
  .whos .muted { font-size: 11.5px; }
  .whos li.more { color: var(--color-neutral-600); }
  .twocol { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
            align-items: start; }
  .maincol, .railcol { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  @media (max-width: 900px) { .twocol { grid-template-columns: 1fr; } }
  .who2 { display: flex; gap: 14px; align-items: center; }
  .avatar { width: 46px; height: 46px; border-radius: 50%; flex: none;
            border: 1px solid var(--color-accent-600); display: grid; place-items: center;
            font-family: var(--font-heading); font-weight: 700; font-size: 20px;
            color: var(--color-accent-800); }
  .find { font: inherit; font-size: 14px; padding: var(--space-2) var(--space-3); width: 100%;
          border: 1px solid var(--color-divider); border-radius: var(--radius-md);
          background: var(--color-bg); color: var(--color-text); }
  .find:focus { outline: 2px solid var(--color-accent-700); outline-offset: 1px; }
  .yearbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 var(--space-4); }
  .prevyear { font-size: 13.5px; margin: 0 0 var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
              background: var(--color-accent-100); border: 1px solid var(--color-accent-300); }
  .ylab { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
          color: var(--color-neutral-600); }
  .cltab th, .cltab td { white-space: nowrap; }
  .cltab th:nth-child(1) { width: 9%; }
  .cltab th:nth-child(2) { width: 13%; }
  .cltab th:nth-child(3) { width: 11%; }
  .cltab th:nth-child(4) { width: 24%; }
  .cltab th:nth-child(5) { width: 16%; }
  .cltab th.wide { width: 27%; }
  tr.offpage { display: none; }
  tr.filtered { display: none; }
  .chtab th { white-space: nowrap; }
  .chtab th.c, .chtab td.c { width: 84px; }
  .chtab th.pad, .chtab td.pad { width: 118px; }
  .chtab th:last-child, .chtab td:last-child { width: 112px; }
  .chtab td.two b { font-size: 13.5px; }
  .chtab tr.untouched td { color: var(--color-neutral-600); }
  .chtab tr.untouched .two b { font-weight: 500; }
  .chtab tr.foldopen td { border-bottom-color: transparent; }
  .chtab tr.foldopen .two b { font-weight: 700; color: var(--color-text); }
  .chtab tr.foldrow .two b { padding-left: var(--space-3); }
  .paperfacts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
                margin: 0 0 var(--space-3); align-items: baseline; }
  .paperfacts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
                   text-transform: uppercase; color: var(--color-neutral-600);
                   white-space: nowrap; }
  .paperfacts dd { margin: 0; font-size: 13.5px; line-height: 1.55; }
  .paperlink { margin: 0 0 16px; font-size: 13px; }
  .starthelp { margin: 8px 0 0; font-size: 12.5px; color: var(--color-neutral-600);
               font-variant-numeric: tabular-nums; }
  @media (max-width: 480px) {
    .paperfacts { grid-template-columns: 1fr; gap: 2px; }
    .paperfacts dd { margin: 0 0 8px; }
  }
  .revise, .asked, .rated { margin: 0; padding: 0; list-style: none; font-size: 13px; }
  .revise li, .asked li, .rated li { padding: 7px 0; line-height: 1.45;
                                     border-bottom: 1px solid var(--color-divider); }
  .revise li:last-child, .asked li:last-child, .rated li:last-child { border-bottom: 0; }
  .revise a { font-weight: 600; display: block; }
  .revise .muted, .asked .muted, .rated .muted { font-size: 11.5px; display: block; }
  .asked .q { display: block; }
  .asked .waiting { color: #8d3b28; }
  .rated .muted { display: inline; }
  .ok { margin: 0; font-size: 13px; color: #2f6b3e; }
  .chartwrap { margin: 0; }
  .chart { width: 100%; height: auto; display: block; overflow: visible; }
  .chart rect[data-bar] { fill: var(--color-accent-300); transition: fill .1s; }
  .chart rect[data-bar].on { fill: var(--color-accent-500); }
  .chart .line { fill: none; stroke: #2f6b3e; stroke-width: 1.8; stroke-linejoin: round; }
  .chart circle[data-dot] { fill: var(--color-bg); stroke: #2f6b3e; stroke-width: 1.6; }
  .chart circle[data-dot].on { r: 4; stroke-width: 2.4; }
  .chart .rule { stroke: var(--color-neutral-400); stroke-width: 1; stroke-dasharray: 3 3; }
  .chart .guide { stroke: var(--color-accent-600); stroke-width: 1; stroke-dasharray: 2 3; }
  .chart .tick { font-size: 9px; fill: var(--color-neutral-600); }
  .chart rect.hit { fill: transparent; cursor: default; }
  .chartread { margin: 0 0 var(--space-1); font-size: 12.5px; color: var(--color-neutral-600);
               font-variant-numeric: tabular-nums; min-height: 1.2em; }
  .chartread b { color: var(--color-text); font-weight: 700; }
  .chartkey { display: flex; gap: 16px; flex-wrap: wrap; margin: var(--space-2) 0 0;
              font-size: 11.5px; color: var(--color-neutral-600); }
  .chartkey span { display: inline-flex; align-items: center; gap: 6px; }
  .ck { display: block; width: 14px; height: 10px; border-radius: 2px; }
  .ck.bars { background: var(--color-accent-300); }
  .chart .ax { font-size: 9px; fill: var(--color-neutral-500); font-variant-numeric: tabular-nums; }
  .chartdata { margin: var(--space-2) 0 0; font-size: 13px; }
  .chartdata summary { color: var(--color-accent-700); font-weight: 600; }
  .chartdata .chartable { margin: 12px 0 0; }
  .chartdata caption { text-align: left; font-size: 12.5px; color: var(--color-neutral-600);
                       margin: 0 0 8px; }
  .chartdata .num { text-align: right; font-variant-numeric: tabular-nums; }
  .ck.line { height: 0; border-top: 2px solid var(--color-ok-700); border-radius: 0; }
  .ck.rule { height: 0; border-top: 2px dashed var(--color-neutral-400); border-radius: 0; }
  .kpis .todo b { color: var(--color-bad-700); }
  .kpis .todo.clear b { color: var(--color-ok-700); }
  @media (max-width: 560px) {
    .kpis > div { border-bottom: 1px solid var(--color-divider); }
    .kpis > div[data-kpi="classes"] { display: none; }
  }
  .kpikey { font-size: 12.5px; line-height: 1.6; color: var(--color-neutral-600);
            margin: var(--space-2) 0 var(--space-5); max-width: 34em; }
  .pagehead { display: flex; flex-wrap: wrap; gap: 12px 18px;
              align-items: baseline; justify-content: space-between; margin: 0 0 var(--space-4); }
  .pagehead h1 { margin: 0 0 4px; }
  .toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end;
             margin: 0 0 var(--space-3); }
  .toolbar .field { margin: 0; }
  .toolbar .field.wide { flex: 1 1 240px; }
  .toolbar .field.narrow { flex: 0 0 auto; min-width: 132px; }
  .toolbar .field label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
                          text-transform: uppercase; color: var(--color-neutral-600); }
  .foundn { font-size: 13px; color: var(--color-neutral-600);
            font-variant-numeric: tabular-nums; margin-left: auto; padding-bottom: var(--space-2); }
  .stsum { font-size: 13px; color: var(--color-neutral-600); margin: 3px 0 0;
           font-variant-numeric: tabular-nums; }
  .stsum:empty { display: none; }
  .clscol { display: none; }
  #students.allclasses .clscol { display: table-cell; }
  #students.allclasses td.clscol { font-variant-numeric: tabular-nums;
                                   white-space: nowrap; color: var(--color-neutral-700); }
  .cov { display: flex; flex-direction: column; gap: 5px; min-width: 132px; }
  .cov .covn { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cov .covn i { font-style: normal; color: var(--color-neutral-500); }
  .cov .track { display: block; height: 6px; border-radius: 99px; position: relative;
                background: var(--color-neutral-200); overflow: hidden; }
  .cov .track span { display: block; height: 6px; border-radius: 99px;
                     background: var(--color-accent-600); }
  .cov .track::after { content: ""; position: absolute; inset: 0; border-radius: 99px;
                       pointer-events: none;
                       background: repeating-linear-gradient(to right,
                         transparent 0 calc(25% - 1px),
                         var(--color-neutral-400) calc(25% - 1px) 25%); }
  .dn { display: inline-flex; align-items: center; gap: 8px; }
  .dn b { font-weight: 600; font-variant-numeric: tabular-nums; }
  .dn svg { flex: none; }
  th.sortable { cursor: pointer; white-space: nowrap; user-select: none; }
  th.sortable:hover { color: var(--color-text); }
  th.sortable .ar { color: var(--color-accent-700); font-size: 11px; }
  td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
  td.c, th.c { text-align: center; font-variant-numeric: tabular-nums; }
  td.pad, th.pad { padding-left: 24px; }
  td.two { line-height: 1.35; }
  td.two b { display: block; font-weight: 600; font-size: 14.5px; }
  td.two span { display: block; font-size: 12px; color: var(--color-neutral-600); }
  .elsewhere { font-size: 13px; color: var(--color-neutral-600); margin: 0 0 12px;
               display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .elsewhere:empty { display: none; }
  .elsewhere i { font-style: normal; color: var(--color-neutral-500);
                 font-variant-numeric: tabular-nums; }
  .pager { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
           margin: var(--space-3) 0 0; }
  .pager .pagen { font-size: 13px; color: var(--color-neutral-600);
                  font-variant-numeric: tabular-nums; }
  dialog.sheet { border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
                 background: var(--color-surface); color: inherit; padding: 0;
                 width: min(640px, calc(100vw - 32px)); max-height: 88vh; overflow: auto;
                 margin: auto; }
  dialog.sheet::backdrop { background: rgba(32,26,16,.42); }
  dialog.sheet .sheetin { padding: 22px 24px 24px; }
  dialog.sheet h2 { margin: 0 0 4px; font-size: 19px; }
  .sharefoot { display: flex; justify-content: flex-end; gap: 10px; margin: var(--space-4) 0 0; }
  dialog.sheet.ask { width: min(460px, calc(100vw - 32px)); }
  .askbody { font-size: 14px; line-height: 1.6; color: var(--color-neutral-600); }
  .askbody p { margin: 8px 0 0; }
  .askbody ul { margin: 12px 0 0; padding-left: var(--space-4);
                display: flex; flex-direction: column; gap: 6px; }
  .askbody b { color: var(--color-text); font-weight: 600; }
  td.acts { white-space: nowrap; min-width: 190px; }
  td.acts .btn.wide { width: 100%; }
  .rowmenu { display: inline-block; vertical-align: middle; margin-left: 4px; }
  .rowmenu > summary { list-style: none; cursor: pointer; display: inline-block;
                       padding: 3px 9px 6px; line-height: 1; border-radius: 8px;
                       font-size: 17px; letter-spacing: .06em;
                       color: var(--color-neutral-600); }
  .rowmenu > summary::-webkit-details-marker { display: none; }
  .rowmenu > summary::after, .rowmenu[open] > summary::after { content: none; }
  .rowmenu > summary:hover { background: var(--color-neutral-100); color: var(--color-text); }
  .rowmenu > summary:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
  .rowmenu-item { display: block; margin: var(--space-1) 0 0; padding: 0; border: 0; background: none;
                  font: inherit; font-size: 13px; cursor: pointer; text-align: left;
                  color: var(--color-bad-700); text-decoration: underline;
                  text-underline-offset: 3px; }
  .rowmenu-item:hover { text-decoration-thickness: 2px; }
  .copyrow .btn { flex: 0 0 auto; }
  .copywhat { font-size: 12.5px; font-weight: 600; margin: var(--space-4) 0 var(--space-1); }
  .copywhat span { font-weight: 400; color: var(--color-neutral-600); }
  .flash { font-size: 12.5px; font-weight: 600; color: #2f6b3e; }
  .flash.bad { color: #8d3b28; font-weight: 600; }
  .drafts { border-top: 1px solid var(--color-divider); margin: var(--space-4) 0 0; padding: var(--space-3) 0 0; }
  .drafts > summary { font-weight: 600; font-size: 14px; }
  .drafts > summary:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 3px;
                                    border-radius: 6px; }
  .msgbox { width: 100%; font: inherit; font-size: 13px; line-height: 1.55;
            padding: 11px 12px; border-radius: 10px; resize: vertical;
            min-height: 132px; border: 1px solid var(--color-divider);
            background: var(--color-bg); color: inherit; }
  .msgacts { display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
             margin: var(--space-2) 0 0; }
  .rolegrid .card > p:last-child { margin: auto 0 0; padding-top: var(--space-3); }
  .rolewarn { border: 1.5px solid var(--color-accent-500); background: var(--color-accent-100);
              border-radius: var(--radius-md); padding: 12px 16px; margin: 0 0 var(--space-4);
              font-size: 14px; line-height: 1.6; max-width: 34em; }
  .rolewarn strong { font-weight: 700; }
  .rolesline { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex;
               flex-direction: column; gap: 8px; max-width: 34em; }
  .rolesline li { position: relative; padding-left: var(--space-4); font-size: 14px; line-height: 1.6;
                  color: var(--color-neutral-600); }
  .rolesline li::before { content: "\2014"; position: absolute; left: 0; top: 0;
                          color: var(--color-accent-700); }
  .rolesline b { font-weight: 600; color: var(--color-text); }
  .demowell { margin: 34px 0 0; padding: 18px 20px 16px; border: 1px dashed var(--color-neutral-400);
              border-radius: var(--radius-md); background: var(--color-surface); }
  .demohead { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
              margin: 0 0 var(--space-3); font-family: var(--font-heading); font-weight: 700;
              font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
              color: var(--color-neutral-500); }
  .demogrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .demo-as { display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
             font: inherit; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
             border: 1px solid var(--color-neutral-300); background: var(--color-card);
             color: inherit; }
  .demo-as:hover { border-color: var(--color-accent-500); }
  .demo-as[disabled] { opacity: .55; cursor: default; }
  .demo-as b { font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; }
  .demo-as span { font-size: 12.5px; color: var(--color-neutral-500); }
  .demonote { font-size: 12px; line-height: 1.6; color: var(--color-neutral-500);
              margin: var(--space-3) 0 0; max-width: 34em; }
  .dash .strip { display: grid; gap: 16px; margin: 0 0 16px;
           grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .dash .strip .card { margin: 0; display: flex; flex-direction: column; }
  .dash .railttl { font-size: 16px; line-height: 1.3; margin: 0 0 4px; letter-spacing: -.01em; }
  .dash .stat .of { font-size: 15px; font-weight: 600; color: var(--color-neutral-600);
              letter-spacing: 0; }
  .dash h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.01em; }
  .dash .boardhead { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
               justify-content: space-between; margin: 0 0 6px; }
  .dash .chlines { display: grid; }
  .dash .bookhead { margin: 16px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
              text-transform: uppercase; color: var(--color-accent-700);
              display: block; padding: 0; border: 0; }
  .dash .chlines > .bookhead:first-child { margin-top: 4px; }
  .dash .chline { display: grid; grid-template-columns: 26px minmax(0,1fr) auto auto;
            gap: 12px; align-items: center; padding: 10px 6px; margin: 0 -6px;
            border-bottom: 1px solid var(--color-divider);
            color: inherit; text-decoration: none; border-radius: 8px;
            font-size: inherit; font-weight: 400; line-height: inherit; }
  .dash .chline:last-child { border-bottom: 0; }
  .dash .chline:hover { background: var(--color-accent-100); color: inherit; }
  .dash .chnum { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--color-neutral-600);
           font-weight: 700; }
  .dash .chttl { font-size: 14.5px; line-height: 1.4; min-width: 0; }
  .dash .chcount { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--color-neutral-600);
             min-width: 38px; text-align: right; grid-column: -2; }
  .dash .chweak { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
             color: var(--color-accent-800); white-space: nowrap; }
  .dash .sq { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; max-width: 168px; }
  .dash .sq i, .dash .legend i { display: block; width: 11px; height: 11px; border-radius: 2.5px; flex: none; }
  @media (max-width: 560px) {
    .dash .chline { grid-template-columns: 26px minmax(0,1fr) auto; gap: 4px 10px; align-items: start; }
    .dash .chttl { grid-column: 2 / -1; }
    .dash .sq { grid-column: 2; justify-content: flex-start; max-width: none; margin-top: 2px; }
    .dash .chcount { grid-column: 3; align-self: end; }
    .dash .chline > .muted { grid-column: 2; margin-top: 2px; }
  }
  .dash .s-pass { background: var(--color-accent-300); box-shadow: inset 0 0 0 1px var(--color-accent-500); }
  .dash .s-part { background: var(--color-accent-100); box-shadow: inset 0 0 0 1px var(--color-accent-400); }
  .dash .s-weak { background: var(--color-accent-100); box-shadow: inset 0 0 0 1.5px var(--color-accent-700);
             background-image: linear-gradient(135deg, transparent 42%, var(--color-accent-700) 42%,
                               var(--color-accent-700) 58%, transparent 58%); }
  .dash .s-none { background: transparent; box-shadow: inset 0 0 0 1px var(--color-divider); }
  .dash .board-teacher .s-pass { background: var(--color-accent-2-300);
             box-shadow: inset 0 0 0 1px var(--color-accent-2-500); }
  @media (hover: none), (max-width: 560px) {
    .dash .sq i, .dash .legend i { width: 14px; height: 14px; }
    .dash .sq { max-width: 210px; }
    .dash .legend { order: -1; margin: 0 0 14px; }
    .dash .board { display: flex; flex-direction: column; }
    .dash .board .boardhead { order: -2; }
  }
  .dash .legend.legendhold, .dash .sqhold, .dash .chcounthold { display: none; }
  html.known-in .dash .legend.legendhold { display: flex; }
  html.known-in .dash .sqhold { display: flex; }
  html.known-in .dash .chcounthold { display: block; }
  html.known-in .dash .sqcount { display: none; }
  html.marks-settled .dash .sqhold,
  html.marks-settled .dash .chcounthold,
  html.marks-settled .dash .legend.legendhold { display: none; }
  html.marks-settled .dash .sqcount { display: inline; }
  .dash .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; font-size: 11.5px;
            color: var(--color-neutral-600); }
  .dash .legend span { display: inline-flex; gap: 6px; align-items: center; }
  .dash .revise { display: grid; gap: 2px; margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
  .dash .revise:last-of-type { margin-bottom: 0; }
  .dash .revise span { font-size: 12.5px; }
  .dash .qa { border-top: 1px solid var(--color-divider); padding: 16px 0 2px; }
  .dash .qa:first-of-type { border-top: 0; padding-top: 0; }
  .dash .qahead { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin: 0 0 6px;
             font-size: 12.5px; }
  .dash .qan { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-accent-700);
             letter-spacing: .04em; }
  .dash .qatext { margin: 0; line-height: 1.6; font-size: 15px; max-width: 34em; }
  .dash .qatext.ans { border-left: 3px solid var(--color-accent-400); padding-left: 13px;
             margin-top: 6px; font-size: 14.5px; }
  .dash .qaby { margin: 12px 0 0; font-size: 13px; }
  .dash .qawait { margin: 6px 0 0; font-size: 13px; font-style: italic; }
  .dash .qapager { display: flex; gap: 12px; align-items: center; justify-content: space-between;
             margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--color-divider);
             font-size: 12.5px; }
  .dash .tests { overflow-x: auto; }
  .dash .tests table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
  .dash .tests th, .dash .tests td { text-align: left; padding: 10px 22px 10px 0;
             border: 0; border-bottom: 1px solid var(--color-divider); vertical-align: middle; }
  .dash .tests th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
             color: var(--color-neutral-600); font-weight: 700; white-space: nowrap; }
  .dash .tests tbody tr:last-child td { border-bottom: 0; }
  .dash .tests .act { width: 100%; text-align: right; white-space: nowrap; padding-right: 0; }
  .dash .tests .when { white-space: nowrap; }
  .dash .tests .chaps { min-width: 7em; }
  .dash .tests .num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
  .dash .sq i { position: relative; transition: width .12s ease, height .12s ease, margin .12s ease; }
  @media (hover: hover) {
    .dash .sq i:hover { width: 15px; height: 15px; margin: -2px; z-index: 3; }
    .dash .sq i::after {
      content: attr(aria-label); position: absolute; bottom: calc(100% + 8px); left: 50%;
      transform: translateX(-50%); width: max-content; max-width: 210px;
      background: var(--color-neutral-900); color: var(--color-card);
      font-size: 11.5px; line-height: 1.45; font-weight: 500; letter-spacing: 0;
      text-transform: none; font-style: normal; text-align: center;
      padding: 6px 9px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
      display: none; pointer-events: none; z-index: 5; }
    .dash .sq i:hover::after { display: block; }
  }
  @media (prefers-reduced-motion: reduce) { .dash .sq i { transition: none; } }
  .csect { margin: -2px 0 12px; padding: 12px 14px; border-radius: 12px;
           background: var(--color-bg); border: 1px solid var(--color-divider); }
  .csect label { display: block; font-size: 13px; line-height: 1.5; margin: 0 0 8px;
                 color: var(--color-neutral-600); max-width: 28em; }
  .csect select { font: inherit; font-size: 15px; padding: 8px 11px; border-radius: 9px;
                  border: 1px solid var(--color-divider);
                  background: var(--color-surface); color: inherit; }
  .field select, .csect select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23615747' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 38px;
  }
  .crow .clink { font-family: var(--font-heading); font-weight: 600; font-size: 13.5px;
                 color: var(--color-accent-800); text-decoration: none;
                 display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .crow .clink:hover { text-decoration: underline; }
  .crow .btn-ghost { color: var(--color-neutral-500); font-weight: 500; }
  .crow .btn-ghost:hover { color: var(--color-text); background: var(--color-neutral-100); }
  .clist > .crow { border-bottom: 1px solid var(--color-divider); }
  .clist > .crow:last-of-type { border-bottom: 0; }
  .clist > .crow:has(+ .csect:not([hidden])) { border-bottom: 0; }
  .clist > .csect:not([hidden]) + .crow { border-top: 1px solid var(--color-divider); }
  .crow { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: var(--space-2) 0;
          font-size: 14.5px; }
  .crow .cname { display: inline-flex; align-items: center; gap: 9px; flex: 1 1 200px; }
  .crow .cfig { font-size: 13px; font-variant-numeric: tabular-nums; }
  .addgrade { margin: 16px 0 0; padding-top: 15px; border-top: 1px solid var(--color-divider); }
  .gpick { margin: 12px 0 0; padding: 14px 16px; border-radius: 12px;
           background: var(--color-surface); border: 1px solid var(--color-divider); }
  .gpick p { margin: 0 0 var(--space-2); font-size: 13px; line-height: 1.5; color: var(--color-neutral-600); }
  .gpick .opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
  .gpick .opts .field { margin: 0; min-width: 160px; }
  .signpost { text-align: center; padding: 40px 0 20px; max-width: 620px; margin: 0 auto;
              position: relative; z-index: 5; }
  .signpost .lede { margin-left: auto; margin-right: auto; }
  .signpost .row { justify-content: center; }
.marginalia{position:fixed;inset:0;pointer-events:none;z-index:4;overflow:hidden}
.mg{position:absolute;color:#eadeba;opacity:0;overflow:visible;pointer-events:none;cursor:default;transform:rotate(var(--rot,0deg));transition:transform .4s cubic-bezier(.34,1.4,.64,1),color .4s ease;margin-top:110px}
.mg-l{animation:mg-in-l .9s cubic-bezier(.22,1,.36,1) forwards}
.mg-r{animation:mg-in-r .9s cubic-bezier(.22,1,.36,1) forwards}
.mg>g{animation:mg-float var(--dur,20s) ease-in-out infinite;animation-delay:var(--fdelay,0s)}
@keyframes mg-in-l{from{opacity:0;translate:-52px 0}to{opacity:var(--op,.7);translate:0 0}}
@keyframes mg-in-r{from{opacity:0;translate:52px 0}to{opacity:var(--op,.7);translate:0 0}}
@keyframes mg-float{0%{translate:0 0}22%{translate:4px -10px}47%{translate:-3px -15px}68%{translate:2px -5px}86%{translate:-2px -9px}100%{translate:0 0}}
@media (max-width:1180px){.marginalia{display:none}}
@media (prefers-reduced-motion:reduce){.mg>g{animation:none}}
  .marginalia .mg-l { margin-left: 300px; }
  .marginalia .mg-r { margin-right: 300px; }
  .tsplit { display: grid; gap: 24px; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); align-items: start; }
  @media (max-width: 800px) { .tsplit { grid-template-columns: 1fr; } }
  .chrow { display: flex; gap: 12px; align-items: center; padding: 11px 12px; margin: 0 -12px;
           line-height: 1.45; border-bottom: 1px solid var(--color-divider);
           cursor: pointer; font-size: 14px; border-radius: 10px; }
  .chrow:last-child { border-bottom: 0; }
  .chrow.fresh .muted { font-style: italic; }
  .chrow.on { background: var(--color-accent-100); }
  .chrow input { width: 17px; height: 17px; accent-color: var(--color-accent-600); flex: none; }
  .qlist { list-style: none; counter-reset: q; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: 14px; }
  .qcard { counter-increment: q; background: var(--color-card); border: 1px solid var(--color-divider);
           border-radius: var(--radius-md); padding: 16px 18px; }
  .qask { margin: 0 0 12px; line-height: 1.55; font-size: 15px; }
  .qask::before { content: counter(q) ". "; font-weight: 700; color: var(--color-accent-700); }
  .opts { display: grid; gap: 8px; }
  .opt { display: flex; gap: 12px; align-items: center; padding: var(--space-2) var(--space-3); cursor: pointer;
         background: var(--color-surface); border: 1px solid var(--color-divider);
         border-radius: 11px; font-size: 15px; line-height: 1.45;
         transition: background .12s, border-color .12s; }
  .opt:hover { border-color: var(--color-accent-600); }
  .opt.on { border-color: var(--color-accent-600); background: var(--color-accent-200);
            box-shadow: inset 0 0 0 1px var(--color-accent-600); }
  @media (prefers-reduced-motion: reduce) { .opt { transition: none; } }
  .opt input { position: absolute; opacity: 0; width: 0; height: 0; }
  .opt .optb { flex: none; width: 32px; height: 32px; border-radius: 99px;
               border: 2px solid var(--color-neutral-900); background: var(--color-bg);
               display: flex; align-items: center; justify-content: center;
               font-weight: 700; font-size: 15px; text-transform: uppercase;
               color: var(--color-neutral-900); }
  .opt.on .optb { background: var(--color-accent-400); }
  .opt .optt { flex: 1 1 auto; }
  .opt:has(input:focus-visible) { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
  .qnav { position: sticky; top: 0; z-index: 25;
          display: flex; flex-wrap: wrap; gap: 6px;
          margin: 0 0 var(--space-4); padding: 10px 0;
          background: var(--color-bg);
          box-shadow: 0 6px 18px -14px rgba(31,26,16,.5); }
  .qpill { width: 34px; height: 34px; border-radius: 99px; cursor: pointer;
           border: 1.5px solid var(--color-divider); background: var(--color-bg);
           font: inherit; font-size: 13px; font-weight: 700;
           font-variant-numeric: tabular-nums; color: var(--color-neutral-600); }
  .qpill:hover { border-color: var(--color-accent-600); color: var(--color-text); }
  .qpill.done { background: var(--color-accent-400); border-color: var(--color-neutral-900);
                color: var(--color-neutral-900); }
  .qpill:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
  .qcard { scroll-margin-top: 70px; }
  .scoreline { margin: -6px 0 10px; font-size: 15px; font-weight: 700;
               font-variant-numeric: tabular-nums; }
  .scoreline.over { color: var(--color-ok-700); }
  .scoreline.under { color: var(--color-bad-700); }
  .chjump { text-decoration: none; border-bottom: 1px solid var(--color-divider); }
  .chjump:hover, .chjump:focus-visible { border-bottom-color: var(--color-accent-600); }
  @media print { .scoreline { color: #000; } .chjump { border-bottom: 0; color: #000; } }
  .qfootbar { position: sticky; bottom: var(--space-3); z-index: 30; display: flex; flex-wrap: wrap;
              gap: 10px 16px; align-items: center; justify-content: space-between;
              margin: var(--space-4) 0 var(--space-3); padding: 12px 16px;
              border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
              background: var(--color-bg);
              box-shadow: 0 6px 20px -10px rgba(31,26,16,.45); }
  .qcount { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .qfootbar .btn { flex: 0 0 auto; }
  @media print { .qnav, .qfootbar { display: none; } }
  .qcard.right { border-left: 4px solid var(--color-ok-500); }
  .qcard.wrong { border-left: 4px solid var(--color-bad-500); }
  .qmark { font-weight: 700; margin-right: 7px; }
  .qcard.right .qmark { color: var(--color-ok-700); }
  .qcard.wrong .qmark { color: var(--color-bad-700); }
  .verdict { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 600; }
  .qcard.right .verdict { color: #2f6b3e; }
  .qcard.wrong .verdict { color: #8d3b28; }
  .why { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--color-neutral-600); }
  .dbrow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px;
           align-items: start; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
  .dbrow:last-child { border-bottom: 0; }
  .dbq { margin: 0 0 3px; line-height: 1.5; font-size: 14.5px; }
  .dbwho { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--color-neutral-600); }
  .dbwho b { color: var(--color-text); font-variant-numeric: tabular-nums; }
  .dbanswer { grid-column: 1 / -1; margin: 4px 0 2px; }
  .dbanswer label { display: block; margin: 0 0 4px; }
  .dbanswer textarea { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px;
                       border-radius: 10px; border: 1px solid var(--color-divider);
                       background: var(--color-bg); color: inherit; resize: vertical; }
  .dbrow.offpage { display: none; }
  .dbact { display: flex; align-items: center; gap: 8px; }
  .dbage { color: inherit; }
  .dbold { color: var(--color-bad-700); font-weight: 700; }
  .dbdraft { display: none; }
  .dbrow.hasdraft .dbdraft { display: inline-block; }
  @media (max-width: 620px) {
    .dbrow { grid-template-columns: minmax(0,1fr); }
  }
  .ratetab th:nth-child(2), .ratetab th:nth-child(3) { width: 11%; }
  .ratetab th:nth-child(4) { width: 18%; }
  .lowrate { color: #8d3b28; font-variant-numeric: tabular-nums; }
  .sheet { margin: 0 0 40px; }
  .sheethead { border-bottom: 2px solid var(--color-accent-600); padding-bottom: 12px; margin: 0 0 var(--space-4); }
  .footnote { font-size: 11.5px; margin: 12px 0 0; }
  .printhead, .printfoot { display: none; }
  .ropts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
  .ropt { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 10px;
          align-items: baseline; font-size: 14px; line-height: 1.5; padding: 7px 10px;
          border-radius: 9px; border: 1px solid transparent; }
  .ropt.ok { background: #eaf3ec; border-color: #b8d4bf; }
  .ropt.no { background: #f7ebe7; border-color: #e0bfb4; }
  .rmark { font-weight: 700; text-align: center; }
  .ropt.ok .rmark { color: #2f6b3e; }
  .ropt.no .rmark { color: #8d3b28; }
  .ryours { font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
            color: var(--color-neutral-600); font-weight: 700; white-space: nowrap; }
  .revisit { margin: var(--space-2) 0 0; font-size: 13px; }
  @media print {
    @page { margin: 14mm 12mm; }
    body { background: #fff; color: #000; }
    .wrap { max-width: none; padding: 0; }
    .apphead, .who, .noprint { display: none !important; }
    .printhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
                 border-bottom: .5pt solid #ccc; padding-bottom: 7pt; margin: 0 0 14pt; }
    .printhead img { order: 3; margin-left: auto; height: 20pt; width: auto;
                     align-self: center; }
    .ph-what { font-weight: 700; font-size: 11pt; }
    .ph-when { order: 2; font-size: 9pt; color: #444; }
    .printfoot { display: flex; justify-content: space-between; gap: 16pt;
                 border-top: .5pt solid #bbb; padding-top: 6pt; margin: 16pt 0 0;
                 font-size: 8pt; color: #555; }
    .qlist { gap: 8pt; }
    .qcard { break-inside: avoid; border: .5pt solid #bbb; border-radius: 0; padding: 7pt 9pt; }
    .qcard.right { border-left: 2.5pt solid #4a8259; }
    .qcard.wrong { border-left: 2.5pt solid #b5563d; }
    .qmark, .qcard.right .qmark, .qcard.wrong .qmark { color: #000; }
    .qask { font-size: 10pt; margin-bottom: 5pt; }
    .ropt { font-size: 9pt; padding: 2pt 4pt; border-radius: 0; }
    .ropt.ok { background: none; border-color: #4a8259; }
    .ropt.no { background: none; border-color: #b5563d; }
    .verdict, .why { font-size: 9pt; }
    .twocol { display: block; }
    .maincol { gap: 0; display: block; }
    .maincol .card { border: 0; padding: 0; margin: 0 0 12pt; background: none; }
    .maincol .card h2 { font-size: 11pt; margin: 0 0 5pt; }
    .who2 { gap: 8pt; }
    .avatar { display: none; }
    .pagehead { display: block; margin: 0 0 10pt; }
    .chtab tr.untouched td { color: #555; }
    .prevyear { border: .5pt solid #ccc; background: none; font-size: 9.5pt;
                padding: 4pt 6pt; margin: 0 0 8pt; }
    tr.offpage { display: table-row; }
    .dbrow.offpage { display: grid; }
    tr.filtered { display: none; }
    .pager, .find, .needpage { display: none !important; }
    .sheet { margin: 0; break-inside: auto; }
    .sheethead { border-bottom: .5pt solid #ccc; }
    .kicker { color: #444; }
    .grid { display: flex; gap: 0; margin: 0 0 10pt; }
    .stat { border: 0; border-right: .5pt solid #bbb; border-radius: 0; padding: 0 14pt 0 0;
            margin-right: 14pt; background: none; }
    .stat:last-child { border-right: 0; }
    .stat .n { font-size: 17pt; }
    .stat .l { font-size: 8.5pt; color: #444; }
    .tablewrap { overflow: visible; }
    table { font-size: 9.5pt; table-layout: fixed; word-wrap: break-word; }
    th, td { padding: 3pt 5pt; border-bottom: .5pt solid #bbb; }
    th { color: #000; font-size: 8pt; }
    thead { display: table-header-group; }
    tr { break-inside: avoid; }
    .muted { color: #555; }
    .footnote { font-size: 8pt; color: #555; }
  }
