:root{--wine:#7b1324;--ink:#173041;--muted:#64747d;--cream:#f5f3ee;--line:#e2e4e3;--green:#27694f}*{box-sizing:border-box}body{margin:0;background:#fafbf9;color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.5}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #bb9347;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.8px}h1{font-size:clamp(2rem,3vw,3rem);line-height:1.15;margin-bottom:12px}h2{font-size:1.7rem;margin-bottom:7px}h3{font-size:1.05rem;margin-bottom:8px}p{margin-bottom:16px}.prototype-bar{display:flex;align-items:center;gap:20px;background:#f0e6c9;padding:9px max(4vw,20px);color:#624c1e;font-size:.75rem}.prototype-bar>strong{font-size:.65rem;letter-spacing:1.2px;white-space:nowrap}.prototype-bar label{margin-left:auto;white-space:nowrap}.prototype-bar select{padding:5px;margin-left:7px;border:1px solid #c8b88d;border-radius:5px;background:#fff8e5;font-size:.75rem}header{background:#fff;padding:19px max(4vw,20px);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center}.badge{display:grid;place-items:center;background:var(--wine);color:white;border-radius:50%;width:45px;height:45px;font-family:Georgia,serif;font-size:1.4rem}.brand strong{display:block;font-size:1.05rem}.brand small{font-size:.6rem;letter-spacing:1.7px;color:var(--muted)}.account{display:flex;align-items:center;gap:14px;font-size:.8rem;color:var(--muted)}.avatar{display:grid;place-items:center;background:var(--cream);width:34px;height:34px;border-radius:50%;font-weight:700;color:var(--wine)}.tabs{display:flex;gap:32px;padding:0 max(4vw,20px);background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.tabs a{padding:16px 0;font-size:.85rem;font-weight:600;white-space:nowrap;border-bottom:3px solid transparent}.tabs a.active{color:var(--wine);border-color:var(--wine)}main{max-width:1240px;margin:auto;padding:36px 32px 70px}.intro{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:28px}.eyebrow{font-size:.64rem;font-weight:700;color:var(--wine);letter-spacing:1.8px;margin-bottom:12px}.intro p:not(.eyebrow){color:var(--muted);margin:0;font-size:.94rem}.saved{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:.76rem;color:var(--green)}.saved small{display:block;color:var(--muted);font-size:.67rem}.dot{width:8px;height:8px;border-radius:50%;background:#2d8860}.event-bar{display:flex;align-items:end;gap:16px;background:var(--cream);padding:20px 22px;border:1px solid var(--line);border-radius:10px;margin-bottom:35px}.field{display:flex;flex-direction:column;gap:7px;font-size:.73rem;color:var(--muted);font-weight:600}.field input,.field select{border:1px solid #cbd1d2;border-radius:6px;background:white;min-height:44px;color:var(--ink);padding:9px 12px;max-width:100%}.event-bar .field{flex:1;min-width:180px}.event-info{align-self:center;font-size:.7rem;max-width:170px}.event-info small{display:block;margin-top:5px;color:var(--muted)}.tag{font-size:.63rem;letter-spacing:.4px;font-weight:700;border-radius:4px;padding:4px 7px;background:#e6e9e5;color:var(--muted)}.button{border:1px solid var(--wine);background:var(--wine);color:white;padding:11px 16px;border-radius:6px;min-height:44px;font-size:.78rem;font-weight:700;white-space:nowrap}.button:hover{background:#951d31}.button.secondary{background:white;color:var(--wine)}.button:disabled{opacity:.4;cursor:not-allowed}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.section-head p{font-size:.8rem;margin:0;color:var(--muted)}.search input{padding:10px 14px;border:1px solid var(--line);border-radius:6px;background:white;font-size:.82rem;width:240px;min-height:44px}.patrol{border:1px solid var(--line);background:white;border-radius:9px;margin-bottom:12px;overflow:hidden}.patrol summary{display:flex;align-items:center;gap:15px;list-style:none;padding:18px 22px;cursor:pointer;min-height:72px}.patrol summary::-webkit-details-marker{display:none}.patrol-mark{width:35px;height:35px;border-radius:8px;display:grid;place-items:center;background:var(--cream);color:var(--wine);font-size:.69rem;font-weight:700}.patrol summary .name{font-size:.92rem;font-weight:700;flex:1}.patrol summary .total{font-size:1.3rem;font-weight:700;font-variant-numeric:tabular-nums}.patrol summary .total small{font-size:.59rem;font-weight:500;color:var(--muted);display:block;text-align:right}.patrol summary .chevron{font-size:.8rem;color:var(--muted);margin-left:12px}.patrol[open] summary{background:#fcfaf5;border-bottom:1px solid var(--line)}.patrol[open] .chevron{transform:rotate(180deg)}.categories{display:grid;grid-template-columns:repeat(2,1fr);gap:0;padding:7px 22px 15px}.category{padding:12px 8px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eee}.category:nth-child(odd){padding-right:25px}.category:nth-child(even){padding-left:25px;border-left:1px solid #eee}.category-name{font-size:.82rem;font-weight:600}.stepper{display:flex;align-items:center;gap:7px;flex-shrink:0}.stepper button{width:44px;height:44px;border-radius:7px;border:1px solid #d3d8d5;background:white;color:var(--wine);font-size:1.5rem;line-height:1;font-weight:500}.stepper button.plus{background:var(--wine);border-color:var(--wine);color:white}.stepper button:active{transform:scale(.94)}.stepper output{font-variant-numeric:tabular-nums;font-size:1.15rem;font-weight:700;text-align:center;min-width:35px}.negative{color:#a72b3e}.patrol-note{font-size:.65rem;color:var(--muted);padding:0 30px 14px;margin:0}.board-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:15px}.segmented{background:#e9ece8;border-radius:6px;padding:4px;display:flex}.segmented button{padding:8px 14px;border:0;background:transparent;border-radius:4px;color:var(--muted);font-size:.8rem;min-height:40px}.segmented button.active{background:white;color:var(--wine);font-weight:700;box-shadow:0 1px 3px #0001}.text-link{font-size:.8rem;font-weight:600;color:var(--wine)}.small{font-size:.76rem;color:var(--muted)}#podium{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:25px 0}.podium-card{border:1px solid var(--line);background:white;border-radius:8px;padding:23px}.podium-card:first-child{background:var(--ink);color:white}.podium-card small{font-size:.65rem;letter-spacing:1px;color:var(--muted)}.podium-card:first-child small{color:#dec28c}.podium-card h3{margin:14px 0 7px;font-family:Georgia,serif;font-weight:400;font-size:1.3rem}.podium-card strong{font-size:2rem}.ranking{display:flex;align-items:center;gap:18px;padding:16px 20px;background:white;border:1px solid var(--line);border-radius:7px;margin-bottom:8px}.ranking .rank{color:var(--muted);font-size:.8rem;width:25px}.ranking .patrol-name{flex:1;font-size:.88rem;font-weight:600}.ranking strong{font-size:1.2rem}.breakdown{margin-top:30px}.breakdown summary{font-weight:600;cursor:pointer}.table-wrap{overflow-x:auto;margin-top:20px}table{border-collapse:collapse;font-size:.75rem;width:100%;background:white;white-space:nowrap}td,th{padding:12px;border-bottom:1px solid var(--line);text-align:right}td:first-child,th:first-child{text-align:left;position:sticky;left:0;background:white}th{background:var(--cream)}.history-entry,.access-entry{background:white;border:1px solid var(--line);border-radius:8px;padding:20px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:18px}.history-entry .delta{font-size:1.4rem;font-weight:700;color:var(--green);min-width:40px}.history-entry .delta.negative{color:#a72b3e}.entry-content{flex:1;min-width:0}.entry-content strong{font-size:.85rem}.entry-content p{font-size:.74rem;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.entry-actions{display:flex;gap:8px;flex-wrap:wrap}.entry-actions button{font-size:.72rem;border:1px solid var(--line);background:white;padding:9px 12px;border-radius:5px;min-height:40px;color:var(--wine)}.status{font-size:.65rem;color:var(--muted);background:var(--cream);padding:4px 8px;border-radius:4px}.invite{display:flex;gap:15px;align-items:end;margin-bottom:15px}.invite .field{flex:1;max-width:420px}.access-entry .field select{font-size:.75rem}.prototype-notes{margin-top:40px;border-top:1px solid var(--line);padding-top:20px;font-size:.7rem;color:var(--muted)}.prototype-notes strong{color:var(--ink)}.prototype-notes p{margin:9px 0}.text-button{background:none;border:none;color:var(--wine);text-decoration:underline;padding:0;font-size:.72rem;min-height:35px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:18px;padding:15px 20px;background:var(--ink);color:white;box-shadow:0 5px 30px #0003;border-radius:8px;z-index:50;font-size:.8rem;width:max-content;max-width:calc(100vw - 28px)}.toast button{color:#f4cf91;background:none;border:0;min-height:36px;font:inherit;font-weight:700}.toast #toast-close{font-size:1.3rem;color:white}.empty{padding:40px;background:white;border:1px dashed #ccd4d2;border-radius:8px;color:var(--muted);text-align:center;font-size:.85rem}dialog{border:0;border-radius:12px;padding:28px;width:520px;max-width:calc(100vw - 32px);box-shadow:0 12px 60px #0004;color:var(--ink)}dialog::backdrop{background:#14253390}.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:20px}.dialog-head h2{font-size:1.8rem}.icon-button{background:var(--cream);border:0;border-radius:50%;width:35px;height:35px;font-size:1.3rem}dialog p{font-size:.83rem;color:var(--muted)}dialog .field{margin:17px 0}dialog .button{margin-top:10px}.calendar-option{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);padding:15px;border-radius:7px;margin-top:12px}.calendar-option p{font-size:.73rem;margin:5px 0}.calendar-option strong{font-size:.86rem}.calendar-option button{font-size:.7rem}#restricted{padding:60px 25px;text-align:center;background:white;border:1px solid var(--line);border-radius:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}body.display-view .event-bar>button,body.display-view .tabs,body.display-view .account,body.display-view .prototype-notes{display:none}body.display-view main{max-width:1500px}body.display-view .intro h1{font-size:2.5rem}
@media(max-width:900px){.prototype-bar{flex-wrap:wrap;gap:8px}.prototype-bar>span{flex:1}.prototype-bar label{width:100%;margin:0}.intro{align-items:start;flex-direction:column;gap:15px}.event-bar{flex-wrap:wrap}.event-info{max-width:none;flex:1}.event-bar .field{width:60%}.categories{padding:6px 12px 14px}.category:nth-child(odd){padding-right:15px}.category:nth-child(even){padding-left:15px}.category-name{font-size:.76rem}.tabs{gap:24px}.stepper{gap:4px}.stepper output{min-width:29px}.stepper button{width:44px}}
@media(max-width:600px){main{padding:26px 16px 70px}.prototype-bar{padding:10px 16px}.prototype-bar>span{font-size:.65rem;min-width:200px}header{padding:15px 16px}.brand strong{font-size:.95rem}.account #role-label{font-size:.68rem}.tabs{gap:21px;padding:0 16px;overflow-x:auto}.tabs a{font-size:.73rem;padding:13px 0}.intro h1{font-size:2rem}.saved{font-size:.69rem}.event-bar{padding:15px;gap:12px}.event-bar .field{flex:1 1 100%}.event-bar>button{flex:1}.section-head{align-items:start;flex-direction:column;gap:16px}.search,.search input{width:100%}.categories{grid-template-columns:1fr;padding:3px 18px 13px}.category,.category:nth-child(odd),.category:nth-child(even){padding:10px 0;border-left:0}.category-name{font-size:.85rem}.stepper{gap:10px}.stepper output{min-width:35px}.stepper button{width:48px;height:48px}.patrol summary{padding:15px;gap:11px}.patrol summary .name{font-size:.82rem}.patrol-mark{width:31px;height:31px;flex-shrink:0}.patrol summary .chevron{margin-left:0}.patrol summary .total{font-size:1.2rem}.patrol-note{padding-left:18px}.board-toolbar{align-items:start;flex-direction:column}#podium{gap:8px}.podium-card{padding:15px 10px}.podium-card h3{font-size:1rem}.podium-card strong{font-size:1.6rem}.ranking{padding:13px;gap:10px}.ranking .patrol-name{font-size:.79rem}.history-entry,.access-entry{padding:16px;gap:12px;flex-wrap:wrap}.entry-content{flex:1}.entry-actions{width:100%;justify-content:end}.invite{flex-direction:column;align-items:stretch}.invite .field{max-width:none}.toast{font-size:.73rem;gap:10px;padding:10px 14px}.access-entry .field{width:100%}.account .avatar{display:none}.access-entry .entry-actions{justify-content:start}.prototype-notes{font-size:.68rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#login-view{max-width:520px;padding:30px;border:1px solid var(--line);border-radius:12px;background:white}#login-form .button{margin-top:18px}#login-status{margin-top:18px;font-size:.85rem}button:disabled{opacity:.5;cursor:wait}.saved.failed{color:#a72b3e}.saved.failed .dot{background:#a72b3e}#calendar-options{max-height:55vh;overflow-y:auto}.tabs[hidden]{display:none}#sign-out{font-size:.7rem;padding:8px 12px}
@media(max-width:600px){header{flex-wrap:wrap;gap:12px}.brand{flex-shrink:0}.account{width:100%;justify-content:space-between}.account #role-label{overflow-wrap:anywhere;min-width:0}}
