:root {
  --bg: #f6f7f5; --surface: #ffffff; --text: #1c2320; --muted: #66706b; --line: #e2e6e3;
  --accent: #2f6b4f; --accent-soft: #e5f0ea; --neg: #b3261e; --neg-soft: #fbe9e7;
  --pos: #1f7a4d; --warn: #8a5a00; --warn-soft: #fff4dc;
  --radius: 10px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614; --surface: #1b201d; --text: #e6ebe8; --muted: #9aa49f; --line: #2c3430;
    --accent: #7cc5a0; --accent-soft: #1f3129; --neg: #ff8a80; --neg-soft: #3a1f1d;
    --pos: #7cd6a6; --warn: #f0c060; --warn-soft: #3a3020;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top .in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
header.top .brand { font-weight: 650; color: var(--text); }
header.top nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
header.top nav a { color: var(--muted); }
header.top nav a.on, header.top nav a:hover { color: var(--text); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--neg); color: #fff; font-size: 12px; text-align: center; }
.badge.ok { background: var(--muted); }
header.top .spacer { flex: 1; }
header.top form { margin: 0; }
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 28px 0 10px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.card .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.card .v { font-size: 20px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface); position: sticky; top: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 650; border-top: 2px solid var(--line); }
td.wrap { white-space: normal; min-width: 240px; }
.neg { color: var(--neg); font-weight: 600; }
.pos { color: var(--pos); font-weight: 600; }
.zero { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 12px; background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--neg-soft); color: var(--neg); }
.prov { color: var(--warn); }
tr.future td { color: var(--muted); }
.msg { padding: 10px 14px; border-radius: var(--radius); margin: 0 0 12px; background: var(--accent-soft); }
.msg.error { background: var(--neg-soft); color: var(--neg); }
.msg.warning { background: var(--warn-soft); color: var(--warn); }
button, .btn { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: inline-block; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { button.primary, .btn.primary { color: #0d1511; } }
button.link { border: 0; background: none; padding: 0; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--muted); border-radius: 8px; background: var(--surface); color: var(--text); max-width: 100%; }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 3px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.reason { margin: 2px 0; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; }
.item .amt { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.item.unalloc { border-left: 4px solid var(--neg); }
.item.review { border-left: 4px solid var(--warn); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.login { max-width: 360px; margin: 10vh auto; }
.login input { width: 100%; margin-bottom: 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 640px) {
  h1 { font-size: 19px; }
  .card .v { font-size: 17px; }
  th, td { padding: 6px 8px; }
  .item { grid-template-columns: 22px 1fr; }
  .item .amt { grid-column: 2; text-align: left; }
}
.roi-only { display: none; }
body.show-roi .roi-only { display: revert; }
body.show-roi .card.roi-only, body.show-roi p.roi-only { display: block; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.grid3 .panel { margin: 0; }
.grid3 h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 0 0 8px; }
.grid3 .panel > div { padding: 3px 0; }
details.draft { margin-top: 8px; }
details.draft summary { list-style: none; font-size: 13px; padding: 4px 12px; }
details.draft summary::-webkit-details-marker { display: none; }
details.draft[open] summary { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.draft-box { margin-top: 10px; display: grid; gap: 6px; }
.draft-box input, .draft-box textarea { width: 100%; }
.draft-box textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.45; }

/* ---------- charts (palette validated for these surfaces: #ffffff light, #1b201d dark) ---------- */
:root {
  --series-1: #2a78d6; --series-2: #eb6834;
  --div-pos: #2a78d6; --div-neg: #e34948;
  --status-good: #0ca30c; --status-warning: #fab219; --status-critical: #d03b3b;
  --chart-grid: #e1e0d9; --chart-base: #c3c2b7; --chart-track: #f0efec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --series-1: #3987e5; --series-2: #d95926;
    --div-pos: #3987e5; --div-neg: #e66767;
    --chart-grid: #2c2c2a; --chart-base: #383835; --chart-track: #262b28;
  }
}
.chart { display: block; font: 12px/1 var(--font); overflow: visible; }
.chart text { fill: var(--muted); }
.chart text.label, .chart text.value { fill: var(--text); }
.chart text.dot-icon { fill: #fff; font-size: 10px; font-weight: 700; pointer-events: none; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .grid.base { stroke: var(--chart-base); }
.chart .track { fill: var(--chart-track); }
.chart .today { stroke: var(--text); stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit.hover, .chart .hit:focus-visible { fill: var(--text); fill-opacity: .05; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.chart-card h2 { margin: 0 0 2px; font-size: 16px; }
.chart-card .sub { margin: 0 0 8px; font-size: 13px; }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-card details { margin-top: 8px; font-size: 13px; }
.chart-card details summary { cursor: pointer; color: var(--muted); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text); margin: 4px 0 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.key-bar { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key-line { width: 16px; height: 2px; border-radius: 1px; display: inline-block; }
.sparks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.spark-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 4px; }
.spark-card .k { font-size: 13px; display: flex; justify-content: space-between; gap: 6px; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); max-width: 300px; }
.tip-head { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.tip-row { font-weight: 600; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 5px; }
.status .ic { width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700;
  display: inline-grid; place-items: center; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 10px 0 4px; }
.filterbar label { margin: 0; }
/* horizontal bar lists (HTML, so they fit any screen width) */
.hb { display: grid; gap: 2px; }
.hb-row { display: grid; grid-template-columns: minmax(64px, 110px) 1fr minmax(70px, auto); align-items: center;
  gap: 10px; padding: 4px 0; border-radius: 6px; font-size: 13px; outline: none; }
.hb-row:hover, .hb-row:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); }
.hb-label { text-align: right; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { position: relative; height: 16px; }
.hb-zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--chart-base); }
.hb-bar { position: absolute; top: 0; bottom: 0; }
.hb-bar.r-right { border-radius: 0 4px 4px 0; }
.hb-bar.r-left { border-radius: 4px 0 0 4px; }
.hb-val { font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
/* checklist */
table.checklist td.cell { min-width: 190px; vertical-align: top; }
table.checklist td.cell.overdue { background: var(--neg-soft); }
table.checklist .tick { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; margin: 0; }
table.checklist .tick input { width: 18px; height: 18px; }
table.checklist .amt { font-variant-numeric: tabular-nums; margin-left: auto; }

button:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Claude's applicant review */
.review .review-head { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 10px 0 6px; }
.review .review-text { margin: 4px 0; line-height: 1.5; }
.review details.review-more summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.review .review-sub { font-size: 14px; margin: 16px 0 4px; }
.flags .flag { border-top: 1px solid var(--line); padding: 8px 0; }
.flags .flag:last-child { border-bottom: 1px solid var(--line); }
.flags summary, .flags .flag-line { display: flex; gap: 10px; align-items: baseline; list-style: none; line-height: 1.4; }
.flags summary { cursor: pointer; }
.flags summary::-webkit-details-marker { display: none; }
.flags summary::after { content: "›"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.flags details[open] summary::after { transform: rotate(90deg); }
.flags details p { margin: 6px 0 2px 18px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; transform: translateY(-1px); }
.dot.high { background: var(--neg); }
.dot.low { background: var(--muted); }
details.doc-list summary { cursor: pointer; font-weight: 600; margin: 4px 0; }
details.doc-list ul { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 16px; }
details.doc-list li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; padding: 3px 0; border-bottom: 1px solid var(--line); }

/* Trust colours: the whole app takes the colour of the trust you are working on */
body[data-trust-colour="blue"]   { --accent: #2456a6; --accent-soft: #e4ecf8; }
body[data-trust-colour="purple"] { --accent: #6b3fa0; --accent-soft: #efe7f7; }
body[data-trust-colour="orange"] { --accent: #b34d00; --accent-soft: #fbeadc; }
body[data-trust-colour="teal"]   { --accent: #0f6b73; --accent-soft: #dff1f2; }
body[data-trust-colour="rose"]   { --accent: #a3294f; --accent-soft: #f8e3ea; }
body[data-trust-colour="olive"]  { --accent: #56651c; --accent-soft: #eef1dc; }
body[data-trust-colour="brown"]  { --accent: #7a4a26; --accent-soft: #f3e9e1; }
body[data-trust-colour="all"]    { --accent: #3a3a3c; --accent-soft: #ececef; }   /* All trusts: neutral */
@media (prefers-color-scheme: dark) {
  body[data-trust-colour="blue"]   { --accent: #8fb4ff; --accent-soft: #1d2940; }
  body[data-trust-colour="purple"] { --accent: #c3a1f0; --accent-soft: #2c2240; }
  body[data-trust-colour="orange"] { --accent: #ffad6b; --accent-soft: #3d2a1b; }
  body[data-trust-colour="teal"]   { --accent: #6fd0d8; --accent-soft: #173336; }
  body[data-trust-colour="rose"]   { --accent: #f58fb0; --accent-soft: #3d1f2a; }
  body[data-trust-colour="olive"]  { --accent: #c2d37e; --accent-soft: #2a2f17; }
  body[data-trust-colour="brown"]  { --accent: #e0ad86; --accent-soft: #35261c; }
  body[data-trust-colour="all"]    { --accent: #d1d1d6; --accent-soft: #2c2c2e; }
}
header.top { border-top: 5px solid var(--accent); }
.trust-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.trust-chip select { border: 0; background: transparent; color: inherit; font: inherit; padding: 0 2px; cursor: pointer; }
.trust-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
header.top { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
header.top .trust-chip { background: var(--surface); border: 1.5px solid var(--accent); }
.form-page input:not([type=checkbox]):not([type=radio]), .form-page select, .form-page textarea { width: 100%; }
details.lease-row summary { cursor: pointer; }

/* grouped menu */
header.top nav { align-items: center; }
details.menu { position: relative; }
details.menu summary { list-style: none; cursor: pointer; color: var(--muted); }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary::after { content: " ▾"; font-size: 11px; }
details.menu summary.on, details.menu summary:hover, details.menu[open] summary { color: var(--text); }
details.menu .menu-panel { position: absolute; top: 26px; left: -10px; min-width: 250px; z-index: 20; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; display: grid; }
details.menu .menu-panel a { color: var(--text); padding: 8px 10px; border-radius: 8px; }
details.menu .menu-panel a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
@media (max-width: 600px) { details.menu .menu-panel { position: fixed; left: 12px; right: 12px; top: auto; } }
/* an e-mail shown as the recipient sees it (white, like most mail apps) */
.mail-sheet { background: #fff; color: #1c2320; border-radius: 8px; padding: 14px 16px; margin-top: 4px; border: 1px solid var(--line); }
.mail-sheet > div { color: #1c2320 !important; }

/* ---------------------------------------------------------------- icon, login intro, welcome (calm) */
header.top .brand { display: inline-flex; align-items: center; gap: 8px; }
header.top .brand .logo { flex: none; }
/* start-up (trustee 11.11.2026): the house fades in, the tree grows up from the floor, and meanwhile a light runs
   round the house's edge, green → orange → red like the status lights, then goes out */
.logo.play { overflow: visible; }
.logo.play .logo-bg { animation: tt-fade .6s ease-out both; }
.logo.play .logo-house { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tt-draw 1s cubic-bezier(.65,0,.35,1) forwards; }
/* the line icon in the trust's colour is too dark on a dark page: lighter there (trustee 11.11.2026) */
@media (prefers-color-scheme: dark) { .logo.lines { filter: brightness(1.75) saturate(1.1); } }
.logo.play .logo-mark { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%;
  animation: tt-grow 1.3s cubic-bezier(.2,.7,.3,1) .5s forwards; }
.logo.play .logo-led { stroke: currentColor; color: #34c26b; opacity: 0; filter: drop-shadow(0 0 2.5px currentColor);
  animation: tt-led-run 1.1s linear .45s 2 both, tt-led-colour 2.2s linear .45s both, tt-led-show 2.2s ease .45s both; }
@keyframes tt-grow { 0% { opacity: 0; transform: scale(.15, .05); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes tt-led-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes tt-led-colour { 0%, 20% { color: #34c26b; } 45%, 60% { color: #f59e0b; } 85%, 100% { color: #ef4444; } }
@keyframes tt-led-show { 0% { opacity: 0; } 10%, 82% { opacity: 1; } 100% { opacity: 0; } }

.login-stage { max-width: 380px; margin: 7vh auto 0; text-align: center; }
.login-stage .login-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.login-stage .login-form { text-align: left; margin-top: 18px; }
.login-stage.intro .login-title { opacity: 0; animation: tt-up .7s ease-out 1.1s forwards; }
.login-stage.intro .login-sub { opacity: 0; animation: tt-up .7s ease-out 2.4s forwards; }
.login-stage.intro .login-form { opacity: 0; animation: tt-up .7s ease-out 2.55s forwards; }
.login-stage.shake .login-form { animation: tt-shake .4s ease-in-out; }
.login-stage.leaving .login-form, .login-stage.leaving .login-sub, .login-stage.leaving .login-title { animation: tt-out .45s ease-in forwards; }

.welcome { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg);
  animation: tt-away .6s ease-in 2s forwards; cursor: pointer; }
.welcome-card { display: grid; justify-items: center; gap: 14px; }
.welcome-hi { font-size: 21px; font-weight: 600; opacity: 0; animation: tt-up .7s ease-out 1s forwards; }
.welcome-trust { opacity: 0; animation: tt-up .7s ease-out 1.2s forwards; }
body.arriving main { animation: tt-up .6s ease-out 2.2s both; }

@keyframes tt-draw { to { stroke-dashoffset: 0; } }
@keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tt-rise { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes tt-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tt-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes tt-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes tt-away { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .logo.play *, .login-stage *, .welcome-card *, body.arriving main {
    animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
  .logo.play .logo-led { display: none; }
  .welcome { display: none; }
}
.import-result { border-left: 5px solid var(--accent); margin-top: 14px; }
.import-result.same { border-left-color: var(--warn); }
.import-result .ir-title { font-size: 18px; font-weight: 650; margin-bottom: 4px; }

/* status light per unit: green = let · orange = agency looking, no new tenant yet · red = no agency yet */
.led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px;
  background: var(--led); box-shadow: 0 0 0 0 var(--led-glow); animation: led-breathe 3.2s ease-in-out infinite; }
h1 .led { width: 13px; height: 13px; vertical-align: 3px; margin-right: 10px; }
.led.green  { --led: #34c26b; --led-glow: rgba(52, 194, 107, .65); }
.led.red    { --led: #ef4444; --led-glow: rgba(239, 68, 68, .7); animation-duration: 2.2s; }
.led.orange { --led: #f59e0b; --led-glow: rgba(245, 158, 11, .7); animation-duration: 3s; }
.led.blue   { --led: #3b82f6; --led-glow: rgba(59, 130, 246, .65); }
@keyframes led-breathe {
  0%, 100% { opacity: .45; box-shadow: 0 0 0 0 var(--led-glow); }
  50%      { opacity: 1;   box-shadow: 0 0 9px 3px var(--led-glow); }
}
.led-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
@media (prefers-reduced-motion: reduce) { .led { animation: none; opacity: 1; } }
.followup-choice { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 4px 0 8px; }
.followup-choice label { margin: 0; color: var(--text); font-size: 14px; }
.followup-choice input { width: 3.5em; padding: 4px 6px; text-align: center; }

/* ---------------------------------------------------------------- Today */
.today-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 6px; }
a.link-card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.link-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.needs { display: grid; gap: 8px; }
a.need { display: grid; grid-template-columns: 12px 1fr 14px; gap: 10px; align-items: center; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
a.need:hover { border-color: var(--accent); }
a.need .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
a.need.overdue .dot { background: #ef4444; }
a.need.due .dot { background: #f59e0b; }
a.need .go { color: var(--muted); font-size: 20px; line-height: 1; }
.unit-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
a.unit-card { display: grid; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); text-decoration: none; border-top: 3px solid var(--led, var(--line)); }
a.unit-card.green { --led: #34c26b; } a.unit-card.orange { --led: #f59e0b; } a.unit-card.red { --led: #ef4444; }
a.unit-card:hover { border-color: var(--accent); }
.uc-head { display: flex; align-items: center; font-size: 16px; }
.uc-foot { display: flex; gap: 8px; margin-top: 2px; }

/* ---------------------------------------------------------------- trail, unit tabs, search */
nav.crumbs { font-size: 13px; color: var(--muted); margin: -6px 0 10px; }
nav.crumbs a { color: var(--muted); }
nav.crumbs a:hover { color: var(--accent); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 16px 0 14px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 12px;
  color: var(--muted); font-size: 14px; cursor: pointer; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel[hidden] { display: none; }
header.top .search { display: flex; }
header.top .search input { width: 170px; padding: 5px 10px; font-size: 13px; border-radius: 999px; border-width: 1px; }
header.top .search input:focus { width: 230px; }
details.menu.gear summary::after { content: ""; }
details.menu.gear summary { font-size: 17px; }
details.menu.gear .menu-panel { left: auto; right: -10px; }
.menu-panel .menu-head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px 2px; }

/* ================================================================ Apple-style look: sidebar, soft cards */
:root { --bg: #f5f5f7; --line: #e5e5ea; --radius: 14px; --side-w: 236px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.05); --shadow-hover: 0 4px 18px rgba(0,0,0,.10);
  --side-bg: color-mix(in srgb, var(--accent) 6%, #ececef); }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161618; --surface: #1f1f22; --line: #2e2e33; --shadow: 0 1px 2px rgba(0,0,0,.4);
    --shadow-hover: 0 4px 18px rgba(0,0,0,.5); --side-bg: color-mix(in srgb, var(--accent) 8%, #1b1b1e); }
}
body { -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.card, .panel, .scroll, .item, .chart-card, a.need, a.unit-card { border-color: transparent; box-shadow: var(--shadow); }
.item.unalloc, .item.review { border-left-width: 4px; }
button, .btn { border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.btn { text-decoration: none !important; }
.btn .ic, button .ic { vertical-align: -4px; margin-right: 6px; }

/* sidebar */
body.with-side main { margin-left: var(--side-w); max-width: none; padding: 26px 36px 60px; }
body.with-side main > * { max-width: 1240px; }
header.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30; overflow-y: auto;
  background: var(--side-bg); border: 0; border-right: 1px solid var(--line); border-top: 0;
  padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 12px; }
header.side .brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; color: var(--text); padding: 2px 8px; }
header.side .brand:hover { text-decoration: none; }
header.side .trust-chip { align-self: stretch; justify-content: flex-start; background: var(--surface); border: 1.5px solid var(--accent); }
header.side .trust-chip select { flex: 1; min-width: 0; }
header.side nav { display: flex; flex-direction: column; gap: 1px; font-size: 14px; flex: 1; }
header.side nav a, header.side details.grp summary, header.side .gear > summary { display: flex; align-items: center; gap: 10px;
  padding: 6px 9px; border-radius: 8px; color: var(--text); text-decoration: none; }
header.side nav a .ic, header.side .gear > summary .ic { color: var(--accent); flex: none; }
header.side nav a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); text-decoration: none; }
header.side nav a.on { background: var(--accent); color: #fff; }
header.side nav a.on .ic { color: #fff; }
@media (prefers-color-scheme: dark) { header.side nav a.on, header.side nav a.on .ic { color: #0f1412; } }
header.side nav a .badge { margin-left: auto; }
header.side nav a.on .badge { background: #fff; color: var(--neg); }
header.side details.grp { margin-top: 10px; }
header.side details.grp summary { list-style: none; cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; }
header.side details.grp summary::-webkit-details-marker { display: none; }
header.side details.grp summary::after { content: "›"; margin-left: auto; font-size: 15px; transform: rotate(90deg); transition: transform .15s; }
header.side details.grp:not([open]) summary::after { transform: none; }
header.side .search { display: flex; align-items: center; gap: 6px; padding: 0 10px; margin-bottom: 8px; border-radius: 9px;
  background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); }
header.side .search input { border: 0; background: transparent; padding: 6px 0; font-size: 13.5px; width: 100%; outline: none; }
header.side .search input:focus { width: 100%; }
header.side .search:focus-within { outline: 2px solid var(--accent); }
header.side .gear { margin-top: auto; padding-top: 12px; }
header.side .gear > summary { list-style: none; cursor: pointer; }
header.side .gear > summary::after { content: ""; }
header.side .gear > summary.on { background: color-mix(in srgb, var(--text) 8%, transparent); }
header.side details.menu .menu-panel { top: auto; bottom: 40px; left: 0; right: auto; min-width: 280px; }
.mobile-bar, .scrim { display: none; }
@media (max-width: 860px) {
  body.with-side main { margin-left: 0; padding: 16px 16px 60px; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; padding: 8px 12px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-bottom: 1px solid var(--line); }
  .mobile-bar .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); }
  .mobile-bar .nav-toggle { color: var(--text); display: inline-flex; }
  header.side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0,0,0,.2); }
  body.nav-open header.side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(0,0,0,.25); }
}
@media print { header.side, .mobile-bar { display: none; } body.with-side main { margin: 0; } }

/* Today: number cards with icons, unit cards (4 per row) grouped by complex */
.today-numbers { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.today-numbers .card { padding: 16px 18px; }
.today-numbers .k { display: flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 550; color: var(--text); }
.today-numbers .k .ic { color: var(--accent); }
.today-numbers .v { font-size: 26px; margin-top: 6px; letter-spacing: -.02em; }
a.link-card:hover, a.unit-card:hover, a.need:hover { box-shadow: var(--shadow-hover); border-color: transparent; transform: translateY(-1px); }
.complex-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 15px; font-weight: 650; }
.complex-head .ic { color: var(--accent); }
.complex-head .small { font-weight: 400; }
.unit-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
a.unit-card { padding: 16px 18px 14px; gap: 8px; min-height: 148px; border-top: 0; position: relative; overflow: hidden;
  transition: box-shadow .15s, transform .15s; grid-template-rows: auto auto 1fr auto; }
a.unit-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--led); }
.uc-head { font-size: 20px; font-weight: 700; letter-spacing: -.01em; gap: 0; }
.uc-trust { font-size: 12px; color: var(--muted); margin-top: -6px; }
.uc-why { font-size: 14px; line-height: 1.4; color: var(--text); }
.uc-foot { font-size: 14px; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 8px; }
.uc-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-left: auto;
  background: color-mix(in srgb, var(--led) 16%, transparent); color: color-mix(in srgb, var(--led) 75%, var(--text)); }
a.need { padding: 13px 16px; grid-template-columns: 22px 1fr 14px; }
a.need .ic { color: var(--muted); }
a.need.overdue .ic { color: #ef4444; } a.need.due .ic { color: #f59e0b; }
@media (max-width: 1150px) { .unit-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .today-numbers, .unit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .today-numbers, .unit-cards { grid-template-columns: 1fr; } }
header.side nav { align-items: stretch; }
header.side details.menu.gear summary { font-size: 14px; }
a.unit-card { display: flex; flex-direction: column; }
a.unit-card .uc-foot { margin-top: auto; flex-wrap: wrap; gap: 4px 8px; }
.uc-pill { white-space: nowrap; }

/* Units: at a glance, then go deeper (trust → complex → unit) */
.today-numbers.glance { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1150px) { .today-numbers.glance { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .today-numbers.glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.drill { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
a.drill-card { display: grid; gap: 10px; padding: 16px 18px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: box-shadow .15s, transform .15s;
  border-left: 4px solid var(--accent); }
a.drill-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.drill-head { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.drill-head .ic { color: var(--accent); }
.drill-head .go { margin-left: auto; color: var(--muted); display: inline-flex; }
.drill-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.drill-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.drill .led { width: 8px; height: 8px; margin-right: 5px; }
/* unit page: everything at a glance */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 14px 0; }
.facts .panel { margin: 0; }
.facts h3 { display: flex; align-items: center; gap: 7px; font-size: 14px; margin: 0 0 10px; }
.facts h3 .ic { color: var(--accent); }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fact > span:first-child { color: var(--muted); }
/* trust tiles carry their own trust's colour (whatever trust is being worked on) */
.drill-card[data-trust-colour="green"]  { --accent: #2f6b4f; }
.drill-card[data-trust-colour="blue"]   { --accent: #2456a6; }
.drill-card[data-trust-colour="purple"] { --accent: #6b3fa0; }
.drill-card[data-trust-colour="orange"] { --accent: #b34d00; }
.drill-card[data-trust-colour="teal"]   { --accent: #0f6b73; }
.drill-card[data-trust-colour="rose"]   { --accent: #a3294f; }
.drill-card[data-trust-colour="olive"]  { --accent: #56651c; }
.drill-card[data-trust-colour="brown"]  { --accent: #7a4a26; }
@media (prefers-color-scheme: dark) {
  .drill-card[data-trust-colour="green"]  { --accent: #7cc5a0; }
  .drill-card[data-trust-colour="blue"]   { --accent: #8fb4ff; }
  .drill-card[data-trust-colour="purple"] { --accent: #c3a1f0; }
  .drill-card[data-trust-colour="orange"] { --accent: #ffad6b; }
  .drill-card[data-trust-colour="teal"]   { --accent: #6fd0d8; }
  .drill-card[data-trust-colour="rose"]   { --accent: #f58fb0; }
  .drill-card[data-trust-colour="olive"]  { --accent: #c2d37e; }
  .drill-card[data-trust-colour="brown"]  { --accent: #e0ad86; }
}
.drill-card .trust-dot { background: var(--accent); }

/* ================================================================ responsive: 13" laptop → 16" → 27" monitor
   Pages use the full width; grids add columns; on big screens everything is drawn a little larger (--z). */
:root { --z: 1; }
@media (min-width: 1680px) { :root { --z: 1.08; } }
@media (min-width: 2200px) { :root { --z: 1.18; } }
body.with-side { padding-left: calc(var(--side-w) * var(--z)); }
body.with-side main { margin-left: 0; zoom: var(--z); padding: 26px clamp(20px, 2.6vw, 48px) 60px; }
body.with-side main > * { max-width: none; }
header.side { zoom: var(--z); }
.unit-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.today-numbers { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.today-numbers.glance { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 1150px) { .unit-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
@media (max-width: 540px) { .unit-cards, .today-numbers, .today-numbers.glance { grid-template-columns: 1fr; } }
/* big screens: Today in two columns – units left, "Needs you" right */
@media (min-width: 2200px) {
  .today-split { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(360px, 1fr); gap: 32px; align-items: start; }
  .today-needs { position: sticky; top: 16px; }
  .today-needs a.need { grid-template-columns: 22px 1fr 14px; }
}
/* charts stretch with the page */
.chart-card .chart-scroll svg.chart { max-width: 100%; height: auto; }   /* shrinks on small screens, never blows up the lettering */
/* forms stay a comfortable reading width */
.form-page, form.panel { max-width: 900px; }
@media (max-width: 860px) { body.with-side { padding-left: 0; } }
.agency-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 8px; }
.agency-actions details.draft { margin-top: 0; }
.agency-actions details[open] { flex-basis: 100%; }
.trustee-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.trustee-head .agency-actions { margin-left: auto; }
.trustee-head .agency-actions:has(details[open]) { flex-basis: 100%; margin-left: 0; }
.attach { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.attach-head { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.attach-head .ic { color: var(--accent); }
.attach-group { display: grid; gap: 2px; }
.tick-line { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; margin: 0; }
.tick-line input { width: auto; }
.ded-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 6px 10px; max-width: 560px; }
/* preview of a created sheet: a real DIN A4 page (210 × 297 mm), margins, printed header and footer */
.a4-stage { margin-top: 16px; }
.a4 { position: relative; width: var(--page-w); min-height: var(--page-h); background: #fff; color: #1c2320;
  box-shadow: 0 2px 14px rgba(0,0,0,.12); border-radius: 2px; box-sizing: border-box;
  padding: var(--m-top) var(--m-right) var(--m-bottom) var(--m-left); }
.a4-head, .a4-foot { position: absolute; left: var(--m-left); right: var(--m-right); display: flex;
  justify-content: space-between; font: 11px/1.2 -apple-system, "Helvetica Neue", Arial, sans-serif; color: #6b6b6b; }
.a4-head { top: var(--m-header); font-size: 12px; }
.a4-head span:first-child { font-weight: 600; }
.a4-foot { bottom: var(--m-footer); font-size: 10px; border-top: 0.75px solid var(--foot, #c9c9c9); padding-top: 5px; }
.a4-foot .a4-name { color: var(--foot); white-space: pre; letter-spacing: .02em; }
.a4-body { width: 100%; overflow: hidden; }
.a4-break { position: absolute; left: 0; right: 0; border-top: 2px dashed #c9c9c9; font-size: 10px; color: #9a9a9a;
  text-align: right; padding: 2px 8px 0 0; }
table.sheet { border-collapse: collapse; table-layout: fixed; font: 14px/1.35 -apple-system, "Helvetica Neue", Arial, sans-serif; color: #1c2320; }
table.sheet td { border: 0; padding: 3px 8px; white-space: nowrap; vertical-align: middle; background: transparent;
  overflow: visible; }                                   /* long text runs over empty cells, as in Excel */
table.sheet td[style*="background"] { color: #fff; }
/* preview window over the page (Esc or Close returns to the page, nothing is lost) */
dialog.preview-dialog { width: min(980px, 94vw); height: 92vh; padding: 0; border: 0; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); background: var(--surface); color: var(--text); overflow: hidden; }
dialog.preview-dialog::backdrop { background: rgba(0,0,0,.45); }
.preview-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
dialog.preview-dialog iframe { width: 100%; height: calc(92vh - 58px); border: 0; background: #e9eae8; }

/* ---------------------------------------------------------------- breathing status lights: vertical bar
   A straight light on the left edge of a row or box (.lit gives it room); the round .led stays where there is
   no room (inside text). On Today the coloured stripe on top of each card breathes. */
.led-bar.green, a.unit-card.green   { --led: #34c26b; --led-glow: rgba(52, 194, 107, .65); }
.led-bar.orange, a.unit-card.orange { --led: #f59e0b; --led-glow: rgba(245, 158, 11, .7); }
.led-bar.red, a.unit-card.red       { --led: #ef4444; --led-glow: rgba(239, 68, 68, .7); }
.led-bar.blue, a.unit-card.blue     { --led: #3b82f6; --led-glow: rgba(59, 130, 246, .65); }
.led-bar { position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 3px; background: var(--led);
  box-shadow: 0 0 0 0 var(--led-glow); animation: led-breathe 3.2s ease-in-out infinite; }
.led-bar.red { animation-duration: 2.2s; } .led-bar.orange { animation-duration: 3s; }
.lit { position: relative; }
td.lit { padding-left: 16px; }
td.lit .led-bar { left: 4px; top: 7px; bottom: 7px; }
.lit-head { padding-left: 18px; }
.lit-head .led-bar { top: 4px; bottom: 4px; width: 5px; }
.panel.lit, .item.lit { padding-left: 22px; }
.panel.lit .led-bar, .item.lit .led-bar { left: 8px; top: 12px; bottom: 12px; }
.led-bar.inline { position: relative; display: inline-block; top: auto; bottom: auto; left: auto; width: 4px; height: 13px;
  vertical-align: -2px; margin-right: 7px; }
a.unit-card::before { height: 5px; animation: led-breathe 3.2s ease-in-out infinite; box-shadow: 0 0 0 0 var(--led-glow); }
a.unit-card.red::before { animation-duration: 2.2s; } a.unit-card.orange::before { animation-duration: 3s; }
@media (prefers-reduced-motion: reduce) { .led-bar, a.unit-card::before { animation: none; opacity: 1; } }
/* tenant profiles (unit → Tenants) */
.tenant-file.current { border-left: 4px solid var(--accent); }
.refund-line { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); display: grid; gap: 4px; }
.refund-line.paid { background: var(--accent-soft); }
.paid-box { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
/* the reminder you came from (Today → "Needs you") is highlighted */
.item:target { outline: 2px solid var(--accent); outline-offset: 2px; scroll-margin-top: 24px; }
tr:target td { background: var(--accent-soft); }
tr:target { scroll-margin-top: 24px; }
form.inline-form { display: inline; margin: 0; }
button.del { color: var(--muted); }
button.del:hover { color: var(--neg); }

/* Gmail conversations */
.subtabs { display:flex; gap:6px; margin:4px 0 12px; }
.subtabs a { padding:6px 12px; border-radius:999px; text-decoration:none; color:inherit; background:var(--card-soft, rgba(127,127,127,.08)); }
.subtabs a.on { background:var(--accent); color:#fff; }
.thread .msg { border-left:3px solid var(--line, rgba(127,127,127,.25)); padding:6px 0 6px 12px; margin:10px 0; }
.thread .msg.out { border-left-color:var(--accent); }
.msg-text { white-space:pre-wrap; font:14px/1.5 var(--font); margin:6px 0; overflow-wrap:anywhere; }
.sort-box { border-top:1px solid var(--line, rgba(127,127,127,.2)); padding-top:10px; margin-top:8px; }
.unit-ticks { display:flex; flex-wrap:wrap; gap:6px 14px; margin:6px 0 10px; }
.chip.on .badge { background:#fff; color:var(--accent); }
/* new e-mails under "E-mails" in the sidebar, each in its trust's colour */
header.side .new-mail { display:flex; flex-direction:column; gap:3px; margin:2px 0 6px 18px; }
header.side .new-mail a { display:grid; gap:0; padding:5px 8px 5px 10px; border-left:3px solid var(--trust); border-radius:6px;
  background:color-mix(in srgb, var(--trust) 9%, transparent); font-size:12.5px; line-height:1.3; color:var(--text); }
header.side .new-mail a b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
header.side .new-mail a span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
header.side .new-mail a small { color:var(--trust); font-size:11px; }
@media (prefers-color-scheme: dark) { header.side .new-mail a small { color:color-mix(in srgb, var(--trust) 55%, white); } }
header.side .new-mail a.more { border-left-color:transparent; background:none; color:var(--muted); }
.tag.new { background:var(--accent); color:#fff; }
.thread.is-new > summary { font-weight:600; }
.thread-title { border-left:5px solid var(--trust); padding-left:12px; }
.agency-list { display:inline-flex; flex-wrap:wrap; gap:4px; }
/* Today → Needs you: an item opens in place with its own actions */
details.need { background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow); }
details.need > summary { display:grid; grid-template-columns:22px 1fr 14px; gap:10px; align-items:center; padding:13px 16px;
  cursor:pointer; list-style:none; }
details.need > summary::-webkit-details-marker { display:none; }
details.need > summary .ic { color:var(--muted); }
details.need.overdue > summary .ic { color:#ef4444; } details.need.due > summary .ic { color:#f59e0b; }
details.need > summary .go { color:var(--muted); font-size:20px; line-height:1; transition:transform .15s; }
details.need[open] > summary .go { transform:rotate(90deg); }
details.need:hover { box-shadow:var(--shadow-hover); }
details.need .need-actions { padding:0 16px 14px 48px; }
@media (max-width: 700px) { details.need .need-actions { padding-left:16px; } }
/* a unit just added, no lease yet: a calm grey light, no breathing */
.led.grey, .led-bar.grey, a.unit-card.grey { --led: #9aa0a6; --led-glow: transparent; animation: none; }
a.unit-card.grey::before { animation: none; }

/* ---------- rent check ---------- */
.rent-check { position: relative; }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rc-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.rc-head h3 .ic { color: var(--accent); }
/* while researching: a green LED band runs around the card */
@property --rc-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.rent-check.running::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 3px;
  background: conic-gradient(from var(--rc-angle), transparent 0deg 190deg, rgba(52,194,107,.2) 240deg,
              rgba(52,194,107,.7) 300deg, #34c26b 335deg, #d4fbe3 352deg, #34c26b 358deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 8px rgba(52,194,107,.95)); animation: rc-lap 2.4s linear infinite; pointer-events: none; }
.rent-check.running { box-shadow: 0 0 22px -6px rgba(52,194,107,.55); }
@keyframes rc-lap { to { --rc-angle: 360deg; } }
.rc-running { display: grid; gap: 4px; padding: 14px 0 6px; }
.rc-running b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%;
  background: #34c26b; box-shadow: 0 0 8px 2px rgba(52,194,107,.7); animation: led-breathe 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .rent-check.running::before { animation: none; background: #34c26b; } }

.rc-verdict { display: inline-block; margin: 10px 0 4px; padding: 4px 12px; border-radius: 999px; font-weight: 650; font-size: 14px;
  background: var(--rc-soft, rgba(127,127,127,.12)); color: var(--rc-ink, var(--text)); }
.rc-verdict.within { --rc-soft: rgba(52,194,107,.15); --rc-ink: #1f8a4c; }
.rc-verdict.above, .rc-verdict.below { --rc-soft: rgba(239,68,68,.13); --rc-ink: #c62828; }
@media (prefers-color-scheme: dark) { .rc-verdict.within { --rc-ink: #5fdc92; } .rc-verdict.above, .rc-verdict.below { --rc-ink: #ff8a80; } }
.rc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.rc-tile { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--text) 5%, transparent); display: grid; gap: 2px; }
.rc-tile span { font-size: 12px; color: var(--muted); } .rc-tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rc-bar { position: relative; height: 22px; margin: 14px 4px 4px; }
.rc-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: color-mix(in srgb, var(--text) 12%, transparent); border-radius: 2px; }
.rc-range { position: absolute; top: 7px; height: 8px; border-radius: 4px; background: rgba(52,194,107,.45); }
.rc-dot { position: absolute; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--muted); opacity: .7; }
.rc-mark.you { position: absolute; top: 1px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.rc-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; }
.rc-legend i { display: inline-block; vertical-align: middle; margin-right: 4px; }
.rc-range-key { width: 16px; height: 6px; border-radius: 3px; background: rgba(52,194,107,.45); }
.rc-dot-key { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.rc-you-key { width: 3px; height: 12px; border-radius: 2px; background: var(--accent); }
.rc-points { display: grid; gap: 8px; margin: 10px 0; }
.rc-point { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 9px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--pt, var(--muted)) 9%, transparent); }
.rc-point .ic { color: var(--pt, var(--muted)); margin-top: 1px; }
.rc-point.ok { --pt: #22a35a; } .rc-point.fix { --pt: #e53935; } .rc-point.note { --pt: #8a8f98; }
.rc-why { margin-top: 8px; } .rc-why > summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.rc-why p { margin: 8px 0 0; line-height: 1.55; }
.rc-table td { vertical-align: top; } .rc-foot { margin: 10px 0 0; }
header.side .grp-solo { margin-top: 10px; }
/* two related pages under one sidebar entry (Bills · Invoices) */
.seg { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 14px; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.seg a { padding: 5px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.seg a.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 12.5px;
  font-weight: 550; text-decoration: none; white-space: nowrap; vertical-align: 1px;
  background: color-mix(in srgb, var(--pc, var(--muted)) 13%, transparent); color: var(--pc, var(--muted)); }
.rc-pill.within { --pc: #22a35a; } .rc-pill.above, .rc-pill.below { --pc: #e53935; } .rc-pill.unsure, .rc-pill.old { --pc: #8a8f98; }
@media (prefers-color-scheme: dark) { .rc-pill.within { --pc: #5fdc92; } .rc-pill.above, .rc-pill.below { --pc: #ff8a80; } }
/* unit page → Letting: a calm summary first, the form only on request */
.let-sum .fact b { font-weight: 600; } .let-sum .notes-fold { margin-top: 8px; }
.let-sum .notes-fold p { white-space: pre-line; margin: 6px 0 0; }
header.side .menu-panel a.expert { color: var(--muted); font-size: 12.5px; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); margin-top: 4px; }
.not-set-up { margin: 14px 0 6px; } .not-set-up > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.rent-mail { margin: 12px 0 4px; padding: 0; background: none; box-shadow: none; border: 0; }
.rent-changes { border-left: 3px solid #e53935; } .rent-changes h3 { display: flex; align-items: center; gap: 8px; } .rent-changes h3 .ic { color: #e53935; }
a.tag.mail-tag { text-decoration: none; cursor: pointer; } a.tag.mail-tag:hover { background: var(--accent); color: var(--surface); }
/* trustees e-mail: who gets it */
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.pick { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 10px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick span { display: grid; line-height: 1.25; } .pick small { color: var(--muted); font-size: 12px; }
.pick-to { margin-top: 6px; }
.pick input[type=checkbox] { width: auto; flex: none; margin: 0; }
.pick span { text-align: left; }
/* applicant: who is who */
.people-form .person-row { gap: 8px; margin: 6px 0; flex-wrap: wrap; } .people-form .person-row input { flex: 1 1 200px; width: auto; }
.people-form .person-row select { width: auto; } .people-form .doc-list li select { width: auto; max-width: 200px; }
.people-review td { vertical-align: top; }
/* an e-mail's attachments */
.att-card { display: grid; gap: 10px; }
.att-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.att-kind { font-size: 17px; font-weight: 650; }
.att-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.att-bills td { padding: 4px 6px; vertical-align: middle; } .att-bills select, .att-bills input[type=month] { width: auto; }
.att-more > summary { cursor: pointer; color: var(--accent); }
.att-sub { margin: 10px 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.att-sub .row, .att-action .row { gap: 8px; flex-wrap: wrap; align-items: center; } .att-sub select, .att-action select { width: auto; }
.att-done { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, #22a35a 10%, transparent); } .att-done .ic { color: #22a35a; }
@media (max-width: 700px) { .att-done { grid-template-columns: 24px 1fr; } .att-done form { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- motion: subtle, quick, never in the way
   Page changes crossfade (the sidebar stays put), folded sections slide open, cards and buttons respond to the
   pointer, messages and tab panels ease in. All of it is switched off with "Reduce motion" in macOS. */
@view-transition { navigation: auto; }
header.side { view-transition-name: side; }
::view-transition-old(root) { animation: .16s ease-in both tt-vt-out; }
::view-transition-new(root) { animation: .26s cubic-bezier(.2,.7,.3,1) both tt-vt-in; }
@keyframes tt-vt-out { to { opacity: 0; } }
@keyframes tt-vt-in { from { opacity: 0; transform: translateY(6px); } }

:root { interpolate-size: allow-keywords; }
details:not(.menu)::details-content { height: 0; overflow: clip; opacity: 0;
  transition: height .24s cubic-bezier(.2,.7,.3,1), opacity .2s ease, content-visibility .24s allow-discrete; }
details:not(.menu)[open]::details-content { height: auto; opacity: 1; }
details.menu .menu-panel { animation: tt-pop .16s ease-out; transform-origin: top left; }
@keyframes tt-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.panel, .tag, header.side nav a, header.side details.grp summary { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
button, .btn { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .12s, opacity .15s; }
button:not(:disabled):active, .btn:active { transform: scale(.97); }
button:not(:disabled):hover, .btn:hover { box-shadow: 0 1px 4px rgba(0,0,0,.08); }
a.unit-card:hover, a.link-card:hover { transform: translateY(-2px); }
tbody tr { transition: background-color .15s; }
main tbody tr:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.msg { animation: tt-up .35s cubic-bezier(.2,.7,.3,1) both; }
.tab-panel:not([hidden]) { animation: tt-tab .22s ease-out; }
@keyframes tt-tab { from { opacity: 0; transform: translateY(4px); } }
.tabs button { transition: color .15s, border-color .2s; }
dialog.preview-dialog[open] { animation: tt-pop .2s ease-out; transform-origin: center; }
dialog.preview-dialog[open]::backdrop { animation: tt-fade .2s ease-out; }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  details:not(.menu)::details-content { transition: none; }
  .msg, .tab-panel:not([hidden]), details.menu .menu-panel, dialog.preview-dialog[open], dialog.preview-dialog[open]::backdrop { animation: none; }
  button:active, .btn:active, a.unit-card:hover, a.link-card:hover { transform: none; }
}
.a4 tbody tr:hover { background: none; }

/* Today: units that need nothing are one line per complex; estimated leases are marked */
.tag.est { background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.uc-head .tag.est { margin-left: 6px; font-size: 11px; }
.fine-lines { margin: 10px 0 4px; }
.fine-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); font-size: 14px; }
.fine-line:last-child { border-bottom: 0; }
.confirmed { margin: 16px 0 6px; }
.confirmed progress { width: 160px; height: 8px; vertical-align: middle; margin-left: 6px; accent-color: var(--accent); }

/* Units → Fill in details: one row per unit */
.unit-details td { padding: 4px 4px; vertical-align: middle; }
.unit-details input { width: 100%; min-width: 64px; padding: 5px 6px; font-size: 13px; }
.unit-details td:nth-child(7) input, .unit-details td:nth-child(8) input, .unit-details td:nth-child(10) input, .unit-details td:nth-child(12) input, .unit-details td:nth-child(13) input { min-width: 125px; }
.unit-details input.missing { background: var(--neg-soft); }
.unit-details input.bad { outline: 2px solid var(--neg); }

/* search box over long lists (Units, Letting) */
.search-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.search-row input[type=search] { width: min(360px, 100%); padding: 7px 10px; border-radius: 9px; }

/* what a unit is: a small line drawing beside its name */
.unit-kind { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--muted); }
h1 .unit-kind { vertical-align: -2px; margin-right: 8px; }
.uc-head .unit-kind { margin-right: 6px; }

/* ---------------------------------------------------------------- E-mails: Your turn · Waiting · Done (02.11.2026) */
.inbox { color-scheme: light dark; --ib-t: 220ms; --ib-ease: cubic-bezier(.2,.8,.2,1); display: grid; grid-template-columns: minmax(340px, 420px) 1fr;
  height: calc(100vh - 110px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; }
.ib-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.ib-top { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.ib-trust { font-weight: 650; font-size: 15px; margin-top: 2px; transition: color 400ms var(--ib-ease); }
.ib-search { width: 100%; margin-top: 10px; }
.ib-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 10px; padding: 3px; margin-top: 10px; position: relative; }
.ib-seg button { border: 0; background: transparent; padding: 7px 4px; border-radius: 8px; cursor: pointer; position: relative; z-index: 1;
  font-weight: 550; color: var(--muted); transition: color var(--ib-t); }
.ib-seg button.on { color: var(--text); }
.ib-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); background: var(--surface); border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: transform 260ms var(--ib-ease); }
.inbox .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; background: var(--line); color: var(--text); margin-left: 3px; }
.inbox .count.turn { background: var(--accent); color: #fff; }
.inbox .count.bump { animation: ib-bump 420ms var(--ib-ease); }
@keyframes ib-bump { 40% { transform: scale(1.35); } }
.ib-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ib-chips .chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 13px; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center; color: var(--text); }
.ib-chips .chip.on { border-color: var(--text); }
.inbox .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ib-sync { margin-top: 8px; }
.ib-rows { overflow: auto; flex: 1; padding-bottom: 40px; }
.ib-row { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 12px 10px 16px; cursor: pointer;
  border-bottom: 1px solid var(--line); max-height: 170px; overflow: hidden;
  transition: background var(--ib-t), opacity 300ms, transform 300ms var(--ib-ease), max-height 300ms var(--ib-ease), padding 300ms var(--ib-ease); }
.ib-row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--stripe); }
.ib-row:hover, .ib-row:focus-visible { background: var(--bg); outline: none; }
.ib-row.sel { background: color-mix(in srgb, var(--stripe) 10%, var(--surface)); }
.ib-row[hidden], .ib-empty[hidden] { display: none; }
.ib-row.in { animation: ib-in 480ms var(--ib-ease) both; }
@keyframes ib-in { from { opacity: 0; transform: translateY(10px); } }
.ib-row.going { opacity: 0; transform: translateX(-28px); max-height: 0; padding-top: 0; padding-bottom: 0; }
.ib-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 650; background: var(--stripe); }
.ib-r1 { display: flex; justify-content: space-between; gap: 8px; }
.ib-who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row.unread .ib-who::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; }
.ib-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ib-subj { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-prev { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-r3 { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; }
:is(.inbox, .unit-mails) .pill { font-size: 11.5px; border-radius: 999px; padding: 1px 8px; background: var(--bg); color: var(--muted); }
:is(.inbox, .unit-mails) .pill.turn { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
:is(.inbox, .unit-mails) .pill.due { background: color-mix(in srgb, #d97706 18%, transparent); color: #b45309; font-weight: 600; }
:is(.inbox, .unit-mails) .pill.done { background: color-mix(in srgb, #2f8a57 14%, transparent); color: #2f8a57; }
.ib-qa { position: absolute; right: 8px; top: 8px; display: flex; gap: 2px; background: var(--surface); border-radius: 9px; padding: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12); opacity: 0; transform: translateX(6px); transition: opacity var(--ib-t), transform var(--ib-t) var(--ib-ease); }
.ib-row:hover .ib-qa, .ib-row:focus-within .ib-qa { opacity: 1; transform: none; }
.ib-qa button { border: 0; background: transparent; width: 30px; height: 28px; border-radius: 7px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.ib-qa button:hover { background: var(--bg); color: var(--text); }
.ib-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.ib-pane { position: relative; overflow: hidden; min-height: 0; display: flex; flex-direction: column; }
.ib-pane-in { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px 0; transition: opacity 180ms, transform 180ms var(--ib-ease); }
.ib-pane-in.swap { opacity: 0; transform: translateX(10px); }
.ib-pane-in .thread.panel { border: 0; padding: 0; margin: 0; box-shadow: none; }
.ib-pane-in .thread > summary { display: none; }
.pane-head h2 { margin: 6px 0 2px; }
.pane-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.pane-back { display: none; }
.ib-hint { margin-top: 30vh; text-align: center; }
.ib-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 120px); background: #1c2320; color: #fff; border-radius: 12px;
  padding: 10px 14px; display: flex; gap: 14px; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); transition: transform 280ms cubic-bezier(.2,.8,.2,1); z-index: 50; }
.ib-toast.on { transform: translate(-50%, 0); }
.ib-toast button { background: transparent; border: 0; color: #9cc0ff; font-weight: 650; cursor: pointer; }
@media (max-width: 860px) {
  .inbox { grid-template-columns: 1fr; position: relative; height: calc(100vh - 90px); }
  .ib-list, .ib-pane { grid-column: 1; grid-row: 1; }
  .ib-pane { background: var(--surface); transform: translateX(100%); transition: transform 300ms cubic-bezier(.2,.8,.2,1); }
  .inbox.reading .ib-pane { transform: none; }
  .pane-back { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .inbox *, .ib-toast { animation: none !important; transition: none !important; } }

/* E-mails phase 2: a conversation as a chat, the reply at the bottom, the preview in a sheet */
.chat { padding: 4px 0 10px; }
/* Apple Messages look (trustee 11.11.2026): no borders, round bubbles, theirs grey, yours in the trust's colour */
.chat-day { text-align: center; font-size: 11.5px; color: var(--muted); margin: 18px 0 8px; }
.chat-day b { font-weight: 600; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(540px, 72%); margin: 2px auto 2px 0; }
.chat-msg + .chat-day { margin-top: 22px; }
.chat-msg.me { margin: 2px 0 2px auto; align-items: flex-end; }
.chat-from { font-size: 11.5px; color: var(--muted); margin: 10px 12px 3px; }
.chat-fwd { opacity: 0; transition: opacity .15s; margin-left: 4px; }
.chat-msg:hover .chat-fwd { opacity: 1; }
.chat .bubble { --bub: #e9e9eb; background: var(--bub); color: #1c1c1e; border: 0; border-radius: 18px; padding: 8px 13px;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.38; position: relative; }
.chat-msg .bubble { border-bottom-left-radius: 6px; }
.chat-msg.me .bubble { --bub: color-mix(in srgb, var(--stripe, var(--accent)) 20%, var(--surface)); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--stripe, var(--accent)) 40%, transparent); border-radius: 18px; border-bottom-right-radius: 6px; }
.chat-msg.me .bubble a { color: color-mix(in srgb, var(--stripe, var(--accent)) 75%, var(--text)); }
.chat-msg.me .bubble .folded { border-color: color-mix(in srgb, var(--stripe, var(--accent)) 45%, transparent); }
.chat-pending { color: var(--stripe, var(--accent)); }
.chat-msg.just-sent { animation: chat-send 700ms cubic-bezier(.2, .9, .25, 1.08) both; transform-origin: bottom right; }
@keyframes chat-send { from { transform: translateY(var(--from, 160px)) scale(.9); opacity: 0; }
  35% { opacity: 1; } to { transform: none; opacity: 1; } }
.chat .bubble.clamped { max-height: 230px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.chat-more { border: 0; background: transparent; color: var(--accent); font-size: 12.5px; padding: 3px 12px; cursor: pointer; }
@media (prefers-color-scheme: dark) { .chat .bubble { --bub: #3a3a3c; color: #f2f2f7; } .chat-msg.me .bubble { --bub: color-mix(in srgb, var(--stripe, var(--accent)) 30%, var(--surface)); color: #f2f2f7; } }
.chat .fold { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.chat .fold summary { cursor: pointer; list-style: none; text-decoration: underline dotted; }
.chat .fold summary::-webkit-details-marker { display: none; }
.chat .folded { margin-top: 6px; border-left: 3px solid rgba(0,0,0,.15); padding-left: 10px; white-space: pre-wrap; animation: ib-in 220ms both; }
.chat .att-card { margin-top: 4px; }
.pane-head { position: sticky; top: -16px; z-index: 3; background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); margin: -16px -20px 10px; padding: 12px 20px 10px; }
.pane-head h2 { font-size: 17px; }
.pane-files summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-block; margin-top: 4px; }
.pane-files summary::-webkit-details-marker { display: none; }
.pane-files-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-height: 120px; overflow: auto; }
.pane-files-list a { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--surface); }
.chat-reply textarea { border-radius: 20px !important; padding: 9px 14px; }
.chat-att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.att-chip { font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; background: var(--surface); }
.chat-reply { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 0 12px; margin-top: 10px; }
.chat-reply textarea { width: 100%; min-height: 42px; resize: none; border-radius: 12px; transition: height 220ms cubic-bezier(.2,.8,.2,1); }
.chat-reply.open textarea { min-height: 150px; }
.chat-reply-more { display: none; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.chat-reply.open .chat-reply-more { display: flex; animation: ib-in 260ms both; }
.chat-reply-more input[name=to] { min-width: 260px; }
.chat-sort { margin-top: 14px; }
.chat-sort > summary { cursor: pointer; color: var(--muted); }
.ib-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity 320ms; z-index: 4; }
.ib-scrim.on { opacity: 1; pointer-events: auto; }
.ib-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 86%; background: var(--surface); border-radius: 18px 18px 0 0; z-index: 5;
  box-shadow: 0 -10px 30px rgba(0,0,0,.18); transform: translateY(105%); transition: transform 340ms cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.ib-sheet.up { transform: none; }
.ib-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 4px; flex: none; }
.ib-sheet iframe { border: 0; width: 100%; flex: 1; background: var(--surface); }
body.embedded { padding: 6px 18px 18px; background: var(--surface); }
body.embedded h1 { font-size: 20px; margin: 4px 0 10px; }

/* E-mails phase 3: attachments as cards, search across every e-mail */
.att-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 8px 10px; margin-top: 6px; max-width: 460px; animation: ib-in 300ms both; }
.att-kind { flex: none; width: 38px; height: 44px; border-radius: 7px; background: var(--bg); display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.att-name { color: inherit; text-decoration: none; flex: 1 1 140px; min-width: 0; font-size: 13.5px; font-weight: 550; overflow-wrap: anywhere; }
.att-card .btn { flex: none; }
.att-done { flex: none; font-size: 12.5px; color: #2f8a57; background: color-mix(in srgb, #2f8a57 14%, transparent); border-radius: 999px; padding: 2px 9px; }
.att-card.done .att-kind { color: #2f8a57; }
.ib-seg.searching { opacity: .45; pointer-events: none; transition: opacity 220ms; }
.ib-found { font-size: 12.5px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.unit-mails { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.unit-mails a.ib-row { color: var(--text); text-decoration: none; }
.unit-mails a.ib-row:last-child { border-bottom: 0; }

/* Things & Calendar (02.11.2026) */
.things-btn { text-decoration: none; }
.things-btn.added { color: #2f8a57; border-color: color-mix(in srgb, #2f8a57 40%, var(--line)); }
.things-btn.added .things-tick { animation: ib-bump 380ms cubic-bezier(.2,.8,.2,1); display: inline-block; }
.pane-tools { gap: 6px; margin-top: 8px; align-items: flex-start; }
.cal-box[open] > .cal-form { margin-top: 6px; max-width: 520px; }
a.att-name:hover { text-decoration: underline; color: var(--accent); }
.chat .att-card { flex-wrap: wrap; }
.pane-files { margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }
.pane-files a { white-space: normal; }
.att-done { white-space: nowrap; }
.chat-use { gap: 6px; margin-top: 6px; }
.chat-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.chat-link.solo { display: inline-block; text-decoration: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 3px 12px; font-weight: 550; margin: 2px 0; }
.chat-link.solo::after { content: " ↗"; }
.chat-link.solo:hover { border-color: var(--accent); }
.compose { display: grid; gap: 10px; }
.compose label { display: grid; gap: 3px; }
.compose input:not([type=checkbox]):not([type=file]), .compose select, .compose textarea { width: 100%; box-sizing: border-box; }
.compose textarea { min-height: 160px; resize: vertical; font: inherit; }
.compose-files { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: grid; gap: 4px; }
.compose-files label, .compose-units label { display: flex; gap: 6px; align-items: center; }
.compose-units .unit-ticks label[hidden] { display: none; }
.chat-fwd { color: var(--muted); text-decoration: none; }
.chat-fwd:hover { color: var(--accent); }
.ib-chips .chip-n { margin-left: 5px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.ib-chips .chip.has-turn .chip-n { color: #fff; background: #c0563b; border-radius: 999px; padding: 0 6px; }
.ib-chips .chip-n[hidden] { display: none; }
.ib-empty .btn { margin-top: 10px; }
/* E-mails page, less on the page (trustee 03.11.2026): one header line, extras behind ⋯, chips in one row */
.ib-head { display: flex; align-items: baseline; gap: 8px; }
.ib-head h1 { margin: 0; font-size: 22px; }
.ib-head .ib-trust { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-more { position: relative; }
.ib-more > summary { list-style: none; cursor: pointer; padding: 3px 9px; }
.ib-more > summary::-webkit-details-marker { display: none; }
.ib-more-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 250px; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ib-more-panel > a { padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.ib-more-panel > a:hover { background: var(--bg); }
.ib-more-panel .ib-sync { margin: 4px 10px 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.ib-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ib-chips::-webkit-scrollbar { display: none; }
.ib-chips .chip { flex: none; white-space: nowrap; }
.ib-found:empty { display: none; }
.ib-r3 { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
/* trust dropdown + search magnifier (trustee 03.11.2026) */
.ib-head { align-items: center; }
.ib-gap { flex: 1; }
.ib-pick { position: relative; min-width: 0; }
.ib-pick > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; max-width: 190px; }
.ib-pick > summary::-webkit-details-marker { display: none; }
.ib-pick > summary:hover { background: var(--bg); }
.ib-pick > summary svg { flex: none; opacity: .6; transform: rotate(90deg); }
.ib-pick[open] > summary svg { transform: rotate(-90deg); }
.ib-pick .ib-trust { flex: 1 1 auto; font-size: 14px; }
.ib-pick-n { flex: none; background: #c0563b; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 650; padding: 0 6px; }
.ib-pick-n[hidden] { display: none; }
.ib-pick .ib-more-panel { left: 0; right: auto; min-width: 240px; }
.ib-pick .ib-chips { display: grid; gap: 2px; margin: 0; overflow: visible; flex-wrap: initial; padding: 6px; }
.ib-pick .ib-chips .chip { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; border-radius: 8px;
  background: transparent; padding: 7px 10px; font-size: 13.5px; color: var(--text); }
.ib-pick .ib-chips .chip:hover { background: var(--bg); }
.ib-pick .ib-chips .chip.on { background: var(--bg); font-weight: 650; }
.ib-pick .chip-name { flex: 1; }
.ib-pick .ib-chips .chip-n { margin: 0; }
.ib-icon { padding: 4px 8px; display: inline-flex; align-items: center; }
.ib-searchbar { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.ib-searchbar[hidden] { display: none; }
.ib-searchbar .ib-search { margin-top: 0; flex: 1; }
.ib-head { gap: 6px; }
.ib-head h1 { white-space: nowrap; font-size: 20px; }
.ib-head .btn { white-space: nowrap; flex: none; }
.ib-pick { flex: 1 1 auto; }
.ib-pick > summary { max-width: none; }
.ib-pick .ib-trust { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.inbox { grid-template-columns: minmax(360px, 470px) 1fr; }
.ib-top { position: relative; z-index: 5; }
/* arrears against a guessed lease: greyed, never red (trustee 03.11.2026) */
.estimated-amount, .estimated-amount * { color: var(--muted) !important; font-style: italic; }
.page-switch { margin: 0 0 14px; }
.hb-val.est { color: var(--muted); font-style: italic; }
/* all trusts: one section per trust (trustee 04.11.2026) */
.trust-section { border-left: 3px solid var(--stripe); padding-left: 14px; margin: 18px 0 26px; }
.trust-section > h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.trust-section > h2 a { color: inherit; text-decoration: none; }
.question { margin-bottom: 10px; }
.question.answered { opacity: .8; }
.question-form { display: grid; gap: 8px; max-width: 640px; margin-top: 10px; }
.question-form label { display: grid; gap: 3px; }
/* applicant page (trustee 04.11.2026): result first, steps, then documents */
.ap-head h1 { margin-bottom: 4px; }
.ap-meta { margin-bottom: 4px; }
.ap-result { margin: 16px 0; max-width: 980px; }
.ap-result-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag.big { font-size: 15px; padding: 4px 12px; }
.ap-running { margin-top: 10px; display: grid; gap: 2px; }
.ap-running[hidden] { display: none; }
.ap-result .review-head { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.crit { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.crit li { display: flex; gap: 10px; align-items: baseline; }
.crit-mark { width: 16px; flex: none; text-align: center; }
.ap-fold { margin-top: 6px; }
.ap-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; align-items: end; }
.ap-facts label { display: grid; gap: 3px; }
.ap-foot { margin: 12px 0 0; }
.ap-step { max-width: 980px; margin: 12px 0; }
.ap-step > summary { cursor: pointer; }
.ap-step[open] > summary { margin-bottom: 10px; }
.tick-line { display: flex; gap: 8px; align-items: baseline; color: var(--text); margin: 4px 0; }
.tick-line input { width: auto; }
.person-row { display: grid; grid-template-columns: 80px minmax(160px, 1fr) minmax(160px, 220px) auto; gap: 8px; align-items: center; margin: 6px 0; }
.person-no { font-size: 12.5px; font-weight: 600; }
.people-form textarea { width: 100%; }
.people-form label { display: grid; gap: 4px; margin-top: 10px; }
.ap-add { gap: 8px; margin-top: 8px; align-items: center; }

/* Phone (trustee 05.11.2026): a bottom bar with Today · Units · E-mails · Questions · More (= the full menu);
   desk jobs (import, upload, calendar) stay on the Mac; Today shows To do first and the numbers as small tiles. */
.tabbar { display: none; }
@media (max-width: 700px) {
  .mobile-bar .nav-toggle { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 28;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
    color: var(--muted); font-size: 10.5px; font-weight: 550; text-decoration: none; background: none; border: 0; }
  .tabbar .on { color: var(--accent); }
  .tabbar .dot { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: #e5484d; color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; }
  .tabbar .dot.quiet { background: var(--muted); }
  body.with-side main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mobile-bar { padding-top: calc(8px + env(safe-area-inset-top)); }
  .desk-only { display: none !important; }
  .today-split { display: flex; flex-direction: column; gap: 8px; }
  .today-needs { order: -1; position: static; }
  .today-numbers, .today-numbers.glance { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .today-numbers .card { padding: 12px 14px; }
  .today-numbers .v { font-size: 22px; }
  .today-numbers .small { font-size: 11.5px; line-height: 1.35; }
  h1 { font-size: 26px; }
}
@media (max-width: 700px) {
  .crumbs { display: none; }
  /* E-mails like the Mail app: the list fills the screen, a conversation slides over it with ‹ Back */
  .inbox { margin: -16px -16px 0; border: 0; border-radius: 0; min-height: 0;
    height: calc(100dvh - 48px - 62px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  body.with-side main:has(.inbox) { padding-bottom: 0; }
  .ib-top { padding: 10px 12px 8px; }
  .ib-head { gap: 6px; }
  .ib-head h1 { font-size: 20px; }
  .ib-pick { flex: 1; }
  .ib-pick > summary { max-width: none; padding: 4px 4px; }
  .ib-head .btn.small { padding: 5px 9px; flex: none; }
  .ib-row { padding: 12px 12px 12px 16px; grid-template-columns: 36px minmax(0, 1fr); }
  .ib-r3 { flex-wrap: nowrap; overflow: hidden; }
  .ib-qa { display: none; }
  .ib-pane { z-index: 6; }
  .ib-pane-in { padding: 10px 14px 0; }
  .chat-msg { max-width: 92%; }
}
.phone-only { display: none; }
@media (max-width: 700px) {
  .phone-only { display: flex; }
  .phone-find { align-items: center; gap: 8px; padding: 0 12px; margin: 0 0 12px; border-radius: 11px; color: var(--muted);
    background: color-mix(in srgb, var(--text) 8%, transparent); }
  .phone-find input { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: 16px; outline: none; color: var(--text); }
  .today-numbers .v { font-size: 18px; white-space: nowrap; letter-spacing: -.03em; }
}
@media (max-width: 700px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; white-space: nowrap; }
}
a.need.found { grid-template-columns: auto minmax(0, 1fr) 14px; }
.sign-send { display: grid; gap: 6px; max-width: 520px; }
.sign-send textarea { width: 100%; }
@media (max-width: 700px) {
  /* wide tables scroll sideways inside themselves; the page itself never does */
  main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main select, main input:not([type=checkbox]):not([type=radio]), main textarea { max-width: 100%; }
  .rc-pill { white-space: normal; max-width: 100%; }
  input, select, textarea { font-size: 16px; }          /* smaller makes iPhone Safari zoom in on every tap */
}
@media (max-width: 700px) {
  /* the unit's ledger: month · rent due · paid · balance first; lease and the month's own difference left out */
  .unit-ledger th:nth-child(2), .unit-ledger th:nth-child(5),
  .unit-ledger td:nth-child(2), .unit-ledger tr:not(.future) td:nth-child(5) { display: none; }
  .unit-ledger.unit-ledger { font-size: 12.5px; }
  .unit-ledger th, .unit-ledger td { padding-left: 6px; padding-right: 6px; }
  .unit-ledger th:first-child, .unit-ledger td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* files in a conversation: small file bubbles under the e-mail, like Messages (trustee 11.11.2026) */
.chat .att-card { flex-wrap: nowrap; gap: 8px; width: min(380px, 100%); padding: 5px 6px 5px 6px; border: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 6%, transparent); margin-top: 3px; }
.chat .att-card .att-kind { width: 30px; height: 34px; font-size: 9.5px; border-radius: 6px; }
.chat .att-card .att-name { font-size: 12.5px; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.chat .att-card .btn { padding: 3px 9px; font-size: 12px; min-height: 0; border-radius: 999px; }
.chat .att-card .btn:not(.primary) { display: none; }               /* the file name itself opens it */
.chat .att-card .att-done { font-size: 11.5px; display: inline-block; flex: none; padding: 2px 9px; }
/* your own files: they sit on your side already, a "Sent by you" pill on each only adds noise (trustee 12.11.2026) */
.chat-msg.me .att-card .att-done { display: none; }
.chat-msg.me .att-card { padding-right: 12px; }
/* the conversation's tools: one height, one line */
.pane-tools { align-items: center; }
.pane-tools > .btn, .pane-tools > details.draft > summary.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px;
  padding: 0 12px; font-size: 13px; line-height: 1; box-sizing: border-box; }

/* ---------------------------------------------------------------- evictions (trustee 11.11.2026)
   A row of status lights: done = dark red, the step it waits on breathes red, to come = grey, closed = all green. */
.tag.good { background: var(--accent-soft); color: var(--pos); }
.ev { margin-bottom: 14px; border-left: 4px solid #ef4444; border-radius: 0 12px 12px 0; }
.ev.ev-closed { border-left-color: #34c26b; }
.ev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ev-title { font-weight: 650; font-size: 16px; }
.ev-lights { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ev-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  --led: #c9ccd1; --led-glow: transparent; }
.ev-step::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--rail, var(--line)); z-index: 0; }
.ev-step:first-child::before { display: none; }
.ev-led { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--led);
  box-shadow: 0 0 0 3px var(--surface); margin-bottom: 6px; }
.ev-step.done { --led: #b42318; }
.ev-step.done::before, .ev-step.current::before { --rail: #b42318; }
.ev-step.current { --led: #ef4444; --led-glow: rgba(239, 68, 68, .7); }
.ev-step.current .ev-led { animation: led-breathe 2.2s ease-in-out infinite; }
.ev-step.ok { --led: #34c26b; }
.ev-step.ok::before { --rail: #34c26b; }
.ev-label { font-size: 12.5px; font-weight: 600; }
.ev-step.todo .ev-label { color: var(--muted); font-weight: 500; }
.ev-date { font-size: 12px; color: var(--muted); min-height: 1.2em; }
.ev-step.current .ev-date { color: var(--neg); }
.ev-edit, .ev-new { margin-top: 10px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; margin: 10px 0; }
.ev-grid label, .ev-form > label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.ev-form textarea { width: 100%; }
.ev-tag { margin-left: 8px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .ev-step.current .ev-led { animation: none; } }
@media (max-width: 700px) { .ev-label { font-size: 11px; } .ev-date { font-size: 11px; } }
.ev-today { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.ev-today-line { display: flex; align-items: center; gap: 2px; padding: 9px 12px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid #ef4444; color: var(--text); font-size: 14px; }
.ev-today-line b { margin-right: 4px; }
.ev-today-line .go { margin-left: auto; color: var(--muted); padding-left: 8px; }
.ev-today-line.overdue, .ev-today-line.due { background: var(--neg-soft); }
/* files + tools on one line under the subject; the open file list takes a line of its own below (trustee 12.11.2026) */
.pane-tools > .pane-files { margin: 0 4px 0 0; }
.pane-tools > .pane-files > summary { margin: 0; height: 30px; display: inline-flex; align-items: center; }
.pane-tools > details { margin: 0; }
.pane-tools > .pane-files { position: relative; }
.pane-tools > .pane-files > .pane-files-list { position: absolute; top: 34px; left: 0; z-index: 20; width: min(460px, 80vw);
  max-height: 260px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.att-saved { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.att-saved button.link { background: none; border: 0; padding: 0 2px; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* Drafts Claude prepared (trustee 13.11.2026): a short list above the tabs, each opens in the New e-mail box */
.ib-drafts { margin: 6px 0 8px; padding: 8px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.ib-drafts-head { font-weight: 600; margin: 0 2px 6px; }
.ib-draft { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 7px 10px;
  margin: 0 0 4px; border: 0; border-left: 4px solid var(--stripe, var(--accent)); border-radius: 0; background: var(--surface); color: inherit; cursor: pointer; font: inherit; }
.ib-draft:last-child { margin-bottom: 0; }
.ib-draft:hover { background: var(--bg); }
.ib-draft-subject { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.compose .draft-note, .pane-head .draft-note { margin: 6px 0 2px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); }

/* Yearly payout page (trustee 17.11.2026, "Granny Natalie") */
.warn-panel { border-left: 4px solid var(--warn, #c77c02); }
table.payout-grid td.gap { background: color-mix(in srgb, #e5484d 9%, transparent); }
.payout-steps form.row { gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
table.payout-people td form.row { flex-wrap: nowrap; }
.ev-head .ev-chase { margin: 0 0 0 auto; }
