:root {
  --sidebar-w: 220px;
  --topbar-h: 56px;
  --breadcrumb-h: 40px;
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-light: #e6f4ff;
  --sidebar-bg: #001529;
  --sidebar-hover: #ffffff14;
  --sidebar-active: #1677ff;
  --bg: #f0f2f5;
  --surface: #ffffff;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --text: #1f1f1f;
  --text-secondary: #595959;
  --text-dim: #8c8c8c;
  --pass: #52c41a;
  --fail: #ff4d4f;
  --warning: #faad14;
  --danger: #ff4d4f;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px rgba(0, 0, 0, 0.04);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* ---- Layout ---- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #36cfc9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.brand-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.brand-sub { font-size: 11px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }

.topbar-brand-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: -3px;
  margin-right: 6px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-group-label {
  padding: 12px 20px 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  margin: 2px 8px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 500;
}

.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sidebar-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
}

.sidebar-toggle:hover { background: var(--bg); }

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.topbar-user {
  padding: 4px 12px;
  background: var(--bg);
  border-radius: 16px;
  color: var(--text-secondary);
}

.breadcrumb-bar {
  height: var(--breadcrumb-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumb-root { color: var(--text-dim); }
.breadcrumb-sep { margin: 0 8px; color: var(--border); }
.breadcrumb-current { color: var(--text-secondary); }

.content-area {
  flex: 1;
  padding: 20px 24px 40px;
  max-width: 1400px;
}

.page { display: none; }
.page.active { display: block; }

.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.page-desc {
  font-size: 14px;
  color: var(--text-dim);
}

.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .content-grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }

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

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 600px) {
  .area-grid { grid-template-columns: repeat(4, 1fr); }
}

.area-chip {
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.area-chip:hover { border-color: var(--primary); }

.area-chip.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.area-criteria {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
  margin-top: 10px;
  line-height: 1.6;
}

/* ---- Upload ---- */
.upload-zone {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: #fafafa;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-text { color: var(--text-dim); font-size: 14px; }

.preview-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 6px;
  margin-top: 12px;
  object-fit: contain;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 13px;
}

.btn-delete {
  padding: 4px 10px;
  border: 1px solid var(--fail);
  background: transparent;
  color: var(--fail);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

/* ---- Status ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.pass { background: #f6ffed; color: var(--pass); border: 1px solid #b7eb8f; }
.status-badge.fail { background: #fff2f0; color: var(--fail); border: 1px solid #ffccc7; }
.status-badge.pending {
  background: #fffbe6;
  color: var(--warning);
  border: 1px solid #ffe58f;
}

.ai-mode-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

.hint-text {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}

.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ---- Score ---- */
.score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
}

.score-ring-wrap { position: relative; width: 160px; height: 160px; }
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }
.score-ring-fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease, stroke 0.3s;
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number { font-size: 42px; font-weight: 700; line-height: 1; }
.score-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.result-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.meta-tag {
  padding: 4px 12px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
}

.meta-tag strong { color: var(--text); }

.result-summary { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

.issue-list, .suggestion-list { list-style: none; }

.issue-list li, .suggestion-list li {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border-light);
}

.issue-list li::before { content: "⚠"; flex-shrink: 0; color: var(--warning); }
.suggestion-list li::before { content: "💡"; flex-shrink: 0; }

.result-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* ---- Dashboard stats ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.stat-icon {
  font-size: 20px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card.stat-pass .stat-value { color: var(--pass); }
.stat-card.stat-fail .stat-value { color: var(--fail); }
.stat-value.danger { color: var(--fail); }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

.chart-wrap {
  position: relative;
  height: 260px;
  margin-top: 4px;
}

/* ---- Lists ---- */
.recent-list, .standard-list, .live-session-list, .guide-report-list {
  list-style: none;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
}

.recent-item:hover { background: var(--bg); margin: 0 -12px; padding: 12px; border-radius: 6px; }
.recent-item:last-child { border-bottom: none; }

.recent-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border-light);
}

.recent-info { flex: 1; min-width: 0; }
.recent-room { font-size: 14px; font-weight: 600; }
.recent-area { font-size: 12px; color: var(--text-dim); }
.recent-score { font-size: 16px; font-weight: 700; }
.recent-score.pass { color: var(--pass); }
.recent-score.fail { color: var(--fail); }

.standard-hint { margin-top: 10px; }

.std-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
}
.std-badge.has-std { background: #f6ffed; color: var(--pass); border: 1px solid #b7eb8f; }
.std-badge.no-std { background: #fffbe6; color: var(--warning); border: 1px solid #ffe58f; }

.std-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.std-item:last-child { border-bottom: none; }

.std-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border-light);
}

.std-info { flex: 1; min-width: 0; }
.std-title { font-size: 14px; font-weight: 600; }
.std-note { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.std-empty { color: var(--text-dim); padding: 16px 0; text-align: center; }

/* ---- Live patrol ---- */
.live-session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.live-session-item:hover,
.live-session-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-dim);
}

.live-dot.online {
  background: var(--pass);
  box-shadow: 0 0 6px rgba(82, 196, 26, 0.5);
}

.live-session-info { flex: 1; min-width: 0; }
.live-session-room { font-weight: 600; font-size: 14px; }
.live-session-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.live-empty { color: var(--text-dim); padding: 20px 0; text-align: center; }

.live-viewer-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.live-status-dot.online {
  background: var(--pass);
  box-shadow: 0 0 6px rgba(82, 196, 26, 0.5);
}

.live-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }

.live-viewport {
  position: relative;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 480px;
}

.live-webrtc-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.live-audio-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.live-mic-status.ok { color: var(--pass); }
.live-mic-status.warn { color: var(--warning); }

.live-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  pointer-events: none;
}

.live-stats { margin-top: 10px; font-size: 12px; color: var(--text-dim); }

/* ---- Guide reports ---- */
.guide-empty { color: var(--text-dim); padding: 16px 0; text-align: center; }

.guide-report-item {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.guide-report-item:hover,
.guide-report-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.guide-report-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.guide-report-progress { color: var(--primary); font-size: 13px; font-weight: 500; }

.guide-report-sub {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.guide-report-id { margin-left: auto; }

.guide-mode-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
}

.guide-detail-actions {
  margin-bottom: 16px;
}

.guide-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.guide-compare-cell {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px;
  background: var(--surface);
  text-align: center;
}

.guide-compare-cell.empty {
  color: var(--text-dim);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.guide-compare-link {
  display: block;
  line-height: 0;
}

.guide-compare-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: zoom-in;
}

.guide-compare-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.guide-compare-label a {
  color: var(--primary);
  text-decoration: none;
}

.guide-detail-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.guide-area-card {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--bg);
}

.guide-area-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.guide-area-pass { color: var(--pass); font-size: 13px; }
.guide-area-fail { color: var(--fail); font-size: 13px; }
.guide-area-pending { color: var(--text-dim); font-size: 13px; }

.guide-checkpoint-list {
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.guide-checkpoint-list .cp-pass { color: var(--pass); }
.guide-checkpoint-list .cp-fail { color: var(--fail); }
.guide-checkpoint-list .cp-pending { color: var(--text-dim); }

.guide-area-summary {
  font-size: 13px;
  color: var(--text-dim);
  margin: 8px 0;
}

.guide-area-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  margin-top: 8px;
  border: 1px solid var(--border-light);
}

/* ---- Loading ---- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}

.loading-overlay.show { display: flex; }
.loading-text { color: #fff; font-size: 14px; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .admin-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: block;
  }

  .content-area {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Chart.js light theme overrides */
canvas { max-width: 100%; }

/* ---- 告警中心 / 方案演示 ---- */
.risk-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.risk-event-list {
  list-style: none;
  max-height: 520px;
  overflow-y: auto;
}

.risk-event-item {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
}

.risk-event-item:hover { background: var(--primary-light); }

.risk-event-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.risk-sev-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff1f0;
  color: var(--fail);
}

.risk-sev-p0 .risk-sev-badge { background: #fff1f0; color: #cf1322; }
.risk-sev-p1 .risk-sev-badge { background: #fff7e6; color: #d46b08; }
.risk-sev-p2 .risk-sev-badge { background: #e6f4ff; color: #0958d9; }

.demo-tag {
  font-size: 10px;
  background: #f6ffed;
  color: #389e0d;
  padding: 1px 6px;
  border-radius: 4px;
}

.risk-event-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.risk-detail-dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  font-size: 14px;
  margin: 12px 0;
}

.risk-detail-dl dt { color: var(--text-dim); }
.risk-detail-actions { display: flex; gap: 8px; margin-top: 12px; }

.risk-json {
  font-size: 11px;
  background: #fafafa;
  padding: 8px;
  border-radius: 6px;
  overflow-x: auto;
  margin-top: 8px;
}

.demo-feasibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.feasibility-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.feasibility-key { font-size: 12px; color: var(--text-dim); text-transform: uppercase; }
.feasibility-status { font-size: 16px; font-weight: 600; margin: 4px 0; }
.feasibility-cov { font-size: 12px; color: var(--text-secondary); }

.demo-scenario-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  background: #fafafa;
}

.demo-scenario-title { font-weight: 600; margin-bottom: 4px; }
.demo-scenario-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }

.demo-arch-note { font-size: 13px; color: var(--text-secondary); margin-top: 12px; }

.risk-fit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.risk-fit-table th,
.risk-fit-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.risk-fit-table th { background: #fafafa; }

.fit-high { color: #389e0d; font-weight: 600; }
.fit-medium { color: #d46b08; font-weight: 600; }
.fit-planned { color: #1677ff; font-weight: 600; }
