:root {
  --bg: #d9ddd6;
  --paper: #fbfbf7;
  --paper-soft: #eef1ec;
  --ink: #1a211f;
  --muted: #75807b;
  --line: rgba(26, 33, 31, 0.11);
  --line-strong: rgba(26, 33, 31, 0.2);
  --accent: #ef5f28;
  --accent-dark: #c84a1c;
  --green: #1e8b66;
  --blue: #5278a5;
  --charcoal: #20252d;
  --radius-xl: 38px;
  --radius-lg: 28px;
  --shadow-soft: 0 28px 80px rgba(38, 46, 43, 0.13);
  --shadow-tight: 0 16px 38px rgba(38, 46, 43, 0.09);
  --font: "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans CJK SC",
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 15% 15%, rgba(239, 95, 40, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 24%, rgba(82, 120, 165, 0.16), transparent 30rem),
    linear-gradient(135deg, #d4d9d4 0%, #e9ebe7 52%, #cfd5d1 100%);
}

button,
input {
  font: inherit;
}

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

button:active,
.solid-button:active,
.ghost-button:active,
.drop-zone:active {
  transform: translateY(1px) scale(0.99);
}

.grain,
.cursor-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(26, 33, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 33, 31, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.cursor-light {
  z-index: -1;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 35%),
    rgba(239, 95, 40, 0.16),
    rgba(82, 120, 165, 0.08) 38%,
    transparent 70%
  );
}

.landing-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 36px;
  overflow: hidden;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-studio-entered .landing-gate {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(0.985);
}

body:not(.is-studio-entered) .studio-shell,
body:not(.is-studio-entered) .assistant-widget {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
}

.landing-orbit {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(26, 33, 31, 0.08);
  border-radius: 48px;
}

.landing-orbit span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 18px 40px rgba(239, 95, 40, 0.22);
  animation: orbitFloat 7s ease-in-out infinite;
}

.landing-orbit span:nth-child(1) {
  left: 12%;
  top: 18%;
}

.landing-orbit span:nth-child(2) {
  right: 18%;
  top: 20%;
  background: var(--green);
  animation-delay: -1.6s;
}

.landing-orbit span:nth-child(3) {
  left: 22%;
  bottom: 18%;
  background: var(--blue);
  animation-delay: -3.2s;
}

.landing-orbit span:nth-child(4) {
  right: 14%;
  bottom: 20%;
  animation-delay: -4.4s;
}

.landing-card {
  position: relative;
  width: min(1120px, 100%);
  min-height: min(680px, calc(100dvh - 72px));
  display: grid;
  align-content: space-between;
  gap: 42px;
  padding: clamp(30px, 5vw, 68px);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 52px;
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 95, 40, 0.16), transparent 22rem),
    radial-gradient(circle at 10% 88%, rgba(30, 139, 102, 0.14), transparent 20rem),
    rgba(251, 251, 247, 0.82);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(26px);
}

.landing-meta,
.team-ribbon,
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.landing-meta span,
.team-ribbon span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.54);
}

.landing-title {
  max-width: 840px;
}

.landing-title h1 {
  font-size: clamp(54px, 8vw, 118px);
}

.landing-title p:not(.eyebrow) {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.9;
}

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

.studio-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  width: min(1480px, calc(100% - 56px));
  height: calc(100dvh - 56px);
  margin: 28px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 44px;
  background: rgba(239, 242, 237, 0.82);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.side-rail {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  background: rgba(251, 251, 247, 0.58);
}

.brand-mark {
  display: flex;
  gap: 13px;
  align-items: center;
}

.mark-grid {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 46%, var(--paper) 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, var(--paper) 46% 54%, transparent 54%),
    var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.brand-mark strong,
.brand-mark small,
.rail-note span,
.rail-note strong {
  display: block;
}

.brand-mark strong {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.brand-mark small,
.rail-note span {
  color: var(--muted);
  font-size: 12px;
}

.workspace-nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.workspace-nav button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 15px 17px;
  color: #4d5954;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  background: transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.workspace-nav button:hover,
.workspace-nav button.is-active {
  color: var(--paper);
  background: var(--charcoal);
}

.rail-note {
  display: grid;
  gap: 7px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
}

.main-board {
  position: relative;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 22px;
  overflow-y: auto;
  padding: 42px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}

.page--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
}

.home-hero {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(46px, 5vw, 86px);
  line-height: 1.02;
}

h2 {
  max-width: 820px;
  font-size: clamp(29px, 2.5vw, 52px);
  line-height: 1.12;
}

h3 {
  font-size: 23px;
  line-height: 1.22;
}

.home-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.solid-button,
.ghost-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.solid-button {
  border: 1px solid var(--accent);
  color: #fffaf3;
  background: var(--accent);
  box-shadow: 0 18px 36px rgba(239, 95, 40, 0.24);
}

.ghost-button {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.ghost-button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.overview-symmetry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.overview-card,
.pulse-card,
.panel,
.drop-zone,
.kpi-strip article,
.map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(251, 251, 247, 0.78);
  box-shadow: var(--shadow-tight), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
}

.magnetic-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(239, 95, 40, 0.15),
    transparent 58%
  );
  transition: opacity 180ms ease;
  pointer-events: none;
}

.magnetic-card:hover::before {
  opacity: 1;
}

.overview-card,
.pulse-card {
  min-height: 320px;
  border-radius: var(--radius-xl);
  padding: 34px;
}

.overview-card p:not(.section-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.process-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.process-line span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.62);
}

.card-title-row,
.card-footnote {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.card-title-row strong,
.card-footnote strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.pulse-chart {
  position: relative;
  display: flex;
  height: 195px;
  align-items: end;
  gap: 9px;
  margin: 34px 0 22px;
  padding: 0 6px 18px;
  border-bottom: 1px solid var(--line-strong);
}

.pulse-chart span {
  flex: 1;
  min-width: 5px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent), #f7b184);
  transform-origin: bottom;
  animation: rise 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 35ms);
}

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

.kpi-strip article {
  min-height: 142px;
  border-radius: 28px;
  padding: 22px;
}

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

.kpi-strip span {
  font-size: 13px;
  font-weight: 900;
}

.kpi-strip strong,
.risk-score,
.region-table strong {
  font-family: var(--mono);
  color: var(--ink);
}

.kpi-strip strong {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.05em;
}

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

.drop-zone {
  display: grid;
  min-height: 270px;
  align-content: center;
  gap: 10px;
  border: 1px dashed rgba(26, 33, 31, 0.25);
  border-radius: var(--radius-xl);
  padding: 34px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.75);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-zone span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.drop-zone strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}

.drop-zone small {
  max-width: 38ch;
  color: var(--muted);
  line-height: 1.8;
}

.status-pill,
.soft-tag {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.6);
}

.status-pill.is-ready {
  color: #116144;
  border-color: rgba(30, 139, 102, 0.24);
  background: rgba(30, 139, 102, 0.09);
}

.inline-error {
  padding: 14px 16px;
  border: 1px solid rgba(239, 95, 40, 0.25);
  border-radius: 16px;
  color: #8b2f14;
  background: rgba(239, 95, 40, 0.08);
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(560px, 1fr) auto;
  gap: 18px;
  min-height: calc(100dvh - 220px);
}

.map-shell {
  width: 100%;
  height: clamp(560px, calc(100dvh - 260px), 780px);
  min-height: 560px;
  border-radius: var(--radius-xl);
}

.amap-map,
.supply-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.amap-map {
  z-index: 1;
  background: #dfe7e1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.map-shell.map-mode-amap .amap-map {
  opacity: 1;
  pointer-events: auto;
}

.map-shell.map-mode-amap .supply-map {
  opacity: 0;
  pointer-events: none;
}

.supply-map {
  z-index: 0;
  display: block;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92), rgba(219, 228, 222, 0.94));
  transition: opacity 220ms ease;
}

.map-bg {
  fill: url(#oceanGlow);
}

.map-graticule line {
  stroke: rgba(32, 37, 45, 0.08);
  stroke-width: 1;
}

.map-land path {
  fill: rgba(246, 248, 242, 0.58);
  stroke: rgba(32, 37, 45, 0.13);
  stroke-width: 3;
}

.map-region-glow ellipse {
  fill: rgba(82, 120, 165, 0.06);
  stroke: rgba(32, 37, 45, 0.12);
  stroke-width: 6;
  filter: url(#softBlur);
}

.route-line {
  fill: none;
  stroke: url(#routeFlow);
  stroke-width: var(--route-width, 2.4);
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.74;
  animation: routeFlow 2.8s linear infinite;
  cursor: pointer;
}

.route-line:hover {
  opacity: 1;
  stroke-width: calc(var(--route-width, 2.4) + 1.8);
}

.map-point-svg {
  cursor: pointer;
  filter: url(#pointShadow);
  transform-box: fill-box;
  transform-origin: center;
  animation: pointPulse 2.6s ease-in-out infinite;
}

.map-point-core {
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2;
}

.map-point-ring {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.28;
}

.map-point-svg:hover .map-point-core {
  stroke-width: 4;
}

.demo-route {
  fill: none;
  stroke: rgba(239, 95, 40, 0.28);
  stroke-width: 2;
  stroke-dasharray: 7 12;
  animation: routeFlow 3.2s linear infinite;
}

.demo-dot {
  fill: rgba(30, 139, 102, 0.76);
  stroke: #fff;
  stroke-width: 2;
}

.map-empty-label {
  fill: var(--muted);
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
}

.map-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 260px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
  background: rgba(251, 251, 247, 0.9);
  box-shadow: 0 18px 40px rgba(32, 37, 45, 0.14);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.map-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.map-overlay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(251, 251, 247, 0.86);
  backdrop-filter: blur(16px);
}

.amap-marker {
  position: relative;
  display: grid;
  width: var(--marker-size, 14px);
  height: var(--marker-size, 14px);
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  background: var(--marker-color);
  box-shadow: 0 12px 26px rgba(32, 37, 45, 0.22);
}

.amap-marker::after {
  position: absolute;
  inset: -7px;
  content: "";
  border: 1px solid var(--marker-color);
  border-radius: inherit;
  opacity: 0.3;
}

.amap-info {
  min-width: 170px;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
}

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

.map-overlay span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.map-overlay i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--dot);
}

.panel {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.side-panel {
  min-height: unset;
}

.map-layout .side-panel {
  padding: 30px 36px;
}

.map-layout .side-panel .horizontal-chart {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.map-layout .side-panel .empty-state {
  grid-column: 1 / -1;
}

.panel-heading,
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 18px;
}

.scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
}

.panel--wide {
  min-height: 360px;
}

.risk-list,
.region-table,
.horizontal-chart,
.transport-chart {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.risk-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.62);
  animation: slideUp 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 45ms);
}

.risk-item strong,
.region-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-item small,
.region-row span {
  color: var(--muted);
}

.risk-score {
  min-width: 74px;
  text-align: right;
  font-size: 20px;
  font-weight: 950;
}

.donut-wrap {
  display: grid;
  gap: 18px;
  place-items: center;
  margin-top: 26px;
}

.donut {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: conic-gradient(#d7d9d4 0 100%);
  box-shadow: inset 0 0 0 42px var(--paper), var(--shadow-tight);
}

.donut-legend {
  display: grid;
  width: 100%;
  gap: 9px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.legend-row strong {
  color: var(--ink);
}

.region-row {
  display: grid;
  grid-template-columns: 1fr 96px 116px;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 37, 45, 0.08);
}

.bar-fill {
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f6b184);
  animation: growX 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.column-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 260px;
  margin-top: 22px;
  padding-top: 20px;
}

.column-item {
  display: grid;
  gap: 9px;
  align-content: end;
  min-height: 230px;
}

.column-bar {
  min-height: 18px;
  height: var(--h);
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--blue), rgba(82, 120, 165, 0.36));
  animation: rise 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.column-label {
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.transport-item {
  display: grid;
  grid-template-columns: 86px 1fr 70px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.transport-line {
  height: 4px;
  border-radius: 999px;
  background: rgba(32, 37, 45, 0.1);
}

.transport-line span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.scenario-result {
  min-height: 300px;
  margin-top: 22px;
  padding: 26px;
  border-radius: 28px;
  color: #f7f2e9;
  background: linear-gradient(145deg, #20252d, #2e342f);
}

.scenario-result strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.scenario-result p {
  margin: 14px 0 0;
  color: rgba(247, 242, 233, 0.75);
  line-height: 1.85;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.75;
  background: rgba(255, 255, 255, 0.4);
}

.assistant-widget {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 8;
}

.assistant-widget.is-sdk-hidden {
  display: none;
}

.assistant-widget.is-sdk-fallback .assistant-fab {
  background: linear-gradient(135deg, var(--charcoal), #34423d);
}

.assistant-fab {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 0;
  border-radius: 28px;
  color: var(--paper);
  cursor: pointer;
  background: var(--charcoal);
  box-shadow: 0 20px 42px rgba(32, 37, 45, 0.28);
}

.assistant-fab > span:last-child {
  position: relative;
  font-size: 22px;
  font-weight: 950;
}

.fab-lines {
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.22) 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, rgba(255, 255, 255, 0.22) 46% 54%, transparent 54%);
  animation: breathe 2.4s infinite;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 88px;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  width: min(430px, calc(100vw - 34px));
  height: min(640px, calc(100dvh - 126px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  background: rgba(251, 251, 247, 0.94);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transform: translateY(16px) scale(0.96);
  transform-origin: 90% 100%;
  opacity: 0;
  pointer-events: none;
  transition: transform 210ms cubic-bezier(0.16, 1, 0.3, 1), opacity 210ms ease;
  backdrop-filter: blur(24px);
}

.assistant-widget.is-open .assistant-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.assistant-panel header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.assistant-panel small {
  display: block;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.assistant-panel header strong {
  display: block;
  margin-top: 4px;
  letter-spacing: -0.03em;
}

.assistant-panel header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.64);
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
}

.message {
  max-width: 92%;
  padding: 13px 15px;
  border-radius: 18px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.message--bot {
  justify-self: start;
  background: #edf0e7;
}

.message--user {
  justify-self: end;
  color: #fffaf3;
  background: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}

.chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.68);
}

.composer {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.composer label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.composer div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.composer input {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
}

.composer button {
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  color: #fffaf3;
  cursor: pointer;
  background: var(--accent);
}

.coze-link {
  display: block;
  padding: 14px 18px 18px;
  color: var(--accent-dark);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

@keyframes rise {
  from {
    transform: scaleY(0.12);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

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

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.34;
  }
}

@keyframes growX {
  from {
    transform: scaleX(0.08);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -72;
  }
}

@keyframes pointPulse {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@keyframes orbitFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.24);
  }
}

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

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .studio-shell {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 980px);
    height: auto;
    min-height: calc(100dvh - 28px);
    margin: 14px auto;
  }

  .side-rail {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace-nav {
    display: flex;
    overflow-x: auto;
  }

  .workspace-nav button {
    white-space: nowrap;
  }

  .main-board {
    min-height: 980px;
  }

  .overview-symmetry,
  .map-layout,
  .analysis-layout,
  .scenario-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .landing-gate {
    padding: 14px;
  }

  .landing-card {
    min-height: calc(100dvh - 28px);
    border-radius: 30px;
    padding: 26px;
  }

  .landing-meta,
  .team-ribbon {
    justify-content: flex-start;
  }

  .studio-shell {
    border-radius: 28px;
  }

  .page,
  .side-rail {
    padding: 20px;
  }

  .side-rail {
    grid-template-columns: 1fr;
  }

  .page-header,
  .drop-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kpi-strip,
  .drop-grid {
    grid-template-columns: 1fr;
  }

  .region-row,
  .bar-row,
  .transport-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  .assistant-widget {
    right: 14px;
    bottom: 14px;
  }
}
