:root {
  --ink: #090b0a;
  --panel: #111412;
  --panel-2: #171b18;
  --paper: #f5f4ee;
  --white: #ffffff;
  --acid: #dfff00;
  --coral: #ff5f4a;
  --cyan: #62dcff;
  --violet: #9c87ff;
  --muted: #8d958f;
  --line: rgba(255,255,255,.12);
  --line-light: rgba(9,11,10,.13);
  --ease: cubic-bezier(.2,.8,.2,1);
  --sidebar: 224px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: Arial, "Microsoft YaHei", sans-serif; overflow-x: hidden; }
body.drawer-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { text-decoration: none; }
button, select { cursor: pointer; }
input, textarea, select { border-radius: 0; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 1000; padding: 12px 18px; background: var(--acid); color: var(--ink); }
.skip-link:focus { top: 12px; }
#networkCanvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }

.sidebar { position: fixed; z-index: 70; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 24px 16px; background: rgba(9,11,10,.93); border-right: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 25px; border-bottom: 1px solid var(--line); }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; flex: 0 0 auto; background: var(--acid); color: var(--ink); font-weight: 900; transform: rotate(-7deg); box-shadow: 5px 5px 0 var(--coral); }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-size: 17px; }
.brand-copy small { color: var(--muted); font-size: 8px; }
.side-nav { display: grid; gap: 6px; padding-top: 26px; }
.nav-item { position: relative; min-height: 48px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 7px; padding: 0 12px; background: transparent; color: #909892; text-align: left; transition: color .25s, background .25s, transform .25s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); transform: translateX(3px); }
.nav-item.active { background: var(--acid); color: var(--ink); }
.nav-item span { font-size: 18px; }
.nav-item b { font-size: 13px; font-weight: 600; }
.nav-item i { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 10px; font-style: normal; }
.nav-item.active i { background: var(--ink); color: var(--acid); }
.nav-item .alert-dot { background: var(--coral); color: #fff; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 17px 8px 0; border-top: 1px solid var(--line); }
.system-dot, .live-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(223,255,0,.55); animation: pulse 2s infinite; }
.sidebar-foot p { display: grid; gap: 3px; margin: 0; }
.sidebar-foot strong { font-size: 11px; }
.sidebar-foot small { color: var(--muted); font-size: 9px; }

.topbar { position: fixed; z-index: 60; top: 0; right: 0; left: var(--sidebar); height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 27px; background: rgba(9,11,10,.8); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.breadcrumb span, .breadcrumb b { color: #646b66; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .mobile-menu { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); }
.icon-button:hover, .mobile-menu:hover { background: rgba(255,255,255,.07); }
.command-button { min-height: 40px; padding: 0 13px; background: transparent; border: 1px solid var(--line); color: #979f99; font-size: 11px; }
kbd { padding: 2px 5px; background: rgba(255,255,255,.09); border: 1px solid var(--line); color: #b5bcb7; font-family: inherit; font-size: 9px; }
.primary-button, .outline-button { min-height: 42px; padding: 0 18px; font-weight: 800; font-size: 12px; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.primary-button { background: var(--acid); color: var(--ink); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--coral); }
.primary-button.large { min-height: 52px; padding: 0 23px; font-size: 13px; }
.outline-button { background: transparent; color: #fff; border: 1px solid var(--line); }
.outline-button:hover { background: #fff; color: var(--ink); }
.company-avatar { display: grid; place-items: center; width: 40px; aspect-ratio: 1; background: var(--coral); color: #fff; font-weight: 900; }
.mobile-menu { display: none; }

.workspace { position: relative; z-index: 1; min-height: calc(100vh - 72px); margin: 72px 0 0 var(--sidebar); }
.app-view { display: none; width: min(1460px, 100%); margin: 0 auto; padding: 46px 32px 70px; animation: viewIn .55s var(--ease); }
.app-view.active { display: block; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #89918b; font-size: 11px; }
.welcome-row h1 { margin: 0; font-size: clamp(38px,4.2vw,68px); line-height: 1.06; }
.welcome-row h1 span { color: #777f79; font-weight: 500; }
.health-ring { position: relative; width: 132px; height: 132px; flex: 0 0 auto; display: grid; place-items: center; }
.health-ring svg { position: absolute; inset: 0; width: 100%; transform: rotate(-90deg); }
.health-ring circle { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
.health-ring circle.progress { stroke: var(--acid); stroke-dasharray: 320; stroke-dashoffset: 26; stroke-linecap: square; filter: drop-shadow(0 0 7px rgba(223,255,0,.42)); animation: ring 1.6s var(--ease); }
.health-ring strong { padding-top: 2px; font-size: 35px; }
.health-ring small { position: absolute; bottom: 24px; color: var(--muted); font-size: 8px; }

.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 12px; }
.metric-card { position: relative; min-height: 170px; overflow: hidden; padding: 20px; background: var(--panel); border: 1px solid var(--line); }
.metric-card::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.07); transform: rotate(45deg); }
.metric-card.acid { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.metric-card.coral { border-color: rgba(255,95,74,.48); }
.metric-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.metric-card > div:first-child span { color: var(--muted); }
.metric-card.acid > div:first-child span { color: rgba(9,11,10,.65); }
.metric-card i { color: var(--acid); font-style: normal; }
.metric-card.acid i { color: var(--ink); }
.metric-card .good, .good { color: var(--acid) !important; }
.metric-card > strong { display: block; margin-top: 25px; font-size: 38px; line-height: 1; }
.metric-card > strong b { font-size: 54px; }
.metric-card > strong small { margin-left: 4px; font-size: 16px; }
.metric-card p { margin: 13px 0 0; color: #909892; font-size: 10px; }
.metric-card.coral p { max-width: 180px; color: #c4aaa6; }
.spark { position: absolute; right: 0; bottom: 0; width: 100%; height: 45px; opacity: .65; }
.spark path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mini-bars { position: absolute; right: 18px; bottom: 20px; height: 57px; display: flex; align-items: end; gap: 5px; }
.mini-bars i { width: 8px; height: var(--bar); background: #5b655e; animation: barBreath 2s var(--ease) infinite alternate; }
.mini-bars i:nth-child(3n) { background: var(--acid); animation-delay: -.6s; }
.delivery-scale { height: 4px; margin-top: 20px; background: #29302b; }
.delivery-scale span { display: block; height: 100%; background: var(--cyan); animation: growWidth 1.5s var(--ease); }
.text-action { position: absolute; left: 20px; bottom: 17px; padding: 0 0 3px; background: transparent; color: var(--coral); border-bottom: 1px solid var(--coral); font-size: 10px; }

.overview-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(300px,.75fr); gap: 12px; margin-bottom: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-head > div { display: grid; gap: 5px; }
.panel-head span, .view-heading > div > span { color: var(--acid); font-size: 8px; }
.panel-head h2 { margin: 0; font-size: 17px; }
.panel-head > b { color: var(--muted); font-size: 10px; }
.more-button { padding: 7px; background: transparent; color: #707872; }
.flow-stage { position: relative; min-height: 192px; display: flex; align-items: center; justify-content: space-between; padding: 30px 30px 12px; }
.flow-line { position: absolute; top: 82px; right: 74px; left: 74px; height: 1px; background: linear-gradient(90deg,var(--acid) 0 43%,#394039 43%); }
.flow-line::after { content: ""; position: absolute; top: -2px; left: 0; width: 22px; height: 5px; background: var(--acid); box-shadow: 0 0 12px var(--acid); animation: travel 4s linear infinite; }
.flow-node { position: relative; z-index: 1; width: 112px; display: grid; justify-items: center; gap: 7px; padding: 0; background: transparent; color: #707771; }
.flow-node i { display: grid; place-items: center; width: 44px; height: 44px; background: var(--panel); border: 1px solid #465049; border-radius: 50%; font-style: normal; }
.flow-node strong { color: #a9b0aa; font-size: 11px; }
.flow-node small { font-size: 8px; }
.flow-node.complete i { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.flow-node.current i { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 0 0 8px rgba(255,95,74,.1); animation: softPulse 2s infinite; }
.flow-node.current strong { color: #fff; }
.live-order { display: grid; grid-template-columns: auto minmax(210px,1fr) minmax(120px,.7fr) auto; align-items: center; gap: 15px; margin: 0 22px 22px; padding: 13px; background: #0c0f0d; border: 1px solid var(--line); }
.product-chip { display: grid; place-items: center; width: 40px; height: 40px; background: var(--violet); color: var(--ink); font-weight: 900; }
.live-order > div:nth-child(2) { display: grid; gap: 4px; }
.live-order strong { font-size: 11px; }
.live-order small, .live-order time { color: var(--muted); font-size: 8px; }
.order-progress { height: 4px; background: #333934; }
.order-progress span { display: block; height: 100%; background: var(--acid); animation: growWidth 1.4s var(--ease); }

.risk-radar { min-height: 346px; }
.pulse-badge { padding: 4px 6px; background: rgba(255,95,74,.14); color: var(--coral) !important; }
.radar-wrap { position: relative; height: 188px; overflow: hidden; }
.radar-grid { position: absolute; top: 50%; left: 50%; width: 210px; aspect-ratio: 1; transform: translate(-50%,-50%); }
.radar-grid i { position: absolute; inset: 50%; border: 1px solid #29302b; border-radius: 50%; transform: translate(-50%,-50%); }
.radar-grid i:nth-child(1) { width: 34%; height: 34%; }
.radar-grid i:nth-child(2) { width: 67%; height: 67%; }
.radar-grid i:nth-child(3) { width: 100%; height: 100%; }
.radar-grid::before, .radar-grid::after { content: ""; position: absolute; background: #29302b; }
.radar-grid::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-grid::after { top: 50%; right: 0; left: 0; height: 1px; }
.radar-grid span { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg,transparent 0 300deg,rgba(223,255,0,.2)); animation: radarSpin 4s linear infinite; }
.risk-point { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 5px; padding: 0; background: transparent; transform: translate(-50%,-50%); font-size: 8px; }
.risk-point i { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(223,255,0,.12); }
.risk-point.high i { background: var(--coral); box-shadow: 0 0 0 6px rgba(255,95,74,.13); }
.risk-point.medium i { background: #ffca58; }
.risk-list { margin: 0; padding: 0 20px 16px; list-style: none; }
.risk-list li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 9px; }
.risk-list li > i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.risk-list li > i.medium { background: #ffca58; }
.risk-list li > b { color: var(--muted); }

.decision-stream { overflow-x: auto; }
.decision-table { min-width: 780px; }
.table-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 1.25fr 1fr .7fr .6fr .9fr; align-items: center; gap: 14px; padding: 0 22px; background: transparent; border-bottom: 1px solid var(--line); color: #c5cbc6; text-align: left; font-size: 10px; }
button.table-row:hover { background: rgba(255,255,255,.035); }
.table-row > span:first-child { display: grid; gap: 4px; }
.table-row small { color: var(--muted); font-size: 8px; }
.table-row > span:last-child { color: var(--acid); }
.table-head { min-height: 39px; color: #69706b; font-size: 8px; }
.tag { display: inline-block; padding: 4px 7px; font-size: 8px; font-style: normal; }
.tag.danger { background: rgba(255,95,74,.12); color: var(--coral); }
.tag.warning { background: rgba(255,202,88,.1); color: #ffca58; }
.tag.normal { background: rgba(98,220,255,.1); color: var(--cyan); }

.view-heading { min-height: 300px; display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 50px 0 55px; }
.view-heading.compact { min-height: 260px; }
.view-heading h1 { margin: 14px 0 18px; font-size: clamp(48px,6.4vw,94px); line-height: .98; }
.view-heading h1 em { color: var(--acid); font-family: Georgia,serif; font-weight: 400; }
.view-heading p { max-width: 690px; margin: 0; color: #979e98; font-size: 15px; line-height: 1.75; }
.demand-demo { display: grid; grid-template-columns: 1fr 90px 1.2fr; align-items: stretch; min-height: 360px; padding: 42px; }
.demand-input { padding: 30px; background: var(--paper); color: var(--ink); }
.demand-input > span { color: #6f7770; font-size: 9px; }
.demand-input p { margin: 35px 0; font-size: 23px; line-height: 1.65; font-weight: 700; }
.demand-input div { display: flex; flex-wrap: wrap; gap: 8px; }
.demand-input i { padding: 7px 9px; background: var(--ink); color: #fff; font-size: 9px; font-style: normal; }
.parse-arrow { display: grid; place-items: center; align-content: center; gap: 10px; }
.parse-arrow span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--acid); color: var(--ink); font-weight: 900; animation: softPulse 2s infinite; }
.parse-arrow i { color: var(--acid); font-style: normal; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-grid article { display: grid; align-content: center; gap: 12px; padding: 26px; background: #191d1a; border: 1px solid var(--line); }
.spec-grid span { color: var(--muted); font-size: 9px; }
.spec-grid strong { font-size: 14px; line-height: 1.5; }
.spec-grid article.risk { background: var(--coral); color: #fff; }
.spec-grid article.risk span { color: rgba(255,255,255,.7); }

.match-score { display: grid; justify-items: end; }
.match-score span, .match-score small { color: var(--muted); font-size: 9px; }
.match-score strong { color: var(--acid); font-size: 70px; line-height: 1; }
.factory-map { position: relative; height: 420px; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 35px 35px; }
.map-lines { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%,rgba(223,255,0,.1),transparent 24%); }
.map-lines::before, .map-lines::after { content: ""; position: absolute; top: 50%; left: 50%; width: 62%; height: 1px; background: linear-gradient(90deg,transparent,var(--acid),transparent); transform-origin: center; animation: mapScan 3.6s linear infinite; }
.map-lines::after { transform: translate(-50%,-50%) rotate(90deg); animation-delay: -1.8s; }
.map-origin { position: absolute; z-index: 2; top: 50%; left: 50%; width: 96px; height: 96px; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 50%; background: var(--acid); color: var(--ink); transform: translate(-50%,-50%); font-size: 9px; box-shadow: 0 0 0 16px rgba(223,255,0,.08),0 0 0 38px rgba(223,255,0,.035); }
.map-origin b { font-size: 12px; }
.factory-node { position: absolute; z-index: 2; left: var(--x); top: var(--y); min-width: 170px; display: grid; grid-template-columns: 42px 1fr; gap: 3px 10px; padding: 12px; background: rgba(17,20,18,.95); border: 1px solid #424a44; transform: translate(-50%,-50%); }
.factory-node::after { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(255,255,255,.06); }
.factory-node i { grid-row: 1/3; display: grid; place-items: center; width: 42px; height: 42px; background: #292f2a; color: var(--acid); font-size: 16px; font-style: normal; font-weight: 900; }
.factory-node strong { font-size: 10px; }
.factory-node small { color: var(--muted); font-size: 8px; }
.factory-node.selected { border-color: var(--acid); }
.factory-node.muted { opacity: .5; }
.factory-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 12px; }
.factory-card { position: relative; padding: 23px; background: var(--panel); border: 1px solid var(--line); }
.factory-card.recommended { border-color: var(--acid); }
.recommend { position: absolute; top: 0; right: 0; padding: 5px 8px; background: var(--acid); color: var(--ink); font-size: 8px; }
.factory-card header { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; }
.factory-card header > i { display: grid; place-items: center; width: 42px; height: 42px; background: var(--violet); color: var(--ink); font-weight: 900; font-style: normal; }
.factory-card h2 { margin: 0 0 5px; font-size: 14px; }
.factory-card p { margin: 0; color: var(--muted); font-size: 8px; }
.factory-card header > strong { display: grid; color: var(--acid); font-size: 28px; }
.factory-card header > strong small { color: var(--muted); font-size: 7px; }
.capability { display: grid; grid-template-columns: repeat(3,1fr); margin: 23px 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability span { display: grid; gap: 4px; color: var(--muted); border-right: 1px solid var(--line); font-size: 7px; text-align: center; }
.capability span:last-child { border: 0; }
.capability b { color: #fff; font-size: 13px; }
.factory-card > button { width: 100%; }

.quote-layout { display: grid; grid-template-columns: 285px 1fr; gap: 12px; }
.weight-panel { padding: 25px; }
.weight-panel h2 { margin: 0 0 8px; }
.weight-panel > p { margin: 0 0 30px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.weight-panel label { display: grid; gap: 12px; margin: 20px 0; }
.weight-panel label > span { display: flex; justify-content: space-between; font-size: 10px; }
.weight-panel label b { color: var(--acid); }
input[type="range"] { width: 100%; height: 3px; appearance: none; background: #343b35; outline: 0; }
input[type="range"]::-webkit-slider-thumb { width: 15px; height: 15px; appearance: none; background: var(--acid); border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--acid); cursor: grab; }
.weight-total { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; }
.weight-total strong { color: var(--acid); font-size: 17px; }
.quote-board { overflow-x: auto; }
.quote-head, .quote-row, .quote-result, .quote-actions { min-width: 720px; display: grid; grid-template-columns: 1.15fr repeat(3,1fr); align-items: center; }
.quote-head { min-height: 70px; border-bottom: 1px solid var(--line); }
.quote-head > *, .quote-row > *, .quote-result > *, .quote-actions > * { padding: 0 22px; }
.quote-head span, .quote-row span, .quote-result span { color: var(--muted); font-size: 9px; }
.quote-head b { font-size: 12px; }
.quote-row { min-height: 67px; border-bottom: 1px solid var(--line); }
.quote-row b { font-size: 14px; }
.quote-row .best { position: relative; color: var(--acid); }
.quote-row .best::before { content: "最优"; position: absolute; top: -13px; padding: 2px 4px; background: rgba(223,255,0,.1); font-size: 6px; }
.quote-result { min-height: 96px; background: #1a1f1b; }
.quote-result strong { color: var(--acid); font-size: 41px; }
.quote-actions { min-height: 76px; }
.quote-actions button { margin: 0 10px; }
.insight-strip { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; margin-top: 12px; padding: 25px; background: var(--acid); color: var(--ink); }
.insight-strip span { font-size: 10px; font-weight: 900; }
.insight-strip p { margin: 0; font-size: 14px; line-height: 1.7; font-weight: 700; }

.production-status { display: grid; grid-template-columns: 9px auto; gap: 3px 9px; padding: 16px 19px; border: 1px solid var(--line); }
.production-status i { grid-row: 1/3; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--acid); animation: pulse 2s infinite; }
.production-status span { color: var(--muted); font-size: 8px; }
.production-status strong { font-size: 12px; }
.timeline { position: relative; min-height: 235px; display: grid; grid-template-columns: repeat(6,1fr); align-items: center; padding: 36px 22px 22px; }
.timeline-progress { position: absolute; top: 97px; right: 8%; left: 8%; height: 2px; background: #394039; }
.timeline-progress span { display: block; height: 100%; background: var(--acid); box-shadow: 0 0 12px rgba(223,255,0,.4); animation: growWidth 1.6s var(--ease); }
.timeline article { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; text-align: center; }
.timeline article i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 9px; border-radius: 50%; background: var(--panel); border: 1px solid #495149; color: var(--muted); font-style: normal; }
.timeline article.done i { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.timeline article.active i { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 0 0 9px rgba(255,95,74,.1); }
.timeline article span { font-size: 10px; }
.timeline article b { font-size: 8px; }
.timeline article small { color: var(--muted); font-size: 7px; }
.production-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 12px; margin-top: 12px; }
.load-chart { height: 250px; display: flex; align-items: end; justify-content: space-around; gap: 16px; padding: 40px 28px 30px; }
.load-chart > i { position: relative; width: 42px; height: var(--h); min-height: 30px; background: linear-gradient(to top,var(--acid),#667600); font-style: normal; animation: loadGrow 1.2s var(--ease); }
.load-chart > i.danger { background: linear-gradient(to top,var(--coral),#652b25); }
.load-chart span { position: absolute; bottom: -22px; left: 50%; width: 65px; color: var(--muted); font-size: 7px; text-align: center; transform: translateX(-50%); }
.load-chart b { position: absolute; top: -19px; left: 50%; font-size: 8px; transform: translateX(-50%); }
.quality-panel, .collaboration { padding-bottom: 20px; }
.quality-score { display: grid; place-items: center; padding: 25px 0 12px; }
.quality-score strong { color: var(--acid); font-size: 50px; }
.quality-score small { font-size: 15px; }
.quality-score span { color: var(--muted); font-size: 8px; }
.quality-panel ul, .collaboration ul { margin: 0; padding: 0 20px 15px; list-style: none; }
.quality-panel li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 8px; }
.quality-panel li span { color: var(--muted); }
.quality-panel > button { width: calc(100% - 40px); margin: 0 20px; }
.collaboration li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.collaboration li > i { display: grid; place-items: center; width: 34px; height: 34px; background: #272e28; color: var(--acid); font-style: normal; font-weight: 900; }
.collaboration p { display: grid; gap: 4px; margin: 0; }
.collaboration p strong { font-size: 9px; }
.collaboration p span, .collaboration p small { color: var(--muted); font-size: 7px; }

.simulation-layout { display: grid; grid-template-columns: 300px 1fr; gap: 12px; }
.scenario-panel { padding: 23px; }
.scenario-panel h2 { margin: 0 0 15px; font-size: 13px; }
.scenario-panel h2:nth-of-type(2) { margin-top: 32px; }
.scenario-option { display: block; margin-bottom: 8px; cursor: pointer; }
.scenario-option input { position: absolute; opacity: 0; }
.scenario-option > span { display: grid; grid-template-columns: 10px 1fr; gap: 4px 9px; padding: 14px; border: 1px solid var(--line); transition: border-color .25s,background .25s; }
.scenario-option input:checked + span { background: rgba(223,255,0,.06); border-color: var(--acid); }
.scenario-option i { grid-row: 1/3; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); font-style: normal; }
.scenario-option i.warning { background: #ffca58; }
.scenario-option i.normal { background: var(--cyan); }
.scenario-option b { font-size: 9px; }
.scenario-option small { color: var(--muted); font-size: 7px; }
.scenario-panel select { width: 100%; min-height: 45px; padding: 0 12px; background: #1d221e; color: #fff; border: 1px solid var(--line); outline: 0; font-size: 10px; }
.simulation-stage { position: relative; min-height: 520px; overflow: hidden; background-image: radial-gradient(circle at center,rgba(223,255,0,.08),transparent 33%),linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size: auto,32px 32px,32px 32px; }
.simulation-stage.running .sim-node { animation: nodeAlert .9s var(--ease) both; }
.simulation-stage.running .sim-link { animation: linkFlow 1.4s linear infinite; }
.sim-core { position: absolute; z-index: 3; top: 50%; left: 50%; width: 138px; height: 138px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px solid var(--acid); border-radius: 50%; background: var(--ink); transform: translate(-50%,-50%); box-shadow: 0 0 0 20px rgba(223,255,0,.035),0 0 65px rgba(223,255,0,.08); }
.sim-core span { color: var(--muted); font-size: 8px; }
.sim-core strong { color: var(--acid); font-size: 15px; }
.sim-core i { position: absolute; inset: -10px; border: 1px dashed rgba(223,255,0,.35); border-radius: 50%; animation: radarSpin 10s linear infinite; }
.sim-node { position: absolute; z-index: 2; min-width: 142px; display: grid; gap: 5px; padding: 15px; background: #181d19; border: 1px solid #424b43; }
.sim-node i { color: var(--muted); font-size: 7px; font-style: normal; }
.sim-node strong { font-size: 11px; }
.sim-node small { color: var(--coral); font-size: 8px; }
.sim-node.source { top: 38px; left: 50%; border-color: var(--coral); transform: translateX(-50%); }
.sim-node.material { top: 200px; left: 7%; }
.sim-node.production { bottom: 55px; left: 18%; }
.sim-node.delivery { right: 16%; bottom: 55px; }
.sim-node.finance { top: 200px; right: 6%; }
.sim-link { position: absolute; z-index: 1; top: 50%; left: 50%; width: 39%; height: 1px; background: linear-gradient(90deg,transparent,var(--coral),transparent); transform-origin: left center; }
.link-a { transform: rotate(-145deg); }
.link-b { transform: rotate(-45deg); }
.link-c { transform: rotate(38deg); }
.simulation-result { display: grid; grid-template-columns: 1.3fr repeat(3,1fr) auto; align-items: center; gap: 20px; margin-top: 12px; padding: 20px 22px; background: var(--acid); color: var(--ink); animation: resultIn .55s var(--ease); }
.simulation-result > div { display: grid; gap: 5px; }
.simulation-result span, .simulation-result small { font-size: 8px; }
.simulation-result strong { font-size: 16px; }
.simulation-result .primary-button { background: var(--ink); color: #fff; }
.simulation-result .good { color: #316400 !important; }

.site-footer { position: relative; z-index: 2; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-left: var(--sidebar); padding: 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.site-footer a { color: #fff; border-bottom: 1px solid #565e58; }

.drawer-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.wizard-drawer { position: fixed; z-index: 110; top: 0; right: 0; width: min(610px,100vw); height: 100vh; overflow-y: auto; padding: 28px 34px; background: var(--paper); color: var(--ink); transform: translateX(105%); transition: transform .5s var(--ease); }
.wizard-drawer.open { transform: translateX(0); }
.wizard-drawer > header { display: flex; justify-content: space-between; align-items: start; }
.wizard-drawer > header span { color: #737a74; font-size: 8px; }
.wizard-drawer > header h2 { margin: 6px 0 0; font-size: 23px; }
.wizard-drawer > header button { width: 38px; height: 38px; background: var(--ink); color: #fff; font-size: 23px; }
.wizard-progress { height: 3px; margin-top: 27px; background: #d8d8d1; }
.wizard-progress span { display: block; height: 100%; background: var(--coral); transition: width .5s var(--ease); }
.wizard-steps { display: grid; grid-template-columns: repeat(6,1fr); margin: 0 0 45px; padding: 0; list-style: none; }
.wizard-steps li { padding: 8px 0; color: #999d99; border-bottom: 1px solid #deded8; font-size: 8px; text-align: center; }
.wizard-steps li.active { color: var(--ink); border-color: var(--ink); font-weight: 900; }
.wizard-page { display: none; min-height: 520px; animation: viewIn .45s var(--ease); }
.wizard-page.active { display: block; }
.step-label { color: var(--coral); font-size: 8px; font-weight: 800; }
.wizard-page h3 { margin: 13px 0 8px; font-size: 34px; }
.wizard-page > p { margin: 0 0 30px; color: #737873; font-size: 11px; line-height: 1.6; }
.wizard-page > label:not(.select-card):not(.check-card):not(.checkbox-row), .form-grid label { position: relative; display: grid; gap: 8px; margin: 18px 0; font-size: 10px; font-weight: 800; }
.wizard-page input:not([type="radio"]):not([type="checkbox"]), .wizard-page textarea, .wizard-page select { width: 100%; padding: 13px 14px; background: #fff; color: var(--ink); border: 1px solid #cfd1cb; outline: 0; resize: none; }
.wizard-page input:focus, .wizard-page textarea:focus, .wizard-page select:focus { border-color: var(--ink); box-shadow: 4px 4px 0 var(--acid); }
.wizard-page label > small { position: absolute; right: 10px; bottom: 8px; color: #858b85; font-size: 8px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.select-card, .check-card { display: block; margin-bottom: 10px; cursor: pointer; }
.select-card input, .check-card input { position: absolute; opacity: 0; }
.select-card > span, .check-card > span { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 13px; padding: 17px; background: #fff; border: 1px solid #d5d6d0; }
.select-card input:checked + span, .check-card input:checked + span { border-color: var(--ink); box-shadow: 5px 5px 0 var(--acid); }
.select-card i, .check-card i { display: grid; place-items: center; width: 46px; height: 46px; background: var(--ink); color: var(--acid); font-style: normal; font-weight: 900; }
.select-card b, .check-card b { display: grid; gap: 5px; font-size: 12px; }
.select-card small, .check-card small { color: #777d78; font-size: 8px; font-weight: 400; }
.select-card strong { padding: 5px 7px; background: var(--coral); color: #fff; font-size: 8px; }
.summary-card { display: grid; gap: 8px; padding: 25px; background: var(--ink); color: #fff; }
.summary-card span, .summary-card small { color: #9a9f9b; font-size: 9px; }
.summary-card strong { color: var(--acid); font-size: 40px; }
.cost-list { margin: 16px 0; padding: 0; list-style: none; border: 1px solid #d5d6d0; }
.cost-list li { display: flex; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid #d5d6d0; font-size: 10px; }
.cost-list li:last-child { border: 0; }
.checkbox-row { display: flex !important; align-items: center; gap: 10px; margin-top: 20px; font-size: 10px; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--ink); }
.schedule-card { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 27px; background: var(--ink); color: #fff; }
.schedule-card div { display: grid; gap: 8px; padding: 22px 14px; border-right: 1px solid rgba(255,255,255,.15); }
.schedule-card div:last-child { border: 0; }
.schedule-card span { color: #969c97; font-size: 8px; }
.schedule-card strong { font-size: 11px; }
.completion-orbit { position: relative; width: 175px; height: 175px; display: grid; place-items: center; margin: 20px auto 35px; border-radius: 50%; background: var(--acid); }
.completion-orbit i { position: absolute; inset: -10px; border: 1px solid var(--ink); border-radius: 50%; animation: radarSpin 7s linear infinite; }
.completion-orbit i:nth-child(2) { inset: -25px; border-style: dashed; animation-direction: reverse; }
.completion-orbit strong { font-size: 26px; line-height: 1; text-align: center; }
.final-summary { padding: 0 16px; background: #fff; border: 1px solid #d5d6d0; }
.final-summary p { display: flex; justify-content: space-between; margin: 0; padding: 13px 0; border-bottom: 1px solid #deded8; font-size: 10px; }
.final-summary p:last-child { border: 0; }
.final-summary span { color: #7b817c; }
.form-error { min-height: 18px; margin: 8px 0; color: #c92e21; font-size: 10px; }
#demandForm > footer { position: sticky; bottom: -28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin: 10px -34px -28px; padding: 17px 34px; background: rgba(245,244,238,.93); border-top: 1px solid #d5d6d0; backdrop-filter: blur(10px); }
#demandForm > footer > span { font-size: 9px; text-align: center; }
#demandForm > footer .primary-button { justify-self: end; }
#demandForm > footer .outline-button { justify-self: start; color: var(--ink); border-color: #b7bab5; }

.command-palette { position: fixed; z-index: 150; inset: 0; padding-top: 15vh; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); }
.command-dialog { width: min(560px,calc(100vw - 30px)); margin: 0 auto; background: #171a18; border: 1px solid #4a504b; box-shadow: 0 30px 100px #000; }
.command-dialog header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.command-dialog header input { width: 100%; background: transparent; color: #fff; border: 0; outline: 0; }
.command-dialog ul { margin: 0; padding: 8px; list-style: none; }
.command-dialog li button { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: 13px; background: transparent; color: #c8cec9; text-align: left; }
.command-dialog li button:hover { background: var(--acid); color: var(--ink); }
.toast { position: fixed; z-index: 200; right: 25px; bottom: 25px; min-width: 270px; display: flex; align-items: center; gap: 10px; padding: 14px 17px; background: var(--acid); color: var(--ink); box-shadow: 8px 8px 0 var(--coral); font-size: 11px; font-weight: 800; transform: translateY(150%); opacity: 0; transition: transform .45s var(--ease),opacity .45s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { display: grid; place-items: center; width: 22px; height: 22px; background: var(--ink); color: var(--acid); border-radius: 50%; font-style: normal; }
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s var(--ease) forwards; }
.reveal:nth-child(2) { animation-delay: .12s; }
.reveal:nth-child(3) { animation-delay: .2s; }

@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes ring { from { stroke-dashoffset: 320; } }
@keyframes barBreath { to { transform: scaleY(.72); opacity: .6; } }
@keyframes growWidth { from { width: 0; } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 22px); } }
@keyframes softPulse { 50% { transform: scale(1.05); } }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes mapScan { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes loadGrow { from { height: 0; } }
@keyframes nodeAlert { 40% { border-color: var(--coral); box-shadow: 0 0 20px rgba(255,95,74,.16); } }
@keyframes linkFlow { 50% { filter: brightness(2); } }
@keyframes resultIn { from { opacity: 0; transform: translateY(15px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1180px) {
  :root { --sidebar: 84px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand-copy, .nav-item b, .nav-item i, .sidebar-foot p { display: none; }
  .side-nav { justify-items: center; }
  .nav-item { width: 50px; grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .sidebar-foot { justify-content: center; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .risk-radar { min-height: auto; }
  .factory-cards, .production-grid { grid-template-columns: 1fr 1fr; }
  .production-grid > :last-child { grid-column: 1/-1; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 230px; transform: translateX(-105%); transition: transform .4s var(--ease); box-shadow: 20px 0 60px #000; }
  .sidebar.open { transform: translateX(0); }
  .sidebar .brand-copy, .sidebar .nav-item b, .sidebar .nav-item i, .sidebar .sidebar-foot p { display: grid; }
  .sidebar .nav-item { width: 100%; grid-template-columns: 27px 1fr auto; justify-items: initial; padding: 0 12px; }
  .side-nav { justify-items: stretch; }
  .sidebar-foot { justify-content: flex-start; }
  .topbar { left: 0; padding: 0 15px; }
  .mobile-menu { display: grid; }
  .breadcrumb, .command-button, .icon-button { display: none; }
  .top-actions { margin-left: auto; }
  .workspace, .site-footer { margin-left: 0; }
  .app-view { padding: 32px 16px 55px; }
  .welcome-row { align-items: start; }
  .welcome-row h1 { font-size: 38px; }
  .health-ring { width: 100px; height: 100px; }
  .health-ring strong { font-size: 28px; }
  .health-ring small { bottom: 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .flow-stage { overflow-x: auto; justify-content: flex-start; gap: 28px; }
  .flow-line { display: none; }
  .flow-node { flex: 0 0 95px; }
  .live-order { grid-template-columns: auto 1fr; }
  .live-order .order-progress, .live-order time { grid-column: 2; }
  .view-heading, .view-heading.compact { min-height: auto; flex-direction: column; align-items: flex-start; padding: 55px 0 40px; }
  .view-heading h1 { font-size: 52px; }
  .view-heading .large { width: 100%; }
  .match-score, .production-status { display: none; }
  .demand-demo { grid-template-columns: 1fr; padding: 14px; }
  .parse-arrow { min-height: 80px; }
  .parse-arrow i { transform: rotate(90deg); }
  .factory-map { height: 570px; }
  .factory-node { min-width: 140px; }
  .factory-node:nth-of-type(2) { --x: 28% !important; --y: 18% !important; }
  .factory-node:nth-of-type(3) { --x: 72% !important; --y: 27% !important; }
  .factory-node:nth-of-type(4) { --x: 70% !important; --y: 75% !important; }
  .factory-node:nth-of-type(5) { --x: 27% !important; --y: 80% !important; }
  .factory-cards { grid-template-columns: 1fr; }
  .quote-layout, .simulation-layout { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(6,130px); overflow-x: auto; }
  .timeline-progress { display: none; }
  .production-grid { grid-template-columns: 1fr; }
  .production-grid > :last-child { grid-column: auto; }
  .simulation-stage { min-height: 600px; }
  .simulation-result { grid-template-columns: repeat(2,1fr); }
  .simulation-result button { grid-column: 1/-1; }
}

@media (max-width: 540px) {
  .topbar .primary-button { padding: 0 12px; }
  .company-avatar { display: none; }
  .welcome-row { display: block; }
  .health-ring { margin-top: 25px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 155px; }
  .view-heading h1 { font-size: 40px; }
  .spec-grid { grid-template-columns: 1fr; }
  .demand-input { padding: 22px; }
  .demand-input p { font-size: 18px; }
  .factory-map { height: 650px; }
  .map-origin { width: 82px; height: 82px; }
  .factory-node { min-width: 128px; grid-template-columns: 34px 1fr; }
  .factory-node i { width: 34px; height: 34px; }
  .insight-strip { grid-template-columns: 1fr; }
  .simulation-stage { min-height: 690px; }
  .sim-node { min-width: 120px; }
  .sim-node.material { top: 210px; left: 3%; }
  .sim-node.finance { top: 210px; right: 3%; }
  .sim-node.production { bottom: 60px; left: 3%; }
  .sim-node.delivery { right: 3%; bottom: 60px; }
  .simulation-result { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 20px 16px; }
  .wizard-drawer { padding: 22px 18px; }
  .wizard-page { min-height: 560px; }
  .wizard-page h3 { font-size: 27px; }
  .form-grid, .schedule-card { grid-template-columns: 1fr; }
  .schedule-card div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  #demandForm > footer { margin-inline: -18px; padding-inline: 18px; }
}

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