/* Module phpBB · Sondages laser
   Light theme: bleu phpBB modernisé + gris clairs + blanc cassé chaud
   ============================================================ */

:root {
  --bg-canvas: #f0eee9;
  --bg-app: #f3f5f8;
  --bg-panel: #ffffff;
  --bg-panel-soft: #f7f9fc;
  --bg-header-light: #e9eef5;
  --bg-header-dark: #135085;
  --bg-header-dark-2: #0a3a63;

  --border: #d6deea;
  --border-soft: #e3e9f0;
  --border-strong: #b7c2d2;

  --ink: #1f2a3a;
  --ink-2: #3a455a;
  --muted: #6b7689;
  --muted-2: #8b94a4;

  --brand: #1d6fc7;
  --brand-2: #155a9f;
  --brand-soft: #e7f0fa;

  --success: #2f9061;
  --danger: #c0392b;
  --warning: #b07900;

  --blade-default: #3aa0ff;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;

  --shadow-1: 0 1px 0 rgba(20,30,50,0.04), 0 1px 2px rgba(20,30,50,0.06);
  --shadow-2: 0 4px 14px rgba(20,30,50,0.08), 0 1px 3px rgba(20,30,50,0.06);

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-quote: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Reset within artboards */
.pb {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg-app);
  width: 100%;
  height: 100%;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb button { font: inherit; color: inherit; }

/* ===== phpBB topic chrome (light) ===== */
.pb-topic {
  padding: 18px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}
.pb-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.pb-crumbs a { color: var(--brand); text-decoration: none; }
.pb-crumbs .sep { color: var(--muted-2); }

.pb-topic-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--border-soft);
}
.pb-topic-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pb-topic-head .meta {
  font-size: 12px;
  color: var(--muted);
}

/* ===== Poll panel (variant A — sober) ===== */
.poll-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.poll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-header-light);
  border-bottom: 1px solid var(--border);
}
.poll-head .left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.poll-head .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #c8ddf1;
  padding: 3px 8px;
  border-radius: 999px;
}
.poll-head .badge.ended {
  color: var(--muted);
  background: #ecedf0;
  border-color: #dcdfe6;
}
.poll-head .badge.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 currentColor;
}
.poll-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.poll-head .right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.poll-head .right .pipe { color: var(--border-strong); }

.poll-question {
  padding: 18px 22px 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.poll-sub {
  padding: 0 22px 14px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.poll-sub .dot { color: var(--muted-2); }

.poll-body {
  padding: 8px 22px 20px;
  position: relative;
}

.poll-foot {
  padding: 12px 22px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-panel-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.poll-foot .actions { display: flex; gap: 8px; }

/* ===== Buttons ===== */
.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--ink);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-s);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: #f3f5f8; }
.btn.primary {
  background: var(--brand);
  border-color: var(--brand-2);
  color: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.ghost:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.btn.sm { padding: 4px 9px; font-size: 12px; }

/* ===== Vote choices (not yet voted) ===== */
.choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  cursor: pointer;
  background: var(--bg-panel);
  transition: background .12s, border-color .12s;
}
.choice:hover { background: var(--bg-panel-soft); border-color: var(--border-strong); }
.choice.selected { border-color: var(--brand); background: var(--brand-soft); }
.choice .check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--bg-panel);
}
.choice.radio .check { border-radius: 50%; }
.choice.selected .check {
  border-color: var(--brand);
  background: var(--brand);
}
.choice.selected .check svg { display: block; }
.choice .check svg { display: none; width: 12px; height: 12px; stroke: white; stroke-width: 2.5; fill: none; }
.choice.selected.radio .check::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
}
.choice .label {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
}

/* ===== Saber bar (results) ===== */
.saber-row {
  padding: 8px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.saber-row .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.saber-row .label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.saber-row .label .you {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #c8ddf1;
  padding: 1px 6px;
  border-radius: 999px;
}
.saber-row .stats {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.saber-row .stats .pct {
  font-weight: 600;
  color: var(--ink);
  margin-left: 6px;
}

.saber-track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  padding-left: 2px;
}
.saber-track::before {
  /* light backing rail */
  content: '';
  position: absolute;
  left: 38px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
  border-radius: 1px;
}

/* Hilt — minimaliste, métal brossé */
.hilt {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 18px;
  border-radius: 2px 4px 4px 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 25%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.35) 100%),
    repeating-linear-gradient(90deg,
      #3a3f47 0px, #3a3f47 2px,
      #1d2127 2px, #1d2127 3px,
      #4a4f57 3px, #4a4f57 6px,
      #2a2e35 6px, #2a2e35 8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 1px 2px rgba(0,0,0,0.18);
  z-index: 2;
}
.hilt::before {
  /* pommel cap (left) */
  content: '';
  position: absolute;
  left: -3px; top: 2px; bottom: 2px;
  width: 4px;
  background: linear-gradient(180deg, #4a4f57, #1c1f25);
  border-radius: 2px 0 0 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.hilt::after {
  /* emitter ring (right) */
  content: '';
  position: absolute;
  right: -3px; top: -1px; bottom: -1px;
  width: 5px;
  background: linear-gradient(180deg, #c8ccd2 0%, #5a5e66 50%, #c8ccd2 100%);
  border-radius: 1px;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
.hilt .activator {
  position: absolute;
  left: 9px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--blade, var(--blade-default));
  box-shadow: 0 0 4px var(--blade, var(--blade-default));
}

/* Blade — noyau blanc + halo coloré */
.blade-wrap {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 1px;
}
.blade {
  height: 9px;
  background: white;
  border-radius: 0 5px 5px 0;
  position: relative;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--blade, var(--blade-default)) 75%, white),
    0 0 5px 1px var(--blade, var(--blade-default)),
    0 0 12px 1px var(--blade, var(--blade-default)),
    0 0 22px 3px color-mix(in oklab, var(--blade, var(--blade-default)) 55%, transparent);
  transition: width .8s cubic-bezier(.2,.7,.2,1);
}
.blade.zero {
  width: 0 !important;
  box-shadow: none;
}
.blade::after {
  /* tip taper */
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translate(40%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 4px var(--blade, var(--blade-default)),
    0 0 10px var(--blade, var(--blade-default)),
    0 0 18px color-mix(in oklab, var(--blade, var(--blade-default)) 60%, transparent);
}

/* ===== Cloud / mist hiding results ===== */
.mist {
  position: relative;
  margin: 4px -22px -20px;
  padding: 64px 32px 64px;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 30% 35%, rgba(220,228,240,0.95), transparent 65%),
    radial-gradient(ellipse 55% 60% at 75% 60%, rgba(210,218,234,0.92), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 85%, rgba(225,232,244,0.85), transparent 75%),
    linear-gradient(180deg, #eef2f8 0%, #d8e0ed 100%);
}
.mist::before {
  /* SVG turbulence overlay */
  content: '';
  position: absolute;
  inset: -10%;
  background-image: var(--smoke-noise);
  background-size: 600px 600px;
  opacity: 0.55;
  mix-blend-mode: soft-light;
  z-index: 1;
  pointer-events: none;
}
.mist::after {
  /* edge vignette into surrounding panel */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(255,255,255,0.55) 100%);
  pointer-events: none;
  z-index: 2;
}
.mist-puff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
}
.mist-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 480px;
}
.mist-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
  color: #2a3344;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.mist-quote .marks {
  font-family: var(--font-quote);
  color: #6b7689;
  font-size: 32px;
  vertical-align: -4px;
  margin: 0 2px;
}
.mist-author {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7689;
}
.mist-author::before {
  content: '— ';
  letter-spacing: 0;
}
.mist-note {
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: #4d5666;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(120,140,170,0.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.mist-note .clock {
  width: 12px; height: 12px;
  border: 1.5px solid #6b7689;
  border-radius: 50%;
  position: relative;
}
.mist-note .clock::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 1px; height: 5px;
  background: #6b7689;
  transform-origin: top;
  transform: translate(-50%, 0) rotate(35deg);
}

/* ===== Form (create poll) ===== */
.form {
  padding: 18px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
}
.input, .textarea, .select {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  border-radius: var(--radius-s);
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.option-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.option-input .grip {
  width: 14px;
  color: var(--muted-2);
  cursor: grab;
  display: flex; flex-direction: column; gap: 2px;
}
.option-input .grip::before,
.option-input .grip::after {
  content: '';
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.option-input .grip > span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.option-input .swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--swatch, var(--blade-default));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 0 6px var(--swatch, var(--blade-default));
  flex-shrink: 0;
}
.option-input button.x {
  border: none; background: none; color: var(--muted);
  cursor: pointer; padding: 4px 6px; border-radius: 4px;
  font-size: 16px; line-height: 1;
}
.option-input button.x:hover { background: rgba(0,0,0,0.06); color: var(--danger); }

.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.radio-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  cursor: pointer;
  background: var(--bg-panel);
}
.radio-opt.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.radio-opt .dot {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  background: var(--bg-panel);
}
.radio-opt.selected .dot { border-color: var(--brand); }
.radio-opt.selected .dot::after {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand);
}
.radio-opt .body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.radio-opt .body strong { font-weight: 600; font-size: 14px; color: var(--ink); }
.radio-opt .body span { font-size: 12px; color: var(--muted); }
.radio-opt .extra {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  width: 100%;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg-panel);
}
.toggle .body { display: flex; flex-direction: column; gap: 2px; }
.toggle .body strong { font-size: 14px; font-weight: 600; }
.toggle .body span { font-size: 12px; color: var(--muted); }
.toggle .sw {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: background .15s;
}
.toggle .sw::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: left .15s;
}
.toggle.on .sw { background: var(--brand); }
.toggle.on .sw::after { left: 18px; }

/* Color picker (saber color) */
.color-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-grid .swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 0 8px var(--c),
    0 0 16px color-mix(in oklab, var(--c) 50%, transparent);
  cursor: pointer;
  position: relative;
}
.color-grid .swatch.selected {
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px var(--c),
    0 0 12px var(--c);
}

/* ===== Variant B — immersive ===== */
.poll-card.v2 {
  border: 1px solid #1a2a44;
  background: var(--bg-panel);
  box-shadow: var(--shadow-2);
}
.poll-card.v2 .poll-head {
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(70,110,180,0.4), transparent 70%),
    radial-gradient(ellipse 80% 100% at 10% 50%, rgba(20,40,80,0.6), transparent 70%),
    linear-gradient(180deg, var(--bg-header-dark) 0%, var(--bg-header-dark-2) 100%);
  border-bottom: 1px solid #082c4d;
  color: white;
  padding: 14px 20px;
  position: relative;
  overflow: hidden;
}
.poll-card.v2 .poll-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 85% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 92% 35%, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}
.poll-card.v2 .poll-head h2 { color: white; }
/* Force any inline `color: var(--ink)` (used safely on light bodies) to stay
   readable when it lands inside the dark navy header of Variant B. */
.poll-card.v2 .poll-head strong { color: white !important; }
.poll-card.v2 .poll-head .badge {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #cfe1f5;
  backdrop-filter: blur(4px);
}
.poll-card.v2 .poll-head .badge.live::before {
  background: #6ec1ff; box-shadow: 0 0 6px #6ec1ff;
}
.poll-card.v2 .poll-head .badge.ended {
  background: rgba(0,0,0,0.25); color: #95a4ba; border-color: rgba(255,255,255,0.08);
}
.poll-card.v2 .poll-head .right { color: rgba(220,232,250,0.7); }
.poll-card.v2 .poll-head .right .pipe { color: rgba(255,255,255,0.2); }

.poll-card.v2 .poll-question { padding-top: 22px; font-size: 19px; }

/* B-variant saber: bigger blade, the row IS the visual */
.v2 .saber-row { padding: 20px 0; }
.v2 .saber-row + .saber-row { border-top: 1px solid var(--border-soft); }
.v2 .saber-row .top {
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
}
.v2 .saber-row .label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.v2 .saber-row .stats { color: var(--ink-2); font-weight: 500; }
.v2 .saber-row .stats .pct { color: var(--ink); font-weight: 700; }
.v2 .saber-track { height: 38px; }
.v2 .hilt {
  width: 44px;
  height: 22px;
}
.v2 .blade { height: 14px; }
/* Slightly tighter outer glow on v2 so the colored haze doesn't bleed up into
   the next row's label — the inner glow stays punchy. */
.v2 .blade {
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--blade, var(--blade-default)) 75%, white),
    0 0 5px 1px var(--blade, var(--blade-default)),
    0 0 10px 1px var(--blade, var(--blade-default)),
    0 0 16px 1px color-mix(in oklab, var(--blade, var(--blade-default)) 40%, transparent);
}
.v2 .blade::after {
  width: 11px; height: 11px;
  transform: translate(40%, -50%);
}
.v2 .saber-track::before {
  left: 46px;
  height: 3px;
  background: linear-gradient(90deg, rgba(0,0,0,0.07), rgba(0,0,0,0.015));
}

/* Variant B mist — darker, more dramatic */
.v2 .mist {
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(120,135,165,0.5), transparent 65%),
    radial-gradient(ellipse 50% 60% at 75% 60%, rgba(95,110,140,0.6), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 90%, rgba(70,85,115,0.7), transparent 75%),
    linear-gradient(180deg, #2c3650 0%, #14182a 100%);
  color: white;
}
.v2 .mist::before {
  opacity: 0.6;
  mix-blend-mode: overlay;
}
.v2 .mist::after {
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(10,15,30,0.6) 100%);
}
.v2 .mist .mist-quote { color: #f6f9ff; text-shadow: 0 1px 18px rgba(120,160,220,0.4); }
.v2 .mist .mist-quote .marks { color: rgba(180,210,245,0.5); }
.v2 .mist .mist-author { color: rgba(180,200,225,0.7); }
.v2 .mist .mist-note {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: rgba(220,232,250,0.9);
}
.v2 .mist .mist-note .clock { border-color: rgba(220,232,250,0.8); }
.v2 .mist .mist-note .clock::after { background: rgba(220,232,250,0.8); }

/* Hybrid override: variant B chrome (dark header) keeps its sober dark navy
   look but the mist on this slide opts back into the light Variant-A
   treatment. Triggered by [data-theme="light"] on the .mist element. */
.poll-card.v2 .mist[data-theme="light"] {
  background:
    radial-gradient(ellipse 60% 50% at 30% 35%, rgba(220,228,240,0.95), transparent 65%),
    radial-gradient(ellipse 55% 60% at 75% 60%, rgba(210,218,234,0.92), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 85%, rgba(225,232,244,0.85), transparent 75%),
    linear-gradient(180deg, #eef2f8 0%, #d8e0ed 100%);
  color: inherit;
}
.poll-card.v2 .mist[data-theme="light"]::before {
  opacity: 0.55;
  mix-blend-mode: soft-light;
}
.poll-card.v2 .mist[data-theme="light"]::after {
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(255,255,255,0.55) 100%);
}
.poll-card.v2 .mist[data-theme="light"] .mist-quote {
  color: #2a3344;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.poll-card.v2 .mist[data-theme="light"] .mist-quote .marks { color: #6b7689; }
.poll-card.v2 .mist[data-theme="light"] .mist-author { color: #6b7689; }
.poll-card.v2 .mist[data-theme="light"] .mist-note {
  background: rgba(255,255,255,0.7);
  border-color: rgba(120,140,170,0.25);
  color: #4d5666;
}
.poll-card.v2 .mist[data-theme="light"] .mist-note .clock { border-color: #6b7689; }
.poll-card.v2 .mist[data-theme="light"] .mist-note .clock::after { background: #6b7689; }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.admin-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-header-light);
  border-bottom: 1px solid var(--border);
}
.admin-table tr:hover td { background: var(--bg-panel-soft); }
.admin-table .pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--border);
}
.admin-table .pill.live { color: var(--brand); background: var(--brand-soft); border-color: #c8ddf1; }
.admin-table .pill.live::before { content:''; width:5px; height:5px; border-radius:50%; background: var(--brand); }
.admin-table .pill.ended { color: var(--muted); background: #ecedf0; border-color: #dcdfe6; }
.admin-table .pill.hidden { color: var(--warning); background: #fff5d8; border-color: #ebd58a; }
.admin-table .mini-saber {
  display: inline-block;
  height: 4px;
  background: white;
  border-radius: 0 2px 2px 0;
  vertical-align: middle;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--blade, var(--blade-default)) 70%, white),
    0 0 3px var(--blade, var(--blade-default)),
    0 0 7px color-mix(in oklab, var(--blade, var(--blade-default)) 60%, transparent);
}

/* Admin chrome */
.admin-shell {
  background: var(--bg-app);
  min-height: 100%;
  padding: 0;
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(180deg, #135085 0%, #0a3a63 100%);
  color: white;
  border-bottom: 1px solid #082c4d;
}
.admin-top .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.02em;
}
.admin-top .brand .glyph {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #6fb6ff, #1d6fc7);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.admin-top .who { font-size: 12px; color: rgba(220,232,250,0.7); }

.admin-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100% - 52px);
}
.admin-side {
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 14px 8px;
  font-size: 13px;
}
.admin-side .group {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  padding: 12px 12px 6px;
}
.admin-side a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 5px;
  text-decoration: none; color: var(--ink-2);
  margin: 1px 0;
}
.admin-side a:hover { background: var(--bg-panel-soft); color: var(--ink); }
.admin-side a.active {
  background: var(--brand-soft);
  color: var(--brand-2);
  font-weight: 600;
}
.admin-side a .ico {
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.7;
}
.admin-side a.active .ico {
  background: var(--brand);
  border-color: var(--brand);
  opacity: 1;
}
.admin-main {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-h h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kpi {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 12px 14px;
}
.kpi .k {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.kpi .v {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi .d {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--success);
}

/* End-state final ribbon */
.final-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #ecedf0;
  border: 1px solid #dcdfe6;
  padding: 4px 10px;
  border-radius: 999px;
}
.final-ribbon .winner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blade-default);
  box-shadow: 0 0 6px var(--blade-default);
}

/* Variant B: winner highlight */
.v2 .saber-row.winner .label::after {
  content: '◆ Vainqueur';
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 10px;
  color: var(--blade, var(--blade-default));
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--blade, var(--blade-default)) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--blade, var(--blade-default)) 35%, transparent);
}

/* Utility */
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border-soft); margin: 4px 0; }

.note-box {
  margin: 8px 22px 0;
  padding: 10px 14px;
  background: #fff8e1;
  border: 1px solid #f0d97a;
  border-radius: var(--radius-s);
  font-size: 12.5px;
  color: #6e5612;
  display: flex; align-items: center; gap: 10px;
}
.note-box .ico {
  width: 14px; height: 14px;
  border: 1.5px solid #b07900;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #b07900;
  flex-shrink: 0;
}

/* "Posted by" line on a vote */
.poster-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.poster-line .avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8ddf1, #6fb6ff);
  flex-shrink: 0;
}
.poster-line strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Variantes de couleur de sabre — appliquées via class="saber-{color}"
   sur la carte (poll-card). Surcharge --blade qui est lu par toutes
   les règles .blade, .activator, .swatch, .saber-row.winner, etc.
   ============================================================ */

.saber-green  { --blade: #42d889; }  /* Vert émeraude — Luke RotJ, Yoda */
.saber-blue   { --blade: #3FA9F5; }  /* Bleu Skywalker — Anakin, Obi-Wan, Luke ANH/ESB */
.saber-purple { --blade: #a020f0; }  /* Violet Mace Windu */
.saber-yellow { --blade: #ffd700; }  /* Jaune Temple Guard / Rey TROS */
.saber-orange { --blade: #ff8c00; }  /* Orange — EU / personnages secondaires */

/* Badge "◆ Vainqueur" — toujours bleu marque + texte blanc pour lisibilité maximale
   quelle que soit la couleur de la lame (sinon contraste faible sur jaune/orange). */
.v2 .saber-row.winner .label::after {
	color: #ffffff !important;
	background: #1d6fc7 !important;
	border-color: #155a9f !important;
}

