/* JHO Volunteers: camp look. Pine green, trail orange, parchment. */
:root{--bg:#F6F0E3;--card:#FFFDF8;--ink:#2A2118;--mute:#6A5B4B;--line:#E2D6BF;--acc:#B4531A;--acchover:#9A4413;--accbg:#F7E3D0;--pine:#1D3B2B;--pine2:#2E5A42;--sun:#E9873A;--ok:#1E4A34;--warn:#8A241A;--shadow:0 1px 2px rgba(42,33,24,.08),0 4px 14px rgba(42,33,24,.06)}
@media (prefers-color-scheme:dark){:root{--bg:#16190F;--card:#1F2318;--ink:#EFE8D8;--mute:#B7AC98;--line:#38402C;--acc:#E9873A;--acchover:#F29A52;--accbg:#3A2A1B;--pine:#0F1F17;--pine2:#1D3B2B;--sun:#E9873A;--ok:#8FD0AC;--warn:#F0A29A;--shadow:none}}
*{box-sizing:border-box}
html{overflow-y:scroll;scrollbar-gutter:stable}   /* always reserve the scrollbar space, so the page never jumps sideways when a tab is longer or shorter than the screen */
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.01em}
h2{font-size:22px;margin:20px 0 8px}
a{color:var(--acc)}

/* header: pine sky, a low sun and two ridges */
.top{position:relative;overflow:hidden;color:#FFF8EA;background:linear-gradient(180deg,var(--pine) 0%,var(--pine2) 100%);padding:16px 20px 54px}
.top .in{position:relative;z-index:2;max-width:1200px;margin:0 auto;display:flex;gap:14px 24px;align-items:center;flex-wrap:wrap}
.brand{display:flex;gap:12px;align-items:center;margin-right:auto}
.brand svg{flex:none}
.top h1{margin:0;font-size:24px;line-height:1.1;color:#FFF8EA}
.top .sub{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#F2C99B}
.evpick{display:flex;flex-direction:column;gap:2px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#E8DCC2}
.evpick select{min-width:190px;background:#FFF8EA;color:#2A2118;border:2px solid var(--sun);font-weight:700;letter-spacing:0;text-transform:none;font-size:16px}
.who{font-size:14px;color:#E8DCC2;background:rgba(255,248,234,.12);border:1px solid rgba(255,248,234,.25);border-radius:999px;padding:6px 14px}
.sun{position:absolute;left:56%;bottom:-30px;width:120px;height:120px;border-radius:50%;background:var(--sun);opacity:.9;z-index:1}
.ridge{position:absolute;left:0;bottom:-1px;width:100%;height:60px;z-index:1;display:block}

/* tabs: trail markers */
.tabs{max-width:1200px;margin:-26px auto 0;position:relative;z-index:3;padding:0 16px;display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin}
.tabs button{flex:none;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);font-weight:600;box-shadow:var(--shadow);cursor:pointer}
.tabs button:hover{border-color:var(--acc);color:var(--acc)}
.tabs button[aria-selected=true]{background:var(--acc);border-color:var(--acc);color:#fff}
@media (min-width:1000px){.tabs{flex-wrap:wrap;overflow:visible}}

main,#banner{padding:0 16px;max-width:1200px;margin:12px auto}
main{margin-top:18px;padding-bottom:48px}
button,select,input{font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:10px;min-height:44px;padding:0 12px}
button{cursor:pointer;font-weight:600}
button:hover:not(:disabled){border-color:var(--acc)}
button.p{background:var(--acc);border-color:var(--acc);color:#fff}button.p:hover:not(:disabled){background:var(--acchover)}
button:disabled,select:disabled,input:disabled{opacity:.5;cursor:not-allowed}
:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
input[type=checkbox],input[type=radio]{min-height:24px;width:24px;height:24px;accent-color:var(--acc)}
.banner{border-radius:12px;padding:12px 16px;display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:14px}
.banner.Sample{background:#FFF1CC;border:1px solid #E0B84A;color:#5C4400}.banner.Reviewed{background:#E3ECF7;border:1px solid #9DB8D9;color:#1F3A5A}.banner.Final{background:#E3F0E8;border:1px solid #9CC4AB;color:#1E4A34}
.banner b{display:block}.banner .btns{display:flex;gap:8px}
.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:var(--shadow)}.card h3{margin:0 0 6px;font-size:17px}
.stat{font:700 30px/1.1 Georgia,serif;color:var(--pine2)}
@media (prefers-color-scheme:dark){.stat{color:var(--sun)}}
.mute{color:var(--mute);font-size:14px}
.chip{display:inline-block;font-size:12px;font-weight:600;border-radius:999px;padding:2px 9px;background:var(--accbg);color:var(--acc);margin-right:4px}
table{border-collapse:collapse;width:100%;background:var(--card);border-radius:12px;overflow:hidden}th,td{text-align:left;padding:8px 10px;border-top:1px solid var(--line);vertical-align:top}
th{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--mute);background:var(--bg);border-top:0}
.scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0;min-width:0}
.err{color:var(--warn);font-weight:600}.ok{color:var(--ok);font-weight:600}
.tools{display:flex;gap:8px;align-items:center;margin:8px 0;min-height:44px}
.tools .grow{margin-right:auto}

.card select,.card input:not([type=checkbox]){max-width:100%}
.inl{display:flex;gap:8px;align-items:center;min-height:32px}.off{opacity:.6}details summary{cursor:pointer;min-height:32px}
@media print{.top,.tabs,.tools,#msg,button,select,input{display:none!important}.banner{display:block}body{background:#fff;color:#000}.card,.scroll{box-shadow:none}}
@media (max-width:700px){.sun{display:none}.top{padding-bottom:46px}.top .sub{font-size:11px}}

img.av{width:34px;height:34px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:8px;border:2px solid var(--line,#d9cdb4)}
img.av{cursor:zoom-in}
#zoom{position:fixed;inset:0;background:rgba(20,41,29,.82);display:flex;align-items:center;justify-content:center;z-index:50;cursor:zoom-out;padding:16px}
#zoom figure{margin:0;text-align:center;color:#fff8ea}
#zoom img{max-width:min(92vw,560px);max-height:75vh;border-radius:14px;border:4px solid #fff8ea;object-fit:contain;background:#000}
#zoom figcaption{margin:10px 0;font-size:1.1rem}

.teambar{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.tchip{min-height:34px;font-size:13px;padding:4px 11px;border-radius:999px;line-height:1.3}
.tchip span{opacity:.65;margin-left:3px;font-weight:600}
.tchip.on{background:var(--acc);color:#fff8ea;border-color:var(--acc)}
.tchip.on span{opacity:.85}
.tchip.tog{background:transparent;border-style:dashed}

.seg{position:relative;display:inline-block}
.seg input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.seg span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:var(--card);font-weight:600}
.seg input:checked+span{background:var(--acc);color:#fff8ea;border-color:var(--acc)}
.seg input:focus-visible+span{outline:3px solid var(--sun);outline-offset:2px}

.sugwrap{position:relative}
.sug{position:absolute;left:0;right:0;top:100%;z-index:20;background:var(--card);border-radius:10px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.sug:empty{display:none}
.sug button{min-height:44px;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-weight:400;padding:6px 10px}
.sug button:last-child{border-bottom:0}
.sug button:hover:not(:disabled){background:var(--accbg)}
.sug button:disabled{opacity:.55;cursor:not-allowed}

.seg2{min-height:44px;padding:0 16px;border-radius:10px}
.seg2.on{background:var(--acc);color:#fff8ea;border-color:var(--acc)}

/* ---- forms: labels above fields, buttons in aligned groups */
input[type=checkbox],input[type=radio]{padding:0;margin:0;flex:none}
label.chk,label:has(>input[type=checkbox]){display:inline-flex;align-items:center;gap:8px;min-height:36px;cursor:pointer}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>.lab{font-size:13px;font-weight:700;color:var(--mute);letter-spacing:.02em}
.field input:not([type=checkbox]),.field select{width:100%}
.fform{display:flex;flex-direction:column;gap:18px;margin:14px 0 32px;padding:18px}
.fform h3{margin:0}
.fgrid{display:grid;gap:14px 16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tgl{min-height:40px;padding:0 14px;border-radius:10px;font-size:14px;font-weight:600}
.tgl[aria-pressed=true]{background:var(--acc);color:#fff8ea;border-color:var(--acc)}
.actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:4px}
.regs{margin-top:8px}
.regcard{display:flex;flex-direction:column;gap:10px}
.regcard h3{margin:0}
.regcard .flags{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.regcard .flags select{min-height:36px;padding:0 8px}
.regcard .field.role{gap:4px}
.regcard .btns input{flex:1 1 140px;min-height:40px}

.brand .logo{flex:none;background:#FFF8EA;border-radius:12px;padding:5px 6px;height:52px;width:auto;box-shadow:0 1px 3px rgba(0,0,0,.25)}

.regs{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));align-items:start}
.regcard{padding:10px 14px}
.regcard .reghead{all:unset;box-sizing:border-box;display:flex;gap:10px;align-items:flex-start;width:100%;cursor:pointer;padding:4px 0}
.regcard .reghead:focus-visible{outline:3px solid var(--acc);outline-offset:2px;border-radius:8px}
.regcard .car{width:14px;color:var(--acc);font-size:16px;line-height:22px}
.regcard .rn{display:flex;flex-direction:column;gap:2px;font-size:16px}
.regcard .rsum{font-size:13px}
.regcard.open{display:flex;flex-direction:column;gap:10px}
button.danger{background:#fff;color:#9B2C1D;border:1px solid #9B2C1D}
button.danger:hover:not(:disabled){background:#9B2C1D;color:#fff}

.regcard .rname{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.regcard .rname .chip{margin:0}
.regcard .rsum{min-height:3em}   /* room for two lines, so a longer or shorter summary never moves the buttons below */
.regcard .rname .chip.ghost{visibility:hidden}   /* keeps its space once someone is reviewed, so the card does not change height */
.grid + .card, .grid + h2, .card + h2, .card + .grid, .row + .grid{margin-top:16px}   /* breathing room between stacked blocks on the Roster and other tabs */
h2{margin:24px 0 12px}

.emailbar{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:8px 0}
.emailbar .mute{flex:1 1 320px;overflow-wrap:anywhere}
a.btn{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--line);background:#fff;color:inherit;font-weight:600;text-decoration:none;font-size:14px}
a.btn:hover{border-color:var(--acc)}

.howlist{display:flex;flex-direction:column;gap:10px;max-width:780px;margin-top:12px}
.how{padding:10px 16px}
.how p{margin:8px 0}
.how ol{margin:8px 0 8px 20px;padding:0;display:flex;flex-direction:column;gap:6px;line-height:1.5}
.how .tip{background:#F6EBD3;border-radius:10px;padding:8px 12px;font-size:14px}

.tabs .help{margin-left:auto;font-weight:600}
.tabs button[data-adminmenu][aria-selected=true]{background:var(--acc);border-color:var(--acc);color:#fff}

.adminpop{position:absolute;z-index:30;display:flex;flex-direction:column;gap:6px;padding:8px;min-width:210px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 28px rgba(42,33,24,.22)}
.adminpop[hidden]{display:none}
.adminpop button{min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:600;text-align:left;cursor:pointer}
.adminpop button:hover{border-color:var(--acc);color:var(--acc)}
.adminpop button[aria-selected=true]{background:var(--acc);border-color:var(--acc);color:#fff}
@media print{.adminpop{display:none!important}}
.progcard{display:flex;flex-direction:column;gap:12px;min-width:0}
.progcard .slotrow select,.progcard .slotbox{min-width:0;width:100%;max-width:100%}
.progcard .slotrow button{flex:none}
.progcard h3{margin:0}
.slot{display:flex;flex-direction:column;gap:6px}
.slotrow{display:flex;gap:8px;align-items:stretch}
.slotbox{flex:1 1 auto;min-width:0;min-height:44px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
select.slotbox{background:#fff}
.chip.req{background:#F3D9CC;color:#8A2F0C}
.progs{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}

.sess{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.sessbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sessbar .sname{flex:2 1 220px;font-weight:600}
.sessbar .swhen{flex:1 1 160px}
.fform .row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end}
.dayhead{margin:22px 0 0;font-size:16px;border-bottom:2px solid var(--line,#d9d2c3);padding-bottom:4px}
.sessbar .stime{flex:0 0 130px}
.sessbar select[data-swhen]{flex:0 0 130px}
.chip.av{background:#2f5d8a;color:#fff;font-weight:700}
.avsheet{margin-top:12px}
.brandbtn{display:flex;gap:12px;align-items:center;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer;min-height:44px}
.brandbtn:hover .bn{text-decoration:underline}
.brandbtn .bt{display:flex;flex-direction:column}
.brandbtn .bn{font-size:24px;line-height:1.1;font-weight:700;color:#FFF8EA}
.homegrid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.homecard{display:flex;flex-direction:column;gap:4px;text-align:left;cursor:pointer;font:inherit;min-height:88px;align-items:flex-start;justify-content:flex-start}
.homecard b{font-size:16px}.homecard span{color:#5A6068;font-size:14px}
.homecard:hover{border-color:#B4531A}
.homelist{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;line-height:1.5}
.shirttab th,.shirttab td{text-align:center;white-space:nowrap}
.shirttab th[rowspan],.shirttab tr>th:first-child{text-align:left}
.shirttab input.num{width:72px;text-align:center;min-height:36px}
.shirttab tr.tot th,.shirttab tr.tot td{border-top:2px solid #C9C2B2;font-weight:700}
.shirttab .c-Blue{border-bottom:3px solid #2F5D8A}.shirttab .c-Green{border-bottom:3px solid #3C7A4F}.shirttab .c-Red{border-bottom:3px solid #B03A2E}
button.link{background:none;border:0;color:#B4531A;text-decoration:underline;cursor:pointer;font:inherit;min-height:44px}
.tgl[data-shc$=":Blue"][aria-pressed=true]{background:#2F5D8A;border-color:#2F5D8A;color:#fff}
.tgl[data-shc$=":Green"][aria-pressed=true]{background:#3C7A4F;border-color:#3C7A4F;color:#fff}
.tgl[data-shc$=":Red"][aria-pressed=true]{background:#B03A2E;border-color:#B03A2E;color:#fff}

td.nw{white-space:nowrap;min-width:8.5em}

img.av.big{width:72px;height:72px;margin-right:12px}
.pform .photorow{align-items:center}
.pform textarea{width:100%}
.pform label.block{display:block}

td.rowbtns button{margin:0 8px 10px 0}

body.signedout .evpick,body.signedout #tabs{display:none}
.login{max-width:460px;margin:24px auto}.login form{display:flex;flex-direction:column;gap:12px}.login label{display:flex;flex-direction:column;gap:4px;font-weight:600}
details.bg{margin:0 0 10px;max-width:260px}details.bg summary{cursor:pointer;font-weight:600}details.bg label{display:flex;flex-direction:column;gap:4px;margin:6px 0}
.card+.card{margin-top:14px}
td label.inl{margin-right:20px}

.tgrid{align-items:stretch}.tcard{min-height:150px}.tline{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:30px}
.grid>.card+.card{margin-top:0}

.appinfo{margin:36px auto 24px;max-width:1100px;padding:0 16px;font-size:13px;color:var(--mute,#6b6358);text-align:center;line-height:1.5}

.toast{position:fixed;top:74px;right:16px;z-index:50;max-width:min(380px,calc(100vw - 32px));display:flex;gap:10px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-left:6px solid var(--ok);border-radius:12px;padding:10px 12px;box-shadow:0 8px 24px rgba(20,41,29,.25);font-weight:600}
.toast[hidden]{display:none}.toast.bad{border-left-color:var(--warn);color:var(--warn)}.toast.good{color:var(--ok)}
.toast .tmsg{flex:1;line-height:1.35}.toast .tx{min-height:28px;min-width:28px;padding:0;border-radius:8px;font-size:18px;line-height:1;color:var(--ink)}
@media print{.toast{display:none!important}}

.ptable{table-layout:fixed;min-width:1685px}.ptable th{white-space:normal!important}.ptable th,.ptable td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.ptable td.open{white-space:normal;line-height:2}.ptable .chip{margin-right:4px}
button.more{min-height:28px;padding:0 10px;font-size:12px;border-radius:999px}
button.editsm{min-height:30px;padding:0 10px;font-size:13px;margin-right:8px;border-radius:8px}

.ctable td{vertical-align:middle}.ctable .cphoto{white-space:nowrap}.ctable .cphoto .av{vertical-align:middle;margin-right:8px}.ctable input[data-cinote]{width:100%;min-width:200px}
.chkbig{display:flex;gap:10px;align-items:center;min-height:48px;font-weight:600;cursor:pointer}.chkbig input{width:28px;height:28px;flex:none}
tr.cin{background:rgba(60,122,79,.12)}.cigrid{margin:12px 0}
label.btn{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);font-weight:600;cursor:pointer}label.btn.sm{min-height:34px;font-size:13px}label.btn:hover{border-color:var(--acc)}
.po{display:none}@media print{.po{display:inline!important}.ctable .chkbig,.ctable .cphoto label{display:none!important}}
table.leaders td{vertical-align:top}

.ptable tr.grp th{background:var(--accbg);color:var(--acc);text-align:left;font-size:14px;padding:8px 10px;white-space:normal}

.secbtn{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;margin:18px 0 6px;padding:12px 16px;min-height:48px;background:var(--accbg);color:var(--acc);border:1px solid var(--acc);border-radius:10px;cursor:pointer}
.secbtn:hover{filter:brightness(.97)}.secbtn:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
.secbtn .st{font-size:20px;font-weight:700}.secbtn .mute{margin-left:auto;font-size:13px}.secbtn .car{width:18px}
.secnote{margin:0 0 6px}

.ptable tr.famrow td{background:#fff7ec;padding:10px}.ptable tr.famrow input{min-width:240px}

.prog{height:12px;background:#e6dcc4;border-radius:8px;overflow:hidden;margin:8px 0}.prog div{height:100%;background:var(--acc)}
.odp{padding:6px 0;border-top:1px solid var(--line,#e2ddd3)}
/* Phone: the People table becomes one card per person */
@media (max-width:760px){
  .ptable{min-width:0!important;table-layout:auto}.ptable colgroup,.ptable tr:first-child:not(.grp):not(.famrow){display:none}
  .ptable,.ptable tbody,.ptable tr,.ptable td{display:block;width:100%;box-sizing:border-box}
  .ptable tr{border:1px solid var(--line,#e2ddd3);border-radius:10px;margin:8px 0;padding:6px 10px;background:#fff}
  .ptable tr.grp,.ptable tr.famrow{border:0;padding:0;background:none}
  .ptable td{white-space:normal!important;overflow:visible!important;border:0;padding:3px 0}
  .ptable td:first-child{font-weight:700;font-size:17px}
  .ptable td[data-l]::before{content:attr(data-l) ': ';color:var(--mute,#6b6b6b);font-weight:600}
  .ctable td,.ctable th{display:block}.ctable tr:first-child{display:none}.ctable tr{border:1px solid var(--line,#e2ddd3);border-radius:10px;margin:8px 0;display:block;padding:6px 10px}
}

/* name tags: 4 x 3 in, two across, three down */
.tagsheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(4in,4in));gap:.15in;margin-top:12px}
.ntag{width:4in;height:3in;box-sizing:border-box;border:1px solid #bbb;border-radius:8px;padding:.2in;display:flex;align-items:center;gap:.15in;overflow:hidden;background:#fff;color:#111;break-inside:avoid}
.ntp img.av{width:1.2in;height:1.2in;border-radius:50%;object-fit:cover}
.ntn{flex:1;text-align:center;min-width:0}
.ntf{font-size:.62in;font-weight:800;line-height:1.05;overflow-wrap:anywhere}
.ntl{font-size:.3in;margin-top:.04in;overflow-wrap:anywhere}
.ntt{font-size:.2in;margin-top:.12in;color:#2f5d3a;font-weight:700}
.ntc span{display:inline-block;margin:.06in .04in 0;padding:.02in .1in;border:1px solid #2f5d3a;border-radius:99px;font-size:.16in;font-weight:700;color:#2f5d3a}
@media print{body.printtags *{visibility:hidden}body.printtags .tagsheet,body.printtags .tagsheet *{visibility:visible}body.printtags .tagsheet{position:absolute;left:0;top:0;display:grid;grid-template-columns:4in 4in;gap:0;margin:0}body.printtags .ntag{border:1px dashed #ccc;border-radius:0}}

.offbar{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:60;background:#b4541a;color:#fff;padding:10px 16px;border-radius:999px;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.3);max-width:92vw;text-align:center}@media print{.offbar{display:none}}

/* Registration table view: one-line, left-aligned columns */
.regtable th,.regtable td{text-align:left;white-space:nowrap;vertical-align:middle}
.regtable td:nth-child(1),.regtable th:nth-child(1){min-width:300px}
.regtable button.link{min-height:0;padding:0;text-align:left;white-space:nowrap}
.regtable td:nth-child(4),.regtable th:nth-child(4),.regtable td:nth-child(6),.regtable th:nth-child(6),.regtable td:nth-child(7),.regtable th:nth-child(7){min-width:230px}

/* adjustable columns */
.rz{position:absolute;top:0;right:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:3}
.rz:hover,.rz.on{background:linear-gradient(to right,transparent 4px,var(--acc,#B4531A) 4px,var(--acc,#B4531A) 6px,transparent 6px)}
@media print{.rz{display:none}.scroll table[data-colkey]{table-layout:auto!important;width:100%!important}.scroll table[data-colkey] col{width:auto!important}}

/* column headings stay in view: a long table scrolls inside its own frame and the heading row sticks to the top of it */
.scroll{overflow:auto;max-height:max(320px,calc(100vh - 150px))}
.scroll table{overflow:visible;border-radius:0}
.scroll tr:first-child>th{position:sticky;top:0;z-index:2;background:var(--bg);box-shadow:0 1px 0 var(--line)}
@media print{.scroll{max-height:none!important;overflow:visible!important}.scroll tr:first-child>th{position:static}}

/* initials circle where there is no photo yet */
.avi{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--accbg,#f3e3d8);color:var(--acc,#B4531A);font-weight:700;font-size:13px;margin-right:8px;border:2px dashed var(--acc,#B4531A);vertical-align:middle;cursor:pointer;flex:none;box-sizing:border-box;letter-spacing:.02em}
.avi:hover{background:#fff;box-shadow:0 0 0 3px rgba(180,83,26,.25)}
.avi.off{cursor:default;border-style:solid;border-color:var(--line,#d9cdb4);color:var(--mute,#6b6254)}.avi.off:hover{background:var(--accbg,#f3e3d8);box-shadow:none}
@media print{.avi{border:1px solid #999;background:#fff;color:#000}}
#zoom label.btn{color:#1f2a22;font-weight:700;cursor:pointer}
/* the family editor row stands out from the table */
.ptable tr.famrow td{background:#E3BE92;border-top:2px solid var(--acc);border-bottom:2px solid var(--acc);box-shadow:inset 6px 0 0 var(--acc);color:#2A2118}
.ptable tr.famrow .mute{color:#4a3a28}
@media (prefers-color-scheme:dark){.ptable tr.famrow td{background:#5a3d22;color:#F5EBDC}.ptable tr.famrow .mute{color:#E5D5BE}}

/* Data check: resolve */
ul.chk{list-style:none;padding:0;margin:0 0 8px}ul.chk li{padding:6px 0;border-top:1px solid var(--line)}ul.chk li:first-child{border-top:0}
.ckrow{display:flex;gap:12px;align-items:center;justify-content:space-between}.ckrow button{flex:none}
.resform{display:flex;gap:10px;flex-wrap:wrap;align-items:center;background:#E3BE92;border-radius:10px;padding:10px;margin-top:6px;color:#2A2118}
.chip.warn{background:#F9D6D0;color:#8A241B}.chip.okc{background:#DCEBDD;color:#1E4A34}

/* Coaching */
.coslot{display:flex;flex-direction:column;gap:2px;margin:6px 0}.coslot select{min-height:40px}
.teambar .mute{align-self:center;margin-right:4px}
.chip{white-space:nowrap}
/* Any two boxes stacked one above the other always have a little space between them */
.card + .card, .card + .scroll, .scroll + .card, .scroll + .scroll, .card + .tcard, .scroll + .teambar + .card{margin-top:14px}
.grid > .card + .card, .grid > .scroll + .card{margin-top:0}
