:root {
  --red: #f40009;
  --red-dark: #b80008;
  --alert-red: #d32f2f;
  --white: #ffffff;
  --surface: #f5f5f5;
  --line: #d9d9d9;
  --muted: #727272;
  --text: #4a4a4a;
  --ink: #1f1f1f;
  --green: #2e7d32;
  --amber: #f9a825;
  --blue: #1976d2;
  --blue-soft: #e9f2fb;
  --red-soft: #fff0f1;
  --amber-soft: #fff8e4;
  --green-soft: #edf7ee;
  --sidebar: 252px;
  --topbar: 68px;
  --radius: 14px;
  --shadow: 0 12px 35px rgba(31, 31, 31, 0.055);
  --font: "Montserrat", "Poppins", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
h2 { margin-bottom: 6px; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
h3 { margin-bottom: 5px; font-size: 14px; }
p { color: var(--text); }
small { font-size: 12px; }
svg { display: block; }

:focus-visible { outline: 3px solid rgba(25, 118, 210, .28); outline-offset: 2px; }
.skip-link { position: fixed; top: -50px; left: 14px; z-index: 2000; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 40; display: flex; flex-direction: column;
  background: var(--white); border-right: 1px solid #e6e6e6; padding: 22px 16px 16px;
}
.brand { padding: 0 10px 22px; border-bottom: 1px solid #ededed; margin-bottom: 14px; }
.brand-logo { display: block; width: 196px; max-width: 100%; height: auto; margin-bottom: 13px; }
.brand .product-name { display: block; margin-bottom: 2px; font-size: 13px; letter-spacing: -.015em; }
.brand span { color: var(--muted); font-size: 11px; }
.nav { overflow-y: auto; padding-right: 2px; }
.nav-label { padding: 12px 12px 6px; color: #919191; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; min-height: 40px; margin: 2px 0;
  padding: 9px 12px; border-radius: 9px; color: #575757; font-size: 12.5px; font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.nav-item:hover { background: #f7f7f7; color: var(--ink); }
.nav-item.active { color: var(--ink); background: var(--red-soft); }
.nav-item.active::before { content: ""; position: absolute; left: -16px; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: var(--red); }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.8; }
.nav-sub { padding-left: 30px; }
.nav-sub .nav-item { min-height: 34px; font-size: 11.5px; }
.lock-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #bdbdbd; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #ededed; }
.profile-mini { display: flex; align-items: center; gap: 10px; padding: 9px 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ink); font-size: 11px; font-weight: 700; }
.profile-mini strong { display: block; font-size: 11.5px; }
.profile-mini span { color: var(--muted); font-size: 10.5px; }

.workspace { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid #e7e7e7; backdrop-filter: blur(10px);
}
.topbar-title { min-width: 0; }
.topbar-title h1 { overflow: hidden; margin: 0; font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }
.topbar-title span { color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.plant-select, .status-inline { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border: 1px solid #e2e2e2; border-radius: 9px; background: white; color: var(--text); font-size: 11.5px; font-weight: 600; }
.status-inline { border-color: transparent; background: var(--green-soft); color: var(--green); }
.status-inline.delayed { background: var(--amber-soft); color: #8a6200; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.icon-button { position: relative; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #e5e5e5; border-radius: 9px; background: white; color: var(--ink); }
.icon-button:hover { background: #f7f7f7; }
.icon-button svg { width: 17px; height: 17px; }
.notification-dot { position: absolute; right: 7px; top: 6px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: var(--red); }

.content { max-width: 1600px; margin: 0 auto; padding: 25px 28px 46px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--red-dark); font-size: 10.5px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.lede { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.btn { min-height: 37px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 11.5px; font-weight: 700; transition: .18s ease; }
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary { border-color: #d8d8d8; background: white; color: var(--ink); }
.btn-secondary:hover { border-color: #b6b6b6; background: #fafafa; }
.btn-tertiary { background: transparent; color: var(--blue); padding-inline: 5px; }
.btn-danger { border-color: #f0b0b0; background: white; color: var(--alert-red); }
.btn:disabled { cursor: not-allowed; opacity: .45; }
.btn svg { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }

.period-switch, .segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #e1e1e1; border-radius: 10px; background: white; }
.period-switch button, .segmented button { min-height: 30px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.period-switch button.active, .segmented button.active { color: var(--ink); background: #eeeeee; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

.context-bar { display: flex; flex-wrap: wrap; gap: 9px; padding: 12px; margin-bottom: 18px; border: 1px solid #e5e5e5; border-radius: 12px; background: white; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 130px; }
.field label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.input, .select, .textarea { width: 100%; min-height: 37px; border: 1px solid #dcdcdc; border-radius: 8px; background: white; padding: 8px 10px; color: var(--ink); font-size: 12px; }
.textarea { min-height: 82px; resize: vertical; }
.field.grow { flex: 1; }

.grid { display: grid; gap: 16px; }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-12 { grid-column: span 12; }.span-9 { grid-column: span 9; }.span-8 { grid-column: span 8; }.span-7 { grid-column: span 7; }.span-6 { grid-column: span 6; }.span-5 { grid-column: span 5; }.span-4 { grid-column: span 4; }.span-3 { grid-column: span 3; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.card { position: relative; min-width: 0; border: 1px solid #e5e5e5; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 18px 10px; }
.card-header h2 { margin: 0; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.card-body { padding: 8px 18px 18px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #ededed; }
.section-kicker { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.kpi-grid { display: grid; grid-template-columns: 1.18fr 1fr 1fr .92fr .92fr; gap: 12px; margin-bottom: 16px; }
.kpi { min-height: 126px; padding: 16px; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -23px; bottom: -34px; width: 88px; height: 88px; border: 13px solid #f2f2f2; border-radius: 50%; }
.kpi > * { position: relative; z-index: 1; }
.kpi.accent::after { border-color: rgba(25,118,210,.09); }
.kpi.warn::after { border-color: rgba(249,168,37,.12); }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.kpi-value { display: flex; align-items: baseline; gap: 6px; margin: 13px 0 5px; font-size: 30px; line-height: 1; font-weight: 750; letter-spacing: -.045em; }
.kpi-value small { color: var(--text); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.kpi-meta { color: var(--text); font-size: 10.5px; }
.kpi-link { position: relative; z-index: 1; display: inline-block; margin-top: 8px; border: 0; background: none; padding: 0; color: var(--blue); font-size: 10.5px; font-weight: 700; }
.delta-up { color: var(--alert-red); font-weight: 700; }
.delta-good { color: var(--green); font-weight: 700; }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 4px 8px; border-radius: 6px; background: #f1f1f1; color: #595959; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.high, .badge.critical { background: var(--red-soft); color: var(--alert-red); }
.badge.medium, .badge.warning, .badge.review { background: var(--amber-soft); color: #866000; }
.badge.low, .badge.info { background: var(--blue-soft); color: var(--blue); }
.badge.success, .badge.resolved, .badge.active { background: var(--green-soft); color: var(--green); }
.badge.neutral::before { display: none; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-line { width: 17px; height: 3px; border-radius: 2px; background: currentColor; }
.legend-line.dashed { height: 0; border-top: 2px dashed currentColor; background: transparent; }
.legend-band { width: 17px; height: 8px; border: 1px solid rgba(25,118,210,.25); background: rgba(25,118,210,.12); }

.chart { position: relative; min-height: 270px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #ededed; stroke-width: 1; }
.chart-axis { fill: #8b8b8b; font-family: var(--font); font-size: 9.5px; }
.chart-label { fill: var(--ink); font-family: var(--font); font-size: 9px; font-weight: 700; }
.chart-band { fill: rgba(25, 118, 210, .10); stroke: rgba(25, 118, 210, .17); }
.chart-forecast { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-updated { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-real { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-plan { fill: none; stroke: #777; stroke-width: 1.7; stroke-dasharray: 5 4; }
.chart-capacity { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 2 4; }
.chart-point { cursor: pointer; stroke: white; stroke-width: 2; transition: r .16s ease; }
.chart-point:hover, .chart-point:focus { r: 6; }
.chart-current { fill: rgba(249,168,37,.07); }
.chart-tooltip {
  position: fixed; z-index: 1000; pointer-events: none; min-width: 190px; padding: 10px 11px; border: 1px solid #dedede;
  border-radius: 9px; background: white; box-shadow: 0 14px 40px rgba(0,0,0,.14); opacity: 0; transform: translateY(4px); transition: .12s ease;
}
.chart-tooltip.visible { opacity: 1; transform: translateY(0); }
.chart-tooltip strong { display: block; margin-bottom: 6px; font-size: 11px; }
.chart-tooltip div { display: flex; justify-content: space-between; gap: 18px; padding: 2px 0; color: var(--text); font-size: 10px; }

.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(100px, 1.1fr) 3fr auto; align-items: center; gap: 12px; }
.bar-label { overflow: hidden; font-size: 11px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.bar-track { height: 9px; overflow: hidden; border-radius: 3px; background: #eeeeee; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--blue); }
.bar-value { min-width: 50px; text-align: right; font-size: 10.5px; font-weight: 700; }
.factor-row { display: grid; grid-template-columns: minmax(170px, 1.4fr) 2fr 72px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #ededed; }
.factor-row:last-child { border-bottom: 0; }
.factor-name strong { display: block; font-size: 11px; }.factor-name span { color: var(--muted); font-size: 9.5px; }
.factor-track { height: 7px; border-radius: 4px; background: #eeeeee; }.factor-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid #dcdcdc; color: var(--muted); font-size: 9.5px; font-weight: 750; text-align: left; text-transform: uppercase; letter-spacing: .045em; }
.data-table td { padding: 12px; border-bottom: 1px solid #ededed; color: var(--text); font-size: 10.5px; }
.data-table td strong { color: var(--ink); }
.data-table tbody tr { transition: background .16s ease; }
.data-table tbody tr:hover { background: #fafafa; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr.highlight { background: var(--amber-soft); box-shadow: inset 3px 0 var(--amber); }
.data-table tbody tr.selected { background: var(--blue-soft); box-shadow: inset 3px 0 var(--blue); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.pending { color: #8a8a8a; font-style: italic; }
.status-text { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.status-text::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-text.ok { color: var(--green); }.status-text.warn { color: #906900; }.status-text.danger { color: var(--alert-red); }

.alert-list { display: flex; flex-direction: column; }
.alert-item { display: block; padding: 13px 0; border-bottom: 1px solid #ededed; }
.alert-item:last-child { border-bottom: 0; }
.alert-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.alert-id { color: var(--muted); font-size: 9.5px; font-weight: 700; }.alert-title { margin: 0 0 5px; color: var(--ink); font-size: 11.5px; font-weight: 700; }
.alert-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9.5px; }
.alert-item:hover .alert-title { color: var(--blue); }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid #e5e5e5; padding: 0 18px; }
.tab { padding: 11px 12px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.tab.active { border-color: var(--red); color: var(--ink); }

.timeline { position: relative; margin: 4px 0 0 7px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 3px; width: 1px; background: #d8d8d8; }
.timeline-item { position: relative; padding: 0 0 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; top: 4px; left: -25px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.timeline-item strong { display: block; font-size: 10.5px; }.timeline-item p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }

.insight { display: flex; gap: 11px; padding: 13px; border-left: 3px solid var(--blue); border-radius: 0 9px 9px 0; background: var(--blue-soft); }
.insight.warning { border-color: var(--amber); background: var(--amber-soft); }
.insight.danger { border-color: var(--alert-red); background: var(--red-soft); }
.insight strong { display: block; margin-bottom: 3px; font-size: 11px; }.insight p { margin: 0; font-size: 10px; }
.note { color: var(--muted); font-size: 10px; }
.divider { height: 1px; margin: 14px 0; background: #ededed; }
.big-change { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }
.big-change strong { font-size: 34px; letter-spacing: -.05em; }.big-change span { color: var(--red); font-size: 22px; font-weight: 700; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(31,31,31,.32); opacity: 0; animation: fadeIn .18s forwards; }
.drawer { position: fixed; z-index: 110; top: 0; right: 0; width: min(440px, 94vw); height: 100vh; overflow-y: auto; background: white; box-shadow: -20px 0 50px rgba(0,0,0,.12); transform: translateX(100%); animation: slideIn .22s ease forwards; }
.drawer-head, .modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px; border-bottom: 1px solid #e6e6e6; background: rgba(255,255,255,.97); }
.drawer-body { padding: 20px; }
.drawer-close, .modal-close { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid #e0e0e0; border-radius: 8px; background: white; color: var(--ink); font-size: 20px; }
.modal-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; }
.modal { position: relative; z-index: 125; width: min(560px, 96vw); max-height: 90vh; overflow-y: auto; border-radius: 15px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.2); transform: translateY(12px); opacity: 0; animation: modalIn .2s ease forwards; }
.modal-body { padding: 20px; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid #e6e6e6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.toast-root { position: fixed; z-index: 300; top: 86px; right: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.toast { min-width: 250px; padding: 12px 14px; border-left: 3px solid var(--green); border-radius: 9px; background: var(--ink); color: white; box-shadow: 0 18px 45px rgba(0,0,0,.2); font-size: 11px; font-weight: 650; animation: toastIn .2s ease; }
.toast.alert-toast { position: relative; display: flex; width: min(360px, calc(100vw - 28px)); padding-right: 42px; flex-direction: column; gap: 4px; border-left-color: var(--alert-red); background: white; color: var(--ink); transition: transform .16s ease, box-shadow .16s ease; }
.toast.alert-toast:hover { transform: translateY(-1px); box-shadow: 0 20px 50px rgba(0,0,0,.24); }
.alert-toast strong { font-size: 12px; }
.alert-toast span { color: var(--text); font-weight: 500; line-height: 1.45; }
.alert-toast-link { width: max-content; margin-top: 3px; color: var(--blue); font-weight: 750; text-decoration: none; }
.alert-toast-link:hover { text-decoration: underline; }
.alert-toast-close { position: absolute; top: 8px; right: 9px; display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.alert-toast-close:hover { background: var(--surface); color: var(--ink); }
.alert-toast-close:focus-visible, .alert-toast-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.16fr .84fr; background: white; }
.login-editorial { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(36px, 6vw, 88px); background: #f3f3f1; }
.login-editorial .brand { width: max-content; padding-left: 0; border: 0; }
.login-editorial .brand-logo { width: min(310px, 32vw); margin-bottom: 18px; }
.login-editorial .brand .product-name { font-size: 15px; }
.login-mobile-logo { display: none; width: min(280px, 78vw); height: auto; margin: 0 auto 38px; }
.login-copy { position: relative; z-index: 2; max-width: 610px; }
.login-copy h1 { max-width: 580px; margin-bottom: 18px; font-size: clamp(40px, 5vw, 72px); line-height: .99; letter-spacing: -.055em; }
.login-copy p { max-width: 500px; font-size: 15px; line-height: 1.65; }
.flow-art { position: absolute; inset: auto -70px -90px 40px; height: 46%; opacity: .8; }
.flow-art i { position: absolute; right: 0; width: 80%; height: 90px; border: 1px solid #bdbdbd; border-left: 0; border-radius: 0 70px 70px 0; transform: skewX(-18deg); }
.flow-art i:nth-child(1) { bottom: 20px; border-color: var(--red); }.flow-art i:nth-child(2) { bottom: 90px; right: 7%; }.flow-art i:nth-child(3) { bottom: 160px; right: 14%; }
.login-form-wrap { display: grid; place-items: center; padding: 40px; }
.login-form { width: min(380px, 100%); }
.login-form h2 { margin-bottom: 8px; font-size: 25px; }.login-form > p { margin-bottom: 28px; }
.login-form .field { margin-bottom: 15px; }
.login-form .btn { width: 100%; min-height: 44px; margin-top: 5px; }
.login-help { display: block; margin-top: 20px; color: var(--blue); font-size: 11px; font-weight: 700; text-align: center; }

.internal-shell { min-height: 100vh; background: #f3f3f1; }
.internal-head { padding: 28px max(28px, calc((100vw - 1180px)/2)); background: var(--ink); color: white; }
.internal-head p { margin: 5px 0 0; color: #c9c9c9; }
.internal-content { max-width: 1180px; margin: 0 auto; padding: 28px; }
.demo-step { padding: 14px 0; border-bottom: 1px solid #ededed; }.demo-step:last-child { border: 0; }.demo-step strong { display: block; margin-bottom: 5px; }
.route-code { display: inline-block; padding: 3px 6px; border-radius: 4px; background: #efefef; font-family: ui-monospace, monospace; font-size: 10px; }
.color-key { display: flex; align-items: center; gap: 8px; }.color-swatch { width: 14px; height: 14px; border-radius: 3px; }

.mobile-menu { display: none; }
.empty-state { padding: 30px; color: var(--muted); text-align: center; }
.metric-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-box { padding: 12px; border: 1px solid #ededed; border-radius: 9px; }.metric-box span { display: block; color: var(--muted); font-size: 9.5px; }.metric-box strong { font-size: 17px; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideIn { to { transform: translateX(0); } }
@keyframes modalIn { to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1220px) {
  :root { --sidebar: 78px; }
  .sidebar { padding-inline: 10px; }
  .brand { padding-inline: 2px; }.brand .product-name, .brand > span, .nav-label, .nav-item span, .lock-dot, .profile-mini > div:last-child { display: none; }
  .brand-logo { width: 58px; margin: 0 auto; }
  .nav-item { justify-content: center; padding-inline: 8px; }.nav-sub { padding-left: 0; }.nav-item.active::before { left: -10px; }
  .profile-mini { justify-content: center; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-9,.span-8,.span-7 { grid-column: span 6; }.span-6 { grid-column: span 6; }.span-5,.span-4,.span-3 { grid-column: span 3; }
  .status-inline { display: none; }.content { padding-inline: 20px; }.topbar { padding-inline: 20px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .login-page { grid-template-columns: 1fr; }.login-editorial { display: none; }.login-form-wrap { min-height: 100vh; }.login-mobile-logo { display: block; }
}
@media (max-width: 720px) {
  :root { --sidebar: 0px; }
  .app-shell { display: block; }.sidebar { display: none; }
  .topbar { padding-inline: 14px; }.topbar-title span, .plant-select { display: none; }.content { padding: 18px 14px 38px; }
  .grid-12 { display: flex; flex-direction: column; }.kpi-grid { grid-template-columns: 1fr; }
  .page-intro { align-items: flex-start; flex-direction: column; }.page-intro .actions { width: 100%; }
  .mobile-menu { display: grid; }
  .form-grid { grid-template-columns: 1fr; }.metric-pair { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 100px 1fr auto; }.factor-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
