/* Your Block Management resident portal
   Colours and type: deep green on warm paper. */
:root {
  --ink: #071412;
  --ink-2: #22302D;
  --ink-3: #3D4D49;
  --muted: #56645F;   /* at least 4.5:1 on every background used */
  --faint: #646A66;   /* future steps: still at least 4.5:1 */
  --paper: #F8F4EA;
  --card: #FFFFFF;
  --line: #E2D9C8;
  --line-2: #D9D1BF;  /* decorative dividers only */
  --line-field: #857D6A;  /* edges of things you type in or choose: at least 3:1 */
  --focus: #00897B;
  --soft: #F7F5EF;
  --soft-2: #F3EFE5;
  --green-ink: #12382F;
  --green-deep: #0B1F1B;
  --green-soft: #DDE9DF;
  --green-softer: #EEF3EC;
  --teal: #00897B;
  --teal-ink: #1D6B63;
  --gold: #B5821E;
  --amber-bg: #F3EAD3; --amber-ink: #6B521D;
  --blue-bg: #E6ECEF; --blue-ink: #2E4757;
  --purple-bg: #EEEAF2; --purple-ink: #4A3D5C;
  --red-bg: #F6E6E0; --red-ink: #7E2A1D;
  --grey-bg: #F0ECE3; --grey-ink: #3D4D49;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(7,20,18,.06), 0 4px 12px -4px rgba(7,20,18,.08);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Geist', 'Figtree', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-size: 100%; }  /* sizes are in rem, so the browser's text size setting works */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--green-ink); text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: 1.5rem; line-height: 1.2; }
h3 { font-size: 1.125rem; line-height: 1.3; font-family: var(--font); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--green-deep); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__inner { max-width: 1240px; margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: inherit; min-height: 48px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.875rem; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { min-height: 44px; padding: 0 11px; border-radius: 9px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover { background: var(--green-softer); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--green-deep); color: #fff; font-weight: 700; }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--soft-2); }
.badge { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--teal); color: #fff; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav .badge { position: static; }
.me { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px 0 6px; border-radius: 11px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.9062rem; }
.me:hover { background: var(--soft-2); }
.me[aria-current="page"] { border-color: var(--green-deep); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green-deep); color: #fff; font-size: 0.875rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar--soft { background: var(--green-soft); color: var(--green-ink); }
.avatar--photo { object-fit: cover; background: var(--soft-2); }
.avatar--large { width: 56px; height: 56px; font-size: 1.25rem; }
.building-switch select { min-height: 46px; border-radius: 11px; border: 1px solid var(--line-field); background: #fff; padding: 0 10px; font-weight: 600; }
.test-banner { background: var(--amber-bg); color: var(--amber-ink); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 8px 16px; }
.test-banner__who { display: inline-block; font-weight: 500; margin-left: 6px; overflow-wrap: anywhere; }
.test-account { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.test-account .muted { overflow-wrap: anywhere; }
.team-bar { background: var(--green-deep); color: #fff; font-size: 0.875rem; }
.team-bar__inner { max-width: 1240px; margin: 0 auto; padding: 6px 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.team-bar a { color: #fff; font-weight: 600; text-decoration: none; }
.team-bar__here { margin-left: auto; text-decoration: underline !important; }
.team-bar a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 22px; }
.wrap--narrow { max-width: 760px; }
.wrap--auth { max-width: 520px; padding-top: 56px; }
.wrap--welcome { max-width: 960px; padding-top: 32px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head__text { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.lead { font-size: 1.0312rem; color: var(--ink-3); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cols__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.board-more { gap: 16px; }  /* the directors' "everything else" block keeps the card's spacing (tour target) */
.board-more > p { margin: 0; }
.stack--tight { gap: 6px; }
.stack--loose { gap: 18px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card--flat { box-shadow: none; border: 1px solid var(--line); }
.card--attention { border-left: 6px solid var(--amber-ink); }
@media (forced-colors: active) { .card--attention { border-left: 6px solid CanvasText; } }
.card--soft { background: var(--soft); box-shadow: none; }
.card--dark { background: var(--green-deep); color: #fff; }
.card--dark h2, .card--dark h1 { color: #fff; }
.card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; }
.card-link { text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.card-link:hover { box-shadow: 0 2px 4px rgba(7,20,18,.05), 0 14px 30px -14px rgba(7,20,18,.28); transform: translateY(-1px); color: inherit; }
.stat { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat__value { font-family: var(--display); font-size: 1.625rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.stat__label { font-size: 0.9375rem; color: var(--muted); }
.kicker { font-size: 0.875rem; font-weight: 700; letter-spacing: .01em; color: var(--amber-ink); }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.strong { font-weight: 700; }
.prose { font-size: 0.9688rem; line-height: 1.65; color: var(--ink-2); white-space: pre-line; }
.prose--plain { white-space: normal; }

/* ---------- buttons ---------- */
.btn { min-height: 46px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--green-deep); color: #fff; font-size: 0.9375rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; max-width: 100%; }
.btn:hover { background: var(--green-ink); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-field); }
.btn--ghost:hover { background: var(--soft-2); color: var(--ink); }
.btn--quiet { background: transparent; color: var(--ink-3); }
.btn--quiet:hover { background: var(--soft-2); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 12px; font-size: 0.875rem; border-radius: 9px; }
.btn--danger { background: var(--red-ink); }
.btn--block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.inline-form { display: inline; }
/* File pickers: the browser's own "Choose Files" control is small and grey, and easy to miss on a phone (phone
   crawl, 13 Nov 2026). Give every upload field in the portal a full-size button that matches .btn--ghost. */
input[type="file"] { display: block; width: 100%; max-width: 100%; font: inherit; font-size: 0.9375rem; color: var(--ink-3); padding: 6px 0; }
input[type="file"]::file-selector-button { min-height: 46px; margin-right: 12px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--line-field); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
input[type="file"].field { padding: 6px; }
input[type="file"].field::file-selector-button { min-height: 40px; }
input[type="file"]::file-selector-button:hover { background: var(--soft-2); }
input[type="file"]:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 10px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 700; padding: 3px 10px; border-radius: 1em; max-width: 100%; overflow-wrap: break-word; background: var(--grey-bg); color: var(--grey-ink); }
.chip--green { background: var(--green-soft); color: var(--green-ink); }
.chip--amber { background: var(--amber-bg); color: var(--amber-ink); }
.chip--blue { background: var(--blue-bg); color: var(--blue-ink); }
.chip--purple { background: var(--purple-bg); color: var(--purple-ink); }
.chip--red { background: var(--red-bg); color: var(--red-ink); }
.chip--dark { background: var(--green-ink); color: #fff; }

/* ---------- notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }
.notice svg { flex: none; margin-top: 2px; }
.notice--ok { background: var(--green-soft); border-color: transparent; color: var(--green-ink); }
.notice--info { background: var(--blue-bg); border-color: transparent; color: var(--blue-ink); }
.notice--private { background: var(--purple-bg); border-color: transparent; color: var(--purple-ink); }
.notice--warn { background: var(--amber-bg); border-color: transparent; color: var(--amber-ink); }
.notice--danger { background: var(--red-bg); border-color: transparent; color: var(--red-ink); }
.notice__list { margin: 6px 0 0; padding-left: 1.2em; }
.notice > div { min-width: 0; overflow-wrap: anywhere; }
.messages { display: flex; flex-direction: column; gap: 8px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > label, .label { font-size: 0.9375rem; font-weight: 600; }
.help { font-size: 0.9375rem; color: var(--muted); }
.error { font-size: 0.9375rem; font-weight: 600; color: #9A3324; }
.field, .form input[type="text"], .form input[type="email"], .form input[type="url"], .form input[type="number"], .form input[type="date"], .form input[type="datetime-local"], .form input[type="search"], .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line-field); border-radius: 10px; background: #fff; color: var(--ink); font-size: 0.9688rem; }
.form textarea, textarea.field { min-height: 110px; resize: vertical; }
.field:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); }
.field--code { font-size: 1.375rem; letter-spacing: .25em; text-align: center; max-width: 240px; }
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-field); background: #fff; cursor: pointer; min-height: 44px; }
.choice:has(input:checked) { border: 2px solid var(--green-deep); background: var(--soft); }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-deep); flex: none; }
.choice__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.choice__title { font-weight: 700; }
.choice__desc { font-size: 0.9062rem; color: var(--ink-3); }
fieldset .choice + .choice { margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; min-height: 44px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green-deep); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
legend { font-size: 0.9375rem; font-weight: 600; padding: 0; margin-bottom: 4px; }
.errorlist { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; font-weight: 600; color: #9A3324; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--soft-2); text-decoration: none; color: inherit; }
.list-item:first-child { border-top: 0; }
a.list-item:hover { background: #FBF9F4; }
.list-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.list-item__title { font-weight: 700; font-size: 0.9688rem; line-height: 1.3; }
.list-item__meta { font-size: 0.9375rem; color: var(--muted); }
.list-item__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 1 auto; min-width: 0; max-width: 45%; }
.empty { padding: 18px; text-align: center; color: var(--muted); background: var(--soft); border-radius: 12px; font-size: 0.9375rem; }
.icon-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--green-softer); color: var(--green-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-field); background: #fff; color: var(--ink); text-decoration: none; font-size: 0.9062rem; font-weight: 600; display: inline-flex; align-items: center; }
.filters a[aria-current="true"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* ---------- progress steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.steps li { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--faint); }
.steps li::before { content: ""; display: block; height: 7px; border-radius: 4px; background: #E2DED3; }
.steps li.done, .steps li.now { color: var(--green-ink); }
.steps li.done::before { background: var(--teal); }
.steps li.now::before { background: #7FC4B9; }
.mini-steps { display: inline-flex; gap: 3px; }
.mini-steps span { width: 16px; height: 4px; border-radius: 2px; background: #E2DED3; }
.mini-steps span.on { background: var(--teal); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 12px; }
.timeline__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); margin-top: 7px; flex: none; }
.timeline__dot--muted { background: var(--line-2); }
.timeline__dot--internal { background: var(--gold); }
.timeline__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9062rem; }
.table th { text-align: left; font-size: 0.875rem; font-weight: 700; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--soft-2); vertical-align: top; }
.table-wrap { overflow-x: auto; position: relative; }

/* ---------- misc ---------- */
details.reveal > summary { cursor: pointer; font-weight: 700; color: var(--green-ink); list-style: none; min-height: 44px; display: inline-flex; align-items: center; }
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal > summary::after { content: " +"; }
details.reveal[open] > summary::after { content: " –"; }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 12px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 1.125rem; }
.codes span { background: var(--soft); border-radius: 8px; padding: 8px 10px; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 10px; }
.photo-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; display: block; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.site-footer__inner { max-width: 1240px; margin: 0 auto; padding: 18px 24px 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }
.bar { height: 10px; border-radius: 5px; background: var(--green-softer); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--teal); border-radius: 0 5px 5px 0; }
hr.rule { border: 0; border-top: 1px solid var(--soft-2); margin: 0; }

@media (max-width: 640px) {
  .wrap { padding: 22px 16px 48px; }
  .site-header__inner, .team-bar__inner, .site-footer__inner { padding-left: 16px; padding-right: 16px; }
  .card { padding: 18px; }
  .nav a { padding: 0 11px; }
}
@media print {
  .site-header, .team-bar, .site-footer, .test-banner, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* Privacy notice and portal rules */
.legal-page { max-width: 860px; margin-top: 18px; }
.legal-page .card { gap: 12px; font-size: 0.9688rem; line-height: 1.6; color: var(--ink-2); }
.legal-page p, .legal-page ul { margin: 0; }
.legal-page ul { padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }
.legal-page h2 { margin-top: 4px; }
.legal-page th[scope="row"] { white-space: nowrap; }
.legal-page td { overflow-wrap: anywhere; }
@media (max-width: 600px) { .legal-page th[scope="row"] { white-space: normal; min-width: 7em; } }

/* Site visits */
.media-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); }
.media-tile { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.media-tile img, .media-tile video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--soft-2); display: block; }
.media-tile figcaption, .media-video figcaption { font-size: 0.9375rem; color: var(--ink-3); }
.record-grid .media-tile > a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.record-video-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--soft-2); color: var(--ink-3); }
.record-edit { display: grid; gap: 16px; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); padding: 16px 0; border-top: 1px solid var(--line); }
.record-edit:first-of-type { border-top: 0; }
@media (max-width: 640px) { .record-edit { grid-template-columns: 1fr; } }
.record-limits { margin-top: 16px; }
.media-tile--edit .field, .media-tile--edit select, .media-tile--edit input[type="text"] { font-size: 0.875rem; min-height: 40px; }
.media-video { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.media-video video { width: 100%; max-height: 480px; border-radius: 12px; background: #000; }
.visit-item { flex-wrap: wrap; gap: 10px; }
.visit-item__fields { display: grid; gap: 8px; grid-template-columns: 160px 190px 1fr; flex: 1 1 100%; align-items: center; }
.visit-add__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
@media (max-width: 640px) { .visit-item__fields { grid-template-columns: 1fr; } }

/* Notices */
.alert-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--red-ink); color: #fff; font-size: 0.9688rem; line-height: 1.5; }
.alert-banner a { color: #fff; font-weight: 700; }
.alert-banner__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.alert-banner__title { font-weight: 700; font-size: 1.0625rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.checklist__mark { width: 22px; height: 22px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line-field); color: transparent; }
.checklist__mark--done { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.tiny { font-size: 0.875rem; }
.back-link { align-self: flex-start; }
.tray-item__form textarea { min-height: 72px; }

/* ---------- leases, freehold and requests (Milestone 2) ---------- */
.field--auto { width: auto; min-width: 200px; }
.facts dd, .lease-facts dd { margin: 0; }
.lease-facts dd .small { font-weight: 400; }
.lease-facts__wide { grid-column: span 2; }
@media (max-width: 560px) { .lease-facts__wide { grid-column: auto; } }
.lease-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px 20px; margin: 0; }
.lease-years { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--soft); border-radius: 12px; }
.lease-years__value { font-family: var(--display); font-size: clamp(1.625rem, 3.4vw, 2.125rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.lease-years__label { font-size: 0.9062rem; color: var(--muted); font-weight: 600; }
.band-chip--danger { background: var(--red-bg); color: var(--red-ink); }
.band-chip--warn { background: var(--amber-bg); color: var(--amber-ink); }
.band-chip--ok { background: var(--green-soft); color: var(--green-ink); }
.band-chip--muted { background: var(--grey-bg); color: var(--grey-ink); }
.extend-box { border-top: 1px solid var(--soft-2); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.facts-box { display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.facts-box h3 { margin-top: 4px; }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.key-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.key-facts li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 14px; background: var(--soft); border-radius: 12px; }
.key-fact { font-weight: 700; font-size: 1rem; color: var(--ink); }
.key-check { font-size: 0.875rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--grey-bg); color: var(--grey-ink); }
.key-check--ok { background: var(--green-soft); color: var(--green-ink); }
.key-check--not_met { background: var(--red-bg); color: var(--red-ink); }
.key-check--waiting { background: var(--amber-bg); color: var(--amber-ink); }
.key-check--unknown { background: var(--blue-bg); color: var(--blue-ink); }
.what-this-means { padding: 14px 16px; border-left: 4px solid var(--teal); background: var(--green-softer); border-radius: 0 12px 12px 0; font-size: 0.9688rem; }
.bands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.band { display: grid; grid-template-columns: minmax(150px, 1.3fr) 2fr 4.5em; gap: 12px; align-items: center; font-size: 0.9062rem; }
.band__label { font-weight: 600; }
.band__track { height: 12px; border-radius: 6px; background: var(--soft-2); overflow: hidden; }
.band__bar { display: block; height: 100%; border-radius: 6px; background: var(--teal); min-width: 0; }
.band__bar--danger { background: #C0583F; }
.band__bar--warn { background: var(--gold); }
.band__bar--ok { background: var(--teal); }
.band__bar--muted { background: var(--line-2); }
.band__count { white-space: nowrap; color: var(--ink-3); }
@media (max-width: 560px) { .band { grid-template-columns: 1fr auto; } .band__track { grid-column: 1 / -1; grid-row: 2; } }
.choices--3 { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.route { display: flex; flex-direction: column; gap: 6px; }
/* Have your say and sealed quotes */
.public-head { display: flex; gap: 10px; align-items: center; margin: 4px 0 18px; }
.compare th[scope="row"] { white-space: nowrap; color: var(--ink-3); font-weight: 600; vertical-align: top; }
.compare td, .compare thead th { min-width: 150px; vertical-align: top; }
.results dd { margin: 4px 0 0; }
.compare th[scope="row"] { position: sticky; left: 0; background: var(--card); z-index: 1; }
.swipe-hint { display: none; }
@media (max-width: 700px) {
  .swipe-hint { display: block; }
  .compare th[scope="row"] { white-space: normal; min-width: 96px; max-width: 110px; }
  .compare td, .compare thead th { min-width: 170px; }
}

/* ---------- Accessibility (4 Nov 2026): errors, focus, progress, tables, phones, high contrast ---------- */
/* "There's a problem" summary at the top of a page after a form is sent with mistakes */
.error-summary { border: 3px solid #9A3324; background: #fff; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.error-summary__title { font-family: var(--font); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; color: #9A3324; }
.error-summary__list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.error-summary__list a { color: #9A3324; font-weight: 600; }
.error-summary__label { color: var(--ink); }
.form [aria-invalid="true"], .field[aria-invalid="true"] { border: 2px solid #9A3324; }
/* Keyboard focus that's easy to see on every control, including choice cards */
.field:focus-visible, .form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice:focus-within, .check:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 12px; }
.choice input:focus-visible, .check input:focus-visible { outline: none; }
.choice:focus-within:not(:has(:focus-visible)), .check:focus-within:not(:has(:focus-visible)) { outline: none; }
.team-bar :focus-visible, .card--dark :focus-visible, .alert-banner :focus-visible { outline-color: #fff; }
/* Progress trackers: a tick on done steps and "(now)" on the current one, not just colour */
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { background: repeating-linear-gradient(135deg, var(--teal) 0 6px, #7FC4B9 6px 12px); }
.steps li.todo::before { background: #fff; border: 1.5px dashed var(--line-field); }
.steps li.skipped { color: var(--faint); font-weight: 500; }
.steps li.skipped::before { background: repeating-linear-gradient(90deg, #E2DED3 0 4px, transparent 4px 8px); }
.steps__tick { font-weight: 700; color: var(--teal-ink); }
.steps__now { font-weight: 700; }
/* Tables wider than the screen */
.table-hint { font-size: 0.9375rem; color: var(--muted); }
.table-wrap[tabindex]:focus-visible { outline-offset: 0; }
/* Bigger tap targets in the footer and the team bar */
.site-footer a, .site-footer .link-btn, .team-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.site-footer__inner, .team-bar__inner { align-items: center; }
.header-tools { margin-left: auto; }
/* Phones (and 200% zoom): the section menu is one row that scrolls sideways, so the page starts sooner */
@media (max-width: 640px) {
  .nav { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px;
         background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 24px 100% no-repeat local,
                     linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 24px 100% no-repeat local,
                     radial-gradient(farthest-side at 0 50%, rgba(7,20,18,.18), transparent) left / 10px 100% no-repeat scroll,
                     radial-gradient(farthest-side at 100% 50%, rgba(7,20,18,.18), transparent) right / 10px 100% no-repeat scroll; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
}
/* Windows high contrast and other forced colours */
@media (forced-colors: active) {
  .steps li::before, .bar > span, .band__bar, .mini-steps span { forced-color-adjust: none; background: CanvasText; }
  .steps li.now::before { background: repeating-linear-gradient(135deg, CanvasText 0 4px, Canvas 4px 8px); }
  .steps li.todo::before, .mini-steps span:not(.on) { background: Canvas; border: 1px solid CanvasText; }
  .chip, .key-check, .notice, .error-summary, .choice, .btn--ghost { border: 1px solid CanvasText; }
  .choice:has(input:checked) { border-width: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card-link:hover { transform: none; }
}
.as-h3 { font-family: var(--font); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
/* On narrow screens each step gets its own line, so labels like "With the directors" stay readable */
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; gap: 4px; }
  .steps li { flex-direction: row; align-items: center; gap: 10px; }
  .steps li::before { width: 40px; flex: none; }
}
@media (max-width: 480px) { .table th, .table td { padding: 8px 6px; } }
/* The menu has its own row under the brand, bell and name at every width, so the order you see is the order
   the keyboard and screen readers follow (base.html puts the bell and name before the menu). */
.nav { flex: 1 1 100%; }
.building-switch { display: flex; align-items: center; gap: 6px; }

/* Contractor phone pages and firm page (contractors fixer, testing round): each request as its own box,
   and bigger buttons for wet or gloved fingers. */
.request-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.request-items li { padding: 12px 14px; border: 1.5px solid var(--line-2); border-left: 5px solid var(--teal); border-radius: 10px; background: var(--soft); font-size: 0.9688rem; }
.visit-request { padding: 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--soft); }
.visit-request legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-weight: 700; font-size: 1rem; }
.visit-request legend + * { clear: both; }
.visit-request__count { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.visit-problems { margin-bottom: 16px; }
.firm-page .btn, .link-box .btn { min-height: 48px; }
.firm-page .firm-service .btn, .firm-page #insurance .btn { width: 100%; }

/* Team fixer (4 Nov 2026): keep visually hidden text inside a scrolling table, so a wide table (the building's People table) scrolls on its own instead of making the whole page scroll sideways on a phone. */
.table-wrap { position: relative; }

/* ---- Robustness round (4 Nov 2026): a very long word or pasted code in a title or comment wraps instead of making
   the page scroll sideways on a phone. Only breaks inside a word when the word can't fit on a line. */
h1, h2, h3, .prose, .timeline__body, .card p, .list-item__title, .list-item__body { overflow-wrap: anywhere; min-width: 0; }

/* ---- Contractors fixer, round 2: a firm's open visit links on a phone. The "Stop this link" button goes under
   the link's details, so the details aren't squeezed into a narrow column. */
@media (max-width: 480px) {
  .firm-links .list-item { flex-wrap: wrap; }
  .firm-links .list-item__aside { flex-basis: 100%; align-items: flex-start; }
}

/* ---- Accessibility round 2 (4 Nov 2026): small screens, large browser text and high contrast.
   Breakpoints here are in em, so they also switch on when someone sets a larger default text size. ---- */
/* Email addresses and phone numbers can't push the page sideways */
a[href^="mailto:"], a[href^="tel:"], .site-footer a { overflow-wrap: anywhere; }
.notice > span, .alert-banner__body, .timeline__body, .list-item__meta { min-width: 0; overflow-wrap: anywhere; }
/* Phone list rows: the right-hand column (chips, links, buttons) drops under the text instead of squeezing it */
@media (max-width: 30em) {
  .list-item { flex-wrap: wrap; row-gap: 8px; }
  .list-item__body { flex: 1 1 10em; }
  .list-item > svg { flex: none; }
  .list-item__aside { flex: 1 1 100%; max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; }
}
/* Links that stand on their own get a finger-sized target */
.tap-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.alert-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.alert-banner__actions a { display: inline-flex; align-items: center; min-height: 44px; }
/* Tables that become one card per row on narrow screens (add class "table--cards" and data-label on cells) */
@media (max-width: 36em) {
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td, .table--cards th[scope="row"] { display: block; width: 100%; }
  .table--cards th[scope="row"] { border: 0; padding: 2px 0; font-weight: 700; text-align: left; }
  .table--cards td.num { text-align: left; }
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--cards tr { padding: 12px 0; border-bottom: 1px solid var(--soft-2); }
  .table--cards td { border: 0; padding: 2px 0; }
  .table--cards td:first-child { font-weight: 700; color: var(--ink); }
  .table--cards td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}
/* High contrast: show which menu item and filter you're on with a border, not only a dark background */
@media (forced-colors: active) {
  .nav a[aria-current="page"], .filters a[aria-current="true"], .me[aria-current="page"] { border: 2px solid CanvasText; text-decoration: underline; text-decoration-thickness: 2px; }
  .alert-banner { border: 2px solid CanvasText; }
}

/* ---- Ease-of-use fixer (4 Nov 2026) ---- */
/* Repair form, "Inside my flat": who to tell, as two short bullets. */
.who-to-tell__list { margin: 4px 0 8px; padding-left: 1.2em; }
.who-to-tell__list li + li { margin-top: 4px; }
/* Urgent alert as one line on pages other than the overview and Repairs. */
.alert-banner--compact { padding: 10px 14px; border-radius: 12px; font-size: 0.9375rem; align-items: center; }
.alert-banner--compact .alert-banner__title { font-size: inherit; }
/* Notices: the notice someone tapped from the overview stands out. */
.notice-row:target { background: var(--amber-bg); border-radius: 10px; scroll-margin-top: 90px; }
/* Safety: the overdue check someone tapped from the overview stands out. */
.list-item[id^="check-"]:target { background: var(--red-bg); border-radius: 10px; scroll-margin-top: 90px; }
/* Team dashboard: the "what needs doing" numbers are links. */
a.stat--link { color: inherit; text-decoration: none; }
a.stat--link:hover .stat__label { text-decoration: underline; }

/* ---- Site visit checklist: every area in one go (fix-r3-team) ---- */
.visit-checklist { display: grid; gap: 8px; }
.visit-checklist__row { display: grid; grid-template-columns: 180px 190px 1fr; gap: 8px; align-items: center; border: 0; padding: 6px 0; margin: 0; border-bottom: 1px solid var(--line); }
.visit-checklist__row legend { float: left; padding: 0; }
.visit-checklist__row .form-field { margin: 0; }
@media (max-width: 640px) { .visit-checklist__row { grid-template-columns: 1fr; } }

/* ---- Minutes actions as rows (fix-r3-team) ---- */
.action-rows { border: 0; padding: 0; margin: 0 0 16px; }
.action-rows__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.action-rows__row > :first-child { grid-column: 1 / -1; }  /* "What needs doing" gets a whole line */
.action-rows__row .check { min-height: 44px; align-items: center; }
.action-rows__row .form-field { margin: 0; }
@media (max-width: 760px) { .action-rows__row { grid-template-columns: 1fr; } }

/* ---- fix-r4-team: what happened after saving one line or photo on the visit page, and checklist and minutes
   rows that keep chosen options readable with large text (em columns and breakpoints, as in the round 2 block) ---- */
.row-note { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 100%; margin: 2px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); font-size: 0.9375rem; line-height: 1.45; }
.row-note svg { flex: none; margin-top: 2px; }
.row-note--warn { background: var(--amber-bg); color: var(--amber-ink); }
.visit-item:target, .media-tile:target { scroll-margin-top: 90px; }
.visit-item__fields { grid-template-columns: minmax(0, 10em) minmax(0, 13em) minmax(0, 1fr); }
.visit-item__fields .form-field { margin: 0; }
.visit-checklist__row { grid-template-columns: minmax(0, 11em) minmax(0, 13em) minmax(0, 1fr); }
.action-rows__row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }  /* the minutes page is narrow */
.action-rows__row { border-left: 0; border-right: 0; border-top: 0; margin: 0; min-width: 0; }  /* each row is a fieldset */
.action-rows__row > :first-child { grid-column: auto; }
.action-rows__row > div:first-of-type { grid-column: 1 / -1; }  /* "What needs doing" gets a whole line */
@media (max-width: 48em) { .visit-item__fields, .visit-checklist__row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30em) { .action-rows__row { grid-template-columns: minmax(0, 1fr); } }
.go-live-list li, .go-live-list li > span { overflow-wrap: anywhere; min-width: 0; }  /* long setting names and addresses wrap on phones */

/* ---- Round 4 residents and contractors fixes (fix-r4-other) ---- */
/* Overview: a short emergency line, with every route one tap away. */
.emergency-short p { margin: 0; }
.emergency-short__more { margin-top: .4rem; }
.emergency-short__more > summary { cursor: pointer; font-weight: 600; text-decoration: underline; }
.emergency-short__more[open] > summary { margin-bottom: .5rem; }
.emergency-short__more .emergency-routes { margin: 0; }
/* The one-line alert stays one line on a phone: the title and the link only. */
@media (max-width: 600px) { .alert-banner--compact .alert-banner__extra { display: none; } }
/* Documents search: the magnifier sits inside the box, also when the form wraps on a phone. */
.doc-search__box { position: relative; flex: 1 1 14rem; display: flex; align-items: center; min-width: 0; }
.doc-search__box .doc-search__icon { left: 14px; }
.doc-search__box .doc-search__input { width: 100%; }
/* Round 8: the unread number on the bell uses a darker teal, so white text passes the 4.5:1 contrast check. */
.badge { background: #00695C; }

/* ---- Round 9 resident ease-of-use fixes (fix-r9res) ---- */
/* Phones (and 200% zoom): every section of the menu is visible at once, in a grid that wraps, instead of a
   sideways strip where more than half was hidden. The column width is in em, so large text gets fewer columns. */
@media (max-width: 640px) {
  .nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.4em), 1fr)); gap: 4px;
         overflow: visible; margin: 0; padding: 0 0 4px; background: none; }
  .nav a { justify-content: center; text-align: center; padding: 4px 6px; line-height: 1.15; white-space: normal;
           border: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-color: var(--green-deep); }
}
/* The emergency routes as a short list, and the "now contact the 24-hour line" box after an emergency report. */
.emergency-routes p, .emergency-next p { margin: 0 0 .4rem; }
.emergency-list { margin: 0 0 .4rem; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.emergency-next { border: 2px solid currentColor; margin-bottom: 16px; }
.emergency-next__title { font-size: 1.125rem; }
/* Meetings: "How this meeting decides things" is a closed expander below the agenda. */
.meeting-rules > summary { cursor: pointer; font-weight: 600; text-decoration: underline; min-height: 44px; display: flex; align-items: center; }
.meeting-rules p { margin: .3rem 0 0; }
/* Expanders: a gap before the "+" / "–" (a flex item's leading space is dropped, so it stuck to the words). */
details.reveal > summary::after { margin-left: .35em; }
details.reveal > summary.btn { color: var(--ink); }
.call-types { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 16px 0; }
.call-type .btn { align-self: flex-start; }
.org-steps li { margin: 6px 0; }
.org-note { border-left: 3px solid var(--line, #ddd); padding-left: 10px; margin-bottom: 10px; }
.call-steps li { margin: 4px 0; }
.call-type dt, .organise dt { font-weight: 600; margin-top: 8px; }
.call-type dd, .organise dd { margin: 2px 0 0; }
.self-help { border: 1px solid var(--line, #ddd); border-left: 4px solid var(--teal, #2a7d72); border-radius: 12px; padding: 12px 14px; background: var(--white, #fff); margin: 8px 0 14px; }
.self-help summary { cursor: pointer; }
.self-help__steps { margin: 10px 0 8px 1.2em; }
.self-help__steps li { margin: 4px 0; }
/* Building sub-tabs (7 Nov 2026): the "Building" section groups notices, visits, services, safety and freehold */
.building-tabs { margin: 0 0 18px; }
.building-tabs a[aria-current="page"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
@media (forced-colors: active) { .building-tabs a[aria-current="page"] { border: 2px solid CanvasText; text-decoration: underline; } }
/* Needs your decision (7 Nov 2026) */
.decide-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.decide-card h3 { margin: 0; font-size: 1.05rem; }
.decide-card p { margin: 0; }
.discussion-post .prose p:last-child { margin-bottom: 0; }
.discussion-post--hidden { opacity: .75; }
.request-group + .request-group { margin-top: 16px; }
.request-group__title { margin: 0 0 8px; text-transform: none; }
/* Building calendar (7 Nov 2026) */
.cal-day + .cal-day { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.cal-day__date { font-size: 1.05rem; margin: 0 0 8px; }
.cal-item { margin: 0 0 8px; }

/* In-page "are you sure?" dialog (7 Nov 2026), replacing the browser's own pop-up. */
.confirm-dialog { border: 0; border-radius: 16px; background: #fff; color: var(--ink, #10231c); padding: 22px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.confirm-dialog::backdrop { background: rgba(15, 30, 25, .45); }
.confirm-dialog__msg { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.5; }
.confirm-dialog__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) { .confirm-dialog[open] { animation: confirm-in .16s ease-out; } }
@keyframes confirm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Take-on checklist (10 Nov 2026): each item opens to show why it matters and the form. */
.takeon-item { border-bottom: 1px solid var(--line, #e5e1d6); }
.takeon-item > summary { list-style: none; cursor: pointer; }
.takeon-item > summary::-webkit-details-marker { display: none; }
.takeon-item[open] > summary { background: var(--green-soft, #eef3ec); }
.takeon-item__body { padding: 4px 16px 18px 60px; }
@media (max-width: 640px) { .takeon-item__body { padding-left: 14px; } }

/* Check before paying: a bill's steps (10 Nov 2026) */
.bill-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.bill-steps__item { position: relative; display: grid; gap: 2px; padding: 0 0 0 30px; }
.bill-steps__item::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line, #d8d2c4); background: var(--surface, #fff); }
.bill-steps__item.is-done::before { background: var(--green-ink, #1d6b63); border-color: var(--green-ink, #1d6b63); box-shadow: inset 0 0 0 3px var(--surface, #fff); }
.bill-steps__item span { font-size: 0.875rem; color: var(--muted, #5b625f); }
.bill-answers { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 0.9375rem; }

/* Service charge statements (11 Nov 2026) */
.statement-table .num, .table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.statement-table th[scope="row"] { font-weight: 600; }
.statement-table__meta { display: block; font-weight: 400; }
.statement-filter { align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.statement-filter .form-field { margin: 0; }
.nowrap { white-space: nowrap; }
.statement-table th[scope="row"] { min-width: 190px; }

/* Family helpers (11 Nov 2026): a quiet strip saying whose behalf they're on. */
.helper-banner { background: var(--green-soft); color: var(--green-ink); padding: 8px 16px; text-align: center; font-size: 0.9375rem; }
.helper-banner a { color: inherit; font-weight: 600; }

/* A permission request's written answer (Nov 2026). */
.permission-answer { border: 1px solid var(--soft-2); border-left: 6px solid var(--green-ink); border-radius: 10px; padding: 14px 18px; margin: 12px 0; }
.permission-answer h2 { margin-top: 0; }
.permission-answer--conditions { border-left-color: var(--amber-ink); }
.permission-answer--no { border-left-color: #9A3324; }
.permission-answer--not_needed { border-left-color: var(--blue-ink, #2b5c8a); }

/* A vertical step list with dates (requests, RTM claims), Nov 2026: as on the website's example screens. */
.steplist { list-style: none; margin: 0; padding: 0; position: relative; }
.steplist__item { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 12px; align-items: start; padding: 0 0 16px; position: relative; }
.steplist__item:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.steplist__item--done:not(:last-child)::before { background: var(--teal-ink); }
.steplist__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-field); background: var(--card); display: grid; place-items: center; color: #fff; box-sizing: border-box; }
.steplist__item--done .steplist__mark { background: var(--teal-ink); border-color: var(--teal-ink); }
.steplist__item--now .steplist__mark { border-color: var(--teal-ink); box-shadow: 0 0 0 4px var(--green-softer); }
.steplist__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.steplist__label { font-weight: 600; color: var(--ink); }
.steplist__item--todo .steplist__label { font-weight: 500; color: var(--faint); }
.steplist__note { font-size: .875rem; color: var(--muted); }
.steplist__when { font-size: .875rem; color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 480px) { .steplist__item { grid-template-columns: 22px 1fr; } .steplist__when { grid-column: 2; text-align: left; } }

/* Right to manage claim card (Nov 2026), as on the website. */
.rtm-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rtm-card__head h2 { margin: 2px 0 0; }
.rtm-card .eyebrow { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; font-weight: 600; margin: 0; }
.rtm-members { background: var(--soft-2); border-radius: 14px; padding: 16px 18px; margin: 16px 0 20px; }
.rtm-members__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rtm-members__num { font-family: var(--display); font-size: 1.8rem; color: var(--ink); }
.rtm-bar { position: relative; height: 12px; border-radius: 6px; background: var(--line); margin-top: 10px; }
.rtm-bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--teal-ink); }
.rtm-bar__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.rtm-members__mark { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.rtm-members__ok { margin: 10px 0 0; background: var(--green-soft); color: var(--green-ink); border-radius: 10px; padding: 8px 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.rtm-members__more { margin: 10px 0 0; font-weight: 600; color: var(--ink-2); }
.rtm-card__foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-weight: 600; color: var(--ink-2); }

/* Overview tiles and the directors' board view (website mockups, batch 2, Nov 2026). */
.tiles { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.tile:hover, .tile:focus-visible { border-color: var(--teal-ink); }
.tile--alert { border-color: var(--amber-ink); background: var(--amber-bg); }
.tile__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.tile__value { font-family: var(--display); font-size: 1.7rem; line-height: 1.15; }
.tile__value--small { font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tile__note { font-size: .85rem; color: var(--muted); }
.tile__bar { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--line); margin: 4px 0 2px; }
.tile__bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--teal-ink); max-width: 100%; }
.tile__bar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.decision-pack .eyebrow-small { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.decision-pack h2 { margin-top: 2px; }
.quote-bars { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.quote-bars__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.quote-bars__name { font-weight: 600; overflow-wrap: anywhere; }
.quote-bars__bar { display: block; height: 10px; border-radius: 5px; background: var(--line); position: relative; }
.quote-bars__bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--faint); }
.quote-bars__row--low .quote-bars__bar > span { background: var(--teal-ink); }
.quote-bars__price { font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .quote-bars__row { grid-template-columns: 1fr auto; } .quote-bars__bar { grid-column: 1 / -1; grid-row: 2; } }
.checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.checks li { display: flex; gap: 6px; align-items: center; }
.checks--ok { color: var(--green-ink); }
.checks--no { color: var(--red-ink); }
.ninety { list-style: none; margin: 0; padding: 0; }
.ninety li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ninety li:last-child { border-bottom: 0; }
.ninety__date { font-weight: 600; color: var(--ink-2); }

/* Residents' favourites as one stacked bar (website mockups, batch 3). Labels are in the key, never colour alone. */
.poll-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); margin: 12px 0 8px; gap: 2px; }
.poll-bar__seg { min-width: 6px; }
.poll-bar__seg--1 { background: var(--teal-ink); }
.poll-bar__seg--2 { background: var(--gold); }
.poll-bar__seg--3 { background: var(--blue-ink); }
.poll-bar__seg--4 { background: var(--purple-ink); }
.poll-bar__seg--5, .poll-bar__seg--6 { background: var(--grey-ink); }
.poll-bar__seg--none { background: var(--faint); }
.poll-key { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.poll-key li { display: flex; align-items: center; gap: 6px; }
.poll-key__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Insurance renewal quotes, side by side (batch 4) */
.renewal-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.renewal-quote { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.renewal-quote--chosen { border-color: var(--green-deep); box-shadow: 0 0 0 1px var(--green-deep) inset; }
.renewal-quote .quote-bars__bar > span { background: var(--teal); }
.renewal-quote__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.renewal-quote__facts dt { font-size: .8rem; color: var(--muted); }
.renewal-quote__facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- planned maintenance (13 Nov 2026) ---------- */
.ppm-years { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ppm-year { padding: 12px 0; border-top: 1px solid var(--soft-2); display: flex; flex-direction: column; gap: 6px; }
.ppm-year:first-child { border-top: 0; }
.ppm-year__head { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.ppm-bar { display: block; height: 8px; border-radius: 4px; background: var(--soft-2); overflow: hidden; }
.ppm-bar > span { display: block; height: 100%; background: var(--green-deep); border-radius: 4px; }
.ppm-year__items { margin: 0; padding-left: 18px; font-size: 0.9375rem; display: flex; flex-direction: column; gap: 4px; }

/* ---------- budgets and consultation (13 Nov 2026) ---------- */
.budget-total { font-size: 1.0625rem; }
.budget-lines { list-style: none; margin: 0; padding: 0; }
.budget-line { padding: 14px 0; border-top: 1px solid var(--soft-2); display: flex; flex-direction: column; gap: 6px; }
.budget-line:first-child { border-top: 0; }
.budget-line__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.budget-line__amt { font-weight: 700; white-space: nowrap; }
.budget-comment { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--soft); display: flex; flex-direction: column; gap: 4px; }
.budget-comment__answer { border-left: 3px solid var(--green-deep); padding-left: 10px; margin-top: 4px; }
.steps-mini { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding-left: 18px; }
.steps-mini .done { color: var(--green-ink); }
.steps-mini .now { font-weight: 700; }
.steps-mini .done::marker { content: "✓ "; }
.budget-edit { border: 0; border-top: 1px solid var(--soft-2); padding: 14px 0 6px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.budget-edit legend { padding: 0; font-size: 0.9688rem; }
/* year review (13 Nov 2026): big numbers with a plain sentence under each */
.review-tiles .tile__num { font-family: var(--display); font-size: 1.75rem; font-weight: 500; line-height: 1.1; }
.review-tiles .tile__label { text-transform: none; letter-spacing: 0; font-size: 0.875rem; font-weight: 500; }
@media (max-width: 640px) { .review-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
ul.list, ol.list { list-style: none; margin: 0; padding: 0; }

/* Codex R3-UI-001: the team building picker fitted at 375px but ran off a 320px screen */
.building-switch { min-width: 0; max-width: 100%; }
.header-tools .building-switch select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
@media (max-width: 360px) { .header-tools .building-switch select { width: 100%; } }

/* A leaseholder's own account, one line on the Money page (14 Nov 2026) */
.my-account-line { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between;
  margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line, #E2D9C8); border-radius: 12px; background: #fff; }
.pay-details { display: grid; gap: 12px; margin: 0 0 12px; }
.pay-details dt { color: var(--muted, #5F6F6B); font-size: .9rem; }
.pay-details dd { margin: 0; font-size: 1.15rem; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.pay-details dd, .list-item__title { overflow-wrap: anywhere; }

/* Statement on a phone (UI pass, 14 Nov 2026): each line is a small card, so the money is never off-screen */
@media (max-width: 600px) {
  .statement-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .statement-table, .statement-table tbody { display: block; width: 100%; }
  .statement-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0;
    border-bottom: 1px solid var(--line, #E2D9C8); }
  .statement-table td, .statement-table th { display: block; padding: 0; border: 0; text-align: left; }
  .statement-table td:empty { display: none; }
  .statement-table td.nowrap { grid-column: 1 / -1; color: var(--muted, #5F6F6B); font-size: .9rem; }
  .statement-table th[scope="row"] { grid-column: 1 / -1; }
  .statement-table td.num { grid-column: 1 / -1; display: flex; justify-content: space-between; }
  .statement-table td.num::before { content: attr(data-label); color: var(--muted, #5F6F6B); }
  .statement-table td.statement-table__balance { font-weight: 600; }
  .statement-table td.num:empty { display: none; }
  .table-wrap:has(.statement-table) { overflow: visible; }
}
.issue-notes { white-space: pre-wrap; background: var(--soft, #F3EEE2); padding: 8px 12px; border-radius: 8px; margin: 8px 0; }
@media (max-width: 600px) {
  .statement-table tr > * { min-width: 0; }
  .statement-table th[scope="row"], .statement-table__meta { overflow-wrap: anywhere; }
}
.trail { display: flex; flex-wrap: wrap; gap: 4px; }

/* The team's building page: tools grouped so they can be scanned on a phone (14 Nov 2026) */
.tool-groups { display: grid; gap: 12px; margin-top: 12px; width: 100%; }
@media (min-width: 900px) { .tool-groups { grid-template-columns: repeat(3, 1fr); } }
.tool-group { background: #fff; border: 1px solid var(--line, #E2D9C8); border-radius: 12px; padding: 12px 14px; }
.tool-group__title { font-size: .95rem; margin: 0 0 8px; color: var(--muted, #5F6F6B); font-weight: 600; }
.tool-group .row { gap: 6px; }

/* Maintenance checklist on a visit, made for a tablet (Nov 2026) */
.setup-group > summary, .checklist-group > summary { cursor: pointer; list-style: none; padding: 4px 0; }
.setup-group > summary::-webkit-details-marker, .checklist-group > summary::-webkit-details-marker { display: none; }
.checklist-row { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 14px 0; display: grid; gap: 8px; min-width: 0; }
.checklist-row__name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0; }
.checklist-row__more { display: grid; gap: 8px; grid-template-columns: auto 1fr; align-items: center; }
.checklist-row__more .field--small { grid-column: 1 / -1; }
@media (max-width: 640px) { .checklist-row__more { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: inline-block; min-width: 6.5rem; text-align: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; background: var(--card); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg__opt--ok input:checked + span { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.seg__opt--problem input:checked + span { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.seg__opt--not_seen input:checked + span, .seg__opt--na input:checked + span { background: var(--muted); border-color: var(--muted); color: #fff; }
.checklist-submit { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--paper) 30%); }
.btn--big { padding: 16px 28px; font-size: 1.1rem; }
.checklist-row:last-child { border-bottom: 0; }
.seg__opt--cond-good input:checked + span { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.seg__opt--cond-fair input:checked + span { background: var(--amber-ink); border-color: var(--amber-ink); color: #fff; }
.seg__opt--cond-poor input:checked + span, .seg__opt--cond-failed input:checked + span { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }

/* "Know your block" quizzes for directors (induction/quizzes.py, 16 Nov 2026) */
.quiz-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin: 0 0 18px; }
.quiz-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; }
.quiz-card h3 { margin: 0 0 6px; }
.quiz-card p { margin: 0 0 8px; }
.quiz-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-q { margin: 0; min-width: 0; }
.quiz-q__prompt { float: left; width: 100%; font-weight: 700; font-size: 1.0625rem; line-height: 1.4; margin-bottom: 12px; display: flex; gap: 10px; padding: 0; }
.quiz-q__n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: inline-grid; place-items: center; font-size: 0.875rem; }
.quiz-a { margin: 0; }
.quiz-a h2 { margin: 0 0 8px; }
.quiz-a p { margin: 0 0 8px; }
.quiz-a p:last-child { margin-bottom: 0; }
.quiz-a--knew { box-shadow: none; border: 1px solid var(--line); }
.quiz-next { margin-top: 22px; }
.quiz-section { margin-top: 26px; }
.quiz-section > p { margin: 4px 0 14px; }
.quiz-q__prompt + .choices { clear: both; }

/* Residents rate regular services (16 Nov 2026) */
.rate-form fieldset { border: 0; padding: 0; margin: 0; }
.rate-form .row { gap: 12px; }

/* Resident engagement strategy (engagement app, 17 Nov 2026) */
.engage-facts dt { font-size: 0.875rem; color: var(--muted); }
.engage-facts dd { font-weight: 700; margin: 0 0 10px; }

/* Areas to check and the walk-round (visits, 18 Nov 2026) */
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.area-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.area-row__fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.area-row__fields .form-field { margin: 0; }
.area-row__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wr-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin: 0 0 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.wr-bar--warn { background: #FFF6E5; border-color: #E8C87A; }
.wr-bar__state { font-weight: 600; }
.wr-section { margin: 0 0 26px; }
.wr-section > h2 { margin: 0 0 12px; }
.wr-group { margin: 18px 0 8px; font-size: 1rem; color: var(--muted); }
.wr-line { margin: 0 0 12px; display: grid; gap: 10px; }
.wr-line__title { margin: 0; font-size: 1.125rem; }
.wr-line > p { margin: 0; }
.wr-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.wr-choice { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; background: #fff; }
.wr-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wr-choice:has(input:checked) { border-color: var(--teal, #0E6B5C); background: #E6F3F0; }
.wr-choice--attention:has(input:checked), .wr-choice--problem:has(input:checked), .wr-choice--poor:has(input:checked), .wr-choice--failed:has(input:checked) { border-color: #B54708; background: #FEF0E6; }
.wr-choice:has(input:focus-visible) { outline: 3px solid var(--focus, #1D4ED8); outline-offset: 2px; }
.wr-cam-row { display: grid; gap: 8px; }
.wr-cam { justify-self: start; min-height: 44px; }
.wr-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.wr-photo { margin: 0; width: 132px; display: grid; gap: 4px; font-size: 0.8125rem; }
.wr-photo img { width: 132px; height: 99px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.wr-photo--sent img { opacity: 0.85; }
.wr-photo__vis { font-size: 0.8125rem; padding: 4px 6px; min-height: 0; }
.wr-help { margin-top: 20px; }

/* Label and value pairs (ratings totals, the money for an idea, budget health) */
.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 4px 16px; margin: 8px 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 6px; } }

/* Demo: "how would you like to look around?" (first visit to a demo copy) */
.demo-choose { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgba(7,20,18,.55); backdrop-filter: blur(3px); animation: demo-fade .25s ease-out both; overflow-y: auto; }
.demo-choose__card { background: var(--card); border-radius: 22px; box-shadow: 0 24px 60px -12px rgba(7,20,18,.45);
  max-width: 880px; width: 100%; padding: 32px; animation: demo-rise .35s cubic-bezier(.2,.8,.2,1) both; }
.demo-choose__kicker { margin: 0 0 6px; color: var(--teal-ink); font-weight: 600; font-size: .9rem; }
.demo-choose__title { margin: 0 0 8px; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); }
.demo-choose__lead { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }
.demo-choose__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.demo-choose__option { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1.5px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--soft);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; animation: demo-rise .4s ease-out both; }
.demo-choose__option:nth-child(2) { animation-delay: .06s; }
.demo-choose__option:nth-child(3) { animation-delay: .12s; }
.demo-choose__option:hover, .demo-choose__option:focus-visible { transform: translateY(-3px); border-color: var(--teal);
  box-shadow: var(--shadow); }
.demo-choose__option strong { font-size: 1.1rem; }
.demo-choose__option span:not(.demo-choose__icon) { color: var(--ink-3); font-size: .95rem; }
.demo-choose__option em { margin-top: auto; padding-top: 6px; color: var(--teal-ink); font-style: normal; font-weight: 600; font-size: .9rem; }
.demo-choose__icon { font-size: 1.8rem; }
@keyframes demo-fade { from { opacity: 0; } }
@keyframes demo-rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .demo-choose, .demo-choose__card, .demo-choose__option { animation: none; transition: none; }
}
.demo-welcome { max-width: 880px; margin: 24px auto; }
.demo-welcome .demo-choose__card { max-width: none; }
.demo-welcome__name { max-width: 420px; }
.demo-welcome .demo-choose__card { animation: demo-rise .35s cubic-bezier(.2,.8,.2,1) both; }
.demo-welcome fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.demo-welcome__legend { grid-column: 1 / -1; font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; padding: 0; }
.demo-choose__option { font: inherit; text-align: left; cursor: pointer; }
/* The short introduction before each tour (Sam, 28 Nov 2026) */
.demo-intro { max-width: 640px; margin: 24px auto; }
.demo-intro__card { padding: 28px; }
.demo-intro__slides { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.demo-slide { display: grid; gap: 6px; }
.demo-intro--js .demo-slide { min-height: 13.5em; align-content: start; animation: demo-rise .3s ease-out both; }
.demo-intro--still .demo-slide { animation: none; }
.demo-slide__icon { font-size: 2.4rem; line-height: 1; }
.demo-slide__title { margin: 6px 0 0; font-family: var(--display); font-size: clamp(1.35rem, 4.5vw, 1.75rem); }
.demo-slide__title:focus { outline: none; }
.demo-slide__title:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.demo-slide__text { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink-2, #33403c); max-width: 54ch; }
.demo-intro__dots { display: flex; gap: 8px; margin: 18px 0 0; }
.demo-intro__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.demo-intro__dots i.on { width: 22px; border-radius: 999px; background: var(--teal); }
.demo-intro--still .demo-intro__dots i { transition: none; }
.demo-intro__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.demo-intro__nav .btn { min-height: 44px; min-width: 112px; justify-content: center; }
.demo-intro__skip { margin: 14px 0 0; text-align: right; }
@media (max-width: 480px) {
  .demo-intro { margin: 8px auto; }
  .demo-intro__card { padding: 20px; }
  .demo-intro__nav .btn { flex: 1 1 40%; }
  .demo-intro__skip { text-align: center; }
}
/* Long unbroken names (a demo visitor can type anything) never push the page wider than the phone (Codex F177-02). */
h1, h2, .me, .demo-bar, .list-item__title { overflow-wrap: anywhere; }
.me { min-width: 0; max-width: 46vw; }

/* ---------- gentle motion (Sam, 20 Nov 2026): things settle into place as a page opens ----------
   Short and quiet, so it never slows anyone down. Turned off for anyone who asks their device for less motion. */
@keyframes yb-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes yb-grow-x { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: no-preference) {
  main > .card, main .cols > div > .card, main .grid > .card, main .page-head { animation: yb-rise .35s ease-out both; }
  main .cols__main > .card:nth-child(2), main .grid > .card:nth-child(2) { animation-delay: .04s; }
  main .cols__main > .card:nth-child(3), main .grid > .card:nth-child(3) { animation-delay: .08s; }
  main .cols__main > .card:nth-child(n+4), main .grid > .card:nth-child(n+4) { animation-delay: .12s; }
  main .cols__side > .card { animation-delay: .1s; }
  /* Bars (lease bands, budgets, votes, insurance, planned work) grow from the left. */
  main span[style^="width"] { transform-origin: left center; animation: yb-grow-x .8s cubic-bezier(.2,.8,.2,1) .15s both; }
  main li:nth-child(2) > * > span[style^="width"], main li:nth-child(2) span[style^="width"] { animation-delay: .22s; }
  main li:nth-child(3) span[style^="width"] { animation-delay: .29s; }
  main li:nth-child(4) span[style^="width"] { animation-delay: .36s; }
  main li:nth-child(5) span[style^="width"] { animation-delay: .43s; }
  main li:nth-child(n+6) span[style^="width"] { animation-delay: .5s; }
}
.band--mine .band__label { font-weight: 700; }
.band__you { font-size: .75rem; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }
.before-extending { margin: 4px 0 16px; padding: 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.before-extending h4 { margin: 0 0 10px; }
/* Search (Sam, 20 Nov 2026) */
.nav-search { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.search-form { display: flex; gap: 10px; margin: 0 0 18px; max-width: 640px; }
.search-form .field { flex: 1; min-width: 0; }
/* Team board (Sam, 20 Nov 2026) */
.board-item { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.board-item:last-child { border-bottom: 0; }
.board-item__main { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; min-width: 0; flex: 1 1 280px; }
.board-item__main:hover .list-item__title { text-decoration: underline; }
.board-item__act summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--green-ink); }
.board-item__act[open] { flex-basis: 100%; }
.board-item__act .form { margin-top: 10px; max-width: 420px; gap: 10px; }
.board-note { padding: 10px 0; border-bottom: 1px solid var(--line); }
.board-note p { margin: 0 0 4px; }
.board-note--pinned { background: var(--soft); margin: 0 -12px; padding: 10px 12px; border-radius: 10px; }

/* Demos page (Sam, 20 Nov 2026: "messy and chaotic"): tabs, a search box and one collapsible card per request. */
.demo-tabs { margin: 0 0 14px; }
/* Each demo's link, to copy again (Sam, 28 Nov 2026) */
.demo-actions { min-width: 280px; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-buttons form { margin: 0; }
.demo-buttons .btn--small, .demo-link .btn--small { min-height: 36px; }
.demo-done-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.demo-done-head form { margin: 0; }
.demo-delete { margin-top: 8px; font-size: 0.8125rem; }
.demo-delete summary { cursor: pointer; color: var(--red-ink); font-weight: 600; width: fit-content; }
.demo-delete form { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.demo-delete__confirm { display: flex; gap: 6px; align-items: flex-start; max-width: 34ch; line-height: 1.4; }
.demo-note { margin: 8px 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); max-width: 34ch; }
.demo-link { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.demo-link input { flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; color: var(--ink-2, #4a5652); }
.demo-tabs a[aria-current="page"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.demo-tabs__count { display: inline-block; min-width: 1.5em; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: .8125rem; text-align: center; }
.demo-tabs a[aria-current="page"] .demo-tabs__count { background: rgba(255,255,255,.22); }
/* Narrow screens (Codex BS2-07): each demo is a card, so its name stays with its buttons and nothing scrolls sideways */
@media (max-width: 640px) {
  .demo-table-wrap { overflow-x: visible; }
  .demo-table, .demo-table tbody, .demo-table tr, .demo-table td { display: block; width: auto; }
  .demo-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo-table tr { border: 1.5px solid var(--line-field); border-radius: 14px; background: #fff; padding: 12px 14px; margin: 0 0 12px; }
  .demo-table td { border: 0; padding: 4px 0; }
  .demo-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8125rem; }
  .demo-table .demo-actions { min-width: 0; padding-top: 10px; }
  .demo-table .demo-link { flex-wrap: wrap; }
  .demo-table .demo-link input { flex: 1 1 160px; }
}
.demo-kind { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.demo-kind legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.demo-kind__option { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.demo-kind__option input { margin-top: 4px; }
.demo-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.demo-search .field { flex: 1 1 220px; min-width: 0; }
.demo-requests { display: grid; gap: 12px; }
.demo-request { border: 1.5px solid var(--line-field); border-radius: 14px; background: #fff; }
.demo-request[open] { border-color: var(--green-deep); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.demo-request__summary { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.demo-request__summary::-webkit-details-marker { display: none; }
.demo-request__who { grid-column: 1; overflow-wrap: anywhere; }
.demo-request__meta { grid-column: 1; }
.demo-request__chips { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.demo-request__body { padding: 0 16px 16px; border-top: 1px solid var(--line-field); }
.demo-request__facts { margin: 12px 0; display: grid; gap: 4px; }
.demo-request__facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; }
.demo-request__facts dd { margin: 0; overflow-wrap: anywhere; }
.demo-request__summary { position: relative; padding-right: 44px; }
.demo-request__summary::after { content: ""; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.demo-request[open] > .demo-request__summary::after { transform: rotate(225deg); top: 26px; }
.demo-request__summary:hover { background: rgba(0,0,0,.02); }
@media (max-width: 480px) { .demo-request__summary { grid-template-columns: 1fr; } .demo-request__chips { grid-column: 1; grid-row: auto; justify-content: flex-start; } .demo-request__facts > div { grid-template-columns: 1fr; gap: 0; } }
@media (forced-colors: active) { .demo-tabs a[aria-current="page"] { border: 2px solid CanvasText; text-decoration: underline; } }
/* Team dashboard: buildings with no safety checks set up, folded into one row (20 Nov 2026) */
.list-item--details { display: block; }
.list-item--details > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.list-item--details > summary::-webkit-details-marker { display: none; }
.list-item--details > summary::after { content: "Show"; margin-left: auto; font-size: .8125rem; color: var(--green-deep); text-decoration: underline; }
.list-item--details[open] > summary::after { content: "Hide"; }
.list-item--details ul { margin: 8px 0 0; padding-left: 18px; columns: 2; }

/* "How are we doing?" survey (20 Nov 2026) */
.survey-q { margin: 0 0 18px; }
.choices--rating { display: flex; flex-wrap: wrap; gap: 6px; }
.choices--rating .choice { flex: 1 1 auto; min-width: 0; padding: 6px 10px; min-height: 40px; }
.choices--rating .choice__title { font-size: .8125rem; white-space: nowrap; }
.survey-comments .list-item__body { white-space: normal; overflow-wrap: anywhere; }
.demo-search input[type="search"] { flex: 1 1 260px; max-width: 480px; }
/* Edit service-charge year: one folded row per heading (Codex round 7 UI review, 20 Nov 2026) */
.year-line { padding: 0; }
.year-line > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 16px; cursor: pointer; }
.year-line > summary::after { content: "Edit"; margin-left: auto; font-size: .8125rem; color: var(--green-deep); text-decoration: underline; }
.year-line[open] > summary::after { content: "Close"; }
.year-line > :not(summary) { margin-left: 16px; margin-right: 16px; }
.year-line[open] { padding-bottom: 14px; }
/* Team board filters (Codex round 7 UI review, 20 Nov 2026) */
.board-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 16px; }
.board-filters .form-field { margin: 0; min-width: 160px; flex: 1 1 160px; }
.board-filters__go { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
@media (max-width: 480px) { .board-filters .form-field { flex-basis: 100%; } }
/* On-page contents for long pages (Codex round 7 UI review, item 12) */
.page-contents { margin-bottom: 16px; }
.page-contents ol { margin: 6px 0 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; }
.page-contents li { margin: 0 0 6px; break-inside: avoid; }
/* Jump links at the top of long pages (Codex round 8) */
.jump-links { margin: 0 0 14px; color: var(--muted); }
.jump-links a { white-space: nowrap; }
/* Phones: the team bar is one row you can scroll sideways, and the building page header is tighter, so a building's
   tabs sit on the first screen (Codex round 9) */
@media (max-width: 600px) {
  .team-bar__inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 14px; padding-top: 0; padding-bottom: 0; }
  .team-bar__inner::-webkit-scrollbar { display: none; }
  .team-bar__inner > * { flex: 0 0 auto; }
  .team-bar__here { margin-left: 0; }
  .page-head--building .lead { font-size: .9375rem; margin-bottom: 8px; }
  .page-head--building .row { gap: 6px; }
  .page-head--building .row .btn { padding: 8px 12px; font-size: .875rem; min-height: 40px; }
}
.member-actions > summary { white-space: nowrap; }

/* Printable notices (Sam, 21 Nov 2026): large print for noticeboards and letterboxes */
.print-notice__tools { gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.print-notice { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 40px; display: flex; flex-direction: column; gap: 18px; font-size: 1.375rem; line-height: 1.45; color: #111; }
.print-notice h1 { font-size: 2.5rem; line-height: 1.15; margin: 0; }
.print-notice__kicker { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.print-notice__when { font-size: 1.75rem; font-weight: 700; margin: 0; }
.print-notice__body p, .print-notice__line { margin: 0 0 .6em; }
.print-notice__foot { border-top: 2px solid #111; padding-top: 14px; font-size: 1.0625rem; }
.print-notice__foot p { margin: 0 0 4px; }
@media print { .print-notice { border: 0; padding: 0; } @page { size: A4; margin: 18mm; } }

/* Codex rounds 20–21: a long building name in the switcher widened phone pages to ~480px. Cap the select so it
   shrinks and truncates instead. */
.header-tools { min-width: 0; }
.building-switch select { max-width: min(16rem, 46vw); width: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* An idea's way ahead: quotes and the formal consultation, in order (25 Nov 2026) */
.pathlist { margin: 0 0 12px; padding-left: 1.4em; display: grid; gap: 4px; }
.pathlist li { color: var(--faint); }
.pathlist .pathlist__done { color: var(--green-ink); }
.pathlist .pathlist__done::marker { content: "✓  "; }
.pathlist .pathlist__now { color: inherit; font-weight: 600; }
.works-item { margin: 14px 0 0; }
.works-item__title { font-size: 1rem; margin: 0 0 4px; }
/* Section 20 step by step (26 Nov 2026) */
.s20-steps { padding-left: 1.4em; display: grid; gap: 14px; margin: 0; }
.s20-steps__title { font-weight: 600; margin: 0 0 2px; }
.s20-steps__item--done .s20-steps__title { color: var(--green-ink); }
.s20-steps__item--done::marker { content: "✓  "; }
.s20-steps__item--later { opacity: .7; }
.s20-obs { border-top: 1px solid var(--line, #ddd); padding-top: 8px; margin-top: 8px; }
.wrap-anywhere, .wrap-anywhere code { overflow-wrap: anywhere; word-break: break-all; }

/* Board Support or Full management? (29 Nov 2026): the demo slides and the "Who does what" panel */
.compare-levels { display: grid; gap: 10px; }
.compare-levels__group { margin: 0; }
details.reveal .compare-levels { margin-top: 4px; }

/* Lease reading (leasereading): the readable copy beside the original, with unclear words highlighted, not guessed. */
.lease-copy { max-height: 75vh; overflow: auto; padding-right: 8px; }
.lease-copy .lease-page { border-top: 1px dashed var(--grey-bg); padding-top: 8px; margin-top: 16px; }
.lease-unclear { background: var(--amber-bg); color: var(--amber-ink); padding: 0 2px; border-radius: 3px; }

/* Help search (accounts/help_search) */
.help-search { margin: 0 0 16px; }
.help-search .row { gap: 8px; flex-wrap: nowrap; }
.help-search .input { flex: 1; min-width: 0; }
.search-results li { margin-bottom: 12px; }
.search-results mark { background: var(--amber-bg); color: inherit; padding: 0 1px; }

/* Phones (UI backlog, 21 Nov "fine to wait", done 2 Dec): shorter member cards on a building's People tab, compact
   building cards on the team dashboard, and a smaller header on the team building page so its tabs come sooner. */
@media (max-width: 36em) {
  .table--people tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; padding: 10px 0; }
  .table--people td { width: auto; }
  .table--people td:nth-child(1) { flex: 0 0 100%; }
  .table--people td:nth-child(1) br, .table--people td:nth-child(3) br, .table--people td:nth-child(4) br { display: none; }
  .table--people td:nth-child(1) .muted { margin-left: 6px; font-weight: 400; overflow-wrap: anywhere; }
  .table--people td:nth-child(2), .table--people td:nth-child(3) { flex: 0 1 auto; }
  .table--people td:nth-child(2)::before, .table--people td:nth-child(3)::before { content: none; }
  .table--people td:nth-child(2)::after { content: " ·"; color: var(--muted); }
  .table--people td:nth-child(3) .chip { margin-left: 4px; }
  .table--people td:nth-child(4) { flex: 1 1 55%; }
  .table--people td:nth-child(4) .muted { margin-left: 4px; }
  .table--people td:nth-child(5) { flex: 0 0 auto; margin-left: auto; }
  .table--people td:nth-child(5):has(details[open]) { flex-basis: 100%; }

  .table--buildings tr { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; padding: 10px 0; }
  .table--buildings td { width: auto; }
  .table--buildings td:nth-child(1) { flex: 0 0 100%; }
  .table--buildings td:nth-child(5) { flex: 0 0 100%; font-size: .875rem; color: var(--muted); }

  .page-head--building .row { gap: 6px; }
  .page-head--building .row .btn--ghost { padding: 6px 10px; font-size: .875rem; min-height: 0; }
  .page-head--building .lead { font-size: .9375rem; margin-bottom: 4px; }
}
