/* Hotel Operations Hub: app shell and components. Builds on ../assets/site.css tokens. */
:root {
  --side-w: 236px;
  --top-h: 64px;
  --hk-dirty: #fde3cf;  --hk-dirty-ink: #7a3410;
  --hk-prog: #fff4cc;   --hk-prog-ink: #6b4e00;
  --hk-clean: #dcebfb;  --hk-clean-ink: #12406f;
  --hk-insp: #dff3e4;   --hk-insp-ink: #145c33;
  --hk-ooo: #e4e7eb;    --hk-ooo-ink: #4a5561;
}
body.ops { min-height: 100vh; }
body.ops site-header { z-index: 50; }

.ops-shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }

/* Sidebar */
.ops-side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px 24px; }
.ops-side .ctx { padding: 4px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ops-side .ctx label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 4px; }
.ops-side select { width: 100%; }
.side-group { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 14px 10px 4px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.side-link:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.side-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-link .ic { width: 20px; text-align: center; font-size: 16px; }
.side-link .cnt { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--bad-soft); color: var(--bad); border-radius: 999px; padding: 0 7px; line-height: 20px; }
.side-link .cnt.n { background: var(--bg); color: var(--ink-3); }
.side-foot { margin: 18px 10px 0; font-size: 12.5px; color: var(--ink-3); }
.side-foot button { margin-top: 8px; width: 100%; }

/* Main */
.ops-main { min-width: 0; max-width: none; margin: 0; padding: 18px 24px 40px; }
.ops-main th, .ops-main td { text-align: left; }
.ops-main th.num, .ops-main td.num { text-align: right; }
.ops-main .kpi { display: block; }
.ops-main .kpi .sub { margin: 0 !important; font-size: 13px; color: var(--ink-3); }
.ops-main .kpi .label { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-2); }
.ops-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ops-top h1 { font-size: 24px; margin: 0; }
.ops-top .ops-sub { color: var(--ink-3); font-size: 14px; }
.ops-top .grow { flex: 1 1 auto; }
.ops-top .ttl { min-width: 0; }
.ops-top .search { position: relative; }
.ops-top .search input { width: 240px; padding-left: 32px; }
.ops-top .search::before { content: "⌕"; position: absolute; left: 10px; top: 50%; transform: translateY(-52%); color: var(--ink-3); font-size: 17px; }
.btn.menu-btn { display: none; }
.bell { position: relative; }
.bell b { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; line-height: 18px; }

input[type=text], input[type=search], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=email], input[type=tel], select, textarea {
  font: inherit; font-size: 14.5px; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; background: var(--surface); max-width: 100%;
}
textarea { width: 100%; min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b8d4f5; outline-offset: 0; border-color: var(--brand-2); }
.btn { font-size: 14.5px; padding: 8px 13px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.btn.sm { font-size: 13px; padding: 5px 10px; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.bad { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis .kpi { padding: 13px 15px; cursor: default; }
.kpis a.kpi { color: inherit; text-decoration: none; display: block; }
.kpis a.kpi:hover { border-color: var(--brand-2); }
.kpis .kpi .value { font-size: 26px; }
.kpis .kpi .label { font-size: 13px; }
.kpi.alert .value { color: var(--bad); }
.kpi.ok .value { color: var(--good); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 16.5px; margin: 0; }
.panel .ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.panel .ph .grow { flex: 1; }
.cols { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols.c21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cols > .panel + .panel { margin-top: 0; }
.stack > * + * { margin-top: 14px; }

/* Filters / segmented tabs */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters select, .filters input { width: auto; }
.seg { flex-wrap: wrap; }
.seg button { padding: 7px 12px; font-size: 13.5px; }
.seg button .n { margin-left: 5px; font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* Rows list (responsive alternative to tables) */
.rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--hi-row, #f3f7fe); }
.row .t { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.row .t .id { color: var(--ink-3); font-weight: 500; font-size: 12.5px; margin-right: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.row .m { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.row .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row.static { cursor: default; }
.row.overdue { box-shadow: inset 3px 0 0 var(--bad); }
.empty { padding: 28px 14px; text-align: center; color: var(--ink-3); font-size: 14px; }
.more-row { padding: 10px 14px; text-align: center; font-size: 14px; }

/* Chips */
.chip { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 9px; white-space: nowrap; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); line-height: 19px; }
.chip.blue { background: var(--brand-soft); color: var(--brand); border-color: #cfe0f6; }
.chip.green { background: var(--good-soft); color: var(--good); border-color: #c4e6d1; }
.chip.amber { background: var(--warn-soft); color: var(--warn); border-color: #f4dcb1; }
.chip.red { background: var(--bad-soft); color: var(--bad); border-color: #f5c8c3; }
.chip.purple { background: #efe9fb; color: #4b2f99; border-color: #dcd0f5; }
.chip.dark { background: #33404d; color: #fff; border-color: #33404d; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* Housekeeping room board */
.hk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.hk-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.floor { margin-bottom: 12px; }
.floor h3 { font-size: 13px; color: var(--ink-3); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 6px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 7px; }
.room { position: relative; border-radius: 9px; padding: 7px 8px 6px; cursor: pointer; border: 1px solid transparent; min-height: 66px; display: flex; flex-direction: column; gap: 2px; user-select: none; font: inherit; text-align: left; }
.room:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.room b { font-size: 16px; line-height: 1.1; }
.room .o { font-size: 11px; font-weight: 600; opacity: .85; }
.room .a { font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .fl { position: absolute; top: 5px; right: 6px; font-size: 11px; display: flex; gap: 2px; }
.room.sel { outline: 3px solid var(--brand-2); outline-offset: 1px; }
.room.Dirty, i.Dirty { background: var(--hk-dirty); color: var(--hk-dirty-ink); }
.room.Cleaning, i.Cleaning { background: var(--hk-prog); color: var(--hk-prog-ink); }
.room.Clean, i.Clean { background: var(--hk-clean); color: var(--hk-clean-ink); }
.room.Inspected, i.Inspected { background: var(--hk-insp); color: var(--hk-insp-ink); }
.room.OOO, i.OOO, .room.OOS, i.OOS { background: var(--hk-ooo); color: var(--hk-ooo-ink); }
.room.OOO b { text-decoration: line-through; }
.room.OOS { background: repeating-linear-gradient(135deg, #eef0f3 0 6px, #e1e5ea 6px 12px); }
.st-chip { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
.st-chip.Dirty { background: var(--hk-dirty); color: var(--hk-dirty-ink); }
.st-chip.Cleaning { background: var(--hk-prog); color: var(--hk-prog-ink); }
.st-chip.Clean { background: var(--hk-clean); color: var(--hk-clean-ink); }
.st-chip.Inspected { background: var(--hk-insp); color: var(--hk-insp-ink); }
.st-chip.OOO, .st-chip.OOS { background: var(--hk-ooo); color: var(--hk-ooo-ink); }
.bulkbar { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #18212b; color: #fff; padding: 10px 12px; border-radius: 12px; box-shadow: 0 10px 30px rgba(16,24,40,.25); margin-top: 12px; }
.bulkbar select { width: auto; }
.bulkbar .btn { background: var(--surface); }

/* Progress bars */
.bar { height: 9px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--good); border-radius: 99px; }
.bar.blue i { background: var(--brand-2); }
.bar.amber i { background: #eda100; }
.prog { display: grid; grid-template-columns: minmax(100px, 160px) minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.prog:last-child { border-bottom: 0; }
.prog .r { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--surface-2, #eef1f5); border-radius: 10px; padding: 10px; min-height: 140px; }
.kcol h3 { font-size: 13.5px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.kcol.over { outline: 2px dashed var(--brand-2); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); font-size: 13.5px; }
.kcard .t { font-weight: 600; margin-bottom: 4px; }
.kcard .m { font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }

/* Feed / timeline */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--brand-2); flex: none; }
.feed .w { font-size: 12.5px; color: var(--ink-3); }

/* Logbook */
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; box-shadow: var(--shadow); }
.entry.unread { border-left: 4px solid var(--brand-2); }
.entry.pinned { background: #fffdf3; border-color: #f2e3ad; }
.entry .eh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.entry .eh .who { font-weight: 600; font-size: 14px; }
.entry .eh .when { font-size: 12.5px; color: var(--ink-3); }
.entry .body { font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry .ef { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.entry .cm { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.entry .cm div { margin-bottom: 4px; }

/* Checklist (inspections, PM) */
.chk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.chk:last-child { border-bottom: 0; }
.chk .crit { color: var(--bad); font-size: 11.5px; font-weight: 700; margin-left: 6px; }
.chk input[type=text] { grid-column: 1 / -1; font-size: 13.5px; padding: 6px 8px; }
.pf { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.pf button { border: 0; background: var(--surface); padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-3); }
.pf button + button { border-left: 1px solid var(--line-2); }
.pf button.on.p { background: var(--good); color: #fff; }
.pf button.on.f { background: var(--bad); color: #fff; }
.pf button.on.n { background: #6b7682; color: #fff; }
.score { font-size: 30px; font-weight: 700; }

/* Charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: inherit; font-size: 11px; fill: var(--ink-3); }
.chart .lbl { fill: var(--ink-2); font-size: 11.5px; }
.chart .val { fill: var(--ink); font-size: 11.5px; font-weight: 600; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.hbars .hb { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.hbars .hb .bar { height: 12px; }
.hbars .hb .v { text-align: right; font-weight: 600; }

/* Modal */
.ovl { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 24px 60px rgba(16,24,40,.3); display: flex; flex-direction: column; max-height: 88vh; }
.modal.wide { max-width: 820px; }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal .mh h2 { font-size: 18px; margin: 0; flex: 1; min-width: 0; }
.modal .mh .x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 2px 6px; }
.modal .mb { padding: 16px 18px; overflow-y: auto; }
.modal .mf { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal .mf .grow { flex: 1; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form .f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form .f.full { grid-column: 1 / -1; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form .f input, .form .f select, .form .f textarea { width: 100%; }
.form .check { flex-direction: row; align-items: center; gap: 8px; }
.form .check input { width: 18px; height: 18px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; margin-bottom: 12px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.thumb { max-width: 100%; max-height: 220px; border-radius: 8px; border: 1px solid var(--line); display: block; margin-top: 6px; }

/* Toast */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #18212b; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(16,24,40,.3); pointer-events: auto; max-width: calc(100vw - 32px); }
.toast button { margin-left: 10px; background: none; border: 0; color: #9cc9ff; font: inherit; font-weight: 600; cursor: pointer; }

/* Mobile bottom navigation */
.bnav { display: none; }
.scrim { display: none; }

.welcome { background: linear-gradient(135deg, #1f4e79 0%, #2a78d6 100%); color: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.welcome p { margin: 0; color: #e6f0fb; font-size: 14.5px; flex: 1 1 300px; }
.welcome b { color: #fff; }
.welcome .btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); color: #fff; }

.tblw { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tblw table { font-size: 14px; }
.tblw th, .tblw td { padding: 8px 11px; vertical-align: middle; }
.tblw tr.low td { background: #fff8f7; }
.tblw input[type=number] { width: 84px; padding: 5px 7px; }

@media (max-width: 1100px) {
  .cols.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols.c21 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ops-shell { grid-template-columns: minmax(0, 1fr); }
  .ops-side { position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: 280px; z-index: 120; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(16,24,40,.25); }
  body.side-open .ops-side { transform: none; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(16,24,40,.4); z-index: 110; }
  .ops-top .ops-sub { cursor: pointer; color: var(--brand-2); }
  .ops-top .ops-sub::before { content: "⇄ "; }
  .ops-main { padding: 14px 16px 92px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(16,24,40,.06); }
  .bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; color: var(--ink-3); padding: 6px 2px; border-radius: 8px; border: 0; background: none; font-family: inherit; cursor: pointer; text-decoration: none; }
  .bnav .ic { font-size: 19px; line-height: 1.1; }
  .bnav .active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
  .kanban { grid-template-columns: repeat(4, 78vw); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  site-footer { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  .cols, .cols.c3 { grid-template-columns: minmax(0, 1fr); }
  .ops-top { gap: 8px; }
  .ops-top h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ops-top .ttl { flex: 1 1 0; }
  .ops-top .grow { display: none; }
  .ops-top .ops-sub { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toasts { top: 70px; bottom: auto; }
  .ops-top .search { order: 9; flex: 1 1 100%; }
  .ops-top .search input { width: 100%; }
  .ops-top .hide-sm { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis .kpi .value { font-size: 22px; }
  .rgrid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
  .room { min-height: 58px; padding: 6px; }
  .room b { font-size: 15px; }
  .ovl { padding: 0; align-items: flex-end; }
  .modal, .modal.wide { max-width: none; border-radius: 16px 16px 0 0; max-height: 94vh; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 110px minmax(0, 1fr); }
  .prog { grid-template-columns: minmax(0, 1fr) auto; }
  .prog .bar { grid-column: 1 / -1; grid-row: 2; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .r { flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; text-align: left; }
  .hbars .hb { grid-template-columns: minmax(70px, 100px) minmax(0, 1fr) 40px; }
}
@media print {
  .ops-side, .bnav, .ops-top .search, .ops-top .btn, .bulkbar, .welcome { display: none !important; }
  .ops-shell { display: block; }
  .ops-main { padding: 0; }
  .room, .st-chip, .chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Dark theme (html[data-theme="dark"], set by the shared header) */
:root[data-theme="dark"] {
  --hk-dirty: rgba(235, 104, 52, .24);  --hk-dirty-ink: #f6ad8a;
  --hk-prog: rgba(237, 161, 0, .22);    --hk-prog-ink: #f2c96b;
  --hk-clean: rgba(66, 140, 230, .26);  --hk-clean-ink: #a8c9ff;
  --hk-insp: rgba(27, 175, 122, .24);   --hk-insp-ink: #84dcb4;
  --hk-ooo: #2a313c;                    --hk-ooo-ink: #9aa3b0;
}
:root[data-theme="dark"] .room.OOS { background: repeating-linear-gradient(135deg, #232a33 0 6px, #2c343f 6px 12px); }
:root[data-theme="dark"] .room:hover { outline-color: var(--ink-2); }
:root[data-theme="dark"] .entry.pinned { background: var(--warn-soft); border-color: rgba(227, 169, 79, .4); }
:root[data-theme="dark"] .tblw tr.low td { background: var(--bad-soft); }
:root[data-theme="dark"] .chip.purple { background: rgba(160, 130, 240, .16); color: #c3b2f7; border-color: rgba(160, 130, 240, .35); }
:root[data-theme="dark"] .chip.dark { background: #e6e9ee; color: #161b22; border-color: #e6e9ee; }
:root[data-theme="dark"] .chip.blue { border-color: rgba(122, 167, 255, .35); }
:root[data-theme="dark"] .chip.green { border-color: rgba(76, 195, 138, .35); }
:root[data-theme="dark"] .chip.amber { border-color: rgba(227, 169, 79, .35); }
:root[data-theme="dark"] .chip.red { border-color: rgba(240, 113, 103, .35); }
:root[data-theme="dark"] .pf button { background: var(--surface); }
:root[data-theme="dark"] .bulkbar { background: #e6e9ee; color: #161b22; }
:root[data-theme="dark"] .modal { border: 1px solid var(--line); }
:root[data-theme="dark"] .ovl { background: rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .welcome { background: linear-gradient(135deg, #1e3a6e 0%, #1d4ed8 100%); }
:root[data-theme="dark"] .kpi.alert .value { color: var(--bad); }
:root[data-theme="dark"] .kpi.ok .value { color: var(--good); }
