/* The landlord app, built on the website's look (site.css). */
.app { display: grid; gap: 18px; padding-block: 8px 64px; max-width: 760px; }
.app section:not(.card) { padding-block: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
.signin { max-width: 440px; }
input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; }
input[type="checkbox"] { width: 20px; height: 20px; padding: 0; accent-color: var(--teal); }
.row2 { display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.err { color: #b3261e; font-weight: 600; }
.test-code { background: var(--gold-soft); color: var(--gold-ink); padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.coming { list-style: none; padding: 0; display: grid; }
.coming li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px 12px; align-items: center; padding-block: 12px; border-top: 1px solid var(--line); }
.coming li .pill { grid-column: 2; justify-self: start; }
@media (min-width: 640px) { .coming li { grid-template-columns: 42px minmax(0, 1fr) auto; } .coming li .pill { grid-column: auto; } }
.coming li:first-child { border-top: 0; padding-top: 0; }
.pill { font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--sunk); color: var(--muted); }
.pill.ok { background: var(--teal-soft); color: var(--teal); }
.pill.soon { background: var(--gold-soft); color: var(--gold-ink); }
.pill.bad { background: #f8dcd8; color: #b3261e; }
.home-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.home-head h3 { font-size: 1.25rem; }
.facts { display: grid; gap: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
.facts span:first-child { color: var(--muted); }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.link { background: none; border: 0; padding: 8px 4px; color: var(--teal); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.link.danger { color: #b3261e; }
.part-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.part-form input { width: 130px; }
/* Documents: invoice and statement */
.doc-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.paper { background: #fff; color: #1d2b2a; border: 1px solid var(--line); border-radius: 6px; padding: 24px 20px; display: grid; gap: 16px; box-shadow: 0 6px 20px rgba(29,43,42,.08); }
.paper-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid #1f5f57; padding-bottom: 12px; }
.paper-head .muted, .paper .muted { color: #5a6866; }
.paper-brand { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.paper-facts { display: grid; gap: 6px; margin: 0; }
.paper-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.paper-facts dt { color: #5a6866; font-size: .9rem; }
.paper-facts dd { margin: 0; }
.table-wrap { overflow-x: auto; }
.paper-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.paper-table th, .paper-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e1d6c4; white-space: nowrap; }
.paper-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid #1d2b2a; }
.paper-due { font-size: 1.05rem; }
.paper-foot { font-size: .8rem; color: #5a6866; border-top: 1px solid #e1d6c4; padding-top: 10px; }
@media print {
  header, .tabs, .no-print, #logout { display: none !important; }
  body { background: #fff; }
  .app { padding: 0; max-width: none; }
  .paper { border: 0; box-shadow: none; padding: 0; }
}
.rent-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.note { background: var(--teal-soft); border-radius: 12px; padding: 12px 14px; }
.arrears { border-color: #e9b8b2; }
.letter { white-space: pre-wrap; font: inherit; font-size: .95rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; overflow-wrap: anywhere; }
.row3 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.row3 > :first-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .row3 { grid-template-columns: 1.4fr 1fr 1fr; } .row3 > :first-child { grid-column: auto; } }
.clause h2 { font-size: 1rem; margin: 6px 0 4px; }
.clause p { margin: 0 0 8px; font-size: .95rem; }
.sigs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sigs p { margin: 0 0 6px; }
.warnbox { border-color: #e9b8b2; background: #fdf3f1; color: #1d2b2a; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.app > .link { justify-self: start; }
.paper-table th:first-child, .paper-table td:first-child { white-space: normal; }
.paper-table th:last-child, .paper-table td:last-child { text-align: right; }
.doc { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.doc:first-child { border-top: 0; padding-top: 0; }
.doc-main { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.doc-main b { overflow-wrap: anywhere; }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--sunk); border: 1px solid var(--line); }
.thumb.pdf { display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #b3261e; }
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.upload-row .field { flex: 1 1 160px; }
.upload-btn { cursor: pointer; }
.btn[disabled] { opacity: .45; cursor: default; }
.checklist summary { font-weight: 600; cursor: pointer; padding-block: 6px; }
.checklist .check { align-items: flex-start; }
.checklist .check input { margin-top: 3px; flex: none; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(29,43,42,.08); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: inherit; font-weight: 600; font-size: .78rem; padding: 10px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; min-height: 48px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab.on { background: var(--teal-soft); color: var(--teal); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; min-width: 0; }
.stat strong { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tenancy { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.month-nav .btn { min-width: 48px; }
.month-nav .btn[disabled] { opacity: .35; cursor: default; }
.plain { list-style: none; padding: 0; margin: 0; }
.rent-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Room at the bottom so the tab bar never covers the last card. */
.app { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media print { .tabs { display: none !important; } }

/* Easier to use: tab icons, tappable to-do rows, folded extras. */
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; font-size: .72rem; min-height: 56px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.app { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.todos { list-style: none; padding: 0; margin: 0; display: grid; }
.todos li + li { border-top: 1px solid var(--line); }
.todo { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 12px 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 64px; }
.todo-text { display: grid; gap: 3px; justify-items: start; }
.chev { color: var(--teal); font-size: 1.6rem; line-height: 1; }
details.later, details.more { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; }
details.more summary, details.later summary { color: var(--teal); min-height: 32px; align-items: center; }
details.more > p { margin-top: 8px; }
details.more[open] > .stack, details.more[open] > .acts, details.more[open] > ul { margin-top: 10px; }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.btn-grid .btn { width: 100%; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.setting > div:first-child { display: grid; gap: 2px; min-width: 0; }

/* The journey */
details.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: block; }
details.stage + details.stage { margin-top: 0; }
.stage summary { justify-content: flex-start; align-items: center; gap: 12px; }
.stage summary::after { margin-left: auto; }
.stage-n { width: 34px; height: 34px; border-radius: 50%; background: var(--sunk); color: var(--teal); display: grid; place-items: center; font-weight: 700; flex: none; }
.stage-n.ok { background: var(--teal); color: var(--teal-ink); }
.stage-t { display: grid; gap: 2px; min-width: 0; }
.jsteps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; }
.jstep { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.jbody { display: grid; gap: 4px; min-width: 0; }
.jmark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: var(--muted); }
.jstep.done .jmark { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.jstep.late .jmark { background: #b3261e; border-color: #b3261e; color: #fff; }
.jstep.na b { color: var(--muted); font-weight: 500; }
.check.tick { font-weight: 600; min-height: 40px; }
.journey-sum { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.journey-sum p { margin: 0; }
/* The papers pack */
textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; }
.check.pick { align-items: flex-start; }
.check.pick input { margin-top: 3px; flex: none; }
.mail-preview { border: 1px solid #e1d6c4; border-radius: 14px; overflow: hidden; background: #fff; color: #1d2b2a; }
.mail-top { background: #1f5f57; color: #fff; padding: 16px 18px; display: grid; gap: 4px; }
.mail-top span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.mail-top b { font-size: 1.15rem; }
.mail-body { padding: 16px 18px; display: grid; gap: 10px; }
.mail-body p { margin: 0; }
.mail-list { background: #f7f2ea; border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.mail-list .label { color: #1f5f57; }
.mail-foot { background: #faf7f2; border-top: 1px solid #e1d6c4; padding: 12px 18px; font-size: .78rem; color: #5a6866; }
/* The proof pack */
.proof-h { font-size: 1rem; margin: 6px 0 0; }
.proof-table td:first-child { width: 48%; }
.proof-table td:last-child { text-align: left; white-space: normal; }
.proof-list { margin: 0; padding-left: 18px; font-size: .92rem; display: grid; gap: 4px; }
.stack > .link[data-act="cancel"], .app > .link { justify-self: start; }

/* Check-in and check-out reports */
.ritems { display: grid; margin-top: 8px; }
.ritem { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.ritem .home-head { align-items: center; }
.ritem .link.small { font-size: .85rem; min-height: 32px; padding: 4px; color: var(--muted); }
.conds { display: flex; flex-wrap: wrap; gap: 6px; }
.cond { font: inherit; font-size: .88rem; font-weight: 600; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.cond.on.c-good { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.cond.on.c-fair { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }
.cond.on.c-poor, .cond.on.c-damaged { background: #b3261e; border-color: #b3261e; color: #fff; }
.cond.on.c-none { background: var(--sunk); border-color: var(--muted); color: var(--ink); }
.rthumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.rthumb { position: relative; display: grid; gap: 2px; }
.rthumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sunk); display: block; }
.rthumb span { font-size: .7rem; color: var(--muted); }
.rx { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(29,43,42,.75); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.tray { display: grid; gap: 10px; }
.tray li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; }
.tray img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.paper .rthumbs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 6px; }
.paper .rthumb span { color: #5a6866; }
details.room { padding: 14px 16px; }
@media print { .rx { display: none; } .paper .rthumbs { grid-template-columns: repeat(4, 1fr); } }
details.room .part-form input, #rep-newroom { flex: 1 1 160px; width: auto; min-width: 0; }
details.room .part-form, .card .part-form:has(#rep-newroom) { flex-wrap: nowrap; }
details.stage::before { display: none; }
.fp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; overflow-wrap: anywhere; }

/* AI help */
.ai-card { border-color: var(--gold); }
.ritem.ai-draft { background: var(--gold-soft); margin-inline: -16px; padding-inline: 16px; border-radius: 10px; }
.ai-flag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-room { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.ai-count { color: var(--gold-ink); }

/* Desktop: a platform layout with a side menu and a top bar. Phones keep the bottom tabs. */
.side-brand, .side-foot, .topbar { display: none; }
@media (max-width: 1023px) { .tabs.in-form { display: none; } }
@media (min-width: 1024px) {
  body { padding-left: 248px; }
  body > header { display: none; }
  .tabs { top: 0; bottom: 0; left: 0; right: auto; width: 248px; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: #183f3a; border-top: 0; box-shadow: none; }
  .tabs.in-form { display: flex; }
  .side-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.2rem; padding: 4px 8px 20px; }
  .side-brand svg { width: 34px; height: 34px; flex: none; }
  .side-brand em { font-style: italic; font-weight: 500; color: var(--gold-soft); margin-right: .06em; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: .98rem; padding: 10px 12px; min-height: 44px; color: rgba(255,255,255,.78); }
  .tab svg { width: 22px; height: 22px; }
  .tab:hover { background: rgba(255,255,255,.08); color: #fff; }
  .tab.on { background: rgba(255,255,255,.16); color: #fff; }
  .side-foot { display: grid; gap: 6px; margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.8); font-size: .88rem; }
  .side-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-out { justify-self: start; background: none; border: 0; padding: 0; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .app { max-width: 1180px; margin: 0 auto; padding: 0 36px 56px; gap: 20px; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 0; grid-column: 1 / -1; }
  .crumb { color: var(--muted); }
  .crumb b { color: var(--ink); }
  .stat { padding: 18px; }
  .stat strong { font-size: 2rem; }
  /* Home: what needs doing on the left, reminders on the right. */
  .app[data-view="overview"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .app[data-view="overview"] > section:first-of-type { grid-column: 1 / -1; }
  /* Tenants and properties: cards side by side. */
  .app[data-view="tenancies"] > section.stack, .app[data-view="homes"] > section.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .app[data-view="tenancies"] > section.stack > :not(article), .app[data-view="homes"] > section.stack > :not(article) { grid-column: 1 / -1; }
  .app[data-view="rent"] ul.plain.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  /* Everything else reads best at a comfortable width. */
  .app:not([data-view="overview"]):not([data-view="tenancies"]):not([data-view="homes"]):not([data-view="rent"]) > :not(.topbar):not(.tabs) { max-width: 880px; width: 100%; justify-self: start; }
}
@media (min-width: 1440px) {
  .app[data-view="homes"] > section.stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print { body { padding-left: 0 !important; } .topbar, .tabs { display: none !important; } }
.setting .btn, .setting .acts { flex: none; white-space: nowrap; }
.tray .pill, .ai-flag .pill { white-space: normal; border-radius: 10px; }

/* Licence checker */
.lic-q { margin: 0; min-width: 0; }
.lic-q legend { padding: 0 4px; margin-bottom: 4px; }
.lic-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.lic-opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.lic-opt > span { display: grid; gap: 2px; }
.lic-opt.on { border-color: var(--teal); background: var(--teal-soft); }
#lic-people { max-width: 140px; }
.lic-head { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--teal-soft); color: var(--ink); }
.lic-head b { font-family: var(--display); font-size: 1.2rem; color: var(--teal); }
.lic-head.soon { background: var(--gold-soft); }
.lic-head.soon b { color: var(--gold-ink); }
.lic-head.bad { background: #f8dcd8; }
.lic-head.bad b { color: #b3261e; }
.lic-rows { list-style: none; padding: 0; display: grid; }
.lic-rows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.lic-rows li:first-child { border-top: 0; }
.lic-rows li > div { display: grid; gap: 2px; min-width: 0; }
.lic-rows .pill { flex: none; }
.lic-links { list-style: none; padding: 0; display: grid; gap: 6px; }
.lic-links a { font-weight: 600; }
.lic-saved { justify-self: start; white-space: normal; }
.link.inline { min-height: 0; padding: 0; text-align: right; }

/* Repairs */
@media (max-width: 400px) { .tab { font-size: .66rem; letter-spacing: -.01em; padding-inline: 0; } }
.rp-card { gap: 12px; }
.rp-sos { border-left: 5px solid #b3261e; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.rp-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sunk); display: block; }
.rp-time { list-style: none; padding: 0 0 0 12px; margin-top: 10px; display: grid; gap: 8px; border-left: 2px solid var(--line); }
.rp-time li { display: grid; gap: 1px; font-size: .95rem; }
.rp-time li span { font-size: .8rem; color: var(--muted); }
.rp-form { display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.rp-links { list-style: none; padding: 0; display: grid; }
.rp-links li { display: grid; gap: 8px; padding-block: 12px; border-top: 1px solid var(--line); }
.rp-links li:first-child { border-top: 0; padding-top: 0; }
.rp-links li > div:first-child { display: grid; gap: 2px; }
@media (min-width: 640px) { .rp-links li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* Sale tracker (landlord view and each person's page) */
.sl-bar { height: 10px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.sl-bar span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.sl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.sl-steps { list-style: none; padding: 0; display: grid; }
.sl-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding-block: 12px; border-top: 1px solid var(--line); }
.sl-step:first-child { border-top: 0; padding-top: 0; }
.sl-dot { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.sl-done .sl-dot { background: var(--teal); border-color: var(--teal); }
.sl-doing .sl-dot { border-color: var(--gold-ink); background: var(--gold-soft); }
.sl-na .sl-dot { border-style: dashed; }
.sl-na b { color: var(--muted); text-decoration: line-through; }
.sl-mine { background: linear-gradient(90deg, var(--teal-soft), transparent 70%); border-radius: 10px; padding-inline: 6px; margin-inline: -6px; }
.sl-body { display: grid; gap: 3px; min-width: 0; }
.sl-pick select { margin-top: 6px; padding: 8px 10px; max-width: 220px; }
.sl-notes { list-style: none; padding: 0 0 0 12px; display: grid; gap: 10px; border-left: 2px solid var(--line); }
.sl-notes li { display: grid; gap: 2px; font-size: .95rem; overflow-wrap: anywhere; }
.sl-notes li span { font-size: .8rem; color: var(--muted); }
.sl-notes li.sl-auto { color: var(--muted); font-size: .9rem; }
.sl-people { list-style: none; padding: 0; display: grid; gap: 8px; }
.sl-people li { display: grid; gap: 2px; }
.sl-person { display: grid; gap: 8px; padding-block: 12px; border-top: 1px solid var(--line); }
.sl-person:first-child { border-top: 0; padding-top: 0; }
.sl-person > div:first-child { display: grid; gap: 2px; overflow-wrap: anywhere; }
.sl-sale { display: grid; gap: 8px; padding-block: 12px; border-top: 1px solid var(--line); }
.sl-sale:first-of-type { border-top: 0; }
.sl-must { background: #fbe9d0; color: #6b4310; border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.sl-must a { color: #6b4310; font-weight: 700; }
@media (min-width: 640px) { .sl-person { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* Awaab's Law clock on damp, mould and emergency repairs */
.aw-box { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.aw-box .lic-rows li { padding-block: 8px; }
.aw-note summary { font-weight: 600; }
.aw-note p { margin-top: 8px; }
