/* POS Property Management — bright, light theme from the company card (navy + royal blue). */
:root {
  --navy: #0E2A5E;
  --blue: #1D5FD8;
  --blue-2: #4F86F0;
  --sky: #EEF4FF;
  --sky-2: #DCE8FF;
  --paper: #FFFFFF;
  --ink: #142142;
  --muted: #56627E;
  --line: #D5DFF2;
  --amber: #F5A524;
  --amber-bg: #FFF5E0;
  --red: #D63B3B;
  --red-bg: #FFECEC;
  --green: #138A52;
  --green-bg: #E5F7EE;
  --violet: #7A4CE0;
  --radius-s: 8px;
  --radius-m: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 94, .08), 0 4px 14px rgba(14, 42, 94, .06);
  --head: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* event-type key-tag colours (always paired with an icon + text label) */
  --t-sheriff: #C62828; --t-vacant: #EF6C00; --t-occupancy: #8E24AA; --t-moveout: #D81B60;
  --t-inspection: #1D5FD8; --t-locksmith: #5D4037; --t-security: #37474F; --t-cleaning: #00897B;
  --t-junk: #6D4C41; --t-repair: #F9A825; --t-contractor: #827717; --t-report: #3949AB;
  --t-followup: #0097A7; --t-utility: #2E7D32; --t-billing: #00695C; --t-notify: #5C6BC0; --t-other: #607D8B;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 var(--body); color: var(--ink); background: var(--sky); -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem 1rem; }

/* ---------- demo banner ---------- */
.demo-banner { background: #FFE27A; color: #4A3A00; text-align: center; font-weight: 600; font-size: .9rem; padding: .35rem .75rem; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: .25rem; }
.brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1rem; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--head); font-size: 1.05rem; line-height: 1.15; display: block; }
.brand span { font-size: .78rem; opacity: .8; }
.nav a { display: flex; align-items: center; gap: .7rem; color: #DCE6FF; text-decoration: none; padding: .7rem .75rem; border-radius: 10px; font-weight: 600; min-height: 46px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--navy); }
.nav .count { margin-left: auto; background: var(--amber); color: #3A2600; border-radius: 99px; font-size: .78rem; padding: 0 .5rem; font-weight: 700; }
.side .me { margin-top: auto; padding: .75rem; font-size: .88rem; color: #DCE6FF; border-top: 1px solid rgba(255,255,255,.15); }
.side .me button { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: .3rem .6rem; margin-top: .4rem; cursor: pointer; }
main { padding: 1.25rem 1.5rem 6rem; min-width: 0; }
.topbar { display: none; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: .75rem .75rem 6.5rem; }
  .topbar { display: flex; align-items: center; gap: .6rem; background: var(--navy); color: #fff; padding: .55rem .75rem; position: sticky; top: 0; z-index: 30; }
  .topbar img { width: 32px; height: 32px; }
  .topbar b { font-family: var(--head); font-size: 1rem; }
  .topbar .grow { flex: 1; }
  .topbar button { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 10px; padding: .45rem .7rem; font-weight: 600; min-height: 40px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0 .5rem; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; position: relative; min-height: 56px; justify-content: center; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  .tabbar .count { position: absolute; top: 4px; left: 54%; background: var(--amber); color: #3A2600; border-radius: 99px; font-size: .68rem; padding: 0 .35rem; font-weight: 700; }
}

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 10px; padding: .55rem .95rem; font-weight: 650; cursor: pointer; min-height: 44px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--blue-2); }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.primary:hover { background: #164FB8; }
.btn.warn { background: var(--amber-bg); border-color: #F2C46B; color: #6A4300; }
.btn.danger { background: var(--red-bg); border-color: #F2B1B1; color: #8E1F1F; }
.btn.good { background: var(--green-bg); border-color: #9ED9BC; color: #0B5A35; }
.btn.small { min-height: 36px; padding: .3rem .65rem; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label.f { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); }
label.f > span.req { color: var(--red); }
.f input, .f select, .f textarea, input.in, select.in, textarea.in { display: block; width: 100%; margin-top: .25rem; border: 1px solid #B9C7E4; border-radius: 10px; padding: .6rem .7rem; background: #fff; min-height: 46px; font-weight: 400; }
.f textarea, textarea.in { min-height: 90px; resize: vertical; }
.f .help { font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--blue); }

/* ---------- surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.empty { padding: 1.25rem; text-align: center; color: var(--muted); background: #F7FAFF; border: 1px dashed var(--line); border-radius: var(--radius-s); }
.notice { border-radius: 10px; padding: .65rem .85rem; font-size: .92rem; border: 1px solid; }
.notice.info { background: #EAF1FF; border-color: #BCD0FA; color: #173F87; }
.notice.warn { background: var(--amber-bg); border-color: #F2C46B; color: #5E3D00; }
.notice.bad { background: var(--red-bg); border-color: #F2B1B1; color: #7E1B1B; }
.notice.ok { background: var(--green-bg); border-color: #9ED9BC; color: #0B5A35; }

/* status pills: icon + text, never colour alone */
.pill { display: inline-flex; align-items: center; gap: .3rem; border-radius: 99px; padding: .1rem .55rem; font-size: .8rem; font-weight: 650; border: 1px solid; white-space: nowrap; }
.pill.ok { background: var(--green-bg); color: #0B5A35; border-color: #9ED9BC; }
.pill.wait { background: var(--amber-bg); color: #6A4300; border-color: #F2C46B; }
.pill.bad { background: var(--red-bg); color: #8E1F1F; border-color: #F2B1B1; }
.pill.info { background: #EAF1FF; color: #173F87; border-color: #BCD0FA; }
.pill.grey { background: #F1F3F8; color: #4A5470; border-color: #D9DEEA; }

/* ---------- key tags (calendar events) ---------- */
.tag { --c: var(--t-other); overflow: hidden; display: flex; gap: .55rem; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem .45rem 0; cursor: pointer; text-align: left; width: 100%; position: relative; min-height: 44px; color: var(--ink); }
.tag::before { content: ''; width: 6px; border-radius: 0 6px 6px 0; background: var(--c); flex: none; }
.tag:hover { border-color: var(--c); }
.tag .ic { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); display: grid; place-items: center; flex: none; align-self: center; }
.tag .ic svg { width: 17px; height: 17px; }
.tag .body { min-width: 0; flex: 1; }
.tag .l1 { display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; font-size: .82rem; }
.tag .tl { font-weight: 700; color: var(--c); }
.tag .time { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.tag .addr { font-weight: 650; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag .l3 { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tag.done { opacity: .6; }
.tag.done .addr { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.tag.cancelled { opacity: .45; }
.tag.compact { padding: .25rem .4rem .25rem 0; min-height: 0; }
.tag.compact .ic { width: 22px; height: 22px; }
.tag.compact .ic svg { width: 13px; height: 13px; }
.tag.compact .addr { font-size: .8rem; }
.tag.compact .l3 { display: none; }
.t-sheriff_eviction { --c: var(--t-sheriff); } .t-vacant_possession { --c: var(--t-vacant); } .t-occupancy_check { --c: var(--t-occupancy); }
.t-moveout { --c: var(--t-moveout); } .t-inspection { --c: var(--t-inspection); } .t-locksmith { --c: var(--t-locksmith); }
.t-security { --c: var(--t-security); } .t-cleaning { --c: var(--t-cleaning); } .t-junk_removal { --c: var(--t-junk); }
.t-repair { --c: var(--t-repair); } .t-contractor { --c: var(--t-contractor); } .t-report_deadline { --c: var(--t-report); }
.t-borrower_followup { --c: var(--t-followup); } .t-utility_payment { --c: var(--t-utility); } .t-billing { --c: var(--t-billing); }
.t-notify { --c: var(--t-notify); } .t-other { --c: var(--t-other); }

/* ---------- calendar ---------- */
.cal-layout { display: flex; flex-direction: column; gap: 1rem; }
.cal-layout > aside .attn-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1280px) { .cal-layout > aside .attn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cal-layout > aside .attn-grid { grid-template-columns: 1fr 1fr; } }
.cal-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; }
.cal-head h1 { margin: 0 .5rem 0 0; font-size: 1.45rem; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: .45rem .8rem; border-radius: 9px; font-weight: 650; color: var(--muted); cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.filters select, .filters input { min-height: 42px; border: 1px solid #B9C7E4; border-radius: 10px; padding: .4rem .6rem; background: #fff; width: 100%; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.month .dow { background: #F5F8FF; font-weight: 700; font-size: .8rem; color: var(--muted); padding: .35rem .5rem; }
.month .day { background: #fff; min-height: 118px; padding: .3rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.month .day.other { background: #FAFBFE; }
.month .day.today { box-shadow: inset 0 0 0 2px var(--blue); }
.month .dnum { font-weight: 700; font-size: .85rem; color: var(--navy); border: 0; background: none; text-align: left; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.month .more { font-size: .78rem; color: var(--blue); font-weight: 700; background: none; border: 0; text-align: left; cursor: pointer; padding: 2px 4px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.week .col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: .4rem; min-height: 200px; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.week .col.today { border-color: var(--blue); box-shadow: 0 0 0 2px var(--sky-2); }
.week .tag .ic { display: none; }
.week .tag { padding-left: 0; gap: .4rem; }
.week .tag .addr { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .85rem; line-height: 1.25; }
.week .tag .l1 { font-size: .76rem; gap: 0 .35rem; }
.week .tag .l3 { font-size: .74rem; }
.week .colh { font-weight: 700; color: var(--navy); font-size: .88rem; padding: .1rem .2rem; }
@media (max-width: 860px) {
  .week { grid-template-columns: 1fr; }
  .week .col { min-height: 0; }
  .month .day { min-height: 64px; }
  .month .day .tag { display: none; }
  .month .dots { display: flex; gap: 3px; flex-wrap: wrap; }
}
.month .dots { display: none; }
.month .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: block; }
.agenda-day { margin-bottom: 1rem; }
.agenda-day h3 { position: sticky; top: 0; background: var(--sky); padding: .35rem 0; z-index: 2; }
.list-gap > * + * { margin-top: .4rem; }

/* availability lanes */
.lanes { display: grid; gap: .6rem; }
.lane { display: grid; grid-template-columns: 150px 1fr; gap: .6rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: .6rem; }
.lane .who { font-weight: 700; color: var(--navy); }
@media (max-width: 860px) { .lane { grid-template-columns: 1fr; } }
.timeline { position: relative; height: 54px; background: repeating-linear-gradient(90deg, #F5F8FF 0 calc(100%/13 - 1px), var(--line) calc(100%/13 - 1px) calc(100%/13)); border-radius: 8px; }
.timeline .blk { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 22%, #fff); border: 2px solid var(--c); font-size: .72rem; overflow: hidden; padding: 0 4px; font-weight: 700; color: var(--navy); cursor: pointer; white-space: nowrap; }
.timeline .blk.clash { border-style: dashed; border-color: var(--red); background: var(--red-bg); }
.hours { display: grid; grid-template-columns: repeat(13, 1fr); font-size: .7rem; color: var(--muted); margin-left: 0; }

/* ---------- needs attention board ---------- */
.attn { background: #fff; border: 2px solid var(--amber); border-radius: var(--radius-m); padding: .9rem; box-shadow: var(--shadow); }
.attn h2 { display: flex; gap: .5rem; align-items: center; }
.attn h2 .bell { width: 30px; height: 30px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; color: #3A2600; }
.attn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.attn-grid button { text-align: left; border: 1px solid var(--line); background: #FBFCFF; border-radius: 10px; padding: .5rem .6rem; cursor: pointer; min-height: 64px; }
.attn-grid button b { display: block; font-family: var(--head); font-size: 1.5rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.attn-grid button span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.attn-grid button.hot { border-color: #F2C46B; background: var(--amber-bg); }
.attn-grid button.hot b { color: #8A4F00; }
.attn-grid button[aria-pressed="true"] { outline: 3px solid var(--blue-2); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 700; padding: .55rem .7rem; background: #F5F8FF; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .55rem .7rem; border-bottom: 1px solid #EEF2FA; vertical-align: top; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #F7FAFF; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) {
  .tbl.cards thead { display: none; }
  .tbl.cards tr { display: block; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
  .tbl.cards td { display: block; padding: .1rem 0; border: 0; }
  .tbl.cards td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: .8rem; }
  .tbl.cards td.num { text-align: left; }
}

/* ---------- property file ---------- */
.p-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: .75rem; }
.p-head h1 { margin-bottom: .2rem; }
.badges { display: flex; gap: .35rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .75rem; scrollbar-width: thin; }
.tabs a { white-space: nowrap; text-decoration: none; padding: .5rem .8rem; border-radius: 10px; font-weight: 650; color: var(--muted); background: #fff; border: 1px solid var(--line); min-height: 42px; display: inline-flex; align-items: center; }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.status4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 1100px) { .status4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .status4 { grid-template-columns: 1fr; } }
.status4 .card h3 { font-size: .95rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; font-size: .93rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.money-split { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 700px) { .money-split { grid-template-columns: 1fr; } }
.client-box { border: 2px solid var(--blue); background: #F2F7FF; border-radius: var(--radius-s); padding: .7rem; }
.client-box h4, .prov-box h4 { margin: 0 0 .35rem; font-family: var(--head); }
.client-box h4 { color: var(--blue); }
.prov-box { border: 2px solid #E2711D; background: #FFF6EE; border-radius: var(--radius-s); padding: .7rem; }
.prov-box h4 { color: #A34E0C; }
.amt-client { color: var(--blue); font-weight: 700; }
.amt-prov { color: #A34E0C; font-weight: 700; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.totals > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.totals b { display: block; font-family: var(--head); font-size: 1.25rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.totals span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.photos figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--sky-2); }
.photos figcaption { font-size: .72rem; padding: .3rem .4rem; color: var(--muted); }
.photos input { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; accent-color: var(--blue); }
.timeline-list { border-left: 3px solid var(--sky-2); padding-left: .9rem; }
.timeline-list > div { position: relative; padding: .35rem 0; }
.timeline-list > div::before { content: ''; position: absolute; left: -1.27rem; top: .75rem; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(14, 42, 94, .35); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: min(640px, 100%); box-shadow: 0 20px 60px rgba(14,42,94,.25); }
.modal.wide { width: min(900px, 100%); }
.modal header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: 16px 16px 0 0; z-index: 2; }
.modal header h2 { margin: 0; font-size: 1.15rem; }
.modal .x { border: 0; background: var(--sky); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; font-size: 1.3rem; color: var(--navy); }
.modal .mb { padding: 1rem 1.1rem; }
.modal footer { padding: .8rem 1.1rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; border-radius: 0 0 16px 16px; }
@media (max-width: 600px) {
  /* phone: the form is a full white page that grows with its content (a stretched flex child used to
     stop at screen height, so long forms spilled over the page behind them) */
  .modal-bg { padding: 0; display: block; background: #fff; }
  .modal, .modal.wide { border-radius: 0; min-height: 100%; height: auto; box-shadow: none; }
  .modal header, .modal footer { border-radius: 0; }
  .modal footer { padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); }
}
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 12px; z-index: 200; font-weight: 600; max-width: 92vw; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.toast.bad { background: #9E2323; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(160deg, #fff 0%, var(--sky) 55%, var(--sky-2) 100%); }
.login .box { width: min(520px, 100%); text-align: center; }
.login img { width: 92px; height: 92px; }
.login h1 { margin: .5rem 0 .25rem; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.25rem; }
.who-grid button { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem .75rem; cursor: pointer; text-align: left; box-shadow: var(--shadow); min-height: 84px; display: flex; gap: .7rem; align-items: center; }
.who-grid button:hover { border-color: var(--blue); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--head); flex: none; font-size: 1.05rem; }
.who-grid b { display: block; color: var(--navy); }
.who-grid span { font-size: .82rem; color: var(--muted); }
@media (max-width: 420px) { .who-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* fixes after visual review */
.status4 .card, .grid2 .card, .attn + .card { margin-top: 0; }
@media (max-width: 860px) {
  .cal-layout > aside .attn-grid { display: flex; overflow-x: auto; gap: .45rem; padding-bottom: .3rem; scroll-snap-type: x mandatory; }
  .cal-layout > aside .attn-grid button { min-width: 128px; flex: none; scroll-snap-align: start; min-height: 0; padding: .45rem .55rem; }
  .cal-layout > aside .attn-grid button b { font-size: 1.25rem; }
  .cal-layout > aside .attn p { display: none; }
  .cal-layout > aside .attn { padding: .7rem; }
  .cal-layout > aside .attn h2 { font-size: 1.05rem; margin-bottom: .4rem; }
}
.tag.compact { padding: .15rem .35rem .15rem 0; gap: .35rem; border-radius: 6px; min-height: 26px; }
.tag.compact::before { width: 4px; }
.tag.compact .ic, .tag.compact .tl { display: none; }
.tag.compact .body { display: flex; gap: .3rem; align-items: baseline; white-space: nowrap; overflow: hidden; }
.tag.compact .l1 { font-size: .72rem; flex: none; }
.tag.compact .addr { font-size: .76rem; font-weight: 600; }
.totals b { font-size: 1.1rem; }

/* ---------- property checklist (v2.0) ---------- */
.cl-top .spread { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cl-bar { height: 10px; background: var(--sky-2); border-radius: 99px; margin-top: .6rem; overflow: hidden; }
.cl-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 99px; }
.cl-num { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .35rem; border-radius: 99px; background: var(--blue); color: #fff; font-size: .85rem; margin-right: .5rem; vertical-align: 2px; }
.cl-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) auto minmax(190px, 1fr) minmax(200px, 1.6fr) auto; gap: .6rem; align-items: end; padding: .7rem .6rem; border-radius: 12px; border-left: 5px solid var(--line); background: #FAFCFF; margin-top: .5rem; }
.cl-row.cl-yes { border-left-color: var(--green); background: var(--green-bg); }
.cl-row.cl-no { border-left-color: var(--amber); background: var(--amber-bg); }
.cl-row:has(.cl-occ) { grid-template-columns: minmax(120px, .9fr) auto auto minmax(150px, 1fr) minmax(130px, 1.2fr) auto; }
@media (max-width: 1250px) { .cl-row:has(.cl-occ) { grid-template-columns: minmax(120px, 1fr) auto minmax(150px, 1fr) minmax(140px, 1.2fr) auto; } .cl-row .cl-occ { grid-column: 1 / -1; } }
.cl-occ .seg button { padding: .45rem .6rem; }
.cl-res button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.cl-row:has([data-co]) { grid-template-columns: minmax(130px, .9fr) auto minmax(150px, 1fr) minmax(130px, .9fr) minmax(140px, .8fr) minmax(150px, 1.2fr) auto; }
.cl-label { font-weight: 700; color: var(--navy); align-self: center; }
.cl-f { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.cl-f .in { margin-top: .15rem; min-height: 42px; }
.cl-saved { font-size: .8rem; color: var(--green); font-weight: 700; align-self: center; min-width: 4.5rem; }
.yn { align-self: center; }
.yn button[data-a="yes"][aria-pressed="true"] { background: var(--green); color: #fff; }
.yn button[data-a="no"][aria-pressed="true"] { background: var(--amber); color: #3B2600; }
.cl-type button { min-width: 6.5rem; }
.cl-fu { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; }
.cl-chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .3rem .7rem; cursor: pointer; font: inherit; font-size: .85rem; display: inline-flex; gap: .35rem; align-items: center; }
.cl-rental { padding: .55rem 0; border-bottom: 1px solid #EEF2FA; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .cl-row, .cl-row:has([data-co]), .cl-row:has(.cl-occ) { grid-template-columns: 1fr auto; }
  .cl-row .cl-occ { grid-column: 1 / -1; }
  .cl-row .cl-label { grid-column: 1; }
  .cl-row .yn { grid-column: 2; justify-self: end; }
  .cl-row .cl-f, .cl-row .btn, .cl-row .cl-saved { grid-column: 1 / -1; }
}

.cl-rem { margin-top: .6rem; padding-top: .4rem; border-top: 1px dashed var(--line); }
.cl-rem .cl-row { grid-template-columns: minmax(170px, 1.2fr) auto minmax(190px, 1fr) minmax(160px, 1.4fr) auto; }
.cl-sent { color: var(--green); font-weight: 700; align-self: center; }
@media (max-width: 900px) { .cl-rem .cl-row { grid-template-columns: 1fr auto; } .cl-rem .cl-sent { grid-column: 1 / -1; } }

.cl-attach { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; min-width: 0; }
.cl-att-col { min-width: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; background: #fff; border: 1px dashed #B9C7E4; border-radius: 10px; padding: .4rem .55rem; font-size: .88rem; }
.cl-att-col > b { color: var(--navy); margin-right: .2rem; }
.cl-file { display: inline-flex; align-items: center; gap: .3rem; background: var(--sky); border-radius: 8px; padding: .2rem .45rem; max-width: 230px; }
.cl-file a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-file img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.cl-x { border: 0; background: none; color: var(--red); cursor: pointer; font-weight: 700; }
@media (max-width: 900px) { .cl-attach { grid-template-columns: 1fr; } }

.cl-people { background: var(--sky); border-radius: 12px; padding: .6rem .7rem; margin-top: .5rem; }
.cl-person { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid #fff; }
.cl-person a { text-decoration: none; }
.cl-stopped { opacity: .55; background: #F2F4F8 !important; border-left-color: #B8C0CF !important; }
.cl-stopped .cl-label, .cl-stopped .cl-f span { text-decoration: line-through; }
.cl-stopped .yn button { cursor: not-allowed; }
.cl-stopped .cl-sent { color: var(--muted); text-decoration: none; }

.cl-hold { display: flex; justify-content: space-between; gap: .8rem; align-items: center; flex-wrap: wrap; background: var(--red-bg); border: 2px solid var(--red); color: #7A1414; border-radius: 12px; padding: .7rem .9rem; margin: .4rem 0; }
.cl-held { border: 2px solid var(--red); }
.hold-banner { border: 2px solid var(--red); font-size: 1rem; }

.cl-row:has(.cl-amt) { grid-template-columns: minmax(150px, 1fr) auto minmax(110px, .5fr) minmax(180px, 1fr) minmax(160px, 1.3fr) auto; }
.cl-dollar { display: flex; align-items: center; gap: .3rem; }
.cl-dollar b { font-size: 1.1rem; color: var(--green); }
.cl-dollar .in { margin-top: .15rem; }
@media (max-width: 900px) { .cl-row:has(.cl-amt) { grid-template-columns: 1fr auto; } .cl-row .cl-amt { grid-column: 1 / -1; } }

.cl-row:has([data-cost]) { grid-template-columns: minmax(150px, 1fr) auto minmax(105px, .45fr) minmax(105px, .45fr) minmax(175px, 1fr) minmax(150px, 1.1fr) auto; }
@media (max-width: 900px) { .cl-row:has([data-cost]) { grid-template-columns: 1fr auto; } }

.cl-pick { background: #FFF8EC; border: 1px solid #F5D9A8; border-radius: 12px; padding: .6rem .7rem; margin-top: .7rem; }
.up-list { display: grid; gap: .5rem; }
.up-item { border-left: 5px solid var(--amber); background: var(--amber-bg); border-radius: 10px; padding: .55rem .7rem; }

.btn.speak { background: #FFF1F1; border-color: #F3B4B4; color: #9B1C1C; }
.btn.speak.on { background: var(--red); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 59, 59, .5); } 50% { box-shadow: 0 0 0 8px rgba(214, 59, 59, 0); } }
