/* Fernside Portal. Colours follow the website draft: deep navy, warm gold. */
:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --text: #1c1f24;
  --muted: #5f6570;
  --line: #dedad0;
  --navy: #111222;
  --navy-text: #e9e7e1;
  --accent: #8a6a3a;          /* gold, dark enough for text on white */
  --accent-fill: #a8814b;
  --good: #1f7a4d;  --good-bg: #e3f3ea;
  --warn: #8a5a00;  --warn-bg: #fbf0d9;
  --bad: #a3261d;   --bad-bg: #fbe4e1;
  --info: #22508f;  --info-bg: #e3ecf8;
  --wedding: #7a3e62; --corporate: #22508f; --stay: #1f6f6b; --celebration: #8a5a00;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1a1d23;
    --surface-2: #22262e;
    --text: #e8e9ec;
    --muted: #a0a6b1;
    --line: #2f343d;
    --navy: #0b0c16;
    --accent: #d4b07a;
    --accent-fill: #c9a36b;
    --good: #7fd1a6;  --good-bg: #173327;
    --warn: #f0c46a;  --warn-bg: #3a2e12;
    --bad: #f19a90;   --bad-bg: #3d1c19;
    --info: #9cc0f2;  --info-bg: #19283d;
    --wedding: #e0a3c6; --corporate: #9cc0f2; --stay: #86d3cd; --celebration: #f0c46a;
  }
}

* { box-sizing: border-box; }
/* Sans-serif throughout, from fonts already on the computer (nothing downloaded: see the CSP). */
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 1rem; margin: 0 0 .6rem; }
.mt { margin-top: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 5; height: 56px; display: flex; align-items: center; gap: .8rem; padding: 0 1rem; background: var(--navy); color: var(--navy-text); border-bottom: 2px solid #c9a36b; }
.icon-btn { background: none; border: 0; color: inherit; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.wordmark { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; }
.monogram { width: 32px; height: 32px; fill: none; stroke: #c9a36b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.monogram .leaf { fill: #c9a36b; stroke: none; }
.wm-name { font-size: 1.05rem; line-height: 1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: flex; flex-direction: column; }
.wm-sub { font-size: .56rem; line-height: 1.6; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #c9a36b; }
.topbar-title { margin-left: .8rem; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.15); font-size: .95rem; color: rgba(255,255,255,.75); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .7rem; font-size: .85rem; }
.pill-demo { border: 1px solid rgba(201,163,107,.5); color: #e6c998; border-radius: 999px; padding: .15rem .6rem; font-size: .72rem; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #c9a36b; color: #111222; font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.linkish { background: none; border: 0; color: #c9a36b; cursor: pointer; padding: 0; font: inherit; }

/* ---- layout ---- */
.shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: calc(100vh - 56px); transition: grid-template-columns .15s; }
.side { background: var(--navy); color: var(--navy-text); padding: 1rem .6rem; display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 56px; height: calc(100vh - 56px); overflow: hidden; }
.side a { color: var(--navy-text); text-decoration: none; padding: .55rem .65rem; border-radius: 8px; display: flex; align-items: center; gap: .7rem; position: relative; white-space: nowrap; }
.side a:hover { background: rgba(255,255,255,.06); }
.side a.on { background: rgba(201,163,107,.18); color: #fff; }
.side a.on::before { content: ""; position: absolute; left: -.6rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: #c9a36b; }
.side .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side .label { flex: 1; }
.side a[hidden] { display: none; }
/* Admin (when shown) and Settings sit at the bottom of the sidebar. */
.side .nav-bottom, .side .nav-bottom[hidden] + a { margin-top: auto; }
.count { background: #c9a36b; color: #111222; font-size: .72rem; border-radius: 999px; padding: 0 .45rem; min-width: 1.4rem; text-align: center; }
body.nav-collapsed .shell { grid-template-columns: 64px minmax(0, 1fr); }
body.nav-collapsed .side .label { display: none; }
body.nav-collapsed .side a { justify-content: center; padding: .6rem 0; }
body.nav-collapsed .count { position: absolute; top: 2px; right: 6px; font-size: .62rem; min-width: 1.1rem; padding: 0 .3rem; }
main { padding: 1.6rem 2rem 3rem; max-width: 1400px; width: 100%; min-width: 0; }
main:focus { outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.sub { margin: .3rem 0 0; color: var(--muted); }
.crumb { margin: 0 0 .5rem; font-size: .9rem; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.2rem; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; margin-top: 1.2rem; }
.stack { display: grid; gap: 1.2rem; }
.stack-tight { display: grid; gap: .6rem; justify-items: start; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card-head { display: flex; justify-content: space-between; gap: 1rem; }
.empty { color: var(--muted); padding: 2rem; text-align: center; background: var(--surface); border-radius: var(--radius); }
.month-nav { margin-bottom: .8rem; }
.checklist { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }

/* ---- controls ---- */
.btn { font: inherit; font-size: .9rem; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--accent-fill); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.btn.small { padding: .25rem .6rem; font-size: .8rem; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, tr[data-href]:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
.draft-text[readonly] { background: var(--surface-2); }
label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.grid-form .wide { grid-column: 1 / -1; }
form.inline { display: flex; gap: .5rem; }
form.inline select { width: auto; }
.call-form { margin-bottom: 1.2rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.chip { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
input.copy { font-family: ui-monospace, monospace; font-size: .8rem; }

/* ---- badges ---- */
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: var(--surface-2); color: var(--text); }
.badge.muted { background: var(--surface-2); color: var(--muted); }
.lane { font-size: .75rem; font-weight: 600; white-space: nowrap; padding-left: .7rem; position: relative; }
.lane::before { content: ""; position: absolute; left: 0; top: .35em; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.lane-wedding { color: var(--wedding); } .lane-corporate { color: var(--corporate); } .lane-stay { color: var(--stay); } .lane-celebration { color: var(--celebration); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; }
.list th, .bars th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.list td, .bars td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tr:last-child td, .bars tr:last-child td { border-bottom: 0; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: var(--surface-2); }
.list td a { color: var(--text); font-weight: 600; text-decoration: none; }
.list.compact td, .list.compact th { padding: .45rem .5rem; }
.quote td { padding: .4rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote tr.total td { font-weight: 700; border-bottom: 0; padding-top: .6rem; }

/* ---- enquiry ---- */
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; }
.avail { font-weight: 600; }
.avail.free { color: var(--good); } .avail.hold { color: var(--warn); } .avail.taken { color: var(--bad); }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.msg { padding: .7rem .9rem; border-radius: 10px; max-width: 92%; }
.msg.in { background: var(--surface-2); }
.msg.out { background: var(--info-bg); margin-left: auto; }
.msg .meta { font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }
.msg .body { white-space: pre-wrap; }
.audit { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .9rem; }
.flags { list-style: none; margin: .7rem 0; padding: 0; display: grid; gap: .35rem; }
.flag { display: flex; gap: .5rem; align-items: baseline; font-size: .85rem; margin: 0; }
.flag .ico { flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 700; }
.flag.block .ico, .flag.block-note .ico { background: var(--bad-bg); color: var(--bad); }
.flag.block { color: var(--bad); }
.flag.ok .ico { background: var(--good-bg); color: var(--good); }
.flag.info .ico { background: var(--info-bg); color: var(--info); }
blockquote { margin: .5rem 0; padding: .6rem .9rem; border-left: 3px solid var(--accent-fill); background: var(--surface-2); border-radius: 0 8px 8px 0; }

/* ---- diary ---- */
.month { min-width: 10rem; text-align: center; }
.legend { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; align-items: center; }
.key { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dow { background: var(--surface-2); font-size: .75rem; font-weight: 600; color: var(--muted); padding: .35rem .5rem; }
.cell { background: var(--surface); min-height: 104px; padding: .3rem; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell.other { background: var(--surface-2); }
.cell.other .dnum { color: var(--muted); }
.cell.today .dnum { background: var(--navy); color: #fff; border-radius: 999px; width: 1.6rem; text-align: center; }
.dnum { font-size: .75rem; font-weight: 600; margin-bottom: 2px; }
.item { font-size: .72rem; line-height: 1.3; padding: 1px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; color: var(--text); border-left: 3px solid; }
.t-event { background: var(--wedding); } .item.t-event { background: color-mix(in srgb, var(--wedding) 16%, var(--surface)); border-color: var(--wedding); }
.t-stay { background: var(--stay); } .item.t-stay { background: color-mix(in srgb, var(--stay) 16%, var(--surface)); border-color: var(--stay); }
.t-hold { background: var(--celebration); } .item.t-hold { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--celebration) 18%, var(--surface)) 0 6px, var(--surface) 6px 10px); border-color: var(--celebration); }
.t-viewing { background: var(--corporate); } .item.t-viewing { background: color-mix(in srgb, var(--corporate) 16%, var(--surface)); border-color: var(--corporate); }

/* ---- dashboard ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.tile-label { font-size: .8rem; color: var(--muted); }
.tile-value { font-size: 1.9rem; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; margin: .2rem 0; font-variant-numeric: tabular-nums; }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: .4rem 0; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent-fill); border-radius: 999px; min-width: 4px; }
.bar { display: flex; align-items: center; gap: .5rem; min-width: 120px; }
.bar span { display: block; height: 10px; width: 0; background: var(--accent-fill); border-radius: 0 4px 4px 0; min-width: 4px; }
.bar b { font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }

/* ---- home ---- */
.count-inline { display: inline-block; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 0 .5rem; margin-left: .3rem; }
.actions { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; }
.actions li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .8rem; align-items: start; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.actions li:last-child { border-bottom: 0; }
.actions .badge { justify-self: start; }
.actions a { color: var(--text); font-weight: 600; text-decoration: none; }
.actions a:hover { text-decoration: underline; }
.coming { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.coming li { display: grid; grid-template-columns: 6.5rem .8rem 1fr; gap: .5rem; align-items: baseline; }
.coming .when { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.coming .key { margin: 0; }

/* ---- bookings ---- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg a { padding: .45rem .9rem; font-size: .9rem; color: var(--text); text-decoration: none; background: var(--surface); }
.seg a.on { background: var(--navy); color: #fff; }
.filters { display: flex; gap: .8rem 1.2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filters .chips { margin: 0; }
.filters input[type="search"] { width: 16rem; }
.inline-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; }
.inline-label select { width: auto; }
.inline-label input[type="checkbox"] { width: auto; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .8rem; align-items: start; }
.col { background: var(--surface-2); border-radius: var(--radius); padding: .6rem; min-height: 200px; border: 2px dashed transparent; }
.col.over { border-color: var(--accent-fill); }
.col-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .2rem .2rem .1rem; }
.col-hint { margin: 0 .2rem .6rem; }
.col-cards { display: grid; gap: .5rem; }
.col-empty { text-align: center; padding: 1rem 0; margin: 0; }
.col-lost { opacity: .8; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; display: grid; gap: .25rem; cursor: grab; }
.bcard:hover { border-color: var(--accent-fill); }
.bcard.dragging { opacity: .5; }
.bcard-top { display: flex; justify-content: space-between; align-items: center; }
.bcard-name { color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.3; }
.bcard-name:hover { text-decoration: underline; }
.bcard-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: .15rem; }
.bcard-flags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .15rem; }
.owner { font-size: .68rem; font-weight: 700; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.stage { background: var(--surface-2); color: var(--text); }
.stage-held, .stage-deposit { background: var(--info-bg); color: var(--info); }
.stage-booked { background: var(--good-bg); color: var(--good); }
.stage-completed { background: var(--surface-2); color: var(--good); }
.stage-lost { background: var(--surface-2); color: var(--muted); }
.mt-xs { margin-top: .25rem; }
.nomt { margin-top: 0 !important; }
form.inline.wrap { flex-wrap: wrap; }
form.inline.wrap input[type="date"] { width: auto; }
.facts select { width: auto; max-width: 100%; }

/* ---- semantic colour (always next to words) ---- */
.tone-good { color: var(--good); } .tone-warn { color: var(--warn); } .tone-bad { color: var(--bad); }
.progress span.good, .bar span.good { background: var(--good); }
.progress span.warn, .bar span.warn { background: var(--warn); }
.progress span.bad, .bar span.bad { background: var(--bad); }
.col-booked, .col-completed { box-shadow: inset 0 3px 0 var(--good); }
.col-booked .col-head b, .col-completed .col-head b { color: var(--good); }
.col-lost { box-shadow: inset 0 3px 0 var(--muted); }
.col-lost .col-head b { color: var(--muted); }

/* ---- connections ---- */
.count.bad { background: var(--bad); color: #fff; }
.conn-note { margin-top: .25rem; }
.tone-muted { color: var(--muted); }
.table-wrap.flat { border: 0; background: none; }
.skel-line.inline { display: inline-block; width: 4rem; height: .8rem; vertical-align: middle; }
.card-head select { width: auto; }

/* ---- skeleton loaders: grey shapes while something loads ---- */
.skel { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.skel-title { height: 2rem; width: 16rem; margin-bottom: 1.4rem; }
.skel-tile { height: 118px; border-radius: var(--radius); }
.skel-card { height: 320px; border-radius: var(--radius); }
.skel-list { display: grid; gap: .8rem; margin-top: .4rem; }
.skel-row { display: grid; grid-template-columns: 1.8rem 1fr 5rem; gap: .8rem; align-items: center; }
.skel-circle { width: 1.8rem; height: 1.8rem; border-radius: 50%; }
.skel-line { height: .8rem; }
.skel-line.short { width: 100%; }
.skel-line.wide { margin-top: .8rem; height: 2.2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- toast ---- */
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translate(-50%, 1rem); background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(90vw, 36rem); box-shadow: 0 6px 24px rgba(0,0,0,.25); z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

/* ---- sign-in pages ---- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--navy); }
.auth-card { background: var(--surface); border-radius: 14px; padding: 2rem; width: 100%; max-width: 400px; display: grid; gap: 1rem; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .brandline { font: 600 .7rem system-ui; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.auth-card form { display: grid; gap: .9rem; }
.auth-card .btn.primary { width: 100%; padding: .65rem; }
.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.notice { padding: .7rem .9rem; border-radius: 8px; font-size: .9rem; margin: 0; }
.notice.error { background: var(--bad-bg); color: var(--bad); }
.notice.info { background: var(--info-bg); color: var(--info); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.shown-code { font: 700 1.8rem ui-monospace, monospace; letter-spacing: .3em; display: block; margin-top: .3rem; color: var(--text); }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .shell, body.nav-collapsed .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 56px; bottom: 0; width: 220px; z-index: 4; box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  body.nav-collapsed .side { display: none; }
  body.nav-collapsed .side .label { display: inline; }
  .topbar-title, .pill-demo, .me-name, .wm-sub { display: none; }
  main { padding: 1rem; }
  .split, .split.even { grid-template-columns: minmax(0, 1fr); }
  .page-head > div:first-child { min-width: 0; }
  .msg { max-width: 100%; }
  .cell { min-height: 70px; }
  .item b { display: none; }
  .actions li { grid-template-columns: 1fr; gap: .3rem; }
  .filters input[type="search"] { width: 100%; }
}

/* The navy that anchors the light theme disappears on a dark page, so the main button turns gold.
   Last in the file so it wins over the rules above. */
@media (prefers-color-scheme: dark) {
  .btn.primary, .chip.on, .seg a.on { background: var(--accent-fill); border-color: var(--accent-fill); color: #111222; }
}
