:root {
  --bg: #09121d;
  --panel: rgba(15, 27, 44, 0.9);
  --card: rgba(18, 34, 55, 0.94);
  --panel-strong: #0f1f31;
  --panel-soft: #13263b;
  --line: rgba(135, 163, 191, 0.22);
  --line-strong: rgba(125, 211, 199, 0.32);
  --accent: #7dd3c7;
  --accent-strong: #2d8c84;
  --accent-warm: #f2c879;
  --muted: #9fb2c8;
  --text: #edf5ff;
  --pill: #d9efe9;
  --success: #5bc68b;
  --danger: #d77777;
  --shadow-lg: 0 24px 60px rgba(3, 9, 18, 0.42);
  --shadow-md: 0 14px 30px rgba(5, 13, 26, 0.28);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(125, 211, 199, 0.14), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(98, 160, 216, 0.14), transparent 30%),
    linear-gradient(180deg, #0d1827 0%, #09121d 100%);
  color: var(--text);
}
.brand {
  display: grid;
  gap: 6px;
  grid-auto-rows: auto;
}
.brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d6f79 0%, #7dd3c7 72%);
  color: #08212a;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.page { max-width: 1380px; margin: 0 auto; padding: 28px; position: relative; }
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--accent); margin: 0 0 4px; font-weight: 700; }
h1 { margin: 0 0 8px; font-size: 28px; }
.lede { margin: 0; color: var(--muted); max-width: 600px; }
.keybox {
  background: linear-gradient(180deg, rgba(17, 31, 49, 0.96), rgba(13, 24, 38, 0.96));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 300px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-md);
}
.keybox input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(8, 18, 31, 0.9); color: var(--text); }
.keybox button { padding: 10px 12px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #06232a; font-weight: 700; cursor: pointer; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-head h2,
.section-head h3,
.section-head h4 {
  position: relative;
  padding-left: 14px;
}
.section-head h2::before,
.section-head h3::before,
.section-head h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(125, 211, 199, 0.18));
}
.ghost {
  background: rgba(11, 22, 35, 0.68);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  min-height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.ghost:hover {
  border-color: var(--line-strong);
  background: rgba(19, 38, 59, 0.96);
  box-shadow: 0 10px 20px rgba(5, 13, 26, 0.22);
  transform: translateY(-1px);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(135, 163, 191, 0.16);
  background: rgba(8, 18, 31, 0.34);
}
.filters select,
.filters input {
  background: rgba(8, 18, 31, 0.92);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 130px;
  min-height: 42px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.card {
  background: linear-gradient(180deg, rgba(18, 34, 55, 0.96), rgba(14, 27, 43, 0.94));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-md);
}
.card-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.card h3 { margin: 4px 0; }
.card-body { color: var(--muted); line-height: 1.5; }
.pill {
  background: var(--pill);
  color: #09212a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
  font-weight: 700;
}
.pill.outline { background: transparent; color: var(--accent); border: 1px solid var(--line-strong); }
.muted { color: var(--muted); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list li {
  background: linear-gradient(180deg, rgba(18, 34, 55, 0.96), rgba(14, 27, 43, 0.94));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.list li select { background: rgba(8, 18, 31, 0.92); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; margin-left: 6px; }
.list li .ghost { margin-left: 6px; padding: 6px 8px; }
.tree { margin-top: 6px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: rgba(8, 18, 31, 0.52); }
details summary { cursor: pointer; font-weight: 600; }
.error { color: #ffb0b0; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 0; }
.metric {
  background: linear-gradient(180deg, rgba(18, 34, 55, 0.94), rgba(13, 24, 38, 0.98));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-md);
}
.metric h3 { margin: 4px 0 0; font-size: 24px; }
.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-inline input, .form-inline select {
  background: rgba(8, 18, 31, 0.92);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
}
.overlay { position: fixed; inset: 0; background: rgba(2, 9, 18, 0.74); display: flex; justify-content: center; align-items: center; z-index: 50; backdrop-filter: blur(8px); }
.overlay.hidden { display: none; }
.overlay-card { background: linear-gradient(180deg, rgba(16, 30, 48, 0.98), rgba(13, 24, 38, 0.98)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; max-width: 720px; width: 90%; max-height: 90vh; overflow: auto; position: relative; box-shadow: var(--shadow-lg); }
.close { position: absolute; top: 8px; right: 8px; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 12px; margin-top: 8px; }
.upload-card { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 14px; margin-top: 12px; }
.upload-card input[type="file"] { color: var(--text); }
.drop-zone {
  margin-top: 10px;
  padding: 18px;
  border: 2px dashed rgba(125, 211, 199, 0.4);
  border-radius: 12px;
  text-align: center;
  background: rgba(125, 211, 199, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.drop-zone.dragging {
  border-color: var(--accent);
  background: rgba(125, 211, 199, 0.16);
}
.drop-zone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pill.status-open { background: #22d3ee; color: #0b1221; }
.pill.status-in_progress { background: #facc15; color: #0f172a; }
.pill.status-done { background: #34d399; color: #064e3b; }
.pill.priority-high { background: #ef4444; color: #fff; }
.pill.priority-medium { background: #fb923c; color: #0f172a; }
.pill.priority-low { background: #a3e635; color: #0f172a; }
.pill.approval-approved { background: #34d399; color: #064e3b; }
.pill.approval-rejected { background: #f87171; color: #fff; }
.pill.approval-pending { background: #c084fc; color: #1b1330; }
.pill.intake-received { background: #22d3ee; color: #0b1221; }
.pill.intake-classified { background: #facc15; color: #0f172a; }
.pill.intake-redacted { background: #34d399; color: #064e3b; }
.pill.intake-completed { background: #a3e635; color: #0f172a; }
.overdue strong { color: #f87171; }
.overdue .muted { color: #fca5a5; }

.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.board-col { background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
.board-col-head { padding: 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.board-col-body { padding: 10px; display: grid; gap: 8px; }
.board-card { background: rgba(10, 20, 33, 0.84); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; }
.board-card.overdue { border-color: #ef4444; box-shadow: 0 0 0 1px rgba(239,68,68,0.4); }
.board-actions { display: flex; gap: 6px; justify-content: flex-end; }
.board-card .ghost { padding: 6px 8px; }
.inline-label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.inline-input {
  background: rgba(8, 18, 31, 0.92);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
  min-height: 42px;
}

.assistant-card .card-head { align-items: center; }
.assistant-avatar-frame {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 40% 35%, rgba(125, 211, 199, 0.3), rgba(10,16,28,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.assistant-avatar-frame svg { width: 100%; height: 100%; }
.assistant-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  color: var(--text);
}
.stack-sm { display: grid; gap: 8px; }
.pill-row, .workspace-badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.warning-banner {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(242, 200, 121, 0.35);
  background: linear-gradient(180deg, rgba(56, 38, 10, 0.36), rgba(34, 25, 9, 0.3));
  color: #f8e7bf;
}
.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.72);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workspace-badge.neutral { border-color: var(--line); color: var(--muted); }
.workspace-badge.pending { border-color: rgba(242, 200, 121, 0.38); color: #f8e7bf; }
.workspace-badge.warning { border-color: rgba(215, 119, 119, 0.38); color: #ffd0d0; }
.workspace-badge.success { border-color: rgba(91, 198, 139, 0.35); color: #cdf5dd; }
.workspace-badge.completed { border-color: rgba(91, 198, 139, 0.35); color: #cdf5dd; }
.workspace-badge.missing { border-color: rgba(215, 119, 119, 0.38); color: #ffd0d0; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(125, 211, 199, 0.5);
  outline-offset: 2px;
}
.command-center-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(125, 211, 199, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(17, 31, 49, 0.96), rgba(12, 22, 35, 0.96));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.command-center-hero::after,
.control-section::before,
.workspace-overview-shell::before,
.workspace-tree-banner::before,
.command-rail-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 211, 199, 0), rgba(125, 211, 199, 0.42), rgba(125, 211, 199, 0));
}
.command-center-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}
.command-center-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}
.command-center-copy p {
  margin: 0;
  max-width: 760px;
}
.command-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.command-metric {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.62);
}
.command-metric-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.command-metric-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}
.command-metric-note {
  font-size: 12px;
  color: var(--muted);
}
.command-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.control-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 34, 55, 0.96), rgba(14, 27, 43, 0.94));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.control-section > h4 {
  margin-bottom: 2px;
}
.control-section:hover,
.switchboard-lane:hover,
.agency-card:hover,
.signal-card:hover,
.workspace-overview-shell:hover,
.workspace-tree-banner:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 34px rgba(5, 13, 26, 0.28);
}
.control-section h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.control-section > p {
  margin: 0;
}
.control-section.span-4 { grid-column: span 4; }
.control-section.span-5 { grid-column: span 5; }
.control-section.span-6 { grid-column: span 6; }
.control-section.span-7 { grid-column: span 7; }
.control-section.span-8 { grid-column: span 8; }
.control-section.span-12 { grid-column: 1 / -1; }
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.signal-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.66);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.signal-meta,
.switchboard-meta,
.workspace-overview-note,
.momentum-card-meta,
.command-metric-note {
  line-height: 1.45;
}
.signal-card.warning { border-color: rgba(215, 119, 119, 0.34); }
.signal-card.success { border-color: rgba(91, 198, 139, 0.3); }
.signal-card.pending { border-color: rgba(242, 200, 121, 0.34); }
.signal-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.signal-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.signal-meta {
  font-size: 12px;
  color: var(--muted);
}
.agency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.agency-overview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.agency-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.66);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.agency-card.success { border-color: rgba(91, 198, 139, 0.3); }
.agency-card.pending { border-color: rgba(242, 200, 121, 0.34); }
.agency-card.warning { border-color: rgba(215, 119, 119, 0.34); }
.agency-card.neutral { border-color: var(--line); }
.agency-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.agency-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.agency-role {
  font-size: 12px;
  color: var(--muted);
}
.agency-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.agency-state.success { color: #cdf5dd; border-color: rgba(91, 198, 139, 0.35); }
.agency-state.pending { color: #f8e7bf; border-color: rgba(242, 200, 121, 0.35); }
.agency-state.warning { color: #ffd0d0; border-color: rgba(215, 119, 119, 0.35); }
.agency-state.neutral { color: var(--muted); border-color: var(--line); }
.agency-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.agency-metric {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.5);
}
.agency-metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.agency-metric-value {
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  font-weight: 800;
  word-break: break-word;
}
.agency-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agency-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.agency-queue-section {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.42);
}
.agency-queue-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.agency-queue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.agency-queue-item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(135, 163, 191, 0.14);
  background: rgba(7, 16, 28, 0.58);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}
.agency-recent-section {
  background: rgba(8, 18, 31, 0.32);
}
.agency-queue-item.recent {
  color: var(--muted);
  background: rgba(7, 16, 28, 0.42);
}
@media (max-width: 920px) {
  .agency-secondary-grid {
    grid-template-columns: 1fr;
  }
}
.agency-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.agency-detail-list li {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.48);
}
.agency-detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.agency-detail-value {
  font-size: 12px;
  color: var(--text);
}
.agency-drill {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.4);
}
.agency-drill summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}
.agency-drill summary::-webkit-details-marker {
  display: none;
}
.agency-drill[open] summary {
  color: var(--text);
}
.operational-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}
.operational-status-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.62);
  box-shadow: var(--shadow-md);
}
.operational-status-card.success { border-color: rgba(91, 198, 139, 0.3); }
.operational-status-card.pending { border-color: rgba(242, 200, 121, 0.34); }
.operational-status-card.warning { border-color: rgba(215, 119, 119, 0.34); }
.operational-status-card.neutral { border-color: var(--line); }
.operational-status-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.operational-status-value {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}
.operational-status-value.is-text {
  font-size: 16px;
  line-height: 1.2;
  text-transform: capitalize;
}
.operational-status-note {
  font-size: 11px;
  color: var(--muted);
}
.momentum-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.momentum-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.58);
}
.momentum-card.success { border-color: rgba(91, 198, 139, 0.3); }
.momentum-card.pending { border-color: rgba(242, 200, 121, 0.34); }
.momentum-card.neutral { border-color: var(--line); }
.momentum-card-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.momentum-card-value {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
}
.momentum-card-meta {
  font-size: 11px;
  color: var(--muted);
}
.priority-action-section {
  position: relative;
  overflow: hidden;
}
.priority-action-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(125, 211, 199, 0.12), transparent 72%);
  pointer-events: none;
}
.priority-action-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.priority-action-head h4 {
  margin: 2px 0 0;
}
.priority-action-head .muted {
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.control-section > p.muted {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.priority-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.priority-action-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 22, 35, 0.92), rgba(8, 18, 31, 0.9));
  box-shadow: var(--shadow-md);
}
.priority-action-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: rgba(135, 163, 191, 0.26);
}
.priority-action-card.pending {
  border-color: rgba(242, 200, 121, 0.34);
}
.priority-action-card.pending::before {
  background: rgba(242, 200, 121, 0.8);
}
.priority-action-card.warning {
  border-color: rgba(215, 119, 119, 0.34);
}
.priority-action-card.warning::before {
  background: rgba(215, 119, 119, 0.78);
}
.priority-action-card.success {
  border-color: rgba(91, 198, 139, 0.3);
}
.priority-action-card.success::before {
  background: rgba(91, 198, 139, 0.78);
}
.priority-action-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.priority-action-rank {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.priority-action-title {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
}
.priority-action-detail {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}
.priority-action-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.priority-action-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(135, 163, 191, 0.18);
  background: rgba(8, 18, 31, 0.5);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.priority-action-why {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(135, 163, 191, 0.14);
  background: rgba(8, 18, 31, 0.42);
}
.priority-action-why strong {
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.priority-action-why span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.priority-action-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.priority-action-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.priority-action-actions .ghost {
  min-height: 34px;
}
.switchboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.switchboard-actions .ghost {
  min-height: 32px;
}
.control-callout {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.56);
}
.control-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.control-list li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.5);
}
.control-list strong {
  color: var(--text);
}
.workspace-overview-shell {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(125, 211, 199, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(17, 31, 49, 0.96), rgba(12, 22, 35, 0.96));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.workspace-overview-head {
  display: grid;
  gap: 6px;
}
.workspace-overview-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  color: var(--text);
}
.workspace-overview-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.workspace-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.workspace-overview-stat {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.56);
}
.workspace-overview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.workspace-overview-value {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}
.workspace-overview-note {
  font-size: 12px;
  color: var(--muted);
}
.workspace-overview-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.workspace-control-bar {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.44);
}
.workspace-mini-grid,
.workspace-explorer-grid,
.workspace-comms-grid {
  align-items: start;
}
.workspace-mini-panel,
.workspace-explorer-panel,
.workspace-comms-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.34);
  min-height: 100%;
}
.workspace-mini-panel .list-plain,
.workspace-explorer-panel .list-plain,
.workspace-comms-panel .list-plain {
  gap: 8px;
}
.workspace-mini-panel > .eyebrow,
.workspace-explorer-panel > .eyebrow,
.workspace-comms-panel > .eyebrow {
  margin: 0;
}
.workspace-meta-row {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(135, 163, 191, 0.14);
  background: rgba(7, 16, 28, 0.48);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.workspace-action-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.workspace-action-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 34, 55, 0.98), rgba(12, 24, 39, 0.96));
}
.workspace-action-card.success {
  border-color: rgba(91, 198, 139, 0.3);
}
.workspace-action-card.pending {
  border-color: rgba(242, 200, 121, 0.34);
}
.workspace-action-card.warning {
  border-color: rgba(215, 119, 119, 0.34);
}
.workspace-action-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.workspace-action-detail {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.workspace-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.workspace-action-buttons .ghost {
  min-height: 32px;
}
.workspace-context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.workspace-context-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(135, 163, 191, 0.18);
  background: rgba(8, 18, 31, 0.5);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.workspace-why-panel {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(135, 163, 191, 0.14);
  background: rgba(8, 18, 31, 0.42);
}
.workspace-why-panel strong {
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.workspace-why-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 960px) {
  .priority-action-head {
    align-items: start;
    flex-direction: column;
  }
}
.workspace-required-card,
.workspace-manifest-card,
.workspace-device-action-card {
  background:
    linear-gradient(180deg, rgba(17, 31, 49, 0.98), rgba(12, 23, 37, 0.96));
}
.workspace-device-action-card.ok {
  border-color: rgba(91, 198, 139, 0.3);
}
.workspace-device-action-card.warning {
  border-color: rgba(242, 200, 121, 0.34);
}
.workspace-device-action-card.missing {
  border-color: rgba(215, 119, 119, 0.34);
}
#workspaceDeviceSignal {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.44);
}
.workspace-tree-banner {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.56);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.workspace-tree-banner strong {
  color: var(--text);
  font-size: 14px;
}
.workspace-tree-file {
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 12px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.workspace-tree-file:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}
.workspace-tree-file > span:first-child {
  font-weight: 700;
  color: var(--text);
}
.workspace-tree-file-meta {
  max-width: 48%;
  text-align: right;
}
.switchboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.switchboard-lane {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.62);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.switchboard-lane.success { border-color: rgba(91, 198, 139, 0.3); }
.switchboard-lane.pending { border-color: rgba(242, 200, 121, 0.34); }
.switchboard-lane.warning { border-color: rgba(215, 119, 119, 0.34); }
.switchboard-lane.neutral { border-color: var(--line); }
.switchboard-lane::after,
.agency-card::after,
.signal-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(125, 211, 199, 0), rgba(125, 211, 199, 0.05));
  pointer-events: none;
}
.switchboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.switchboard-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.switchboard-count {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}
.switchboard-route {
  font-size: 12px;
  color: var(--muted);
}
.switchboard-meta {
  font-size: 12px;
  color: var(--muted);
}
.switchboard-detail-list {
  display: grid;
  gap: 5px;
}
.switchboard-detail-item {
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(135, 163, 191, 0.14);
  background: rgba(7, 16, 28, 0.52);
  color: var(--text);
  font-size: 11px;
  line-height: 1.3;
}
.switchboard-detail-item:nth-child(n+4) {
  display: none;
}
.command-rail-card {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(125, 211, 199, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(17, 31, 49, 0.98), rgba(12, 22, 35, 0.98));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.command-rail-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 36px rgba(5, 13, 26, 0.32);
}
.command-rail-head {
  display: grid;
  gap: 6px;
}
.command-rail-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  color: var(--text);
}
.command-rail-subtitle {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.command-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.command-rail-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.54);
  position: relative;
  overflow: hidden;
}
.command-rail-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(125, 211, 199, 0.18), rgba(125, 211, 199, 0.62));
}
.command-rail-item:first-child {
  background:
    radial-gradient(circle at top right, rgba(125, 211, 199, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(16, 31, 49, 0.92), rgba(10, 22, 35, 0.92));
  border-color: rgba(125, 211, 199, 0.24);
}
.command-rail-item strong {
  color: var(--text);
  padding-left: 8px;
}
.command-rail-item .muted {
  padding-left: 8px;
  font-size: 11px;
  line-height: 1.4;
}
.agency-queue-list li:nth-child(n+4) {
  display: none;
}
.command-rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.command-rail-action-group {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}
.command-rail-action-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.command-rail-actions.secondary {
  opacity: 0.92;
}
.command-rail-actions .ghost {
  flex: 1 1 180px;
  justify-content: center;
}
.ghost.action-strong {
  border-color: rgba(125, 211, 199, 0.38);
  background: linear-gradient(135deg, rgba(45, 140, 132, 0.28), rgba(125, 211, 199, 0.18));
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 20px rgba(5, 13, 26, 0.18);
}
.ghost.action-strong:hover {
  background: linear-gradient(135deg, rgba(45, 140, 132, 0.38), rgba(125, 211, 199, 0.28));
}
.command-rail-head {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(135, 163, 191, 0.16);
}
.command-rail-head .eyebrow {
  margin-bottom: 2px;
}
.command-rail-card .workspace-badge-row {
  gap: 6px;
}
.command-rail-card .workspace-badge {
  background: rgba(8, 18, 31, 0.58);
}
.notification-card,
.workspace-thread-card,
.workspace-thread-message,
.workspace-alert-card,
.workspace-task-suggestion,
.workspace-decision-card,
.query-result-card {
  border-radius: 16px;
}
.notification-card-main {
  display: grid;
  gap: 10px;
}
.notification-card-main > div,
#emailList .card-head > div,
#calendarList .card-head > div {
  display: grid;
  gap: 10px;
}
.notification-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notification-section-label.pending {
  color: #f2c879;
}
.notification-section-label.neutral {
  color: var(--muted);
}
.queue-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.queue-section-label.pending {
  color: #f2c879;
}
.queue-section-label.success {
  color: #83d5ac;
}
.queue-section-label.neutral {
  color: var(--muted);
}
.queue-empty-state {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(135, 163, 191, 0.22);
  background: linear-gradient(180deg, rgba(12, 23, 38, 0.88), rgba(9, 18, 30, 0.86));
}
.queue-empty-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.card-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-quick-actions .ghost {
  min-height: 32px;
}
.detail-insight-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.detail-insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-insight-actions .ghost {
  min-height: 32px;
}
.detail-control-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.4);
}
.detail-control-strip .ghost {
  min-height: 32px;
}
.quick-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}
.quick-filter-strip .ghost {
  min-height: 32px;
}
.quick-filter-strip .ghost.is-active {
  border-color: rgba(125, 211, 199, 0.38);
  background: linear-gradient(135deg, rgba(45, 140, 132, 0.28), rgba(125, 211, 199, 0.18));
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 18px rgba(5, 13, 26, 0.16);
}
.notification-card .workspace-why-panel,
#emailList .workspace-why-panel,
#calendarList .workspace-why-panel {
  background: rgba(8, 18, 31, 0.34);
}
#emailDetailInsight .workspace-why-panel,
#calendarDetailInsight .workspace-why-panel {
  background: rgba(8, 18, 31, 0.34);
}
.notification-card .workspace-context-chip,
#emailList .workspace-context-chip,
#calendarList .workspace-context-chip {
  background: rgba(8, 18, 31, 0.42);
}
.workspace-thread-card,
.workspace-decision-card,
.workspace-alert-card,
.workspace-task-suggestion {
  background:
    linear-gradient(180deg, rgba(18, 34, 55, 0.98), rgba(12, 25, 40, 0.96));
}
.workspace-thread-card.active,
.workspace-decision-card.active {
  border-color: var(--line-strong);
  box-shadow: 0 16px 28px rgba(6, 18, 28, 0.28), inset 0 0 0 1px rgba(125, 211, 199, 0.16);
}
.workspace-thread-message {
  background:
    linear-gradient(180deg, rgba(14, 29, 46, 0.98), rgba(11, 23, 36, 0.96));
}
.workspace-thread-message .card-head,
.workspace-alert-card .card-head,
.workspace-task-suggestion .card-head,
.workspace-thread-card .card-head,
.workspace-decision-card .card-head {
  align-items: stretch;
}
.query-handoff-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.query-handoff-copy {
  margin-top: 6px;
}
.query-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.query-result-card .card-head {
  align-items: center;
}
.query-result-score {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.54);
  text-align: center;
  font-weight: 800;
  color: var(--text);
}
.query-result-snippet {
  line-height: 1.55;
}
#workspaceThreadRollupStrip,
#workspaceDecisionSnapshot,
#workspaceTaskDraftPreview,
#workspaceThreadStatus,
#workspaceThreadComposerStatus {
  border-radius: 14px;
}
#workspaceDecisionSnapshot,
#workspaceTaskDraftPreview {
  border: 1px solid var(--line);
  background: rgba(8, 18, 31, 0.46);
  padding: 12px 14px;
}
#workspaceThreadList,
#workspaceThreadMessageList,
#workspaceThreadAlertList,
#workspaceThreadSuggestionList,
#workspaceDecisionList,
#notificationList {
  gap: 10px;
}
body .activity-nav {
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(135, 163, 191, 0.18);
  background:
    linear-gradient(180deg, rgba(13, 25, 40, 0.9), rgba(9, 18, 29, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 28px rgba(5, 13, 26, 0.24);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 14px;
  z-index: 18;
}
body .activity-nav::-webkit-scrollbar {
  height: 8px;
}
body .activity-nav::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 199, 0.18);
  border-radius: 999px;
}
body .tab-button {
  position: relative;
  border-radius: 12px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
body .tab-button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 211, 199, 0), rgba(125, 211, 199, 0.75), rgba(125, 211, 199, 0));
  opacity: 0;
  transition: opacity 0.16s ease;
}
body .tab-button:hover::after,
body .tab-button.active::after {
  opacity: 1;
}
body .tab-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(125, 211, 199, 0.14), 0 12px 24px rgba(6, 20, 30, 0.2);
}
body .tab-button.active {
  box-shadow: 0 12px 24px rgba(6, 20, 30, 0.28);
}
.hero,
.grid,
.command-center-hero,
.operational-status-strip,
.momentum-strip,
.command-grid,
.workspace-overview-shell,
.workspace-tree-banner,
.workspace-right,
.workspace-nav,
.switchboard-grid,
.agency-grid {
  scroll-margin-top: 88px;
}
.command-center-copy,
.command-metric-grid,
.signal-grid,
.switchboard-grid,
.agency-grid,
.operational-status-strip,
.momentum-strip {
  animation: surface-rise 0.28s ease;
}
.workspace-overview-shell,
.workspace-tree-banner,
.command-rail-card {
  animation: surface-rise 0.32s ease;
}
.control-section > .muted,
.control-section > p.muted {
  max-width: 78ch;
}
.command-grid > .control-section {
  min-height: 100%;
}
.notification-card,
.workspace-thread-card,
.workspace-thread-message,
.workspace-alert-card,
.workspace-task-suggestion,
.workspace-decision-card,
.query-result-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.notification-card:hover,
.workspace-thread-card:hover,
.workspace-thread-message:hover,
.workspace-alert-card:hover,
.workspace-task-suggestion:hover,
.workspace-decision-card:hover,
.query-result-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 30px rgba(5, 13, 26, 0.24);
}
body .tab-button.active {
  box-shadow: 0 12px 24px rgba(6, 20, 30, 0.28);
}
.command-center-hero,
.control-section,
.signal-card,
.agency-card,
.workspace-overview-shell,
.workspace-tree-banner,
.switchboard-lane,
.command-rail-card,
.card {
  animation: surface-rise 0.28s ease;
}
@keyframes surface-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1180px) {
  .command-center-hero {
    grid-template-columns: 1fr;
  }
  .momentum-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .control-section.span-4,
  .control-section.span-5,
  .control-section.span-6,
  .control-section.span-7,
  .control-section.span-8,
  .control-section.span-12 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .momentum-strip {
    grid-template-columns: 1fr;
  }
}
