:root{--bg:#f7f5f0;--surface:#fff;--surface-2:#f0ede6;--text:#22201c;--muted:#6d675d;--border:#e2ddd2;--accent:#2f6b4f;--accent-text:#fff;--accent-soft:#e3efe8;--danger:#b3261e;--danger-soft:#fbe9e7;--warn-soft:#fdf3dc;--warn:#8a5a00;--female:#c0587e;--male:#3d6fb4;--other:#8a6fb4;--line:#b9b1a2;--radius:10px;--shadow:0 1px 2px #0000000f, 0 2px 8px #0000000d;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#171614;--surface:#211f1c;--surface-2:#2a2824;--text:#ece8e1;--muted:#a39c90;--border:#3a3731;--accent:#6fbf95;--accent-text:#0f1a14;--accent-soft:#1f3329;--danger:#f08a80;--danger-soft:#3a1f1c;--warn-soft:#362b14;--warn:#e6b65c;--female:#e08aa8;--male:#7ea6e0;--other:#b39ce0;--line:#5a554c;--shadow:0 1px 2px #0006;color-scheme:dark}}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}body.full{flex-direction:column;height:100dvh;display:flex;overflow:hidden}a{color:var(--accent)}h1{margin:0 0 .25rem;font-size:1.6rem;line-height:1.2}h2{margin:0 0 .75rem;font-size:1.1rem}.muted{color:var(--muted)}.small{font-size:.85rem}.topbar{background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:1rem;padding:.6rem 1rem;display:flex}.brand{letter-spacing:-.01em;color:var(--text);align-items:center;gap:.45rem;margin-right:.5rem;font-size:1.15rem;font-weight:750;text-decoration:none;display:flex}.brand img{flex:none;display:block}.brand-solo{justify-content:center;margin:0 0 1.5rem;font-size:1.5rem}.topbar nav{flex-wrap:wrap;flex:1;gap:.25rem;display:flex}.topbar nav a{color:var(--muted);border-radius:6px;padding:.3rem .6rem;text-decoration:none}.topbar nav a:hover{background:var(--surface-2);color:var(--text)}.topbar nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent);font-weight:600}.badge{background:var(--danger);color:#fff;text-align:center;border-radius:999px;min-width:1.3em;margin-left:.3em;padding:0 .4em;font-size:.75rem;font-weight:700;display:inline-block}.who{color:var(--muted);align-items:center;gap:.6rem;font-size:.9rem;display:flex}.guide-button{color:var(--accent);white-space:nowrap;align-items:center;gap:.35rem;font-weight:600;display:inline-flex}.guide-button span{background:var(--accent);width:1.25rem;height:1.25rem;color:var(--accent-text);border-radius:50%;place-items:center;font-size:.8rem;font-weight:800;display:inline-grid}.tour{background:0 0;border:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}.tour::backdrop{background:0 0}.tour.centred{background:#0000008c}.tour.centred .tour-spot{display:none}.tour-spot{box-shadow:0 0 0 4px var(--accent), 0 0 0 100vmax #0000008c;pointer-events:none;border-radius:12px;transition:left .25s,top .25s,width .25s,height .25s;position:fixed}.tour-card{background:var(--surface);width:min(420px,100vw - 32px);color:var(--text);border-radius:14px;padding:1.25rem 1.35rem;font-size:1.1rem;line-height:1.5;position:fixed;box-shadow:0 16px 48px #0000004d}.tour-count{color:var(--muted);margin:0 0 .25rem;font-size:.9rem;font-weight:600}.tour-card h2{margin:0 0 .5rem;font-size:1.35rem}.tour-card #tour-body{margin:0 0 1.25rem}.tour-card #tour-body p{margin:0 0 .75rem}.tour-card #tour-body p:last-child{margin-bottom:0}.tour-actions{flex-wrap:wrap;gap:.5rem;display:flex}.tour-actions button,.tour-actions .button{min-height:48px;padding:.6rem 1.1rem;font-size:1.05rem}.tour-actions [hidden]{display:none}.tour-actions .tour-action{flex-basis:100%;order:-1}.tour-actions .tour-close{color:var(--muted);background:0 0;border-color:#0000;margin-right:auto;padding-left:.25rem}@media (prefers-reduced-motion:reduce){.tour-spot{transition:none}}.main{max-width:960px;margin:0 auto;padding:1.5rem 1rem 4rem}.main.narrow{max-width:440px;padding-top:10vh}.main-full{flex:1;min-height:0;position:relative}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.25rem;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:1rem;padding:1.25rem}.grid-2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start;gap:1rem;display:grid}.stack>*+*{margin-top:.75rem}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}label,.label{margin-bottom:.25rem;font-size:.85rem;font-weight:600;display:block}.radio-row{flex-wrap:wrap;gap:.5rem;display:flex}.radio-row label{border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:8px;align-items:center;gap:.45rem;margin:0;padding:.5rem .9rem;font-size:.95rem;font-weight:500;display:flex}.radio-row label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.radio-row input{accent-color:var(--accent);margin:0}.field{margin-bottom:.9rem}.hint{color:var(--muted);font-size:.8rem;font-weight:400}input[type=text],input[type=email],input[type=password],input[type=search],input[type=tel],select,textarea{width:100%;font:inherit;color:inherit;background:var(--bg);border:1px solid var(--border);border-radius:7px;padding:.5rem .65rem}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}textarea{resize:vertical;min-height:6rem}.check{align-items:center;gap:.5rem;font-weight:500;display:flex}fieldset{border:0;margin:0 0 .5rem;padding:0}legend{margin-bottom:.6rem;padding:0;font-weight:700}button,.button{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap;border-radius:7px;justify-content:center;align-items:center;gap:.35rem;padding:.45rem .9rem;font-size:.9rem;font-weight:600;text-decoration:none;display:inline-flex}button:hover,.button:hover{background:var(--surface-2)}.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.primary:hover{background:var(--accent);filter:brightness(1.08)}.danger{color:var(--danger)}.link-button{color:var(--accent);background:0 0;border:0;padding:0;font-weight:500}.link-button:hover{background:0 0;text-decoration:underline}.link-button.danger{color:var(--danger)}form.inline{display:inline}.confirm-dialog{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:min(400px,100% - 32px);color:var(--text);padding:0;box-shadow:0 12px 40px #00000040}.confirm-dialog[open]{animation:.15s ease-out dialog-in}.confirm-dialog::backdrop{background:#0006}.confirm-dialog form{padding:1.25rem}.confirm-dialog p{margin:0 0 1.25rem}.confirm-actions{justify-content:flex-end;gap:.5rem;display:flex}.solid-danger,.solid-danger:hover{background:var(--danger);border-color:var(--danger);color:var(--surface)}@keyframes dialog-in{0%{opacity:0;transform:scale(.96)}}@media (prefers-reduced-motion:reduce){.confirm-dialog[open]{animation:none}}.notice{background:var(--accent-soft);border:1px solid color-mix(in srgb, var(--accent) 30%, transparent);border-radius:8px;margin-bottom:1rem;padding:.7rem .9rem}.notice.error{background:var(--danger-soft);border-color:color-mix(in srgb, var(--danger) 30%, transparent);color:var(--danger)}.notice.warn{background:var(--warn-soft);border-color:color-mix(in srgb, var(--warn) 30%, transparent);color:var(--warn)}.notice ul{margin:0;padding-left:1.1rem}.copy-box{gap:.5rem;margin-top:.5rem;display:flex}.copy-box input{font-family:ui-monospace,monospace;font-size:.8rem}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:.55rem .5rem}th{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-size:.8rem;font-weight:600}.table-wrap{overflow-x:auto}.pill{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:.05rem .5rem;font-size:.75rem;font-weight:600;display:inline-block}.pill.pending{background:var(--warn-soft);color:var(--warn)}.pill.approved{background:var(--accent-soft);color:var(--accent)}.pill.rejected{background:var(--danger-soft);color:var(--danger)}.people-list{margin:0;padding:0;list-style:none}.people-list li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.5rem;padding:.4rem 0;display:flex}.people-list li:last-child{border-bottom:0}dl.details{grid-template-columns:max-content 1fr;gap:.4rem 1rem;margin:0;display:grid}dl.details dt{color:var(--muted);font-size:.85rem}dl.details dd{overflow-wrap:anywhere;margin:0}.sex-dot{background:var(--line);border-radius:50%;width:.6rem;height:.6rem;margin-right:.35rem;display:inline-block}.sex-dot.female{background:var(--female)}.sex-dot.male{background:var(--male)}.sex-dot.other{background:var(--other)}details.add-existing summary{cursor:pointer;color:var(--accent);font-size:.9rem;font-weight:500}details.add-existing[open] summary{margin-bottom:.6rem}@media (width<=640px){.topbar{gap:.4rem .5rem;padding-bottom:.4rem}.brand{flex:1}.who>span{display:none}.topbar nav{scrollbar-width:none;flex-wrap:nowrap;flex:0 0 100%;order:3;overflow-x:auto}.topbar nav a{white-space:nowrap}}
