/* ==========================================================================
   Beith demo styles
   --------------------------------------------------------------------------
   Everything visual is driven by the tokens in :root below.
   To restyle Beith, change these values first; the rest of the file reads them.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #f3eee4;        /* app background, like unbleached paper */
  --paper-2: #e9e2d3;      /* recessed areas, tabs, inputs */
  --card: #fbf8f2;         /* raised surfaces */
  --line: #d8cfbd;         /* hairlines and borders */
  --line-strong: #bfb39c;

  /* Ink */
  --ink: #1f221e;          /* main text */
  --ink-2: #4a4c45;        /* secondary text */
  --ink-3: #7b7b70;        /* muted labels */
  --on-accent: #fbf8f2;

  /* Accent and status */
  --clay: #a5482b;         /* brand accent: Kinshasa red earth */
  --clay-deep: #7f3520;
  --clay-soft: #f0dccf;
  --leaf: #2f5743;         /* paid, approved, good */
  --leaf-soft: #dbe6db;
  --ochre: #a8741f;        /* waiting, fair, low balance */
  --ochre-soft: #f2e4c4;
  --rust: #9a2f22;         /* late, declined, needs repair */
  --rust-soft: #f1d6cf;
  --night: #24302b;        /* demo bar and dark panels */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-xxl: 2.4rem;

  /* Shape and rhythm */
  --radius: 6px;
  --radius-lg: 10px;
  --gap: 16px;
  --pad: 20px;
  --nav-h: 64px;
  --content-w: 760px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-xl); line-height: 1.15; font-variation-settings: "opsz" 72, "SOFT" 50; }
h2 { font-size: var(--fs-lg); font-variation-settings: "opsz" 36; }
h3 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  font-weight: 600;
}
.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ---------- Demo bar (not part of the product) ---------- */
.demobar {
  background: var(--night);
  color: #d9dcd3;
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  position: sticky;
  top: 0;
  z-index: 30;
  overflow-x: auto;
  white-space: nowrap;
}
.demobar b { color: #fff; font-weight: 600; letter-spacing: 0.06em; }
.demobar .seg { display: flex; border: 1px solid #4a574f; border-radius: 4px; overflow: hidden; }
.demobar .seg button {
  background: none; border: 0; color: #c9cec4; padding: 4px 9px; cursor: pointer; font-size: var(--fs-xs);
}
.demobar .seg button[aria-pressed="true"] { background: #e9e2d3; color: var(--night); font-weight: 600; }
.demobar .spacer { flex: 1; }
@media (max-width: 420px) { .demobar .viewas { display: none; } }
.demobar .link { background: none; border: 0; color: #c9cec4; text-decoration: underline; cursor: pointer; font-size: var(--fs-xs); }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: calc(100vh - 30px); }
.side { display: none; }
main {
  flex: 1;
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--pad) calc(var(--nav-h) + 40px);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 8px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.who { display: flex; align-items: center; gap: 10px; }
.lang {
  display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden;
}
.lang button { border: 0; background: none; padding: 3px 9px; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; color: var(--ink-3); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--clay-soft); color: var(--clay-deep);
  display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs);
}

.page-head { padding: 18px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.page-head .label { margin-bottom: 6px; display: block; }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; margin-bottom: 10px; }
.back svg { width: 16px; height: 16px; }

section { margin-bottom: 34px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.sec-head a { font-size: var(--fs-sm); color: var(--clay); text-decoration: none; font-weight: 600; }

/* ---------- Bottom nav (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: var(--nav-h);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--ink-3); font-size: 0.68rem; font-weight: 600; position: relative;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--clay);
}
.dot-count {
  position: absolute; top: 8px; left: calc(50% + 6px);
  background: var(--clay); color: var(--on-accent); font-size: 0.62rem; min-width: 16px; height: 16px; border-radius: 8px;
  display: grid; place-items: center; padding: 0 4px;
}

@media (min-width: 960px) {
  .tabbar { display: none; }
  .side {
    display: flex; flex-direction: column; width: 232px; flex-shrink: 0;
    border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 30px; height: calc(100vh - 30px);
  }
  .side .brand { padding: 0 8px 22px; }
  .side nav a {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius);
    text-decoration: none; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; position: relative;
  }
  .side nav a svg { width: 19px; height: 19px; }
  .side nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); font-weight: 600; }
  .side nav .dot-count { position: static; margin-left: auto; }
  .side .foot { margin-top: auto; font-size: var(--fs-xs); color: var(--ink-3); padding: 0 8px; }
  main { padding-bottom: 60px; }
  .topbar .brand { visibility: hidden; }
}

/* ---------- Figures (dashboard numbers) ---------- */
.figures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.figure { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.figure:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.figure:nth-child(even) { padding-left: 14px; }
.figure .v { font-family: var(--font-display); font-size: var(--fs-xl); font-variant-numeric: tabular-nums; line-height: 1.1; margin: 4px 0 2px; }
.figure .s { font-size: var(--fs-xs); color: var(--ink-3); }
@media (min-width: 620px) {
  .figures { grid-template-columns: repeat(4, 1fr); }
  .figure, .figure:nth-child(odd), .figure:nth-child(even) { padding: 14px 14px 16px; border-right: 1px solid var(--line); }
  .figure:first-child { padding-left: 0; }
  .figure:last-child { border-right: 0; }
}

/* ---------- Ledger rows (lists) ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
a.row:hover .row-title { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; }
.row-sub { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 1px; }
.row-end { text-align: right; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.row .thumb { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: var(--paper-2); }
.row .chev { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }

/* ---------- Status marks ---------- */
.mark { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.mark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mark.ok { color: var(--leaf); }
.mark.wait { color: var(--ochre); }
.mark.bad { color: var(--rust); }
.mark.neutral { color: var(--ink-3); }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--ink-2); padding: 1px 6px; border-radius: 3px;
}
.tag.clay { border-color: var(--clay); color: var(--clay); }

/* ---------- Notes / callouts ---------- */
.note {
  border-left: 3px solid var(--clay); background: var(--card); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0;
}
.note + .note { margin-top: 10px; }
.note.ochre { border-left-color: var(--ochre); }
.note.leaf { border-left-color: var(--leaf); }
.note .row-title { margin-bottom: 2px; }
.note .actions { margin-top: 12px; }

/* ---------- Panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.panel + .panel { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm);
  cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; }
.btn.clay { background: var(--clay); border-color: var(--clay); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding-left: 8px; padding-right: 8px; }
.btn.block { width: 100%; }
.btn.big { padding: 18px; font-size: var(--fs-md); border-radius: var(--radius-lg); }
.btn:disabled { opacity: 0.45; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Tabs (in-page) ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: 10px 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--clay); }

/* ---------- Photos ---------- */
.ph { position: relative; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .cap {
  position: absolute; left: 8px; bottom: 8px; background: rgba(31, 34, 30, 0.78); color: #f3eee4;
  font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.02em;
}
.ph.fallback { display: grid; place-items: center; color: var(--ink-3); }
.ph.fallback svg { width: 34%; max-width: 60px; opacity: 0.5; }
.hero-ph { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); margin-bottom: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery .ph { aspect-ratio: 1; cursor: zoom-in; }
.gallery .ph:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.strip .ph { aspect-ratio: 1; }

/* Before / after */
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--card); transform: translateX(-1px); }
.ba .handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--card); color: var(--ink); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; border: 1px solid var(--line-strong);
}
.ba .lbl { position: absolute; top: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(31,34,30,.75); color: #f3eee4; padding: 3px 7px; border-radius: 3px; }
.ba .lbl.l { left: 10px; } .ba .lbl.r { right: 10px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Property cards ---------- */
.props { display: grid; gap: 22px; }
@media (min-width: 620px) { .props { grid-template-columns: 1fr 1fr; } }
.prop { text-decoration: none; color: inherit; display: block; }
.prop .ph { aspect-ratio: 3 / 2; margin-bottom: 10px; }
.prop .meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.prop h2 { font-size: 1.15rem; }
.prop .facts { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 3px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -21px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--clay);
}
.tl-item .when { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tl-item .what { margin: 3px 0 10px; }
.tl-item .strip { margin-bottom: 8px; }
.progress { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--leaf); }

/* ---------- Comments ---------- */
.comments { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.comment { font-size: var(--fs-sm); margin-bottom: 8px; }
.comment b { font-weight: 600; }
.comment .t { color: var(--ink-3); font-size: var(--fs-xs); margin-left: 6px; }
.comment-form { display: flex; gap: 6px; margin-top: 6px; }
.comment-form input { flex: 1; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: var(--fs-md);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
textarea { min-height: 70px; resize: vertical; }
.inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.choice button { flex: 1; border: 0; background: var(--card); padding: 10px; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.choice button + button { border-left: 1px solid var(--line-strong); }
.choice button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Sheet (bottom drawer) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(31, 34, 30, 0.42); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--paper); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  border-radius: 14px 14px 0 0; padding: 10px var(--pad) 28px; animation: up .22s ease-out;
}
.sheet .grip { width: 38px; height: 4px; background: var(--line-strong); border-radius: 2px; margin: 0 auto 14px; }
.sheet h2 { margin-bottom: 14px; }
@media (min-width: 620px) { .scrim { align-items: center; } .sheet { border-radius: 14px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20, 22, 20, 0.94); z-index: 50; display: flex; flex-direction: column; }
.lightbox img { flex: 1; object-fit: contain; min-height: 0; width: 100%; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; color: #e9e2d3; padding: 14px 18px; font-size: var(--fs-sm); }
.lightbox button { background: none; border: 1px solid #5b625c; color: #e9e2d3; border-radius: var(--radius); padding: 6px 12px; cursor: pointer; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%); z-index: 60;
  background: var(--night); color: #f3eee4; padding: 10px 16px; border-radius: var(--radius); font-size: var(--fs-sm);
  max-width: calc(100% - 32px); animation: up .2s ease-out;
}

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .dow { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding: 6px 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; }
.cal .day { min-height: 58px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; font-size: var(--fs-xs); position: relative; background: var(--card); }
.cal .day.out { background: transparent; }
.cal .day .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal .day.booked { background: var(--clay-soft); }
.cal .day.booked .g { color: var(--clay-deep); font-weight: 700; font-size: 0.68rem; display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .day .turn { position: absolute; right: 4px; top: 4px; width: 14px; height: 14px; color: var(--leaf); }
.cal .day.today { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Condition report ---------- */
.room { border-top: 1px solid var(--line); padding: 16px 0; }
.room-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.rating { display: flex; gap: 4px; }
.rating span { font-size: 0.7rem; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-3); font-weight: 600; }
.rating span.on.good { background: var(--leaf-soft); border-color: var(--leaf); color: var(--leaf); }
.rating span.on.fair { background: var(--ochre-soft); border-color: var(--ochre); color: var(--ochre); }
.rating span.on.repair { background: var(--rust-soft); border-color: var(--rust); color: var(--rust); }

/* ---------- Review queue ---------- */
.review-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-item .ph { aspect-ratio: 1; }
.review-item.hidden-item { opacity: 0.4; }
.review-item input { padding: 7px 10px; font-size: var(--fs-sm); }
.review-item .meta { font-size: var(--fs-xs); color: var(--ink-3); margin: 6px 0; }

/* ---------- Statement ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ledger th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.ledger td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger td.amt, .ledger th.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
.ledger tr.sub td { font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.ledger tr.total td { font-family: var(--font-display); font-size: var(--fs-lg); border-bottom: 3px double var(--ink); border-top: 1px solid var(--ink); }
.ledger .conv { display: block; font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- Contractor link page ---------- */
.capture-zone { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 22px; text-align: center; background: var(--card); }
.capture-zone .btn { margin-top: 12px; }
.queue-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.queue-item .ph { width: 64px; height: 64px; flex-shrink: 0; }
.queue-item input { padding: 7px 10px; font-size: var(--fs-sm); }

/* ---------- Utilities ---------- */
.meter { display: flex; align-items: center; gap: 12px; }
.meter svg { width: 22px; height: 22px; color: var(--ink-2); flex-shrink: 0; }
.bar-mini { height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; margin-top: 6px; width: 120px; }
.bar-mini > i { display: block; height: 100%; }

.empty { padding: 26px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); font-size: var(--fs-sm); }
.hr { height: 1px; background: var(--line); margin: 20px 0; }
.split { display: grid; gap: 22px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Print (owner statement PDF) ---------- */
@media print {
  .demobar, .tabbar, .side, .topbar, .no-print { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
}
