/* Nordic Oak & Courtyard Green.
   60 % Warm Alabaster (page, tables) · 30 % Courtyard Forest (headlines, ribbon, footer)
   10 % Natural Oak Gold (badges, step numbers) · Deep Charcoal text · Soft Sage Mist for
   highlighted totals and side boxes. No inline styles anywhere (strict CSP). */
:root {
  --alabaster: #F6F4EF; --forest: #1E3A2F; --oak: #C58B43; --charcoal: #222523; --sage: #E6ECE8;
  --paper: #FCFBF8; --muted: #56605A; --rule: #1E3A2F; --rule-soft: rgba(30, 58, 47, .2);
  --clay: #8A3B2A;
  /* chart series: courtyard green, oak gold, dusk blue, clay — validated for colour-blind separation on alabaster */
  --c1: #23805A; --c2: #C58B43; --c3: #467DC4; --c4: #B4533F;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 8px; --w: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--alabaster); color: var(--charcoal); font: 15px/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 28px 72px; outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--forest); margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 .8em; max-width: 72ch; }
a { color: var(--forest); text-underline-offset: 3px; }
code { font: inherit; background: var(--sage); padding: 0 4px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 0; background: var(--oak); color: var(--forest); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon.big { width: 52px; height: 52px; stroke-width: 1; color: var(--c1); }
.lede { font-size: 1.1rem; color: var(--muted); }
.hint, small { color: var(--muted); font-size: .87rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.neg { color: var(--clay); }

/* ---------- masthead and footer bar */
.masthead, .footbar { background: var(--forest); color: var(--alabaster); display: flex; align-items: center; gap: 28px; padding: 14px max(28px, calc((100vw - var(--w)) / 2 + 28px)); }
.masthead a { color: inherit; text-decoration: none; }
.masthead nav a:hover, .masthead .link:hover { text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.7rem/1 var(--serif); }
.brand .icon { color: var(--oak); width: 24px; height: 24px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.badge { background: var(--oak); color: var(--forest); font-weight: 600; font-size: .8rem; padding: 3px 10px; border-radius: 99px; }
.footbar { justify-content: space-between; flex-wrap: wrap; gap: 6px 28px; font-size: .85rem; }
.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- buttons and forms */
.btn { display: inline-flex; align-items: center; gap: 7px; font: 600 .93rem/1 var(--sans); padding: 10px 16px; border-radius: 6px; border: 1px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn .icon { width: 17px; height: 17px; }
.btn.primary { background: var(--forest); color: var(--alabaster); }
.btn.primary:hover { background: #16291f; }
.btn.quiet { border-color: var(--rule-soft); font-weight: 500; }
.btn.quiet:hover, .btn.icononly:hover { background: var(--sage); }
.btn.danger { border-color: var(--clay); color: var(--clay); }
.btn.danger:hover { background: var(--clay); color: #fff; }
.btn.icononly { border: 0; padding: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span:first-child { font-size: .87rem; color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field.grow { flex: 1 1 200px; }
input, select, textarea { font: inherit; color: var(--charcoal); background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 6px; padding: 8px 10px; width: 100%; min-width: 0; }
input:hover, select:hover, textarea:hover { border-color: var(--forest); }
input[type=number] { text-align: right; -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--forest); margin: 2px 0 0; }
input.num { max-width: 150px; padding: 5px 8px; }
.input { display: flex; align-items: center; gap: 8px; }
.input em { font-style: normal; color: var(--muted); font-size: .87rem; white-space: nowrap; min-width: 1.2em; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.invalid { border-color: var(--clay); background: #fbefea; }
.field-error { color: var(--clay); font-size: .85rem; }
.form-error { color: var(--clay); font-weight: 600; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--forest); color: var(--alabaster); padding: 12px 20px; border-radius: 6px; z-index: 50; max-width: min(90vw, 560px); }
.toast.error { background: var(--clay); }
.noscript { padding: 40px; text-align: center; }

/* ---------- property list */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 56px 0 28px; border-bottom: 1px solid var(--rule); }
.page-head .lede { margin: 12px 0 0; }
.props { list-style: none; margin: 0; padding: 0; }
.prop { display: grid; grid-template-columns: 132px minmax(180px, 1fr) minmax(0, 2fr); gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.prop:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; }
.prop-name p { margin: 4px 0 0; color: var(--muted); }
.prop-facts, .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; margin: 0; }
.prop-facts dt, .facts dt { font-size: .85rem; color: var(--muted); }
.prop-facts dd, .facts dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.facts { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.frame { margin: 0; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--rule-soft); aspect-ratio: 1; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-empty { width: 100%; height: 100%; display: grid; place-items: center; background: var(--sage); color: var(--c1); }
.frame-empty .icon { width: 44%; height: 44%; stroke-width: .8; }
.empty { text-align: center; padding: 72px 20px; }
.empty p { margin-left: auto; margin-right: auto; }
.empty h2 { margin: 12px 0 8px; }
.empty.small { padding: 36px 20px; }

/* ---------- property header (exposé), KPI ribbon, tabs */
.expose { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: end; padding: 36px 0 28px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; color: var(--muted); text-decoration: none; margin-bottom: 14px; }
.crumb:hover { color: var(--forest); }
.crumb .icon { width: 15px; height: 15px; }
.expose .lede { margin: 8px 0 14px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.badges li { background: var(--oak); color: var(--forest); font-weight: 600; font-size: .82rem; padding: 4px 12px; border-radius: 99px; }
.tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--rule); margin: 26px 0 0; overflow-x: auto; }
.tabs a { padding: 12px 0 10px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--forest); }
.tabs a[aria-current] { color: var(--forest); font-weight: 600; border-bottom-color: var(--oak); }
.view { padding-top: 26px; display: flex; flex-direction: column; gap: 30px; }

/* ---------- panels, tables */
.panel > h2, .panel-head { margin-bottom: 10px; }
.panel h3 { margin: 24px 0 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 34px 48px; align-items: start; }
.cols .panel { display: flex; flex-direction: column; gap: 14px; }
.cols .form-error, .actions { grid-column: 1 / -1; }
.actions { display: flex; gap: 12px; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .field.inline { margin-right: 8px; }
.toolbar select { min-width: 220px; }
.toolbar-label { color: var(--muted); font-size: .9rem; }
.notice { background: var(--sage); border-left: 4px solid var(--oak); border-radius: 0 var(--r) var(--r) 0; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.notice p { margin: 0; }
.scroll { overflow-x: auto; max-width: 100%; }
.scroll.tall { max-height: 640px; overflow-y: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
table.data { border-collapse: collapse; width: 100%; font-size: .93rem; }
table.data th, table.data td { padding: 8px 12px 8px 0; text-align: left; border-bottom: 1px solid var(--rule); font-weight: 400; vertical-align: baseline; }
table.data thead th { font-weight: 600; color: var(--forest); font-size: .85rem; white-space: nowrap; }
table.data tbody th { color: var(--charcoal); }
table.data .n { text-align: right; padding-right: 0; padding-left: 16px; white-space: nowrap; }
table.data tr.total > * { background: var(--sage); font-weight: 600; }
table.data tr.total > :first-child { padding-left: 10px; }
table.data tr.total > :last-child { padding-right: 10px; }
table.data tr.group th { font: 600 1.15rem/1.2 var(--serif); color: var(--forest); padding-top: 18px; position: sticky; left: 0; }
table.data.tight th, table.data.tight td { padding-top: 6px; padding-bottom: 6px; font-size: .9rem; }
table.data.tight tr:last-child > * { border-bottom: 0; }
table.data.totals { margin-top: 18px; }
table.data.sticky { font-size: .86rem; }
table.data.sticky thead th { position: sticky; top: 0; background: var(--alabaster); z-index: 2; }
table.data.sticky th:first-child { position: sticky; left: 0; background: var(--alabaster); z-index: 1; min-width: 250px; padding-right: 14px; white-space: nowrap; }
table.data.sticky thead th:first-child { z-index: 3; }
table.data.sticky tr.total th:first-child { background: var(--sage); }
table.data.sticky tr.group th span { position: sticky; left: 0; display: inline-block; }   /* block titles stay in view when the years are scrolled sideways */
table.data.sticky td { padding-left: 14px; }
.acts { white-space: nowrap; text-align: right; }
td.acts { padding-right: 0 !important; }

/* ---------- plan */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px 44px; align-items: start; }
.steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 4px; border-bottom: 1px solid var(--rule); }
.steps button { display: flex; align-items: center; gap: 8px; background: none; border: 0; border-radius: 99px; padding: 5px 14px 5px 5px; font: 500 .9rem/1.2 var(--sans); color: var(--muted); cursor: pointer; }
.steps button:hover { background: var(--sage); color: var(--forest); }
.steps .stepno { width: 24px; height: 24px; font-size: .95rem; background: transparent; border: 1px solid var(--oak); }
.steps button[aria-current] { background: var(--sage); color: var(--forest); font-weight: 600; }
.steps button[aria-current] .stepno { background: var(--oak); }
.steps button.has-error { color: var(--clay); }
.steps button.has-error .stepno { border-color: var(--clay); }
.plan-main { display: flex; flex-direction: column; }
.step { padding: 0 0 8px; }
.step header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stepno { width: 30px; height: 30px; border-radius: 50%; background: var(--oak); color: var(--forest); display: grid; place-items: center; font: 700 1.15rem/1 var(--serif); flex: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px 20px; }
.sublist { margin-top: 20px; }
.sublist h3 { margin-bottom: 6px; }
.rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.rowline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.rowline .field { width: 130px; }
.chart-data summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.derived { margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
.derived > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.derived dt { color: var(--muted); font-size: .9rem; }
.derived dd { margin: 0; font-weight: 600; white-space: nowrap; }
.plan-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
.sidebox { background: var(--sage); border-radius: var(--r); padding: 20px 20px 16px; }
.sidebox h2 { font-size: 1.5rem; margin-bottom: 10px; }
.sidebox table.data th, .sidebox table.data td { border-bottom-color: var(--rule-soft); }
.savebar { grid-column: 1 / -1; position: sticky; bottom: 0; background: var(--alabaster); border-top: 1px solid var(--rule); padding: 14px 0; display: flex; align-items: center; gap: 14px; z-index: 5; }
.savebar #pageno { color: var(--muted); font-size: .9rem; margin-right: auto; }
.savebar #state { color: var(--muted); }
.savebar #state.dirty { color: var(--forest); font-weight: 600; }

/* ---------- charts */
.chart h3 { margin-bottom: 4px; }
.chart-note { color: var(--muted); font-size: .87rem; margin-bottom: 8px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 6px; padding: 0; font-size: .87rem; }
.legend li { display: flex; align-items: center; gap: 7px; }
.swatch { width: 14px; height: 3px; border-radius: 2px; flex: none; display: inline-block; }
.swatch.sq { height: 10px; width: 10px; }
.swatch.s1 { background: var(--c1); } .swatch.s2 { background: var(--c2); } .swatch.s3 { background: var(--c3); } .swatch.s4 { background: var(--c4); }
.plot { position: relative; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot text { font: 11px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.plot text.cat { font-size: 12.5px; fill: var(--charcoal); }
.plot text.val { font-size: 12.5px; fill: var(--charcoal); font-weight: 600; }
.grid { stroke: var(--rule-soft); stroke-width: 1; }
.grid.zero { stroke: var(--forest); }
.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dot { stroke: var(--alabaster); stroke-width: 2; }
.line.s1 { stroke: var(--c1); } .line.s2 { stroke: var(--c2); } .line.s3 { stroke: var(--c3); } .line.s4 { stroke: var(--c4); }
.bar.s1, .dot.s1 { fill: var(--c1); } .bar.s2, .dot.s2 { fill: var(--c2); } .bar.s3, .dot.s3 { fill: var(--c3); } .bar.s4, .dot.s4 { fill: var(--c4); }
.cross { stroke: var(--forest); stroke-width: 1; }
.hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; background: var(--forest); color: var(--alabaster); border-radius: 6px; padding: 9px 12px; font-size: .85rem; pointer-events: none; min-width: 190px; z-index: 4; }
.tip strong { display: block; margin-bottom: 4px; }
.tip .row { display: flex; align-items: center; gap: 7px; }
.tip .row b { margin-left: auto; padding-left: 14px; }
.chart-data { margin-top: 6px; }
.chart-data .scroll { max-height: 300px; overflow-y: auto; margin-top: 8px; }

/* ---------- dashboard */
.asof { color: var(--muted); max-width: none; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tile { padding: 20px 22px 18px 0; }
.tile + .tile { border-left: 1px solid var(--rule-soft); padding-left: 22px; }
.tile h3 { font: 500 .9rem/1.3 var(--sans); color: var(--muted); }
.big { font: 600 2.3rem/1.15 var(--serif); color: var(--forest); margin: 4px 0; }
.sub { font-size: .87rem; color: var(--muted); margin: 0; }
.verdict { white-space: nowrap; font-weight: 600; color: var(--muted); }
.verdict .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.verdict.good { color: var(--c1); }
.verdict.behind { color: var(--clay); }
.funds { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.fund { background: var(--sage); border-radius: var(--r); padding: 20px; }
.fund > .icon { color: var(--c1); width: 26px; height: 26px; }
.fund h3 { margin: 6px 0 0; }
.fund .hint { margin: 10px 0 0; }
.fund table.data th, .fund table.data td { border-bottom-color: var(--rule-soft); }
.meter { display: block; width: 100%; max-width: 260px; height: 14px; margin: 2px 0 10px; }
.meter .track { fill: #fff; } .meter .fill { fill: var(--c1); } .meter .mark { stroke: var(--forest); stroke-width: 2; }

/* ---------- dialog */
dialog.dialog { border: 0; border-radius: var(--r); padding: 0; background: var(--alabaster); color: var(--charcoal); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog.dialog::backdrop { background: rgba(30, 58, 47, .55); }
dialog.dialog form { padding: 26px 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.dialog-body { display: flex; flex-direction: column; gap: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--rule); padding-top: 16px; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .plan, .cols, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .plan-side { position: static; max-height: none; }
  .expose { grid-template-columns: minmax(0, 1fr) 120px; gap: 20px; }
  .prop { grid-template-columns: 84px minmax(0, 1fr); }
  .prop-facts { grid-column: 1 / -1; }
  .tile + .tile { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-soft); }
}
@media (max-width: 560px) {
  main { padding: 0 16px 56px; }
  .masthead, .footbar { padding-left: 16px; padding-right: 16px; gap: 14px; }
  .masthead nav { display: none; }
  .expose { grid-template-columns: minmax(0, 1fr); }
  .expose .frame { display: none; }
  table.data.sticky th:first-child { min-width: 170px; white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .tabs a { transition: background-color .12s, color .12s; } }
@media print {
  .masthead nav, .who, .tabs, .toolbar, .savebar, .btn, .footbar { display: none !important; }
  .scroll.tall { max-height: none; overflow: visible; }
  html { font-size: 12px; }
}

/* ---------- refinements after visual review */
table.data .n + th:not(.n), table.data .n + td:not(.n) { padding-left: 24px; }
.fields .field > span:first-child { min-height: 2.7em; display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.dialog .field > span:first-child, .cols .field > span:first-child, .field.inline > span:first-child { min-height: 0; }
.fund table.data th { width: 62%; }
#d5 { max-width: 780px; }

/* ---------- lists inside a plan page, pager of the entries table */
.rowline .field.wide { width: min(100%, 440px); }
.rowline [data-f="share"] { min-width: 90px; }
[data-draw-row] .field:not(.wide) { width: 170px; }
.rowline .btn.icononly { margin-bottom: 4px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; color: var(--muted); font-size: .9rem; }

/* ---------- picture upload */
.picture-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.picture-actions { display: flex; flex-direction: column; gap: 8px; }
.pair { display: flex; gap: 8px; flex-wrap: wrap; }
input[type=file] { padding: 7px; }

.field.span2 { grid-column: span 2; }
.rowline.fixed { margin-top: -2px; }
input:disabled { background: transparent; color: var(--muted); border-style: dashed; }
input.right { text-align: right; }
[data-draw-row] .field:not(.wide), .rowline.fixed .field:not(.wide) { width: 170px; }
@media (max-width: 560px) { .field.span2 { grid-column: auto; } }

.rowline .rownote { flex-basis: 100%; margin-top: -4px; }
.rowline select { min-width: 110px; }

.facts small { display: block; margin-top: 2px; font-size: .78rem; }
.facts dd.neg, .big.neg { color: var(--clay); }

.head-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.import-summary { margin-top: 12px; }
.import-summary ul { margin: 6px 0 0; padding-left: 20px; color: var(--clay); font-size: .9rem; }

/* people and access */
.masthead nav { display: flex; gap: 22px; }
.acting { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.acting select { font: inherit; padding: 3px 8px; border-radius: 6px; border: 1px solid transparent; background: var(--alabaster); color: var(--charcoal); max-width: 220px; }
.tag { display: inline-block; background: var(--sage); color: var(--forest); font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.role-note { margin: 14px 0 0; padding: 10px 14px; background: var(--sage); border-left: 3px solid var(--oak); font-size: .92rem; max-width: 60ch; }
.tenant-name { margin: 40px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.panel-head.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 6px; }
.actions-cell { text-align: right; white-space: nowrap; }
.actions-cell .btn { margin-left: 6px; }
.invite { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) auto; gap: 14px; align-items: end; margin: 18px 0 8px; max-width: 720px; }
.invite .form-error { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .invite { grid-template-columns: 1fr; } }
[data-locked] { cursor: not-allowed; }
.acting { white-space: nowrap; }
.panel + .panel { margin-top: 36px; }

/* sign-in page: the forest panel carries the brand, the form sits on alabaster */
body.signed-out .masthead, body.signed-out .footbar { display: none; }
body.signed-out main { max-width: none; padding: 0; margin: 0; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-intro { background: var(--forest); color: var(--alabaster); padding: clamp(32px, 7vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.login-intro h1 { color: var(--alabaster); font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; max-width: 14ch; margin: 28px 0 20px; }
.login-intro .lede { color: var(--sage); max-width: 44ch; }
.login-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif, 'Cormorant Garamond', serif); font-size: 1.6rem; font-weight: 700; margin: 0; color: var(--alabaster); }
.login-brand svg { color: var(--oak); }
.login-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(246, 244, 239, .25); font-size: .92rem; color: var(--sage); max-width: 44ch; }
.login-card { align-self: center; justify-self: center; width: min(420px, calc(100% - 48px)); display: flex; flex-direction: column; gap: 16px; padding: 40px 0; }
.login-card h2 { margin: 0 0 4px; font-size: 2rem; }
.login-card p { margin: 0; }
.login-card .btn.primary { align-self: flex-start; margin-top: 6px; }
.login-links { font-size: .92rem; }
.login-notice { padding: 10px 14px; background: var(--sage); border-left: 3px solid var(--oak); }
.login-card .steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.secret { display: inline-block; margin: 6px 8px 6px 0; padding: 6px 10px; background: var(--sage); border-radius: 6px; font-size: 1rem; letter-spacing: .06em; word-break: break-all; user-select: all; }
.otp { font-variant-numeric: tabular-nums; letter-spacing: .3em; font-size: 1.3rem; max-width: 11ch; }
.login-card .link { background: none; border: 0; padding: 0; color: var(--forest); text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; } .login-intro { padding: 32px 24px; } .login-intro h1 { margin-top: 18px; } .login-note { margin-top: 20px; } }
.login-card .steps { list-style: decimal; }
.qr { width: 196px; margin: 12px 0 8px; padding: 6px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.login-card details summary { cursor: pointer; text-decoration: underline; font-size: .92rem; }
.login-card details p { margin-top: 8px; }
