:root {
  --primary: #087d4f;
  --primary-dark: #075f3e;
  --primary-soft: #e9f7ef;
  --ink: #17221f;
  --muted: #53625d;
  --subtle: #77847f;
  --line: #dbe5e0;
  --line-strong: #c8d6d0;
  --panel: #ffffff;
  --canvas: #f5f8f6;
  --deep: #0f211c;
  --blue: #2f6fed;
  --orange: #d9781f;
  --red: #d64545;
  --cyan: #008fa1;
  --shadow: 0 8px 22px rgba(18, 32, 27, 0.08);
  --radius: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f7faf8;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

body,
button,
select,
input {
  font: 14px/1.5 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

button,
a,
select,
input {
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

button {
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(8, 125, 79, 0.34);
  outline-offset: 2px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 229, 224, 0.88);
  background: rgba(247, 250, 248, 0.94);
  backdrop-filter: blur(14px);
}

.site-brand,
.side-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand strong,
.site-brand small,
.side-brand strong,
.side-brand span,
.brand strong,
.brand span,
.sidebar-note strong,
.sidebar-note span {
  display: block;
}

.site-brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.site-brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #3d4e48;
}

.site-nav a {
  padding: 8px 0;
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--primary-dark);
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 700;
}

.header-action,
.primary-action {
  color: #ffffff;
  background: var(--primary);
}

.header-action:hover,
.primary-action:hover {
  background: var(--primary-dark);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #ffffff;
}

.secondary-action:hover {
  border-color: rgba(8, 125, 79, 0.36);
  color: var(--primary-dark);
}

.hero-section,
.content-section,
.workbench-section,
.trust-strip,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(50px, 8vw, 88px) 0 46px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 62ch;
  margin-bottom: 28px;
  color: #43534e;
  font-size: 17px;
  line-height: 1.82;
}

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

.hero-console {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-bar,
.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.console-bar strong {
  color: var(--ink);
  font-size: 13px;
}

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

.console-grid article {
  min-height: 124px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.console-grid article:last-child {
  border-right: 0;
}

.console-grid span,
.console-grid small {
  display: block;
  color: var(--muted);
}

.console-grid strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 34px;
  line-height: 1.05;
}

.console-chart {
  height: 250px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 34px 26px 28px;
  background:
    linear-gradient(#edf4f1 1px, transparent 1px) 0 0 / 100% 25%,
    #fcfefd;
}

.console-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #2f6fed 0%, #087d4f 100%);
}

.console-foot {
  justify-content: flex-start;
  border-bottom: 0;
  color: #43534e;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.trust-strip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  display: block;
  font-size: 28px;
}

.trust-strip span {
  color: var(--muted);
}

.content-section {
  padding: 56px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-heading h2,
.workbench-intro h2 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.workbench-intro p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.8;
}

.capability-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.capability-layout article,
.module-grid article,
.scenario-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.capability-layout article {
  min-height: 220px;
  padding: 24px;
}

.capability-primary {
  color: #ffffff;
  background: var(--deep) !important;
}

.capability-primary p,
.capability-primary .module-index {
  color: rgba(255, 255, 255, 0.72);
}

.module-index {
  display: block;
  margin-bottom: 46px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.capability-layout h3,
.module-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.capability-layout p,
.module-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

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

.module-grid article {
  padding: 22px;
}

.scenario-section {
  padding-top: 34px;
}

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

.scenario-list article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 18px 22px;
}

.scenario-list span {
  color: var(--muted);
}

.workbench-section {
  padding: 66px 0 74px;
}

.workbench-intro {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 760px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  color: #f8fffb;
  background: #10251f;
  border-right: 1px solid #1a3a31;
}

.side-brand {
  padding: 2px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.side-brand .brand-mark {
  margin-top: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--primary);
  font-size: 22px;
  line-height: 1;
}

.side-brand strong {
  font-size: 16px;
}

.side-brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.side-brand span.brand-mark {
  margin-top: 0;
  color: #ffffff;
  font-size: 22px;
}

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

.nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-icon {
  color: #0f2a21;
  background: #a9ebc5;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #c9f7d9;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-note span:last-child {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #13b36f;
  box-shadow: 0 0 0 5px rgba(19, 179, 111, 0.16);
}

.main {
  min-width: 0;
  padding: 24px 28px 30px;
  background: #f7faf8;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.topbar h2 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.2;
}

.topbar-actions,
.meta-pill,
.mode-switch,
.filter-row,
.chip-row,
.section-head,
.card-head,
.answer-source,
.chat-input {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-pill {
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

.meta-pill strong {
  color: var(--ink);
  font-size: 13px;
}

.mode-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.mode-btn {
  min-height: 31px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.mode-btn.active {
  color: #fff;
  background: var(--primary);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.dashboard-grid,
.metric-grid,
.forecast-grid,
.assistant-layout {
  display: grid;
  gap: var(--space-4);
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: var(--space-4);
}

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

.assistant-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.panel,
.metric-card,
.forecast-card,
.notice-card,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.panel {
  padding: 18px;
}

.metric-card {
  min-height: 142px;
  padding: 17px;
}

.metric-card small,
.forecast-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 30px;
  line-height: 1;
}

.unit {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trend {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.trend.warn {
  color: var(--orange);
}

.section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.chip-row {
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.legend-toggle,
.select-field {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.chip {
  padding: 0 11px;
  font-weight: 700;
}

.chip:hover,
.legend-toggle:hover,
.select-field:hover {
  border-color: rgba(8, 125, 79, 0.38);
}

.chip.active,
.legend-toggle.active {
  border-color: rgba(8, 125, 79, 0.3);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.select-field {
  padding: 0 34px 0 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
}

.badge.warn {
  color: #8f4b05;
  background: #fff1df;
}

.badge.locked {
  color: #697873;
  background: #eef3f0;
}

.chart-box {
  position: relative;
  height: 336px;
  overflow: hidden;
  border: 1px solid #e6eeea;
  border-radius: var(--radius);
  background: #fcfefd;
}

.chart-box.compact {
  height: 260px;
}

.chart-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  min-width: 156px;
  max-width: 260px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(18, 32, 27, 0.12);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 5px;
  font-size: 12px;
}

.chart-tooltip span {
  color: var(--muted);
  font-size: 12px;
}

.chart-tooltip span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--tooltip-color);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

button.legend-item {
  padding: 0 10px;
}

.legend-color {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.forecast-card {
  padding: 16px;
}

.forecast-grid .forecast-card {
  min-height: 148px;
}

.card-head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.forecast-value {
  margin-bottom: 13px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.mini-stats {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.notice-card {
  padding: 16px;
  border-style: dashed;
  background: #fafcfc;
}

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

.notice-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.risk-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.risk-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid #edf3f0;
  background: #fbfdfc;
}

.risk-level {
  width: 12px;
  height: 12px;
  align-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
}

.risk-level.low {
  background: var(--primary);
}

.risk-level.high {
  background: var(--red);
}

.risk-list .risk-level {
  display: block;
  margin-top: 0;
}

.risk-list strong,
.risk-list span {
  display: block;
}

.risk-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.chat-panel {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-history {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow: auto;
}

.message {
  max-width: 88%;
  padding: 12px 13px;
  border-radius: var(--radius);
  line-height: 1.65;
  font-size: 14px;
}

.message.assistant {
  align-self: flex-start;
  background: #f2f7f5;
}

.message.user {
  align-self: flex-end;
  color: #fff;
  background: var(--primary-dark);
}

.answer-source {
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.source-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7eef1;
}

.chat-input {
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-input input {
  min-width: 0;
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.send-btn {
  width: 44px;
  flex: 0 0 44px;
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  font-weight: 800;
}

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

.question-list button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  text-align: left;
  line-height: 1.45;
}

.question-list button:hover {
  border-color: rgba(8, 125, 79, 0.38);
  background: #f0fbf5;
}

.locked-panel {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 18px;
  border: 1px dashed #cdd7dc;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fbfb;
  text-align: center;
}

.locked-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

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

  .two-column,
  .assistant-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    min-height: auto;
    padding-block: 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }

  .hero-section,
  .content-section,
  .workbench-section,
  .trust-strip,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

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

  .console-grid,
  .trust-strip,
  .module-grid,
  .capability-layout {
    grid-template-columns: 1fr;
  }

  .console-grid article,
  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .console-grid article:last-child,
  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .section-heading.compact,
  .workbench-intro {
    display: block;
  }

  .scenario-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    padding: 14px;
  }

  .side-brand {
    padding-bottom: 12px;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-item {
    justify-content: center;
    min-height: 48px;
    padding: 0 6px;
  }

  .nav-item span:last-child {
    display: none;
  }

  .sidebar-note {
    display: none;
  }

  .main {
    padding: 16px 14px 24px;
  }

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

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-grid,
  .metric-grid,
  .forecast-grid {
    grid-template-columns: 1fr;
  }

  .chart-box {
    height: 280px;
  }

  .chat-panel {
    min-height: 540px;
  }

  .site-footer {
    display: grid;
  }
}

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

/* Multi-page workspace additions */
.console-flow {
  min-height: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px;
  background:
    linear-gradient(#edf4f1 1px, transparent 1px) 0 0 / 100% 25%,
    #fcfefd;
}

.console-flow span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 700;
}

.console-flow i {
  height: 1px;
  min-width: 26px;
  flex: 1;
  background: var(--line-strong);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 50px;
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.login-brand-panel {
  display: grid;
  gap: 44px;
}

.login-brand-panel h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.12;
}

.login-brand-panel p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.login-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-capabilities span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

.login-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.login-card p {
  margin-bottom: 22px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label,
.replay-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.login-form input,
.replay-filters input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.identity-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.identity-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.identity-actions button:hover {
  border-color: rgba(8, 125, 79, 0.38);
  color: var(--primary-dark);
}

.login-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 700;
}

.workspace-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  color: #f8fffb;
  background: #10251f;
  border-right: 1px solid #1a3a31;
}

.workspace-sidebar .side-brand {
  padding: 2px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.workspace-sidebar .brand-mark {
  margin-top: 0;
  color: #ffffff;
  background: var(--primary);
  font-size: 22px;
  line-height: 1;
}

.workspace-sidebar .side-brand small {
  color: rgba(255, 255, 255, 0.66);
}

.workspace-nav {
  display: grid;
  gap: 7px;
}

.workspace-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
}

.workspace-nav a:hover,
.workspace-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.workspace-nav span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #c9f7d9;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.workspace-nav a.active span {
  color: #0f2a21;
  background: #a9ebc5;
}

.workspace-nav a.is-building {
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.workspace-nav a.is-building:hover {
  color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.workspace-nav a.is-building.active {
  color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.045);
}

.workspace-nav a.is-building span,
.workspace-nav a.is-building.active span {
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.07);
  filter: saturate(0);
}

.workspace-nav-status {
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.workspace-main {
  min-width: 0;
  padding: 24px 30px 38px;
}

.workspace-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-topbar h1 {
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.2;
}

.workspace-topbar p {
  margin-bottom: 0;
  color: var(--muted);
}

.workspace-grid {
  display: grid;
  gap: var(--space-4);
}

.workspace-grid.two-one {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  margin-bottom: var(--space-4);
}

.table-panel {
  margin-top: var(--space-4);
}

.heatmap {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #e6eeea;
  border-radius: var(--radius);
  background:
    linear-gradient(#eef5f1 1px, transparent 1px) 0 0 / 100% 20%,
    linear-gradient(90deg, #eef5f1 1px, transparent 1px) 0 0 / 20% 100%,
    #fcfefd;
}

.gansu-shape {
  position: absolute;
  inset: 62px 30px 58px;
  border: 1px solid #c9d9d1;
  border-radius: 36% 64% 44% 56% / 58% 42% 58% 42%;
  background: linear-gradient(135deg, rgba(8, 125, 79, 0.08), rgba(47, 111, 237, 0.08));
}

.heat-point {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 82px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 5px 12px rgba(18, 32, 27, 0.16);
  transform: translate(-50%, -50%);
}

.heat-point span {
  font-size: 12px;
  white-space: nowrap;
}

.heat-point strong {
  font-size: 17px;
  line-height: 1;
}

.heat-point.high {
  background: var(--red);
}

.heat-point.medium {
  background: var(--orange);
}

.heat-point.low {
  background: var(--primary);
}

.heat-legend {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.heat-legend i {
  width: 94px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--orange), var(--red));
}

.data-table {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.risk-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.risk-tag.high {
  color: #9f2020;
  background: #fde7e7;
}

.risk-tag.medium {
  color: #8f4b05;
  background: #fff1df;
}

.risk-tag.low {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.locked-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px dashed #cdd7dc;
  border-radius: var(--radius);
  background: #f8fbfb;
}

.locked-banner strong {
  color: var(--primary-dark);
}

.locked-banner span {
  color: var(--muted);
}

.replay-filters label {
  grid-auto-flow: column;
  align-items: center;
}

.replay-filters input {
  width: 76px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.report-body,
.report-index {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-body {
  padding: 30px;
}

.report-body header {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.report-body h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.report-body header p,
.report-body section p {
  color: var(--muted);
  line-height: 1.82;
}

.report-body section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.report-body section:last-child {
  border-bottom: 0;
}

.report-body h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.report-index {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.report-index strong {
  font-size: 18px;
}

.report-index span {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1120px) {
  .login-page,
  .workspace-grid.two-one,
  .report-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .console-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .console-flow i {
    width: 1px;
    min-width: 1px;
    height: 18px;
    margin-inline: auto;
  }

  .login-page {
    width: min(100% - 28px, 1080px);
    grid-template-columns: 1fr;
  }

  .login-brand-panel h1 {
    font-size: 36px;
  }

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

  .workspace-shell {
    display: block;
  }

  .workspace-sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .workspace-sidebar .side-brand {
    padding-bottom: 12px;
  }

  .workspace-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .workspace-nav a {
    justify-content: center;
    min-height: 48px;
    padding: 0 6px;
  }

  .workspace-nav a strong {
    display: none;
  }

  .workspace-nav a.is-building {
    gap: 4px;
  }

  .workspace-nav-status {
    margin-left: 0;
    padding-inline: 3px;
    font-size: 9px;
  }

  .workspace-main {
    padding: 16px 14px 24px;
  }

  .workspace-topbar {
    display: block;
  }

  .topbar-actions,
  .filter-row {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .workspace-grid.two-one,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .heatmap {
    min-height: 360px;
  }

  .heat-point {
    min-width: 68px;
    padding: 6px 7px;
  }

  .heat-point span {
    font-size: 11px;
  }
}

/* Trading terminal override */
.trading-shell {
  height: 100vh;
  overflow: hidden;
  background: #0f1020;
}

.trading-sidebar {
  background: #141524;
  border-right-color: rgba(255, 255, 255, 0.04);
}

.trading-main {
  height: 100vh;
  overflow: hidden;
  padding: 0;
  background: #17182a;
}

.trading-topbar {
  margin: 0;
  padding: 18px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1a1b2e;
  color: #f3f6ff;
}

.trading-topbar .eyebrow,
.trading-topbar p {
  color: rgba(255, 255, 255, 0.66);
}

.trading-topbar h1 {
  color: #fff;
}

.trading-topbar .meta-pill {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
}

.trading-topbar .meta-pill strong {
  color: #fff;
}

.trading-main #workspace-content {
  height: calc(100vh - 96px);
  overflow: auto;
  padding: 18px 20px 24px;
}

.trading-main #workspace-content:has(.overview-workbench),
.trading-main #workspace-content:has(.congestion-workbench) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trading-main #workspace-content::-webkit-scrollbar {
  width: 8px;
}

.trading-main #workspace-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.module-building-state {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 24px;
  color: #f3f6ff;
  text-align: center;
}

.building-state-mark {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.building-state-mark span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.building-state-badge {
  margin-bottom: 12px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 700;
}

.module-building-state h2 {
  margin-bottom: 10px;
  color: #f3f6ff;
  font-size: 24px;
  line-height: 1.35;
}

.module-building-state p {
  max-width: 520px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

.module-building-return {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 700;
}

.module-building-return:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.085);
}

.workspace-toast {
  position: fixed;
  z-index: 50;
  left: calc(50% + 124px);
  bottom: 24px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: #292a3b;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.workspace-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.terminal-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 16px;
}

.terminal-layout-wide {
  grid-template-columns: 330px minmax(0, 1fr);
}

.terminal-layout-wide .trading-chart {
  height: 250px;
}

.terminal-layout-wide .heatmap {
  min-height: 190px;
}

.module-dense .terminal-controls {
  gap: 10px;
}

.module-dense .control-group {
  padding: 10px;
}

.module-dense .control-group h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.module-dense .terminal-chart-panel {
  padding: 10px;
}

.module-dense .terminal-panel-head {
  margin-bottom: 8px;
}

.module-dense .terminal-stack {
  gap: 8px;
}

.module-dense .trading-chart {
  height: 218px;
}

.module-dense .trading-chart.tall {
  height: 248px;
}

.module-dense .terminal-layout-wide .heatmap {
  min-height: 155px;
}

.module-dense .compact-list p + p {
  margin-top: 6px;
}

.module-dense .terminal-copy {
  margin-top: 6px;
  line-height: 1.5;
}

.terminal-stack {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.terminal-controls {
  display: grid;
  gap: 12px;
  align-content: start;
}

.control-group {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: #1f2035;
  color: #f4f7ff;
}

.control-group h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.check-row,
.date-row,
.compact-list p,
.control-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
}

.check-row + .check-row,
.compact-list p + p {
  margin-top: 10px;
}

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

.split-column {
  display: grid;
  gap: 8px;
}

.inline-selects {
  display: grid;
  gap: 8px;
}

.inline-selects.two {
  grid-template-columns: minmax(92px, 0.75fr) minmax(150px, 1.25fr);
}

.inline-selects.three {
  grid-template-columns: minmax(76px, 0.8fr) minmax(86px, 0.85fr) minmax(118px, 1.35fr);
}

.replay-object-grid {
  display: grid;
  gap: 8px;
}

.inline-selects.replay-top {
  grid-template-columns: minmax(96px, 1fr) minmax(96px, 1fr);
}

.replay-object-grid #replayStation {
  width: 100%;
}

.replay-object {
  margin-right: 0;
}

.check-row input {
  accent-color: #5b85ff;
}

.date-row {
  justify-content: space-between;
  margin-bottom: 10px;
}

.date-row input,
.select-field {
  height: 34px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  background: #25263d;
}

.compact-list span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.compact-list strong {
  margin-left: auto;
  color: #fff;
  font-size: 13px;
}

.control-hint {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.terminal-chart-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: #1b1c30;
}

.terminal-chart-panel.compact-panel {
  padding-bottom: 12px;
}

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

.terminal-panel-head h2 {
  margin-bottom: 3px;
  color: #fff;
  font-size: 16px;
}

.terminal-panel-head span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.panel-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.data-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
  white-space: nowrap;
}

.data-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
}

.data-status.live {
  border-color: rgba(80, 210, 143, 0.26);
  background: rgba(80, 210, 143, 0.1);
  color: #9be7be;
}

.data-status.live i {
  background: #50d28f;
}

.data-status.warn {
  border-color: rgba(255, 188, 84, 0.28);
  background: rgba(255, 188, 84, 0.1);
  color: #ffd18a;
}

.data-status.warn i {
  background: #ffbc54;
}

.data-status.loading {
  border-color: rgba(91, 133, 255, 0.28);
  background: rgba(91, 133, 255, 0.1);
  color: #a8bdff;
}

.data-status.loading i {
  background: #5b85ff;
}

.terminal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

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

.terminal-legend i {
  width: 10px;
  height: 2px;
  border-radius: 999px;
  display: inline-block;
}

.trading-chart {
  height: 280px;
}

.trading-chart.tall {
  height: 320px;
}

.terminal-details {
  margin-top: 12px;
  color: #f4f7ff;
}

.control-group.terminal-details {
  margin-top: 0;
}

.terminal-details summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.terminal-details .data-table {
  margin-top: 12px;
}

.terminal-details table {
  min-width: 100%;
}

.terminal-details th,
.terminal-details td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.terminal-details th {
  color: rgba(255, 255, 255, 0.52);
}

.terminal-details .data-table {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.terminal-copy {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.trading-main .locked-banner {
  border-color: rgba(255, 216, 77, 0.26);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 216, 77, 0.08);
}

.trading-main .locked-banner strong {
  color: #ffd84d;
}

.trading-main .locked-banner span {
  color: rgba(255, 255, 255, 0.68);
}

.trading-main .heatmap {
  min-height: 220px;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 20% 100%,
    radial-gradient(circle at 68% 58%, rgba(91, 133, 255, 0.18), transparent 26%),
    #16172a;
}

.trading-main .terminal-layout-wide .heatmap {
  min-height: 190px;
}

.trading-main .gansu-shape {
  inset: 30px 24px 30px;
  border-color: rgba(98, 199, 255, 0.22);
  background: linear-gradient(135deg, rgba(91, 133, 255, 0.12), rgba(255, 216, 77, 0.05));
}

.trading-main .heat-point {
  min-width: 74px;
  padding: 6px 8px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #3f78ff;
  box-shadow: none;
}

.trading-main .heat-point.high {
  background: #e95f5f;
}

.trading-main .heat-point.medium {
  background: #d99b32;
}

.trading-main .heat-point.low {
  background: #338d73;
}

.trading-main .heat-point span {
  font-size: 11px;
}

.trading-main .heat-point strong {
  font-size: 15px;
}

.trading-main .heat-legend {
  color: rgba(255, 255, 255, 0.58);
}

.trading-main .gansu-map {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 360px;
  overflow: hidden;
  background: #151628;
}

.gansu-map-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.gansu-map-plot {
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.gansu-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gansu-city-shape {
  vector-effect: non-scaling-stroke;
  fill: #20243a;
  stroke: rgba(116, 140, 184, 0.58);
  stroke-width: 0.9;
  transition: fill 180ms ease-out, stroke 180ms ease-out;
}

.gansu-city-shape:nth-of-type(3n + 1) {
  fill: #22283e;
}

.gansu-city-shape:nth-of-type(3n + 2) {
  fill: #1d2937;
}

.gansu-city-shape:hover {
  fill: #29344d;
  stroke: rgba(145, 170, 221, 0.84);
}

.map-loading,
.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 12px;
}

.map-loading span {
  width: 26px;
  height: 3px;
  margin-inline: auto;
  border-radius: 2px;
  background: #5b85ff;
  animation: map-loading-pulse 900ms ease-in-out infinite alternate;
}

@keyframes map-loading-pulse {
  to {
    width: 62px;
    background: #ffd84d;
  }
}

.map-station {
  position: absolute;
  z-index: 3;
  left: var(--map-x);
  top: var(--map-y);
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.station-marker-dot {
  position: absolute;
  z-index: 2;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border: 2px solid #f7f9ff;
  border-radius: 50%;
  background: #338d73;
}

.station-marker-leader {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: var(--leader-length, 0);
  height: 1px;
  background: rgba(121, 150, 202, 0.48);
  transform: rotate(var(--leader-angle, 0rad));
  transform-origin: left center;
  pointer-events: none;
}

.map-station.medium .station-marker-dot {
  background: #d99b32;
}

.map-station.high .station-marker-dot {
  background: #e95f5f;
}

.map-station.risk-low .station-marker-dot {
  box-shadow: 0 0 0 3px rgba(51, 141, 115, 0.28);
}

.map-station.risk-medium .station-marker-dot {
  box-shadow: 0 0 0 3px rgba(217, 155, 50, 0.3);
}

.map-station.risk-high .station-marker-dot {
  box-shadow: 0 0 0 3px rgba(233, 95, 95, 0.34);
}

.station-marker-label {
  position: absolute;
  z-index: 1;
  left: var(--label-x);
  top: var(--label-y);
  display: grid;
  width: 108px;
  min-height: 36px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(20, 21, 36, 0.94);
  text-align: left;
  transition: border-color 160ms ease-out, background 160ms ease-out;
}

.station-marker-label strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-marker-label span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  line-height: 1.35;
  white-space: nowrap;
}

.station-marker-tooltip {
  position: absolute;
  z-index: 8;
  left: 16px;
  top: -64px;
  display: none;
  width: max-content;
  max-width: 230px;
  padding: 7px 9px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: #0f1020;
  font-size: 10px;
  line-height: 1.55;
  text-align: left;
  pointer-events: none;
}

.map-station.tooltip-left .station-marker-tooltip {
  left: auto;
  right: 16px;
}

.map-station:hover,
.map-station:focus-visible,
.map-station.selected {
  z-index: 7;
  outline: none;
}

.map-station:hover .station-marker-label,
.map-station:focus-visible .station-marker-label,
.map-station.selected .station-marker-label {
  border-color: rgba(98, 199, 255, 0.66);
  background: #25283d;
}

.map-station:hover .station-marker-tooltip,
.map-station:focus-visible .station-marker-tooltip {
  display: block;
}

.map-station-detail {
  min-height: 58px;
  padding: 8px 180px 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.58);
  background: #18192b;
  font-size: 11px;
}

.map-station-detail strong,
.map-station-detail span,
.map-station-detail small {
  display: block;
}

.map-station-detail strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 12px;
}

.map-station-detail small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
}

.gansu-map .heat-legend {
  right: 12px;
  bottom: 33px;
}

.gansu-map .heat-legend i {
  width: 72px;
  background: linear-gradient(90deg, #338d73, #d99b32, #e95f5f);
}

.map-source-note {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.map-fallback {
  position: relative;
  height: 100%;
  padding: 20px;
  place-content: start stretch;
  text-align: left;
}

.map-fallback strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.map-fallback-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: 12px;
}

.map-fallback-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.map-fallback-list div strong {
  font-size: 12px;
}

.trading-main .data-table table {
  min-width: 520px;
}

.trading-main th,
.trading-main td {
  padding: 9px 10px;
  border-bottom-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.trading-main th {
  color: rgba(255, 255, 255, 0.48);
}

.trading-main .risk-tag {
  min-height: 20px;
  border-radius: 4px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.trading-main .risk-tag.high {
  color: #ffc6c6;
  background: rgba(233, 95, 95, 0.18);
}

.trading-main .risk-tag.medium {
  color: #ffe0a2;
  background: rgba(217, 155, 50, 0.18);
}

.trading-main .risk-tag.low {
  color: #b9f4df;
  background: rgba(51, 141, 115, 0.18);
}

.trading-main .risk-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.trading-main .risk-list li {
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.trading-main .risk-list strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.trading-main .risk-list span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.35;
}

.trading-main .risk-level {
  flex: 0 0 auto;
}

.trading-main .overview-workbench {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.market-overview-strip {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: #1b1c30;
  color: #fff;
}

.market-strip-title {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.market-strip-title h2 {
  font-size: 16px;
}

.market-strip-title span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.market-strip-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.market-strip-metrics div {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 11px 18px;
}

.market-strip-metrics div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.market-strip-metrics dt {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.market-strip-metrics dd {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.market-strip-metrics dd span {
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 500;
}

.overview-analysis-grid {
  display: grid;
  grid-template-columns: minmax(460px, 0.52fr) minmax(440px, 0.48fr);
  gap: 10px;
  min-height: 0;
}

.trading-main .congestion-workbench {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 238px minmax(300px, 0.88fr) minmax(390px, 1.12fr);
  gap: 10px;
  overflow: hidden;
}

.trading-main #workspace-content:has(.congestion-workbench) .locked-banner {
  flex: 0 0 auto;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.trading-main .congestion-workbench .terminal-controls {
  min-height: 0;
  overflow: hidden;
}

.trading-main .overview-workbench .terminal-chart-panel,
.trading-main .congestion-workbench .terminal-chart-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.trading-main .congestion-workbench .heatmap-panel {
  overflow: hidden;
}

.trading-main .overview-workbench .heatmap-panel {
  overflow: hidden;
}

.trading-main .overview-workbench .heatmap,
.trading-main .congestion-workbench .heatmap {
  flex: 1;
  min-height: 0;
}

.trading-main .overview-workbench .trend-panel .trading-chart,
.trading-main .congestion-workbench .trend-panel .trading-chart {
  flex: 1;
  height: auto;
  min-height: 0;
}

.trading-main .overview-workbench .trend-panel .chart-box {
  border: 0;
}

.trading-main .risk-ranking-window {
  min-height: 0;
  overflow: hidden;
}

.trading-main .risk-ranking-window .risk-list {
  max-height: 245px;
  overflow: auto;
  padding-right: 2px;
}

.trading-main .risk-ranking-window .risk-list::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.trading-main .risk-ranking-window .risk-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.trading-main .run-hint-window {
  overflow: hidden;
}

@media (max-width: 1260px) {
  .trading-main .congestion-workbench {
    grid-template-columns: 232px minmax(290px, 0.85fr) minmax(360px, 1.15fr);
  }

  .overview-analysis-grid {
    grid-template-columns: minmax(440px, 0.52fr) minmax(420px, 0.48fr);
  }
}

@media (max-width: 1080px) {
  .trading-main #workspace-content:has(.overview-workbench),
  .trading-main #workspace-content:has(.congestion-workbench) {
    display: block;
    overflow: auto;
  }

  .trading-main .congestion-workbench {
    height: auto;
    min-height: 0;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  .trading-main .overview-workbench {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .overview-analysis-grid {
    grid-template-columns: 1fr;
  }

  .trading-main .overview-workbench .heatmap,
  .trading-main .congestion-workbench .heatmap {
    min-height: 360px;
  }

  .trading-main .overview-workbench .trend-panel .trading-chart,
  .trading-main .congestion-workbench .trend-panel .trading-chart {
    min-height: 260px;
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .trading-main .overview-workbench .heatmap {
    min-height: 470px;
  }
}

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

  .market-strip-title {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    padding: 11px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .market-strip-title span {
    text-align: right;
  }

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

  .market-strip-metrics div {
    padding: 10px 12px;
  }

  .market-strip-metrics div:nth-child(3) {
    border-left: 0;
  }

  .market-strip-metrics div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .market-strip-metrics dd {
    font-size: 18px;
  }

  .map-station-detail {
    padding-right: 12px;
    padding-bottom: 50px;
  }

  .gansu-map .heat-legend {
    left: 12px;
    right: auto;
    bottom: 29px;
  }

  .map-source-note {
    left: 12px;
    right: auto;
  }

  .station-marker-label {
    width: 94px;
  }

  .station-marker-tooltip {
    width: min(210px, calc(100vw - 40px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-toast {
    transition: none;
  }

  .map-loading span {
    animation: none;
  }

  .gansu-city-shape,
  .station-marker-label {
    transition: none;
  }
}

.report-terminal {
  max-height: calc(100vh - 136px);
  overflow: auto;
}

.report-terminal::-webkit-scrollbar {
  width: 8px;
}

.report-terminal::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.report-section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #f4f7ff;
}

.report-section summary {
  cursor: pointer;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.report-section p {
  max-width: 78ch;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.8;
}

.assistant-layout.terminal-layout {
  grid-template-columns: minmax(0, 1.62fr) minmax(240px, 0.78fr);
  align-items: stretch;
}

.assistant-layout .chat-panel {
  min-height: 0;
  padding: 12px;
  background: #1b1c30;
}

.assistant-layout .chat-history {
  padding: 6px 6px 16px;
}

.assistant-layout .message {
  max-width: 92%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  background: #25263d;
}

.assistant-layout .message.assistant {
  background: #1f2035;
}

.assistant-layout .message.user {
  border-color: rgba(91, 133, 255, 0.28);
  background: rgba(91, 133, 255, 0.16);
}

.assistant-layout .answer-source {
  color: rgba(255, 255, 255, 0.54);
}

.assistant-layout .source-chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.assistant-layout .chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 0 0;
  border-top-color: rgba(255, 255, 255, 0.06);
  background: transparent;
}

.assistant-layout .chat-input input {
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  background: #25263d;
}

.assistant-layout .send-btn {
  border-color: #5b85ff;
  background: #5b85ff;
}

.assistant-layout .assistant-tools {
  display: grid;
  gap: 12px;
}

.assistant-layout .assistant-side {
  align-content: start;
}

.assistant-layout .assistant-tools {
  padding: 12px;
}

.assistant-layout .question-list button {
  min-height: 36px;
  padding: 6px 8px;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  background: #25263d;
}

.assistant-layout .question-list button:hover {
  border-color: rgba(91, 133, 255, 0.42);
  background: rgba(91, 133, 255, 0.12);
}

.chart-panel {
  padding: 14px;
}

.chart-panel .section-head h2 {
  color: var(--ink);
}

.chart-panel .section-head p {
  color: var(--muted);
}

.trading-chart canvas {
  background: transparent;
}

@media (max-width: 1120px) {
  .terminal-layout,
  .assistant-layout.terminal-layout {
    grid-template-columns: 1fr;
  }

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

  .inline-selects.two,
  .inline-selects.three,
  .inline-selects.replay-top {
    grid-template-columns: 1fr;
  }

  .replay-object {
    margin-right: 0;
  }
}

@media (max-width: 820px) {
  .trading-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .trading-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .trading-main #workspace-content {
    height: auto;
    overflow: visible;
    padding: 12px;
  }

  .module-building-state {
    min-height: max(420px, calc(100vh - 380px));
    padding: 36px 20px 44px;
  }

  .workspace-toast {
    left: 50%;
    bottom: 16px;
  }

  .terminal-panel-head {
    display: block;
  }

  .terminal-legend {
    margin-top: 10px;
  }
}

/* Landing page */

body[data-page="home"] {
  --landing-header-height: 72px;
  --landing-shell: 1180px;
  background: #f7faf8;
  color: var(--ink);
  font-size: 1rem;
  font-kerning: normal;
  overflow-x: hidden;
}

body[data-page="home"] main {
  display: block;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-shell {
  width: min(var(--landing-shell), calc(100% - 48px));
  margin-inline: auto;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: var(--landing-header-height);
  padding: 0 max(24px, calc((100vw - var(--landing-shell)) / 2));
  border-bottom: 1px solid rgba(200, 214, 208, 0.72);
  background: rgba(247, 250, 248, 0.96);
  backdrop-filter: blur(12px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.landing-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
}

.landing-brand-copy {
  min-width: 0;
}

.landing-brand-copy strong,
.landing-brand-copy small {
  display: block;
  white-space: nowrap;
}

.landing-brand-copy strong {
  font-size: 1rem;
  line-height: 1.25;
}

.landing-brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.6875rem;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #43534e;
}

.landing-nav a,
.landing-login-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
}

.landing-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.landing-nav a:hover,
.landing-login-link:hover {
  color: var(--primary-dark);
}

.landing-nav a:hover::after,
.landing-nav a:focus-visible::after {
  transform: scaleX(1);
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-button,
.demo-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 160ms ease,
    transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.landing-button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.875rem;
}

.landing-button:hover,
.demo-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.landing-button:active,
.demo-submit:active {
  transform: translateY(0);
}

.landing-text-link,
.demo-login-link,
.permission-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.landing-text-link span,
.demo-login-link span,
.permission-link span {
  transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.landing-text-link:hover span,
.demo-login-link:hover span,
.permission-link:hover span {
  transform: translateX(4px);
}

.landing-hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 24px);
  align-items: center;
  padding: clamp(64px, 8vw, 104px) 0 clamp(76px, 8vw, 96px);
}

.landing-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 38vw;
  height: 100%;
  background: var(--primary-soft);
  content: "";
  opacity: 0.58;
}

.landing-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(540px, 1.12fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
}

.landing-kicker,
.landing-section-label {
  margin: 0 0 18px;
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 800;
}

.landing-hero-copy h1 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(2.625rem, 5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.landing-hero-copy h1 span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.34em;
  line-height: 1.3;
  letter-spacing: 0;
}

.landing-hero-lead {
  max-width: 38rem;
  margin: 0 0 30px;
  color: #43534e;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.landing-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.landing-proof-list li {
  display: grid;
  gap: 2px;
}

.landing-proof-list strong {
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.landing-proof-list span {
  color: var(--muted);
  font-size: 0.75rem;
}

.product-preview {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 33, 28, 0.15);
  animation: preview-enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-preview::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 214, 208, 0.74);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.product-preview-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--deep);
}

.product-preview-brand,
.product-preview-meta,
.preview-live {
  display: flex;
  align-items: center;
}

.product-preview-brand {
  gap: 9px;
}

.product-preview-brand > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #42c98b;
  box-shadow: 0 0 0 4px rgba(66, 201, 139, 0.12);
}

.product-preview-brand strong {
  font-size: 0.75rem;
}

.product-preview-meta {
  gap: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.625rem;
}

.preview-live {
  gap: 6px;
  color: rgba(255, 255, 255, 0.84);
}

.preview-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42c98b;
}

.product-preview-body {
  display: grid;
  min-height: 490px;
  grid-template-columns: 48px minmax(0, 1fr);
  background: #f5f8f6;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 25px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.preview-sidebar span {
  width: 17px;
  height: 17px;
  border: 1px solid #c8d6d0;
  border-radius: 5px;
  background: #f5f8f6;
}

.preview-sidebar span.is-active {
  border-color: var(--primary);
  background: var(--primary);
}

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

.preview-heading,
.preview-summary,
.preview-chart-head,
.preview-chart-head > div,
.preview-days {
  display: flex;
  align-items: center;
}

.preview-heading {
  justify-content: space-between;
  gap: 18px;
}

.preview-heading > div:first-child span,
.preview-heading > div:first-child strong {
  display: block;
}

.preview-heading > div:first-child span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.625rem;
}

.preview-heading > div:first-child strong {
  font-size: 0.875rem;
}

.preview-days {
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.preview-days span {
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 700;
}

.preview-days span.is-active {
  color: #ffffff;
  background: var(--primary);
}

.preview-summary {
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.preview-primary-metric,
.preview-risk {
  min-width: 0;
  min-height: 104px;
  padding: 17px;
  background: #ffffff;
}

.preview-primary-metric {
  flex: 1.15;
}

.preview-risk {
  flex: 0.85;
}

.preview-primary-metric > span,
.preview-risk > span,
.preview-risk small {
  display: block;
  color: var(--muted);
  font-size: 0.625rem;
}

.preview-primary-metric strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 1.75rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.preview-primary-metric strong small {
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 600;
}

.preview-primary-metric em {
  color: var(--primary-dark);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 700;
}

.preview-risk strong {
  display: block;
  margin: 9px 0 7px;
  color: var(--orange);
  font-size: 1.35rem;
}

.preview-chart {
  margin-top: 14px;
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.preview-chart-head {
  justify-content: space-between;
  gap: 16px;
}

.preview-chart-head strong {
  font-size: 0.75rem;
}

.preview-chart-head > div {
  gap: 12px;
  color: var(--muted);
  font-size: 0.5625rem;
}

.preview-chart-head span {
  position: relative;
  padding-left: 12px;
}

.preview-chart-head span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--primary);
  content: "";
  transform: translateY(-50%);
}

.preview-chart-head .legend-live::before {
  background: var(--blue);
}

.preview-chart svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  overflow: visible;
}

.chart-grid line {
  stroke: #e8efec;
  stroke-width: 1;
}

.chart-area {
  fill: rgba(8, 125, 79, 0.08);
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: chart-draw 1.4s 180ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.chart-line-day {
  stroke: var(--primary);
}

.chart-line-live {
  stroke: var(--blue);
  stroke-width: 2;
}

.chart-point {
  fill: #ffffff;
  stroke: var(--primary);
  stroke-width: 3;
}

.preview-chart-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 3px;
  color: var(--subtle);
  font-size: 0.5rem;
}

.landing-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  transform: translateX(-50%);
}

.landing-scroll-cue span {
  color: var(--primary);
}

.landing-section {
  padding: clamp(88px, 10vw, 132px) 0;
  scroll-margin-top: var(--landing-header-height);
}

.landing-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: end;
  margin-bottom: 46px;
}

.landing-section-heading h2,
.workflow-copy h2,
.demo-copy h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.landing-section-heading > p,
.workflow-intro,
.demo-copy > p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.landing-forecast {
  background: #ffffff;
}

.forecast-matrix {
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.forecast-matrix-head,
.forecast-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(145px, 0.72fr));
}

.forecast-matrix-head {
  min-height: 54px;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.forecast-matrix-head strong {
  padding-left: 24px;
  color: var(--ink);
  font-size: 0.8125rem;
}

.forecast-row {
  min-height: 146px;
  border-top: 1px solid var(--line);
}

.forecast-row-title {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 30px 24px 0;
}

.forecast-row-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.875rem;
  font-weight: 800;
}

.forecast-row:nth-of-type(2) .forecast-row-index {
  color: #006f7d;
  background: #e5f5f7;
}

.forecast-row:nth-of-type(3) .forecast-row-index {
  color: #285fc7;
  background: #eaf0ff;
}

.forecast-row-title h3 {
  margin: 0 0 5px;
  font-size: 1.125rem;
}

.forecast-row-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.forecast-cell {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.forecast-cell strong,
.forecast-cell span {
  position: relative;
  z-index: 1;
}

.forecast-cell strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.forecast-cell span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.6875rem;
}

.forecast-cell i {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: var(--level);
  max-height: 66px;
  border-radius: 5px 5px 0 0;
  background: rgba(8, 125, 79, 0.08);
  transform: translateY(35%);
}

.forecast-cell-weather i {
  background: rgba(0, 143, 161, 0.09);
}

.forecast-cell-source i {
  background: rgba(47, 111, 237, 0.08);
}

.forecast-outcomes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
}

.forecast-outcomes p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.landing-workflow {
  background: #f2f6f4;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.84fr);
  gap: clamp(70px, 10vw, 130px);
  align-items: center;
}

.workflow-copy h2 {
  max-width: 14ch;
}

.workflow-intro {
  margin-top: 22px;
}

.workflow-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-steps::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.workflow-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
}

.workflow-steps li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--primary-dark);
  background: #f2f6f4;
  font-size: 0.8125rem;
  font-weight: 800;
}

.workflow-steps li:first-child > span {
  border-color: var(--primary);
  color: #ffffff;
  background: var(--primary);
}

.workflow-steps li > div {
  padding-top: 4px;
}

.workflow-steps strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.workflow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.permission-panel {
  padding: 34px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--deep);
  box-shadow: 0 8px 24px rgba(15, 33, 28, 0.14);
}

.permission-panel-head {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.permission-panel-head p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
  font-weight: 700;
}

.permission-panel-head h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.permission-column {
  padding: 27px 0 5px;
}

.permission-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.permission-tier span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  font-weight: 700;
}

.permission-tier strong {
  font-size: 0.9375rem;
}

.permission-column ul {
  display: grid;
  gap: 10px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.permission-column li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.permission-column li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  content: "";
}

.permission-column-premium li::before {
  background: #42c98b;
}

.permission-divider {
  position: relative;
  margin: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.permission-divider span {
  position: relative;
  top: -11px;
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(66, 201, 139, 0.3);
  border-radius: 999px;
  color: #8de0b6;
  background: var(--deep);
  font-size: 0.625rem;
  font-weight: 700;
}

.permission-link {
  width: 100%;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.8125rem;
}

.landing-demo {
  padding: clamp(88px, 10vw, 128px) 0;
  scroll-margin-top: var(--landing-header-height);
  color: #ffffff;
  background: #0b1d18;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1fr);
  gap: clamp(64px, 10vw, 130px);
  align-items: start;
}

.demo-copy {
  padding-top: 12px;
}

.demo-copy h2 {
  max-width: 13ch;
}

.demo-copy > p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.66);
}

.demo-deliverables {
  display: grid;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-deliverables div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-deliverables strong {
  font-size: 0.875rem;
}

.demo-deliverables span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
}

.demo-login-link {
  margin-top: 24px;
  color: #8de0b6;
  font-size: 0.875rem;
}

.demo-form {
  padding: 34px;
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
}

.demo-form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.demo-form-heading h3 {
  margin: 0;
  font-size: 1.375rem;
}

.demo-form-heading p {
  max-width: 16rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
}

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

.form-field {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: #31423c;
  font-size: 0.8125rem;
  font-weight: 700;
}

.form-field label span {
  color: var(--subtle);
  font-size: 0.6875rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: #ffffff;
  font-size: 1rem;
}

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

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #65736e;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #9dafa7;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(8, 125, 79, 0.18);
  outline-offset: 1px;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--red);
}

.field-error {
  min-height: 18px;
  color: #b92f2f;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.field-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: var(--subtle);
  font-size: 0.625rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.consent-error {
  display: block;
  margin-top: 4px;
}

.demo-submit {
  position: relative;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
}

.demo-submit i {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spin 700ms linear infinite;
}

.demo-submit.is-loading i {
  display: block;
}

.demo-submit:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.form-status.is-success {
  color: var(--primary-dark);
}

.form-status.is-error {
  color: #b92f2f;
}

.form-status.is-warning {
  color: #9a570f;
}

.landing-footer {
  color: rgba(255, 255, 255, 0.56);
  background: #071510;
}

.landing-footer .landing-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.75rem;
}

.landing-footer span:first-child {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

@keyframes preview-enter {
  from {
    opacity: 0.86;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .landing-header {
    gap: 20px;
  }

  .landing-nav {
    gap: 18px;
  }

  .landing-hero-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(470px, 1.18fr);
    gap: 42px;
  }

  .product-preview-body {
    min-height: 450px;
  }

  .workflow-layout,
  .demo-layout {
    gap: 60px;
  }
}

@media (max-width: 920px) {
  body[data-page="home"] {
    --landing-header-height: 64px;
  }

  .landing-header {
    grid-template-columns: 1fr auto;
    padding-inline: 24px;
  }

  .landing-nav {
    display: none;
  }

  .landing-login-link {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 70px;
  }

  .landing-hero::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 46%;
  }

  .landing-hero-layout,
  .workflow-layout,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .landing-hero-layout {
    gap: 52px;
  }

  .landing-hero-copy {
    max-width: 720px;
  }

  .landing-scroll-cue {
    display: none;
  }

  .product-preview {
    width: min(100%, 720px);
    justify-self: center;
  }

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

  .forecast-row {
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .forecast-matrix-head {
    display: none;
  }

  .forecast-row:first-of-type {
    border-top: 0;
  }

  .forecast-row-title {
    grid-column: 1 / -1;
    min-height: 78px;
    padding: 18px 0;
  }

  .forecast-cell {
    min-height: 96px;
    padding: 28px 14px 16px;
    border-top: 1px solid var(--line);
  }

  .forecast-cell:nth-child(2) {
    border-left: 0;
  }

  .forecast-cell::before {
    position: absolute;
    top: 10px;
    left: 14px;
    z-index: 1;
    color: var(--muted);
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 800;
  }

  .forecast-cell:nth-child(2)::before {
    content: "D+1";
  }

  .forecast-cell:nth-child(3)::before {
    content: "D+2";
  }

  .forecast-cell:nth-child(4)::before {
    content: "D+3";
  }

  .workflow-layout {
    gap: 54px;
  }

  .permission-panel {
    width: min(100%, 620px);
  }

  .demo-layout {
    gap: 54px;
  }

  .demo-copy {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .landing-shell {
    width: min(100% - 32px, var(--landing-shell));
  }

  .landing-header {
    padding-inline: 16px;
  }

  .landing-brand-copy small {
    display: none;
  }

  .landing-brand-copy strong {
    font-size: 0.875rem;
  }

  .landing-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 1.125rem;
  }

  .landing-button-small {
    min-height: 40px;
    padding-inline: 13px;
  }

  .landing-hero {
    padding: 54px 0 66px;
  }

  .landing-hero::before {
    height: 42%;
  }

  .landing-hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .landing-hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .landing-hero-actions {
    align-items: stretch;
  }

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

  .landing-hero-actions .landing-text-link {
    justify-content: center;
  }

  .landing-proof-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .landing-proof-list strong {
    font-size: 0.8125rem;
  }

  .product-preview-bar {
    min-height: 46px;
  }

  .product-preview-meta > span:last-child {
    display: none;
  }

  .product-preview-body {
    min-height: 390px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .preview-sidebar {
    gap: 15px;
    padding-top: 20px;
  }

  .preview-sidebar span {
    width: 14px;
    height: 14px;
  }

  .preview-workspace {
    padding: 14px;
  }

  .preview-heading {
    align-items: flex-start;
  }

  .preview-heading > div:first-child strong {
    font-size: 0.75rem;
  }

  .preview-days span {
    padding: 4px 6px;
    font-size: 0.5625rem;
  }

  .preview-summary {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .preview-primary-metric,
  .preview-risk {
    min-height: 86px;
    padding: 12px;
  }

  .preview-primary-metric strong {
    font-size: 1.25rem;
  }

  .preview-risk strong {
    font-size: 1rem;
  }

  .preview-risk small {
    line-height: 1.35;
  }

  .preview-chart {
    padding: 12px 10px 9px;
  }

  .preview-chart svg {
    min-height: 145px;
  }

  .preview-chart-head > div {
    display: none;
  }

  .landing-section,
  .landing-demo {
    padding: 76px 0;
  }

  .landing-section-heading h2,
  .workflow-copy h2,
  .demo-copy h2 {
    font-size: 2.25rem;
  }

  .forecast-outcomes {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .forecast-row-title {
    min-height: 72px;
    gap: 12px;
  }

  .forecast-row-title p {
    line-height: 1.45;
  }

  .forecast-cell {
    min-height: 90px;
    padding: 28px 10px 14px;
  }

  .forecast-cell::before {
    left: 10px;
  }

  .forecast-cell strong {
    font-size: 1rem;
  }

  .forecast-cell span {
    font-size: 0.625rem;
    line-height: 1.35;
  }

  .forecast-cell i {
    right: 8px;
    left: 8px;
  }

  .workflow-steps {
    margin-top: 32px;
  }

  .workflow-steps li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .workflow-steps::before {
    left: 23px;
  }

  .workflow-steps li > span {
    width: 48px;
    height: 48px;
  }

  .permission-panel,
  .demo-form {
    padding: 24px;
  }

  .permission-tier {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .demo-form-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .demo-form-heading p {
    text-align: left;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .landing-footer .landing-shell {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (max-width: 390px) {
  .landing-header-actions {
    gap: 8px;
  }

  .landing-button-small {
    padding-inline: 10px;
    font-size: 0.8125rem;
  }

  .landing-proof-list {
    grid-template-columns: 1fr;
  }

  .landing-proof-list li {
    grid-template-columns: 105px 1fr;
    align-items: baseline;
  }

  .preview-heading {
    flex-direction: column;
  }

  .preview-primary-metric strong small {
    display: block;
    margin-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-preview,
  .chart-line,
  .demo-submit i {
    animation: none;
  }

  .chart-line {
    stroke-dashoffset: 0;
  }
}
