/* Deb8er Diplomat — M1 visual foundation.
   Extends the dashboard language: near-black navy, violet→blue, hairline glass.
   Scoped under .dp-* so nothing here can reach an existing page. */

.dp-page {
  --dp-bg: #080b12;
  --dp-panel: rgba(255, 255, 255, 0.035);
  --dp-panel-strong: rgba(255, 255, 255, 0.055);
  --dp-line: rgba(255, 255, 255, 0.09);
  --dp-surface: rgba(255, 255, 255, 0.035);
  --dp-surface-strong: rgba(255, 255, 255, 0.06);
  --dp-surface-elevated: rgba(13, 18, 32, 0.72);
  --dp-line-strong: rgba(255, 255, 255, 0.16);
  --dp-text: #E5E7EB;
  --dp-muted: #97a0af;
  --dp-violet: #a68af9;
  --dp-blue: #3ABEFF;
  --dp-teal: #2DD4BF;
  --dp-gold: #FBBF24;
  --dp-green: #34D399;
  --dp-orange: #fb923c;
  --dp-radius: 20px;
  --dp-grad: linear-gradient(135deg, #a68af9, #3ABEFF);

  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(166, 138, 249, 0.16), transparent 62%),
    radial-gradient(900px 480px at 92% 4%, rgba(58, 190, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(45, 212, 191, 0.08), transparent 65%),
    var(--dp-bg);
  color: var(--dp-text);
  padding-bottom: 96px;
  overflow-x: hidden;
}

/* The chamber is an application screen: the document body becomes a flex
   column that owns the viewport exactly, so the shell can never push the
   page into scroll. Other diplomat pages keep their normal flow. */
.dp-page:has(.dp-shell:not([hidden])) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
}
.dp-page:has(.dp-shell:not([hidden])) .navbar { flex: 0 0 auto; }
/* The flex chain must be unbroken from the page down to the shell, otherwise
   the shell's height is content-driven and a busy chamber pushes the page into
   scroll. Every link declares min-height: 0 so no descendant can stretch it. */
.dp-page:has(.dp-shell:not([hidden])) .dp-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.dp-page:has(.dp-shell:not([hidden])) .dp-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}
.dp-page:has(.dp-shell:not([hidden])) .dp-rail { margin: 0; }
.dp-page:has(.dp-shell:not([hidden])) .dp-toast { z-index: 60; }
.dp-shell:not([hidden]) {
  margin-top: 0;
  height: 100%;
  overflow: hidden;
}
.dp-shell:not([hidden]) .dp-room { contain: layout paint; }

.dp-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  z-index: 0;
}

.dp-wrap {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.dp-wrap--narrow { width: min(980px, calc(100% - 40px)); }

/* ── type ── */
.dp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dp-muted);
}
.dp-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--dp-grad);
}
/* Centred kicker gets a rule on both sides so it stays balanced. */
.dp-kicker--center { justify-content: center; }
.dp-kicker--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--dp-grad);
}

.dp-h1 {
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
}
.dp-h1 em {
  font-style: normal;
  background: var(--dp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dp-h2 {
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.dp-h3 {
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 15px;
  letter-spacing: -0.01em;
  margin: 0;
}
.dp-lead {
  color: var(--dp-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 54ch;
  margin: 18px 0 0;
}
.dp-small { font-size: 13px; color: var(--dp-muted); line-height: 1.6; }
.dp-tiny { font-size: 11.5px; color: var(--dp-muted); letter-spacing: 0.02em; }
/* inline text link (e.g. "Back to dashboard"): on-brand, not the browser default */
.dp-link {
  color: var(--dp-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.dp-link:hover, .dp-link:focus-visible {
  color: #fff;
  border-bottom-color: var(--dp-violet);
}

/* ── nav offset (site navbar stays untouched) ── */
.dp-page > .navbar { position: relative; z-index: 5; }
.dp-main { padding-top: 42px; }

/* Programmatic focus lands on section headings; keep it silent on screen but
   still announced by assistive tech. */
.dp-page [tabindex="-1"]:focus { outline: none; }

/* `hidden` must win over component display values (buttons, cards). */
.dp-page [hidden] { display: none !important; }

/* ── buttons ── */
.dp-btn {
  --btn-bg: var(--dp-panel-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--dp-line-strong);
  background: var(--btn-bg);
  color: var(--dp-text);
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 220ms ease, border-color 160ms ease, background 160ms ease;
}
.dp-btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.3); }
.dp-btn:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 3px; }
.dp-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.dp-btn--primary {
  background: var(--dp-grad);
  border-color: transparent;
  color: #0B0E14;
  box-shadow: 0 18px 42px -18px rgba(120, 140, 255, 0.9);
}
.dp-btn--primary:hover { box-shadow: 0 22px 50px -18px rgba(120, 140, 255, 1); }
/* Daily quota exhausted: the start affordance stays visible but inert until
   the UTC reset; the daily-quota line next to it explains why. */
.dp-btn--primary.dp-start--quota-full {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.dp-btn--ghost { background: transparent; }
.dp-btn--sm { min-height: 38px; padding: 0 14px; font-size: 10.5px; border-radius: 11px; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── hero ── */
.dp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(22px, 5vw, 58px) 0 40px;
}
/* Centered hero: text stacked and centred, the chamber illustration shown below. */
.dp-hero--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: clamp(30px, 5vw, 54px);
}
.dp-hero--center .dp-hero__intro { display: grid; justify-items: center; }
.dp-hero--center .dp-lead { max-width: 46ch; }
.dp-hero--center .dp-actions { justify-content: center; margin-top: 26px; }
.dp-hero--center .dp-hero__meta { justify-content: center; margin-top: 22px; }
.dp-hero--center .dp-scene { width: min(760px, 100%); }
.dp-hero__back { margin-top: 16px; }

/* Centred section heading block (kicker + h2 + optional note/chip) */
.dp-secthead { display: grid; justify-items: center; gap: 12px; text-align: center; }
.dp-secthead__note { max-width: 52ch; margin: 0; }
.dp-secthead .dp-status { margin-top: 4px; }

/* The stage rail band under the hero */
.dp-band { margin-top: 34px; display: grid; gap: 14px; justify-items: center; }
.dp-band .dp-rail { width: 100%; }

.dp-aboutnote {
  margin: 0 auto;
  max-width: 76ch;
  padding-top: 24px;
  border-top: 1px solid var(--dp-line);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--dp-muted);
  text-align: center;
}
.dp-aboutnote b { color: #cbd5e1; }
.dp-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.dp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dp-muted);
}
.dp-pill b { color: var(--dp-text); font-weight: 600; }

/* chamber illustration (pure CSS, decorative) */
.dp-scene {
  position: relative;
  aspect-ratio: 4 / 3.55;
  border-radius: 26px;
  border: 1px solid var(--dp-line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(166, 138, 249, 0.28), transparent 58%),
    radial-gradient(90% 70% at 50% 100%, rgba(58, 190, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0d1220, #080b12);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dp-scene::before {
  content: "";
  position: absolute;
  inset: 8% 12% auto;
  height: 46%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(80% 100% at 50% 100%, rgba(166, 138, 249, 0.12), transparent 70%);
}
.dp-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 46% 46% 0 0 / 70% 70% 0 0;
  background: linear-gradient(180deg, rgba(166, 138, 249, 0.16), rgba(11, 14, 20, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.dp-scene__seat {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--dp-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.dp-scene__seat img { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.dp-scene__seat--a { top: 26%; left: 8%; }
.dp-scene__seat--b { top: 16%; right: 12%; }
.dp-scene__seat--c { bottom: 30%; left: 18%; }
.dp-scene__seat--d { bottom: 30%; right: 18%; }
.dp-scene__podium {
  position: absolute;
  left: 50%;
  bottom: 25%;
  width: 84px;
  height: 58px;
  transform: translateX(-50%);
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, rgba(229, 231, 235, 0.14), rgba(229, 231, 235, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 1);
}
.dp-scene__speaker {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9);
}
.dp-scene__speaker svg { display: block; width: 100%; height: 100%; }
.dp-scene__podium::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.28);
}
.dp-scene__chair {
  position: absolute;
  left: 50%;
  top: 9%;
  width: 60px;
  height: 60px;
  transform: translateX(-50%);
  border-radius: 50%;
  padding: 4px;
  background: #0b0e14;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.07);
}
.dp-scene__chair svg { width: 100%; height: 100%; border-radius: 50%; display: block; }
.dp-scene__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.5);
}

/* ── conference tracker — the single seven-stage progress model ─────────── */
.dp-rail {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 7px 9px;
  list-style: none;
  border: 1px solid var(--dp-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  backdrop-filter: blur(10px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.dp-rail::-webkit-scrollbar { display: none; }
.dp-rail li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  padding: 5px 9px;
  border-radius: 9px;
  color: var(--dp-muted);
  font-size: .66rem;
  letter-spacing: .015em;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: color .18s ease, background .18s ease;
}
.dp-rail li + li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 13px;
  transform: translateY(-50%);
  background: var(--dp-line);
}
.dp-rail li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dp-rail li b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(229, 231, 235, .45);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.dp-rail li[data-state="done"] { color: rgba(229, 231, 235, .74); }
.dp-rail li[data-state="done"] b { color: #04120c; background: var(--dp-green); border-color: var(--dp-green); }
.dp-rail li[data-state="done"] + li::before,
.dp-rail li[data-state="now"]::before { background: rgba(52, 211, 153, .45); }
.dp-rail li[data-state="now"] {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(251, 191, 36, .16), rgba(251, 191, 36, .05));
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3);
}
.dp-rail li[data-state="now"]::before { opacity: 0; }
.dp-rail li[data-state="now"] b {
  color: #150e02;
  background: var(--dp-gold);
  border-color: var(--dp-gold);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .14);
}

/* ── panels ── */
.dp-panel {
  background: var(--dp-panel);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius);
  padding: 22px;
  backdrop-filter: blur(10px);
}
.dp-panel--tight { padding: 16px 18px; }
.dp-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.dp-hr { height: 1px; background: var(--dp-line); border: 0; margin: 18px 0; }

.dp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ── committee / agenda reveal ── */
.dp-reveal {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 26px;
  border: 1px solid var(--dp-line);
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(166, 138, 249, 0.15), transparent 58%),
    radial-gradient(80% 120% at 100% 10%, rgba(58, 190, 255, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.028);
  overflow: hidden;
}
.dp-reveal__stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(166, 138, 249, 0.4);
  background: rgba(166, 138, 249, 0.1);
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #cbb8ff;
}
.dp-reveal__question {
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  max-width: 22ch;
}
.dp-reveal__side { max-width: 46ch; }

/* ── country cards ── */
.dp-countries {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.dp-country {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  min-height: 232px;
  border-radius: 18px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 220ms ease;
}
.dp-country:hover { transform: translateY(-3px); border-color: rgba(166, 138, 249, 0.5); background: rgba(166, 138, 249, 0.06); }
.dp-country:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 3px; }
.dp-country[aria-pressed="true"] {
  border-color: rgba(166, 138, 249, 0.9);
  background: rgba(166, 138, 249, 0.1);
  box-shadow: 0 18px 44px -26px rgba(166, 138, 249, 0.9);
}
.dp-country__portrait { width: 68px; height: 68px; border-radius: 18px; overflow: hidden; flex: 0 0 auto; }
.dp-country__portrait svg { display: block; width: 100%; height: 100%; }
.dp-country__flag { width: 30px; height: 20px; border-radius: 3px; object-fit: cover; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); }
.dp-country__name {
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.dp-country__stance {
  font-size: 12px;
  line-height: 1.55;
  color: var(--dp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dp-country__tag {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.5);
}
.dp-country__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dp-country__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dp-grad);
  color: #0B0E14;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.7);
  transition: all 160ms ease;
}
.dp-country[aria-pressed="true"] .dp-country__check { opacity: 1; transform: scale(1); }

/* ── dossier ── */
.dp-dossier {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  margin-top: 26px;
  align-items: start;
}
.dp-identity {
  position: sticky;
  top: 24px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--dp-line);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(166, 138, 249, 0.18), transparent 62%),
    rgba(255, 255, 255, 0.03);
  text-align: center;
  overflow: hidden;
}
.dp-identity__portrait {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.9);
}
.dp-identity__portrait svg { display: block; width: 100%; height: 100%; }
.dp-identity__flag { width: 42px; height: 28px; border-radius: 4px; margin: 0 auto 14px; display: block; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.dp-identity__name {
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.dp-identity__role { margin-top: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dp-muted); }
.dp-identity__stance { margin-top: 18px; font-size: 13px; line-height: 1.6; color: #cbd5e1; text-align: left; }
.dp-identity__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.dp-stat {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dp-line);
}
.dp-stat b { display: block; font-family: var(--heading-font, "Unbounded", sans-serif); font-size: 13px; }
.dp-stat span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dp-muted); }

.dp-block { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--dp-line); background: rgba(255, 255, 255, 0.028); }
.dp-block + .dp-block { margin-top: 12px; }
.dp-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.72);
  margin-bottom: 10px;
}
.dp-block__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dp-violet); flex: 0 0 auto; }
.dp-block__dot--red { background: #f87171; }
.dp-block__dot--green { background: var(--dp-green); }
.dp-block__dot--gold { background: var(--dp-gold); }
.dp-block__dot--blue { background: var(--dp-blue); }
.dp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dp-list li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.55; color: #cbd5e1; }
.dp-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: rgba(166, 138, 249, 0.7); }
.dp-list--red li::before { background: rgba(248, 113, 113, 0.8); }
.dp-list--green li::before { background: rgba(52, 211, 153, 0.8); }

.dp-dyn { display: flex; flex-wrap: wrap; gap: 10px; }
.dp-dyn__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, 0.035);
}
.dp-dyn__item[data-type="ally"] { border-color: rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.dp-dyn__item[data-type="tension"] { border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }

/* beginner toggle */
.dp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--dp-muted);
  user-select: none;
}
.dp-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dp-toggle__track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--dp-line-strong);
  position: relative;
  transition: background 160ms ease;
}
.dp-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E5E7EB;
  transition: transform 160ms ease;
}
.dp-toggle input:checked + .dp-toggle__track { background: rgba(166, 138, 249, 0.6); }
.dp-toggle input:checked + .dp-toggle__track::after { transform: translateX(18px); }
.dp-toggle input:focus-visible + .dp-toggle__track { outline: 2px solid var(--dp-blue); outline-offset: 3px; }

/* ── chamber shell ── */
.dp-chamber {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 22px;
}
.dp-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border-radius: 26px;
  border: 1px solid var(--dp-line);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(166, 138, 249, 0.2), transparent 60%),
    radial-gradient(80% 60% at 50% 105%, rgba(58, 190, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #0c1120, #070a10);
  overflow: hidden;
  padding: 22px;
}
.dp-phasebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--dp-line);
  background: rgba(8, 11, 18, 0.6);
  backdrop-filter: blur(8px);
}
.dp-phasebar__now { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.04em; }
.dp-phasebar__now b { font-family: var(--heading-font, "Unbounded", sans-serif); font-size: 11px; color: var(--dp-violet); letter-spacing: 0.12em; text-transform: uppercase; }
.dp-phasebar__chair {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: #0b0e14;
}
.dp-phasebar__chair svg { display: block; width: 100%; height: 100%; }

.dp-timer {
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.dp-timer[data-warn="true"] { color: var(--dp-orange); }

.dp-seats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.dp-seat {
  position: relative;
  padding: 14px 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
  transition: border-color 200ms ease, transform 200ms ease;
}
.dp-seat--you { border-color: rgba(166, 138, 249, 0.55); background: rgba(166, 138, 249, 0.08); }
.dp-seat--speaking { border-color: rgba(251, 191, 36, 0.6); box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 20px 40px -30px rgba(251, 191, 36, 0.7); }
.dp-seat__portrait { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; overflow: hidden; }
.dp-seat__portrait svg { display: block; width: 100%; height: 100%; }
.dp-seat__flag { width: 26px; height: 17px; border-radius: 2px; display: block; margin: 0 auto 7px; }
.dp-seat__name { font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.dp-seat__tag { margin-top: 4px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dp-muted); }
.dp-seat__you {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--dp-grad);
  color: #0B0E14;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dp-podium {
  position: relative;
  width: min(380px, 84%);
  margin: 30px auto 0;
  padding: 22px;
  border-radius: 18px 18px 10px 10px;
  border: 1px solid var(--dp-line-strong);
  background: linear-gradient(180deg, rgba(229, 231, 235, 0.09), rgba(229, 231, 235, 0.02));
  text-align: center;
}
.dp-podium__label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dp-muted); }
.dp-podium__name { font-family: var(--heading-font, "Unbounded", sans-serif); font-size: 14px; margin-top: 6px; }

.dp-side { display: grid; gap: 14px; align-content: start; }
.dp-transcript {
  max-height: 300px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
  scrollbar-width: thin;
}
.dp-turn { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--dp-line); }
.dp-turn__who { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dp-muted); }
.dp-turn__who img { width: 18px; height: 12px; border-radius: 2px; }
.dp-turn__text { font-size: 12.5px; line-height: 1.55; color: #cbd5e1; }
.dp-empty { padding: 18px; border: 1px dashed var(--dp-line-strong); border-radius: 14px; text-align: center; color: var(--dp-muted); font-size: 12px; line-height: 1.6; }

/* ── status + toast ── */
.dp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  font-size: 11px;
  color: var(--dp-muted);
  white-space: nowrap;
}
.dp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dp-green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); }
.dp-dot--idle { background: var(--dp-muted); box-shadow: none; }
.dp-status--live { color: #d7f7e8; border-color: rgba(52, 211, 153, .28); background: rgba(52, 211, 153, .08); }
.dp-status--live .dp-dot { background: var(--dp-green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .12); }
.dp-status--closed { color: #fde9c0; border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); }
.dp-status--closed .dp-dot { background: var(--dp-gold); box-shadow: 0 0 0 4px rgba(251, 191, 36, .13); }
.dp-status--complete { color: #e6dcff; border-color: rgba(166, 138, 249, .34); background: rgba(166, 138, 249, .1); }
.dp-status--complete .dp-dot { background: var(--dp-violet); box-shadow: 0 0 0 4px rgba(166, 138, 249, .14); }
.dp-status--offline { color: #ffd9d4; border-color: rgba(248, 113, 113, .34); background: rgba(248, 113, 113, .1); }
.dp-status--offline .dp-dot { background: var(--dp-red, #f87171); box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }

.dp-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 60;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--dp-line-strong);
  background: #0f1522;
  color: var(--dp-text);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  max-width: min(92vw, 420px);
}
.dp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── loading skeleton ── */
.dp-skel {
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 20%, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0.04) 60%);
  background-size: 220% 100%;
  animation: dp-shimmer 1.4s linear infinite;
}
@keyframes dp-shimmer { to { background-position: -220% 0; } }

/* ── history: three vertical cards per row ── */
.dp-history {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.dp-history > .dp-empty,
.dp-history > .dp-skel { grid-column: 1 / -1; }

/* ── conference history cards (landing "Your record") ─────────────────────────
   Each conference is a vertical card with a uniform summary. The detail stays
   folded until the card is opened; the opened card spans the full row so its
   detail reads as a panel that pops up below the others. */
.dp-hist {
  display: grid;
  gap: 12px;
  padding: 16px 17px;
  border-radius: 16px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, 0.03);
  animation: dp-hist-in 260ms ease both;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.dp-hist:hover { border-color: rgba(166, 138, 249, .45); background: rgba(166, 138, 249, .05); }
.dp-hist:focus-within { border-color: rgba(166, 138, 249, .45); }
.dp-hist[data-expanded="true"] {
  grid-column: 1 / -1;
  border-color: rgba(166, 138, 249, .55);
  background: rgba(166, 138, 249, .06);
  box-shadow: 0 24px 60px -40px rgba(166, 138, 249, .9);
  cursor: default;
}
@keyframes dp-hist-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dp-hist--skel {
  display: grid;
  gap: 8px;
  padding: 16px 17px;
  cursor: default;
}
.dp-hist--skel:hover { border-color: var(--dp-line); background: rgba(255, 255, 255, 0.03); }

.dp-hist__head { display: flex; align-items: center; gap: 12px; }
.dp-hist__crest { display: inline-flex; flex: 0 0 auto; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--dp-line); }
.dp-hist__crest img { display: block; border-radius: 3px; }
.dp-hist__id { min-width: 0; flex: 1 1 auto; }
.dp-hist__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dp-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.dp-hist__agenda { font-weight: 400; color: var(--dp-muted); }
.dp-hist__sep { color: var(--dp-line-strong); }
.dp-hist__meta { margin: 3px 0 0; font-size: 10.5px; letter-spacing: .02em; color: var(--dp-muted); }

/* score badge sits top-right of the summary */
.dp-hist__score {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 11px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .04);
  color: var(--dp-text);
}
.dp-hist__score b { font-size: 20px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.dp-hist__score em { font-style: normal; font-size: 10px; color: var(--dp-muted); }

/* details toggle */
.dp-hist__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--dp-line);
  background: none;
  color: var(--dp-muted);
  font: inherit;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.dp-hist__toggle:hover { color: #fff; }
.dp-hist__toggle:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 2px; border-radius: 4px; }
.dp-hist__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.dp-hist[data-expanded="true"] .dp-hist__caret { transform: rotate(-135deg); }

/* detail region — folded until opened */
.dp-hist__detail { display: none; }
.dp-hist[data-expanded="true"] .dp-hist__detail {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--dp-line);
  animation: dp-hist-in 220ms ease both;
}
.dp-hist__verdict { margin: 0; font-size: 12.5px; line-height: 1.6; color: #cbd5e1; }
.dp-hist__subscores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.dp-hist__subscores li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .02);
  font-size: 10.5px;
  color: var(--dp-muted);
}
.dp-hist__subscores b { color: var(--dp-text); font-size: 12px; }
.dp-hist__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--dp-muted);
}
.dp-hist__stat b { color: var(--dp-text); font-weight: 600; }
.dp-hist__flagline {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .1);
  color: #fca5a5;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dp-hist__phase { margin-left: auto; white-space: nowrap; }
.dp-hist__more { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }

/* empty / error states for the history section */
.dp-empty--record { display: grid; gap: 5px; text-align: center; padding: 24px 18px; }
.dp-empty--record b { color: var(--dp-text); font-size: 12.5px; }
.dp-empty--error { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 22px 18px; border-style: solid; border-color: rgba(248, 113, 113, .3); }
.dp-empty--error b { color: #fca5a5; font-size: 12.5px; }

/* promoted "continue" secondary: distinct from the primary without competing */
.dp-btn--resume {
  border-color: rgba(58, 190, 255, .45);
  background: rgba(58, 190, 255, .08);
  color: var(--dp-text);
}
.dp-btn--resume:hover { border-color: rgba(58, 190, 255, .75); background: rgba(58, 190, 255, .14); }

/* ── committees: chamber docket (tabled, no cards) ──────────────────────────
   Each committee is a row separated by a hairline, not an enclosing box. The
   hover accent rail and reveal give interactivity without a card surface. */
.dp-docket {
  border-top: 1px solid var(--dp-line);
}
.dp-docket__head,
.dp-docket__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 84px minmax(0, 0.9fr);
  gap: 18px;
  align-items: center;
}
.dp-docket__head {
  padding: 0 0 10px 14px;
  border-bottom: 1px solid var(--dp-line-strong);
}
.dp-docket__col {
  min-width: 0;
}
.dp-docket__head .dp-docket__col {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dp-muted);
}
.dp-docket__row {
  position: relative;
  padding: 20px 0 20px 14px;
  border-bottom: 1px solid var(--dp-line);
  text-decoration: none;
  transition: background 160ms ease;
}
.dp-docket__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--dp-violet), var(--dp-blue));
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}
.dp-docket__row:hover { background: linear-gradient(90deg, rgba(166, 138, 249, 0.05), transparent 70%); }
.dp-docket__row:hover::before { opacity: 1; transform: scaleY(1); }
.dp-docket__row:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: -2px; }
.dp-docket__row:last-child { border-bottom: 1px solid var(--dp-line); }

.dp-docket__num {
  display: block;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(229, 231, 235, 0.85);
  line-height: 1;
}
.dp-docket__short {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dp-violet);
}
.dp-docket__name {
  display: block;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 13.5px;
  letter-spacing: -0.01em;
  color: var(--dp-text);
  line-height: 1.3;
}
.dp-docket__blurb {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--dp-muted);
}
.dp-docket__count {
  display: block;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--dp-text);
  line-height: 1;
}
.dp-docket__countlabel {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dp-muted);
}
.dp-docket__sample {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(229, 231, 235, 0.5);
}
.dp-docket__sample::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1px;
  margin: 0 7px 3px 0;
  background: var(--dp-line-strong);
}

/* ── responsive ── */
@media (max-width: 1024px) {
  .dp-hero { grid-template-columns: 1fr; }
  .dp-scene { max-width: 520px; }
  .dp-countries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dp-dossier { grid-template-columns: 1fr; }
  .dp-identity { position: static; }
  .dp-chamber { grid-template-columns: 1fr; }
  .dp-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* docket: drop the sample column, keep a 3-column row */
  .dp-docket__head,
  .dp-docket__row { grid-template-columns: 72px minmax(0, 1fr) 74px; }
  .dp-docket__col--sample { display: none; }
  /* history: two cards per row on tablet */
  .dp-history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .dp-wrap, .dp-wrap--narrow { width: calc(100% - 28px); }
  .dp-main { padding-top: 24px; }
  .dp-h1 { font-size: clamp(30px, 9vw, 40px); }
  .dp-lead { font-size: 14.5px; }
  .dp-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dp-country { min-height: 210px; padding: 13px; }
  .dp-country__portrait { width: 56px; height: 56px; }
  .dp-grid-2, .dp-grid-3 { grid-template-columns: 1fr; }
  .dp-actions .dp-btn { width: 100%; }
  .dp-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-stage { padding: 14px; min-height: 420px; }
  .dp-scene__seat { width: 38px; height: 38px; }
  .dp-panel { padding: 16px; }
  .dp-reveal { padding: 20px; }
  .dp-rail li { min-width: 104px; padding-right: 12px; }
  /* history: one card per row on phones */
  .dp-history { grid-template-columns: 1fr; }
  .dp-paused { grid-template-columns: 1fr; }
  .dp-secthead__note { max-width: none; }

  /* docket: stack to a two-column row (code + room), agenda count inline */
  .dp-docket__head { display: none; }
  .dp-docket__row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0 16px 14px;
  }
  .dp-docket__col--agenda {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: -6px;
  }
  .dp-docket__count { font-size: 15px; }
  .dp-docket__countlabel { margin-top: 0; }

}

@media (prefers-reduced-motion: reduce) {
  .dp-page *, .dp-page *::before, .dp-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── speech composer (live AI turn) ── */
.dp-composer {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--dp-line-strong);
  background: rgba(8, 11, 18, 0.7);
  color: var(--dp-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
}
.dp-composer::placeholder { color: rgba(229, 231, 235, 0.34); }
.dp-composer:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 2px; border-color: transparent; }
.dp-turn--chair { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.05); }
.dp-turn--you { border-color: rgba(166, 138, 249, 0.4); background: rgba(166, 138, 249, 0.07); }
.dp-turn__flag { width: 18px; height: 12px; border-radius: 2px; }

/* ── chamber floor: chair, podium, queue, phases ──────────────────────────── */

.dp-clock { display: flex; align-items: center; gap: 8px; }
.dp-clock__btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--dp-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dp-text);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}
.dp-clock__btn:hover { border-color: rgba(166, 138, 249, 0.5); }
.dp-clock__btn:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 2px; }

.dp-floor { display: grid; gap: 16px; margin-top: 18px; }

.dp-chaircard {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.09), rgba(251, 191, 36, 0.02) 60%);
}
.dp-chaircard__avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: #0b0e14;
}
.dp-chaircard__avatar svg { display: block; width: 100%; height: 100%; }
.dp-chaircard__who {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dp-gold);
}
.dp-chaircard__who span { color: var(--dp-muted); letter-spacing: 0.06em; text-transform: none; }
.dp-chaircard__line { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: #E2E8F0; }

.dp-podium {
  width: 100%;
  margin: 0;
  padding: 18px 20px 16px;
  border-radius: 20px;
  border: 1px solid var(--dp-line-strong);
  background: linear-gradient(180deg, rgba(229, 231, 235, 0.1), rgba(229, 231, 235, 0.02));
  text-align: left;
}
.dp-podium__label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dp-muted);
}
.dp-podium__speaker { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.dp-podium__portrait {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.dp-podium__portrait svg { display: block; width: 100%; height: 100%; }
.dp-podium__ident { min-width: 0; }
.dp-podium__name {
  font-family: var(--heading-font, 'Unbounded', sans-serif);
  font-size: 15px;
  line-height: 1.3;
}
.dp-podium__tag { margin-top: 3px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dp-muted); }
.dp-podium__speech {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #E9EEF7;
  min-height: 76px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.dp-podium__speech--clause {
  font-family: var(--heading-font, 'Unbounded', sans-serif);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}
.dp-podium__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--dp-line);
}

.dp-stagefoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--dp-line);
}
.dp-stagefoot .dp-tiny { max-width: 52ch; }

.dp-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dp-queueitem {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11.5px;
}
.dp-queueitem[data-state="now"] { border-color: rgba(251, 191, 36, 0.55); background: rgba(251, 191, 36, 0.09); }
.dp-queueitem[data-state="done"] { opacity: 0.55; }
.dp-queueitem__flag { width: 20px; height: 13px; border-radius: 2px; }
.dp-queueitem__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-queueitem__state { font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dp-muted); }
.dp-queueitem[data-state="now"] .dp-queueitem__state { color: var(--dp-gold); }

.dp-phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
  counter-reset: none;
}
.dp-phase {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 5px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  color: var(--dp-muted);
}
.dp-phase:last-child { border-bottom: 0; }
.dp-phase__no { font-size: 9.5px; letter-spacing: 0.1em; opacity: 0.7; }
.dp-phase__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-phase[data-state="now"] { color: var(--dp-text); }
.dp-phase[data-state="now"] .dp-phase__no { color: var(--dp-violet); opacity: 1; }
.dp-phase[data-state="now"] .dp-phase__state { color: var(--dp-violet); }
.dp-phase[data-state="done"] { color: rgba(229, 231, 235, 0.55); }
.dp-phase__state {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dp-vote { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; }
.dp-voteitem {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  padding: 5px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dp-voteitem:last-child { border-bottom: 0; }
.dp-voteitem__flag { width: 20px; height: 13px; border-radius: 2px; }
.dp-voteitem__choice { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dp-muted); }
.dp-voteitem__choice[data-vote="yes"] { color: var(--dp-green); }
.dp-voteitem__choice[data-vote="no"] { color: #f87171; }
.dp-voteitem__choice[data-vote="abstain"] { color: var(--dp-gold); }

/* ── evaluation: score first, subscores, then three compact accordions ──── */
.dp-evalpanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.dp-evalhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-evalstate {
  flex: 0 0 auto;
  font-size: .52rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dp-muted);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--dp-line);
}
.dp-evalcta { width: 100%; justify-content: center; }
.dp-evalcta[data-loading="true"] { opacity: .72; cursor: progress; }
.dp-evalhint { margin: -2px 0 0; font-size: .6rem; line-height: 1.45; color: var(--dp-muted); }
.dp-evalbody { display: flex; flex-direction: column; gap: 11px; }

.dp-evalscore { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; }
.dp-evalscore__ring {
  --pct: 0;
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg,
    var(--dp-violet) 0turn,
    var(--dp-blue) calc(var(--pct) * .01turn),
    rgba(255, 255, 255, .07) 0);
}
.dp-evalscore__ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #0b101c;
  border: 1px solid rgba(255, 255, 255, .06);
}
.dp-evalscore__ring span {
  position: relative;
  z-index: 1;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: 1.42rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dp-evalscore__ring em {
  display: block;
  margin-top: 3px;
  font-family: var(--body-font, Inter, sans-serif);
  font-style: normal;
  font-size: .46rem;
  letter-spacing: .1em;
  color: var(--dp-muted);
}
.dp-evalscore__text b { display: block; font-size: .8rem; letter-spacing: .01em; }
.dp-evalscore__text p { margin: 4px 0 0; font-size: .66rem; line-height: 1.5; color: #cbd5e1; }

.dp-subscores {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .025);
}
.dp-score {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  font-size: .63rem;
}
.dp-score__label { color: rgba(229, 231, 235, .82); }
.dp-score__bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dp-score__bar i { display: block; height: 100%; border-radius: 999px; background: var(--dp-grad); box-shadow: 0 0 8px rgba(58, 190, 255, .3); }
.dp-score__value { text-align: right; color: var(--dp-text); font-variant-numeric: tabular-nums; }
.dp-score__value em { font-style: normal; font-size: .52rem; color: var(--dp-muted); margin-left: 1px; }

.dp-evalaccs { display: grid; gap: 6px; }
.dp-evalacc {
  border: 1px solid var(--dp-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .022);
  overflow: hidden;
}
.dp-evalacc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, .85);
}
.dp-evalacc summary::-webkit-details-marker { display: none; }
.dp-evalacc summary:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.dp-evalacc summary:focus-visible { outline: 2px solid var(--dp-violet); outline-offset: -2px; }
.dp-evalacc summary span::before {
  content: "›";
  display: inline-block;
  margin-right: 6px;
  color: var(--dp-muted);
  transition: transform .15s ease;
}
.dp-evalacc[open] summary { color: #fff; border-bottom: 1px solid var(--dp-line); }
.dp-evalacc[open] summary span::before { transform: rotate(90deg); color: var(--dp-violet); }
.dp-evalacc summary b {
  flex: 0 0 auto;
  font-size: .52rem;
  font-weight: 650;
  color: var(--dp-muted);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}
.dp-evalacc ul {
  margin: 0;
  padding: 8px 12px 10px 24px;
  display: grid;
  gap: 4px;
  font-size: .65rem;
  line-height: 1.5;
  color: #cbd5e1;
}
.dp-evalred {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, .35);
  background: rgba(251, 146, 60, .08);
  color: var(--dp-orange);
  font-size: .63rem;
  line-height: 1.45;
}
.dp-evalpending {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border-radius: 11px;
  border: 1px dashed var(--dp-line-strong);
  color: var(--dp-muted);
  font-size: .64rem;
}
.dp-evalspinner {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--dp-violet);
  animation: dp-spin .8s linear infinite;
}
@keyframes dp-spin { to { transform: rotate(360deg); } }
.dp-evalerror { margin: 0; color: #f87171; font-size: .64rem; line-height: 1.5; }

@media (max-width: 1024px) {
  .dp-floor { gap: 12px; }
  .dp-podium__speech { min-height: 60px; }
}
@media (max-width: 640px) {
  .dp-chaircard { grid-template-columns: 48px minmax(0, 1fr); gap: 11px; padding: 12px; }
  .dp-chaircard__avatar { width: 48px; height: 48px; border-radius: 14px; }
  .dp-chaircard__line { font-size: 12.5px; }
  .dp-podium { padding: 14px; }
  .dp-podium__speech { font-size: 14px; min-height: 54px; }
  .dp-clock { width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-seat, .dp-queueitem, .dp-phase { transition: none !important; }
}

/* ── moderated caucus: motions, POI records, Debix ───────────────────────── */

.dp-caucushead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dp-debix { flex: 0 0 40px; width: 40px; height: 40px; }
.dp-debix__svg { display: block; width: 100%; height: 100%; }

/* ── caucus suggestion cards: one visual family, dark translucent, no white ──
   Motions, POI cards and POI suggestions all share the same surface language:
   dark navy/charcoal base, hairline border, violet→blue hover, refined
   selection state. The `--dp-surface` tokens are defined on `.dp-page`. */

.dp-motions { display: grid; gap: 8px; margin-bottom: 4px; }
.dp-motion {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 11px 13px 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--dp-line);
  background:
    linear-gradient(135deg, rgba(166, 138, 249, .06), rgba(58, 190, 255, .035) 55%, transparent 85%),
    var(--dp-surface);
  color: var(--dp-text);
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, background .16s ease, box-shadow .16s ease;
  overflow: hidden;
}
.dp-motion::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--dp-violet), var(--dp-blue));
  opacity: .4;
  transition: opacity .16s ease;
}
.dp-motion:hover {
  border-color: rgba(166, 138, 249, .55);
  background: var(--dp-surface-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(3, 5, 10, .35);
}
.dp-motion:hover::before { opacity: .85; }
.dp-motion:focus-visible { outline: 2px solid var(--dp-violet); outline-offset: 2px; }
.dp-motion:disabled, .dp-motion[data-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.dp-motion__eyebrow {
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dp-violet);
  opacity: .92;
}
.dp-motion__title { font-weight: 680; font-size: .92rem; line-height: 1.3; color: var(--dp-text); }
.dp-motion__focus { font-size: .78rem; color: var(--dp-muted); line-height: 1.4; }
.dp-motion__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: start;
  font-size: .66rem;
  letter-spacing: .04em;
  color: var(--dp-muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dp-line);
  border-radius: 20px;
  padding: 2px 9px;
}
.dp-motion__meta i { font-style: normal; color: var(--dp-gold); }

/* POIs render one-at-a-time in the inbox (see .dp-poiinbox below); any stray
   full-card list that does appear stays dark and compact. */
.dp-poilist { display: grid; gap: 8px; margin-top: 10px; }
.dp-poi {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--dp-line);
  background: linear-gradient(135deg, rgba(166, 138, 249, .05), transparent 65%), var(--dp-surface);
  color: var(--dp-text);
}
.dp-poi[data-status="answered"] { border-color: color-mix(in srgb, var(--dp-green) 35%, transparent); }
.dp-poi__who { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--dp-muted); }
.dp-poi__flag { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .18); }
.dp-poi__q { font-size: .82rem; line-height: 1.45; margin-top: 6px; }
.dp-poi__a { font-size: .8rem; line-height: 1.45; margin-top: 6px; padding-left: 8px; border-left: 2px solid var(--dp-line); color: var(--dp-muted); }
.dp-poi__a--open { font-style: italic; opacity: .6; }

.dp-poihints { display: grid; gap: 6px; margin-top: 10px; }

/* ── POI target chooser ─────────────────────────────────────────────────────
   Which delegation a point of information is put to. It sits directly above the
   composer, because the question cannot be sent without an answer here. */
.dp-poi-target {
  display: grid;
  gap: 4px;
  margin: 10px 0 2px;
  padding: 10px 12px;
  border: 1px solid rgba(58, 190, 255, .3);
  border-radius: 12px;
  background: rgba(58, 190, 255, .05);
}
.dp-poi-target > label { font-weight: 600; letter-spacing: .02em; color: var(--dp-muted); }
.dp-poi-target__select {
  font: inherit;
  font-size: .82rem;
  color: var(--dp-text);
  background: var(--dp-surface-strong);
  border: 1px solid var(--dp-line);
  border-radius: 9px;
  padding: 8px 10px;
  width: 100%;
  max-width: 100%;
}
.dp-poi-target__select:disabled { opacity: .55; cursor: not-allowed; }
.dp-poi-target__select:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 2px; }
.dp-poi-target #dpCaucusTargetNote { margin: 0; font-size: .62rem; line-height: 1.45; color: var(--dp-muted); }

/* ── the delegations that took the floor, in speaking order ─────────────────
   One compact row per delegation. The list is append-only, so a row never moves
   while a question about it is in flight. */
.dp-queue-list { display: grid; gap: 8px; margin: 10px 0 0; }
.dp-qitem {
  border: 1px solid var(--dp-line);
  border-left: 3px solid transparent;
  border-radius: 11px;
  background: var(--dp-surface);
  padding: 9px 11px;
}
.dp-qitem.is-target { border-left-color: var(--dp-blue); background: rgba(58, 190, 255, .07); }
.dp-qitem__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dp-qitem__name { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--dp-text); }
.dp-qitem__flag { border-radius: 2px; flex: 0 0 auto; }
.dp-qitem__status {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dp-muted);
  white-space: nowrap;
}
.dp-qitem__status--wait { color: var(--dp-gold, #f2c14e); }
.dp-qitem__text {
  margin: 6px 0 0;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--dp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── what happened to this conference on the user's record ─────────────────── */
.dp-evalpersist { margin: 8px 0 0; }
.dp-evalpersist--busy { color: var(--dp-muted); }
.dp-evalpersist--ok { color: #34d399; }
.dp-evalpersist--warn { color: var(--dp-gold, #f2c14e); }
.dp-evalpersist--bad { color: #f87171; }

.dp-suggestion {
  text-align: left;
  font: inherit;
  font-size: .79rem;
  line-height: 1.4;
  color: var(--dp-text);
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--dp-line);
  background: var(--dp-surface);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dp-suggestion:hover { border-color: rgba(58, 190, 255, .55); background: var(--dp-surface-strong); }
.dp-suggestion:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 2px; }

/* ── POI inbox: one question at a time, stable height, internal overflow ────
   The inbox replaces the expanding list. It owns a fixed region: header
   (progress) + question + answer + submit, with prev/next navigation. Only
   this panel grows, and only to its natural single-question height. */
.dp-poiinbox {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(166, 138, 249, .32);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(166, 138, 249, .10), transparent 55%),
    linear-gradient(180deg, rgba(17, 22, 38, .92), rgba(10, 13, 24, .94));
  box-shadow: 0 18px 40px rgba(3, 5, 10, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
.dp-poiinbox__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .02);
}
.dp-poiinbox__title {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dp-gold);
}
.dp-poiinbox__count { font-size: .68rem; color: var(--dp-muted); font-variant-numeric: tabular-nums; }
.dp-poiinbox__dots { display: flex; gap: 5px; margin-left: auto; }
.dp-poiinbox__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: background .15s ease, box-shadow .15s ease;
}
.dp-poiinbox__dot[data-dot="answered"] { background: var(--dp-green); }
.dp-poiinbox__dot[data-dot="active"] { background: var(--dp-gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }
.dp-poiinbox__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-height: 0;
}
.dp-poiinbox__questioner { display: flex; align-items: center; gap: 8px; }
.dp-poiinbox__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  background: #0b0e14;
  flex: 0 0 30px;
}
.dp-poiinbox__avatar svg { display: block; width: 100%; height: 100%; }
.dp-poiinbox__name { font-size: .78rem; font-weight: 680; color: var(--dp-text); }
.dp-poiinbox__role { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-muted); }
.dp-poiinbox__q {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--dp-text);
  border-left: 2px solid var(--dp-violet);
  padding-left: 10px;
}
.dp-poiinbox__answerwrap { display: flex; flex-direction: column; gap: 6px; }
.dp-poiinbox__label { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dp-muted); }
.dp-poiinbox__answer {
  font: inherit;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--dp-text);
  background: rgba(3, 5, 10, .5);
  border: 1px solid var(--dp-line);
  border-radius: 10px;
  padding: 9px 10px;
  min-height: 54px;
  max-height: 110px;
  resize: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dp-poiinbox__answer:focus { outline: none; border-color: rgba(166, 138, 249, .6); box-shadow: 0 0 0 3px rgba(166, 138, 249, .14); }
.dp-poiinbox__answer:disabled { opacity: .55; cursor: not-allowed; }
.dp-poiinbox__answer--readonly {
  background: rgba(52, 211, 153, .05);
  border-color: color-mix(in srgb, var(--dp-green) 30%, transparent);
}
.dp-poiinbox__answered-note {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dp-green);
}
.dp-poiinbox__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-poiinbox__count2 { font-size: .66rem; color: var(--dp-muted); font-variant-numeric: tabular-nums; }
.dp-poiinbox__btn {
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, var(--dp-violet), var(--dp-blue));
  border: 0;
  border-radius: 9px;
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(108, 76, 241, .3);
  transition: filter .15s ease, transform .15s ease;
}
.dp-poiinbox__btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.dp-poiinbox__btn:active:not(:disabled) { transform: translateY(0); }
.dp-poiinbox__btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.dp-poiinbox__btn:focus-visible { outline: 2px solid var(--dp-violet); outline-offset: 2px; }
.dp-poiinbox__nav { display: flex; gap: 6px; }
.dp-poiinbox__navbtn {
  font: inherit;
  font-size: .66rem;
  font-weight: 600;
  color: var(--dp-muted);
  background: transparent;
  border: 1px solid var(--dp-line);
  border-radius: 8px;
  padding: 4px 9px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.dp-poiinbox__navbtn:hover:not(:disabled) { color: #fff; border-color: rgba(166, 138, 249, .5); background: rgba(166, 138, 249, .08); }
.dp-poiinbox__navbtn:focus-visible { outline: 2px solid var(--dp-violet); outline-offset: 1px; }
.dp-poiinbox__navbtn:disabled { opacity: .4; cursor: not-allowed; }
.dp-poiinbox__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 14px 10px;
}
.dp-poiinbox__donecheck {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--dp-green) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--dp-green) 45%, transparent);
  color: var(--dp-green);
  font-size: .8rem;
}
.dp-poiinbox__donetext { font-size: .78rem; line-height: 1.4; color: var(--dp-text); }
.dp-poiinbox__donetext b { color: var(--dp-green); }

/* The inbox is a fixed region: it can never push the caucus pane taller, and
   the pane itself scrolls if anything else (motions, votes, suggestions)
   stacks below it. This is what stops answered POIs from growing the page. */
.dp-poiinbox { max-height: 470px; }
.dp-pane[data-pane="caucus"] { display: flex; flex-direction: column; min-height: 0; }

.dp-panel--dim .dp-composer { opacity: .55; }

@media (max-width: 420px) {
  .dp-caucushead { align-items: flex-start; }
  .dp-debix { flex-basis: 32px; width: 32px; height: 32px; }
}

/* ═══ chamber shell: one screen, no page scroll ═══════════════════════════ */
/* The chamber is an application shell, not a document. It fills the viewport
   below the navbar and every region inside it manages its own overflow. */

.dp-shell { --dp-shell-offset: 112px; }

.dp-shell:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin-top: 0;
  gap: 10px;
  overflow: hidden;
}

.dp-shell__note { margin: 0; opacity: .55; font-size: .68rem; }

/* ── top bar: title + one live status chip ── */
.dp-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}
.dp-topbar__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dp-topbar__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42ch;
}

/* ── two regions ── */
.dp-chamber {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 366px;
  gap: 12px;
  flex: 1;
  min-height: 0;
  margin-top: 0;
  align-items: stretch;
}
.dp-chamber > * { min-width: 0; }

/* A closed session: the lectern goes dormant instead of looking live. */
#dpChamber[data-phase="evaluate"] .dp-podium__label { color: var(--dp-muted); }
#dpChamber[data-phase="evaluate"] .dp-podium__portrait {
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .04);
}
#dpChamber[data-phase="evaluate"] .dp-lectern { opacity: .55; filter: grayscale(.45); }
#dpChamber[data-phase="evaluate"] .dp-podium__flag { opacity: .4; }

.dp-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: auto;
  padding: 14px;
  border-radius: 22px;
}

.dp-room {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  flex: 1;
  padding: 10px 6px 4px;
  border-radius: 18px;
  background:
    radial-gradient(72% 60% at 50% 8%, rgba(166, 138, 249, .22), transparent 68%),
    radial-gradient(60% 44% at 50% 108%, rgba(58, 190, 255, .12), transparent 70%),
    linear-gradient(180deg, #0d1220, #070a10);
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}
/* Grid rows default to min-content, which lets a long chair line or a wide
   horseshoe push the room's children past the stage. Clamp them to the row. */
.dp-room > * { min-width: 0; max-width: 100%; }
/* Each workspace owns the room's flexible row: tall content scrolls inside
   the stage instead of growing past it and clipping the footer actions. */
.dp-room > .dp-blocroom,
.dp-room > .dp-drafting,
.dp-room > .dp-speeches,
.dp-room > .dp-voting {
  grid-row: 2;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dp-stage > .dp-phasebar,
.dp-stage > .dp-room,
.dp-stage > .dp-stagefoot { flex: 0 0 auto; }
.dp-stage > .dp-room { flex: 1 1 auto; }
.dp-room::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 42%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: radial-gradient(60% 100% at 50% 100%, rgba(166, 138, 249, .07), transparent 70%);
  pointer-events: none;
}

.dp-chaircard { padding: 8px 12px; gap: 10px; align-items: center; }
.dp-chaircard__avatar { width: 34px; height: 34px; flex: 0 0 34px; }
.dp-chaircard__who { font-size: .62rem; }
.dp-chaircard__line { font-size: .8rem; margin: 2px 0 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── the lectern ── */
.dp-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  margin: 0;
  padding: 0 10px;
  border: 0;
  background: none;
  text-align: center;
  position: relative;
  z-index: 1;
}
/* Only the speech absorbs a short viewport. The lectern and portrait keep
   their shape, so a compressed room can never collapse them into each other. */
.dp-podium > * { flex-shrink: 0; }
.dp-podium > .dp-podium__speech { flex-shrink: 1; min-height: 2.4em; }

.dp-podium__label {
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dp-gold);
  opacity: .9;
}

.dp-podium__figure { position: relative; display: grid; place-items: center; }
.dp-podium__portrait {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, .5);
  box-shadow: 0 0 0 5px rgba(251, 191, 36, .09), 0 12px 26px rgba(0, 0, 0, .5);
  background: #0b0e14;
}
.dp-podium__portrait:empty { border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.dp-podium__portrait svg { display: block; width: 100%; height: 100%; }
.dp-podium__flag { position: absolute; right: -12px; bottom: -2px; }
.dp-podium__flag img {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .35);
  object-fit: cover;
}
.dp-podium__flag:empty { display: none; }

.dp-lectern { position: relative; width: 196px; height: 74px; margin-top: -18px; }
.dp-lectern__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 13px;
  background: linear-gradient(180deg, #332c47, #201a30);
  clip-path: polygon(2% 0, 98% 0, 94% 100%, 6% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px rgba(0, 0, 0, .45);
}
.dp-lectern__face {
  position: absolute;
  top: 12px; left: 7px; right: 7px; bottom: 12px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  background: linear-gradient(180deg, #221c31, #14101e 70%);
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: grid;
  place-items: center;
  gap: 4px;
  align-content: center;
}
.dp-lectern__crest {
  font-family: var(--heading-font);
  font-size: .58rem;
  letter-spacing: .1em;
  color: rgba(251, 191, 36, .85);
}
.dp-lectern__plate {
  font-size: .5rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp-lectern__base {
  position: absolute;
  left: 16%; right: 16%; bottom: 0;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #1a1527, #0c0912);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .55);
}
.dp-lectern__mic {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .8));
  z-index: 2;
}
.dp-lectern__mic::before {
  content: "";
  position: absolute;
  top: -8px; left: -4px;
  width: 10px; height: 9px;
  border-radius: 5px 5px 3px 3px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .45);
}
.dp-lectern__mic::after {
  content: "";
  position: absolute;
  bottom: -1px; left: -5px;
  width: 12px; height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
}

.dp-podium__ident { margin-top: -2px; }
.dp-podium__name { font-size: .88rem; font-weight: 650; }
.dp-podium__tag { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dp-muted); }

.dp-podium__speech {
  margin: 0;
  max-width: 62ch;
  max-height: 5.6em;
  overflow: auto;
  font-size: .78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
  scrollbar-width: thin;
}

.dp-podium__foot { display: flex; align-items: center; gap: 10px; justify-content: center; }

/* ── horseshoe seating ── */
.dp-horseshoe {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 0 4px 6px;
  position: relative;
  z-index: 1;
}

.dp-horseshoe .dp-seat {
  --t: calc(var(--i, 2) - 2);
  flex: 0 1 92px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 4px 0;
  border: 0;
  border-radius: 12px;
  background: none;
  transform: translateY(calc(var(--t) * var(--t) * -7px)) rotate(calc(var(--t) * 1.6deg));
  transition: transform .2s ease;
}
.dp-horseshoe .dp-seat:hover { transform: translateY(calc(var(--t) * var(--t) * -7px - 2px)) rotate(calc(var(--t) * 1.6deg)); }
.dp-horseshoe .dp-seat__portrait {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #0b0e14;
  position: relative;
}
.dp-horseshoe .dp-seat__portrait svg { display: block; width: 100%; height: 100%; }
.dp-horseshoe .dp-seat--you .dp-seat__portrait { border-color: rgba(166, 138, 249, .6); }
.dp-horseshoe .dp-seat--speaking .dp-seat__portrait {
  border-color: var(--dp-gold);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .16);
}

.dp-seat__desk {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: -6px;
  padding: 2px 6px 3px;
  width: 100%;
  justify-content: center;
  border-radius: 4px 4px 7px 7px;
  background: linear-gradient(180deg, #262038, #161120);
  border: 1px solid rgba(255, 255, 255, .09);
  border-top-color: rgba(255, 255, 255, .16);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
  position: relative;
  z-index: 2;
}
.dp-seat--speaking .dp-seat__desk { border-color: rgba(251, 191, 36, .5); }
.dp-seat__mic {
  width: 1px;
  height: 9px;
  background: rgba(255, 255, 255, .45);
  position: relative;
  flex: 0 0 auto;
}
.dp-seat__mic::before {
  content: "";
  position: absolute;
  top: -3px; left: -2px;
  width: 5px; height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
}
.dp-horseshoe .dp-seat__name { font-size: .6rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-seat__status {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex: 0 0 5px;
  background: rgba(255, 255, 255, .22);
}
.dp-seat[data-state="spoke"] .dp-seat__status { background: var(--dp-green); }
.dp-seat[data-state="speaking"] .dp-seat__status { background: var(--dp-gold); box-shadow: 0 0 0 2px rgba(251, 191, 36, .22); }
.dp-seat[data-state="next"] .dp-seat__status { background: var(--dp-blue); }
.dp-horseshoe .dp-seat__flag { margin-top: 2px; }
.dp-horseshoe .dp-seat__flag img { width: 20px; height: 13px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .2); }
.dp-horseshoe .dp-seat__tag { display: none; }
.dp-horseshoe .dp-seat__you {
  position: absolute;
  top: -6px;
  font-size: .42rem;
  letter-spacing: .1em;
  padding: 1px 4px;
  border-radius: 20px;
  background: var(--dp-violet);
  color: #fff;
}

/* ── rail ── */
.dp-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  align-content: stretch;
  overflow: hidden;
}

.dp-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--dp-line);
  flex: 0 0 auto;
}
.dp-tab {
  font: inherit;
  font-size: .7rem;
  font-weight: 600;
  padding: 6px 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--dp-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dp-tab:hover { color: #fff; }
.dp-tab[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(166, 138, 249, .32), rgba(166, 138, 249, .14));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.dp-tab:focus-visible { outline: 2px solid var(--dp-violet); outline-offset: 1px; }
.dp-tab[data-badge="true"]::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--dp-gold);
  vertical-align: middle;
}

.dp-panes { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 2px 2px 2px 0; scrollbar-width: thin; }
.dp-pane { display: block; }
.dp-pane[hidden] { display: none !important; }
.dp-pane .dp-block__title { margin-bottom: 8px; }

.dp-linkbtn {
  margin-left: auto;
  font: inherit;
  font-size: .62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--dp-line);
  background: transparent;
  color: var(--dp-muted);
  cursor: pointer;
}
.dp-linkbtn:hover { color: #fff; border-color: var(--dp-violet); }

/* compact live log; the full record lives in the drawer */
.dp-transcript--live .dp-turn { padding: 6px 8px; }
.dp-transcript--live .dp-turn__text {
  font-size: .74rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* the live log keeps the newest turns on screen; older ones fold away */
.dp-transcript__more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: .68rem;
  font-weight: 600;
  color: var(--dp-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dp-line);
  border-radius: 10px;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.dp-transcript__more::after { content: " ▾"; }
.dp-transcript__more[aria-expanded="true"]::after { content: " ▴"; }
.dp-transcript__more:hover,
.dp-transcript__more:focus-visible { color: #fff; border-color: var(--dp-violet); background: rgba(166, 138, 249, 0.12); }
.dp-transcript__more[hidden] { display: none; }

/* ── compose dock ── */
.dp-compose {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--dp-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}
.dp-compose .dp-block__title { margin-bottom: 6px; }
#dpComposerLabel { display: block; margin-bottom: 6px; }
#dpAdvanceHint[hidden] { display: none; }
.dp-compose .dp-composer { min-height: 72px; max-height: 128px; resize: vertical; font-size: .8rem; }
.dp-compose__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.dp-compose__status { margin: 6px 0 0; opacity: .7; }

/* Once the delegate's own speech is on the record the composer has nothing
   left to do: it collapses to a single confirmation line, so the field can
   never be refilled and no second AI call is ever paid for. */
.dp-compose.is-done { background: linear-gradient(180deg, rgba(52, 211, 153, .07), rgba(255, 255, 255, .015)); border-color: rgba(52, 211, 153, .28); }
.dp-compose.is-done #dpComposerLabel,
.dp-compose.is-done #dpSpeech,
.dp-compose.is-done .dp-compose__row { display: none; }
.dp-compose.is-done .dp-compose__status { margin-top: 8px; opacity: .55; }
.dp-compose__done { display: flex; gap: 10px; align-items: flex-start; }
.dp-compose__done[hidden] { display: none; }
.dp-compose__donemark {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, .45);
  background: rgba(52, 211, 153, .14);
  color: #34d399;
  font-size: 11px; font-weight: 700;
}
.dp-compose__donetext { display: grid; gap: 3px; min-width: 0; }
.dp-compose__donetext b { font-size: .78rem; font-weight: 600; color: var(--dp-text); }
.dp-compose__donetext span { font-size: .7rem; line-height: 1.5; color: var(--dp-muted); }
.dp-panel--dim .dp-compose { opacity: .6; }

.dp-side > .dp-panel { flex: 0 0 auto; }
/* The evaluation is the one sidebar panel that owns the remaining height and
   scrolls internally, so a long verdict can never stretch the shell. */
.dp-side > #dpEvalPanel { flex: 1 1 auto; min-height: 0; }

.dp-sidefoot {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.dp-sidefoot__seat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .65; }
.dp-sidefoot__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 0;
  flex-wrap: nowrap;
}
.dp-sidefoot__actions .dp-btn {
  width: 100%;
  min-height: 34px;
  margin: 0;
  justify-content: center;
  white-space: nowrap;
}
.dp-sidefoot__actions #dpLeave { width: auto; padding-inline: 16px; }

/* ── relationship tracker ── */
.dp-relations { display: grid; gap: 5px; }
.dp-rel {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .022);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dp-rel:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); }
.dp-rel:focus-visible { outline: 2px solid var(--dp-violet); outline-offset: 1px; }
.dp-rel[data-current="true"] { border-color: rgba(166, 138, 249, .55); background: rgba(166, 138, 249, .08); }
.dp-rel img { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .18); }
.dp-rel__name { font-size: .74rem; font-weight: 600; display: block; }
.dp-rel__status { font-size: .62rem; letter-spacing: .02em; display: block; opacity: .85; }
.dp-rel__meter { width: 42px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dp-rel__fill { display: block; height: 100%; width: 0; background: currentColor; }
.dp-rel[data-tone="green"] { color: var(--dp-green); }
.dp-rel[data-tone="blue"] { color: var(--dp-blue); }
.dp-rel[data-tone="muted"] { color: #9ca3af; }
.dp-rel[data-tone="orange"] { color: var(--dp-orange); }
.dp-rel[data-tone="red"] { color: #f87171; }
.dp-rel[data-tone="muted"] .dp-rel__name,
.dp-rel[data-tone="green"] .dp-rel__name,
.dp-rel[data-tone="blue"] .dp-rel__name,
.dp-rel[data-tone="orange"] .dp-rel__name,
.dp-rel[data-tone="red"] .dp-rel__name { color: #f4f2ff; }

.dp-relationdetail {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(166, 138, 249, .3);
  background: rgba(166, 138, 249, .06);
  font-size: .74rem;
  line-height: 1.45;
}
.dp-relationdetail[hidden] { display: none !important; }
.dp-relationdetail b { display: block; font-size: .78rem; margin-bottom: 3px; }

/* ── transcript drawer ── */
.dp-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 5, 10, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dp-drawer[hidden] { display: none !important; }
.dp-drawer__panel {
  width: min(720px, 100%);
  max-height: min(80dvh, 700px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--dp-line);
  background: linear-gradient(180deg, #0d1220, #080b12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.dp-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dp-transcript--full { flex: 1 1 auto; min-height: 0; overflow: auto; }

/* ── responsive: desktop → laptop → tablet → phone ───────────────────────── */

/* Short desktop viewports (720–840px tall) keep the room in one screen by
   compressing the stage furniture, never by collapsing it into itself. */
@media (min-width: 901px) and (max-height: 840px) {
  .dp-room { gap: 6px; padding: 8px 6px 2px; }
  .dp-chaircard { padding: 6px 10px; gap: 8px; }
  .dp-chaircard__avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; }
  .dp-chaircard__line { font-size: .74rem; -webkit-line-clamp: 1; }
  .dp-podium { gap: 4px; }
  .dp-podium__label { font-size: .52rem; }
  .dp-podium__portrait { width: 50px; height: 50px; }
  .dp-lectern { width: 172px; height: 58px; margin-top: -14px; }
  .dp-lectern__face { top: 10px; bottom: 10px; }
  .dp-lectern__base { height: 9px; }
  .dp-podium__name { font-size: .8rem; }
  .dp-podium__tag { font-size: .54rem; }
  .dp-podium__speech { font-size: .72rem; max-height: 4.2em; }
  .dp-podium__foot { font-size: .58rem; }
  .dp-horseshoe { gap: 8px; padding-bottom: 2px; }
  .dp-horseshoe .dp-seat { flex-basis: 80px; padding-top: 4px; }
  .dp-horseshoe .dp-seat__portrait { width: 38px; height: 38px; }
  .dp-horseshoe .dp-seat__name { font-size: .54rem; }
  .dp-horseshoe .dp-seat__flag img { width: 16px; height: 11px; }
}

@media (max-width: 1180px) {
  .dp-chamber { grid-template-columns: minmax(0, 1fr) 318px; }
  .dp-topbar__title { max-width: 30ch; }
  .dp-podium__speech { max-width: 46ch; }
}

@media (max-width: 1024px) {
  .dp-wrap { width: calc(100% - 32px); }
  .dp-chamber { grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; }
  .dp-stage { padding: 12px; }
  .dp-room { padding: 8px 4px 2px; }
  .dp-horseshoe .dp-seat { flex-basis: 78px; }
  .dp-horseshoe .dp-seat__portrait { width: 40px; height: 40px; }
  .dp-rail li { padding: 5px 7px; gap: 6px; }
  .dp-rail li b { width: 18px; height: 18px; }
}

/* Tablet portrait and below: a deliberate vertical document that scrolls. The
   shell stops owning the viewport here, otherwise the lower half of the page
   would be clipped and unreachable — the failure mode this block fixes. */
@media (max-width: 900px) {
  .dp-page:has(.dp-shell:not([hidden])) {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    overflow-x: hidden;
    padding-bottom: 28px;
  }
  .dp-page:has(.dp-shell:not([hidden])) .dp-main,
  .dp-page:has(.dp-shell:not([hidden])) .dp-wrap { flex: 0 0 auto; min-height: 0; }
  .dp-page:has(.dp-shell:not([hidden])) .dp-toast { position: fixed; bottom: 18px; }
  .dp-shell:not([hidden]) { height: auto; overflow: visible; gap: 8px; }
  .dp-chamber { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* The stage's desktop overflow:hidden makes it the sticky scroll container,
     which would pin the phase bar and the footer to a box that never scrolls.
     On phones the viewport is the scroller, so the stage must not clip. */
  .dp-stage { min-height: 0; overflow: visible; }
  .dp-room { min-height: 440px; }
  /* Workspaces return to the document flow on phones: the page scrolls and
     no nested inner scroller competes with the touch gesture. */
  .dp-room > .dp-blocroom,
  .dp-room > .dp-drafting,
  .dp-room > .dp-speeches,
  .dp-room > .dp-voting {
    grid-row: auto;
    overflow: visible;
  }
  .dp-side { overflow: visible; }
  .dp-panes { flex: 0 0 auto; max-height: 380px; }
  /* In a scrolling document the evaluation needs no internal scroll: the
     whole record is simply part of the page. */
  .dp-side > #dpEvalPanel { flex: 0 0 auto; max-height: none; overflow: visible; }
}

@media (max-width: 768px) {
  .dp-wrap, .dp-wrap--narrow { width: calc(100% - 24px); }
  .dp-topbar { flex-wrap: wrap; align-items: center; }
  .dp-topbar__title { font-size: .96rem; white-space: normal; max-width: 100%; }
  .dp-rail { padding: 6px 7px; }
  /* Compact tracker from here down: eight stages no longer fit as fixed
     items, so numbers always show and only the current stage keeps its name. */
  .dp-rail li { flex: 0 0 auto; min-width: 0; padding: 5px 7px; }
  .dp-rail li span { display: none; }
  .dp-rail li[data-state="now"] span { display: block; max-width: 76px; }
  .dp-rail li + li::before { display: none; }
  .dp-stage { padding: 10px; border-radius: 16px; }
  .dp-phasebar { padding: 9px 11px; gap: 10px; }
  .dp-tab { min-height: 36px; }
  .dp-btn { min-height: 38px; }
}

@media (max-width: 560px) {
  /* Five seats share the row instead of overflowing the room. */
  .dp-horseshoe { gap: 2px; padding: 0 0 4px; overflow: visible; justify-content: center; }
  .dp-horseshoe .dp-seat { flex: 1 1 0; max-width: 74px; min-width: 0; }
  .dp-horseshoe .dp-seat__portrait { width: 38px; height: 38px; }
  .dp-horseshoe .dp-seat__name { font-size: .5rem; }
  .dp-horseshoe .dp-seat__mic { display: none; }
  .dp-podium { width: 100%; }
  .dp-podium__portrait { width: 52px; height: 52px; }
  .dp-podium__name { font-size: .82rem; }
  .dp-podium__speech { max-height: 5em; font-size: .72rem; }
  .dp-lectern { width: 160px; height: 64px; }
  .dp-status { padding: 4px 9px; font-size: .62rem; }
  .dp-drawer { padding: 10px; }
  .dp-compose .dp-composer { min-height: 64px; }
}

/* ── country search ─────────────────────────────────────────────────────── */
.dp-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--dp-line);
  background: var(--dp-panel);
  color: var(--dp-text, #e2e8f0);
  font: inherit;
  font-size: .85rem;
}
.dp-search::placeholder { color: #64748b; }
.dp-search:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 2px; border-color: var(--dp-line-strong); }

/* ── prepare: drag-and-drop position paper ──────────────────────────────── */
.dp-prepare { display: grid; gap: 14px; margin-top: 20px; }
.dp-prepare__tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--dp-line-strong);
  border-radius: 14px;
  background: var(--dp-panel);
  min-height: 58px;
}
.dp-prepare__slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dp-paper__slot {
  border: 1px solid var(--dp-line);
  border-radius: 14px;
  background: var(--dp-panel);
  padding: 12px;
}
.dp-paper__slot--blue { border-color: rgba(58, 190, 255, .35); }
.dp-paper__slot--red { border-color: rgba(248, 113, 113, .35); }
.dp-paper__slot--green { border-color: rgba(52, 211, 153, .35); }
.dp-paper__slot header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}
.dp-paper__slot header b { font-size: .82rem; color: var(--dp-text, #e2e8f0); }
.dp-paper__slot header span { font-size: .68rem; color: #64748b; }
.dp-paper__cells { display: grid; gap: 7px; }
.dp-paper__chip {
  display: block;
  width: 100%;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .045);
  color: inherit;
  font: inherit;
  font-size: .78rem;
  line-height: 1.35;
  text-align: left;
  cursor: grab;
  transition: border-color .15s ease, background .15s ease;
}
.dp-prepare__slots .dp-paper__chip { cursor: pointer; background: rgba(255, 255, 255, .07); }
.dp-paper__chip:hover { border-color: var(--dp-line-strong); background: rgba(255, 255, 255, .08); }
.dp-paper__drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px dashed var(--dp-line);
  border-radius: 10px;
  color: #64748b;
  font-size: .72rem;
}
.dp-paper__slot.dp-paper__over { border-color: var(--dp-blue); background: rgba(58, 190, 255, .07); }

/* ── bloc map ───────────────────────────────────────────────────────────── */
.dp-blocs { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-bloc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  font-size: .68rem;
  color: #cbd5e1;
}
.dp-bloc__name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-bloc__tag { font-weight: 600; letter-spacing: .02em; }
.dp-bloc[data-tone="green"] .dp-bloc__tag { color: #34D399; }
.dp-bloc[data-tone="gold"] .dp-bloc__tag { color: #FBBF24; }
.dp-bloc[data-tone="red"] .dp-bloc__tag { color: #f87171; }

/* ── paused conferences on the landing page ─────────────────────────────── */
.dp-paused { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dp-paused__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--dp-line);
  background: var(--dp-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.dp-paused__row:hover { border-color: var(--dp-violet); background: var(--dp-panel-strong); }
.dp-paused__who { display: grid; gap: 2px; min-width: 0; }
.dp-paused__who b { font-size: .86rem; color: var(--dp-text, #e2e8f0); }
.dp-paused__who span { font-size: .72rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-paused__meta { flex-shrink: 0; font-size: .7rem; color: #64748b; }
.dp-hist__stat--paper b { color: var(--dp-violet); }

@media (max-width: 860px) {
  .dp-prepare__slots { grid-template-columns: 1fr; }
  .dp-paused { grid-template-columns: 1fr; }
  .dp-paused__row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── unmoderated caucus · bloc room ───────────────────────────────────────── */
/* These three workspaces replace the podium inside .dp-room, so each one has to
   fill its grid row and scroll internally rather than stretch the room. */
.dp-blocroom, .dp-drafting, .dp-voting {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 4px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dp-blocroom__head, .dp-drafting__head, .dp-voting__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.dp-blocroom__title, .dp-drafting__title, .dp-voting__title {
  margin: 2px 0 0;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  letter-spacing: .01em;
}
.dp-blocroom__sub { max-width: 62ch; }
.dp-blocroom__tally { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-blocroom__count {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .035);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--dp-muted, #97a0af);
  white-space: nowrap;
}

.dp-blocgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.dp-countrycard {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  display: grid;
  gap: 6px;
  min-width: 0;
}
.dp-countrycard.is-you { border-color: rgba(166, 138, 249, .5); background: rgba(166, 138, 249, .08); }
.dp-countrycard__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dp-countrycard__flag { border-radius: 2px; flex: 0 0 auto; }
.dp-countrycard__name { font-size: .78rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-countrycard__stance {
  margin: 0;
  font-size: .7rem;
  color: var(--dp-muted, #97a0af);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dp-countrycard__bloc {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dp-muted, #97a0af);
}
.dp-countrycard__bloc.is-set { color: var(--dp-teal, #2DD4BF); }

.dp-blocpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
/* Scoped to the bloc-room pair: `.dp-bloc` also styles the compact chips in the
   relations pane, which must keep their own look. */
.dp-blocpair .dp-bloc {
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dp-blocpair .dp-bloc.is-recommended { border-color: rgba(45, 212, 191, .55); box-shadow: 0 0 0 1px rgba(45, 212, 191, .18); }
.dp-blocpair .dp-bloc.is-joined { background: rgba(45, 212, 191, .07); }
.dp-bloc__head { display: grid; gap: 4px; }
.dp-blocpair .dp-bloc__tag {
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dp-muted, #97a0af);
}
.dp-blocpair .dp-bloc.is-recommended .dp-bloc__tag { color: var(--dp-teal, #2DD4BF); }
.dp-blocpair .dp-bloc__name {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--heading-font, "Unbounded", sans-serif);
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.dp-bloc__position { margin: 0; font-size: .78rem; color: var(--dp-text, #E5E7EB); line-height: 1.5; }
.dp-bloc__block { display: grid; gap: 5px; }
.dp-bloc__label { text-transform: uppercase; letter-spacing: .12em; }
.dp-blocmembers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dp-blocmember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .035);
  font-size: .72rem;
}
.dp-blocmember__flag { border-radius: 2px; }
.dp-blocmember__you {
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0B0E14;
  background: var(--dp-teal, #2DD4BF);
  border-radius: 999px;
  padding: 1px 6px;
}
.dp-bloc__list { margin: 0; padding-left: 16px; display: grid; gap: 3px; font-size: .74rem; color: var(--dp-muted, #97a0af); }
.dp-bloc__why {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(45, 212, 191, .4);
  background: rgba(45, 212, 191, .05);
}
.dp-bloc__why ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; font-size: .74rem; line-height: 1.45; }
.dp-bloc__join { align-self: flex-start; }
.dp-blocfeed { display: grid; gap: 6px; }
.dp-blocfeed__line {
  margin: 0;
  font-size: .74rem;
  color: var(--dp-muted, #97a0af);
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, .1);
}
.dp-blocjoined {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, .4);
  background: rgba(45, 212, 191, .06);
  display: grid;
  gap: 8px;
}
.dp-blocjoined__title { font-size: .92rem; font-weight: 600; }
.dp-blocjoined__hint { color: var(--dp-teal, #2DD4BF); }

/* ── drafting resolution ──────────────────────────────────────────────────── */
.dp-drafting__tabs { display: inline-flex; gap: 6px; padding: 4px; border-radius: 12px; border: 1px solid var(--dp-line); background: rgba(255, 255, 255, .03); }
.dp-drafting__tab {
  border: 0;
  background: transparent;
  color: var(--dp-muted, #97a0af);
  font: inherit;
  font-size: .74rem;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  min-height: 34px;
}
.dp-drafting__tab[aria-selected="true"] { background: var(--dp-grad); color: #0B0E14; font-weight: 600; }
.dp-draftgrid { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 12px; align-items: start; }
.dp-clauselib {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
}
.dp-clauselist { display: grid; gap: 8px; }
.dp-clause {
  display: grid;
  gap: 6px;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .035);
  color: inherit;
  font: inherit;
  cursor: grab;
  transition: border-color .15s ease, transform .15s ease;
}
.dp-clause:hover { border-color: var(--dp-gold, #FBBF24); transform: translateY(-1px); }
.dp-clause__kind { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dp-gold, #FBBF24); }
.dp-clause__text { font-size: .76rem; line-height: 1.45; }
.dp-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dp-muted, #97a0af);
}
.dp-author__flag { border-radius: 2px; }
.dp-author.is-you { color: var(--dp-violet, #a68af9); }
.dp-author.is-chair { color: var(--dp-gold, #FBBF24); }

.dp-resdoc {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--dp-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  display: grid;
  gap: 14px;
  min-width: 0;
}
.dp-resdoc__meta { display: grid; gap: 4px; }
.dp-resdoc__topic { margin: 0; font-size: .72rem; color: var(--dp-muted, #97a0af); }
.dp-resdoc__title { margin: 2px 0 0; font-size: 1.05rem; line-height: 1.35; font-family: var(--heading-font, "Unbounded", sans-serif); }
.dp-resdoc__fields { margin: 8px 0 0; display: grid; gap: 6px; font-size: .72rem; }
.dp-resdoc__fields dt { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dp-muted, #97a0af); }
.dp-resdoc__fields dd { margin: 2px 0 0; }
.dp-resdoc__fields > div { min-width: 0; }
.dp-resdoc__flag { border-radius: 2px; vertical-align: -1px; }
.dp-resdoc__section { display: grid; gap: 6px; }
.dp-resdoc__section[data-drop] { border-radius: 12px; transition: background .15s ease; }
.dp-resdoc__section[data-drop]:hover { background: rgba(255, 255, 255, .02); }
.dp-resdoc__heading { margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dp-violet, #a68af9); }
.dp-resdoc__hint { margin: 0; }
.dp-resclauses { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.dp-resclause {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  min-width: 0;
}
.dp-resclause[draggable="true"] { cursor: grab; }
.dp-resclause__label { font-family: var(--heading-font, "Unbounded", sans-serif); font-size: .72rem; color: var(--dp-blue, #3ABEFF); flex: 0 0 22px; }
.dp-resclause__text { flex: 1 1 auto; font-size: .78rem; line-height: 1.5; min-width: 0; }
.dp-resclause__tools { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.dp-minibtn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .04);
  color: var(--dp-muted, #97a0af);
  font-size: .72rem;
  line-height: 1;
  cursor: pointer;
}
.dp-minibtn:hover { color: var(--dp-text, #E5E7EB); border-color: var(--dp-line-strong, rgba(255, 255, 255, .16)); }
.dp-minibtn--danger:hover { color: #f87171; border-color: rgba(248, 113, 113, .5); }
.dp-resdoc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dp-resdoc__foot .is-ok { color: var(--dp-green, #34D399); }
.dp-resdoc__foot .is-warn { color: var(--dp-orange, #fb923c); }
.dp-resdoc__critique {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, .35);
  background: rgba(251, 191, 36, .06);
}
.dp-resdoc__critiquelabel { color: var(--dp-gold, #FBBF24); }
.dp-resdoc__critique ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; font-size: .74rem; line-height: 1.45; }
.dp-resdoc__mini { display: grid; gap: 6px; }
.dp-resdoc__prelist, .dp-resdoc__oplist { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .76rem; line-height: 1.5; }

/* ── voting ───────────────────────────────────────────────────────────────── */
.dp-presentpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.dp-presentation {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.dp-presentation.is-mine { border-color: rgba(166, 138, 249, .45); }
.dp-presentation__head { display: flex; gap: 10px; align-items: flex-start; }
.dp-presentation__flag { border-radius: 2px; margin-top: 3px; }
.dp-presentation__name { margin: 2px 0 0; font-size: .95rem; }
.dp-presentation__bloc { margin: 3px 0 0; font-size: .68rem; color: var(--dp-muted, #97a0af); }
.dp-presentation__speech { margin: 0; font-size: .8rem; line-height: 1.6; }
.dp-presentation__doc {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--dp-line);
  background: rgba(8, 11, 18, .55);
}
.dp-voteresult {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  display: grid;
  gap: 12px;
}
.dp-voteoutcome__head { display: grid; gap: 4px; }
.dp-voteoutcome__verdict { margin: 2px 0 0; font-size: 1.1rem; font-family: var(--heading-font, "Unbounded", sans-serif); }
.dp-voteoutcome__verdict.is-carried { color: var(--dp-green, #34D399); }
.dp-voteoutcome__verdict.is-lost { color: var(--dp-orange, #fb923c); }
.dp-ballots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dp-ballot {
  display: grid;
  grid-template-columns: auto minmax(90px, auto) minmax(70px, auto) 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .025);
  font-size: .74rem;
}
.dp-ballot__flag { border-radius: 2px; }
.dp-ballot__name { font-weight: 600; }
.dp-ballot__vote { color: var(--dp-blue, #3ABEFF); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.dp-ballot[data-choice="abstain"] .dp-ballot__vote { color: var(--dp-muted, #97a0af); }
.dp-ballot__reason { color: var(--dp-muted, #97a0af); line-height: 1.45; }

.dp-votemodal {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid var(--dp-line-strong, rgba(255, 255, 255, .16));
  border-radius: 20px;
  background: linear-gradient(180deg, #10141f, #0a0d15);
  color: var(--dp-text, #E5E7EB);
  overflow: hidden;
}
.dp-votemodal::backdrop { background: rgba(4, 6, 10, .72); backdrop-filter: blur(4px); }
.dp-votemodal__panel { padding: 18px 20px 16px; display: grid; gap: 12px; max-height: inherit; overflow: auto; }
.dp-votemodal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dp-votemodal__docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.dp-ballotcard {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  min-width: 0;
}
.dp-ballotcard.is-selected { border-color: rgba(45, 212, 191, .6); background: rgba(45, 212, 191, .07); }
.dp-ballotcard__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-ballotcard__title { font-size: .82rem; font-weight: 600; flex: 1 1 auto; min-width: 0; }
.dp-ballotcard__mine { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dp-muted, #97a0af); }
.dp-votemodal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* history: the vote outcome chip */
.dp-hist__stat--resolution b { color: var(--dp-orange, #fb923c); }
.dp-hist__stat--resolution.is-carried b { color: var(--dp-green, #34D399); }

@media (max-width: 900px) {
  .dp-draftgrid { grid-template-columns: minmax(0, 1fr); }
  .dp-clauselib { max-height: none; }
  .dp-ballot { grid-template-columns: auto 1fr; grid-template-areas: "flag name" "vote reason"; }
  .dp-ballot__flag { grid-area: flag; }
  .dp-ballot__name { grid-area: name; }
  .dp-ballot__vote { grid-area: vote; }
  .dp-ballot__reason { grid-area: reason; }
}

/* ── speeches for and against ─────────────────────────────────────────────── */
.dp-speeches { display: flex; flex-direction: column; gap: 14px; }
.dp-speeches__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dp-speeches__title { font-size: 1.15rem; margin: 2px 0 4px; }
.dp-speeches__stance {
  align-self: flex-start;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--dp-line-strong);
  color: var(--dp-text);
  background: var(--dp-panel-strong);
}
.dp-speeches__stance[data-stance="for"] { border-color: rgba(52, 211, 153, .55); color: #6ee7b7; background: rgba(52, 211, 153, .1); }
.dp-speeches__stance[data-stance="against"] { border-color: rgba(251, 146, 60, .55); color: #fdba74; background: rgba(251, 146, 60, .1); }

.dp-speechstep { display: flex; flex-direction: column; gap: 12px; }
.dp-speechstep__intro { font-size: .9rem; font-weight: 600; margin: 0; }

.dp-speechchoice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-speechchoice__card {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 18px; border-radius: var(--dp-radius);
  border: 1px solid var(--dp-line);
  background: var(--dp-surface);
  color: var(--dp-text); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dp-speechchoice__card:hover { border-color: var(--dp-line-strong); background: var(--dp-surface-strong); transform: translateY(-1px); }
.dp-speechchoice__card:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 3px; }
.dp-speechchoice__icon { font-size: 1.2rem; }
.dp-speechchoice__card[data-stance="for"] .dp-speechchoice__icon { color: var(--dp-green); }
.dp-speechchoice__card[data-stance="against"] .dp-speechchoice__icon { color: var(--dp-orange); }
.dp-speechchoice__label { font-size: .95rem; font-weight: 600; }
.dp-speechchoice__hint { font-size: .72rem; color: var(--dp-muted); line-height: 1.5; }

.dp-speechprep__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dp-speechprep__clock {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem; font-weight: 700;
  padding: 4px 12px; border-radius: 10px;
  border: 1px solid var(--dp-line-strong);
  background: var(--dp-panel-strong);
}
.dp-speechprep__clock[data-warn="true"] { color: var(--dp-orange); border-color: rgba(251, 146, 60, .5); }

.dp-speechfields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dp-speechfield { display: flex; flex-direction: column; gap: 4px; }
.dp-speechfield__label { font-size: .76rem; font-weight: 600; }
.dp-speechfield__prompt { font-size: .68rem; color: var(--dp-muted); line-height: 1.45; }
.dp-speechfield__input, .dp-speechpoi__input {
  width: 100%; resize: vertical;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--dp-line);
  background: var(--dp-panel);
  color: var(--dp-text);
  font: inherit; font-size: .8rem; line-height: 1.5;
}
.dp-speechfield__input:focus, .dp-speechpoi__input:focus { outline: 2px solid var(--dp-blue); outline-offset: 1px; border-color: transparent; }

.dp-speechtext {
  margin: 0; padding: 14px 16px;
  border-left: 3px solid var(--dp-violet);
  border-radius: 0 12px 12px 0;
  background: var(--dp-panel);
  font-size: .86rem; line-height: 1.65;
  white-space: pre-wrap;
}
.dp-speechreact { display: flex; flex-direction: column; gap: 8px; }
.dp-speechreact__item { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--dp-panel); border: 1px solid var(--dp-line); }
.dp-speechreact__flag { border-radius: 3px; flex: 0 0 auto; margin-top: 2px; }
.dp-speechreact__name { font-size: .72rem; font-weight: 600; }
.dp-speechreact__text { margin: 2px 0 0; font-size: .78rem; line-height: 1.55; color: var(--dp-text); }

.dp-speechpoi { display: flex; flex-direction: column; gap: 10px; }
.dp-speechpoi__item { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--dp-line); background: var(--dp-panel); }
.dp-speechpoi__item.is-answered { border-color: rgba(52, 211, 153, .4); }
.dp-speechpoi__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dp-speechpoi__flag { border-radius: 3px; }
.dp-speechpoi__name { font-size: .76rem; font-weight: 600; }
.dp-speechpoi__no { margin-left: auto; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-muted); }
.dp-speechpoi__q { margin: 0 0 8px; font-size: .82rem; line-height: 1.55; }
.dp-speechpoi__a { margin: 0; font-size: .8rem; line-height: 1.55; color: #a7f3d0; }

@media (max-width: 760px) {
  .dp-speechchoice { grid-template-columns: 1fr; }
  .dp-speechfields { grid-template-columns: 1fr; }
}


/* ── history: the fold toggle ─────────────────────────────────────────────── */
.dp-hist__expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
}
.dp-hist__chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.dp-hist__expand[aria-expanded="true"] .dp-hist__chevron { transform: rotate(-135deg); }

/* ── temperament picker (briefing) ─────────────────────────────────────────── */
.dp-temper__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dp-temper__card {
  display: grid; gap: 4px; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--dp-line);
  background: rgba(255, 255, 255, .03); color: var(--dp-text);
  font: inherit;
}
.dp-temper__card b { font-size: .68rem; letter-spacing: .02em; }
.dp-temper__card span { font-size: .62rem; line-height: 1.45; color: var(--dp-muted); }
.dp-temper__card:hover { border-color: var(--dp-line-strong); background: rgba(255, 255, 255, .05); }
.dp-temper__card.is-active {
  border-color: rgba(166, 138, 249, .55);
  background: linear-gradient(135deg, rgba(166, 138, 249, .12), rgba(58, 190, 255, .08));
}
.dp-temper__card.is-active b { color: var(--dp-violet); }

/* ── the Chair's last note (briefing) ──────────────────────────────────────── */
.dp-lastgoal p { color: rgba(229, 231, 235, .9); }

/* ── AI turn meter (chamber sidefoot) ──────────────────────────────────────── */
.dp-turnmeter { color: rgba(151, 160, 175, .85); font-variant-numeric: tabular-nums; }
.dp-turnmeter.is-hot { color: var(--dp-orange); }

/* ── whip count (voting pane, before the ballot) ───────────────────────────── */
.dp-whip { padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--dp-line-strong); background: rgba(255, 255, 255, .02); display: grid; gap: 10px; }
.dp-whip__head { margin: 0; font-size: .66rem; color: var(--dp-muted); }
.dp-whip__head b { color: var(--dp-text); }
.dp-whip__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dp-whip__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--dp-line); background: rgba(255, 255, 255, .04);
  font-size: .6rem;
}
.dp-whip__name { color: rgba(229, 231, 235, .85); }
.dp-whip__vote { font-weight: 600; color: var(--dp-muted); }
.dp-whip__chip[data-choice="mine"] { border-color: rgba(52, 211, 153, .45); }
.dp-whip__chip[data-choice="mine"] .dp-whip__vote { color: var(--dp-green); }
.dp-whip__chip[data-choice="theirs"] { border-color: rgba(251, 146, 60, .4); }
.dp-whip__chip[data-choice="theirs"] .dp-whip__vote { color: var(--dp-orange); }
.dp-whip__chip[data-choice="abstain"] .dp-whip__vote { color: var(--dp-muted); }
.dp-whip__tally { margin: 0; font-size: .62rem; color: rgba(229, 231, 235, .8); font-variant-numeric: tabular-nums; }

/* ── evaluation extras: evidence notes + next goal ─────────────────────────── */
.dp-score__note { grid-column: 1 / -1; font-size: .6rem; line-height: 1.5; color: var(--dp-muted); }
.dp-evalgoal {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, .35);
  background: linear-gradient(135deg, rgba(251, 191, 36, .08), rgba(166, 138, 249, .06));
  display: grid; gap: 4px;
}
.dp-evalgoal .dp-kicker { color: var(--dp-gold); }
.dp-evalgoal p { margin: 0; font-size: .68rem; line-height: 1.55; color: rgba(229, 231, 235, .92); }

/* ── history: usage chip + chair's goal ────────────────────────────────────── */
.dp-hist__stat--usage { color: var(--dp-muted); }
.dp-hist__goal {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, .3);
  background: rgba(251, 191, 36, .05);
  font-size: .64rem; line-height: 1.55; color: rgba(229, 231, 235, .9);
}
.dp-hist__goal b { color: var(--dp-gold); }

/* Narrow briefings stack the temperament cards; the hints need room to read. */
@media (max-width: 640px) {
  .dp-temper__row { grid-template-columns: 1fr; }
  .dp-whip__chips { gap: 4px; }
}
