/* ==========================================================================
   RISK PLANNING BRIDGE | جسر التخطيط والمخاطر
   Ministry of Planning & National Crisis Center Strategic Workspace
   Sovereign Multi-Theme & Bilingual Enterprise Design System
   Compatible with HamzColorTheme & HamzLang Standards
   ========================================================================== */

/* --- 1. SOVEREIGN THEMES PALETTES (HamzColorTheme) --- */

/* 1.1 Sovereign Midnight (Default Operations Watchfloor) */
[data-theme="midnight"], :root {
  --bg-base: #060913;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(14, 21, 37, 0.78);
  --bg-card-hover: rgba(20, 30, 52, 0.9);
  --bg-elevated: #131c31;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.22);
  --accent-soft: rgba(56, 189, 248, 0.12);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --aside-bg: #070c18;
  --aside-line: rgba(255, 255, 255, 0.08);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --dialog-backdrop: rgba(6, 9, 19, 0.85);
}

/* 1.2 Tactical Emerald (Environmental, Resources & Water Ops) */
[data-theme="emerald"] {
  --bg-base: #030d07;
  --bg-surface: #07170e;
  --bg-card: rgba(9, 29, 17, 0.82);
  --bg-card-hover: rgba(14, 42, 25, 0.92);
  --bg-elevated: #0f2d1c;
  --line: rgba(16, 185, 129, 0.16);
  --line-strong: rgba(16, 185, 129, 0.28);
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.28);
  --accent-soft: rgba(16, 185, 129, 0.12);
  --ink: #f0fdf4;
  --muted: #86efac;
  --dim: #4ade80;
  --aside-bg: #04120a;
  --aside-line: rgba(16, 185, 129, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --warning: #fcd34d;
  --warning-soft: rgba(252, 211, 77, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --shadow-card: 0 8px 32px 0 rgba(3, 13, 7, 0.45);
  --dialog-backdrop: rgba(3, 13, 7, 0.85);
}

/* 1.3 Crimson Alert (Crisis Response & High Threat) */
[data-theme="crimson"] {
  --bg-base: #0f0507;
  --bg-surface: #1a080d;
  --bg-card: rgba(33, 12, 17, 0.84);
  --bg-card-hover: rgba(48, 18, 26, 0.92);
  --bg-elevated: #2d1017;
  --line: rgba(244, 63, 94, 0.18);
  --line-strong: rgba(244, 63, 94, 0.3);
  --accent: #f43f5e;
  --accent-hover: #e11d48;
  --accent-glow: rgba(244, 63, 94, 0.28);
  --accent-soft: rgba(244, 63, 94, 0.14);
  --ink: #fff1f2;
  --muted: #fda4af;
  --dim: #fb7185;
  --aside-bg: #14060a;
  --aside-line: rgba(244, 63, 94, 0.16);
  --danger: #ff4d6d;
  --danger-soft: rgba(255, 77, 109, 0.18);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --shadow-card: 0 8px 32px 0 rgba(15, 5, 7, 0.5);
  --dialog-backdrop: rgba(15, 5, 7, 0.85);
}

/* 1.4 Desert Amber (National Planning & Executive Vision) */
[data-theme="amber"] {
  --bg-base: #0d0a04;
  --bg-surface: #171107;
  --bg-card: rgba(33, 24, 11, 0.84);
  --bg-card-hover: rgba(48, 35, 16, 0.92);
  --bg-elevated: #281d0c;
  --line: rgba(245, 158, 11, 0.18);
  --line-strong: rgba(245, 158, 11, 0.3);
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.28);
  --accent-soft: rgba(245, 158, 11, 0.12);
  --ink: #fffbeb;
  --muted: #fcd34d;
  --dim: #fbbf24;
  --aside-bg: #120e06;
  --aside-line: rgba(245, 158, 11, 0.16);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --shadow-card: 0 8px 32px 0 rgba(13, 10, 4, 0.5);
  --dialog-backdrop: rgba(13, 10, 4, 0.85);
}

/* 1.5 Executive Light (Daylight Audit & Official Review) */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-hover: #ffffff;
  --bg-elevated: #f1f5f9;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.18);
  --accent-soft: rgba(2, 132, 199, 0.08);
  --ink: #0f172a;
  --muted: #475569;
  --dim: #64748b;
  --aside-bg: #0f172a;
  --aside-line: rgba(255, 255, 255, 0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.12);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.12);
  --shadow-card: 0 4px 20px 0 rgba(0, 0, 0, 0.06);
  --dialog-backdrop: rgba(15, 23, 42, 0.7);
}

/* --- 2. BASE & SYSTEM RESET --- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  line-height: 1.75;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cairo", "IBM Plex Sans Arabic", "Noto Sans Arabic", "Tajawal", system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.number, code, th, td, .badge, .topbar small, .card .number {
  font-variant-numeric: tabular-nums;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button, a {
  touch-action: manipulation;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a {
  color: var(--accent);
  text-decoration: none;
}

button, .button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--ink);
  padding: 8px 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

button:hover, .button:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 2px 10px var(--accent-soft);
}

button:active, .button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

button.primary, .primary {
  background: var(--accent);
  color: #040914 !important;
  border-color: var(--accent);
  font-weight: 700;
}

button.primary:hover, .primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px var(--accent-glow);
}

button.danger {
  color: var(--danger);
  border-color: var(--danger-soft);
  background: var(--danger-soft);
}

button.danger:hover {
  background: var(--danger);
  color: #fff;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 6px 0 10px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
}

small, .muted {
  color: var(--muted);
}

/* --- 3. SHELL & SIDEBAR --- */

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

aside {
  background: var(--aside-bg);
  border-inline-end: 1px solid var(--aside-line);
  color: var(--ink);
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

aside .brand {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--aside-line);
  color: var(--ink);
}

aside .brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 3px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: start;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}

nav button:hover {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line);
}

nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  border-inline-start: 3px solid var(--accent);
  font-weight: 700;
}

aside hr {
  border: 0;
  border-top: 1px solid var(--aside-line);
  margin: 18px 0;
}

aside a.atlas-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--accent-glow);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

aside a.atlas-link:hover {
  background: var(--accent);
  color: #040914;
}

aside .aside-foot {
  margin-top: auto;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}

/* --- 4. TOPBAR & WORKSPACE --- */

main {
  padding: 32px 36px 60px;
  max-width: 1540px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.topbar .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 0;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* Topbar Controls (Theme & Lang) */
.bridge-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.theme-select {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* --- 5. CARDS & HERO --- */

.hero {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 20px 0 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero h2 {
  font-size: 24px;
  color: var(--ink);
}

.hero p {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  overflow-wrap: anywhere;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card .number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.banner {
  background: var(--warning-soft);
  border: 1px solid var(--warning);
  color: var(--ink);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.7;
}

/* --- 6. BADGES & SIGNALS --- */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
  margin: 2px;
}

.badge.demo {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: var(--warning);
}

.badge.review {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}

.badge.stale, .badge.missing {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: var(--warning);
}

.badge.within {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--success);
}

/* --- 7. TABLES & FORMS --- */

.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 18px 0;
  box-shadow: var(--shadow-card);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

th, td {
  padding: 14px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--bg-elevated);
  color: var(--muted);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: var(--bg-card-hover);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--muted);
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--bg-surface);
  color: var(--ink);
  outline: none;
  font-size: 13px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

input.search {
  max-width: 380px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field.wide {
  grid-column: 1 / -1;
}

/* --- 8. DIALOG & MODALS --- */

dialog {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 30px;
  width: min(920px, 94vw);
  max-height: 88vh;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  background: var(--bg-surface);
  color: var(--ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

dialog::backdrop {
  background: var(--dialog-backdrop);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* --- 9. LOGIN VIEW --- */

.login-wrapper {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.login {
  max-width: 460px;
  width: 100%;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.login .brand {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.login .subtitle {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 20px;
}

.login .demo-creds {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.login .demo-creds button {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* --- 10. DECISION TRACE & NOTICES --- */

#notice {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 14px 22px;
  z-index: 999;
  border-radius: 10px;
  max-width: 80vw;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  display: none;
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin: 10px 0;
  white-space: pre-wrap;
}

.chain {
  border-inline-start: 4px solid var(--accent);
  padding-inline-start: 20px;
  margin: 20px 0;
}

.chain h3 {
  color: var(--accent);
  margin-top: 14px;
}

.meeting {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 14px;
  max-width: 1040px;
  line-height: 2;
}

.meeting h1 {
  font-size: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.meeting h2 {
  margin-top: 36px;
  color: var(--accent);
}

.meeting table {
  margin: 20px 0;
}

/* --- 11. RESPONSIVE DESIGN --- */

@media (max-width: 850px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 20px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--aside-line);
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  nav button {
    width: auto;
    padding: 8px 12px;
    font-size: 12px;
  }
  main {
    padding: 20px 16px 40px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 12. PRINT STYLES --- */

@media print {
  aside, .topbar .actions, button, .toolbar, #notice, .bridge-controls {
    display: none !important;
  }
  .shell {
    display: block;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  main {
    padding: 0 !important;
  }
  .card, .hero {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #000 !important;
  }
}

/* --- 13. MOTION INDICATORS & STRATEGIC DOSSIER SYSTEM --- */

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

@keyframes pulse-amber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-pip {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-inline-end: 6px;
  vertical-align: middle;
}

.status-pip.critical {
  background: var(--danger);
  animation: pulse-dot 1.8s infinite;
}

.status-pip.warning {
  background: var(--warning);
  animation: pulse-amber 2.2s infinite;
}

.status-pip.ok {
  background: var(--success);
  animation: pulse-green 2.8s infinite;
}

.card-interactive {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-interactive:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.sparkline-box {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sparkline-svg {
  overflow: visible;
  width: 120px;
  height: 38px;
}

.gauge-container {
  margin: 8px 0;
}

.gauge-bar-track {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.gauge-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Strategic Dossier Dialog */
.dossier-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dossier-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.dossier-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  overflow-x: auto;
}

.dossier-nav button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.dossier-nav button:hover {
  color: var(--ink);
  background: var(--bg-elevated);
}

.dossier-nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.dossier-pane {
  animation: fadeIn 0.28s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dossier-section {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.dossier-section h4 {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.dossier-stat-box {
  background: var(--bg-card);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.dossier-stat-box .title {
  font-size: 11px;
  color: var(--muted);
}

.dossier-stat-box .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}

/* Trace Pipeline */
.trace-pipeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.trace-node {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  position: relative;
  transition: all 0.2s ease;
}

.trace-node:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.trace-node-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Meeting Cards */
.meeting-question-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
  border-inline-start: 4px solid var(--accent);
  transition: all 0.2s ease;
}

.meeting-question-card:hover {
  box-shadow: var(--shadow-card);
  border-inline-start-color: var(--accent-hover);
}

.meeting-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.cloud-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
