:root {
  --bg: #08111d;
  --panel: #111c2b;
  --panel-soft: #172538;
  --ink: #f5f8fc;
  --muted: #8ea1b8;
  --line: #22344b;
  --blue: #2b72d6;
  --blue-deep: #3d8cff;
  --cyan: #2fd4c6;
  --green: #38d696;
  --amber: #d49435;
  --gold: #d6b63c;
  --red: #ff5a69;
  --magenta: #e64c93;
  --violet: #8a7cff;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(47, 212, 198, 0.12), transparent 30%),
    radial-gradient(circle at 8% 20%, rgba(61, 140, 255, 0.14), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 17, 29, 0.72);
  color: var(--ink);
  font: inherit;
}

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 74% 20%, rgba(47, 212, 198, 0.16), transparent 32%),
    radial-gradient(circle at 20% 70%, rgba(61, 140, 255, 0.16), transparent 30%),
    #08111d;
}

.entry-screen[hidden] {
  display: none;
}

.screen-enter {
  animation: screenIn 0.32s ease-out both;
}

.screen-exit {
  animation: screenOut 0.26s ease-in both;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes screenOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

.entry-card,
.selector-shell {
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid rgba(47, 212, 198, 0.18);
  border-radius: 10px;
  background: rgba(17, 28, 43, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.entry-card img,
.selector-head img {
  width: 118px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #ffffff;
}

.entry-card label {
  display: block;
  margin-top: 16px;
  color: #dce8f6;
  font-size: 13px;
  font-weight: 800;
}

.wide-button {
  width: 100%;
  margin-top: 18px;
}

.entry-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.selector-shell {
  width: min(100%, 980px);
}

.selector-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

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

.product-choice {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 82% 10%, rgba(47, 212, 198, 0.14), transparent 28%),
    rgba(8, 17, 29, 0.62);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-choice:hover {
  border-color: rgba(47, 212, 198, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(47, 212, 198, 0.1);
}

.product-choice span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-choice strong {
  display: block;
  margin-top: 12px;
  font-size: 25px;
}

.product-choice p {
  color: #c9d8ec;
}

.product-choice em {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  min-width: 0;
  height: 100vh;
  padding: 22px 18px;
  background: rgba(12, 22, 35, 0.9);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-lockup,
.sidebar-status,
.nav-item,
.topbar,
.hero-band,
.metric-card,
.data-card,
.list-row,
.agent-row,
.timeline-row,
.drawer-task,
.client-row {
  border: 1px solid var(--line);
  background: var(--panel);
}

.brand-lockup {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(23, 37, 56, 0.96), rgba(12, 22, 35, 0.96));
}

.brand-logo {
  width: 86px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
  padding: 4px 6px;
  border-radius: 6px;
  background: #ffffff;
}

.topbar-logo {
  width: 86px;
  height: 38px;
  object-fit: contain;
  object-position: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: #ffffff;
}

.brand-lockup strong,
.sidebar-status strong {
  display: block;
  font-size: 15px;
}

.brand-lockup span,
.sidebar-status span,
.muted,
.client-meta,
.row-meta {
  color: var(--muted);
  font-size: 13px;
}

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

.nav-item {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(47, 212, 198, 0.62);
  background: rgba(47, 212, 198, 0.08);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.nav-icon,
.small-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.nav-count {
  min-width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c9d8ec;
  font-size: 12px;
}

.sidebar-status {
  margin-top: auto;
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(17, 28, 43, 0.78);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(56, 214, 150, 0.12);
}

.workspace {
  width: 100%;
  min-width: 0;
  padding: 22px;
}

.topbar {
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(17, 28, 43, 0.86);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

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

.alert-beacon {
  min-height: 38px;
  display: inline-grid;
  grid-template-columns: 16px auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 90, 105, 0.5);
  border-radius: 8px;
  background: rgba(255, 90, 105, 0.12);
  color: #ffffff;
  cursor: pointer;
}

.alert-beacon.clear {
  border-color: rgba(56, 214, 150, 0.36);
  background: rgba(56, 214, 150, 0.08);
}

.beacon-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 90, 105, 0.58), 0 0 18px rgba(255, 90, 105, 0.72);
  animation: beaconPulse 1.35s infinite;
}

.alert-beacon.clear .beacon-light {
  background: var(--green);
  animation: none;
  box-shadow: 0 0 14px rgba(56, 214, 150, 0.46);
}

@keyframes beaconPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 105, 0.58), 0 0 18px rgba(255, 90, 105, 0.72); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 105, 0), 0 0 22px rgba(255, 90, 105, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 105, 0), 0 0 18px rgba(255, 90, 105, 0.72); }
}

.product-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.product-tab {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.product-tab.active {
  background: rgba(47, 212, 198, 0.14);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(47, 212, 198, 0.22), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.primary-button {
  padding: 0 16px;
  border-color: rgba(47, 212, 198, 0.44);
  background: linear-gradient(135deg, #185fb8, #1aa99b);
  color: #ffffff;
  font-weight: 700;
}

.secondary-button,
.ghost-button {
  padding: 0 13px;
  font-weight: 700;
  color: #dce8f6;
}

.ghost-button {
  background: transparent;
}

.icon-button {
  width: 38px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.hero-band {
  min-width: 0;
  margin-top: 16px;
  min-height: 152px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 24%, rgba(47, 212, 198, 0.14), transparent 30%),
    linear-gradient(120deg, rgba(17, 28, 43, 0.98), rgba(24, 40, 60, 0.94));
}

.hero-copy {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.hero-metrics div {
  min-height: 82px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(8, 17, 29, 0.54);
  border: 1px solid rgba(47, 212, 198, 0.18);
}

.hero-metrics strong {
  display: block;
  font-size: 22px;
}

.hero-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.content-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.demo-story-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(47, 212, 198, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(17, 28, 43, 0.96), rgba(20, 39, 58, 0.9));
  box-shadow: var(--shadow);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.metric-card,
.data-card {
  border-radius: 8px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.metric-card {
  min-height: 126px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.metric-card .value {
  font-size: 27px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(47, 212, 198, 0.16);
}

.metric-card .label,
.metric-card .trend {
  color: var(--muted);
  font-size: 13px;
}

.metric-card .trend.up { color: var(--green); }
.metric-card .trend.warn { color: var(--amber); }

.data-card {
  min-height: 190px;
  padding: 16px;
}

.console-card {
  min-height: 236px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #1f375c;
  background:
    radial-gradient(circle at 78% 18%, rgba(47, 212, 198, 0.2), transparent 28%),
    linear-gradient(135deg, #101927, #16263d 58%, #0d1724);
  color: #f7fbff;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.4);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9d8ec;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.console-head img {
  width: 88px;
  height: 34px;
  object-fit: contain;
  padding: 4px 7px;
  border-radius: 6px;
  background: #ffffff;
}

.console-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.console-grid > div {
  min-height: 146px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(47, 212, 198, 0.16);
}

.console-grid p,
.console-grid span,
.console-grid li {
  color: #b8c7dc;
  font-size: 13px;
}

.console-grid strong {
  display: block;
  margin: 6px 0 10px;
  color: #ffffff;
  font-size: 30px;
  text-shadow: 0 0 22px rgba(47, 212, 198, 0.16);
}

.console-grid ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.holding-list,
.action-ticks {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.holding-list span,
.action-ticks span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  color: #d4e2f4;
  font-size: 13px;
}

.holding-list b {
  font-size: 12px;
  color: #f5f8fc;
}

.holding-list em {
  font-style: normal;
  font-weight: 800;
}

.holding-list em.up {
  color: var(--green);
}

.holding-list em.warn {
  color: var(--gold);
}

.action-ticks span {
  justify-content: flex-start;
}

.action-ticks span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(56, 214, 150, 0.12);
}

.console-line {
  height: 54px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 20%, rgba(47, 212, 198, 0.22) 20% 45%, transparent 45% 100%),
    linear-gradient(90deg, rgba(214, 182, 60, 0.24), rgba(47, 212, 198, 0.36));
  position: relative;
  overflow: hidden;
}

.console-line::after {
  content: "";
  position: absolute;
  inset: 12px 0 14px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  clip-path: polygon(0 65%, 12% 50%, 24% 58%, 36% 32%, 48% 44%, 60% 22%, 72% 34%, 84% 12%, 100% 18%, 100% 100%, 0 100%);
  opacity: 0.9;
}

.console-activity {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(47, 212, 198, 0.14);
  background: rgba(8, 17, 29, 0.46);
}

.activity-head,
.activity-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr 0.8fr 0.9fr 0.9fr;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
}

.activity-head {
  color: #96abc4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.04);
}

.activity-row {
  color: #dce8f6;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.amount-cell {
  color: var(--green);
  font-weight: 900;
}

.market-strip {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.critical-panel {
  min-height: 132px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 90, 105, 0.34);
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 90, 105, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(41, 18, 25, 0.92), rgba(17, 28, 43, 0.92));
  box-shadow: 0 18px 46px rgba(255, 90, 105, 0.08);
}

.critical-panel.clear {
  border-color: rgba(56, 214, 150, 0.22);
  background: rgba(17, 28, 43, 0.78);
}

.critical-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.critical-panel-head p {
  margin-bottom: 0;
  color: #c9d8ec;
  font-size: 13px;
}

.critical-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.critical-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 90, 105, 0.8);
  animation: beaconPulse 1.35s infinite;
}

.critical-panel.clear .critical-status span {
  background: var(--green);
  animation: none;
  box-shadow: 0 0 16px rgba(56, 214, 150, 0.45);
}

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

.critical-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 90, 105, 0.24);
  background: rgba(8, 17, 29, 0.5);
}

.critical-card h3 {
  color: #ffffff;
  margin-bottom: 6px;
}

.critical-card p {
  margin-bottom: 7px;
  color: #c9d8ec;
  font-size: 13px;
}

.critical-card small {
  color: var(--red);
  font-weight: 800;
}

.critical-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.critical-actions strong {
  color: var(--red);
  font-size: 30px;
  text-shadow: 0 0 18px rgba(255, 90, 105, 0.32);
}

.critical-drawer-task {
  border-color: rgba(255, 90, 105, 0.34);
  background: rgba(255, 90, 105, 0.08);
}

.market-strip div {
  position: relative;
  overflow: hidden;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(17, 28, 43, 0.78);
  box-shadow: var(--shadow);
}

.market-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.market-strip strong.green {
  color: var(--green);
}

.market-strip strong.gold {
  color: var(--gold);
}

.market-strip strong.red {
  color: var(--red);
}

.market-strip em {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 9px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.market-strip em::after {
  content: "";
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

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

.pill,
.risk-pill,
.stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill {
  background: rgba(255, 255, 255, 0.08);
  color: #dce8f6;
}

.risk-low { background: rgba(56, 214, 150, 0.12); color: var(--green); }
.risk-medium { background: rgba(212, 148, 53, 0.14); color: var(--amber); }
.risk-high { background: rgba(255, 90, 105, 0.14); color: var(--red); }
.stage-done { background: rgba(56, 214, 150, 0.12); color: var(--green); }
.stage-review { background: rgba(61, 140, 255, 0.14); color: var(--blue-deep); }
.stage-pending { background: rgba(138, 124, 255, 0.14); color: var(--violet); }

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

.list-row,
.client-row,
.agent-row,
.timeline-row,
.drawer-task {
  min-height: 68px;
  padding: 12px;
  border-radius: 8px;
}

.list-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
}

.client-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.row-title {
  font-weight: 800;
  margin-bottom: 3px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-deep), var(--green));
}

.bar-chart {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  padding: 12px 0 26px;
}

.bar {
  min-height: 24px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--blue-deep), var(--green));
  box-shadow: 0 0 22px rgba(47, 212, 198, 0.12);
  position: relative;
}

.bar span {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 18px;
}

.donut {
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background: conic-gradient(var(--blue-deep) 0 44%, var(--green) 44% 72%, var(--gold) 72% 88%, var(--amber) 88% 100%);
  display: grid;
  place-items: center;
}

.donut::after {
  content: "$1.48B";
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  color: #ffffff;
  font-weight: 900;
}

.legend {
  display: grid;
  gap: 9px;
}

.legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.agent-row {
  display: grid;
  gap: 8px;
}

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

.agent-score {
  font-size: 22px;
  font-weight: 900;
}

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

.pipeline-step {
  min-height: 116px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.pipeline-step strong {
  display: block;
  margin-top: 8px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 12px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 51, 0.28);
  z-index: 20;
}

.flow-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(4px);
}

.tx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 37;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
}

.flow-modal,
.tx-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 38;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid rgba(47, 212, 198, 0.28);
  border-radius: 10px;
  background: #0f1a29;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.22s ease-out both;
}

.flow-modal[hidden],
.flow-modal-backdrop[hidden],
.tx-modal[hidden],
.tx-modal-backdrop[hidden] {
  display: none;
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

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

.flow-step {
  min-height: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.flow-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  font-weight: 900;
}

.flow-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.flow-step p {
  color: #c9d8ec;
  font-size: 13px;
}

.flow-evidence {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(56, 214, 150, 0.18);
  border-radius: 8px;
  background: rgba(56, 214, 150, 0.06);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.evidence-grid span {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce8f6;
  font-size: 13px;
  font-weight: 800;
}

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

.tx-summary div,
.tx-grid div,
.agent-recommendation {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tx-summary span,
.tx-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tx-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 26px;
}

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

.tx-grid strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 15px;
}

.agent-recommendation {
  margin-top: 10px;
  border-color: rgba(47, 212, 198, 0.22);
  background:
    radial-gradient(circle at 94% 18%, rgba(47, 212, 198, 0.12), transparent 24%),
    rgba(47, 212, 198, 0.05);
}

.agent-recommendation h3 {
  font-size: 19px;
}

.agent-recommendation p:last-child {
  margin-bottom: 0;
  color: #c9d8ec;
}

.action-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  width: min(460px, 100vw);
  height: 100vh;
  overflow: auto;
  padding: 20px;
  background: #0f1a29;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 46px rgba(0, 0, 0, 0.36);
}

.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.drawer-items {
  display: grid;
  gap: 10px;
}

.drawer-task {
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 360px;
  padding: 13px 15px;
  border-radius: 8px;
  border: 1px solid rgba(47, 212, 198, 0.36);
  background: #102337;
  color: #d9fff8;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

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

  .activity-head,
  .activity-row {
    grid-template-columns: 1fr 0.8fr 0.8fr;
  }

  .activity-head span:nth-child(n + 4),
  .activity-row span:nth-child(n + 4) {
    display: none;
  }

  .sidebar-status {
    display: none;
  }

  .hero-band {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

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

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

  .flow-steps,
  .evidence-grid,
  .tx-summary,
  .tx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
  }

  .app-shell,
  .sidebar,
  .workspace,
  .topbar,
  .hero-band,
  .data-card,
  .metric-card {
    max-width: 100%;
  }

  .workspace,
  .sidebar {
    padding: 14px;
  }

  .topbar,
  .hero-band {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .hero-metrics,
  .nav-list,
  .agent-grid,
  .pipeline,
  .donut-wrap,
  .console-grid,
  .market-strip {
    grid-template-columns: 1fr;
  }

  .list-row,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .critical-card {
    grid-template-columns: 1fr;
  }

  .critical-actions {
    justify-items: start;
  }

  .product-choice-grid,
  .flow-steps,
  .evidence-grid,
  .tx-summary,
  .tx-grid {
    grid-template-columns: 1fr;
  }

  .demo-story-card,
  .critical-panel-head,
  .selector-head {
    align-items: stretch;
    flex-direction: column;
  }
}
