:root { --bg: #f6f4ef; --card: #fff; --ink: #1d1b18; --mute: #6b665e; --line: #ddd7cc; --accent: #8a5a2b; --accent-ink: #fff; --ok: #2f6b3a; --bad: #a23b2a; --pill: #efe9de; }
@media (prefers-color-scheme: dark) { :root { --bg: #171512; --card: #211e1a; --ink: #ece7de; --mute: #a49d91; --line: #3a352e; --accent: #d29a5f; --accent-ink: #1d1b18; --ok: #7cc28a; --bad: #e27d6b; --pill: #2c2823; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px max(16px, calc(50% - 480px)); border-bottom: 1px solid var(--line); background: var(--card); }
.brand img { display: block; height: 24px; width: auto; }
@media (prefers-color-scheme: dark) { .brand img { filter: invert(1) hue-rotate(180deg); } }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 15px; }
.nav a[aria-current] { background: var(--pill); font-weight: 600; }
.out { margin-left: auto; }
.wrap { max-width: 960px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 26px; margin: 8px 0 14px; }
h2 { font-size: 18px; margin: 0; }
.sub, .meta { color: var(--mute); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 0 0 14px; }
.card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.narrow { max-width: 420px; margin: 40px auto; }
.stack { display: grid; gap: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 6px; padding: 9px 18px; cursor: pointer; }
button.small { padding: 5px 12px; font-size: 14px; }
button.line { background: transparent; color: var(--ink); border-color: var(--line); }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button.link { background: none; border: 0; color: var(--mute); padding: 6px; font-weight: 400; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.flash { background: var(--pill); border-left: 3px solid var(--ok); padding: 8px 12px; border-radius: 4px; }
.devnote { margin: 0; padding: 8px max(16px, calc(50% - 480px)); background: #fff3b0; color: #3b3200; font-size: 14px; }
.devnote a { color: #3b3200; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 0 16px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; color: var(--ink); text-decoration: none; }
.tile b { display: block; font-size: 32px; line-height: 1.1; color: var(--accent); }
.tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.tabs a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; }
.tabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.enquiry.new { border-left: 4px solid var(--accent); }
.details { white-space: pre-wrap; overflow-wrap: anywhere; }
.contact { margin: 0 0 8px; overflow-wrap: anywhere; }
.pill { display: inline-block; background: var(--pill); border-radius: 999px; padding: 1px 10px; font-size: 13px; white-space: nowrap; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 16px; font-size: 15px; }
.list th, .list td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { font-size: 13px; color: var(--mute); font-weight: 600; }
.list tr.done td { color: var(--mute); }
a.btn { display: inline-block; text-decoration: none; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 6px; padding: 9px 18px; }
a.btn.line { background: transparent; color: var(--ink); border-color: var(--line); }
button:disabled { opacity: .45; cursor: default; }
.card.warn { border-left: 4px solid var(--accent); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
label.check input { width: auto; }
.tile b { font-size: 20px; margin-bottom: 4px; }
.photo-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--pill); display: block; }
.thumb.none { display: grid; place-items: center; font-size: 12px; color: var(--mute); }
.list .thumb { width: 64px; height: 48px; }
.picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin: 8px 0 4px; }
.pick { display: grid; gap: 4px; font-weight: 400; font-size: 13px; position: relative; }
.pick input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; }
.pick .thumb { width: 100%; height: 96px; }
.library { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lib img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 8px; }
h3 { font-size: 16px; margin: 16px 0 6px; }
pre { white-space: pre-wrap; font: 14px/1.5 ui-monospace, Consolas, monospace; margin: 0; }
.donelist summary { cursor: pointer; color: var(--mute); margin: 10px 0; }
@media (max-width: 640px) {
  .list thead { display: none; }
  .list, .list tbody, .list tr, .list td { display: block; width: 100%; }
  .list tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .list td { border: 0; padding: 3px 12px; }
}
.card.off { opacity: .6; }
code.secret { display: block; padding: 10px 12px; background: var(--pill); border-radius: 6px; font: 15px/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }

/* passkeys (2026-10-25) */
.flash.warn { border-left-color: var(--accent); }
ol.codes { columns: 2; gap: 24px; padding-left: 22px; font-size: 1.05rem; }
ol.codes code { letter-spacing: .06em; }
@media print { .bar, .devnote, button, a.btn { display: none !important; } ol.codes { font-size: 14pt; } }
.qr { display: grid; place-items: center; }
.qr svg { width: min(240px, 70vw); height: auto; border-radius: 6px; }
