/* Vakkom Palazzo staff app. Calm, dense, front office tool. */
:root {
  --night: #0E2A47;
  --night-2: #16395E;
  --night-3: #234C78;
  --gold: #F5B316;
  --gold-dark: #D99A00;
  --ink: #1B2430;
  --ink-2: #4A5565;
  --ink-3: #7A8494;
  --line: #DDE3EA;
  --line-2: #EDF1F5;
  --bg: #F3F5F8;
  --card: #FFFFFF;
  --ok: #1F7A4D;
  --ok-bg: #E4F3EA;
  --warn: #9A6200;
  --warn-bg: #FDF1D6;
  --bad: #B3261E;
  --bad-bg: #FBE7E5;
  --info: #1D5B94;
  --info-bg: #E3EEF8;
  --muted-bg: #EEF0F3;
  --agent: #5B4B8A;
  --agent-bg: #ECE8F6;
  --radius: 4px;
  --side-w: 216px;
  --top-h: 52px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.45 Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); }
h1 { font-size: 20px; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }
p { margin: 0 0 8px; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: var(--side-w); flex: 0 0 var(--side-w);
  background: var(--night); color: #C9D5E3;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.brand { display: block; padding: 16px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.brand:hover { text-decoration: none; }
.brand-name { display: block; font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.brand-sub { display: block; font-size: 12px; color: #8FA4BC; margin-top: 2px; }
#nav { padding: 4px 0 8px; flex: 1; }
.nav-group { margin-top: 6px; }
.nav-label { padding: 4px 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #7F95AE; }
.nav-item {
  display: block; padding: 5px 18px 5px 15px; color: #D6E0EB; border-left: 3px solid transparent; font-size: 14px;
}
.nav-item:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.nav-item.active { background: rgba(255,255,255,.10); border-left-color: var(--gold); color: #fff; font-weight: 700; }
.side-foot { padding: 12px 18px; font-size: 11px; color: #6F86A0; border-top: 1px solid rgba(255,255,255,.08); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  height: var(--top-h); background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.top-left { display: flex; align-items: center; gap: 12px; }
.top-prop { font-weight: 700; font-size: 15px; color: var(--night); }
.badge-demo {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--warn); background: var(--warn-bg); border: 1px solid #F0D48F; border-radius: var(--radius); padding: 1px 6px;
}
.top-date { color: var(--ink-2); font-size: 13px; padding-left: 12px; border-left: 1px solid var(--line); }
#view { padding: 20px 24px 40px; outline: none; }
.page { max-width: 1480px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: #C3CCD7; background: #FAFBFC; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #1E1600; }
.btn-primary:hover { background: #F7BE35; border-color: var(--gold-dark); }
.btn-secondary { background: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--info); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-danger { background: #fff; color: var(--bad); border-color: #EBB8B3; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }

/* ---------- page header, cards, kpis ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-head .sub { margin: 4px 0 0; color: var(--ink-2); }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.card-head h2 { font-size: 14px; }
.card-head .count { color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.card-head a { font-size: 12px; }
.card-body { padding: 0; }
.card-body > .pad, .card-pad { padding: 12px 14px; }
.kpi {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; color: var(--ink); min-width: 0;
}
a.kpi:hover { text-decoration: none; border-color: #BFCBD8; }
.kpi-label { font-size: 12px; color: var(--ink-2); }
.kpi-value { font-size: 24px; font-weight: 700; margin-top: 2px; color: var(--night); font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.empty { padding: 14px; color: var(--ink-3); font-size: 13px; }
.loading { padding: 24px 4px; color: var(--ink-3); }
.placeholder { background: #fff; border: 1px dashed #C7D0DB; border-radius: var(--radius); padding: 40px; max-width: 640px; }
.placeholder h1 { margin-bottom: 8px; }
.placeholder p { color: var(--ink-2); }
.placeholder.error { border-color: #EBB8B3; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 700; font-size: 12px; color: var(--ink-2); background: #FAFBFC;
  padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.dense td { padding: 6px 12px; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: #F6F9FC; }
.tbl .al-right { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .al-center { text-align: center; }
.tbl tr.empty-row td { color: var(--ink-3); padding: 14px 12px; }

/* ---------- chips ---------- */
.chip {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 18px; padding: 0 7px;
  border-radius: var(--radius); background: var(--muted-bg); color: var(--ink-2); white-space: nowrap;
}
.st-confirmed, .st-live, .st-open, .st-sent { background: var(--info-bg); color: var(--info); }
.st-checked_in, .st-ready, .st-inspected, .st-received, .st-converted, .st-accepted, .st-active { background: var(--ok-bg); color: var(--ok); }
.st-held, .st-cleaning, .st-offered, .st-checkout_hold, .st-offer_hold, .st-pending, .st-unreconciled { background: var(--warn-bg); color: var(--warn); }
.st-dirty, .st-needs_refund { background: #FCEBD9; color: #9C4A00; }
.st-out_of_order, .st-cancelled, .st-no_show, .st-failed, .st-lapsed, .st-offer_lapsed { background: var(--bad-bg); color: var(--bad); }
.st-checked_out, .st-released, .st-refunded, .st-inactive { background: var(--muted-bg); color: var(--ink-2); }
.st-agent_hold { background: var(--agent-bg); color: var(--agent); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field .req { color: var(--bad); }
.field-hint { font-size: 12px; color: var(--ink-3); }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid #C9D2DC; border-radius: var(--radius); padding: 6px 9px; min-height: 32px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(14,42,71,.18); border-color: var(--night-3); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }

/* ---------- drawer, modal, toasts ---------- */
.scrim { position: fixed; inset: 0; background: rgba(14,42,71,.28); opacity: 0; transition: opacity .18s; z-index: 50; }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 92vw; background: #fff; z-index: 51;
  display: flex; flex-direction: column; box-shadow: -6px 0 24px rgba(14,42,71,.14);
  transform: translateX(100%); transition: transform .2s ease;
}
.drawer.open { transform: none; }
.modal {
  position: fixed; top: 50%; left: 50%; width: 480px; max-width: 92vw; max-height: 86vh; background: #fff; z-index: 51;
  display: flex; flex-direction: column; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(14,42,71,.22);
  transform: translate(-50%, -46%); opacity: 0; transition: transform .18s, opacity .18s;
}
.modal.open { transform: translate(-50%, -50%); opacity: 1; }
.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2, .modal-head h2 { font-size: 16px; }
.x { background: none; border: 0; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.x:hover { color: var(--ink); }
.drawer-body, .modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.drawer-foot, .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast {
  min-width: 240px; max-width: 420px; padding: 10px 14px; border-radius: var(--radius); background: var(--night); color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.18); font-size: 13px; opacity: 0; transform: translateY(6px); transition: all .2s; cursor: pointer;
}
.toast.show { opacity: 1; transform: none; }
.toast-ok { background: var(--ok); }
.toast-error { background: var(--bad); }

/* ================================================================================================
   [dashboard]
   ================================================================================================ */
.dash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hk-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.hk-strip a { padding: 12px 12px; color: var(--ink); border-right: 1px solid var(--line-2); }
.hk-strip a:last-child { border-right: 0; }
.hk-strip a:hover { background: #F6F9FC; text-decoration: none; }
.hk-strip .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hk-strip .l { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.dot.dirty { background: #D9822B; } .dot.cleaning { background: var(--gold); } .dot.ready { background: var(--ok); } .dot.out_of_order { background: var(--bad); }
.occ { padding: 12px 14px 10px; }
.occ-row { display: grid; grid-template-columns: 78px 1fr 92px; align-items: center; gap: 10px; padding: 3px 0; font-size: 13px; }
.occ-row.today .occ-day { font-weight: 700; color: var(--night); }
.occ-bar { height: 14px; background: var(--line-2); border-radius: 2px; display: flex; overflow: hidden; }
.occ-bar .sold { background: var(--night-3); }
.occ-bar .hold { background: var(--gold); }
.occ-bar .agent { background: #8C7CC0; }
.occ-bar .ooo { background: repeating-linear-gradient(135deg, #E7B3AE 0 3px, #F6DAD7 3px 6px); }
.occ-val { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.occ-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); padding: 0 14px 12px; }
.occ-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.feed { list-style: none; margin: 0; padding: 4px 0; }
.feed li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 7px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed .t { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.feed .t b { display: block; font-weight: 400; font-size: 11px; }
.feed a { color: var(--ink); }
.feed a:hover { color: var(--info); }
.feed .k { color: var(--ink-3); font-size: 12px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 8px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .sub { color: var(--ink-3); font-size: 12px; }
.rev { display: grid; grid-template-columns: 1fr 1fr; }
.rev > div { padding: 12px 14px; }
.rev > div + div { border-left: 1px solid var(--line-2); }
.rev .n { font-size: 20px; font-weight: 700; color: var(--night); font-variant-numeric: tabular-nums; }
.rev .l { font-size: 12px; color: var(--ink-2); }
.rev .s { font-size: 12px; color: var(--ink-3); }

/* ================================================================================================
   [calendar]
   ================================================================================================ */
.cal-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-toolbar input[type=date] { height: 32px; min-height: 32px; padding: 3px 8px; }
.cal-toolbar .range { color: var(--ink-2); margin-left: 6px; font-size: 13px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); margin: 0 0 10px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { display: inline-block; width: 18px; height: 11px; border-radius: 2px; }
.cal-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 190px); }
.cal { display: grid; position: relative; }
.cal .c { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); height: 34px; position: relative; }
.cal .hd { position: sticky; top: 0; z-index: 6; background: #FAFBFC; height: 40px; text-align: center; font-size: 12px; color: var(--ink-2); padding-top: 4px; border-bottom: 1px solid var(--line); }
.cal .hd b { display: block; font-size: 13px; color: var(--ink); }
.cal .hd.we { background: #F4F6F9; }
.cal .hd.today { background: #FFF6DC; }
.cal .hd.today b { color: var(--night); }
.cal .corner { position: sticky; left: 0; top: 0; z-index: 8; background: #FAFBFC; height: 40px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 12px 12px 0; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.cal .room { position: sticky; left: 0; z-index: 5; background: #fff; border-right: 1px solid var(--line); padding: 0 10px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cal .room .rn { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal .room .rs { font-size: 11px; color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.cal .room.hl, .cal .c.hl { background: #FFF9E8; }
.cal .grp .gn { font-weight: 400; color: var(--ink-3); }
.cal .grp { position: sticky; left: 0; z-index: 5; background: var(--line-2); font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 7px 12px 0; height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal .grpfill { background: var(--line-2); height: 30px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--ink-2); text-align: center; padding-top: 8px; font-variant-numeric: tabular-nums; }
.cal .grpfill.full { color: var(--bad); font-weight: 700; }
.cal .grpfill.low { color: var(--warn); font-weight: 700; }
.cal .c.we { background: #FAFBFC; }
.cal .c.today { background: #FFFCF2; }
.cal .c.past { background: #F6F7F9; }
.blk {
  position: relative; align-self: start; margin: 4px 3px 0; height: 26px; min-width: 0; z-index: 3; border-radius: 3px; padding: 0 7px;
  font-size: 12px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #fff; background: var(--night-3); cursor: pointer; border: 1px solid rgba(0,0,0,.06);
}
.blk:hover { filter: brightness(1.08); box-shadow: 0 2px 6px rgba(14,42,71,.25); text-decoration: none; }
.blk.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.blk.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.blk.s-confirmed { background: var(--night-3); }
.blk.s-checked_in { background: var(--ok); }
.blk.s-checked_out { background: #C9D0D8; color: #3D4855; }
.blk.s-held { background: var(--warn-bg); color: var(--warn); border: 1px dashed #D9A43A; }
.blk.s-offer { background: #FDE2CC; color: #8A4200; border: 1px dashed #D98A48; }
.blk.s-agent { background: repeating-linear-gradient(135deg, #E6E0F4 0 6px, #F2EEFA 6px 12px); color: var(--agent); border: 1px solid #CFC5EA; }
.blk.s-ooo { background: repeating-linear-gradient(135deg, #F3C9C4 0 6px, #FBE7E5 6px 12px); color: var(--bad); border: 1px solid #EBB8B3; }
.blk.s-desk { background: #E3EEF8; color: var(--info); border: 1px dashed #9DBBDB; }
.blk.s-no_show { background: #F1D3CF; color: var(--bad); }
.blk.day { margin-top: 17px; height: 14px; line-height: 14px; font-size: 10px; padding: 0 4px; }
.legend-held { background: var(--warn-bg); border: 1px dashed #D9A43A; }
.legend-offer { background: #FDE2CC; border: 1px dashed #D98A48; }
.legend-agent { background: repeating-linear-gradient(135deg, #E6E0F4 0 4px, #F2EEFA 4px 8px); border: 1px solid #CFC5EA; }
.legend-ooo { background: repeating-linear-gradient(135deg, #F3C9C4 0 4px, #FBE7E5 4px 8px); border: 1px solid #EBB8B3; }
.cal-tip {
  position: fixed; z-index: 90; background: var(--night); color: #fff; font-size: 12px; line-height: 1.5;
  padding: 8px 10px; border-radius: var(--radius); pointer-events: none; max-width: 280px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.cal-tip b { font-size: 13px; }
.cal-tip .d { color: #B8C7D8; }

/* === housekeeping/events (Builder B) === */
.sm { font-size: 12px; }
.hk-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hk-filter { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.hk-filter:hover { border-color: #C3CCD7; }
.hk-filter.on { background: var(--night); border-color: var(--night); color: #fff; }
.hk-filter .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.hk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.hk-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hk-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; padding: 10px; }
.hk-tile { text-align: left; font: inherit; font-size: 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; min-height: 74px; display: flex; flex-direction: column; gap: 3px; }
.hk-tile:hover { border-color: #BFCBD8; box-shadow: 0 1px 4px rgba(14,42,71,.08); }
.hk-tile.s-dirty { border-left-color: #D9822B; }
.hk-tile.s-cleaning { border-left-color: var(--gold); }
.hk-tile.s-inspected { border-left-color: #145C39; }
.hk-tile.s-out_of_order { border-left-color: var(--bad); background: #FFFAFA; }
.hk-tile .hk-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hk-tile .no { font-size: 16px; font-weight: 700; color: var(--night); font-variant-numeric: tabular-nums; }
.hk-tile .meta { color: var(--ink-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-tile .meta.bad { color: var(--bad); }
.hk-tile .g { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-tile .g b { color: var(--night); font-weight: 700; }
.hk-tile .g.arr b { color: var(--info); }
.hk-tile .g.ooo b { color: var(--bad); }
.ph { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--info); border: 1px solid #B9D0E8; border-radius: 3px; padding: 0 4px; line-height: 15px; margin-left: 6px; }
.hk-facts { display: grid; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.hk-facts > div { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; }
.hk-hint { font-size: 12px; color: var(--ink-2); background: var(--line-2); border-radius: var(--radius); padding: 8px 10px; margin: 4px 0 0; }
.hk-wa { font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line-2); line-height: 1.5; }
.hk-hist { max-height: 520px; overflow-y: auto; }
.hk-hist .dot { vertical-align: 1px; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.ev-main, .ev-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ev-strip { padding: 10px 14px 4px; overflow-x: auto; }
.ev-strip-row { display: grid; grid-template-columns: 130px repeat(30, minmax(18px, 1fr)); gap: 2px; align-items: stretch; margin-bottom: 2px; }
.ev-strip-row .nm { font-size: 13px; font-weight: 700; display: flex; flex-direction: column; justify-content: center; padding-right: 8px; min-width: 0; }
.ev-strip-row .nm span { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.ev-strip-row.head .c { text-align: center; font-size: 10px; color: var(--ink-3); line-height: 1.2; padding-bottom: 2px; }
.ev-strip-row.head .c b { display: block; font-size: 11px; color: var(--ink-2); }
.ev-strip-row.head .c.we b { color: var(--night); }
.ev-strip-row.head .c.today b { color: var(--gold-dark); }
.ev-strip-row button.c { height: 34px; border: 1px solid var(--line-2); border-radius: 3px; background: #FAFBFC; cursor: pointer; padding: 0; }
.ev-strip-row button.c.free:hover { background: #FFF6DC; border-color: var(--gold); }
.ev-strip-row button.c.booked { background: var(--night-3); border-color: var(--night-3); }
.ev-strip-row button.c.held { background: var(--warn-bg); border: 1px dashed #D9A43A; }
.ev-strip-row button.c.other { background: #E3EEF8; }
.ev-legend { display: flex; gap: 14px; padding: 6px 14px 12px; font-size: 12px; color: var(--ink-2); }
.ev-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -2px; border: 1px solid var(--line); background: #FAFBFC; }
.ev-legend i.booked { background: var(--night-3); border-color: var(--night-3); }
.ev-legend i.held { background: var(--warn-bg); border: 1px dashed #D9A43A; }
.ev-clean { margin: 6px 0 10px; }
.tbl.ev-clean td, .tbl.ev-clean th { padding-left: 0; }
.ev-ex { font-size: 12px; color: var(--ink-2); line-height: 1.55; margin: 0 0 8px; }
.ev-quote { border: 1px solid var(--line); background: #FAFBFC; border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; font-size: 13px; display: grid; gap: 3px; }
.ev-quote .ok { color: var(--ok); font-weight: 700; }
.ev-quote .bad { color: var(--bad); font-weight: 700; }
.ev-quote .amt b { font-size: 15px; color: var(--night); }
.card-head .btn-sm { height: 24px; }
@media (max-width: 1100px) { .hk-grid, .ev-grid { grid-template-columns: minmax(0, 1fr); } }
.nowrap { white-space: nowrap; }

/* === bookings/guests (Builder A) === */
.bk-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 0; margin-bottom: 12px; }
.bk-filters .field { min-width: 150px; }
.bk-filters .bk-search { flex: 1; min-width: 220px; }
.bk-filters .bk-clear { padding-bottom: 12px; }
.bk-sub { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.bk-today { font-weight: 700; color: var(--night); }
.bk-due { color: var(--bad); }
.bk-credit { color: var(--ok); }
.bk-warn { color: var(--warn); background: var(--warn-bg); padding: 8px 10px; border-radius: var(--radius); font-size: 13px; }
.bk-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.bk-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 16px; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; margin-bottom: -1px; }
.bk-tab.on { color: var(--night); border-bottom-color: var(--gold); }
.bk-row6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bk-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.page-inner > .card, .page-inner > div > .card { margin-bottom: 14px; }
.bk-nights { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; font-variant-numeric: tabular-nums; }
.bk-nights span { white-space: nowrap; }
.bk-nights i { font-style: normal; color: var(--ink-3); margin-right: 4px; }
.bk-nights em { font-style: normal; color: var(--ink-3); }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.bk-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bk-col > .card { margin-bottom: 0; }
.bk-banner { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; border: 1px solid transparent; }
.bk-banner.warn { background: var(--warn-bg); color: #6E4600; border-color: #F0D48F; }
.bk-banner.bad { background: var(--bad-bg); color: var(--bad); border-color: #EBB8B3; }
.bk-kv { display: flex; flex-direction: column; }
.bk-kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.bk-kv-row:last-child { border-bottom: 0; }
.bk-kv-row > span:first-child { color: var(--ink-2); }
.bk-kv-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bk-due-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--line-2); }
.bk-due-line b { font-size: 18px; font-variant-numeric: tabular-nums; }
.bk-due-line.owe { background: var(--bad-bg); color: var(--bad); }
.bk-due-line.ok { background: var(--ok-bg); color: var(--ok); }
.bk-due-line.over { background: var(--info-bg); color: var(--info); }
.bk-line { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.bk-line:last-child { border-bottom: 0; }
.bk-line-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.bk-room { font-weight: 700; font-size: 15px; color: var(--night); }
.bk-hs { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; font-size: 12px; color: var(--ink-2); }
.bk-ntbl { margin-top: 8px; border: 1px solid var(--line-2); }
.bk-ntbl tfoot td { border-top: 1px solid var(--line); background: #FAFBFC; }
.bk-ref { font-family: Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); }
.bk-doc-head { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line-2); }
.bk-col .mini-list li { padding: 8px 0; }
.modal select, .modal input, .modal textarea { width: 100%; }
@media (max-width: 1100px) { .bk-grid { grid-template-columns: minmax(0, 1fr); } .bk-row6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bk-filters input, .bk-filters select { height: 34px; min-height: 34px; }
.hk-facts .chip { justify-self: start; }
.bk-pane .card { margin-bottom: 14px; }
.bk-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.bk-toolbar .bk-spacer { flex: 1; }
/* === end bookings/guests (Builder A) === */

/* === payments/reports/settings (Builder D) === */
.d-small { font-size: 12px; }
.d-mono { font-family: Menlo, Consolas, monospace; font-size: 12px; }
.d-wrap { word-break: break-all; }
.d-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.d-two > .card { margin-bottom: 16px; }
.d-head { display: flex; align-items: center; gap: 10px; width: 100%; }
.d-head h2 { margin: 0; }
.d-head > .btn, .d-head > button { margin-left: auto; }
.d-head > .muted + .btn { margin-left: auto; }
.chip.d-preview { background: var(--warn-bg); color: var(--warn); }
.d-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; }
.d-tabs a { padding: 8px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.d-tabs a:hover { color: var(--ink); text-decoration: none; }
.d-tabs a.on { color: var(--night); border-bottom-color: var(--gold); font-weight: bold; }
.d-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.d-range { display: flex; gap: 12px; max-width: 360px; }
.d-range .field { flex: 1; }

/* payments */
.pay-note { background: var(--info-bg); color: var(--night); border: 1px solid #C9DBEE; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.pay-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pay-filters { padding: 12px 14px 0; align-items: end; border-bottom: 1px solid var(--line-2); }
.pay-clear { padding-bottom: 12px; }
.pay-filters input, .pay-filters select { height: 34px; min-height: 34px; }
.pay-foot { padding: 8px 14px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line-2); text-align: right; }
.chip.link-paid { background: var(--ok-bg); color: var(--ok); }
.chip.link-live { background: var(--warn-bg); color: var(--warn); }
.chip.link-expired, .chip.link-cancelled { background: var(--muted-bg); color: var(--ink-2); }

/* reports: morning summary as a WhatsApp chat */
.wa-phone { max-width: 400px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #EFE7DD; }
.wa-top { display: flex; align-items: center; gap: 10px; background: #075E54; color: #fff; padding: 10px 12px; }
.wa-av { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--night); font-weight: bold; display: grid; place-items: center; }
.wa-st { font-size: 11px; color: #CDE7E3; }
.wa-chat { padding: 12px 12px 16px; }
.wa-day { text-align: center; margin: 0 auto 10px; font-size: 11px; color: #54656F; background: #E1F2FA; width: max-content; padding: 3px 10px; border-radius: 6px; }
.wa-bubble { background: #fff; border-radius: 0 8px 8px 8px; padding: 8px 10px 18px; font-size: 13.5px; line-height: 1.45; color: #111B21; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-bubble .wa-sub { padding-left: 12px; color: #3B4A54; }
.wa-time { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: #667781; }

/* reports: charts */
.d-chart { display: grid; grid-template-columns: 52px 1fr; gap: 6px; }
.d-scale { display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); text-align: right; height: 120px; }
.d-plot { position: relative; min-width: 0; }
.d-bars { display: block; width: 100%; background: #FAFBFC; border-bottom: 1px solid var(--line); }
.d-bars .grid { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.d-bars rect { fill: var(--night-3); }
.d-bars rect.past { fill: #9FB3C8; }
.d-bars rect.ahead { fill: var(--night-3); }
.d-bars rect.today { fill: var(--gold); }
.d-bars rect:hover { fill: var(--gold-dark); }
.d-axis { position: relative; height: 16px; font-size: 10.5px; color: var(--ink-3); }
.d-axis span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.d-lg-past { background: #9FB3C8; }
.d-lg-ahead { background: var(--night-3); }
.d-lg-today { background: var(--gold); }
.d-share { display: flex; align-items: center; gap: 8px; }
.d-share span { display: block; height: 8px; background: var(--night-3); border-radius: 2px; min-width: 1px; }
.d-share b { font-size: 12px; font-weight: normal; color: var(--ink-2); }

/* settings */
.d-locked { min-height: 32px; display: flex; align-items: center; padding: 6px 10px; background: var(--muted-bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); }
.d-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0 12px; cursor: pointer; }
.d-toggle input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--night); }
.d-toggle > span { display: flex; flex-direction: column; gap: 2px; }
.d-roomgroup { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.d-roomgroup:last-child { border-bottom: 0; }
.d-roomtype { font-weight: bold; padding-top: 5px; }
.d-roomchips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-room { min-width: 48px; height: 30px; padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); font: inherit; cursor: pointer; color: var(--ink); }
.d-room:hover { border-color: var(--night-3); }
.d-room.off { color: var(--ink-3); text-decoration: line-through; background: var(--muted-bg); }
.d-bignum { font-size: 22px; font-weight: bold; color: var(--night); letter-spacing: .3px; }
.d-msg { font-size: 13px; color: var(--ink); max-width: 640px; }

/* booking sites */
.ch-status { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.ch-flow { display: grid; grid-template-columns: 1fr 110px 1fr 110px 1.2fr 70px 1fr; align-items: center; gap: 6px; }
.ch-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: #FAFBFC; display: flex; flex-direction: column; gap: 3px; min-height: 76px; }
.ch-box span { font-size: 12px; color: var(--ink-2); }
.ch-box.main { background: var(--night); border-color: var(--night); }
.ch-box.main b { color: var(--gold); }
.ch-box.main span { color: #C8D5E3; }
.ch-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-3); text-align: center; }
.ch-arrow i { display: block; font-style: normal; font-size: 22px; line-height: 1; color: var(--ink-2); }
.ch-arrow i::before { content: '\21C4'; }
.ch-steps { margin: 0; padding-left: 18px; }
.ch-steps li { margin-bottom: 8px; }
@media (max-width: 1100px) {
  .ch-flow { grid-template-columns: 1fr; }
  .ch-arrow { flex-direction: row; justify-content: center; }
  .ch-arrow i::before { content: '\21C5'; }
}
/* === end payments/reports/settings (Builder D) === */

/* === rates/agents/waitlist (Builder C) === */
.c-page { display: flex; flex-direction: column; gap: 16px; }
.c-page .dash-kpis { margin-bottom: 0; }
.ag-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rt-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .rt-two { grid-template-columns: minmax(0, 1fr); } .ag-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.rt-head .muted { font-size: 12px; }
.rt-note { font-size: 12px; margin: 0; padding: 8px 14px 10px; border-top: 1px solid var(--line-2); }
.rt-sub { font-size: 12px; font-weight: 400; }
.rt-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rt-tab { font: inherit; font-size: 12px; border: 0; background: #fff; color: var(--ink-2); padding: 5px 12px; cursor: pointer; border-right: 1px solid var(--line); }
.rt-tab:last-child { border-right: 0; }
.rt-tab:hover { background: var(--line-2); }
.rt-tab.on { background: var(--night); color: #fff; font-weight: 700; }
.rt-grid td, .rt-grid th { vertical-align: middle; }
.rt-grid th.rt-we, .rt-grid td.rt-we { background: #FBF8EE; }
.rt-grid .rt-gap { width: 10px; padding: 0; border-left: 1px solid var(--line-2); }
.rt-cell { width: 84px; text-align: right; font-variant-numeric: tabular-nums; min-height: 30px; padding: 4px 8px; transition: background .3s, border-color .3s; }
.rt-cell.saving { background: var(--warn-bg); }
.rt-cell.saved { background: var(--ok-bg); border-color: #9CCDB2; }
.rt-dows { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rt-dow { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.rt-dow input { min-height: 0; margin: 0; }
.rt-switch { position: relative; display: inline-block; width: 34px; height: 18px; cursor: pointer; vertical-align: middle; }
.rt-switch input { position: absolute; opacity: 0; width: 0; height: 0; min-height: 0; }
.rt-switch span { position: absolute; inset: 0; background: #C9D2DC; border-radius: 9px; transition: background .15s; }
.rt-switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.rt-switch input:checked + span { background: var(--ok); }
.rt-switch input:checked + span::after { transform: translateX(16px); }
.rt-filters { padding: 12px 14px 0; border-bottom: 1px solid var(--line-2); }
.rt-occ { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.rt-occ i { display: block; height: 6px; border-radius: 3px; background: var(--night-3); min-width: 2px; max-width: 70px; flex: 0 0 auto; }
.rt-occ i.hot { background: var(--gold-dark); }
.rt-occ span { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rt-tag { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 6px; margin-left: 6px; border-radius: 3px; background: var(--muted-bg); color: var(--ink-2); }
.rt-fired { margin-left: 0; margin-right: 4px; background: #FDF1D6; color: var(--warn); }
.rt-bar { position: relative; display: flex; justify-content: flex-end; align-items: center; min-width: 150px; }
.rt-bar i { position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; background: var(--info-bg); border-radius: 2px; }
.rt-bar b { position: relative; font-variant-numeric: tabular-nums; }
.rt-wkd { font-weight: 700; }
.rt-up { color: var(--bad); font-variant-numeric: tabular-nums; }
.rt-down { color: var(--ok); font-variant-numeric: tabular-nums; }
.rt-fx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 14px; }
.rt-fx h3 { margin-bottom: 6px; }
.ag-blocks { display: flex; flex-direction: column; }
.ag-block { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.ag-block:last-child { border-bottom: 0; }
.ag-bmain { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ag-btitle { font-size: 14px; }
.ag-brule { font-size: 12px; color: var(--ink-2); }
.ag-bpick { font-size: 12px; }
.ag-bact { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; flex: 0 0 auto; max-width: 280px; }
.ag-cal { font-size: 12px; width: 100%; text-align: right; }
.ag-nights { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-night { border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 8px; min-width: 120px; background: #FBFCFD; }
.ag-nd { font-size: 12px; font-weight: 700; color: var(--ink); }
.ag-bars { display: flex; gap: 3px; margin: 4px 0 3px; }
.ag-bars i, .ag-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.ag-legend { font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.ag-legend i { margin-left: 8px; }
.ag-bars i.nm, .ag-legend i.nm { background: var(--night-3); }
.ag-bars i.hd, .ag-legend i.hd { background: repeating-linear-gradient(135deg, #CFC5EA 0 3px, #ECE8F6 3px 6px); border: 1px solid #BDB0E0; }
.ag-bars i.rl, .ag-legend i.rl { background: #E6E9EE; border: 1px dashed #B5BDC8; }
.ag-nc { font-size: 11px; color: var(--ink-3); }
.ag-wa { background: #E7F6E9; border: 1px solid #C5E6CB; border-radius: 6px 6px 6px 0; padding: 8px 10px; margin: 0 0 12px; font-size: 13px; max-width: 460px; }
.ag-rowact { display: inline-flex; gap: 4px; }
.wl-rule { background: var(--info-bg); border: 1px solid #C7DAEE; border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: var(--ink); }
.wl-cd { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ok); }
.wl-cd.soon { color: var(--warn); }
.wl-cd.late { color: var(--bad); }
.wl-prio { display: inline-flex; align-items: center; gap: 4px; }
.wl-prio b { min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.wl-consent { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: -4px 0 12px; cursor: pointer; }
.wl-consent input { min-height: 0; margin: 0; }
/* === end rates/agents/waitlist (Builder C) === */

/* ---- integration pass (27 Sep) ---- */
.mini-list li > .chip, .mini-list li > span > .chip { align-self: center; }
.mini-list li { align-items: center; }

/* === housekeeping assign (controller) === */
.hk-tile .meta.hk-sent { color: #0E2A47; font-weight: 600; }
.hk-assign { border: 1px solid var(--rule, #d9dee5); border-radius: 4px; padding: 12px; margin: 12px 0; }
/* === end housekeeping assign === */

/* === inbox (WhatsApp) === */
.ib { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--top-h) - 118px); min-height: 460px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ib [hidden] { display: none !important; }
.ib-left { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.ib-left-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.ib-search { flex: 1; min-width: 0; height: 32px; }
.ib-items { flex: 1; overflow-y: auto; }
.ib-item { display: block; padding: 10px 14px 10px 12px; border-bottom: 1px solid var(--line-2); border-left: 3px solid transparent; color: var(--ink); }
.ib-item:hover { background: #F6F9FC; text-decoration: none; }
.ib-item.active { background: #EEF3F9; border-left-color: var(--night); }
.ib-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ib-item-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-item-time { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ib-item.unanswered .ib-item-time { color: var(--ok); font-weight: 700; }
.ib-item-sub { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.ib-item-prev { font-size: 13px; color: var(--ink-2); margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ib-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ib-tag { display: inline-block; font-size: 11px; font-weight: 700; line-height: 17px; padding: 0 6px; border-radius: var(--radius); background: var(--muted-bg); color: var(--ink-2); white-space: nowrap; }
.ib-tag.staff { background: var(--warn-bg); color: var(--warn); }
.ib-tag.closed { background: var(--bad-bg); color: var(--bad); }
.ib-tag.open { background: var(--ok-bg); color: var(--ok); }
.ib-tag.bot { background: var(--info-bg); color: var(--info); }
.ib-tag.wait { background: var(--ok-bg); color: var(--ok); }
.ib-tag.guest { background: transparent; color: var(--info); padding: 0; }
.ib-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ib-none { align-items: center; justify-content: center; text-align: center; padding: 24px; }
.ib-none p { max-width: 340px; margin: 6px auto 0; font-size: 13px; }
.ib-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ib-head-name { font-size: 16px; font-weight: 700; color: var(--night); }
.ib-head-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.ib-head-sub .chip { font-size: 11px; line-height: 16px; }
.ib-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.ib-head-tags, .ib-head-links { display: flex; gap: 6px; align-items: center; }
.ib-head-main { min-width: 0; }
.ib-banner { background: var(--warn-bg); border-bottom: 1px solid #F0D48F; padding: 8px 16px; font-size: 13px; color: #5C3E00; }
.ib-banner.soft { background: var(--info-bg); border-bottom-color: #C7DAEE; color: var(--info); }
.ib-msgs { flex: 1; overflow-y: auto; padding: 14px 18px; background: #EFEAE2; }
.ib-nomsg { margin: 40px auto; max-width: 380px; text-align: center; font-size: 13px; color: var(--ink-2); background: #fff; border-radius: var(--radius); padding: 12px 14px; }
.ib-day { text-align: center; margin: 10px 0; }
.ib-day span { display: inline-block; font-size: 12px; color: var(--ink-2); background: #fff; border-radius: var(--radius); padding: 2px 10px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.ib-row { display: flex; margin: 4px 0; }
.ib-row.out { justify-content: flex-end; }
.ib-bubble { max-width: min(560px, 78%); background: #fff; border-radius: 8px; padding: 6px 10px 5px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.ib-row.in .ib-bubble { border-top-left-radius: 2px; }
.ib-row.out .ib-bubble { background: #DCF3D5; border-top-right-radius: 2px; }
.ib-row.out .ib-bubble.human { background: #FFF1C9; }
.ib-who { font-size: 12px; font-weight: 700; color: var(--night-3); margin-bottom: 2px; }
.ib-bubble.human .ib-who { color: #8A5A00; }
.ib-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; }
.ib-meta { display: flex; justify-content: flex-end; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ib-tick { letter-spacing: -3px; padding-right: 3px; color: var(--ink-3); }
.ib-tick.read { color: #1F8FD6; }
.ib-tick.failed { letter-spacing: 0; color: var(--bad); font-weight: 700; }
.ib-media { margin: 2px 0 4px; }
.ib-img { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ib-img img { display: block; max-width: 280px; max-height: 280px; border-radius: 6px; }
.ib-full { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; }
.ib-compose { border-top: 1px solid var(--line); padding: 10px 16px 10px; background: #FAFBFC; }
.ib-text { width: 100%; min-height: 64px; max-height: 200px; }
.ib-compose-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.ib-as-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ib-as { height: 32px; }
.ib-count { font-size: 12px; }
.ib-spacer { flex: 1; }
.ib-info { font-size: 12px; margin-top: 8px; }
.ib-block { background: var(--bad-bg); color: var(--bad); border-radius: var(--radius); padding: 8px 10px; font-size: 13px; margin-bottom: 8px; }
@media (max-width: 900px) {
  .ib { grid-template-columns: 1fr; height: auto; }
  .ib.has-thread .ib-left { display: none; }
  .ib-msgs { min-height: 50vh; }
  .ib-head { flex-direction: column; }
  .ib-head-side { align-items: flex-start; }
  .ib-head-tags { flex-wrap: wrap; }
}
/* === end inbox (WhatsApp) === */

/* ---------- shell: property switcher (multi-property) ---------- */
.prop-wrap { position: relative; }
.prop-switch {
  display: inline-flex; align-items: center; gap: 8px; height: 36px;
  font: inherit; font-weight: 700; font-size: 15px; color: var(--night);
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  padding: 0 10px; max-width: 460px; cursor: pointer;
}
.prop-switch:hover { border-color: #C3CCD7; }
.prop-switch:focus-visible { outline: 2px solid var(--night); outline-offset: 1px; }
.prop-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--ink-3); margin-left: 2px; }
.prop-logo { height: 24px; max-width: 72px; object-fit: contain; display: block; }
.prop-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 280px; max-width: 420px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(14, 42, 71, .14); padding: 4px 0;
}
.prop-group + .prop-group { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 4px; }
.prop-co { padding: 6px 12px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); }
.prop-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 12px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer;
}
.prop-opt:hover, .prop-opt:focus-visible { background: var(--line-2); outline: none; }
.prop-opt.on { font-weight: 700; color: var(--night); box-shadow: inset 3px 0 0 var(--gold); }
.prop-opt-logo { flex: 0 0 40px; height: 22px; display: flex; align-items: center; justify-content: center; }
.prop-logo-sm { max-height: 22px; max-width: 40px; object-fit: contain; }

/* ---------- Paizah admin: add a property wizard (properties) ---------- */
.wz { padding: 0; }
.wz-steps { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.wz-steps li { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; }
.wz-steps li.on { color: var(--night); font-weight: 700; }
.wz-steps li.done { color: var(--ink-2); }
.wz-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; }
.wz-steps li.on .wz-n { background: var(--night); border-color: var(--night); color: #fff; }
.wz-steps li.done .wz-n { background: var(--line-2); }
.wz-body { padding: 16px 18px; }
.wz-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.wz-spacer { flex: 1; }
.wz-title { font-size: 16px; margin: 0 0 10px; }
.wz-note { margin: 8px 0 12px; max-width: 760px; }
.wz-rows { display: grid; gap: 8px; }
.wz-row { display: grid; gap: 8px; align-items: center; }
.wz-row input, .wz-row select { width: 100%; min-width: 0; }
.wz-head5 { grid-template-columns: minmax(140px, 2fr) 100px repeat(3, minmax(80px, 1fr)) 90px; }
.wz-head4 { grid-template-columns: minmax(140px, 1.5fr) minmax(120px, 1fr) minmax(140px, 1fr) 90px; }
.wz-row > span { font-size: 12px; color: var(--ink-3); }
.wz-type { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; }
.wz-type-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wz-type-head select { margin-left: auto; }
.wz-wide { width: 100%; }
.wz-preview { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; font-size: 13px; }
.wz-chip { border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; background: var(--line-2); }
.wz-chip.dupe { border-color: #C0392B; background: #FBEAEA; color: #8E2A20; }
.wz-err { color: #8E2A20; margin: 6px 0 0; font-size: 13px; }
.wz-callout { border-left: 3px solid var(--gold); background: #FFF8E6; padding: 10px 12px; margin: 0 0 12px; max-width: 760px; }
.wz-sum { display: grid; grid-template-columns: 200px 1fr; gap: 6px 12px; margin: 0 0 14px; }
.wz-sum dt { color: var(--ink-3); }
.wz-sum dd { margin: 0; }
@media (max-width: 760px) {
  .wz-head5, .wz-head4 { grid-template-columns: 1fr 1fr; }
  .wz-sum { grid-template-columns: 1fr; }
}

/* === profiles (logos, profile forms, amenities) === */
.brand-tile { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; padding: 8px 10px; height: 56px; }
.brand-logo { max-height: 40px; max-width: 100%; object-fit: contain; display: block; }
.logo-field { margin-bottom: 12px; }
.logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-preview {
  width: 180px; height: 72px; border: 1px dashed var(--line); border-radius: 4px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 8px;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-actions { display: flex; gap: 6px; align-items: center; }
.logo-file { display: none; }
.logo-cell { width: 56px; height: 28px; display: flex; align-items: center; }
.logo-cell img { max-width: 56px; max-height: 28px; object-fit: contain; display: block; }
.logo-none { font-size: 11px; color: var(--ink-3); }
.pf textarea { width: 100%; }
.pf-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.pf-head > .pf { flex: 1 1 520px; }
.pf-head > .logo-field { flex: 0 1 380px; }
.pf-head .logo-row { flex-wrap: nowrap; }
.act-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.act-toggle input { width: 16px; height: 16px; accent-color: var(--night); margin: 0; }
.tag-field input { max-width: 320px; }
.tag-list, .tag-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-presets { margin: 2px 0 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--info-bg); color: var(--night); border-radius: 4px; padding: 2px 4px 2px 8px; font-size: 13px; }
.tag-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font: inherit; font-size: 12px; padding: 0 4px; }
.tag-x:hover { color: var(--bad); }
.tag-add { border: 1px dashed var(--line); background: #fff; border-radius: 4px; padding: 2px 8px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.tag-add:hover { border-color: var(--night-3); color: var(--night); }
.amen { display: flex; flex-wrap: wrap; gap: 4px; }
.amen span { background: var(--line-2); border-radius: 4px; padding: 0 6px; font-size: 12px; color: var(--ink-2); }
.co-head { display: flex; align-items: center; gap: 14px; }
.co-head .page-head { flex: 1; }
.co-head .logo-big { max-height: 48px; max-width: 160px; object-fit: contain; }
.legal-strip { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; margin-bottom: 14px; }
.legal-strip b { color: var(--night); }
.legal-strip .muted { font-size: 13px; }
.dash-title { display: flex; align-items: center; gap: 12px; }
.dash-logo { max-height: 36px; max-width: 140px; object-fit: contain; display: block; }
.dash-city { font-weight: 400; font-size: 16px; }
.wz-types { display: grid; gap: 10px; }
.wz-tcard { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.wz-tdetails { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.wz-floors { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 10px; margin-top: 8px; }
.wz-floor { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.wz-floor b { min-width: 44px; }
.wz-floor input { width: 60px; }
.room-floor { color: var(--ink-3); font-size: 11px; margin-left: 4px; }
.prop-off { opacity: .55; }
/* === end profiles === */
/* === country picker (controller) === */
.cp { position: relative; }
.cp input { width: 100%; }
.cp-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 2px); max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid var(--rule, #d9dee5); border-radius: 4px; box-shadow: 0 6px 18px rgba(14,42,71,.12); }
.cp-item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; cursor: pointer; font-size: 14px; }
.cp-item.on, .cp-item:hover { background: #eef3f8; }
.cp-item.cp-sep { border-bottom: 1px solid var(--rule, #d9dee5); }
.cp-code { color: #6b7684; font-size: 12px; font-variant-numeric: tabular-nums; }
.cp-none { padding: 8px 10px; color: #6b7684; font-size: 14px; }
/* === end country picker === */

/* === inbox: teach the assistant (Improve this reply) === */
.tc-link { background: none; border: 0; padding: 0; margin-right: auto; padding-right: 14px; font: inherit; font-size: 11px; color: var(--ink-3); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.tc-link:hover { color: var(--info); text-decoration-color: currentColor; }
.tc-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; line-height: 15px; padding: 0 5px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); vertical-align: 1px; letter-spacing: .02em; }
.tc { display: flex; flex-direction: column; gap: 6px; }
.tc-label { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.tc-label:first-child { margin-top: 0; }
.tc-quote { font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow-y: auto; }
.tc-quote.in { background: var(--muted-bg); color: var(--ink); }
.tc-quote.out { background: var(--info-bg); color: var(--ink); border-left: 3px solid var(--info); }
.tc-when { color: var(--ink-3); font-size: 11px; }
.tc-text { width: 100%; min-height: 96px; }
.tc-help { font-size: 12px; color: var(--ink-3); margin: 0; }
.tc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.tc-check input { margin-top: 2px; flex: 0 0 auto; }
.tc-sub { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.tc-by { font-size: 12px; margin: 4px 0 0; }
.tc-inline { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px; }
.tc-inline > span { white-space: nowrap; }
.tc-inline select { width: auto; min-width: 200px; height: 32px; }
.tc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.tc-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.tc-note { font-size: 14px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.tc-was { font-size: 12px; color: var(--ink-2); margin-top: 6px; padding-left: 8px; border-left: 3px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.tc-was-label { font-weight: 700; color: var(--ink-3); }
.tc-item-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .page-head .actions .btn { white-space: normal; }
}
/* === end inbox: teach the assistant === */

/* === notes: booking notes and special requests === */
.nt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.nt-tag { font: inherit; font-size: 12px; line-height: 24px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink-2); cursor: pointer; }
.nt-tag:hover { border-color: var(--night-3); color: var(--ink); }
.nt-tag[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.nt-mark { position: relative; display: inline-block; font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); cursor: pointer; white-space: nowrap; vertical-align: 1px; }
.nt-mark:focus { outline: 2px solid rgba(14,42,71,.25); }
.nt-pop { display: none; position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 200px; max-width: 300px; padding: 8px 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(14,42,71,.14); font-weight: 400; font-size: 12px; line-height: 1.45; white-space: normal; text-align: left; }
.nt-pop b { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.nt-pop ul { margin: 0; padding-left: 16px; }
.nt-mark:hover .nt-pop, .nt-mark:focus .nt-pop, .nt-mark.pinned .nt-pop { display: block; }
td .nt-mark { margin-left: 6px; }
.al-right .nt-pop { left: auto; right: 0; }
.nt-card .card-head { gap: 8px; }
.nt-head-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; color: var(--ink-3); }
.nt-head-tools select { height: 26px; font-size: 12px; width: auto; min-width: 120px; padding: 0 6px; }
.nt-sec { padding: 10px 14px 12px; }
.nt-sec + .nt-sec { border-top: 1px solid var(--line-2); }
.nt-sec-head { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.nt-sec-head .muted { font-weight: 400; }
.nt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nt-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.nt-item.done { background: var(--muted-bg); }
.nt-item.done .nt-body { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(122,132,148,.6); }
.nt-item.internal { border-left: 3px solid var(--night-3); }
.nt-tick { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; cursor: pointer; }
.nt-main { flex: 1; min-width: 0; }
.nt-body { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.nt-chips span { font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: var(--radius); background: var(--info-bg); color: var(--info); }
.nt-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.nt-meta .ok { color: var(--ok); font-weight: 700; }
.nt-acts { display: flex; gap: 10px; flex: 0 0 auto; }
.nt-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--info); cursor: pointer; }
.nt-link.bad { color: var(--bad); }
.nt-link:hover { text-decoration: underline; }
.nt-none { font-size: 13px; color: var(--ink-3); }
.nt-off { padding: 12px 14px; font-size: 13px; color: var(--ink-3); }
.nt-kind { display: flex; gap: 6px; margin-bottom: 10px; }
.nt-kind button { font: inherit; font-size: 13px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink-2); cursor: pointer; }
.nt-kind button.on { background: var(--night); border-color: var(--night); color: #fff; }
.nt-help { font-size: 12px; color: var(--ink-3); margin: 0 0 8px; }
.nt-count { font-size: 12px; color: var(--ink-3); text-align: right; margin-top: 2px; }
.nt-newreq { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.nt-newreq .field { max-width: 720px; }
.hk-tile .g.req { color: var(--warn); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hk-tile .g.req b { color: var(--warn); }
.cal-tip .req { color: #FDE7A8; }
.card-head .count.nt-open { color: var(--warn); font-weight: 700; }
/* === end notes === */

/* ---------- [bookings] payment links for the balance ---------- */
.pl-act { margin-top: 10px; }
.pl-act .btn { width: 100%; }
.pl-current { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pl-current-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.pl-url { word-break: break-all; }
.pl-sent-wrap:empty { display: none; }
.pl-sent { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.pl-sent.expired { color: var(--ink-3); }
.pl-drawer .bk-due-line { margin: 0 0 14px; }
.pl-amt { display: flex; align-items: flex-end; gap: 10px; }
.pl-amt .field { flex: 1; margin-bottom: 0; }
.pl-amt .nt-link { margin-bottom: 8px; white-space: nowrap; }
.pl-amt input.invalid { border-color: var(--bad); }
.pl-amt-note { font-size: 12px; color: var(--ink-3); margin: 4px 0 14px; }
.pl-amt-note.bad { color: var(--bad); }
.pl-guest { margin-bottom: 10px; }
.pl-chat { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.pl-chat-ok { color: var(--ok); font-weight: 700; }
.pl-chat-no { color: var(--warn); }
.pl-actions { display: flex; flex-direction: column; gap: 8px; }
.pl-actions .btn { width: 100%; }
.pl-why { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.pl-why:empty { display: none; }
.pl-result:not(:empty) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pl-done { font-size: 13px; color: var(--ink-2); }
.pl-done.ok { color: var(--ok); font-weight: 700; }
.pl-link-row { display: flex; gap: 6px; }
.pl-url-in { flex: 1; min-width: 0; font-size: 13px; }
.pl-msg-head { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pl-msg { font-size: 13px; background: var(--line-2); padding: 10px 12px; border-radius: var(--radius); white-space: pre-wrap; word-break: break-word; }
.pl-held { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; }

/* ---------- [channels] Aiosell connection page ---------- */
.chn-banner { background: var(--info-bg); color: var(--info); border: 1px solid #C7DBEE; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
.chn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.chn-head h2 { margin-right: 4px; }
.chn-head > .btn:last-child { margin-left: auto; }
.chn-spacer { flex: 1; }
.chn-head .chn-spacer + .btn, .chn-head .chn-spacer ~ .btn { margin-left: 0; }
.chn-chips { display: flex; gap: 6px; }
.chip.chn-test { background: var(--info-bg); color: var(--info); }
.chip.chn-live { background: var(--ok-bg); color: var(--ok); }
.chip.chn-unassigned { background: var(--bad-bg); color: var(--bad); font-weight: 700; }
.chip.chn-mini { margin-left: 6px; font-size: 10.5px; padding: 0 6px; }
.chn-conn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; }
@media (max-width: 900px) { .chn-conn { grid-template-columns: 1fr; } }
.chn-webhook { border-top: 1px solid var(--line-2); }
.chn-sub { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 4px 0 6px; }
.chn-secret { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.chn-secret .dot { flex: none; }
.chn-copy { display: flex; gap: 6px; max-width: 1040px; }
.chn-url { flex: 1; min-width: 0; font: 13px/1.3 ui-monospace, Menlo, Consolas, monospace; background: var(--line-2); }
.chn-err { color: var(--bad); }
.chn-result { font-size: 13px; padding: 9px 12px; border-radius: var(--radius); margin: 10px 0 8px; }
.chn-result.ok { background: var(--ok-bg); color: var(--ok); }
.chn-result.warn { background: var(--warn-bg); color: var(--warn); }
.chn-result.bad { background: var(--bad-bg); color: var(--bad); }
.chn-json { font-size: 12px; margin: 4px 0 8px; }
.chn-json summary { cursor: pointer; color: var(--info); font-size: 12.5px; }
.chn-json pre { background: #F7F9FB; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 6px 0 0; max-height: 320px; overflow: auto; font: 11.5px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.chn-map-row { display: grid; grid-template-columns: 190px 260px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); align-items: start; }
.chn-map-headrow { font-size: 12px; font-weight: 700; color: var(--ink-2); border-top: 0; padding-top: 0; }
@media (max-width: 1000px) { .chn-map-row { grid-template-columns: 1fr; } .chn-map-headrow { display: none; } }
.chn-map-rates { display: flex; flex-direction: column; gap: 6px; }
.chn-rate { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 320px); gap: 10px; align-items: center; font-size: 13px; }
.chn-code { width: 100%; height: 30px; font-size: 13px; }
.chn-rps { display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.chn-warn { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 9px 12px; font-size: 13px; margin-top: 10px; }
.chn-warn ul { margin: 4px 0 0; padding-left: 18px; }
.chn-okline { color: var(--ok); font-size: 13px; margin-top: 10px; }
.chn-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.chn-sync { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.chn-sync .field { width: 170px; margin-bottom: 0; }
.chn-sync-btns { display: flex; gap: 8px; }
.chn-prev-head { padding: 10px 14px 6px; border-top: 1px solid var(--line); font-size: 13px; }
.chn-prev th { font-size: 11px; line-height: 1.25; white-space: nowrap; }
.chn-prev td { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12.5px; }
.chn-prev tr.chn-prev-room td { background: #F7F9FB; }
.chn-prev td.chn-prev-rate { padding-left: 22px; }
.chn-prev td.chn-zero { color: var(--bad); font-weight: 700; }
.chn-prev-foot { padding: 6px 14px 10px; }
.chn-nowrap { white-space: nowrap; }
.chn-rowact { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; white-space: nowrap; font-size: 12.5px; }
.tbl tr.chn-row-bad td { background: #FFF6F5; }
.chn-log summary { cursor: pointer; font-size: 13px; color: var(--info); margin-bottom: 8px; }
.chn-why { font-size: 12.5px; color: var(--warn); margin: 10px 0 0; }
.chn-test-out { margin-top: 12px; }
.chn-test-out .chn-actions { margin: 4px 0 8px; }
#view code { font: 12px ui-monospace, Menlo, Consolas, monospace; }
/* === end channels === */

/* ---------- [calls] Calls page, sidebar count, guest and booking cards ---------- */
.nav-count { float: right; min-width: 20px; height: 18px; padding: 0 6px; margin-top: 1px; border-radius: 9px; background: var(--gold); color: var(--night); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cl-banner { background: var(--info-bg); color: var(--info); border: 1px solid #C7DBEE; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
.cl-dir { white-space: nowrap; font-size: 13px; }
.cl-dir.cl-in { color: var(--info); }
.cl-dir.cl-out { color: var(--ink-2); }
.cl-acts { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.cl-acts a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.cl-assign { height: 28px; font-size: 13px; max-width: 180px; }
.cl-foot { margin: 0; padding: 8px 14px 10px; border-top: 1px solid var(--line-2); }
.cl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-result { font-size: 13px; padding: 9px 12px; border-radius: var(--radius); margin-top: 12px; }
.cl-result.ok { background: var(--ok-bg); color: var(--ok); }
.cl-result.warn { background: var(--warn-bg); color: var(--warn); }
.cl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.cl-grid > div > .card { margin-bottom: 16px; }
.cl-tasks > .card { margin-bottom: 14px; }
.tbl .cl-nowrap { white-space: nowrap; }
.cl-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .cl-grid { grid-template-columns: 1fr; } }
.cl-addrow { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.cl-addrow .field { flex: 1; min-width: 180px; margin-bottom: 0; }
.cl-copy { display: flex; gap: 6px; margin: 6px 0 2px; }
.cl-url { flex: 1; min-width: 0; font: 12px/1.3 ui-monospace, Menlo, Consolas, monospace; background: var(--line-2); }
.cl-steps { margin: 0 0 12px; padding-left: 20px; font-size: 13px; }
.cl-steps li { margin-bottom: 8px; }
.cl-steps .dot { display: inline-block; vertical-align: middle; }
.cl-note { background: var(--muted-bg); border-radius: var(--radius); padding: 9px 12px; font-size: 13px; }
.cl-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cl-open { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
.chip.cl-testchip { background: var(--muted-bg); color: var(--ink-3); font-size: 10.5px; }
/* === end calls === */

/* ---------- [crm] Leads board, lead drawer, Tasks, guest 360, returning guest card ---------- */
.crm-by-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.crm-by { height: 32px; font-size: 13px; max-width: 180px; }
.crm-st-new { background: var(--muted-bg); color: var(--ink-2); }
.crm-st-quoted { background: var(--info-bg); color: var(--info); }
.crm-st-payment_sent { background: var(--warn-bg); color: var(--warn); }
.crm-st-follow_up { background: #FCEBD9; color: #9C4A00; }
.crm-st-waitlist { background: var(--agent-bg); color: var(--agent); }
.crm-st-won { background: var(--ok-bg); color: var(--ok); }
.crm-st-lost { background: var(--bad-bg); color: var(--bad); }
.chip.crm-src { background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 400; line-height: 16px; }
.chip.crm-src-bot { border-color: #BFE3CD; color: var(--ok); }
.chip.crm-vip { background: var(--gold); color: #1E1600; }
.chip.crm-dnh { background: var(--bad); color: #fff; }
.modal .cl-check, .drawer .cl-check { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; }
.modal .cl-check input[type=checkbox], .drawer .cl-check input[type=checkbox], .gp-notes ~ * input[type=checkbox] { min-height: 0; width: 16px; height: 16px; padding: 0; margin: 0; flex: 0 0 auto; }

.lb { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.lb-col { background: #E9EDF2; border-radius: var(--radius); padding: 8px; min-width: 0; }
.lb-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; }
.lb-count { font-weight: 700; color: var(--ink-2); font-size: 12px; }
.lb-value { margin-left: auto; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lb-cards { display: flex; flex-direction: column; gap: 8px; }
.lb-empty { color: var(--ink-3); font-size: 12px; padding: 6px 4px; }
.lb-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; color: var(--ink); font-size: 13px; }
.lb-card:hover { text-decoration: none; border-color: #B9C6D4; box-shadow: 0 1px 4px rgba(14,42,71,.08); }
.lb-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.lb-top b { font-size: 14px; }
.lb-money { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-line { color: var(--ink-2); font-size: 12px; }
.lb-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.lb-owner { color: var(--ink-2); }
.lb-next { margin-top: 6px; font-size: 12px; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line-2); }
.lb-next.late { color: var(--bad); }
.lb-touch { margin-top: 3px; font-size: 11px; color: var(--ink-3); }

.ld > * + * { margin-top: 12px; }
.ld-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.ld-sum .muted { margin-left: 4px; }
.ld .bk-banner { margin-bottom: 0; }
.ld-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ld-kv { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); }
.ld-quote { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 10px; align-items: start; }
.ld-quote-head { margin: 0 0 6px; }
.ld-task { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.ld-task:last-child { border-bottom: 0; }
.ld-task.closed b { font-weight: 400; color: var(--ink-2); }
.ld-done { margin-top: 8px; font-size: 13px; }
.ld-done summary { cursor: pointer; color: var(--info); }
.ld-msg { white-space: normal; max-width: 420px; }
.ld-msg-box { background: var(--line-2); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; font-size: 13px; white-space: pre-wrap; }
.nl-results { display: flex; flex-direction: column; gap: 4px; margin: -4px 0 10px; }
.nl-hit { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 9px; font: inherit; font-size: 13px; cursor: pointer; }
.nl-hit:hover { border-color: var(--night-3); }
.nl-picked { display: flex; justify-content: space-between; align-items: center; background: var(--info-bg); border-radius: var(--radius); padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }

.tl { list-style: none; margin: 0; padding: 0; }
.tl-day { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 10px 0 4px; border-bottom: 1px solid var(--line-2); }
.tl-day:first-child { padding-top: 0; }
.tl-item { display: grid; grid-template-columns: 44px 92px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.tl-time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-kind { font-size: 11px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .3px; padding-top: 2px; }
.tl-text { min-width: 0; overflow-wrap: anywhere; }
.tl-whatsapp .tl-kind { color: var(--ok); }
.tl-payment .tl-kind { color: var(--ok); }
.tl-lead .tl-kind, .tl-waiting-list .tl-kind { color: var(--agent); }
.tl-call .tl-kind { color: var(--info); }
.tl-mine { background: #FFF9E8; }

.gp-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip.gp-tag { background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 400; line-height: 16px; }
.gp-tabs { margin: 0 0 12px; }
.gp-consent { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.gp-consent:last-of-type { border-bottom: 0; }
.gp-yes { color: var(--ok); }
.gp-no { color: var(--bad); }
.gp-notes { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.gp-note { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font-size: 13px; }
.gp-note.pinned { border-color: #F0D48F; background: #FFFCF2; }
.gp-note-body { white-space: pre-wrap; }
.gp-note-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.chip.gp-pin { background: var(--warn-bg); color: var(--warn); }

.crm-ret { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 6px; padding: 6px 9px; background: #FFF9E8; border: 1px solid #F0DDA6; border-radius: var(--radius); font-size: 12px; color: var(--ink); }
.crm-ret-main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crm-ret-line { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.crm-ret-line .chip { margin-right: 4px; font-size: 11px; line-height: 16px; }
.rp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; margin-top: 16px; }
.rp-two > .card, .page-inner > div > .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .rp-two { grid-template-columns: 1fr; } .ld-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* === end crm === */

/* === activities (DEMO) === */
.chip.act-demo { margin-left: 10px; vertical-align: 3px; background: var(--warn-bg); color: var(--warn); border: 1px dashed #D9A43A; font-size: 11px; letter-spacing: .04em; }
.act-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.act-main, .act-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kpi.act-kpi-bad { border-color: #EBB8B3; background: var(--bad-bg); }
.kpi.act-kpi-bad .kpi-value, .kpi.act-kpi-bad .kpi-sub { color: var(--bad); }
.card-head .act-today { margin-left: 10px; font-weight: 400; }
/* board */
.act-board { padding: 6px 14px 4px; }
.act-brow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.act-brow:last-child { border-bottom: 0; }
.act-wrow { display: contents; }
.act-name { font-size: 13px; font-weight: 700; display: flex; flex-direction: column; justify-content: center; padding-right: 8px; min-width: 0; }
.act-name span { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.act-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.act-cell { width: 122px; min-height: 76px; border: 1px solid var(--line); border-radius: 3px; background: #FAFBFC; padding: 5px 7px; font: inherit; text-align: left; display: flex; flex-direction: column; justify-content: center; line-height: 1.25; color: var(--ink); }
button.act-cell { cursor: pointer; }
button.act-cell:hover { border-color: var(--night-3); }
.act-cell .nm { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-cell .tm { font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.act-cell b { font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.act-cell .u { font-size: 11px; font-weight: 400; color: var(--ink-2); }
.act-cell .st { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-cell.none { width: auto; min-height: 0; background: transparent; border: 1px dashed var(--line); color: var(--ink-3); font-size: 12px; padding: 8px 10px; }
.act-cell.free { background: var(--ok-bg); border-color: #BFE3CD; }
.act-cell.free .st { color: var(--ok); }
.act-cell.filling { background: var(--warn-bg); border-color: #EFD18A; }
.act-cell.filling .st { color: var(--warn); }
.act-cell.full { background: var(--night-3); border-color: var(--night-3); color: #fff; }
.act-cell.full .u, .act-cell.full .st, .act-cell.full .tm { color: #D5E1EE; }
.act-cell.closed { background: repeating-linear-gradient(135deg, #EEF0F3 0 6px, #E2E6EB 6px 12px); color: var(--ink-2); }
.act-cell.past { background: var(--muted-bg); color: var(--ink-3); border-color: var(--line-2); }
.act-cell.past b { color: var(--ink-2); }
.act-cell.out { box-shadow: inset 0 0 0 2px var(--info); }
.act-cell.out .st { color: var(--info); font-weight: 700; }
.act-cell.overdue { background: var(--bad-bg); border-color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); color: var(--bad); }
.act-cell.overdue .st, .act-cell.overdue .u, .act-cell.overdue .tm { color: var(--bad); font-weight: 700; }
.act-legend { flex-wrap: wrap; }
.act-legend i.free { background: var(--ok-bg); border-color: #BFE3CD; }
.act-legend i.filling { background: var(--warn-bg); border-color: #EFD18A; }
.act-legend i.full { background: var(--night-3); border-color: var(--night-3); }
.act-legend i.closed { background: repeating-linear-gradient(135deg, #EEF0F3 0 3px, #D5DAE0 3px 6px); }
.act-legend i.past { background: var(--muted-bg); }
.act-legend i.out { background: #fff; border: 2px solid var(--info); }
.act-legend i.overdue { background: var(--bad-bg); border: 2px solid var(--bad); }
/* chips */
.act-st-booked, .act-st-waiting { background: var(--info-bg); color: var(--info); }
.act-st-checked_in, .act-st-free, .act-st-match, .act-st-pay-paid { background: var(--ok-bg); color: var(--ok); }
.act-st-in_progress { background: var(--info); color: #fff; }
.act-st-finished, .act-st-past, .act-st-cancelled, .act-st-pay-nothing_due, .act-st-pay-room_reversed { background: var(--muted-bg); color: var(--ink-2); }
.act-st-no_show, .act-st-pay-refund_due { background: var(--bad-bg); color: var(--bad); }
.act-st-moved, .act-st-closed { background: #FCEBD9; color: #9C4A00; }
.act-st-filling, .act-st-offered, .act-st-pay-due, .act-st-pay-link_sent { background: var(--warn-bg); color: var(--warn); }
.act-st-full { background: var(--night-3); color: #fff; }
.act-st-pay-room { background: var(--agent-bg); color: var(--agent); }
.act-tc { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; line-height: 15px; padding: 0 5px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); border: 1px dashed #D9A43A; white-space: nowrap; vertical-align: 1px; }
/* departure drawer */
.act-bk { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.act-bk.overdue { border-color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }
.act-bk.gone { opacity: .7; }
.act-bk-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.act-bk-top b { margin-right: 4px; }
.act-bk-line { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.act-bk-line.note { color: var(--ink-3); font-style: italic; }
.act-live { font-size: 12.5px; font-weight: 700; color: var(--info); margin-top: 4px; }
.act-live.late { color: var(--bad); }
.act-bk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.act-sub { margin-top: 14px; }
.act-subhead { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.act-warn { background: #FCEBD9; color: #9C4A00; margin-bottom: 12px; }
.act-wl { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.act-wl-pos { font-weight: 700; color: var(--ink-3); text-align: center; }
.act-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.act-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.act-check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.act-check input { min-height: 0; margin: 0; width: 16px; height: 16px; padding: 0; }
/* next 7 days */
.act-week { display: grid; grid-template-columns: 110px repeat(7, minmax(44px, 1fr)); gap: 3px; padding: 10px 14px 12px; overflow-x: auto; }
.act-wday { text-align: center; font-size: 10.5px; color: var(--ink-3); line-height: 1.2; }
.act-wday b { display: block; font-size: 12px; color: var(--ink-2); }
.act-wday.today b, .act-wday.today span { color: var(--gold-dark); }
.act-wcell { height: 40px; border: 1px solid var(--line-2); border-radius: 3px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; background: #FAFBFC; }
.act-wcell b { font-size: 13px; }
.act-wcell span { font-size: 10.5px; color: var(--ink-3); }
.act-wcell.p1 { background: #EAF2FA; }
.act-wcell.p2 { background: #C9DCEF; }
.act-wcell.p3 { background: var(--night-3); color: #fff; }
.act-wcell.p3 span { color: #D5E1EE; }
.act-wcell.wx { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(156,74,0,.14) 6px 9px); }
.act-wcell.sel { outline: 2px solid var(--gold); outline-offset: 1px; }
.act-wcell:hover { border-color: var(--night-3); }
/* fleet and prices */
.act-fleet li { display: block; }
.act-fl-name { display: flex; flex-direction: column; margin-bottom: 4px; }
.act-fl { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; font-size: 12.5px; padding: 1px 0; }
.act-pk { border-top: 1px solid var(--line-2); }
.act-pk-head { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.act-pk-row > b { white-space: nowrap; }
.act-pk-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line-2); }
.act-pk-row:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.act-reset { margin-top: 4px; }
@media (max-width: 1100px) { .act-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .act .page-head { flex-wrap: wrap; align-items: flex-start; } .act .kpi-value { font-size: 18px; overflow-wrap: anywhere; } }
@media (max-width: 600px) { .act-wl { grid-template-columns: 22px minmax(0, 1fr); } .act-wl .act-inline { grid-column: 2; justify-content: flex-start; } }
.chip.act-cat { background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 400; line-height: 16px; font-size: 11px; }
.chip.act-demo.sm { font-size: 10px; margin-left: 6px; vertical-align: 1px; }
.act-setup-item { cursor: pointer; }
.act-setup-item:hover { background: #F6F9FC; }
.act-setup-item:focus { outline: 2px solid rgba(14,42,71,.25); outline-offset: -2px; }
.act-setup-item.paused { opacity: .65; }
.act-sec { font-size: 13px; font-weight: 700; color: var(--night); border-top: 1px solid var(--line); padding-top: 12px; margin: 6px 0 10px; }
.act-block { display: flex; margin: 0 0 10px; }
.act-slots { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.act-slot { display: grid; grid-template-columns: minmax(0, 1fr) 104px 76px auto; gap: 6px; align-items: center; }
.act-slot.head { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.act-slot input { min-width: 0; width: 100%; }
.act-slot-btns { display: inline-flex; gap: 2px; }
.act-wcell.off { cursor: default; background: transparent; border-style: dashed; }
@media (max-width: 700px) { .act-brow { grid-template-columns: minmax(0, 1fr); gap: 6px; } .act-cell { width: calc(50% - 2px); } .act-slot { grid-template-columns: minmax(0, 1fr) 96px; } .act-slot input[type=number] { grid-column: 1; } .act-slot-btns { grid-column: 2; } .act-slot.head span:nth-child(n+3) { display: none; } }
/* === end activities === */

/* === shell: sign in, PIN pad, who is working (part B1) === */
/* [hidden] must beat the display rules below and .shell's flex (hidden is only a UA rule). */
.shell[hidden], #gate[hidden], .gate-msg[hidden] { display: none !important; }
#gate { min-height: 100vh; background: var(--bg); }
.gate-page { min-height: 100vh; display: flex; flex-direction: column; }
.gate-head {
  background: var(--night); color: #fff; padding: 14px 24px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.gate-brand { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.gate-sub { font-size: 13px; color: #8FA4BC; }
.gate-body { width: 100%; max-width: 440px; margin: 48px auto 0; padding: 0 16px 40px; }
.gate-body h1 { font-size: 22px; margin-bottom: 14px; }
.gate-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; border-top: 3px solid var(--gold); }
.gate-field { display: block; margin-bottom: 14px; }
.gate-field span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.gate-field input {
  width: 100%; height: 44px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #C3CCD7; border-radius: var(--radius); background: #fff;
}
.gate-field input:focus { outline: 2px solid var(--night); outline-offset: 0; border-color: var(--night); }
.gate-submit { width: 100%; height: 44px; font-size: 15px; margin-top: 4px; }
.gate-msg { margin: 0 0 14px; padding: 9px 12px; border-radius: var(--radius); font-size: 14px; border-left: 3px solid; }
.gate-msg-error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.gate-msg-info { background: var(--info-bg); color: var(--info); border-color: var(--info); }

/* PIN pad: names first, then the keypad. Every target is 44px or more. */
.pad-body { max-width: 760px; }
.pad-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pad-name {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; min-height: 60px; padding: 8px 14px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--night); border-radius: var(--radius);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.pad-name:hover, .pad-name:focus-visible { border-color: var(--night); outline: none; background: #FAFBFC; }
.pad-name-text { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pad-name-note { font-size: 12px; color: var(--ink-3); }
.pad-name.st-locked { border-left-color: var(--bad); }
.pad-name.st-needs_setup, .pad-name.st-setup_code { border-left-color: var(--line); }
.pad-body:has(.pad-keys) { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.pad-who h1 { font-size: 24px; margin-bottom: 4px; overflow-wrap: anywhere; }
.pad-dots { display: flex; gap: 14px; margin: 18px 0; }
.pad-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--night); background: transparent; }
.pad-dot.on { background: var(--night); }
.pad-back { height: 44px; padding: 0 4px; font-size: 14px; }
.pad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad-keys.busy { opacity: .6; pointer-events: none; }
.pad-key {
  height: 64px; min-width: 64px; font: inherit; font-size: 24px; font-weight: 700; color: var(--night);
  background: #fff; border: 1px solid #C3CCD7; border-radius: var(--radius); cursor: pointer;
}
.pad-key:hover { background: #FAFBFC; border-color: var(--night); }
.pad-key:focus-visible { outline: 2px solid var(--night); outline-offset: 1px; }
.pad-key:active { background: var(--line-2); }
.pad-key-word { font-size: 14px; color: var(--ink-2); }
.pad-retry { height: 44px; }

/* Who is working, in the top bar, and the property name when there is nothing to switch to. */
.top-right { display: flex; align-items: center; gap: 10px; }
.top-person { display: flex; flex-direction: column; line-height: 1.2; padding-left: 10px; border-left: 1px solid var(--line); min-width: 0; }
.top-person-name { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.top-person-role { font-size: 12px; color: var(--ink-3); }
.prop-fixed { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--night); min-width: 0; }
.placeholder.refused { border-style: solid; border-left: 3px solid var(--warn); }

/* Phones: the sidebar becomes a strip above the page with the menu in one scrolling row (the row
   scrolls, the page does not); the top bar wraps; targets are 44px. */
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .side { width: auto; flex: none; height: auto; position: static; overflow: visible; }
  .brand { padding: 10px 16px; }
  .brand-tile { height: 44px; justify-content: flex-start; width: max-content; max-width: 100%; }
  #nav { display: flex; overflow-x: auto; padding: 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-group { display: flex; margin: 0; flex: none; }
  .nav-label { display: none; }
  .nav-item {
    display: flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
    border-left: 0; border-bottom: 3px solid transparent;
  }
  .nav-item.active { border-bottom-color: var(--gold); }
  .side-foot { display: none; }
  .top { height: auto; min-height: var(--top-h); flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .top-left { flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
  .top-date { display: none; }
  .prop-switch { height: 44px; max-width: calc(100vw - 32px); }
  .prop-opt { min-height: 44px; }
  .top-right { flex-wrap: wrap; width: 100%; }
  .top-person { order: -1; flex: 1; border-left: 0; padding-left: 0; }
  .top-right .btn { height: 44px; }
  #view { padding: 16px 16px 40px; }
  .gate-head { padding: 12px 16px; }
  .gate-body { margin-top: 24px; }
  .pad-body:has(.pad-keys) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pad-names { grid-template-columns: minmax(0, 1fr); }
  .pad-key { height: 60px; }
}
/* === end shell: sign in, PIN pad === */

/* === part B2: setup codes, my PIN, PIN management, activity log === */
.pad-prompt { margin: 0; }
.st-pin { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.st-pin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pin-status { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.st-pin-locked { color: var(--bad); font-weight: 700; }
.st-pin-needs_setup { color: var(--ink-3); }
.st-code { text-align: center; }
.st-code-digits { font: 700 40px/1.1 "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 8px; color: var(--night); margin: 8px 0 16px; padding-left: 8px; }
.st-code p { margin: 0 0 8px; }
.pin-input { width: 100%; height: 44px; font-size: 20px; letter-spacing: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.pin-input:focus { outline: 2px solid var(--night); outline-offset: 0; border-color: var(--night); }
.lg-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.lg-filters .field { margin: 0; min-width: 180px; }
.lg-clear { height: 34px; display: inline-flex; align-items: center; }
.lg-dayhead { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: none; margin: 16px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.lg-day { list-style: none; margin: 0; padding: 0; }
.lg-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.lg-row:last-child { border-bottom: 0; }
.lg-time { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-what p { margin: 0; overflow-wrap: anywhere; }
.lg-where { display: block; font-size: 12px; color: var(--ink-3); }
.lg-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.lg-foot:empty { display: none; }
@media (max-width: 760px) {
  .st-pin, .st-pin-actions { flex-direction: column; align-items: stretch; }
  .st-staff th:nth-child(3), .st-staff td:nth-child(3) { display: none; }
  .st-pin .btn { height: auto; min-height: 44px; white-space: normal; line-height: 1.2; padding: 6px 8px; }
  .lg-filters .field { flex: 1 1 100%; min-width: 0; }
  .lg-filters input, .lg-filters select { height: 44px; }
  .lg-clear, .lg-more { height: 44px; }
  .lg-row { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .modal-foot .btn { height: 44px; }
}
/* === end part B2 === */
.gate-mark { width: 28px; height: 28px; object-fit: contain; align-self: center; margin-right: -4px; }
