:root {
    --bg: #050a12;
    --bg-deep: #03070d;
    --panel: rgba(11, 22, 36, 0.78);
    --panel-strong: rgba(13, 27, 44, 0.94);
    --border: rgba(125, 211, 252, 0.18);
    --border-hot: rgba(249, 115, 22, 0.45);
    --ice: #38bdf8;
    --ice-bright: #bae6fd;
    --ice-glow: rgba(56, 189, 248, 0.25);
    --ember: #f97316;
    --ember-bright: #fdba74;
    --ember-glow: rgba(249, 115, 22, 0.28);
    --silver: #cbd5e1;
    --muted: #7f95ad;
    --text: #e6f2ff;
    --yes: #22d3ee;
    --no: #fb7185;
    --abstain: #64748b;
    --lock: #94a3b8;
    --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    background:
      radial-gradient(ellipse 90% 55% at 50% -10%, rgba(56, 189, 248, 0.16), transparent 65%),
      radial-gradient(ellipse 60% 40% at 88% 15%, rgba(249, 115, 22, 0.10), transparent 60%),
      linear-gradient(180deg, #060d18 0%, #03070d 100%);
    color: var(--text);
    font-family: var(--sans);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
  }
  .frost-grid {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
      linear-gradient(rgba(125, 211, 252, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(125, 211, 252, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 25%, black 35%, transparent 85%);
  }
  .wrap { position: relative; z-index: 1; max-width: 1340px; margin: 0 auto; padding: 20px 22px 48px; }

  /* Top Command Header */
  .topbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 18px; border-radius: 16px;
    background: var(--panel); border: 1px solid var(--border);
    backdrop-filter: blur(16px); margin-bottom: 18px;
  }
  .brand-block { display: flex; align-items: center; gap: 12px; }
  .seal {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(56,189,248,0.22), rgba(249,115,22,0.18));
    border: 1px solid rgba(186,230,253,0.35); color: var(--ice-bright);
    font-family: var(--mono); font-weight: 800; font-size: 16px; letter-spacing: 0.04em;
    box-shadow: 0 0 24px rgba(56,189,248,0.22);
  }
  .brand-title { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
  .tag {
    font-size: 11px; font-family: var(--mono); padding: 2px 8px; border-radius: 999px;
    background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.35); color: var(--ice-bright);
  }
  .tag-ember { background: rgba(249,115,22,0.16); border-color: rgba(249,115,22,0.45); color: var(--ember-bright); }
  .brand-sub { font-size: 12px; color: var(--muted); }
  .top-metrics { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .pill-stat {
    padding: 7px 12px; border-radius: 10px; background: rgba(5, 12, 22, 0.72);
    border: 1px solid rgba(125,211,252,0.14); font-size: 12px;
  }
  .pill-stat span { color: var(--muted); margin-right: 6px; }
  .pill-stat strong { font-family: var(--mono); color: var(--ice-bright); }
  .wallet-btn {
    cursor: pointer; border: 1px solid rgba(249,115,22,0.55); color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 13px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.28);
  }
  .wallet-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(249,115,22,0.42); }
  .wallet-btn.connected {
    background: linear-gradient(135deg, rgba(14,116,144,0.65), rgba(30,64,175,0.65));
    border-color: rgba(56,189,248,0.55); box-shadow: 0 0 18px rgba(56,189,248,0.22);
  }

  /* Steward Executive Bar */
  .steward-bar {
    display: grid; grid-template-columns: 1.35fr 1fr 1.25fr; gap: 14px;
    margin-bottom: 18px;
  }
  .card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
    padding: 16px 18px; backdrop-filter: blur(16px); position: relative; overflow: hidden;
  }
  .card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(186,230,253,0.45), transparent);
  }
  .eyebrow {
    font-size: 11px; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ice); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between;
  }
  .steward-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
  .steward-meta { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
  .meter-track {
    height: 9px; border-radius: 999px; background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(125,211,252,0.18); overflow: hidden; margin: 9px 0 6px;
  }
  .meter-fill {
    height: 100%; border-radius: 999px; transition: width 0.45s cubic-bezier(.2,.8,.2,1), background 0.3s;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  }
  .meter-fill.warn { background: linear-gradient(90deg, #f97316, #fb7185); }
  .steward-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .btn-ghost {
    cursor: pointer; padding: 7px 11px; border-radius: 9px; font-size: 12px; font-weight: 600;
    background: rgba(15, 31, 51, 0.85); color: var(--ice-bright);
    border: 1px solid rgba(56, 189, 248, 0.30); transition: all 0.15s;
  }
  .btn-ghost:hover:not(:disabled) { border-color: var(--ice); background: rgba(56, 189, 248, 0.16); }
  .btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }
  .btn-danger {
    cursor: pointer; padding: 7px 11px; border-radius: 9px; font-size: 12px; font-weight: 600;
    background: rgba(159, 18, 57, 0.25); color: #fda4af;
    border: 1px solid rgba(251, 113, 133, 0.45); transition: all 0.15s;
  }
  .btn-danger:hover { background: rgba(225, 29, 72, 0.32); border-color: #fb7185; }
  .promise-list { list-style: none; display: grid; gap: 6px; margin-top: 6px; font-size: 12.5px; }
  .promise-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 6px 10px; border-radius: 8px; background: rgba(4, 11, 20, 0.65);
    border: 1px solid rgba(125,211,252,0.12);
  }
  .badge-ok { color: #34d399; font-family: var(--mono); font-size: 11px; }
  .badge-pend { color: var(--ember-bright); font-family: var(--mono); font-size: 11px; }

  /* Main Split: Council Chamber + Active Proposal Console */
  .chamber-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; margin-bottom: 18px; }
  .hemicycle-box { position: relative; display: flex; flex-direction: column; align-items: center; }
  .chamber-svg-wrap { position: relative; width: 100%; max-width: 680px; margin: 4px auto 8px; }
  svg#hemicycle { width: 100%; height: auto; display: block; overflow: visible; }
  .seat {
    cursor: pointer; transition: transform 0.22s ease, fill 0.28s ease, stroke 0.28s ease, opacity 0.2s;
    transform-box: fill-box; transform-origin: center;
  }
  .seat:hover { transform: scale(1.45); }
  .seat.pulse { animation: seatPop 0.36s ease; }
  @keyframes seatPop { 0% { transform: scale(1); } 50% { transform: scale(1.65); } 100% { transform: scale(1); } }
  .seat-tooltip {
    position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -115%);
    background: rgba(3, 9, 18, 0.96); border: 1px solid rgba(56,189,248,0.45);
    border-radius: 10px; padding: 8px 11px; font-size: 12px; white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.65); transition: opacity 0.12s; z-index: 20;
  }
  .stamp-overlay {
    position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%) scale(1.9) rotate(-10deg);
    opacity: 0; pointer-events: none; z-index: 15;
    padding: 10px 24px; border-radius: 10px; font-family: var(--mono); font-weight: 900;
    font-size: 24px; letter-spacing: 0.16em; text-transform: uppercase;
    border: 3px solid currentColor; background: rgba(3, 8, 16, 0.88);
    box-shadow: 0 0 40px currentColor; transition: all 0.28s cubic-bezier(.18,.89,.32,1.28);
  }
  .stamp-overlay.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-7deg); }
  .stamp-overlay.passed { color: var(--yes); }
  .stamp-overlay.rejected { color: var(--no); }
  .tally-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 6px;
  }
  .tally-box {
    padding: 10px 12px; border-radius: 12px; background: rgba(4, 10, 19, 0.78);
    border: 1px solid rgba(125,211,252,0.14); text-align: center;
  }
  .tally-box .num { font-size: 24px; font-weight: 800; font-family: var(--mono); }
  .tally-box .lbl { font-size: 11.5px; color: var(--muted); }
  .faction-legend {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    margin-top: 12px; font-size: 12px; color: var(--silver);
  }
  .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Proposal Console & Negotiation */
  .proposal-card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
  .prop-head h2 { font-size: 19px; margin-bottom: 4px; color: #f8fafc; }
  .prop-code { font-family: var(--mono); font-size: 11.5px; color: var(--ember-bright); }
  .prop-desc { font-size: 13px; color: #b7cde2; margin-top: 8px; }
  .param-diff {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 10px; background: rgba(3, 9, 18, 0.8);
    border: 1px solid rgba(56,189,248,0.2); font-family: var(--mono); font-size: 12.5px; margin-top: 10px;
  }
  .param-diff .old { color: var(--muted); }
  .param-diff .arrow { color: var(--ember); font-weight: 700; }
  .param-diff .new { color: var(--ice-bright); text-align: right; font-weight: 700; }
  .threshold-row {
    display: flex; justify-content: space-between; font-size: 12px; color: var(--muted);
    margin-top: 8px; font-family: var(--mono);
  }
  .neg-box {
    padding: 11px 12px; border-radius: 12px; background: rgba(249, 115, 22, 0.07);
    border: 1px dashed rgba(249, 115, 22, 0.35);
  }
  .neg-title { font-size: 12px; font-weight: 700; color: var(--ember-bright); margin-bottom: 6px; }
  .neg-btns { display: flex; flex-wrap: wrap; gap: 7px; }
  .btn-primary {
    width: 100%; cursor: pointer; padding: 12px 16px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #dc2626 100%);
    color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.06em;
    box-shadow: 0 8px 26px rgba(249, 115, 22, 0.35); transition: transform 0.15s, filter 0.15s;
  }
  .btn-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
  .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
  .user-vote-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 11px; border-radius: 10px; background: rgba(14,165,233,0.08);
    border: 1px solid rgba(56,189,248,0.28); font-size: 12px;
  }
  .vote-choice { display: flex; gap: 6px; }
  .v-btn {
    cursor: pointer; padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 700;
    border: 1px solid rgba(148,163,184,0.3); background: rgba(15,23,42,0.8); color: var(--silver);
  }
  .v-btn.active-yes { background: rgba(34,211,238,0.22); border-color: var(--yes); color: #cffafe; }
  .v-btn.active-no { background: rgba(251,113,133,0.22); border-color: var(--no); color: #ffe4e6; }
  .log-line {
    font-family: var(--mono); font-size: 11.5px; color: var(--ice-bright); min-height: 18px;
    padding: 6px 10px; border-radius: 8px; background: rgba(2, 6, 14, 0.72);
    border-left: 3px solid var(--ice);
  }

  /* Book of Laws */
  .laws-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .laws-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .tab-btn {
    cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: rgba(8, 17, 30, 0.85); color: var(--muted); border: 1px solid rgba(125,211,252,0.16);
    transition: all 0.15s;
  }
  .tab-btn.active {
    background: rgba(56, 189, 248, 0.18); color: var(--ice-bright); border-color: var(--ice);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.22);
  }
  .laws-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
  .law-item {
    padding: 14px 15px; border-radius: 13px; background: rgba(6, 14, 25, 0.82);
    border: 1px solid rgba(125,211,252,0.16); display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
    transition: border-color 0.15s, transform 0.15s;
  }
  .law-item:hover { border-color: rgba(56,189,248,0.42); transform: translateY(-2px); }
  .law-item.immutable {
    background: linear-gradient(155deg, rgba(15, 29, 48, 0.76), rgba(6, 12, 22, 0.92));
    border-color: rgba(148, 163, 184, 0.35);
  }
  .law-item.selected { border-color: var(--ember); box-shadow: 0 0 22px rgba(249, 115, 22, 0.18); }
  .law-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .law-title { font-size: 14.5px; font-weight: 700; color: #f1f5f9; }
  .law-val { font-family: var(--mono); font-size: 12px; color: var(--ice-bright); margin-top: 4px; }
  .law-note { font-size: 12px; color: var(--muted); }
  .law-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(125,211,252,0.1); }
  .lock-pill {
    font-family: var(--mono); font-size: 11px; color: #cbd5e1;
    padding: 3px 8px; border-radius: 6px; background: rgba(100,116,139,0.22); border: 1px solid rgba(148,163,184,0.35);
  }

  @media (max-width: 1020px) {
    .steward-bar, .chamber-grid, .laws-grid { grid-template-columns: 1fr; }
  }

  /* High-Immersion Frost-Brutalist First-Person Council Entrance (100% Original Pure Code) */
  .intro-overlay {
    position: fixed; inset: 0; z-index: 9999; overflow: hidden;
    background: #02050a;
    display: flex; align-items: center; justify-content: center;
    perspective: 1100px;
    transition: opacity 0.85s cubic-bezier(.22,1,.36,1), transform 0.85s cubic-bezier(.22,1,.36,1);
  }
  .intro-overlay.is-hidden { opacity: 0; pointer-events: none; transform: scale(1.04); }
  .intro-overlay.is-gone { display: none; }
  canvas#intro-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
  canvas#intro-fg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 6; pointer-events: none; }

  .frost-vignette {
    position: absolute; inset: 0; z-index: 7; pointer-events: none;
    background:
      radial-gradient(ellipse 74% 68% at 50% 50%, transparent 45%, rgba(2, 8, 18, 0.72) 82%, rgba(14, 42, 68, 0.92) 100%);
    box-shadow: inset 0 0 90px rgba(186, 230, 253, 0.16), inset 0 0 180px rgba(2, 6, 13, 0.92);
    transition: opacity 1.1s ease;
  }
  .cinema-bar {
    position: absolute; left: 0; right: 0; height: 9.5vh; z-index: 8; pointer-events: none;
    background: #010306; border-color: rgba(125,211,252,0.14);
    transition: transform 0.95s cubic-bezier(.22,1,.36,1);
  }
  .cinema-bar.top { top: 0; border-bottom: 1px solid rgba(125,211,252,0.14); }
  .cinema-bar.bot { bottom: 0; border-top: 1px solid rgba(125,211,252,0.14); }
  .intro-overlay.phase-land .cinema-bar.top { transform: translateY(-105%); }
  .intro-overlay.phase-land .cinema-bar.bot { transform: translateY(105%); }

  .vault-stage {
    position: absolute; inset: 0; z-index: 3; transform-style: preserve-3d;
    transition: transform 2.2s cubic-bezier(.22,.85,.25,1);
  }
  .intro-overlay.phase-corridor .vault-stage { transform: translateZ(340px) scale(1.18); }

  .vault-seam-glow {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(56,189,248,0.2), rgba(251,146,60,0.95) 48%, rgba(255,247,237,1) 52%, rgba(56,189,248,0.85) 75%, transparent);
    box-shadow: 0 0 28px 6px rgba(249,115,22,0.45), 0 0 70px 16px rgba(56,189,248,0.30);
    opacity: 0.55; animation: seamBreathe 2.8s ease-in-out infinite;
    transition: width 1.2s ease, opacity 0.7s ease; pointer-events: none; z-index: 2;
  }
  @keyframes seamBreathe { 0%,100% { opacity: 0.42; } 50% { opacity: 0.88; } }
  .intro-overlay.phase-unlock .vault-seam-glow { opacity: 1; width: 16px; animation: none; }
  .intro-overlay.phase-corridor .vault-seam-glow { opacity: 0.55; width: 46vw; filter: blur(36px); animation: none; }
  .intro-overlay.phase-chamber .vault-seam-glow { opacity: 0; width: 100vw; }

  .vault-door {
    position: absolute; top: 0; bottom: 0; width: 50.35%; z-index: 4;
    background:
      radial-gradient(circle at 100% 50%, rgba(249,115,22,0.12), transparent 36%),
      repeating-linear-gradient(180deg, rgba(186,230,253,0.04) 0 1px, rgba(0,0,0,0.35) 2px 4px, transparent 4px 54px),
      linear-gradient(90deg, #040911 0%, #0b1625 65%, #112033 96%, #1f334a 100%);
    box-shadow: inset 0 0 90px rgba(0,0,0,0.92), 0 0 60px rgba(0,0,0,0.98);
    transition: transform 1.65s cubic-bezier(.55,0,.18,1);
    backface-visibility: hidden;
  }
  .vault-door.right {
    right: 0; transform-origin: right center; border-left: 3px solid rgba(148,163,184,0.35);
    background:
      radial-gradient(circle at 0% 50%, rgba(249,115,22,0.12), transparent 36%),
      repeating-linear-gradient(180deg, rgba(186,230,253,0.04) 0 1px, rgba(0,0,0,0.35) 2px 4px, transparent 4px 54px),
      linear-gradient(270deg, #040911 0%, #0b1625 65%, #112033 96%, #1f334a 100%);
  }
  .vault-door.left { left: 0; transform-origin: left center; border-right: 3px solid rgba(148,163,184,0.35); }
  .vault-door::before {
    content: ""; position: absolute; top: 11vh; bottom: 11vh; left: 28px; right: 28px;
    border: 2px solid rgba(125,211,252,0.12);
    box-shadow: inset 0 0 0 10px rgba(2,6,13,0.55), inset 0 0 0 11px rgba(148,163,184,0.09);
  }
  .vault-door::after {
    content: ""; position: absolute; top: 44%; height: 12%; width: 42px;
    background: linear-gradient(180deg, #334155, #0f172a 50%, #334155);
    border: 1px solid rgba(186,230,253,0.28);
  }
  .vault-door.left::after { right: 8px; }
  .vault-door.right::after { left: 8px; }
  .intro-overlay.phase-corridor .vault-door.left { transform: translateX(-96%) rotateY(-34deg); }
  .intro-overlay.phase-corridor .vault-door.right { transform: translateX(96%) rotateY(34deg); }

  .intro-hud {
    position: absolute; left: 50%; bottom: 4.2vh; transform: translateX(-50%); z-index: 10;
    width: min(360px, 60vw);
  }
  .intro-progress { width: 100%; height: 2px; background: rgba(148,163,184,0.18); border-radius: 99px; overflow: hidden; }
  .intro-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #38bdf8, #f97316); transition: width 0.35s linear; }
  .intro-skip {
    position: absolute; top: 2.6vh; right: 24px; z-index: 10; cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--mono); font-size: 14px; line-height: 1;
    background: rgba(8, 17, 30, 0.65); color: rgba(186,230,253,0.82);
    border: 1px solid rgba(125,211,252,0.28); backdrop-filter: blur(8px); transition: all 0.15s;
  }
  .intro-skip:hover { background: rgba(56,189,248,0.22); border-color: var(--ice); color: #fff; }
  .wrap { transition: transform 0.95s cubic-bezier(.22,1,.36,1), filter 0.85s ease; }
  body.intro-playing .wrap { transform: scale(0.94); filter: blur(6px) brightness(0.45); }

  @media (prefers-reduced-motion: reduce) {
    .intro-overlay { display: none !important; }
    body.intro-playing .wrap { transform: none; filter: none; }
  }
/* Static presentation from the prototype, kept in the external stylesheet. */
#trust-pct { color: var(--ice-bright); }
#trust-fill { width: 68%; }
.charter-note { margin-top: 8px; color: #93c5fd; }
.hemicycle-box > .eyebrow { width: 100%; }
#t-yes { color: var(--yes); }
#t-no { color: var(--no); }
#t-abs { color: var(--silver); }
.dot.preservation { background: #38bdf8; }
.dot.expansion { background: #f97316; }
.dot.vigilance { background: #cbd5e1; }
.laws-head .eyebrow { margin-bottom: 2px; }
.laws-intro { font-size: 13px; color: var(--muted); }
.law-item .law-val + .law-note { margin-top: 6px; }
.council-languages { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 3px; font-size: 12px; }
.council-languages a { color: var(--muted); text-decoration: none; }
.council-languages a[aria-current], .council-languages a:hover { color: var(--ice-bright); text-decoration: underline; text-underline-offset: 3px; }
.brand-block, .brand-block > div, .steward-bar > *, .chamber-grid > *, .laws-grid > * { min-width: 0; }
.seal { flex: 0 0 42px; }
.brand-title, .steward-name { flex-wrap: wrap; }
.eyebrow, .param-diff, .threshold-row, .law-foot, .user-vote-bar, .stamp-overlay { overflow-wrap: anywhere; }
.seat-tooltip { max-width: min(240px, 90%); white-space: normal; overflow-wrap: break-word; }
.v-btn:disabled { opacity: .55; cursor: not-allowed; }
.seat:focus-visible { stroke: var(--ice-bright); stroke-width: 2.5; }
[hidden] { display: none !important; }
#council-live { display: grid; gap: 14px; margin-bottom: 14px; }
#council-live, .council-drawer { overflow-wrap: anywhere; }
#council-live > *, .council-live-grid > *, .council-field { min-width: 0; }
.council-top-note { flex-basis: 100%; min-width: 0; color: var(--ice-bright); font-size: .85rem; overflow-wrap: anywhere; }
#council-agenda-right, .council-actions, .council-stats {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.council-agenda-badge {
  color: #fef08a; border: 1px solid #a4772f; border-radius: 8px;
  padding: 5px 10px; background: rgba(180, 125, 21, .2); font-weight: 650;
}
.council-stats .pill-stat { min-width: 0; max-width: 100%; }
.council-stats .pill-stat strong { overflow-wrap: anywhere; }
.council-live-grid { margin-bottom: 0; align-items: start; }
.council-bill, .council-chamber, .council-personal, .council-pledges, .council-form {
  display: grid; gap: 10px; align-content: start;
}
.council-muted, .council-seat-info, .council-hash { color: var(--muted); font-size: .85rem; }
.council-evidence { color: var(--ice-bright); }
.council-pledge {
  display: grid; gap: 5px; padding: 10px; margin: 4px 0;
  border: 1px solid var(--line, rgba(125, 211, 252, .24)); border-radius: 8px;
  background: rgba(11, 25, 40, .68);
}
.council-more summary, .council-admin-section summary { cursor: pointer; color: var(--ice-bright); }
.council-list { padding-inline-start: 1.3rem; }
.council-list li { padding-block: 3px; }
#council-live-seats { display: block; width: 100%; height: auto; }
#council-live-seats circle { transform-box: fill-box; transform-origin: center; cursor: pointer; }
#council-live-seats .pulse { animation: seatPop .36s ease; }
.council-real-seat { stroke: #fde047; stroke-width: 2.5; }
.council-real-seat:focus-visible { outline: none; stroke: #fff4b0; stroke-width: 4; }
.council-yes { fill: #22d3ee; }
.council-no { fill: #fb7185; }
.council-abstain { fill: #64748b; }
.council-estimate-seat { fill-opacity: .28; stroke-width: 1; stroke-dasharray: 2 2; }
.council-preservation { fill: #38bdf8; stroke: #38bdf8; }
.council-expansion { fill: #f97316; stroke: #f97316; }
.council-vigilance { fill: #cbd5e1; stroke: #cbd5e1; }
.council-estimate-yes { fill-opacity: .7; }
.council-real-key::before, .council-estimate-key::before {
  content: ''; display: inline-block; width: .65em; height: .65em;
  border: 1px solid; border-radius: 50%; margin-inline-end: .4em;
}
.council-real-key::before { border-color: #fde047; }
.council-estimate-key::before { border-style: dashed; color: var(--ice-bright); }
.council-field { display: grid; gap: 4px; color: var(--ice-bright); font-size: .88rem; }
.council-field > :is(input, select, textarea) {
  box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%;
  background: #081420; color: #e2e8f0; border: 1px solid #355273;
  border-radius: 6px; padding: 7px 8px; font: inherit; color-scheme: dark;
}
.council-field textarea { resize: vertical; }
.council-submit { justify-self: start; }
.council-drawer {
  box-sizing: border-box; position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(720px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  padding: clamp(12px, 3vw, 25px); overflow: auto; overscroll-behavior: contain;
  background: #0a1523; color: #e2e8f0; border: 1px solid #355273;
}
.council-drawer::backdrop { background: rgba(1, 7, 13, .76); }
.council-drawer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.council-drawer-feedback { min-height: 1.4em; color: var(--ice-bright); margin: 8px 0; }
.council-admin-section { border-top: 1px solid #26435d; padding: 10px 0; }
.council-admin-section .council-form { margin-top: 10px; }
.council-input-grid, .council-translations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.council-language { min-width: 0; padding: 8px; border: 1px solid #26435d; border-radius: 6px; }
.council-language .council-field + .council-field { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) {
  #council-live-seats .pulse { animation: none; }
}
@media (max-width: 540px) {
  .council-input-grid, .council-translations { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding: 12px 10px 32px; }
  .topbar, .card { padding: 14px; }
  .eyebrow { flex-wrap: wrap; gap: 3px 8px; }
  .top-metrics, .brand-block { max-width: 100%; }
  .tally-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tally-box { min-width: 0; padding: 8px 3px; overflow-wrap: anywhere; }
  .btn-ghost, .btn-danger, .tab-btn { max-width: 100%; }
  .threshold-row, .user-vote-bar, .law-foot { flex-wrap: wrap; }
  .param-diff { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .stamp-overlay { max-width: 92%; width: max-content; text-align: center; font-size: 18px; }
}
