.attendance-launch{background:#e5e8d8;border-color:#aebc9e}.attendance-launch strong{color:var(--ink)}.attendance-launch small{color:#526349}.attendance-launch>span:last-child{color:#596f3f}
main.attendance-open{max-width:1120px}.attendance{min-width:0}.attendance .welcome h1{font-size:clamp(36px,8vw,55px)}
.at-toolbar{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:16px;margin:22px 0}.at-month{display:flex;align-items:end;gap:8px;flex:1;max-width:370px}.at-month label{font-size:12px;margin:0;flex:1;min-width:0}.at-month input{font-size:17px;margin:5px 0 0;min-width:0;width:100%;padding:10px 12px;min-height:48px}.at-month button{font-size:24px;min-width:44px;height:48px;padding:0}.at-toolbar>.primary{min-height:48px}
.at-config{background:var(--card);border:1px solid var(--line);border-radius:16px;margin:18px 0;padding:0 16px}.at-config summary{cursor:pointer;padding:15px 0;min-height:50px;font-size:15px;font-weight:600}.at-config summary span{color:var(--muted);font-size:13px;font-weight:400}.at-config form{padding:8px 0 20px}.at-config fieldset{border:0;margin:0;padding:0}.at-config legend{font-size:17px;font-weight:600;margin-bottom:12px}.at-weekdays{display:flex;flex-wrap:wrap;gap:8px}.at-weekdays label{position:relative;display:block;margin:0;cursor:pointer}.at-weekdays input{position:absolute;width:1px;height:1px;min-height:0;opacity:0;margin:0;padding:0;inset:15px auto auto 12px}.at-weekdays span{display:block;padding:11px 16px;border:1px solid #bac4ad;border-radius:12px;background:#fffdf7;color:var(--ink);font-size:15px;min-height:46px}.at-weekdays input:checked+span{background:var(--ink);color:var(--card);border-color:var(--ink)}.at-weekdays input:focus-visible+span{outline:3px solid #b17516;outline-offset:3px}.at-weekdays input:disabled+span{opacity:.6;cursor:wait}.at-config .help{line-height:1.5;max-width:700px}.at-config .secondary{min-height:46px}
.at-legend{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;margin:22px 0 8px}.at-legend>span{display:flex;align-items:center;gap:7px;font-size:13px}.at-legend b{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;font-size:18px}.at-legend strong{font-size:12px;font-weight:500;color:var(--muted)}.at-present{background:#dbe9d3;color:#1b4e29}.at-absent{background:#f6dcd2;color:#913d28}.at-excused{background:#f5e4b8;color:#785514}
.at-instructions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}.at-instructions p{font-size:14px;margin:8px 0}.at-instructions small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.at-instructions button{font-size:13px;padding-right:0}.at-instructions button[aria-pressed=true]{background:#f5e4b8;color:#68461a;border-radius:10px;padding:10px}.at-save-state{font-size:12px;color:#3d6741;min-height:24px;padding:3px 0}.at-save-state.at-saving{color:#7b561a}.at-save-error{margin:8px 0 16px;padding:15px;border:1px solid #bf8b70;background:#fff0df;border-radius:12px}.at-save-error p{margin:0 0 10px;font-size:14px}.at-save-error button{font-size:13px}.at-scroll-help{font-size:12px;color:var(--muted);margin:10px 0}
.at-table-wrap{isolation:isolate;max-width:100%;overflow:auto;max-height:72dvh;border:1px solid #c7cfbb;border-radius:16px;position:relative;overscroll-behavior-x:contain;background:var(--card);scrollbar-color:#9bab8b #f0ebdd;scrollbar-width:thin}.at-table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;table-layout:fixed}.at-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.at-table th,.at-table td{border-bottom:1px solid #d4dac8;border-right:1px solid #dce0d2;text-align:center;padding:3px;background:var(--card)}.at-table .at-player-column{width:156px;min-width:156px;max-width:156px;text-align:left;position:sticky;left:0;z-index:2;padding:12px 14px;background:#f8f3e6;box-shadow:3px 0 5px #183d3109;font-weight:600;line-height:1.25;overflow-wrap:anywhere}.at-player-column small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:4px}.at-table thead th{position:sticky;top:0;z-index:3;background:var(--ink);color:var(--card);border-color:#466153;padding:10px 3px}.at-table thead .at-player-column{z-index:4;padding-left:14px;background:var(--ink)}.at-table .at-day-column{width:54px;min-width:54px}.at-day-column span{font-size:10px;display:block;font-weight:500;letter-spacing:.03em}.at-day-column strong{display:block;font-size:19px;line-height:1.3}.at-table .at-total-column{position:sticky;right:0;z-index:2;width:76px;min-width:76px;background:#e6ecd9;box-shadow:-3px 0 5px #183d3109;border-right:0;font-variant-numeric:tabular-nums}.at-table thead .at-total-column{z-index:4;background:#3d5337}.at-total-column small{display:block;font-size:10px;font-weight:400}.at-total-column strong{font-size:18px}.at-table tr:last-child td,.at-table tr:last-child th{border-bottom:0}.at-table .at-today{background:#f3ecd3}.at-table thead .at-today{background:#765c23}.at-cell{min-width:44px;width:44px;min-height:44px;height:44px;border:1px solid #e2e4d8;border-radius:9px;background:#fffdf7;font-weight:700;font-size:23px;line-height:1;touch-action:manipulation;color:var(--ink);display:block;margin:auto;position:relative}.at-cell.at-present{background:#dbe9d3;color:#1b4e29;border-color:#a7be96}.at-cell.at-absent{background:#f6dcd2;color:#913d28;border-color:#dbad99}.at-cell.at-excused{background:#f5e4b8;color:#785514;border-color:#d7bd7e}.at-cell.at-pending:after{content:'';position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-radius:50%;background:#7c561a}.at-cell:focus-visible{outline:3px solid #b17516;outline-offset:-3px}.at-cell:disabled{opacity:.7;cursor:default}.at-archived .at-player-column{color:var(--muted)}.at-total-help{line-height:1.5;margin:15px 0}.at-empty{border:1px dashed #b4bea7;border-radius:18px;background:#f5f1e5;text-align:center;padding:35px 20px}.at-empty>span{font-size:42px;color:#76905f}.at-empty h2{font-family:'Barlow Condensed',sans-serif;font-size:30px;margin:5px 0 10px}.at-empty p{font-size:15px;color:var(--muted);margin:0}
.at-dialog{width:min(520px,calc(100% - 24px));max-height:92dvh;overflow:auto;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:26px}.at-dialog::backdrop{background:#10251dcc}.at-dialog h2{font-family:'Barlow Condensed',sans-serif;font-size:30px;margin:0}.at-dialog .admin-heading{align-items:start}.at-date-range{display:grid;grid-template-columns:1fr 1fr;gap:14px}.at-date-range label{font-size:14px;min-width:0}.at-date-range input{width:100%;min-width:0;padding:12px 9px;font-size:16px}.at-download-link{display:block;font-size:14px;min-height:44px;padding:15px 0 0;overflow-wrap:anywhere}.at-dialog .help{line-height:1.5}
@media(max-width:560px){main.attendance-open{padding:22px 12px}.at-toolbar{gap:10px}.at-month{max-width:none;width:100%}.at-toolbar>.primary{width:100%;font-size:15px}.at-config{padding:0 12px}.at-config summary span{display:block;margin:4px 0 0 15px}.at-weekdays{gap:7px}.at-weekdays span{padding:11px 12px;font-size:14px}.at-legend{gap:7px}.at-legend>span{font-size:11px;gap:4px}.at-legend b{width:24px;height:26px;font-size:17px}.at-legend strong{font-size:11px}.at-table .at-player-column{width:122px;min-width:122px;max-width:122px;padding:12px 8px;font-size:12px}.at-table thead .at-player-column{padding-left:8px}.at-table .at-total-column{width:60px;min-width:60px}.at-total-column strong{font-size:17px}.at-instructions{gap:0}.at-dialog{padding:20px 16px}.at-date-range{gap:9px}.at-dialog .admin-heading{gap:5px}}
@media(prefers-reduced-motion:reduce){.attendance *{scroll-behavior:auto}}

.at-all-present-row th.at-player-column,.at-all-present-row td{background:#e6eddb;border-bottom:2px solid #b5c5a5}.at-all-present-row th.at-player-column{font-size:13px;color:var(--ink)}.at-all-present-row .at-total-column{background:#dce7cc}.at-all-present{display:block;width:44px;min-width:44px;height:44px;min-height:44px;margin:auto;padding:0;border:1px solid #aabf98;border-radius:9px;background:#f5faed;color:#3b6537;font:700 23px Barlow,system-ui,sans-serif;line-height:1;touch-action:manipulation}.at-all-present.at-present{background:#cce0bc;border-color:#7ca06a;color:#204c25}.at-all-present:disabled{opacity:1;cursor:default}.at-all-present:focus-visible{outline:3px solid #b17516;outline-offset:-3px}
