:root {
  --blue: #176bff;
  --blue-dark: #0f4fc3;
  --blue-soft: #edf4ff;
  --ink: #172033;
  --muted: #687386;
  --line: #e5e9f0;
  --panel: #fff;
  --canvas: #f5f7fa;
  --green: #17a673;
  --orange: #f49b2f;
  --red: #e84b5f;
  --sidebar: #111827;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--canvas); }
button, select, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 224px; display: none; background: var(--sidebar); color: #d8deea; position: fixed; inset: 0 auto 0 0; }
.brand { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 8px; font-weight: 800; font-size: 18px; }
.brand strong, .brand span, .sidebar-foot strong, .sidebar-foot span { display: block; }
.brand strong { color: #fff; font-size: 14px; letter-spacing: .2px; }
.brand span { color: #8995a8; font-size: 11px; margin-top: 2px; }
nav { padding: 18px 10px; flex: 1; }
.nav-section { padding: 0 10px 8px; font-size: 11px; color: #667085; text-transform: uppercase; letter-spacing: 1px; }
.nav-section.secondary { margin-top: 24px; }
.nav-item, .nav-ghost { height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 11px; margin: 3px 0; border-radius: 7px; color: #aab4c5; text-decoration: none; font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(23,107,255,.26), rgba(23,107,255,.09)); color: #fff; box-shadow: inset 3px 0 0 var(--blue); }
.nav-icon { width: 18px; text-align: center; font-size: 17px; }
.nav-item em { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; background: #2b3546; color: #c9d2df; font-size: 11px; font-style: normal; }
.nav-item.active em { background: var(--blue); color: #fff; }
.nav-ghost { opacity: .55; cursor: default; }
.sidebar-foot { min-height: 68px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; padding: 12px 18px; gap: 10px; }
.tenant-dot { width: 8px; height: 8px; background: #31c48d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(49,196,141,.12); }
.sidebar-foot strong { color: #d8deea; font-size: 12px; }
.sidebar-foot span { color: #718096; font-size: 10px; margin-top: 2px; }
.main {  width: 100%; min-height: 100vh; }
.topbar { display: none; height: 64px; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 7; }
.breadcrumb { font-size: 13px; display: flex; gap: 9px; align-items: center; }
.breadcrumb span { color: #8b95a7; }.breadcrumb b { color: #c9ced7; font-weight: 400; }.breadcrumb strong { font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.live { font-size: 11px; color: var(--green); background: #ecfbf5; padding: 5px 9px; border-radius: 12px; }
.live i { display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-right: 5px; }
.icon-button { border: 1px solid var(--line); width: 32px; height: 32px; border-radius: 7px; background: #fff; color: #516078; font-size: 18px; }
.icon-button:hover { border-color: var(--blue); color: var(--blue); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #36435a; font-size: 12px; }
.page { padding: 20px 24px 32px; max-width: 1760px; margin: 0 auto; }
html.embed-mode .sidebar, html.embed-mode .topbar { display: none; }
html.embed-mode .main { width: 100%; margin-left: 0; }
html.embed-mode .page { max-width: none; padding: 16px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.page-heading h1 { font-size: 22px; margin: 0 0 5px; letter-spacing: -.3px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.page-tools { display: flex; gap: 8px; }
.select, .search { height: 34px; border: 1px solid #d9dee7; background: #fff; border-radius: 6px; color: #364152; padding: 0 10px; font-size: 12px; outline: none; }
.select:focus, .search:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(23,107,255,.1); }
.search { width: 220px; }
.meta-strip { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #dbe7fa; border-radius: 7px; background: #f5f9ff; margin-bottom: 14px; font-size: 11px; color: #53657e; }
.meta-strip strong { color: var(--blue-dark); }.meta-strip .fact-list { display: flex; gap: 15px; }
.meta-strip .fact-list span::before { content: "•"; color: var(--blue); margin-right: 5px; }
.kpi-grid { display: grid; grid-template-columns: repeat(8, minmax(105px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px 11px; min-height: 84px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; width: 46px; height: 46px; right: -14px; top: -16px; border-radius: 50%; background: #f4f7fb; }
.kpi-label { font-size: 11px; color: var(--muted); margin-bottom: 8px; white-space: nowrap; }
.kpi-value { font-size: 24px; font-weight: 680; line-height: 1; letter-spacing: -.7px; }
.kpi small { font-size: 10px; margin-left: 4px; color: #9aa3b2; font-weight: 400; }
.kpi-foot { font-size: 10px; margin-top: 8px; color: #8c96a7; }
.kpi.danger .kpi-value { color: var(--red); }.kpi.warning .kpi-value { color: var(--orange); }.kpi.good .kpi-value { color: var(--green); }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); gap: 12px; margin-bottom: 12px; }
.layout-grid.workbench { grid-template-columns: minmax(0, 1.5fr) minmax(310px, .8fr); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.panel-header { min-height: 47px; padding: 0 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 620; }
.panel-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.panel-note { font-size: 10px; color: #9099a8; }
.timeline { padding: 6px 14px 10px; max-height: 398px; overflow: auto; }
.timeline-head, .timeline-row { display: grid; grid-template-columns: 126px 1fr; align-items: center; }
.timeline-head { height: 31px; position: sticky; top: 0; background: #fff; z-index: 2; color: #9099a8; font-size: 9px; }
.ticks { display: grid; grid-template-columns: repeat(5, 1fr); text-align: right; }
.timeline-row { min-height: 36px; border-top: 1px solid #f0f2f5; }
.device-label { padding-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-label strong { display: block; font-size: 11px; font-weight: 600; }.device-label span { font-size: 9px; color: #929cab; }
.timeline-track { height: 24px; position: relative; border-radius: 4px; background: repeating-linear-gradient(90deg,#f3f5f8 0,#f3f5f8 1px,transparent 1px,transparent 20%); overflow: hidden; }
.timeline-block { height: 20px; top: 2px; left: 1%; position: absolute; border-radius: 4px; display: flex; align-items: center; padding: 0 7px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
.timeline-block.PRINTING { width: 39%; background: #e8f1ff; color: #155fc9; border-color: var(--blue); }
.timeline-block.ERROR, .timeline-block.OFFLINE { width: 24%; background: #fff0f2; color: #c83a4b; border-color: var(--red); }
.timeline-block.READY, .timeline-block.FREE { width: 21%; background: #eafaf4; color: #16855f; border-color: var(--green); }
.prediction-hatch { position: absolute; left: 43%; width: 48%; top: 3px; height: 18px; border: 1px dashed #b8c2d1; border-radius: 4px; color: #8993a3; font-size: 9px; padding: 2px 6px; background: repeating-linear-gradient(135deg,#fff,#fff 4px,#f5f6f8 4px,#f5f6f8 8px); }
.bottlenecks { padding: 6px 14px 11px; }
.bottleneck-row { padding: 10px 0; border-bottom: 1px solid #f0f2f5; }
.bottleneck-row:last-child { border-bottom: 0; }
.bottleneck-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 7px; }
.bottleneck-top strong { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottleneck-top span { color: var(--muted); }
.progress { height: 5px; border-radius: 3px; background: #eef1f5; overflow: hidden; }.progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.bottleneck-meta { display: flex; gap: 13px; color: #929baa; font-size: 9px; margin-top: 6px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { background: #f8f9fb; color: #697588; font-weight: 550; text-align: left; padding: 9px 11px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 10px 11px; border-bottom: 1px solid #eff1f4; white-space: nowrap; color: #344054; }
tbody tr:hover { background: #f8fbff; }
.code { color: var(--blue-dark); font-weight: 600; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 9px; font-weight: 550; background: #f0f2f5; color: #657083; }
.tag.red { background: #fff0f2; color: #d84154; }.tag.orange { background: #fff6e9; color: #c87617; }.tag.green { background: #eafaf4; color: #17835f; }.tag.blue { background: #edf4ff; color: #1764d8; }
.btn { height: 30px; padding: 0 11px; border: 1px solid #d7dce5; color: #40506a; background: #fff; border-radius: 6px; font-size: 11px; }
.btn:hover { color: var(--blue); border-color: var(--blue); }.btn.primary { border-color: var(--blue); background: var(--blue); color: #fff; }.btn.primary:hover { background: var(--blue-dark); }.btn.text { height: 26px; border: 0; color: var(--blue); background: transparent; padding: 0 4px; }
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 14px; }
.issue { padding: 10px; background: #fafbfc; border: 1px solid #edf0f4; border-radius: 6px; }.issue strong { display: block; font-size: 20px; }.issue span { color: var(--muted); font-size: 10px; }
.segmented { display: inline-flex; border: 1px solid #dfe3e9; background: #f4f6f8; padding: 2px; border-radius: 7px; }
.segmented button { border: 0; background: transparent; color: #697588; font-size: 11px; height: 28px; padding: 0 13px; border-radius: 5px; }.segmented button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.recommendation-list { padding: 7px 14px 10px; max-height: 426px; overflow: auto; }
.recommendation { padding: 11px 0; border-bottom: 1px solid #eff1f4; }.recommendation:last-child { border: 0; }
.rec-top { display: flex; gap: 9px; align-items: center; }.rank { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 700; }.rec-person { flex: 1; min-width: 0; }.rec-person strong { display: block; font-size: 11px; }.rec-person span { display: block; font-size: 9px; color: #8a94a4; margin-top: 2px; }.score { font-size: 18px; color: var(--blue); font-weight: 680; }.score small { font-size: 9px; font-weight: 400; }
.score-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 9px; }.score-bars span { font-size: 8px; color: #8791a1; }.score-bars i { display: block; height: 3px; background: #e9edf2; margin-top: 3px; border-radius: 2px; overflow: hidden; }.score-bars i::after { content: ""; display: block; width: var(--w); height: 100%; background: var(--blue); }
.rec-reason { margin-top: 7px; color: #7b8697; font-size: 9px; line-height: 1.5; }
.heading-role { display: inline-flex; vertical-align: 3px; margin-left: 7px; padding: 3px 8px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.role-radar { display: grid; grid-template-columns: 1.25fr repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.role-card { min-width: 0; min-height: 62px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; transition: .15s; }
.role-card:hover { border-color: #a9c7ff; box-shadow: 0 2px 8px rgba(23,107,255,.08); }
.role-card.active { border-color: var(--blue); background: #f5f9ff; box-shadow: inset 0 0 0 1px rgba(23,107,255,.08); }
.role-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: #edf4ff; color: var(--blue); font-size: 12px; font-weight: 700; }
.role-card > span:nth-child(2) { min-width: 0; flex: 1; }
.role-card strong, .role-card small { display: block; }
.role-card strong { font-size: 11px; white-space: nowrap; }
.role-card small { margin-top: 3px; color: #8993a4; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-card em { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 11px; background: #fff0f2; color: var(--red); font-size: 9px; font-style: normal; font-weight: 700; }
.role-card.active em { background: var(--red); color: #fff; }
.role-kpis { grid-template-columns: repeat(6, minmax(110px, 1fr)); }
.scope-panel { margin-bottom: 12px; }
.role-workbench { grid-template-columns: minmax(0, 1.85fr) minmax(300px, .65fr); align-items: start; }
.workbench-side { display: grid; gap: 12px; }
.role-module-body { padding: 12px 14px 14px; }
.module-hero { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 7px; background: #f5f9ff; border: 1px solid #dce9fd; }
.module-hero > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.module-hero strong, .module-hero small { display: block; }
.module-hero strong { font-size: 11px; line-height: 1.45; }
.module-hero small { margin-top: 3px; color: #78869a; font-size: 8px; }
.rule-list { display: grid; gap: 6px; margin: 11px 0; }
.rule-list div { display: flex; align-items: center; gap: 7px; min-height: 28px; padding: 5px 8px; border: 1px solid #edf0f4; border-radius: 6px; background: #fafbfc; font-size: 9px; color: #526075; }
.rule-list i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #eafaf4; color: var(--green); font-size: 8px; font-style: normal; }
.data-boundary { padding: 9px 10px; border-left: 3px solid var(--orange); background: #fffaf3; }
.data-boundary strong, .data-boundary span { display: block; }
.data-boundary strong { color: #a66115; font-size: 9px; }
.data-boundary span { margin-top: 4px; color: #7b6854; font-size: 8px; line-height: 1.55; }
.cell-sub { display: block; max-width: 300px; margin-top: 3px; color: #8b95a5; font-size: 8px; overflow: hidden; text-overflow: ellipsis; }
.entity-type { display: inline-flex; margin-right: 5px; padding: 2px 4px; border-radius: 3px; background: #eff2f6; color: #768195; font-size: 8px; }
.role-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; background: #edf4ff; color: #1764d8; font-size: 9px; }
.role-pill.pickup { background: #eafaf4; color: #17835f; }.role-pill.post { background: #fff6e9; color: #b66c16; }.role-pill.quality { background: #f4efff; color: #7451bd; }.role-pill.sales { background: #fff0f2; color: #ce4255; }
.empty.compact { padding: 24px 15px; }
.empty.compact b { font-size: 18px; margin-bottom: 5px; }
.role-detail-hero { display: flex; align-items: center; gap: 11px; }
.role-detail-hero > div { min-width: 0; }
.event-timeline { margin-top: 16px; }.event-timeline h3 { font-size: 12px; }
.event-line { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid #eff1f4; }
.event-line i { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.event-line strong, .event-line span { display: block; }.event-line strong { font-size: 10px; }.event-line span { margin-top: 3px; color: #8993a3; font-size: 8px; }
.smart-queue-panel { overflow: hidden; }
.smart-panel-header { min-height: 60px; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.engine-summary { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #79869a; font-size: 9px; }
.engine-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23,166,115,.12); animation: enginePulse 1.8s infinite; }
@keyframes enginePulse { 50% { box-shadow: 0 0 0 7px rgba(23,166,115,0); } }
.smart-panel-actions { flex: 0 0 auto; }
.smart-batch-button { height: 34px; border-color: #9bc0ff; color: var(--blue); background: #f2f7ff; font-weight: 600; box-shadow: 0 3px 10px rgba(23,107,255,.09); }
.smart-batch-button:hover { background: var(--blue); color: #fff; }
.smart-batch-button:disabled { cursor: not-allowed; opacity: .55; }
.button-spinner { display: inline-block; width: 11px; height: 11px; vertical-align: -2px; border: 2px solid #c8d8f4; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.smart-table-wrap { overflow-x: auto; }
.smart-task-table { table-layout: fixed; min-width: 720px; }
.smart-task-table th:nth-child(1) { width: 72px; }
.smart-task-table th:nth-child(2) { width: auto; }
.smart-task-table th:nth-child(3) { width: 112px; }
.smart-task-table th:nth-child(4) { width: 124px; }
.smart-task-table th:nth-child(5) { width: 138px; }
.smart-task-table th:nth-child(6) { width: 164px; }
.smart-task-table td { height: 66px; overflow: hidden; }
.smart-task-title { display: block; overflow: hidden; text-overflow: ellipsis; }
.smart-entity { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.stage-code { display: block; overflow: hidden; color: #41516a; font-size: 10px; text-overflow: ellipsis; }
.due-time { font-variant-numeric: tabular-nums; font-size: 10px; }
.due-time.overdue { color: var(--red); font-weight: 600; }
.inline-recommendation { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mini-avatar { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 700; }
.inline-recommendation > span:last-child { min-width: 0; }
.inline-recommendation strong, .inline-recommendation small { display: block; overflow: hidden; text-overflow: ellipsis; }
.inline-recommendation strong { font-size: 10px; }
.inline-recommendation small { margin-top: 3px; color: #8190a4; font-size: 8px; }
.data-missing { color: #99a2b1; font-size: 9px; }
.smart-task-table .sticky-action { position: sticky; right: 0; z-index: 2; background: #fff; box-shadow: -8px 0 12px rgba(27,39,66,.055); }
.smart-task-table thead .sticky-action { z-index: 3; background: #f8f9fb; }
.smart-task-table tbody tr:hover .sticky-action { background: #f8fbff; }
.smart-task-table .sticky-action .btn + .btn { margin-left: 5px; }
.evidence-button { width: 42px; padding: 0 5px; border-color: transparent; color: #66758d; background: transparent; }
.smart-create-button { min-width: 104px; padding: 0 8px; font-weight: 600; box-shadow: 0 4px 10px rgba(23,107,255,.16); }
.smart-create-button span { margin-right: 2px; }
.capacity-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 14px; }
.capacity-heading h1 { margin: 3px 0 4px; font-size: 24px; letter-spacing: -.5px; }.capacity-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.heading-kicker { display: flex; align-items: center; gap: 7px; color: var(--blue); font-size: 10px; font-weight: 650; letter-spacing: .4px; }
.ai-orbit { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%,#61a0ff,#176bff 65%,#0f4fc3); box-shadow: 0 0 0 4px rgba(23,107,255,.09),0 4px 12px rgba(23,107,255,.25); font-size: 8px; }
.capacity-actions { display: flex; align-items: center; gap: 8px; }.scenario-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.scenario-switch button { height: 28px; padding: 0 11px; border: 0; border-radius: 5px; color: #738096; background: transparent; font-size: 9px; }.scenario-switch button.active { color: var(--blue); background: var(--blue-soft); font-weight: 600; }
.capacity-data-strip { min-height: 38px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 7px 11px; margin-bottom: 12px; border: 1px solid #dbe7fa; border-radius: 7px; color: #64738a; background: #f6f9ff; font-size: 9px; }
.capacity-data-strip > div:first-child { display: flex; align-items: center; gap: 8px; }.capacity-data-strip strong { color: var(--blue-dark); }.data-legend { display: flex; justify-content: center; align-items: center; gap: 6px; }
.source-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 8px; font-weight: 600; white-space: nowrap; }.source-badge.fact { color: #16805d; background: #e8faf3; }.source-badge.simulated { color: #7352bd; background: #f2edff; }
.simulation-mode { display: flex; align-items: center; gap: 6px; color: #42628f; }.simulation-mode i,.ai-diagnosis i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23,166,115,.11); animation: enginePulse 1.8s infinite; }
.capacity-kpis { display: grid; grid-template-columns: repeat(6,minmax(125px,1fr)); gap: 9px; margin-bottom: 12px; }
.capacity-kpi { min-height: 112px; padding: 12px 13px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.capacity-kpi::after { content:""; position:absolute; right:-18px; top:-22px; width:58px; height:58px; border-radius:50%; background:#f5f7fb; }.capacity-kpi.primary { border-color: #c9dcff; background: linear-gradient(145deg,#fff,#f5f9ff); }
.capacity-kpi-head { min-height: 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 5px; color: #69768b; font-size: 9px; }.capacity-kpi > strong { display: block; margin-top: 10px; font-size: 25px; line-height: 1; letter-spacing: -.8px; }.capacity-kpi > strong small { margin-left: 3px; color: #8d98a9; font-size: 9px; font-weight: 450; letter-spacing: 0; }.capacity-kpi > strong.text-value { font-size: 20px; letter-spacing: -.3px; }.capacity-kpi.danger > strong { color: var(--red); }.capacity-kpi.warning > strong { color: var(--orange); }.capacity-kpi.good > strong { color: var(--green); }
.capacity-kpi p { margin: 7px 0 0; color: #8792a3; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.trend { display: inline-block; margin-top: 5px; color: #61799d; font-size: 8px; }.trend.up { color: var(--red); }.trend.good { color: var(--green); }
.kpi-meter { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #e8edf5; }.kpi-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2e7aff,#15a778); }
.capacity-decision-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(330px,.75fr); gap: 12px; margin-bottom: 12px; }.panel-subtitle { margin-top: 3px; color: #929cac; font-size: 8px; font-weight: 400; }
.forecast-panel .panel-header,.acceptance-panel .panel-header,.heatmap-panel .panel-header,.bottleneck-panel .panel-header,.loss-panel .panel-header,.release-panel .panel-header { min-height: 54px; }
.chart-legend { display: flex; align-items: center; gap: 12px; color: #7d899b; font-size: 8px; }.chart-legend span { display: flex; align-items: center; gap: 4px; }.chart-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--blue); }.chart-legend i.actual { background: #9cabbe; }.chart-legend i.danger-zone { height: 8px; background: #fff0f2; }
.forecast-chart-wrap { height: 224px; padding: 6px 14px 0; }.forecast-chart { width: 100%; height: 100%; overflow: visible; }.chart-grid { stroke: #e9edf3; stroke-width: 1; stroke-dasharray: 3 4; }.chart-axis,.chart-label,.chart-value,.svg-risk-label { fill: #8a96a8; font-size: 9px; font-family: inherit; }.chart-value { fill: #246be0; font-weight: 650; }.chart-value.danger,.svg-risk-label { fill: var(--red); }
.capacity-mix { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 0 16px 13px; }.capacity-mix div { display: grid; grid-template-columns: 1fr auto; gap: 5px; color: #768399; font-size: 8px; }.capacity-mix strong { color: #40506a; }.capacity-mix i { grid-column: 1/3; height: 4px; overflow: hidden; border-radius: 2px; background: #edf0f4; }.capacity-mix b { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.acceptance-body { padding: 12px 14px 14px; }.order-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }.order-type-switch button { height: 38px; border: 1px solid var(--line); border-radius: 7px; color: #66748a; background: #fff; font-size: 10px; }.order-type-switch button span { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 5px; border-radius: 5px; background: #eef2f7; }.order-type-switch button.active { border-color: var(--blue); color: var(--blue); background: #f5f9ff; font-weight: 600; }.order-type-switch button.active span { color: #fff; background: var(--blue); }
.acceptance-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.acceptance-inputs label > span { display: block; margin-bottom: 5px; color: #78869a; font-size: 8px; }.acceptance-inputs label > div { height: 34px; display: flex; align-items: center; overflow: hidden; border: 1px solid #dce1e9; border-radius: 6px; background: #fff; }.acceptance-inputs input { width: 100%; height: 100%; padding: 0 8px; border: 0; outline: 0; color: #24324a; font-size: 12px; }.acceptance-inputs em { padding-right: 8px; color: #8b96a6; font-size: 8px; font-style: normal; white-space: nowrap; }.acceptance-run { width: 100%; margin-top: 9px; }
.acceptance-result { display: flex; align-items: center; gap: 14px; padding: 11px; margin-top: 11px; border-radius: 8px; border: 1px solid #ccebdc; background: #f3fcf8; }.acceptance-result.orange { border-color: #f2d8af; background: #fffaf2; }.acceptance-result.red { border-color: #f2c5cc; background: #fff5f6; }.decision-ring { --p:80; width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; align-content: center; position: relative; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p)*1%),#e6ecef 0); }.acceptance-result.orange .decision-ring { background: conic-gradient(var(--orange) calc(var(--p)*1%),#eee9df 0); }.acceptance-result.red .decision-ring { background: conic-gradient(var(--red) calc(var(--p)*1%),#efe5e7 0); }.decision-ring::after { content:""; position:absolute; inset:5px; border-radius:50%; background:#fff; }.decision-ring strong,.decision-ring span { position:relative; z-index:1; }.decision-ring strong { font-size:17px; line-height:1; }.decision-ring strong small { font-size:8px; }.decision-ring span { margin-top:3px; color:#8490a1; font-size:7px; }
.decision-copy > span { color: #8792a4; font-size: 8px; }.decision-copy strong { display: block; margin-top: 2px; color: var(--green); font-size: 17px; }.acceptance-result.orange .decision-copy strong { color: var(--orange); }.acceptance-result.red .decision-copy strong { color: var(--red); }.decision-copy p { margin: 5px 0 0; color: #68768a; font-size: 8px; line-height: 1.5; }
.decision-details { display: grid; grid-template-columns: .8fr .9fr 1.5fr; gap: 6px; margin-top: 9px; }.decision-details div { min-width: 0; padding: 7px; border: 1px solid #edf0f4; border-radius: 5px; background: #fafbfc; }.decision-details span,.decision-details strong { display:block; }.decision-details span { color:#8b96a6;font-size:7px; }.decision-details strong { margin-top:3px; overflow:hidden; color:#3d4c64;font-size:9px; text-overflow:ellipsis;white-space:nowrap; }
.capacity-analysis-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(390px,.85fr); gap: 12px; margin-bottom: 12px; }.heatmap-legend { display: flex; align-items: center; gap: 3px; color: #8b95a5; font-size: 8px; }.heatmap-legend i { width: 16px; height: 8px; border-radius: 2px; }.heatmap-legend .low,.heat-cell.low { background:#e9f9f3;color:#16805d; }.heatmap-legend .medium,.heat-cell.medium { background:#edf4ff;color:#1764d8; }.heatmap-legend .high,.heat-cell.high { background:#fff4df;color:#be741d; }.heatmap-legend .critical,.heat-cell.critical { background:#fff0f2;color:#d84154; }
.capacity-heatmap { padding: 8px 14px 13px; }.heatmap-head,.heatmap-row { display: grid; grid-template-columns: 150px repeat(7,minmax(42px,1fr)) 110px; gap: 5px; align-items: center; }.heatmap-head { height: 25px; color:#8b96a7;font-size:8px;text-align:center; }.heatmap-head span:first-child { text-align:left; }.heatmap-row { min-height: 46px; border-top:1px solid #eff1f4; }.heatmap-row > div strong,.heatmap-row > div small { display:block; }.heatmap-row > div strong { font-size:9px; }.heatmap-row > div small { margin-top:3px;color:#929cab;font-size:7px; }.heat-cell { height:27px;display:grid;place-items:center;border-radius:5px;font-size:8px;font-weight:600; }.heatmap-row em { color:#718097;font-size:8px;font-style:normal;text-align:center; }
.ai-diagnosis { display:flex;align-items:center;gap:6px;color:#557294;font-size:8px; }.bottleneck-diagnosis { padding: 6px 14px 10px; }.diagnosis-item { min-height:70px; display:grid;grid-template-columns:26px 1fr auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid #eff1f4; }.diagnosis-item:last-child { border-bottom:0; }.diagnosis-rank { width:23px;height:23px;display:grid;place-items:center;border-radius:6px;color:#fff;background:#718097;font-size:9px;font-weight:700; }.diagnosis-item.critical .diagnosis-rank { background:var(--red); }.diagnosis-item.high .diagnosis-rank { background:var(--orange); }.diagnosis-item.medium .diagnosis-rank { background:var(--blue); }.diagnosis-main > div { display:flex;align-items:center;gap:6px; }.diagnosis-main strong { font-size:9px; }.diagnosis-main p { margin:4px 0;color:#8591a2;font-size:7px;line-height:1.45; }.diagnosis-action { display:flex;justify-content:space-between;gap:8px;color:#526782;font-size:7px; }.diagnosis-action em { color:var(--green);font-style:normal;white-space:nowrap; }.diagnosis-impact { max-width:90px;color:#65748a;font-size:8px;text-align:right; }
.capacity-bottom-grid { display:grid;grid-template-columns:minmax(0,1.4fr) minmax(360px,.8fr);gap:12px; }.loss-waterfall { height:170px;display:flex;align-items:flex-end;justify-content:center;gap:9px;padding:18px 15px 13px; }.waterfall-item { width:72px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center; }.waterfall-item strong { margin-bottom:3px;font-size:13px; }.waterfall-item span { min-height:24px;color:#7d899a;font-size:7px;text-align:center; }.waterfall-item i { width:46px;min-height:8px;border-radius:4px 4px 0 0;background:#90a1b7; }.waterfall-item.total i { background:var(--blue); }.waterfall-item.danger i { background:var(--red); }.waterfall-item.result i { background:var(--green); }.waterfall-arrow { align-self:center;color:#a0a9b6;font-size:15px; }
.release-plans { padding:7px 14px 11px; }.release-plans > div { min-height:48px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #eff1f4; }.release-plans > div:last-child { border-bottom:0; }.plan-icon { width:24px;height:24px;display:grid;place-items:center;border-radius:6px;color:var(--blue);background:var(--blue-soft);font-size:9px;font-weight:700; }.release-plans p { flex:1;margin:0; }.release-plans strong,.release-plans small { display:block; }.release-plans strong { font-size:9px; }.release-plans small { margin-top:3px;color:#8b96a6;font-size:7px; }.release-plans em { color:var(--green);font-size:10px;font-style:normal;font-weight:650; }
.empty { text-align: center; padding: 44px 20px; color: #99a2b1; font-size: 11px; }.empty b { display: block; font-size: 25px; color: #d3d8e0; margin-bottom: 8px; }
.loading { min-height: 420px; display: grid; place-items: center; color: #768196; font-size: 12px; }.spinner { width: 24px; height: 24px; border: 2px solid #dce4f0; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; top: 76px; transform: translate(-50%,-15px); opacity: 0; background: #182234; color: #fff; border-radius: 6px; padding: 9px 14px; font-size: 11px; z-index: 50; pointer-events: none; transition: .2s; }.toast.show { opacity: 1; transform: translate(-50%,0); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.3); z-index: 20; display: none; }.drawer-backdrop.show { display: block; }
.drawer { position: fixed; width: 430px; max-width: 92vw; right: -450px; top: 0; bottom: 0; background: #fff; z-index: 21; box-shadow: -10px 0 30px rgba(16,24,40,.16); transition: right .24s ease; overflow: auto; }.drawer.show { right: 0; }.drawer-head { height: 58px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }.drawer-head strong { font-size: 14px; }.drawer-close { border: 0; background: transparent; font-size: 20px; color: #778397; }.drawer-body { padding: 18px; }.detail-hero { background: #f6f9ff; border: 1px solid #dce8fb; padding: 14px; border-radius: 8px; margin-bottom: 15px; }.detail-hero strong { display: block; font-size: 16px; margin-bottom: 7px; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }.detail-item { padding: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.detail-item:nth-child(2n) { border-right: 0; }.detail-item span { display: block; font-size: 9px; color: #8b95a5; margin-bottom: 4px; }.detail-item strong { font-size: 11px; }.evidence { margin-top: 16px; }.evidence h3 { font-size: 12px; }.evidence p { font-size: 10px; color: #6e798b; line-height: 1.7; border-left: 2px solid #dfe6ef; padding-left: 10px; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .layout-grid, .layout-grid.workbench { grid-template-columns: 1fr; }
  .meta-strip .fact-list { display: none; }
  .role-radar { grid-template-columns: repeat(3, 1fr); }
  .role-kpis { grid-template-columns: repeat(3, 1fr); }
  .smart-task-table { min-width: 680px; }
  .smart-task-table th:nth-child(4) { width: 112px; }
  .smart-task-table th:nth-child(5) { width: 125px; }
  .capacity-kpis { grid-template-columns:repeat(3,1fr); }.capacity-decision-grid,.capacity-analysis-grid,.capacity-bottom-grid { grid-template-columns:1fr; }.heatmap-head,.heatmap-row { grid-template-columns:135px repeat(7,minmax(45px,1fr)) 100px; }
}
@media (max-width: 760px) {
  .sidebar { width: 58px;display: none }.brand { padding: 0 14px; }.brand > div:last-child, .nav-item span:not(.nav-icon), .nav-ghost span:not(.nav-icon), .nav-section, .sidebar-foot > div:last-child, .nav-item em { display: none; }
  nav { padding: 15px 8px; display:none}.nav-item,.nav-ghost { justify-content: center; padding: 0; }.sidebar-foot { justify-content: center; padding: 0; }.main { margin-left: 58px; width: calc(100% - 58px); }.topbar { padding: 0 12px; display: none;}.page { padding: 14px 12px 26px; }.page-heading { display: block; }.page-tools { margin-top: 12px; overflow: auto; }.kpi-grid { grid-template-columns: repeat(2, 1fr); }.timeline-head,.timeline-row { grid-template-columns: 90px 1fr; }.issues { grid-template-columns: 1fr; }.breadcrumb span,.breadcrumb b { display: none; }
  .role-radar { display: flex; overflow-x: auto; padding-bottom: 4px; }.role-card { min-width: 150px; }.role-kpis { grid-template-columns: repeat(2, 1fr); }
  .capacity-heading { display:block; }.capacity-actions { margin-top:12px;overflow-x:auto; }.capacity-data-strip { grid-template-columns:1fr;gap:6px; }.data-legend { justify-content:flex-start; }.capacity-kpis { grid-template-columns:repeat(2,1fr); }.heatmap-panel { overflow-x:auto; }.capacity-heatmap { min-width:760px; }.loss-waterfall { gap:3px;padding-left:5px;padding-right:5px; }.waterfall-item { width:50px; }.waterfall-item i { width:34px; }
}
