:root {
  color-scheme: light;
  --ink: #192321;
  --muted: #69746f;
  --paper: #f2f3ee;
  --surface: #ffffff;
  --line: #e3e7e1;
  --line-strong: #cfd6cf;
  --rail: #202b28;
  --rail-muted: #a0ada6;
  --orange: #e45e32;
  --orange-soft: #fff0e9;
  --green: #36856a;
  --green-soft: #e5f3eb;
  --yellow: #d39b2d;
  --yellow-soft: #fff5dd;
  --blue: #477ca8;
  --blue-soft: #e8f0f6;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #7ab69c; outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; width: 230px; flex-direction: column; padding: 24px 15px 16px; background: var(--rail); color: #f4f5f0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 8px 35px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 5px; border: 1px solid #718078; border-radius: 4px; transform: rotate(-8deg); }
.brand-mark span { border-radius: 1px; background: #e56b42; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: #aecabb; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: 1px; }
.brand-copy small { color: #a9b4ae; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.sidebar-label { padding: 0 11px 10px; color: #839089; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.primary-nav { display: grid; gap: 4px; }
.nav-link { display: flex; width: 100%; height: 40px; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 4px; background: transparent; color: #bac4be; text-align: left; cursor: pointer; }
.nav-link:hover { background: #2a3732; color: #fff; }
.nav-link.is-active { background: #36463e; color: #fff; box-shadow: inset 2px 0 var(--orange); }
.nav-glyph { position: relative; display: inline-grid; width: 16px; height: 16px; flex: 0 0 16px; place-items: center; color: #abbab0; }
.glyph-grid::before { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; content: ""; box-shadow: inset 0 0 0 2.6px var(--rail); }
.glyph-grid::after { position: absolute; width: 3px; height: 3px; border-radius: 1px; background: currentColor; content: ""; box-shadow: 5px 0 currentColor, 0 5px currentColor, 5px 5px currentColor; }
.glyph-list::before { width: 11px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; }
.glyph-list::after { position: absolute; width: 7px; border-top: 1.5px solid currentColor; content: ""; }
.glyph-people::before { width: 5px; height: 5px; border: 1.3px solid currentColor; border-radius: 50%; content: ""; box-shadow: 7px 1px 0 -1px var(--rail), 7px 1px 0 0 currentColor; transform: translate(-3px, -3px); }
.glyph-people::after { position: absolute; bottom: 1px; width: 13px; height: 5px; border: 1.3px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; content: ""; }
.nav-count { display: grid; min-width: 20px; height: 18px; margin-left: auto; place-items: center; border-radius: 3px; background: #45554c; color: #dce6df; font-size: 10px; }
.sidebar-spacer { flex: 1; }
.shift-card { padding: 14px 13px 12px; border: 1px solid #3c4a43; border-radius: 4px; background: #27332e; }
.shift-card-top { display: flex; align-items: center; gap: 6px; color: #ccd4ce; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.status-dot, .sync-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #70bd8e; box-shadow: 0 0 0 3px #70bd8e22; }
.shift-live { margin-left: auto; color: #82cf9e; font-size: 8px; }
.shift-card > strong { display: block; margin-top: 14px; font-size: 12px; font-weight: 600; }
.shift-card > small { display: block; margin-top: 3px; color: #9eaaa3; font-size: 10px; }
.shift-progress { height: 3px; margin: 14px 0 7px; overflow: hidden; border-radius: 3px; background: #45534b; }
.shift-progress span { display: block; width: 57%; height: 100%; background: #e5774d; }
.shift-times { display: flex; justify-content: space-between; color: #99a69e; font-size: 9px; font-variant-numeric: tabular-nums; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 18px 9px 0; color: #9ba9a0; font-size: 10px; }
.sync-dot { width: 6px; height: 6px; flex-basis: 6px; }
.version-label { margin-left: auto; color: #728178; font-size: 9px; }
.main-area { min-height: 100vh; margin-left: 230px; padding: 0 36px; }
.topbar { display: flex; min-height: 68px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #7a8580; font-size: 9px; font-weight: 700; letter-spacing: 1.05px; }
.breadcrumbs strong { color: #3e4944; }
.crumb-slash { color: #b2b9b3; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.clock-block { display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; }
.clock-label { color: #8a948e; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.clock-block strong { font-size: 12px; font-weight: 600; }
.topbar-divider { width: 1px; height: 27px; margin: 0 2px; background: var(--line-strong); }
.button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid transparent; border-radius: 3px; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:active { transform: translateY(1px); }
.button-quiet { border-color: var(--line-strong); background: #fbfcf9; color: #3f4a45; }
.button-quiet:hover { border-color: #a8b4ac; background: #fff; }
.button-primary { border-color: var(--orange); background: var(--orange); color: white; }
.button-primary:hover { border-color: #c64a25; background: #c64a25; }
.button-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.button[aria-pressed="true"] .button-pulse { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.plus-mark { font-size: 18px; font-weight: 400; line-height: 10px; }
.page-heading { display: flex; min-height: 113px; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0 19px; }
.eyebrow { margin: 0 0 5px; color: #7b8781; font-size: 9px; font-weight: 700; letter-spacing: 1.25px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 3px; font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: .2px; }
.title-period { color: var(--orange); }
.page-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.data-note { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #e6d8b8; border-radius: 3px; background: #fff9e9; color: #776743; font-size: 9px; white-space: nowrap; }
.data-note b { padding: 0 2px; color: #c7a75f; }
.note-icon { display: grid; width: 13px; height: 13px; place-items: center; border: 1px solid #b79d60; border-radius: 50%; font-family: Georgia, serif; font-size: 9px; font-style: italic; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { position: relative; min-height: 122px; overflow: hidden; padding: 14px 15px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.metric-output { border-top: 2px solid var(--orange); padding-top: 13px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #78837d; font-size: 8px; font-weight: 700; letter-spacing: .85px; }
.metric-icon { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 3px; font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.icon-output { background: var(--orange-soft); color: var(--orange); }
.icon-machine { background: var(--green-soft); color: var(--green); }
.icon-time { background: var(--blue-soft); color: var(--blue); }
.icon-review { background: var(--yellow-soft); color: #aa7b19; }
.metric-value { display: flex; align-items: baseline; gap: 6px; margin-top: 9px; font-variant-numeric: tabular-nums; }
.metric-value strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: .95; }
.metric-value > span { color: #88918c; font-size: 10px; }
.metric-value .metric-denominator { margin-left: -4px; color: #8a948f; font-size: 14px; }
.metric-foot { display: flex; min-height: 16px; align-items: center; gap: 6px; margin-top: 8px; color: #858f89; font-size: 9px; }
.metric-foot b { color: #55615b; font-weight: 600; }
.metric-trend { color: var(--green); font-weight: 700; }
.metric-spark { position: absolute; right: 13px; bottom: 13px; display: flex; height: 24px; align-items: end; gap: 3px; opacity: .62; }
.metric-spark i { width: 4px; border-radius: 1px 1px 0 0; background: #e77951; }
.metric-spark i:nth-child(1) { height: 8px; }.metric-spark i:nth-child(2) { height: 11px; }.metric-spark i:nth-child(3) { height: 7px; }.metric-spark i:nth-child(4) { height: 15px; }.metric-spark i:nth-child(5) { height: 12px; }.metric-spark i:nth-child(6) { height: 17px; }.metric-spark i:nth-child(7) { height: 11px; }.metric-spark i:nth-child(8) { height: 19px; }.metric-spark i:nth-child(9) { height: 16px; }.metric-spark i:nth-child(10) { height: 21px; }.metric-spark i:nth-child(11) { height: 17px; }.metric-spark i:nth-child(12) { height: 24px; }
.state-key { display: inline-flex; align-items: center; gap: 4px; }
.state-key i { width: 5px; height: 5px; border-radius: 50%; }.key-running { background: var(--green); }.key-idle { background: #b7c0ba; }
.machine-mini-bars { position: absolute; right: 16px; bottom: 15px; display: flex; height: 23px; align-items: end; gap: 4px; }
.machine-mini-bars i { width: 8px; border-radius: 2px 2px 0 0; background: #76af93; }
.machine-mini-bars i:nth-child(1) { height: 22px; }.machine-mini-bars i:nth-child(2) { height: 15px; }.machine-mini-bars i:nth-child(3) { height: 22px; }.machine-mini-bars i:nth-child(4) { height: 7px; background: #cbd2cd; }
.metric-time-track { height: 3px; margin-top: 12px; border-radius: 4px; background: #e8edf0; }.metric-time-track span { display: block; width: 64%; height: 100%; border-radius: inherit; background: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; border: 0; background: transparent; color: #62716a; font-size: 10px; font-weight: 600; cursor: pointer; }.text-link:hover { color: var(--orange); }
.metric-review .text-link { margin-top: 4px; color: #aa7720; font-size: 9px; }
.camera-section { margin-top: 24px; }
.camera-section-heading { margin-bottom: 11px; }
.camera-requirement { color: #8f9992; font-size: 8px; font-weight: 700; letter-spacing: .75px; }
.camera-feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.camera-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.camera-screen { position: relative; display: grid; aspect-ratio: 16 / 8.8; min-height: 180px; overflow: hidden; place-items: center; background-color: #1e2925; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px), radial-gradient(ellipse at center, #34453d 0, #1e2925 70%); background-size: 28px 28px, 28px 28px, auto; color: #f2f5f1; }
.camera-screen::after { position: absolute; z-index: 1; inset: 0; border: 1px solid #ffffff0a; content: ""; pointer-events: none; }
.camera-empty { display: grid; max-width: 250px; justify-items: center; gap: 8px; padding: 25px 12px; color: #e1e8e2; text-align: center; }
.camera-empty strong { font-size: 11px; font-weight: 600; }
.camera-empty small { color: #a7b4aa; font-size: 9px; line-height: 1.5; }
.camera-reticle { position: relative; width: 34px; height: 34px; margin-bottom: 3px; border: 1px solid #9bb5a366; border-radius: 50%; }
.camera-reticle::before, .camera-reticle::after { position: absolute; top: 50%; left: 50%; width: 48px; height: 1px; background: #9bb5a355; content: ""; transform: translate(-50%, -50%); }
.camera-reticle::after { transform: translate(-50%, -50%) rotate(90deg); }
.camera-screen-label, .camera-screen-status { position: absolute; z-index: 2; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid #ffffff2c; border-radius: 2px; background: #101b17d9; color: #eaf1ec; font-size: 8px; font-weight: 700; letter-spacing: .65px; }
.camera-screen-label { left: 10px; }.camera-screen-status { right: 10px; color: #d3d9d5; }.camera-screen-status.is-live { color: #97d4aa; }.camera-screen-status.is-error { color: #ffb099; }
.camera-screen-label i { width: 5px; height: 5px; border-radius: 50%; background: #dd7251; }
.camera-player-host { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; }
.camera-player-host img, .camera-player-host video, .camera-player-host iframe { width: 100%; height: 100%; border: 0; background: #111; object-fit: contain; }
.camera-player-host iframe { display: block; }
.camera-card-body { padding: 11px 12px 10px; }
.camera-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.camera-title-row h3 { margin: 0; font-size: 10px; font-weight: 700; }.camera-title-row > div > span { display: block; margin-top: 4px; color: #8c9690; font-size: 8px; }
.camera-source-state { padding: 4px 6px; border-radius: 2px; background: #f0f2ef; color: #7b8580; font-size: 7px; font-weight: 700; letter-spacing: .45px; white-space: nowrap; }.camera-source-state.is-live { background: var(--green-soft); color: #3e795c; }.camera-source-state.is-error { background: var(--orange-soft); color: #b34f30; }
.camera-form { display: grid; grid-template-columns: 102px minmax(80px, 1fr) auto; gap: 6px; margin-top: 10px; }
.camera-type-label { display: grid; min-width: 0; gap: 3px; color: #929b95; font-size: 7px; font-weight: 700; letter-spacing: .6px; }
.camera-type-label select, .camera-url-label input { width: 100%; height: 30px; min-width: 0; padding: 0 7px; border: 1px solid #e1e6e1; border-radius: 3px; outline: none; background: #fbfcfa; color: #58645c; font-size: 8px; }
.camera-url-label { display: flex; min-width: 0; align-items: end; }.camera-url-label input::placeholder { color: #a7afa9; }.camera-type-label select:focus, .camera-url-label input:focus { border-color: #82ae93; box-shadow: 0 0 0 2px #82ae9324; }
.camera-connect-button { align-self: end; height: 30px; padding: 0 9px; border: 1px solid #d8e1d9; border-radius: 3px; background: #f4f7f3; color: #435d4b; font-size: 8px; font-weight: 700; cursor: pointer; }.camera-connect-button:hover { border-color: #91b39c; background: #e9f2eb; }
.camera-status { min-height: 12px; margin: 8px 0 0; color: #8b958e; font-size: 8px; line-height: 1.45; }.camera-status.is-error { color: #b15032; }.camera-status.is-live { color: #428161; }.camera-security-note { margin: 7px 0 0; color: #9aa39d; font-size: 8px; }.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.machine-section-heading { margin: 25px 0 11px; }
.section-heading > div, .panel-heading > div { display: flex; align-items: center; gap: 9px; }
.section-index { color: #9aa39d; font-family: var(--font-display); font-size: 12px; font-weight: 600; }
h2 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1; letter-spacing: .15px; }
.section-caption { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: #929b95; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.section-caption i, .live-caption i { width: 5px; height: 5px; border-radius: 50%; background: #62a77a; box-shadow: 0 0 0 2px #62a77a22; }
.machine-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.machine-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.feed-image { position: relative; height: 115px; overflow: hidden; background: #35463f; }
.feed-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, #0e1a1426, #101c176e); content: ""; }
.feed-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .35s ease; }
.machine-card:hover .feed-image img { transform: scale(1.035); }
.feed-tag { position: absolute; z-index: 1; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid #ffffff4d; border-radius: 2px; background: #15221dc9; color: #f2f6f2; font-size: 8px; font-weight: 700; letter-spacing: .55px; }
.feed-tag i { width: 5px; height: 5px; border-radius: 50%; background: #f27e52; box-shadow: 0 0 0 2px #f27e523f; }
.feed-number { position: absolute; z-index: 1; right: 8px; bottom: 7px; color: #ffffffbd; font-size: 8px; font-variant-numeric: tabular-nums; }
.machine-card-body { padding: 10px 10px 9px; }
.machine-title-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.machine-title-row h3 { overflow: hidden; margin: 0; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.state-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; padding: 3px 5px; border-radius: 2px; background: var(--green-soft); color: #337458; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.state-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.state-badge.idle { background: #eff1ef; color: #78837c; }.state-badge.setup { background: var(--blue-soft); color: #477ca8; }.state-badge.fault { background: var(--orange-soft); color: var(--orange); }
.machine-product { display: flex; justify-content: space-between; gap: 5px; margin-top: 7px; color: #818b85; font-size: 9px; }
.machine-product strong { color: #5d6962; font-weight: 600; text-align: right; }
.machine-operator { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #edf0ec; }
.avatar { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; overflow: hidden; border-radius: 50%; background: #e5eee8; color: #456a55; font-size: 8px; font-weight: 700; }
.avatar.avatar-orange { background: #f8e8de; color: #a75c3b; }.avatar.avatar-blue { background: #e5edf3; color: #4c718e; }.avatar.avatar-yellow { background: #f5efd9; color: #8b7437; }
.operator-copy { display: grid; min-width: 0; gap: 2px; }.operator-copy strong { overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.operator-copy small { color: #919a94; font-size: 8px; }
.machine-output { margin-left: auto; color: #5d6962; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }.machine-output strong { color: var(--ink); font-size: 11px; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 12px; margin-top: 15px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.output-panel, .crew-panel { padding: 15px 16px; }
.panel-heading { display: flex; min-height: 22px; align-items: center; justify-content: space-between; gap: 10px; }
.pill-label { padding: 4px 6px; border: 1px solid #e4e9e4; border-radius: 2px; color: #7f8983; font-size: 8px; font-weight: 700; letter-spacing: .65px; }
.output-summary { display: flex; align-items: baseline; gap: 8px; margin: 13px 0 12px 25px; }.output-summary strong { font-family: var(--font-display); font-size: 27px; font-weight: 600; }.output-summary span { color: #86908a; font-size: 9px; }
.output-chart { display: grid; gap: 10px; padding-left: 25px; }
.output-row { display: grid; grid-template-columns: 72px 1fr 47px; align-items: center; gap: 8px; }.output-machine-name { overflow: hidden; color: #66716b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.output-track { display: flex; height: 7px; overflow: hidden; border-radius: 2px; background: #eff2ef; }.output-good { height: 100%; background: #72ad8e; }.output-scrap { height: 100%; background: #e9ae6e; }
.output-count { color: #66716b; font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }.chart-axis { display: flex; justify-content: space-between; margin: 6px 47px 0 105px; color: #a0a8a2; font-size: 8px; }
.output-legend { display: flex; gap: 14px; margin: 13px 0 0 25px; color: #89928c; font-size: 8px; }.output-legend span { display: inline-flex; align-items: center; gap: 5px; }.output-legend i { width: 6px; height: 6px; border-radius: 1px; }.legend-good { background: #72ad8e; }.legend-scrap { background: #e9ae6e; }
.icon-link { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #65716a; font-size: 15px; cursor: pointer; }.icon-link:hover { border-color: #a8b4ac; color: var(--orange); }
.crew-list { display: grid; margin-top: 10px; }.crew-person-row { display: flex; min-height: 43px; align-items: center; gap: 8px; border-bottom: 1px solid #edf0ec; }.crew-person-row:last-child { border-bottom: 0; }.crew-person-meta { display: grid; flex: 1; gap: 3px; }.crew-person-meta strong { font-size: 9px; font-weight: 600; }.crew-person-meta small { color: #8a948e; font-size: 8px; }.crew-time { color: #65716a; font-size: 9px; font-variant-numeric: tabular-nums; }.crew-panel-foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding-top: 10px; border-top: 1px solid #edf0ec; color: #87918b; font-size: 8px; }.crew-panel-foot .status-dot { width: 6px; height: 6px; flex-basis: 6px; }.foot-separator { color: #c1c8c2; }
.event-panel { margin-top: 15px; overflow: hidden; }.event-panel-heading { padding: 14px 16px 11px; }.event-panel-heading > div { flex-wrap: wrap; }.live-caption { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; color: #7b8981; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.event-table-wrap { width: 100%; overflow-x: auto; }.event-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }.event-table th { height: 29px; padding: 0 12px; border-top: 1px solid #edf0ec; border-bottom: 1px solid #edf0ec; background: #fafbf9; color: #929b95; font-size: 8px; font-weight: 700; letter-spacing: .7px; }.event-table td { height: 43px; padding: 6px 12px; border-bottom: 1px solid #edf0ec; color: #6c7871; font-size: 9px; }.event-table tbody tr:last-child td { border-bottom: 0; }.event-time { color: #647069 !important; font-variant-numeric: tabular-nums; }.event-time small { display: block; margin-top: 2px; color: #a1aaa4; font-size: 8px; }.event-description { display: flex; align-items: center; gap: 8px; color: #34413a !important; font-weight: 600; }.event-type-mark { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; border-radius: 3px; background: #edf3ef; color: #528064; font-size: 10px; font-weight: 700; }.event-type-mark.output { background: #fff1e9; color: #cf6035; }.event-type-mark.machine { background: #eaf0f4; color: #50728b; }.event-type-mark.note { background: #f4efdf; color: #9b803c; }.event-assignment { color: #58645d !important; }.event-assignment small { display: block; margin-top: 3px; color: #99a29c; font-size: 8px; }.source-chip { display: inline-flex; align-items: center; gap: 4px; color: #808b84; font-size: 8px; }.source-chip::before { width: 5px; height: 5px; border-radius: 50%; background: #a8b5ab; content: ""; }.review-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 2px; background: var(--yellow-soft); color: #98701f; font-size: 8px; font-weight: 600; }.review-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }.review-badge.confirmed { background: var(--green-soft); color: #438061; }.review-action { padding: 4px 6px; border: 1px solid #eadfbf; border-radius: 2px; background: #fffaf0; color: #967323; font-size: 8px; cursor: pointer; }.review-action:hover { border-color: #ceae5c; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; padding: 15px 1px 22px; color: #9aa39d; font-size: 8px; }.page-footer b { padding: 0 3px; color: #c5ccc6; }
.activity-toolbar { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; padding: 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }.search-field { display: flex; min-width: 180px; height: 32px; flex: 1; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid var(--line); border-radius: 3px; color: #88928c; }.search-field > span { font-size: 18px; line-height: 1; transform: rotate(-20deg); }.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }.search-field input::placeholder { color: #a2aaa5; }.filter-select { display: grid; height: 32px; grid-template-columns: auto auto; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; color: #89938d; }.filter-select span { font-size: 7px; font-weight: 700; letter-spacing: .7px; }.filter-select select { max-width: 112px; border: 0; outline: 0; background: transparent; color: #455149; font-size: 9px; }.result-count { color: #8b958f; font-size: 9px; white-space: nowrap; }.full-log-panel, .crew-table-panel, .station-panel { margin-bottom: 13px; overflow: hidden; }.full-log-panel > .panel-heading, .crew-table-panel > .panel-heading, .station-panel > .panel-heading { padding: 15px 16px; }
.empty-state { padding: 32px 16px; color: #8a948e; font-size: 11px; text-align: center; }.hidden { display: none !important; }
.assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #edf0ec; }.assignment-card { display: flex; min-height: 98px; align-items: center; gap: 12px; padding: 15px 18px; border-right: 1px solid #edf0ec; border-bottom: 1px solid #edf0ec; }.assignment-card:nth-child(2n) { border-right: 0; }.assignment-details { display: grid; min-width: 0; flex: 1; gap: 4px; }.assignment-details strong { font-size: 11px; }.assignment-details small { color: #89938d; font-size: 9px; }.assignment-duration { display: grid; justify-items: end; gap: 4px; color: #758078; font-size: 9px; }.assignment-duration strong { color: #303e36; font-size: 11px; font-variant-numeric: tabular-nums; }.session-kind { padding: 3px 5px; border-radius: 2px; background: #eef3ef; color: #4d7860; font-size: 8px; text-transform: uppercase; }
.station-list { border-top: 1px solid #edf0ec; }.station-row { display: grid; min-height: 53px; grid-template-columns: minmax(105px, 1.1fr) minmax(95px, .8fr) minmax(110px, 1fr) minmax(90px, .8fr); align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid #edf0ec; }.station-row:last-child { border-bottom: 0; }.station-name { display: grid; gap: 3px; }.station-name strong { font-size: 10px; }.station-name small, .station-worker { color: #89938d; font-size: 9px; }.station-output { display: grid; gap: 3px; color: #8a948e; font-size: 8px; }.station-output strong { color: #536158; font-size: 10px; font-weight: 600; }.station-mini-track { height: 4px; overflow: hidden; border-radius: 3px; background: #edf1ed; }.station-mini-track span { display: block; height: 100%; border-radius: inherit; background: #79ab8c; }
.event-dialog { width: min(440px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 1px solid #dfe5de; border-radius: 5px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 80px #16221b3d; }.event-dialog::backdrop { background: #18221db0; backdrop-filter: blur(2px); }.dialog-form { padding: 22px; }.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }.dialog-heading h2 { font-size: 27px; }.dialog-heading .eyebrow { margin-bottom: 7px; }.dialog-close { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #738078; font-size: 18px; cursor: pointer; }.dialog-intro { margin: 10px 0 18px; color: #78837d; font-size: 10px; }.form-label { display: grid; gap: 6px; margin: 0 0 13px; color: #5f6b63; font-size: 9px; font-weight: 600; }.form-label select, .form-label input, .form-label textarea { width: 100%; min-height: 35px; padding: 8px 9px; border: 1px solid #dfe5df; border-radius: 3px; outline: none; background: #fcfdfb; color: #26342c; font-size: 10px; }.form-label textarea { min-height: 75px; resize: vertical; }.form-label select:focus, .form-label input:focus, .form-label textarea:focus { border-color: #82ae93; box-shadow: 0 0 0 2px #82ae9324; }.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.form-detail-row { margin-top: -2px; }.form-error { margin: 0 0 12px; color: #b5472b; font-size: 10px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf0ec; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 22px; max-width: min(360px, calc(100vw - 32px)); padding: 11px 14px; border: 1px solid #36473d; border-radius: 4px; background: #25332c; color: #f4f7f3; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1150px) {
  .sidebar { width: 205px; }.main-area { margin-left: 205px; padding: 0 24px; }.metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.feed-image { height: 145px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 9px 13px; }.brand { padding: 0; }.brand-mark { width: 29px; height: 29px; }.brand-copy strong { font-size: 19px; }.brand-copy small { font-size: 7px; }.sidebar-label, .sidebar-spacer, .shift-card, .sidebar-foot { display: none; }.primary-nav { display: flex; gap: 3px; margin-left: auto; }.nav-link { width: 38px; height: 36px; justify-content: center; padding: 0; color: #c5d0c8; font-size: 0; }.nav-link.is-active { box-shadow: inset 0 -2px var(--orange); }.nav-glyph { width: 17px; height: 17px; }.nav-count { display: none; }.main-area { margin-left: 0; padding: 0 15px; }.topbar { min-height: 57px; }.breadcrumbs { font-size: 8px; }.topbar-actions { gap: 7px; }.clock-block, .topbar-divider { display: none; }.button { min-height: 32px; padding: 0 9px; font-size: 9px; }.page-heading { min-height: 112px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding: 15px 0; }.data-note { align-self: flex-start; padding: 6px 8px; font-size: 8px; }.eyebrow { font-size: 8px; }.page-heading h1 { font-size: 33px; }.page-subtitle { font-size: 10px; }.metrics-grid { gap: 8px; }.metric-card { min-height: 112px; padding: 11px; }.metric-output { padding-top: 10px; }.metric-top { font-size: 7px; }.metric-value strong { font-size: 30px; }.machine-section-heading { margin-top: 21px; }.camera-section { margin-top: 20px; }.camera-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }.camera-requirement { padding-left: 25px; font-size: 7px; }.camera-feed-grid { grid-template-columns: 1fr; gap: 9px; }.camera-screen { min-height: 175px; }.camera-card-body { padding: 10px; }.section-heading > div { gap: 6px; }.section-caption { display: none; }.machine-grid { gap: 8px; }.feed-image { height: 105px; }.machine-card-body { padding: 8px; }.machine-title-row h3 { font-size: 10px; }.machine-product { font-size: 8px; }.machine-operator { margin-top: 8px; }.lower-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }.output-panel, .crew-panel { padding: 13px; }.event-panel { margin-top: 10px; }.event-panel-heading { padding: 12px; }.event-table { min-width: 620px; }.event-panel .event-table { min-width: 570px; }.page-footer { flex-direction: column; padding-bottom: 18px; }.activity-toolbar { flex-wrap: wrap; padding: 9px; }.search-field { min-width: 100%; flex-basis: 100%; }.filter-select { flex: 1; }.filter-select select { max-width: 105px; }.result-count { margin-left: auto; }.assignment-grid { grid-template-columns: 1fr; }.assignment-card { min-height: 81px; border-right: 0; }.station-row { grid-template-columns: minmax(100px, 1fr) minmax(90px, .8fr); gap: 8px; }.station-row > :nth-child(3) { display: none; }.station-row > :nth-child(4) { text-align: right; }
}
@media (max-width: 390px) {
  .main-area { padding: 0 11px; }.brand { gap: 7px; }.brand-copy small { letter-spacing: .8px; }.primary-nav { gap: 0; }.nav-link { width: 33px; }.button-quiet { gap: 5px; }.button-primary { gap: 5px; }.metrics-grid { gap: 6px; }.metric-card { padding-right: 8px; padding-left: 8px; }.metric-top { letter-spacing: .4px; }.metric-icon { width: 18px; height: 18px; }.metric-value strong { font-size: 27px; }.metric-foot { font-size: 8px; }.metric-spark { right: 8px; }.machine-title-row { align-items: flex-start; flex-direction: column; }.machine-title-row .state-badge { align-self: flex-start; }.feed-image { height: 88px; }.machine-product strong { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}