:root {
  color-scheme: dark;
  --bg: #060816;
  --bg-2: #0a1020;
  --surface: rgba(12, 18, 36, 0.78);
  --surface-2: rgba(17, 26, 50, 0.82);
  --surface-3: rgba(24, 35, 67, 0.88);
  --line: rgba(110, 137, 221, 0.16);
  --line-2: rgba(126, 156, 255, 0.24);
  --text: #f7f9ff;
  --muted: #8e9bc7;
  --soft: #d7e2ff;
  --accent: #7c5cff;
  --accent-soft: #46d7ff;
  --danger: #ff5f8f;
  --warn: #ffc36b;
  --success: #29f0b4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(86, 64, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(64, 214, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #050713 0%, #0a1020 52%, #050814 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.gate-locked .terminal-shell {
  filter: blur(10px) saturate(0.8);
  pointer-events: none;
  user-select: none;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(12px);
}

.access-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(126, 156, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 24, 48, 0.95), rgba(8, 13, 26, 0.92));
  box-shadow: 0 24px 80px rgba(3, 8, 20, 0.45);
}

.access-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(124, 92, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 92, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
  pointer-events: none;
  opacity: 0.42;
}

.page-aurora,
.page-grid {
  position: fixed;
  pointer-events: none;
}

.page-aurora {
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.32;
}

.page-aurora-a {
  top: -10vw;
  right: -6vw;
  background: rgba(124, 92, 255, 0.42);
}

.page-aurora-b {
  left: -8vw;
  bottom: 8vh;
  background: rgba(70, 215, 255, 0.2);
}

.page-grid {
  inset: 0;
  background: radial-gradient(circle at center, rgba(124, 92, 255, 0.08), transparent 46%);
}

button,
input,
select {
  font: inherit;
}

button {
  appearance: none;
}

.terminal-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.terminal-header {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 15, 31, 0.92), rgba(8, 12, 24, 0.82));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.36), rgba(70, 215, 255, 0.18));
  border: 1px solid rgba(137, 164, 255, 0.32);
  color: #ffffff;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
  box-shadow: 0 0 30px rgba(124, 92, 255, 0.3);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hero-kicker {
  margin-bottom: 6px;
  color: #7fdcff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-banner {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(126, 156, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(70, 215, 255, 0.12), transparent 24%),
    radial-gradient(circle at left center, rgba(124, 92, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(16, 24, 48, 0.88), rgba(10, 15, 30, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px rgba(8, 11, 28, 0.24);
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(70, 215, 255, 0.22);
  border-radius: 999px;
  background: rgba(9, 18, 34, 0.76);
  color: #c9fbff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-live-badge.is-locked {
  border-color: rgba(255, 95, 143, 0.28);
  color: #ffc3d5;
}

.hero-live-badge.is-waiting {
  border-color: rgba(255, 195, 107, 0.28);
  color: #ffe0a8;
}

.hero-live-badge.is-paper,
.hero-live-badge.is-replay {
  border-color: rgba(126, 156, 255, 0.22);
  color: #c9dcff;
}

.hero-live-badge.is-live {
  border-color: rgba(41, 240, 180, 0.32);
  color: #bfffe8;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(41, 240, 180, 0.7);
}

.hero-live-badge.is-locked .hero-live-dot {
  background: var(--danger);
  box-shadow: 0 0 18px rgba(255, 95, 143, 0.55);
}

.hero-live-badge.is-waiting .hero-live-dot {
  background: var(--warn);
  box-shadow: 0 0 18px rgba(255, 195, 107, 0.5);
}

.hero-live-badge.is-paper .hero-live-dot,
.hero-live-badge.is-replay .hero-live-dot {
  background: var(--accent-soft);
  box-shadow: 0 0 18px rgba(70, 215, 255, 0.5);
}

.hero-callout {
  min-width: 280px;
  max-width: 320px;
  display: grid;
  gap: 8px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 228px;
}

.hero-ambient-backdrop {
  position: absolute;
  inset: 72px 18px 18px 18px;
  border-radius: 24px;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 32%, rgba(70, 215, 255, 0.12), transparent 24%),
    radial-gradient(circle at 78% 54%, rgba(51, 214, 184, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(10, 16, 31, 0.04), rgba(10, 16, 31, 0.22));
  border: 1px solid rgba(90, 169, 255, 0.08);
}

.hero-ambient-column {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  color: rgba(194, 226, 255, 0.22);
  font-size: clamp(24px, 3.2vw, 56px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-weight: 500;
  white-space: nowrap;
}

.hero-ambient-column span {
  animation: ambientFloat 16s linear infinite;
}

.hero-ambient-column-a { left: 2%; }
.hero-ambient-column-b { left: 34%; }
.hero-ambient-column-c { left: 66%; }

.hero-ambient-column-b span { animation-duration: 20s; }
.hero-ambient-column-c span { animation-duration: 24s; }

.hero-ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(70, 215, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 215, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
}

@keyframes ambientFloat {
  0% { transform: translateY(16px); opacity: 0.12; }
  50% { transform: translateY(-18px); opacity: 0.26; }
  100% { transform: translateY(16px); opacity: 0.12; }
}

.hero-callout-label {
  color: #9bb3ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-subtitle,
.block-subtitle,
.hint-text,
.hint-note,
.field-row span,
.market-chip span,
.subsurface-head,
.section-caption {
  color: var(--muted);
}

.with-top-gap {
  margin-top: 10px;
}

.is-hidden {
  display: none !important;
}

.header-marketbar {
  display: flex;
  gap: 8px;
  overflow: auto;
}

.market-chip {
  min-width: 108px;
  padding: 8px 11px;
  border: 1px solid rgba(120, 143, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 27, 53, 0.9), rgba(10, 16, 31, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.market-chip strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.market-chip-select {
  min-width: 180px;
  display: grid;
  gap: 4px;
}

.market-search {
  width: 100%;
  border: 1px solid rgba(130, 156, 255, 0.18);
  border-radius: 12px;
  background: rgba(7, 12, 26, 0.82);
  color: var(--text);
  padding: 6px 8px;
  outline: none;
}

.market-select {
  width: 100%;
  border: 1px solid rgba(130, 156, 255, 0.18);
  border-radius: 12px;
  background: rgba(7, 12, 26, 0.82);
  color: var(--text);
  padding: 6px 8px;
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.header-input,
.terminal-search,
.field-input {
  width: 100%;
  border: 1px solid rgba(130, 156, 255, 0.18);
  border-radius: 16px;
  background: rgba(7, 12, 26, 0.82);
  color: var(--text);
  padding: 10px 11px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-input {
  width: 148px;
}

.header-button,
.desk-button,
.mini-button,
.filter-chip {
  border: 1px solid rgba(126, 156, 255, 0.18);
  background: rgba(18, 27, 53, 0.7);
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 16px;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button:hover,
label.header-button:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 12px 32px rgba(36, 24, 88, 0.28);
}

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

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 31, 59, 0.88), rgba(13, 19, 39, 0.78));
}

.tool-icon-wrap {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(70, 215, 255, 0.14));
  border: 1px solid rgba(148, 173, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tool-icon {
  width: 14px;
  height: 14px;
}

.tool-text {
  display: grid;
  gap: 1px;
}

.tool-label {
  color: rgba(237, 242, 247, 0.6);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-button.primary,
.desk-button.primary {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.98), rgba(70, 215, 255, 0.82));
  color: #060814;
  border-color: rgba(147, 226, 255, 0.65);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 42px rgba(80, 66, 212, 0.36);
}

.ghost-emphasis {
  background: linear-gradient(135deg, rgba(47, 240, 180, 0.92), rgba(70, 215, 255, 0.76));
  color: #041117;
}

.header-button.secondary,
.desk-button.secondary,
.mini-button,
.filter-chip {
  background: var(--surface-2);
}

.terminal-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 10px;
  min-height: calc(100vh - 82px);
}

.left-rail,
.center-stage,
.right-rail {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.left-rail .surface,
.right-rail .surface {
  background: linear-gradient(180deg, rgba(11, 17, 34, 0.72), rgba(8, 13, 26, 0.68));
}

.surface {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 19, 39, 0.84), rgba(9, 14, 28, 0.82));
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(3, 6, 18, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

.panel-block,
.hero-surface,
.lower-blotter {
  padding: 12px;
}

.block-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.block-head.tight {
  margin-bottom: 10px;
}

.block-title,
.hero-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.module-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #9bb3ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.module-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.7);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(126, 156, 255, 0.18);
  background: rgba(18, 28, 55, 0.72);
  color: #cde0ff;
  white-space: nowrap;
  border-radius: 999px;
}

.login-status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.account-scroll,
.timeline-grid,
.compact-stack {
  overflow: auto;
}

.account-scroll {
  max-height: 280px;
  display: grid;
  gap: 8px;
}

.client-access-stack {
  display: grid;
  gap: 10px;
}

#clientAccessPanel.is-compact .client-access-stack {
  gap: 8px;
}

#clientAccessPanel.is-compact .block-subtitle,
#clientAccessPanel.is-compact .hint-note {
  font-size: 11px;
}

.client-entry-credentials {
  display: grid;
  gap: 10px;
}

.binding-list {
  display: grid;
  gap: 8px;
}

.binding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 156, 255, 0.16);
  border-radius: 16px;
  background: rgba(17, 26, 50, 0.68);
}

.binding-item span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-item,
.stack-card,
.timeline-item,
.summary-card,
.status-box,
.subsurface {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 26, 50, 0.82), rgba(11, 17, 33, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stack-card,
.summary-card,
.status-box,
.account-item,
.timeline-item {
  backdrop-filter: blur(14px);
}

.account-item {
  padding: 12px 12px;
  cursor: pointer;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 28, 55, 0.9), rgba(10, 16, 31, 0.84));
}

.account-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.account-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(126, 156, 255, 0.2);
  background: rgba(10, 16, 31, 0.6);
  color: #dce7ff;
}

.account-badge.is-default {
  border-color: rgba(70, 215, 255, 0.34);
  color: #baf6ff;
}

.account-badge.is-active {
  border-color: rgba(124, 92, 255, 0.4);
  color: #e1d5ff;
}

.account-item.active {
  border-color: rgba(124, 92, 255, 0.66);
  box-shadow: inset 2px 0 0 0 var(--accent), 0 0 0 1px rgba(124, 92, 255, 0.12), 0 0 26px rgba(124, 92, 255, 0.16);
}

.account-item.is-default {
  border-color: rgba(70, 215, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(70, 215, 255, 0.12), 0 0 22px rgba(70, 215, 255, 0.08);
}

.contributor-list {
  max-height: 260px;
}

.contributor-card.is-included {
  border-left: 2px solid var(--success);
}

.contributor-card.is-ignored {
  border-left: 2px solid var(--warn);
}

.contributor-card .section-caption,
.compact-list-card .section-caption {
  line-height: 1.45;
}

.account-item strong,
.stack-card strong,
.timeline-item strong,
.summary-card strong {
  display: block;
  margin-bottom: 4px;
}

.filter-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ops-body,
.ops-panel {
  display: grid;
  gap: 8px;
}

.mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tab {
  border: 1px solid rgba(126, 156, 255, 0.16);
  background: rgba(16, 24, 48, 0.74);
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
}

.mini-tab.active {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.58);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.18), rgba(70, 215, 255, 0.08));
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.08);
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.88), rgba(70, 215, 255, 0.72));
  color: #07101d;
  border-color: rgba(147, 226, 255, 0.6);
  font-weight: 700;
}

.pill.included {
  border-color: rgba(95, 191, 131, 0.4);
  color: var(--success);
}

.pill.ignored {
  border-color: rgba(226, 179, 94, 0.4);
  color: var(--warn);
}

.hero-surface {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.terminal-search {
  max-width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-account-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-account-metric {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 156, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 24, 48, 0.84), rgba(9, 15, 29, 0.78));
}

.hero-account-metric span,
.summary-hero-card span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-account-metric strong {
  font-size: 20px;
  line-height: 1.1;
}

.stat-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 156, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 30, 58, 0.86), rgba(12, 18, 36, 0.82));
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-tile::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 70%);
}

.stat-tile span {
  color: var(--muted);
}

.stat-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.stat-tile.emphasis {
  border-color: rgba(124, 92, 255, 0.4);
}

.stat-tile.warning {
  border-color: rgba(255, 95, 143, 0.34);
}

.hero-main {
  display: grid;
  grid-template-rows: auto minmax(340px, 1fr);
  gap: 10px;
  min-height: 0;
}

.hero-panel-split {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 10px;
}

.subsurface {
  padding: 10px;
  border-radius: 24px;
}

.chart-surface {
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(18, 27, 53, 0.9), rgba(10, 16, 31, 0.84));
  align-content: start;
}

.tape-surface {
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    radial-gradient(circle at top left, rgba(70, 215, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(16, 24, 48, 0.86), rgba(10, 16, 31, 0.82));
}

.status-ribbon-shell {
  display: grid;
  gap: 8px;
}

.status-ribbon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.status-ribbon-caption {
  color: var(--muted);
  font-size: 11px;
}

.status-ribbon-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(6, 12, 24, 0.58);
}

.status-ribbon-box .empty-card {
  width: 100%;
}

.status-pill {
  display: inline-grid;
  gap: 3px;
  min-width: 108px;
  padding: 8px 10px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 16, 31, 0.72);
}

.status-pill span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill strong {
  font-size: 12px;
  line-height: 1.25;
}

.subsurface-head {
  font-size: 12px;
  margin-bottom: 10px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subsurface-body,
.stack-list {
  display: grid;
  gap: 8px;
}

#decisionSnapshot {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  max-height: 312px;
  overflow: auto;
}

#decisionContributors {
  max-height: 312px;
  overflow: auto;
}

.blotter-shell,
.lower-blotter {
  display: grid;
  gap: 10px;
}

.blotter-shell {
  padding: 14px;
  border: 1px solid rgba(126, 156, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 18, 36, 0.8), rgba(9, 14, 28, 0.72));
}

.blotter-head,
.blotter-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blotter-head {
  justify-content: space-between;
}

.inline-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-chip,
.toolbar-button {
  border: 1px solid rgba(126, 156, 255, 0.14);
  background: linear-gradient(180deg, rgba(31, 45, 84, 0.66), rgba(13, 20, 39, 0.6));
  color: var(--soft);
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 999px;
}

.toolbar-chip.active {
  border-color: rgba(124, 92, 255, 0.55);
  color: #f4f3ff;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.28), rgba(70, 215, 255, 0.12));
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.2);
}

.toolbar-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.toolbar-status {
  min-width: 54px;
  text-align: center;
  color: var(--muted);
}

.blotter-tab {
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
}

.blotter-tab.active {
  border-color: var(--accent-soft);
  color: var(--text);
}

.timeline-grid {
  display: grid;
  gap: 10px;
  max-height: 420px;
}

.decision-run-grid {
  max-height: 240px;
}

.decision-selection-hint,
.timeline-context-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 13, 26, 0.46);
  color: var(--muted);
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.overview-strip-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 16px;
  background: rgba(10, 16, 31, 0.72);
}

.overview-strip-item strong {
  font-size: 13px;
}

.overview-strip-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-selection-hint {
  margin-top: -2px;
}

.timeline-context-meta {
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.detail-tabs,
.detail-subtabs {
  padding: 2px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 13, 26, 0.44);
}

.detail-tabs {
  justify-content: space-between;
}

.detail-subtabs {
  margin-bottom: 10px;
}

.decision-detail-panel {
  display: grid;
  gap: 10px;
  min-height: 96px;
}

.tight-blotter-head {
  margin-bottom: 2px;
}

.decision-run-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 28, 55, 0.84), rgba(10, 16, 31, 0.84));
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}

.decision-run-card::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 70%);
}

.decision-run-card .section-caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.decision-run-kicker {
  margin-bottom: 5px;
  color: #8ebeff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.decision-run-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.decision-run-head.compact {
  margin-bottom: 6px;
}

.decision-run-head.compact strong {
  font-size: 12px;
  letter-spacing: 0.03em;
}

.decision-run-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.decision-run-meta.compact {
  margin-bottom: 6px;
}

.compact-caption {
  font-size: 11px;
  line-height: 1.35;
}

.decision-run-selectable {
  cursor: pointer;
}

.decision-run-selectable.active {
  border-color: rgba(124, 92, 255, 0.64);
  box-shadow: inset 2px 0 0 0 var(--accent), 0 0 28px rgba(124, 92, 255, 0.14);
}

.decision-run-detail {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 27, 52, 0.84), rgba(10, 15, 31, 0.82));
  padding: 14px 14px;
  min-height: 90px;
  max-height: 520px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.decision-run-detail-grid {
  display: grid;
  gap: 8px;
}

.decision-run-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(126, 156, 255, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(17, 26, 50, 0.9), rgba(9, 15, 29, 0.84));
}

.decision-run-cockpit-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.decision-run-cockpit-stat {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 12, 26, 0.44);
}

.decision-run-cockpit-stat span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-run-cockpit-stat strong {
  font-size: 18px;
}

.decision-run-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#multiAgentOverviewCards {
  margin-bottom: 10px;
}

#multiAgentOverviewCards .summary-card {
  min-height: 92px;
}

#multiAgentOverviewCards {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.runtime-desk-card {
  position: relative;
  overflow: hidden;
  min-height: 126px !important;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 24, 48, 0.94), rgba(8, 13, 26, 0.92));
}

.runtime-desk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 36%);
  pointer-events: none;
}

.runtime-desk-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, currentColor, transparent 70%);
  opacity: 0.28;
}

.runtime-desk-card strong {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.runtime-desk-kicker {
  margin-bottom: 8px;
  color: #8ebeff;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.runtime-desk-detail {
  min-height: 32px;
  font-size: 12px;
  line-height: 1.45;
}

.runtime-desk-footer {
  margin-top: 8px;
  color: rgba(157, 187, 232, 0.82);
  font-size: 10px;
  line-height: 1.35;
}

.runtime-desk-card.tone-teal {
  color: #7be8ff;
  box-shadow: inset 0 0 0 1px rgba(70, 215, 255, 0.08), 0 0 26px rgba(70, 215, 255, 0.06);
}

.runtime-desk-card.tone-violet {
  color: #b79bff;
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.08), 0 0 26px rgba(124, 92, 255, 0.06);
}

.runtime-desk-card.tone-cyan {
  color: #8ad4ff;
  box-shadow: inset 0 0 0 1px rgba(98, 174, 255, 0.08), 0 0 26px rgba(98, 174, 255, 0.06);
}

.runtime-desk-card.tone-emerald {
  color: #62efc4;
  box-shadow: inset 0 0 0 1px rgba(51, 214, 184, 0.08), 0 0 26px rgba(51, 214, 184, 0.06);
}

.runtime-desk-card.tone-amber {
  color: #ffd07d;
  box-shadow: inset 0 0 0 1px rgba(255, 192, 96, 0.08), 0 0 26px rgba(255, 192, 96, 0.06);
}

.runtime-desk-card.tone-rose {
  color: #ff8fa8;
  box-shadow: inset 0 0 0 1px rgba(255, 95, 143, 0.08), 0 0 26px rgba(255, 95, 143, 0.06);
}

.decision-run-summary-grid .summary-card {
  min-height: 92px;
}

.instrument-selector-shell {
  display: grid;
  gap: 10px;
}

.instrument-picker-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.instrument-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instrument-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 255, 0.22);
  background: rgba(10, 16, 31, 0.78);
  color: #dce7ff;
  cursor: pointer;
}

.instrument-chip strong {
  margin: 0;
  color: #9bb3ff;
}

.instrument-chip:hover {
  border-color: rgba(70, 215, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(70, 215, 255, 0.08);
}

.decision-run-stage-shell {
  display: grid;
  gap: 8px;
}

.decision-run-stage-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.decision-run-stage {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 23, 45, 0.92), rgba(10, 16, 31, 0.84));
  text-align: left;
  color: inherit;
  min-height: 72px;
}

.decision-run-stage.is-clickable {
  cursor: pointer;
}

.decision-run-stage.is-selected {
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.55), 0 0 24px rgba(124, 92, 255, 0.14);
  background: rgba(22, 32, 63, 0.9);
}

.decision-run-stage:disabled {
  cursor: default;
}

.decision-run-stage:focus,
.decision-run-stage:focus-visible,
.decision-run-section:focus,
.decision-run-section:focus-visible,
.decision-run-summary-section:focus,
.decision-run-summary-section:focus-visible {
  outline: 2px solid rgba(255, 127, 50, 0.7);
  outline-offset: 2px;
}

.decision-run-stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
}

.decision-run-stage-label {
  font-weight: 600;
}

.decision-run-stage-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.decision-run-stage.is-done {
  border-color: rgba(95, 191, 131, 0.35);
}

.decision-run-stage.is-done .decision-run-stage-dot {
  background: var(--success);
}

.decision-run-stage.is-active {
  border-color: rgba(255, 127, 50, 0.35);
}

.decision-run-stage.is-active .decision-run-stage-dot {
  background: var(--accent);
}

.decision-run-stage.is-blocked {
  border-color: rgba(255, 106, 120, 0.35);
}

.decision-run-stage.is-blocked .decision-run-stage-dot {
  background: var(--danger);
}

.decision-run-stage.is-pending .decision-run-stage-dot {
  background: var(--line-2);
}

.decision-run-stage-system {
  display: flex;
  justify-content: flex-end;
}

.decision-run-summary-section {
  display: grid;
}

.decision-run-summary-section.is-selected,
.decision-run-section.is-selected {
  border-color: rgba(255, 127, 50, 0.45);
  box-shadow: inset 2px 0 0 0 var(--accent);
}

.decision-run-sections {
  display: grid;
  gap: 10px;
}

.decision-detail-panel .timeline-grid {
  max-height: 520px;
}

.decision-run-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(14, 21, 42, 0.84);
  overflow: hidden;
}

.decision-run-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.88);
  cursor: pointer;
  list-style: none;
}

.decision-run-section-head::-webkit-details-marker {
  display: none;
}

.decision-run-section-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.decision-run-event-list {
  display: grid;
}

.decision-run-event-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-top: 1px solid rgba(47, 58, 73, 0.55);
}

.decision-run-event-row:first-child {
  border-top: 0;
}

.decision-run-event-row.included-row {
  border-left: 2px solid var(--success);
}

.decision-run-event-row.ignored-row {
  border-left: 2px solid var(--warn);
}

.decision-run-event-title,
.decision-run-event-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.decision-run-event-rail {
  align-content: flex-start;
}

.decision-run-event-main {
  display: grid;
  gap: 6px;
}

.decision-run-event-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.timeline-item {
  position: relative;
  display: block;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 24, 48, 0.82), rgba(11, 17, 33, 0.74));
}

.timeline-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px 10px 18px;
  cursor: pointer;
}

.timeline-summary::-webkit-details-marker {
  display: none;
}

.timeline-detail {
  padding: 0 12px 12px 18px;
}

.timeline-expand-tag {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item[open] .timeline-expand-tag,
.decision-run-section[open] .timeline-expand-tag {
  color: var(--accent-soft);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--accent);
  border-radius: 999px;
}

.timeline-item.fill::before {
  background: var(--success);
}

.timeline-item.risk::before,
.timeline-item.rejected::before {
  background: var(--warn);
}

.timeline-meta,
.timeline-rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-rail {
  align-content: flex-start;
}

.timeline-main {
  display: grid;
  gap: 6px;
}

.timeline-label {
  color: var(--muted);
}

.pill {
  padding: 2px 6px;
  background: rgba(28, 44, 78, 0.78);
  color: #dce7ff;
  border: 1px solid rgba(126, 156, 255, 0.18);
  border-radius: 999px;
}

.pill.fill {
  background: rgba(95, 191, 131, 0.12);
  color: #9ce1b6;
}

.pill.risk,
.pill.reject {
  background: rgba(226, 179, 94, 0.12);
  color: #f3d28d;
}

.section-caption {
  font-size: 12px;
  line-height: 1.45;
}

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

.form-stage-tabs {
  margin-bottom: 6px;
}

.vault-connect-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.vault-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(126, 156, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 16, 31, 0.68);
  color: #cfe0ff;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vault-chip.is-live {
  border-color: rgba(41, 240, 180, 0.3);
  color: #b5ffe6;
  box-shadow: 0 0 24px rgba(41, 240, 180, 0.12);
}

.vault-chip.is-waiting {
  border-color: rgba(255, 195, 107, 0.28);
  color: #ffe0a8;
}

.mini-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
}

.mini-tab-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.form-stage-panel {
  display: grid;
  gap: 10px;
}

.stage-summary-card,
.form-inline-summary {
  display: grid;
  gap: 8px;
  padding: 12px 12px;
  border: 1px solid rgba(126, 156, 255, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(70, 215, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(21, 31, 60, 0.92), rgba(11, 17, 34, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.compact-actions {
  margin-top: 0;
}

.slim-button {
  min-height: 38px;
}

.form-stack {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  gap: 5px;
}

.execution-form-block .field-input {
  min-height: 44px;
  background: rgba(7, 12, 26, 0.9);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.hint-note,
.hint-text {
  line-height: 1.5;
}

.hint-text.error-text {
  color: #ffb4be;
}

.hint-text.success-text {
  color: #ffc18f;
}

.summary-grid {
  display: grid;
  gap: 8px;
}

.summary-hero-card {
  min-height: 104px;
  gap: 6px;
  background:
    radial-gradient(circle at top right, rgba(70, 215, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(22, 31, 59, 0.9), rgba(10, 16, 31, 0.84));
}

.summary-hero-card strong {
  font-size: 24px;
  line-height: 1.05;
}

.pnl-trend-card {
  gap: 10px;
}

.pnl-trend-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.pnl-trend-value.is-positive,
.pnl-trend-line.is-positive {
  color: var(--success);
  stroke: var(--success);
}

.pnl-trend-value.is-negative,
.pnl-trend-line.is-negative {
  color: var(--danger);
  stroke: var(--danger);
}

.pnl-trend-value.is-neutral,
.pnl-trend-line.is-neutral {
  color: var(--soft);
  stroke: var(--accent-soft);
}

.pnl-trend-chart {
  width: 100%;
  height: 96px;
}

.pnl-trend-grid {
  fill: none;
  stroke: rgba(126, 156, 255, 0.18);
  stroke-width: 1.2;
}

.pnl-trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.right-tabs {
  margin-bottom: 10px;
}

.summary-card,
.stack-card,
.status-box {
  padding: 10px 11px;
  border-radius: 18px;
}

.execution-form-block,
.watchlist-block,
.ops-block {
  box-shadow: 0 18px 40px rgba(4, 8, 22, 0.2);
}

.customer-action-panel,
.customer-action-grid,
.customer-action-card,
.customer-ops-log {
  display: grid;
  gap: 10px;
}

.customer-action-launcher-body {
  display: grid;
  gap: 10px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.76);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(126, 156, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(13, 19, 39, 0.96), rgba(8, 13, 26, 0.94));
  box-shadow: 0 24px 80px rgba(2, 6, 18, 0.48);
}

.customer-action-modal-card {
  display: grid;
  gap: 12px;
}

.strategy-brief-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(126, 156, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 14, 27, 0.72);
}

.strategy-brief-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strategy-runtime-grid,
.strategy-param-grid {
  display: grid;
  gap: 8px;
}

.strategy-runtime-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strategy-param-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-runtime-card,
.strategy-param-item {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 14px;
  background: rgba(11, 18, 34, 0.72);
}

.strategy-runtime-card span,
.strategy-param-item span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-runtime-card strong,
.strategy-param-item strong {
  font-size: 12px;
  line-height: 1.35;
}

.strategy-agent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-agent-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(70, 215, 255, 0.16);
  background: rgba(10, 16, 31, 0.78);
  color: #cfe8ff;
  font-size: 11px;
}

.customer-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-action-card {
  padding: 12px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 18px;
  background: rgba(9, 15, 29, 0.58);
}

.customer-log-card {
  margin-top: 10px;
}

.compact-form-stack {
  gap: 10px;
}

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

.order-mini-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-ops-log {
  max-height: 280px;
  overflow: auto;
}

.customer-ops-log-item {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 16px;
  background: rgba(10, 16, 31, 0.72);
}

.customer-ops-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-ops-log-top span {
  color: var(--muted);
  font-size: 11px;
}

.customer-ops-log-item.tone-success {
  border-color: rgba(41, 240, 180, 0.24);
}

.customer-ops-log-item.tone-error {
  border-color: rgba(255, 95, 143, 0.24);
}

.customer-ops-log-item.tone-info {
  border-color: rgba(70, 215, 255, 0.18);
}

@media (max-width: 1200px) {
  .terminal-grid {
    grid-template-columns: 280px minmax(0, 1fr) 340px;
  }

  .hero-account-strip,
  .strategy-param-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .terminal-grid {
    grid-template-columns: 1fr;
  }

  .strategy-runtime-grid,
  .strategy-param-grid,
  .customer-action-grid,
  .hero-account-strip,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .modal-card {
    width: min(100vw - 20px, 100%);
    max-height: calc(100vh - 20px);
    padding: 12px;
  }
}

.watchlist-block {
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(12, 18, 36, 0.78), rgba(8, 13, 26, 0.7));
}

.execution-form-block {
  background:
    radial-gradient(circle at top right, rgba(70, 215, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(12, 18, 36, 0.8), rgba(8, 13, 26, 0.72));
}

.compact-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 26, 50, 0.84), rgba(11, 17, 34, 0.78));
}

.compact-card-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 156, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(70, 215, 255, 0.12));
  color: #f3f6ff;
  font-weight: 700;
}

.compact-card-label {
  color: var(--muted);
  margin-bottom: 3px;
}

.compact-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.market-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-tile-grid-secondary {
  margin-top: 12px;
}

.market-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(126, 156, 255, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(70, 215, 255, 0.14), transparent 24%),
    radial-gradient(circle at left top, rgba(124, 92, 255, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(14, 22, 44, 0.96), rgba(8, 13, 26, 0.88));
  box-shadow: 0 24px 60px rgba(3, 7, 19, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.market-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: end;
}

.market-hero-label {
  color: #7fdcff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.market-hero-instrument {
  margin-top: 8px;
  color: #d6e3ff;
  font-size: 16px;
  font-weight: 600;
}

.market-hero-price {
  margin-top: 10px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.market-hero-side {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 255, 0.18);
  background: rgba(8, 13, 26, 0.46);
  color: #dce7ff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-hero-side.is-buy {
  color: #aef5d7;
  border-color: rgba(41, 240, 180, 0.28);
}

.market-hero-side.is-sell {
  color: #ffc0d3;
  border-color: rgba(255, 95, 143, 0.28);
}

.market-hero-chart {
  width: 100%;
  height: 160px;
}

.market-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-hero-stat {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 13, 26, 0.46);
}

.market-hero-stat span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-hero-stat strong {
  font-size: 18px;
  color: #edf5ff;
}

.market-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(126, 156, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(16, 24, 48, 0.92), rgba(8, 13, 26, 0.82));
  box-shadow: 0 18px 44px rgba(4, 8, 22, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.market-tile::after {
  content: "";
  position: absolute;
  inset: auto -20px -28px auto;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(70, 215, 255, 0.18), transparent 72%);
}

.market-tile-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
}

.market-tile-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(126, 156, 255, 0.18);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(70, 215, 255, 0.16));
  color: #f7fbff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.market-tile-label {
  color: #9cb0e8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-tile-primary {
  margin-top: 5px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f8fbff;
}

.market-sparkline {
  width: 100%;
  height: 40px;
}

.market-sparkline-glow {
  fill: none;
  stroke: rgba(70, 215, 255, 0.08);
  stroke-width: 10;
  stroke-linecap: round;
}

.market-tile-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-tile-meta {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 156, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 12, 26, 0.42);
}

.market-tile-meta span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-tile-meta strong {
  font-size: 15px;
  color: #eaf1ff;
}

.market-tile-book .market-tile-primary,
.market-tile-trade .market-tile-primary {
  color: #ffffff;
}

.market-tile-mark .market-tile-primary {
  color: #b9eaff;
}

.market-tile-funding .market-tile-primary {
  color: #9ff8cf;
}

.compact-list-card {
  gap: 4px;
}

.lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.empty-card {
  padding: 18px 12px;
  border: 1px dashed rgba(126, 156, 255, 0.2);
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.64);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1500px) {
  .terminal-grid {
    grid-template-columns: 280px minmax(0, 1fr) 320px;
  }
}

@media (max-width: 1280px) {
  .terminal-header {
    grid-template-columns: 1fr;
  }

  .terminal-grid {
    grid-template-columns: 1fr;
  }

  .left-rail,
  .right-rail,
  .center-stage {
    grid-template-columns: 1fr;
  }

  .hero-panel-split,
  .customer-action-grid,
  .market-hero-top,
  .market-hero-stats,
  .market-tile-grid,
  .decision-run-cockpit,
  .lower-grid,
  .decision-run-stage-bar,
  .decision-run-summary-grid,
  .overview-strip {
    grid-template-columns: 1fr;
  }

  .inline-toolbar,
  .blotter-head,
  .decision-selection-hint,
  .timeline-context-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .terminal-shell {
    padding: 6px;
  }

  .header-actions,
  .hero-topline,
  .login-status-row,
  .hero-title-row,
  .decision-run-event-row,
  .timeline-item,
  .timeline-summary,
  .field-split,
  .action-grid,
  .hero-metrics,
  .filter-strip,
  .customer-action-grid,
  .order-mini-split {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-callout {
    min-width: 0;
    max-width: none;
  }

  .hero-ambient-backdrop {
    inset: 86px 10px 10px 10px;
  }

  .hero-ambient-column {
    font-size: 24px;
    gap: 12px;
  }

  .vault-connect-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-marketbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .terminal-search,
  .header-input {
    max-width: none;
    width: 100%;
  }
}
