:root {
  --paper: #0b0b0a;
  --paper-soft: #10100e;
  --panel: #12120f;
  --panel-strong: #171610;
  --panel-raised: #1d1b14;
  --ink: #f7f4ea;
  --muted: #b7b1a0;
  --soft: #817969;
  --line: rgba(247, 244, 234, 0.14);
  --line-strong: rgba(247, 244, 234, 0.24);
  --gold: #d8b65d;
  --gold-strong: #f1c76a;
  --gold-dim: rgba(216, 182, 93, 0.14);
  --green: #67d391;
  --green-dim: rgba(103, 211, 145, 0.13);
  --cyan: #6ed8d1;
  --blue: #82a9ff;
  --danger: #e07c61;
  --danger-dim: rgba(224, 124, 97, 0.13);
  --purple: #b8a0e8;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
  --header-height: 72px;
  --notice-height: 32px;
  --sidebar-width: 232px;
  --max-width: 1440px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--gold);
  color: #080807;
}

.demo-notice {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--notice-height);
  gap: 9px;
  padding: 5px 20px;
  border-bottom: 1px solid rgba(11, 11, 10, 0.5);
  background: var(--gold);
  color: #17140c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-notice > span:last-child {
  opacity: 0.72;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #17140c;
}

.global-header {
  position: sticky;
  z-index: 70;
  top: var(--notice-height);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-version {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
}

.view-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.view-switch {
  min-width: 86px;
  padding: 8px 13px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.view-switch:hover {
  color: var(--ink);
}

.view-switch.is-active {
  background: var(--gold);
  color: #12100b;
}

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

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-raised);
  color: var(--ink);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.notification-button {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--danger);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 6px 3px 3px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--gold-dim);
  color: var(--gold-strong);
  font-size: 11px;
  font-weight: 800;
}

.profile-copy {
  display: grid;
  line-height: 1.25;
  text-align: left;
}

.profile-copy strong {
  font-size: 11px;
}

.profile-copy small {
  color: var(--soft);
  font-size: 9px;
}

.product-view {
  display: none;
}

.product-view.is-active {
  display: block;
}

.public-view {
  min-height: calc(100vh - var(--header-height) - var(--notice-height));
  background: var(--paper);
}

.public-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  height: 54px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.public-nav a:hover,
.public-nav button:hover {
  color: var(--gold-strong);
}

.public-nav button {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  align-items: center;
  min-height: 670px;
  padding: 72px clamp(28px, 6vw, 100px) 80px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 730px;
  padding-right: clamp(20px, 5vw, 80px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-copy h1 span {
  color: var(--gold-strong);
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 500;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 17px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #141109;
}

.button-primary:hover {
  border-color: var(--gold-strong);
  background: var(--gold-strong);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}

.button-danger-outline {
  width: 100%;
  border-color: rgba(224, 124, 97, 0.5);
  background: transparent;
  color: var(--danger);
}

.button-danger-outline:hover {
  background: var(--danger-dim);
}

.button.compact {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 11px;
}

.full-width {
  width: 100%;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
  color: var(--soft);
  font-size: 10px;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-line svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.hero-console {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--gold);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.console-head,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.console-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.console-head > div,
.panel-heading > div {
  display: grid;
}

.console-head small,
.panel-heading small {
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-head strong {
  margin-top: 1px;
  font-size: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--soft);
}

.status-live {
  color: var(--green);
}

.status-live i {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-dim);
}

.status-pending {
  color: var(--gold-strong);
}

.status-pending i {
  background: var(--gold);
}

.console-value {
  display: grid;
  padding: 26px 20px 6px;
}

.console-value small {
  color: var(--soft);
  font-size: 10px;
}

.console-value strong {
  margin: 3px 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.console-value span {
  color: var(--green);
  font-size: 11px;
}

.hero-chart {
  padding: 12px 20px 4px;
}

.hero-chart svg,
.dashboard-chart svg {
  width: 100%;
  height: 210px;
  overflow: visible;
}

.chart-grid line {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-line,
.chart-shadow {
  fill: none;
  stroke: var(--gold-strong);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.chart-shadow {
  stroke: rgba(216, 182, 93, 0.18);
  stroke-width: 9;
}

.chart-point {
  fill: var(--paper);
  stroke: var(--gold-strong);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-family: Inter, system-ui, sans-serif;
  font-size: 9px;
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.console-metrics > div {
  display: grid;
  gap: 3px;
  padding: 13px 0;
}

.console-metrics > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.console-metrics small {
  color: var(--soft);
  font-size: 9px;
}

.console-metrics strong {
  font-size: 11px;
}

.data-disclaimer {
  margin: 14px 20px 18px;
  color: var(--soft);
  font-size: 9px;
  line-height: 1.6;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(28px, 6vw, 100px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.proof-strip > div {
  display: grid;
  gap: 3px;
  padding: 26px 30px;
}

.proof-strip > div + div {
  border-left: 1px solid var(--line);
}

.proof-strip strong {
  color: var(--gold-strong);
  font-family: Inter, system-ui, sans-serif;
  font-size: 23px;
}

.proof-strip span {
  color: var(--soft);
  font-size: 10px;
}

.content-section {
  padding: 100px clamp(28px, 6vw, 100px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.strategy-card {
  display: grid;
  min-height: 470px;
  grid-template-rows: auto 1fr auto auto;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: 180ms ease;
}

.strategy-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.strategy-card-featured {
  border-top: 2px solid var(--gold);
  background: var(--panel-strong);
}

.strategy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.strategy-code {
  color: var(--soft);
  font-family: Inter, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.strategy-kicker {
  margin: 44px 0 5px;
  color: var(--gold);
  font-size: 11px;
}

.strategy-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 55px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.strategy-card > div > p:last-child {
  max-width: 530px;
  color: var(--muted);
  font-size: 14px;
}

.strategy-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.strategy-facts > div {
  display: grid;
  gap: 5px;
  min-height: 75px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strategy-facts small {
  color: var(--soft);
  font-size: 9px;
}

.strategy-facts strong {
  font-size: 11px;
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-strong);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.system-section {
  background: var(--paper-soft);
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey article {
  position: relative;
  min-height: 260px;
  padding: 28px;
}

.journey article + article {
  border-left: 1px solid var(--line);
}

.journey article > span {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--soft);
  font-family: Inter, system-ui, sans-serif;
  font-size: 9px;
}

.journey article > svg {
  width: 28px;
  height: 28px;
  margin: 22px 0 42px;
  color: var(--gold);
}

.journey h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.journey p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.team-card {
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.team-avatar {
  display: grid;
  width: 86px;
  height: 102px;
  place-items: center;
  margin-bottom: 23px;
  border: 1px solid var(--line-strong);
  background: var(--panel-raised);
  color: var(--gold-strong);
  font-family: Georgia, serif;
  font-size: 25px;
}

.team-meta {
  display: flex;
  gap: 8px;
  color: var(--soft);
  font-size: 9px;
}

.team-meta span + span::before {
  margin-right: 8px;
  content: "·";
}

.team-card h3 {
  margin: 5px 0 8px;
  font-size: 22px;
}

.team-card p {
  min-height: 69px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px clamp(28px, 6vw, 100px);
  color: var(--soft);
}

.public-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-footer > div > div {
  display: grid;
  line-height: 1.3;
}

.public-footer strong {
  color: var(--ink);
  letter-spacing: 0.13em;
}

.public-footer small {
  font-size: 8px;
}

.public-footer p {
  max-width: 680px;
  margin: 0;
  font-size: 9px;
  text-align: right;
}

/* Shared application shell */
.app-view.is-active {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height) - var(--notice-height));
}

.app-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--notice-height));
  display: flex;
  height: calc(100vh - var(--header-height) - var(--notice-height));
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
}

.sidebar-context {
  display: grid;
  padding: 28px 22px 20px;
  border-bottom: 1px solid var(--line);
}

.sidebar-context small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sidebar-context strong {
  margin-top: 2px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}

.app-sidebar nav {
  display: grid;
  gap: 3px;
  padding: 16px 12px;
}

.sidebar-link,
.sidebar-foot > button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sidebar-link svg,
.sidebar-foot > button svg {
  width: 16px;
  height: 16px;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: var(--panel);
  color: var(--ink);
}

.sidebar-link.is-active {
  border-left-color: var(--gold);
}

.sidebar-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--line);
}

.kyc-progress,
.permission-note {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.kyc-progress span,
.permission-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.kyc-progress span svg,
.permission-note svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.kyc-progress small,
.permission-note small {
  color: var(--soft);
  font-size: 8px;
}

.app-content {
  min-width: 0;
  padding: 34px clamp(22px, 3vw, 48px) 70px;
  background: #0e0e0c;
}

.app-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto 30px;
}

.app-page-header h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.app-page-header > div > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.role-badge,
.network-note {
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto 14px;
}

.metric-card {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.metric-card.metric-primary {
  border-top: 2px solid var(--gold);
  background: var(--panel-strong);
}

.metric-card.metric-warning {
  border-top: 2px solid var(--danger);
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}

.metric-label svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.metric-label em {
  color: var(--soft);
  font-family: Inter, system-ui, sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.metric-card > strong {
  display: block;
  margin: 12px 0 3px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.035em;
}

.metric-card > small {
  color: var(--soft);
  font-size: 9px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto 14px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel-heading {
  min-height: 64px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 1px 0 0;
  font-size: 15px;
}

.segmented-control {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
}

.segmented-control button {
  min-width: 34px;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 8px;
  cursor: pointer;
}

.segmented-control button.is-active {
  background: var(--gold-dim);
  color: var(--gold-strong);
}

.performance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 20px 0;
  border: 1px solid var(--line);
}

.performance-summary > div {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
}

.performance-summary > div + div {
  border-left: 1px solid var(--line);
}

.performance-summary small {
  color: var(--soft);
  font-size: 8px;
}

.performance-summary strong {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
}

.performance-summary > div:first-child strong {
  color: var(--green);
}

.dashboard-chart {
  padding: 18px 20px 0;
}

.dashboard-chart svg {
  height: 230px;
}

.performance-panel .data-disclaimer {
  margin-top: 12px;
}

.strategy-status-panel {
  display: flex;
  flex-direction: column;
}

.strategy-status-panel .panel-heading {
  flex: 0 0 auto;
}

.strategy-orbit {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 32px auto 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.strategy-orbit::before,
.strategy-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.strategy-orbit::before {
  inset: 30px;
}

.strategy-orbit::after {
  inset: 62px;
}

.orbit-core {
  position: absolute;
  z-index: 2;
  inset: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-content: center;
  border: 1px solid var(--gold);
  background: var(--panel-raised);
  transform: translate(-50%, -50%);
  text-align: center;
}

.orbit-core span {
  color: var(--gold-strong);
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1;
}

.orbit-core small {
  color: var(--soft);
  font-size: 6px;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 7px;
  font-weight: 800;
}

.orbit-account {
  top: -9px;
  left: 80px;
}

.orbit-risk {
  right: 0;
  bottom: 23px;
}

.orbit-wallet {
  bottom: 23px;
  left: 0;
}

.status-list {
  margin: 0 20px 20px;
}

.status-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.status-list dt {
  color: var(--soft);
}

.status-list dd {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.strategy-status-panel > .button {
  margin: auto 20px 20px;
}

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

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 20px 20px 12px;
}

.wallet-actions button {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.wallet-actions button:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.wallet-actions button > span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  background: var(--gold-dim);
  color: var(--gold-strong);
}

.wallet-actions svg {
  width: 16px;
  height: 16px;
}

.wallet-actions strong {
  font-size: 10px;
}

.wallet-actions small {
  color: var(--soft);
  font-size: 8px;
}

.wallet-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 20px 12px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.wallet-address > div {
  display: grid;
}

.wallet-address small {
  color: var(--soft);
  font-size: 8px;
}

.wallet-address code {
  color: var(--muted);
  font-size: 11px;
}

.wallet-address button {
  padding: 7px;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.security-note,
.immutability-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 12px;
  border-left: 2px solid var(--gold);
  background: var(--gold-dim);
}

.security-note svg,
.immutability-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--gold-strong);
}

.security-note p,
.immutability-note p {
  display: grid;
  margin: 0;
}

.security-note strong,
.immutability-note strong {
  font-size: 9px;
}

.security-note span,
.immutability-note span {
  color: var(--muted);
  font-size: 8px;
}

.settlement-formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px;
  padding: 17px;
  border: 1px solid var(--line);
}

.settlement-formula > div {
  display: grid;
}

.settlement-formula small {
  color: var(--soft);
  font-size: 8px;
}

.settlement-formula strong {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
}

.settlement-formula > span {
  color: var(--gold);
}

.settlement-timeline {
  display: grid;
  gap: 0;
  margin: 0 20px 20px;
  padding: 0;
  list-style: none;
}

.settlement-timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
}

.settlement-timeline li:not(:last-child)::after {
  position: absolute;
  top: 31px;
  bottom: -10px;
  left: 13px;
  width: 1px;
  background: var(--line);
  content: "";
}

.settlement-timeline i,
.settlement-checks i {
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
  color: var(--soft);
  font-size: 8px;
  font-style: normal;
}

.settlement-timeline i svg,
.settlement-checks i svg {
  width: 12px;
  height: 12px;
}

.settlement-timeline li.is-complete i,
.settlement-checks .is-complete i {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
}

.settlement-timeline li > div {
  display: grid;
}

.settlement-timeline strong {
  font-size: 9px;
}

.settlement-timeline small {
  color: var(--soft);
  font-size: 8px;
}

.account-panel {
  max-width: var(--max-width);
  margin: 0 auto;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

td strong {
  color: var(--ink);
  font-size: 10px;
}

/* Agent */
.agent-overview-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
}

.pipeline-bars {
  display: grid;
  gap: 15px;
  padding: 22px 20px;
}

.pipeline-bars > div {
  display: grid;
  grid-template-columns: 96px 1fr 28px;
  align-items: center;
  gap: 12px;
}

.pipeline-bars span {
  color: var(--muted);
  font-size: 9px;
}

.pipeline-bars b {
  height: 4px;
  background: rgba(247, 244, 234, 0.08);
}

.pipeline-bars b i {
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--gold);
}

.pipeline-bars b i.bar-danger {
  background: var(--danger);
}

.pipeline-bars strong {
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  text-align: right;
}

.commission-summary {
  display: flex;
  flex-direction: column;
}

.commission-value {
  display: block;
  margin: 28px 20px 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.commission-summary > small {
  margin: 0 20px;
  color: var(--soft);
  font-size: 8px;
}

.commission-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 24px 20px 20px;
  border-top: 1px solid var(--line);
}

.commission-split > div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.commission-split > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.commission-split span {
  color: var(--soft);
  font-size: 8px;
}

.commission-split strong {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
}

.commission-summary > .button {
  margin: auto 20px 20px;
}

.clients-panel,
.network-panel,
.strategy-admin-panel,
.settlement-admin-panel {
  max-width: var(--max-width);
  margin: 0 auto 14px;
}

.client-heading {
  align-items: center;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field,
.filter-field {
  display: flex;
  min-height: 33px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--soft);
}

.search-field svg,
.filter-field svg {
  width: 13px;
  height: 13px;
}

.search-field input,
.filter-field select {
  width: 160px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
}

.filter-field select {
  width: 110px;
}

.filter-field option {
  background: var(--panel);
}

.client-table td:first-child {
  display: grid;
}

.client-table td:first-child small {
  color: var(--soft);
  font-size: 8px;
}

.client-table td:last-child button {
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.client-table td:last-child svg {
  width: 14px;
  height: 14px;
}

.tag {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-size: 8px;
  font-weight: 700;
}

.tag-green {
  border-color: rgba(103, 211, 145, 0.35);
  color: var(--green);
}

.tag-gold {
  border-color: rgba(216, 182, 93, 0.38);
  color: var(--gold-strong);
}

.tag-red {
  border-color: rgba(224, 124, 97, 0.4);
  color: var(--danger);
}

.tag-blue {
  border-color: rgba(130, 169, 255, 0.4);
  color: var(--blue);
}

.tag-purple {
  border-color: rgba(184, 160, 232, 0.4);
  color: var(--purple);
}

.tag-neutral {
  color: var(--muted);
}

.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  color: var(--soft);
  font-size: 8px;
}

.empty-state {
  padding: 46px;
  color: var(--soft);
  font-size: 11px;
  text-align: center;
}

.network-panel {
  padding-bottom: 22px;
}

.network-tree {
  padding: 25px 20px 0;
}

.network-root,
.network-branches article {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.network-root {
  width: min(340px, 100%);
  margin: 0 auto 36px;
  padding: 14px;
  border-color: rgba(216, 182, 93, 0.5);
}

.network-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--gold-dim);
  color: var(--gold-strong);
  font-size: 9px;
  font-weight: 800;
}

.network-root > div,
.network-branches article > div {
  display: grid;
}

.network-root small,
.network-branches small {
  color: var(--gold);
  font-size: 7px;
}

.network-root strong,
.network-branches strong {
  font-size: 10px;
}

.network-root em,
.network-branches em {
  color: var(--soft);
  font-size: 8px;
  font-style: normal;
}

.network-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.network-branches::before {
  position: absolute;
  top: -19px;
  right: 16%;
  left: 16%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.network-branches article {
  position: relative;
  padding: 14px;
}

.network-branches article::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--line-strong);
  content: "";
}

/* Admin */
.admin-sidebar {
  background: #0d0e0d;
}

.admin-content {
  background: #0b0c0b;
}

.admin-task-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.65fr);
}

.task-list {
  display: grid;
}

.task-list > button {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 11px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.task-list > button:hover {
  background: var(--paper-soft);
}

.task-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--gold-dim);
  color: var(--gold);
}

.task-icon svg {
  width: 15px;
  height: 15px;
}

.task-blue {
  background: rgba(130, 169, 255, 0.12);
  color: var(--blue);
}

.task-red {
  background: var(--danger-dim);
  color: var(--danger);
}

.task-neutral {
  background: rgba(247, 244, 234, 0.07);
  color: var(--muted);
}

.task-list > button > span:nth-child(2) {
  display: grid;
}

.task-list strong {
  font-size: 10px;
}

.task-list small {
  color: var(--soft);
  font-size: 8px;
}

.task-list em {
  color: var(--soft);
  font-size: 8px;
  font-style: normal;
}

.task-chevron {
  width: 14px;
  height: 14px;
  color: var(--soft);
}

.service-list {
  display: grid;
  padding: 12px 20px;
}

.service-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.service-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.service-list strong {
  font-family: Inter, system-ui, sans-serif;
  font-size: 9px;
}

.service-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.latest-event {
  margin: 3px 20px 20px;
  padding: 13px;
  border-left: 2px solid var(--green);
  background: var(--green-dim);
}

.latest-event small,
.latest-event span {
  color: var(--soft);
  font-size: 8px;
}

.latest-event p {
  margin: 2px 0 0;
  font-size: 9px;
}

.admin-strategy-list {
  display: grid;
}

.admin-strategy-list > article {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) 130px 90px auto auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-strategy-list > article.strategy-draft {
  opacity: 0.74;
}

.admin-strategy-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--panel-raised);
  color: var(--gold-strong);
  font-family: Georgia, serif;
  font-size: 13px;
}

.admin-strategy-main > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-strategy-main h3 {
  margin: 0;
  font-size: 12px;
}

.admin-strategy-main p {
  margin: 3px 0 0;
  color: var(--soft);
  font-size: 8px;
}

.admin-strategy-fact {
  display: grid;
}

.admin-strategy-fact small {
  color: var(--soft);
  font-size: 7px;
}

.admin-strategy-fact strong {
  font-size: 9px;
}

.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--paper-soft);
  cursor: pointer;
}

.toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--soft);
  transition: 160ms ease;
}

.toggle.is-on {
  border-color: rgba(103, 211, 145, 0.5);
  background: var(--green-dim);
}

.toggle.is-on i {
  left: 19px;
  background: var(--green);
}

.immutability-note {
  margin-top: 16px;
}

.settlement-run {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 25px;
  padding: 24px 20px;
}

.settlement-run-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.settlement-ring {
  display: grid;
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  place-content: center;
  border: 8px solid var(--gold-dim);
  border-top-color: var(--gold);
  border-right-color: var(--gold);
  border-radius: 50%;
  text-align: center;
}

.settlement-ring strong {
  font-family: Inter, system-ui, sans-serif;
  font-size: 20px;
}

.settlement-ring small {
  color: var(--soft);
  font-size: 7px;
}

.settlement-run-main p {
  max-width: 320px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
}

.settlement-run-main > div:last-child > span {
  color: var(--gold);
  font-size: 8px;
}

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

.settlement-checks > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 10px;
  border: 1px solid var(--line);
}

.settlement-checks span {
  display: grid;
  font-size: 9px;
}

.settlement-checks small {
  color: var(--soft);
  font-size: 7px;
}

/* Modal and interactive feedback */
.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  width: min(100%, 570px);
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--gold);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.modal.modal-wide {
  width: min(100%, 760px);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-header {
  padding: 25px 60px 20px 25px;
  border-bottom: 1px solid var(--line);
}

.modal-header .eyebrow {
  margin-bottom: 7px;
}

.modal-header h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.modal-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.modal-body {
  padding: 22px 25px 25px;
}

.modal-form {
  display: grid;
  gap: 15px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field option {
  background: var(--panel);
}

.form-helper {
  margin: 0;
  color: var(--soft);
  font-size: 8px;
}

.modal-address-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.modal-address-box span {
  color: var(--soft);
  font-size: 8px;
}

.modal-address-box code {
  overflow-wrap: anywhere;
  color: var(--gold-strong);
  font-size: 11px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 7px;
}

.warning-box {
  display: flex;
  gap: 10px;
  padding: 13px;
  border-left: 2px solid var(--danger);
  background: var(--danger-dim);
}

.warning-box svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--danger);
}

.warning-box p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.warning-box strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
}

.strategy-detail-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 28px 25px;
  border-bottom: 1px solid var(--line);
}

.strategy-detail-hero h2 {
  margin: 4px 0;
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 500;
}

.strategy-detail-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.strategy-detail-symbol {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-strong);
  font-family: Georgia, serif;
  font-size: 26px;
}

.detail-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-sections > div {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-sections small {
  display: block;
  color: var(--soft);
  font-size: 8px;
}

.detail-sections strong {
  font-size: 10px;
}

.audit-flow {
  display: grid;
  gap: 10px;
}

.audit-flow > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
}

.audit-flow small {
  color: var(--soft);
  font-size: 8px;
}

.audit-flow span {
  color: var(--muted);
  font-size: 9px;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  display: flex;
  max-width: min(390px, calc(100vw - 48px));
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(103, 211, 145, 0.4);
  background: #131a15;
  color: var(--muted);
  box-shadow: var(--shadow);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--green);
}

.feedback-trigger {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 142px;
  padding: 11px 14px;
  border: 1px solid var(--gold);
  background: var(--panel-strong);
  color: var(--gold-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 160ms ease;
}

.feedback-trigger:hover {
  background: var(--gold);
  color: #141109;
  transform: translateY(-2px);
}

.feedback-trigger svg {
  width: 18px;
  height: 18px;
}

.feedback-trigger > span {
  display: grid;
  text-align: left;
}

.feedback-trigger strong {
  font-size: 10px;
}

.feedback-trigger small {
  color: var(--soft);
  font-size: 7px;
}

.feedback-trigger:hover small {
  color: rgba(20, 17, 9, 0.65);
}

.feedback-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feedback-context > div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feedback-context small {
  color: var(--soft);
  font-size: 8px;
}

.feedback-context strong {
  font-size: 10px;
}

.feedback-privacy {
  margin: 0;
  color: var(--soft);
  font-size: 8px;
}

@media (max-width: 1180px) {
  .global-header {
    grid-template-columns: auto 1fr auto;
  }

  .view-switch {
    min-width: 72px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .profile-copy {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-copy {
    max-width: 850px;
    padding-right: 0;
  }

  .hero-console {
    width: min(100%, 780px);
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid,
  .agent-overview-grid,
  .admin-task-grid {
    grid-template-columns: 1fr;
  }

  .admin-strategy-list > article {
    grid-template-columns: auto minmax(220px, 1fr) 115px auto auto;
  }

  .admin-strategy-list .admin-strategy-fact:nth-of-type(2) {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: auto;
  }

  .global-header {
    position: sticky;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px 18px;
  }

  .view-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    overflow-x: auto;
    justify-content: stretch;
  }

  .view-switch {
    flex: 1 0 auto;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .public-nav {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: 54px;
  }

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

  .proof-strip > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-strip > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .journey {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .journey article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .team-card {
    min-height: auto;
  }

  .app-view.is-active {
    display: block;
  }

  .app-sidebar {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-context,
  .sidebar-foot {
    display: none;
  }

  .app-sidebar nav {
    display: flex;
    gap: 0;
    padding: 0;
    overflow-x: auto;
  }

  .sidebar-link {
    flex: 1 0 auto;
    width: auto;
    min-width: 120px;
    justify-content: center;
    border-bottom: 2px solid transparent;
    border-left: 0;
  }

  .sidebar-link.is-active {
    border-bottom-color: var(--gold);
    border-left-color: transparent;
  }

  .app-content {
    padding-top: 28px;
  }

  .network-branches {
    grid-template-columns: 1fr;
  }

  .network-branches::before,
  .network-branches article::before {
    display: none;
  }

  .settlement-run {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .demo-notice {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .demo-notice > span:last-child {
    display: none;
  }

  .global-header {
    padding: 9px 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .brand-name {
    font-size: 15px;
  }

  .icon-button.notification-button {
    display: none;
  }

  .view-switcher {
    margin: 0 -4px;
  }

  .view-switch {
    min-width: 82px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .hero-section {
    gap: 42px;
    padding: 42px 20px 52px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-line {
    display: grid;
    gap: 8px;
  }

  .console-head,
  .console-value,
  .hero-chart {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-chart svg {
    height: 150px;
  }

  .console-metrics {
    margin-right: 14px;
    margin-left: 14px;
  }

  .console-metrics > div + div {
    padding-left: 8px;
  }

  .proof-strip {
    margin: 0 20px;
  }

  .proof-strip > div {
    padding: 18px;
  }

  .content-section {
    padding: 70px 20px;
  }

  .strategy-grid,
  .journey {
    grid-template-columns: 1fr;
  }

  .strategy-card {
    min-height: 0;
    padding: 23px;
  }

  .strategy-card + .strategy-card {
    margin-top: 0;
  }

  .strategy-kicker {
    margin-top: 35px;
  }

  .strategy-facts {
    grid-template-columns: 1fr;
  }

  .journey article {
    min-height: 210px;
    border-top: 1px solid var(--line);
    border-left: 0 !important;
  }

  .journey article:first-child {
    border-top: 0;
  }

  .public-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 20px;
  }

  .public-footer p {
    text-align: left;
  }

  .app-content {
    padding: 24px 14px 55px;
  }

  .app-page-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .page-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-card {
    min-height: 118px;
    padding: 15px;
  }

  .metric-card > strong {
    font-size: 19px;
  }

  .dashboard-grid,
  .wallet-grid {
    gap: 10px;
  }

  .panel-heading {
    padding-right: 15px;
    padding-left: 15px;
  }

  .performance-summary {
    margin-right: 15px;
    margin-left: 15px;
  }

  .performance-summary > div {
    padding: 10px 8px;
  }

  .performance-summary strong {
    font-size: 10px;
  }

  .dashboard-chart {
    padding-right: 15px;
    padding-left: 15px;
  }

  .dashboard-chart svg {
    height: 165px;
  }

  .wallet-actions,
  .settlement-formula {
    grid-template-columns: 1fr;
  }

  .settlement-formula > span {
    display: none;
  }

  .table-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .client-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-field input,
  .filter-field select {
    width: 100%;
  }

  .table-footer {
    gap: 8px;
    flex-direction: column;
  }

  .admin-strategy-list > article {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
  }

  .admin-strategy-fact {
    display: none;
  }

  .admin-strategy-main > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .settlement-run-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .settlement-checks {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .detail-sections {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    max-height: calc(100vh - 24px);
  }

  .modal-header,
  .modal-body {
    padding-left: 18px;
  }

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

  .strategy-detail-symbol {
    grid-row: 1;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }

  .feedback-trigger {
    right: 14px;
    bottom: 14px;
    min-width: auto;
    padding: 11px;
  }

  .feedback-trigger > span {
    display: none;
  }

  .toast {
    bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
