/* Volunteer sign-in sheet: supplied banner, safety-orange controls and plum ink. */
:root{color-scheme:light dark;
 --bg:light-dark(#ffffff,#17111d);--ink:light-dark(#22182b,#f3eef6);--mute:light-dark(#6c6274,#a99fb1);
 --line:light-dark(#e7e2ea,#30263a);--card:light-dark(#faf8fb,#1f1727);
 --hv:#ff5b14;--hv2:light-dark(#d84500,#ff7a3d);--plum:light-dark(#3a2850,#cbb8e0);--ok:light-dark(#1f7a4d,#5fd39a);--warn:light-dark(#b3261e,#ff8a80)}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Archivo,system-ui,sans-serif;overflow-x:clip;padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.wrap{max-width:640px;margin:0 auto;padding:0 18px}
h1,h2,h3{font-stretch:75%;font-weight:800;line-height:1.08;margin:0;text-wrap:balance}
h2{font-size:30px;margin:6px 0 12px}h3{font-size:22px;margin:0 0 8px}
.top{background:#fff3b0;color:#1b0f05;border-bottom:1px solid var(--line)}
.header-banner{display:block;width:100%;max-width:1240px;height:auto;margin:0 auto}
.brand{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:14px}
.brand .t{font-weight:800;font-stretch:75%;font-size:22px;line-height:1.1}
.brand .t small{display:block;font-weight:600;font-stretch:100%;font-size:14px}
.top .sub{margin:10px 0 14px;font-weight:600}
main{padding-top:20px}
.msg{padding:12px 14px;border-radius:12px;background:var(--card);border:1px solid var(--line);margin-bottom:16px}
.msg.err{border-color:var(--warn);color:var(--warn)}
label{display:block;font-weight:600;font-size:15px;margin:14px 0 6px}
input,textarea,select{width:100%;font:inherit;font-size:16px;color:var(--ink);background:var(--bg);border:2px solid var(--line);border-radius:12px;padding:12px 14px;min-height:48px}
input.code{font-size:28px;letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums}
textarea{min-height:110px;resize:vertical}
input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid var(--hv);outline-offset:2px}
.hint{color:var(--mute);font-size:14px;margin:6px 0 0}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.check input{width:22px;height:22px;min-height:0;margin:2px 0 0;accent-color:var(--hv);flex:none}
.profile-options{border:0;padding:0;margin:18px 0}
.profile-options legend{font-weight:600;font-size:15px;padding:0}
.date-periods{border:0;padding:0;margin:0;flex:1 1 100%}
.date-periods legend{font-weight:600}
.date-periods .check{margin:8px 0}
.date-periods .row{gap:12px}
.calendar-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0 8px}
.calendar-heading strong{text-align:center}
.availability-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendar-weekday{text-align:center;font-size:12px;color:var(--mute);padding:4px 0}
.availability-calendar button{padding:8px 0;border-color:var(--line);border-radius:10px;font-size:15px}
.availability-calendar button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.availability-calendar button[aria-current=date]{box-shadow:inset 0 0 0 2px var(--hv)}
.availability-range{margin:14px 0}
.availability-range summary{cursor:pointer;min-height:44px;padding:8px 0}
.range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
button{font:inherit;font-weight:700;min-height:44px;border-radius:12px;border:2px solid var(--ink);background:var(--bg);color:var(--ink);padding:10px 16px;cursor:pointer}
button.pri{background:var(--ink);color:var(--bg)}
button.hvb{background:var(--hv);border-color:var(--hv);color:#1b0f05}
button.link{border:0;padding:6px 0;min-height:auto;text-decoration:underline;background:none;font-weight:600}
button.sm{min-height:36px;padding:4px 12px;font-size:14px;border-radius:10px}
button:disabled{opacity:.45;cursor:not-allowed}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.full{width:100%;margin-top:18px}
.card{border:2px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px;background:var(--card)}
.card.today{border:3px solid var(--ink)}
.when{font-size:14px;font-weight:700;color:var(--hv2)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:40px;padding:6px 14px;border-radius:99px;border:2px solid var(--line);font-weight:600;font-size:15px;background:var(--bg)}
.chip[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:var(--bg)}
.cat{font-size:13px;font-weight:700;color:var(--mute);margin:12px 0 6px}
.sw{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:10px}
.sw button{min-height:64px;border-color:var(--line);font-size:18px}
.sw .yes[aria-pressed=true]{background:var(--hv);border-color:var(--hv);color:#1b0f05}
.sw .no[aria-pressed=true]{background:var(--plum);border-color:var(--plum);color:var(--bg)}
.big{width:100%;min-height:96px;font-size:26px;font-stretch:80%;margin-top:12px;border-radius:18px}
.done{display:flex;gap:10px;align-items:center;margin-top:12px;padding:14px;border-radius:14px;background:var(--hv);color:#1b0f05;font-weight:700}
.pill{display:inline-block;font-size:12px;font-weight:700;padding:2px 9px;border-radius:99px;background:var(--line);color:var(--ink)}
.pill.u{background:var(--hv);color:#1b0f05}
.feed{list-style:none;margin:0;padding:0}
.feed li{border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-bottom:12px;background:var(--card)}
.feed li.urgent{border:2px solid var(--hv)}
.meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--mute);margin-bottom:6px}
.feed p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
/* live dashboard */
.totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 16px}
.totals div{border-radius:14px;padding:10px 12px;border:2px solid var(--line)}
.totals b{display:block;font-size:clamp(28px,8vw,40px);font-stretch:75%;line-height:1;font-variant-numeric:tabular-nums}
.totals .a{background:var(--hv);border-color:var(--hv);color:#1b0f05}
.bar{height:12px;border-radius:99px;background:var(--line);overflow:hidden;position:relative;margin:6px 0 4px}
.bar i{position:absolute;inset:0 auto 0 0;background:var(--ink);border-radius:99px}
.bar i.av{background:var(--hv);opacity:.45}
.nums{display:flex;justify-content:space-between;gap:8px;font-size:14px;font-variant-numeric:tabular-nums;flex-wrap:wrap}
.area summary{list-style:none;cursor:pointer}
.area summary::-webkit-details-marker{display:none}
.area summary h3{display:flex;justify-content:space-between;gap:8px;font-size:20px}
.short{color:var(--warn);font-weight:700}
.full-ok{color:var(--ok);font-weight:700}
.people{list-style:none;margin:10px 0 0;padding:0}
.people li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:10px 0;border-top:1px solid var(--line);align-items:center}
.people .ph{color:var(--mute);font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.people .st{font-size:13px;color:var(--mute)}
.seg{display:flex;gap:6px}
.seg button[aria-pressed=true].p{background:var(--ok);border-color:var(--ok);color:#fff}
.seg button[aria-pressed=true].x{background:var(--warn);border-color:var(--warn);color:#fff}
.needs{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px 12px;align-items:center;margin-top:8px}
.needs input{min-height:44px;text-align:right}
.list{list-style:none;padding:0;margin:0}
.insights-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px;margin-top:14px}
.insights-scroll:focus-visible{outline:3px solid var(--hv);outline-offset:2px}
.insights-table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px}
.insights-table caption{text-align:left;font-weight:700;padding:12px;background:var(--card)}
.insights-table th,.insights-table td{text-align:center;vertical-align:middle;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px;min-width:120px}
.insights-table thead th{background:var(--card)}
.insights-table th:first-child{position:sticky;left:0;text-align:left;background:var(--bg);min-width:150px;max-width:210px;overflow-wrap:anywhere;z-index:1}
.insights-table thead th:first-child{background:var(--card)}
.insights-table tr:last-child>*{border-bottom:0}
.insights-table tr>*:last-child{border-right:0}
.insights-table td .hint{display:block}
.insights-total{grid-column:1/-1}
.insights-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
.insights-tick{display:inline-block;font-size:24px;line-height:1;font-weight:800;color:var(--ok)}
.insights-views{flex-wrap:wrap}
.insights-views button{flex:1}
.planner-counts,#insights-table-controls{margin-top:24px}
.planner-counts .insights-table{min-width:680px;table-layout:fixed}
.planner-counts .insights-table th,.planner-counts .insights-table td{min-width:0;padding:8px 5px;overflow-wrap:anywhere}
.planner-counts .insights-table th:first-child{width:94px;min-width:94px;max-width:none}
.planner-counts .insights-table thead th{font-size:12px;line-height:1.25}
.planner-counts a{color:var(--plum);text-underline-offset:3px}
.planner-counts a[aria-current="date"]{text-decoration-thickness:3px}
.roster-table{min-width:680px}
.roster-table th,.roster-table td{min-width:0;text-align:left;vertical-align:top;padding:10px;overflow-wrap:anywhere}
.roster-table th:first-child{min-width:150px}
.roster-table td:nth-child(2){min-width:150px;font-variant-numeric:tabular-nums}
.roster-table td:nth-child(3){min-width:110px}
.roster-table td:nth-child(4){min-width:250px}
.insights-table th .hint{display:block;font-weight:400}
.roster-days{list-style:none;margin:0;padding:0}
.roster-days li+li{margin-top:8px}
.allocation-actions{margin-top:14px}
.allocation-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;align-items:start}
.allocation-category,.allocation-pool{border:2px dashed var(--line);border-radius:12px;padding:12px;margin-bottom:12px;min-width:0}
.allocation-category h4,.allocation-preference h4{margin:4px 0 10px;overflow-wrap:anywhere}
.allocation-category.drag-over,.allocation-pool.drag-over{border-color:var(--ok);background:var(--card)}
.allocation-person{border:1px solid var(--line);border-radius:10px;padding:10px;margin:10px 0;background:var(--card);overflow-wrap:anywhere;cursor:grab}
.allocation-person strong,.allocation-person>.hint{display:block}
.allocation-person .row{margin-top:8px}
.allocation-person.selected{outline:2px solid var(--ok)}
.allocation-person.unavailable{border-color:var(--warn);cursor:default}
.allocation-preference{margin-top:16px}
.meal-planner-table th,.meal-planner-table td{min-width:0;padding:8px}
.meal-planner-table th:first-child{min-width:105px}
.meal-planner-table tfoot{font-weight:700}
.insights-views button[aria-pressed=true]{background:var(--hv);border-color:var(--hv);color:#1b0f05}
.availability-chart svg{display:block;width:100%;min-width:812px}
.chart-grid{stroke:var(--line);stroke-width:1}
.chart-label,.chart-count{fill:var(--ink);font-size:13px}
.chart-count{font-weight:700}
.volunteer-bar.morning,.meal-bar.lunch{fill:var(--ok)}
.volunteer-bar.evening,.meal-bar.dinner{fill:var(--plum)}
.chart-legend{display:flex;gap:20px;margin-top:14px}
.chart-legend span{display:flex;align-items:center;gap:8px}
.chart-legend i{display:inline-block;width:14px;height:14px;border-radius:3px}
.chart-legend .morning,.chart-legend .lunch{background:var(--ok)}
.chart-legend .evening,.chart-legend .dinner{background:var(--plum)}
.chart-counts{margin-top:14px}
.chart-counts summary{cursor:pointer;font-weight:600}
.chart-counts .insights-table th,.chart-counts .insights-table td{min-width:0}
.food-plan-scroll{overflow-x:auto}
.food-plan-scroll:focus-visible{outline:3px solid var(--hv);outline-offset:2px}
.food-plan-table{width:100%;border-collapse:collapse}
.food-plan-table th,.food-plan-table td{padding:8px;border-bottom:1px solid var(--line);text-align:center}
.food-plan-table th:first-child{text-align:left;min-width:100px}
.food-plan-table input{min-width:64px;max-width:96px;padding:8px}
.list li{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.tabs{position:fixed;inset:auto 0 0 0;background:var(--bg);border-top:2px solid var(--ink);display:flex;justify-content:center;padding:6px 6px calc(6px + env(safe-area-inset-bottom));z-index:5}
.tabs button{flex:1;max-width:150px;border:0;background:none;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative;min-height:56px;border-radius:12px;padding:6px 4px}
.tabs svg{width:24px;height:24px}
.tabs button[aria-current=page]{background:var(--hv);color:#1b0f05}
@media(max-width:600px){
 body.expanded-tabs{padding-bottom:calc(160px + env(safe-area-inset-bottom))}
 .tabs[data-count="7"]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .tabs button{max-width:none;font-size:12px;line-height:1.15}
}
.badge{position:absolute;top:4px;right:calc(50% - 26px);background:var(--ink);color:var(--bg);font-size:11px;border-radius:99px;padding:0 6px;line-height:18px}
.sp{height:8px}
[hidden]{display:none!important}
@media (prefers-reduced-motion:no-preference){.bar i{transition:width .4s}}
