* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body { background: #070f1e; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.public-decision-shell {
  --ink: #eef5ff;
  --muted: #93a9c6;
  --line: rgba(87, 116, 154, .3);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 42px 20px 64px;
  background: linear-gradient(180deg, #070f1e 0%, #0c1b33 42%, #0a1526 100%);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ambient { position: fixed; width: 440px; height: 440px; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.ambient-one { top: -180px; right: -120px; background: #2f7fd6; opacity: .18; }
.ambient-two { bottom: -260px; left: -220px; background: #22c8a4; opacity: .1; }
.page-frame { position: relative; width: min(920px, 100%); margin: 0 auto; }
.hero { padding: 24px 0 34px; }
.brand-row { display: flex; align-items: center; gap: 10px; color: #cfe4ff; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #42a9ff, #4ee0bd); color: #04101f; font-size: 16px; letter-spacing: 0; }
.live-badge { margin-left: auto; padding: 7px 11px; border: 1px solid #6d4d20; border-radius: 999px; background: #2e2113; color: #fcbf6d; letter-spacing: .08em; }
.eyebrow { margin-top: 54px; color: #5fb6ff; font-size: 12px; letter-spacing: .18em; }
.hero h1 { margin-top: 12px; font-size: clamp(32px, 6vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.time-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 20px; margin-top: 30px; padding: 22px 24px; border: 1px solid #24507c; border-radius: 18px; background: linear-gradient(110deg, rgba(66,169,255,.15), rgba(78,224,189,.05)); box-shadow: inset 3px 0 #42a9ff; }
.time-panel span { color: var(--muted); font-size: 12px; }
.time-panel strong { color: #fff; font: 650 clamp(22px, 4vw, 36px)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-meta { display: flex; gap: 18px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.hero-meta span + span::before { content: "·"; margin-right: 18px; }

.decision-stack { display: grid; gap: 18px; }
.decision-card { --accent: #4ede9f; --confidence-color: #dce6f5; --confidence-surface: #26354b; position: relative; overflow: hidden; border: 1px solid #263956; border-radius: 22px; background: linear-gradient(180deg, rgba(18,35,60,.96), rgba(12,23,41,.96)); box-shadow: 0 24px 80px rgba(2,8,20,.42); }
.decision-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.direction-short { --accent: #ff8ba0; }
.direction-neutral { --accent: #cbd7e8; }
.confidence-6 { --confidence-color: #ffb16f; --confidence-surface: #4b2b1c; }
.confidence-7 { --confidence-color: #c6a2ff; --confidence-surface: #302345; }
.confidence-8 { --confidence-color: #d2b3ff; --confidence-surface: #35234c; }
.confidence-9 { --confidence-color: #dfc5ff; --confidence-surface: #3b2555; }
.confidence-10 { --confidence-color: #f0dcff; --confidence-surface: #44265f; }
.decision-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 28px 20px; }
.symbol-index { color: var(--accent); font: 700 10px ui-monospace, monospace; letter-spacing: .16em; }
.decision-head h2 { margin-top: 5px; font-size: 30px; letter-spacing: -.03em; }
.decision-head p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.direction-chip { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent); font-size: 13px; font-weight: 700; }
.signal-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-cell { display: flex; min-height: 110px; flex-direction: column; justify-content: center; gap: 9px; padding: 21px 24px; }
.signal-cell + .signal-cell { border-left: 1px solid var(--line); }
.signal-cell > span, .plan-panel span { color: var(--muted); font-size: 11px; letter-spacing: .07em; }
.confidence-cell strong { color: var(--confidence-color); font-size: 29px; }
.confidence-cell small { color: var(--muted); font-size: 12px; }
.confidence-track { height: 4px; border-radius: 2px; background: var(--confidence-surface); }
.confidence-track i { display: block; height: 100%; border-radius: 2px; background: var(--confidence-color); }
.signal-text { font-size: 15px; }
.signal-text.vetoed { color: #ffb9c6; }
.plan-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 23px 28px; border-bottom: 1px solid #1d3f61; background: #0a1f36; }
.plan-panel div { display: flex; flex-direction: column; gap: 8px; }
.plan-panel strong { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
.entry-level strong { color: #fff; }
.invalid-level strong { color: #ffb9c6; }
.target-level strong { color: #b6f5da; }
.change-note { margin: 22px 28px 0; padding: 14px 16px; border: 1px solid rgba(36,80,124,.7); border-radius: 11px; background: #0d2440; color: #c7d3e4; font-size: 13px; font-weight: 400; line-height: 1.65; }
.change-note span { margin-right: 12px; color: #7fc3ff; font-weight: 700; }
.change-note b { font-weight: 400; }
.reversal-note { margin-top: 8px; }

.analysis-details { margin-top: 18px; border-top: 1px solid var(--line); }
.analysis-details summary { display: flex; justify-content: space-between; padding: 19px 28px; color: #c7d3e4; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.analysis-details summary::-webkit-details-marker { display: none; }
.analysis-details summary i { color: #5fb6ff; font-size: 18px; font-style: normal; transition: transform .2s; }
.analysis-details[open] summary i { transform: rotate(45deg); }
.analysis-body { display: grid; gap: 24px; padding: 5px 28px 28px; }
.analysis-body section { padding-left: 17px; border-left: 2px solid #24374f; }
.analysis-body h3 { margin-bottom: 9px; color: #8ea0ba; font-size: 11px; letter-spacing: .12em; }
.analysis-body .chair-section { padding: 17px 18px; border: 1px solid #24507c; border-left: 4px solid #42a9ff; border-radius: 12px; background: #0d2440; }
.chair-section h3 { color: #7fc3ff; }
.previous-section h3 { color: #5fb6ff; }
.dissent-section h3 { color: #d7ac72; }
.analysis-body p, .analysis-body li { color: #c7d3e4; font-size: 14px; line-height: 1.75; }
.analysis-body ul { padding-left: 18px; }
.reasoning { font-size: 15px !important; }
.vote-row { display: flex; gap: 8px; margin-bottom: 9px; }
.vote-row span { padding: 5px 8px; border-radius: 5px; background: rgba(255,255,255,.05); color: #b9c6da; font-size: 11px; }
.vote-row span:nth-child(1) { color: #3fcf8e; }
.vote-row span:nth-child(2) { color: #8fa3bd; }
.vote-row span:nth-child(3) { color: #ff8ba0; }
.risk-section { padding: 12px 16px !important; border-color: #7a5a26 !important; background: rgba(46,33,19,.55); }
.risk-section h3 { color: #ffc06b; }

footer { padding: 32px 6px 0; color: #5d7190; text-align: center; font-size: 11px; line-height: 1.8; }
.state-card { position: relative; z-index: 1; width: min(520px, 100%); margin: 20vh auto 0; padding: 42px 28px; border: 1px solid #263956; border-radius: 20px; background: linear-gradient(180deg, #12233c, #0c1729); color: var(--ink); text-align: center; }
.loader { display: inline-block; width: 28px; height: 28px; border: 2px solid rgba(66,169,255,.2); border-top-color: #42a9ff; border-radius: 50%; animation: spin .8s linear infinite; }
.state-card p { margin-top: 16px; color: var(--muted); }
.error-card h1 { margin-top: 14px; font-size: 22px; }
.error-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,139,160,.14); color: #ff8ba0; font-weight: 800; }
.error-card button { margin-top: 22px; padding: 10px 18px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #42a9ff, #4ee0bd); color: #04101f; font-weight: 700; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
  .public-decision-shell { padding: 22px 13px 42px; }
  .eyebrow { margin-top: 40px; }
  .time-panel { grid-template-columns: 1fr; gap: 6px; padding: 19px; }
  .hero-meta { flex-direction: column; gap: 5px; }
  .hero-meta span + span::before { display: none; }
  .decision-head { padding: 22px 20px 17px; }
  .decision-head h2 { font-size: 25px; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .confidence-cell { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .signal-cell { min-height: 92px; padding: 17px 19px; }
  .signal-cell:nth-child(2) { border-left: 0; }
  .plan-panel { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .plan-panel div { display: grid; grid-template-columns: 90px 1fr; align-items: center; }
  .change-note { margin: 18px 20px 0; }
  .analysis-details summary { padding: 18px 20px; }
  .analysis-body { padding: 5px 20px 24px; }
}
