:root {
    color-scheme: dark;
    --se-navy: #000028;
    --se-teal: #00aba4;
    --se-teal-light: #6eceb2;
    --se-teal-pale: #b5e3df;
    --se-grey: #9ea2a2;
    --se-gold: #ffb81c;
    --se-orange: #e87722;
    --bg: #000028;
    --bg-elev: #061430;
    --surface: #0c1c38;
    --surface-2: #122848;
    --line: rgba(181, 227, 223, 0.16);
    --text: #f4f7f7;
    --muted: #9ea2a2;
    --accent: #00aba4;
    --accent-2: #6eceb2;
    --warn: #ffb81c;
    --danger: #c8102e;
    --on-accent: #000028;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
    --sidebar-bg: rgba(0, 0, 40, 0.92);
    --page-glow-1: rgba(0, 171, 164, 0.12);
    --page-glow-2: rgba(110, 206, 178, 0.08);
    --live-stage-bg: linear-gradient(180deg, #0c1c38, #000028);
    --live-stage-grid: rgba(0, 171, 164, 0.16);
    --live-stage-grid-alt: rgba(0, 0, 40, 0.4);
    --tag-bg: rgba(0, 0, 40, 0.78);
    --panel-overlay: rgba(0, 0, 40, 0.96);
    --inset-bg: rgba(0, 0, 0, 0.18);
    --chip-bg: rgba(255, 255, 255, 0.04);
    --btn-on-accent-border: rgba(0, 0, 0, 0.22);
    --radius: 14px;
    --radius-sm: 10px;
    --sidebar-w: 248px;
    --page-pad-x: clamp(16px, 1.5vw, 28px);
    --page-pad-y: clamp(16px, 1.2vw, 28px);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #eef2f6;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f7f9;
    --line: rgba(0, 0, 40, 0.12);
    --text: #1b2430;
    --muted: #5c667a;
    --accent: #00857c;
    --accent-2: #00aba4;
    --warn: #c87d00;
    --on-accent: #ffffff;
    --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
    --sidebar-bg: rgba(255, 255, 255, 0.94);
    --page-glow-1: rgba(0, 133, 124, 0.08);
    --page-glow-2: rgba(0, 171, 164, 0.06);
    --live-stage-bg: linear-gradient(180deg, #dbeafe, #cbd5e1);
    --live-stage-grid: rgba(0, 133, 124, 0.18);
    --live-stage-grid-alt: rgba(148, 163, 184, 0.28);
    --tag-bg: rgba(255, 255, 255, 0.92);
    --panel-overlay: rgba(255, 255, 255, 0.98);
    --inset-bg: rgba(15, 23, 42, 0.04);
    --chip-bg: rgba(0, 0, 40, 0.04);
    --btn-on-accent-border: rgba(255, 255, 255, 0.28);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(1200px 500px at 10% -10%, var(--page-glow-1), transparent 50%),
        radial-gradient(900px 400px at 100% 0%, var(--page-glow-2), transparent 45%),
        var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    border-right: 1px solid var(--line);
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.brand strong {
    font-size: 15px;
    letter-spacing: 0.01em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    box-shadow: 0 0 24px rgba(0, 171, 164, 0.35);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.nav-group {
    display: grid;
    gap: 4px;
}

.nav-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 10px 6px;
}

.nav a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav a.active {
    background: rgba(0, 171, 164, 0.12);
    color: var(--text);
    border-left-color: var(--accent);
    padding-left: 9px;
}

.nav a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 4px;
}

.sidebar-foot-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-foot-value {
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
}

.content {
    padding: var(--page-pad-y) var(--page-pad-x) 32px;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
}

.content-inner {
    width: 100%;
    max-width: none;
    margin: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.page-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toolbar input {
    min-width: 280px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
}

.source-label {
    align-self: center;
    font-size: 12px;
}

.btn {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 171, 164, 0.22);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn.secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn.secondary:hover:not(:disabled) {
    background: #163055;
    box-shadow: var(--shadow-soft);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

.page-header.tight {
    margin-bottom: 16px;
    align-items: center;
}

.report {
    margin-bottom: 24px;
}

.report-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.report-intro .eyebrow {
    margin: 0 0 6px;
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.report-intro .lede {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 52ch;
}

.report-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.report-count,
.report-period {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.report-count {
    background: rgba(0, 171, 164, 0.14);
    border: 1px solid rgba(0, 171, 164, 0.28);
    color: var(--text);
}

.report-period {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--muted);
}

.filter-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}

.filter-shell-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.filter-shell-head strong {
    font-size: 14px;
}

.filter-shell-head .muted {
    font-size: 12px;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    width: 100%;
}

.filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.filter-field span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-field select,
.filter-field input {
    width: 100%;
    appearance: none;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.filter-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ea2a2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.filter-field select:focus,
.filter-field input:focus {
    outline: 2px solid rgba(0, 171, 164, 0.4);
    outline-offset: 1px;
}

.filter-field input:disabled {
    opacity: 0.45;
}

.filter-period {
    display: grid;
    gap: 8px;
}

.filter-period.days {
    grid-template-columns: 72px minmax(0, 1fr);
}

.filter-period.week {
    grid-template-columns: minmax(0, 1.7fr) minmax(7.8rem, 0.9fr);
}

.filter-period.all {
    grid-template-columns: 1fr;
}

.filter-period input {
    text-align: center;
    -moz-appearance: textfield;
}

.filter-period input::-webkit-outer-spin-button,
.filter-period input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    height: 42px;
    min-width: 88px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
}

.kpi-grid.report-kpis {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.kpi {
    position: relative;
    overflow: hidden;
}

.kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 171, 164, 0.35), rgba(110, 206, 178, 0.15));
}

.kpi.kpi-accent::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.kpi .label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kpi .value {
    font-size: 2rem;
    margin-top: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.kpi .hint.slow { color: var(--warn); }
.kpi .hint.fast { color: var(--accent); }

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%), var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.section-stack {
    display: grid;
    gap: 16px;
    width: 100%;
}

.section-card {
    padding: 22px;
}

.card-head.compact {
    margin-bottom: 14px;
}

.card-head.compact h3 {
    margin-bottom: 2px;
}

.card-head.compact .muted {
    font-size: 13px;
}

.kpi .hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 14px;
    width: 100%;
}

.chart-box {
    position: relative;
    height: 340px;
}

.bars-v {
    display: flex;
    align-items: stretch;
    gap: 10px;
    min-height: 300px;
    padding-top: 8px;
}

.bars-v-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.bars-v-track, .bars-v-cluster {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.03));
    border-bottom: 1px solid var(--line);
}

.bars-v-fill {
    width: 100%;
    max-width: 18px;
    border-radius: 7px 7px 3px 3px;
    min-height: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border: 1px solid var(--btn-on-accent-border);
}

.bars-v-fill.single {
    max-width: 42px;
}

.bars-v-label, .bars-v-value {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}

.bars-group .bars-v-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    max-height: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    margin-top: 10px;
}

.bars-v-value {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    margin: 0 0 6px;
}

.bars-h {
    display: grid;
    gap: 10px;
}

.bars-h-row {
    display: grid;
    grid-template-columns: 140px 1fr 72px;
    gap: 10px;
    align-items: center;
}

.bars-h-label {
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bars-h-track {
    height: 18px;
    background: var(--bg-elev);
    border-radius: 99px;
    overflow: hidden;
}

.bars-h-fill {
    height: 100%;
    border-radius: 99px;
    min-width: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border: 1px solid var(--btn-on-accent-border);
}

.bars-h-value {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.bars-group { display: grid; gap: 8px; }

.muted { color: var(--muted); }
.mono { font-family: "IBM Plex Mono", monospace; }

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--inset-bg);
    width: 100%;
    max-width: 100%;
}

table.data-table td.num,
table.data-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.production-mix {
    padding: 14px 16px;
    margin-bottom: 16px;
}

.production-mix-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.production-mix-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--chip-bg);
    border: 1px solid var(--line);
}

.production-mix-bar i {
    display: block;
    height: 100%;
}

.production-mix-bar .is-produced {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.production-mix-bar .is-progress {
    background: linear-gradient(90deg, var(--warn), #ffc857);
}

.production-mix-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.production-mix-labels .dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: inline-block;
    margin-right: 6px;
}

.production-mix-labels .dot.produced { background: var(--accent); }
.production-mix-labels .dot.progress { background: var(--warn); }

.report-source {
    font-size: 12px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--chip-bg);
    border: 1px solid var(--line);
    color: var(--text);
}

.filter-chip.is-accent {
    border-color: rgba(0, 171, 164, 0.35);
    color: var(--accent);
}

.filter-chip.muted {
    color: var(--muted);
}

.data-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.data-progress {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--chip-bg);
    overflow: hidden;
    border: 1px solid var(--line);
}

.data-progress b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.compare-picker {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--inset-bg);
}

.compare-picker-hint {
    margin: -8px 0 16px;
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--muted);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--surface-2);
}

tbody tr:hover {
    background: var(--chip-bg);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-pill.produced {
    background: rgba(110, 206, 178, 0.14);
    color: var(--accent-2);
    border: 1px solid rgba(110, 206, 178, 0.28);
}

.status-pill.progress {
    background: rgba(255, 184, 28, 0.12);
    color: var(--warn);
    border: 1px solid rgba(255, 184, 28, 0.24);
}

.swatch {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend .swatch {
    width: 12px;
    height: 12px;
    margin-right: 0;
}

.gantt {
    display: grid;
    gap: 10px;
}

.gantt-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.gantt-canvas {
    min-width: calc(var(--hours, 24) * 22px * var(--zoom, 1));
    padding: 10px 12px 8px 0;
}

.gantt-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.gantt-toolbar .btn {
    min-width: 38px;
    padding: 8px 12px;
}

.gantt-toolbar .btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.zoom-label {
    min-width: 56px;
    text-align: center;
    font-family: "IBM Plex Mono", monospace;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.hour-line.major {
    background: rgba(255, 255, 255, 0.12);
}

.gantt-axis {
    margin-left: 218px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    font-family: "IBM Plex Mono", monospace;
}

.takt-axis {
    position: relative;
    height: 22px;
    display: block;
}

.hour-tick {
    position: absolute;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--muted);
}

.hour-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 171, 164, 0.16);
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gantt-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 8px;
    align-items: start;
    position: relative;
}

.gantt-row + .gantt-row {
    margin-top: 10px;
}

.gantt-row:hover,
.gantt-row:focus-within {
    z-index: 6;
}

.gantt-row:hover .gantt-track,
.gantt-row:focus-within .gantt-track {
    overflow: visible;
}

.gantt-when {
    display: grid;
    gap: 1px;
    margin-top: 4px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
}

.when-strip {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.when-card {
    display: grid;
    grid-template-columns: 170px 1fr 1fr;
    gap: 12px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
}

.when-card .k {
    color: var(--muted);
    font-size: 11px;
    display: block;
}

.when-card .v {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .when-card { grid-template-columns: 1fr; }
}

.gantt-label {
    font-size: 13px;
    padding-top: 10px;
}

.gantt-label small {
    display: block;
    color: var(--muted);
}

.gantt-track {
    position: relative;
    height: calc(16px + var(--lanes, 1) * 36px);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.gantt-cell {
    --step: #9ea2a2;
    --target: 0%;
    --lane: 0;
    position: absolute;
    top: calc(8px + (var(--lane) * 36px));
    height: 28px;
    min-width: 4px;
    outline: none;
    cursor: pointer;
    z-index: calc(2 + var(--lane));
}

.gantt-cell:hover,
.gantt-cell:focus-visible {
    z-index: 8;
}

.gantt-fill {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: var(--step);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 8px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.28);
    z-index: 1;
}

.gantt-cell.is-over .gantt-fill {
    box-shadow:
        0 0 0 1.5px var(--warn),
        0 0 16px rgba(255, 184, 28, 0.28);
}

.gantt-over {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: min(var(--target), calc(100% - 12px));
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    border-radius: 0 8px 8px 0;
    container-type: inline-size;
}

.gantt-over::before {
    content: "";
    position: absolute;
    left: 0;
    top: -3px;
    bottom: -3px;
    width: 3px;
    background: var(--warn);
    box-shadow: 0 0 10px rgba(255, 184, 28, 0.9);
}

.gantt-over-hatch {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -52deg,
            rgba(7, 16, 28, 0.22) 0 3px,
            rgba(255, 184, 28, 0.72) 3px 6px
        );
}

.gantt-over-chip {
    display: none;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--warn);
    border: 1px solid rgba(255, 184, 28, 0.55);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

@container (min-width: 56px) {
    .gantt-over-chip { display: inline-block; }
}

.gantt-cell.is-over .gantt-bar-name {
    width: min(var(--target), calc(100% - 12px));
}

.gantt-bar-name {
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--bg);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 4;
}

.gantt-pop {
    position: absolute;
    inset: -6px auto -6px -6px;
    min-width: max(100%, 248px);
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--panel-overlay);
    border: 1px solid color-mix(in srgb, var(--step) 55%, rgba(158, 162, 162, 0.35));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 16px 28px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(3px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 9;
}

.gantt-cell.is-over:hover .gantt-pop,
.gantt-cell.is-over:focus-visible .gantt-pop {
    border-color: rgba(255, 184, 28, 0.45);
}

.gantt-cell:hover .gantt-pop,
.gantt-cell:focus-visible .gantt-pop {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gantt-pop-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.gantt-pop-head strong {
    font-size: 13px;
    text-transform: capitalize;
}

.gantt-pop-head em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.gantt-pop-head em.pop-over { color: var(--warn); }

.gantt-pop-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gantt-pop-metrics span {
    display: grid;
    gap: 2px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
}

.gantt-pop-metrics small {
    color: var(--muted);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gantt-hot-swatch {
    display: inline-block;
    width: 18px;
    height: 10px;
    margin-right: 8px;
    border-radius: 4px;
    background:
        repeating-linear-gradient(
            -52deg,
            var(--bg) 0 3px,
            var(--warn) 3px 6px
        );
    box-shadow: 0 0 0 1px var(--warn);
}

.gantt-lane-swatch {
    display: inline-block;
    width: 16px;
    height: 12px;
    margin-right: 8px;
    border-radius: 3px;
    background:
        linear-gradient(var(--accent) 0 40%, transparent 40% 50%, var(--warn) 50% 90%, transparent 90%);
    box-shadow: inset 0 0 0 1px var(--line);
}

td.slow { color: var(--warn); font-weight: 600; }
td.fast { color: var(--accent); }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.process-filter {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.process-filter-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.process-filter-head .muted {
    margin-right: auto;
}

.process-filter-head .btn {
    min-width: 0;
    padding: 6px 12px;
}

.process-filter .checks {
    margin-bottom: 0;
}

.blade-picker {
    margin-bottom: 16px;
    padding: 16px 18px;
}

.blade-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.blade-picker-head h3 { margin: 0 0 4px; }
.blade-picker-head p { margin: 0; font-size: 13px; }

.blade-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blade-picker-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.blade-search {
    flex: 1 1 220px;
    min-width: 180px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--text);
}

.blade-seg {
    flex-shrink: 0;
}

.blade-picker-table-wrap {
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.blade-picker-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.blade-picker-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface-2);
}

.blade-picker-table th,
.blade-picker-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.blade-picker-table tbody tr {
    cursor: pointer;
}

.blade-picker-table tbody tr:hover {
    background: var(--chip-bg);
}

.blade-picker-table tbody tr.is-on {
    background: rgba(0, 171, 164, 0.08);
}

.blade-picker-table td:first-child {
    width: 36px;
}

.blade-picker-table .swatch {
    margin-right: 8px;
    vertical-align: middle;
}

.process-checks {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.timeline-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 184, 28, 0.35);
    background: rgba(255, 184, 28, 0.08);
}

.timeline-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
}

.step-details-card {
    padding: 16px 18px;
}

.step-details-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.step-details-head h3 { margin: 0 0 4px; }
.step-details-head p { margin: 0; font-size: 13px; }

.blade-select {
    min-width: 240px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}

.checks label {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

.checks label.on {
    border-color: rgba(0, 171, 164, 0.45);
    background: rgba(0, 171, 164, 0.08);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.card-head h3 { margin-bottom: 4px; }

.seg {
    display: flex;
    gap: 4px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px;
    flex-shrink: 0;
}

.seg button {
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
}

.seg button.on {
    background: var(--surface-2);
    color: var(--text);
}

.cmp-kpis { margin-bottom: 14px; }

.cmp-cycle-list, .cmp-steps { display: grid; gap: 12px; }

.cmp-cycle-row, .cmp-lane {
    display: grid;
    grid-template-columns: 168px 1fr 88px;
    gap: 10px;
    align-items: center;
}

.cmp-cycle-id { font-size: 13px; }
.cmp-cycle-val, .cmp-lane-val {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
}

.cmp-lane-val em {
    display: block;
    font-style: normal;
    color: var(--muted);
    font-size: 11px;
}

.cmp-lane-val.slow em { color: var(--warn); }
.cmp-lane-val.fast { color: var(--accent); }
.cmp-lane-val.fast em { color: var(--accent); }

.cmp-track {
    position: relative;
    height: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 99px;
    overflow: hidden;
}

.cmp-bar {
    height: 100%;
    border-radius: 99px;
    min-width: 4px;
}

.cmp-bar.is-max { box-shadow: 0 0 0 1px rgba(255, 184, 28, 0.7); }
.cmp-bar.is-min { opacity: 0.85; }
.cmp-bar.is-over {
    box-shadow: 0 0 0 1px rgba(255, 184, 28, 0.9);
}

.cmp-overrun {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 0 99px 99px 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            -52deg,
            rgba(7, 16, 28, 0.18) 0 3px,
            rgba(255, 184, 28, 0.78) 3px 6px
        );
}

.cmp-scale-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

.cmp-scale {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
    padding-right: 92px;
}

.cmp-step {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 14px 12px;
    margin: 0 -12px;
    border-top: 1px solid var(--line);
    border-radius: 12px;
}

.cmp-step:hover {
    background: rgba(255,255,255,0.03);
}

.cmp-step:first-child { border-top: 0; }

.cmp-step-meta strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmp-step-meta small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.cmp-step-meta .tgt {
    color: var(--accent);
    font-weight: 600;
}

.cmp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cmp-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cmp-legend i {
    display: inline-block;
    height: 12px;
}

.cmp-legend .lg-target {
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(0, 171, 164, 0.7);
}

.cmp-legend .lg-avg {
    width: 0;
    border-left: 1px dashed rgba(232, 238, 248, 0.55);
}

.cmp-legend .lg-over {
    width: 16px;
    height: 10px;
    border-radius: 3px;
    background:
        repeating-linear-gradient(
            -52deg,
            rgba(7, 16, 28, 0.2) 0 2px,
            rgba(255, 184, 28, 0.8) 2px 4px
        );
}

.cmp-step-viz {
    position: relative;
    display: grid;
    gap: 8px;
    padding-top: 18px;
}

.cmp-guides {
    position: absolute;
    top: 18px;
    right: 92px;
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.cmp-target {
    position: absolute;
    top: -18px;
    bottom: 0;
    width: 0;
    border-left: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(0, 171, 164, 0.45);
}

.cmp-target span {
    position: absolute;
    left: 7px;
    top: 1px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--surface);
    padding-right: 6px;
}

.cmp-target.is-end span {
    left: auto;
    right: 7px;
    padding: 0 0 0 6px;
}

.cmp-avg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed rgba(232, 238, 248, 0.4);
    pointer-events: none;
    z-index: 1;
}

.cmp-missing {
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

.cmp-lane {
    grid-template-columns: 1fr 92px;
}

table.heat td, table.heat th { text-align: right; }
table.heat th:first-child, table.heat td:first-child { text-align: left; }

.heat-cell {
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
}

.heat-cell.is-max { color: var(--warn); font-weight: 600; }
.heat-cell.is-min { color: var(--accent); }

@media (min-width: 1600px) {
    .kpi-grid.report-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    :root {
        --sidebar-w: 228px;
    }
}

@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .nav-group { display: contents; }
    .nav-label { display: none; }
    .sidebar-foot { display: none; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .kpi-grid, .kpi-grid.report-kpis { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .cmp-step, .card-head, .cmp-cycle-row, .cmp-scale-row { grid-template-columns: 1fr; }
    .cmp-scale { padding-right: 0; }
    .seg { width: 100%; }
    .seg button { flex: 1; }
}

.error {
    background: rgba(200, 16, 46, 0.12);
    border: 1px solid rgba(200, 16, 46, 0.35);
    color: #f4c7cf;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: var(--danger);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    z-index: 1000;
}

#blazor-error-ui.show { display: block; }

.live-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.live-head p { margin: 8px 0 0; color: var(--muted); }

.live-board {
    margin-bottom: 14px;
    padding: 16px 18px;
}

.live-board-head {
    margin-bottom: 12px;
}

.live-board-head h3 { margin: 0 0 4px; }
.live-board-head p { margin: 0; font-size: 13px; }

.live-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.live-board-card {
    display: grid;
    gap: 6px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: inherit;
    cursor: pointer;
}

.live-board-card.on {
    border-color: rgba(0, 229, 192, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 229, 192, 0.18), 0 0 18px rgba(0, 229, 192, 0.1);
}

.live-board-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-board-serial {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.live-board-card strong {
    font-size: 13px;
    text-transform: none;
}

.live-board-card small {
    color: var(--muted);
    font-size: 12px;
}

.live-board-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}

.mould-list-toggle {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.mould-card.slim.produced { opacity: 0.72; }

.cam-thumb.is-running {
    border-color: rgba(0, 229, 192, 0.35);
}

.cam-thumb.is-produced {
    opacity: 0.78;
}

.live-badge.done {
    background: var(--se-grey);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.topbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-meta {
    color: var(--muted);
    font-size: 13px;
}

.topbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
    flex-wrap: wrap;
}

.topbar-tool-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--chip-bg);
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.topbar-btn:hover:not(:disabled) {
    background: var(--surface);
    color: var(--text);
}

.topbar-btn.on {
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--shadow-soft);
}

.topbar-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.topbar-btn.push-on {
    color: var(--accent);
}

.topbar-btn.push-bell-active {
    position: relative;
}

.topbar-btn.push-bell-active::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    border: 1.5px solid var(--chip-bg);
}

.topbar-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.topbar-icon-sm {
    width: 15px;
    height: 15px;
}

.topbar-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.topbar-meta .muted-icon {
    opacity: 0.75;
}

.push-subscribe {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    position: relative;
}

.theme-toggle {
    display: inline-flex;
    gap: 2px;
}

.push-subscribe-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.push-message {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    font-size: 11px;
    color: var(--muted);
    max-width: 240px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.push-message.error { color: var(--warn); }

.push-status {
    font-size: 12px;
}

.push-settings-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, calc(100vw - 32px));
    max-height: min(70vh, 640px);
    overflow: auto;
    padding: 14px;
    z-index: 30;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.push-panel-close {
    flex-shrink: 0;
}

.push-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.push-power-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--chip-bg);
}

.push-power-row strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.push-power-row p {
    margin: 0;
    font-size: 12px;
}

.push-power-switch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.push-power-switch:disabled {
    opacity: 0.55;
    cursor: wait;
}

.push-power-track {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.push-power-switch.on .push-power-track {
    background: rgba(0, 171, 164, 0.25);
    border-color: rgba(0, 171, 164, 0.55);
}

.push-power-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--muted);
    transition: transform 0.15s ease, background 0.15s ease;
}

.push-power-switch.on .push-power-thumb {
    transform: translateX(20px);
    background: var(--accent);
}

.push-power-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.push-power-switch.on .push-power-label {
    color: var(--accent);
}

.push-panel-alert {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    background: var(--chip-bg);
    border: 1px solid var(--line);
}

.push-panel-alert.error {
    color: var(--warn);
    border-color: rgba(255, 184, 28, 0.35);
}

.push-panel-alert.ok {
    color: var(--accent);
    border-color: rgba(0, 171, 164, 0.35);
}

.push-settings-summary {
    font-size: 12px;
    margin-bottom: 12px;
}

.push-settings-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.push-settings-head strong { display: block; margin-bottom: 4px; }
.push-settings-head p { margin: 0; font-size: 12px; }

.push-settings-section + .push-settings-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.push-settings-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.push-settings-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.push-settings-tools {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.push-settings-hint {
    margin: 0 0 10px;
    font-size: 12px;
}

.push-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.push-checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.push-step-group {
    margin-top: 10px;
}

.push-step-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.push-step-group-head strong {
    font-size: 13px;
    text-transform: none;
}

.push-settings-foot {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px 7px 12px;
    font-size: 13px;
    font-weight: 500;
}

.live-hero {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1.6fr) minmax(240px, 300px);
    gap: 14px;
    margin-bottom: 22px;
    width: 100%;
}

.live-hero-status { display: grid; align-content: start; gap: 8px; }

.mould-list.compact { display: grid; gap: 6px; }
.mould-card.slim {
    padding: 8px 10px;
    margin: 0;
    display: grid;
    gap: 2px;
}
.mould-card.slim span { font-size: 11px; color: var(--muted); }
.mould-card:disabled { opacity: 1; cursor: default; }

.live-stage.tall { height: 420px; }
.live-stage.mini { height: 110px; border-radius: 10px; margin-bottom: 8px; }
.live-stage.mini .live-blade { height: 14px; top: 46%; }

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 6px;
    z-index: 2;
}

.cam-wall-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 8px 0 12px;
}

.cam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    width: 100%;
}

.cam-thumb {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.cam-thumb.on {
    border-color: rgba(0, 171, 164, 0.7);
    box-shadow: 0 0 16px rgba(0, 171, 164, 0.16);
}

.cam-thumb strong { display: block; }
.cam-thumb small, .cam-serial { color: var(--muted); font-size: 12px; }

.hall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
}
.hall-grid .mould-card { text-decoration: none; }

.mould-list-title {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.mould-card {
    display: grid;
    gap: 4px;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    color: inherit;
    margin-bottom: 8px;
    cursor: pointer;
}

.mould-card.on {
    border-color: rgba(0, 171, 164, 0.7);
    box-shadow: 0 0 0 1px rgba(0, 171, 164, 0.25), 0 0 18px rgba(0, 171, 164, 0.12);
}

.mould-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mould-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--muted);
}

.mould-dot.live { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mould-dot.done { background: var(--se-grey); }

.mould-card small { color: var(--muted); }

.live-meta {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.live-meta span { color: var(--muted); font-size: 13px; }

.phase-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.phase-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 4px;
}

.phase-card em { color: var(--muted); font-style: normal; font-size: 11px; }
.phase-card small { color: var(--muted); font-size: 12px; }
.phase-card.is-current {
    border-color: rgba(0, 171, 164, 0.7);
    box-shadow: 0 0 16px rgba(0, 171, 164, 0.16);
}

.phase-bar {
    display: block;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    overflow: hidden;
}

.phase-bar b {
    display: block;
    height: 100%;
    background: var(--se-grey);
}

.phase-card.done .phase-bar b { background: var(--accent); }
.phase-card.in-progress .phase-bar b { background: var(--warn); }

.live-steps h3 { margin-bottom: 10px; }

.live-timeline-card {
    margin-top: 18px;
    padding: 16px 18px 18px;
}

.live-timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.live-timeline-multi .live-timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.live-timeline-multi .live-timeline-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 12px;
}

.live-timeline-canvas-multi {
    min-width: 860px;
}

.live-timeline-rows {
    display: grid;
    gap: 6px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.live-timeline-row {
    display: grid;
    grid-template-columns: minmax(118px, 148px) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.live-timeline-row.is-selected {
    border-color: rgba(0, 229, 192, 0.45);
    background: rgba(0, 229, 192, 0.05);
}

.live-timeline-row-label {
    display: grid;
    gap: 2px;
    align-content: center;
    padding: 8px 10px;
}

.live-timeline-row-label .mono {
    font-size: 12px;
    font-weight: 600;
}

.live-timeline-row-label small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.live-timeline-multi .live-timeline-track {
    height: 34px;
    margin: 4px 0;
}

.live-timeline-multi .live-timeline-bar {
    top: 4px;
    height: 24px;
}

.live-timeline-now.subtle {
    width: 1px;
    opacity: 0.55;
    box-shadow: none;
}

.live-timeline-now.subtle::after {
    display: none;
}

.live-timeline-serials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.live-serial-chip {
    display: grid;
    gap: 2px;
    text-align: left;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: inherit;
    cursor: pointer;
    min-width: 148px;
}

.live-serial-chip.on {
    border-color: rgba(0, 229, 192, 0.55);
    background: rgba(0, 229, 192, 0.08);
}

.live-serial-chip .mono {
    font-size: 13px;
    font-weight: 600;
}

.live-serial-chip small {
    color: var(--muted);
    font-size: 11px;
    text-transform: none;
}

.live-timeline-blade {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.live-timeline-blade-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.live-timeline-blade .mono {
    font-size: 18px;
    font-weight: 600;
}
.live-timeline-head p { margin: 0; font-size: 13px; }

.live-timeline-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.live-kpi {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.live-kpi > span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.live-kpi strong { font-size: 15px; }
.live-kpi small { font-size: 12px; }

.live-progress {
    display: block;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    overflow: hidden;
}

.live-progress b {
    display: block;
    height: 100%;
    background: var(--accent);
}

.live-pace.on-track { color: var(--accent); }
.live-pace.slow { color: var(--warn); }
.live-pace.ahead { color: #7fd8ff; }
.live-pace.neutral { color: var(--muted); }

.live-timeline-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--inset-bg);
    margin-bottom: 14px;
}

.live-timeline-canvas {
    min-width: 720px;
    padding: 10px 12px 14px;
}

.live-timeline-axis {
    position: relative;
    height: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.live-timeline-axis span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.live-timeline-track {
    position: relative;
    height: 42px;
    margin-top: 6px;
}

.live-timeline-grid {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.live-timeline-bar {
    position: absolute;
    top: 8px;
    height: 26px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.live-timeline-fill {
    position: absolute;
    inset: 0;
    background: var(--step);
}

.live-timeline-bar.is-live {
    box-shadow: 0 0 0 1px rgba(0, 229, 192, 0.35), 0 0 14px rgba(0, 229, 192, 0.18);
}

.live-timeline-bar.is-live .live-timeline-fill {
    background: linear-gradient(90deg, var(--step), color-mix(in srgb, var(--step) 70%, white));
    animation: live-pulse 2.4s ease-in-out infinite;
}

.live-timeline-over {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.08) 4px,
        transparent 4px,
        transparent 8px
    );
    pointer-events: none;
}

.live-timeline-label {
    position: relative;
    z-index: 1;
    display: block;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-timeline-queue {
    position: absolute;
    top: 12px;
    height: 18px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--muted);
    pointer-events: none;
}

.live-timeline-now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(0, 229, 192, 0.55);
    transform: translateX(-50%);
    pointer-events: none;
}

.live-timeline-now::after {
    content: "Now";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.live-timeline-steps {
    display: grid;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
}

.live-step-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-elev);
}

.live-step-row.running {
    border-color: rgba(0, 229, 192, 0.45);
    background: rgba(0, 229, 192, 0.06);
}

.live-step-row.done { opacity: 0.88; }
.live-step-row.queued { opacity: 0.62; }

.live-step-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.live-step-main strong {
    font-size: 13px;
    text-transform: none;
}

.live-step-main small {
    color: var(--muted);
    font-size: 12px;
}

.live-step-state {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--muted);
    white-space: nowrap;
}

.live-step-row.running .live-step-state {
    background: rgba(0, 229, 192, 0.16);
    color: var(--accent);
}

.live-step-row.done .live-step-state {
    background: rgba(0, 171, 164, 0.14);
    color: var(--accent);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.82; }
}

.step-row {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 8px;
    background: var(--bg-elev);
}

.step-row-btn {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
}

.step-row-btn .chev { color: var(--muted); transition: transform 0.12s ease; }
.step-row-btn .chev.open { transform: rotate(90deg); }
.step-row-btn strong { text-transform: none; }
.step-row-btn .muted { margin-left: auto; }

.step-badge {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: var(--muted);
}

.step-row.done .step-badge { background: rgba(0, 171, 164, 0.16); color: var(--accent); }

.step-kids {
    padding: 0 14px 12px 42px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.live-bottom {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 14px;
    margin-top: 14px;
}

.live-feed { padding: 14px; }
.live-feed-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.live-feed-actions { display: flex; gap: 8px; align-items: center; }

.live-stage {
    position: relative;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--live-stage-bg);
}

.live-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.live-hall {
    position: absolute;
    inset: 40% 0 0;
    background:
        repeating-linear-gradient(90deg, var(--live-stage-grid) 0 28px, var(--live-stage-grid-alt) 28px 56px);
}

.live-blade {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 38%;
    height: 28px;
    border-radius: 40px;
    background: linear-gradient(90deg, #cbd5e1, #f8fafc 40%, #94a3b8);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.live-tag {
    position: absolute;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--tag-bg);
    border: 1px solid var(--line);
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
    z-index: 2;
}

.live-tag.cam { top: 12px; left: 12px; }
.live-tag.pos { top: 12px; right: 12px; }
.live-tag.time { bottom: 12px; right: 12px; left: auto; }
.live-tag.serial {
    top: auto;
    bottom: 42px;
    left: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-color: rgba(0, 229, 192, 0.35);
}
.live-tag.serial.mini {
    bottom: auto;
    top: 28px;
    left: 6px;
    right: 6px;
    font-size: 10px;
    padding: 3px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-tag.step {
    bottom: 12px;
    left: 12px;
    top: auto;
    right: auto;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.meta-grid div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}

.meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.live-side h3 { margin: 0 0 10px; }

.detect-grid { display: grid; gap: 8px; }
.detect-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}

.detect-card span { color: var(--muted); font-size: 11px; }
.detect-card strong { display: block; margin: 4px 0 2px; }
.detect-card small { color: var(--muted); }

.swim-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: grid;
    gap: 10px;
}
.swim-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.swim-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.swim-xticks {
    position: relative;
    height: 22px;
    margin-left: 168px;
    color: var(--muted);
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
}
.swim-xticks span { position: absolute; transform: translateX(-20%); }
.swim-plot { display: grid; }
.swim-row {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    min-height: 26px;
    align-items: center;
}
.swim-row:nth-child(odd) .swim-lane { background: rgba(181, 227, 223, 0.04); }
.swim-ylabel {
    color: var(--muted);
    font-size: 11px;
    padding-right: 10px;
}
.swim-lane {
    position: relative;
    height: 22px;
    border-radius: 6px;
}
.swim-grid {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(181, 227, 223, 0.18);
    pointer-events: none;
}
.swim-mark {
    position: absolute;
    top: 4px;
    height: 14px;
    border-radius: 7px;
    min-width: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 40, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.swim-mark::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(0, 0, 40, 0.35);
}
.swim-mark.is-wait {
    border: 1.5px dashed var(--warn);
    background: transparent !important;
}
.swim-mark.is-wait::after { display: none; }

.flow-chart .swim-row {
    min-height: 28px;
    border-left: 3px solid color-mix(in srgb, var(--step-color) 50%, transparent);
}

.flow-chart .swim-ylabel {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
}

.flow-chart .step-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.flow-chart .swim-lane {
    min-height: 24px;
    background: rgba(255, 255, 255, 0.02);
}

.flow-chart .swim-mark {
    top: 3px;
    height: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.flow-chart .swim-mark::after {
    display: none;
}

.flow-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.flow-legend .muted {
    font-size: 11px;
}

.cap-swatch {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}
.cap-swatch.work { background: var(--accent); }
.cap-swatch.wait { border: 1.5px dashed var(--warn); background: transparent; }

.clash-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 184, 28, 0.4);
    background: rgba(255, 184, 28, 0.1);
    color: var(--text);
    font-size: 13px;
}
.clash-banner strong { color: var(--warn); }

.hall-floor-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.compass {
    display: grid;
    grid-template-columns: 18px 18px 18px;
    grid-template-rows: 16px 16px 16px;
    place-items: center;
    width: 64px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.compass b:first-child { grid-column: 2; }
.compass span:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.compass span:nth-of-type(2) { grid-column: 3; grid-row: 2; }
.compass b:last-child { grid-column: 2; grid-row: 3; }

.hall-axis {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.hall-axis i {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.hall-axis span:last-child { justify-self: end; }

.hall-tracks { display: grid; gap: 8px; }
.hall-track {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 40, 0.28);
}
.hall-track.is-hot {
    border-color: rgba(255, 184, 28, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 184, 28, 0.2);
}
.hall-track-name strong { display: block; }
.hall-track-name small { color: var(--muted); font-size: 11px; }
.hall-track-bed {
    position: relative;
    min-height: 88px;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background:
        repeating-linear-gradient(90deg, rgba(0, 171, 164, 0.08) 0 48px, rgba(0, 0, 40, 0.2) 48px 96px);
}
.hall-track.is-free .hall-track-bed { opacity: 0.55; }
.hall-pop {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: inherit;
}
.hall-pop strong { font-size: 13px; }
.hall-pop small, .hall-free { color: var(--muted); font-size: 12px; }
.hall-pop em {
    color: var(--warn);
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hall-floor-note { margin: 12px 0 0; }

@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .kpi-grid, .kpi-grid.report-kpis, .grid-2 { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .toolbar input { min-width: 0; width: 100%; }
    .page-header, .toolbar { flex-direction: column; align-items: stretch; }
    .live-layout, .live-bottom, .phase-strip, .live-hero, .cam-grid, .hall-grid { grid-template-columns: 1fr; }
    .live-timeline-summary { grid-template-columns: 1fr 1fr; }
    .hall-track, .hall-axis, .hall-track-bed { grid-template-columns: 1fr; }
}
