/* Sign-in, setup and admin pages. Same tokens as the dashboard (site/style.css). */
:root {
  --bg: #F5F7F0; --card: #FFFFFF; --ink: #2B2D27; --ink-2: #5E6356; --ink-3: #6F7568;
  --brand-dk: #2F5A1C; --brand-deep: #1E3B11; --brand: #78B627; --tint: #EAF4DD; --tint-2: #F2F7EA;
  --rule: #C5DB9B; --line: #E4E9DC;
  --good: #0ca30c; --warn: #b07800; --critical: #c23434;
  --shadow: 0 1px 2px rgba(31, 45, 20, .05), 0 14px 34px -14px rgba(31, 61, 18, .18);
  --shadow-lg: 0 2px 6px rgba(31, 45, 20, .06), 0 24px 60px -20px rgba(31, 61, 18, .28);
  --r: 14px; --ease: cubic-bezier(.2, .75, .25, 1); --edge: #D9E1CD; --serif: 'Lora', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.5 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-dk); }
button, input, select { font: inherit; }
/* headings set whole in Lora, as on the dashboard and in the WCT papers (19th November 2026) */
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }

/* ------------------------------------------------------------ sign-in and setup */
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(400px, 1fr); }
.brand-side { position: relative; overflow: hidden; color: #F3F7EC; padding: 48px 56px; display: flex; flex-direction: column;
  background: var(--brand-dk); }
.brand-top { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.brand-top .arch { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.brand-top .arch img { width: 34px; height: 34px; object-fit: contain; }
.brand-mid { margin: auto 0; max-width: 520px; position: relative; z-index: 1; }
.brand-mid h1 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.08; }
.brand-mid p { margin: 18px 0 0; font-size: 18px; color: rgba(243, 247, 236, .82); max-width: 430px; }
.brand-foot { font-size: 13.5px; color: rgba(243, 247, 236, .66); position: relative; z-index: 1; }
.form-side { display: grid; place-items: center; padding: 40px 28px; }
.form-card { width: 100%; max-width: 430px; background: var(--card); border-radius: var(--r); border: 1px solid var(--edge); padding: 38px 38px 30px; }
.form-card h2 { font-size: 30px; color: var(--brand-dk); }
.form-card .lede { margin: 6px 0 24px; color: var(--ink-2); font-size: 15.5px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result.show { animation: none !important; } }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .brand-side { padding: 30px 28px; min-height: 240px; } .brand-mid { margin: 30px 0 10px; } }

.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--ink-3); }
.input, .field input, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: 13px; padding: 11px 14px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; }
.input:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(120, 182, 39, .18); }
.field input.code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: -4px 0 14px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-dk); cursor: pointer; }
.check small { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--rule); color: var(--brand-dk); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn.block { width: 100%; padding: 12px 18px; font-size: 16px; }
.btn.danger { color: var(--critical); }
.btn.danger:hover { border-color: #e7b4b4; background: #fff6f6; color: var(--critical); }
.btn.danger.armed { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn.small { padding: 5px 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.msg { min-height: 22px; margin: 4px 0 12px; font-size: 14.5px; }
.msg.err { color: var(--critical); }
.msg.ok { color: var(--brand-dk); }
.small-print { margin: 20px 0 0; font-size: 14px; color: var(--ink-3); }

/* ------------------------------------------------------------ admin */
.admin-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: var(--bg);
  border-bottom: 1px solid var(--line); }
.crumb { display: inline-flex; align-items: center; gap: 9px; background: #fff; padding: 7px 16px 7px 8px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; color: var(--ink-2); text-decoration: none; }
.crumb img { width: 28px; height: 28px; object-fit: contain; }
.crumb b { color: var(--ink); }
.crumb .here { color: var(--ink); font-weight: 600; }
.admin-top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.who { font-size: 14px; color: var(--ink-2); }
.admin-main { max-width: 1260px; margin: 0 auto; padding: 26px 32px 80px; }
.admin-head h1 { font-size: clamp(32px, 3vw, 46px); line-height: 1.12; color: var(--brand-dk); }
.admin-head p { margin: 10px 0 18px; color: var(--ink-2); max-width: 620px; }
.section { margin-top: 34px; }
.section > h2 { font-size: 22px; color: var(--brand-dk); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section > h2 em { color: var(--brand-dk); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } .admin-main, .admin-top { padding-left: 18px; padding-right: 18px; } }
.card { background: var(--card); border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--edge); min-width: 0; }
.card.muted { background: rgba(255, 255, 255, .55); box-shadow: none; border: 1.5px dashed var(--line); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.card-head h3 { font-size: 18px; font-weight: 700; }
.card-head .sp { flex: 1; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: var(--brand-dk);
  font-weight: 700; font-size: 15px; flex: none; }
.what { margin: 2px 0 14px; color: var(--ink-2); font-size: 14.5px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #F1F2EE; color: var(--ink-2); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #A7B09C; }
.pill.good { background: #E6F4DF; color: #1E6B14; } .pill.good i { background: var(--good); }
.pill.bad { background: #FBEAEA; color: #9C2525; } .pill.bad i { background: var(--critical); }
.pill.warn { background: #FFF4DB; color: #7A5600; } .pill.warn i { background: #fab219; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.card .field { margin-bottom: 12px; }
.card .field label { font-size: 13.5px; }
.card .input, .card .field input, .card .field select { padding: 9px 12px; border-radius: 11px; font-size: 15px; }
.saved { font-size: 14px; color: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.result { margin-top: 12px; font-size: 14px; padding: 10px 13px; border-radius: 12px; background: var(--tint-2); color: var(--ink-2); display: none; }
.result.show { display: block; animation: rise .4s var(--ease) both; }
.result.ok { background: #EAF6E4; color: #1E5A14; }
.result.bad { background: #FCEDED; color: #8E2222; }
.help { font-size: 14px; color: var(--ink-3); margin: 10px 0 0; }
.last { font-size: 14px; color: var(--ink-3); margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tr { width: 42px; height: 24px; border-radius: 999px; background: #D6DBCF; position: relative; transition: background .2s; flex: none; }
.switch .tr::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked + .tr { background: var(--brand-dk); }
.switch input:checked + .tr::after { transform: translateX(18px); }
.switch input:focus-visible + .tr { box-shadow: 0 0 0 4px rgba(120, 182, 39, .25); }
.refresh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.refresh-bar .stat b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.refresh-bar .stat span { font-size: 13px; color: var(--ink-3); }
.refresh-bar .sp { flex: 1; }
.log { margin-top: 14px; background: #1F2A18; color: #DDE8D0; border-radius: 14px; padding: 12px 14px; font: 12.8px/1.55 ui-monospace, 'SF Mono', Consolas, monospace;
  max-height: 220px; overflow: auto; white-space: pre-wrap; display: none; }
.log.show { display: block; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-size: 14px; color: var(--ink-2); font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.acts { text-align: right; white-space: nowrap; }
table.t td.acts .btn { margin-left: 4px; }
table.t .off { color: var(--ink-3); }
.tablewrap { overflow-x: auto; }
.audit td { font-size: 13.5px; color: var(--ink-2); }
.audit td:first-child { white-space: nowrap; color: var(--ink-3); }
.inline-form { display: grid; grid-template-columns: 1.1fr 1.2fr .8fr 1.3fr auto; gap: 10px; align-items: end; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.inline-form .field { margin: 0; }
@media (max-width: 980px) { .inline-form { grid-template-columns: 1fr 1fr; } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; background: var(--brand-deep); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .35s var(--ease); pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #8E2222; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ people, your account, joining (3.5) */
[hidden] { display: none !important; }
.admin-main.narrow { max-width: 1060px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; padding: 14px 18px; border-radius: 16px;
  background: var(--tint); border: 1.5px solid var(--rule); color: var(--brand-deep); font-size: 15px; }
.banner .btn { margin-left: auto; }
.note { margin: 2px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--tint-2); color: var(--ink-2); font-size: 14px; }
.note:empty { display: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.steps { margin: 6px 0 4px; padding-left: 22px; display: grid; gap: 16px; }
.steps li { padding-left: 4px; }
.qr { width: 196px; height: 196px; margin: 12px 0 6px; padding: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; }
.qr svg { display: block; width: 100%; height: 100%; }
code.key, .codes code { font: 600 14px/1.4 ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: .06em; background: var(--tint-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; overflow-wrap: anywhere; }
.field.code-field { max-width: 200px; margin: 10px 0 0; }
.field.code-field input { font-size: 20px; letter-spacing: .3em; text-align: center; }
.codes-box { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #FFFBEA; border: 1.5px solid #EAD48A; }
.codes-box h4 { margin: 0 0 4px; font-size: 16px; }
.codes { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.codes code { display: inline-block; font-size: 15px; padding: 5px 9px; background: #fff; }
.card.made { margin-top: 18px; border: 1.5px solid var(--rule); background: var(--tint-2); }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; font: 13.5px/1.4 ui-monospace, 'SF Mono', Consolas, monospace; }
.card textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 12px; background: #fff; color: var(--ink);
  font: 14.5px/1.5 'Source Sans 3', system-ui, sans-serif; resize: vertical; }
.actions .sp { flex: 1; }
.actions .hint { font-size: 14px; color: var(--ink-3); }
.input.slim, select.slim { padding: 5px 10px; width: auto; border-radius: 10px; font-size: 14px; }
@media (max-width: 560px) { .copyrow { flex-direction: column; } .banner .btn { margin-left: 0; } }

/* Xero: the check against the recorded figures and the account lines (admin page) */
#xero-review, #bookings-review { margin-top: 18px; }
#xero-review:empty, #bookings-review:empty { display: none; }
table.xr th.num, table.xr td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.xr tbody th { text-align: left; font-weight: 700; white-space: nowrap; }
table.xr .rec { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); }
table.xr td.diff { background: #FFF6E0; box-shadow: inset 0 0 0 1.5px #E9C46A; border-radius: 8px; }
table.xr tr.soft th, table.xr tr.soft td { color: var(--ink-2); font-weight: 400; background: var(--tint-2); }
table.xr tr.changed td { background: var(--tint); }
table.xr td.why { color: var(--ink-2); font-size: 14px; }
table.xr select.slim { max-width: 190px; }
.xr-acc { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.xr-acc > summary { cursor: pointer; font-weight: 700; color: var(--brand-dk); padding: 6px 0; }
.xr-publish { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; }
.note.bad { background: #FBEAEA; color: #7A1F1F; }
/* the bookings sheet's review: what is holding a read back, and what the read noticed */
.note.warn { background: #FFF6E0; color: #5C4300; box-shadow: inset 0 0 0 1.5px #E9C46A; }
.note.warn ul, ul.notes { margin: 6px 0 8px; padding-left: 20px; }
.note.warn li, ul.notes li { margin: 3px 0; }
.note.warn p { margin: 6px 0 0; }
.note.warn .actions { margin-top: 10px; }
ul.notes { color: var(--ink-2); font-size: 14px; }
.bk-card table.xr select.slim { max-width: 260px; }
.bk-card .bad { color: #8E2222; font-weight: 700; }
.tablewrap { position: relative; }      /* so text kept for screen readers inside a wide table scrolls with it, not with the page */
/* A phone on the private network: the header's buttons drop to a second line, and the page no longer slides sideways */
@media (max-width: 720px) { .admin-top { flex-wrap: wrap; row-gap: 8px; } .admin-top .right { margin-left: 0; flex-wrap: wrap; row-gap: 8px; } .admin-top .who { flex-basis: 100%; } }
