/* Kajenjere PMS — staff interface (dark, gold accent) */
:root {
  color-scheme: dark;
  --bg: #0b0f15; --panel: #121821; --panel-2: #171e29; --panel-3: #1c2431;
  --line: #222b38; --line-2: #2d3848;
  --ink: #e9edf3; --ink-2: #c3cad6; --muted: #8590a3; --faint: #5d6778;
  --gold: #d7a94f; --gold-2: #e9c172; --gold-ink: #1a1408; --gold-soft: rgba(215,169,79,.12);
  --green: #3fcf8e; --green-soft: rgba(63,207,142,.12);
  --blue: #5d7ffa; --blue-soft: rgba(93,127,250,.14);
  --red: #f0616d; --red-soft: rgba(240,97,109,.12);
  --amber: #f3a93c; --amber-soft: rgba(243,169,60,.13);
  --brand: var(--gold); --brand-2: var(--gold); --accent: var(--gold);
  --ok: var(--green); --warn: var(--amber); --bad: var(--red); --info: var(--blue);
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
  font-size: 14px;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; font-family: "Plus Jakarta Sans", Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }
h1 { font-size: 1.55rem; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1rem; margin: 0 0 .85rem; font-weight: 650; }
h3 { font-size: .95rem; margin: 0 0 .5rem; font-weight: 650; }
code { background: var(--panel-3); padding: 1px 6px; border-radius: 6px; font-size: .85em; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: #0d1219; border-right: 1px solid var(--line); padding: 16px 12px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: var(--gold); border: 1.5px solid var(--gold); background: var(--gold-soft); }
.brand b { display: block; font-size: 1.02rem; letter-spacing: -.01em; }
.brand span { font-size: .72rem; color: var(--muted); }
.side-search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; margin: 4px 0 16px; color: var(--muted); }
.side-search input { border: 0; background: transparent; padding: 9px 0; width: 100%; color: var(--ink); outline: none; }
.side-search input:focus { outline: none; }
.kbd { font-size: .68rem; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; color: var(--muted); white-space: nowrap; }
.nav-section { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; font-weight: 700; }
.nav a { display: flex; gap: 11px; align-items: center; color: var(--ink-2); padding: 8px 10px; border-radius: 9px; font-size: .9rem; margin-bottom: 1px; border: 1px solid transparent; }
.nav a:hover { background: var(--panel); color: var(--ink); text-decoration: none; }
.nav a.active { background: linear-gradient(90deg, rgba(215,169,79,.16), rgba(215,169,79,.05)); color: var(--gold-2); border-color: rgba(215,169,79,.22); font-weight: 600; }
.nav a .ico { width: 17px; height: 17px; opacity: .9; }
.side-foot { margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: .8rem; color: var(--muted); }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(11,15,21,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .grow { flex: 1; }
.crumbs { color: var(--muted); font-size: .85rem; display: flex; gap: 8px; align-items: center; }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--faint); }
.topbar select { background: var(--panel); }
.bizdate { background: var(--gold-soft); color: var(--gold-2); padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: .8rem; border: 1px solid rgba(215,169,79,.25); white-space: nowrap; }
.icon-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--panel); }
.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.user-chip b { display: block; font-size: .86rem; line-height: 1.2; }
.user-chip span { font-size: .74rem; color: var(--muted); }
.content { padding: 24px 28px 64px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .grow { flex: 1; }
.menu-btn { display: none; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2, .card.flush > .card-head { padding: 16px 18px 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head .grow { flex: 1; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-side { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.g-dash { grid-template-columns: minmax(0,1.85fr) minmax(0,1fr); }

/* KPI (glow cards) */
.kpi { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%); mask-image: linear-gradient(115deg, transparent 35%, #000 100%); opacity: .55; }
.kpi .kpi-top { display: flex; align-items: center; gap: 12px; }
.kpi .kpi-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--ink); }
.kpi .label { color: var(--ink-2); font-size: .84rem; }
.kpi .value { font-size: 1.85rem; font-weight: 700; margin: 10px 0 4px; letter-spacing: -.02em; position: relative; z-index: 1; }
.kpi .sub { color: var(--muted); font-size: .8rem; position: relative; z-index: 1; }
.kpi .up { color: var(--green); font-weight: 600; } .kpi .down { color: var(--red); font-weight: 600; }
.k-gold { border-color: rgba(215,169,79,.55); background: linear-gradient(135deg, rgba(215,169,79,.10), rgba(215,169,79,.02) 55%, var(--panel)); box-shadow: 0 0 0 1px rgba(215,169,79,.08), 0 10px 30px rgba(215,169,79,.07); }
.k-gold .kpi-icon { color: var(--gold-2); border-color: rgba(215,169,79,.35); background: rgba(215,169,79,.12); }
.k-green { border-color: rgba(63,207,142,.5); background: linear-gradient(135deg, rgba(63,207,142,.10), rgba(63,207,142,.02) 55%, var(--panel)); box-shadow: 0 10px 30px rgba(63,207,142,.06); }
.k-green .kpi-icon { color: var(--green); border-color: rgba(63,207,142,.35); background: rgba(63,207,142,.12); }
.k-blue { border-color: rgba(93,127,250,.55); background: linear-gradient(135deg, rgba(93,127,250,.12), rgba(93,127,250,.02) 55%, var(--panel)); box-shadow: 0 10px 30px rgba(93,127,250,.07); }
.k-blue .kpi-icon { color: var(--blue); border-color: rgba(93,127,250,.4); background: rgba(93,127,250,.14); }
.k-red { border-color: rgba(240,97,109,.5); background: linear-gradient(135deg, rgba(240,97,109,.11), rgba(240,97,109,.02) 55%, var(--panel)); box-shadow: 0 10px 30px rgba(240,97,109,.06); }
.k-red .kpi-icon { color: var(--red); border-color: rgba(240,97,109,.35); background: rgba(240,97,109,.12); }

/* charts */
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--ink-2); margin: 4px 0 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.barchart { display: grid; grid-template-columns: 34px 1fr; gap: 6px; height: 230px; }
.barchart .y { display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; color: var(--faint); text-align: right; padding-bottom: 22px; }
.barchart .plot { position: relative; display: flex; align-items: flex-end; justify-content: space-around; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; padding-bottom: 0; margin-bottom: 22px; }
.barchart .day { display: flex; flex-direction: column; align-items: center; position: relative; height: 100%; justify-content: flex-end; flex: 1; }
.barchart .pair { display: flex; gap: 5px; align-items: flex-end; height: 100%; }
.barchart .b { width: 12px; border-radius: 6px 6px 3px 3px; min-height: 3px; }
.barchart .b.gold { background: linear-gradient(180deg, var(--gold-2), #b88a35); }
.barchart .b.blue { background: linear-gradient(180deg, #7a95ff, #4865e6); }
.barchart .lbl { position: absolute; bottom: -20px; font-size: .74rem; color: var(--muted); }
.barchart .day.today .lbl { color: var(--gold-2); font-weight: 700; }
.donut-wrap { display: grid; place-items: center; padding: 6px 0 12px; }
.donut-legend > div { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .85rem; color: var(--ink-2); }
.donut-legend > div b { margin-left: auto; color: var(--ink); }
.donut-legend > div span.pc { width: 44px; text-align: right; color: var(--muted); font-size: .78rem; }
.dotc { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); background: transparent; font-weight: 700; }
tbody tr:hover td { background: rgba(255,255,255,.015); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.voided td { color: var(--faint); text-decoration: line-through; }
tfoot td { font-weight: 700; background: var(--panel-2); }
.table-wrap { overflow-x: auto; }
.id-muted { color: var(--muted); font-size: .82rem; letter-spacing: .02em; }

/* ---------- forms ---------- */
input, select, textarea { font: inherit; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: #0e131b; color: var(--ink); max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { width: 100%; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,169,79,.15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--gold); }
select option { background: var(--panel); color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 16px; }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 5px; color: var(--ink-2); }
.field input:not([type=checkbox]):not([type=radio]), .field select { width: 100%; }
.field.wide { grid-column: 1 / -1; }
.field .help { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.field .err, .err { color: var(--red); font-size: .8rem; }
.field ul { list-style: none; padding: 0; margin: 0; } .field ul li label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.inline-form .field { min-width: 140px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.btn:hover { background: var(--panel-3); border-color: #3a475a; color: var(--ink); text-decoration: none; }
.btn.primary, .btn.accent { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); color: var(--gold-ink); }
.btn.primary:hover, .btn.accent:hover { background: var(--gold-2); color: var(--gold-ink); }
.btn.danger { color: var(--red); border-color: rgba(240,97,109,.4); background: var(--red-soft); }
.btn.sm { padding: 5px 10px; font-size: .8rem; border-radius: 8px; }
.btn.link { border: 0; background: none; color: var(--gold-2); padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- badges (status pills) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--panel-3); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.b-confirmed, .b-clean, .b-done, .b-resolved { background: var(--green-soft); color: var(--green); border-color: rgba(63,207,142,.2); }
.b-checked_in, .b-inspected, .b-in_progress { background: var(--blue-soft); color: #8ea5ff; border-color: rgba(93,127,250,.25); }
.b-pending, .b-dirty, .b-open, .b-normal, .b-tentative { background: var(--amber-soft); color: var(--amber); border-color: rgba(243,169,60,.22); }
.b-cancelled, .b-no_show, .b-out_of_order, .b-urgent, .b-high { background: var(--red-soft); color: var(--red); border-color: rgba(240,97,109,.22); }
.b-checked_out, .b-low, .b-released { background: var(--panel-3); color: var(--muted); }
.b-vip, .b-definite { background: var(--gold-soft); color: var(--gold-2); border-color: rgba(215,169,79,.25); }

/* ---------- messages ---------- */
.messages { list-style: none; padding: 0; margin: 0 0 18px; }
.messages li { padding: 11px 14px; border-radius: 10px; margin-bottom: 8px; border: 1px solid; font-size: .9rem; }
.messages .success { background: var(--green-soft); border-color: rgba(63,207,142,.3); color: #8ce8bd; }
.messages .error { background: var(--red-soft); border-color: rgba(240,97,109,.35); color: #ffa3aa; }
.messages .warning { background: var(--amber-soft); border-color: rgba(243,169,60,.3); color: #ffc777; }
.messages .info { background: var(--blue-soft); border-color: rgba(93,127,250,.3); color: #a9bbff; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; font-size: .9rem; }
.tabs a.active { color: var(--gold-2); border-color: var(--gold); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* ---------- calendar ---------- */
.cal { overflow-x: auto; }
.cal table { table-layout: fixed; min-width: 1100px; }
.cal th, .cal td { padding: 0; height: 40px; border-right: 1px solid var(--line); }
.cal th.room, .cal td.room { width: 130px; padding: 0 12px; position: sticky; left: 0; background: var(--panel); z-index: 2; }
.cal th.day { text-align: center; font-size: .72rem; padding: 6px 0; color: var(--muted); }
.cal th.day b { color: var(--ink); font-size: .9rem; }
.cal th.day.today { background: var(--gold-soft); color: var(--gold-2); }
.cal th.day.weekend { background: rgba(255,255,255,.02); }
.cal td.type-row { background: var(--panel-2); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; color: var(--gold-2); }
.cal td.slot { position: relative; }
.cal td.slot.drop-ok { background: var(--gold-soft); }
.cal td.slot.blocked { background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(240,97,109,.16) 5px, rgba(240,97,109,.16) 10px); }
.cal td.slot a.new { position: absolute; inset: 0; }
.cal td.slot a.new:hover { background: rgba(215,169,79,.08); }
.bar { position: absolute; top: 5px; bottom: 5px; left: 2px; border-radius: 8px; padding: 0 9px; font-size: .76rem; font-weight: 600; display: flex; align-items: center; overflow: hidden; white-space: nowrap; z-index: 1; cursor: grab; border: 1px solid; }
.bar:hover { text-decoration: none; filter: brightness(1.15); }
.bar.s-confirmed { background: rgba(63,207,142,.18); border-color: rgba(63,207,142,.5); color: #a6f0cd; }
.bar.s-pending { background: rgba(243,169,60,.18); border-color: rgba(243,169,60,.5); color: #ffd08a; }
.bar.s-checked_in { background: rgba(93,127,250,.25); border-color: rgba(93,127,250,.6); color: #c3d0ff; }
.bar.s-checked_out { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--muted); }
.unassigned { background: var(--amber-soft); border: 1px dashed rgba(243,169,60,.4); border-radius: 12px; padding: 12px; }
.legend-bar { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid; vertical-align: -2px; margin: 0 4px 0 10px; }

/* ---------- housekeeping ---------- */
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hk-room { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--faint); border-radius: 12px; padding: 14px; }
.hk-room.clean { border-top-color: var(--green); } .hk-room.dirty { border-top-color: var(--amber); }
.hk-room.inspected { border-top-color: var(--blue); } .hk-room.out_of_order { border-top-color: var(--red); }
.hk-room .num { font-size: 1.35rem; font-weight: 700; }
.hk-room form { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.due-out { color: var(--amber); } .arriving { color: #8ea5ff; }

/* ---------- misc ---------- */
.folio-total { font-size: 1.3rem; font-weight: 700; }
.balance-due { color: var(--red); } .balance-ok { color: var(--green); }
.c-red { color: var(--red); } .c-amber { color: var(--amber); } .c-blue { color: #8ea5ff; } .c-gold { color: var(--gold-2); }
.rate-cell.manual { background: rgba(215,169,79,.10); } .rate-cell.auto { background: rgba(93,127,250,.10); } .rate-cell.stop { background: rgba(240,97,109,.14); }
.mini-bars { display: flex; gap: 6px; align-items: flex-end; height: 130px; }
.mini-bars .col { flex: 1; text-align: center; }
.mini-bars .fill { border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--gold-2), #b88a35); min-height: 2px; }
.mini-bars .fill.future { background: linear-gradient(180deg, rgba(233,193,114,.5), rgba(184,138,53,.4)); }
.empty { color: var(--muted); padding: 18px; text-align: center; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.print-only { display: none; }

/* ---------- light documents (invoice, registration card) ---------- */
body.doc-light { color-scheme: light; background: #fff; color: #1d2327; --ink: #1d2327; --ink-2: #344054; --muted: #667085; --faint: #98a2b3; --line: #e4e7ec; --line-2: #d0d5dd; --panel: #fff; --panel-2: #f7f8f9; --panel-3: #f2f4f7; }
body.doc-light th { color: #667085; } body.doc-light .btn { background: #fff; color: #1d2327; } body.doc-light .btn.primary { color: var(--gold-ink); }
body.doc-light input, body.doc-light select { background: #fff; color: #1d2327; }
@media print {
  .sidebar, .topbar, .no-print, .messages { display: none !important; }
  .app { display: block; } .content { padding: 0; } .card { box-shadow: none; border: 0; }
  .print-only { display: block; } body { background: #fff; }
}

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 20% 10%, rgba(215,169,79,.14), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(93,127,250,.10), transparent 60%), var(--bg); }
.auth .card { width: 400px; padding: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g-side, .g-dash { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 248px; z-index: 30; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .menu-btn { display: inline-grid; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .crumbs, .user-chip .who { display: none; }
  .content { padding: 18px 14px 60px; } .topbar { padding: 10px 14px; }
}

/* ---------- housekeeping table (adapted from a clean list layout) ---------- */
.ico-xs { width: 12px; height: 12px; opacity: .55; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--panel-2); }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: .85rem; }
.seg a.on { background: var(--gold-soft); color: var(--gold-2); }
.hk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.hk-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-2); font-size: .85rem; }
.hk-chip b { color: var(--ink); font-weight: 700; }
.hk-chip:hover, .hk-chip.on { border-color: var(--gold); color: var(--ink); }
.hk-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.s-dirty, .dot.r-due_out { background: var(--red); } .dot.s-cleaning { background: var(--blue); } .dot.s-clean, .dot.r-due_in { background: var(--green); }
.dot.s-inspected { background: var(--gold); } .dot.s-out_of_order { background: var(--faint); }
.hk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.hk-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; background: var(--panel); color: var(--muted); min-width: 280px; }
.app .hk-search input { border: 0; background: transparent; box-shadow: none; padding: 8px 0; width: 100%; color: var(--ink); }
.app select.hk-filter { border-radius: 999px; padding: 7px 30px 7px 14px; background-color: var(--panel); font-size: .85rem; color: var(--ink-2); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238590a3' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.app select.hk-filter.on { border-color: var(--gold); color: var(--gold-2); background-color: var(--gold-soft); }
.hk-table table td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.hk-table thead th { background: var(--panel-2); }
.hk-table a.sort { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.hk-table tr.picked td { background: var(--gold-soft); }
.hk-table input[type=checkbox], #checkAll { width: 16px; height: 16px; accent-color: var(--gold); }
.app select.hk-pill, .hk-pill { appearance: none; -webkit-appearance: none; border: 1px solid transparent; border-radius: 8px; padding: 4px 26px 4px 10px; font-size: .8rem; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238590a3' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
span.hk-pill { background-image: none; padding-right: 10px; cursor: default; }
.app .hk-pill.s-dirty { background-color: var(--red-soft); color: var(--red); border-color: rgba(240,97,109,.25); }
.app .hk-pill.s-cleaning { background-color: var(--blue-soft); color: var(--blue); border-color: rgba(93,127,250,.25); }
.app .hk-pill.s-clean { background-color: var(--green-soft); color: var(--green); border-color: rgba(63,207,142,.25); }
.app .hk-pill.s-inspected { background-color: var(--gold-soft); color: var(--gold-2); border-color: rgba(215,169,79,.3); }
.app .hk-pill.s-out_of_order { background-color: var(--panel-3); color: var(--muted); border-color: var(--line-2); }
.prio { display: inline-flex; align-items: center; gap: 6px; }
.prio .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.prio.p-high .dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.prio.p-normal .dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.prio.p-low .dot { background: transparent; border: 2px solid var(--faint); }
.app .prio select, .app select.hk-plain { border: 1px solid transparent; background-color: transparent; padding: 4px 6px; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.app .prio select:hover, .app select.hk-plain:hover { border-color: var(--line-2); }
.hk-res { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; margin-right: 2px; }
.hk-res.r-due_in { background: var(--green-soft); color: var(--green); }
.hk-res.r-in_house { background: var(--blue-soft); color: var(--blue); }
.hk-res.r-due_out { background: var(--red-soft); color: var(--red); }
.hk-res.r-checked_out { background: var(--amber-soft); color: var(--amber); }
.hk-res.r-vacant { background: rgba(167,139,250,.13); color: #a78bfa; }
.app .hk-table input.hk-note { width: 100%; border: 1px solid transparent; background: transparent; padding: 5px 8px; font-size: .85rem; color: var(--ink-2); }
.app .hk-table input.hk-note:hover { border-color: var(--line-2); }
.app .hk-table input.hk-note:focus { border-color: var(--gold); background: var(--panel-2); color: var(--ink); }
.hk-guest { color: var(--amber); padding: 0 8px; }
.hk-foot { display: flex; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.pager { display: flex; gap: 4px; }
.pager a { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); font-size: .85rem; }
.pager a:hover { background: var(--panel-3); }
.pager a.on { background: var(--gold-soft); color: var(--gold-2); font-weight: 700; }
.hk-bulk { display: none; position: sticky; top: 70px; z-index: 5; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); }
.hk-bulk.show { display: flex; }
.hk-bulk select { padding: 5px 9px; font-size: .82rem; }
.sep-v { width: 1px; align-self: stretch; background: var(--line-2); margin: 0 4px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--panel-3); color: var(--ink); border: 1px solid var(--line-2);
  padding: 9px 16px; border-radius: 10px; font-size: .85rem; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--red); color: var(--red); }
.hk-room.cleaning { border-top-color: var(--blue); }
.hk-new .hk-room.dirty { border-top-color: var(--red); } .hk-new .hk-room.inspected { border-top-color: var(--gold); }
.b-cleaning { background: var(--blue-soft); color: #8ea5ff; border-color: rgba(93,127,250,.25); }
.hk-beta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; border: 1px dashed var(--gold); border-radius: 12px; background: var(--gold-soft); font-size: .88rem; }
@media (max-width: 760px) { .hk-search { min-width: 0; flex: 1 1 100%; } }
.hk-table thead th { white-space: nowrap; }
.hk-table td:last-child { min-width: 220px; }
.hk-task { padding: 0 8px; }
.app select.hk-plain { max-width: 150px; }
.app .hk-toolbar select.hk-filter, .app .hk-table select.hk-pill { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238590a3' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; }
.app .hk-toolbar select.hk-filter { background-position: right 12px center; }
.app .hk-table select.hk-pill { background-position: right 9px center; }
