:root {
  --navy-950: #0b1f36;
  --navy-900: #102b4a;
  --navy-800: #173c64;
  --blue-700: #1559b7;
  --blue-600: #1d6ce0;
  --blue-100: #eaf2ff;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --line: #dce4ef;
  --line-strong: #c8d4e3;
  --ink: #182b42;
  --muted: #66778d;
  --success: #138a63;
  --success-bg: #e8f7f0;
  --warning: #aa6900;
  --warning-bg: #fff5df;
  --danger: #c33b48;
  --danger-bg: #fff0f1;
  --info: #1466bd;
  --info-bg: #eaf4ff;
  --radius: 8px;
  --shadow-float: 0 14px 40px rgba(14, 39, 69, 0.16);
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--canvas);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(29, 108, 224, 0.34);
  outline-offset: 2px;
}

.site-header {
  height: 68px;
  padding: 0 clamp(20px, 5vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: var(--blue-600);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 7px;
  font-size: 15px;
}
.brand-mark::after {
  position: absolute;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  content: "";
  transform: rotate(-38deg);
}
.site-nav,
.top-actions,
.row,
.page-actions,
.filter-row,
.inline-list,
.breadcrumbs,
.view-tabs,
.segment,
.user-chip {
  display: flex;
  align-items: center;
}
.site-nav {
  gap: 4px;
  margin-left: 34px;
}
.site-nav a {
  padding: 8px 10px;
  color: #c9d8e8;
  border-radius: 5px;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.top-actions {
  gap: 10px;
}
.text-link {
  color: var(--blue-700);
  font-weight: 650;
}
.top-actions .text-link {
  color: #e7eef8;
}

.btn {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 650;
  white-space: nowrap;
}
.btn:hover {
  border-color: #95abd0;
  background: #f9fbfe;
}
.btn-primary {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-primary:hover {
  background: #155fc8;
  border-color: #155fc8;
}
.btn-danger {
  color: var(--danger);
  border-color: #f3bdc4;
  background: #fff;
}
.btn-quiet {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}
.btn-sm {
  min-height: 31px;
  padding: 0 9px;
  font-size: 12px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
}
.btn svg,
.icon-btn svg {
  width: 16px;
  height: 16px;
}

.public-main {
  overflow: hidden;
}
.hero {
  min-height: 536px;
  padding: 76px clamp(20px, 7vw, 120px) 66px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 70px;
  align-items: center;
  color: #fff;
  background: var(--navy-900);
}
.eyebrow {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9dcaef;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}
.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.16;
  letter-spacing: 0;
}
.hero p {
  max-width: 600px;
  margin: 20px 0 28px;
  color: #c6d7e9;
  font-size: 17px;
  line-height: 1.75;
}
.hero .page-actions {
  gap: 12px;
}
.hero .btn {
  min-height: 43px;
}
.hero .btn:not(.btn-primary) {
  color: #e7eef8;
  background: transparent;
  border-color: #5e7897;
}
.hero-visual {
  position: relative;
  min-height: 350px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: center;
}
.gateway-frame {
  grid-column: 1 / -1;
  padding: 20px;
  background: #fff;
  border: 1px solid #b4c7da;
  border-radius: 8px;
  box-shadow: 0 23px 50px rgba(3, 18, 34, 0.34);
  color: var(--ink);
}
.frame-head {
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
}
.live-dot::before {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  content: "";
}
.request-flow {
  display: grid;
  grid-template-columns: 1.4fr 20px 1fr 20px 1.1fr;
  gap: 5px;
  align-items: center;
  margin-top: 18px;
}
.flow-cell {
  min-height: 82px;
  padding: 12px;
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.flow-cell strong {
  display: block;
  font-size: 12px;
}
.flow-cell span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.flow-arrow {
  color: var(--blue-600);
  text-align: center;
}
.mini-card {
  padding: 15px;
  background: #173b61;
  border: 1px solid #42719c;
  border-radius: 7px;
}
.mini-card b {
  display: block;
  color: #fff;
  font-size: 18px;
}
.mini-card span {
  display: block;
  margin-top: 3px;
  color: #aec6dd;
  font-size: 12px;
}

.stat-strip {
  max-width: 1250px;
  margin: -33px auto 0;
  padding: 0 24px;
  position: relative;
}
.stat-strip-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(27, 56, 90, 0.1);
}
.stat-item {
  padding: 20px 26px;
  border-right: 1px solid var(--line);
}
.stat-item:last-child {
  border-right: 0;
}
.stat-item b {
  display: block;
  color: var(--navy-900);
  font-size: 24px;
  letter-spacing: 0;
}
.stat-item span {
  color: var(--muted);
  font-size: 12px;
}
.public-section {
  max-width: 1250px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-head {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-head h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 26px;
  letter-spacing: 0;
}
.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.model-card {
  min-height: 218px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.model-card:hover {
  border-color: #8dacda;
  transform: translateY(-2px);
}
.model-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.vendor-logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--blue-100);
  border: 1px solid #cfe1fc;
  border-radius: 6px;
  font-weight: 800;
}
.model-card h3 {
  margin: 17px 0 4px;
  font-size: 15px;
}
.model-card p {
  min-height: 37px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.model-meta {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.model-price {
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 750;
}
.feature-band {
  background: #eaf1f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  max-width: 1250px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.site-footer {
  padding: 28px clamp(20px, 5vw, 88px);
  display: flex;
  justify-content: space-between;
  color: #aebed0;
  background: var(--navy-950);
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  min-height: 100vh;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  color: #d1dfed;
  background: var(--navy-950);
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  margin: 1px 9px 30px;
}
.nav-label {
  margin: 20px 10px 7px;
  color: #788fa8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-nav {
  display: grid;
  gap: 2px;
}
.side-nav button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c0d0e1;
  background: transparent;
  border: 0;
  border-radius: 5px;
  text-align: left;
}
.side-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.side-nav button.active {
  color: #fff;
  background: #1c4a77;
}
.side-nav svg {
  width: 16px;
  height: 16px;
}
.side-nav .count {
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--danger);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 14px 9px 4px;
  color: #8ba1b8;
  font-size: 11px;
}
.sidebar-bottom .data-pill {
  margin-top: 6px;
}
.app-main {
  min-width: 0;
}
.app-topbar {
  height: 62px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumbs b {
  color: var(--ink);
}
.topbar-controls {
  gap: 13px;
  display: flex;
  align-items: center;
}
.search-btn {
  width: 260px;
  min-height: 33px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: left;
}
.search-btn kbd {
  margin-left: auto;
  padding: 1px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
}
.user-chip {
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}
.avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #4276a7;
  border-radius: 50%;
  font-size: 11px;
}
.app-content {
  padding: 26px;
}
.page-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.page-heading h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: 25px;
  line-height: 1.2;
}
.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}
.page-actions {
  display: flex;
  align-items: center;
}
.data-asof {
  color: var(--muted);
  font-size: 12px;
}

.alert-banner {
  min-height: 48px;
  margin-bottom: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #873c08;
  background: var(--warning-bg);
  border: 1px solid #f1d08e;
  border-radius: 6px;
}
.alert-banner .btn {
  margin-left: auto;
  color: #8b5800;
  background: transparent;
  border-color: #deb76e;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric-card {
  min-height: 120px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
}
.metric-value {
  margin-top: 8px;
  color: var(--navy-900);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.metric-sub {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.trend-good {
  color: var(--success);
}
.trend-bad {
  color: var(--danger);
}
.trend-neutral {
  color: var(--muted);
}
.content-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.columns-2 {
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.85fr);
}
.columns-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel-head {
  min-height: 55px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.panel-body {
  padding: 16px;
}
.chart-area {
  min-height: 227px;
  padding: 18px 18px 11px;
  position: relative;
  overflow: hidden;
}
.chart-legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--blue-600);
}
.legend-dot.success {
  background: var(--success);
}
.legend-dot.danger {
  background: var(--danger);
}
.legend-dot.warning {
  background: #e6a326;
}
.chart-columns {
  height: 163px;
  margin-top: 18px;
  display: flex;
  align-items: end;
  gap: 7px;
  border-bottom: 1px solid var(--line);
}
.chart-columns i {
  flex: 1;
  min-width: 8px;
  background: #a9c8f3;
  border-top: 2px solid var(--blue-600);
}
.sparkline {
  height: 104px;
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.sparkline i {
  background: #83b6f6;
  border-top: 2px solid var(--blue-600);
}
.spark-labels {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.heatmap {
  display: grid;
  grid-template-columns: 152px repeat(12, minmax(12px, 1fr)) 72px;
  gap: 4px;
  align-items: center;
  font-size: 11px;
}
.heatmap > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heat {
  height: 18px;
  border-radius: 2px;
  background: #dce5ef;
}
.heat.good {
  background: #49b88f;
}
.heat.warn {
  background: #efbb50;
}
.heat.bad {
  background: #dc6470;
}
.task-list,
.timeline,
.decision-list,
.evidence-list {
  display: grid;
  gap: 0;
}
.task-row,
.timeline-item,
.decision-row,
.evidence-row {
  min-height: 46px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child,
.timeline-item:last-child,
.decision-row:last-child,
.evidence-row:last-child {
  border-bottom: 0;
}
.task-row small,
.decision-row small {
  display: block;
  color: var(--muted);
}
.task-row .status,
.decision-row .status {
  margin-left: auto;
}
.status,
.badge,
.data-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}
.status.success,
.badge.success {
  color: #086344;
  background: var(--success-bg);
}
.status.warning,
.badge.warning {
  color: #895300;
  background: var(--warning-bg);
}
.status.danger,
.badge.danger {
  color: #a42533;
  background: var(--danger-bg);
}
.status.info,
.badge.info {
  color: #075aa9;
  background: var(--info-bg);
}
.status.muted,
.badge.muted {
  color: #647386;
  background: #eef2f6;
}
.data-pill {
  color: #d1e4f8;
  background: rgba(255, 255, 255, 0.1);
}

.filter-row {
  min-height: 62px;
  padding: 12px 14px;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}
.field {
  height: 34px;
  min-width: 138px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}
.field.search {
  min-width: 220px;
}
.filter-spacer {
  flex: 1;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
.data-table th {
  height: 38px;
  padding: 0 13px;
  color: #66778d;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}
.data-table td {
  height: 46px;
  padding: 0 13px;
  border-bottom: 1px solid #edf1f5;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #f8fbff;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
}
.money,
.number {
  font-variant-numeric: tabular-nums;
}
.cell-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.cell-name {
  font-weight: 680;
}
.cell-actions {
  display: flex;
  gap: 4px;
}

.view-tabs {
  gap: 3px;
  padding: 4px;
  background: #edf2f7;
  border-radius: 6px;
}
.view-tabs button {
  min-height: 28px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
}
.view-tabs button.active {
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 40, 67, 0.12);
}
.segment {
  gap: 7px;
}
.segment button {
  min-height: 31px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}
.segment button:first-child {
  border-radius: 5px 0 0 5px;
}
.segment button:last-child {
  margin-left: -8px;
  border-radius: 0 5px 5px 0;
}
.segment button.active {
  color: var(--blue-700);
  background: var(--blue-100);
}
.caption {
  color: var(--muted);
  font-size: 12px;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.account-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.account-card .account-type {
  color: var(--muted);
  font-size: 12px;
}
.account-card b {
  display: block;
  margin-top: 8px;
  font-size: 21px;
}
.account-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.account-card.unresolved {
  background: #fffdfa;
  border-color: #f0d39a;
}
.account-card.unresolved b {
  color: var(--warning);
}
.decision-banner {
  margin-bottom: 14px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 11px;
  align-items: center;
  color: #755004;
  background: #fffaf0;
  border: 1px solid #f0d491;
  border-radius: var(--radius);
}
.decision-banner svg {
  color: var(--warning);
}
.decision-banner strong {
  display: block;
  color: #654400;
}
.decision-banner span {
  color: #896d30;
  font-size: 12px;
}
.decision-matrix {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.decision-matrix > div {
  min-height: 58px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.decision-matrix > div:nth-child(3n) {
  border-right: 0;
}
.decision-matrix > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.decision-matrix .head {
  min-height: 36px;
  padding-top: 9px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
}
.decision-matrix b {
  font-size: 12px;
}
.decision-matrix span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 16px 0 20px;
}
.step {
  min-height: 52px;
  padding: 7px 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  font-size: 11px;
}
.step b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #9aaaba;
  border-radius: 50%;
  font-size: 10px;
}
.step.done {
  color: var(--success);
  border-color: #5cc49e;
}
.step.done b {
  background: var(--success);
}
.step.current {
  color: var(--blue-700);
  border-color: var(--blue-600);
}
.step.current b {
  background: var(--blue-600);
}
.approval-rail {
  padding-left: 14px;
  border-left: 2px solid #d5dfeb;
}
.approval-rail .timeline-item {
  position: relative;
}
.approval-rail .timeline-item::before {
  position: absolute;
  left: -20px;
  width: 9px;
  height: 9px;
  background: var(--blue-600);
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
}
.approval-rail .timeline-item.pending::before {
  background: #d69b25;
}

.state-panel {
  min-height: 186px;
  padding: 26px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.state-panel svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--blue-700);
}
.state-panel b {
  display: block;
  color: var(--ink);
}
.state-panel p {
  max-width: 430px;
  margin: 5px 0 12px;
  font-size: 12px;
}
.toast-stack {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid #3e5d7c;
  border-radius: 6px;
  box-shadow: var(--shadow-float);
  font-size: 12px;
}
.toast .icon-btn {
  flex: none;
  width: 24px;
  height: 24px;
  color: inherit;
  background: transparent;
  border: 0;
}
.toast.success {
  background: #096849;
  border-color: #2da77e;
}
.toast.warning {
  color: #5e4207;
  background: #fff5dc;
  border-color: #e8bd5a;
}
.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(7, 23, 41, 0.48);
}
.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-float);
}
.modal-head {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
  font-size: 16px;
}
.modal-body {
  padding: 18px;
}
.modal-foot {
  min-height: 62px;
  padding: 0 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: grid;
  gap: 6px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.form-field input,
.form-field select {
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}
.api-note {
  margin-top: 14px;
  padding: 10px;
  color: #53697f;
  background: #f4f8fc;
  border: 1px solid #d9e6f3;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero-visual {
    max-width: 600px;
    width: 100%;
  }
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .accounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-nav {
    display: none;
  }
  .hero {
    min-height: auto;
    padding-top: 50px;
  }
  .stat-strip {
    padding: 0 14px;
  }
  .stat-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: 0;
  }
  .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    min-height: auto;
    height: auto;
    padding: 12px;
    position: static;
  }
  .sidebar .brand {
    margin-bottom: 10px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  .nav-label {
    display: none;
  }
  .side-nav {
    display: flex;
    flex: none;
  }
  .side-nav button {
    width: auto;
    flex: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .app-topbar {
    padding: 0 14px;
  }
  .search-btn {
    width: 34px;
    padding: 0;
    justify-content: center;
  }
  .search-btn span,
  .search-btn kbd {
    display: none;
  }
  .app-content {
    padding: 16px 14px 28px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  .columns-2,
  .columns-equal {
    grid-template-columns: 1fr;
  }
  .heatmap {
    grid-template-columns: 120px repeat(12, 14px) 60px;
    overflow-x: auto;
  }
  .decision-matrix {
    grid-template-columns: 1fr;
  }
  .decision-matrix > div {
    border-right: 0;
  }
  .decision-matrix > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .decision-matrix > div:last-child {
    border-bottom: 0;
  }
  .stepper {
    overflow-x: auto;
    grid-template-columns: repeat(5, 150px);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
}
@media (max-width: 540px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero .page-actions {
    flex-wrap: wrap;
  }
  .request-flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid,
  .accounts-grid,
  .stat-strip-inner {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-item:last-child {
    border-bottom: 0;
  }
  .top-actions .text-link {
    display: none;
  }
  .page-actions {
    flex-wrap: wrap;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .field.search {
    min-width: min(100%, 220px);
  }
  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}
