/* Vibrocentric — SONAR-style display font for the brand and headings. */
@font-face {
  font-family: 'Vibrocentric';
  src: url('/fonts/Vibrocentric-Rg.otf') format('opentype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-deep: #040404;
  --card: rgba(9, 9, 9, 0.88);
  --card-2: #111111;
  --border: #2b2b2b;
  --text: #ffffff;
  --muted: #7a7a7a;
  --red: #b30e14;
  --red-bright: #c4141c;
  --red-hot: #cd1821;
  --red-dim: rgba(179, 14, 20, 0.14);
  --green: #2ecc71;
  --amber: #f5a623;
  --blue: #4aa3ff;
  --purple: #a78bfa;
  --teal: #14b8a6;
  --display: 'Orbitron', -apple-system, sans-serif;
  --title: 'Vibrocentric', 'Orbitron', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
}

/* Animated network background + corner glow (SONAR console aesthetic) */
#bg-net {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-glow::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(179, 14, 20, 0.35) 0%, rgba(179, 14, 20, 0.12) 34%, transparent 72%);
}
.bg-glow .ring {
  position: absolute;
  border: 1px solid rgba(179, 14, 20, 0.18);
  border-radius: 50%;
}
.bg-glow .r1 { width: 520px; height: 520px; bottom: -112px; right: -110px; }
.bg-glow .r2 { width: 430px; height: 430px; bottom: -80px; right: -70px; }
.bg-glow .r3 { width: 340px; height: 340px; bottom: -40px; right: -20px; }
.bg-glow .r4 { width: 250px; height: 250px; bottom: 40px; right: 30px; }

a { color: var(--red-hot); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login page */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-box { width: 100%; max-width: 460px; text-align: center; }
.login-title { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; margin: 40px 0 8px; }
.login-sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 28px; }
.login-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: 14px;
}
.login-btn:hover { text-decoration: none; }
.login-note { color: var(--muted); font-size: 0.82rem; margin-top: 22px; }

.icon { vertical-align: -3px; flex-shrink: 0; }

/* ---------------------------------------------------------------- */
/* Shell: sidebar + main                                             */
/* ---------------------------------------------------------------- */

.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(2, 2, 2, 0.78);
  backdrop-filter: blur(3px);
  border-right: 1px solid var(--border);
  padding: 26px 14px;
}

.brand { padding: 0 12px 26px; }
.brand-logo {
  font-family: var(--title);
  color: var(--red);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
}
.brand-sub {
  font-family: var(--display);
  color: #bdbdbd;
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  margin-top: 9px;
  text-transform: uppercase;
}

.nav-label {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  padding: 0 12px;
  margin: 14px 0 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.93rem;
  margin: 2px 0;
}
.side-nav a:hover { background: var(--card); text-decoration: none; }
.side-nav a .icon { color: var(--muted); }
.side-nav a.active {
  background: linear-gradient(90deg, rgba(179, 14, 20, 0.16), rgba(179, 14, 20, 0.04));
  box-shadow: inset 2px 0 0 var(--red);
}
.side-nav a.active .icon { color: var(--red); }

/* Bottom quick-links ribbon — navigation moved across the foot of the page. */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(2, 2, 2, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.bottom-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.85rem;
}
.bottom-nav a:hover { background: var(--card); text-decoration: none; }
.bottom-nav a .icon { color: var(--muted); }
.bottom-nav a.active {
  background: linear-gradient(0deg, rgba(179, 14, 20, 0.18), rgba(179, 14, 20, 0.04));
  box-shadow: inset 0 -2px 0 var(--red);
  color: #fff;
}
.bottom-nav a.active .icon { color: var(--red); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 32px 0;
}
.topbar-right { display: flex; align-items: center; gap: 18px; }
.bell { color: var(--muted); }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px 14px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
}
.avatar-img { object-fit: cover; border-radius: 50%; width: 28px; height: 28px; }
.logout-link { color: var(--muted); font-size: 0.8rem; }
.verified-as { font-size: 0.88rem; margin: 12px 0; color: var(--text); }
.logout-link:hover { color: var(--red-hot); }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-name { font-size: 0.82rem; font-weight: 600; }
.user-role { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); }

/* Bottom padding clears the fixed quick-links ribbon. */
.content { padding: 10px 32px 96px; max-width: 1500px; width: 100%; }

@media (max-width: 880px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; padding: 16px; }
  .content { padding: 10px 16px 92px; }
}

/* ---------------------------------------------------------------- */
/* Page headings                                                     */
/* ---------------------------------------------------------------- */

.eyebrow {
  font-family: var(--display);
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  margin: 18px 0 6px;
}
h1 { font-size: 2.3rem; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.04em; }
.page-sub { color: var(--muted); margin: 0 0 22px; max-width: 720px; }
h2 { font-size: 1.05rem; margin: 0.2em 0 0.7em; }
h3 {
  margin: 1.1em 0 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
  flex-wrap: wrap;
}
.section-head .view-link { color: var(--red-bright); font-size: 0.88rem; }

.muted { color: var(--muted); }
.center { text-align: center; }
.prewrap { white-space: pre-wrap; }

/* ---------------------------------------------------------------- */
/* Chips, banner, stats                                              */
/* ---------------------------------------------------------------- */

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.82rem;
  white-space: nowrap;
}
.chip:hover { text-decoration: none; background: var(--card-2); }
.chip-active { border-color: var(--red); background: var(--red-dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; flex-shrink: 0; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-blue { background: var(--blue); }
.dot-red { background: var(--red); }
.dot-purple { background: var(--purple); }
.dot-teal { background: var(--teal); }

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, rgba(179, 14, 20, 0.22), rgba(179, 14, 20, 0.05));
  border: 1px solid rgba(179, 14, 20, 0.35);
  border-radius: 12px;
  padding: 10px 18px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: 0.9rem;
}
.banner:hover { text-decoration: none; filter: brightness(1.1); }
.banner .icon { color: var(--red); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 0 0 8px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px 14px;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--text); font-size: 0.9rem; }
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-dim);
  color: var(--red);
}
.stat-value { font-size: 2.6rem; font-weight: 700; line-height: 1.15; }

/* ---------------------------------------------------------------- */
/* Cards, tables                                                     */
/* ---------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 14px 0;
}

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  white-space: nowrap;
}
.table td.wrap { white-space: normal; min-width: 220px; }
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.table tr:last-child td { border-bottom: none; }
.table a { color: var(--text); }
.table a:hover { color: var(--red-bright); }
.change-num { color: var(--red-bright); font-weight: 600; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.risk-low { color: #7dd3fc; background: rgba(74, 163, 255, 0.14); }
.risk-medium { color: #fcd34d; background: rgba(245, 166, 35, 0.14); }
.risk-high { color: #fca5a5; background: rgba(179, 14, 20, 0.16); }
.cat-standard { color: var(--muted); background: var(--card-2); }
.cat-normal { color: #c4b5fd; background: rgba(167, 139, 250, 0.14); }
.cat-emergency { color: #fca5a5; background: rgba(179, 14, 20, 0.16); }

/* Blackout indicators */
.blackout-banner {
  background: linear-gradient(90deg, rgba(179, 14, 20, 0.35), rgba(179, 14, 20, 0.1));
  border-color: var(--red);
}
.banner-amber {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.22), rgba(245, 166, 35, 0.05));
  border-color: rgba(245, 166, 35, 0.5);
}
.banner-amber .icon { color: var(--amber); }
.blackout-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(179, 14, 20, 0.12);
  border: 1px solid rgba(179, 14, 20, 0.4);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.86rem;
  color: #fca5a5;
  margin: 4px 0 8px;
}
.blackout-flag .icon { color: var(--red); flex-shrink: 0; }

.window-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.86rem;
  color: #fcd34d;
  margin: 6px 0 8px;
}
.window-flag .icon { color: var(--amber); flex-shrink: 0; }

.covered-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.45);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.86rem;
  color: #86efac;
  margin: 6px 0 8px;
}
.covered-flag .icon { color: var(--green); flex-shrink: 0; }

.trend-table th, .trend-table td { padding: 6px 8px; font-size: 0.8rem; text-align: center; }
.trend-table th:first-child, .trend-table td:first-child { text-align: left; }
.exec-metrics .breakdown-name { flex: 1; }

/* Breakdown widgets */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
@media (max-width: 1200px) { .breakdown-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .breakdown-grid { grid-template-columns: 1fr; } }
/* Tighter cards so 5 fit comfortably per row */
.breakdown-grid .breakdown { padding: 12px 13px; }
.breakdown-grid .breakdown .section-label { font-size: 0.7rem; }
.breakdown-grid .breakdown-list { margin-top: 8px; }
.breakdown-grid .breakdown-list li a { padding: 4px 0; font-size: 0.8rem; gap: 6px; }
.breakdown-grid .breakdown-name { flex-basis: 52%; font-size: 0.8rem; }
.breakdown-grid .trend-table { font-size: 0.7rem; }
.breakdown-grid .trend-table th, .breakdown-grid .trend-table td { padding: 3px 4px; }
/* Wide cards (e.g. the volume-trend table) span the full grid row */
.breakdown-grid .span-all { grid-column: 1 / -1; }
.breakdown { margin: 0; }
.breakdown-list { list-style: none; padding: 0; margin: 12px 0 0; }
.breakdown-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 5px 0;
  font-size: 0.86rem;
}
.breakdown-list li a:hover { text-decoration: none; color: var(--red-bright); }
.breakdown-name { flex: 0 0 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
}
.breakdown-bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.breakdown-count { flex: 0 0 28px; text-align: right; color: var(--muted); }

/* Filter bar */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.filter-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.filter-form select {
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.85rem;
  min-width: 130px;
}
.filter-form select:focus { outline: none; border-color: var(--red); }

/* Review queue */
.review-card { padding-bottom: 14px; }
.review-meta { margin: 2px 0 8px; font-size: 0.86rem; }
.review-desc { font-size: 0.9rem; margin: 0 0 4px; }
.review-form { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 8px; }
.vote-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.vote-approve { background: rgba(46, 204, 113, 0.15); border-color: #1f8a4d; color: #86efac; }
.vote-reject { background: rgba(179, 14, 20, 0.15); border-color: #a32222; color: #fca5a5; }
.vote-info { background: rgba(245, 166, 35, 0.12); border-color: #9a6a14; color: #fcd34d; }
.timeline-item.kind-vote { border-left-color: var(--amber); }

/* Form sections */
.form-section { margin: 14px 0; }
.form-section .section-label { display: block; margin-bottom: 6px; }


/* Compact meeting card in the sidebar, under the nav */
.sidebar-meeting {
  margin: 24px 4px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(179, 14, 20, 0.06);
}
.sidebar-meeting .nav-label { display: flex; align-items: center; gap: 6px; color: var(--red); }
.sm-when { font-weight: 700; font-size: 0.92rem; }
.sm-time { font-size: 0.85rem; color: #bdbdbd; }
.sm-cutoff { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.sm-join {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
  padding: 8px 10px;
}
.sm-join:hover { text-decoration: none; }
.sm-id {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- */
/* Forms & buttons                                                   */
/* ---------------------------------------------------------------- */

.form label { display: block; margin: 12px 0; font-size: 0.85rem; color: var(--muted); }
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  font-size: 0.93rem;
}
.form input::placeholder, .form textarea::placeholder { color: #7c7c7c; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: #c1121a;
  box-shadow: 0 0 0 3px rgba(179, 14, 20, 0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Medallion cleanup-review edit fields (not inside a .form wrapper). */
.cleanup-edit {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  font-size: 0.93rem;
  resize: vertical;
}
.cleanup-edit::placeholder { color: #7c7c7c; }
.cleanup-edit:focus {
  outline: none;
  border-color: #c1121a;
  box-shadow: 0 0 0 3px rgba(179, 14, 20, 0.15);
}

.form-flex { display: flex; flex-wrap: wrap; gap: 0 18px; }
.field-half { flex: 1 1 calc(50% - 18px); min-width: 260px; }
.field-full { flex: 1 1 100%; }
.field-desc { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.field-hint { font-size: 0.78rem; color: var(--muted); margin: 4px 0 0; line-height: 1.4; }
.title-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.title-row input { margin-top: 0; }
.title-prefix {
  color: var(--red-bright);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.checkgroup {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 16px;
  margin: 12px 0;
}
.checkgroup legend { color: var(--muted); font-size: 0.85rem; padding: 0 6px; }
.check { display: flex !important; align-items: flex-start; gap: 10px; margin: 8px 0 !important; color: var(--text) !important; font-size: 0.9rem; }
.check input { width: auto !important; display: inline-block !important; margin: 3px 0 0 !important; accent-color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.2); }
.btn-primary {
  background: linear-gradient(180deg, #c4141c, #9e0d13);
  border-color: #c01820;
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #cd1821, #aa0f15);
  filter: none;
}

.demo-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: #fcd34d;
  border-radius: 10px;
  padding: 9px 16px;
  margin: 14px 0 0;
  font-size: 0.85rem;
}
.demo-warning code { background: var(--bg-deep); padding: 1px 6px; border-radius: 5px; }
.demo-warning .icon { color: var(--amber); }

.alert { border-radius: 10px; padding: 10px 16px; margin: 14px 0; }
.alert-error { background: var(--red-dim); border: 1px solid var(--red); }
.alert ul { margin: 4px 0; padding-left: 18px; }

/* ---------------------------------------------------------------- */
/* Detail page                                                       */
/* ---------------------------------------------------------------- */

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
/* Let grid columns shrink below their content's intrinsic width so a wide
   table/input inside a card can't stretch the whole page past the viewport. */
.detail-grid > * { min-width: 0; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.meta { display: grid; grid-template-columns: 150px 1fr; gap: 7px 12px; margin: 0; }
.meta dt { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }
.meta dd { margin: 0; font-size: 0.92rem; }

.timeline { list-style: none; padding: 0; margin: 0 0 16px; }
.timeline-item { border-left: 2px solid var(--border); padding: 7px 0 7px 16px; margin: 6px 0; }
.timeline-item.kind-status { border-left-color: var(--red); }
.timeline-meta { display: flex; gap: 10px; align-items: baseline; font-size: 0.84rem; margin-bottom: 2px; flex-wrap: wrap; }

.steps li { margin: 9px 0; }

/* Process walkthrough */
.why-list li { margin: 7px 0; }
.role-chain { margin-top: 14px; max-width: 640px; }
.role-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 12px 16px;
}
.role-card p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.role-title { font-weight: 700; font-size: 0.95rem; }
.role-arrow { color: var(--red); text-align: center; font-size: 1.1rem; line-height: 1.6; }

.walkthrough { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 0; }
.walkthrough > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 56px;
  border-left: 2px solid var(--border);
  margin-left: 19px;
}
.walkthrough > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.walkthrough > li::before {
  content: counter(step);
  position: absolute;
  left: -20px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title { margin: 6px 0 4px; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.walkthrough p, .walkthrough ul { font-size: 0.92rem; margin: 6px 0; }
.walkthrough ul li { margin: 4px 0; }
.tip {
  background: var(--red-dim);
  border: 1px solid rgba(179, 14, 20, 0.35);
  border-radius: 8px;
  padding: 8px 14px;
}

.status-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
}
.flow-arrow { color: var(--muted); }
.flow-branch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 8px 14px;
}

.glossary { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; margin: 16px 0 0; }
@media (max-width: 640px) { .glossary { grid-template-columns: 1fr; } }
.glossary dt { color: var(--red-bright); font-weight: 700; font-size: 0.9rem; }
.glossary dd { margin: 0; font-size: 0.9rem; color: var(--muted); }

.faq { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq:last-of-type { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.faq summary:hover { color: var(--red-bright); }
.faq p { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0 16px; }

/* ---------------------------------------------------------------- */
/* CAB Governance hierarchy                                          */
/* ---------------------------------------------------------------- */

.gov-tree { margin-top: 16px; display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.gov-node {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 12px 16px;
  margin-left: 24px;
}
.gov-node::before {
  content: '';
  position: absolute;
  left: -16px; top: -14px;
  width: 16px; height: calc(50% + 14px);
  border-left: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-bottom-left-radius: 8px;
}
.gov-tree > .gov-node:first-child { margin-left: 0; }
.gov-tree > .gov-node:first-child::before { display: none; }
.gov-tree > .gov-node { margin-top: 14px; }
.gov-tree > .gov-node:first-child { margin-top: 0; }
.gov-exec { border-left-color: var(--red-bright); }
.gov-role { color: var(--red-bright); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.gov-name { font-size: 1.05rem; font-weight: 700; margin-top: 2px; }
.gov-auth { margin: 8px 0 0; padding-left: 18px; }
.gov-auth li { font-size: 0.86rem; color: var(--muted); margin: 3px 0; }
.gov-members { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gov-member {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 180px;
}
.gov-member-name { font-weight: 600; font-size: 0.92rem; }
.gov-member-dept { font-size: 0.8rem; color: var(--muted); }
.gov-member-title { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.gov-member-proxy { font-size: 0.74rem; color: var(--red-bright); margin-top: 3px; }
.gov-vote-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.5); border-radius: 4px;
  padding: 0 5px; vertical-align: middle;
}
.gov-proxy {
  display: flex; flex-direction: column; gap: 1px;
  margin-top: 8px; padding: 7px 10px;
  background: var(--bg); border: 1px dashed var(--border);
  border-left: 2px solid var(--red); border-radius: 6px;
}
.gov-proxy-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.gov-proxy-name { font-weight: 600; font-size: 0.88rem; }
.gov-proxy-title { font-size: 0.76rem; color: var(--muted); }
.gov-proxy .muted { font-size: 0.72rem; }
.role-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  padding: 1px 7px; margin: 1px 3px 1px 0; border-radius: 999px;
  background: var(--bg-deep); border: 1px solid var(--border); color: var(--muted);
}
.role-badge.role-executive-authority { color: var(--red-bright); border-color: rgba(196, 20, 28, 0.5); }
.role-badge.role-cab-chair { color: var(--red-bright); border-color: rgba(196, 20, 28, 0.5); }
.role-badge.role-voting-member { color: #2ecc71; border-color: rgba(46, 204, 113, 0.45); }
.role-badge.role-proxy-delegate { color: #a78bfa; border-color: rgba(167, 139, 250, 0.45); }

/* Standard Change Catalog */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.catalog-item .meta { grid-template-columns: 90px 1fr; }
.catalog-log summary { list-style: none; cursor: pointer; margin-top: 6px; }
.catalog-log summary::-webkit-details-marker { display: none; }

/* Meeting workspace */
.row-active { background: var(--red-dim); }
.form-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.form-inline select { margin: 0; }

/* CAB Roster */
.roster-head {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 8px;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red-bright);
  border-left: 3px solid var(--red);
  padding-left: 10px;
}
.roster-head.roster-standing { color: var(--muted); border-left-color: var(--border); }
.roster-count {
  font-size: 0.72rem; color: var(--muted);
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 9px; letter-spacing: 0;
}
.roster-table td.wrap { white-space: normal; }

/* Master CAB Controller vote table */
.cab-vote-table th, .cab-vote-table td { vertical-align: middle; }
.cab-vote-table input[type="checkbox"] { width: 18px; height: 18px; }
.cab-vote-table select:disabled, .cab-vote-table input:disabled { opacity: 0.4; }
.timeline-item.kind-decision { border-left-color: var(--red-bright); }
.timeline-item.kind-vote { border-left-color: #a78bfa; }

/* Medallion — AI-assisted change governance & review */
.medallion-answer {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  line-height: 1.55;
}
.medallion-answer.medallion-error {
  border-left-color: var(--red-bright);
  color: var(--red-bright);
}
#medallion-examples .chip { cursor: pointer; }
#medallion-panel .chip-row { flex-wrap: wrap; gap: 8px; }

/* Medallion Draft-to-Form — AI-filled fields + assumptions panel */
.ai-filled,
input.ai-filled,
select.ai-filled,
textarea.ai-filled {
  border-color: var(--purple) !important;
  background: rgba(167, 139, 250, 0.08);
  box-shadow: inset 3px 0 0 0 var(--purple);
}
.ai-filled-label > span:first-child,
.ai-filled-label > legend { position: relative; }
.ai-filled-label::after {
  content: 'AI draft — verify';
  display: inline-block;
  margin-left: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 999px;
  padding: 0 7px;
  vertical-align: middle;
}
.medallion-assumptions {
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
}
.mb-panel-head {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--red-bright); margin-bottom: 2px;
}

/* Medallion Change Request Builder — full-width input layout */
.medallion-builder-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.medallion-builder-field > label {
  font-size: 0.85rem;
  color: var(--muted);
}
.medallion-builder-field textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  box-sizing: border-box;
  padding: 11px 14px;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  font-size: 0.93rem;
}
.medallion-builder-field textarea::placeholder { color: #7c7c7c; }
.medallion-builder-field textarea:focus { outline: none; border-color: var(--red); }
.medallion-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Medallion Meeting Scribe */
.ms-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted); margin-right: 6px; vertical-align: middle;
}
#ms-listen.listening { border-color: var(--red); color: var(--red-bright); }
#ms-listen.listening .ms-dot { background: var(--red-hot); animation: ms-pulse 1.1s ease-in-out infinite; }
@keyframes ms-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.ms-ai-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.ms-field {
  flex: 1 1 120px; min-width: 0; padding: 7px 10px;
  background: var(--bg-deep); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 0.85rem;
}
.ms-field:focus { outline: none; border-color: var(--red); }
.ms-rm { flex: 0 0 auto; padding: 6px 10px; }

/* Meeting workspace — Join + Scribe action bar */
.workspace-actions {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin: 4px 0 16px;
}
.ms-interim { min-height: 1.2em; font-style: italic; font-size: 0.85rem; }

/* Scribe v2 — change-association badge */
.ms-change { margin-left: 4px; font-size: 0.7rem; vertical-align: middle; }

/* Sidebar attendance requirement notice */
.attendance-note {
  margin: 12px 4px 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.07);
}
.attendance-title {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--amber); margin-bottom: 8px;
}
.attendance-note p {
  font-size: 0.74rem; line-height: 1.5; color: var(--muted); margin: 0 0 8px;
}
.attendance-note p:last-child { margin-bottom: 0; }

/* Dashboard status ribbon — auto-scrolling marquee of status counts */
.status-ribbon {
  position: relative;
  overflow: hidden;
  margin: 4px 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-deep);
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.status-ribbon-track {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding-left: 10px;
  white-space: nowrap;
  width: max-content;
  animation: status-ribbon-scroll 38s linear infinite;
}
.status-ribbon:hover .status-ribbon-track,
.status-ribbon:focus-within .status-ribbon-track { animation-play-state: paused; }
.status-ribbon .chip { flex: 0 0 auto; }
@keyframes status-ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .status-ribbon { overflow-x: auto; }
  .status-ribbon-track { animation: none; }
}

/* Dashboard stat tiles — auto-scrolling ribbon */
.stat-ribbon {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.stat-ribbon-track {
  display: inline-flex;
  gap: 14px;
  width: max-content;
  padding: 4px;
  animation: stat-ribbon-scroll 55s linear infinite;
}
.stat-ribbon:hover .stat-ribbon-track,
.stat-ribbon:focus-within .stat-ribbon-track { animation-play-state: paused; }
.stat-ribbon .stat { flex: 0 0 auto; width: 210px; margin: 0; }
@keyframes stat-ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-ribbon { overflow-x: auto; }
  .stat-ribbon-track { animation: none; }
}

/* ===================== CAB meeting workspace (live) ===================== */
.meeting-strip {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  padding: 12px 18px; margin: 0 0 18px;
  background: var(--bg-deep); border: 1px solid var(--border); border-radius: 14px;
  position: sticky; top: 8px; z-index: 5;
}
.strip-item { display: flex; flex-direction: column; gap: 2px; }
.strip-item.strip-grow { flex: 1 1 auto; min-width: 0; }
.strip-label { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.strip-value { font-weight: 700; font-size: 0.95rem; }
.strip-value[data-met="false"] { color: var(--amber); }
.strip-value[data-met="true"] { color: var(--green); }
#strip-current { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.strip-live { color: var(--green); }

.vote-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn-small { padding: 6px 12px; font-size: 0.82rem; }

.vote-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.vote-seat {
  display: grid; grid-template-columns: 1.4fr auto 1fr; gap: 10px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-deep);
}
.vote-seat[data-represented="0"] { opacity: 0.5; }
.vote-seat-info { display: flex; flex-direction: column; min-width: 0; }
.vote-seat-as { font-size: 0.75rem; }
.vote-quick { display: inline-flex; gap: 4px; }
.vote-btn {
  border: 1px solid var(--border); background: transparent; color: var(--text);
  border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.vote-btn:hover:not(:disabled) { filter: brightness(1.3); }
.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vote-btn.vote-approve.is-active { background: rgba(46,204,113,0.18); border-color: var(--green); color: #7ef0a8; }
.vote-btn.vote-reject.is-active  { background: var(--red-dim); border-color: var(--red); color: #fca5a5; }
.vote-btn.vote-abstain.is-active { background: rgba(245,166,35,0.16); border-color: var(--amber); color: #fcd34d; }
.js-active .vote-select { display: none; }  /* native fallback hidden only when JS drives the buttons */
.vote-note { font-size: 0.85rem; }
@media (max-width: 620px) {
  .vote-seat { grid-template-columns: 1fr; }
  .vote-quick { flex-wrap: wrap; }
}

.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.tally-pill { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--border); }
.tally-approve { color: #7ef0a8; border-color: rgba(46,204,113,0.5); }
.tally-reject  { color: #fca5a5; border-color: rgba(179,14,20,0.6); }
.tally-abstain { color: #fcd34d; border-color: rgba(245,166,35,0.5); }
.tally-meta { color: var(--muted); font-size: 0.8rem; }

.vote-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.decision-done, .save-flash { color: var(--green); font-size: 0.85rem; font-weight: 600; }
.all-reviewed-banner { border-color: rgba(46,204,113,0.5); }

.queue-dot {
  width: 16px; height: 16px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid var(--border); background: transparent;
}
.queue-row.row-active .queue-dot { border-color: var(--red-bright); background: var(--red-bright); }
.queue-row { cursor: pointer; }

/* ===================== Aging radar (dashboard) ===================== */
.radar-card { border-color: rgba(245, 166, 35, 0.45); margin-bottom: 18px; }
.radar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
@media (max-width: 820px) { .radar-grid { grid-template-columns: 1fr; } }
.radar-head { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.radar-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: rgba(245, 166, 35, 0.18); color: var(--amber);
}
.radar-sub { font-size: 0.78rem; margin: 2px 0 8px; }
.radar-empty { font-size: 0.85rem; margin: 4px 0; }
.radar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.radar-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
.radar-list li a { color: var(--text); }
.radar-list li a:hover { color: var(--red-hot); }
.radar-age { flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--amber); }

/* ===================== Agenda / pre-read packet ===================== */
.agenda-meta { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; font-size: 0.9rem; }
.agenda-item { margin-bottom: 14px; }
.agenda-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.agenda-num {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--red-dim); color: var(--red-hot); font-weight: 700; flex-shrink: 0;
}
.agenda-title { font-weight: 600; font-size: 1.05rem; flex: 1 1 auto; min-width: 0; }
.agenda-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.agenda-grid { grid-template-columns: 120px 1fr; margin-top: 10px; }

@media print {
  .sidebar, .topbar, #bg-net, .bg-glow, .workspace-actions, .btn,
  .bottom-nav, .agenda-preread .chip-row, .demo-warning { display: none !important; }
  body, .shell, .main, .content { background: #fff !important; color: #000 !important; }
  .card { border: 1px solid #ccc !important; background: #fff !important; box-shadow: none !important; break-inside: avoid; }
  a { color: #000 !important; }
  .content { max-width: none; padding: 0; }
  .agenda-num { background: #eee !important; color: #000 !important; }
}

/* ===================== Plain-language decision aid ===================== */
.recommendation {
  margin: 12px 0 4px; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid var(--border);
}
.recommendation.rec-approve { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.5); color: #9af0bd; }
.recommendation.rec-reject  { background: var(--red-dim); border-color: var(--red); color: #fca5a5; }
.recommendation.rec-warn    { background: rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.5); color: #fcd34d; }
.adjust-decision { margin: 4px 0 10px; }
.adjust-decision summary { font-size: 0.85rem; }

/* Inline help affordance for jargon (quorum, etc.) */
.help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; font-size: 0.62rem; font-weight: 700;
  border: 1px solid var(--muted); color: var(--muted); cursor: help; position: relative; vertical-align: 1px;
}
.help:hover, .help:focus { border-color: var(--text); color: var(--text); outline: none; }
.help::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 230px; padding: 9px 11px; border-radius: 10px; background: #111; border: 1px solid var(--border);
  color: var(--text); font-size: 0.78rem; font-weight: 400; line-height: 1.4; text-transform: none;
  letter-spacing: 0; white-space: normal; text-align: left; z-index: 20;
  opacity: 0; visibility: hidden; transition: opacity 0.12s; pointer-events: none;
}
.help:hover::after, .help:focus::after { opacity: 1; visibility: visible; }

/* ===================== Public customer approval page ===================== */
.public-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.public-card { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.public-brand { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.public-brandsub { font-family: var(--display); color: var(--muted); font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; }
.public-h1 { font-size: 1.7rem; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.public-change { border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 16px 0; background: var(--bg-deep); }
.public-change-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.public-meta { display: grid; grid-template-columns: 150px 1fr; gap: 7px 12px; margin: 0; font-size: 0.92rem; }
.public-meta dt { color: var(--muted); }
.public-desc { margin-top: 12px; white-space: pre-wrap; font-size: 0.92rem; line-height: 1.6; }
.public-label { display: block; margin-top: 12px; font-size: 0.9rem; }
.public-label input, .public-label textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; background: var(--bg-deep);
  color: var(--text); border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 0.95rem;
}
.public-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-approve, .btn-decline { flex: 1 1 auto; padding: 15px 20px; border-radius: 12px; font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.btn-approve { background: #1a7f37; color: #fff; }
.btn-approve:hover { filter: brightness(1.1); }
.btn-decline { background: transparent; color: #fca5a5; border-color: var(--red); }
.btn-decline:hover { background: var(--red-dim); }
.public-fineprint { font-size: 0.78rem; margin-top: 14px; }
.public-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.78rem; text-align: center; }
.public-result { text-align: center; padding: 10px 0; }
.public-result-icon { font-size: 2.6rem; width: 72px; height: 72px; line-height: 72px; margin: 0 auto 12px; border-radius: 50%; }
.public-result.ok .public-result-icon { background: rgba(46,204,113,0.16); color: #7ef0a8; }
.public-result.no .public-result-icon { background: var(--red-dim); color: #fca5a5; }
