  :root {
    --brand: #FFE95C;
    --paper: #FFE95C;
    --paper-deep: #F6D637;
    --paper-pale: #FFF4A8;
    --rule: rgba(30, 80, 190, 0.34);
    --ink: #000000;
    --ink-2: #4A4200;
    --ink-3: #6F6411;
    --pen: #1A2FB8;
    --pen-soft: rgba(26, 47, 184, 0.6);
    --card: #FFFFFF;
    --margin: #E5252A;
    --red-pen: #C8171D;
    --hl-green: #3BDC80;
    --hl-orange: #FF9A1F;
    --hl-grey: #E4DFB8;
    --bw: 3px;

    --font-body: "Archivo", "Helvetica Neue", Arial, "Segoe UI", "PingFang SC", "Hiragino Sans", "Yu Gothic", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans CJK JP", sans-serif;
    --font-hand: "Just Another Hand", "Segoe Print", "Bradley Hand", "Segoe UI", "PingFang SC", "Yu Gothic", "Microsoft YaHei", cursive;

    --bg: var(--paper);
    --surface: var(--card);
    --surface-2: var(--paper-pale);
    --surface-3: var(--paper-deep);
    --border: var(--ink);
    --border-strong: var(--ink);
    --text: var(--ink);
    --text-dim: var(--ink-2);
    --text-faint: var(--ink-3);
    --accent: var(--pen);
    --accent-hover: #101f8a;
    --accent-soft: rgba(26, 47, 184, 0.1);
    --green: #0B8A43;
    --green-soft: rgba(59, 220, 128, 0.4);
    --red: var(--red-pen);
    --red-soft: rgba(229, 37, 42, 0.16);
    --yellow: #A85F00;
    --yellow-soft: rgba(255, 154, 31, 0.4);
    --blue: var(--pen);
    --radius: 0;
    --radius-lg: 0;
    --cut: 0px;
    --font-display: var(--font-body);
    --font-mono: var(--font-body);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }

  html { min-height: 100%; }

  html, body {
    font-family: var(--font-body);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }

  body {
    --bg: var(--paper);
    --surface-2: var(--paper-pale);
    --surface-3: var(--paper-deep);
    --text-dim: var(--ink-2);
    --text-faint: var(--ink-3);

    min-height: 100vh;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--paper);
    background-image: linear-gradient(to bottom, transparent 31px, var(--rule) 31px);
    background-size: 100% 32px;
    transition: background-color 0.25s;
  }

  body:has(#screen-results.active), body:has(#screen-progress.active) {
    --paper: #FFA6CB; --paper-deep: #FF86B7; --paper-pale: #FFD3E5;
    --ink-2: #5B1A3C; --ink-3: #7D2E55; --rule: rgba(40, 70, 190, 0.3);
  }
  body:has(#screen-online.active), body:has(#screen-league.active) {
    --paper: #93D5FF; --paper-deep: #62BDF7; --paper-pale: #C6E8FF;
    --ink-2: #0C3A66; --ink-3: #1E558A; --rule: rgba(20, 60, 160, 0.34);
  }
  body:has(#screen-learn.active), body:has(#screen-how.active) {
    --paper: #8EEFB4; --paper-deep: #62E297; --paper-pale: #C9F7DB;
    --ink-2: #0F4A2A; --ink-3: #1F5F3C; --rule: rgba(20, 90, 140, 0.32);
  }
  body:has(#screen-casebuilder.active), body:has(#screen-casecheck.active) {
    --paper: #CDB8FF; --paper-deep: #B197FA; --paper-pale: #E4D9FF;
    --ink-2: #3E2575; --ink-3: #53388F; --rule: rgba(60, 40, 170, 0.3);
  }
  body:has(#screen-upload.active) {
    --paper: #FFBF8A; --paper-deep: #FFA45C; --paper-pale: #FFDDBC;
    --ink-2: #5E2D00; --ink-3: #6E3C0A; --rule: rgba(30, 80, 190, 0.3);
  }

  ::selection { background: var(--ink); color: var(--paper); }

  h1, h2, h3, h4 {
    font-family: var(--font-body);
    font-weight: 900;
    font-variation-settings: "wdth" 80;
    letter-spacing: -0.005em;
    line-height: 1;
  }

  [style*="text-transform"] { text-transform: none !important; letter-spacing: normal !important; }

  :focus-visible { outline: 4px solid var(--pen); outline-offset: 3px; }
  .topbar :focus-visible, .app-footer :focus-visible { outline-color: var(--brand); }

  .app { min-height: 100vh; display: flex; flex-direction: column; }

  header.topbar {
    background: #000;
    color: var(--brand);
    padding: 14px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .topbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
  .logo:hover .logo-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }
  .home-link { font-size: 14px; font-weight: 800; color: var(--brand); text-decoration: none; white-space: nowrap; padding: 6px 0; }
  .home-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

  .logo-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background:
      linear-gradient(45deg, transparent 41%, var(--margin) 41% 59%, transparent 59%),
      linear-gradient(-45deg, transparent 41%, var(--margin) 41% 59%, transparent 59%),
      var(--brand);
    transform: rotate(-6deg);
  }
  .logo-mark::before { content: none; }

  .logo-name {
    font-weight: 900;
    font-variation-settings: "wdth" 88;
    font-size: 24px;
    letter-spacing: -0.01em;
    color: var(--brand);
  }

  .tagline { display: none; }

  #header-meta { display: flex; align-items: center; gap: 18px; }
  #header-meta > * + * { padding-left: 18px; border-left: 2px solid rgba(255, 233, 92, 0.35); }

  .account-area { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
  .account-name { color: var(--brand); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
  .account-name:hover { text-decoration: underline; }
  .account-avatar { width: 28px; height: 28px; object-fit: cover; border: 2px solid var(--brand); cursor: pointer; flex-shrink: 0; background: #000; }
  .account-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: var(--brand); }

  .topbar .btn {
    background: var(--brand);
    border-color: var(--brand);
    color: #000;
    box-shadow: 3px 3px 0 var(--margin);
    padding: 7px 14px;
    font-size: 14px;
  }
  .topbar .btn:hover { box-shadow: 4px 4px 0 var(--margin); }
  .topbar .btn:active { box-shadow: 0 0 0 var(--margin); }

  .topbar .btn, .afc-toggle-chip, .whisper-pill { white-space: nowrap; flex-shrink: 0; }
  .whisper-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    color: var(--brand);
    padding: 6px 10px;
    border: 2px solid var(--brand);
    background: #000;
  }
  .whisper-pill .wp-dot { display: none; }
  .whisper-pill.recording { background: var(--hl-green); color: #000; border-color: var(--hl-green); }
  .whisper-pill.uploading { background: var(--hl-orange); color: #000; border-color: var(--hl-orange); }
  select.whisper-pill { appearance: none; -webkit-appearance: none; width: auto; padding: 6px 12px; background-image: none; cursor: pointer; }

  .afc-toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 233, 92, 0.6);
  }
  .afc-toggle-chip .afc-dot { display: inline-block; width: 10px; height: 10px; background: currentColor; }
  .afc-toggle-chip.live { color: var(--brand); }
  .afc-toggle-chip.live .afc-dot { background: var(--hl-green); }
  .afc-toggle-chip.busy { color: var(--brand); animation: afcPulse 1s steps(2, end) infinite; }
  @keyframes afcPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

  .topnav {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar { display: none; }

  .topnav-btn {
    background: transparent;
    border: 0;
    color: rgba(255, 233, 92, 0.78);
    font-family: var(--font-body);
    font-weight: 800;
    font-variation-settings: "wdth" 90;
    font-size: 16px;
    line-height: 1;
    padding: 13px 22px 12px;
    cursor: pointer;
    white-space: nowrap;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
    transition: background 0.12s, color 0.12s;
  }
  .topnav-btn:hover:not(:disabled):not(.active) { background: #1b1b1b; color: #fff; }
  .topnav-btn.active { background: var(--paper); color: #000; }
  .topnav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

  main {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 44px 32px 96px 76px;
  }
  main::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 7px;
    border-left: 2px solid var(--margin);
    border-right: 2px solid var(--margin);
    pointer-events: none;
  }

  .screen { display: none; }
  .screen.active { display: block; }

  .eyebrow { display: none; }

  .hero { padding: 0 0 44px; margin-bottom: 8px; position: relative; }

  .hero h1 {
    font-size: clamp(48px, 7.4vw, 108px);
    font-variation-settings: "wdth" 72;
    line-height: 0.9;
    letter-spacing: -0.015em;
    max-width: 13ch;
    margin-bottom: 20px;
    color: #000;
  }
  html:lang(ru) .hero h1, html:lang(de) .hero h1, html:lang(pl) .hero h1, html:lang(fr) .hero h1, html:lang(it) .hero h1, html:lang(pt) .hero h1, html:lang(es) .hero h1 { font-size: clamp(40px, 5.6vw, 84px); max-width: 16ch; }
  html:lang(ja) .hero h1, html:lang(zh) .hero h1 { font-size: clamp(40px, 5.4vw, 80px); max-width: 12ch; line-height: 1.08; font-variation-settings: normal; letter-spacing: 0; }

  .hero > p {
    font-family: var(--font-hand);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.02;
    color: var(--pen);
    max-width: 30ch;
    transform: rotate(-1.2deg);
    transform-origin: left top;
  }

  .specimen {
    position: absolute;
    right: 0;
    top: 6px;
    width: min(390px, 33%);
    padding: 16px 20px 20px;
    background: #fff;
    border: var(--bw) solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(2.2deg);
  }
  .sp-said { font-family: var(--font-hand); font-size: 28px; line-height: 1; color: var(--pen); margin-bottom: 10px; }
  .sp-claim { font-size: 26px; font-weight: 900; font-variation-settings: "wdth" 88; line-height: 1.22; margin-bottom: 16px; }
  .sp-claim mark {
    color: inherit;
    background-color: transparent;
    background-image: linear-gradient(transparent 52%, #FF6A5E 52%, #FF6A5E 94%, transparent 94%);
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: mark 0.7s steps(10, end) 0.5s both;
  }
  .sp-row { display: flex; gap: 14px; align-items: flex-start; }
  .sp-verdict { flex-shrink: 0; padding: 5px 14px 6px; background: var(--margin); color: #fff; border: var(--bw) solid var(--ink); font-size: 28px; font-weight: 900; font-variation-settings: "wdth" 74; line-height: 1; transform: rotate(-4deg); }
  .sp-note { font-size: 15px; line-height: 1.4; color: var(--ink-2); font-weight: 500; padding-top: 2px; }
  @media (max-width: 1120px) { .specimen { display: none; } }

  .setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 52px 48px;
  }

  .card { position: relative; background: transparent; border: 0; padding: 0; }

  .card h3,
  .transcript-log h3,
  .factcheck h3,
  .sub-head-left h3 {
    font-size: 30px;
    font-variation-settings: "wdth" 78;
    color: #000;
    padding-bottom: 10px;
    margin-bottom: 22px;
    border-bottom: var(--bw) solid var(--ink);
  }
  .sub-head-left h3 { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

  .field { margin-bottom: 20px; }
  .field:last-child { margin-bottom: 0; }
  .field label { display: block; font-size: 15px; font-weight: 800; margin-bottom: 7px; color: #000; }

  .form-grid { display: grid; gap: 20px 24px; margin-bottom: 20px; }
  .form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .field { margin-bottom: 0; }

  input:not([type]), input[type=text], input[type=number], input[type=password], input[type=email], input[type=search], input[type=tel], input[type=url], select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: var(--bw) solid var(--ink);
    color: var(--pen);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    transition: box-shadow 0.1s, transform 0.1s;
  }
  input::placeholder, textarea::placeholder { color: var(--ink-3); font-weight: 500; opacity: 0.8; }
  input:focus, select:focus, textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--pen); transform: translate(-2px, -2px); }
  textarea { resize: vertical; min-height: 84px; line-height: 1.45; }

  select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }

  input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--pen);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-in-out 0s;
  }

  .note { font-size: 14px; color: var(--ink-2); line-height: 1.45; margin-top: 8px; }

  .mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }

  .mode-card {
    padding: 16px 16px 18px;
    background: #fff;
    border: var(--bw) solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    cursor: pointer;
    text-align: left;
    transition: transform 0.08s, box-shadow 0.08s;
  }
  .mode-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
  .mode-card:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
  .mode-card h4 { font-size: 22px; font-variation-settings: "wdth" 82; margin-bottom: 8px; }
  .mode-card p { font-size: 14px; line-height: 1.35; color: var(--ink-2); font-weight: 500; }
  .mode-card.active { background: #000; box-shadow: 5px 5px 0 var(--margin); }
  .mode-card.active h4 { color: var(--paper); }
  .mode-card.active p { color: #EFE9B8; }

  .mode-preview {
    margin-top: 6px;
    background: #fff;
    border: var(--bw) solid var(--ink);
    max-height: 280px;
    overflow-y: auto;
  }
  .phase-row { display: flex; align-items: baseline; padding: 10px 16px; border-bottom: 2px dotted rgba(0, 0, 0, 0.45); font-size: 16px; }
  .phase-row:last-child { border-bottom: 0; }
  .phase-row .pr-num { font-family: var(--font-hand); font-size: 28px; line-height: 1; color: var(--pen); margin-right: 14px; min-width: 26px; }
  .phase-row .pr-name { flex: 1; font-weight: 700; }
  .phase-row .pr-side { font-weight: 800; margin-right: 14px; min-width: 70px; text-align: right; color: var(--red-pen); }
  .phase-row .pr-time { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }

  .toggle-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 0;
  }
  .toggle-row:first-child { padding-top: 0; }
  .toggle-row:last-child { padding-bottom: 0; }
  .toggle-row .t-info { flex: 1; margin: 0; }
  .toggle-row .t-name { font-size: 20px; font-weight: 900; font-variation-settings: "wdth" 88; line-height: 1.15; color: #000; }
  .toggle-row .t-desc { font-size: 15px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; max-width: 72ch; }

  .toggle { position: relative; width: 34px; height: 34px; flex-shrink: 0; margin-top: 1px; }
  .toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
  .toggle-slider {
    position: absolute;
    inset: 0;
    background: #fff;
    border: var(--bw) solid var(--ink);
    cursor: pointer;
    transition: background 0.1s;
  }
  .toggle-slider::before {
    content: "";
    position: absolute;
    inset: 2px;
    background:
      linear-gradient(45deg, transparent 40%, var(--pen) 40% 60%, transparent 60%),
      linear-gradient(-45deg, transparent 40%, var(--pen) 40% 60%, transparent 60%);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.22s steps(5, end);
  }
  .toggle input:checked + .toggle-slider::before { clip-path: inset(0 0 0 0); }
  .toggle input:focus-visible + .toggle-slider { outline: 4px solid var(--pen); outline-offset: 3px; }
  .toggle:hover .toggle-slider { background: var(--paper-pale); }

  .topic-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
  .cat-chip {
    padding: 8px 14px;
    background: #fff;
    border: 2px solid var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    color: #000;
    cursor: pointer;
  }
  .cat-chip:hover { background: var(--paper-pale); }
  .cat-chip.active { background: #000; color: var(--paper); }

  .topic-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; padding: 0 8px 6px 0; }
  .topic-item {
    padding: 12px 14px;
    background: #fff;
    border: 2px solid var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
  }
  .topic-item:hover { background: var(--paper-pale); }
  .topic-item.selected { background: #000; color: var(--paper); border-color: #000; }

  .counter { display: flex; align-items: stretch; }
  .counter button {
    width: 48px;
    background: var(--paper-deep);
    border: var(--bw) solid var(--ink);
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 900;
    color: #000;
    cursor: pointer;
  }
  .counter button:hover { background: var(--paper-pale); }
  .counter button:active { background: #000; color: var(--paper); }
  .counter input { text-align: center; flex: 1; border-left: 0; border-right: 0; font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 800; }
  .counter input:focus { transform: none; box-shadow: inset 0 0 0 3px var(--pen); }

  .debaters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .debater-field { position: relative; }
  .debater-field::before {
    content: attr(data-side);
    position: absolute;
    top: -13px;
    left: 10px;
    padding: 1px 9px 2px;
    background: #000;
    color: var(--paper);
    font-size: 15px;
    font-weight: 900;
    z-index: 1;
  }

  .start-row { position: sticky; bottom: 18px; z-index: 6; margin-top: 60px; }
  .start-row .btn-primary { width: 100%; min-height: 84px; font-size: 32px; justify-content: space-between; padding: 14px 30px; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: #fff;
    color: #000;
    border: var(--bw) solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 900;
    font-variation-settings: "wdth" 90;
    line-height: 1.1;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.08s, box-shadow 0.08s, background 0.08s;
  }
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--paper-pale); }
  .btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
  .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; background: var(--paper-deep); border-style: dashed; }
  .btn-primary:disabled { background: var(--paper-deep); color: var(--ink-3); box-shadow: none; }
  .btn-sm { padding: 6px 12px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
  .btn-primary { background: #000; color: var(--paper); box-shadow: 5px 5px 0 var(--margin); font-size: 19px; padding: 14px 26px; }
  .btn-primary:hover { background: #111; color: #fff; box-shadow: 7px 7px 0 var(--margin); }
  .btn-primary:active { box-shadow: 0 0 0 var(--margin); }
  .btn-ghost { background: transparent; }
  .btn-danger { background: var(--margin); color: #fff; }
  .btn-danger:hover { background: #cf1a20; color: #fff; }
  .btn .icon { display: none; }

  .stage {
    background: #fff;
    border: var(--bw) solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    padding: 28px 32px 32px;
    margin-bottom: 52px;
  }

  .stage-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: var(--bw) solid var(--ink);
  }
  .topic-display { flex: 1; min-width: 260px; }
  .topic-label { display: none; }
  .topic-display h2 { font-size: clamp(28px, 3.4vw, 46px); font-variation-settings: "wdth" 84; line-height: 1.02; max-width: 26ch; }

  .mode-badge {
    display: inline-block;
    padding: 3px 12px 4px;
    background: #000;
    color: var(--paper);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 14px;
  }

  .phase-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: var(--paper-pale);
    border: var(--bw) solid var(--ink);
    border-left-width: 14px;
    margin-bottom: 8px;
  }
  .phase-banner .pb-left { flex: 1; min-width: 240px; }
  .phase-banner .pb-index { font-family: var(--font-hand); font-size: 28px; line-height: 1; color: var(--pen); }
  .phase-banner .pb-name { font-size: 22px; font-weight: 900; font-variation-settings: "wdth" 88; line-height: 1.1; }
  #pb-side, #online-phase-side { font-weight: 800; }

  .round-indicator { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; max-width: 380px; justify-content: flex-end; }
  .round-pill {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--ink);
    font-size: 14px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }
  .round-pill.current { background: #000; color: var(--paper); }
  .round-pill.done { background: var(--hl-green); }

  .timer-wrap { text-align: center; padding: 18px 0 4px; }
  .timer-label { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: var(--ink-2); }
  .timer {
    font-family: var(--font-body);
    font-weight: 900;
    font-variation-settings: "wdth" 66;
    font-size: clamp(110px, 19vw, 240px);
    line-height: 0.82;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #000;
    margin-bottom: 26px;
    transition: color 0.2s;
  }
  .timer.warning { color: #C45F00; }
  .timer.critical { color: var(--red-pen); animation: pulseFade 1s steps(2, end) infinite; }
  @keyframes pulseFade { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

  .timer-bar { height: 22px; background: #fff; border: var(--bw) solid var(--ink); overflow: hidden; margin-bottom: 26px; }
  .timer-fill {
    height: 100%;
    background: repeating-linear-gradient(135deg, #000 0 10px, var(--paper) 10px 20px);
    transition: width 0.2s linear;
  }
  .timer.warning ~ .timer-bar .timer-fill, .timer-fill.warning {
    background: repeating-linear-gradient(135deg, var(--hl-orange) 0 10px, #fff 10px 20px);
  }
  .timer.critical ~ .timer-bar .timer-fill {
    background: repeating-linear-gradient(135deg, var(--margin) 0 10px, #fff 10px 20px);
  }

  .controls { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

  .undo-tray {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 40px;
    border: 2px dashed var(--ink);
    background: var(--paper-pale);
  }
  .undo-tray.hidden { display: none; }
  .undo-tray .undo-label { font-family: var(--font-hand); font-size: 26px; line-height: 1; color: var(--pen); white-space: nowrap; }
  .undo-list { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; padding: 2px 2px 4px; }
  .undo-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: #fff;
    border: 2px solid var(--ink);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
  }
  .undo-chip:hover { background: var(--paper-deep); }
  .undo-chip .ux { font-size: 16px; line-height: 1; }
  .undo-chip.fact { border-left: 10px solid var(--hl-green); }
  .undo-chip.wrong { border-left: 10px solid var(--margin); }
  .undo-chip.fallacy { border-left: 10px solid var(--hl-orange); }

  .debate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 56px; }
  .debate-layout.no-points .score-controls,
  .debate-layout.no-points .panel-stats,
  .debate-layout.no-points .score { display: none; }
  .debate-layout.solo { grid-template-columns: 1fr; }
  .debate-layout.solo #panel-b { display: none; }

  .debater-panel, .result-card {
    position: relative;
    background: #fff;
    color: #000;
    border: var(--bw) solid var(--ink);
    border-top: 14px solid var(--ink);
    box-shadow: 9px 9px 0 var(--ink);
    padding: 20px 22px 24px;
    transition: border-top-color 0.15s;
  }
  #panel-b, #online-card-b, .results-scores > .result-card:nth-child(2) {
    background: #000;
    color: var(--paper);
    border-color: #000;
    border-top-color: #fff;
    box-shadow: 9px 9px 0 #fff;
  }
  .debater-panel.active { border-top-color: var(--margin); }
  #panel-b.active { border-top-color: var(--margin); }

  .panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
  .panel-head h2 { font-size: 34px; font-variation-settings: "wdth" 80; line-height: 1; word-break: break-word; }
  .side-label:empty { display: none; }
  .side-label { font-family: var(--font-hand); font-size: 28px; line-height: 1; color: var(--pen); margin-top: 6px; }
  #panel-b .side-label, #online-card-b .rc-side { color: var(--paper); }

  .score {
    font-family: var(--font-hand);
    font-size: 148px;
    line-height: 0.62;
    color: var(--pen);
    padding-top: 22px;
    font-variant-numeric: tabular-nums;
    transition: transform 0.2s;
  }
  #panel-b .score { color: var(--paper); }
  .score.pulse { animation: scorePulse 0.35s ease; }
  @keyframes scorePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(-3deg); } }

  .score-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
  .score-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 80px;
    padding: 10px 6px;
    background: #fff;
    color: #000;
    border: var(--bw) solid #000;
    box-shadow: 4px 4px 0 #000;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.08s, box-shadow 0.08s;
  }
  .score-btn .val { font-size: 23px; font-weight: 900; font-variation-settings: "wdth" 84; line-height: 1; }
  .score-btn .lbl { font-size: 14px; font-weight: 700; line-height: 1.1; }
  .score-btn.plus { background: var(--hl-green); }
  .score-btn.minus { background: var(--margin); color: #fff; }
  .score-btn.fallacy { background: var(--hl-orange); }
  .score-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
  .score-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
  #panel-b .score-btn, #online-card-b .score-btn, .results-scores > .result-card:nth-child(2) .score-btn { box-shadow: 4px 4px 0 var(--paper); }
  #panel-b .score-btn:hover, #online-card-b .score-btn:hover { box-shadow: 6px 6px 0 var(--paper); }
  #panel-b .score-btn:active, #online-card-b .score-btn:active { box-shadow: 0 0 0 var(--paper); }

  .panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-top: 16px; margin-top: 22px; border-top: var(--bw) solid currentColor; font-size: 15px; font-weight: 700; }
  .panel-stats .s-val { display: block; font-family: var(--font-hand); font-size: 58px; line-height: 0.9; color: var(--pen); margin-bottom: 2px; }
  #panel-b .panel-stats .s-val { color: var(--paper); }

  .subtitles-wrap { margin-bottom: 52px; }
  .subtitles-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: var(--bw) solid var(--ink); }
  .sub-head-left { display: flex; align-items: center; gap: 12px; }
  .sub-head-left h3 { font-size: 30px; font-variation-settings: "wdth" 78; }
  .mic-indicator { width: 16px; height: 16px; background: var(--ink-3); border: 2px solid #000; }
  .mic-indicator.active { background: var(--margin); animation: miclive 1s steps(2, end) infinite; }
  .mic-indicator.active.hearing { background: var(--pen, #1d3fbf); animation: none; }
  @keyframes miclive { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

  .subtitles {
    min-height: 128px;
    padding: 18px 22px;
    background: #fff;
    border: var(--bw) solid var(--ink);
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.42;
    font-weight: 600;
    color: var(--pen);
  }
  .subtitles .interim { color: var(--pen-soft); }
  .subtitles.empty { color: var(--ink-3); font-size: 18px; font-weight: 500; }

  .claim-pick {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--paper-pale);
    border: 2px dashed var(--ink);
    font-size: 15px;
    font-weight: 600;
  }
  .claim-pick.visible { display: flex; }
  .claim-pick button { padding: 6px 12px; background: #000; color: var(--paper); border: 0; font: 800 14px var(--font-body); cursor: pointer; }
  .claim-pick button:hover { background: #222; }

  .factcheck { margin-bottom: 52px; }
  .factcheck-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: var(--bw) solid var(--ink); }
  .factcheck-head h3 { margin: 0; padding: 0; border: 0; }
  .factcheck > div[data-i18n] { font-size: 15px !important; line-height: 1.5 !important; color: var(--ink-2) !important; max-width: 80ch; margin: 2px 0 14px !important; font-weight: 500; }
  .fc-note { font-family: var(--font-hand); font-size: 26px; line-height: 1; color: var(--pen); }
  .fc-search { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .fc-search input { flex: 1; min-width: 200px; }
  .fc-results { display: flex; flex-direction: column; gap: 14px; max-height: 360px; overflow-y: auto; padding: 0 8px 6px 0; }
  .fc-result { padding: 14px 16px; background: #fff; border: var(--bw) solid var(--ink); }
  .fc-result h4 { font-size: 19px; font-variation-settings: "wdth" 90; line-height: 1.15; margin-bottom: 6px; }
  .fc-result p { font-size: 15px; line-height: 1.5; color: var(--ink-2); font-weight: 500; }
  .fc-result .src { font-size: 14px; margin-top: 10px; padding-top: 8px; border-top: 2px dotted rgba(0, 0, 0, 0.45); color: var(--ink-3); }
  .fc-result a { color: var(--pen); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
  .fc-empty, .fc-loading { text-align: center; padding: 22px; color: var(--ink-2); font-size: 16px; font-weight: 600; }

  .flash-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 9998;
    transition: opacity 0.2s;
  }
  .flash-overlay.green { box-shadow: inset 0 0 0 22px var(--hl-green), inset 0 0 160px rgba(59, 220, 128, 0.55); }
  .flash-overlay.red   { box-shadow: inset 0 0 0 22px var(--margin), inset 0 0 160px rgba(229, 37, 42, 0.5); }
  .flash-overlay.active { opacity: 1; animation: flashPulse 0.9s steps(6, end); }
  @keyframes flashPulse { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

  .afc-banner {
    position: fixed;
    top: 104px;
    left: 50%;
    transform: translateX(-50%) translateY(-18px) rotate(-1.2deg);
    display: flex;
    align-items: stretch;
    min-width: 340px;
    max-width: 680px;
    background: #fff;
    border: 4px solid var(--ink);
    box-shadow: 9px 9px 0 var(--ink);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    font-size: 15px;
  }
  .afc-banner.visible { opacity: 1; transform: translateX(-50%) translateY(0) rotate(-1.2deg); animation: slam 0.34s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
  @keyframes slam {
    0%   { transform: translateX(-50%) translateY(-70px) rotate(-7deg) scale(1.12); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0) rotate(-1.2deg) scale(1); opacity: 1; }
  }
  .afc-banner .afc-verdict {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 30px;
    font-weight: 900;
    font-variation-settings: "wdth" 74;
    border-right: 4px solid var(--ink);
    flex-shrink: 0;
  }
  .afc-banner.verdict-true .afc-verdict { background: var(--hl-green); color: #000; }
  .afc-banner.verdict-false .afc-verdict { background: var(--margin); color: #fff; }
  .afc-banner.verdict-uncertain .afc-verdict { background: var(--hl-grey); color: #000; }
  .afc-banner .afc-body { flex: 1; padding: 12px 16px; line-height: 1.35; }
  .afc-banner .afc-claim { display: block; font-size: 19px; font-weight: 900; font-variation-settings: "wdth" 90; margin-bottom: 3px; }
  .afc-banner .afc-exp { font-size: 15px; color: var(--ink-2); font-weight: 500; }
  .afc-banner .afc-side { align-self: center; padding: 0 14px; font-family: var(--font-hand); font-size: 26px; color: var(--pen); }
  .afc-wrong-btn { align-self: center; margin-right: 12px; padding: 6px 10px; background: #fff; border: 2px solid var(--ink); font: 800 14px var(--font-body); cursor: pointer; }
  .afc-wrong-btn:hover { background: var(--margin); color: #fff; }

  .fc-result.afc-banner { animation: none !important; box-shadow: none; border-width: var(--bw); min-width: 0; max-width: none; }
  .fc-result.afc-banner .afc-verdict { font-size: 22px; padding: 10px 14px; border-right-width: var(--bw); }

  .claim-log {
    position: fixed;
    right: 20px;
    top: 118px;
    width: 336px;
    max-height: calc(100vh - 150px);
    display: none;
    flex-direction: column;
    background: #fff;
    border: var(--bw) solid var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    z-index: 50;
  }
  .claim-log.show { display: flex; }
  .claim-log.collapsed .claim-log-body { display: none; }
  .claim-log-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #000; color: var(--paper); cursor: pointer; user-select: none; }
  .claim-log-head h4 { margin: 0; font-size: 22px; font-variation-settings: "wdth" 82; color: var(--paper); }
  .claim-log-head .cl-toggle { font-size: 20px; line-height: 1; }
  .claim-log-body { overflow-y: auto; padding: 10px; flex: 1; background: var(--paper-pale); }
  .claim-log-empty { padding: 18px 10px; text-align: center; font-family: var(--font-hand); font-size: 26px; line-height: 1.05; color: var(--pen); }

  .cl-item { padding: 10px 12px 10px 14px; margin-bottom: 10px; background: #fff; border: 2px solid var(--ink); border-left-width: 12px; font-size: 14px; line-height: 1.4; }
  .cl-item.verdict-true { border-left-color: var(--hl-green); }
  .cl-item.verdict-false { border-left-color: var(--margin); }
  .cl-item.verdict-uncertain { border-left-color: var(--hl-grey); }
  .cl-item.overturned { opacity: 0.5; }
  .cl-row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
  .cl-verdict { padding: 1px 7px; background: #000; color: var(--paper); font-size: 13px; font-weight: 900; }
  .cl-conf, .cl-side, .cl-overturned { font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .cl-overturned { color: var(--red-pen); }
  .cl-claim {
    display: inline;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .cl-item.verdict-true .cl-claim { background-image: linear-gradient(transparent 52%, var(--hl-green) 52%, var(--hl-green) 94%, transparent 94%); animation: mark 0.5s steps(8, end) both; }
  .cl-item.verdict-false .cl-claim { background-image: linear-gradient(transparent 52%, #FF6A5E 52%, #FF6A5E 94%, transparent 94%); animation: mark 0.5s steps(8, end) both; }
  .cl-item.verdict-uncertain .cl-claim { background-image: linear-gradient(transparent 52%, var(--hl-grey) 52%, var(--hl-grey) 94%, transparent 94%); }
  @keyframes mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

  .verdict-true { --vc: var(--hl-green); }
  .verdict-mostly_true { --vc: #A8E86B; }
  .verdict-misleading { --vc: var(--hl-orange); }
  .verdict-false { --vc: #FF6A5E; }
  .verdict-inconclusive, .verdict-uncertain { --vc: var(--hl-grey); }
  .verdict-opinion { --vc: #8FB0FF; }
  .verdict-value { --vc: #C7A4FF; }
  .verdict-prediction { --vc: #7FD6D6; }
  .verdict-hypothetical { --vc: #D5D5D5; }
  .verdict-testimony { --vc: #F3A6C8; }
  .verdict-unverifiable { --vc: #B8B8B8; }
  .verdict-pending { --vc: #FFE14D; }
  .cl-item[class*="verdict-"] { border-left-color: var(--vc, var(--hl-grey)); }
  .cl-item[class*="verdict-"] .cl-claim { background-image: linear-gradient(transparent 52%, var(--vc, var(--hl-grey)) 52%, var(--vc, var(--hl-grey)) 94%, transparent 94%); }
  .cl-item.verdict-unverifiable .cl-claim, .cl-item.verdict-hypothetical .cl-claim { animation: none; }
  .cl-item.verdict-pending, .cl-item.verdict-unverifiable { border-style: dashed; border-left-style: solid; }
  .cl-item.verdict-pending .cl-claim { animation: none; }
  .cl-verdict { background: var(--vc, #000); color: #000; }
  .cl-item.verdict-false .cl-verdict { color: #000; }
  .afc-banner[class*="verdict-"] .afc-verdict { background: var(--vc, var(--hl-grey)); color: #000; }
  .afc-banner.verdict-false .afc-verdict { background: var(--margin); color: #fff; }
  .cl-kind, .cl-late { font-size: 12px; font-weight: 800; padding: 0 5px; border: 1.5px solid var(--ink); background: #fff; }
  .cl-late { border-style: dashed; }

  .cl-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
  .cl-filters:empty { display: none; }
  .cl-filter, .cl-verify { font: 800 12px var(--font-body); padding: 2px 8px; border: 2px solid var(--ink); background: #fff; color: #000; cursor: pointer; }
  .cl-filter.on { background: #000; color: var(--paper); }
  .cl-verify { margin-left: auto; background: #FFE14D; }
  .cl-verify:disabled { opacity: 0.6; cursor: default; }

  .turn-review { margin: 0 0 22px; }
  .turn-review:empty { display: none; }
  .tr-card { background: rgba(255, 255, 255, 0.6); border-left: 5px solid var(--pen); padding: 10px 16px 12px; margin-bottom: 10px; }
  .tr-card.working { opacity: 0.8; }
  .tr-head { font-family: var(--font-hand); font-size: 24px; line-height: 1.1; color: var(--pen); cursor: pointer; list-style: revert; }
  .tr-card.working .tr-head { cursor: default; }
  .tr-who { font-family: var(--font-body); font-size: 13px; font-weight: 800; color: var(--ink-2); margin-left: 8px; }
  .tr-sum { font-size: 16px; font-weight: 800; margin: 8px 0 6px; line-height: 1.4; }
  .tr-chips { margin-bottom: 8px; }
  .tr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 24px; }
  .tr-h { font-weight: 900; font-size: 13px; margin: 6px 0 2px; color: var(--ink); }
  .tr-card ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.45; }
  .tr-gap { font-size: 14px; margin: 6px 0 8px; }
  .tr-rates { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 4px; font-size: 13px; font-weight: 800; align-items: center; }
  .tr-pips { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
  .tr-pips i { width: 11px; height: 11px; border: 1.5px solid var(--ink); background: transparent; }
  .tr-pips i.on { background: var(--ink); }
  .tr-ans { font-weight: 700; color: var(--ink-2); }
  .tr-tip { margin-top: 8px; font-family: var(--font-hand); font-size: 22px; line-height: 1.15; color: var(--pen); }
  .tr-tip b { font-weight: 400; }
  .side-flip { font-family: var(--font-hand); font-size: 24px; line-height: 1.1; color: var(--pen); margin-top: 4px; }
  .side-flip:empty { display: none; }
  .tr-checking { margin: 8px 0 0; font-size: 20px; }
  .tr-earlier > summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink-2); margin: 4px 0 8px; }
  .transcript-round .tr-card { margin: 10px 0 0; }

  .secret-field { -webkit-text-security: disc; text-security: disc; }
  .guide-note { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
  .guide-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .guide-pills { display: flex; flex-wrap: wrap; gap: 6px; }
  .guide-pills button { font: 800 14px var(--font-body); padding: 6px 14px; background: #fff; color: var(--ink); border: 2px solid var(--ink); cursor: pointer; }
  .guide-pills button.on { background: var(--ink); color: var(--paper); }
  .guide-search { font: 600 15px var(--font-body); padding: 7px 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); min-width: 220px; }
  .guide-item { border: 2px solid var(--ink); background: #fff; margin: 0 0 8px; }
  .guide-item > summary { cursor: pointer; padding: 10px 14px; list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .guide-item > summary::-webkit-details-marker { display: none; }
  .guide-item > summary b { font: 800 17px var(--font-body); }
  .guide-item > summary b::before { content: "+"; display: inline-block; width: 20px; font-weight: 900; }
  .guide-item[open] > summary b::before { content: "−"; }
  .guide-item > summary span { font-size: 14px; color: var(--ink-2); padding-left: 20px; }
  .guide-body { padding: 4px 16px 14px 34px; font-size: 15px; line-height: 1.55; }
  .guide-body p { margin: 8px 0 0; }
  .guide-body ul { margin: 8px 0 0 18px; }
  .guide-body li { margin: 3px 0; }
  .guide-ex { background: var(--paper-pale); padding: 8px 10px; border-left: 4px solid var(--pen); }
  .guide-tip { background: var(--paper-pale); padding: 8px 10px; border-left: 4px solid var(--hl-green); }
  .guide-speeches { border-collapse: collapse; margin: 6px 0 4px; font-size: 14px; }
  .guide-speeches caption { text-align: left; font-weight: 800; padding-bottom: 4px; }
  .guide-speeches th { text-align: left; font-weight: 600; padding: 3px 24px 3px 0; border-bottom: 1px solid var(--rule); }
  .guide-speeches td { padding: 3px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .guide-h { margin: 18px 0 8px; font-size: 16px; }
  .guide-empty { padding: 12px 0; }
  .guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
  .guide-step { border: 2px solid var(--ink); background: #fff; padding: 12px 14px 14px; }
  .guide-level { font: 800 13px var(--font-body); color: var(--pen); }
  .guide-step h4 { margin: 2px 0 6px; font-size: 18px; }
  .guide-step ul { margin: 0 0 0 18px; font-size: 14.5px; line-height: 1.5; }
  #trial-guide { margin-bottom: 22px; }
  .learn-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
  .learn-tabs button { font: 800 15px var(--font-body); padding: 8px 16px; background: #fff; color: #000; border: 2px solid var(--ink); cursor: pointer; }
  .learn-tabs button.on { background: #000; color: var(--paper); }
  .study-lead, .trial-lead { margin: 0 0 12px; font-size: 15px; }
  .study-top { margin-bottom: 12px; }
  .study-streak { display: inline-block; font-family: var(--font-hand); font-size: 26px; color: var(--pen); }
  .deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
  .deck-card { background: #fff; border: 2px solid var(--ink); border-left-width: 10px; padding: 12px 14px 14px; }
  .deck-card h4 { margin: 0 0 2px; font-size: 20px; font-variation-settings: "wdth" 86; }
  .deck-blurb { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
  .deck-meta { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
  .deck-bar { height: 8px; border: 2px solid var(--ink); background: #fff; margin: 4px 0 10px; }
  .deck-bar i { display: block; height: 100%; background: var(--hl-green); }
  .deck-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .deck-actions .btn { padding: 6px 12px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
  .stage-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
  .stage-title { font-weight: 800; font-size: 15px; }
  .flash-count { font-size: 13px; font-weight: 800; margin: 4px 0 8px; color: var(--ink-2); }
  .flashcard { position: relative; display: block; width: 100%; min-height: 220px; padding: 26px 22px; background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); text-align: center; cursor: pointer; font: inherit; color: #000; }
  .flashcard .fc-face { display: block; font-size: clamp(24px, 4vw, 38px); font-weight: 900; font-variation-settings: "wdth" 84; line-height: 1.15; }
  .flashcard .fc-face.small { font-size: 18px; font-weight: 600; font-variation-settings: normal; line-height: 1.45; }
  .flashcard .fc-back { display: none; }
  .flashcard.flipped .fc-front { display: none; }
  .flashcard.flipped .fc-back { display: block; }
  .flashcard .fc-extra { display: block; margin-top: 10px; font-style: normal; font-size: 15px; font-weight: 500; color: var(--ink-2); }
  @keyframes flipin { from { transform: scaleX(.92); opacity: .4; } to { transform: none; opacity: 1; } }
  .flash-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 8px; }
  .flash-tools { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
  .q-card { background: #fff; border: 2px solid var(--ink); padding: 16px 18px 18px; }
  .q-label { font-size: 13px; font-weight: 800; text-transform: none; color: var(--ink-2); margin-bottom: 6px; }
  .q-setting { font-family: var(--font-hand); font-size: 22px; color: var(--pen); line-height: 1.1; margin-bottom: 4px; }
  .q-prompt { font-size: 24px; font-weight: 900; font-variation-settings: "wdth" 86; line-height: 1.2; margin: 4px 0 12px; }
  .q-prompt.small { font-size: 17px; font-weight: 600; font-variation-settings: normal; line-height: 1.45; }
  .q-prompt.scene { font-size: 19px; font-weight: 600; font-variation-settings: normal; line-height: 1.45; }
  .choices { display: grid; gap: 8px; }
  .choice { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; background: var(--paper-pale); border: 2px solid var(--ink); font: 600 15px/1.4 var(--font-body); color: #000; cursor: pointer; }
  .choice b { display: inline-block; min-width: 20px; height: 20px; text-align: center; background: #000; color: var(--paper); font-size: 12px; line-height: 20px; }
  .choice:hover:not(:disabled) { background: #fff; }
  .choice.right { background: var(--hl-green); }
  .choice.wrong { background: #FF6A5E; }
  .feedback { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .feedback:empty { display: none; }
  .feedback.ok { border-left: 6px solid var(--hl-green); padding-left: 10px; }
  .feedback.no { border-left: 6px solid var(--margin); padding-left: 10px; }
  .feedback .why { margin: 6px 0; }
  .study-done { text-align: center; padding: 14px 8px; }
  .study-done h3 { font-size: 28px; margin: 0 0 6px; }
  .study-done .missed { text-align: left; max-width: 640px; margin: 10px auto; padding-left: 20px; font-size: 14.5px; line-height: 1.5; }
  .match-hint { margin: 0 0 6px; font-size: 14px; }
  .match-time { font-family: var(--font-hand); font-size: 30px; color: var(--pen); margin-bottom: 8px; }
  .match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .tile { transition: transform .14s ease, background-color .16s ease, box-shadow .14s ease; animation: tileIn .32s ease-out backwards; animation-delay: calc(var(--i, 0) * 30ms); min-height: 74px; padding: 8px 10px; background: #fff; border: 2px solid var(--ink); font: 700 14px/1.3 var(--font-body); color: #000; cursor: pointer; }
  .tile:hover:not(.sel):not(.ok):not(.gone) { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
  .tile.sel { background: #FFE14D; transform: translateY(-2px) scale(1.04); box-shadow: 4px 4px 0 var(--ink); }
  .tile.ok { background: var(--hl-green); pointer-events: none; animation: tileOk .34s ease-in forwards; }
  .tile.bad { background: #FF6A5E; animation: shake .36s ease-in-out; }
  .tile.gone { visibility: hidden; }
  @keyframes shake { 15% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 65% { transform: translateX(-3px); } 85% { transform: translateX(2px); } }

  @keyframes tileIn { from { opacity: 0; transform: scale(.92) translateY(8px); } }
  @keyframes tileOk { 0% { transform: scale(1); } 35% { transform: scale(1.1); } 100% { transform: scale(.55); opacity: 0; } }
  @keyframes cardIn { from { opacity: 0; transform: translateX(var(--dx, 40px)); } }
  @keyframes cardOut { to { opacity: 0; transform: translateX(var(--dx, 90px)) rotate(var(--rot, 4deg)); } }
  @keyframes flipOut { to { transform: perspective(900px) rotateY(88deg); } }
  @keyframes flipIn { from { transform: perspective(900px) rotateY(-88deg); } to { transform: perspective(900px) rotateY(0); } }
  @keyframes barGrow { from { width: var(--from, 0%); } }
  @keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
  @keyframes popIn { 0% { opacity: 0; transform: scale(.92); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
  @keyframes fbIn { from { opacity: 0; transform: translateY(-6px); } }
  @keyframes choicePop { 40% { transform: scale(1.025); } }
  @keyframes openIn { from { opacity: 0; transform: translateY(-6px); } }
  @keyframes screenIn { from { opacity: 0; } }

  .flashcard { transition: transform .14s ease, box-shadow .14s ease; }
  .flashcard:hover { transform: translate(-1px, -1px); box-shadow: 8px 8px 0 var(--ink); }
  .flashcard.flip-out { animation: flipOut .12s ease-in forwards; }
  .flashcard.flip-in { animation: flipIn .15s ease-out; }
  .flashcard.card-in { animation: cardIn .24s ease-out; }
  .flashcard.card-out { animation: cardOut .17s ease-in forwards; pointer-events: none; }
  .deck-bar i { animation: barGrow .5s ease-out; }
  .deck-card { transition: transform .14s ease, box-shadow .14s ease; animation: tileIn .3s ease-out backwards; }
  .deck-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
  .deck-card:nth-child(2) { animation-delay: .04s; } .deck-card:nth-child(3) { animation-delay: .08s; } .deck-card:nth-child(4) { animation-delay: .12s; }
  .deck-card:nth-child(5) { animation-delay: .16s; } .deck-card:nth-child(6) { animation-delay: .2s; } .deck-card:nth-child(7) { animation-delay: .24s; }
  .q-card { animation: cardIn .24s ease-out; --dx: 24px; }
  .choice { transition: background-color .15s ease, transform .12s ease, box-shadow .12s ease; }
  .choice:hover:not(:disabled) { transform: translateX(3px); }
  .choice.right { animation: choicePop .3s ease-out; }
  .choice.wrong { animation: shake .36s ease-in-out; }
  .feedback.ok, .feedback.no { animation: fbIn .24s ease-out; }
  .study-done { animation: popIn .38s ease-out; }
  #learn-panel-study:not([hidden]), #learn-panel-library:not([hidden]), #learn-panel-vocab:not([hidden]), #learn-panel-debate:not([hidden]), #learn-panel-trial:not([hidden]) { animation: panelIn .24s ease-out; }
  .guide-item[open] > .guide-body { animation: openIn .22s ease-out; }
  .guide-item, .guide-pills button, .guide-step { transition: background-color .15s ease, transform .12s ease; }
  .guide-pills button:hover:not(.on) { transform: translateY(-1px); }
  .guide-step:hover { transform: translateY(-2px); }
  .screen.active { animation: screenIn .22s ease-out; }

  .trial-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
  .case-list { display: grid; gap: 8px; margin-bottom: 14px; }
  .case-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; text-align: left; padding: 10px 12px; background: #fff; border: 2px solid var(--ink); font: 500 14px/1.4 var(--font-body); color: #000; cursor: pointer; }
  .case-row span:last-child { grid-column: 2; color: var(--ink-2); }
  .case-row.on { background: var(--paper-pale); border-left-width: 10px; }
  .case-pill { font-size: 11px; font-weight: 900; padding: 1px 8px; border: 1.5px solid var(--ink); background: #fff; }
  .case-pill.civil { background: #C7A4FF; }
  .case-pill.criminal { background: #FFB4A8; }
  .case-file { background: #fff; border: 2px solid var(--ink); padding: 14px 16px; line-height: 1.5; font-size: 14.5px; }
  .case-file header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .case-file h3 { margin: 0; font-size: 26px; }
  .case-file h4 { margin: 14px 0 4px; font-size: 16px; border-bottom: 2px solid var(--ink); }
  .case-file ul { margin: 4px 0 6px; padding-left: 20px; }
  .case-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 24px; }
  .witness { margin-bottom: 8px; }
  .w-role { color: var(--ink-2); font-size: 13px; }
  .case-note { font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }
  .case-hints summary { cursor: pointer; font-weight: 800; margin-top: 10px; }
  .case-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .obj-sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
  .obj-item { background: #fff; border: 2px solid var(--ink); padding: 8px 10px; font-size: 14px; display: grid; gap: 2px; }
  .trial-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; padding: 8px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  .trial-tools[hidden] { display: none; }
  .obj-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
  .obj-label select { padding: 4px 6px; font-size: 14px; }
  .obj-count { font-family: var(--font-hand); font-size: 22px; color: var(--pen); }
  .tr-tag.objection { background: #7FD6D6; color: #000; }
  .voice-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; }
  .voice-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 2px solid var(--ink); background: #fff; font: 800 13px var(--font-body); }
  .voice-pill[hidden], .voice-row [hidden] { display: none; }
  .voice-pill.live { background: var(--hl-green); }
  .voice-pill.warn { background: #FFE14D; }
  .voice-dot { width: 9px; height: 9px; background: var(--ink); display: inline-block; }
  .voice-pill.live .voice-dot { animation: miclive 1s steps(2, end) infinite; }
  .voice-hear { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
  .voice-tip { text-align: center; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 0; }
  .live-who { font-family: var(--font-hand); font-size: 22px; color: var(--pen); margin-left: 10px; }
  #quiet-notes { position: fixed; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 70; pointer-events: none; }
  .quiet-note { background: rgba(255, 255, 255, 0.93); border-left: 5px solid var(--ink); padding: 5px 10px; font: 700 13px/1.35 var(--font-body); max-width: 320px; transition: opacity 0.3s; animation: qin 0.2s ease-out; }
  .quiet-note.good { border-left-color: var(--hl-green); }
  .quiet-note.bad { border-left-color: var(--margin); }
  .quiet-note.warn { border-left-color: var(--hl-orange); }
  @keyframes qin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  .rank-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 6px; background: #fff; border: 2px solid var(--ink); font: 800 13px var(--font-body); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
  .rank-chip:hover { background: var(--paper-pale); }
  .rank-chip:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
  .rank-badge { display: block; flex: none; }
  .rank-top { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
  .rank-tier { font: 900 34px/1 var(--font-body); }
  .rank-rating { font: 800 15px var(--font-body); margin-top: 4px; }
  .rank-record { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
  .rank-sub { font-size: 13.5px; color: var(--ink-2); margin: 6px 0; }
  .rank-bar { height: 14px; border: 2px solid var(--ink); background: #fff; }
  .rank-bar i { display: block; height: 100%; background: var(--hl-green); animation: barGrow .6s ease-out; }
  .rank-dots { display: flex; gap: 6px; }
  .rank-dots i { width: 26px; height: 14px; border: 2px solid var(--ink); background: #fff; }
  .rank-dots i.on { background: var(--hl-green); }
  .rank-how { margin: 10px 0 4px; font-size: 14px; }
  .rank-how summary { cursor: pointer; font-weight: 800; }
  .rank-how p { margin: 6px 0 0; line-height: 1.5; }
  .rank-h { margin: 14px 0 6px; font-size: 15px; }
  .rank-list, .rank-board { list-style: none; border: 2px solid var(--ink); background: #fff; }
  .rank-list li, .rank-board li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .rank-list li:last-child, .rank-board li:last-child { border-bottom: 0; }
  .rank-list li span, .rank-board li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rank-list li b { min-width: 52px; }
  .rank-list li.win b { color: var(--green); }
  .rank-list li.loss b { color: var(--red-pen); }
  .rank-list li em, .rank-board li em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
  .rank-list li small { color: var(--ink-3); min-width: 44px; text-align: right; }
  .rank-board li b { min-width: 22px; font-variant-numeric: tabular-nums; }
  .rank-opt { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
  .queue-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
  .queue-opt { display: block; position: relative; padding: 10px 12px 10px 38px; border: 2px solid var(--ink); background: #fff; cursor: pointer; }
  .queue-opt input { position: absolute; left: 12px; top: 13px; }
  .queue-opt b { display: block; font-size: 16px; }
  .queue-opt span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
  .queue-opt.on { background: var(--paper-pale); box-shadow: 3px 3px 0 var(--ink); }
  .queue-opt:focus-within { outline: 3px solid var(--pen); outline-offset: 2px; }
  .rank-flag { display: inline-block; margin: 4px 0 2px; padding: 1px 8px; border: 2px solid var(--ink); background: #fff; font: 800 12px var(--font-body); }
  .rank-flag.ranked { background: #FFE14D; }
  .rank-flag[hidden] { display: none; }
  #online-rank-result { margin: 0 0 16px; }
  #online-rank-result[hidden] { display: none; }
  .rank-result { animation: popIn .38s ease-out; padding: 14px 16px; background: #fff; border: 2px solid var(--ink); border-left-width: 10px; }
  .rank-result.win { border-left-color: var(--hl-green); }
  .rank-result.loss { border-left-color: var(--margin); }
  .rank-result.draw, .rank-result.void, .rank-result.pending, .rank-result.casual { border-left-color: var(--hl-orange); }
  .rank-result.casual { border-left-color: var(--hl-grey); }
  .rank-result.pending { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .rank-result p { margin: 6px 0 0; line-height: 1.5; }
  .rank-result-head { display: flex; align-items: center; gap: 12px; }
  .rank-result-head b { display: block; font: 900 28px/1.1 var(--font-body); }
  .rank-result-head span { display: block; font-size: 14px; color: var(--ink-2); font-weight: 700; }
  .rank-result-delta { margin-top: 8px; font: 800 20px var(--font-body); font-variant-numeric: tabular-nums; }
  .rank-result-delta em { font-style: normal; margin-left: 6px; color: var(--green); }
  .rank-result.loss .rank-result-delta em { color: var(--red-pen); }
  .rank-result-note { font-weight: 800; }
  .rank-result-why { font-size: 14px; color: var(--ink-2); }

  .agree-bar { margin: 0 0 16px; padding: 12px 14px; border: 2px solid var(--ink); border-left-width: 10px; border-left-color: #FFE14D; background: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; }
  .agree-bar[hidden] { display: none; }
  .agree-bar span { flex: 1 1 240px; }
  .rank-score-note { margin: -6px 0 14px; font-size: 13px; color: var(--ink-2); }
  .rank-score-note[hidden] { display: none; }
  .rank-rubric { width: 100%; max-width: 420px; margin-top: 10px; border-collapse: collapse; font-size: 14px; }
  .rank-rubric caption { text-align: left; font-weight: 800; padding-bottom: 4px; }
  .rank-rubric th { text-align: left; font-weight: 700; padding: 3px 8px 3px 0; }
  .rank-rubric td { padding: 3px 0; }
  .rank-rubric .tr-pips { white-space: nowrap; }

  .coach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
  .league-note { margin: 0 0 10px; font-size: 14.5px; }
  .league-created { margin-top: 14px; padding: 12px 14px; background: #fff; border: 2px solid var(--ink); border-left-width: 10px; border-left-color: var(--hl-green); }
  .league-created h4 { margin: 0 0 8px; font-size: 18px; }
  .lc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
  .lc-label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
  .lc-big { font: 900 28px var(--font-body); letter-spacing: 2px; }
  .lc-link, .lc-key code { font: 600 13px monospace; background: var(--paper-pale); padding: 2px 6px; word-break: break-all; }
  .lc-key { margin: 10px 0; padding: 8px 10px; background: #FFE14D; border: 2px dashed var(--ink); font-size: 14px; }
  .lc-warn { margin: 6px 0 0; font-size: 13px; }
  .lc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .league-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
  .league-head h3 { margin: 0; font-size: 28px; }
  .league-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .coach-on { font-family: var(--font-hand); font-size: 22px; color: var(--pen); }
  .league-h { margin: 12px 0 4px; font-size: 15px; }
  .week-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 6px 4px 0; }
  .week-bars .wk { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
  .week-bars .wk i { display: block; width: 100%; max-width: 38px; background: var(--pen); min-height: 2px; }
  .week-bars .wk span { font-size: 11px; font-weight: 800; margin-top: 4px; color: var(--ink-2); }
  .week-bars .wk b { font-size: 12px; order: -1; }
  .table-wrap { overflow-x: auto; }
  .league-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
  .league-table th, .league-table td { text-align: left; padding: 7px 10px; border-bottom: 1.5px solid var(--ink); }
  .league-table th { font-size: 12px; background: var(--paper-pale); }
  .league-table .n { text-align: right; font-variant-numeric: tabular-nums; }
  .assign-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 8px 10px; margin-bottom: 8px; background: #fff; border: 2px solid var(--ink); border-left-width: 8px; }
  .assign-item.past { opacity: 0.6; border-left-color: #999; }
  .assign-item .ai-main { display: grid; gap: 2px; font-size: 14px; }
  .assign-item small { color: var(--ink-2); font-weight: 700; }
  .assign-form { display: grid; gap: 6px; max-width: 560px; }
  .assign-banner { margin-top: 10px; padding: 10px 12px; background: #fff; border: 2px solid var(--ink); border-left: 10px solid var(--pen); display: grid; gap: 3px; font-size: 14px; }
  .assign-banner small { color: var(--ink-2); font-weight: 700; }
  .assign-banner .btn { justify-self: start; margin-top: 4px; }
  .lesson-lead { margin: 6px 0 10px; font-size: 15px; }
  .lesson-title { font-size: 22px; font-weight: 900; font-variation-settings: "wdth" 88; margin: 8px 0 4px; }
  .lesson-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 24px; }
  #lesson-card p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; }
  .optout-row { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 13.5px; margin: 0 0 12px; padding: 8px 10px; border: 2px dashed var(--ink); background: var(--paper-pale); }
  .claim-report { margin: 0 0 30px; }
  .claim-report:empty { display: none; }
  .rep-title { font-size: 26px; margin: 0 0 10px; font-variation-settings: "wdth" 86; }
  .rep-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  .rep-chip { padding: 2px 9px; font-size: 13px; font-weight: 800; background: var(--vc, var(--hl-grey)); color: #000; border: 2px solid var(--ink); }
  .rep-chip b { margin-left: 3px; }
  .rep-status { font-family: var(--font-hand); font-size: 24px; color: var(--pen); margin: 4px 0 10px; }
  .rep-verify { margin-bottom: 10px; }
  .rep-h { margin: 18px 0 8px; font-size: 18px; font-variation-settings: "wdth" 88; }
  .rep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
  .rep-list .cl-item { margin-bottom: 0; }
  .cl-exp { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
  .cl-cite { display: inline-block; margin-top: 5px; font-size: 13px; font-style: italic; color: var(--ink-3); }

  .fallacy-tray, .respect-tray { position: fixed; display: none; flex-direction: column; gap: 14px; z-index: 60; }
  .fallacy-tray { left: 16px; top: 118px; width: 310px; }
  .respect-tray { left: 16px; bottom: 16px; width: 320px; }
  .fallacy-tray.show, .respect-tray.show { display: flex; }
  .ftray-head { font-family: var(--font-hand); font-size: 28px; line-height: 1; color: var(--pen); padding: 0 4px; }
  .ftray-head .ftray-hint { font-size: 22px; }
  .ftray-item, .rtray-item {
    background: #fff;
    border: var(--bw) solid var(--ink);
    border-left-width: 14px;
    box-shadow: 5px 5px 0 var(--ink);
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    animation: noteIn 0.22s steps(4, end);
  }
  .ftray-item { border-left-color: var(--hl-orange); transform: rotate(-0.8deg); }
  .rtray-item { border-left-color: var(--pen); transform: rotate(0.6deg); }
  @keyframes noteIn { from { opacity: 0; transform: translateX(-14px) rotate(-3deg); } }
  .ftray-row1, .rtray-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
  .ftray-name, .rtray-name { font-size: 17px; font-weight: 900; font-variation-settings: "wdth" 86; color: #000; }
  .ftray-conf, .ftray-side, .rtray-hint { font-size: 13px; font-weight: 700; color: var(--ink-3); }
  .ftray-quote, .rtray-quote { font-style: italic; font-weight: 600; margin-bottom: 4px; }
  .ftray-exp, .rtray-exp, .rtray-rephrase { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
  .ftray-actions { display: flex; gap: 8px; }
  .rtray-actions { display: flex; justify-content: flex-end; }
  .ftray-btn { flex: 1; padding: 5px 8px; background: #fff; border: 2px solid var(--ink); font: 800 13px var(--font-body); cursor: pointer; }
  .ftray-btn:hover { background: var(--paper-deep); }
  .ftray-confirm:hover { background: var(--hl-orange); }

  .moderator-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 336px;
    max-height: 50vh;
    display: none;
    flex-direction: column;
    background: #fff;
    border: var(--bw) solid var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    z-index: 50;
  }
  .moderator-panel.show { display: flex; }
  .moderator-panel.collapsed .claim-log-body { display: none; }
  .mod-badge { display: inline-block; margin-left: 8px; padding: 0 8px; background: var(--paper); color: #000; font-size: 14px; font-weight: 900; }

  .modal-wrap { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; background: rgba(0, 0, 0, 0.62); }
  .modal-wrap.visible { display: flex; }
  .modal {
    width: 100%;
    max-width: 580px;
    max-height: 84vh;
    overflow-y: auto;
    padding: 28px 30px 30px;
    background: #fff;
    border: 4px solid var(--ink);
    box-shadow: 12px 12px 0 var(--paper);
  }
  .modal h2 { font-size: 36px; font-variation-settings: "wdth" 78; margin-bottom: 6px; }
  .modal-sub { font-size: 16px; color: var(--ink-2); margin-bottom: 20px; }
  .modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
  .tos-modal { max-width: 660px; }
  .tos-body { max-height: 50vh; overflow-y: auto; padding-right: 8px; margin-bottom: 20px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
  .tos-body h4 { font-size: 19px; font-variation-settings: "wdth" 88; margin: 18px 0 6px; color: #000; }
  .tos-body h4:first-child { margin-top: 0; }
  .tos-body p { margin-bottom: 6px; }
  .legal-note { font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 0 0 10px; }
  html:lang(en) .legal-note { display: none; }
  .tos-body ul { list-style: disc; margin: 0 0 8px; padding-left: 22px; }
  .tos-body li { margin-bottom: 4px; }
  .tos-body a { color: var(--pen); font-weight: 800; }

  .fallacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  .fallacy-item { padding: 11px 13px; background: #fff; border: 2px solid var(--ink); cursor: pointer; }
  .fallacy-item:hover { background: var(--hl-orange); }
  .fallacy-item h4 { font-size: 17px; font-variation-settings: "wdth" 88; margin-bottom: 3px; }
  .fallacy-item p { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); font-weight: 500; }
  .fallacy-item:hover p { color: #000; }
  .fallacy-item-learn { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--pen); }

  .toast-wrap { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 200; }
  .toast {
    max-width: 300px;
    padding: 8px 12px 8px 12px;
    background: #fff;
    border: var(--bw) solid var(--ink);
    border-left-width: 12px;
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 14px;
    font-weight: 700;
    animation: noteIn 0.2s steps(4, end);
  }
  .toast.success { border-left-color: var(--hl-green); }
  .toast.error { border-left-color: var(--margin); }
  .toast.warn { border-left-color: var(--hl-orange); }

  .cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #fff;
    border: var(--bw) solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    z-index: 90;
  }
  .cookie-text { flex: 1; min-width: 220px; font-size: 14.5px; line-height: 1.45; font-weight: 500; }
  .cookie-text a { color: var(--pen); font-weight: 800; }

  .results-hero { padding: 0 0 36px; margin-bottom: 36px; border-bottom: var(--bw) solid var(--ink); }
  .winner-banner { display: block; width: fit-content; padding: 3px 14px 4px; background: #000; color: var(--paper); font-size: 17px; font-weight: 900; margin-bottom: 18px; }
  .winner-name {
    display: inline;
    font-weight: 900;
    font-variation-settings: "wdth" 66;
    font-size: clamp(64px, 12vw, 168px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    background-image: linear-gradient(transparent 60%, var(--hl-green) 60%, var(--hl-green) 94%, transparent 94%);
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: mark 0.7s steps(10, end) both;
  }
  .results-hero { display: block; }
  .results-topic { margin-top: 22px; max-width: 70ch; font-size: 19px; line-height: 1.45; color: var(--ink-2); font-weight: 500; }

  .results-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 52px; }
  .result-card.winner { border-top-color: var(--margin); }
  .result-card h3 { font-size: 34px; font-variation-settings: "wdth" 80; margin-bottom: 4px; }
  .result-card .rc-side { font-family: var(--font-hand); font-size: 28px; line-height: 1; color: var(--pen); margin-bottom: 8px; }
  .result-card .big-score { font-family: var(--font-hand); font-size: 150px; line-height: 0.7; padding-top: 20px; margin-bottom: 20px; color: var(--pen); font-variant-numeric: tabular-nums; }
  .results-scores > .result-card:nth-child(2) .big-score, #online-card-b .big-score { color: var(--paper); }
  .results-scores > .result-card:nth-child(2) .rc-side { color: var(--paper); }

  .breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .breakdown-item { padding: 8px 6px 10px; text-align: center; border: 2px solid currentColor; }
  .breakdown-item .bi-val { font-family: var(--font-hand); font-size: 48px; line-height: 0.9; }
  .results-scores > .result-card:nth-child(2) .breakdown-item .bi-val,
  #online-card-b .breakdown-item .bi-val { color: var(--paper) !important; }
  .breakdown-item .bi-label { font-size: 14px; font-weight: 700; margin-top: 2px; }

  .verdict-card {
    position: relative;
    background: #fff;
    border: var(--bw) solid var(--ink);
    border-left: 16px double var(--margin);
    box-shadow: 7px 7px 0 var(--ink);
    padding: 22px 26px 24px 22px;
    margin: 0 0 40px;
  }
  .verdict-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .verdict-badge { padding: 2px 11px 3px; background: #000; color: var(--paper); border: 2px solid #000; font-size: 15px; font-weight: 900; flex-shrink: 0; }
  .verdict-head h3 { font-size: 22px; font-variation-settings: "wdth" 88; }
  .verdict-winner { font-size: 52px; font-weight: 900; font-variation-settings: "wdth" 72; line-height: 1; margin: 12px 0 12px; }
  .verdict-text { font-size: 17px; line-height: 1.6; color: var(--ink-2); font-weight: 500; max-width: 75ch; }
  .verdict-loading { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: var(--ink-2); }
  .spinner { width: 20px; height: 20px; border: 4px solid #000; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .transcript-log { margin: 48px 0 40px; }
  .transcript-round { padding: 14px 16px; margin-bottom: 14px; background: #fff; border: 2px solid var(--ink); }
  .transcript-round-head { font-family: var(--font-hand); font-size: 26px; line-height: 1; color: var(--pen); margin-bottom: 8px; }
  .transcript-quote { font-size: 17px; line-height: 1.55; font-weight: 500; margin-bottom: 10px; }
  .transcript-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .tr-tag { padding: 2px 9px; font-size: 14px; font-weight: 800; color: #000; border: 2px solid #000; }
  .tr-tag.fact { background: var(--hl-green); }
  .tr-tag.wrong { background: #FF6A5E; }
  .tr-tag.fallacy { background: var(--hl-orange); }
  .tr-tag-link { cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 2px; }

  .results-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: var(--bw) solid var(--ink); flex-wrap: wrap; }

  .adv-opts { margin: 10px 0 4px; }
  .adv-opts > summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
  .ai-config { display: none; margin-top: 16px; padding: 16px; background: var(--paper-pale); border: 2px dashed var(--ink); }
  .ai-config.visible { display: block; }

  .ph-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 18px; }
  .ph-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 12px; background: #fff; border: 2px solid var(--ink); font-size: 15px; font-weight: 600; }
  .ph-row.best { border-left: 12px solid var(--hl-green); }
  .ph-n { min-width: 84px; font-weight: 900; }
  .ph-score { font-family: var(--font-hand); font-size: 32px; line-height: 1; color: var(--pen); }
  .ph-stats { flex: 1; color: var(--ink-2); }
  .ph-date { font-size: 13px; color: var(--ink-3); }

  .fallacy-lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .fallacy-lib-card { padding: 16px 18px 18px; background: #fff; border: var(--bw) solid var(--ink); transition: box-shadow 0.3s; }
  .fallacy-lib-card h4 { font-size: 24px; font-variation-settings: "wdth" 82; margin-bottom: 6px; }
  .flib-desc { font-size: 15px; color: var(--ink-2); font-weight: 500; margin-bottom: 10px; }
  .flib-row { margin-top: 10px; }
  .flib-label { display: block; font-family: var(--font-hand); font-size: 26px; line-height: 1; color: var(--pen); margin-bottom: 2px; }
  .flib-row p { font-size: 15px; line-height: 1.5; font-weight: 500; }
  .flash-highlight { box-shadow: 8px 8px 0 var(--pen) !important; }

  .glossary-group { margin-bottom: 26px; }
  .glossary-group:last-child { margin-bottom: 0; }
  .glossary-cat { font-size: 22px; font-weight: 900; font-variation-settings: "wdth" 82; margin-bottom: 10px; }
  .glossary-list { display: flex; flex-direction: column; gap: 10px; }
  .glossary-term { display: flex; gap: 14px; padding: 11px 14px; background: #fff; border: 2px solid var(--ink); font-size: 15px; line-height: 1.5; }
  .gt-term { min-width: 200px; flex-shrink: 0; font-weight: 900; }
  .gt-def { color: var(--ink-2); font-weight: 500; }

  .online-room-code {
    text-align: center;
    margin: 18px 0;
    padding: 20px;
    background: #fff;
    border: 4px dashed var(--ink);
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 900;
    font-variation-settings: "wdth" 70;
    letter-spacing: 0.12em;
    color: var(--pen);
  }

  .upload-wrap { max-width: 920px; padding: 0 0 12px; }
  .upload-h1, .upload-wrap h1, .how-wrap h1 {
    font-size: clamp(44px, 6vw, 84px);
    font-variation-settings: "wdth" 72;
    line-height: 0.92;
    letter-spacing: -0.015em;
    max-width: 15ch;
    margin: 0 0 20px;
  }
  .upload-lead, .how-wrap > p.lead { font-family: var(--font-hand); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; color: var(--pen); max-width: 36ch; margin: 0 0 44px; transform: rotate(-0.8deg); transform-origin: left top; }
  .upload-card { margin-top: 44px; }
  .upload-drop { position: relative; padding: 40px 24px; text-align: center; background: #fff; border: 4px dashed var(--ink); cursor: pointer; transition: background 0.1s; }
  .upload-drop:hover, .upload-drop.dragover { background: var(--paper-pale); border-style: solid; }
  .upload-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .upload-icon { font-size: 40px; line-height: 1; margin-bottom: 10px; font-weight: 900; }
  .upload-cta { font-size: 24px; font-weight: 900; font-variation-settings: "wdth" 86; margin-bottom: 6px; }
  .upload-hint { max-width: 56ch; margin: 0 auto; font-size: 15px; line-height: 1.5; color: var(--ink-2); font-weight: 500; }
  .upload-meta { margin-top: 14px; padding: 10px 14px; background: var(--paper-pale); border: 2px solid var(--ink); font-size: 15px; line-height: 1.5; }
  .upload-note { margin: 0 0 16px; font-size: 16px; color: var(--ink-2); font-weight: 500; }
  .upload-progress { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
  .upload-step { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #fff; border: 2px solid var(--ink); font-size: 16px; font-weight: 700; color: var(--ink-2); }
  .upload-step.active { color: #000; border-width: var(--bw); }
  .upload-step.done { color: var(--green); }
  .upload-step.failed { color: var(--red-pen); border-color: var(--red-pen); }
  .upload-step .us-icon { width: 18px; text-align: center; font-weight: 900; }
  .upload-step.active .us-icon { animation: afcPulse 1s steps(2, end) infinite; }
  .upload-step .us-detail { margin-left: auto; font-size: 14px; color: var(--ink-3); }
  .upload-error { margin-top: 16px; padding: 12px 14px; background: #fff; border: var(--bw) solid var(--margin); border-left-width: 14px; color: var(--red-pen); font-size: 15px; font-weight: 700; line-height: 1.45; }

  .how-wrap { max-width: 920px; }
  .how-section { padding: 22px 26px 26px; margin-bottom: 30px; background: #fff; border: var(--bw) solid var(--ink); }
  .how-section h3 { display: flex; align-items: center; gap: 14px; font-size: 28px; font-variation-settings: "wdth" 80; margin-bottom: 12px; padding: 0; border: 0; }
  .how-section h3 .how-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 6px; background: #000; color: var(--paper); font-family: var(--font-hand); font-size: 34px; line-height: 1; }
  .how-section p, .how-section li { font-size: 16px; line-height: 1.65; color: var(--ink-2); font-weight: 500; }
  .how-section ol, .how-section ul { padding-left: 24px; margin-top: 8px; }
  .how-section li + li { margin-top: 6px; }
  .how-section code { padding: 1px 6px; background: var(--paper-pale); border: 1px solid #000; font-size: 14px; color: #000; }
  .how-section strong { color: #000; }
  .mode-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
  .mode-table th, .mode-table td { text-align: left; padding: 9px 12px; border: 2px solid var(--ink); vertical-align: top; }
  .mode-table th { background: #000; color: var(--paper); font-size: 15px; font-weight: 900; }
  .mode-table td { color: var(--ink-2); font-weight: 500; background: #fff; }
  .mode-table td b { color: #000; }

  .app-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 32px 26px; background: #000; color: var(--brand); }
  .footer-mark { font-size: 20px; font-weight: 900; font-variation-settings: "wdth" 88; color: var(--brand); }
  .footer-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: rgba(255, 233, 92, 0.75); }
  .footer-links a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
  .footer-links a:hover { background: var(--brand); color: #000; text-decoration: none; }
  .footer-sep { color: rgba(255, 233, 92, 0.4); }

  .icon { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
  svg { flex-shrink: 0; }

  .topic-list, .fc-results, .mode-preview, .claim-log-body, .tos-body, .modal { scrollbar-width: auto; scrollbar-color: #000 transparent; }
  .topic-list::-webkit-scrollbar, .fc-results::-webkit-scrollbar, .mode-preview::-webkit-scrollbar, .claim-log-body::-webkit-scrollbar, .tos-body::-webkit-scrollbar { width: 12px; }
  .topic-list::-webkit-scrollbar-thumb, .fc-results::-webkit-scrollbar-thumb, .mode-preview::-webkit-scrollbar-thumb, .claim-log-body::-webkit-scrollbar-thumb, .tos-body::-webkit-scrollbar-thumb { background: #000; border: 3px solid var(--paper); }

  @media (min-width: 1380px) {
    body:has(.claim-log.show) main { max-width: min(1220px, calc(100vw - 372px)); margin-left: auto; margin-right: 372px; }
  }

  @media (max-width: 900px) {
    .debate-layout, .results-scores { grid-template-columns: 1fr; gap: 36px; }
    .form-grid.two-col { grid-template-columns: 1fr; }
    .fallacy-lib-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 720px) {
    header.topbar { padding: 12px 16px 0; gap: 10px; }
    .logo-name { font-size: 21px; }
    #header-meta { gap: 12px; flex-wrap: wrap; }
    #header-meta > * + * { padding-left: 12px; }
    .topnav-btn { font-size: 15px; padding: 11px 16px 10px; }
    main { padding: 28px 18px 80px 40px; }
    main::before { left: 12px; }
    .stage { padding: 18px 16px 22px; box-shadow: 6px 6px 0 var(--ink); margin-bottom: 40px; }
    .debater-panel, .result-card { padding: 16px 16px 20px; box-shadow: 6px 6px 0 var(--ink); }
    #panel-b, #online-card-b, .results-scores > .result-card:nth-child(2) { box-shadow: 6px 6px 0 #fff; }
    .score, .result-card .big-score { font-size: 112px; }
    .score-controls { gap: 8px; }
    .debaters, .fallacy-list { grid-template-columns: 1fr; }
    .mode-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .start-row .btn-primary { font-size: 26px; min-height: 72px; }
    .claim-log, .moderator-panel { right: 10px; left: 10px; width: auto; top: auto; bottom: 10px; max-height: 42vh; }
    .fallacy-tray { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; }
    .respect-tray { left: 10px; right: 10px; width: auto; bottom: 10px; }
    .afc-banner { min-width: 0; width: calc(100vw - 28px); top: 104px; border-width: 3px; box-shadow: 5px 5px 0 var(--ink); }
    .afc-banner .afc-verdict { font-size: 20px; padding: 8px 10px; border-right-width: 3px; }
    .afc-banner .afc-body { padding: 8px 10px; }
    .afc-banner .afc-claim { font-size: 16px; }
    .afc-banner .afc-exp { font-size: 13px; }
    .afc-banner .afc-side { display: none; }
    .toast-wrap { bottom: 72px; right: 10px; left: 10px; align-items: flex-end; }
    .toast { max-width: 100%; }
    .glossary-term { flex-direction: column; gap: 2px; }
    .gt-term { min-width: 0; }
    .results-actions .btn { flex: 1; }
  }

  :is(#screen-debate, #online-active) .stage { background: transparent; border: 0; box-shadow: none; padding: 0; margin-bottom: 30px; }
  :is(#screen-debate, #online-active) .stage-head { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); }
  :is(#screen-debate, #online-active) .topic-display h2 { font-size: clamp(22px, 2.3vw, 30px); font-variation-settings: "wdth" 88; line-height: 1.15; max-width: 52ch; }
  :is(#screen-debate, #online-active) .mode-badge { background: transparent; color: var(--ink-2); padding: 0; margin-bottom: 4px; font-size: 14px; }
  :is(#screen-debate, #online-active) .phase-banner { background: transparent; border: 0; border-left: 4px solid var(--margin); padding: 0 0 0 12px; margin-bottom: 0; }
  :is(#screen-debate, #online-active) .phase-banner .pb-index { font-size: 24px; }
  :is(#screen-debate, #online-active) .phase-banner .pb-name { font-size: 18px; }
  :is(#screen-debate, #online-active) .round-pill { width: 24px; height: 24px; font-size: 12px; border-width: 1.5px; }

  :is(#screen-debate, #online-active) .timer-wrap { padding: 14px 0 0; max-width: 560px; margin: 0 auto; }
  :is(#screen-debate, #online-active) .timer-label { font-size: 16px; margin-bottom: 2px; }
  :is(#screen-debate, #online-active) .timer { font-size: clamp(76px, 11vw, 128px); margin-bottom: 14px; }
  :is(#screen-debate, #online-active) .timer-bar { height: 8px; border-width: 2px; margin-bottom: 18px; }
  :is(#screen-debate, #online-active) .timer-fill { background: var(--ink); }
  :is(#screen-debate, #online-active) .timer.warning ~ .timer-bar .timer-fill,
  :is(#screen-debate, #online-active) .timer-fill.warning { background: #C45F00; }
  :is(#screen-debate, #online-active) .timer.critical ~ .timer-bar .timer-fill { background: var(--margin); }

  :is(#screen-debate, #online-active) .controls { gap: 10px; }
  :is(#screen-debate, #online-active) .controls .btn { padding: 8px 16px; font-size: 14px; border-width: 2px; box-shadow: none; }
  :is(#screen-debate, #online-active) .controls .btn:hover { transform: none; background: var(--paper-pale); }
  :is(#screen-debate, #online-active) .controls .btn:active { transform: translateY(1px); }
  :is(#screen-debate, #online-active) .controls .btn-primary { background: #000; color: var(--paper); }
  :is(#screen-debate, #online-active) .controls .btn-danger { background: transparent; color: var(--red-pen); border-color: var(--red-pen); }
  :is(#screen-debate, #online-active) .controls .btn-danger:hover { background: var(--red-pen); color: #fff; }

  :is(#screen-debate, #online-active) .undo-tray { border: 0; background: transparent; padding: 0; margin-bottom: 18px; }
  :is(#screen-debate, #online-active) .undo-tray .undo-label { font-size: 22px; }
  :is(#screen-debate, #online-active) .undo-chip { border-width: 1.5px; font-size: 13px; padding: 3px 8px; }

  #screen-debate .debate-layout, #online-active .results-scores { gap: 0; margin-bottom: 30px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  :is(#screen-debate, #online-active) :is(.debater-panel, .result-card) {
    position: relative;
    background: transparent;
    color: var(--ink);
    border: 0;
    box-shadow: none;
    padding: 16px 26px 18px;
  }
  #screen-debate #panel-b, #online-active #online-card-b { background: transparent; color: var(--ink); border: 0; border-left: 2px solid var(--ink); box-shadow: none; }
  #screen-debate .debater-panel.active::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 5px; background: var(--margin); }

  :is(#screen-debate, #online-active) .panel-head h2, :is(#screen-debate, #online-active) .result-card h3 { font-size: 22px; font-variation-settings: "wdth" 84; }
  :is(#screen-debate, #online-active) .side-label, :is(#screen-debate, #online-active) .result-card .rc-side { font-size: 22px; margin-top: 2px; color: var(--pen); }
  :is(#screen-debate, #online-active) .score, :is(#screen-debate, #online-active) .result-card .big-score { font-size: 96px; line-height: 0.7; padding-top: 18px; margin-bottom: 14px; color: var(--pen); }
  #screen-debate .score { margin-bottom: 0; }

  :is(#screen-debate, #online-active) .score-controls { gap: 8px; margin-top: 8px; }
  :is(#screen-debate, #online-active) .score-btn {
    position: relative;
    min-height: 44px;
    flex-direction: row;
    gap: 6px;
    padding: 6px 10px 9px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    box-shadow: inset 0 -5px 0 var(--bar, #000);
    transition: background 0.1s;
  }
  :is(#screen-debate, #online-active) .score-btn.plus { --bar: var(--hl-green); background: #fff; color: #000; }
  :is(#screen-debate, #online-active) .score-btn.minus { --bar: var(--margin); background: #fff; color: #000; }
  :is(#screen-debate, #online-active) .score-btn.fallacy { --bar: var(--hl-orange); background: #fff; color: #000; }
  :is(#screen-debate, #online-active) .score-btn:hover { transform: none; background: var(--paper-pale); box-shadow: inset 0 -5px 0 var(--bar, #000); }
  :is(#screen-debate, #online-active) .score-btn:active { transform: translateY(1px); box-shadow: inset 0 -5px 0 var(--bar, #000); }
  :is(#screen-debate, #online-active) .score-btn .val { font-size: 15px; }
  :is(#screen-debate, #online-active) .score-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  :is(#screen-debate, #online-active) .panel-stats { display: flex; gap: 22px; justify-content: flex-start; margin-top: 12px; padding-top: 0; border-top: 0; font-size: 14px; text-align: left; }
  :is(#screen-debate, #online-active) .panel-stats > div { display: flex; align-items: baseline; gap: 6px; }
  :is(#screen-debate, #online-active) .panel-stats .s-val { display: inline; font-size: 30px; margin: 0; color: var(--pen); }

  :is(#screen-debate, #online-active) .subtitles-wrap { margin-bottom: 28px; }
  :is(#screen-debate, #online-active) .subtitles-head { margin-bottom: 8px; padding-bottom: 0; border-bottom: 0; }
  :is(#screen-debate, #online-active) .sub-head-left h3 { font-size: 18px; font-variation-settings: "wdth" 88; }
  :is(#screen-debate, #online-active) .mic-indicator { width: 12px; height: 12px; border-width: 1.5px; }
  :is(#screen-debate, #online-active) .subtitles {
    min-height: 92px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 0;
    border-left: 4px solid var(--pen);
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 500;
    line-height: 1.5;
  }
  :is(#screen-debate, #online-active) .subtitles.empty { font-size: 16px; }
  .mic-engine { font-family: var(--font-hand); font-size: 22px; line-height: 1; color: var(--pen); margin-left: 6px; }
  .mic-engine:empty { display: none; }
  :is(#screen-debate, #online-active) .subtitles-head .btn { padding: 4px 10px; font-size: 13px; border-width: 2px; box-shadow: none; }

  #screen-debate .factcheck { margin-bottom: 28px; }
  #screen-debate .factcheck-head { margin-bottom: 8px; padding-bottom: 0; border-bottom: 0; }
  #screen-debate .factcheck h3 { font-size: 18px; font-variation-settings: "wdth" 88; }
  #screen-debate .fc-note { font-size: 22px; }
  #screen-debate .fc-search { gap: 8px; margin-bottom: 8px; }
  #screen-debate .fc-search input { padding: 8px 12px; font-size: 16px; border-width: 2px; }
  #screen-debate .fc-search .btn { padding: 8px 14px; font-size: 14px; border-width: 2px; box-shadow: none; }
  #screen-debate .factcheck > div[data-i18n] { font-size: 13px !important; margin: 0 0 10px !important; color: var(--ink-3) !important; }
  #screen-debate .fc-results { gap: 8px; }
  #screen-debate .fc-result { padding: 10px 14px; background: rgba(255, 255, 255, 0.6); border: 0; border-left: 4px solid var(--ink); }
  #screen-debate .fc-result h4 { font-size: 16px; }
  #screen-debate .fc-result p { font-size: 14px; }
  #screen-debate .fc-empty { padding: 10px 0; text-align: left; font-size: 14px; }

  .claim-log { border-width: 2px; box-shadow: none; }
  .claim-log-head { padding: 8px 12px; }
  .claim-log-head h4 { font-size: 18px; }
  .cl-item { border-width: 1.5px; border-left-width: 8px; }
  .ftray-item, .rtray-item { box-shadow: 3px 3px 0 var(--ink); transform: none; border-width: 2px; border-left-width: 10px; }
  .toast { box-shadow: 3px 3px 0 var(--ink); }

  @media (max-width: 900px) {
    #screen-debate .debate-layout, #online-active .results-scores { grid-template-columns: 1fr; }
    #screen-debate #panel-b, #online-active #online-card-b { border-left: 0; border-top: 2px solid var(--ink); }
  }
  @media (max-width: 720px) {
    :is(#screen-debate, #online-active) :is(.debater-panel, .result-card) { padding: 14px 4px 16px; }
    :is(#screen-debate, #online-active) .timer { font-size: clamp(64px, 22vw, 96px); }
    :is(#screen-debate, #online-active) .score, :is(#screen-debate, #online-active) .result-card .big-score { font-size: 80px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
