/* ------------------------------------------------------------------
   Cazare — design tokens
   Ground: cool stone. Ink: deep slate. Accent cobalt = "what you're
   doing right now". Each accommodation owns a hue (--acc-h). Status is
   outline (dashed), never colour. Tags own their own hue.
------------------------------------------------------------------ */
:root {
  --ground: #fdfcfc;
  --surface: #ffffff;
  --surface-2: #f5f3f1;
  --ink: #000000;
  --ink-2: #44403b;
  --muted: #777169;
  --line: #e5e5e5;
  --line-2: #ebe8e4;
  --accent: #000000;
  --accent-ink: #000000;
  --accent-soft: #ebe8e4;
  --success: #55604b;
  --warn: #a8894a;
  --warn-soft: #f3ecdc;
  --danger: #a3524a;
  --danger-soft: #f4e4df;
  --acc-h: 215;
  --r-s: 8px; --r-m: 12px; --r-l: 18px;
  --shadow-1: none;
  --shadow-2: 0 4px 14px rgba(34,36,40,.06);
  --shadow-3: 0 18px 48px rgba(34,36,40,.14);
  --font-serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --people-w: 330px;
  --side-w: 420px;
  --topbar-h: 52px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: 160ms;
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) { :root { --t: 0ms; } * { animation: none !important; scroll-behavior: auto !important; } }

/* per-element accommodation colour (custom properties resolve where declared) */
:root, [style*="--acc-h"] { --acc: hsl(var(--acc-h) 26% 48%); --acc-soft: hsl(var(--acc-h) 30% 93%); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
h1, h2, .acc-title h3, .form h3, .dlg-head h3, .rec-acc-name, .auth-card h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; font-variant-numeric: lining-nums; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.spacer { flex: 1; }
[hidden] { display: none !important; }
.ic { width: 1em; height: 1em; flex: none; vertical-align: -0.15em; margin-right: .3em; opacity: .85; }
.btn .ic, .menu-body .ic { width: 15px; height: 15px; margin-right: 0; }
.menu-body .ic { margin-right: 8px; color: var(--ink-2); }
.btn-icon-sm .ic { margin: 0; width: 14px; height: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border-radius: 9999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: #d6d2cc; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #000; border-color: #000; }
.btn-primary:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-quiet { background: transparent; border-color: transparent; }
.btn-quiet:hover { background: rgba(23,32,43,.06); border-color: transparent; }
.btn-quiet.on { background: var(--ink); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger.btn-quiet { background: transparent; color: var(--danger); border-color: transparent; }
.btn-danger.btn-quiet:hover { background: var(--danger-soft); }
.btn-small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-icon { width: 34px; padding: 0; }
.btn-quiet.on { background: var(--ink); color: #fff; }
.btn-icon-sm { width: 24px; height: 24px; border: 0; background: transparent; border-radius: var(--r-s); color: var(--muted); }
.btn-icon-sm:hover { background: rgba(23,32,43,.06); color: var(--ink); }
.link { border: 0; background: transparent; color: var(--accent-ink); padding: 6px 0; font-weight: 500; min-height: 32px; }
.link:hover { text-decoration: underline; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.row-actions { display: flex; gap: 6px; align-items: center; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 18px; background: rgba(253,252,252,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
body { padding-top: var(--topbar-h); }
body.selecting { padding-top: calc(var(--topbar-h) + 42px); }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand h1 { font-size: 26px; font-weight: 400; letter-spacing: 0; }
.brand-sub { color: var(--ink-2); font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.save-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: rgba(23,32,43,.05); margin-right: 6px; transition: color var(--t), background var(--t); }
.save-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.save-pill[data-state="saving"]::before { background: var(--accent); animation: pulse 1s infinite; }
.save-pill[data-state="error"]::before { background: #fff; }
@keyframes pulse { 50% { opacity: .3; } }
.save-pill[data-state="saving"] { color: var(--accent-ink); background: var(--accent-soft); }
.save-pill[data-state="error"] { color: #fff; background: var(--danger); }

/* ---------- selection banner ---------- */
.selection-banner {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 29; height: 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 18px; background: var(--ink); color: #fff;
  animation: slide-down var(--t) var(--ease);
}
@keyframes slide-down { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.selection-text { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.selection-text strong { font-family: var(--font-display); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selection-text span { opacity: .85; font-size: 12.5px; }
.selection-actions { display: flex; gap: 6px; }
.selection-actions .btn { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; }
.selection-actions .btn:hover { background: rgba(255,255,255,.26); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: var(--people-w) 1fr; min-height: calc(100vh - var(--topbar-h)); align-items: start; }
.rooms { padding-top: 14px; }
body:has(#side-panel:not([hidden])) .layout { grid-template-columns: var(--people-w) 1fr var(--side-w); }
.people, .side { position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); display: flex; flex-direction: column; background: var(--surface); }
body.selecting .people, body.selecting .side { top: calc(var(--topbar-h) + 42px); height: calc(100vh - var(--topbar-h) - 42px); }
.people { border-right: 1px solid var(--line-2); }
.side { border-left: 1px solid var(--line-2); }
.rooms { padding: 12px 18px 120px; min-width: 0; }

/* ---------- people panel ---------- */
.people-head { padding: 12px 14px 8px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.people-head h2 { font-size: 17px; }
.counters { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--ink-2); }
.cnt { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; background: var(--surface-2); }
.cnt .ic { margin: 0; width: 13px; height: 13px; color: var(--muted); }
.cnt.ok .ic { color: var(--success); }
.cnt.todo { background: var(--warn-soft); color: #6f5a2c; }
.cnt.todo .ic { color: var(--warn); }
.counters b { font-family: var(--font-display); font-size: 14px; color: var(--ink); font-weight: 700; }
.counters i { font-style: normal; color: var(--muted); }
.people-tools { display: flex; gap: 6px; }
.people-tools .btn { flex: 1; }
.search { width: 100%; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); }
.search:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 3px 9px; font-size: 12px; color: var(--ink-2); transition: all var(--t) var(--ease); min-height: 24px; }
.filter:hover { border-color: #d6d2cc; }
.filter.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.verify { border-color: var(--warn); color: var(--warn); }
.filter.verify.on { background: var(--warn); color: #fff; }
.filter[class*="tag-h"] { border-color: transparent; background: hsl(var(--tag-h) 30% 92%); color: hsl(var(--tag-h) 25% 32%); }
.filter[class*="tag-h"].on { background: hsl(var(--tag-h) 22% 38%); color: #fff; }
.range { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.range .filter.day { border: 0; border-radius: 999px; min-width: 26px; padding: 2px 6px; }
.range .filter.day.on { background: var(--accent-soft); color: var(--accent-ink); border-radius: 0; }
.range .filter.day.on.from { border-radius: 999px 0 0 999px; }
.range .filter.day.on.to, .range .filter.day.on.from:not(:has(~ .on)) { border-radius: 999px; }
.range .filter.day.on.from { border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.range .filter.day.on.to { border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
.range .filter.day.from, .range .filter.day.to { background: var(--accent); color: #fff; }
.range-label { font-size: 11.5px; color: var(--muted); padding: 0 6px; }
.range .filter.clear { border: 0; padding: 2px 6px; color: var(--muted); }
.people-list { flex: 1; overflow-y: auto; padding: 6px 10px 24px; }
.people.drop-ok { background: var(--accent-soft); }
.group-title { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 4px 4px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.group-title span { font-size: 11px; color: var(--ink-2); background: rgba(23,32,43,.06); padding: 0 7px; border-radius: 999px; }

.party {
  display: flex; gap: 6px; align-items: flex-start;
  margin: 0 0 4px; padding: 6px 6px 6px 9px; border-radius: var(--r-m);
  background: var(--surface-2); border: 1px solid transparent;
  cursor: pointer; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.party:hover { border-color: #d6d2cc; box-shadow: var(--shadow-2); }
.party.selected { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateX(3px); }
.party.tentative { border: 1px dashed var(--line); background: transparent; }
.party.dragging { opacity: .45; }
.party-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.party-names { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 0 5px; line-height: 1.2; }
.party-names .amp { color: var(--muted); font-weight: 500; }
.party-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; font-size: 11.5px; color: var(--ink-2); }
.badge-size { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 11px; }
.tentative .badge-size { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink); }
.badge-day { display: inline-flex; align-items: center; }
.badge-verify { padding: 1px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 11px; }
.phone { color: var(--accent-ink); text-decoration: none; }
.phone:hover { text-decoration: underline; }
.kids { font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 500; border: 0; background: hsl(var(--tag-h) 30% 92%); color: hsl(var(--tag-h) 25% 32%); }
.tag b { font-weight: 700; }
button.tag { cursor: pointer; } button.tag.on { background: hsl(var(--tag-h) 22% 38%); color: #fff; }
.tag-h0 { --tag-h: 210; } .tag-h1 { --tag-h: 340; } .tag-h2 { --tag-h: 28; } .tag-h3 { --tag-h: 140; }
.tag-h4 { --tag-h: 270; } .tag-h5 { --tag-h: 50; } .tag-h6 { --tag-h: 175; } .tag-h7 { --tag-h: 5; }
.note { font-size: 11.5px; color: var(--muted); }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 11.5px; color: var(--ink-2); padding-top: 3px; border-top: 1px dotted var(--line); margin-top: 1px; }
.where-warn { color: var(--warn); display: inline-flex; align-items: center; flex-basis: 100%; }
.where i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; }
.where.warn { color: var(--warn); }
.party-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.status-toggle { border: 1.5px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 10.5px; font-weight: 500; transition: all var(--t) var(--ease); }
.tentative .status-toggle { background: transparent; color: var(--ink-2); border-style: dashed; border-color: var(--ink-2); }
.status-toggle:hover { transform: scale(1.04); }
.empty { padding: 24px 12px; text-align: center; color: var(--ink-2); }
.empty p { margin: 4px 0; }
.empty.small { padding: 10px; font-size: 13px; }
.empty.big { padding: 80px 20px; font-size: 16px; }

/* ---------- legend ---------- */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 11.5px; color: var(--muted); padding: 2px 2px 10px; }
.legend .bedframe { transform: scale(.85); transform-origin: left center; }
.legend .sep { width: 1px; height: 14px; background: var(--line); margin: 0 4px; }
.legend .seat.lg { width: 14px; height: 12px; }

/* ---------- accommodations ---------- */
.acc { margin-bottom: 26px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 4px 0 8px 12px; border-left: 3px solid var(--acc); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.acc-title h3 { font-size: 23px; font-weight: 400; display: flex; align-items: center; gap: 8px; }
.acc-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 11.5px; flex: none; }
.acc-address { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 1px 0; color: var(--ink-2); font-size: 12.5px; text-align: left; }
.acc-address::before { content: ""; width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--acc); flex: none; }
.acc-address:hover { color: var(--acc); text-decoration: underline; }
.acc-address em { color: var(--warn); font-style: normal; }
.acc-stats { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.acc-stats > span { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.acc-stats > span.acc-real { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.acc-occ b { font-family: var(--font-display); font-size: 17px; color: var(--ink); font-weight: 700; margin-right: 1px; }
.acc-real { color: var(--acc); font-weight: 600; }
.acc-cost i { font-style: normal; color: var(--muted); }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: 38px; z-index: 20; min-width: 190px; padding: 6px; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-2); display: flex; flex-direction: column; }
.menu-body button { display: flex; align-items: center; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: var(--r-s); min-height: 36px; }
.menu-body button:hover { background: var(--surface-2); }
.menu-body button.danger { color: var(--danger); }

.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 8px; }

/* ---------- room card ---------- */
.room {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 9px 10px; border-radius: var(--r-l); background: var(--surface-2);
  border: 1px solid transparent; text-align: left;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), opacity var(--t) var(--ease);
  cursor: pointer;
}
.room:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.room.partial { background: #f0f2ec; border-color: #c4cdb8; border-style: dashed; }
.room.full { background: #e6ebe0; border-color: #93a088; }
.room.full .seat.full { background: var(--success); border-color: var(--success); }
.free-pill, .full-pill { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.free-pill { background: #fff; color: var(--success); border: 1.5px dashed #93a088; }
.free-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 5px; }
.full-pill { background: var(--success); color: #fff; }
.room-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.room-photos { display: inline-flex; align-items: center; color: var(--muted); margin-left: 4px; }
.room.can-take { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); cursor: default; }
.room.cannot-take { opacity: .5; cursor: default; }
.room.drop-ok { border-color: var(--success); box-shadow: 0 0 0 3px #e6ebe0; transform: scale(1.02); }
.room.drop-bad { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.room.shake { animation: shake .35s var(--ease); }
.room.add-room { align-items: center; justify-content: center; border-style: dashed; background: transparent; color: var(--ink-2); font-weight: 500; min-height: 90px; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.room-top { display: flex; gap: 8px; align-items: flex-start; }
.room-thumb { width: 36px; height: 36px; border-radius: var(--r-s); object-fit: cover; flex: none; background: var(--surface-2); }
.room-title { flex: 1; min-width: 0; }
.room-title h4 { font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-price { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.room-dates, .adv, .room-warn { display: inline-flex; align-items: center; }

/* beds — frames show the bed type, seats show occupancy */
.beds { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-end; }
.bedframe { display: inline-flex; gap: 3px; padding: 4px 3px 3px; border: 1.5px solid var(--ink-2); border-top-width: 4px; border-radius: 4px 4px 7px 7px; background: var(--surface); }
.bedframe.single { border-color: var(--ink-2); }
.bedframe.double { border-color: var(--ink); }
.bedframe.sofa { border-radius: 10px; border-top-width: 1.5px; border-style: solid; border-color: var(--muted); padding: 3px 7px; position: relative; }
.bedframe.sofa::before, .bedframe.sofa::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--muted); opacity: .6; }
.bedframe.sofa::before { left: 1px; } .bedframe.sofa::after { right: 1px; }
.bedframe.plain { border: 0; padding: 0; }
.seat { position: relative; display: block; width: 12px; height: 15px; border-radius: 3px 3px 4px 4px; border: 1.5px solid var(--ink); background: var(--ink); transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }
.seat::before { content: ""; position: absolute; left: 2px; top: 2px; right: 2px; height: 3px; border-radius: 1.5px; background: rgba(255,255,255,.8); }
.seat.tentative { background: transparent; border-style: dashed; }
.seat.tentative::before { background: var(--ink); opacity: .5; }
.seat.free { background: transparent; border-color: var(--line); }
.seat.free::before { background: var(--line); }
.nobed { font-size: 11.5px; color: var(--ink-2); margin-top: -2px; }

.room-occupants { display: flex; flex-wrap: wrap; gap: 5px; min-height: 26px; }
.room-empty { font-size: 11.5px; color: var(--muted); align-self: center; }
.chip {
  display: inline-flex; flex-direction: column; align-items: stretch; gap: 2px; max-width: 100%; min-width: 0; flex: 1 1 auto;
  padding: 4px 5px 4px 9px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line-2); box-shadow: 0 0 0 0 transparent; cursor: grab; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  animation: pop var(--t) var(--ease);
}
@keyframes pop { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
.chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.chip.tentative { background: transparent; border-style: dashed; border-color: var(--ink-2); box-shadow: none; }
.chip.selected { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.chip.warn { border-color: var(--warn); }
.chip.static { cursor: default; }
.chip-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.chip-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; line-height: 1.25; }
.chip-row.sub { justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.chip.static { flex: 0 1 auto; }
.chip-name { white-space: normal; overflow-wrap: anywhere; }
.chip-kids { font-size: 10.5px; font-weight: 400; color: var(--ink-2); display: inline-flex; align-items: center; }
.chip-warn { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); flex: none; }
.chip-warn .ic { margin: 0; width: 12px; height: 12px; }
.chip-x { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: none; align-self: flex-start; }
.chip-x .ic { margin: 0; width: 11px; height: 11px; }
.chip.warn { border-color: #e3d6b8; }
.chip-x:hover { background: var(--danger); color: #fff; }
.room-foot { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); align-items: center; padding-top: 6px; border-top: 1px solid rgba(23,32,43,.06); }
.room-dates.special { color: var(--accent-ink); font-weight: 600; }
.adv { color: var(--muted); }
.btn-take { margin-top: 2px; }
.btn-take:disabled { background: transparent; border-color: var(--line); color: var(--muted); }

.removed { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-m); background: var(--surface-2); border: 1px dashed var(--line); }
.removed summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; }
.removed summary span { color: var(--muted); margin-left: 6px; }
.removed ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.removed li { display: flex; align-items: center; gap: 12px; }
.removed li small { color: var(--muted); flex: 1; }

/* ---------- side panel ---------- */
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--r-m); }
.seg-btn { border: 0; background: transparent; padding: 5px 14px; border-radius: 8px; font-weight: 500; color: var(--ink-2); }
.seg-btn.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.side-body { flex: 1; overflow-y: auto; min-height: 0; }
.side-tab { min-height: 100%; display: flex; flex-direction: column; }
.map { flex: 1; min-height: 300px; background: var(--surface-2); }
.map-offline { padding: 24px; color: var(--muted); text-align: center; }
.map-list { border-top: 1px solid var(--line-2); flex: none; }
.map-item { display: grid; grid-template-columns: 24px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 5px 12px; }
.map-item:hover { background: var(--acc-soft); }
.map-item .acc-num { grid-row: span 2; width: 22px; height: 22px; }
.map-name { font-weight: 600; font-size: 13px; }
.map-occ { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--ink-2); grid-row: span 2; }
.map-addr { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-wrap { background: transparent; border: 0; }
.pin { cursor: default; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--acc); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; box-shadow: var(--shadow-2); border: 2px solid #fff; }
.pin > * { transform: rotate(45deg); }
.pin.hot { animation: bounce .6s var(--ease); box-shadow: 0 0 0 4px hsl(var(--acc-h) 70% 85%), var(--shadow-2); }
@keyframes bounce { 30% { transform: rotate(-45deg) translate(-6px, -6px); } }
.leaflet-container { font-family: var(--font-body); }
.popup b { font-family: var(--font-display); font-size: 14px; }
.popup a { display: inline-block; margin-top: 6px; }

/* summary */
.sum-block { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.sum-block h4 .count { color: var(--muted); font-weight: 500; }
.sum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sum-grid.two { grid-template-columns: 1fr 1fr; }
.stat { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 7px 9px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.stat .ic { grid-row: span 2; width: 22px; height: 22px; padding: 4px; margin: 0; border-radius: 6px; background: hsl(var(--h) 60% 94%); color: hsl(var(--h) 55% 38%); opacity: 1; }
.stat b { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; color: var(--ink); }
.stat b small { font-size: 11px; font-weight: 500; color: var(--muted); }
.stat span { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.stat.bad b { color: var(--danger); }
.sum-block { padding: 10px 14px; }
.sum-block h4 { display: flex; align-items: center; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.sum-block h4 .ic { color: var(--muted); width: 13px; height: 13px; }
.warn-list { font-size: 12px; }
.xtags { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.xt { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.xt .ic { margin-right: 3px; width: 11px; height: 11px; }
.xt.paid { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.xt.ext { background: var(--warn-soft); color: #6f5a2c; border-color: #e3d6b8; }
.xt.pay { background: #fff; color: #6f5a2c; border-color: #e3d6b8; }
.xt.todo { background: var(--warn-soft); color: #6f5a2c; border-color: #a8894a; font-weight: 600; }
.xt.ok { background: #eaeee5; color: #55604b; border-color: #cdd5c3; }
.xt.us { background: #e6e9ee; color: #45526b; border-color: #c9d0da; }
.pill-issue.us { border-color: #c9d0da; background: #e6e9ee; color: #45526b; }
.issue-card .seg { align-self: flex-start; }
.xt.big { font-size: 11.5px; margin-left: 6px; font-family: var(--font-body); }
.warn-list { margin: 0; padding-left: 18px; color: var(--warn); font-size: 12.5px; }
.warn-list li { margin-bottom: 4px; }
.rec-acc { margin: 6px 0 12px; padding-left: 10px; border-left: 3px solid var(--acc); }
.rec-acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.rec-acc-name { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.rec-acc-name .acc-num { width: 18px; height: 18px; font-size: 10.5px; }
.rec-acc-addr { font-size: 11.5px; color: var(--muted); }
.rec-room { display: grid; grid-template-columns: 105px 1fr; gap: 8px; font-size: 12px; padding: 4px 0; border-top: 1px dotted var(--line-2); }
.rec-room-label { color: var(--ink-2); display: flex; flex-direction: column; }
.rec-room-label small { color: var(--muted); font-size: 11px; }
.rec-people { display: flex; flex-direction: column; gap: 4px; }
.rec-person { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.rec-person.tentative .rec-name { color: var(--muted); }
.rec-name { font-weight: 600; }
.rec-name em { font-style: normal; font-weight: 400; color: var(--muted); }
.rec-kids, .rec-when { font-size: 11.5px; color: var(--ink-2); }
.rec-person a { color: var(--accent-ink); text-decoration: none; font-size: 12px; display: inline-flex; align-items: center; }
.rec-when { display: inline-flex; align-items: center; }

/* ---------- dialogs ---------- */
.dialog { border: 1px solid var(--line-2); padding: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.dialog-wide { width: min(860px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(34,36,40,.35); backdrop-filter: blur(4px); }
.dialog[open] { animation: dialog-in var(--t) var(--ease); }
@keyframes dialog-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.form { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 11px; }
.form h3 { font-size: 19px; font-weight: 700; }
.form label, .form .field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.form input, .form textarea, .form select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 400; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px dashed var(--line); border-radius: var(--r-m); font-weight: 400; color: var(--ink); }
.switch input { width: auto; min-height: 0; accent-color: var(--ink); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip-day { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; min-height: 32px; }
.chip-day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.children-block { display: flex; flex-direction: column; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--surface-2); font-size: 20px; color: var(--ink); }
.stepper button:hover { background: var(--line-2); }
.stepper input { width: 52px; min-height: 44px; border: 0; border-radius: 0; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-error { padding: 8px 12px; border-radius: var(--r-s); background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 4px; }
.import-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.import-preview { max-height: 40vh; overflow: auto; }
.import-summary { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-m); }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; white-space: nowrap; }
th { font-weight: 600; color: var(--ink-2); background: var(--surface-2); position: sticky; top: 0; }
td:last-child { white-space: normal; min-width: 180px; }
.row-err td { background: #f9f1ef; }
.row-warn td { background: #f8f5ee; }
.t-err { color: var(--danger); } .t-warn { color: var(--warn); }
.room-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.acc-crumb { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; }
.acc-crumb i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); }
.room-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.room-facts div { display: flex; flex-direction: column; }
.room-facts dt { font-size: 12px; color: var(--muted); }
.room-facts dd { margin: 0; font-weight: 500; }
.room-dialog-occ { display: flex; gap: 6px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { position: relative; margin: 0; aspect-ratio: 4/3; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.photo-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(23,32,43,.7); color: #fff; font-size: 11px; opacity: 0; transition: opacity var(--t); }
.photo:hover .photo-x, .photo:focus-within .photo-x { opacity: 1; }
@media (pointer: coarse) { .photo-x { opacity: 1; } }
.photo.add { display: grid; place-items: center; border: 2px dashed var(--line); background: transparent; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.photo.add:hover { border-color: var(--accent); color: var(--accent-ink); }
.photo.add input { display: none; }

/* ---------- issues (stay extensions) ---------- */
.pill-issue { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: 999px; border: 1px solid #e3d6b8; background: var(--warn-soft); color: #6f5a2c; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.pill-issue:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.pill-issue .ic { margin: 0; width: 12px; height: 12px; }
.pill-issue.ok { border-color: #cdd5c3; background: #eaeee5; color: #55604b; }
.chip .pill-issue { margin: 0; }
.issue-box { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--warn-soft); border: 1px solid #e3d6b8; font-size: 13px; }
.issue-box.ok { background: #eaeee5; border-color: #cdd5c3; }
.issue-box > .ic { width: 18px; height: 18px; margin: 1px 0 0; color: var(--warn); flex: none; }
.issue-box.ok > .ic { color: var(--success); }
.issue-box > div { flex: 1; }
.issue-box .muted { font-size: 12px; margin-top: 2px; }
.issue-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line-2); }
.issue-card p { margin: 0; line-height: 1.5; }
.issue-action { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; color: var(--ink); }
.issue-action .ic { margin-top: 3px; }
.form .check, .check { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; color: var(--ink); min-height: 40px; padding: 0 10px; border: 1px dashed var(--line); border-radius: var(--r-m); background: #fff; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--success); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dlg-head h3 { font-size: 19px; }
.dlg-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.pill-status { padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.pill-status.tentative { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--ink-2); }
.pill-where { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); font-weight: 600; font-size: 11.5px; }
.pill-where i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: 11.5px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.facts dd a { text-decoration: none; display: inline-flex; align-items: center; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.where-text { min-width: 0; }
.chip.static[data-person] { cursor: pointer; }

/* ---------- links dialog ---------- */
.links-h { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 6px; }
.links-list { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow: auto; }
.link-row { display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--r-s); background: var(--surface-2); font-size: 12.5px; }
.link-row:has(.acc-num) { grid-template-columns: auto 1fr 1fr auto auto; }
.link-row .acc-num { width: 20px; height: 20px; font-size: 11px; }
.link-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; line-height: 1.2; }
.link-where { font-weight: 400; font-size: 11px; color: var(--muted); }
.link-url { color: var(--muted); text-decoration: none; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-url:hover { color: var(--accent-ink); text-decoration: underline; }
.acc-phone { display: inline-flex; align-items: center; font-size: 12.5px; color: var(--ink-2); text-decoration: none; margin-left: 10px; }
.acc-phone:hover { color: var(--accent-ink); }

/* ---------- password gate ---------- */
.auth-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--ground); padding: 20px; }
.auth-card { width: min(360px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-3); }
.auth-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.auth-card p { margin: 0; }
.auth-card input { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); font-size: 15px; }
.auth-card input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-card .btn { min-height: 42px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 9999px; background: var(--ink); color: #fff; font-size: 13.5px; box-shadow: var(--shadow-3); opacity: 0; transform: translateY(10px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); pointer-events: auto; max-width: min(560px, calc(100vw - 32px)); }
.toast.in { opacity: 1; transform: none; }
.toast.warn { background: var(--warn); }
.toast-action { border: 0; background: rgba(255,255,255,.18); color: #fff; padding: 5px 10px; border-radius: var(--r-s); font-weight: 600; }
.toast-action:hover { background: rgba(255,255,255,.3); }

/* ---------- tab bar (phone) ---------- */
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { :root { --side-w: 370px; --people-w: 300px; } }
@media (max-width: 900px) {
  :root { --topbar-h: 50px; }
  .brand-sub { display: none; }
  .topbar-actions .btn { display: none; }
  .layout, body:has(#side-panel:not([hidden])) .layout { display: block; }
  .people, .side { position: static; height: auto; min-height: calc(100vh - var(--topbar-h) - 64px); border: 0; }
  .people, .rooms, .side { display: none; }
  body[data-view="people"] .people { display: flex; }
  body[data-view="rooms"] .rooms { display: block; padding: 10px 12px 100px; }
  body[data-view="map"] .side, body[data-view="summary"] .side { display: flex; }
  .side-head .btn-icon { display: none; }
  .map { min-height: 52vh; }
  .people-list { overflow: visible; padding-bottom: 90px; }
  .side { padding-bottom: 80px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(253,252,252,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button { border: 0; background: transparent; padding: 10px 4px; border-radius: var(--r-m); font-weight: 500; color: var(--ink-2); min-height: 44px; }
  .tabbar button.on { background: var(--ink); color: #fff; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
  .acc-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .acc-stats { flex-wrap: wrap; gap: 6px 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .room-facts { grid-template-columns: 1fr 1fr; }
  .selection-banner { padding: 6px 14px; height: auto; }
  .selection-text { flex-direction: column; gap: 0; }
  body.selecting { padding-top: calc(var(--topbar-h) + 52px); }
  .party, .chip, .btn, .filter, .status-toggle { -webkit-tap-highlight-color: transparent; }
  .chip { padding: 5px 6px 5px 11px; }
  .chip-x { width: 26px; height: 26px; }
}

/* ---------- print: reception list, one accommodation per page ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12pt; }
  .topbar, .people, .rooms, .tabbar, .toasts, .selection-banner, .side-head, #map-tab, .btn, .sum-block:not(.reception), .no-print { display: none !important; }
  .layout { display: block; }
  .side { position: static; height: auto; display: block !important; border: 0; }
  #summary-tab, #side-panel { display: block !important; }
  .sum-block.reception { padding: 0; border: 0; }
  .sum-head h4 { font-size: 16pt; margin-bottom: 8pt; }
  .rec-acc { break-after: page; border-left-width: 6pt; padding-left: 10pt; margin: 0 0 10pt; }
  .rec-acc:last-of-type { break-after: auto; }
  .rec-acc-name { font-size: 18pt; }
  .rec-acc-addr { font-size: 11pt; color: #444; }
  .rec-room { grid-template-columns: 150pt 1fr; padding: 6pt 0; border-top: 1px solid #ccc; font-size: 12pt; break-inside: avoid; }
  .rec-person a { color: #000; }
  .xt { border: 1px solid #999 !important; color: #000 !important; background: #fff !important; font-size: 10.5pt; }
  .xt.todo, .xt.ext { background: #fff3d6 !important; border-color: #a8894a !important; }
  .check { display: none; }
  body[data-print-acc] .rec-acc:not(.print-target) { display: none !important; }
  body[data-print-acc] .rec-acc { break-after: auto; }
}
