:root {
  --ink: #101714;
  --muted: #6e7974;
  --soft: #f2f5f2;
  --line: #e3e8e4;
  --white: #fff;
  --lime: #b9f227;
  --green: #127a49;
  --teal: #0e8f79;
  --orange: #f2a65a;
  --red: #c94b4b;
  --shadow: 0 16px 48px rgba(24, 42, 33, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #eef2ef; color: var(--ink); font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; padding: 24px 16px 18px; background: var(--ink); color: #fff; display: flex; flex-direction: column; z-index: 20; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { width: 38px; height: 38px; background: var(--lime); color: var(--ink); border-radius: 12px 12px 5px 12px; display: grid; place-items: center; font-size: 20px; font-weight: 900; transform: skew(-5deg); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .08em; font-size: 14px; }
.brand small { color: #809087; margin-top: 3px; font-size: 11px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #8e9b95; padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 12px; text-align: left; transition: .2s; }
.nav-item svg, .icon-button svg, .secondary-button svg, .topbar-search svg, .inline-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--ink); background: var(--lime); font-weight: 700; }
.sidebar-card { margin: auto 0 20px; padding: 18px; background: linear-gradient(145deg, #24322b, #17231d); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; }
.eyebrow { color: #819087; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.sidebar-card strong { display: block; margin-top: 9px; font-size: 21px; }
.sidebar-card p { margin: 4px 0 12px; color: #809087; font-size: 12px; }
.text-button { padding: 0; border: 0; background: none; color: var(--green); font-weight: 700; font-size: 12px; }
.sidebar-card .text-button { color: var(--lime); }
.user-block { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 6px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #d8dfdb; color: var(--ink); font-weight: 800; }
.user-block strong, .user-block small { display: block; }
.user-block strong { font-size: 11px; }
.user-block small { color: #728078; font-size: 10px; margin-top: 3px; }
.status-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(185,242,39,.12); }

.main-content { min-height: 100vh; margin-left: 230px; }
.topbar { height: 74px; padding: 0 34px; background: rgba(255,255,255,.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 22px; position: sticky; top: 0; z-index: 15; }
.topbar-search { width: min(440px, 40vw); display: flex; align-items: center; gap: 10px; color: #758079; }
.topbar-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
kbd { padding: 3px 7px; color: #8b958f; background: #f1f3f1; border: 1px solid #dfe3df; border-radius: 6px; font-size: 10px; box-shadow: 0 1px 0 #fff inset; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sync-state { display: flex; align-items: center; gap: 6px; color: #617068; font-size: 11px; }
.sync-state i { width: 7px; height: 7px; border-radius: 50%; background: #48b87a; box-shadow: 0 0 0 4px rgba(72,184,122,.12); }
.sync-state b { color: #9aa39e; font-weight: 500; }
.icon-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: #f3f5f3; border: 1px solid var(--line); border-radius: 11px; }
.icon-button em { position: absolute; right: -2px; top: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 9px; font-style: normal; display: grid; place-items: center; }
.primary-button, .secondary-button { border: 0; border-radius: 10px; padding: 11px 16px; font-size: 12px; font-weight: 750; display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.primary-button { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(16,23,20,.12); }
.primary-button:hover { background: #27342e; }
.primary-button.small { padding: 9px 13px; }
.secondary-button { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.secondary-button svg { width: 15px; height: 15px; }
.mobile-menu { display: none; border: 0; background: none; font-size: 21px; }

.page { display: none; padding: 34px; animation: reveal .28s ease; }
.page.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 7px 0 5px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.08; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.page-heading.slim h1 { font-size: 32px; }
.market-open { display: flex; gap: 11px; align-items: center; padding: 12px 15px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 13px; }
.market-open > span { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(185,242,39,.18); }
.market-open strong, .market-open small { display: block; }
.market-open strong { font-size: 11px; }
.market-open small { color: var(--muted); font-size: 10px; margin-top: 3px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi-card { min-height: 158px; padding: 19px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(222,228,223,.95); position: relative; overflow: hidden; }
.dark-card { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.dark-card .kpi-top { color: #86968e; }
.mini-icon { color: var(--lime); }
.kpi-card > strong { display: block; font-size: 30px; letter-spacing: -.04em; margin-top: 18px; }
.kpi-card > strong small { font-size: 12px; color: var(--muted); }
.kpi-card > p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.kpi-card > p b { color: var(--lime); }
.pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.pill.success { color: #23754a; background: #e7f6ed; }
.pill.neutral { color: #5b6861; background: #f0f2f0; }
.pill.warning { color: #95601f; background: #fff1d9; }
.metric-footer { position: absolute; left: 19px; right: 19px; bottom: 16px; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.metric-footer b { color: var(--ink); }
.positive { color: var(--green)!important; }
.negative { color: var(--red)!important; }
.sparkline { position: absolute; right: 15px; bottom: 20px; height: 43px; display: flex; align-items: end; gap: 4px; }
.sparkline i { width: 5px; border-radius: 5px; background: rgba(185,242,39,.2); }
.sparkline i:nth-child(1){height:18px}.sparkline i:nth-child(2){height:25px}.sparkline i:nth-child(3){height:21px}.sparkline i:nth-child(4){height:34px}.sparkline i:nth-child(5){height:29px}.sparkline i:nth-child(6){height:38px}.sparkline i:nth-child(7){height:33px}.sparkline i:nth-child(8){height:43px;background:var(--lime)}

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .7fr); gap: 16px; margin-bottom: 16px; }
.panel { background: #fff; border: 1px solid rgba(222,228,223,.96); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.chart-panel { padding: 22px; min-width: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.panel-header.compact { align-items: center; }
.panel-header h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.025em; }
.product-meta { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; margin-top: 5px; }
.product-meta code { color: #3c4a43; background: #eff3ef; padding: 2px 6px; border-radius: 5px; }
.chart-controls { display: flex; gap: 10px; align-items: center; }
select, input { color: var(--ink); }
.chart-controls select, .filter-bar select { border: 1px solid var(--line); background: #f8faf8; padding: 8px 28px 8px 10px; border-radius: 9px; font-size: 10px; outline: none; }
.segmented { display: flex; padding: 3px; border-radius: 9px; background: #f1f4f1; }
.segmented button { border: 0; padding: 6px 9px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 9px; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 5px rgba(20,35,27,.08); font-weight: 800; }
.chart-summary { display: grid; grid-template-columns: repeat(4,1fr); margin: 20px 0 5px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chart-summary > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.chart-summary > div:first-child { padding-left: 0; }
.chart-summary > div:last-child { border: 0; }
.chart-summary span, .chart-summary strong, .chart-summary small { display: block; }
.chart-summary span { font-size: 9px; color: var(--muted); }
.chart-summary strong { font-size: 15px; margin-top: 4px; }
.chart-summary small { font-size: 9px; margin-top: 2px; }
.chart-wrap { position: relative; height: 290px; }
#priceChart { width: 100%; height: 100%; overflow: visible; }
.grid-line { stroke: #e7ebe8; stroke-width: 1; stroke-dasharray: 3 5; }
.axis-label { fill: #9aa39e; font-size: 10px; }
.series-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.series-dewu { stroke: #101714; }
.series-shihuo { stroke: #26a776; }
.series-xianyu { stroke: #f0a15a; }
.dewu-area { fill: url(#areaGradient); opacity: .7; }
.chart-point { stroke: #fff; stroke-width: 2; }
.chart-crosshair { stroke: #adb7b1; stroke-width: 1; stroke-dasharray: 4 4; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-tooltip { display: none; position: absolute; min-width: 130px; padding: 9px 11px; background: rgba(16,23,20,.94); color: #fff; border-radius: 9px; font-size: 9px; box-shadow: var(--shadow); pointer-events: none; transform: translate(-50%, -110%); z-index: 3; }
.chart-tooltip.show { display: block; }
.chart-tooltip strong { display: block; margin-bottom: 5px; }
.chart-tooltip span { display: flex; justify-content: space-between; gap: 14px; color: #b9c4be; margin-top: 3px; }
.chart-tooltip b { color: #fff; }
.chart-legend { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 9px; border-top: 1px solid var(--line); padding-top: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; }
.dot-dewu { background: var(--ink); }.dot-shihuo{background:#26a776}.dot-xianyu{background:#f0a15a}
.chart-legend small { margin-left: auto; }

.decision-panel { padding: 22px; background: linear-gradient(160deg,#fff 60%,#f5faef); }
.quick-quote { display: block; margin-top: 23px; }
.quick-quote > span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.quick-quote > div { display: flex; align-items: center; padding: 9px 13px; background: #f4f7f4; border: 1px solid var(--line); border-radius: 12px; }
.quick-quote b { color: var(--muted); font-size: 18px; }
.quick-quote input { width: 100%; border: 0; outline: 0; background: none; font-size: 24px; font-weight: 800; margin-left: 6px; }
.decision-orbit { height: 170px; display: grid; place-items: center; position: relative; }
.decision-orbit::before, .decision-orbit::after { content:""; position: absolute; border-radius: 50%; border: 1px dashed #d8e0da; }
.decision-orbit::before { width: 145px; height: 145px; }
.decision-orbit::after { width: 112px; height: 112px; border-style: solid; border-color: #e6ece7; }
.orbit-score { width: 94px; height: 94px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center; z-index: 1; box-shadow: 0 14px 28px rgba(16,23,20,.2); }
.orbit-score span { color: var(--lime); font-size: 9px; }
.orbit-score strong { font-size: 19px; margin: 4px 0; }
.orbit-score small { color: #9eaaa4; font-size: 8px; }
.decision-stats { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decision-stats > div { text-align: center; padding: 12px 4px; border-right: 1px solid var(--line); }
.decision-stats > div:last-child { border: 0; }
.decision-stats span, .decision-stats strong { display: block; }
.decision-stats span { color: var(--muted); font-size: 8px; }
.decision-stats strong { font-size: 14px; margin-top: 4px; }
.decision-note { display: flex; gap: 8px; color: #65726b; font-size: 9px; line-height: 1.5; margin-top: 13px; }
.decision-note i { width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-style: normal; }

.opportunity-panel { padding: 20px 22px 6px; }
.table-actions { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; margin-top: 15px; }
th { padding: 11px 12px; color: #8a958f; font-size: 9px; font-weight: 700; text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid #eef1ef; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfa; }
.shoe-cell { display: flex; align-items: center; gap: 10px; }
.shoe-thumb { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: -.04em; transform: skew(-4deg); }
.shoe-cell strong, .shoe-cell small { display: block; }
.shoe-cell strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.shoe-cell small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.profit-cell strong { color: var(--green); }
.arrow-cell button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.platform-tag { display: inline-flex; gap: 5px; align-items: center; padding: 5px 8px; border-radius: 7px; background: #f1f4f1; font-weight: 800; }

.filter-bar { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.inline-search { min-width: 250px; display: flex; align-items: center; gap: 8px; padding: 0 10px; flex: 1; }
.inline-search svg { width: 17px; color: var(--muted); }
.inline-search input { width: 100%; border: 0; outline: 0; }
.filter-bar > span { color: var(--muted); font-size: 10px; padding: 0 8px; }
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.market-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.market-card-top { display: flex; gap: 12px; align-items: center; }
.market-card-top .shoe-thumb { width: 52px; height: 52px; }
.market-card h3 { margin: 0; font-size: 14px; }
.market-card code { color: var(--muted); font-size: 9px; }
.market-card-prices { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 16px 0; }
.market-card-prices div { padding: 10px; background: #f6f8f6; border-radius: 9px; }
.market-card-prices span, .market-card-prices strong { display: block; }
.market-card-prices span { color: var(--muted); font-size: 8px; }
.market-card-prices strong { font-size: 13px; margin-top: 4px; }
.market-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.market-card-footer span { color: var(--muted); font-size: 9px; }

.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 18px; align-items: start; }
.calc-form-stack { display: grid; gap: 14px; }
.form-panel { padding: 22px; }
.step-title { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.step-title > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--lime); font-weight: 900; }
.step-title h2 { margin: 0; font-size: 16px; }
.step-title p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
label > span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; margin-bottom: 7px; }
label > input, label > select, .money-input, .suffix-input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf8; outline: none; padding: 0 11px; }
label > input:focus, label > select:focus, .money-input:focus-within, .suffix-input:focus-within { border-color: #87a194; box-shadow: 0 0 0 3px rgba(18,122,73,.08); }
.money-input, .suffix-input { display: flex; align-items: center; gap: 7px; }
.money-input b, .suffix-input b { color: #8b958f; font-size: 11px; }
.money-input input, .suffix-input input { width: 100%; border: 0; background: transparent; outline: 0; font-weight: 750; }
.platform-columns { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.platform-box { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfa; display: grid; gap: 12px; }
.dewu-box { border-top: 3px solid var(--ink); }
.xianyu-box { border-top: 3px solid var(--orange); }
.platform-name { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.platform-logo { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--lime); font-weight: 900; }
.xianyu-box .platform-logo, .platform-result:nth-child(3) .platform-logo { background: #fff0dc; color: #b66c1e; }
.platform-name strong, .platform-name small { display: block; }
.platform-name small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.two-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.reference-row { margin-top: 12px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; border: 1px dashed #d8dfda; border-radius: 12px; }
.shihuo-logo { background: #e6f6ef; color: var(--green); }
.reference-row > div:nth-child(2) { flex: 1; }
.reference-row strong, .reference-row small { display: block; }
.reference-row small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.money-input.compact { width: 130px; }
.calc-results { display: grid; gap: 14px; position: sticky; top: 90px; }
.result-hero { padding: 24px; border-radius: var(--radius); color: #fff; background: radial-gradient(circle at 80% 0, #395146 0, var(--ink) 43%); box-shadow: 0 18px 45px rgba(16,23,20,.18); }
.result-badge { display: inline-flex; margin-top: 20px; padding: 6px 10px; color: var(--ink); background: var(--lime); border-radius: 99px; font-size: 10px; font-weight: 900; }
.result-hero h2 { margin: 12px 0 5px; font-size: 23px; }
.result-hero > p { color: #a6b3ac; line-height: 1.6; font-size: 10px; }
.result-profit { border-top: 1px solid rgba(255,255,255,.1); margin-top: 20px; padding-top: 16px; }
.result-profit span, .result-profit strong, .result-profit small { display: block; }
.result-profit span { color: #87988f; font-size: 9px; }
.result-profit strong { color: var(--lime); font-size: 32px; margin: 4px 0; }
.result-profit small { color: #fff; font-size: 10px; }
.result-comparison, .max-buy-card, .risk-card { padding: 18px; }
.result-comparison h3, .risk-card h3 { margin: 0 0 13px; font-size: 13px; }
.platform-result { display: flex; justify-content: space-between; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 11px; margin-top: 8px; }
.platform-result.best { border-color: #a2c4b0; background: #f2faf5; }
.platform-result > div { display: flex; align-items: center; gap: 9px; }
.platform-result > div:last-child { display: block; text-align: right; }
.platform-result strong, .platform-result small { display: block; }
.platform-result small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.platform-result > div:last-child strong { color: var(--green); }
.max-buy-card > span, .max-buy-card > strong, .max-buy-card > p { display: block; text-align: center; }
.max-buy-card > span { color: var(--muted); font-size: 9px; }
.max-buy-card > strong { font-size: 31px; margin-top: 4px; }
.max-buy-card > p { color: var(--muted); font-size: 9px; margin: 4px 0 14px; }
.max-breakdown { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 12px; }
.max-breakdown span { text-align: center; color: var(--muted); font-size: 9px; }
.max-breakdown b { display: block; color: var(--ink); margin-top: 3px; }
.risk-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 9px; line-height: 1.45; color: var(--muted); }
.risk-check i { width: 16px; height: 16px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 8px; background: #e7f5ed; color: var(--green); }
.risk-check.warn i { background: #fff1de; color: #b66c1e; }

.inventory-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
.inventory-summary article { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.inventory-summary span, .inventory-summary strong, .inventory-summary small { display: block; }
.inventory-summary span, .inventory-summary small { color: var(--muted); font-size: 9px; }
.inventory-summary strong { font-size: 22px; margin: 7px 0 4px; }
#page-inventory > .panel { padding: 20px; }
.workflow-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 16px; }
.team-card, .workflow-board { padding: 22px; }
.team-card h2 { margin: 6px 0 20px; }
.team-member { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.team-member > div { flex: 1; }
.team-member strong, .team-member small { display: block; }
.team-member small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.green-avatar { background: var(--lime); }
.muted { color: var(--muted); font-size: 9px; }
.timeline { margin-top: 20px; }
.timeline-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.timeline-item i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #eef2ef; color: var(--muted); font-style: normal; font-size: 9px; font-weight: 800; }
.timeline-item.done i { background: var(--ink); color: var(--lime); }
.timeline-item.active i { background: var(--lime); color: var(--ink); }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.timeline-item > b { font-size: 9px; color: var(--muted); }
.timeline-item.active > b { color: var(--green); }

footer { display: flex; justify-content: space-between; padding: 25px 2px 0; color: #8f9993; font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 10px; color: #fff; background: var(--ink); opacity: 0; pointer-events: none; transition: .25s; z-index: 99; box-shadow: var(--shadow); font-size: 11px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .decision-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .decision-panel .panel-header, .decision-panel .decision-note { grid-column: 1/-1; }
  .market-grid { grid-template-columns: repeat(2,1fr); }
  .calculator-layout { grid-template-columns: 1fr; }
  .calc-results { position: static; grid-template-columns: repeat(2,1fr); }
  .result-hero { grid-row: span 2; }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: .25s; box-shadow: none; }
  body.menu-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .main-content { margin-left: 0; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 16px; }
  .topbar-search { width: auto; flex: 1; }
  .topbar-search kbd, .sync-state { display: none; }
  .page { padding: 22px 16px; }
  .chart-controls { align-items: flex-end; flex-direction: column; }
  .market-grid { grid-template-columns: 1fr; }
  .form-grid.four { grid-template-columns: repeat(2,1fr); }
  .workflow-grid { grid-template-columns: 1fr; }
  .inventory-summary { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .topbar { height: 64px; gap: 8px; }
  .topbar-actions .primary-button, .icon-button { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .market-open { width: 100%; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { min-height: 145px; padding: 15px; }
  .kpi-card > strong { font-size: 24px; }
  .dashboard-grid { gap: 10px; }
  .chart-panel, .decision-panel { padding: 16px; }
  .panel-header { flex-direction: column; }
  .chart-controls { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .chart-controls select { max-width: 150px; }
  .chart-summary { grid-template-columns: repeat(2,1fr); }
  .chart-summary > div:nth-child(2) { border-right: 0; }
  .chart-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chart-wrap { height: 230px; }
  .chart-legend { flex-wrap: wrap; gap: 8px 13px; }
  .chart-legend small { width: 100%; margin: 0; }
  .decision-panel { display: block; }
  .decision-orbit { height: 155px; }
  .filter-bar { flex-wrap: wrap; }
  .inline-search { min-width: 100%; }
  .form-grid.three, .form-grid.four, .platform-columns { grid-template-columns: 1fr; }
  .reference-row { align-items: flex-start; flex-wrap: wrap; }
  .money-input.compact { width: 100%; }
  .calc-results { grid-template-columns: 1fr; }
  .result-hero { grid-row: auto; }
  .inventory-summary { grid-template-columns: 1fr 1fr; }
  .page-heading.slim h1 { font-size: 28px; }
  footer { flex-direction: column; gap: 5px; }
}
