/* Layout: fixed left nav + one content column; phone width swaps to a bottom-tab mobile app. */
:root {
  --bg: #ffffff;
  --chrome: #f6f6f3;
  --hover: #f2f2ee;
  --divider: #ebebe6;
  --selected: #e7e7e1;
  --border: #dcdcd5;
  --text: #1c1c1a;
  --text-2: #5c5c57;
  --text-3: #8a8a84;
  --text-4: #b4b4ad;
  --action: #3f6dbb;
  --action-press: #335a9c;
  --action-tint: #eaf0fa;
  --brand: #1d6a4d;
  --brand-tint: #e5f1eb;
  --good: #1f7f47;
  --good-tint: #e6f3eb;
  --warn: #9a6408;
  --warn-tint: #fbf0da;
  --bad: #be3a30;
  --bad-tint: #fbe8e6;
  --money: #f3c63f;
  --airbnb: #eb6834;
  --booking: #2a78d6;
  --direct: #1baf7a;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --tile-1: #e3efe8;
  --tile-2: #e6ecf7;
  --tile-3: #f6eadf;
  --tile-ink-1: #1d6a4d;
  --tile-ink-2: #34589a;
  --tile-ink-3: #92582a;
  --shadow: 0 8px 28px rgba(28, 28, 26, .14), 0 1px 3px rgba(28, 28, 26, .08);
  --phone-bezel: #1c1c1a;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  color-scheme: light;
}
:root[data-app-theme="dark"] {
  --bg: #171716; --chrome: #1f1f1d; --hover: #252523; --divider: #2c2c29; --selected: #31312e; --border: #3a3a36;
  --text: #efefea; --text-2: #b9b9b1; --text-3: #8c8c85; --text-4: #5f5f59;
  --action: #6f97dd; --action-press: #86a8e4; --action-tint: #1f2b40;
  --brand: #4fb58a; --brand-tint: #1b2c24;
  --good: #4cc07e; --good-tint: #18291f; --warn: #e0a33a; --warn-tint: #2f2512; --bad: #ef7b70; --bad-tint: #341b19;
  --airbnb: #d95926; --booking: #3987e5; --direct: #199e70; --series-1: #3987e5; --series-2: #d95926;
  --tile-1: #1d2c25; --tile-2: #1f2635; --tile-3: #33271c; --tile-ink-1: #7fcfaa; --tile-ink-2: #9db8ea; --tile-ink-3: #e0aa7a;
  --shadow: 0 8px 28px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
  --phone-bezel: #050505;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--action); text-decoration: none; }
.num, td.r, .kpi-v { font-variant-numeric: tabular-nums; }
.ic { width: 16px; height: 16px; stroke-width: 1.5; flex: none; }
svg.lucide { width: 16px; height: 16px; stroke-width: 1.5; flex: none; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12px; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100%; }
.nav { background: var(--chrome); border-right: 1px solid var(--divider); display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 16px; height: 16px; color: #fff; stroke-width: 2; }
.ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 10px; border-radius: var(--r); font-size: 13px; color: var(--text-2); }
.nav-sec { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 14px 8px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: var(--r-sm); color: var(--text-2); cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: var(--hover); }
.nav-item.on { background: var(--selected); color: var(--text); font-weight: 550; }
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nav-item .count.alert { color: var(--bad); font-weight: 600; }
.nav-foot { margin-top: auto; padding-top: 12px; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; }
.topbar { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 24px; border-bottom: 1px solid var(--divider); }
.search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; background: var(--chrome); border-radius: var(--r); width: 300px; color: var(--text-3); }
.search input { border: 0; background: none; outline: none; width: 100%; color: var(--text); }
.content { flex: 1; overflow-y: auto; padding: 24px 28px 60px; }
.page { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page.wide { max-width: none; }
.ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 36px; }
.ph h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.ph h1.greet { font-size: 28px; font-weight: 400; }
.ph .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
h3 { font-size: 13px; font-weight: 600; margin: 0; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg); cursor: pointer; white-space: nowrap; font-weight: 500; }
.btn:hover { background: var(--hover); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 48px; font-size: 15px; padding: 0 20px; }
.btn.primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn.primary:hover { background: var(--action-press); }
.btn.ghost { border-color: transparent; background: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger-text { color: var(--bad); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.seg { display: inline-flex; background: var(--chrome); border-radius: var(--r); padding: 2px; gap: 2px; }
.seg button { height: 28px; padding: 0 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.seg button.on { background: var(--bg); color: var(--text); font-weight: 550; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--divider); overflow-x: auto; }
.tabs button { height: 36px; padding: 0 10px; border: 0; background: none; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--text); font-weight: 550; }
.tabs button .count { color: var(--text-3); margin-left: 4px; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.input, select.input, textarea.input { height: 36px; border: 1px solid var(--border); border-radius: var(--r); padding: 0 10px; background: var(--bg); width: 100%; outline: none; }
textarea.input { height: auto; min-height: 92px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-tint); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.choice button { min-height: 44px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px; text-align: left; }
.choice button.on { border-color: var(--action); background: var(--action-tint); box-shadow: inset 0 0 0 1px var(--action); }
.upload { border: 1px dashed var(--border); border-radius: var(--r); min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); cursor: pointer; padding: 10px; position: relative; overflow: hidden; }
.upload:hover { background: var(--hover); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload img { max-height: 120px; border-radius: 6px; }
.switch { width: 32px; height: 18px; border-radius: 9px; background: var(--border); position: relative; border: 0; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .15s; }
.switch.on { background: var(--action); }
.switch.on::after { left: 16px; }

/* ---------- Chips & pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; background: var(--chrome); color: var(--text-2); white-space: nowrap; }
.chip.good { background: var(--good-tint); color: var(--good); }
.chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip.bad { background: var(--bad-tint); color: var(--bad); }
.chip.info { background: var(--action-tint); color: var(--action); }
.chip.outline { background: none; border: 1px solid var(--border); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.idle { background: var(--text-4); }
.dot.airbnb { background: var(--airbnb); } .dot.booking { background: var(--booking); } .dot.direct { background: var(--direct); }
.pay { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.pay b { font-weight: 600; color: var(--text); }
.pay-logo { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #1c1c1a; flex: none; }
.pay-logo.tmoney { background: #ffd23f; }
.pay-logo.flooz { background: #7ed1f0; }
.pay-logo.cash { background: var(--good-tint); color: var(--good); }
.pay-logo.virement { background: var(--action-tint); color: var(--action); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--tile-2); color: var(--tile-ink-2); flex: none; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.tile { width: 36px; height: 36px; border-radius: var(--r); display: grid; place-items: center; flex: none; }
.tile svg { width: 18px; height: 18px; }
.tile.t1 { background: var(--tile-1); color: var(--tile-ink-1); }
.tile.t2 { background: var(--tile-2); color: var(--tile-ink-2); }
.tile.t3 { background: var(--tile-3); color: var(--tile-ink-3); }

/* ---------- Surfaces ---------- */
.card { border: 1px solid var(--divider); border-radius: var(--r-lg); background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.card-h .actions { margin-left: auto; display: flex; gap: 6px; }
.cols { display: grid; gap: 16px; }
.cols.c2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cols.c2e { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 16px; border: 1px solid var(--divider); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-l { font-size: 12px; color: var(--text-2); }
.kpi-v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.kpi-s { font-size: 12px; color: var(--text-3); }
.kpi-s.bad { color: var(--bad); }
.meter { height: 6px; border-radius: 3px; background: var(--chrome); overflow: hidden; display: flex; gap: 2px; }
.meter i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.meter i.warn { background: var(--warn); }
.meter i.bad { background: var(--bad); }
.meter i.act { background: var(--series-1); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--warn-tint); color: var(--text); }
.banner.info { background: var(--action-tint); }
.banner .ic, .banner svg { color: var(--warn); }
.banner.info svg { color: var(--action); }

/* ---------- Tables / rows ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 12px; font-weight: 500; color: var(--text-2); text-align: left; padding: 8px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.tbl td { padding: 0 8px; height: 44px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--hover); }
.tbl th.r, .tbl td.r { text-align: right; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--divider); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li.click { cursor: pointer; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--r-sm); }
.li.click:hover { background: var(--hover); }
.li .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .s { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .stack { flex: 1; gap: 1px; }
.sev { width: 3px; align-self: stretch; border-radius: 2px; flex: none; background: var(--text-4); }
.sev.bad { background: var(--bad); } .sev.warn { background: var(--warn); } .sev.info { background: var(--action); }
.score { display: flex; align-items: center; gap: 8px; }
.score .meter { width: 56px; }
.empty { text-align: center; padding: 32px 16px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* ---------- Unit grid ---------- */
.floors { display: flex; flex-direction: column; gap: 8px; }
.floor { display: grid; grid-template-columns: 44px repeat(6, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.floor.f4 { grid-template-columns: 44px repeat(4, minmax(0, 1fr)); }
.floor-l { font-size: 12px; color: var(--text-3); display: flex; align-items: center; }
.unit { border: 1px solid var(--divider); border-radius: var(--r); padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; background: var(--bg); position: relative; }
.unit:hover { border-color: var(--border); background: var(--hover); }
.unit .code { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.unit .who { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit .typ { font-size: 11px; color: var(--text-3); }
.unit.vacant { border-style: dashed; background: none; }
.unit.late { box-shadow: inset 3px 0 0 var(--bad); }
.unit.partial { box-shadow: inset 3px 0 0 var(--warn); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- Kanban ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--chrome); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.col-h { display: flex; align-items: center; gap: 8px; font-weight: 550; font-size: 13px; padding: 2px 4px 4px; }
.col-h .count { color: var(--text-3); font-weight: 400; }
.wcard { background: var(--bg); border: 1px solid var(--divider); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.wcard:hover { border-color: var(--border); }
.wcard .t { font-weight: 500; line-height: 1.35; }

/* ---------- Photos (placeholders) ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photo { aspect-ratio: 4/3; max-width: 100%; border-radius: var(--r); background: linear-gradient(135deg, var(--tile-3), var(--chrome)); display: flex; flex-direction: column; justify-content: space-between; padding: 8px; color: var(--tile-ink-3); position: relative; overflow: hidden; }
.photo.after { background: linear-gradient(135deg, var(--tile-1), var(--chrome)); color: var(--tile-ink-1); }
.photo svg { width: 22px; height: 22px; opacity: .7; }
.photo .cap { font-size: 11px; color: var(--text-2); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .tag { position: relative; z-index: 1; align-self: flex-start; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Timeline ---------- */
.tl { display: flex; flex-direction: column; }
.tl-i { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tl-i::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 1px; background: var(--divider); }
.tl-i:last-child::before { display: none; }
.tl-i .dot { margin-top: 5px; background: var(--text-4); }
.tl-i .dot.act { background: var(--action); }

/* ---------- Calendar timeline ---------- */
.cal-wrap { overflow-x: auto; border: 1px solid var(--divider); border-radius: var(--r-lg); }
.cal { display: grid; min-width: 980px; position: relative; }
.cal-h, .cal-r { display: grid; grid-template-columns: 170px repeat(var(--days), minmax(24px, 1fr)); }
.cal-h { border-bottom: 1px solid var(--divider); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.cal-h div { font-size: 11px; color: var(--text-3); text-align: center; padding: 6px 0; line-height: 1.2; }
.cal-h div.we { background: var(--chrome); }
.cal-h div.today { color: var(--action); font-weight: 700; }
.cal-h .lbl, .cal-r .lbl { text-align: left; padding: 8px 12px; border-right: 1px solid var(--divider); }
.cal-r { border-bottom: 1px solid var(--divider); position: relative; height: 52px; }
.cal-r:last-child { border-bottom: 0; }
.cal-r .lbl { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.cal-r .cell { border-right: 1px solid var(--divider); opacity: .6; }
.cal-r .cell.we { background: var(--chrome); }
.bk { position: absolute; top: 10px; height: 32px; border-radius: 6px; color: #fff; font-size: 12px; padding: 0 8px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; cursor: pointer; border: 2px solid var(--bg); z-index: 1; }
.bk.airbnb { background: var(--airbnb); } .bk.booking { background: var(--booking); } .bk.direct { background: var(--direct); }
.bk.new { animation: pop .6s ease; box-shadow: 0 0 0 2px var(--text); }
.bk .n { opacity: .85; }
.today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--action); z-index: 3; pointer-events: none; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Drawer / modal / toast / tooltip ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 20, 18, .28); z-index: 40; animation: fade .15s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); z-index: 41; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slide .2s ease; padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px); }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--divider); }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.drawer-f { padding: 12px 20px; border-top: 1px solid var(--divider); display: flex; gap: 8px; justify-content: flex-end; }
.modal { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: calc(100% - 48px); background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: fade .15s ease; }
.modal .drawer-b { gap: 14px; }
.toasts { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--r); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; max-width: 420px; animation: up .2s ease; }
.toast svg { color: var(--money); }
.tip { position: fixed; z-index: 70; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12px; padding: 6px 9px; border-radius: 6px; max-width: 260px; line-height: 1.4; box-shadow: var(--shadow); }
.tip b { font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; }
.months { display: flex; gap: 4px; }
.months span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--text-3); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.months i { width: 100%; height: 8px; border-radius: 3px; background: var(--chrome); display: block; }
.months i.good { background: var(--good); } .months i.warn { background: var(--warn); } .months i.bad { background: var(--bad); }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .grid { stroke: var(--divider); stroke-width: 1; }
.chart .bar1 { fill: var(--series-1); }
.chart .bar2 { fill: var(--series-2); }
.chart .target { stroke: var(--text); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: var(--hover); opacity: .6; }
.lgd { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.lgd span { display: inline-flex; align-items: center; gap: 6px; }
.lgd i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.lgd i.line { height: 2px; width: 14px; border-radius: 1px; background: var(--text); }
.spark { display: block; }
.spark rect { fill: var(--text-4); }
.spark rect.hi { fill: var(--bad); }
.spark rect.last { fill: var(--text-2); }

/* ---------- Phones ---------- */
.phones { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-cap { text-align: center; }
.phone-cap b { display: block; font-weight: 600; }
.phone { width: 300px; height: 630px; border-radius: 44px; background: var(--phone-bezel); padding: 10px; box-shadow: var(--shadow); position: relative; flex: none; }
.phone .scr { width: 100%; height: 100%; border-radius: 34px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; position: relative; font-size: 13px; }
.phone .sb { height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px; font-weight: 600; }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; background: var(--phone-bezel); border-radius: 14px; z-index: 5; }
.m-app { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--bg); }
.m-head { padding: 6px 16px 10px; display: flex; align-items: center; gap: 10px; flex: none; }
.m-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.m-body { flex: 1; overflow-y: auto; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.m-tabs { display: flex; border-top: 1px solid var(--divider); flex: none; background: var(--bg); padding-bottom: 6px; }
.m-tabs button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; font-size: 10px; color: var(--text-3); cursor: pointer; }
.m-tabs button svg { width: 20px; height: 20px; }
.m-tabs button.on { color: var(--action); font-weight: 600; }
.m-card { border: 1px solid var(--divider); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.m-big { font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m-sec { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.m-body .btn { min-height: 44px; }
.m-body .btn.sm { min-height: 36px; height: 36px; }
.m-body .input { height: 44px; }
.m-notif { position: absolute; top: 40px; left: 8px; right: 8px; z-index: 6; background: var(--chrome); border: 1px solid var(--divider); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: drop .35s cubic-bezier(.2, .9, .3, 1.2); }
.m-notif .logo-mark { width: 24px; height: 24px; flex: none; }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
.sms-thread { display: flex; flex-direction: column; gap: 8px; }
.sms-meta { text-align: center; font-size: 11px; color: var(--text-3); }
.sms { background: var(--chrome); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 13px; line-height: 1.45; max-width: 92%; word-wrap: break-word; }
.sms a { text-decoration: underline; cursor: pointer; }

/* Tenant payment page */
.paypage { display: flex; flex-direction: column; gap: 14px; }
.paypage .amount { font-size: 32px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.op { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-lg); cursor: pointer; background: var(--bg); width: 100%; text-align: left; min-height: 56px; }
.op.on { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); background: var(--action-tint); }
.op .pay-logo { width: 32px; height: 32px; font-size: 11px; border-radius: 8px; }
.check { width: 56px; height: 56px; border-radius: 50%; background: var(--good-tint); color: var(--good); display: grid; place-items: center; margin: 8px auto 0; }
.check svg { width: 28px; height: 28px; stroke-width: 2; }
.standalone { min-height: 100%; display: flex; justify-content: center; background: var(--chrome); padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.standalone .sheet { width: 100%; max-width: 420px; background: var(--bg); border-radius: var(--r-lg); padding: 20px; align-self: flex-start; border: 1px solid var(--divider); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--divider); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.plan.feat { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.plan .price { font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); }
.plan li svg { color: var(--good); margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols.c2 { grid-template-columns: minmax(0, 1fr); }
  .search { width: 200px; }
}
@media (max-width: 900px) {
  .cols.c3, .cols.c2e, .plans { grid-template-columns: minmax(0, 1fr); }
}
/* full-screen mobile app */
.mobile-root { height: 100%; display: flex; flex-direction: column; }
.mobile-root .m-app { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.mobile-root .m-tabs { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.mobile-root .m-head { padding-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Map of scattered properties ---------- */
.map { position: relative; width: 100%; aspect-ratio: 100 / 52; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--chrome); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg .m-land { fill: var(--chrome); }
.map-svg .m-sea { fill: var(--tile-2); }
.map-svg .m-road { fill: none; stroke: var(--bg); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-width: 7px; stroke-linecap: round; }
.map-svg .m-road.thin { stroke-width: 4px; }
.map-tag { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--text-3); }
.pin { position: absolute; transform: translate(-9px, -9px); display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; z-index: 1; }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--pin); box-shadow: 0 0 0 3px var(--bg), 0 2px 6px rgba(0, 0, 0, .25); flex: none; }
.pin-l { background: var(--bg); border: 1px solid var(--divider); border-radius: 6px; font-size: 11px; padding: 2px 6px; white-space: nowrap; color: var(--text); font-weight: 500; }
.pin:hover .pin-l { border-color: var(--border); }

/* ---------- Payout flow ---------- */
.flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flow-step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
.flow-arrow { color: var(--text-3); }

tr.fresh td { background: var(--good-tint); }
.chart .hit { pointer-events: all; }
