/* KaliAI Leasing: the new interface. Ported from the Claude Design file
   "KaliAI Operator Dashboards" (Leasing screen): its colours, type, pills,
   cards and layout. Fonts are served from this site (SIL OFL, licences
   beside them), so nothing loads from anywhere else. */

@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-600-italic.woff2) format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-700-italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #FAF8F3; --paper: #FFFFFF; --ink: #15171A; --ink2: #2A2C30;
  --muted: #6B6E75; --muted2: #4A4D54;
  --line: #E6E1D6; --line2: #EEEAE2; --line3: #E2DDD2;
  --soft: #F4F1EA; --soft2: #F6F3EC; --soft3: #FBF9F5; --hover: #F1EDE4;
  --accent: #DE6B43; --accent-ink: #B4502C; --go: #2F7A4F; --go-dark: #276843;
  --shadow: 0 20px 40px -34px rgba(0,0,0,.4);
  /* What a colour means on the dashboard, always with words or a sign beside it:
     needs a person, coming soon, done. Each is a tint to sit on and an ink to read. */
  --needs-bg: #FFF1EC; --needs-line: #F3C9BB; --needs-ink: #A63C26;
  --soon-bg: #FBF4E1; --soon-line: #EBD9A6; --soon-ink: #7A5000;
  --good-bg: #EEF6F1; --good-line: #C5DECF; --good-ink: #2A6643;
  /* Chart marks: one that stands back, and the green of a share done with its lighter track. */
  --mark: #8F897C; --meter: #2F7A4F; --meter-track: #DCEBE1;
  /* A chart with one set of bars, each named beside it. */
  --series: #1F4A4D;
  /* Named once, so the dark look can change them all (batch 9). */
  --on-ink: #fff; --on-fill: #fff; --field: #fff; --accent-hover: #8F3E21;
  --accent-tint: #FFF4EF; --line-strong: #CFC8B9; --line-btn: #D9D3C6; --track: #D5CFC2;
  --track-held: #B9CCBF; --faint: #B0A595; --warm-bg: #FCE9E1; --warm-ink: #A2481F;
  --warm-hover: #F9DCCF; --warm-line: #EBC9BB; --note-bg: #FFF8F2; --note-line: #F2D7C8;
  --danger-ink: #8C2B22; --danger-fill: #8C2B22; --danger-bg: #FFF4EF; --danger-line: #E0B2AB;
  --pause-bg: #F9E4E1; --pause-line: #DC8F8A; --pause-ink: #5C1F19; --needs-chip: #FCE4DE;
  --needs-line-strong: #E9A993; --needs-dot: #C8553A; --soon-chip: #F6EED9;
  --soon-line-strong: #E8C46A; --soon-dot: #C98A12; --good-chip: #E3F0E8; --good-bg2: #F3FAF6;
  --good-line2: #BFDCCB; --info-bg: #E4ECF7; --info-ink: #2F5E8C; --teal-bg: #E2EDEC;
  --teal-ink: #1F4A4D; --teal-bg2: #E8F0F0; --lilac-bg: #EEE8F6; --chart-c: #C08A1E;
  --over-photo: rgba(255,255,255,.92); --toast-tick: #7FD3A0; --tile-a: #EDE7DB;
  --tile-b: #F7F3EC; --art-ink: #15171A; --art-face: #fff; --pt0a: #DDEBE9; --pt0b: #F2F7F1;
  --pt1a: #F6EBD2; --pt1b: #FCF6E9; --pt2a: #DFE8F6; --pt2b: #F1F3FB; --pt3a: #FBE3D8;
  --pt3b: #FDF3EA; --pt4a: #EAE3F5; --pt4b: #F6F1F7; --pt5a: #DEEEDF; --pt5b: #F2F7E8;
  --pt6a: #F3E4E1; --pt6b: #FAF1EC; --pt7a: #E1EAEE; --pt7b: #F3F6F3;
  /* A count on the menu item you are on: readable on either ground. */
  --pop: #B4502C; --on-pop: #fff;
  /* Our side of a conversation: a soft blue, dark words on it. */
  --ours-bg: #DCEBFF; --ours-ink: #10243E; --ours-line: #C2D9F7;
  color-scheme: light;
}

/* THE DARK LOOK (the owner, 22 Nov 2026: "Dark mode: sure. Light/dark options
   are good."). The phone decides unless the person chose on Your profile:
   the page then carries data-theme, light or dark, and that wins. Only the
   tokens change here; every rule reads them. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17181B; --paper: #1F2024; --ink: #EEEBE4; --ink2: #D8D4CB; --muted: #9C9EA5;
    --muted2: #B8B4AC; --line: #33353B; --line2: #2B2D32; --line3: #3D4047; --soft: #121315;
    --soft2: #25272C; --soft3: #1B1C20; --hover: #2A2C31; --accent: #E98560; --accent-ink: #F2A586;
    --go: #2F7A4F; --go-dark: #37895A; --shadow: 0 20px 40px -30px rgba(0,0,0,.85);
    --needs-bg: #3A1E18; --needs-line: #6E3529; --needs-ink: #F4A08B; --soon-bg: #33290F;
    --soon-line: #6B5420; --soon-ink: #EBC46B; --good-bg: #15291D; --good-line: #2B5239;
    --good-ink: #8ED3A6; --mark: #77736A; --meter: #3E9363; --meter-track: #1F3528;
    --series: #78B3B6; --on-ink: #17181B; --on-fill: #fff; --field: #26282D;
    --accent-hover: #F7C2AB; --accent-tint: #33221B; --line-strong: #4B4E55; --line-btn: #3D4047;
    --track: #43464D; --track-held: #2F5A40; --faint: #6F6B63; --warm-bg: #3A2219;
    --warm-ink: #F2A586; --warm-hover: #48291E; --warm-line: #5A3426; --note-bg: #241D19;
    --note-line: #4A3329; --danger-ink: #F2948A; --danger-fill: #A3342A; --danger-bg: #33201C;
    --danger-line: #6E3A33; --pause-bg: #3A1E1B; --pause-line: #7A3B35; --pause-ink: #F3C9C2;
    --needs-chip: #4A231A; --needs-line-strong: #8C4636; --needs-dot: #E5785D;
    --soon-chip: #382D15; --soon-line-strong: #8A6B27; --soon-dot: #DDA640; --good-chip: #1B3324;
    --good-bg2: #15281C; --good-line2: #2E5A3F; --info-bg: #1C2A3C; --info-ink: #A2C4EA;
    --teal-bg: #183133; --teal-ink: #8FCDCF; --teal-bg2: #1A2D2E; --lilac-bg: #2B2438;
    --chart-c: #D8A846; --over-photo: rgba(31,32,36,.9); --toast-tick: #2F7A4F; --tile-a: #2A2C31;
    --tile-b: #202226; --art-ink: #000; --art-face: #3A3D44; --pt0a: #1E3433; --pt0b: #192624;
    --pt1a: #3A3120; --pt1b: #2A2519; --pt2a: #1F2B3D; --pt2b: #1A212E; --pt3a: #3D261E;
    --pt3b: #2D211B; --pt4a: #2E263D; --pt4b: #241F2E; --pt5a: #1F3524; --pt5b: #1A281D;
    --pt6a: #3A2523; --pt6b: #2C201F; --pt7a: #223038; --pt7b: #1C2428;
    --pop: #F2A586; --on-pop: #17181B;
    --ours-bg: #1D3756; --ours-ink: #E4EEFC; --ours-line: #2C4C74;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17181B; --paper: #1F2024; --ink: #EEEBE4; --ink2: #D8D4CB; --muted: #9C9EA5;
  --muted2: #B8B4AC; --line: #33353B; --line2: #2B2D32; --line3: #3D4047; --soft: #121315;
  --soft2: #25272C; --soft3: #1B1C20; --hover: #2A2C31; --accent: #E98560; --accent-ink: #F2A586;
  --go: #2F7A4F; --go-dark: #37895A; --shadow: 0 20px 40px -30px rgba(0,0,0,.85);
  --needs-bg: #3A1E18; --needs-line: #6E3529; --needs-ink: #F4A08B; --soon-bg: #33290F;
  --soon-line: #6B5420; --soon-ink: #EBC46B; --good-bg: #15291D; --good-line: #2B5239;
  --good-ink: #8ED3A6; --mark: #77736A; --meter: #3E9363; --meter-track: #1F3528;
  --series: #78B3B6; --on-ink: #17181B; --on-fill: #fff; --field: #26282D; --accent-hover: #F7C2AB;
  --accent-tint: #33221B; --line-strong: #4B4E55; --line-btn: #3D4047; --track: #43464D;
  --track-held: #2F5A40; --faint: #6F6B63; --warm-bg: #3A2219; --warm-ink: #F2A586;
  --warm-hover: #48291E; --warm-line: #5A3426; --note-bg: #241D19; --note-line: #4A3329;
  --danger-ink: #F2948A; --danger-fill: #A3342A; --danger-bg: #33201C; --danger-line: #6E3A33;
  --pause-bg: #3A1E1B; --pause-line: #7A3B35; --pause-ink: #F3C9C2; --needs-chip: #4A231A;
  --needs-line-strong: #8C4636; --needs-dot: #E5785D; --soon-chip: #382D15;
  --soon-line-strong: #8A6B27; --soon-dot: #DDA640; --good-chip: #1B3324; --good-bg2: #15281C;
  --good-line2: #2E5A3F; --info-bg: #1C2A3C; --info-ink: #A2C4EA; --teal-bg: #183133;
  --teal-ink: #8FCDCF; --teal-bg2: #1A2D2E; --lilac-bg: #2B2438; --chart-c: #D8A846;
  --over-photo: rgba(31,32,36,.9); --toast-tick: #2F7A4F; --tile-a: #2A2C31; --tile-b: #202226;
  --art-ink: #000; --art-face: #3A3D44; --pt0a: #1E3433; --pt0b: #192624; --pt1a: #3A3120;
  --pt1b: #2A2519; --pt2a: #1F2B3D; --pt2b: #1A212E; --pt3a: #3D261E; --pt3b: #2D211B;
  --pt4a: #2E263D; --pt4b: #241F2E; --pt5a: #1F3524; --pt5b: #1A281D; --pt6a: #3A2523;
  --pt6b: #2C201F; --pt7a: #223038; --pt7b: #1C2428;
  --pop: #F2A586; --on-pop: #17181B;
  --ours-bg: #1D3756; --ours-ink: #E4EEFC; --ours-line: #2C4C74;
  color-scheme: dark;
}


* { box-sizing: border-box; }
html, body { margin: 0; background: var(--soft); }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif; color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-hover); }
.serif { font-family: "Newsreader", Georgia, serif; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.ok { color: var(--good-ink); font-weight: 600; }
.ai { color: var(--accent); }
.inline { display: inline; margin: 0; }

.app { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.top { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }
.sep { width: 1px; height: 26px; background: var(--line); }
.module { font-size: 17px; }
.demo-tag { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--warm-ink); background: var(--warm-bg); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.search { flex: 1 1 260px; max-width: 520px; display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 10px 14px; margin: 0 auto; }
/* A keyboard shows where it is on every link and button; a mouse or a finger never draws the ring. */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inp { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; min-width: 0; }
.me { display: flex; align-items: center; gap: 10px; }
.me-av { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.me-t { display: flex; flex-direction: column; line-height: 1.25; }
.me-t b { font-size: 15px; }
.me-t span { font-size: 13px; color: var(--muted); }

/* Frame */
.frame { display: flex; flex-wrap: wrap; flex: 1; }
.side { flex: 1 1 240px; max-width: 290px; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.nav { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 12px; font-size: 16px; color: var(--ink2); text-decoration: none; min-height: 44px; }
.nav:hover { background: var(--hover); color: var(--ink2); }
.nav.on { background: var(--ink); color: var(--bg); font-weight: 600; }
.badge { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--needs-chip); color: var(--needs-ink); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; }
.nav.on .badge { background: var(--pop); color: var(--on-pop); }
.team { margin-top: 22px; padding: 16px 12px 4px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 12px; }
.teammate { display: flex; gap: 10px; align-items: center; }
.teammate > div { display: flex; flex-direction: column; line-height: 1.25; }
.tname { font-size: 14px; font-weight: 600; }
.tnote { font-size: 12.5px; color: var(--muted); }
.lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); background: var(--soft2); }

.main { flex: 999 1 560px; min-width: 0; padding: 28px 28px 48px; display: flex; flex-direction: column; gap: 22px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 700; }
.head h1 em { font-style: italic; color: var(--accent); }
.sub { margin: 6px 0 0; font-size: 17px; color: var(--muted2); }
.dateline { font-size: 14px; color: var(--muted); }

/* Pieces */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.pad { padding: 20px; }
.pill { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 15px; font-weight: 600; border-radius: 12px; padding: 11px 16px; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); min-height: 44px; text-decoration: none; }
.btn:hover { background: var(--ink2); color: var(--on-ink); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line-btn); }
.btn.ghost:hover { background: var(--soft2); color: var(--ink); }
.btn.go { background: var(--go); border-color: var(--go); color: var(--on-fill); }
.btn.go:hover { background: var(--go-dark); }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
.chip { display: inline-block; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--soft2); border: 1px solid var(--line2); white-space: nowrap; color: var(--ink); text-decoration: none; }
.chip.more { background: var(--paper); color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { padding: 24px 18px; color: var(--muted); border-top: 1px solid var(--line2); }
.grid { display: grid; gap: 16px; }
.cards3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.col { display: flex; flex-direction: column; gap: 16px; flex: 1.4 1 480px; min-width: 0; }
.col.narrow { flex: 1 1 280px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.grow { flex: 1.4 1 480px; min-width: 0; }
.scrollx { overflow-x: auto; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sechead b { font-size: 18px; }
.actions-line { margin: 16px 0 0; }

.newtag { text-decoration: none; }
.newtag:hover { color: var(--accent-hover); background: var(--warm-hover); }
.classic { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.headright { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copybtn { border: 1px solid var(--line3); background: var(--paper); border-radius: 8px; font: inherit; font-size: 12px; padding: 1px 7px; cursor: pointer; color: var(--muted2); }
.copybtn:hover { border-color: var(--ink); color: var(--ink); }
.tellbox { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted2); flex-basis: 100%; }
.confirmcard { display: flex; flex-direction: column; gap: 14px; max-width: 640px; border-color: var(--soon-line-strong); }
.pausebar { background: var(--pause-bg); border: 1px solid var(--pause-line); border-radius: 14px; padding: 12px 16px; font-size: 14.5px; color: var(--pause-ink); }
.pausebar b { color: var(--danger-ink); }
.pressnote { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--danger-fill); color: var(--on-fill); padding: 12px 18px; border-radius: 14px; font-size: 15px; z-index: 60; max-width: min(92%, 560px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.demo-note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 14px; padding: 12px 16px; font-size: 14.5px; color: var(--muted2); }
.demo-note b { color: var(--ink); }

/* Dashboard */

/* Somebody is waiting: said first. */
.needsyou { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 18px; background: var(--needs-bg); border: 1px solid var(--needs-line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.needsyou:hover { color: var(--ink); border-color: var(--needs-line-strong); }
.ny-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--paper); color: var(--needs-ink); display: grid; place-items: center; flex: none; border: 1px solid var(--needs-line); }
.ny-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.ny-t b { font-size: 17.5px; }
.ny-t span { font-size: 14.5px; color: var(--muted2); }
.ny-go { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.needsyou:hover .ny-go { background: var(--ink2); }

/* People or units as overlapping circles: the white ring is what keeps them apart. */
.stack { display: inline-flex; align-items: center; flex: none; }
.stack > * { margin-left: -9px; box-shadow: 0 0 0 2px var(--paper); border-radius: 50%; }
.stack > :first-child { margin-left: 0; }
.sdot { border-radius: 50%; object-fit: cover; flex: none; overflow: hidden; display: grid; place-items: center; width: 30px; height: 30px; }
.stack-more { min-width: 30px; height: 30px; padding: 0 7px; background: var(--hover); color: var(--muted2); font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* The four numbers, each with its small picture. */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.kpi:hover { border-color: var(--line-strong); color: inherit; transform: translateY(-2px); box-shadow: 0 24px 44px -32px rgba(0,0,0,.5); }
.kpi-top { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.kpi-top .lbl { font-size: 11.5px; letter-spacing: .12em; line-height: 1.25; }
.kic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--hover); color: var(--muted2); }
.k-vacant .kic { background: var(--warm-bg); color: var(--warm-ink); }
.k-enquiries .kic { background: var(--info-bg); color: var(--info-ink); }
.k-showings .kic { background: var(--good-chip); color: var(--good-ink); }
.k-applications .kic { background: var(--soon-chip); color: var(--soon-ink); }
.kpi-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 50px; }
.kpi b.serif { font-size: 44px; line-height: .95; }
.ksub { font-size: 14px; color: var(--muted2); display: flex; align-items: center; gap: 7px; }
.ksub[class*="cue-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ksub.cue-needs::before { background: var(--needs-dot); }
.ksub.cue-soon::before { background: var(--soon-dot); }
.ksub.cue-good::before { background: var(--go); }

/* A bar a day: thin, square at the foot, the day in hand in the accent. */
.spark { display: inline-flex; align-items: flex-end; gap: 4px; flex: none; }
.sb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 11px; }
.sb-plot { display: flex; align-items: flex-end; width: 100%; height: 34px; border-bottom: 1px solid var(--line); }
.sb-plot i { display: block; width: 100%; background: var(--mark); border-radius: 3px 3px 0 0; }
.sb.now .sb-plot i { background: var(--accent); }
.sb em { font-style: normal; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; line-height: 1; color: var(--muted); }
.sb.now em { color: var(--ink); font-weight: 600; }
.sb:hover .sb-plot i { filter: brightness(.88); }

/* One share of a whole. */
.meter { display: block; height: 6px; border-radius: 999px; background: var(--meter-track); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--meter); border-radius: 999px; }

/* The units, and the pipeline they stand on. */
.split.dash { align-items: flex-start; gap: 22px; }
.dashmain { flex: 2.4 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dashside { flex: 1 1 320px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.dashmain > .sechead { margin-bottom: 0; }
.pipe { display: flex; align-items: center; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; overflow-x: auto; }
.pstop { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; border: 1.5px solid transparent; flex: none; }
.pstop:hover { background: var(--soft2); color: var(--ink); }
.pstop.on { border-color: var(--ink); background: var(--soft3); }
.pstop.none .pstop-n { color: var(--muted); font-weight: 500; }
.pnum { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14.5px; font-weight: 700; flex: none; }
.pstop.none .pnum { opacity: .55; }
.pline { flex: 1 1 14px; min-width: 14px; height: 2px; background: var(--line); border-radius: 2px; }

.ucards { grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 16px; }
.ucard { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.ucard:hover { color: inherit; border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 26px 46px -30px rgba(0,0,0,.5); }
.uc-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--soft2); border-radius: 17px 17px 0 0; }
/* The picture fills the frame whatever shape it came in; the frame, never the picture, sets the card's height. */
.uc-img > img, .uc-img > .tile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 17px 17px 0 0; }
.uc-img > img { display: block; transition: filter .2s ease; }
.ucard:hover .uc-img > img { filter: saturate(1.08) brightness(1.02); }
.uc-stage { position: absolute; top: 10px; left: 10px; }
.uc-stage .pill { box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.uc-count { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(21,23,26,.72); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 8px; }
.uc-agent { position: absolute; right: 12px; bottom: -16px; display: block; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.uc-agent .pav { display: grid; border: 2px solid var(--paper); box-shadow: none; }
.uc-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.uc-name { font-size: 16.5px; line-height: 1.25; padding-right: 40px; overflow-wrap: anywhere; }
.uc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; font-size: 14px; color: var(--muted2); }
.uc-meta > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.uc-meta b { color: var(--ink); font-weight: 700; }
.uc-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 2px 0; }
.uc-steps i { height: 4px; border-radius: 999px; background: var(--line); }
.uc-steps i.on { background: var(--ink); }
.uc-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.uc-stats > span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; color: var(--muted); min-width: 0; white-space: nowrap; }
.uc-stats b { font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.uc-stats .warn b { color: var(--needs-ink); }
.uc-next { margin-top: auto; display: flex; align-items: center; gap: 8px; background: var(--soft2); border: 1px solid transparent; border-radius: 12px; padding: 7px 10px; font-size: 14px; font-weight: 600; }
.uc-next .av { width: 24px; height: 24px; }
.uc-nt { flex: 1; min-width: 0; }
.uc-cue { display: grid; place-items: center; flex: none; }
.t-needs .uc-next { background: var(--needs-bg); border-color: var(--needs-line); }
.t-needs .uc-cue { color: var(--needs-ink); }
.t-soon .uc-next { background: var(--soon-bg); border-color: var(--soon-line); }
.t-soon .uc-cue { color: var(--soon-ink); }
.t-good .uc-next { background: var(--good-bg); border-color: var(--good-line); }
.t-good .uc-cue { color: var(--good-ink); }

/* A unit with no photo yet: a small drawn scene, on a tint of its own. */
.tile { position: relative; display: block; overflow: hidden; background: linear-gradient(160deg, var(--t1, var(--tile-a)), var(--t2, var(--tile-b))); color: var(--art-ink); }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile-n { position: absolute; left: 10px; bottom: 10px; background: var(--over-photo); color: var(--ink2); font-size: 12px; font-weight: 500; letter-spacing: .06em; border-radius: 7px; padding: 3px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tile.tiny { width: 100%; height: 100%; border-radius: inherit; }
.tile.wide { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; border: 1px solid var(--line); }
.thumb { width: 56px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.uc-add { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; background: var(--over-photo); color: var(--ink2); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 9px; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.ucard:hover .uc-add { background: var(--ink); color: var(--on-ink); }

/* What is coming up. */
/* Where a unit's photos come in from Google Drive: the hint on the dashboard, and the Property photos page. */
.photohint { display: flex; align-items: center; gap: 10px; background: var(--soft2); border: 1px dashed var(--line3); border-radius: 14px; padding: 10px 14px; color: var(--ink2); text-decoration: none; font-size: 14.5px; }
.photohint:hover { background: var(--hover); color: var(--ink); }
.photohint span { flex: 1; min-width: 0; }
.photointro p { margin: 0 0 10px; max-width: 68ch; }
.photointro .acts { margin-top: 4px; }
.photorows { gap: 12px; }
.photorow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; flex-wrap: wrap; }
.pr-pic { width: 84px; height: 60px; border-radius: 12px; overflow: hidden; flex: none; display: block; border: 1px solid var(--line); }
.pr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pr-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pr-head a { color: inherit; text-decoration: none; }
.pr-head a:hover { color: var(--accent-ink); }
.pr-form { display: flex; gap: 8px; }
.pr-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 9px 12px; background: var(--field); color: var(--ink); }
.pr-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pr-said { margin: 0; color: var(--needs-ink); }
.pr-said.muted { color: var(--muted); }
.pr-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: none; max-width: 100%; }
.drive-status { color: var(--muted2); }
.drive-status:empty { display: none; }
.driveline { margin-top: 10px; }

.upnext .sechead { margin-bottom: 6px; }
.up-list { display: flex; flex-direction: column; }
.up-day { display: block; padding: 10px 0 4px; }
.up-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; margin: 0 -6px; border-radius: 12px; color: inherit; text-decoration: none; }
.up-row:hover { background: var(--soft3); color: inherit; }
.up-time { width: 62px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 14.5px; background: var(--soft2); border: 1px solid var(--line2); }
.up-time.t-good { background: var(--good-bg); border-color: var(--good-line); }
.up-time.t-soon { background: var(--soon-bg); border-color: var(--soon-line); }
.up-thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; overflow: hidden; display: block; border: 1px solid var(--line); }
.up-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.up-t b { font-size: 15px; }
.up-t .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-state { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted2); }
.up-state.t-good { color: var(--good-ink); }
.up-state.t-soon { color: var(--soon-ink); }
.up-agent { flex: none; }
.up-agent .pav { display: grid; }
.up-more { display: inline-block; margin-top: 8px; }
.phone-only { display: none; }
.quiet { display: flex; align-items: center; gap: 12px; padding: 18px 4px; color: var(--muted); font-size: 15px; }
.card.quiet { padding: 26px 20px; }
.quiet svg { flex: none; color: var(--faint); }

.panel { flex: 1 1 380px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.panel-head > div { display: flex; flex-direction: column; }
.pname { font-size: 20px; }
.psub { font-size: 14.5px; color: var(--muted2); }
.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; }
.thumbs { display: flex; gap: 8px; }
.ph { border: 2px solid transparent; border-radius: 10px; padding: 0; background: none; cursor: pointer; overflow: hidden; width: 70px; height: 50px; }
.ph.on { border-color: var(--accent); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.facts > div { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-size: 15px; }
.factlist { display: flex; flex-direction: column; gap: 8px; }
.factlist > div { display: flex; flex-direction: column; gap: 1px; border-top: 1px dashed var(--line); padding-top: 8px; font-size: 14.5px; }
.times { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.times-head { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.times-head .av { width: 26px; height: 26px; }
.says { background: var(--soft2); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.says > div { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.done-banner { border: 1px solid var(--good-line2); background: var(--good-bg2); border-radius: 14px; padding: 12px 16px; font-size: 15px; color: var(--good-ink); font-weight: 600; }

/* Units */
.unitcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.unitcard:hover { color: inherit; border-color: var(--line-strong); }
.unitcard img, .unitcard .imgblank { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ucbody { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ucline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.loss { font-size: 13.5px; color: var(--warm-ink); font-weight: 600; }
.dayrow { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line2); }
.dayname { width: 92px; flex: none; font-weight: 600; font-size: 14.5px; }

/* Leads */
.leadsbox { display: flex; flex-wrap: wrap; overflow: hidden; min-height: 560px; }
.leadlist { flex: 1 1 280px; max-width: 380px; border-right: 1px solid var(--line2); max-height: 76vh; overflow-y: auto; }
.lead { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border-bottom: 1px solid var(--line2); background: var(--paper); color: inherit; text-decoration: none; }
.lead:hover { background: var(--soft3); color: inherit; }
.lead.on { background: var(--accent-tint); }
.lead.closed { opacity: .6; }
.ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; color: var(--ink); }
.ini.big { width: 46px; height: 46px; }
.lt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ltop { display: flex; align-items: center; gap: 6px; }
.ltop b { font-size: 15px; }
.src { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.prev { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convobox { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; }
.convo-head { padding: 14px 18px; border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.convo-head > div { display: flex; flex-direction: column; }
.cname { font-size: 17px; }
.convo { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--soft3); max-height: 56vh; overflow-y: auto; }
/* A conversation, easy to read (the owner, 23 Nov 2026: "change this to a
   better backgroudn colour, easy to see, i donj't want black. maybe blue like
   iphone colour or something easy on the eyes to read, make text bigger too"):
   our side a soft blue with dark words, theirs on paper, the words larger. */
.msg { max-width: 78%; border-radius: 16px; padding: 12px 16px; font-size: 17px; line-height: 1.6; }
.msg.theirs { align-self: flex-start; background: var(--paper); border: 1px solid var(--line2); }
.msg.ours { align-self: flex-end; background: var(--ours-bg); color: var(--ours-ink); border: 1px solid var(--ours-line); }
.mtext { white-space: pre-wrap; overflow-wrap: anywhere; }
.mmeta { font-size: 13px; opacity: .75; margin-top: 6px; }
.convo-empty { padding: 40px; color: var(--muted); }
.convo-foot { border-top: 1px solid var(--line2); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.handling { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: var(--muted2); }
.handling > span { display: flex; align-items: center; gap: 8px; }
.handling .av { width: 26px; height: 26px; }
.handling form { margin: 0; }
.replyform, .bookform { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin: 0; }
.replyform textarea { flex: 1 1 260px; font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 46px; background: var(--field); color: var(--ink); }
.replyform textarea:focus, .bookform select:focus, .tryform input:focus, .tryform select:focus, .tryform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bookform select { flex: 1 1 220px; font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 8px 10px; background: var(--field); color: var(--ink); min-height: 44px; }
.tried { margin: 0 18px; background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--muted2); }

/* Showings */
.week { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 12px; min-width: 1000px; }
.daycol { display: flex; flex-direction: column; gap: 8px; }
.dlabel { font-size: 15px; padding: 4px 2px; }
.slot { border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.35; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.slot:hover { color: var(--ink); filter: brightness(.97); }
.slot b { display: block; }
.sstate { font-size: 12px; color: var(--muted2); margin-top: 2px; }
.cancelform { margin: 0; }
.cancelbtn { border: 1px solid var(--warm-line); background: var(--paper); color: var(--warm-ink); font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 10px; padding: 6px 8px; cursor: pointer; text-align: left; width: 100%; }
.cancelbtn:hover { background: var(--danger-bg); }
.bookedline { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--good-ink); background: var(--good-bg2); border: 1px solid var(--good-line2); border-radius: 12px; padding: 8px 12px; }
.bookedline .av { width: 26px; height: 26px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.pastrow { display: grid; grid-template-columns: 1fr 1fr 1fr .6fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 14.5px; color: inherit; text-decoration: none; }
.pastrow:hover { color: inherit; background: var(--soft3); }

/* Applications */
.appcard { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.apphead { display: flex; gap: 12px; align-items: center; }
.apphead > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.apphead b { font-size: 17px; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.checks > div { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.mark { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--on-fill); font-size: 12px; font-weight: 700; flex: none; }
.appnote { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted2); }
.appnote .av { width: 28px; height: 28px; }
.reportwrap { overflow-x: auto; }

/* Listings, reports */
.listrow { padding: 16px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.listrow img, .listrow .imgblank { width: 180px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; flex: none; }
.lrbody { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.lrbody b { font-size: 18px; }
/* Where enquiries come from: a line a source, so a name is never squeezed under a
   bar on a phone. One grid for every line, so the names, bars and counts line up. */
.hbars { display: grid; grid-template-columns: max-content minmax(48px, 1fr) max-content max-content; column-gap: 12px; row-gap: 14px; align-items: center; font-size: 15px; }
.hb-name { font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
.hb-track { display: block; height: 16px; }
.hb-fill { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--series); }
.hb-n { text-align: right; font-variant-numeric: tabular-nums; }
.hb-share { text-align: right; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 3.2ch; }

/* Sent */
.sent { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.senthead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.senthead .muted { margin-left: auto; }
.sentsubj { font-weight: 600; }
.sentbody { white-space: pre-wrap; font-size: 14.5px; background: var(--soft3); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }

/* Try it */
.tryform { display: flex; flex-direction: column; gap: 8px; flex: 1 1 380px; }
.tryform input, .tryform select, .tryform textarea { font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 10px 12px; background: var(--field); color: var(--ink); margin-bottom: 8px; }
.trynote { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }

/* People, photos, settings */
a.me { text-decoration: none; color: inherit; border-radius: 999px; padding: 2px 6px 2px 2px; }
a.me:hover { background: var(--soft); color: inherit; }
img.me-av { object-fit: cover; }
.pav { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-weight: 700; color: var(--ink); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.shownby { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
a.shownby:hover { border-color: var(--line-strong); color: var(--ink); }
.teamstrip { display: flex; flex-direction: column; }
.people { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.personcard { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: inherit; text-decoration: none; position: relative; }
.personcard:hover { color: inherit; border-color: var(--line-strong); }
.pc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pc-t b { font-size: 16px; }
.personcard .badge { position: absolute; top: 10px; right: 12px; margin: 0; }
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.profile .pname { font-size: 20px; }
.profile.wide { max-width: 520px; padding: 28px; }
.backline { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted2); align-self: flex-start; }
.backline:hover { color: var(--accent-ink); }
/* The Settings hub (the owner, 23 Nov 2026: "make more design saavy and with
   images to visualize each of these"; he picked the picture cards). Every page
   has its picture (view.hub_art), drawn in the tile's own colour like the
   places, and the faces that belong on it. */
.tile .aa { fill: var(--accent); }
.tile .ag { fill: var(--go); }
.tile .sa { stroke: var(--accent); }
.tile .sg { stroke: var(--go); }
.tile .sf { stroke: var(--art-face); }
.hubgal { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.hubpic { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.hubpic:hover { color: inherit; border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 26px 46px -30px rgba(0,0,0,.5); }
.hubart svg { transition: transform .35s ease; }
a.hubpic:hover .hubart svg { transform: scale(1.04); }
.hp-art { position: relative; display: block; aspect-ratio: 16 / 9; }
.hp-art > .tile { position: absolute; inset: 0; border-radius: 17px 17px 0 0; }
.hp-faces { position: absolute; left: 16px; bottom: -18px; display: flex; }
.hp-faces .pav { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.hp-faces .pav + .pav { margin-left: -9px; }
.hp-body { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px 18px; flex: 1; }
.hp-body.withfaces { padding-top: 26px; }
.hp-body b { font-size: 17px; line-height: 1.3; }
.hp-body .muted { font-size: 14.5px; line-height: 1.45; }
.hubstate { margin-top: auto; padding-top: 8px; color: var(--muted2); }
/* A phone (the owner: "for phone, maybe need to be more compact takes too
   long to go through visually"): three to a row, the picture and the name. */
@media (max-width: 640px) {
  .hubgal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hubpic { border-radius: 14px; }
  .hp-art { aspect-ratio: 4 / 3; }
  .hp-art > .tile { border-radius: 13px 13px 0 0; }
  .hp-body, .hp-body.withfaces { padding: 7px 8px 9px; gap: 0; }
  .hp-body b { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
  .hp-body .muted, .hp-body .hubstate { display: none; }
  .hp-faces { left: 6px; bottom: 5px; }
  .hp-faces .pav { width: 22px !important; height: 22px !important; font-size: 9px !important; border-width: 1.5px; }
  .hp-faces .pav + .pav { margin-left: -4px; }
}
/* The narrowest phones (320 wide): two to a row, so no name breaks mid-word. */
@media (max-width: 339px) { .hubgal { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hubpic, .hubart svg { transition: none; }
  a.hubpic:hover, a.hubpic:hover .hubart svg { transform: none; }
}
.switchrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); margin: 0; }
.switchrow:first-of-type { border-top: 0; }
.sw-label { font-size: 15px; }
.sw { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted2); cursor: pointer; padding: 4px; min-height: 36px; }
.sw i { width: 42px; height: 24px; border-radius: 999px; background: var(--track); position: relative; transition: background .15s; flex: none; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--on-fill); transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sw.on i { background: var(--go); }
.sw.on i::after { left: 21px; }
.sw.on { color: var(--good-ink); }
.schedlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; flex: 1; }
.dayrow.sched .dayname { width: 140px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1.5px solid var(--line3); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab i { font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--needs-chip); color: var(--needs-ink); border-radius: 999px; padding: 1px 8px; }
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photocell img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.phacts { display: flex; justify-content: space-between; gap: 8px; padding: 4px 2px 0; }
.uploadbtn { cursor: pointer; }
.uploadbtn.busy { opacity: .6; pointer-events: none; }
.choicegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choices legend { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 0 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line3); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--soft3); }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.rulerow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 15px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; align-items: end; }
.formgrid .wide, .formgrid .sechead { grid-column: 1 / -1; }
.formgrid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted2); }
.formgrid label.check { flex-direction: row; align-items: center; gap: 8px; }
.formgrid input[type=number], .formgrid select, .formgrid textarea { font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 9px 12px; background: var(--field); color: var(--ink); }
.check p, .card.check p { margin: 6px 0; font-size: 15px; }
.evidence { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; font-size: 14px; }
.unitblock { border-top: 1px solid var(--line2); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.tenantrow { display: flex; gap: 12px; align-items: center; }
.tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msgbox summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.msgbox form { margin-top: 8px; }
.draft { border-top: 1px solid var(--line2); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }

.stripnote { margin: 0 0 10px; }
.unitcard .imgblank, .listrow .imgblank { display: grid; place-items: center; }
.ltop b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ltop .src { white-space: nowrap; flex: none; }
.clines { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.profile .clines { align-items: center; }
.cline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tenantname { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.photogrid { margin-bottom: 14px; }
.sw.held i { background: var(--track-held); }
.sw.held { color: var(--muted2); }
/* A group that starts folded: its name and what it is set to on the row. */
.fold { padding: 0; }
.fold > summary, .foldhead { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.foldhead { cursor: default; }
.fold > summary::-webkit-details-marker { display: none; }
.foldt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.foldt b { font-size: 17px; }
.prev1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold[open] .prev1 { display: none; }
.foldmark { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex: none; margin: 0 4px 4px 2px; transition: transform .15s; }
.fold[open] > summary .foldmark { transform: rotate(-135deg); margin-bottom: -4px; }
.foldbody { padding: 0 20px 20px; border-top: 1px solid var(--line2); padding-top: 16px; }
.foldbody p { margin: 6px 0; font-size: 15px; }
.foldlist { display: flex; flex-direction: column; gap: 10px; }
.fold.check > summary, .fold.check .foldhead { padding: 13px 18px; }
.fold.check .foldt b { font-size: 16px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 14px 20px; border-radius: 14px; font-size: 15px; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); z-index: 50; max-width: min(92%, 640px); animation: toastaway 9s ease forwards; }
.toast svg { flex: none; }
@keyframes toastaway { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.samplepage { max-width: 620px; margin: 10vh auto; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.samplepage h1 { font-size: 38px; margin: 6px 0 12px; }

/* Phones: the menu becomes a strip across the top. */
@media (max-width: 860px) {
  .top { padding: 12px 16px; gap: 10px; position: static; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .me-t { display: none; }
  /* Your picture stays in the top corner, and the way to the classic CRM says less to make room. */
  .top { position: relative; }
  a.me { position: absolute; top: 9px; right: 16px; padding: 0; }
  .newtag { font-size: 0; padding: 5px 10px; }
  .newtag::after { content: "Open classic"; font-size: 12px; }
  /* The menu stays in reach however far down the page you are (on a phone, and in the
     app on the home screen above all, there is no other way back up), and its right
     edge fades so the row is plainly not the end. */
  .side { max-width: none; flex: 1 1 100%; flex-direction: row; overflow-x: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); gap: 2px;
    position: sticky; top: 0; z-index: 19; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); }
  .side::-webkit-scrollbar { display: none; }
  .side .nav:last-of-type { margin-right: 22px; }
  .nav { width: auto; flex: none; padding: 8px 12px; min-height: 40px; font-size: 15px; }
  .team { display: none; }
  .main { padding: 20px 16px 40px; }
  .head h1 { font-size: 34px; }
  .leadlist { max-width: none; max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line2); }
  .msg { max-width: 90%; font-size: 16px; padding: 11px 14px; }
  .pastrow { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .dayrow.sched { flex-direction: column; gap: 6px; }
  .dayrow.sched .dayname { width: auto; }
  .schedlist { grid-template-columns: 1fr 1fr; width: 100%; }
  .fold > summary, .foldhead { padding: 14px 16px; }
  .foldbody { padding: 14px 16px 16px; }
  .switchrow { gap: 8px; }
  /* The dashboard on a phone: two tiles a row, what is coming up before the units, two unit cards a row. */
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 13px 13px 14px; gap: 8px; }
  .kpi .lbl { font-size: 10.5px; letter-spacing: .1em; }
  .kic { width: 28px; height: 28px; border-radius: 9px; }
  .kpi b.serif { font-size: 36px; }
  .kpi-mid { min-height: 44px; gap: 6px; }
  .spark { gap: 3px; }
  .sb { width: 8px; }
  .sb-plot { height: 28px; }
  .ksub { font-size: 12.5px; align-items: flex-start; line-height: 1.3; }
  .ksub[class*="cue-"]::before { margin-top: 4px; }
  .kpi .sdot, .kpi .stack-more { width: 26px !important; height: 26px !important; min-width: 26px; }
  /* Reports on a phone: the four counts two a row, the first answer across both. */
  .reportside { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .reportside .kpi.wide { grid-column: 1 / -1; }
  .hbars { column-gap: 10px; font-size: 14.5px; }
  .split.dash { gap: 18px; }
  /* Tickets first on a phone too (the owner, 23 Nov 2026: "still a priority"). */
  .dashside { max-width: none; flex-basis: 100%; }
  .ucards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .uc-body { padding: 11px 11px 12px; gap: 6px; }
  .uc-name { font-size: 14.5px; padding-right: 30px; }
  .uc-meta { font-size: 12.5px; }
  .uc-type, .uc-stats { display: none; }
  .up-list .late { display: none; }
  .phone-only { display: inline-block; }
  .uc-next { font-size: 12.5px; padding: 6px 8px; gap: 6px; }
  .uc-next .av { width: 20px; height: 20px; }
  .uc-agent { right: 8px; bottom: -13px; }
  .uc-agent .pav { width: 30px !important; height: 30px !important; }
  .uc-stage { top: 8px; left: 8px; }
  .uc-stage .pill { font-size: 12px; padding: 3px 8px; }
  .uc-img { aspect-ratio: 4 / 3; }
  .uc-add { font-size: 0; gap: 0; padding: 5px 6px; top: 8px; right: 8px; }
  .uc-count { top: 8px; right: 8px; }
  .tile-n { left: 8px; bottom: 8px; font-size: 11px; }
  .needsyou { padding: 12px 14px; gap: 10px; }
  .ny-ic { width: 38px; height: 38px; border-radius: 12px; }
  .ny-t b { font-size: 16px; }
  .needsyou .stack { display: none; }
  .ny-go { flex: 1 1 100%; justify-content: center; }
  .pipe { padding: 6px 8px; }
  .pstop { padding: 5px 10px 5px 5px; font-size: 14px; gap: 7px; }
  .pnum { width: 28px; height: 28px; font-size: 13.5px; }
  .pline { flex: 0 0 12px; min-width: 12px; }
}

/* Nothing moves for somebody who has asked for that. */
@media (prefers-reduced-motion: reduce) {
  .kpi, .ucard, .uc-img > img { transition: none; }
  .kpi:hover, .ucard:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   KaliAI Repairs: what the maintenance screens add to the family look. The
   tiles, cards, pipeline and lists above are shared with Leasing; these are
   the pieces a repair ticket has and a vacancy does not.
   --------------------------------------------------------------------------- */
.k-open .kic { background: var(--teal-bg); color: var(--teal-ink); }
.k-urgent .kic { background: var(--warm-bg); color: var(--warm-ink); }
.k-waiting .kic { background: var(--soon-chip); color: var(--soon-ink); }
.k-closed .kic { background: var(--good-chip); color: var(--good-ink); }
.toast.bad { background: var(--danger-fill); color: var(--on-fill); }
.toast.bad svg { display: none; }

/* A list of tickets, one row each: the picture, the words, where it stands. */
.trows { display: flex; flex-direction: column; }
.trow { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line2); color: inherit; text-decoration: none; }
.trow:first-child { border-top: 0; }
.trow:hover { background: var(--soft3); color: inherit; }
.tr-pic { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; display: block; border: 1px solid var(--line); position: relative; }
.tr-pic img, .tr-pic .tile { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.tr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tr-t b { font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.tr-t .muted { font-size: 13.5px; }
.tr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; font-size: 13px; color: var(--muted2); }
.tr-next { font-weight: 600; }
.t-needs .tr-next { color: var(--needs-ink); }
.t-soon .tr-next { color: var(--soon-ink); }
.t-good .tr-next { color: var(--good-ink); }
/* WHO HAS IT, AT THE LEFT of every row (the owner, 23 Nov 2026: "make the
   pics for the assigned person go to the left of the tasks, not the far
   right so easy to see who's in charge, type of task type (urgent,
   routine)"): the face with the name under it, then the job's picture, then
   the urgency leading the title. */
.tr-who { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tr-who .pav { border-width: 1.5px; }
.tr-who-n { max-width: 100%; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-who .nobody + .tr-who-n { color: var(--muted2); font-weight: 500; white-space: normal; }
.tr-h { display: block; line-height: 1.3; }
.tr-h .pill { margin-right: 7px; vertical-align: 2px; font-size: 12px; padding: 2px 8px; }
/* BY BUILDING, FOLDED, with the building's photo (the owner, 23 Nov 2026:
   "collapse properties automatically as default screen and insert photos of
   properties whenever they show up like here, so easy to identify"). */
.foldline { margin: 2px 0 12px; color: var(--muted2); }
.foldline a { font-weight: 600; }
.pgroup { padding: 0; overflow: hidden; margin-bottom: 10px; }
.pg-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; }
.pg-head::-webkit-details-marker { display: none; }
.pg-head:hover { background: var(--soft3); }
.pg-pic { position: relative; width: 76px; height: 56px; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.pg-pic img, .pg-pic .tile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pg-t b { font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.pg-meta { font-size: 13.5px; color: var(--muted2); }
.pg-over { color: var(--needs-ink); font-weight: 600; }
.pg-faces { display: flex; flex: none; }
.pg-faces .pav + .pav { margin-left: -4px; }
.pg-chev { display: grid; flex: none; color: var(--muted); transition: transform .15s ease; }
details[open] > .pg-head .pg-chev { transform: rotate(90deg); }
.pg-rows { border-top: 1px solid var(--line2); }
.pg-just { display: block; padding: 11px 16px 13px; border-top: 1px solid var(--line2); font-weight: 600; }
.cityline + .pgroup, .foldline + .cityline { margin-top: 4px; }
@media (max-width: 640px) {
  .trow:has(> .tr-who) { gap: 10px; padding: 11px 12px; }
  .tr-who { width: 50px; }
  .tr-who .pav { width: 32px !important; height: 32px !important; }
  .tr-who-n { font-size: 11px; }
  .wn-rest { display: none; }
  .pg-head { gap: 12px; padding: 10px 12px; }
  .pg-pic { width: 60px; height: 45px; border-radius: 10px; }
  .pg-t b { font-size: 15.5px; }
  .pg-meta { font-size: 13px; }
  .pg-faces { display: none; }
  .pg-just { padding: 10px 12px 12px; }
}
/* TENANTS BY CITY, THEN BY BUILDING, every one folded (the owner, 23 Nov
   2026: "default to always be organized by city for properties and
   collapsed, adn then when you open it list out, not across"). A city opens
   to its buildings one under the other, each a row like the Tickets page's. */
.cityfold { padding: 0; overflow: hidden; margin-bottom: 12px; }
.cf-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.cf-head::-webkit-details-marker { display: none; }
.cf-head:hover { background: var(--soft3); }
.cf-head b { font-size: 22px; font-weight: 600; }
.cf-meta { flex: 1; min-width: 0; font-size: 14px; color: var(--muted2); }
details[open] > .cf-head .pg-chev { transform: rotate(90deg); }
.cf-body { border-top: 1px solid var(--line2); }
.tenfold + .tenfold { border-top: 1px solid var(--line2); }
.tenfold > .foldbody { padding: 4px 16px 16px 106px; }
@media (max-width: 640px) {
  .cf-head { gap: 10px; padding: 14px 12px; }
  .cf-head b { font-size: 19px; }
  .cf-meta { font-size: 13px; }
  .tenfold > .foldbody { padding: 4px 12px 14px; }
}
/* Messages folded the same way; a building's conversations sit right under
   its row, and the last words fill the row, two lines at most. */
.tenfold > .trows { border-top: 1px solid var(--line2); }
.msgprev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* PICTURES THAT MOVE UNDER THE POINTER, on every page (the owner, 23 Nov
   2026: "I also like how the images when you hover over on the 'settings'
   page animate, do that for all the pages as well"): the same slow zoom as
   the Settings cards, on a ticket's card and row, a building's row on
   Tickets, Tenants and Messages, and a vendor's card. Still for anyone whose
   phone asks for less motion. */
.uc-img > .tile svg, .tr-pic img, .tr-pic .tile svg, .pg-pic img, .pg-pic .tile svg { transition: transform .35s ease; }
.uc-img > img { transition: transform .35s ease, filter .2s ease; }
a.ucard:hover .uc-img > img, a.ucard:hover .uc-img > .tile svg,
a.trow:hover .tr-pic img, a.trow:hover .tr-pic .tile svg,
summary:hover .pg-pic img, summary:hover .pg-pic .tile svg { transform: scale(1.06); }
.uc-img { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .uc-img > img, .uc-img > .tile svg, .tr-pic img, .tr-pic .tile svg, .pg-pic img, .pg-pic .tile svg { transition: none; }
  a.ucard:hover .uc-img > img, a.ucard:hover .uc-img > .tile svg,
  a.trow:hover .tr-pic img, a.trow:hover .tr-pic .tile svg,
  summary:hover .pg-pic img, summary:hover .pg-pic .tile svg { transform: none; }
}
/* THE THREE THINGS PEOPLE START FROM, at the top of the dashboard and of
   Messages (the owner, 24 Nov 2026: "messaging vendors/tenants/new ticket.
   All of these are key to have on dashboard and also the message page as
   well ... this function must be near the top"): a new ticket, a message to
   tenants, a message to a vendor. Three across on a desk, one under the
   other on a phone with the words left off, so the page stays short. */
.actrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.actrow.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actrow.n1 { grid-template-columns: minmax(0, 1fr); }
.actcard { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 14px; padding: 16px 18px; margin: 0; transition: box-shadow .2s ease, transform .2s ease; }
.actcard:hover, .actcard:focus-within { box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-1px); }
.act-new { --t1: var(--pt5a); --t2: var(--pt5b); }
.act-ten { --t1: var(--pt4a); --t2: var(--pt4b); }
.act-ven { --t1: var(--pt2a); --t2: var(--pt2b); }
.act-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--ink); background: linear-gradient(135deg, var(--t1), var(--t2)); transition: transform .35s ease; }
.actcard:hover .act-ic { transform: scale(1.06); }
.act-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-self: center; }
.act-t b { font-size: 17.5px; letter-spacing: -.01em; }
.act-t span { color: var(--muted2); font-size: 14px; line-height: 1.4; }
.act-f { grid-column: 1 / -1; align-self: end; display: flex; flex-wrap: wrap; gap: 8px; }
.act-f select { flex: 1 1 0; min-width: 0; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-btn); background: var(--field); color: var(--ink); font: inherit; font-size: 15px; padding: 0 10px; }
.act-f .btn { flex: 1 1 100%; min-height: 44px; justify-content: center; }
/* One card alone (the demo has only New ticket) reads as one row. */
.actrow.n1 .actcard { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; }
.actrow.n1 .act-f { grid-column: auto; align-self: center; flex-wrap: nowrap; }
.actrow.n1 .act-f select { flex: 0 1 220px; }
.actrow.n1 .act-f .btn { flex: 0 0 auto; }
@media (max-width: 1240px) {
  .actrow, .actrow.n2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .actcard { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; row-gap: 10px; }
  .act-f { grid-column: auto; align-self: center; flex-wrap: nowrap; }
  .act-f select { flex: 0 1 200px; }
  .act-f .btn { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  /* Three tiles side by side: the whole tile is the button, and the next
     page asks the building or the city. */
  .actrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .actrow.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actrow.n1 { grid-template-columns: minmax(0, 1fr); }
  .actcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 6px; }
  .act-ic { width: 44px; height: 44px; border-radius: 13px; }
  .act-t { align-self: stretch; }
  .act-t b { font-size: 14px; line-height: 1.25; }
  .act-t span { display: none; }
  .act-f select { display: none; }
  .act-f .btn { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; border-radius: inherit; }
  .actcard:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .actcard, .act-ic { transition: none; }
  .actcard:hover, .actcard:focus-within { transform: none; }
  .actcard:hover .act-ic { transform: none; }
}
/* A template wears the icon of what it is about, as the classic page shows it. */
.tplhead { display: flex; align-items: flex-start; gap: 12px; }
.tplicon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; line-height: 1; background: var(--accent-tint); }
.tplicon.tone-amber { background: var(--soon-bg); }
.tplicon.tone-green { background: var(--good-bg); }
.tplicon.tone-red { background: var(--needs-bg); }
/* THE DASHBOARD (the owner, 23 Nov 2026: "ensure the "Team" is near the top
   as well. along with that message function near the top too. Tickets should
   take only a smaller fraction of the screen, but still a priority"). */
.dashtop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.dashtop.solo { grid-template-columns: minmax(0, 1fr); }
.teamrow { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.tm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tm-head b { font-size: 16.5px; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: inherit; text-decoration: none; }
.tchip:hover { border-color: var(--line-strong); background: var(--soft3); color: inherit; }
.tchip .pc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tchip .pc-t b { font-size: 14.5px; }
.more { margin-top: 2px; }
.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); padding: 8px 16px; border: 1px solid var(--line-btn); border-radius: 999px; background: var(--paper); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { background: var(--soft3); }
.more .m-open, .more[open] .m-shut { display: none; }
.more[open] .m-open { display: inline; }
.more[open] > summary { margin-bottom: 14px; }
.allticks { align-self: flex-start; font-weight: 600; }
/* On the dashboard a ticket card is compact: three to a row, a shorter
   picture, no stage dots or small counts (the ticket's page has them), so
   tickets lead the page without taking it over. */
.dashmain .ucards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashmain .uc-img { aspect-ratio: 16 / 9; }
.dashmain .uc-steps, .dashmain .uc-stats { display: none; }
.dashmain .uc-body { gap: 7px; padding: 12px 14px 14px; }
.dashmain .uc-name { font-size: 15.5px; }
.dashmain .uc-next { flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dashmain .uc-next .uc-tier { order: 1; }
.dashmain .uc-next .uc-cue { order: 2; margin-left: auto; }
.dashmain .uc-next .uc-nt { order: 3; flex: 1 1 100%; min-width: 0; }
.sidecard { display: flex; flex-direction: column; gap: 4px; }
.sidecard .sechead { margin-bottom: 4px; }
.side-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line2); color: inherit; text-decoration: none; }
.sidecard .sechead + .side-row { border-top: 0; }
a.side-row:hover { color: inherit; }
a.side-row:hover b { text-decoration: underline; }
.sr-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-t b { font-size: 14.5px; }
.sr-last { color: var(--muted2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mv-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.mv-ic.in { background: var(--good-bg); color: var(--good-ink); }
.mv-ic.out { background: var(--soon-bg); color: var(--soon-ink); }
@media (max-width: 1000px) { .dashtop { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .dashmain .ucards { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .pg-chev { transition: none; } }

/* One ticket. */
.tkhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tkphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tkphotos a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--soft2); position: relative; }
.tkphotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tkphotos .cap { position: absolute; left: 8px; bottom: 8px; background: var(--over-photo); color: var(--ink2); font-size: 12px; border-radius: 7px; padding: 2px 7px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.happened { display: flex; flex-direction: column; gap: 0; }
.happened > div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 14.5px; line-height: 1.5; }
.happened > div:first-child { border-top: 0; }
.hp-when { flex: none; width: 118px; color: var(--muted); font-size: 13px; padding-top: 2px; }
.hp-t { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-t b { color: var(--ink2); }
.press { display: flex; flex-direction: column; gap: 10px; }
.press textarea, .press select, .press input[type=text] { font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 10px 12px; background: var(--field); color: var(--ink); width: 100%; }
.press textarea { min-height: 70px; resize: vertical; }
.press textarea:focus, .press select:focus, .press input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.press .acts { justify-content: flex-start; }
.press .hint { font-size: 13.5px; color: var(--muted2); margin: 0; }
.pressgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.wordsblock { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.btn.danger { background: var(--paper); color: var(--danger-ink); border-color: var(--danger-line); }
.btn.danger:hover { background: var(--danger-bg); color: var(--danger-ink); }
.filebtn { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink2); }
.filebtn input { font: inherit; font-size: 14px; }
.sentrow .pill { text-transform: capitalize; }
.tenantrow .tt b { font-size: 15px; }
.tenantrow .tt span { font-size: 13.5px; color: var(--muted2); }
.classicline { font-size: 14px; color: var(--muted2); }
.classicline a { font-weight: 600; }
@media (max-width: 860px) {
  .tr-pic { width: 56px; height: 42px; }
  .tr-side { display: none; }
  .hp-when { width: 86px; }
  .pressgrid { grid-template-columns: 1fr; }
}

/* The pipeline has five stops with longer names than Leasing's: it wraps
   rather than scrolls on a desk, and the side column gives it room. */
.pipe { flex-wrap: wrap; row-gap: 4px; }
.pstop { padding: 5px 10px 5px 5px; font-size: 14.5px; }
.dashside { max-width: 380px; }
/* On a phone a card says its urgency in a word before the next step; the pill
   (which has no room beside the words there) is a desk thing. */
.uc-tier { display: inline-flex; flex: none; }
.tierword { display: none; font-weight: 700; }
@media (max-width: 860px) {
  .uc-tier { display: none; }
  .tierword { display: inline; }
  .tierword.t-emergency { color: var(--needs-ink); }
  .tierword.t-urgent { color: var(--soon-ink); }
}
/* A file input has a width of its own; on a phone it must never be wider than the card. */
.col, .col.narrow, .press, .card.pad { min-width: 0; max-width: 100%; }
.filebtn { flex-wrap: wrap; max-width: 100%; }
.filebtn input { max-width: 100%; min-width: 0; width: 100%; }
/* Stage 4: the folded-in pages. */
.switchrow input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--go); flex: none; }
.formgrid input[type=text] { font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 9px 12px; background: var(--field); color: var(--ink); }
.formgrid select[multiple] { min-height: 96px; }
.convo { max-height: 60vh; }
.convo .up-day { padding: 4px 0; }
.handling .sw { flex: none; }
.raisebtn { display: inline-flex; align-items: center; gap: 6px; }
.tr-pic img { object-fit: cover; }
.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; }
@media (max-width: 860px) {
  .convo { max-height: none; }
  .handling { flex-direction: column; align-items: flex-start; }
}

/* Cards or a list by building (the dashboard's switch), and the building headings of a list. */
.viewsw { display: inline-flex; gap: 4px; margin-left: 6px; }
.viewsw a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted2); text-decoration: none; }
.viewsw a[aria-current] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Batch 1: editing a ticket, the assistant's cards, templates. */
.tkhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tkhead .editbtn { margin-left: auto; padding: 6px 14px; }
.assist .sechead b { display: inline-flex; align-items: center; gap: 8px; }
.assist textarea { width: 100%; min-height: 140px; }
.assist .lbl { display: block; margin: 12px 0 6px; }
.dxsum { margin: 4px 0 10px; line-height: 1.5; }
.dxlist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.dxlist li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.dxlist li .pill { flex: none; margin-top: 1px; }
.dxfacts { margin: 6px 0 4px; }
.chip.warn { background: var(--soon-bg); border-color: var(--soon-line); color: var(--soon-ink); }
.dxmore { margin-top: 10px; border-top: 1px solid var(--line2); padding-top: 10px; }
.dxmore > summary { cursor: pointer; font-weight: 650; color: var(--ink2); }
.dxmore ol, .dxmore ul { margin: 4px 0 8px; padding-left: 20px; line-height: 1.5; }
.dxdraft { margin-top: 12px; border-top: 1px solid var(--line2); padding-top: 4px; }
.warnline { color: var(--needs-ink); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line3); border-top-color: var(--accent); display: inline-block; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.cmpgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 10px 0; }
.cmpside { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; min-width: 0; }
.cmpside p { margin: 0; line-height: 1.45; }
.cmppick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cmppick select { flex: 1 1 140px; min-width: 0; }
.tplpick { margin: 0 0 12px; }
.tplpick > summary { cursor: pointer; font-weight: 650; color: var(--accent-ink); }
.tplpick .chips { margin: 8px 0 4px; }
.tplcards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tplcard { display: grid; gap: 8px; align-content: start; min-width: 0; }
.tplcard p { margin: 0; line-height: 1.45; }
.tplfull > summary { cursor: pointer; color: var(--accent-ink); }
textarea.tall { min-height: 260px; }
.headright .btn { padding: 6px 14px; }
/* A fact on the diagnosis is a sentence, not a tag: it wraps on a phone. */
.dxfacts .chip { white-space: normal; text-align: left; line-height: 1.4; border-radius: 12px; }
.tplpick .chip { white-space: normal; }

/* Batch 2: a ticket's photos, and the conversation's own tools. */
.photogrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photocard { padding: 0; overflow: hidden; display: grid; align-content: start; min-width: 0; }
.photocard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photocard .pc-meta { display: grid; gap: 2px; padding: 10px 12px 4px; line-height: 1.35; }
.photocard form { padding: 0 12px 10px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0; font-size: 15px; }
.radios label { display: inline-flex; gap: 6px; align-items: center; }
.addphotos { display: flex; gap: 10px; align-items: center; color: var(--muted2); text-decoration: none; }
.addphotos:hover { color: var(--ink); }
.draftpick textarea { min-height: 70px; }
.draftnote { margin: 4px 0 8px; }
.replyform .filebtn { margin: 6px 0; }

/* Batch 3: the roster, moving in and out, the vendor sheet. */
.tsearch { display: flex; gap: 8px; margin-bottom: 10px; }
.tsearch input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 9px 12px; background: var(--field); color: var(--ink); }
.rosterbar { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 8px; align-items: start; }
.editrow { margin: 6px 0 4px; }
.editrow > summary { cursor: pointer; font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.editrow form { margin-top: 8px; }
.copybtn { margin-left: 8px; font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted2); cursor: pointer; }
.flagline { display: block; color: var(--soon-ink); font-size: 13px; font-weight: 600; }
.radios.stack { flex-direction: column; gap: 8px; }
.radios.stack label { align-items: flex-start; }
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; margin: 8px 0; }
.checkline input { margin-top: 3px; flex: none; }
.movecard { display: grid; gap: 6px; align-content: start; min-width: 0; }
.movecard .acts { flex-wrap: wrap; }
.vendorcard { display: grid; gap: 8px; align-content: start; min-width: 0; }
/* THE VENDOR SHEET, FOUND FROM THE TOP (the owner, 23 Nov 2026: "I want
   search right at the top ... based on the trade type (plumber,
   electrician), municipality, and or their actual name"): one box, a row of
   trades and a row of cities, each with its icon; adding a firm is a small
   button; then the firms by city, folded, one under the other. */
.vfind { padding: 16px 18px; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.vf-row { display: flex; gap: 10px; align-items: stretch; }
.vf-box { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line3); border-radius: 14px; background: var(--field); padding: 0 14px; cursor: text; }
.vf-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.vf-ic { color: var(--muted2); display: grid; flex: none; }
.vf-box input { flex: 1 1 auto; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; padding: 12px 0; color: var(--ink); }
.vf-row .btn { flex: none; }
.vf-line { display: flex; gap: 12px; align-items: flex-start; }
.vf-lab { flex: none; width: 48px; padding-top: 8px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted2); font-weight: 600; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.vchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--soft2); color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.vchip:hover { border-color: var(--line3); background: var(--soft3); }
.vchip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vc-ic { font-size: 15px; line-height: 1; }
.vc-n { font-size: 12px; color: var(--muted2); font-variant-numeric: tabular-nums; }
.vchip.on .vc-n { color: inherit; opacity: .7; }
.vline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: -8px 2px 0; min-height: 34px; }
.vcities { display: grid; gap: 12px; }
.vcities > .cityfold { margin: 0; }
.vadd > summary { list-style: none; }
.vadd > summary::-webkit-details-marker { display: none; }
.vadd > summary.btn { display: inline-flex; align-items: center; gap: 6px; }
.vadd[open] { flex-basis: 100%; }
.vadd[open] > summary.btn { display: flex; width: max-content; margin-left: auto; }
.vadd-body { margin-top: 10px; }
.vc-city { font-size: 22px; line-height: 1; flex: none; }
.vc-icons { display: flex; gap: 4px; font-size: 16px; line-height: 1; flex: none; }
.vtrade { display: flex; align-items: center; gap: 8px; padding: 14px 18px 6px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; color: var(--muted2); border-top: 1px solid var(--line2); }
.cf-body > .vtrade:first-child { border-top: 0; }
.vt-ic { font-size: 15px; letter-spacing: 0; }
.vt-n { font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: 0; }
.vrow { display: flex; gap: 14px; padding: 10px 18px 14px; align-items: flex-start; }
.vrow + .vrow { border-top: 1px dashed var(--line2); padding-top: 14px; }
.vtile { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 24px; line-height: 1; background: linear-gradient(135deg, var(--t1), var(--t2)); }
/* The firm's icon moves under the pointer as the pictures do, still for
   anyone whose phone asks for less motion. */
.vtile { transition: transform .35s ease; }
.vrow:hover .vtile { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .vtile { transition: none; } .vrow:hover .vtile { transform: none; } }
.vr-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vr-t .hint { margin: 2px 0 0; }
.vr-t .chips { margin-top: 4px; }
.vr-t .chip { display: inline-flex; align-items: center; gap: 5px; }
.vr-hist { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; padding: 8px 10px; border-radius: 12px; background: var(--soft2); }
.vr-hist .chips { margin-top: 0; }
.lastmsg { font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.vr-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.vr-h b { font-size: 16.5px; overflow-wrap: anywhere; }
.vr-h .pill { font-size: 12px; padding: 2px 8px; }
@media (max-width: 640px) {
  .vfind { padding: 12px; gap: 10px; }
  .vf-lab { display: none; }
  .vf-box input { padding: 11px 0; }
  /* One strip each for trades and cities, sliding inside itself as the menu
     does, so the search stays short on a phone. */
  .vf-line { margin-right: -12px; }
  .vchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 12px; }
  .vchips::-webkit-scrollbar { display: none; }
  .vchip.on { order: -1; }
  .vc-icons { display: none; }
  .vtrade { padding: 12px 12px 4px; }
  .vrow { padding: 8px 12px 12px; gap: 12px; }
  .vrow + .vrow { padding-top: 12px; }
  .vtile { width: 42px; height: 42px; font-size: 21px; border-radius: 12px; }
}
/* The moving page's first step: a building, a unit, a button, on one line where it fits. */
.unitpick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.unitpick select, .unitpick input { font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 9px 12px; background: var(--field); color: var(--ink); height: auto; }
.unitpick select { flex: 1 1 180px; min-width: 0; }
.unitpick input { flex: 0 1 110px; min-width: 0; }
.formgrid input[type=date] { font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 8px 12px; background: var(--field); color: var(--ink); min-height: 44px; }

/* ---- Batch 4: Reports (the brief, the tracker, the report card) and the
   closed board. ------------------------------------------------------------ */
.rtabs { margin-bottom: 4px; }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile3 { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; text-align: center; }
.tile3 b { font-size: 28px; line-height: 1; }
.tile3.t-needs b { color: var(--needs-ink); }
.tile3.t-soon b { color: var(--soon-ink); }
/* The brief as it is emailed: a sheet of paper, white in either look. */
.paper { background: #FFFFFF; color: #15171A; color-scheme: light; padding: 4px; }
.paper > div { max-width: 100%; }
.trk table { border-collapse: collapse; width: 100%; min-width: 340px; font-size: 14px; font-variant-numeric: tabular-nums; }
.trk th, .trk td { padding: 7px 6px; text-align: center; white-space: nowrap; }
.trk th { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); }
.trk th.now, .trk td.now { background: var(--good-bg); }
.trk th:first-child, .trk td:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.trk .who { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.trk td.z { color: var(--line3); }
.trk td.tot { font-weight: 750; border-left: 1px solid var(--line); }
.trk tfoot td { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 700; }

.rc-acts { display: flex; flex-direction: column; gap: 12px; }
.rc-who { display: flex; flex-direction: column; gap: 2px; }
.rc-share { border: 1px solid var(--line); border-radius: 12px; }
.rc-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn.small { padding: 6px 12px; font-size: 13.5px; }
.rc-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.rc-letter { width: 76px; height: 76px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-family: "Newsreader", Georgia, serif; font-size: 44px; font-weight: 700; }
.g-A { background: var(--good-bg); color: var(--good-ink); }
.g-B { background: var(--teal-bg2); color: var(--series); }
.g-C { background: var(--soon-bg); color: var(--soon-ink); }
.g-D, .g-F { background: var(--needs-bg); color: var(--needs-ink); }
.g-x { background: var(--soft); color: var(--muted); }
.rc-score { display: flex; flex-direction: column; gap: 3px; }
.rc-score b { font-size: 34px; line-height: 1; }
.rc-score small { font-size: 15px; color: var(--muted); font-weight: 600; }
.rc-chart { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.rc-chart svg { width: 100%; max-width: 520px; height: auto; }
.rc-grid { stroke: var(--line2); stroke-width: 1; }
.rc-chart rect { fill: var(--mark); }
.rc-chart rect.fA { fill: var(--go); }
.rc-chart rect.fB { fill: var(--series); }
.rc-chart rect.fC { fill: var(--chart-c); }
.rc-chart rect.fD, .rc-chart rect.fF { fill: var(--needs-ink); }
.rc-chart rect.past { opacity: .72; }
.rc-tv { font-size: 12px; font-weight: 700; fill: var(--ink); }
.rc-tl { font-size: 10.5px; fill: var(--muted); }
.rc-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rc-n { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.rc-n b { font-size: 26px; line-height: 1; }
.rc-n.hot b { color: var(--needs-ink); }
.rc-bars { width: 100%; height: 22px; }
.rc-bars rect { fill: var(--line3); }
.rc-bars rect.now { fill: var(--series); }
.rc-grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rc-m p { margin: 6px 0 0; }
.rc-mt { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rc-mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.rc-mv { font-size: 28px; line-height: 1; }
.rc-spark { width: 130px; height: 34px; flex: none; }
.rc-base { stroke: var(--line2); stroke-width: 1; }
.rc-line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rc-dot { fill: var(--series); }
.rc-meter { height: 6px; border-radius: 999px; background: var(--soft); margin-top: 10px; overflow: hidden; }
.rc-meter i { display: block; height: 100%; border-radius: 999px; background: var(--go); }
.rc-meter.mid i { background: var(--chart-c); }
.rc-meter.low i { background: var(--needs-ink); }
.rc-grp { margin: 14px 0 4px; color: var(--muted); }
.rc-li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 5px 0; border-bottom: 1px solid var(--line2); }
.rc-li:last-child { border-bottom: 0; }
.rc-draft { white-space: pre-wrap; word-break: break-word; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 14.5px; background: var(--soft3); border: 1px solid var(--line2); border-radius: 12px; padding: 14px; margin: 10px 0; }
.rc-tbl table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; font-variant-numeric: tabular-nums; }
.rc-tbl th, .rc-tbl td { padding: 8px 8px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line2); }
.rc-tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rc-tbl tr.now td { background: var(--soft3); font-weight: 650; }
.rc-chip { display: inline-block; min-width: 26px; text-align: center; border-radius: 8px; padding: 1px 6px; font-weight: 750; }
.rc-how p { margin: 0 0 10px; line-height: 1.55; }

.rangeline { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 2px 0 10px; }
.rangeline a { text-decoration: none; font-weight: 650; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line3); color: var(--ink); }
.rangeline a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.closedrow { align-items: flex-start; flex-wrap: wrap; }
.closedrow .tr-t { min-width: 0; flex: 1 1 260px; }
.cr-name { color: var(--ink); text-decoration: none; }
.cr-name:hover b { text-decoration: underline; }
.cr-state { font-size: 14px; color: var(--ink2); }
.cr-state.live { color: var(--soon-ink); font-weight: 650; }
.cr-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cr-ask { display: inline-flex; gap: 6px; align-items: center; }
.btn[disabled] { opacity: 1; cursor: default; }
@media (max-width: 640px) {
  .rc-hero { grid-template-columns: auto 1fr; }
  .rc-spark { width: 104px; }
  .tile3 b { font-size: 24px; }
}
.rc-note { font-size: 13.5px; color: var(--muted2); margin: 4px 0 0; line-height: 1.45; }
.rc-ln { font-size: 14.5px; color: var(--ink2); font-weight: 600; }
.cr-acts .press { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
.signout { width: 100%; }

/* ---- Batch 5: the owner's Settings switches. ------------------------------ */
.note { font-size: 13.5px; color: var(--muted2); margin: 4px 0 8px; line-height: 1.5; }
.switchrow .sw-label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.switchrow .sw-label .hint { font-size: 13.5px; color: var(--muted2); font-weight: 400; line-height: 1.45; }
.press input[type=password] { font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 10px 12px; background: var(--field); color: var(--ink); width: 100%; }
.press input[type=password]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.alertrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line2); }
.alertrow:first-of-type { border-top: 0; }
.alertrow .tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.alertrow .tt .small { overflow-wrap: anywhere; }
.alertticks { display: flex; gap: 16px; }
.alertticks .checkline { margin: 0; }
.privbox { border: 1px solid var(--line2); border-radius: 12px; background: var(--soft3); padding: 10px 14px; margin: 10px 0; }
.privbox .hint { margin: 6px 0 0; }
.setgrp { display: block; margin: 12px 0 2px; color: var(--muted); }

/* ---- Batch 6: files, keys and connections, health, sign-ins. ------------- */
.wrapall { overflow-wrap: anywhere; word-break: break-word; }
.prewrap { white-space: pre-line; }
.keyrow { border-top: 1px solid var(--line2); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.keyrow:first-of-type { border-top: 0; }
.keyshow { font-size: 14px; user-select: all; -webkit-user-select: all; background: var(--soft3); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; }

/* ---- Batch 7: the city above its buildings, Documents, the lease audit. -- */
.cityline { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 2px; padding-bottom: 4px; border-bottom: 2px solid var(--line3); }
.cityline b { font-size: 21px; }
.tiles6 { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.crumbs { margin: 4px 0 8px; }

/* The sign-in (login.html): one card on the page's ground, centred, phone first. */
.app.signin { align-items: center; justify-content: center; padding: 24px 16px; min-height: 100vh; min-height: 100dvh; }
.signin-main { width: 100%; max-width: 400px; }
.signin-card { display: flex; flex-direction: column; gap: 12px; }
.signin-card h1 { margin: 4px 0 0; font-size: 30px; line-height: 1.15; }
.signin-card > .muted { margin: 0 0 4px; }
.signin-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.signin-card .acts .btn { width: 100%; }
.signin-err { margin: 0; font-weight: 600; }
.signin-google { width: 100%; }
.signin-or { text-align: center; margin: 0; }
.signin-classic { text-align: center; margin: 2px 0 0; }

/* Getting started (guide.html): a long read, so the measure stays near 65 characters. */
.gchips { padding: 2px 0; }
.guide { display: flex; flex-direction: column; gap: 10px; max-width: 760px; scroll-margin-top: 64px; }
.guide h2 { margin: 0; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.guide h3 { margin: 10px 0 0; font-size: 16.5px; }
.guide p, .guide ul, .guide ol { margin: 0; max-width: 68ch; line-height: 1.55; }
.guide ul, .guide ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.guide code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px; background: var(--soft2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.gthesis { font-size: 19px; line-height: 1.35; color: var(--ink2); border-left: 3px solid var(--accent); padding-left: 12px; }
.gflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.gstep { display: flex; flex-direction: column; gap: 4px; background: var(--soft3); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; font-size: 14.5px; }
.gaddr { display: flex; flex-direction: column; gap: 8px; background: var(--soft3); border: 1px solid var(--line2); border-radius: 12px; padding: 14px; }
.gaddr b { font-size: 18px; }
.gaddr .hint { margin: 0; }
.gtable { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.gtable th, .gtable td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line2); }
.gtable th { font-size: 13px; color: var(--muted); font-weight: 600; border-top: 0; }
.gcheck { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); }
.gcheck-t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; }
.gcheck-t.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line3); }
.gcheck .btn { flex: none; }
@media (max-width: 640px) {
  /* The Slack table reads as pairs on a phone, so nothing scrolls sideways. */
  .gtable thead { display: none; }
  .gtable tr { display: block; padding: 10px 0; border-top: 1px solid var(--line2); }
  .gtable td { display: block; border: 0; padding: 2px 0; }
  .gtable td:first-child { font-weight: 600; color: var(--ink2); }
}

/* Drawn by token, so the dark look draws them at night (batch 9). */
.tile .af { fill: var(--art-face); }
.search svg { color: var(--muted); flex: none; }
.toast svg { color: var(--toast-tick); }

/* Your look (me.html): three choices, the one in force marked. */
.looksw { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.lookopt { display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line3); border-radius: 14px; padding: 12px 14px; cursor: pointer; min-height: 44px; }
.lookopt span { font-size: 13.5px; color: var(--muted2); line-height: 1.4; }
.lookopt:hover { border-color: var(--line-strong); }
.lookopt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lookopt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* WHO HAS IT (the owner, 23 Nov 2026): the face of the staff member beside
   their name on every ticket, initials on a tint when there is no photo yet,
   "Not assigned" in plain words when nobody has it. */
.holder { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; font-size: 14px; font-weight: 600; color: var(--ink2); line-height: 1.2; }
.holder .pav { flex: none; border-width: 1.5px; }
.holder-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holder-v { font-weight: 500; color: var(--muted2); }
.holder.none { color: var(--muted2); font-weight: 500; }
.pav.nobody { background: var(--soft2); color: var(--muted); border: 1.5px dashed var(--line-strong); box-shadow: none; }
.uc-holder { display: flex; min-width: 0; }
.closedrow .tr-t > .holder { margin-top: 2px; }
.up-state .holder { font-size: 12.5px; }
.facts .holder { font-size: inherit; font-weight: inherit; color: inherit; }
.photoform { width: 100%; align-items: center; }
.photoform .hint { text-align: center; }
/* WRITING TO TENANTS AND TO A TRADE (the owner, 24 Nov 2026: "create new
   design for this rather than going ot old CRM style"). One card per choice,
   chips for what changes the page, a read-back before anything goes. */
.wform { display: flex; flex-direction: column; gap: 16px; }
.wstep { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.wform .wstep { margin-bottom: 0; }
.wstep-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.wstep-h b { font-size: 17px; }
.wstep-h.sub { margin-top: 6px; }
.wstep-h.sub b { font-size: 15.5px; }
.wstep .hint { margin: 0; }
.wlab { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted2); }
.wlab input, .wlab textarea, .wstep select, .extrarow input, .vsearch input { font: inherit; font-size: 16px; border: 1.5px solid var(--line3); border-radius: 12px; padding: 10px 12px; background: var(--field); color: var(--ink); width: 100%; min-width: 0; box-sizing: border-box; }
.wlab textarea { resize: vertical; line-height: 1.5; }
.vchip.warnchip { border-color: var(--danger-line); color: var(--danger-ink); background: var(--danger-bg); }
.vchip.warnchip.on { background: var(--danger-fill); border-color: var(--danger-fill); color: var(--on-fill); }
.warncard { border-color: var(--danger-line); background: var(--danger-bg); }
.kindtabs { margin-top: -2px; }
.sentcard { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; border-color: var(--good-line); background: var(--good-bg); }
.sent-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--good-ink); }
.sent-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sent-t b { font-size: 16.5px; }
.whogroup { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.whogroup legend { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 0 4px; }
.whogroup + .whogroup { margin-top: 10px; }
.wholist { display: flex; flex-direction: column; gap: 2px; }
.whorow { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; min-width: 0; }
.whorow:hover { background: var(--soft2); }
.whorow input { width: 20px; height: 20px; flex: none; accent-color: var(--go); }
.whorow > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.whorow b { overflow-wrap: anywhere; }
.whorow.off { opacity: .55; cursor: default; }
.whorow.firm .tt b { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
div.whorow { cursor: default; }
div.whorow:hover { background: none; }
.vtile.small { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; background: var(--soft2); }
.whomore > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); padding: 6px 0; }
.whomore[open] > summary { margin-bottom: 8px; }
.extrarow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; margin-top: 8px; }
.daygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.winchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.daychip { position: relative; cursor: pointer; }
.daychip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.daychip > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 6px 8px; border: 1.5px solid var(--line3); border-radius: 12px; background: var(--paper); text-align: center; transition: background .15s ease, border-color .15s ease; }
.daychip.wide > span { min-height: 46px; }
.daychip b { font-size: 14.5px; }
.daychip small { font-size: 12.5px; color: var(--muted); }
.daychip:hover > span { border-color: var(--ink); }
.daychip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.daychip input:checked + span small { color: inherit; opacity: .75; }
.daychip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@supports selector(:has(*)) {
  .otherday, .othertimes { display: none; }
  .wstep:has(input[name=date][value=other]:checked) .otherday { display: flex; }
  .wstep:has(input[name=window][value=other]:checked) .othertimes { display: grid; }
}
.addrpick, .viapick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.addrpick legend { font-size: 14px; color: var(--muted2); padding: 0 0 4px; }
.tplpick > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); padding: 4px 0; }
.tplpick[open] > summary { margin-bottom: 10px; }
.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tplopt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--paper); color: inherit; text-decoration: none; min-width: 0; }
.tplopt:hover { border-color: var(--line-strong); background: var(--soft3); color: inherit; }
.tplopt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tpl-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tpl-t .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.advline { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--soon-line); background: var(--soon-bg); color: var(--soon-ink); border-radius: 14px; font-size: 14.5px; }
.advline svg { flex: none; margin-top: 2px; }
.samplebox { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px dashed var(--line3); border-radius: 12px; background: var(--soft3); }
.askrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.sendbar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 5; }
.vsearch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.tocard .wstep-h a { font-weight: 600; }
.accessfold { margin-top: 16px; }
.accessfold .foldbody { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) {
  .wstep { gap: 10px; }
  .daygrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .winchips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .extrarow, .askrow { grid-template-columns: minmax(0, 1fr); }
  .tplgrid { grid-template-columns: minmax(0, 1fr); }
  .whorow { padding: 8px 4px; }
  .sendbar { flex-wrap: wrap; }
  .sendbar .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .daychip > span { transition: none; } }
