:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173c48;background:#f2f6f7;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{background:#123b47;color:white;padding:1.3rem max(1rem,calc((100vw - 1120px)/2));display:flex;justify-content:space-between;align-items:center;gap:1rem}header strong{font-size:1.7rem;letter-spacing:-.05em}header span{display:block;color:#c4d9df;font-size:.9rem}main{max-width:1120px;margin:auto;padding:1rem}h1{font-size:clamp(1.7rem,4vw,2.4rem);line-height:1.15;letter-spacing:-.04em}h2{font-size:1.3rem}button,input,select{font:inherit}button,summary{cursor:pointer}button{border:1px solid #b2c9d0;background:white;color:#173c48;border-radius:.65rem;padding:.65rem .9rem;min-height:44px;font-weight:600}button:hover{border-color:#147b72;background:#eef9f6}button:disabled{opacity:.55;cursor:wait}button.active,form>button{background:#087b69;color:white;border-color:#087b69}input,select{border:1px solid #96b1bb;padding:.65rem;border-radius:.45rem;background:white;color:#173c48;min-width:0;width:100%}label{display:block;margin:.6rem 0}label:has(input[type=checkbox]){display:inline-flex;align-items:center;gap:.4rem;margin-right:1rem}input[type=checkbox]{width:1.2rem;height:1.2rem}form{max-width:560px}form button{margin-top:.5rem}.panel{background:white;border:1px solid #d4e0e3;border-radius:1rem;padding:1.4rem;margin:1rem 0}.toolbar{display:flex;gap:1rem;align-items:center;justify-content:space-between}.toolbar label{flex:1;max-width:320px}nav{display:flex;gap:.4rem;flex-wrap:wrap;margin:1rem 0}nav button{flex:1;white-space:nowrap}.calendar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.day{min-height:120px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;font-size:.9rem;font-weight:400;gap:.35rem;padding:.85rem}.day strong{font-size:1rem}.booked{background:#d8f3e8;border-color:#75bba2}.offered{background:#fff0c8;border-color:#d6b154}.taken{background:#fde1e4;border-color:#d6959d}.waiting{background:#deedff;border-color:#8bb3e5}.closed{background:#edf0f1;color:#56646a}.muted{color:#516c76}.row{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid #dbe5e8;padding:.75rem 0;align-items:center}.row:last-child{border:0}.badge{font-size:.9rem;color:#386575}#message{min-height:1.5rem}#message.error{color:#9b273a}details{margin:1rem 0}summary{padding:.5rem 0}dialog{border:1px solid #a6bfc5;border-radius:1rem;padding:1.5rem;width:min(95vw,620px);max-height:90vh}dialog::backdrop{background:#123b4780}dialog button{margin:.3rem}.graph{width:100%;height:auto;max-height:500px}.graph text{font-size:16px;fill:#173c48}.graph line{stroke:#087b69;stroke-width:2}.graph circle{fill:#deede9;stroke:#8ab8ad}.graph polygon{fill:#087b69}.audit{font-family:ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem}#auth{max-width:650px;margin:2rem auto}:focus-visible{outline:3px solid #3570be;outline-offset:3px}[hidden]{display:none!important}@media(max-width:600px){main{padding:.7rem}.panel{padding:1rem}.calendar{gap:.4rem}.day{padding:.55rem;min-height:115px}.toolbar{flex-wrap:wrap}.toolbar label{min-width:200px}.row{flex-wrap:wrap}nav button{font-size:.9rem;padding:.6rem}header{padding:1rem}#identity{font-size:.9rem}}
[data-term-weeks]{border:1px solid #b2c9d0;border-radius:.65rem;padding:1rem}[data-term-weeks] .week-option{display:flex;flex-wrap:wrap;margin:.6rem 0;min-height:44px}[data-term-weeks] .week-option span{color:#516c76}[data-term-weeks] input{flex-shrink:0}

.graph-controls{display:flex;gap:1rem;flex-wrap:wrap}.graph-controls label{flex:1;min-width:180px}.graph-scroll,.table-scroll{overflow-x:auto}.group-graph{min-width:600px;max-height:none}.debt-edge path{fill:none;stroke:#087b69;stroke-width:2}.debt-edge.context{opacity:.25}.debt-edge text{paint-order:stroke;stroke:white;stroke-width:5px;stroke-linejoin:round;fill:#173c48}.person-node{cursor:pointer}.person-node.selected circle{fill:#123b47;stroke:#087b69;stroke-width:4}.person-node.selected text:not(.person-label){fill:white}.person-node:focus circle{stroke:#3570be;stroke-width:5}.person-label{font-weight:600}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:.6rem;border-bottom:1px solid #dbe5e8}.selected-total{background:#d8f3e8}.sample-banner{padding:.8rem;background:#fff0c8;border-radius:.6rem}.panel li{margin:.7rem 0}
.history-scroll{max-height:24rem;overflow:auto;scrollbar-gutter:stable;padding:.25rem .75rem .25rem .25rem;overscroll-behavior:contain}

.available{background:#cff4f4;border-color:#58aaa9;color:#16494d}.queued{background:#eee2fa;border-color:#ac85cb;color:#513269}.calendar-key{display:flex;flex-wrap:wrap;gap:.5rem}.calendar-key span{padding:.3rem .6rem;border-radius:.4rem;border:1px solid #96b1bb}.calendar-counts span{display:inline-block;padding:.1rem .3rem;border-radius:.25rem}.day.booked:hover{background:#d8f3e8}.day.offered:hover{background:#fff0c8}.day.taken:hover{background:#fde1e4}.day.waiting:hover{background:#deedff}.day.available:hover{background:#cff4f4}.day.queued:hover{background:#eee2fa}

#member-summary{background:#e4f1ee;border:1px solid #b9d6ce;border-radius:1rem;padding:1rem 1.3rem;margin:.5rem 0 1rem}#member-summary h2{margin:0;font-size:1.3rem}.summary-scope{margin:.3rem 0 .8rem;color:#516c76;font-size:.85rem}.summary-counts{display:flex;flex-wrap:wrap;gap:.7rem 2rem;margin:0}.summary-counts>div{display:flex;flex-direction:column-reverse}.summary-counts dt{font-size:.85rem;color:#386575}.summary-counts dd{margin:0;font-weight:700;font-size:1.4rem}header strong{font-size:clamp(1.3rem,4vw,1.9rem);letter-spacing:-.035em}@media(max-width:600px){#member-summary{padding:1rem}.summary-counts{gap:.6rem 1.2rem}.summary-counts>div{flex:1 1 120px}}
