/* Instrument Sans (SIL Open Font License, see static/fonts/OFL-Instrument-Sans.txt) — served from this site,
   so no visitor data goes to a font CDN. Variable font: one file per script covers weights 400–700. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* RealtyKeep — clean light & dark theme */

/* ---------- Tokens ---------- */
:root {
  --canvas: #ffffff;
  --nav-bg: #ffffff;
  --nav-active: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --hover: #f1f3f6;
  --ink: #151a22;
  --ink-2: #3b4350;
  --muted: #6b7380;
  --line: #e3e6eb;
  --line-2: #eef0f3;
  --accent: #1a9a5f;
  --accent-ink: #137a4a;
  --accent-soft: #e9f6ef;
  --accent-line: #bfe5cf;
  --bar-total: #e6f4ec;
  --sel-bg: var(--accent-soft);
  --sel-line: var(--accent-line);
  --on-accent: #ffffff;
  --good: #1d7a4f;  --good-soft: #e6f4ec;
  --warn: #9a5b12;  --warn-soft: #fbf0e1;
  --teal: #20706a;  --teal-soft: #e2f2f0;
  --violet: #5b4a9e; --violet-soft: #efecf8;
  --danger: #b4383a; --danger-soft: #fbeaea;
  --series-1: #1a9a5f;
  --series-2: #4a3aa7;
  --blue: #2b5c9e;  --blue-soft: #eaf0fa;
  --grid: #e9ecf0;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-pop: 0 16px 48px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .06);
  --num-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar-w: 244px;
  --blade-w: 296px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --canvas: #000000; --nav-bg: #000000; --nav-active: #1a1a1a; --surface: #000000; --surface-2: #0a0a0a; --hover: #151515;
    --ink: #f2f2f2; --ink-2: #c8c8c8; --muted: #8c8c8c; --line: #262626; --line-2: #1a1a1a;
    --accent: #3dbb82; --accent-ink: #7fd8ad; --accent-soft: rgba(61, 187, 130, .12); --accent-line: rgba(61, 187, 130, .30);
    --bar-total: rgba(255, 255, 255, .08); --on-accent: #06120c; --sel-bg: #1a1a1a; --sel-line: #2e2e2e;
    --blue: #86abee; --blue-soft: rgba(134, 171, 238, .13);
    --good: #55c28c; --good-soft: rgba(85, 194, 140, .13); --warn: #e2a85a; --warn-soft: rgba(226, 168, 90, .13);
    --teal: #5cc4bb; --teal-soft: rgba(92, 196, 187, .13); --violet: #ab9df2; --violet-soft: rgba(171, 157, 242, .14);
    --danger: #f07a7b; --danger-soft: rgba(240, 122, 123, .13);
    --series-1: #3dbb82; --series-2: #9085e9; --grid: #1f1f1f;
    --shadow-pop: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #000000; --nav-bg: #000000; --nav-active: #1a1a1a; --surface: #000000; --surface-2: #0a0a0a; --hover: #151515;
  --ink: #f2f2f2; --ink-2: #c8c8c8; --muted: #8c8c8c; --line: #262626; --line-2: #1a1a1a;
  --accent: #3dbb82; --accent-ink: #7fd8ad; --accent-soft: rgba(61, 187, 130, .12); --accent-line: rgba(61, 187, 130, .30);
  --bar-total: rgba(255, 255, 255, .08); --on-accent: #06120c; --sel-bg: #1a1a1a; --sel-line: #2e2e2e;
  --blue: #86abee; --blue-soft: rgba(134, 171, 238, .13);
  --good: #55c28c; --good-soft: rgba(85, 194, 140, .13); --warn: #e2a85a; --warn-soft: rgba(226, 168, 90, .13);
  --teal: #5cc4bb; --teal-soft: rgba(92, 196, 187, .13); --violet: #ab9df2; --violet-soft: rgba(171, 157, 242, .14);
  --danger: #f07a7b; --danger-soft: rgba(240, 122, 123, .13);
  --series-1: #3dbb82; --series-2: #9085e9; --grid: #1f1f1f;
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 15px; }
h3 { font-size: 15px; }
.h2 { font-size: 16px; margin-bottom: 12px; }
p { margin: 0; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.prewrap { white-space: pre-wrap; }
.pad { padding: 20px; }
.pad-x { padding-left: 20px; padding-right: 20px; }
.pad-y { padding-top: 14px; padding-bottom: 16px; }
.pos { color: var(--good); }
.neg { color: var(--danger); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.shell.has-blade { grid-template-columns: var(--sidebar-w) var(--blade-w) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 12px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--nav-bg); }
.side-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 2px 4px 14px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16.5px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.bell { position: relative; }
.bell.on { color: var(--accent); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font: 600 10px/16px var(--font); font-style: normal; text-align: center; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a, .nav-empty { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 13.5px; border: 1px solid transparent; }
.nav a .ic { color: var(--muted); }
.nav a:hover, .nav a.on { background: var(--nav-active); color: var(--ink); text-decoration: none; }
.nav a:hover .ic, .nav a.on .ic { color: var(--ink); }
.nav-section { margin-top: 18px; }
.nav-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.nav-empty { width: 100%; background: none; font: inherit; color: var(--muted); cursor: pointer; border: 1px dashed var(--line); }
.nav-empty:hover { color: var(--accent); border-color: var(--accent-line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); display: inline-block; flex: none; }
.side-settings { margin-top: auto; padding-bottom: 8px; }

.avatar { line-height: 1; text-align: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 12.5px; flex: none; }
.main { padding: 28px 36px 64px; min-width: 0; max-width: 1400px; width: 100%; margin-inline: auto; }
.mobile-bar { display: none; }
.scrim { display: none; }

/* ---------- Blade ---------- */
.blade { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px 20px; }
.blade-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 12px 8px; min-height: 42px; }
.blade-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.blade-title h2 { font-size: 16px; }
.blade-label { padding: 14px 10px 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.blade-list { display: flex; flex-direction: column; gap: 2px; }
.blade-item { display: flex; align-items: flex-start; gap: 11px; padding: 10px; border-radius: 9px; color: var(--ink); border: 1px solid transparent; }
.blade-item:hover { background: var(--hover); text-decoration: none; }
.blade-item.on { background: var(--sel-bg); border-color: var(--sel-line); }
.blade-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--hover); color: var(--ink-2); flex: none; }
.blade-item.on .blade-ic { background: var(--accent); color: var(--on-accent); }
.blade-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.blade-text b { font-weight: 600; font-size: 13.5px; }
.blade-text small { color: var(--muted); font-size: 12px; }
.blade-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.blade-meta span:first-child { min-width: 58px; }
.mini-occ { flex: 1; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mini-occ i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.blade-search { display: flex; align-items: center; gap: 7px; margin: 10px 4px 0; padding: 0 10px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); }
.blade-search input { border: 0; min-height: 0; padding: 0; box-shadow: none !important; background: transparent; }
.blade-back { display: none; }
.main.loading { opacity: .5; transition: opacity .15s .05s; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.crumb { margin: 0 0 6px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.lede { margin-top: 6px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 72ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.spread { justify-content: space-between; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 12px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger-ghost { background: transparent; color: var(--danger); border-color: transparent; }
.btn.danger-ghost:hover { background: var(--danger-soft); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 42px; font-size: 14.5px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--accent-line); color: var(--accent); text-decoration: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Cards & stats ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; margin-bottom: 16px; }
/* a hint, legend or other side-padded block that ends a card keeps the same breathing room as the card's top */
.card > .pad-x:last-child, .card > .chart-legend:last-child, .card > .hint:last-child { padding-bottom: 18px; }
.card > .hint:last-child:not(.pad-x) { padding-left: 20px; padding-right: 20px; }
/* … and one that comes right under the card header gets the same room above it */
.card > .card-head + .pad-x:not(.pad):not(.table-wrap), .card > .card-head + .hint { padding-top: 14px; }
.card > .card-head + .hint + .pad, .card > .card-head + .pad-x + .pad { padding-top: 12px; }
.card > .hint.pad-x + .table-wrap { margin-top: 8px; }
.two-col > .card, .stack > .card, .settings > .card, .home-grid > .card { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; min-height: 60px;
  box-sizing: border-box; border-bottom: 1px solid var(--line-2); }
/* every header the same height: buttons, pickers and selects sit inside it without adding height */
.card-head .chart-tools { padding: 0; }
.card-head .range-group, .card-head .btn, .card-head select { margin-top: 0; margin-bottom: 0; }
.card-head h2 { display: flex; align-items: center; gap: 9px; }
.card-head h2 small { font-weight: 400; font-size: 12.5px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: 13px; }
.head-meta { display: flex; align-items: center; gap: 10px; }
.table-wrap { overflow-x: auto; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.stat { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line-2); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat > span { font-size: 12.5px; color: var(--muted); }
.stat > b { font-size: 25px; font-weight: 600; letter-spacing: 0; white-space: nowrap; line-height: 1.15; }
.stat > small { color: var(--muted); font-size: 12px; }
.stat .occ { margin-top: 6px; }
.has-blade .stat > b { font-size: 22px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.kpi-grid > div { background: var(--surface); box-shadow: 1px 0 0 var(--line-2), 0 1px 0 var(--line-2); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi-grid span { font-size: 12px; color: var(--muted); }
.kpi-grid b { font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.kpi-grid.in-card { border: 0; border-radius: 0; margin: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.two-col.even { grid-template-columns: 1fr 1fr; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
/* cards in the same row line up: equal height, top-aligned content */
.two-col.even, .three-col { align-items: stretch; }
.two-col > .card, .three-col > .card { margin-bottom: 0; display: flex; flex-direction: column; }
.three-col .card-foot { margin-top: auto; }
.has-blade .two-col:not(.even) { grid-template-columns: 1fr; }
.section-block { margin: 8px 0 24px; }

.occ { display: flex; align-items: center; gap: 8px; min-width: 104px; }
.occ-track { flex: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.occ-fill { height: 100%; background: var(--accent); border-radius: 99px; }
.occ span { font-size: 12px; color: var(--muted); min-width: 34px; text-align: right; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 600; background: var(--surface-2); }
.table .r { text-align: right; white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table.compact td { padding: 7px 12px; font-size: 13px; }
.link-row { cursor: pointer; }
.link-row:hover td, .table.units tbody tr:hover td { background: var(--surface-2); }
.row-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.row-actions { white-space: nowrap; text-align: right; width: 1%; }
.row-actions form { display: inline; }
.row-actions > * { vertical-align: middle; }
.truncate-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disabled-row td { opacity: .55; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--hover); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pf-label, .kind-inline { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--ink-2); }
.kind-inline .ic { color: var(--muted); }
.feat-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.feat-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 5px; background: var(--hover); color: var(--ink-2); font-size: 11.5px; white-space: nowrap; }
.feat-chips span.alt { background: transparent; border: 1px dashed var(--line); }
.feat-chips.lg span { font-size: 12.5px; padding: 3px 9px; }
.tenant-cell { max-width: 240px; }
.tenant-cell > span:first-child:not(.acct) { display: block; }
.tenant-cell > .acct { width: fit-content; }
.acct { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; margin: 2px 4px 0 0; padding: 0 2px 0 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; line-height: 18px; }
.acct form { display: inline; }
.acct .x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 3px; font-size: 12px; line-height: 1; opacity: .6; }
.acct .x:hover { opacity: 1; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person > span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.person.sm .avatar { width: 26px; height: 26px; font-size: 11px; }

/* pills */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--hover); color: var(--ink-2); }
.pill.tiny { font-size: 10.5px; padding: 0 7px; vertical-align: 1px; }
.st-occupied, .tk-closed, .ks-in_stock, .wl-housed { background: var(--good-soft); color: var(--good); }
.st-vacant, .tk-new, .ks-lost, .wl-offered { background: var(--warn-soft); color: var(--warn); }
.st-reserved, .tk-in_progress, .wl-accepted { background: var(--teal-soft); color: var(--teal); }
.st-own_use, .ks-issued { background: var(--violet-soft); color: var(--violet); }
.tk-todo, .wl-active, .role-portfolio_manager, .role-owner { background: var(--blue-soft); color: var(--blue); }
.tk-rejected, .ks-retired, .wl-withdrawn, .wl-removed { background: var(--hover); color: var(--muted); }
.role-property_manager { background: var(--teal-soft); color: var(--teal); }
.role-service_manager { background: var(--warn-soft); color: var(--warn); }
.role-tenant { background: var(--violet-soft); color: var(--violet); }
.role-admin { background: var(--danger-soft); color: var(--danger); }
.prio { font-size: 11.5px; font-weight: 600; color: var(--warn); margin-left: 6px; }
.prio-urgent { color: var(--danger); }

/* ---------- Lists & small charts ---------- */
.list { list-style: none; margin: 0; padding: 6px; }
.list a, .list .li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.list a:hover { background: var(--hover); text-decoration: none; }
.list .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.list .grow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .grow small { color: var(--muted); }
.list .date, .list .money { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.list .date.late { color: var(--danger); font-weight: 600; }
.kind-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--hover); color: var(--ink-2); flex: none; }
.kind-ic.lg { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.bars { list-style: none; margin: 0; padding: 14px 20px 4px; display: flex; flex-direction: column; gap: 2px; }
.bars a { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 12px; padding: 6px 0; color: var(--ink-2); }
.bars a:hover { text-decoration: none; color: var(--accent); }
.bar-label { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.bar-label .ic { color: var(--muted); }
.bar-track { position: relative; height: 8px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--bar-total); border-radius: 99px; }
.bar-occ { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 99px; }
.bar-n { text-align: right; font-size: 12.5px; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 6px; margin: 6px 20px 16px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-occ { background: var(--accent); } .lg-all { background: var(--bar-total); }
.hbars { list-style: none; margin: 0; padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.hbars a { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; padding: 5px 0; color: var(--ink-2); font-size: 13px; }
.hbars a:hover { text-decoration: none; color: var(--accent); }
.hb-label { display: flex; align-items: center; gap: 6px; }
.hb-track { height: 14px; }
.hb-fill { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hb-val { text-align: right; font-size: 12.5px; color: var(--ink); white-space: nowrap; }

/* ---------- Tabs, filters ---------- */
.tabs-bar { display: flex; gap: 2px; box-shadow: inset 0 -1px var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs-bar::-webkit-scrollbar { display: none; }
.tabs-bar a { padding: 9px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-bar a small { color: var(--muted); font-weight: 400; }
.tabs-bar a:hover { color: var(--ink); text-decoration: none; }
.tabs-bar a.on { color: var(--ink); border-bottom-color: var(--accent); }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters.inline { margin: 0; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); flex: 1; max-width: 420px; color: var(--muted); }
.search.sm { height: 32px; max-width: 260px; }
.search input { border: 0; outline: 0; flex: 1; font: inherit; background: transparent; color: var(--ink); min-height: 0; padding: 0; box-shadow: none !important; }
.search:focus-within { border-color: var(--accent); }
.filters select { width: auto; }
.kind-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.kind-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 13px; border: 1px solid transparent; }
.kind-tabs a small { color: var(--muted); font-size: 11.5px; }
.kind-tabs a:hover { background: var(--hover); text-decoration: none; }
.kind-tabs a.on { background: var(--surface); border-color: var(--line); color: var(--ink); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field > span em, summary em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 11px; min-height: 36px; width: 100%; transition: border-color .12s, box-shadow .12s; }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e97a4' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); margin: 0; }
input[readonly] { background: var(--surface-2); }
.static { padding: 8px 0; font-weight: 500; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.hint { font-size: 12.5px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.grid2 .span2 { grid-column: 1 / -1; }
fieldset { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0 0; padding: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-size: 13px; font-weight: 600; padding-right: 8px; }
details.section { border-top: 1px solid var(--line-2); padding-top: 12px; }
details.section > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
details.section[open] > summary::before { transform: rotate(45deg); }
details.section:not([open]) > summary { margin-bottom: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; align-items: end; }
.features .wide { grid-column: 1 / -1; }
.features > .check { min-height: 36px; }
.field.mini > span { font-size: 12px; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 180px; overflow-y: auto; }
.check-list.tall { max-height: 220px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.check-grid.one { grid-template-columns: 1fr; }
.row-form { display: flex; gap: 8px; }
.form-narrow { max-width: 680px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch input, .kind-opt input, .role-opt input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.swatch i { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--c); cursor: pointer; }
.swatch input:checked + i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.swatch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 4px; }
.kind-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kind-opt span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; text-align: center; color: var(--ink-2); height: 100%; }
.kind-opt span .ic { color: var(--muted); }
.kind-opt b { font-size: 11.5px; font-weight: 500; line-height: 1.2; }
.kind-opt span:hover { border-color: var(--accent-line); }
.kind-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.kind-opt input:checked + span .ic { color: var(--accent); }
.kind-opt input:focus-visible + span, .role-opt input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.role-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.role-opt span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; height: 100%; }
.role-opt b { font-weight: 600; font-size: 13.5px; }
.role-opt small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.role-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
/* Radio button groups (.seg, .interval-toggle) look exactly like .range-group: page background, muted options,
   the selected one on the hover colour with ink text. */
.seg { display: inline-flex; width: fit-content; align-self: flex-start; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface); }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.seg span:hover { color: var(--ink); }
.seg input:checked + span { background: var(--hover); color: var(--ink); }

/* ---------- Dialogs ---------- */
dialog.modal { border: 1px solid var(--line); padding: 0; border-radius: 14px; box-shadow: var(--shadow-pop); width: min(500px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--ink); }
dialog.modal.wide { width: min(760px, calc(100vw - 32px)); }
dialog.modal#dlg-unit { width: min(1000px, calc(100vw - 32px)); }   /* space: types, features, lease or periods */
dialog.modal::backdrop { background: rgba(10, 14, 20, .38); }
dialog.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
dialog.modal header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; }
dialog.modal header h2 { font-size: 17px; }
.modal-body { padding: 4px 20px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
dialog.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
dialog[open] { animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Toasts / alerts / callouts ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 10px; background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-pop); font-size: 13.5px; }
.toast .icon-btn { color: inherit; opacity: .7; margin-left: auto; }
.toast .icon-btn:hover { background: transparent; opacity: 1; }
.toast.error { background: var(--danger); color: #fff; }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--accent-soft); color: var(--accent-ink); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); }
.copy-row { display: flex; gap: 8px; flex: 1; max-width: 560px; min-width: 260px; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 16px; }
.empty.flat { border: 0; margin: 0; padding: 40px 24px; background: transparent; }
.empty p { max-width: 54ch; margin-bottom: 6px; }
.empty-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.quick-kinds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 680px; margin: 6px auto 0; }
.danger-zone { margin-top: 28px; display: flex; justify-content: flex-end; }
.big-code { font-size: 64px; font-weight: 600; color: var(--accent); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; max-width: 820px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; cursor: pointer; }
.choice:hover { border-color: var(--accent-line); text-decoration: none; }
.choice b { font-size: 16px; }
.choice > span:last-child { color: var(--muted); }
.choice-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

/* ---------- Property details ---------- */
.group { scroll-margin-top: 20px; }
.group:target { border-color: var(--accent); }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; padding: 14px 20px; font-size: 13.5px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; text-align: right; font-weight: 500; }
dl.facts .sum { border-top: 1px solid var(--line-2); padding-top: 9px; font-weight: 600; color: var(--ink); }
dl.facts.compact { border-top: 1px solid var(--line-2); }
.notes { padding-bottom: 16px; }
.notes p { margin-top: 4px; white-space: pre-wrap; font-size: 13.5px; }

/* ---------- Service desk ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; margin-bottom: 24px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.lane-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font-size: 13.5px; }
.lane-head .count { font-size: 12px; color: var(--muted); }
.lane-new .lane-head b::before, .lane-todo .lane-head b::before, .lane-in_progress .lane-head b::before, .lane-closed .lane-head b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.lane-new .lane-head b::before { background: var(--warn); }
.lane-todo .lane-head b::before { background: var(--blue); }
.lane-in_progress .lane-head b::before { background: var(--teal); }
.lane-closed .lane-head b::before { background: var(--good); }
.lane-empty { color: var(--muted); font-size: 12.5px; padding: 8px 4px; }
/* Service desk: board or list (the same four sections, one under the other) */
.service-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.service-tools .filters { margin: 0; }
.service-tools .range-group { margin: 0 0 0 auto; }
.service-tools .range-group button { display: inline-flex; align-items: center; gap: 6px; }
.svc-list .card-head h2 b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.svc-list .lane-new h2 b::before { background: var(--warn); }
.svc-list .lane-todo h2 b::before { background: var(--blue); }
.svc-list .lane-in_progress h2 b::before { background: var(--teal); }
.svc-list .lane-closed h2 b::before { background: var(--good); }
.svc-table { table-layout: fixed; }
.svc-table td { overflow: hidden; text-overflow: ellipsis; }
.svc-table td:nth-child(2) a { color: var(--ink); }
.tcard { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.tcard:hover { border-color: var(--accent-line); text-decoration: none; }
.tcard b { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.tcard-top, .tcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tcard-foot { margin-top: 4px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ticket-layout .card { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ev { position: relative; }
.ev-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.ev-line small { margin-left: auto; }
.ev-note { margin: 4px 0 0 22px; font-size: 13px; color: var(--muted); }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.internal .bubble { background: var(--warn-soft); border-color: transparent; }
.bubble-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bubble-head small { margin-left: auto; }

/* ---------- Waiting list / find ---------- */
.app-list { display: flex; flex-direction: column; gap: 10px; }
.app { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin: 0; flex-wrap: wrap; }
.app.offer { border-color: var(--accent-line); background: var(--accent-soft); }
.app-main { flex: 1; min-width: 200px; }
.app-pos { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.app-pos b { font-size: 24px; font-weight: 600; }
.app-pos small { color: var(--muted); font-size: 11.5px; }
.app-offer { flex: 2; display: flex; flex-direction: column; gap: 8px; }
.listing { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.listing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.available summary { cursor: pointer; font-weight: 500; font-size: 13px; color: var(--accent); }
.available table { margin-top: 8px; }
.pf-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-open { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.pf-open .dot { --c: var(--muted); }
.pf-open.on .dot { --c: var(--good); }
.note-text { margin-top: 4px; color: var(--ink-2); font-size: 12.5px; max-width: 46ch; }

/* ---------- Tenant home ---------- */
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.home-upkeep .list li .li { padding-top: 9px; padding-bottom: 9px; }
.upkeep-date { color: var(--muted); }
.home-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px 6px; }
.home-head h2 { font-size: 17px; }
.contacts { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line-2); }

/* ---------- Notifications ---------- */
.notif-list li.unread b { color: var(--ink); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; flex: none; }
.notif-list li.unread .notif-dot { background: var(--accent); }
.notif-list li:not(.unread) .grow b { font-weight: 500; color: var(--ink-2); }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; max-width: 1100px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }

/* ---------- Insights ---------- */
.projection .card-head { flex-wrap: wrap; }
.assumptions { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.proj-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.proj-charts figure { margin: 0; padding: 16px 20px 12px; min-width: 0; }
.proj-charts figure + figure { border-left: 1px solid var(--line-2); }
.proj-charts figcaption { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.linechart { position: relative; }
.linechart .plot { position: relative; height: 240px; }
.linechart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.linechart .gridline { stroke: var(--grid); stroke-width: 1; }
.linechart .zero { stroke: var(--muted); stroke-width: 1; }
.linechart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.linechart .s1 { stroke: var(--series-1); } .linechart .s2 { stroke: var(--series-2); }
.linechart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.linechart .end-label { font-size: 11.5px; font-family: var(--font); fill: var(--ink-2); }
.linechart .cross { stroke: var(--muted); stroke-dasharray: 3 3; }
.linechart .pt { stroke: var(--surface); stroke-width: 2; }
.linechart .pt.s1 { fill: var(--series-1); } .linechart .pt.s2 { fill: var(--series-2); }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.projection details { padding-bottom: 16px; }
.chart-legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow-pop); white-space: nowrap; z-index: 2; }
.tip b { display: block; margin-bottom: 2px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.num-table td, .num-table th { font-size: 13px; }

/* ---------- Auth ---------- */
body.auth { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }
.auth-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; }
.lang-form label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lang-form select { width: auto; min-height: 32px; padding: 4px 28px 4px 8px; font-size: 13px; background-color: transparent; }
.auth-main { flex: 1; display: grid; grid-template-columns: 1fr minmax(340px, 420px); gap: 64px; align-items: center; max-width: 1080px; width: 100%; margin: 0 auto; padding: 24px 32px 80px; }
.auth-copy h1 { font-size: 38px; line-height: 1.12; letter-spacing: -.025em; font-weight: 600; max-width: 16ch; }
.auth-copy p { margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
/* Log in / Create account: the same pill button group as inside the platform (.range-group), full width */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; margin-bottom: 20px; }
.tabs a { text-align: center; padding: 7px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { background: var(--hover); color: var(--ink); }
body.bare .main { margin: 10vh auto; max-width: 560px; }
.center-card { text-align: left; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --blade-w: 260px; --sidebar-w: 220px; }
  .main { padding: 24px 24px 56px; }
  .kind-picker { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
  .three-col { grid-template-columns: 1fr 1fr; }
  .two-col, .two-col.even, .ticket-layout, .proj-charts { grid-template-columns: 1fr; }
  .proj-charts figure + figure { border-left: 0; border-top: 1px solid var(--line-2); }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(4, 260px); }
}
@media (max-width: 860px) {
  .three-col { grid-template-columns: 1fr; }
  .shell, .shell.has-blade { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; background: var(--surface); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(10, 14, 20, .35); }
  .blade { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .shell.blade-selected .blade { display: none; }
  .shell.blade-selected .blade-back { display: flex; }
  .main { padding: 14px 16px 48px; }
  .mobile-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
  .mobile-bar b { flex: 1; }
  .kind-picker { grid-template-columns: repeat(4, 1fr); }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; } .span3, .span2 { grid-column: 1 / -1; }
  .role-picker { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line-2); }
  .stat > b, .has-blade .stat > b { font-size: 19px; }
  .auth-main { grid-template-columns: 1fr; gap: 28px; padding: 8px 16px 48px; }
  .auth-top { padding: 16px; }
  .auth-copy h1 { font-size: 27px; }
  .bars a { grid-template-columns: 110px 1fr 40px; }
  .settings { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 22px; }
}

/* ---------- Person search (tenant picker) ---------- */
.combo { position: relative; display: flex; align-items: center; }
.combo-ic { position: absolute; left: 11px; color: var(--muted); display: flex; pointer-events: none; }
.combo input[data-pname] { padding-left: 36px !important; padding-right: 140px; }
.combo-linked { position: absolute; right: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 500; }
.combo-linked .x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; opacity: .7; }
.combo-linked .x:hover { opacity: 1; }
.combo-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 4px; max-height: 280px; overflow-y: auto; }
.combo-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.combo-opt.active, .combo-opt:hover { background: var(--nav-active, var(--hover)); }
.combo-opt .avatar { width: 28px; height: 28px; font-size: 11.5px; }
.combo-opt .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.combo-opt .who b { font-weight: 600; font-size: 13.5px; }
.combo-opt .who small { color: var(--muted); font-size: 12px; }
.combo-opt .rents { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.combo-opt .rents span { padding: 1px 7px; border-radius: 5px; background: var(--hover); color: var(--ink-2); font-size: 11.5px; }
.combo-opt .rents span.q { background: var(--blue-soft, var(--hover)); color: var(--blue, var(--ink-2)); }
.combo-opt.free { color: var(--ink-2); font-size: 13px; align-items: center; }
.combo-empty { padding: 10px; color: var(--muted); font-size: 12.5px; }

/* key dialog: shared doors */
.check-grid.doors { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.feat-chips span.door { background: var(--blue-soft, var(--hover)); color: var(--blue, var(--ink-2)); }

/* numbers: system font — clearer, wider digits than the UI typeface */
.stat > b, .kpi-grid b, .app-pos b, .big-code, .table td.r, .table tfoot td, .money, .date, .bar-n, .hb-val,
.occ span, .blade-meta, .facts dd, .badge, .count, .num-table td {
  font-family: var(--num-font); font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0;
}

.pill.pool { background: var(--warn-soft); color: var(--warn); }

/* ---------- Service request progress ---------- */
.stepper { list-style: none; margin: 0 0 18px; padding: 0; display: flex; align-items: flex-start; max-width: 860px; }
.stepper li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 12.5px; }
.stepper li::before { content: ""; position: absolute; top: 9px; left: 20px; right: 0; height: 2px; background: var(--line); }
.stepper li:last-child { flex: 0 0 auto; }   /* dot first, like the others, so the line from the step before ends right at it */
.stepper li:last-child::before { display: none; }
.stepper li.done::before { background: var(--accent); }
.stepper .dotstep { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--on-accent); font-size: 12px; line-height: 1; }
.stepper li.done .dotstep { background: var(--accent); border-color: var(--accent); }
.stepper li.current .dotstep { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stepper li.current .steplabel, .stepper li.done .steplabel { color: var(--ink); font-weight: 500; }
.stepper.rejected li:last-child .dotstep { background: var(--muted); border-color: var(--muted); }
.stepper.compact { margin: 8px 0 2px; max-width: none; }
.stepper.compact li { gap: 5px; font-size: 11px; line-height: 1.25; }
.stepper.compact li::before { top: 6px; left: 14px; }
.stepper.compact .dotstep { width: 14px; height: 14px; border-width: 2px; font-size: 9px; }
.stepper.compact .dotstep .ic { width: 8px; height: 8px; }
.stepper.compact .steplabel { padding-right: 8px; }
.stepper.compact li:last-child .steplabel { padding-right: 0; }
.stepper li.skipped .steplabel { text-decoration: line-through; opacity: .6; }

/* ---------- New request: what is it about ---------- */
.scope-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scope-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scope-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; text-align: center; color: var(--ink-2); }
.scope-opt b { font-size: 12.5px; font-weight: 500; line-height: 1.25; }
.scope-opt span .ic { color: var(--muted); }
.scope-opt span:hover { border-color: var(--accent-line); }
.scope-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.scope-opt input:checked + span .ic { color: var(--accent); }
.scope-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) { .scope-picker { grid-template-columns: repeat(2, 1fr); } }

/* Coverage choice in the invite dialog */
.seg-radio { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.pill.soft { background: var(--hover); color: var(--muted); }

/* Insights charts */
.hb-fill.alt { background: var(--series-2); }
.hb-track.stacked { background: var(--bar-total); border-radius: 0 4px 4px 0; display: block; }
.hb-track.stacked .hb-fill { border-radius: 0; }
.hb-val small { font-size: 11.5px; margin-left: 2px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.legend .sw.s1 { background: var(--series-1); } .legend .sw.s2 { background: var(--series-2); } .legend .sw.s0 { background: var(--bar-total); }
.kpi-grid > div small { font-size: 11.5px; }

/* ---------- Landing page ---------- */
body.lp { background: var(--canvas); }
.lp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - 1180px) / 2)); background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.lp-nav { display: flex; gap: 22px; }
.lp-nav a { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.lp-nav a:hover { color: var(--ink); text-decoration: none; }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lp main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.lp-hero { text-align: center; padding: 76px 0 20px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 500; }
:root[data-theme="dark"] .lp-eyebrow { color: var(--accent); }
.lp-hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 650; max-width: 860px; margin: 22px auto 0; }
.lp-lede { max-width: 700px; margin: 20px auto 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.lp-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.lp-cta .btn.lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.lp-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.lp-hero-shots { position: relative; margin: 56px auto 0; max-width: 1080px; padding-bottom: 40px; }
.lp-shot { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px -20px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .05); }
:root[data-theme="dark"] .lp-shot { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-shot-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.lp-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lp-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 40px 0 10px; color: var(--muted); font-size: 14px; }
.lp-strip span { display: inline-flex; align-items: center; gap: 7px; }
.lp-row { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line-2); }
.lp-row:first-of-type { border-top: 0; }
.lp-row.flip .lp-text { order: 2; }
.lp-kicker { font-size: 13px; font-weight: 600; color: var(--accent); }
.lp-text h2, .lp-head h2, .lp-final h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.025em; margin-top: 8px; }
.lp-text p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.lp-checks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.lp-checks .ic { color: var(--accent); margin-top: 2px; }
.lp-roles, .lp-features { padding: 72px 0; border-top: 1px solid var(--line-2); }
.lp-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.lp-head p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.lp-grid { display: grid; gap: 14px; }
.lp-grid.five { grid-template-columns: repeat(5, 1fr); }
.lp-grid.three { grid-template-columns: repeat(3, 1fr); }
.lp-grid article { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--surface); }
.lp-grid h3 { margin-top: 14px; font-size: 15.5px; }
.lp-grid p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.lp-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.lp-final { text-align: center; padding: 76px 24px; margin: 20px 0 64px; border-radius: 20px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.lp-final p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.lp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line-2); }
.brand.small { font-size: 14px; gap: 8px; }
@media (max-width: 1100px) { .lp-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .lp-nav { display: none; }
  .lp-row { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }
  .lp-row.flip .lp-text { order: 0; }
  .lp-grid.three, .lp-grid.five { grid-template-columns: 1fr 1fr; }
  .lp-hero { padding-top: 48px; }
}
@media (max-width: 560px) {
  .lp-top { gap: 10px; }
  .lp-actions .btn.ghost, .lp-lang-top { display: none; }
  .lp-foot { flex-wrap: wrap; }
  .lp-grid.three, .lp-grid.five { grid-template-columns: 1fr; }
  .lp-lede { font-size: 16px; }
}

@media (max-width: 1440px) { .shell.has-blade .col-type { display: none; } }
.table td .row-title { white-space: nowrap; }
.table.units td:first-child { min-width: 150px; max-width: 210px; }
.table.units .feat-chips { flex-wrap: wrap; }
.area-cell small { display: block; font-size: 11.5px; line-height: 1.3; }
.table.units th, .table.units td { padding-left: 8px; padding-right: 8px; }
.table.units .row-actions { white-space: nowrap; padding-right: 14px; }
.table.units th:first-child, .table.units td:first-child { padding-left: 20px; }
.lease-cell { display: table-cell; line-height: 1.35; }
.lease-cell > span { display: block; white-space: nowrap; }
@media (max-width: 1440px) { .shell.has-blade .opt-action { display: none; } }

/* People: one row per person, one line per role */
.people-table td { vertical-align: top; }
.people-table .person-cell { width: 30%; }
.assignments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.assignments li { display: grid; grid-template-columns: 150px minmax(140px, 1fr) minmax(200px, 1.6fr); gap: 12px; align-items: center; min-height: 26px; }
.assignments li + li { border-top: 1px dashed var(--line-2); padding-top: 6px; }
.assignments .pill { justify-self: start; }
.as-actions { display: flex; justify-content: flex-end; gap: 2px; }
.as-rights .feat-chips { margin: 0; }
@media (max-width: 1100px) { .assignments li { grid-template-columns: 1fr auto; } .as-rights { grid-column: 1 / -1; } .as-scope { grid-column: 1; } }

/* Economy */
.fin-box { display: contents; }
.proj-charts.three figure:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); }
.table.budget td { padding-top: 7px; padding-bottom: 7px; }
.table.budget tr.sum td { font-weight: 600; border-top: 1px solid var(--line); background: var(--surface-2); }
.table.budget tr.neg td:last-child, .table.budget tr.neg td:nth-child(2) { color: var(--danger); }
.table.budget td.neg { color: var(--danger); }
.table.budget tr.sec th { padding: 16px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line-2); background: none; }
.table.budget tbody tr.sec:first-child th { padding-top: 8px; }
.table.budget tr.strong td { font-weight: 700; border-top: 1px solid var(--line); }
.table.budget tr:not(.sum):not(.sec) td:first-child { padding-left: 22px; }
.table.budget.years th small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; white-space: nowrap; }
.table.budget.years td, .table.budget.years th { white-space: nowrap; }
.table.budget.years td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.table.budget.years tr.sum td:first-child { background: var(--surface-2); }
.budget-head { flex-wrap: wrap; gap: 10px; }
.budget-head .range-group { margin: 0 0 0 auto; }
.assumptions.compact { border: 0; padding: 4px 0 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.chart-legend i.sq { height: 10px; width: 10px; border-radius: 2px; }
.chart-legend i.hatched { height: 10px; width: 14px; border: 1px solid var(--c);
  background: repeating-linear-gradient(-45deg, var(--c) 0 3px, transparent 3px 6px); }
.plan-work { display: flex; gap: 10px; align-items: flex-start; }
.plan-work > .ic, .plan-work > svg { flex: none; margin-top: 2px; color: var(--muted); }
.plan-work span { display: flex; flex-direction: column; gap: 1px; }
.pill.plan-planned { background: var(--blue-soft); color: var(--blue); }
.pill.plan-ongoing { background: var(--warn-soft); color: var(--warn); }
.pill.plan-done { background: var(--good-soft); color: var(--good); }
.pill.late { background: var(--danger-soft); color: var(--danger); margin-top: 3px; }
.form-section { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.budget-hint { margin-top: 14px; }
.budget-total { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); text-align: right; }
.fin-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.fin-kind { position: relative; }
.fin-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fin-kind span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.fin-kind input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.fin-kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill.fin-downpayment, .pill.fin-borrow, .pill.fin-rate { background: var(--blue-soft); color: var(--blue); }
.pill.fin-investment { background: var(--violet-soft); color: var(--violet); }
.pill.fin-rent, .pill.fin-income { background: var(--good-soft); color: var(--good); }
.pill.fin-cost { background: var(--warn-soft); color: var(--warn); }
:root { --series-3: #6b7380; }
:root[data-theme="dark"] { --series-3: #9a9a9a; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --series-3: #9a9a9a; } }
.linechart .s3 { stroke: var(--series-3); stroke-dasharray: 5 4; } .linechart .pt.s3 { fill: var(--series-3); stroke: none; }

/* Invite: verify before giving more than tenant access */
.verify { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.verify b { display: flex; align-items: center; gap: 8px; color: var(--warn); }

/* Plans */
.plan-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.plan-opt { position: relative; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.plan-opt b { font-size: 13.5px; }
.plan-opt strong { font: 600 20px/1.3 var(--num-font); margin: 2px 0 6px; }
.plan-opt small { color: var(--muted); font-size: 12px; }
.plan-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.plan-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.plan-for { font-size: 11.5px; font-weight: 500; margin-left: 4px; }
.plan-blurb { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.plan-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan-card.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-card h3 { display: flex; justify-content: space-between; align-items: center; }
.plan-card .price { font: 600 28px/1.2 var(--num-font); }
.plan-card .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-card ul { list-style: none; margin: 6px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); }
.plan-card ul li { display: flex; gap: 8px; align-items: center; }
.plan-card ul .ic { color: var(--accent); }
.plan-card form, .plan-card .btn { margin-top: auto; }
.usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.usage > div { padding: 16px 20px; border-left: 1px solid var(--line-2); }
.usage > div:first-child { border-left: 0; }
.usage span { font-size: 12.5px; color: var(--muted); }
.usage b { display: block; font: 600 22px/1.3 var(--num-font); }
.usage .occ-track { margin-top: 6px; }
@media (max-width: 1250px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .plans, .plan-picker { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans, .plan-picker, .usage { grid-template-columns: 1fr; } .usage > div { border-left: 0; border-top: 1px solid var(--line-2); } }
/* Invoice */
.invoice { max-width: 760px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.invoice > header, .inv-parties, .invoice > footer { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.invoice .brand { display: flex; gap: 10px; align-items: center; font-weight: 650; font-size: 17px; }
.inv-parties > div { display: flex; flex-direction: column; gap: 2px; }
.invoice .r { text-align: right; }
@media print { .no-print { display: none !important; } .invoice { border: 0; margin: 0; } }
.pill-btn { border: 0; cursor: pointer; font: inherit; font-size: 12px; }
.pill.unpaid { background: var(--warn-soft); color: var(--warn); }

/* Monthly / yearly */
.interval-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); margin-bottom: 12px; }
.interval-toggle label { position: relative; }
.interval-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.interval-toggle span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.interval-toggle span:hover { color: var(--ink); }
.interval-toggle span em { font-style: normal; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.interval-toggle input:checked + span { background: var(--hover); color: var(--ink); }
.interval-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing-scope .py { display: none; }
.billing-scope:has(input[name=interval][value=year]:checked) .py { display: inline; }
.billing-scope:has(input[name=interval][value=year]:checked) .pm { display: none; }
.billing-scope .btn.py, .billing-scope:has(input[name=interval][value=year]:checked) .btn.py { display: none; }
.billing-scope:has(input[name=interval][value=year]:checked) .btn.py { display: flex; }
.billing-scope:has(input[name=interval][value=month]:checked) .btn.pm { display: flex; }
.billing-scope:has(input[name=interval][value=year]:checked) .btn.pm { display: none; }
.lp-toggle { display: flex; justify-content: center; }
.plan-opt strong small, .plan-card .price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.growth-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.growth-grid figure { margin: 0; padding: 14px 4px 0; min-width: 0; border-left: 1px solid var(--line-2); }
.growth-grid figure:first-child { border-left: 0; }
.growth-grid figcaption { padding: 0 16px; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.growth-grid figcaption b { font: 600 18px/1.2 var(--num-font); color: var(--ink); }
@media (max-width: 1100px) { .growth-grid { grid-template-columns: 1fr 1fr; } .growth-grid figure:nth-child(3) { border-left: 0; } }
@media (max-width: 600px) { .growth-grid { grid-template-columns: 1fr; } .growth-grid figure { border-left: 0; } }

/* ---------- Collapsible sidebar ---------- */
.nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: none; font: 500 13.5px var(--font); color: var(--ink-2); cursor: pointer; text-align: left; }
.nav-btn .ic { color: var(--muted); }
.nav-btn:hover { background: var(--nav-active); color: var(--ink); }
.nav-btn:hover .ic { color: var(--ink); }
.sb-collapsed [data-sidebar-collapse] .ic { transform: scaleX(-1); }
@media (min-width: 861px) {
  .sb-collapsed { --sidebar-w: 68px; }
  .sb-collapsed .sidebar { padding: 14px 10px 12px; align-items: center; overflow-x: hidden; }
  .sb-collapsed .sidebar .lbl, .sb-collapsed .brand span, .sb-collapsed .nav-head span { display: none; }
  .sb-collapsed .side-top { flex-direction: column; gap: 10px; padding: 2px 0 14px; }
  .sb-collapsed .nav { align-items: center; width: 100%; gap: 2px; }
  .sb-collapsed .nav a, .sb-collapsed .nav-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .sb-collapsed .nav-section { margin-top: 12px; width: 100%; }
  .sb-collapsed .nav-head { height: 1px; padding: 0; margin: 0 8px 12px; background: var(--line); }
  .sb-collapsed .sidebar .icon-btn { border-radius: 50%; width: 38px; height: 38px; }
  .shell { transition: grid-template-columns .18s ease; }
}

/* Sidebar bottom: collapse, theme, settings, log out */
.side-settings form { display: contents; }
.side-settings { border-top: 1px solid var(--line); padding-top: 8px; }
.cc-badge-row { flex-basis: 100%; padding: 6px 0 0 38px; }
.sb-collapsed .cc-badge-row { display: none; }
.cc-badge { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.sb-collapsed .cc-badge { display: none; }

/* Billing: payment method */
.pay-card { display: flex; align-items: center; gap: 14px; }
.pay-card > div { display: flex; flex-direction: column; flex: 1; font-family: var(--num-font); }
.pay-brand { display: inline-grid; place-items: center; min-width: 54px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font: 700 12px var(--font); letter-spacing: .02em; color: var(--ink-2); background: var(--surface-2); }
.inv-parties > div > span { font-size: 13px; }
.pill.failed { background: var(--danger-soft); color: var(--danger); }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }

/* Sidebar: no background on hover/selected — accent icon and full-strength text instead */
.nav a:hover, .nav a.on, .nav-btn:hover, .sb-collapsed .nav a:hover, .sb-collapsed .nav a.on, .sb-collapsed .nav-btn:hover,
.sidebar .icon-btn:hover, .sidebar .icon-btn.on { background: transparent !important; }
.nav a:hover, .nav a.on, .nav-btn:hover { color: var(--ink); }
.nav a:hover .ic, .nav a.on .ic, .nav-btn:hover .ic,
.sidebar .icon-btn:hover, .sidebar .icon-btn.on { color: var(--accent); }
.nav a.on { font-weight: 500; }
.rate-row { display: flex; align-items: center; gap: 10px; } .rate-row input { width: 120px; }

/* Service health */
.hdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.hdot.ok { background: var(--good); } .hdot.warning { background: var(--warn); } .hdot.critical { background: var(--danger); }
.nav-dot { margin-left: auto; }
.sb-collapsed .nav-dot { position: absolute; margin: 0; transform: translate(11px, -11px); }
.sb-collapsed .nav a { position: relative; }
.health-banner { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; background: var(--surface); }
.health-banner.ok { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); background: var(--good-soft); }
.health-banner.warning { border-color: var(--warn); background: var(--warn-soft); }
.health-banner.critical { border-color: var(--danger); background: var(--danger-soft); }
.health-banner .muted { margin-left: auto; }
.health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.hkpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--good); border-radius: var(--radius); background: var(--surface); }
.hkpi.warning { border-color: var(--warn); } .hkpi.critical { border-color: var(--danger); } .hkpi.unknown { border-color: var(--line); }
.hk-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hkpi b { font: 600 24px/1.2 var(--num-font); }
.hkpi.critical b { color: var(--danger); }
.hkpi small { font-size: 11.5px; }
.legend .sw.th-w { background: var(--warn); height: 2px; } .legend .sw.th-c { background: var(--danger); height: 2px; }
.th-table input { width: 80px; text-align: right; min-height: 30px; padding: 4px 8px; }
@media (max-width: 1100px) { .health-grid { grid-template-columns: 1fr 1fr; } }

/* Sidebar: grey text by default so hover/selected (white text, accent icon) stand out */
.nav a, .nav-btn { color: var(--muted); }
.nav a .ic, .nav-btn .ic { color: var(--muted); }
.nav a:hover, .nav a.on, .nav-btn:hover { color: var(--ink); }
.nav a:hover .ic, .nav a.on .ic, .nav-btn:hover .ic { color: var(--accent); }

/* Time range button group */
/* Button groups: one track, no dividers; the selected option gets the hover shade, hovering only darkens the text */
.range-group { display: flex; gap: 2px; width: max-content; margin: -4px 0 14px auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.range-group a, .range-group button { padding: 5px 13px; border: 0; border-radius: 999px; background: none; font: 600 12.5px/1.2 var(--font); color: var(--muted); text-decoration: none; cursor: pointer; }
.range-group a:hover, .range-group button:hover { color: var(--ink); }
.range-group a.on, .range-group button.on { background: var(--hover); color: var(--ink); }

/* Platform announcements (banners) */
.notices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
body.lp > .notices, body.auth > .notices { margin: 0; gap: 0; }
body.lp > .notices .notice, body.auth > .notices .notice { border-radius: 0; border-width: 0 0 1px; justify-content: center; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border: 1px solid var(--blue); border-radius: var(--radius); background: var(--blue-soft); color: var(--ink); }
.notice > .ic { flex: none; margin-top: 1px; color: var(--blue); }
.notice.warn { border-color: var(--warn); background: var(--warn-soft); } .notice.warn > .ic { color: var(--warn); }
.notice.danger { border-color: var(--danger); background: var(--danger-soft); } .notice.danger > .ic { color: var(--danger); }
.notice-body { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13.5px; line-height: 1.45; }
body.lp > .notices .notice-body, body.auth > .notices .notice-body { flex: 0 1 auto; }
.notice-when { font-weight: 600; font-variant-numeric: tabular-nums; }
.notice-msg { color: var(--ink-2); flex-basis: 100%; }
.notice .icon-btn { margin: -4px -6px -4px 0; }

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.notice-list li:first-child { border-top: 0; }
.notice-kind { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.notice-kind.warn { background: var(--warn-soft); color: var(--warn); } .notice-kind.danger { background: var(--danger-soft); color: var(--danger); }
.nl-main { flex: 1; min-width: 0; }
.nl-main p { margin: 3px 0 0; }
.nl-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nl-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.pill.ph-live, .pill.ph-upcoming { background: var(--good-soft); color: var(--good); }
.pill.ph-scheduled { background: var(--blue-soft); color: var(--blue); }
.pill.ph-ended { background: var(--hover); color: var(--muted); }
@media (max-width: 700px) { .notice-list li { flex-wrap: wrap; } .nl-actions { margin-left: 46px; } }

/* Shared charts (hm-chart): axes, gridlines, hover */
.hm-chart { position: relative; padding: 12px 16px 10px; }
.hm-chart .plot { position: relative; }
.hm-chart svg { display: block; width: 100%; height: auto; overflow: visible; cursor: pointer; }
.hm-chart .gridline { stroke: var(--grid, var(--line)); stroke-width: 1; }
.hm-chart .zero, .hm-chart .axis { stroke: var(--muted); stroke-width: 1; opacity: .55; }
.hm-chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--num-font, var(--font)); }
.hm-chart .bar.s1 { fill: var(--series-1); } .hm-chart .bar.s2 { fill: var(--series-2); } .hm-chart .bar.s3 { fill: var(--series-3); }
.hm-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hm-chart .line.s1 { stroke: var(--series-1); } .hm-chart .line.s2 { stroke: var(--series-2); } .hm-chart .line.s3 { stroke: var(--series-3); }
.hm-chart .pt { stroke: var(--surface); stroke-width: 2; }
.hm-chart .pt.s1 { fill: var(--series-1); } .hm-chart .pt.s2 { fill: var(--series-2); } .hm-chart .pt.s3 { fill: var(--series-3); }
.hm-chart .th { stroke-width: 1.2; stroke-dasharray: 5 4; } .hm-chart .th.warn { stroke: var(--warn); } .hm-chart .th.crit { stroke: var(--danger); }
.hm-chart .hover-band { fill: var(--hover); }
.hm-chart .hit { cursor: pointer; }
.hm-chart .tip .tv { font-family: var(--num-font, var(--font)); font-weight: 600; }
.growth-grid .hm-chart { padding: 6px 4px 4px; }
.growth-head { flex-wrap: wrap; gap: 10px; }
.growth-head .range-group { margin: 0 0 0 auto; }
.growth-head > .muted { margin-left: 4px; }
.linechart svg, .linechart [data-hit] { cursor: pointer; }
.hbars li { cursor: pointer; }
/* round, vertically centred separator dot */
.sep-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 6px 2px; opacity: .8; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.price-table input { width: 120px; text-align: right; }
.price-table td { vertical-align: middle; }

/* Collapsed sidebar: no background at rest; a small, faint circle behind the icon on hover and for the current page */
@media (min-width: 861px) {
  .sb-collapsed .nav a:hover, .sb-collapsed .nav a.on, .sb-collapsed .nav-btn:hover, .sb-collapsed .sidebar .icon-btn:hover {
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent) 18px, transparent 18.5px) !important; }
}
.card-head .legend { margin: 0; }
.hm-chart .line.s3 { stroke-dasharray: 6 5; }
.legend .sw.s3 { background: var(--series-3); } .legend .sw.dash { height: 2px; }
.db-forecast { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.refresh-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.refresh-pick select { width: auto; padding-right: 30px; }
/* Backup & restore */
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
.backup-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.backup-actions form { display: inline; }
.backup-table td { vertical-align: middle; }
.restore-warn { margin: 0; }
.guide > summary { cursor: pointer; list-style: none; border-bottom: 0; }
.guide > summary::-webkit-details-marker { display: none; }
.guide[open] > summary { border-bottom: 1px solid var(--line-2); }
.guide-body h3 { font-size: 14px; margin: 18px 0 6px; } .guide-body h3:first-child { margin-top: 0; }
.guide-body ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.guide-body .hint { margin: 16px 0 0; }
/* Extra chart series (plans) */
:root { --series-4: #c9822b; --series-5: #2f74c8; }
:root[data-theme="dark"] { --series-4: #e2a64f; --series-5: #5c9ff0; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --series-4: #e2a64f; --series-5: #5c9ff0; } }
.hm-chart .line.s4 { stroke: var(--series-4); } .hm-chart .line.s5 { stroke: var(--series-5); }
.hm-chart .pt.s4 { fill: var(--series-4); } .hm-chart .pt.s5 { fill: var(--series-5); }
.hm-chart .bar.s4 { fill: var(--series-4); } .hm-chart .bar.s5 { fill: var(--series-5); }
.legend .sw.s4 { background: var(--series-4); } .legend .sw.s5 { background: var(--series-5); }
/* Six KPI boxes: one row on wide screens, two rows of three otherwise */
.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) {
  .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.six .stat:nth-child(4) { border-left: 0; }
  .stats.six .stat:nth-child(n+4) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  .stats.six { grid-template-columns: 1fr 1fr; }
  .stats.six .stat { border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
  .stats.six .stat:nth-child(odd) { border-left: 0; } .stats.six .stat:nth-child(-n+2) { border-top: 0; }
}
.assignments + .add-role { margin-top: 6px; }
.replace-note { margin: 0; padding: 10px 14px; }
input[readonly] { color: var(--muted); }
/* Grey "full potential" series behind the actual one */
:root { --series-0: #d9dee4; }
:root[data-theme="dark"] { --series-0: #383838; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --series-0: #383838; } }
.hm-chart .bar.s0 { fill: var(--series-0); } .legend .sw.s0 { background: var(--series-0); }
.chart-tools { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 16px 0; }
.chart-tools .range-group { margin: 0; }
/* Property picker (dropdown with checkboxes) */
.chart-tools .grow { flex: 1; }
.pick { position: relative; }
.pick > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pick > summary::-webkit-details-marker { display: none; }
.pick > summary .ic:last-child { transform: rotate(90deg); opacity: .6; }
.pick[open] > summary .ic:last-child { transform: rotate(-90deg); }
.pick-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 260px; max-height: 360px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 8px; display: grid; gap: 2px; }
.pick-panel .check { padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.pick-panel .check:hover { background: var(--hover); }
.pick-group { border-top: 1px solid var(--line-2); padding-top: 4px; margin-top: 4px; display: grid; gap: 1px; }
.pick-prop { padding-left: 28px !important; font-size: 13px; }
.hm-chart .bar.fc { stroke-width: 1; }
.hm-chart .hatch-bg { fill: var(--surface); }
.hm-chart .fc-line { stroke: var(--muted); stroke-dasharray: 4 4; opacity: .7; }
.hm-chart .fc-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
:root { --series-6: #1b9aa6; --series-7: #c4487d; }
:root[data-theme="dark"] { --series-6: #4cc6d1; --series-7: #e47ea9; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --series-6: #4cc6d1; --series-7: #e47ea9; } }
.hm-chart .bar.s6 { fill: var(--series-6); } .hm-chart .bar.s7 { fill: var(--series-7); }
.hm-chart .line.s6 { stroke: var(--series-6); } .hm-chart .line.s7 { stroke: var(--series-7); }
.legend .sw.s6 { background: var(--series-6); } .legend .sw.s7 { background: var(--series-7); }
.linklike { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.next-lease summary em { font-style: normal; font-weight: 400; font-size: 12px; margin-left: 6px; }
.next-up { display: block; font-size: 12px; color: var(--accent); }
/* Space dialog: long-term lease or short-term periods */
.seg.rent-mode { margin: 4px 0 8px; }
.short-let .bk-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.bk-list { display: flex; flex-direction: column; gap: 10px; }
.bk-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 4px; background: var(--surface); }
.bk-row.now { border-color: var(--accent); }
.bk-row.past { opacity: .62; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0 12px; align-items: end; }
.bk-grid .bk-x { margin-bottom: 14px; }
.bk-grid .bk-note { grid-column: 1 / -1; }
.bk-grid .field em { font-style: normal; color: var(--muted); font-weight: 400; }
@media (max-width: 600px) { .bk-grid { grid-template-columns: 1fr 1fr; } .bk-grid .bk-x { grid-column: 2; justify-self: end; } }
.short-pill { background: var(--violet-soft); color: var(--violet); display: inline-flex; align-items: center; gap: 4px; width: fit-content; }
/* Insights: occupancy heatmap */
.heat-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.heat-nav b { min-width: 9em; text-align: center; font-size: 13.5px; text-transform: capitalize; }
.heat-card .growth-head .range-group { margin-left: 8px; }
.heat-body { padding: 12px 16px 4px; }
.heat-wrap { overflow: auto; max-height: 460px; }
table.heat { border-collapse: separate; border-spacing: 2px; width: 100%; table-layout: fixed; font-size: 11px; }
table.heat th { font-weight: 500; color: var(--muted); text-align: center; padding: 0 0 4px; }
table.heat thead th small { display: block; font-size: 10px; }
table.heat thead th.today { color: var(--accent); font-weight: 700; }
table.heat thead th.we { color: var(--ink-2); }
table.heat th.hl-name, table.heat thead th:first-child, table.heat tfoot th { width: 120px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); padding-right: 8px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.heat tr.hp th { text-align: left; color: var(--ink); font-weight: 600; padding: 8px 0 2px; position: static; }
table.heat td.hc { height: 18px; border-radius: 3px; background: var(--hover); }
table.heat-week td.hc { height: 26px; }
table.heat td.hc.on { background: var(--accent); }
table.heat td.hc.on.fc { background: repeating-linear-gradient(-45deg, var(--accent) 0 3px, var(--accent-soft) 3px 6px); }
table.heat td.hc.today { box-shadow: inset 0 0 0 2px var(--ink); }
table.heat tfoot td { text-align: center; color: var(--muted); font-size: 10px; padding-top: 4px; }
table.heat .hs { color: var(--violet); font-style: normal; font-weight: 700; }
.heat-year { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 20px; font-size: 10.5px; color: var(--muted); }
@media (max-width: 1250px) { .heat-year { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .heat-year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .heat-year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.heat-year .hy-month { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.heat-year .hy-m { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: capitalize; }
.heat-year .hy-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.heat-year .hy-wd { text-align: center; font-size: 10px; }
.heat-year .hy-wd.we { color: var(--ink-2); }
.heat-year .hc { display: grid; place-items: center; }
.heat-year .hc i { font-style: normal; font-size: 9.5px; color: var(--ink-2); opacity: .75; }
.heat-year .hc { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--accent) calc(var(--a) * 100%), var(--hover)); }
.heat-year .hc.fc { background-image: repeating-linear-gradient(-45deg, transparent 0 3px, var(--surface) 3px 5px); }
.heat-year .hc.today { box-shadow: inset 0 0 0 2px var(--ink); }
.heat-avg { margin: 12px 0 0; }
.heat-body .hc, .heat-body .hf-c { cursor: pointer; }
.heat-body .hc:hover { outline: 2px solid var(--ink-2); outline-offset: -1px; }
.heat-tip { z-index: 5; }
table.heat thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.heat-legend .hl { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--hover); vertical-align: -2px; margin-right: 6px; }
.heat-legend .hl.on { background: var(--accent); }
.heat-legend .hl.on.fc { background: repeating-linear-gradient(-45deg, var(--accent) 0 3px, var(--accent-soft) 3px 6px); }
.heat-legend .hl.today { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.form-error { color: var(--danger); font-size: 13px; margin: 8px 0 0; }
/* Landing rework: one large dark hero shot, crops without a browser bar */
.lp-hero-shots { max-width: 1180px; margin-top: 60px; }
.lp-hero-shots .lp-shot { border-radius: 16px; }
.lp-shot.shot-dark { background: #0b0b0b; border-color: #232323; }
.lp-shot.shot-dark .lp-shot-bar { background: #141414; border-color: #232323; }
.lp-shot.shot-dark .lp-shot-bar i { background: #333; }
.lp-shot.crop { border-radius: 14px; }
.lp-hero-shots::before { content: ""; position: absolute; inset: 10% 6% -4%; z-index: -1; filter: blur(60px); opacity: .35;
  background: radial-gradient(60% 60% at 50% 50%, var(--accent), transparent 70%); }
.lp-hero-shots { isolation: isolate; }
.lp-shot.narrow { max-width: 470px; justify-self: center; width: 100%; }
.guide-list { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.guide-list b { color: var(--ink); font-weight: 600; }

/* Activity log */
.table.activity td { vertical-align: top; }
.act-target { color: var(--muted); }
.act-changes { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; display: grid; gap: 1px; }
.act-changes s { color: var(--muted); }
.act-fail b { color: var(--danger, #c0392b); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.pager-links { display: inline-flex; gap: 8px; align-items: center; }
.nowrap { white-space: nowrap; }
.page-head .range-group { margin: 0; }
.sb-collapsed .sidebar .bell .lbl { display: inline !important; } /* the unread count stays visible when the menu is collapsed */
/* Auth: extra steps (forgot / reset / two-step) */
.auth-title { margin: 0 0 14px; font-size: 20px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field-row a { font-weight: 500; }
.code-input { font: 600 22px/1.2 var(--num-font, monospace); letter-spacing: .18em; text-align: center; }
.muted-link { color: var(--muted); text-decoration: none; }
.warn-text { color: var(--warn); }
/* Two-step sign-in */
.setup-steps { margin: 0; padding-left: 22px; display: grid; gap: 22px; }
.setup-steps > li > b { font-size: 15px; }
.setup-steps p { margin: 4px 0 0; }
.qr-box { width: 200px; margin: 12px 0 8px; padding: 8px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
code.secret { font: 600 14px/1.6 var(--num-font, monospace); letter-spacing: .06em; }
.code-input.sm { font-size: 18px; max-width: 180px; }
.recovery-card { border-color: var(--warn); }
.recovery-codes { columns: 2; max-width: 360px; margin: 0; padding-left: 24px; font: 600 15px/2 var(--num-font, monospace); }
.btn.danger-ghost { color: var(--danger); border-color: var(--danger); background: none; }
@media print { .sidebar, .page-head .actions, .twofa-setup, .settings, .btn-row { display: none !important; } }
/* Assets: portfolios / properties / spaces as tabs under one heading */
.assets-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.assets-tabs a .ic { color: var(--muted); }
.assets-tabs a.on .ic { color: var(--accent); }
/* Find a home: one wide card per vacant space */
.space-grid { display: flex; flex-direction: column; gap: 10px; }
.space-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 16px 20px; margin: 0; }
.space-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.space-info h3 { margin: 0; font-size: 15.5px; }
.space-info h3 .muted { font-weight: 400; }
.space-info .feat-chips { margin: 0; }
.space-addr { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ink-2); }
.space-addr .ic { color: var(--muted); flex: none; }
.space-facts { display: grid; grid-template-columns: 70px 60px 100px; gap: 20px; margin: 0; }
.space-facts dt { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.space-facts dd { margin: 2px 0 0; font-weight: 600; white-space: nowrap; }
.space-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 130px; }
@media (max-width: 760px) {
  .space-card { grid-template-columns: auto minmax(0, 1fr); }
  .space-facts, .space-foot { grid-column: 1 / -1; }
  .space-foot { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Breadcrumbs: Portfolios › portfolio › property (replaces the old middle panel) */
.crumbs .sep { color: var(--muted); opacity: .6; }
.crumbs > span:last-child { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--ink); text-decoration: none; }

/* Logins chart: all-time-high line */
.hm-chart .th.ath { stroke: var(--ink-2); stroke-dasharray: 4 4; opacity: .7; }
.hm-chart .th-label { font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.logins-head { flex-wrap: wrap; gap: 8px; }
.logins-head .chart-tools { display: flex; gap: 8px; margin-left: auto; }
.logins-head .range-group { margin: 0; }
.usage-cards { display: grid; gap: 16px; margin-bottom: 16px; }
.usage-cards .chart-tools { flex-wrap: wrap; justify-content: flex-end; }
/* Logins / Session time: title with the period and ATH on the first line, the roles on a line of their own */
.usage-cards .card-head { flex-wrap: wrap; row-gap: 12px; }
.usage-cards .card-head .chart-tools { display: contents; }
.usage-cards .card-head [data-usage-range] { order: 1; margin-left: auto; }
.usage-cards .card-head [data-usage-ath] { order: 1; }
.usage-cards .card-head::after { content: ""; flex-basis: 100%; order: 2; }
.usage-cards .card-head .role-pick { order: 3; }
.role-pick { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.role-pick button { white-space: nowrap; }

/* Name with small badges on one line (accounts list) */
.person .name-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.person .name-row .pill.tiny { font-size: 10.5px; padding: 1px 6px; line-height: 15px; }
.person > span > .pill { align-self: flex-start; }

/* Landing: light / dark switch above the first screenshot */
.lp-theme-row { display: flex; justify-content: flex-end; max-width: 1180px; margin: 44px auto -44px; }
.lp-theme-row .range-group { margin: 0; }
.lp-theme-row .range-group button { display: inline-flex; align-items: center; gap: 6px; }

.space-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-section.no-head { margin-top: 0; }

/* Find a home: list / map */
.find-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.find-tools .kind-tabs { margin: 0; }
.find-tools .range-group { margin: 0 0 0 auto; }
.find-tools .range-group a { display: inline-flex; align-items: center; gap: 6px; }
.find-map { height: 560px; padding: 0; overflow: hidden; z-index: 0; }
.find-map .leaflet-popup-content-wrapper, .find-map .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.find-map .leaflet-popup-content { margin: 12px 14px; font: 13px/1.4 var(--font); }
:root[data-theme="dark"] .find-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .find-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); } }
.map-pin { display: grid; place-items: center; }
.map-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.map-pop ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.map-pop li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.map-pop li span { display: flex; flex-direction: column; }
.map-pop li small { color: var(--muted); }
.map-pop li em { font-style: normal; font-size: 11.5px; color: var(--good); }

/* Search requests */
.h2-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.req-list { display: flex; flex-direction: column; gap: 8px; }
.card.req { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0; }
.card.req.on { border-color: var(--accent); }
.card.req .grow { flex: 1; min-width: 0; }
.req-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; font-size: 13.5px; }
.kind-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.kind-pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Sign-up: "what brings you here" as two tiles side by side */
.reg-as { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg-as .kind-pick span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 10px; height: 100%; padding: 18px 12px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.3; text-align: center;
  transition: border-color .15s, background .15s; }
.reg-as .kind-pick input:not(:checked) + span:hover { border-color: var(--muted); }
.reg-as .reg-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-style: normal;
  background: var(--hover); color: var(--muted); transition: background .15s, color .15s; }
.reg-as .kind-pick input:checked + span .reg-ic { background: var(--accent); color: var(--surface); }
.reg-as .kind-pick input:checked + span::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); }
.reg-as + .hint { margin-top: 10px; }
@media (max-width: 360px) { .reg-as { grid-template-columns: 1fr; } }
.space-foot .pill { align-self: flex-end; }

/* Maintenance */
.maint-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.maint-tools .range-group { margin: 0; }
.maint-tools .range-group a { display: inline-flex; align-items: center; gap: 6px; }
.maint-cats { margin: 0 0 0 auto; }
.maint-prop-head { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--series-7); margin-right: 2px; }
.cat-dot.c1, .cal-ev.c1, .maint-ic.c1 { --c: var(--series-1); } .cat-dot.c2, .cal-ev.c2, .maint-ic.c2 { --c: var(--series-2); }
.cat-dot.c3, .cal-ev.c3, .maint-ic.c3 { --c: var(--series-3); } .cat-dot.c4, .cal-ev.c4, .maint-ic.c4 { --c: var(--series-4); }
.cat-dot.c5, .cal-ev.c5, .maint-ic.c5 { --c: var(--series-5); } .cat-dot.c6, .cal-ev.c6, .maint-ic.c6 { --c: var(--series-6); }
.cat-dot.c7, .cal-ev.c7, .maint-ic.c7 { --c: var(--series-7); }
.cat-dot { background: var(--c); }
.maint-title { display: inline-flex; align-items: center; gap: 6px; }
.maint-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.maint-list { padding: 4px 0; }
.maint-day { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.maint-day:first-child { border-top: 0; }
.maint-day.today { background: var(--accent-soft); }
.maint-date { display: flex; flex-direction: column; line-height: 1.3; padding-top: 4px; }
.maint-date span { color: var(--muted); font-size: 12.5px; }
.maint-date em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.maint-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.maint-day li { display: flex; align-items: center; gap: 10px; }
.maint-day li .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.maint-acts form { display: inline-flex; gap: 4px; }
.maint-cal { padding: 14px 16px 16px; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-head h3 { margin: 0; font-size: 16px; min-width: 150px; text-align: center; }
.cal-head .btn { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.cal-wd { padding: 6px 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cal-day { min-height: 96px; padding: 5px 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.other { background: var(--surface-2); }
.cal-day.other .cal-num { opacity: .45; }
.cal-num { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cal-day.today .cal-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; }
.cal-ev { display: block; font-size: 11.5px; line-height: 1.35; padding: 1px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--ink); border-left: 3px solid var(--c); }
.cal-ev.done { opacity: .6; }
.cal-ev.skipped { opacity: .45; text-decoration: line-through; }
.cal-day.past .cal-ev:not(.done):not(.skipped) { opacity: .75; }
@media (max-width: 760px) { .cal-day { min-height: 70px; } .cal-ev { font-size: 10px; padding: 0 3px; } .maint-day { grid-template-columns: 1fr; gap: 6px; } .maint-cats { margin: 0; } }

/* Companies */
.company-form { max-width: 820px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; min-width: 0; }
.steps-hint { display: flex; gap: 18px; list-style: none; margin: 4px 0 0; padding: 0; counter-reset: st; flex-wrap: wrap; }
.steps-hint li { counter-increment: st; }
.steps-hint li::before { content: counter(st) ". "; }
.portal-switch { display: flex; margin: 2px 4px 14px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.portal-switch form { flex: 1; display: flex; }
.portal-switch button { flex: 1; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-switch button:hover { color: var(--ink); }
.portal-switch button.on { background: var(--hover); color: var(--ink); }
.sb-collapsed .portal-switch { display: none; }
.co-banner { margin-bottom: 16px; }

/* Service speed */
.speed-bar { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.speed-bar i { display: block; height: 8px; border-radius: 4px; background: var(--accent); min-width: 2px; flex: 0 0 auto; max-width: 70%; }
.speed-bar span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.speed-card .card-head { flex-wrap: wrap; gap: 10px; }
.plan-card ul:not(.plan-feats) { margin-bottom: 4px; }
.plan-card ul.plan-feats { border-top: 1px solid var(--line-2, var(--line)); padding-top: 10px; margin-top: 4px; color: var(--muted); }
.plan-card ul.plan-feats .ic { color: var(--muted); }

/* Legal pages and the site footer */
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; width: 100%; font-size: 12px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }
.lp-foot { flex-wrap: wrap; }
.lp-foot .site-foot { padding-top: 10px; }
.auth-foot { max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 32px 28px; }
.app-foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line-2, var(--line)); }
.legal-main { max-width: 780px; width: 100%; margin: 0 auto; padding: 8px 24px 56px; }
.legal-tabs { margin-bottom: 22px; flex-wrap: wrap; }
.legal-doc { line-height: 1.65; font-size: 15px; }
.legal-doc h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.legal-doc h3 { font-size: 17px; margin: 28px 0 8px; }
.legal-doc h4 { font-size: 15px; margin: 20px 0 6px; }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 0 0 12px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; }
.legal-doc li { margin-bottom: 4px; }
.terms-check { align-items: flex-start; font-size: 13px; }
.terms-check span { line-height: 1.45; }
.legal-edit textarea { width: 100%; min-height: 460px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
body.legal-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); }
.plain-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.legal-tabs { margin-left: 0 !important; margin-right: auto; display: inline-flex; }

/* Activity log: every entry opens its details */
.act-row { cursor: pointer; }
.act-row:hover td, .act-row:focus-visible td { background: var(--hover); }
.act-row:focus-visible { outline: none; }
.act-chev { width: 1%; color: var(--muted); padding-left: 0; }
.act-sum { margin-top: 2px; }
.act-detail h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; }
.act-detail-target { margin: 0 0 12px; font-weight: 600; }
.act-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 13.5px; }
.act-meta dt { color: var(--muted); }
.act-meta dd { margin: 0; }
.act-table td { padding: 7px 10px; font-size: 13.5px; vertical-align: top; word-break: break-word; }
.act-table td:first-child { width: 34%; }
.act-table s { color: var(--muted); }

/* Advertising (command center) */
.ad-tabs { margin: 0 0 18px; }
.ad-tabs small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.flag { width: 18px; height: 18px; border-radius: 50%; flex: none; vertical-align: -4px; }
.ad-regions { display: grid; gap: 14px; }
.ad-region { border: 0; margin: 0; padding: 0; min-width: 0; }
.ad-region legend { display: flex; align-items: center; gap: 8px; padding: 0 0 8px; font-weight: 600; font-size: 13.5px; }
.ad-region legend .check { font-weight: 600; }
.ad-countries { display: flex; flex-wrap: wrap; gap: 6px; }
.flag-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font: 600 12.5px/1.2 var(--font); cursor: pointer; user-select: none; }
.flag-chip:hover { color: var(--ink); }
.flag-chip input { position: absolute; opacity: 0; pointer-events: none; }
.flag-chip:has(input:checked) { background: var(--hover); color: var(--ink); border-color: var(--ink-faint, var(--line)); }
.flag-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.flag-chip small { color: var(--muted); font-weight: 500; }
.ad-sources { display: grid; gap: 12px; }
.ad-sources .check { align-items: flex-start; }
.ad-sources .check > span { display: grid; gap: 2px; }
.ad-danger { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ad-danger .hint { flex-basis: 100%; margin: 0; }
.ad-live .card { display: flex; flex-direction: column; }
.ad-feed { list-style: none; margin: 0; padding: 4px 0; height: 360px; overflow-y: auto; }
.ad-feed li { display: flex; align-items: center; gap: 10px; padding: 7px 16px; border-bottom: 1px solid var(--line); font-size: 13px; min-width: 0; }
.ad-feed li.ad-empty { border: 0; padding: 16px; }
.ad-feed li.bad .ad-main a { color: var(--muted); }
.ad-feed .ad-main { display: grid; min-width: 0; flex: 1; }
.ad-feed .ad-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-feed .ad-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.ad-feed .ad-new { animation: ad-in .6s ease-out; }
@keyframes ad-in { from { background: var(--accent-soft); } to { background: transparent; } }
.ad-now { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-events-card { margin-bottom: 16px; }
.ad-events { list-style: none; margin: 0; padding: 8px 16px; max-height: 120px; overflow-y: auto; font-size: 12.5px; display: grid; gap: 3px; }
.ad-events li span { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.ad-events li.ok { color: var(--accent-ink); } .ad-events li.error { color: var(--danger); }
.lvl-high { background: var(--accent-soft); color: var(--accent-ink); }
.lvl-medium { background: var(--warn-soft); color: var(--ink); }
.lvl-low { background: var(--hover); color: var(--muted); }
.ad-invite-opts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin-top: 18px; }
.ad-invite-opts .field { margin: 0; min-width: 200px; }
.ad-send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ad-send-row .ad-count { margin-right: auto; font-size: 14px; }
.ad-send-row .ad-count b { font-size: 18px; }
.field.inline-field { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.field.inline-field select { width: auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
[data-ad-clicks] .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hits-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 800px) { .hits-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { [data-ad-clicks] .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ad-invite-opts + .hint { margin-top: 12px; }
.inline-field > span { font-size: 13px; color: var(--muted); }
.ad-contacts td { vertical-align: top; }
.ad-phase { white-space: nowrap; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; }
.ad-phase.ph-reading, .ad-phase.ph-searching { background: var(--accent-soft); color: var(--accent-ink); }
.ad-phase.ph-waiting { background: var(--warn-soft); color: var(--warn); }
.ad-phase.ph-finished { background: var(--blue-soft, var(--hover)); color: var(--ink); }
.ad-phase.ph-stopped { background: var(--hover); color: var(--muted); }

.close-zone { margin-top: 28px; border-color: var(--danger-soft, var(--line)); }

/* People: roles as a coloured circle with the name; one compact line per role */
.role-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); background: none !important; white-space: nowrap; }
.role-dot i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: currentColor; }
.role-dot.role-owner i, .role-dot.role-portfolio_manager i { background: var(--blue); }
.role-dot.role-property_manager i { background: var(--teal); }
.role-dot.role-service_manager i { background: var(--warn); }
.role-dot.role-tenant i { background: var(--violet); }
.role-dot.role-admin i { background: var(--danger); }
.people-table td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.people-table .person .avatar { width: 32px; height: 32px; font-size: 13px; }
.people-table td.row-actions { width: 1%; }

/* Three-dot menu (<details class="menu" data-menu>); app.js positions the popup so scrolling tables don't clip it */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--hover); color: var(--ink); }
.menu-pop { position: fixed; z-index: 60; min-width: 220px; max-width: 320px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-pop); display: grid; gap: 1px; text-align: left; }
.menu-pop form { margin: 0; }
.menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--ink); font: 500 13.5px/1.2 var(--font); cursor: pointer; text-align: left; white-space: nowrap; }
.menu-pop button:hover, .menu-pop button:focus-visible { background: var(--hover); outline: none; }
.menu-pop button.danger { color: var(--danger); }
.menu-pop button .ic { color: var(--muted); flex: none; }
.menu-pop button.danger .ic { color: var(--danger); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px 4px; }
.menu-pop .menu-head { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-pop .menu-head .role-dot { font-size: 12px; color: var(--muted); }
.menu-pop hr:last-child, .menu-pop hr + hr { display: none; }

/* advertising: directories per country */
.ad-dirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px 24px; align-items: start; }
.ad-dir-country { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.ad-dir-country legend { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.ad-dirs .check { align-items: flex-start; }
.ad-dirs .check > span { display: grid; gap: 2px; }
.ad-dir-st { font-size: 12px; color: var(--muted); }
.ad-dir-st.ok { color: var(--accent); }
.ad-dir-st.failed { color: var(--danger, #c0392b); }
.ad-dirs .ad-dir-own, .ad-dirs > .hint, .ad-dirs > .btn { grid-column: 1 / -1; }
.ad-dirs > .btn { justify-self: start; }

/* plan cards: features a plan leaves out */
.plan-feats li.off { opacity: .5; }
.plan-feats li.off s { text-decoration-thickness: 1px; }

/* advertising: extra addresses and campaign states */
.ad-extra { display: grid; grid-template-columns: 2fr 1fr; gap: 14px 22px; margin-top: 16px; align-items: start; }
.ad-extra .field { margin: 0; }
@media (max-width: 720px) { .ad-extra { grid-template-columns: 1fr; } }
.ad-extra + .hint { margin-top: 12px; }
.pill.camp-draft { background: color-mix(in srgb, var(--series-4) 16%, transparent); color: var(--series-4); }
.pill.camp-queued { background: color-mix(in srgb, var(--series-2) 16%, transparent); color: var(--series-2); }
.pill.camp-sending { background: color-mix(in srgb, var(--series-5) 16%, transparent); color: var(--series-5); }
.pill.camp-done { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pill.camp-stopped { background: var(--line-2); color: var(--muted); }

/* cookie consent banner */
.cookie-banner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; padding: 16px 18px;
  background: var(--surface-2, var(--surface)); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18); font-size: 13.5px; }
.cookie-banner .cb-text p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.cookie-banner .cb-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-banner .cb-actions form { margin: 0; }
.cookie-banner .cb-prefs { grid-column: 1 / -1; grid-row: 2; }
.cookie-banner .cb-prefs summary { cursor: pointer; color: var(--accent); font-weight: 500; width: max-content; }
.cookie-banner .cb-prefs form { display: grid; gap: 10px; margin-top: 10px; }
.cookie-banner .cb-prefs .check { align-items: flex-start; }
.cookie-banner .cb-prefs .check > span { display: grid; gap: 2px; }
.cookie-banner .cb-prefs .btn { justify-self: start; }
@media (max-width: 640px) { .cookie-banner { grid-template-columns: 1fr; } .cookie-banner .cb-actions { justify-content: stretch; }
  .cookie-banner .cb-actions form, .cookie-banner .cb-actions .btn { flex: 1; } .cookie-banner .cb-prefs { grid-row: auto; } }
.site-foot .cookie-reset { display: inline; margin: 0; }
.site-foot .cookie-reset button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.site-foot .cookie-reset button.link:hover { text-decoration: underline; }

/* global admin: confirm a two-step code */
.stepup { max-width: 440px; margin: 48px auto; }
.stepup h1 { display: flex; align-items: center; gap: 10px; font-size: 22px; }

/* registration closed by a global admin */
.reg-closed { text-align: center; padding: 8px 0; }
.reg-closed .btn { justify-self: center; }
