:root {
  --ink: #121513;
  --muted: #707672;
  --line: #e4e8e4;
  --panel: #fff;
  --bg: #f4f6f3;
  --green: #8b5cf6;
  --green-dark: #6d28d9;
  --orange: #ff6b35;
  --blue: #3478f6;
  --radius: 18px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px 1fr; transition: grid-template-columns .22s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 78px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 18px; display: flex; flex-direction: column; background: #101312; color: #fff; z-index: 20; transition: padding .22s ease; }
.sidebar-collapse { position: absolute; right: -14px; top: 88px; width: 28px; height: 38px; border: 1px solid #28302c; border-radius: 999px; color: #fff; background: #171b18; box-shadow: 0 10px 24px rgba(0,0,0,.22); z-index: 2; }
.app-shell.sidebar-collapsed .sidebar { padding-inline: 12px; }
.app-shell.sidebar-collapsed .sidebar-collapse { transform: rotate(180deg); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: #111; font: 900 22px/1 Arial; transform: skew(-8deg); }
.brand strong { display: block; font-size: 16px; letter-spacing: 3px; }
.brand span { color: #858d88; font-size: 9px; letter-spacing: 1.8px; }
.app-shell.sidebar-collapsed .brand { justify-content: center; padding-inline: 0; }
.app-shell.sidebar-collapsed .brand > div:last-child, .app-shell.sidebar-collapsed .workspace-switch, .app-shell.sidebar-collapsed .sidebar-foot div:last-child { display: none; }
.workspace-switch { margin: -12px 6px 18px; padding: 4px; display: grid; grid-template-columns: 1fr; gap: 4px; border: 1px solid #252b27; border-radius: 14px; background: #151a17; }
.role-option { border: 0; border-radius: 10px; padding: 9px 10px; color: #9ca49f; background: transparent; text-align: left; font-size: 12px; font-weight: 800; }
.role-option:hover { color: #fff; background: #202620; }
.role-option.active { color: #111; background: var(--green); }
nav { display: grid; gap: 5px; }
.nav-item { width: 100%; border: 0; border-radius: 11px; padding: 12px 14px; display: flex; gap: 13px; align-items: center; color: #a7ada9; background: transparent; text-align: left; transition: .2s; }
.nav-item span { width: 18px; text-align: center; font-size: 17px; }
.nav-item:hover { color: white; background: #1c211e; }
.nav-item.active { color: #111; background: var(--green); font-weight: 700; }
.app-shell.sidebar-collapsed .nav-item { justify-content: center; gap: 0; padding-inline: 0; font-size: 0; }
.app-shell.sidebar-collapsed .nav-item span { width: auto; font-size: 18px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #2a2f2c; padding: 17px 8px 0; display: flex; gap: 10px; align-items: center; }
.app-shell.sidebar-collapsed .sidebar-foot { justify-content: center; padding-inline: 0; }
.sidebar-foot strong, .sidebar-foot span { display: block; font-size: 11px; }
.sidebar-foot span { color: #737a76; margin-top: 3px; }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #28331c; }
.main { min-width: 0; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 10; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(244,246,243,.91); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(220,225,220,.8); }
.search-wrap { max-width: 520px; flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 13px; }
.search-wrap input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; }
kbd { padding: 3px 6px; color: #909692; border: 1px solid #e3e7e3; border-radius: 5px; font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.primary-button, .secondary-button { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 750; }
.primary-button { background: var(--green); color: #111; }
.primary-button:hover { filter: brightness(.94); }
.secondary-button { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.avatar { width: 39px; height: 39px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #202522; color: white; font-size: 12px; font-weight: 800; }
.page { padding: 31px 34px 60px; max-width: 1600px; margin: auto; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 25px; }
.eyebrow { color: #84937f; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 6px 0 5px; font-size: clamp(27px, 3vw, 42px); line-height: 1.08; letter-spacing: -1.5px; }
h2 { margin: 5px 0; font-size: 23px; }
h3 { margin-bottom: 6px; font-size: 15px; }
.subtext { color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 3px 20px rgba(20,30,22,.025); }
.workspace-banner { margin-bottom: 16px; display: flex; justify-content: space-between; gap: 18px; align-items: center; background: linear-gradient(135deg, #ffffff, #f4efff); }
.workspace-banner h2, .workspace-banner p { margin-bottom: 0; }
.workspace-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.auth-status-card { margin: -4px 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-color: #e7dcff; background: linear-gradient(135deg,#fff,#f5efff); }
.stat-card { position: relative; overflow: hidden; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { display: block; margin: 10px 0 4px; font-size: 28px; letter-spacing: -1px; }
.trend { color: var(--green-dark); font-size: 11px; font-weight: 700; }
.stat-icon { position: absolute; right: 17px; top: 17px; width: 35px; height: 35px; display: grid; place-items: center; background: #f1f5ee; border-radius: 10px; }
.dashboard-grid { margin-top: 16px; grid-template-columns: 1.35fr .65fr; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-head p, .section-head h2 { margin-bottom: 0; }
.text-button { color: #63715f; border: 0; background: transparent; font-weight: 700; font-size: 12px; }
.product-row { padding: 12px 0; display: grid; grid-template-columns: 50px 1fr auto auto; gap: 13px; align-items: center; border-top: 1px solid #edf0ed; }
.product-row:first-of-type { border-top: 0; }
.thumb { width: 50px; height: 50px; border-radius: 11px; object-fit: cover; background: #eef1ed; }
.product-row strong, .product-card strong { display: block; font-size: 13px; }
.product-row small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: #edf6d7; color: #627d22; font-size: 10px; font-weight: 800; }
.badge.orange { color: #a4411e; background: #fff0e9; }
.badge.blue { color: #275cb3; background: #eaf1ff; }
.badge.gray { color: #6d736f; background: #eef0ee; }
.money { font-size: 12px; font-weight: 800; }
.progress-list { display: grid; gap: 17px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 7px; }
.bar { height: 7px; background: #edf0ec; border-radius: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.insight { padding: 17px; border-radius: 14px; color: #f7fff0; background: #171b18; }
.insight b { color: var(--green); }
.filter-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chip { border: 1px solid var(--line); background: white; color: #68706a; border-radius: 999px; padding: 8px 13px; font-size: 11px; }
.filter-chip.active { color: white; border-color: var(--ink); background: var(--ink); }
.master-data-banner { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #fff; border-color: transparent; background: linear-gradient(135deg,#171b18,#6d28d9); }
.master-data-banner h2, .master-data-banner p { margin-bottom: 0; }
.master-data-banner p { color: #ebe4ff; font-size: 13px; line-height: 1.6; }
.master-score { min-width: 118px; padding: 16px; text-align: center; border-radius: 16px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.master-score b, .master-score span { display: block; }
.master-score b { color: var(--green); font-size: 31px; line-height: 1; }
.master-score span { margin-top: 6px; color: #e6ddff; font-size: 10px; font-weight: 800; }
.master-flow-grid { grid-template-columns: repeat(4,1fr); margin-bottom: 14px; }
.master-flow-card { padding: 15px; border: 1px solid #e7dcff; border-radius: 14px; background: #fbf8ff; }
.master-flow-card strong { display: block; margin-bottom: 8px; font-size: 13px; }
.master-flow-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.conflict-note { margin-bottom: 18px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; align-items: start; border-color: #f0e3be; background: #fffaf0; }
.conflict-note strong { display: block; margin-bottom: 6px; }
.conflict-note p { margin-bottom: 0; color: #76561a; font-size: 12px; line-height: 1.6; }
.conflict-note span { display: inline-flex; margin: 0 7px 7px 0; padding: 7px 10px; border-radius: 999px; color: #7a4a17; background: #fff0d9; font-size: 10px; font-weight: 800; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { padding: 0; overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,30,22,.08); }
.product-image { width: 100%; height: 175px; object-fit: cover; background: #eef1ed; }
.product-body { padding: 17px; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.product-detail { grid-template-columns: minmax(240px,.75fr) 1.25fr; }
.hero-image { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f1f3f0; border-radius: 13px; }
.selling-point-head { display: flex; justify-content: space-between; align-items: end; margin: 18px 0 10px; }
.selling-point-head h2 { margin-bottom: 0; }
.selling-points { margin: 0; padding: 0; list-style: none; counter-reset: points; display: grid; gap: 8px; }
.selling-points li { counter-increment: points; position: relative; padding: 11px 12px 11px 43px; color: #4f5751; background: #f6f8f4; border-radius: 10px; font-size: 12px; line-height: 1.55; }
.selling-points li::before { content: counter(points); position: absolute; left: 12px; top: 10px; width: 21px; height: 21px; display: grid; place-items: center; color: #111; background: var(--green); border-radius: 7px; font-weight: 900; font-size: 10px; }
.master-sync-mini { margin-top: 16px; padding: 14px; display: grid; gap: 10px; border-radius: 14px; background: #f4efff; }
.master-sync-mini strong, .master-sync-mini small { display: block; }
.master-sync-mini strong { margin-top: 4px; font-size: 13px; }
.master-sync-mini small { margin-top: 5px; color: #675f73; font-size: 10px; line-height: 1.55; }
.mini-warning-list { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-warning-list span { padding: 6px 9px; border-radius: 999px; color: #6d28d9; background: #fff; font-size: 10px; font-weight: 800; }
.review-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 16px; color: white; background: #171b18; border-radius: 13px; }
.review-banner h2 { margin-bottom: 0; }
.gate-score { display: grid; text-align: center; }
.gate-score b { color: var(--green); font-size: 25px; line-height: 1; }
.gate-score span { color: #a9b0ab; font-size: 9px; }
.capability-strip { display: grid; grid-template-columns: repeat(6,1fr); gap: 6px; margin-bottom: 14px; }
.capability-strip div { padding: 10px; background: #f3f6f0; border-radius: 9px; }
.capability-strip span, .capability-strip b { display: block; font-size: 9px; }
.capability-strip span { color: var(--muted); margin-bottom: 4px; }
.capability-strip b { font-size: 11px; }
.engineering-sections { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 14px; }
.engineering-sections section { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.engineering-sections h3, .engineering-sections p { margin-bottom: 6px; }
.engineering-sections small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.risk-number { display: inline-grid; min-width: 34px; place-items: center; padding: 4px; border-radius: 6px; background: #edf6d7; color: #627d22; font-weight: 900; }
.risk-number.medium { color: #a4411e; background: #fff0e9; }
.risk-number.high { color: white; background: #d7472f; }
.workflow { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 16px; padding: 14px; background: #171b18; border-radius: 15px; }
.workflow div { position: relative; display: grid; justify-items: center; gap: 7px; color: #7f8781; font-size: 10px; text-align: center; }
.workflow div:not(:last-child)::after { content:""; position:absolute; top:13px; left:60%; width:80%; height:1px; background:#3b423d; }
.workflow b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #2b302d; z-index: 1; }
.workflow .done { color: white; }
.workflow .done b { color: #111; background: var(--green); }
.capability-grid { grid-template-columns: repeat(4,1fr); margin-bottom: 16px; }
.capability-card { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; }
.capability-card .progress-label, .capability-card .bar { grid-column: 1/-1; }
.capability-card p { color: var(--muted); font-size: 10px; line-height: 1.5; margin-bottom: 0; }
.capability-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #111; background: var(--green); font-size: 10px; font-weight: 900; }
.score-pill { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #111; background: var(--green); font-weight: 900; }
.gate-list { display: grid; gap: 4px; margin-top: 14px; }
.gate-list div { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.material-summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 15px; }
.material-checks { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.material-checks > div { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 11px; border-radius: 10px; background: #f5f7f4; }
.material-checks > div > b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; }
.material-checks .ready > b { color: #517014; background: #e8f6c8; }
.material-checks .missing > b { color: #b24622; background: #ffeadf; }
.material-checks strong, .material-checks small { display: block; }
.material-checks small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.material-checks.compact { grid-template-columns: 1fr; }
.material-checks.compact > div { grid-template-columns: 28px 1fr; }
.purchase-standard { display: grid; gap: 14px; }
.purchase-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding: 15px; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#171b18,#2b2147); }
.purchase-head h3, .purchase-head p { margin-bottom: 0; }
.purchase-head p { color: #d8d0ea; font-size: 11px; line-height: 1.6; }
.purchase-image-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.purchase-image-card { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfa; }
.purchase-preview { height: 125px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: #eef1ed; color: var(--muted); font-size: 11px; font-weight: 800; }
.purchase-preview img { width: 100%; height: 100%; object-fit: contain; }
.purchase-image-card strong, .purchase-image-card small { display: block; }
.purchase-image-card strong { margin-top: 10px; font-size: 12px; }
.purchase-image-card small { min-height: 32px; margin: 5px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.purchase-image-card .secondary-button { display: inline-flex; justify-content: center; width: 100%; text-decoration: none; font-size: 11px; }
.purchase-two-col { grid-template-columns: 1fr 1fr; }
.risk-tag-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px; border-radius: 12px; background: #f7f8f6; }
.risk-tag-list span { padding: 7px 10px; border-radius: 999px; color: #6d28d9; background: #fff; border: 1px solid #e7dcff; font-size: 10px; font-weight: 800; }
.publish-workflow { display: grid; grid-template-columns: repeat(6,1fr); margin-bottom: 16px; padding: 14px; border-radius: 15px; background: #171b18; }
.publish-workflow div { display: grid; justify-items: center; gap: 6px; color: #808782; font-size: 10px; text-align: center; }
.publish-workflow b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #2d332f; }
.publish-workflow .done { color: white; }
.publish-workflow .done b { color: #111; background: var(--green); }
.insight-flow { grid-template-columns: repeat(6,1fr); }
.insight-source-grid { grid-template-columns: repeat(5,1fr); margin-bottom: 16px; }
.source-card p { color: var(--muted); font-size: 11px; line-height: 1.55; margin-bottom: 0; }
.competitor-grid { display: grid; gap: 12px; }
.competitor-card { display: grid; grid-template-columns: 118px 1fr; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; }
.competitor-image { width: 118px; height: 118px; object-fit: contain; border-radius: 12px; background: #eef1ed; }
.competitor-body .section-head { margin-bottom: 7px; align-items: start; }
.competitor-body strong, .competitor-body small { display: block; }
.competitor-body small, .competitor-body p { color: var(--muted); font-size: 10px; }
.competitor-body p { line-height: 1.5; margin-bottom: 8px; }
.confidence { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #111; background: var(--green); font-weight: 900; font-size: 12px; }
.pain-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.pain-tags span { padding: 5px 8px; border-radius: 999px; color: #7a4a17; background: #fff1df; font-size: 10px; font-weight: 800; }
.competitor-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--muted); font-size: 10px; }
.competitor-meta a { color: #344f13; font-weight: 800; text-decoration: none; }
.publisher-controls { display: grid; grid-template-columns: 1.4fr 1fr 1fr .6fr; align-items: end; gap: 12px; }
.control-score { display: block; margin-top: 4px; font-size: 25px; }
.platform-scroller { display: flex; gap: 9px; margin: 16px 0; padding-bottom: 5px; overflow-x: auto; }
.platform-card { min-width: 135px; padding: 14px; display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); border-top: 4px solid var(--platform-color); border-radius: 12px; background: white; }
.platform-card span, .platform-card small { color: var(--muted); font-size: 9px; }
.platform-card.active { color: white; border-color: #171b18; background: #171b18; transform: translateY(-2px); }
.platform-card.active span, .platform-card.active small { color: #aab1ac; }
.publish-grid { grid-template-columns: .8fr 1.35fr .75fr; align-items: start; }
.listing-preview textarea { min-height: 66px; }
.listing-points { margin: 14px 0; padding: 13px; border-radius: 10px; background: #f7f8f6; }
.listing-points p { margin: 0 0 7px; font-size: 11px; line-height: 1.5; }
.profit-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.profit-line.total { margin-bottom: 14px; font-size: 14px; }
.profit-line.total b { color: var(--green-dark); }
.dual-system-map { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: stretch; gap: 12px; margin-bottom: 16px; }
.system-box { padding: 24px; border-radius: 18px; color: white; background: #171b18; }
.system-box h2 { margin-bottom: 7px; }
.system-box p { color: #aab1ac; margin-bottom: 0; }
.product-system { background: linear-gradient(135deg,#171b18,#29301f); }
.erp-system { background: linear-gradient(135deg,#111827,#20324f); }
.system-arrow { display: grid; place-items: center; border-radius: 18px; color: #111; background: var(--green); font-size: 28px; font-weight: 900; }
.erp-connector-grid { grid-template-columns: repeat(4,1fr); margin-bottom: 16px; }
.erp-connector-card .section-head { align-items: start; }
.detail-tabs { display: flex; gap: 5px; padding-bottom: 13px; overflow-x: auto; }
.tab-button { border: 0; background: transparent; color: var(--muted); padding: 9px 12px; border-radius: 8px; white-space: nowrap; font-size: 12px; }
.tab-button.active { color: var(--ink); background: #eff3eb; font-weight: 800; }
.tab-button.aftersales-tab { color: #7a4a17; background: #fff5e9; font-weight: 800; }
.tab-button.aftersales-tab.active { color: #111; background: var(--green); }
.master-detail-card { margin-bottom: 12px; padding: 15px; border: 1px solid #e7dcff; border-radius: 14px; background: linear-gradient(135deg,#fff,#f5efff); }
.master-detail-card h3, .master-detail-card p { margin-bottom: 0; }
.master-detail-card p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.master-check-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 13px; }
.master-check-grid div { display: grid; grid-template-columns: 24px 1fr; gap: 7px; align-items: center; padding: 10px; border-radius: 10px; background: white; }
.master-check-grid b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-size: 10px; }
.master-check-grid .ready b { color: #517014; background: #e8f6c8; }
.master-check-grid .missing b { color: #b24622; background: #ffeadf; }
.master-check-grid strong, .master-check-grid small { display: block; }
.master-check-grid strong { font-size: 11px; }
.master-check-grid small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.master-warning-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.master-warning-strip span { padding: 7px 10px; border-radius: 999px; color: #7a4a17; background: #fff1df; font-size: 10px; font-weight: 800; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spec { padding: 13px; background: #f7f8f6; border-radius: 10px; }
.spec span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.spec strong { font-size: 12px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: var(--muted); font-size: 10px; text-align: left; letter-spacing: .5px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #edf0ed; white-space: nowrap; }
.file-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.file-card { min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.file-preview { height: 78px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #eef1ed; font-size: 30px; font-weight: 900; color: #98a096; }
.file-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-card p { margin: 12px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.file-card small { color: var(--muted); font-size: 10px; }
.kanban { grid-template-columns: repeat(4, minmax(230px, 1fr)); overflow-x: auto; align-items: start; }
.kanban-column { padding: 13px; border-radius: 14px; background: #e9ede8; }
.kanban-title { display: flex; justify-content: space-between; padding: 4px 3px 12px; font-size: 12px; font-weight: 800; }
.task { margin-bottom: 9px; padding: 14px; border-radius: 11px; background: white; }
.task p { margin: 7px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.task-foot { display: flex; justify-content: space-between; font-size: 10px; }
.chart { height: 235px; display: flex; align-items: end; gap: 12px; padding-top: 20px; }
.chart-col { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.chart-col i { width: 60%; max-width: 38px; min-height: 4px; background: var(--green); border-radius: 6px 6px 2px 2px; }
.chart-col span { color: var(--muted); font-size: 9px; }
.chart-col:nth-child(3n) i { background: #1b201c; }
.empty-state { padding: 55px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 50; max-width: 320px; padding: 13px 17px; color: white; background: #161a17; border-radius: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }
dialog { width: min(650px, calc(100% - 28px)); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(11,14,12,.6); backdrop-filter: blur(4px); }
.auth-dialog { width: min(430px, calc(100% - 28px)); }
.dialog-head { display: flex; justify-content: space-between; padding: 24px 25px 12px; }
.form-grid { padding: 10px 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid.single { grid-template-columns: 1fr; }
label { display: grid; gap: 6px; color: #656c67; font-size: 11px; font-weight: 700; }
label.full { grid-column: 1/-1; }
label input, label select, label textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fafbfa; }
label textarea { min-height: 75px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 25px 25px; }
.auth-hint { margin: 3px 25px 0; padding: 12px; color: #6d28d9; background: #f4efff; border-radius: 10px; font-size: 11px; line-height: 1.6; }
.auth-note-list { display: grid; gap: 10px; }
.auth-note-list div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: #f7f8f6; }
.auth-note-list b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #111; background: var(--green); font-size: 11px; }
.auth-note-list span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.role-option:disabled { opacity: .38; cursor: not-allowed; }
.visual-layout { display: grid; grid-template-columns: 280px minmax(420px,1fr) 360px; gap: 16px; align-items: stretch; }
.visual-panel, .visual-product-panel { align-self: stretch; }
.visual-mode-tabs { display: grid; gap: 8px; margin-bottom: 14px; }
.visual-mode-tabs button, .visual-group-list button { border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: left; }
.visual-mode-tabs button { padding: 12px; font-size: 12px; font-weight: 900; color: #69716b; }
.visual-mode-tabs button.active { color: #111; border-color: transparent; background: var(--green); box-shadow: 0 10px 24px rgba(139,92,246,.2); }
.visual-brand-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 10px; border-radius: 14px; background: #f7f4ff; }
.visual-brand-tabs button { border: 1px solid #e4d9ff; border-radius: 999px; padding: 7px 10px; color: #6d28d9; background: white; font-size: 11px; font-weight: 900; }
.visual-brand-tabs button.active { color: white; border-color: #6d28d9; background: #6d28d9; box-shadow: 0 8px 18px rgba(109,40,217,.22); }
.visual-source-note { display: grid; gap: 4px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #eadfff; border-radius: 14px; color: #5b21b6; background: linear-gradient(135deg,#fbf8ff,#f2edff); font-size: 11px; line-height: 1.55; }
.visual-source-note strong { font-size: 12px; color: #111; }
.visual-side-actions { display: grid; gap: 8px; margin: 0 0 14px; }
.visual-side-actions .secondary-button, .visual-side-actions .text-button { justify-content: center; width: 100%; }
.visual-group-list { display: grid; gap: 9px; }
.visual-group-list button { padding: 13px; display: grid; gap: 5px; }
.visual-group-list button strong { font-size: 13px; }
.visual-group-list button span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.visual-group-list button em { color: var(--green-dark); font-style: normal; font-size: 10px; font-weight: 900; }
.visual-group-list button.active { border-color: #171b18; background: #171b18; color: #fff; }
.visual-group-list button.active span { color: #aab1ac; }
.vehicle-stage { overflow: hidden; }
.vehicle-map { position: relative; min-height: 520px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 46%, #27223f 0, #14151c 42%, #0d0f13 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.visual-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.visual-tools .secondary-button { padding: 9px 12px; font-size: 11px; }
.visual-angle-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.visual-angle-tabs button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: #626b65; background: #fff; font-size: 11px; font-weight: 900; }
.visual-angle-tabs button.active { color: #111; border-color: transparent; background: var(--green); box-shadow: 0 8px 18px rgba(139,92,246,.2); }
.visual-warning-panel { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #f1dfb8; border-radius: 14px; background: #fff9ec; }
.visual-warning-panel strong { display: block; margin-bottom: 6px; font-size: 12px; }
.visual-warning-panel p { margin: 4px 0; color: #7b5b16; font-size: 11px; line-height: 1.5; }
.visual-readonly-note, .visual-editor-tip { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; color: #6d28d9; background: #f4efff; font-size: 11px; line-height: 1.55; }
.visual-editor-tip { margin: 12px 0 0; color: #59615b; background: #f7f8f6; }
.tech-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(139,92,246,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,.14) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle at center, #000 25%, transparent 75%); opacity: .8; }
.vehicle-bg-image { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; opacity: .86; filter: drop-shadow(0 24px 50px rgba(0,0,0,.34)); }
.vehicle-bg-image + .bike-silhouette { opacity: .12; }
.bike-silhouette { position: absolute; inset: 11% 6% 13%; }
.wheel { position: absolute; bottom: 12%; width: 22%; aspect-ratio: 1; border: 10px solid rgba(255,255,255,.88); border-radius: 50%; box-shadow: 0 0 28px rgba(139,92,246,.34), inset 0 0 0 12px rgba(139,92,246,.12); }
.wheel.front { left: 7%; }
.wheel.rear { right: 8%; }
.body-line { position: absolute; height: 10px; border-radius: 999px; background: linear-gradient(90deg,#f6f1ff,#8b5cf6); box-shadow: 0 0 22px rgba(139,92,246,.42); transform-origin: left center; }
.body-line.main { left: 24%; top: 58%; width: 46%; transform: rotate(-8deg); }
.body-line.tank { left: 39%; top: 42%; width: 25%; transform: rotate(8deg); }
.body-line.seat { left: 58%; top: 34%; width: 22%; transform: rotate(4deg); }
.body-line.fork { left: 24%; top: 43%; width: 24%; transform: rotate(-48deg); }
.body-line.handle { left: 36%; top: 26%; width: 15%; transform: rotate(-12deg); }
.body-line.tail { left: 75%; top: 42%; width: 15%; transform: rotate(18deg); }
.body-line.engine { left: 45%; top: 61%; width: 15%; height: 38px; border-radius: 12px; background: rgba(255,255,255,.84); box-shadow: 0 0 26px rgba(255,255,255,.24); }
.map-line { position: absolute; height: 2px; pointer-events: none; transform-origin: left center; background: linear-gradient(90deg,#c4b5fd,#ffffff); box-shadow: 0 0 16px rgba(196,181,253,.72); }
.map-hotspot { position: absolute; transform: translate(-50%,-50%); min-width: 24px; height: 24px; border: 2px solid #fff; border-radius: 999px; color: transparent; background: var(--green); box-shadow: 0 0 0 8px rgba(139,92,246,.22), 0 0 22px rgba(139,92,246,.9); cursor: grab; touch-action: none; }
.map-hotspot::after { content: ""; position: absolute; inset: 5px; border-radius: inherit; background: #fff; }
.map-label { position: absolute; transform: translate(-50%,-50%); padding: 8px 11px; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(15,17,22,.72); backdrop-filter: blur(10px); font-size: 11px; font-weight: 900; white-space: nowrap; box-shadow: 0 8px 28px rgba(0,0,0,.2); cursor: grab; user-select: none; touch-action: none; }
.dragging-map, .dragging-map * { cursor: grabbing !important; user-select: none; }
.visual-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 13px; }
.visual-summary div { padding: 14px; border-radius: 13px; background: #f6f4ff; }
.visual-summary b, .visual-summary span { display: block; }
.visual-summary b { font-size: 24px; }
.visual-summary span { color: var(--muted); font-size: 10px; font-weight: 800; }
.visual-product-list { display: grid; gap: 11px; }
.visual-product-card { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfa; cursor: pointer; transition: .2s; }
.visual-product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(20,30,22,.08); }
.visual-product-card img { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; background: #eef1ed; }
.visual-product-card strong, .visual-product-card small { display: block; }
.visual-product-card small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.visual-product-card p { margin: 8px 0; color: #4f5751; font-size: 11px; line-height: 1.45; }
.visual-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.map-opportunity-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.map-opportunity-list div { padding: 13px; border-radius: 12px; background: #f7f8f6; }
.map-opportunity-list b, .map-opportunity-list span { display: block; }
.map-opportunity-list span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mobile-only { display: none; }
@media (max-width: 1050px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .file-grid { grid-template-columns: repeat(3, 1fr); }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .capability-strip { grid-template-columns: repeat(3,1fr); }
  .publish-grid { grid-template-columns: 1fr 1fr; }
  .publish-grid > :last-child { grid-column: 1/-1; }
  .insight-source-grid { grid-template-columns: repeat(2,1fr); }
  .erp-connector-grid { grid-template-columns: repeat(2,1fr); }
  .dual-system-map { grid-template-columns: 1fr; }
  .system-arrow { min-height: 48px; }
  .visual-layout { grid-template-columns: 1fr; }
  .vehicle-map { min-height: 430px; }
  .master-flow-grid, .purchase-image-grid, .master-check-grid { grid-template-columns: repeat(2,1fr); }
  .conflict-note, .purchase-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .app-shell.sidebar-collapsed { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 250px; transition: transform .25s; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-collapse { display: none; }
  .mobile-only { display: inline-grid; place-items: center; }
  .topbar { height: 66px; padding: 0 14px; gap: 9px; }
  .search-wrap { flex: 1; }
  .search-wrap kbd, .top-actions .icon-button, .avatar { display: none; }
  .primary-button { padding: 10px 12px; }
  .page { padding: 23px 15px 80px; }
  .page-head { align-items: start; }
  .workspace-banner { display: block; }
  .workspace-pills { justify-content: flex-start; margin-top: 14px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 16px; }
  .dashboard-grid, .product-detail { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 205px; }
  .file-grid { grid-template-columns: 1fr 1fr; }
  .product-row { grid-template-columns: 45px 1fr auto; }
  .product-row .money { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .engineering-sections { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: repeat(7,90px); overflow-x: auto; }
  .publish-workflow { grid-template-columns: repeat(6,100px); overflow-x: auto; }
  .insight-source-grid { grid-template-columns: 1fr; }
  .competitor-card { grid-template-columns: 1fr; }
  .competitor-image { width: 100%; height: 170px; }
  .publisher-controls, .publish-grid { grid-template-columns: 1fr; }
  .publish-grid > :last-child { grid-column: auto; }
  .material-checks { grid-template-columns: 1fr; }
  .erp-connector-grid { grid-template-columns: 1fr; }
  .map-opportunity-list { grid-template-columns: 1fr; }
  .master-data-banner, .purchase-head { display: block; }
  .master-score { margin-top: 13px; }
  .master-flow-grid, .purchase-image-grid, .master-check-grid { grid-template-columns: 1fr; }
  label.full { grid-column: auto; }
}
@media (max-width: 420px) {
  .top-actions .primary-button { font-size: 0; width: 40px; }
  .top-actions .primary-button::first-letter { font-size: 18px; }
  .stats { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-strip { grid-template-columns: repeat(2,1fr); }
}
