/* Malo — mobile first (375 px), widened for tablets and computers. Patterns after Money Manager (docs/UI-ANALYSIS.md). */
:root {
  /* 0.14.0 visual refresh (SDD D42, UI-ANALYSIS section 17): one set of tokens for colour, type, space, radius and shadow */
  /* 0.35.1 brand (business brief 09, B2): the primary tokens keep their old names (--green*) so that no rule changes;
     they now hold night blue and its tints. Clay is an accent only, never an alert (alerts stay --bad). */
  --green: #1f2a44; --green-2: #34456b; --green-50: #eef0f5; --green-100: #d9deea;
  --navy: #1f2a44; --clay: #c65d3b; --clay-light: #e07a5a; --clay-50: #fbefea;
  --bg: #f4f5f3; --card: #fff; --ink: #17211b; --muted: #5b665f; --faint: #8a948d; --line: #e3e7e3; --line-2: #d4dad5;
  --bad: #c2362f; --bad-bg: #fdecea; --due: #9a5b00; --due-bg: #fff2d9; --paid: #2558b8; --paid-bg: #e9f0fc; --area: #2e7a52;
  --radius: 14px; --radius-s: 10px; --tap: 44px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 1px 3px rgba(16, 24, 20, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 20, .12), 0 2px 6px rgba(16, 24, 20, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* chart series: categorical slots in fixed order (dataviz reference palette, validated for colour-blind separation) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s-other: #9aa19c;
}
@font-face { font-family: "Inter"; src: url("/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }
.hidden { display: none !important; }  /* 0.30.1: fields kept in a form but not shown */
a { color: var(--green); }
h1, h2, h3 { margin: 0; }
h2 { font-size: 1rem; }
small { color: var(--muted); }

/* top bar */
#topbar { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: .25rem; height: 56px; padding: 0 .4rem;
  background: var(--green); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
#topbar h1 { font-size: 1.1rem; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#topbar .icon { color: #fff; font-size: 1.5rem; }
.top-link { color: #fff; text-decoration: none; font-weight: 600; padding: .6rem .8rem; }
button.icon { min-width: var(--tap); min-height: var(--tap); border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: inherit; padding: 0; }

/* drawer (menu button) */
#drawer { position: fixed; z-index: 1001; top: 0; bottom: 0; left: 0; width: min(300px, 85vw); background: #fff; display: flex; flex-direction: column;
  box-shadow: 2px 0 12px rgba(0,0,0,.2); padding-bottom: var(--safe-b); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#drawer > * { flex-shrink: 0; }  /* 0.52.1 (F-103a): a long menu scrolls on a phone; Sign out stays reachable */
.drawer-head { background: var(--green); color: #fff; padding: 1.2rem 1rem; display: flex; flex-direction: column; }
.drawer-head small { color: #e2efe4; }
#drawer a, #drawer > button { display: block; padding: .9rem 1rem; text-decoration: none; color: var(--ink); border: 0; background: none; text-align: left; font: inherit; min-height: var(--tap); }
#drawer a.on { background: #eef0f5; font-weight: 600; }
#drawer > button { margin-top: auto; color: var(--bad); border-top: 1px solid var(--line); cursor: pointer; }
#scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1000; }

/* content */
#view { padding: .75rem .75rem calc(150px + var(--safe-b)); max-width: 760px; margin: 0 auto; } /* room for the tab bar and the round + (0.7.0) */
.loading { color: var(--muted); padding: 2rem 0; text-align: center; }
.greet { margin: .2rem 0 .6rem; font-size: 1.15rem; font-weight: 600; }
.block { background: var(--card); border-radius: var(--radius); padding: .8rem; margin: .75rem 0; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.block > h2, .block-head h2 { margin-bottom: .4rem; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.empty-line { color: var(--muted); margin: .3rem 0; font-size: .92rem; }
.empty { text-align: center; padding: 3rem 1rem; }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0; }
.warn { background: #fff4d6; border-left: 4px solid #d9a400; padding: .5rem .7rem; font-size: .88rem; border-radius: 4px; }
.err { color: var(--bad); font-weight: 600; min-height: 1em; }
.bad { color: var(--bad) !important; }
.due { color: var(--due); }
.paid { color: var(--paid); }
.small-link { font-size: .88rem; }

/* summary strip (P1, P5) */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.strip-cell { background: var(--card); padding: .6rem .7rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.strip-cell strong { font-size: 1.1rem; }
.strip-note { color: var(--muted); font-size: .72rem; }  /* 0.34.1 (F-5) */
.name-ask { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; } .name-ask .what { flex: 1; display: flex; flex-direction: column; }
.strip-cell.bad strong { color: var(--bad); } .strip-cell.due strong { color: var(--due); } .strip-cell.paid strong { color: var(--paid); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .75rem; }
.stat { background: var(--card); border-radius: var(--radius); padding: .7rem .5rem; text-align: center; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.stat strong { display: block; font-size: 1.35rem; color: var(--green); }
.stat small { font-size: .78rem; }

/* compact rows (P4): date left, description, amount right */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: .6rem; min-height: var(--tap); padding: .45rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:last-child { border-bottom: 0; }
.row .when { width: 4.4rem; flex: none; font-size: .82rem; color: var(--muted); }
.row .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .what strong { font-weight: 600; font-size: .95rem; }
.row .what small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-weight: 700; white-space: nowrap; }
.row .chev { color: var(--muted); font-size: 1.3rem; }
.row.struck .amt, .row.struck .what small { text-decoration: line-through; opacity: .6; }
.row-btn { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: var(--tap); padding: .7rem .5rem; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; cursor: pointer; }

/* property cards */
.cards { display: grid; gap: .6rem; }
.pcard { display: flex; flex-direction: column; gap: .1rem; background: var(--card); border-radius: var(--radius); padding: .8rem; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 4px solid var(--green); }
.pcard:active { background: #f3f4f8; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pcard .money { color: var(--paid); }
.chip { background: #eef0f5; color: var(--green); font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.chip.big { font-size: .85rem; }

/* property page */
.hero { background: var(--card); border-radius: var(--radius); padding: .8rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .8rem; margin: .6rem 0 0; font-size: .92rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.notes { white-space: pre-wrap; font-size: .92rem; }
.minimap { height: 240px; border-radius: 8px; margin-top: .4rem; }
.fullmap { height: calc(100vh - 56px - 64px - var(--safe-b)); margin: -.75rem; }
.screen-map { padding: .75rem !important; max-width: none !important; }
.ob { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; margin: .5rem 0; }
.ob.closed { opacity: .65; }
.ob-head small { display: block; }
.ob-figs { display: flex; gap: 1.2rem; margin: .4rem 0; }
.ob-figs span { display: flex; flex-direction: column; } .ob-figs small { font-size: .75rem; }
.bar { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; margin: .2rem 0 .3rem; }
.bar i { display: block; height: 100%; background: var(--paid); }
.ob-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.pays summary { cursor: pointer; font-size: .88rem; color: var(--green); padding: .4rem 0; min-height: var(--tap); display: flex; align-items: center; }
.timeline { list-style: none; margin: .3rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 .9rem .6rem; }
.timeline li::before { content: ""; position: absolute; left: -1.42rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%; background: #c5cdc7; border: 2px solid #fff; }
.timeline li.current::before { background: var(--green); }
.tl-head { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; }
.timeline p { margin: .2rem 0; font-size: .92rem; white-space: pre-wrap; }
.photos { display: flex; gap: .4rem; overflow-x: auto; padding: .3rem 0; }
.photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; display: block; background: #eee; }
.photo-wrap { position: relative; flex: none; }
.photo-more { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 0; font-size: 1rem; line-height: 1; }
.file-box .btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.file-box button.danger { margin-top: 0; }
.bin-link { margin-top: .4rem; }
.tl-actions { display: flex; gap: .5rem; align-items: center; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.beacons-ro { width: 100%; border-collapse: collapse; font-size: .88rem; }
.beacons-ro th, .beacons-ro td { text-align: left; padding: .3rem .2rem; border-bottom: 1px solid var(--line); }

/* buttons and forms */
button, .button { min-height: var(--tap); padding: .5rem 1rem; border: 1px solid var(--green); background: #fff; color: var(--green); border-radius: 10px;
  cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button.primary, .button.primary { background: var(--green); color: #fff; }
button.danger { border-color: var(--bad); color: var(--bad); margin-top: 1rem; }
button.small, label.small { min-height: 36px; padding: .3rem .75rem; font-size: .85rem; border-radius: 999px; border: 1px solid var(--green); color: var(--green); background: #fff; font-weight: 600; display: inline-flex; align-items: center; cursor: pointer; }
button.small.primary { background: var(--green); color: #fff; }
button.link { border: 0; color: var(--muted); }
button.icon.small { min-height: 36px; min-width: 36px; border: 0; color: var(--muted); }
.wide { width: 100%; }
button:disabled { opacity: .5; }
label { display: block; margin: .55rem 0; font-size: .88rem; color: #39443c; }
input, select, textarea { display: block; width: 100%; min-height: var(--tap); padding: .55rem .6rem; margin-top: .2rem; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #c9cfca; border-radius: 8px; background: #fff; }
textarea { min-height: 4.5rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9cc9a6; outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: end; }
.card { background: var(--card); border-radius: var(--radius); padding: 1rem; }
.edit h2 { margin-top: 1.2rem; }
.beacon { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1fr) 32px 28px; gap: .25rem; align-items: center; margin: .3rem 0; }
.beacon input { min-height: 40px; padding: .3rem; margin: 0; font-size: 14px; }
.beacon .icon { min-width: 28px !important; }
.beacon .icon { min-width: 36px; min-height: 36px; }
#metrics { font-weight: 600; } #metrics.err { color: var(--bad); }

/* tabs, chips, calendar, bars (P5, P9) */
.tabs { display: flex; margin: .75rem 0 .2rem; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.tabs a { flex: 1; text-align: center; padding: .7rem 0; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; min-height: var(--tap); }
.tabs a.on { color: var(--green); border-bottom-color: var(--green); }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 0; }
.chip-btn { min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid #c9cfca; color: var(--ink); background: #fff; font-size: .85rem; white-space: nowrap; font-weight: 500; }
.chip-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.chips + div { background: var(--card); border-radius: var(--radius); padding: 0 .8rem; }
.cal-wrap { background: var(--card); border-radius: var(--radius); padding: .6rem; margin-top: .6rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: .3rem; }
.cal > b { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; padding: .2rem 0; }
.cal button { min-height: 58px; padding: .15rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; font-weight: 400; overflow: hidden; }
.cal button span { font-size: .8rem; text-align: left; }
.cal button i { font-style: normal; font-size: .62rem; font-weight: 700; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal button.today { border-color: var(--green); border-width: 2px; }
.cal button.sel { background: #eef0f5; }
i.bad { color: var(--bad); font-style: normal; } i.due { color: var(--due); font-style: normal; } i.paid { color: var(--paid); font-style: normal; }
.legend { font-size: .78rem; color: var(--muted); }
.legend i { font-weight: 700; }
.cal-detail h3 { font-size: .95rem; margin: .8rem 0 .2rem; }
.hbar { margin: .5rem 0; }
.hbar-label { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.hbar-label b { font-weight: 600; white-space: nowrap; font-size: .82rem; }
.hbar-track { display: flex; height: 12px; background: #eef0ee; border-radius: 6px; overflow: hidden; margin-top: .2rem; }
.hbar-track i { display: block; height: 100%; }
.hbar-track i.paid { background: var(--paid); } .hbar-track i.due { background: #f0b44c; } .hbar-track i.area { background: var(--area); }
.legend i::before { content: "■ "; }

/* "+" button (P3) and tab bar (P11) */
#fab { position: fixed; z-index: 950; right: 1rem; bottom: calc(76px + var(--safe-b)); width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--bad); color: #fff; font-size: 2rem; font-weight: 400; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.25); padding: 0; }
#tabbar { position: fixed; z-index: 940; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
#tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; text-decoration: none; color: var(--muted); font-size: .72rem; }
#tabbar a span { font-size: 1.25rem; filter: grayscale(1); opacity: .7; }
#tabbar a.on { color: var(--green); font-weight: 700; }
#tabbar a.on span { filter: none; opacity: 1; }

/* bottom sheet for records */
#sheet { position: fixed; z-index: 1002; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; justify-content: center; }
.sheet-body { width: 100%; max-width: 560px; background: #fff; border-radius: 16px 16px 0 0; overflow-y: auto; padding: .4rem 1rem calc(1rem + var(--safe-b)); box-shadow: 0 -4px 18px rgba(0,0,0,.2); }
.sheet-head { position: sticky; top: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; z-index: 1; }
.sheet-head h2 { font-size: 1.05rem; }
.sheet-form .primary.wide { margin-top: .8rem; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-bottom: .5rem; }
.action { flex-direction: column; align-items: flex-start; gap: .1rem; min-height: 86px; border: 1px solid var(--line); border-radius: 12px; padding: .6rem; color: var(--ink); font-size: 1.3rem; text-align: left; font-weight: 400; }
.action span { font-size: .95rem; font-weight: 700; }
.action small { font-size: .74rem; line-height: 1.25; }
#toast { position: fixed; z-index: 1100; left: 50%; transform: translateX(-50%); bottom: calc(150px + var(--safe-b)); background: #263028; color: #fff; padding: .6rem 1rem; border-radius: 10px; font-size: .9rem; max-width: 90vw; }
.radio { display: flex; gap: .7rem; align-items: flex-start; padding: .4rem 0; font-size: .95rem; color: var(--ink); }
.radio input { width: 22px; min-height: 22px; margin-top: .15rem; flex: none; }
.radio span { display: flex; flex-direction: column; }

/* sign-in */
#auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; background: linear-gradient(160deg, #1f2a44, #34456b); }
#auth .card { width: 100%; max-width: 400px; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.brand { color: var(--green); font-size: 2rem; }
#auth h2 { margin: 1rem 0 .3rem; }
.links { display: flex; flex-wrap: wrap; gap: .8rem; }
.links a { padding: .4rem 0; }

/* wider screens */
@media (min-width: 700px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .minimap { height: 320px; }
  .actions { grid-template-columns: repeat(3, 1fr); }
  #sheet { align-items: center; top: 0; }
  .sheet-body { border-radius: 16px; max-height: 90vh; }
}
@media (min-width: 1000px) {
  #view { max-width: 980px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.map-note { background: rgba(255,255,255,.92); padding: .35rem .6rem; border-radius: 8px; font-size: .8rem; color: var(--ink); text-decoration: none; }
.pin-label { font-weight: 600; }
/* 0.48.1 (P396 to P398): navy pins with a white ring, white rounded labels, beacon tags, the district's name, the plot card */
.map-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); box-sizing: border-box; cursor: pointer; }
.map-pin:focus-visible { outline: 3px solid #ffd84d; outline-offset: 2px; }
.leaflet-tooltip.pin-label { background: #fff; border: 0; border-radius: 99px; padding: 2px 9px; box-shadow: 0 1px 3px rgba(0,0,0,.25); color: var(--ink); }
.leaflet-tooltip.pin-label::before, .leaflet-tooltip.bcn-label::before, .leaflet-tooltip.dist-title::before { display: none; }
.leaflet-tooltip.bcn-label { background: #fff; border: 0; border-radius: 9px; padding: 0 6px; font-size: .72rem; box-shadow: 0 1px 2px rgba(0,0,0,.25); color: var(--ink); }
.leaflet-tooltip.dist-title { background: transparent; border: 0; box-shadow: none; color: #1f5a3d; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.map-plotcard { background: #fff; border-radius: 12px; padding: .6rem .75rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); max-width: 330px; margin-bottom: .4rem !important; }
.fullmap.at-plot .map-notes { display: none; }
.map-back { white-space: nowrap; }
.map-plotcard strong { display: block; font-size: .95rem; }
.map-plotcard small { display: block; color: var(--muted); margin: .1rem 0 .4rem; }
.map-plotcard .button { display: inline-block; text-decoration: none; }

/* GPS capture (FR-8, FR-9) */
#sync-badge { display: block; background: #fff4e0; color: var(--due); text-align: center; font-size: .85rem; padding: .35rem; text-decoration: none; font-weight: 600; }
.gps-live { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: 1.05rem; }
.gps-live .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.gps-live strong { font-size: 1.5rem; }
.gps-live.good .dot { background: #2e9e4f; } .gps-live.ok .dot { background: var(--due); } .gps-live.poor .dot { background: var(--bad); }
.gps-live.good strong, strong.good { color: #2e7d43; } .gps-live.ok strong, strong.ok { color: var(--due); } .gps-live.poor strong, strong.poor { color: var(--bad); }
.warn-chip { background: #fff4e0; color: var(--due); display: inline-block; margin-top: .4rem; white-space: normal; }
.big-btn { width: 100%; min-height: 64px; font-size: 1.15rem; margin-top: .6rem; }
.capture-panel { margin-top: .6rem; display: flex; flex-direction: column; gap: .45rem; }
.capture-panel h3 { margin: 0; }
.capture-panel .bar.good i { background: #2e9e4f; } .capture-panel .bar.poor i { background: var(--bad); }
.chip-btn.done { border-color: #2e9e4f; }
a.button.small { display: inline-flex; align-items: center; margin-top: .5rem; min-height: var(--tap); }
.capture-panel .bar { height: 10px; }
/* keep Leaflet's own stacking (controls at z-index 1000) inside each map, under the top bar, tab bar and sheets */
.minimap, .fullmap { position: relative; z-index: 0; isolation: isolate; }
.row.gp .what small { white-space: normal; }

/* 0.6.0: privacy, terms, sharing, activity (FR-21, FR-24, FR-25) */
label.check { display: flex; align-items: flex-start; gap: .55rem; min-height: var(--tap); margin: .5rem 0; font-size: .92rem; }
label.check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; }
label.check small { display: block; color: var(--muted); font-size: .82rem; }
.banner { background: #eef4ff; border-radius: var(--radius); padding: .6rem .8rem; margin: .6rem 0; font-size: .9rem; }
h3.day { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: .9rem 0 .2rem; }
h3.day:first-child { margin-top: .2rem; }
.row.act { align-items: flex-start; }
.row.act .what strong { font-weight: 500; font-size: .92rem; }
.row.act .what small { white-space: normal; }
.row.act .ico { display: inline-block; width: 1.2rem; color: var(--green); }
.row.act details { font-size: .85rem; margin-top: .2rem; }
ul.changes { margin: .2rem 0 0; padding-left: 1.1rem; word-break: break-word; }
.button.wide, a.button.wide { display: flex; justify-content: center; margin: .75rem 0; }
body.doc-page { background: #fff; }
body.doc-page main { max-width: 46rem; margin: 0 auto; padding: 1rem 1.1rem 3rem; line-height: 1.55; }
body.doc-page h1 { font-size: 1.6rem; margin: .6rem 0 .2rem; }
body.doc-page h2 { font-size: 1.1rem; margin: 1.4rem 0 .3rem; }
body.doc-page li { margin: .3rem 0; }

/* ---------- 0.7.0: search (FR-13), document text and suggestions (FR-12) ---------- */
#search-btn { color: #fff; text-decoration: none; font-size: 1.45rem; line-height: 1; min-width: var(--tap); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; }
#search-btn[hidden] { display: none; }
.searchbar { position: sticky; top: 0; z-index: 5; background: var(--bg, #f4f6f4); padding-bottom: .2rem; }
.searchbar input { width: 100%; font-size: 1.05rem; min-height: var(--tap); padding: .55rem .8rem; border-radius: 999px; border: 1px solid #c9cfca; box-sizing: border-box; }
.result .what small.excerpt { white-space: normal; color: var(--ink); opacity: .85; line-height: 1.35; margin-top: .15rem; }
mark { background: #fde68a; color: inherit; padding: 0 .1em; border-radius: 2px; }
.doc-row { align-items: flex-start; cursor: pointer; }
.doc-row .what small { white-space: normal; }
.tstat { display: inline-block; font-size: .75rem; padding: 0 .45rem; border-radius: 999px; background: #eef2ef; color: var(--muted); margin-left: .3rem; }
.suggest { margin: .35rem 0 .1rem; padding: .45rem .6rem; border-radius: 10px; background: #fff7e0; border: 1px solid #f3dc9b; font-size: .86rem; }
.suggest .btns { display: flex; gap: .4rem; margin-top: .35rem; }
.suggest button { min-height: 36px; }
.ocr-text { white-space: pre-wrap; font-size: .82rem; max-height: 45vh; overflow: auto; background: #f7f8f7; border: 1px solid var(--line); border-radius: 8px; padding: .6rem; }
.found { font-size: .86rem; margin: .4rem 0; }
.found dt { font-weight: 600; } .found dd { margin: 0 0 .3rem; }

/* 0.8.0: focused edit screens (P31) */
button.top-link { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: var(--tap); color: #fff; }
.edit.focus { max-width: 560px; margin: 0 auto; }
.edit.focus > .block:first-child { margin-top: 0; }
body.focus-edit #view { padding-bottom: calc(96px + var(--safe-b)); }
body.focus-edit #tabbar { display: none; }
.beacon-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; padding: .55rem .2rem; }
.beacon-row .when { width: 3rem; color: var(--ink); }
.beacon-row .what span { font-variant-numeric: tabular-nums; font-size: .92rem; }
.metrics { font-size: .9rem; margin: .2rem 0 .5rem; }
.stats-link { margin-top: .75rem; }

/* Stats (P32 to P34) */
.period { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.seg { display: inline-flex; background: #fff; border: 1px solid #c9cfca; border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: none; font: inherit; font-size: .85rem; padding: .35rem .8rem; min-height: 36px; cursor: pointer; color: var(--ink); }
.seg button.on { background: var(--green); color: #fff; font-weight: 600; }
.step { display: flex; align-items: center; gap: .1rem; }
.step strong { min-width: 8.5rem; text-align: center; font-size: .95rem; }
.step button:disabled { opacity: .3; }
.stat-total { display: flex; flex-direction: column; margin-bottom: .6rem; }
.stat-total strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.segbar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--card); margin-bottom: .4rem; }
.segbar i { display: block; min-width: 3px; }
.stat-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; padding: .55rem .1rem; }
.stat-row.open { border-bottom-color: transparent; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.stat-row .amt { font-variant-numeric: tabular-nums; }
.stat-detail { padding: .2rem 0 .8rem 1.4rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.monthbars svg { display: block; max-width: 420px; }
.monthbars .axis { stroke: #c9cfca; stroke-width: 1; }
.monthbars .tick { font-size: 9px; fill: var(--muted); }
.monthbars .bar { cursor: pointer; outline: none; }
.monthbars .bar.sel .tick { fill: var(--ink); font-weight: 700; }
.monthbars .bar.sel path { stroke: var(--ink); stroke-width: 1; }
.bar-read { margin: .1rem 0; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* document preview (P35 to P37) */
#viewer { position: fixed; inset: 0; z-index: 980; background: #1f2421; color: #fff; display: flex; flex-direction: column; outline: none; }
body.viewing { overflow: hidden; }
body.viewing #fab, body.viewing #tabbar { display: none; }
.viewer-head { display: flex; align-items: center; gap: .3rem; height: 56px; padding: 0 .3rem; background: #111512; flex: none; }
.viewer-head .icon { color: #fff; font-size: 1.4rem; }
.viewer-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.viewer-title strong, .viewer-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title small { color: #b9c2bb; font-size: .78rem; }
a.viewer-dl { color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); font-size: 1.4rem; }
.viewer-body { flex: 1; overflow: auto; padding: .75rem; -webkit-overflow-scrolling: touch; }
.viewer-body img { display: block; max-width: 100%; margin: 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: zoom-in; }
.viewer-body img.zoom { max-width: none; cursor: zoom-out; }
.viewer-body .page { margin: 0 auto 1rem; max-width: 900px; }
.viewer-body figcaption { text-align: center; color: #b9c2bb; font-size: .8rem; margin-top: .3rem; }
.viewer-body .loading, .viewer-body .hint, .viewer-body .empty p { color: #d5dcd6; }
.viewer-body .err { color: #ffb4b4; }
.center { text-align: center; }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .3rem .5rem calc(.3rem + var(--safe-b)); background: #111512; flex: none; }
.viewer-foot button { min-height: var(--tap); background: none; border: 1px solid #4a534c; color: #fff; border-radius: 8px; padding: 0 .8rem; font: inherit; font-size: .9rem; cursor: pointer; }
.viewer-foot button:disabled { opacity: .35; cursor: default; }
.viewer-foot span { color: #b9c2bb; font-size: .85rem; }
.viewer-mid { display: flex; align-items: center; gap: .6rem; }

/* map overview (0.9.0, FR-30): a bubble per province with its property count; tap to zoom in */
.prov-bubble { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 700; font-size: 1.05rem; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; }
.prov-bubble:focus-visible { outline: 3px solid #ffd84d; outline-offset: 2px; }
.leaflet-tooltip.prov-label { background: rgba(255,255,255,.92); border: 0; box-shadow: none; font-weight: 600; padding: 1px 6px; color: var(--ink); }
.leaflet-tooltip.prov-label::before { display: none; }
.map-notes { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
ul.plain { list-style: none; margin: .4rem 0 0; padding: 0; }
ul.plain li { padding: .35rem 0; border-top: 1px solid var(--line); }
ul.plain li a { display: block; min-height: 32px; }

/* single sign-on buttons (FR-1a): equal size and weight (Google branding guidelines); brand colours kept */
.or { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; margin: 1rem 0 .6rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
#sso-buttons { display: flex; flex-direction: column; gap: .55rem; }
button.sso { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; font-weight: 600; font-family: Roboto, system-ui, sans-serif; }
button.sso-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
button.sso-facebook { background: #1877f2; color: #fff; border: 1px solid #1877f2; }
.linked-row { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.linked-row .what { flex: 1; min-width: 0; }
.linked-row .what small { display: block; overflow: hidden; text-overflow: ellipsis; }
.status-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; background: var(--muted); }
.status-dot.on { background: var(--green-2); }
h3.sub { font-size: .9rem; margin: 1rem 0 .2rem; color: var(--muted); font-weight: 600; }
.linked-row a.button.small { margin-top: 0; }
small.reminder { display: flex; align-items: center; margin-top: .25rem; }

/* GPS blocked or unavailable (0.10.0) */
.gps-help { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fdf3e2; border: 1px solid #e8c78f; color: #3b2a0c; }
.gps-help strong { display: block; margin-bottom: 4px; }
.gps-help ol { margin: 0; padding-left: 20px; }
.gps-help li { margin: 4px 0; line-height: 1.4; }
.leaflet-tooltip.prov-name { background: transparent; border: 0; box-shadow: none; padding: 0; color: #fff; font-size: 11px; font-weight: 600;
  text-shadow: 0 0 3px #10261a, 0 0 2px #10261a; pointer-events: none; }
.leaflet-tooltip.prov-name::before { display: none; }
/* 0.11.0: charges by year (Stats), weekday rule, delete buttons in edit sheets */
.year-row .what { min-width: 0; }
.year-row .bar { margin: .35rem 0 .2rem; }
.sheet-form button.danger.wide { margin-top: .6rem; }

/* ---------- computer layout (0.12.0; FR-31, SDD D37; UI-ANALYSIS section 15) ----------
   From 1024 px the body gets class "wide" (set in app.js from one media query, so the CSS and the screens agree).
   The phone and tablet layouts below 1024 px are unchanged. */
.wide-only { display: none; }
body.wide .wide-only { display: block; }
body.wide { --side: 232px; }
/* Signed out (0.13.0, Lighton's comment on 0.12.0): no sidebar, top bar or empty screen behind the sign-in card */
body:not(.signed-in) #drawer, body:not(.signed-in) #view, body:not(.signed-in) #sync-badge, body:not(.signed-in) #scrim { display: none !important; }
body.wide.signed-in #drawer[hidden] { display: flex !important; }
body.wide #drawer { width: var(--side); z-index: 950; box-shadow: none; border-right: 1px solid var(--line); overflow-y: auto; }
body.wide .drawer-head { height: 56px; padding: .35rem 1rem; justify-content: center; }
body.wide #drawer a { padding: .6rem 1rem; min-height: 40px; }
body.wide #drawer a:hover { background: #f3f4f8; }
body.wide #drawer hr { border: 0; border-top: 1px solid var(--line); margin: .4rem 0; }
body.wide #drawer > button#side-add { margin: .8rem 1rem .5rem; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; text-align: center; padding: .6rem 1rem; }
body.wide #drawer > button#side-add:hover { background: var(--green-2); }
body.wide #menu-btn, body.wide #tabbar, body.wide #fab { display: none !important; }
body.wide #topbar, body.wide #sync-badge { margin-left: var(--side); }
body.wide #topbar { padding: 0 1rem; }
body.wide #view { --w: 1240px; max-width: var(--w); padding: 1rem 1.5rem 2.5rem;
  margin: 0 0 0 calc(var(--side) + max(0px, (100vw - var(--side) - var(--w)) / 2)); }
body.wide.focus-edit #view { --w: 760px; }
body.wide #view.screen-map { padding: 0 !important; max-width: none !important; margin-left: var(--side); }
/* Home: figures across the top, "Coming up" beside "Needs attention" */
/* Home: the map on the right (0.13.1); "Coming up" beside "Needs attention" when there is room (from 1440 px) */
body.wide .cards { grid-template-columns: repeat(3, 1fr); }
/* list beside detail (Properties) and list beside map (Map) */
.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1rem; align-items: start; }
.pane { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.05); position: sticky; top: calc(56px + 1rem);
  max-height: calc(100vh - 56px - 2rem); overflow-y: auto; }
.pane-head { display: flex; justify-content: space-between; align-items: center; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.pane-row { display: flex; flex-direction: column; padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  border-left: 3px solid transparent; min-height: var(--tap); background: none; border-top: 0; border-right: 0; font: inherit; text-align: left; width: 100%; cursor: pointer; }
.pane-row:hover { background: #f3f4f8; }
.pane-row.on { border-left-color: var(--green); background: #eef0f5; }
.pane-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-main > .hero:first-child, .split-main > .block:first-child { margin-top: 0; }
.map-split { grid-template-columns: 300px minmax(0, 1fr); gap: 0; height: calc(100vh - 56px); }
.map-split .pane { position: static; max-height: none; height: 100%; border-radius: 0; box-shadow: none; border-right: 1px solid var(--line); }
.map-split .fullmap { height: 100%; margin: 0; }
.pane-row .open { font-size: .85rem; align-self: flex-start; }
/* tables with sortable columns (Properties, Money) */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.grid th { text-align: left; border-bottom: 2px solid var(--line); padding: 0; white-space: nowrap; }
table.grid th button { font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; padding: .6rem .6rem; cursor: pointer; min-height: var(--tap); width: 100%; text-align: left; }
table.grid th.num button { text-align: right; }
table.grid th[aria-sort="ascending"] button, table.grid th[aria-sort="descending"] button { color: var(--green); }
table.grid td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid tbody tr { cursor: pointer; }
table.grid tbody tr:hover, table.grid tbody tr:focus { background: #f3f4f8; outline: none; }
table.grid tbody tr:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
table.grid .num { text-align: right; white-space: nowrap; }
table.grid td a { font-weight: 600; text-decoration: none; }
table.grid .bad { color: var(--bad); font-weight: 600; } table.grid .due { color: var(--due); font-weight: 600; } table.grid .paid { color: var(--paid); }
.table-note { margin: .6rem 0 0; }
button.small-link { background: none; border: 0; color: var(--green); cursor: pointer; font: inherit; font-size: .88rem; padding: .3rem 0; min-height: var(--tap); }

/* ---------- guided upload, checklist and tags (0.13.0; FR-32 to FR-34, SDD D38, D40; UI-ANALYSIS section 16) ---------- */
.checklist { border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem .7rem .5rem; margin: 0 0 .8rem; background: #fbfcfb; }
.checklist > summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: var(--tap); cursor: pointer; font-weight: 600; }
.checklist > summary small { font-weight: 500; color: var(--bad); }
.checklist > summary small.ok { color: var(--area); }
.ck-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); }
.ck-icon { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; border: 2px solid #b8c1ba; color: #8a948c; }
.ck-have .ck-icon { background: var(--area); border-color: var(--area); color: #fff; }
.ck-missing .ck-icon { border-color: var(--green); color: var(--green); }
.ck-what { display: flex; flex-direction: column; min-width: 0; }
.ck-what small { color: var(--muted); }
.ck-not_needed .ck-what strong, .ck-later .ck-what strong { color: var(--muted); font-weight: 500; }
.ck-not_needed .ck-what strong { text-decoration: line-through; }
.ck-act { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
button.small.link { border-color: transparent; background: none; color: var(--muted); font-weight: 500; text-decoration: underline; padding: .3rem .4rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0 .1rem; }
.tag { display: inline-flex; align-items: center; gap: .2rem; font: inherit; font-size: .75rem; padding: .15rem .55rem; border-radius: 999px;
  background: #eef1f4; color: #3b4652; border: 1px solid #dde3e8; cursor: pointer; min-height: 28px; }
.tag.own { background: #eef0f5; color: var(--green); border-color: #d9deea; }
.tag-x { border: 0; background: none; color: inherit; font-size: .75rem; cursor: pointer; min-width: 28px; min-height: 28px; padding: 0; }
.tag-add { display: flex; gap: .4rem; margin: .4rem 0 .8rem; }
.tag-add input { flex: 1; min-width: 0; }
.review-row { display: flex; flex-direction: column; gap: .35rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.review-row .what { display: flex; flex-direction: column; min-width: 0; }
.review-row .what strong { overflow-wrap: anywhere; }
.review-type { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.review-type select { flex: 1; min-width: 0; }
.drop-hint { margin: 0 0 .4rem; }
section.block.drop-on { outline: 3px dashed var(--green); outline-offset: 4px; background: #f4f5f9; }
.homemap { height: 230px; border-radius: 8px; background: #eef3ef; position: relative; z-index: 0; isolation: isolate; cursor: default; }
.homemap .leaflet-interactive { cursor: pointer; }
.homemap .prov-bubble { font-size: .9rem; }
@media (min-width: 1440px) { body.wide .docs-split { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 1rem; align-items: start; }
body.wide .docs-split > .checklist { margin: 0; } }
body.wide .review-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
.checklist .bar i { background: var(--area); }
/* phone: the buttons go under the text so the label keeps the width */
body:not(.wide) .ck-row { grid-template-columns: 1.6rem minmax(0, 1fr); }
body:not(.wide) .ck-act { grid-column: 2; justify-content: flex-start; }
.tag-edit h3 { margin-top: 1.2rem; }

/* ====================================================================================================================
   0.14.0 visual refresh (Lighton, November 8, 2026; SDD D42; UI-ANALYSIS section 17, P69 to P76)
   Calm surfaces as in Mercury and Stripe: white cards on a soft grey page, a hairline border plus a faint shadow, one
   radius; Inter with tabular figures; line icons (Lucide) instead of emoji; status as tinted pills (Monzo, Stessa);
   a white top bar and sidebar with the brand green kept for the active item and the main action.
   ==================================================================================================================== */
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
button .ico, .button .ico { margin-right: .4rem; }
button.icon .ico, a.icon .ico, .chev .ico, .row-ico .ico, .action-ico .ico, .brand-mark .ico, .act-ico .ico { margin: 0; }
h1, h2, h3, strong, b { letter-spacing: -.01em; }
h2 { font-size: 1rem; font-weight: 600; }
strong, .amt, .strip-cell strong, .stat strong, table.grid .num { font-variant-numeric: tabular-nums; }

/* top bar: white, ink text; the green stays for actions */
#topbar { background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: none; border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); padding: 0 .35rem; }
#topbar h1 { font-size: 1.05rem; font-weight: 650; }
#topbar .icon, #search-btn { color: var(--ink); font-size: 1.3rem; }
#topbar .icon .ico, #search-btn .ico { width: 22px; height: 22px; }
.top-link, button.top-link { color: var(--green); }

/* menu (phone) and sidebar (computer) */
#drawer { background: #fff; }
.drawer-head { background: #fff; color: var(--ink); flex-direction: row; align-items: center; gap: .7rem; padding: 1.1rem 1rem .9rem; border-bottom: 1px solid var(--line); }
.drawer-head small { color: var(--muted); font-size: .8rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-head strong { font-size: 1.05rem; }
.brand-text { min-width: 0; display: flex; flex-direction: column; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-mark .ico { width: 19px; height: 19px; stroke-width: 2.2; }
#drawer a, #drawer > button { display: flex; align-items: center; gap: .75rem; margin: 1px .5rem; padding: .7rem .75rem; border-radius: var(--radius-s); color: #2f3a33; font-weight: 500; font-size: .95rem; }
#drawer a .ico, #drawer > button .ico { width: 20px; height: 20px; color: var(--faint); margin: 0; }
#drawer a:hover { background: #f3f5f3; }
#drawer a.on { background: var(--green-50); color: var(--green); font-weight: 600; }
#drawer a.on .ico { color: var(--green); }
#drawer > button#logout-btn { margin: auto .5rem .5rem; border-top: 0; color: var(--bad); }
#drawer > button#logout-btn .ico { color: var(--bad); }
#drawer hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 1rem; }
a.plan-badge, #drawer a.plan-badge { margin: .6rem .75rem .2rem; padding: .55rem .75rem; border-radius: var(--radius-s); background: linear-gradient(135deg, #eef0f5, #f6f2e6);
  border: 1px solid var(--green-100); color: var(--green); font-size: .85rem; font-weight: 600; gap: .5rem; text-decoration: none; }
a.plan-badge small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .75rem; }
#drawer a.plan-badge .ico { color: var(--green); width: 17px; height: 17px; }
#drawer a.plan-badge[hidden] { display: none; }

/* cards */
.block, .hero, .stat, .pane, .cal-wrap, .tabs, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.block { padding: 1rem 1.1rem; margin: 1rem 0; }
.block > h2, .block-head h2 { margin-bottom: .5rem; }
.greet { font-size: 1.4rem; font-weight: 650; letter-spacing: -.02em; margin: .4rem 0 .9rem; }
.chips + div { border: 1px solid var(--line); box-shadow: var(--shadow); }

/* figures: separate tiles of equal height (P69) */
.strip { gap: .6rem; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.strip-cell { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .8rem .9rem; gap: .2rem; transition: border-color .15s; }
.strip-cell:hover, .stat:hover { border-color: var(--line-2); }
.strip-cell small, .stat small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.strip-cell strong { font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.stats { gap: .6rem; margin-top: .6rem; }
.stat { padding: .8rem .6rem; }
.stat strong { font-size: 1.45rem; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }

/* rows: icon tile, text, pill, amount (P70) */
.row { gap: .75rem; padding: .6rem 0; }
.row .what strong { font-weight: 600; }
.row .what small { color: var(--muted); font-size: .84rem; }
.row .amt { font-weight: 650; }
.row .chev { color: var(--faint); display: inline-flex; }
.row-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--green-50); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.row-ico .ico { width: 18px; height: 18px; }
.row-ico.bad { background: var(--bad-bg); color: var(--bad); } .row-ico.due { background: var(--due-bg); color: var(--due); }
.due-row .when { width: auto; order: 3; }
.due-row .amt { order: 4; min-width: 5.5rem; text-align: right; }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.due { background: var(--due-bg); color: var(--due); } .pill.paid { background: var(--paid-bg); color: var(--paid); }
.chip { background: var(--green-50); color: var(--green); font-weight: 600; }
.act-ico { display: inline-flex; width: 1.4rem; color: var(--green); vertical-align: -.15em; }
.act-ico .ico { width: 16px; height: 16px; }
.banner { display: flex; align-items: center; gap: .5rem; }

/* property cards (P71): icon tile, name, stage chip */
.pcard { border: 1px solid var(--line); border-left: 1px solid var(--line); box-shadow: var(--shadow); padding: .9rem 1rem; gap: .2rem; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.pcard-top { justify-content: flex-start; gap: .65rem; margin-bottom: .2rem; }
.pcard-top strong { flex: 1; min-width: 0; }
.pcard small { color: var(--muted); }

/* buttons and fields (P72) */
button, .button { border: 1px solid var(--line-2); color: var(--ink); background: #fff; border-radius: var(--radius-s); font-weight: 600; box-shadow: 0 1px 1px rgba(16,24,20,.04); transition: background .15s, border-color .15s; }
button:hover, .button:hover { border-color: #b9c2bb; background: #fafbfa; }
button.primary, .button.primary { background: var(--green); border-color: var(--green); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--green-2); border-color: var(--green-2); }
button.small, label.small { border-color: var(--line-2); color: var(--ink); }
button.small.primary { border-color: var(--green); }
button.danger { border-color: #f0c4c0; color: var(--bad); }
button.icon, button.icon:hover, button.link, .tag-x, .seg button, .cal button.sel { box-shadow: none; }
button.icon:hover { background: rgba(0,0,0,.04); border-color: transparent; }
button.link, button.small.link, button.small-link { background: none; }
input, select, textarea { border: 1px solid var(--line-2); border-radius: var(--radius-s); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(46, 122, 82, .18); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(46, 122, 82, .35); outline-offset: 2px; }
label { color: #3a463e; font-weight: 500; }
.tabs { padding: 4px; gap: 4px; }
.tabs a { border-radius: var(--radius-s); border-bottom: 0; padding: .55rem 0; }
.tabs a.on { background: var(--green-50); }
.seg button.on, .chip-btn.on { background: var(--green); }

/* add sheet (P73): icon tiles */
.action { gap: .35rem; min-height: 96px; border-radius: var(--radius); box-shadow: none; padding: .8rem; }
.action:hover { border-color: var(--green-100); background: #fbfdfc; }
.action-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--green-50); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.action-ico .ico { width: 18px; height: 18px; }
.sheet-body { border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); }
@media (min-width: 700px) { .sheet-body { border-radius: 20px; } }
#sheet-close .ico { width: 20px; height: 20px; }
#scrim { background: rgba(16, 24, 20, .4); }
#toast { background: #17211b; border-radius: 12px; box-shadow: var(--shadow-lg); }

/* phone: tab bar with an active pill behind the icon (Material 3, Monzo), "+" in brand green */
#tabbar { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
#tabbar a { gap: .15rem; font-weight: 500; font-size: .72rem; }
#tabbar a span { filter: none; opacity: 1; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 30px; border-radius: 999px; transition: background .15s; }
#tabbar a span .ico { width: 21px; height: 21px; margin: 0; }
#tabbar a.on { color: var(--green); font-weight: 650; }
#tabbar a.on span { background: var(--green-50); }
#fab { background: var(--green); border-radius: 18px; width: 56px; height: 56px; box-shadow: 0 6px 16px rgba(31, 90, 61, .35); }
#fab .ico { width: 26px; height: 26px; margin: 0; stroke-width: 2.2; }
#fab:hover { background: var(--green-2); }

/* sign-in */
#auth { background: radial-gradient(1200px 600px at 10% -10%, #dde3ef 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #f6e3db 0%, transparent 55%), var(--bg); }
#auth .card { border-radius: 20px; padding: 1.6rem 1.5rem; box-shadow: var(--shadow-lg); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; }

/* tables (Stripe): quieter headings, roomier rows */
table.grid th { border-bottom: 1px solid var(--line); }
table.grid th button { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); box-shadow: none; border-radius: 0; }
table.grid th button:hover { background: none; color: var(--ink); }
table.grid td { padding: .7rem .6rem; }
table.grid tbody tr:hover, table.grid tbody tr:focus { background: #f6f8f6; }
.pane-row.on { background: var(--green-50); }
.pane-row:hover, body.wide #drawer a:hover { background: #f3f5f3; }

/* computer layout (P74): white sidebar beside the page; Home on one grid, map top-aligned with the figures */
body.wide #drawer { border-right: 1px solid var(--line); }
body.wide .drawer-head { height: auto; padding: 1rem 1rem .9rem; justify-content: flex-start; }
body.wide #drawer a { padding: .6rem .75rem; min-height: 40px; }
body.wide #drawer > button#side-add { margin: .9rem .75rem .6rem; border-radius: var(--radius-s); padding: .65rem 1rem; justify-content: center; box-shadow: 0 2px 6px rgba(31, 90, 61, .25); }
body.wide #drawer > button#side-add .ico { color: #fff; width: 18px; height: 18px; }
body.wide #view { padding: 1.5rem 2rem 3rem; }
body.wide .greet { margin-top: 0; }
body.wide .home-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 42%); gap: 1rem; align-items: start; }  /* 0.42.1 (row 47i): a larger map on a computer */
body.wide .home-main > .strip:first-child, body.wide .home-main > :first-child { margin-top: 0; }
body.wide .home-split > .home-map { position: sticky; top: calc(56px + 1.5rem); margin: 0; }
body.wide .home-split .homemap { height: clamp(440px, calc(100vh - 240px), 680px); }
@media (min-width: 1440px) {
  body.wide .home-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; align-items: stretch; }
  body.wide .home-main > * { grid-column: 1 / -1; }
  body.wide .home-main > section.block { grid-column: auto; margin-bottom: 0; }
}
.homemap { background: #eef4f0; border-radius: var(--radius-s); }
.home-map .hint { margin-bottom: 0; }
#drawer > button#logout-btn { justify-content: flex-start; border: 0; background: none; box-shadow: none; font-weight: 500; }
#drawer > button#logout-btn:hover { background: var(--bad-bg); }

.home-map .block-head a { white-space: nowrap; }
.home-map .block-head h2 { min-width: 0; }
.pill.open { background: #eef1ee; color: var(--muted); }
table.grid .pill { font-size: .74rem; }
table.grid .pill.bad, table.grid .pill.due { font-weight: 600; }
.action { justify-content: flex-start; }

/* 0.15.0: Map of all properties (Lighton's comment on 0.14.0): light map, a Map | Satellite switch, list rows in the 0.14.0 style */
.map-seg.leaflet-control { box-shadow: var(--shadow); border-color: var(--line); }
.map-seg button { min-height: 32px; padding: .3rem .85rem; font-weight: 500; }
.map-light .leaflet-tooltip.prov-name { color: #6b7a71; text-shadow: none; font-weight: 500; }
.map-light .leaflet-tooltip.prov-label { border: 1px solid var(--line); }
.map-light .map-note { border: 1px solid var(--line); }
.map-note { border-radius: 999px; padding: .3rem .75rem; box-shadow: var(--shadow); }
.map-split .pane-row { flex-direction: row; align-items: center; gap: .65rem; padding: .6rem .8rem; }
.map-split .pane-row .what { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.map-split .pane-row .what strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.map-split .pane-row small { color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.map-split .pane-row .pill { font-size: .7rem; padding: .05rem .5rem; }
.map-split .pane-row a.chev { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; flex: none; }
.map-split .pane-row a.chev:hover { background: var(--green-50); color: var(--green); }
.pane-head .pill-btn { border: 1px solid #d9deea; border-radius: 999px; padding: .2rem .7rem; }
.leaflet-container.map-light { background: #efefef; }
.leaflet-popup-content a { color: var(--green); font-weight: 600; text-decoration: none; }

/* 0.15.0: admin area (FR-35 to FR-39, SDD D43): its own links in the sidebar and menu; the owner's screens hidden */
body:not(.admin) .admin-only { display: none !important; }
body.admin #drawer a[data-nav]:not(.admin-only), body.admin #drawer hr, body.admin #side-add, body.admin #plan-badge,
body.admin #tabbar, body.admin #fab, body.admin #search-btn, body.admin #sync-badge { display: none !important; }
.admin-page { max-width: 1400px; }
.admin-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .75rem; }
.admin-tile { background: var(--card); border-radius: var(--radius); padding: .75rem .9rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .1rem; border: 1px solid var(--line); }
.admin-tile .lbl { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.admin-tile .lbl .ico { width: 16px; height: 16px; color: var(--green); }
.admin-tile strong { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-tile small { color: var(--muted); font-size: .78rem; }
a.admin-tile:hover { border-color: #d9deea; }
.adminmap { height: 300px; background: transparent; }
.adminmap.leaflet-container { background: transparent; }
.prov-count span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 600; font-size: .8rem; box-shadow: 0 0 0 2px #fff; }
.district-list h3 { font-size: .85rem; margin: .6rem 0 .2rem; color: var(--muted); font-weight: 600; }
.district-row, .health-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.district-row small { color: var(--muted); }
.health-row .val { display: flex; align-items: center; gap: .5rem; color: var(--muted); text-align: right; }
.admin-gate { max-width: 440px; margin: 1.5rem auto; display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; }
.admin-gate .gate-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.admin-gate .gate-ico .ico { width: 26px; height: 26px; }
.admin-gate input[name=code] { font-size: 1.4rem; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.admin-gate .qr { display: block; margin: .4rem auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.admin-gate .key { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.admin-gate .key code { font-size: .95rem; text-align: center; overflow-wrap: anywhere; }
.row small.muted, small.muted { color: var(--muted); }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
.invite-form .primary .ico { width: 16px; height: 16px; vertical-align: -3px; }
#top-action .pill-btn { display: inline-flex; align-items: center; gap: .3rem; background: #fff; cursor: pointer; font: inherit; font-size: .85rem; color: var(--green); }
#top-action .pill-btn .ico { width: 15px; height: 15px; }
body.wide .admin-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.wide .admin-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: .9rem; align-items: start; }
body.wide .admin-grid .block { margin-top: .9rem; }
body.wide .adminmap { height: 420px; }
body.wide .admin-two { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.4fr); gap: .9rem; align-items: start; }

/* 0.15.1: show or hide a password; a second field to confirm a new one (Lighton, November 8, 2026) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 2.8rem; }
.pw-eye { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; box-shadow: none; padding: 0; min-height: 0; }
/* 0.72.1 (finding 153 b): a tooltip ([data-tip], position: relative) on the eye pushed it under the field; keep it inside */
.pw-wrap > .pw-eye { position: absolute; }
.pw-eye:hover { color: var(--green); background: var(--green-50); }
.pw-eye .ico { width: 18px; height: 18px; margin: 0; }
/* 0.16.0: admin second step on a phone (Lighton's comment) */
.admin-gate .gate-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .3rem 0; }
.admin-gate .gate-actions > * { min-height: var(--tap); display: inline-flex; align-items: center; gap: .35rem; }
.admin-gate .gate-qr summary { cursor: pointer; color: var(--muted, #5b6b62); font-size: .9rem; min-height: var(--tap); display: flex; align-items: center; justify-content: center; }
/* 0.16.0: admin accounts and reports (FR-41 to FR-43; SDD D44), 0.14.0 tokens */
.admin-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0; }
.admin-filter .search-box, .admin-filter .filter-box { display: flex; align-items: center; gap: .35rem; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 0 .55rem; min-height: var(--tap); }
.admin-filter .search-box { flex: 1 1 220px; }
.admin-filter .filter-box { flex: 1 1 140px; }
.admin-filter .search-box input, .admin-filter .filter-box select { border: 0; background: none; outline: none; min-height: 40px; font: inherit; width: 100%; padding: 0; }
.admin-filter .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.admin-filter > button { min-height: var(--tap); display: inline-flex; align-items: center; gap: .35rem; }
.admin-filter > button .ico { color: inherit; }
.link-box code { word-break: break-all; font-size: .85rem; background: var(--green-50); padding: .5rem .6rem; border-radius: var(--radius-s); display: block; user-select: all; }
.back-link { display: inline-flex; align-items: center; gap: .2rem; margin: .5rem 0; min-height: var(--tap); }
.user-page .kv { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.user-page .kv small { color: var(--muted); }
.user-page .kv > span { text-align: right; overflow-wrap: anywhere; }
.user-page .pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.use-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.use-cell { background: var(--bg); border-radius: var(--radius-s); padding: .55rem .7rem; display: flex; flex-direction: column; }
.use-cell strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.use-cell small { color: var(--muted); }
.action-row { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: var(--tap); background: none; border: 0; border-top: 1px solid var(--line); font: inherit; color: var(--ink); text-align: left; cursor: pointer; padding: .3rem 0; }
.action-row span { flex: 1; }
.action-row .ico { width: 18px; height: 18px; color: var(--green); }
.action-row .ico:last-child { color: var(--faint); }
.action-row.danger, .action-row.danger .ico:first-child { color: var(--bad); }
.row.compact { min-height: 44px; }
body.wide .user-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
body.wide .use-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reports .block-head .csv { display: inline-flex; align-items: center; gap: .25rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: .5rem; overflow-x: auto; }
.bar-group { flex: 0 0 56px; display: flex; flex-direction: column; align-items: stretch; height: 100%; gap: 4px; }
.bar-pair { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-2); }
.bar-pair .bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar.s1, .sw.s1 { background: var(--s1); } .bar.s2, .sw.s2 { background: var(--s2); }
.bar-group small { color: var(--muted); font-size: .72rem; text-align: center; white-space: nowrap; }
.legend { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.meter { margin: .55rem 0; }
.meter-top { display: flex; justify-content: space-between; font-size: .9rem; }
.meter-track { height: 8px; background: #eef0ee; border-radius: 4px; margin-top: .25rem; overflow: hidden; }
.meter-track span { display: block; height: 100%; background: var(--green-2); border-radius: 4px; }
body.wide .report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; align-items: start; }
.closing-banner { display: flex; gap: .5rem; align-items: flex-start; background: var(--due-bg); color: var(--due); border-radius: var(--radius-s); padding: .7rem .85rem; margin: .5rem 0 .75rem; }
.closing-banner .ico { flex: none; width: 18px; height: 18px; margin-top: .1rem; }
.closing-banner a { color: inherit; font-weight: 600; }
/* 0.16.1: Excel and PDF downloads, custom reports (FR-44; Lighton's comments on 0.16.0) */
.report-tabs a { display: inline-flex; align-items: center; padding: .35rem .85rem; min-height: 36px; color: var(--ink); text-decoration: none; font-size: .85rem; }
.report-tabs a.on { background: var(--green); color: #fff; font-weight: 600; }
.file-btns { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.file-btns > a, .file-btns > button { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: .3rem .75rem; font-size: .85rem; }
.reports .admin-filter .file-btns { margin-left: auto; }
.reports .dl { display: inline-flex; gap: .7rem; }
.custom-grid { display: flex; flex-direction: column; gap: .75rem; }
body.wide .custom-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: .9rem; align-items: start; }
.custom-side fieldset.cols { border: 0; padding: 0; margin: 0 0 .5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 .5rem; }
.custom-side label.check { margin-top: 0; }
.custom-side legend { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.custom-side .check { min-height: 36px; display: flex; align-items: center; gap: .35rem; }
.custom-side label { display: block; margin-top: .45rem; }
.custom-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: space-between; margin: .3rem 0 .6rem; }
.custom-preview tfoot td { font-weight: 600; border-top: 2px solid var(--line-2); }
.saved-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chip-btn.saved { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); overflow: hidden; }
.chip-btn.saved button { border: 0; background: none; font: inherit; font-size: .85rem; padding: .3rem .6rem; min-height: 36px; cursor: pointer; }
.chip-btn.saved button.x { padding: .3rem .45rem; color: var(--faint); }
.chip-btn.saved .ico { width: 14px; height: 14px; }
/* 0.16.2: pages and "Show more" (Lighton's comments on 0.16.1) */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .85rem; }
.pager select { min-height: 36px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--card); padding: 0 .4rem; font: inherit; }
.pager .pg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; margin-left: auto; background: var(--card); }
.pager .pg button { border: 0; border-left: 1px solid var(--line); background: none; font: inherit; min-width: 40px; min-height: 40px; padding: 0 .6rem; cursor: pointer; color: var(--ink); }
.pager .pg button:first-child { border-left: 0; }
.pager .pg button.on { background: var(--green); color: #fff; font-weight: 600; }
.pager .pg button:disabled { color: var(--faint); cursor: default; }
.pager .gap { padding: 0 .4rem; align-self: center; color: var(--faint); }
.more-btn { margin-top: .6rem; }

/* 0.17.0: support and operations (SDD D47): banners, passkey gate, support cards, alerts badge */
.notice-banner { display: flex; gap: .5rem; align-items: flex-start; border-radius: var(--radius-s); padding: .6rem .7rem .6rem .85rem; margin: .5rem 0 .75rem;
  background: var(--paid-bg); color: var(--paid); font-size: .92rem; }
.notice-banner.maintenance { background: var(--due-bg); color: var(--due); }
.notice-banner.warning { background: var(--bad-bg); color: var(--bad); }
.notice-banner > .ico { flex: none; width: 18px; height: 18px; margin-top: .15rem; }
.notice-banner > span { flex: 1; }
.notice-banner .notice-x { min-width: 36px; min-height: 36px; margin: -.4rem -.3rem -.4rem 0; color: inherit; }
#auth-notices .notice-banner { margin: 0 0 .75rem; }
#auth-notices:empty { display: none; }
.passkey-gate { text-align: center; align-items: center; }
.passkey-gate button.primary { width: 100%; }
.gate-alt { max-width: 440px; margin: 0 auto 1.5rem; }
.gate-alt > summary { cursor: pointer; color: var(--green); font-weight: 600; padding: .6rem 0; min-height: var(--tap); text-align: center; list-style: none; }
.gate-alt > summary::-webkit-details-marker { display: none; }
.gate-alt .admin-gate { margin-top: .25rem; }
.support-card { border: 1px solid var(--due); }
.support-card h2 { display: flex; align-items: center; gap: .4rem; }
.support-banner { background: var(--paid-bg); color: var(--paid); }
.passkey-nudge { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; margin-bottom: .75rem; }
.passkey-nudge .what { flex: 1; display: flex; flex-direction: column; }
button.small-link.danger-link { color: var(--bad); margin-left: .6rem; }
label.check.muted { color: var(--faint); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 .35rem; }
.settings-page .row select { max-width: 11rem; }
.row-actions { display: flex; gap: .2rem; }
.row-actions .danger-link { margin-left: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-row > button { flex: 1 1 10rem; }
.settings-page .row .what small { white-space: normal; }

/* data protection (0.18.0; FR-53 to FR-55; SDD D48): tabs, deadline clock, request kinds */
.dp-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 .25rem; }
a.pill-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
a.pill-link .ico { width: 16px; height: 16px; color: var(--green); }
a.pill-link.on { background: var(--green-50); border-color: var(--green-100); color: var(--green); }
.dp-clock { display: flex; align-items: center; gap: .5rem; border-radius: var(--radius-s); padding: .6rem .75rem; margin: .5rem 0 .75rem; font-weight: 600; font-size: .92rem; }
.dp-clock .ico { width: 18px; height: 18px; flex: none; }
.dp-clock.ok { background: var(--green-50); color: var(--green); } .dp-clock.due { background: var(--due-bg); color: var(--due); } .dp-clock.bad { background: var(--bad-bg); color: var(--bad); }
.dp-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.dp-actions > * { min-height: var(--tap); display: inline-flex; align-items: center; gap: .35rem; }
.dp-detail .linked-row .what small { color: var(--muted); }
.dp-detail .linked-row .what strong { font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 0 0 .5rem; }
.admin-tiles.two strong { font-size: 1.05rem; }
.dp-self { display: flex; gap: .5rem; align-items: flex-start; background: var(--green-50); border-radius: var(--radius-s); padding: .6rem .75rem; font-size: .9rem; margin-bottom: .6rem; }
.dp-self .ico { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: .1rem; }
fieldset.dp-kinds, form fieldset { border: 0; padding: 0; margin: .3rem 0 .6rem; }
fieldset legend { font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
label.dp-kind { display: flex; align-items: center; gap: .6rem; min-height: var(--tap); border-top: 1px solid var(--line); font-size: .93rem; cursor: pointer; }
label.dp-kind input { width: 20px; height: 20px; margin: 0; flex: none; order: 3; margin-left: auto; }
label.dp-kind .ico { width: 18px; height: 18px; color: var(--green); flex: none; }
.check-list label.check { min-height: 36px; margin: .1rem 0; }
details.dp-act { border-top: 1px solid var(--line); padding: .55rem 0; }
details.dp-act summary { cursor: pointer; min-height: var(--tap); display: flex; flex-direction: column; justify-content: center; gap: .1rem; }
details.dp-act p { margin: .35rem 0; font-size: .9rem; overflow-wrap: anywhere; }
table.dp-record td { vertical-align: top; font-size: .86rem; } table.dp-record td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid.click tbody tr { cursor: pointer; }
/* 0.18.0 (BACKLOG, FR-30): on a phone the map attribution wraps to two lines; lift the notes above it and make it smaller */
body:not(.wide) .leaflet-control-attribution { font-size: 10px; line-height: 1.3; }
body:not(.wide) .leaflet-bottom.leaflet-left .map-notes { margin-bottom: 2.6rem; }
#top-action .pill-btn + .pill-btn { margin-left: .4rem; }
body:not(.wide) #top-action .lbl-wide { display: none; }

/* 0.19.0: modules per account (FR-56 to FR-59; SDD D49) */
.switch { position: relative; width: 48px; min-width: 48px; height: 28px; border-radius: 999px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--green-2); } .switch[aria-checked="true"]::after { left: 23px; }
.switch:disabled { opacity: .5; cursor: default; }
.switch-hit { min-height: var(--tap); display: flex; align-items: center; }
.module-row .row-ico.on { background: var(--green-50); color: var(--green); }
.module-row .what small { white-space: normal; }
.module-wait { margin: 0 0 6px 52px; }
.mod-set { border-top: 1px solid var(--line); } .mod-set .row { border: 0; } .mod-set select { width: auto; min-height: var(--tap); }
.plan-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 10px 52px; } .plan-checks small { width: 100%; }
.plan-grid { width: 100%; border-collapse: collapse; font-size: .92rem; } .plan-grid th, .plan-grid td { padding: 8px 6px; text-align: left; border-top: 1px solid var(--line); }
.plan-grid th { color: var(--muted); font-weight: 500; } .plan-grid td.c, .plan-grid th.c { text-align: center; }
.plan-grid select { min-height: 36px; }

/* Rentals, part 1 (0.20.0; FR-60 to FR-64; UI-ANALYSIS section 24) */
.chips.wrap { flex-wrap: wrap; overflow: visible; }
a.chip-btn { display: inline-flex; align-items: center; text-decoration: none; min-height: var(--tap); }
.amt-col { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
a.row-card { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); min-height: var(--tap); }
a.row-card .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
a.row-card .what small { color: var(--muted); }
.row-btn-flat { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
fieldset.checks { border: 1px solid var(--line); border-radius: var(--radius-s); padding: .3rem .8rem; margin: .6rem 0; }
fieldset.checks legend { font-size: .88rem; padding: 0 .3rem; }
fieldset.checks label.check { display: inline-flex; margin: .2rem 1rem .2rem 0; min-height: 36px; align-items: center; }
.cond { display: flex; flex-direction: column; }
.cond-row { display: grid; grid-template-columns: 1fr 6.2rem; gap: .3rem .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cond-row .cond-item { font-size: .9rem; }
.cond-row input { grid-column: 1 / -1; }
body.wide .cond-row { grid-template-columns: 1fr 7rem 1.2fr; }
body.wide .cond-row input { grid-column: auto; }
.notice { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.notice:last-child { border-bottom: 0; }
.notice p { margin: .2rem 0; }
.row .row-actions { display: flex; gap: .2rem; align-items: center; }

/* Tenant view (0.20.2; FR-64a): an account that only rents sees Your rental and Account, not the owner's tools */
.tenant-tab, .tenant-own { display: none !important; }
body.tenant-view .tenant-tab { display: flex !important; }
body.tenant-view .tenant-own { display: block !important; color: var(--muted) !important; font-size: .88rem; margin-top: .6rem; }
body.tenant-view #tabbar a:not(.tenant-tab), body.tenant-view #drawer a:not([data-tenant]):not(.admin-only),
body.tenant-view #search-btn, body.tenant-view #fab, body.tenant-view #side-add, body.tenant-view #plan-badge { display: none !important; }
body.tenant-view #renting-link { display: block !important; }
/* 0.21.0: notice "queries by" rows, tenant history box */
fieldset.ways .way-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; align-items: center; }
fieldset.ways .way-row label.check { margin: .15rem 0; }
fieldset.ways .way-row input[type="tel"], fieldset.ways .way-row input[type="email"] { min-height: 40px; }
.hero.slim { padding: .7rem .9rem; margin-bottom: .6rem; }
.hero.slim .list { margin-top: .4rem; }
.muted { color: var(--muted); font-weight: 400; }
/* 0.21.0: buildings and units, charges, the tenant's property */
.unit-group { margin-top: .6rem; }
.unit-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; padding: .3rem 0; } /* 0.64.0: wraps on a phone (Edit outline, + Unit) */
.unit-group-head small { white-space: nowrap; }
.unit-group-head small { color: var(--muted); flex: 1 1 auto; }
.unit-group-head .pill-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; } /* 0.25.2 (FR-99) */
.units-map, .place-map { height: 220px; }
.pick-map { height: 220px; margin: .3rem 0; }
fieldset.units label.check.unit-pick { display: flex; width: 100%; margin: .15rem 0; align-items: flex-start; }
fieldset.units label.unit-pick span { display: flex; flex-direction: column; }
fieldset.units label.unit-pick small { color: var(--muted); }
fieldset.units > button { margin: .3rem 0 .4rem; }
.charge-row { border: 1px solid var(--line); border-radius: var(--radius-s); padding: .3rem .7rem .5rem; margin: .5rem 0; }
.total-box { background: var(--card); border-radius: var(--radius-s); padding: .5rem .8rem; margin: .7rem 0; }
.total-box > div, .due-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.total-box .total { font-weight: 600; border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .3rem; }
details.due summary { cursor: pointer; font-weight: 600; }
.due-lines { font-size: .9rem; margin-top: .3rem; }
.due-lines .muted span:last-child { font-style: italic; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.chips.wrap { flex-wrap: wrap; }
.row .pill { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-head:has(.row-actions) { flex-wrap: wrap; gap: .4rem; }
.block-head .row-actions .small { white-space: nowrap; }
.due-lines, .due-lines span { color: var(--ink); font-weight: 400; }
.due-lines .muted span { color: var(--muted); }
/* full-screen building drawing (0.22.0) */
.draw-overlay { position: fixed; inset: 0; z-index: 3000; background: #fff; display: flex; flex-direction: column; }
.draw-head { padding: .6rem .9rem; display: flex; flex-direction: column; gap: .15rem; border-bottom: 1px solid var(--line, #e3e7e4); }
.draw-map { flex: 1; min-height: 0; position: relative; isolation: isolate; }
.draw-msg { margin: 0; padding: .4rem .9rem; font-size: .9rem; }
.draw-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: .5rem .9rem calc(.6rem + var(--safe-b, 0px)); }
.draw-bar button { min-height: 44px; }
/* ledger, proofs, reports (0.22.0) */
.owed { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin: .2rem 0 .3rem; }
.owed small { width: 100%; color: var(--muted); }
.owed strong { font-size: 1.6rem; color: var(--ink); }
.owed span { color: var(--muted); font-size: .9rem; }
.ledger-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: .5rem; margin: .5rem 0; }
.ledger-actions button { padding-left: .5rem; padding-right: .5rem; }
.proof-wait { border: 1px solid var(--due, #d9822b); border-radius: var(--radius); padding: .5rem .6rem; margin: .5rem 0; }
.amt.in { color: var(--green); }
.amt-col small.muted { display: block; font-size: .75rem; color: var(--muted); text-align: right; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.row-actions.wrap { flex-wrap: wrap; margin-top: .5rem; }
.report-bar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: end; margin: .25rem 0 .5rem; }
.report-bar label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.report-bar input, .report-bar select { min-height: 40px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .stats.four { grid-template-columns: repeat(2, 1fr); } .ledger-actions { grid-template-columns: 1fr 1fr; } .ledger-actions .primary { grid-column: 1 / -1; } }
details.receipts summary { cursor: pointer; padding: .5rem 0; font-weight: 600; }
table.grid th .th { display: block; padding: .6rem; color: var(--muted); font-weight: 600; white-space: normal; }
table.grid th.num .th { text-align: right; }
.row .amt-col { flex-shrink: 0; } .row .amt-col .pill { max-width: none; }  /* 0.22.2: the status pill in a row is never cut to "O…" */

/* 0.23.0: drawing guide (Lighton's comment on 0.22.0) and the Vault opt-in list */
.draw-steps { margin: .2rem 0 0 1.1rem; padding: 0; font-size: .88rem; color: var(--muted); }
.draw-guide { position: absolute; top: .6rem; left: 50%; transform: translateX(-50%); z-index: 500; pointer-events: none; background: rgba(38,48,40,.88);
  color: #fff; padding: .35rem .8rem; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.plain-list { margin: .2rem 0 .8rem 1.2rem; line-height: 1.6; }
div.field { display: block; margin: .55rem 0; font-size: .88rem; color: #3a463e; font-weight: 500; }

/* 0.23.0: messages per tenancy (FR-79), WhatsApp invitation (FR-81) */
.thread { display: flex; flex-direction: column; gap: .45rem; max-height: 420px; overflow-y: auto; padding: .3rem 0; }
.bubble { max-width: 85%; background: var(--bg, #f4f6f4); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: .45rem .7rem; }
.bubble.mine { align-self: flex-end; background: #e7f3ec; border-color: #cfe5d8; border-radius: 14px 14px 4px 14px; }
.bubble p { margin: 0 0 .2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble small { color: var(--muted); font-size: .76rem; }
.bubble-file { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; margin: .1rem 0 .2rem; overflow-wrap: anywhere; }
.thread-event { align-self: center; text-align: center; font-size: .82rem; color: var(--muted); margin: .1rem 0; max-width: 92%; }
.thread-event .ico { width: 14px; height: 14px; vertical-align: -2px; }
.composer { border: 1px solid var(--line); border-radius: 12px; padding: .4rem; margin-top: .5rem; }
.composer textarea { border: 0; width: 100%; resize: vertical; min-height: 44px; margin: 0; }
.composer-bar { display: flex; align-items: center; gap: .5rem; }
.composer-bar small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-bar .primary { margin-left: auto; }
.count-badge { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 600; color: #fff; background: var(--green, #1f5c3f); border-radius: 999px; padding: .05rem .45rem; flex: none; }
.count-badge .ico { width: 13px; height: 13px; }
.qr { display: flex; justify-content: center; margin: .4rem 0; }
.qr svg { width: 200px; height: 200px; }
.qr-code { text-align: center; font-size: 1.3rem; font-weight: 600; letter-spacing: .06em; margin: .2rem 0 .6rem; }
.messages .err:empty { display: none; }

/* 0.24.0: property managers (FR-85 to FR-90) */
.acting-banner { display: flex; gap: .55rem; align-items: center; background: #e8f0fb; color: #1d4f91; border-radius: var(--radius-s); padding: .55rem .8rem; margin: .25rem 0 .75rem; }
.acting-banner .ico { flex: none; width: 18px; height: 18px; }
.acting-banner span { flex: 1; min-width: 0; }
.acting-banner button { flex: none; }
label.check.indent { margin-left: 2rem; min-height: 0; }
.bubble small.bubble-who { display: block; font-weight: 600; margin: 0 0 .15rem; }

/* 0.24.1 (FR-92): roles under the name; "Managing for" stands out while a manager works for a landlord */
.brand-text .roles { color: var(--muted); font-size: .74rem; line-height: 1.25; white-space: normal; }
.brand-text .roles.acting { color: var(--accent, #1f5f46); font-weight: 600; }
body.tenant-view.no-rental .tenant-tab[data-nav="renting"] { display: none !important; }
/* 0.24.1: the stage on the edit screen; the "let as land" note (FR-91) */
.field-like { display: flex; flex-direction: column; gap: .35rem; margin: .2rem 0 .6rem; }
.field-like > .label { font-size: .85rem; font-weight: 600; }
.stage-now { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.land-note { background: var(--due-bg); color: var(--due); border-radius: var(--radius-s); padding: .6rem .8rem; margin: .4rem 0 .8rem; }
.land-note p { margin: 0 0 .4rem; }
/* 0.25.0: faults (FR-95 to FR-97) */
.fstep { display: flex; gap: 4px; margin: .6rem 0; }
.fstep span { flex: 1; text-align: center; font-size: .74rem; padding: .3rem 0; border-radius: 999px; background: var(--bg-2, #f1f3f2); color: var(--muted); }
.fstep span.done { background: var(--paid-bg); color: var(--paid); font-weight: 600; }
.fstep span[aria-current="step"] { outline: 1.5px solid var(--paid); }
.fdesc { margin: .4rem 0; padding: .5rem .8rem; border-left: 3px solid var(--line); border-radius: 0; color: var(--ink, inherit); }
.fphotos { display: flex; gap: 6px; flex-wrap: wrap; margin: .4rem 0; }
.fphotos img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ftime { list-style: none; padding: 0; margin: .3rem 0; }
.ftime li { border-left: 2px solid var(--line); padding: .15rem 0 .5rem .7rem; margin-left: .3rem; }
.ftime li p { margin: .15rem 0 0; font-size: .9rem; }
.fcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: .4rem 0 1rem; }
.fcat { display: flex; align-items: center; gap: .5rem; text-align: left; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .88rem; min-height: 48px; }
.fcat[aria-pressed="true"] { border-color: var(--paid); background: var(--paid-bg); color: var(--paid); font-weight: 600; }
.furg { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.furg small { color: var(--muted); }
details.fcard { border-bottom: 1px solid var(--line); padding: .4rem 0; }
details.fcard summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; }
details.fcard summary::-webkit-details-marker { display: none; }
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 .8rem; }
details.fcard summary .what { display: flex; flex-direction: column; flex: 1; min-width: 0; }
button.row .what { text-align: left; }

/* 0.26.0 (FR-101): notices to tenants */
.notice-pill { display: inline-flex; align-items: center; gap: .25rem; margin-bottom: .25rem; }
.notice-pill .ico { width: 13px; height: 13px; }
.notice-body { white-space: pre-wrap; margin: .6rem 0 0; }
/* Build, part 1 (0.27.0; FR-103 to FR-106) */
.pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.pick label { position: relative; margin: 0; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .85rem; border-radius: 999px; border: 1px solid #c9cfca; background: #fff; font-size: .85rem; font-weight: 500; cursor: pointer; }
.pick input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.estimate-total { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; margin: .2rem 0; }
.estimate-sec > summary { display: flex; justify-content: space-between; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; list-style: none; padding: .2rem 0; }
.estimate-sec > summary::-webkit-details-marker { display: none; }
.estimate-sec > summary::after { content: "›"; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.estimate-sec[open] > summary::after { transform: rotate(-90deg); }
.estimate-sec .amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.stale-dot { color: #a3501f; }
.money-facts dd { text-align: right; font-variant-numeric: tabular-nums; }
/* 0.27.1: the satellite picture chooser on drawing maps */
/* 0.28.0: repairs under the lease, instalment plans, the tenant's warning */
.whose:empty { display: none; }
.rep-list .rep-row { flex-wrap: wrap; gap: .4rem; }
.rep-list .rep-row .what { flex: 1 1 100%; }
.plan-rows .plan-row { align-items: end; }

/* 0.29.0 (FR-111): leases of a tenancy or of a place I rent */
.lease-row { align-items: flex-start; }
.lease-row .row-actions { margin-top: .35rem; gap: .5rem; }
.row .what small.muted { display: block; margin-top: .15rem; }
.lease-row .what small { white-space: normal; overflow: visible; }
.lease-row .what .pill { align-self: flex-start; max-width: 100%; white-space: normal; margin: .2rem 0 .1rem; }  /* 0.32.2: "Waiting for NAME" in full, under the title */

/* 0.30.0 (FR-114): the public "to rent" page and the owner's listing screens */
body.rent-page { background: var(--bg); margin: 0; }
.rent-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.rent-brand { display: flex; align-items: center; gap: .45rem; color: var(--green); text-decoration: none; font-size: 1.05rem; }
.rent-brand span { color: var(--muted); font-size: .9rem; }
#rent-view { max-width: 72rem; margin: 0 auto; padding: .8rem 1rem 2rem; }
.rent-head h1, .rent-soon h1 { font-size: 1.45rem; margin: .4rem 0 .1rem; }
.rent-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; margin: .7rem 0; }
.rent-filters label { font-size: .82rem; color: var(--muted); display: grid; gap: .2rem; }
.rent-cols { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.rent-map { height: 15rem; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.rent-map.small { height: 13rem; }
.rent-list { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); align-content: start; }
.rent-card { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.rent-card img, .rent-nophoto { width: 7rem; height: 100%; min-height: 6.5rem; object-fit: cover; background: var(--green-50); display: grid; place-items: center; color: var(--green-2); }
.rent-card-body { display: grid; gap: .15rem; padding: .55rem .6rem .55rem 0; align-content: start; }
.rent-card-body small { color: var(--muted); }
.rent-card-body .pill { justify-self: start; margin-top: .2rem; }
.rent-price { color: var(--green); font-weight: 650; }
.rent-price.big { font-size: 1.2rem; margin: .2rem 0 .5rem; }
.rent-photo { width: 100%; max-height: 24rem; object-fit: cover; border-radius: var(--radius); background: var(--green-50); display: block; }
.rent-thumbs { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem 0; }
.rent-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: 0 0 4.2rem; height: 3.2rem; min-height: 0; background: none; }
.rent-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rent-desc { white-space: pre-line; }
.rent-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rent-foot { max-width: 72rem; margin: 0 auto; padding: 0 1rem 2rem; color: var(--muted); font-size: .85rem; }
.rent-page .chip { display: inline-block; background: var(--green-50); color: var(--green); border-radius: 999px; padding: .15rem .6rem; font-size: .82rem; margin: 0 .3rem .3rem 0; }
.rent-page .warn .ico { width: 1rem; height: 1rem; vertical-align: -.15rem; }
@media (min-width: 900px) {
  .rent-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .rent-cols.detail { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .rent-map { height: 30rem; position: sticky; top: 4.2rem; }
  .rent-map.small { height: 16rem; position: static; }
}
.listing-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; margin: .5rem 0; }
.listing-photos figure { margin: 0; position: relative; }
.listing-photos img { width: 100%; height: 5.2rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.listing-photos button { position: absolute; top: .2rem; right: .2rem; min-height: 0; padding: .15rem .4rem; font-size: .75rem; }
.enq { border-top: 1px solid var(--line); padding: .6rem 0; }
.enq p { margin: .15rem 0; }
.rent-page .block h1 { font-size: 1.35rem; line-height: 1.25; margin: .45rem 0 .2rem; }

/* 0.31.0: building detection (FR-120 to FR-123; UI-ANALYSIS section 36) */
.find-map { height: 46vh; min-height: 260px; }
.find-status { margin: .6rem 0 .2rem; } .find-status p { margin: .2rem 0 .5rem; }
.find-busy { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.spinner { display: inline-block; box-sizing: border-box; width: 18px; min-width: 18px; height: 18px; flex: none; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 4s; } }
.sg-num { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #0b6fa4; color: #fff; font-weight: 700; font-size: .85rem; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }
.sg-row { align-items: flex-start; flex-wrap: wrap; }
.sg-row .what { flex: 1 1 12rem; min-width: 0; } .sg-row .what small { display: block; color: var(--muted); white-space: normal; overflow: visible; }
.sg-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #0b6fa4; color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; margin-top: .15rem; }
.find-foot .attribution { font-size: .78rem; }
.leaflet-tooltip.bld-name { background: rgba(38,48,40,.85); color: #fff; border: 0; box-shadow: none; padding: .1rem .4rem; font-weight: 600; }
.leaflet-tooltip.bld-name::before { display: none; }
body.wide .find-map { height: 58vh; }


/* 0.32.0 (FR-126, FR-127) */
.fact-edit { margin-left: .5rem; white-space: nowrap; }
fieldset.plain { border: 1px solid var(--line, #d9ddd6); border-radius: 10px; padding: .6rem .75rem; margin: .5rem 0; }
fieldset.plain legend { font-weight: 600; padding: 0 .3rem; }
fieldset.plain[hidden] { display: none; }

/* 0.32.1 (FR-127): the Due row's "Edit" stays on the amount's line when the amount opens into its lines */
dd > details.due { display: inline-block; vertical-align: top; }

/* 0.32.1 (FR-128): progress for anything that is being sent, and the button that sent it is held */
#busy-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 4000; pointer-events: none; }
#busy-bar[hidden] { display: none; }
.busy-track { height: 4px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.busy-fill { height: 100%; width: 0; background: var(--accent, #1f6f54); transition: width .2s; }
.busy-fill.moving { width: 35%; animation: busy-slide 1.1s linear infinite; }
.busy-text { display: block; width: max-content; max-width: 90vw; margin: .4rem auto 0; padding: .25rem .7rem; border-radius: 999px; background: #1d2a24; color: #fff; font-size: .85rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
@keyframes busy-slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
button.busy { position: relative; cursor: progress; }
button.busy::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .5em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-spin .7s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-fill.moving, button.busy::after { animation-duration: 3s; } }
/* 0.32.3 (D70): the last release's log in Admin, System health */
.release-log summary { cursor: pointer; color: var(--accent, #0b6b53); font-size: .85rem; margin-top: .25rem; }
.release-log pre { max-height: 18rem; overflow: auto; font-size: .72rem; white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,.05); padding: .5rem; border-radius: 6px; }

/* ---------- 0.33.0: storage outside Zambia (FR-130), upload note (NFR-17) ---------- */
.warn-box { background: var(--due-bg); color: var(--due); border-radius: var(--radius-s); padding: .7rem .85rem; margin: .75rem 0; font-size: .92rem; }
.consent-card { border: 1px solid var(--line, #dfe5e1); border-radius: var(--radius-s); padding: .7rem .85rem; margin: 0 0 .75rem; display: grid; gap: .2rem; }
.consent-card small { color: var(--muted, #5d6b64); }
.consent-clause { margin: .35rem 0 0; font-size: .9rem; }
.gate-no { margin-top: .6rem; white-space: normal; }
.upload-note { display: flex; gap: .4rem; align-items: flex-start; margin: .25rem 0 .5rem; }
.upload-note .ico { flex: none; width: 16px; height: 16px; margin-top: .15rem; }
#auth-submit:disabled, .sheet-form button[type=submit]:disabled { opacity: .5; }
.in-short { background: var(--green-50); border-radius: var(--radius-s, 10px); padding: .8rem 1rem; margin: .75rem 0 1.25rem; }
.in-short h2 { margin-top: 0; font-size: 1.05rem; }
.in-short li { margin: .3rem 0; }

/* 0.34.0 (FR-132 to FR-136; mockup of November 11, 2026): plans, locks, credit */
.pill.credit { background: #efeafc; color: #5b3fb0; }
.mod-right { display: flex; align-items: center; gap: .5rem; flex: none; }
.module-row.child { padding-left: .6rem; }
.locked-page { text-align: center; }
.locked-page .lock-ico { width: 56px; height: 56px; margin: .5rem auto .75rem; border-radius: 14px; background: #eef0ee; display: grid; place-items: center; color: #b8860b; }
.locked-page .lock-ico .ico { width: 26px; height: 26px; }
.locked-page h2 { margin-top: 0; }
.locked-page .wide, .locked-page a.button.wide { margin-top: .6rem; }
ul.ticks { list-style: none; padding: 0; margin: .6rem auto; text-align: left; max-width: 22rem; }
ul.ticks li { display: flex; gap: .45rem; align-items: center; padding: .15rem 0; }
ul.ticks .ico { width: 16px; height: 16px; color: var(--green); flex: none; }
.lock-note { background: var(--due-bg); color: var(--due); border-radius: var(--radius-s); padding: .7rem .85rem; margin: .75rem 0; text-align: left; }
.hint.center { text-align: center; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 0; border-bottom: 1px dashed #e3e6e3; font-size: .92rem; }
.kv-row > span:first-child { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.settings-tabs { margin: 0 0 .9rem; flex-wrap: wrap; }
.cat-list { display: flex; flex-direction: column; }
.cat-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; padding: .8rem 0; border-bottom: 1px solid #e6e9e6; align-items: center; }
.cat-row .cat-what { grid-column: 1 / -1; }
.cat-row .cat-what small { display: block; color: var(--muted); }
.cat-row .cat-f { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.cat-row .cat-f > small { color: var(--muted); font-size: .75rem; }
.cat-row.child .cat-what strong { font-weight: 600; }
@media (min-width: 900px) {
  .cat-row { grid-template-columns: 2.2fr 1fr 1fr 1.4fr .8fr .9fr auto; }
  .cat-row .cat-what { grid-column: auto; }
  .cat-row .cat-f > small { display: none; }
  .cat-row.child .cat-what { padding-left: 1.1rem; }
}
.price-box { display: flex; gap: .3rem; flex-wrap: wrap; }
.price-in { width: 6.5rem; }
.num-in { width: 4.8rem; text-align: right; }
.states-note { background: #eef3fb; border-radius: var(--radius-s); padding: .7rem .85rem; font-size: .88rem; margin-top: .9rem; }
.save-line { display: flex; gap: .75rem; align-items: center; margin-top: .9rem; flex-wrap: wrap; }
.dashed-card { display: block; width: 100%; text-align: left; border: 1.5px dashed #c9cfca; background: transparent; border-radius: var(--radius); padding: .9rem 1rem; margin: .75rem 0; cursor: pointer; }
.dashed-card small { display: block; color: var(--muted); margin-top: .25rem; }
details.history { margin-top: .6rem; } details.history summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: .9rem; }
.check-grid { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .4rem 0 .6rem; }
.mod-table td, .mod-table th { vertical-align: middle; }
.filters { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.small-sel { font-size: .85rem; padding: .2rem .4rem; }
.limit-banner strong { font-weight: 700; }
a[data-nav].is-locked::after { content: "🔒"; font-size: .75em; margin-left: .35rem; opacity: .7; }
.mod-right .pill { max-width: none; overflow: visible; }
.credit-row .what small { white-space: normal; }
.cat-f .pill { align-self: flex-start; }
.table-wrap { overflow-x: auto; }
@media (max-width: 759px) { .mod-table .from { display: none; } .mod-table td, .mod-table th { padding-left: .3rem; padding-right: .3rem; } }
.kv-row > span:last-child { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.filters select { width: auto; }

/* 0.34.0 (F-3): a message on the sign-in card that cannot be missed */
.auth-msg { display: flex; gap: .5rem; align-items: flex-start; margin: .6rem 0; padding: .6rem .75rem; border-radius: 10px; font-size: .9rem; line-height: 1.35; }
.auth-msg .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.auth-msg.error { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad); font-weight: 600; }
.auth-msg.ok { background: var(--paid-bg); color: var(--paid); border: 1px solid var(--paid); }
.auth-msg.info { background: var(--paid-bg); color: var(--ink, inherit); border: 1px solid var(--line); }

/* ---------- 0.35.0: paying Malo by mobile money (FR-142 to FR-146; mockup r2) ---------- */
.pill.ok { background: var(--green-50); color: var(--green); }
.lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin: .7rem 0 .3rem; }
.fake-sel { border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; background: #fff; }
.term-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.term-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: .75rem .8rem; min-height: 76px; cursor: pointer; font: inherit; color: var(--ink); }
.term-card small { color: var(--muted); font-size: .8rem; }
.term-card.on { border: 2px solid var(--green); background: var(--green-50); }
.term-card .free-months { color: var(--green); font-weight: 700; }
.save-tag { position: absolute; top: -.65rem; right: .6rem; background: var(--green); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 700; }
.unit-line { display: flex; align-items: center; gap: .7rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stepper button { min-width: 40px; min-height: 40px; border: 0; background: none; color: var(--green); font-size: 1.1rem; font-weight: 700; box-shadow: none; }
.stepper b { min-width: 40px; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: .45rem 0; }
.totals { margin-top: .6rem; }
.tot { display: flex; justify-content: space-between; gap: .6rem; padding: .3rem 0; font-size: .92rem; }
.tot strong { font-variant-numeric: tabular-nums; font-weight: 500; }
.tot.save { color: var(--green); }
.tot.big { font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .55rem; }
.tot.big strong { font-weight: 700; }
.net-card { border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; margin-bottom: .55rem; background: #fff; }
.net-card small { display: block; color: var(--muted); margin-top: .25rem; }
.net-card small strong { color: var(--ink); }
.net-top { display: flex; align-items: center; gap: .6rem; }
.net-top .num { font-size: 1.15rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.net-logo { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; font-weight: 800; font-size: .66rem; flex: none; }
.net-logo.mtn { background: #ffcb05; color: #111; } .net-logo.air { background: #e40000; color: #fff; } .net-logo.zam { background: #00953a; color: #fff; }
.pay-ref { font: 700 1.5rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; background: var(--green-50); color: var(--green);
  border-radius: 10px; padding: .75rem; text-align: center; margin: .2rem 0 .5rem; user-select: all; }
.pay-question { background: var(--paid-bg); color: #1c3f86; border-radius: 10px; padding: .6rem .75rem; margin: .5rem 0; }
.pay-card .block-head { align-items: flex-start; }
.pay-card .block-head h2 { margin: 0; }
.paid-form .chips { margin-bottom: .4rem; }
.file-pick small { display: block; }
.pay-row .pay-right { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.credit-row .amt { font-variant-numeric: tabular-nums; }
.info-note { background: var(--paid-bg); color: #1c3f86; border-radius: 10px; padding: .55rem .75rem; font-size: .9rem; }
.pay-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.pay-actions button.danger { color: var(--bad); border-color: #e8b4b0; }
.pay-shot { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: .5rem; margin: .6rem 0; text-align: center; }
.pay-shot img { display: block; max-width: 100%; max-height: 420px; margin: 0 auto .3rem; border-radius: 8px; }
.pay-queue table.grid td small { display: block; color: var(--muted); font-size: .78rem; }
.pay-queue tr.on { background: var(--green-50); }
.pay-settings input:not([type=checkbox]), .pay-settings select { min-width: 0; width: 100%; }
.pay-settings .kv-row input, .pay-settings .kv-row select { max-width: 220px; }
.pay-settings .kv-row .num-in { max-width: 90px; }
table.grid.plain tbody tr { cursor: default; }
table.grid.plain tbody tr:hover { background: none; }
body.wide .pay-step1 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
body.wide .pay-later-col { opacity: .55; }
body.wide .pay-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.wide .pay-admin.with-detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 1rem; align-items: start; }
body.wide .pay-settings-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.pay-row .what { min-width: 0; }
.pay-row .pay-right { flex: none; }
.pay-settings td input { min-width: 7.5rem; }
.switch-line { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.pay-queue td:first-child { white-space: nowrap; }
.pay-row .pill { max-width: none; overflow: visible; }
.pay-row .what small { white-space: normal; }

/* ====================================================================================================================
   0.35.1 the brand (business brief 09, B1 to B3; ROADMAP 41a): logo, tagline, night blue head of the menu, clay accents
   ==================================================================================================================== */
.drawer-head { background: var(--navy); color: #fff; border-bottom: 0; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem 1rem .85rem; }
.drawer-head .logo { height: 30px; width: auto; display: block; }
.drawer-head small { color: #c9cfdd; }
.drawer-head strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand { flex-direction: column; align-items: flex-start; gap: .35rem; margin: 0; }
.brand h1 { margin: 0; line-height: 0; }
.brand .logo { height: 44px; width: auto; display: block; }
.tagline { margin: 0; color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.tagline b { color: var(--clay); font-weight: 750; } /* large bold text: clay on white 4.2:1 passes (3:1) */
.tabs a.on { border-bottom-color: var(--clay); }
#fab { background: var(--clay); box-shadow: 0 6px 16px rgba(198, 93, 59, .35); }
:focus-visible { outline-color: var(--green); }
.rent-brand .logo { height: 28px; width: auto; display: block; }
.drawer-head small.roles { color: #aeb6c9; }
.drawer-head .roles.acting { color: var(--clay-light); } /* light clay for small accent text on night blue (brief 09) */

/* 0.36.0 the PIN prompt (FR-147; mockup r1): network and number, Check your phone, confirmed, not paid, no answer yet */
.netpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .6rem; }
.net-opt { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .55rem .3rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; font-weight: 500; min-height: 64px; }
.net-opt.on { border: 2px solid var(--green); background: var(--green-50); font-weight: 650; }
.pay-push { max-width: 480px; margin: 0 auto; }
.wait-head .big-ico { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: .3rem auto .6rem; }
.wait-head .big-ico .ico { width: 30px; height: 30px; margin: 0; }
.big-ico.wait { background: var(--green-50); color: var(--green); } .big-ico.ok { background: #e6f4ec; color: #1e7a46; }
.big-ico.bad { background: var(--bad-bg); color: var(--bad); } .big-ico.due { background: var(--due-bg); color: var(--due); }
.wait-title { font-size: 1.2rem; margin: 0 0 .2rem; }
.timer { font: 700 1.8rem/1 ui-monospace, Menlo, monospace; color: var(--green); font-variant-numeric: tabular-nums; }
.ring { height: 6px; border-radius: 99px; background: #e3e6ee; overflow: hidden; margin: .6rem 0 .3rem; } .ring i { display: block; height: 100%; background: var(--green); transition: width 1s linear; }
.wait-steps { margin: 0 0 .4rem; padding-left: 1.2rem; } .wait-steps li { padding: .25rem 0; }
.small-link.bad { color: var(--bad); }
.pill.ok { background: #e6f4ec; color: #1e7a46; }
ul.tl { list-style: none; margin: .3rem 0 .8rem; padding: 0; font-size: .85rem; } ul.tl li { display: flex; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
ul.tl li b { min-width: 4.6rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
/* 0.36.1 price rules (FR-148 to FR-152; mockups A, B, D, E, F) */
.tot s { font-variant-numeric: tabular-nums; }
.cap-note { margin: 0 0 .3rem; }
.addon-line { cursor: pointer; align-items: center; }
.addon-line > span { display: flex; align-items: center; gap: .45rem; font-weight: 400; color: var(--ink); }
.addon-line input[type=checkbox] { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--navy); }
.found-card h2 { margin-top: .1rem; }
.wa-count { display: flex; align-items: baseline; gap: .6rem; margin: .4rem 0; }
.wa-count strong { font-size: 1.8rem; }
.wa-allow .meter-track span { background: var(--navy); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.switch-row small { display: block; color: var(--muted); }
.switch-row input[type=checkbox] { width: 1.3rem; height: 1.3rem; min-height: 0; padding: 0; flex: none; accent-color: var(--navy); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.chip-radio input[type=radio] { width: 1rem; height: 1rem; min-height: 0; margin: 0 .35rem 0 0; padding: 0; accent-color: var(--navy); }
.chip-radio { display: inline-flex; white-space: nowrap; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; }
/* 0.36.2 anchors (mockups C, G); a checkbox inside a settings row keeps its own size */
.kv-row input[type=checkbox] { width: 1.2rem; height: 1.2rem; min-height: 0; padding: 0; flex: none; accent-color: var(--navy); }
.kv-row.big { font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; }
.anchor-panel .btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
input.small-sel[type=month] { width: 11rem; flex: none; }
/* 0.37.0 rental analytics (FR-137 to FR-140, FR-159, FR-160; mockup r1) */
.an-figs .stat small { display: block; }
.an-figs strong.bad { color: var(--bad, #b42318); }
.an-line { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; }
.an-line.big strong { font-size: 1.15rem; }
.an-meter {  /* 0.42.2: was .meter, which squashed the plan screen's meters */  height: 8px; border-radius: 4px; background: var(--line, #e3e7e3); overflow: hidden; margin: .2rem 0 .4rem; }
.an-meter span { display: block; height: 100%; background: var(--green); }
.an-chart { margin: .25rem 0 0; }
.an-chart svg { width: 100%; height: auto; max-height: 230px; display: block; }
.an-chart rect.due { fill: #cfd5e2; } .an-chart rect.got { fill: var(--green); }
.an-chart text { font-size: 9px; fill: var(--muted); }
.an-chart polyline { fill: none; stroke-width: 2.5; } .an-chart .line { stroke: var(--green); } .an-chart .whatif { stroke: #c4633f; stroke-dasharray: 6 4; }
.an-chart figcaption { font-size: .8rem; color: var(--muted); }
.key { display: inline-block; width: .7rem; height: .7rem; vertical-align: -1px; } .key.got { background: var(--green); } .key.due { background: #cfd5e2; }
.an-two { display: grid; gap: 0 .75rem; } .an-two > * { min-width: 0; }
@media (min-width: 900px) { .an-two { grid-template-columns: 1fr 1fr; } .an-two .block { margin: .75rem 0; } }
.an-ask .row strong { font-weight: 500; }
.an-tick { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.an-tick input { width: 1.2rem; height: 1.2rem; flex: none; }
.an-total { display: flex; align-items: end; gap: .5rem; margin: .4rem 0; } .an-total label { flex: 1; font-size: .85rem; color: var(--muted); }
.an-gap { color: var(--bad, #b42318); font-size: .9rem; }
.an-whatif { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; } .an-whatif label { font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; }
@media (min-width: 900px) { .an-whatif { grid-template-columns: repeat(4, 1fr); } }
.an-wallet { grid-template-columns: 1fr 1fr; margin-bottom: .4rem; }

/* 0.37.1: bulk import (FR-158; mockup r1, section I) and the provider test */
.imp-steps { color: var(--muted); margin: 0 0 .75rem; } .imp-steps strong { color: inherit; color: var(--ink, #1f2a44); }
.imp-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .imp-grid { grid-template-columns: minmax(260px, 1fr) 2fr; } }
.imp-template .button, .imp-template button { margin: .25rem 0; }
.imp-ok { color: #1e7b45; } .imp-bad { color: var(--bad); } .imp-match { color: var(--muted); }
.imp-table td { vertical-align: top; }
.imp-table th:first-child, .imp-table td:first-child { padding-right: .9rem; }
.test-out:empty { display: none; } .test-out { margin-top: .75rem; }
.imp-grid > * { min-width: 0; }
@media (max-width: 640px) {  /* a row of the check as a small card on a phone */
  .imp-table thead { display: none; }
  .imp-table, .imp-table tbody { display: block; }
  .imp-table tr { display: grid; grid-template-columns: 2.2rem 1fr auto; column-gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  table.grid.imp-table td { padding: 0; border: 0; }
  .imp-table td:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; color: var(--muted); }
  .imp-table td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: .78rem; color: var(--muted); }
  .imp-table td:nth-child(3) { grid-column: 2; grid-row: 2; font-weight: 600; }
  .imp-table td:nth-child(4) { grid-column: 2; grid-row: 3; }
  .imp-table td:nth-child(5) { grid-column: 3; grid-row: 2; text-align: right; }
  .imp-table td:nth-child(6) { grid-column: 2 / -1; grid-row: 4; margin-top: .2rem; }
}
/* 0.38.0 the map (FR-30b, FR-161, FR-162; mockup of November 11, 2026) */
.map-crumb.leaflet-control { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.map-crumb .map-chip, .map-crumb .map-back { background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: .35rem .8rem;
  font-weight: 600; font-size: .9rem; color: var(--ink); border: 1px solid var(--line); }
.map-crumb .map-back { color: var(--green); cursor: pointer; min-height: 34px; }
.map-crumb .map-back[hidden] { display: none; }
.dist-bubble { font-size: .95rem; }
.leaflet-tooltip.dist-name { background: transparent; border: 0; box-shadow: none; padding: 0; color: #5f6f66; font-size: 11px; }
.leaflet-tooltip.dist-name::before { display: none; }
.map-satellite .leaflet-tooltip.dist-name, .fullmap:not(.map-light) .leaflet-tooltip.dist-name { color: #fff; text-shadow: 0 0 3px #000; }
.map-hint.leaflet-control { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: .6rem .8rem; max-width: 300px; }
.map-hint[hidden] { display: none; }
.map-hint strong { display: block; } .map-hint small { color: var(--muted); }
.sketch-note { background: #fff6e0; border: 1px solid #f0d58c; color: #6a4d00; border-radius: 10px; padding: .55rem .75rem; font-size: .9rem; }
.place-list .row { cursor: pointer; }
.sketch-chip { position: absolute; top: .6rem; left: .6rem; z-index: 500; background: #fff; border-radius: 999px; padding: .35rem .8rem;
  font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; }
.sketch-corner { width: 16px !important; height: 16px !important; margin: -8px 0 0 -8px !important; border-radius: 50%; background: #fff; border: 3px solid #ffd84d; box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: move; }
.fullmap .map-seg.leaflet-control { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; }
.fullmap .map-seg.leaflet-control button { border-radius: 0; text-align: left; }
.fullmap .leaflet-top.leaflet-left .map-crumb { margin-right: 96px; flex-wrap: nowrap; }
/* 0.39.0 referrals (FR-163 to FR-170) */
.ref-card { text-align: center; }
.ref-card .lbl { margin: 0; color: var(--muted, #666); font-size: .85rem; }
.ref-code { font-size: 2rem; font-weight: 800; letter-spacing: .18em; color: #1F2A44; margin: .3rem 0; }
.ref-link { font-size: .8rem; color: var(--muted, #666); word-break: break-all; }
.ref-card .button, .ref-card button { margin-top: .5rem; }
.ref-qr { display: block; margin: .8rem auto 0; max-width: 220px; height: auto; border: 1px solid #e3e3e3; border-radius: 10px; }
.ref-proof, .ref-link-form { display: grid; gap: .5rem; margin-top: .6rem; }
.ref-docs { border: 1px solid #e3e3e3; border-radius: 10px; padding: .6rem; }
.ref-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 .8rem; }
.ref-doc-grid .check { margin: .15rem 0; }
.ref-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .5rem; }
.ref-settings { display: grid; gap: .6rem; }
.flag-cell { color: #b3261e; font-size: .85rem; }
.admin-page td small { display: block; color: var(--muted, #666); }
.admin-page table.grid th { padding-right: .8rem; }
/* 0.39.1: partner accounts (FR-171 to FR-177) */
.ok-text { color: #1e7b34; font-weight: 600; }
.flag-text { color: #b3261e; font-weight: 600; }
tr.click-row { cursor: pointer; }
tr.click-row:hover td { background: rgba(31, 42, 68, .05); }
.terms-text { max-height: 50vh; overflow: auto; font-size: .92em; border: 1px solid var(--line, #e3e3e3); border-radius: 8px; padding: 4px 12px; margin-bottom: 12px; }
.partner-detail table.kv td:first-child { color: var(--muted, #666); width: 34%; vertical-align: top; }
.partner-kind, .partner-pay { margin-bottom: 10px; }

/* 0.40.0 earnings and payouts */
.earn-bar{height:8px;background:var(--line,#e1e4ea);border-radius:4px;overflow:hidden;margin:4px 0}.earn-bar i{display:block;height:100%;background:var(--primary,#1f2a44)}
.earn-tiles{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0}
.earn-tiles div{border:1px solid var(--line,#e1e4ea);border-radius:8px;padding:6px 8px}
.earn-tiles strong{display:block;font-size:1.05rem;color:var(--primary,#1f2a44)}
.earn-tiles small{color:var(--muted,#666);font-size:.75rem}
.earn-lines{padding:4px 0 8px}
.earn-line{display:flex;justify-content:space-between;gap:8px;font-size:.82rem;border-bottom:1px solid var(--line,#eee);padding:5px 0}
.earn-line small{display:block;color:var(--muted,#666)}
.earn-line>span:last-child{text-align:right;white-space:nowrap}
details.earn-landlord>summary{list-style:none;cursor:pointer}
details.earn-landlord>summary::-webkit-details-marker{display:none}
.earn-steps{display:flex;gap:6px;margin:0 0 10px}
.earn-steps span{flex:1;text-align:center;font-size:.8rem;padding:6px;border-radius:8px;background:var(--soft,#eef0f4)}
.earn-steps span.on{background:var(--primary,#1f2a44);color:#fff;font-weight:600}
.earn-flag,.earn-mark{border-bottom:1px solid var(--line,#eee);padding:8px 0}
@media (min-width:900px){.earn-tiles{grid-template-columns:repeat(4,1fr)}}

/* 0.41.0 (FR-193 to FR-196): the demo band, Get started and the demo offer (mockup r1) */
.demo-band { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--clay); color: #fff; border-radius: var(--radius-s); padding: .5rem .75rem; margin: .25rem 0 .75rem; font-size: .9rem; }
.demo-band .demo-acts { display: flex; gap: .4rem; }
.demo-band button.small { background: #fff; color: var(--clay); border-color: #fff; font-weight: 700; }
.get-started .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: .2rem 0 .4rem; }
.get-started .bar i { display: block; height: 100%; background: var(--primary, #1f2a44); }
.get-started ol.gs { list-style: none; padding: 0; margin: 0; }
.get-started ol.gs li { display: flex; gap: .65rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.get-started ol.gs li:last-child { border-bottom: 0; }
.get-started .n { flex: none; width: 24px; height: 24px; border-radius: 99px; border: 1.5px solid #1f2a44; color: #1f2a44; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.get-started li.done .n { background: #1f2a44; color: #fff; }
.get-started li.done strong { text-decoration: line-through; color: var(--muted); }
.get-started .what { flex: 1; } .get-started small { display: block; color: var(--muted); }
.get-started .right { text-align: right; margin: .3rem 0 0; }
.try-demo { border: 1.5px dashed var(--clay); background: var(--clay-50); border-radius: 14px; padding: .8rem; margin-bottom: .75rem; }
.try-demo p { margin: .3rem 0 .5rem; }
.try-demo.small { border-style: dashed; border-width: 1px; background: transparent; padding: .6rem .8rem; } /* 0.41.4 (FR-208) */
.try-demo.small .right { margin: .2rem 0 0; text-align: right; }

/* 0.41.2 (E1, business chat 15): the endorsement in the sign-in footer, Inter Medium, night blue at 75% */
.endorse { margin: 14px 0 0; text-align: center; font-size: .8rem; font-weight: 500; color: rgba(31, 42, 68, .75); letter-spacing: .01em; }

/* 0.41.5: the currency in Home's tiles is small and the figure never wraps */
.strip-cell strong { white-space: nowrap; }
.strip-cell strong .cur { font-size: .58em; font-weight: 600; letter-spacing: .03em; margin-right: .1em; vertical-align: .15em; }

/* 0.42.0 (Lighton, November 14, 2026, 09:41): the demo in colour, and "Demo mode" in the menu */
.try-demo.small { background: var(--clay-50); border: 1.5px solid var(--clay); border-left-width: 6px; position: relative; }
.try-demo.small.is-open { background: var(--clay); color: #fff; }
.try-demo.small.is-open .hint, .try-demo.small.is-open .link { color: #fff; }
.try-demo.small.is-open button.wide { background: #fff; color: var(--clay); border-color: #fff; font-weight: 700; }
.demo-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--clay); color: #fff; border-radius: 999px; padding: .1rem .55rem; }
.try-demo.small.is-open .demo-tag { background: #fff; color: var(--clay); }
#drawer > button.demo-mode { justify-content: flex-start; }
#drawer > button.demo-mode .dm-state { margin-left: auto; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .05rem .55rem; background: #e7e9ee; color: #4a5260; }
#drawer > button.demo-mode.on { background: var(--clay-50); color: var(--clay); font-weight: 700; }
#drawer > button.demo-mode.on .ico { color: var(--clay); }
#drawer > button.demo-mode.on .dm-state { background: var(--clay); color: #fff; }
body.demo-on #topbar { box-shadow: inset 0 -4px 0 var(--clay); }
body.demo-on #view { outline: 3px solid var(--clay-50); outline-offset: -3px; }
/* 0.42.0 (FR-209 to FR-213): bands, VAT lines, terms, Smart Invoice */
.band-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: .4rem; align-items: center; margin: .25rem 0; }
.band-head small { color: var(--faint); }
.band-checks table { margin-top: .4rem; }
.tot.total { border-top: 1px solid var(--line, #e3e3e3); font-weight: 700; }
.tot strong { white-space: nowrap; }
.tax-line, .band-note { font-size: .85rem; }
.terms-block .check { align-items: flex-start; }
.terms-text { white-space: pre-wrap; font-size: .9rem; line-height: 1.5; }
.invoice-block { margin-top: .8rem; border-top: 1px solid #e3e7e3; padding-top: .6rem; }
.invoice-block h3 { margin: 0 0 .3rem; font-size: 1rem; }
.smart-form { margin: .4rem 0; }
p.amber { color: #9a5b00; font-weight: 600; }
.band-row.rate-row { grid-template-columns: 1.3fr 1fr auto; }
/* 0.42.1 (FR-215 to FR-218): Build charged per build */
.bstate { display: inline-block; margin-top: .3rem; border-radius: 8px; padding: .2rem .5rem; font-size: .8rem; line-height: 1.35; }
.bstate.preview { background: #fff4e5; border: 1px solid #f0c27b; color: #7a4a00; }
.bstate.paid { background: #eaf6ec; border: 1px solid #9fd3a9; color: #1e5e2e; }
.bstate.expired { background: #eef0f4; border: 1px solid #c9ced8; color: #444; }
/* 0.53.0 (FR-352, FR-353): demo access to Build */
.bstate.demo, .pill.demo { background: #eaf1fb; border: 1px solid #a9c3ea; color: #1f4a8a; }
.demo-line { background: #eaf1fb; border: 1px solid #a9c3ea; color: #1f3d6b; border-radius: 10px; padding: .6rem .75rem; font-size: .9rem; margin: .6rem 0; }
.demo-line.soon { background: #fff4e5; border-color: #f0c27b; color: #7a4a00; }
.demo-card form label { display: block; margin: .5rem 0; } .demo-card h3 { margin: 1rem 0 .4rem; font-size: .95rem; }
.once-tag { display: inline-block; font-size: .72rem; background: #f6e3d6; color: #8a3d12; border-radius: 8px; padding: .05rem .45rem; white-space: nowrap; font-weight: 600; }
.lock-box { background: #f4f5f8; border: 1px dashed #b9c0cc; border-radius: 10px; padding: .65rem .75rem; font-size: .88rem; margin: .6rem 0; }
.lock-box.expired { border-style: solid; }
.chip-btn.off { color: #9aa1ad; border-style: dashed; cursor: not-allowed; display: inline-flex; align-items: center; }
.no-refund { margin: .6rem 0; }
.build-line { align-items: flex-start; }
.build-line > span { flex: 1; min-width: 0; align-items: flex-start; }
.build-line .build-what { display: block; line-height: 1.35; }
.build-line .once-tag { margin-top: .2rem; }
.build-line > strong { white-space: nowrap; }
.kpis.builds-kpis { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.kpis.builds-kpis > div { border: 1px solid var(--line, #d5d9e2); border-radius: 10px; padding: .5rem .9rem; min-width: 140px; }
.kpis.builds-kpis b { display: block; font-size: 1.25rem; color: #1f2a44; }

/* 0.42.2 (FR-219 to FR-222; mockup r1): the founding offer card, places left, the note at checkout */
.offer-card { border: 2px solid var(--clay); }
.tag-clay { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--clay-50); color: var(--clay); }
.offer-card h2 { margin: .5rem 0 .3rem; }
.places-big { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.offer-card .meter-track { height: 8px; background: var(--green-50); border-radius: 6px; overflow: hidden; margin: .4rem 0 .2rem; }
.offer-card .meter-track span { display: block; height: 100%; background: var(--clay); }
.offer-list { margin: .4rem 0 .4rem 1.1rem; padding: 0; font-size: .9rem; }
.offer-list li { margin: .2rem 0; }
p.note { background: var(--green-50); border-radius: var(--radius-s); padding: .6rem .7rem; font-size: .85rem; margin: .5rem 0 0; }
.found-note p { margin: .4rem 0 0; font-size: .9rem; }
.held-bands h3 { font-size: .9rem; margin: .8rem 0 .3rem; }
/* 0.42.5 (FR-225): Admin, Pilot requests */
.pilot-list .block-head { flex-wrap: wrap; gap: .4rem; }
.pilot-row .what .note { font-style: italic; }
.pilot-row { flex-wrap: wrap; }
.pilot-row .what { flex: 1 1 0; min-width: 0; }
.pilot-row .row-actions { flex-basis: 100%; gap: .4rem 1rem; padding-left: 3.2rem; justify-content: flex-start; }

/* 0.43.0 supplier price lists and admin entry (mockup r2) */
ol.wiz-steps { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0; margin: .4rem 0 .9rem; font-size: .88rem; color: var(--muted); }
ol.wiz-steps li { display: flex; align-items: center; gap: .35rem; }
ol.wiz-steps .n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; }
ol.wiz-steps li.done .n { background: var(--paid-bg); color: var(--paid); border-color: transparent; }
ol.wiz-steps li.on { color: inherit; font-weight: 600; } ol.wiz-steps li.on .n { background: var(--green); color: #fff; border-color: transparent; }
.pill.tiny { font-size: .7rem; padding: .05rem .4rem; margin-left: .35rem; vertical-align: middle; }
label.check.inline { min-height: 0; margin: 0; align-items: center; white-space: nowrap; }
.small-links { margin: .6rem 0 0; font-size: .9rem; }
.muted-block { opacity: .85; }
.block-inner { border-top: 1px solid var(--line); padding: .5rem 0; }
.block-inner summary { cursor: pointer; }
.notice-band { border-left: 4px solid var(--due); }
small.line { display: block; }
table.match-table select { max-width: 16rem; }
table.grid input.num { width: 6.5rem; text-align: right; }
.branch { margin-bottom: .4rem; }

/* 0.43.1 (FR-236; UI-ANALYSIS 55, P322 to P329): suppliers on estimate lines; cards on a phone, never a sideways table */
.sup-count { margin-left: .4rem; font-size: .72rem; font-weight: 700; background: var(--green-50); color: var(--navy); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
small.price-from { display: block; color: var(--navy); font-size: .78rem; }
small.price-from.sup { color: var(--area); font-weight: 600; }
small.price-from.warn { color: var(--due); }
.choices .choice { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .65rem; margin: .45rem 0; background: var(--card); }
.choices .choice.sel { border: 2px solid var(--navy); background: #f7f8fb; }
.choices .radio { box-sizing: border-box; width: 18px; height: 18px; min-width: 18px; border-radius: 50%; border: 2px solid var(--faint); flex: none; margin-top: 3px; }
.choices .radio.on { border: 5px solid var(--navy); }
.choices .grow { flex: 1; min-width: 0; }
.choices .choice-price { font-size: 1.05rem; }
.choices small.choice-sub { display: block; color: var(--muted); margin-top: 2px; }
.choices .acts { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.choices .acts > * { margin-top: 0; }
.choices a.button.wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.choices .low-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.choices .low-head h3 { margin: 0; }
.badge-listed { font-size: .7rem; font-weight: 700; background: #e5f4ea; color: #1d7a46; border-radius: 6px; padding: 1px 6px; }
@media (max-width: 600px) { .choices .acts > * { flex: 1; justify-content: center; text-align: center; } }
.todo-list { margin-bottom: .8rem; }

/* 0.43.2 (P333 to P343; mockup r1): WhatsApp top-ups */
.wa-allow .meter-track.warn span { background: #d08a1e; }
.wa-allow .meter-track.full span { background: #b3412e; }
.wa-allow .wa-count .pill { margin-left: .5rem; }
.topup-line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .7rem; border: 1px solid #e3e7e3; border-radius: 10px; margin: .4rem 0; }
.topup-line.in-use { border-color: var(--navy); }
.topup-line .what { display: flex; flex-direction: column; }
.wa-order { margin-top: .6rem; }
.wa-history .tot span { color: #44504a; }
.topup-pick { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem; border: 1px solid #e3e7e3; border-radius: 12px; margin: .5rem 0 .8rem; }
.topup-pick .what { display: flex; flex-direction: column; }
.topup-sheet .no-refund { margin: .8rem 0; }
.cat-row.topup-admin { display: block; padding-left: 1.1rem; }
.topup-admin .cat-what { display: flex; flex-direction: column; gap: .15rem; }
.topup-admin .topup-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem .8rem; margin-top: .6rem; max-width: 900px; }
.topup-admin .topup-form label { display: flex; flex-direction: column; gap: .15rem; }
.topup-admin .topup-form label.wide, .topup-admin .save-line { grid-column: 1 / -1; }
.topup-admin .topup-hist { display: flex; flex-direction: column; gap: .2rem; margin-top: .6rem; }

/* 0.43.2 (P329): the matching step on a phone: one card per line, no sideways scrolling */
.match-table .m-lbl { display: none; }
@media (max-width: 760px) {
  .match-table, .match-table tbody { display: block; width: 100%; }
  .match-table thead { display: none; }
  .match-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "item price" "src med" "mat mat" "status skip" "acc acc";
    gap: .35rem .6rem; padding: .7rem; margin: 0 0 .6rem; border: 1px solid #e3e7e3; border-radius: 12px; background: #fff; }
  .match-table td { display: block; padding: 0 !important; border: 0 !important; text-align: left; min-height: 0; }
  .match-table .m-mat > div { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
  .match-table .m-item { grid-area: item; } .match-table .m-price { grid-area: price; text-align: right; }
  .match-table .m-src { grid-area: src; color: #5b665f; } .match-table .m-med { grid-area: med; text-align: right; color: #5b665f; }
  .match-table .m-mat { grid-area: mat; } .match-table .m-mat select { width: 100%; }
  .match-table .m-status { grid-area: status; }
  .match-table .m-skip { grid-area: skip; } .match-table .m-acc { grid-area: acc; }
  .match-table tr:not(:has(.m-acc)) { grid-template-areas: "item price" "src med" "mat mat" "status skip"; }
  .match-table .m-status { align-self: center; }
  .match-table .m-skip label, .match-table .m-acc label { display: flex; justify-content: center; gap: .4rem; padding: .4rem .8rem; border: 1px solid #cfd6d1 !important; border-radius: 8px; }
  .match-table .m-lbl { display: inline; }
  .table-wrap:has(> .match-table) { overflow-x: visible; }
}
/* 0.44.0: bed spaces (P344 to P348; mockup r1) */
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 599px) { .stats.four { grid-template-columns: repeat(2, 1fr); } }
.bed-rooms { display: grid; gap: .6rem; }
@media (min-width: 900px) { .bed-rooms { grid-template-columns: repeat(2, 1fr); } }
.bed-room .block-head small { color: var(--muted, #5b665f); }
.bed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.bed-chip { display: grid; grid-template-columns: 1.6rem 1fr; grid-template-rows: auto auto; text-align: left; padding: .5rem .6rem; border-radius: 10px; border: 1px solid; background: #fff; min-height: 52px; column-gap: .4rem; cursor: pointer; }
.bed-chip strong { grid-row: span 2; font-size: 1.1rem; align-self: center; }
.bed-chip span { font-weight: 600; font-size: .9rem; color: var(--ink); }
.bed-chip small { font-size: .78rem; }
.bed-chip.paid { border-color: #2e9e4f; background: #eef8f1; } .bed-chip.paid small { color: #1d7a3b; }
.bed-chip.due { border-color: #d9822b; background: #fdf3e8; } .bed-chip.due small { color: #9a5713; }
.bed-chip.leaving { border-color: #2f6fb3; background: #edf3fa; } .bed-chip.leaving small { color: #245a92; }
.bed-chip.free { border: 1.5px dashed #9aa59e; background: #fafbfa; } .bed-chip.free span { color: #6b766f; font-weight: 500; }
.bed-key { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; font-size: .82rem; margin: .8rem 0; }
.bed-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: -.6rem; }
.bed-dot.paid { background: #2e9e4f; } .bed-dot.due { background: #d9822b; } .bed-dot.leaving { background: #2f6fb3; } .bed-dot.free { border: 1.5px dashed #9aa59e; }
.bed-step { display: grid; grid-template-columns: 1fr 40px 2.2rem 40px; align-items: center; gap: .4rem; padding: .45rem 0; border-bottom: 1px solid #eef0ee; }
.bed-step .step { min-height: 40px; font-size: 1.2rem; padding: 0; }
.bed-step .step-n { text-align: center; font-size: 1.1rem; }
.switch-row { display: flex; gap: .7rem; align-items: flex-start; }
.switch-row span { display: flex; flex-direction: column; }
.bill-line { background: #eef8f1; border-radius: 8px; padding: .6rem .7rem; font-size: .9rem; }
.check.must { font-weight: 600; }
.beds-table td, .beds-table th { text-align: left; }
.bed-lines-note { font-size: .85rem; }
.bed-step .what { display: flex; flex-direction: column; }
.switch-row input[type=checkbox] { width: 2.6rem; height: 1.5rem; accent-color: var(--green); flex: none; }
.beds-table td, .beds-table th { padding: .35rem 1rem .35rem 0; }

/* 0.45.0: house ideas (FR-264 to FR-273; P356 to P364) */
.pick.multi { flex-wrap: wrap; }
.idea-get { background: var(--green-50); border-radius: var(--radius-s); padding: .6rem .75rem; margin: .5rem 0; }
.idea-get p { margin: .25rem 0; }
.idea-drawing { text-align: center; }
.idea-spin { width: 42px; height: 42px; margin: 1rem auto; border: 4px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: idea-spin 1s linear infinite; }
@keyframes idea-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .idea-spin { animation: none; } }
.idea-step { font-weight: 600; }
.idea-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin: .75rem 0; }
.idea-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; color: inherit; text-decoration: none; background: var(--card); }
.idea-card:hover { border-color: var(--green); }
.idea-card-head { display: flex; gap: .5rem; align-items: center; }
.idea-label { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.idea-thumb svg, .idea-plan svg { width: 100%; height: auto; display: block; }
.idea-thumb { margin: .5rem 0; }
.idea-plan { max-width: 560px; margin: .5rem auto; }
.idea-notice { border: 2px solid var(--clay); background: var(--clay-50); border-radius: var(--radius-s); padding: .6rem .75rem; margin: .6rem 0; }
.idea-notice p { margin: .25rem 0 0; }
.idea-over { color: var(--bad); }
.idea-checks { list-style: none; padding: 0; margin: .6rem 0; }
.idea-checks li { margin: .2rem 0; }
.idea-checks li.no { color: var(--due); }
td.changed { font-weight: 700; color: var(--green); }
.block-plan .bp-plot { fill: #f6f3ec; stroke: var(--ink); stroke-width: 1.5; }
.block-plan .bp-setback { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; }
.block-plan .bp-room { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.block-plan .bp-wet { fill: #e4eef8; }
.block-plan .bp-out { fill: #eef3e6; stroke-dasharray: 3 2; }
.block-plan .bp-cor { fill: #f0f0f0; }
.block-plan .bp-label { fill: var(--ink); font-family: var(--font); font-weight: 600; }
.block-plan .bp-area { font-weight: 400; fill: var(--muted); }
.block-plan .bp-road { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.block-plan .bp-north path { fill: var(--ink); }
.block-plan .bp-north text { font-size: 9px; font-family: var(--font); fill: var(--ink); }
@media print { .idea-one .button, .idea-one button, .idea-one .small-link { display: none; } .idea-notice { break-inside: avoid; } }
/* 0.46.0: experts (P365 to P374) */
.ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;margin-bottom:12px}
.ex-card{background:var(--card,#fff);border:1px solid var(--line,#e3e7e3);border-radius:12px;padding:14px}
.ex-head{display:flex;gap:12px;align-items:flex-start}.ex-head .what{flex:1;display:flex;flex-direction:column;gap:2px}
.ex-av{width:46px;height:46px;border-radius:50%;background:#eef0f5;color:#1f2a44;display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}
.ex-chk{display:inline-flex;gap:5px;align-items:center;align-self:flex-start;font-size:12px;font-weight:700;color:#1d7a46;background:#e5f4ea;border-radius:6px;padding:2px 8px;margin:3px 0}
.ex-chk .ico{width:13px;height:13px}
.ex-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center}
.ex-wa{background:#1f8f4e;border-color:#1f8f4e;color:#fff}
.ex-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ex-info{background:#eef0f5;border-radius:10px;padding:9px 12px;font-size:13px;color:#1f2a44}
.ex-two{display:grid;grid-template-columns:1.2fr 1fr;gap:12px}
.ex-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ex-tiles figure{margin:0}.ex-tiles img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block}.ex-tiles figcaption{font-size:11px;color:#5b665f}
.ex-v{border:1px solid var(--line,#e3e7e3);border-radius:8px;padding:7px 9px;background:#fafbfa;margin:2px 0;font-size:13.5px}
.ex-rules{font-size:13px;color:#5b665f;background:#fafbfa;border:1px solid var(--line,#e3e7e3);border-radius:10px;padding:9px 11px;margin:10px 0}
.ex-pending{border:1px dashed #c9a227;background:#fffbea;color:#6b5600;border-radius:6px;padding:1px 6px}
.ex-closed{font-size:13.5px}
.ex-ms td,.ex-ms th{font-size:13px}
.chip{display:inline-block;border:1px solid var(--line,#e3e7e3);border-radius:99px;padding:3px 10px;margin:2px;font-size:12px;background:#fff}
@media(max-width:700px){.ex-filters,.ex-two{grid-template-columns:1fr}.ex-grid{grid-template-columns:1fr}}
.ex-card .ex-acts,.chips + .ex-acts{border:0;background:none;padding:0;box-shadow:none;border-radius:0}.ex-acts>*{width:auto;margin:0;flex:0 0 auto}
.ex-job .block-head .what{display:flex;flex-direction:column;gap:2px}
.ex-res{display:flex;gap:6px;align-items:center}.ex-res input[type=checkbox]{flex:none;width:20px;height:20px;margin:0}.ex-res input:not([type=checkbox]){flex:1;min-width:110px}

/* 0.47.0: report a problem (P375 to P384; mockup r1) */
.toast-link { color: #9be3b0; font-weight: 600; text-decoration: underline; }
.pb-page { max-width: 760px; margin: 0 auto; }
.pb-form fieldset.plain { margin: .4rem 0 .8rem; border: 0; padding: 0; }
.pb-form fieldset.plain legend { padding: 0; margin-bottom: .3rem; font-size: .9rem; }
.pb-choice { flex-wrap: wrap; }
.pb-choice label { cursor: pointer; }
.pb-facts { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid #e3e7e3; border-radius: 12px; background: #f7f9f7; }
.pb-facts h3 { margin: 0 0 .5rem; font-size: .95rem; }
.pb-kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 .6rem; font-size: .9rem; }
.pb-kv dt { color: var(--muted); } .pb-kv dd { margin: 0; overflow-wrap: anywhere; }
.pb-shot-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.pb-thumb { max-width: 220px; max-height: 220px; border: 1px solid #d9deda; border-radius: 8px; display: block; margin-bottom: .4rem; }
.pb-done { text-align: center; } .pb-done .ico { width: 40px; height: 40px; color: var(--green); }
.pb-done .button { margin: .3rem; }
.pb-editor .chips { margin: .5rem 0; }
.pb-canvas-wrap { background: #eef1ee; border-radius: 10px; padding: .4rem; text-align: center; }
.pb-canvas { max-width: 100%; max-height: 55vh; touch-action: none; cursor: crosshair; border-radius: 6px; }
.pb-editor-acts { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .6rem; }
.pb-new { position: static; margin-left: .4rem; background: var(--bad, #b42318); color: #fff; }
.pb-thread { display: grid; gap: .5rem; margin: .8rem 0; }
.pb-msg { padding: .6rem .8rem; border-radius: 10px; background: #f3f5f3; }
.pb-msg.malo { background: #e8f5ec; }
.pb-ask { padding: .8rem; border: 1px solid #e3e7e3; border-radius: 12px; margin: .8rem 0; }
.pb-ask-btns, .pb-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.pb-filters { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pb-filter { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.pb-queue td small { font-size: .78rem; }
.pb-two { display: grid; gap: 1rem; }
body.wide .pb-two { grid-template-columns: 1.3fr 1fr; align-items: start; }
.pb-errs { display: grid; gap: .4rem; }
.pb-err { display: grid; grid-template-columns: max-content max-content 1fr; gap: .6rem; font-size: .85rem; align-items: baseline; }
.pb-err code { background: #f3f5f3; padding: .05rem .35rem; border-radius: 4px; }
section.block textarea { width: 100%; }

/* 0.48.0 property templates (FR-294 to FR-301; mockup r1; UI-ANALYSIS 61, P385 to P393) */
.tpl { max-width: 720px; margin: 0 auto; }
.tpl-wide { max-width: 980px; }
.tpl h2 { margin: .4rem 0 .2rem; }
.tpl-steps { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0 0 .6rem; counter-reset: s; flex-wrap: wrap; }
.tpl-steps li { counter-increment: s; font-size: .78rem; color: #6b746e; padding: .2rem .55rem; border-radius: 999px; background: #eef0ee; }
.tpl-steps li::before { content: counter(s) ". "; }
.tpl-steps li.on { background: var(--green); color: #fff; font-weight: 600; }
.tpl-steps li.done { color: var(--green); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: .7rem 0; }
.tpl:not(.tpl-wide) .tpl-grid { grid-template-columns: 1fr; }
.tpl-card { display: flex; gap: .7rem; align-items: flex-start; text-align: left; padding: .8rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-weight: 400; min-height: 72px; box-shadow: none; }
.tpl-card strong { display: block; font-size: .95rem; }
.tpl-card small { display: block; color: #5d665f; font-size: .8rem; line-height: 1.35; margin-top: .15rem; }
.tpl-card.on { border: 2px solid var(--green); background: #f1f7f3; }
.tpl-card:disabled { opacity: .55; }
.tpl-ico { font-size: 1.4rem; width: 1.8rem; text-align: center; color: var(--green); flex: none; }
.tpl-nav { display: flex; justify-content: space-between; gap: .6rem; margin: .9rem 0; }
.tpl-nav button { min-width: 110px; }
.q { margin: .2rem 0 .8rem; }
.q > p { margin: 0 0 .35rem; font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg button { min-height: 40px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid #c9cfca; background: #fff; color: var(--ink); font-weight: 500; box-shadow: none; }
.seg button.on { border-color: var(--green); background: var(--green); color: #fff; }
.create-list .mk-group + .mk-group { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .4rem; }
.create-list h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #6b746e; margin: .3rem 0 .4rem; }
.mk { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; }
.mk input { margin-top: .2rem; width: 18px; height: 18px; flex: none; }
.mk b { font-weight: 600; }
.mk small { display: block; color: #5d665f; font-size: .8rem; }
.mk.skip, .mk.blocked { color: #6b746e; }
.chip.tofill { background: #fff3d6; color: #8a5a00; margin-left: .35rem; }
.chip.muted { background: #eef0ee; color: #6b746e; margin-left: .35rem; }
.ob.draft { border-left: 3px solid #e0a43a; }
.ob.draft .ob-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.next-steps ol { margin: 0; padding-left: 1.2rem; }
.next-steps li { padding: .35rem 0; }
.next-steps li > .what { display: inline-block; vertical-align: middle; width: calc(100% - 110px); }
.next-steps li > button { float: right; }
.next-steps li .what small { display: block; color: #5d665f; }
.top-link.more { margin-left: .4rem; background: none; border: 0; font-size: 1.3rem; line-height: 1; padding: 0 .4rem; color: inherit; box-shadow: none; min-height: 0; }
.menu-list .row { width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; color: var(--ink); font-weight: 400; }
.create-list label.mk { display: flex; flex-direction: row; gap: .6rem; margin: 0; font-weight: 400; }
.create-list label.mk > span { flex: 1; min-width: 0; }
.create-list label.mk input { min-height: 0; padding: 0; }
@media (max-width: 599px) { .tpl-steps { flex-wrap: nowrap; overflow-x: auto; } .tpl-steps li { white-space: nowrap; font-size: .72rem; } }
/* 0.49.0 (FR-307): the monthly tax file, two columns on a computer */
.an-tax { display: grid; gap: 16px; }
.an-tax label { display: block; margin: 8px 0; }
.an-tax label.check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.an-tax label.check input { width: auto; margin: 0; }
.an-tax label.check small { color: var(--muted, #5b665f); }
.an-tax-dl { margin-top: 14px; }
.an-tax .info { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #eef6f1; }
@media (min-width: 900px) { .an-tax { grid-template-columns: minmax(300px, 1fr) 1.4fr; align-items: start; } }

/* 0.50.0: deposits (P408 to P415) */
.deposit .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.deposit details.small summary { cursor: pointer; font-size: .9rem; color: var(--muted, #5b665f); }
.dep-record { margin-top: 8px; display: grid; gap: 8px; }
.dep-photos { display: flex; gap: 6px; margin-top: 6px; }
.dep-photos img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line, #d4dad5); }
.dep-row { border: 1px solid var(--line, #d4dad5); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; display: grid; gap: 6px; }
.dep-total { border-top: 1px solid var(--line, #d4dad5); padding-top: 8px; margin-top: 6px; }
.dep-total strong.big, .dep-held strong.big { font-size: 1.5rem; }
.dep-held strong.big { display: block; margin: 2px 0 4px; }
@media (min-width: 900px) { .dep-sheet .dep-rows { max-height: 52vh; overflow: auto; } }
.grid2 { display: grid; gap: 8px 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* 0.50.1 (walkthrough 97): paired fields with a hint under one of them sit in line, and stack on a phone */
.two:has(small.hint) { align-items: start; }
@media (max-width: 480px) { .two:has(small.hint) { grid-template-columns: 1fr; } }

/* 0.51.0: one-step pilot invitation (FR-319 to FR-325; mockup r1) */
.pilot-card { border-left: 4px solid var(--green); }
.pilot-card h2 { margin-bottom: .3rem; }
.pilot-card .pilot-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.pilot-card .pilot-actions .button.primary { flex: 1 1 auto; text-align: center; }
.pilot-card .pilot-actions .link { margin-left: auto; }
table.pilot-grid th { padding: .6rem; }
table.pilot-grid td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.pilot-grid tr.stale td { background: #fff7e6; }
.pilot-table .note.warn { background: #fff7e6; border-left: 4px solid #d98e04; padding: .5rem .8rem; border-radius: 6px; }
.pilot-invite h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
.pilot-invite .pilot-mods { display: grid; gap: .3rem; margin-bottom: .5rem; }
.pilot-invite fieldset.inline { border: 0; padding: 0; margin: .6rem 0; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.pilot-invite fieldset.inline legend { float: left; margin-right: .6rem; font-weight: 600; }
.mail-preview { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: #fff; max-height: 60vh; overflow: auto; }
table.pilot-grid td { vertical-align: middle; }
.pilot-invite label.check { display: flex; align-items: center; gap: .55rem; margin: 0; min-height: 2.4rem; font-weight: 400; }
.pilot-invite label.check input { flex: none; margin: 0; }
.pilot-invite .pilot-mods { gap: 0; }
.pilot-join { background: #eaf5ef; border-left: 4px solid var(--green); padding: .6rem .8rem; border-radius: 6px; margin: 0 0 .8rem; }
/* 0.51.1: an ended pilot invitation shows only its message and "Back to sign in"; a fixed address looks fixed */
.pilot-join.ended { background: #fdecea; border-left-color: #c0392b; color: #8e2a1f; }
#auth-form.pilot-ended > label, #auth-form.pilot-ended #storage-hint, #auth-form.pilot-ended #ref-from, #auth-form.pilot-ended #auth-msg,
#auth-form.pilot-ended #auth-submit, #auth-form.pilot-ended #auth-tick, #auth-form.pilot-ended #sso, #auth-form.pilot-ended #to-reset { display: none !important; }
#auth-form input[readonly] { background: #f1f3f5; color: #4b5563; cursor: default; }

/* 0.52.0: house ideas part 2, the 3D view and the owner's edits (FR-326 to FR-341; mockup r1) */
.idea-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin: .6rem 0; }
.idea-two { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .idea-two { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }
.idea-card, .idea-sheet { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; background: var(--card); margin-bottom: .75rem; }
.idea-sheet h3 { margin: 0; }
.idea-plan.can-edit [data-room] { cursor: pointer; }
.idea-plan.can-edit [data-room]:hover, .idea-plan.can-edit [data-room]:focus { fill: #eef2fb; outline: none; }
.block-plan .bp-room.sel { fill: #dbe4f7; stroke: var(--ink); stroke-width: 3; }
.block-plan .bp-label { pointer-events: none; }
.idea-rm { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.idea-rm small { display: block; color: var(--muted); font-size: .8rem; }
.idea-stepper { display: inline-flex; align-items: center; border: 1px solid #c9cfca; border-radius: 999px; overflow: hidden; background: #fff; white-space: nowrap; }
.idea-stepper button { border: 0; background: none; font: inherit; font-size: 1.2rem; min-width: 44px; min-height: 44px; cursor: pointer; }
.idea-stepper span { min-width: 4.2rem; text-align: center; font-weight: 600; }
.idea-err { background: #fdecea; border: 1px solid #f1b5ae; color: #8a1f14; border-radius: var(--radius-s); padding: .5rem .65rem; margin: .5rem 0; font-size: .9rem; }
.idea-okline { color: var(--green); font-size: .88rem; margin: .5rem 0 0; }
.idea-field { margin: .45rem 0; }
.idea-field small { color: var(--muted); }
.idea-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: .3rem; }
@media (min-width: 1150px) { .idea-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.idea-strip > div { border: 1px solid var(--line); border-radius: var(--radius-s); padding: .45rem .6rem; background: var(--card); }
.idea-strip small { display: block; color: var(--muted); font-size: .78rem; }
.idea-strip strong { white-space: nowrap; }
.idea-strip .up { color: #a14a12; } .idea-strip .down { color: var(--green); }
.idea-strip span { font-size: .85rem; white-space: nowrap; }
.idea-view { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f6f3ec; min-height: 240px; touch-action: none; }
.idea-view canvas { display: block; width: 100%; }
.idea-stamp, .idea-hint { position: absolute; left: .5rem; font-size: .72rem; background: rgba(255, 255, 255, .82); padding: .1rem .4rem; border-radius: 6px; pointer-events: none; }
.idea-stamp { top: .5rem; font-weight: 600; } .idea-hint { bottom: .5rem; color: var(--muted); }
.idea-drawn svg { width: 100%; height: auto; display: block; }
.idea-view .idea-drawn { touch-action: auto; }
.idea-vb { flex-wrap: wrap; }
.idea-vb .chip-btn { white-space: nowrap; flex: 0 0 auto; }
.idea-info { background: var(--green-50); border-radius: var(--radius-s); padding: .45rem .6rem; margin: .5rem 0; font-size: .9rem; }
.idea-info:empty { display: none; }
.idea-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.idea-opt { text-align: left; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .5rem; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.idea-opt.sel { border: 2px solid var(--green); }
.idea-opt small { color: var(--muted); }
.idea-print, .idea-print-plan { display: none; }
@media print { .idea-print, .idea-print-plan { display: block; } .idea-print .idea-drawn { max-width: 150mm; margin: 4mm auto; break-inside: avoid; }
  .idea-one .idea-bar, .idea-one .chips, .idea-one .idea-view, .idea-one .idea-sheet, .idea-one .idea-info, .idea-one .idea-stepper, .idea-one .idea-side3d { display: none; } }
.chip-btn:disabled { opacity: .45; cursor: default; }
.block-plan.bp-zoom .bp-room { stroke-width: .7; } .block-plan.bp-zoom .bp-room.sel { stroke-width: 1.6; } .block-plan.bp-zoom .bp-plot { stroke-width: .8; } .block-plan.bp-zoom .bp-setback { stroke-width: .5; stroke-dasharray: 3 2; }
.idea-strip > div:last-child strong { font-size: .95rem; }
.idea-opt { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.idea-opt .idea-thumb { width: 100%; margin: 0; }

/* 0.52.3 (FR-347, FR-348): the roofed picture on each idea's card; the "saved" lines */
.idea-pair { display: grid; grid-template-columns: 1.25fr 1fr; gap: .5rem; align-items: center; margin: .5rem 0; }
.idea-pair .idea-thumb { margin: 0; }
.idea-roofed svg { border-radius: 8px; }
.idea-saved { font-size: .85rem; color: var(--muted); margin: .4rem 0; }
.idea-saved .ico { width: 15px; height: 15px; vertical-align: -2px; color: var(--green); }
.idea-saved.center { text-align: center; }
@media print { .idea-saved { display: none; } }

/* 0.54.0 (FR-367): a table that must fit a phone's width (the "use this idea" confirmation was cut off at 375 px) */
table.grid.fit { table-layout: fixed; width: 100%; }
table.grid.fit th, table.grid.fit td { white-space: normal; overflow-wrap: anywhere; padding-left: .4rem; padding-right: .4rem; }
table.grid.fit th:first-child, table.grid.fit td:first-child { width: 36%; }

/* 0.54.5 (FR-378; walk-through C2, C3, U3) */
.tenancy-row .what strong { white-space: normal; overflow-wrap: anywhere; }  /* the tenant's name stays whole on a phone */
.tenancy-row .what small.owed { color: var(--bad); font-weight: 600; white-space: normal; }
#fab { transition: opacity .15s, transform .15s; }
#fab.clear { opacity: 0; transform: scale(.6); pointer-events: none; }  /* a block's own small button is passing under it */
/* 0.55.0 (P455): the WhatsApp message shown before it opens */
.wa-text { margin: .6rem 0 1rem; padding: .75rem .9rem; border-left: 3px solid #25d366; background: var(--surface-2, #f4f6f4); border-radius: 6px; white-space: pre-wrap; font-size: .95rem; }
.pilot-list > .row-actions { justify-content: flex-start; margin: .2rem 0 .4rem; }

/* 0.57.0 "Help me set up" (FR-389 to FR-396; mockup r1) */
.help-list { list-style: none; padding: 0; margin: 4px 0 10px; }
.help-list li { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.help-list .help-can .ico { color: var(--green); }
.help-list .help-cannot .ico { color: #b42318; }
.help-ask h3 { font-size: 15px; margin: 12px 0 6px; }
.help-banner { background: #fef5d8; }
.danger-outline { color: #b42318; border-color: #b42318; }
.help-mode { margin: -4px 0 12px; border-radius: 12px; overflow: hidden; border: 1px solid #f1d58a; }
.help-mode-bar { display: flex; justify-content: space-between; align-items: center; background: #1f3550; color: #fff; padding: 10px 14px; }
.help-mode-bar button { background: transparent; color: #fff; border: 0; font-weight: 600; }
.help-mode-note { background: #fef5d8; margin: 0; padding: 8px 14px; font-size: 14px; }
.help-prop p small { color: var(--muted, #667085); }
.help-locked { color: var(--muted, #667085); font-size: 14px; margin-top: 14px; }
.help-locked .ico { width: 14px; height: 14px; vertical-align: -2px; }
body.helping #fab, body.helping #side-add, body.helping #search-btn { display: none; }
body.helping #sidebar [data-nav], body.helping #drawer [data-nav], body.helping #tabbar [data-nav] { display: none; }

/* 0.58.0 (FR-398; P466): Helper mode, like Demo mode but in the help colour */
#drawer > button.helper-mode.on { background: #e6edf5; color: #1f3550; }
#drawer > button.helper-mode.on .ico { color: #1f3550; }
#drawer > button.helper-mode.on .dm-state { background: #1f3550; color: #fff; }
body.helper-on #topbar { box-shadow: inset 0 -4px 0 #1f3550; }
body.helper-on #view { outline: 3px solid #e6edf5; outline-offset: -3px; }
.demo-band.helper-band { background: #1f3550; }
.demo-band.helper-band button.small { color: #1f3550; }
.helping-home .acts { display: flex; gap: .5rem; flex-wrap: wrap; }
body.helper-on #tabbar, body.helper-on #side-add { display: none !important; }  /* 0.58.0: Helper mode reaches only its own screens */

/* 0.59.1 (FR-403): the Malovault mark beside the endorsement, the company line, and Account, About */
.endorse img { vertical-align: -3px; margin-right: 4px; }
.company-line { margin: 4px 0 0; text-align: center; font-size: .72rem; color: rgba(31, 42, 68, .65); }
.about-malo .mv-logo { display: block; height: 27px; width: auto; margin: 4px 0 10px; }

/* 0.60.0 (FR-404): the report preview in the sheet */
.report-preview { margin: .2rem 0 .6rem; }
.report-frame { width: 100%; height: min(70vh, 720px); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.what small.wrap { white-space: normal; overflow: visible; text-overflow: clip; }
/* 0.68.0 (FR-441 to FR-447): co-owners */
.co-can { border: 1px solid var(--line, #e3e0d8); border-radius: var(--radius-s); padding: .55rem .8rem; margin: .5rem 0; }
.co-can p { margin: .25rem 0; font-size: .92rem; }
.co-can .co-can strong { color: #1f6b45; } .co-can .co-agree strong { color: #9a6a12; } .co-can .co-never strong { color: #9b2c2c; }
.own-head { font-size: 1rem; margin: 1rem 0 .5rem; }
.co-band { padding: .4rem .8rem; }

/* 0.68.1 (Lighton, November 19, 2026: "Beds", "Edit outline" and "Edit" looked like plain text): small actions look like
   buttons everywhere, the same as "Add a unit" or "Find buildings": a border, padding and a hover. */
button.small-link:not(.pill-btn) { min-height: 36px; padding: .3rem .75rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem;
  box-shadow: 0 1px 1px rgba(16,24,20,.04); }
button.small-link:not(.pill-btn):hover { border-color: #b9c2bb; background: #fafbfa; }
button.small-link.danger-link { color: var(--bad); border-color: #e7c4c0; }
button.small-link.danger-link:hover { border-color: var(--bad); background: #fdf6f5; }
button.small-link.wide { width: 100%; justify-content: center; }
.unit-group-head button { white-space: normal; text-align: left; }

/* 0.68.1: tooltips on a computer only (a pointer that can hover); phones show none. Icon-only buttons carry
   data-tip (their aria-label says the same); other controls use the browser's own title. */
[data-tip] { position: relative; }
@media (hover: hover) and (pointer: fine) {
  [data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 6px);
    transform: translateX(-50%); z-index: 3000; padding: .3rem .55rem; border-radius: 6px; background: #263028; color: #fff;
    font: 500 .78rem/1.3 inherit; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
}

/* 0.69.0 (FR-448 to FR-455): the emergency contact */
.em-wait { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.em-ask { border-left: 4px solid #b8432f; }
.em-band { background: #fbeee9; }

/* 0.70.0 (FR-458): an admin opens a listing that is not live */
.listing-admin-view .kv { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.listing-admin-view .kv > strong { text-align: right; overflow-wrap: anywhere; }
.listing-admin-view .listing-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: .75rem 0; }
.listing-admin-view .listing-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.listing-admin-view .listing-desc { white-space: pre-wrap; margin: .75rem 0; }
.held-bands .bed-bands { margin-top: .75rem; }
.admin-page .row .what > button.small-link { align-self: flex-start; width: auto; justify-self: start; display: inline-flex; }
/* 0.71.0 (FR-462): "Delete property" beside "Edit property" in the top bar */
button.top-link.danger-link { color: var(--bad); }
@media (max-width: 480px) { #top-action .top-link { padding: .5rem .45rem; font-size: .82rem; } button.top-link.danger-link { margin-left: 0; } }
.danger-outline.wide { margin-top: .6rem; background: #fff; border: 1px solid #b42318; }
/* 0.71.0 (FR-464): how a shared search result is shared */
.chip.how-co_owner { background: #f1e9fb; color: #6a3fa0; } .chip.how-managing { background: #e9f0fc; color: #2558b8; }
.chip.how-shared { background: #eef0f5; color: #34456b; } .chip.how-emergency { background: #fff2d9; color: #9a5b00; }
.row.result .chip { margin-left: auto; font-size: .72rem; font-weight: 600; border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.scope-chips { margin-top: .3rem; }
table.search-docs small.excerpt { display: block; }
#top-action { display: inline-flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
#screen-title { min-width: 4.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.top-link.danger-link { display: inline-flex; align-items: center; gap: .3rem; }
button.top-link.danger-link .ico { width: 18px; height: 18px; }
.sheet .row.compact .what small, #sheet .row.compact .what small { white-space: normal; overflow: visible; text-overflow: clip; }

/* 0.71.1 (FR-467 to FR-469): the report preview on phones; the new-release bar */
.report-top .report-dl { margin: .2rem 0 .2rem; }
/* 0.74.5 (finding 160 c): "Download preview" and "Download the clean PDF" together at the top: side by side, stacked on a phone */
.report-actions { display: flex; gap: .6rem; align-items: stretch; margin: .2rem 0 .3rem; }
.report-actions > * { flex: 1 1 0; min-width: 0; }
.report-top .report-actions > .report-dl { flex: 0 0 auto; width: auto; padding-left: 1.2rem; padding-right: 1.2rem; }
.report-actions > div { display: flex; }
.report-top .report-actions button { margin: 0; width: 100%; white-space: nowrap; padding-left: .6rem; padding-right: .6rem; }
@media (max-width: 600px) { .report-actions { flex-direction: column; gap: .5rem; } .report-top .report-actions > .report-dl { width: 100%; } }
.report-top .hint { margin-top: 0; }
.report-page { margin: .6rem 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.report-page img { display: block; width: 100%; height: auto; }
.report-page figcaption { font-size: .8rem; color: var(--muted); text-align: right; padding: .2rem .5rem; }
#update-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1050; display: flex; align-items: center; gap: .6rem; padding: calc(.5rem + env(safe-area-inset-top, 0px)) 1rem .5rem;
  background: var(--navy, #1f2a44); color: #fff; font-size: .92rem; }
#update-bar button { margin-left: auto; min-height: 36px; background: #fff; color: #1f2a44; border-color: #fff; }
#viewer.over-sheet { z-index: 1003; }  /* the report's page viewer opens from a sheet, so it sits above it */
/* 0.71.2 (FR-474): a request that needs the owner's answer stands out at the top of Home */
.needs-answer { border: 1px solid #f0c36b; border-left: 5px solid var(--due); background: var(--due-bg); }
.needs-answer h2 { margin-top: .2rem; }
.needs-pill { display: inline-block; background: var(--due); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; border-radius: 999px; padding: .15rem .55rem; }
/* 0.72.1 (FR-481): several helpers on one help (Admin, Help to set up) */
.helper-pill { background: #eef1ee; color: var(--ink, #17211b); margin: .1rem .35rem .1rem 0; }
.helper-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.helper-row .what { display: flex; flex-direction: column; min-width: 0; }
.help-report-note { background: var(--green-50, #eef6f1); border-radius: 10px; padding: .6rem .75rem; margin-bottom: .6rem; }
.help-report-note .hint { margin: .2rem 0 0; }
/* 0.72.2 (FR-482 to FR-488): Ask the owner, the owner's answers and the owner–helper thread */
.ask-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .6rem 0; }
.ask-actions > * { flex: 1 1 10rem; }
.ask-q { margin: 0; display: flex; gap: .55rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px solid var(--line, #e3e7e3); }
.ask-q input[type=checkbox] { width: auto; flex: 0 0 auto; margin-top: .55rem; }
.ask-q > span textarea { width: 100%; }
.ask-q > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ask-text { width: 100%; font: inherit; }
.ask-why, .msg-meta { font-size: .78rem; color: var(--muted, #5b665f); font-weight: 400; }
.thread { display: flex; flex-direction: column; margin: .4rem 0 .6rem; }
.msg { border-radius: 12px; padding: .5rem .7rem; margin: .3rem 0; max-width: 85%; display: flex; flex-direction: column; gap: .2rem; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { background: var(--n50, #eef0f5); margin-left: auto; }
.msg.them { background: #fff; border: 1px solid var(--line, #e3e7e3); }
.ask-answer textarea, .ask-answer input[type=text], .thread-sheet textarea, .ask-page textarea { width: 100%; margin-top: .5rem; font: inherit; }
.ask-answer > button { margin-top: .5rem; }
.ask-list { margin: .3rem 0 .6rem 1.1rem; padding: 0; }
.coarse-note { margin: 0 0 .4rem; }

/* 0.73.0 (FR-489 to FR-494; UI-ANALYSIS 92, P534 to P539): the bell, its count, the list and the computer's drop-down */
#bell-btn { position: relative; text-decoration: none; min-width: var(--tap); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
#bell-btn .ico { width: 22px; height: 22px; }
#bell-count { position: absolute; top: 6px; right: 4px; background: var(--clay); color: #fff; font-size: .66rem; font-weight: 700; border-radius: 9px;
  min-width: 17px; height: 17px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; line-height: 1; }
#bell-count[hidden] { display: none; }
.nt-head { display: flex; align-items: center; gap: .5rem; padding: .25rem 0 .5rem; }
.nt-head .chips { display: flex; gap: .4rem; flex: 1; }
.nt-head .chips button { font: inherit; font-size: .8rem; font-weight: 600; border-radius: 20px; padding: .3rem .8rem; border: 1px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; }
.nt-head .chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.nt-mark { font: inherit; font-size: .85rem; font-weight: 600; color: #2558b8; background: none; border: 0; cursor: pointer; padding: .3rem; }
.nt-mark:disabled { color: var(--faint); cursor: default; }
.nt-sec { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: .7rem .2rem .3rem; }
.nt-list { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.nt { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; color: var(--ink); width: 100%; background: #fff; border-left: 0; border-right: 0; border-top: 0; font: inherit; text-align: left; }
.nt:last-child { border-bottom: 0; }
.nt.unread { background: #f3f6fc; }
.nt .k { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--green-50); color: var(--navy); }
.nt .k .ico { width: 16px; height: 16px; }
.nt .k.help { background: #e9f0fc; color: #2558b8; } .nt .k.co { background: #f1e9fb; color: #6a3fa0; } .nt .k.due { background: #fff2d9; color: #9a5b00; }
.nt .k.ok { background: #e7f3ec; color: #2e7a52; } .nt .k.em { background: #fdeaea; color: #c0392b; }
.nt .b { flex: 1; font-size: .88rem; min-width: 0; }
.nt.unread .b strong { font-weight: 700; } .nt .b strong { font-weight: 500; }
.nt .w { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.nt .dot { width: 9px; height: 9px; border-radius: 50%; background: #2558b8; margin-top: .6rem; flex: none; }
.nt-empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; font-size: .9rem; }
.nt-empty .ico { width: 32px; height: 32px; opacity: .5; display: block; margin: 0 auto .5rem; }
.nt-keep { text-align: center; color: var(--muted); font-size: .78rem; padding: .7rem; }
#bell-drop { position: fixed; top: 58px; right: 70px; width: 400px; max-height: 70vh; overflow: auto; background: #fff; border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22); z-index: 1000; }
#bell-drop[hidden] { display: none; }
#bell-drop .nt-head { padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
#bell-drop .nt-head strong { flex: 1; }
#bell-drop .nt-list { border-radius: 0; box-shadow: none; }
#bell-drop .nt-all { display: block; text-align: center; padding: .7rem; font-weight: 600; color: #2558b8; text-decoration: none; font-size: .88rem; border-top: 1px solid var(--line); }
body.admin #bell-btn { display: none !important; }
/* 0.74.6 (finding 163 b): on a phone a property's header (Edit property, delete, ⋯, bell, help, search) was 443 px
   wide on a 390 px screen: the search button was off the screen and every page scrolled sideways, the outline editor
   included. When a screen has its own actions, Search stays in the menu (where it also is) and the ⋯ sits closer. */
@media (max-width: 480px) {
  #top-action:not(:empty) ~ #search-btn { display: none; }
  #top-action .top-link.more { margin-left: 0; padding: 0 .3rem; }
}
/* 0.76.0 (FR-503): the picture's date in the map's corner; (FR-500) the My Maps import list */
.map-date { background: rgba(255,255,255,.88); color: #333; font-size: .75rem; padding: .1rem .45rem; border-radius: 6px; margin: 0 0 4px 4px !important; max-width: 70vw; }
.import-row { display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px solid #eee; }
.import-row .what { display: flex; flex-direction: column; min-width: 0; }
.import-row small.error { color: #b3261e; }
.import-map { height: 260px; }
/* 0.77.0 the subdivision tracker (FR-506 to FR-515; UI-ANALYSIS section 94) */
.sub-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.sub-wrap { display: flex; flex-direction: column; gap: .6rem; }
.sub-card { background: var(--card); border-radius: var(--radius); padding: .8rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); margin-bottom: .7rem; }
.sub-card h3 { margin: 0 0 .2rem; font-size: 1rem; }
.sub-map { height: 240px; margin-bottom: .7rem; }
.sub-choice { display: flex; gap: .5rem; align-items: flex-start; padding: .35rem 0; }
.sub-choice span { display: flex; flex-direction: column; } .sub-choice small { color: var(--muted); }
.sub-plot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 90px; gap: .4rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--line, #e3e7e3); }
.sub-plot-row input, .sub-plot-row select { min-width: 0; }
.sub-rem { display: flex; gap: .25rem; align-items: center; font-size: .85rem; white-space: nowrap; }
.sub-area { font-size: .9rem; color: var(--muted); }
.sub-lines { display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; margin: .5rem 0; }
.sub-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sub-council { display: block; margin-bottom: .6rem; } .sub-council select { width: 100%; }
.sub-docs ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.sub-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.sub-head h2 { margin: 0; font-size: 1.1rem; }
.sub-stages { display: flex; flex-direction: column; }
.sub-stage { display: flex; gap: .7rem; padding: .75rem; background: var(--card); border-radius: var(--radius); margin-bottom: .5rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.sub-stage.cur { outline: 2px solid var(--navy, #1f2a44); }
.sub-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #eef0f5; color: var(--navy, #1f2a44); }
.sub-stage.st-done .sub-dot { background: #e7f3ec; color: #2e7a52; } .sub-stage.st-refused .sub-dot, .sub-stage.st-lapsed .sub-dot { background: #fdeaea; color: #c0392b; }
.sub-body { flex: 1; min-width: 0; } .sub-body small { color: var(--muted); }
.sub-body .row-actions { margin-top: .4rem; gap: .35rem; }
.sub-late { background: #fdeaea; color: #8f2a1f; border-radius: 8px; padding: .35rem .55rem; margin: .35rem 0; }
.sub-due { background: #fff2d9; color: #7a4800; border-radius: 8px; padding: .35rem .55rem; margin: .35rem 0; }
.sub-note { background: #f4f5f3; border-radius: 8px; padding: .35rem .55rem; white-space: pre-wrap; }
.sub-law summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.sub-plot-line { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line, #e3e7e3); }
.sub-chips { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: .6rem; }
.sub-chips button { border-radius: 20px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; background: #fff; border: 1px solid #d4dad5; color: var(--navy, #1f2a44); white-space: nowrap; }
.sub-chips button.on { background: var(--navy, #1f2a44); color: #fff; border-color: var(--navy, #1f2a44); }
.sub-banner { display: flex; gap: .6rem; align-items: center; text-decoration: none; color: inherit; border-left: 4px solid var(--clay, #c65d3b); margin: .6rem 0; }
.sub-banner.done { border-left-color: #2e7a52; } .sub-banner div { flex: 1; display: flex; flex-direction: column; } .sub-banner small { color: var(--muted); }
.sub-people label { display: block; padding: .2rem 0; }
.plot-tip { background: rgba(255,255,255,.85); border: 0; font-weight: 700; box-shadow: none; }
@media (max-width: 720px) {
  .sub-plot-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px; }
}
/* 0.83.0: add an existing subdivision */
.sub-quick { padding: 0 0 .5rem; border-bottom: 1px solid var(--line, #e3e7e3); margin-bottom: .4rem; }
.sub-quick-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .4rem; }
.sub-unit { margin-top: .5rem; }
.sub-pick-row { border-top: 1px solid var(--line, #e3e7e3); padding: .35rem 0; } .sub-pick-row:first-child { border-top: 0; }
.sub-pick-btn { display: flex; gap: .6rem; align-items: center; justify-content: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: .3rem 0; min-height: 44px; color: inherit; font: inherit; cursor: pointer; }
.sub-pick-btn span:last-child { display: flex; flex-direction: column; } .sub-pick-btn small { color: var(--muted); }
.sub-pick-row .sub-dot { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line, #e3e7e3); }
.sub-pick-row.done .sub-dot { background: #e7f3ec; color: #2e7a52; border-color: #e7f3ec; }
.sub-pick-row.here .sub-dot { background: var(--green); color: #fff; border-color: var(--green); }
.sub-pick-row.here small { color: #9a5b00; font-weight: 600; }
.sub-pick-date { display: block; margin: 0 0 .3rem 2.2rem; font-size: .85rem; }
.sub-beacon-btn { display: block; padding-left: 0; }
.sub-choice input[type=radio] { width: auto; min-height: 0; flex: none; margin: .25rem 0 0; }
.sub-choice span { text-align: left; align-items: flex-start; }
.sub-rem input[type=checkbox] { width: auto; min-height: 0; }
.sub-plot-act { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sub-grid > div { min-width: 0; }

/* 0.78.0 (FR-522, FR-524; mock-up 0.78.0 screens 1, 2 and 4): the Recent picture add-on */
.map-seg button.try-recent { color: var(--clay, #c65d3b); font-weight: 600; display: inline-flex; align-items: center; gap: .25rem; }
.map-seg button.try-recent .ico { width: 16px; height: 16px; }
.cmp-box { position: relative; }
.cmp-map { height: 320px; border-radius: 12px; overflow: hidden; }
.cmp-tag { position: absolute; bottom: 8px; z-index: 500; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.cmp-tag.l { left: 8px; } .cmp-tag.r { right: 8px; }
/* 0.79.6 (FR-534; mock-up 0.79.6 r1): the tags sit at the top, clear of the attribution and Google's logo on a phone */
.cmp-tag { top: 8px; bottom: auto; }
.cmp-range { width: 100%; margin: .6rem 0 .2rem; }
.cmp-offer { margin-top: .6rem; }
fieldset.radios { border: 0; padding: 0; margin: .4rem 0; } fieldset.radios legend { font-weight: 600; margin-bottom: .3rem; }
details.providers { margin: .6rem 0; } details.providers summary { cursor: pointer; font-weight: 600; }

/* 0.79.0 (FR-526): the monthly Council fees check in Admin */
.fee-row .what { min-width: 0; }
.fee-acts { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .35rem; }
.fee-acts a { font-size: .85rem; margin-right: .25rem; }

/* 0.79.2 (FR-529): Google's logo while the Google picture shows; never covered (Map Tiles policies) */
.leaflet-control.google-logo { margin: 0 0 6px 8px; line-height: 0; pointer-events: none; }
.leaflet-right .leaflet-control.google-logo { margin: 0 8px 4px 0; }
.google-logo img { width: 66px; height: 26px; display: block; }

/* 0.81.0 (FR-540 to FR-547; UI-ANALYSIS 103): a helper adds tenants; the owner's check; more visible House ideas and drawing hint */
.help-more { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-s); padding: .6rem .7rem; margin: .6rem 0; }
.help-more label.check { display: flex; gap: .55rem; align-items: flex-start; margin: .35rem 0; }
.help-more label.check input { margin-top: .2rem; flex: none; }
.help-more label.check small { display: block; color: var(--muted); line-height: 1.4; }
.help-pay-warn { margin: .4rem 0 0; }
.to-check { border-left: 4px solid var(--clay); }
.check-card { margin: .6rem 0; } .check-card .pill { margin-left: .4rem; }
.help-offer { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.ht-unit { border-top: 1px solid var(--line); padding: .6rem 0; }
.ht-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .4rem; }
.ht-grid label small, .ht-unit > label small { display: block; color: var(--muted); }
.ht-unit textarea { width: 100%; }
/* 0.82.0 (FR-550): Malo Helper's reader in the quick list */
.mh-reader { background: #eef0f5; border: 1px solid #d9deea; border-radius: 12px; padding: .7rem; margin-bottom: .6rem; }
.mh-reader h3 { margin: 0 0 .3rem; display: flex; align-items: center; gap: .35rem; }
.mh-reader textarea, .mh-reader input[type=file] { width: 100%; margin: .3rem 0; }
.mh-out { margin-top: .5rem; }
.ht-check { background: #fff2d9; border-color: #e6c98f; }
a.block.row.feature-row { border-left: 4px solid var(--clay); background: var(--clay-50); }
a.block.row.feature-row .row-ico { color: var(--clay); }
p.hint.draw-google-hint { background: var(--green-50); border: 1px solid var(--green-100); border-left: 4px solid var(--green); border-radius: var(--radius-s); padding: .55rem .7rem; color: var(--ink); font-size: .92rem; margin: .5rem 0; }
p.hint.draw-google-hint a { font-weight: 600; }

/* 0.84.0 (FR-561 to FR-566): Build projects: amounts in a row never cut off */
.bp-wrap .row .what small { white-space: normal; overflow: visible; }
.bp-stats strong { font-size: 1rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.bp-wrap button.row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font: inherit; color: var(--ink); padding: .45rem 0; cursor: pointer; }
/* 0.85.0 (FR-570 to FR-574; mock-up 0.85.0 r1): tenant drafts waiting for the owner, and the helper's "What you have done" */
.pill.wait { background: var(--due-bg); color: var(--due); border: 1px dashed currentColor; }
.help-unit-add { padding: .1rem 0 .5rem 2.6rem; }
.help-draft { margin: 0 0 .6rem 2.6rem; padding: .6rem .7rem; border-radius: 10px; background: var(--due-bg); display: grid; gap: .3rem; }
.help-draft small { color: var(--muted); }
.help-done-counts .li { display: flex; justify-content: space-between; padding: .15rem 0; }
.help-done-lines { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .9rem; }

/* 0.85.1 (FR-575 to FR-577): the phone field with its country, and a title before the name */
.phone-pick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.phone-pick select.cc { flex: 0 0 auto; width: auto; min-width: 96px; }
.phone-pick input[type="tel"] { flex: 1 1 9rem; min-width: 0; }
.phone-pick .phone-err { flex-basis: 100%; margin: 0; }
.phone-pick .check { flex-basis: 100%; color: #9a6700; }
.two.title-name { grid-template-columns: minmax(96px, 8rem) 1fr; }
.bp-back { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* 0.88.0 (FR-589): an existing project's estimate */
.bp-cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.bp-cmp th { font-size: 11px; color: var(--muted, #5b665f); font-weight: 500; text-align: right; padding: 4px 3px; }
.bp-cmp th:first-child, .bp-cmp td:first-child { text-align: left; }
.bp-cmp td { padding: 6px 3px; text-align: right; border-top: 1px solid var(--line); }
.bp-cmp tr.total td { font-weight: 600; }
.bp-mat { border-top: 1px solid var(--line); padding: 8px 0; }
.bp-mat summary { font-weight: 600; font-size: 13.5px; cursor: pointer; }
.bp-ml { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; border-top: 1px solid var(--line); padding: 5px 0; }
.bp-ml small { display: block; color: var(--muted, #5b665f); }
.bp-read { border-top: 1px solid var(--line); padding: 8px 0; display: grid; gap: 6px; }
.bp-read .flag, small.flag { color: #a8641b; font-size: 12px; }
.bp-total { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 6px 0; }  /* 0.88.1 (FR-598) */

/* 0.89.0 (FR-600, FR-601): progress photos */
.bp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.bp-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0; }
.bp-ph { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--bg); cursor: pointer; text-decoration: none; }
.bp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-ph span { position: absolute; left: 4px; bottom: 4px; right: 4px; font-size: 11px; line-height: 1.2; color: #fff; background: rgba(31, 42, 68, .82); border-radius: 4px; padding: 2px 5px; width: fit-content; max-width: calc(100% - 8px); }
.bp-ph.empty { border: 1px dashed var(--line); }
.bp-ph.empty span { background: none; color: var(--muted); }
.bp-full { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: var(--bg); }

/* 0.89.1 (FR-605, FR-608, FR-609) */
.help-done-lines .who { display: inline-block; border-radius: 10px; padding: 0 6px; font-size: 11px; font-weight: 700; }
.help-done-lines .who.you { background: #e8ecf4; color: var(--green); }
.help-done-lines .who.owner { background: #e6f2eb; color: #2e7d5b; }
.form-ok { background: #e6f2eb; color: #1d5a40; border-radius: 8px; padding: 8px 10px; }
.bp-read.bad { outline: 2px solid #b4432e; border-radius: 8px; }
.update-bar { position: sticky; top: 0; z-index: 50; background: #fdf3e1; color: var(--ink); padding: 8px 12px; font-size: 14px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
p.form-msg:not(:empty) { color: #b4432e; font-weight: 500; }  /* 0.89.1 (FR-608) */

/* 0.90.1 (FR-615, FR-616): fair-use meters on the plan screen and where they are spent; amber from 75 %, red at the limit */
.meter-track.m-near span { background: #d08a1e; }
.meter-track.m-full span { background: #b3412e; }
.meter-top > span { margin-right: .75rem; }
.tile-meter .meter-top strong { font-weight: 600; white-space: nowrap; }
.fair-card .block-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
p.form-msg.warn:not(:empty) { color: var(--due); background: var(--due-bg); border-radius: var(--radius-s); padding: .45rem .7rem; font-weight: 500; }
.tile-meter .meter-track { position: relative; }
.tile-meter .meter-track i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .55; }

/* 0.90.2 (FR-621; UI-ANALYSIS 115, P612 to P614): "Which properties?" in the report sheet (mock-up 0.90.2 r1) */
.rp { display: grid; gap: .5rem; margin: .4rem 0 .8rem; }
.rp-q { color: var(--muted); font-size: .9rem; }
.rp-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--green); border-radius: 10px; overflow: hidden; }
.rp-seg button { border: 0; background: #fff; color: var(--ink); font: inherit; min-height: 44px; cursor: pointer; box-shadow: none; border-radius: 0; }
.rp-seg button.on { background: var(--green); color: #fff; font-weight: 600; }
.rp-head { display: flex; justify-content: space-between; align-items: baseline; }
.rp-list { border: 1px solid var(--line); border-radius: 10px; max-height: 320px; overflow-y: auto; background: #fff; }
.rp-row { display: flex; gap: .7rem; align-items: center; padding: .55rem .75rem; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; }
.rp-row:last-child { border-bottom: 0; }
.rp-row input { width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.rp-row span { display: grid; }
.rp-row small { color: var(--muted); }
.rp .hint { padding: .6rem .75rem; margin: 0; }
