/* ========================================================
   Feedback 360 — Admin styles.
   Standalone — does not depend on /style.css or themes.
   Density-first: this is a desktop data tool, not a survey.
   ======================================================== */

:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #FAFAFB;
  --row-hover: #F0F2F5;

  --ink: #14171F;
  --ink-2: #3F4452;
  --muted: #6B7180;
  --muted-2: #9AA0AC;
  --line: #E2E5EB;
  --line-2: #EDEFF3;

  --accent: #2A52BE;
  --accent-h: #1F3F95;
  --accent-soft: #E8EDF8;

  --positive: #18794E;
  --neutral: #B4530E;
  --negative: #B12A2A;

  --warn-bg: #FFF7E0;
  --ok-bg: #E5F4EB;
  --err-bg: #FCEBEB;

  --radius: 6px;
  --radius-sm: 4px;
  --row-h: 36px;
  --input-h: 32px;
  --btn-h: 32px;
  --btn-h-lg: 38px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 1px rgba(15,17,25,0.04), 0 1px 2px rgba(15,17,25,0.04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.is-admin {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; }
h1 { font-size: 18px; letter-spacing: -0.005em; }
h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); }

p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
code, .link-code { font-family: var(--mono); font-size: 12px; }

/* ---------- Topbar ---------- */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  gap: var(--space-3);
}
.admin-topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.admin-topbar .brand:hover { text-decoration: none; color: var(--accent); }
.admin-topbar .brand .brand-meta {
  font-weight: 400;
  color: var(--muted-2);
  font-size: 12px;
  border-left: 1px solid var(--line);
  padding-left: var(--space-2);
  margin-left: 2px;
}
.admin-topbar .spacer { flex: 1; }
.admin-topbar nav.crumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12.5px;
  color: var(--muted);
}
.admin-topbar nav.crumbs a { color: var(--muted); }
.admin-topbar nav.crumbs a:hover { color: var(--ink); text-decoration: none; }
.admin-topbar nav.crumbs .sep { color: var(--muted-2); }
.admin-topbar nav.crumbs .current { color: var(--ink); font-weight: 500; }

/* ---------- Shell ---------- */
.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) 64px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.page-header h1 { flex: 1; }
.page-header .meta {
  font-size: 12px;
  color: var(--muted);
}

.section {
  margin-top: var(--space-5);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  padding: 0 2px;
}
.section-head h2 { flex: 0 0 auto; }
.section-head .section-meta { color: var(--muted); font-size: 12px; }
.section-head .section-actions { margin-left: auto; display: inline-flex; gap: var(--space-2); }

/* ---------- Panel (replaces oversized "card") ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-body { padding: var(--space-4); }
.panel-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line-2);
}
.panel-row:first-child { border-top: 0; }
.panel-row .label {
  flex: 0 0 140px;
  color: var(--muted);
  font-size: 12.5px;
}
.panel-row .value { flex: 1; min-width: 0; }
.panel > .panel-section {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line-2);
}
.panel > .panel-section:last-child { border-bottom: 0; }
.panel-foot {
  background: var(--surface-2);
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--btn-h);
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--row-hover); border-color: #CFD3DB; text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn:active { transform: translateY(0.5px); }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; }
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
.btn.ghost:hover { background: var(--row-hover); color: var(--ink); }
.btn.danger {
  background: var(--negative);
  color: #fff;
  border-color: var(--negative);
}
.btn.danger:hover { background: #911f1f; border-color: #911f1f; color: #fff; }
.btn.danger-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--negative);
}
.btn.danger-ghost:hover { background: #fbe9e9; color: var(--negative); }
.btn.lg { height: var(--btn-h-lg); padding: 0 16px; font-size: 13.5px; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; gap: 4px; }
.btn.icon-only { width: var(--btn-h); padding: 0; }

.inline { display: inline-block; }

/* ---------- Forms ---------- */
input[type="text"], input[type="password"], select, textarea {
  display: block;
  width: 100%;
  height: var(--input-h);
  padding: 0 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,82,190,0.12);
}
textarea { height: auto; min-height: 90px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 26px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236B7180' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1 5 5 9 1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }

.field-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: stretch;
}
.field-row > input[type="text"],
.field-row > input[type="password"] { flex: 1 1 220px; }
.field-row > select { flex: 0 0 160px; }

/* ---------- Alerts ---------- */
.alert {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.alert.error { background: var(--err-bg); border-color: #F0C7C7; color: #8a2222; }
.alert.ok { background: var(--ok-bg); border-color: #C8E5D2; color: #14694B; }

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
}
.table th, .table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.table thead th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody tr { transition: background 120ms ease; }
.table tbody tr:hover { background: var(--row-hover); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .col-actions { text-align: right; white-space: nowrap; width: 1px; }
.table .col-num { text-align: right; font-variant-numeric: tabular-nums; width: 1px; white-space: nowrap; }
.table tr.row-link { cursor: pointer; }
.table tr.row-link td { color: var(--ink); }
.table tr.row-link:hover .row-arrow { color: var(--accent); }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  height: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
  background: var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge.draft       { background: #ECEEF3; color: #5A6172; }
.badge.collecting  { background: #FFF1D1; color: #8C5A00; }
.badge.results     { background: #DCF1E3; color: #1B6E45; }
.badge.closed      { background: #ECEEF3; color: #5A6172; }
.badge.outline {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--muted);
}
.badge.success { background: var(--ok-bg); color: var(--positive); }

/* legacy compatibility names used in EJS */
.state-badge { /* fallback alias */ }
.state-draft { background: #ECEEF3; color: #5A6172; }
.state-collecting { background: #FFF1D1; color: #8C5A00; }
.state-results { background: #DCF1E3; color: #1B6E45; }
.state-closed { background: #ECEEF3; color: #5A6172; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.stats .cell {
  background: var(--surface);
  padding: 10px 14px;
}
.stats .cell .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}
.stats .cell .v {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats .cell .v small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

/* ---------- Icons ---------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.13em;
  flex-shrink: 0;
}
.icon-sm { font-size: 12px; }
.icon-lg { font-size: 16px; }

/* ---------- Toolbar / actions row ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-3) 0;
}
.toolbar .grow { flex: 1; }

/* ---------- Login ---------- */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.login-card {
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.login-mark {
  text-align: center;
  margin-bottom: var(--space-4);
}
.login-mark .brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.login-mark .brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.login-card form { display: flex; flex-direction: column; gap: var(--space-3); }
.login-card .btn { width: 100%; }

/* ---------- Cycle list (cycles.ejs) ---------- */
.cycles-table tbody td.cell-name { font-weight: 600; }
.cycles-table tbody td.cell-name a { color: var(--ink); }
.cycles-table tbody td.cell-name a:hover { color: var(--accent); text-decoration: none; }
.cycles-table tbody td.cell-meta { color: var(--muted); font-size: 12.5px; }
.row-arrow { color: var(--muted-2); transition: color 120ms ease; }

.empty {
  padding: var(--space-6) var(--space-5);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}
.empty .empty-title {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ---------- Cycle detail header ---------- */
.cycle-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.cycle-banner h1 { font-size: 19px; }
.cycle-banner .crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.cycle-banner .crumb:hover { color: var(--accent); text-decoration: none; }
.cycle-banner .divider { width: 1px; height: 14px; background: var(--line); }

/* ---------- State control ---------- */
.state-control {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.state-control .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.state-control .now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.state-control .actions {
  margin-left: auto;
  display: inline-flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.state-control .hint {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line-2);
  padding-top: var(--space-2);
  margin-top: 2px;
}

/* ---------- Participants table ---------- */
.participants-table .col-name { width: 26%; }
.participants-table .col-progress { width: 18%; }
.participants-table .col-link { width: 1%; white-space: nowrap; }
.participants-table .col-stats { width: 1%; white-space: nowrap; text-align: right; color: var(--muted); }

.dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.dots .dot.on { background: var(--accent); }
.dots .num { margin-left: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.url-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.url-cell code {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 2px 6px;
  border-radius: 3px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* ---------- Add participant block ---------- */
.add-block {
  margin-top: var(--space-4);
}
.add-block details { margin-top: var(--space-2); }
.add-block details > summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--accent);
  user-select: none;
  padding: 4px 0;
  list-style: none;
}
.add-block details > summary::-webkit-details-marker { display: none; }
.add-block details > summary::before { content: "+ "; font-weight: 600; }
.add-block details[open] > summary::before { content: "− "; }
.add-block details > .body { padding-top: var(--space-2); }

/* ---------- Results page ---------- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.result-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.result-block .person {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
}
.result-block .person h3 { font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.result-block .person .total {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.result-block .person .total strong { font-size: 15px; }

.result-row {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  gap: var(--space-3);
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--line-2);
}
.result-row:last-child { border-bottom: 0; }
.result-row .pair {
  font-size: 12.5px;
}
.result-row .pair .l { font-weight: 600; color: var(--ink); }
.result-row .pair .r { color: var(--muted); }
.result-row .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.chip.color-positive { color: var(--positive); border-color: #C7E2D2; background: #F0F9F4; }
.chip.color-neutral { color: var(--neutral); border-color: #F0DAB8; background: #FDF6E9; }
.chip.color-negative { color: var(--negative); border-color: #ECC7C7; background: #FBEFEF; }

.result-row .row-sum {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.row-sum.color-positive { color: var(--positive); }
.row-sum.color-neutral { color: var(--neutral); }
.row-sum.color-negative { color: var(--negative); }

.color-positive { color: var(--positive); }
.color-neutral { color: var(--neutral); }
.color-negative { color: var(--negative); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .admin-shell { padding: var(--space-4) var(--space-3) 64px; }
  .admin-topbar { padding: 0 var(--space-3); }
  .table th:not(.col-mobile-keep),
  .table td:not(.col-mobile-keep) { /* keep readable on narrow */ }
  .participants-table .col-link code { max-width: 160px; }
  .result-row { grid-template-columns: 1fr; gap: 4px; }
  .result-row .row-sum { text-align: left; }
  .field-row > select { flex: 1 1 100%; }
}

/* Danger zone */
.danger-zone { margin-top: var(--space-6); }
.danger-zone .panel {
  border-color: color-mix(in srgb, var(--negative) 35%, var(--line));
  background: color-mix(in srgb, var(--negative) 3%, var(--surface));
}
.danger-zone .section-head h2 { color: var(--negative); }

/* ============================================================
   Classic results table (matches the legacy report style)
   ============================================================ */
.result-block-classic {
  --rb-blue: #1B3A8A;
  --rb-text: #1E2A38;
  --rb-zebra: #ECECEC;
  --rb-divider: #2A2A2A;
  --rb-positive: #2E7D32;
  --rb-neutral: #C97A09;
  --rb-negative: #C62828;
  --rb-empty: #C9CDD3;

  margin: 0 0 24px;
  padding: 18px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--rb-text);
}
.result-block-classic .rb-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--rb-blue);
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
}
.result-block-classic .rb-meta {
  font-size: 12.5px;
  color: var(--rb-negative);
  font-weight: 500;
  margin-bottom: 8px;
}
.result-block-classic .rb-divider {
  border: 0;
  border-top: 2px solid var(--rb-divider);
  margin: 4px 0 0;
}

.rb-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin: 0;
}
.rb-table tr.alt { background: var(--rb-zebra); }

.rb-table th.pair-cell {
  text-align: right;
  color: var(--rb-blue);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px 8px 10px;
  white-space: nowrap;
  width: 1%;
}
.rb-table td.val {
  text-align: center;
  padding: 8px 5px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rb-table td.val.empty { color: var(--rb-empty); }
.rb-table td.val.c-positive { color: var(--rb-positive); }
.rb-table td.val.c-neutral  { color: var(--rb-neutral); }
.rb-table td.val.c-negative { color: var(--rb-negative); }

.rb-table td.sum {
  text-align: right;
  padding: 8px 10px 8px 14px;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  width: 1%;
  white-space: nowrap;
}
.rb-table td.sum.c-positive { color: var(--rb-positive); }
.rb-table td.sum.c-neutral  { color: var(--rb-neutral); }
.rb-table td.sum.c-negative { color: var(--rb-negative); }
.rb-table td.sum.empty { color: var(--rb-empty); }

.result-block-classic .rb-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 10px 0;
  font-size: 12.5px;
  color: var(--rb-text);
}
.rb-total {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rb-total.c-positive { color: var(--rb-positive); }
.rb-total.c-neutral  { color: var(--rb-neutral); }
.rb-total.c-negative { color: var(--rb-negative); }

@media (max-width: 720px) {
  .result-block-classic { padding: 12px 8px; }
  .result-block-classic .rb-name { font-size: 17px; }
  .rb-table th.pair-cell { font-size: 11.5px; padding: 5px 7px 5px 3px; max-width: 130px; white-space: normal; line-height: 1.25; }
  .rb-table td.val { font-size: 12.5px; padding: 5px 3px; }
  .rb-table td.sum { font-size: 16px; padding: 5px 6px 5px 8px; }
  .rb-total { font-size: 20px; }
}

/* ============================================================
   Soft results view (admin variant) — standalone, no theme vars.
   ============================================================ */
.soft-block {
  --sb-accent: #2A52BE;
  --sb-text: #1E2A38;
  --sb-muted: #6B7180;
  --sb-line: #E2E5EB;
  --sb-bg: #FFFFFF;

  margin: 0 0 24px;
  padding: 22px 20px;
  background: var(--sb-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--sb-text);
}
.soft-block .rb-meta {
  font-size: 11px;
  color: var(--sb-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.soft-block .rb-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--sb-text);
}
.soft-block .rb-divider {
  border: 0;
  border-top: 1.5px solid var(--line);
  margin: 0 0 16px;
}
.soft-radar-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 20px;
}
.soft-radar {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  overflow: visible;
}
.soft-radar .radar-grid polygon {
  fill: none;
  stroke: var(--sb-line);
  stroke-width: 1;
  opacity: 0.7;
}
.soft-radar .radar-grid line {
  stroke: var(--sb-line);
  stroke-width: 1;
  opacity: 0.5;
}
.soft-radar .radar-shape {
  fill: rgba(42, 82, 190, 0.16);
  stroke: var(--sb-accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.soft-radar .radar-points circle { fill: var(--sb-accent); }
.soft-radar .radar-labels text {
  font-family: 'Roboto Condensed', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 15px;
  fill: var(--sb-text);
  letter-spacing: 0.005em;
}
.soft-compass-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 12px;
}
.soft-compass-row {
  padding: 8px 4px;
  border-bottom: 1px solid var(--line-2);
}
.soft-compass-row:last-child { border-bottom: 0; }
.soft-compass-row.empty-row { opacity: 0.55; }
.soft-compass-row .cr-poles {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 7px;
}
.soft-compass-row .cr-left { font-weight: 600; color: var(--sb-text); }
.soft-compass-row .cr-right { color: var(--sb-muted); }
.soft-compass-row .cr-track {
  position: relative;
  height: 6px;
  background: #E8EAEF;
  border-radius: 999px;
  margin: 0 7px;
}
.soft-compass-row .cr-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--sb-accent);          /* overridden inline per score */
  border: 2px solid var(--sb-accent);    /* overridden inline */
  transform: translateY(-50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.soft-compass-row .cr-marker.empty {
  background: #FFFFFF;
  border-color: var(--sb-muted);
  opacity: 0.4;
  box-shadow: none;
}
.soft-compass-row .cr-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sb-muted);
  text-align: center;
  font-style: italic;
}
.soft-block .soft-footer {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--sb-muted);
  text-align: center;
}
@media (max-width: 480px) {
  .soft-block { padding: 14px 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
