:root {
  --pod-bg: #0a0a0c;
  --pod-panel: #141418;
  --pod-panel-2: #1a1a20;
  --pod-line: #303038;
  --pod-text: #f4f2f8;
  --pod-muted: #aaa6b6;
  --pod-gold: #d3af4a;
  --pod-green: #47c596;
  --pod-orange: #ee9568;
  --pod-red: #ef7777;
}

.pod-page {
  color: var(--pod-text);
}

.pod-hero,
.pod-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.pod-hero {
  padding: clamp(54px, 8vw, 92px) 0 34px;
  text-align: center;
}

.pod-eyebrow {
  margin: 0 0 12px;
  color: var(--pod-gold);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pod-hero h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(2.35rem, 7vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.pod-hero-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--pod-muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.7;
}

.pod-choice-grid,
.pod-room-grid {
  display: grid;
  gap: 16px;
}

.pod-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pod-room-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); align-items: start; }

.pod-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--pod-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(32, 31, 28, .96), rgba(18, 18, 22, .98));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .2);
}

.pod-card--accent { border-color: rgba(211, 175, 74, .5); }
.pod-card h2, .pod-card h3 { margin-top: 0; letter-spacing: -.025em; }
.pod-card p { color: var(--pod-muted); line-height: 1.6; }

.pod-form { display: grid; gap: 15px; }
.pod-field { display: grid; gap: 7px; color: var(--pod-text); font-size: .88rem; font-weight: 750; }

.pod-input,
.pod-select,
.pod-textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--pod-line);
  border-radius: 10px;
  background: #101014;
  color: var(--pod-text);
  font: inherit;
  padding: 12px 14px;
}

.pod-select {
  min-width: 0;
  padding-right: 34px;
}

.pod-textarea { min-height: 170px; resize: vertical; line-height: 1.45; }
.pod-input:focus-visible, .pod-select:focus-visible, .pod-textarea:focus-visible, .pod-button:focus-visible, .pod-tab:focus-visible { outline: 3px solid rgba(211, 175, 74, .34); outline-offset: 2px; }

.pod-button {
  min-height: 46px;
  border: 1px solid var(--pod-line);
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--pod-panel-2);
  color: var(--pod-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pod-button:hover { transform: translateY(-1px); border-color: #55535d; }
.pod-button--primary { border-color: var(--pod-gold); background: var(--pod-gold); color: #15120a; }
.pod-button--quiet { background: transparent; }
.pod-button--danger { border-color: rgba(239, 119, 119, .45); color: #ffaaaa; background: rgba(115, 36, 36, .13); }
.pod-button[disabled] { opacity: .46; cursor: not-allowed; transform: none; }
.pod-action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pod-action-row > * { flex: 1 1 150px; }

.pod-status { min-height: 24px; margin: 0; color: var(--pod-muted); font-size: .88rem; }
.pod-status[data-tone="error"] { color: #ffaaaa; }
.pod-status[data-tone="success"] { color: #8de2be; }

.pod-privacy-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 18px 0 72px;
  overflow: hidden;
  border: 1px solid var(--pod-line);
  border-radius: 14px;
  background: var(--pod-line);
}

.pod-privacy-strip div { padding: 18px; background: var(--pod-panel); }
.pod-privacy-strip strong { display: block; margin-bottom: 5px; }
.pod-privacy-strip span { color: var(--pod-muted); font-size: .84rem; }

.pod-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.pod-room-code { margin: 2px 0 0; font: 800 clamp(1.65rem, 5vw, 2.6rem)/1 monospace; letter-spacing: .09em; }
.pod-room-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pod-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid var(--pod-line); border-radius: 999px; color: var(--pod-muted); background: rgba(255,255,255,.025); font-size: .76rem; font-weight: 700; }
.pod-pill[data-risk="low"] { color: var(--pod-green); border-color: rgba(71,197,150,.4); }
.pod-pill[data-risk="moderate"] { color: #f1cf76; border-color: rgba(211,175,74,.5); }
.pod-pill[data-risk="high"] { color: var(--pod-red); border-color: rgba(239,119,119,.48); }

.pod-participants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pod-player { padding: 16px; border: 1px solid var(--pod-line); border-radius: 13px; background: rgba(10,10,14,.54); }
.pod-player.is-you { border-color: rgba(211,175,74,.58); }
.pod-player-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pod-player h3 { margin: 0; font-size: 1rem; }
.pod-player p { margin: 8px 0 0; font-size: .86rem; }
.pod-player-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.pod-player-metrics span { padding: 9px 6px; border: 1px solid #292930; border-radius: 8px; text-align: center; color: var(--pod-muted); font-size: .72rem; }
.pod-player-metrics strong { display: block; margin-bottom: 2px; color: var(--pod-text); font-size: .94rem; }

.pod-comparison { margin-top: 16px; }
.pod-fingerprint-context { margin-top: 16px; padding: 0; overflow: hidden; }
.pod-fingerprint-context > summary { min-height: 52px; display: flex; align-items: center; padding: 0 20px; color: var(--pod-gold); font-weight: 800; cursor: pointer; }
.pod-fingerprint-context > p { margin: 0; padding: 0 20px 14px; color: var(--pod-muted); font-size: 12px; line-height: 1.5; }
.pod-fingerprint-context ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 20px 20px; list-style: none; }
.pod-fingerprint-context li { display: grid; gap: 3px; padding: 11px; border: 1px solid var(--pod-line); border-radius: 9px; background: rgba(255,255,255,.025); }
.pod-fingerprint-context li span { color: var(--pod-muted); font-size: 12px; }
.pod-insight { padding-left: 18px; border-left: 3px solid var(--pod-gold); }
.pod-insight h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 10px; }
.pod-evidence-list { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.pod-evidence-list li { padding: 12px 14px; border: 1px solid var(--pod-line); border-radius: 10px; color: var(--pod-muted); }
.pod-question { margin-top: 18px; padding: 18px; border: 1px solid rgba(211,175,74,.45); border-radius: 13px; background: rgba(211,175,74,.06); }
.pod-question strong { display: block; margin-bottom: 7px; color: var(--pod-gold); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.pod-share-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pod-share-status { font-size: .82rem; color: var(--pod-muted); }
.pod-share-status.is-error { color: #e98282; }
.pod-share-link-input { flex: 1 1 220px; min-width: 0; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--pod-line); background: #111116; color: var(--pod-text); font-size: .82rem; }

.pod-tabs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 5px; margin-bottom: 14px; }
.pod-tab { min-height: 42px; border: 1px solid var(--pod-line); border-radius: 8px; background: #111116; color: var(--pod-muted); font: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; }
.pod-tab[aria-selected="true"] { border-color: var(--pod-gold); color: var(--pod-text); background: rgba(211,175,74,.1); }
.pod-panel[hidden] { display: none; }
.pod-source-note { margin: 8px 0 0; color: var(--pod-muted); font-size: .78rem; }
.pod-file { padding: 20px; border: 1px dashed #4a4851; border-radius: 10px; }

.pod-intent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.pod-side-stack { display: grid; gap: 16px; }
.pod-qr { display: block; width: 164px; max-width: 100%; height: auto; margin: 14px auto; padding: 8px; border-radius: 12px; background: #fff; }
.pod-separator { height: 1px; margin: 20px 0; background: var(--pod-line); }
.pod-empty { padding: 24px; border: 1px dashed #3b3941; border-radius: 12px; color: var(--pod-muted); text-align: center; }
.pod-noscript { width: min(720px, calc(100% - 32px)); margin: 40px auto; padding: 18px; border: 1px solid var(--pod-line); border-radius: 12px; }

.pod-guide { margin-bottom: 72px; }
.pod-guide > h2 { margin: 52px 0 10px; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.035em; }
.pod-guide > p { max-width: 760px; color: var(--pod-muted); line-height: 1.7; }
.pod-guide details { margin-top: 12px; border: 1px solid var(--pod-line); border-radius: 13px; background: var(--pod-panel); }
.pod-guide summary { padding: 18px 20px; color: var(--pod-text); font-weight: 800; cursor: pointer; }
.pod-guide details div { padding: 0 20px 20px; color: var(--pod-muted); line-height: 1.72; }
.pod-guide details p:first-child { margin-top: 0; }
.pod-guide a { color: #efd477; }

@media (max-width: 820px) {
  .pod-choice-grid, .pod-room-grid { grid-template-columns: 1fr; }
  .pod-privacy-strip { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pod-hero, .pod-shell { width: min(100% - 20px, 1120px); }
  .pod-card { padding: 18px; border-radius: 14px; }
  .pod-participants, .pod-intent-grid { grid-template-columns: 1fr; }
  .pod-room-head { display: block; }
  .pod-room-head .pod-button { display: inline-flex; margin-top: 14px; }
  .pod-fingerprint-context ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pod-button { transition: none; }
}

/* Pod room dashboard: 8px spacing, 12-column layout, and stable import states. */
:root {
  --pod-space-1: 8px;
  --pod-space-2: 16px;
  --pod-space-3: 24px;
  --pod-space-4: 32px;
  --pod-radius: 14px;
}

.pod-hero,
.pod-shell {
  width: min(1200px, calc(100% - 48px));
}

.pod-room-active .pod-hero {
  padding: 32px 0 24px;
}

.pod-room-active .pod-hero h1 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1;
}

.pod-room-active .pod-hero-copy {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.55;
}

.pod-room-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--pod-space-3);
}

.pod-room-main {
  grid-column: span 8;
  min-width: 0;
}

.pod-side-stack {
  grid-column: span 4;
  min-width: 0;
  gap: var(--pod-space-3);
}

.pod-card {
  padding: var(--pod-space-3);
  border-radius: var(--pod-radius);
  background: linear-gradient(145deg, rgba(28, 27, 25, .96), rgba(18, 18, 22, .98));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
}

.pod-card h2 {
  margin-bottom: var(--pod-space-2);
  font-size: 1.35rem;
  line-height: 1.2;
}

.pod-button,
.pod-tab {
  min-height: 44px;
}

.pod-input:focus-visible,
.pod-select:focus-visible,
.pod-textarea:focus-visible,
.pod-button:focus-visible,
.pod-tab:focus-visible {
  outline-color: rgba(239, 212, 119, .72);
  outline-offset: 3px;
}

.pod-room-head {
  align-items: flex-end;
  gap: var(--pod-space-3);
  margin-bottom: var(--pod-space-3);
}

.pod-participants {
  gap: var(--pod-space-2);
}

.pod-player {
  min-height: 178px;
  padding: var(--pod-space-2);
  border-radius: 12px;
}

.pod-player-content {
  display: flex;
  gap: var(--pod-space-2);
  margin-top: var(--pod-space-2);
}

.pod-player-details {
  min-width: 0;
  flex: 1;
}

.pod-commander-art {
  position: relative;
  width: 72px;
  min-height: 101px;
  flex: 0 0 72px;
}

.pod-commander-art img {
  display: block;
  width: 72px;
  height: auto;
  aspect-ratio: 488 / 680;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  background: #0b0b0e;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.pod-commander-art.has-partners {
  margin-right: 14px;
}

.pod-commander-art.has-partners img:last-child {
  position: absolute;
  top: 12px;
  left: 14px;
}

.pod-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: var(--pod-space-1);
  margin-bottom: var(--pod-space-2);
}

.pod-tab {
  min-width: 0;
  padding: 0 7px;
  border-radius: 9px;
  font-size: .78rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-panel > .pod-button {
  width: 100%;
  margin-top: var(--pod-space-2);
}

.pod-import-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--pod-space-2);
}

.pod-status[data-tone="loading"] {
  color: var(--pod-text);
}

.pod-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  box-sizing: border-box;
  border: 2px solid rgba(211, 175, 74, .24);
  border-top-color: var(--pod-gold);
  border-radius: 50%;
  animation: pod-spin .75s linear infinite;
}

@keyframes pod-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 899px) {
  .pod-room-grid {
    grid-template-columns: 1fr;
  }

  .pod-room-main,
  .pod-side-stack {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .pod-hero,
  .pod-shell {
    width: min(100% - 24px, 1200px);
  }

  .pod-participants {
    grid-template-columns: 1fr;
  }

  .pod-room-active .pod-hero {
    padding-top: 24px;
  }

  .pod-room-active .pod-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pod-spinner { animation-duration: 1.5s; }
}

/* Rules provenance. Quiet by design: it is legal-style context, not a claim
   the page is making, so it reads as a footnote under the surrounding copy. */
.pod-rules-provenance {
  font-size: .75rem;
  line-height: 1.5;
  opacity: .72;
  margin: 10px 0 0;
  max-width: 62ch;
}

.pod-rules-provenance + .pod-rules-provenance {
  margin-top: 4px;
}
