.attendance-roster-guest .player-row__avatar,.attendance-roster-guest-label{color:#0872bf}
[data-theme="dark"] .attendance-roster-guest .player-row__avatar,[data-theme="dark"] .attendance-roster-guest-label{color:#74c5ff}
.attendance-roster-guest-label{font-size:.8rem;font-weight:700}
#attendance-roster{display:grid;gap:14px;max-width:760px;margin-inline:auto}
#attendance-roster .player-row{display:block;min-width:0}
#attendance-roster .player-row__inner{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:7px;min-height:58px;padding-block:8px}
#attendance-roster .player-row__name{overflow-wrap:anywhere;white-space:normal}
#attendance-roster .player-row__inner:has(.player-select-check){grid-template-columns:22px 34px minmax(0,1fr)}
#attendance-roster .players-tools{min-width:0}
#attendance-roster > [role="status"]:empty{display:none}
.players-loading-skeleton{display:grid;gap:10px}
.attendance-reserve-info{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid color-mix(in srgb,var(--text) 18%,transparent);border-radius:12px;background:rgba(32,161,210,.07);font:400 13px/1.5 var(--font-body);color:var(--muted)}
.attendance-reserve-info[hidden]{display:none}
.attendance-reserve-info svg{width:22px;height:22px;flex-shrink:0;color:#80d0ec}
:root[data-theme="light"] .attendance-reserve-info svg{color:#087b9c}
.attendance-roster-presence .presence-card-metrics{display:flex;align-items:center;justify-content:space-between;gap:8px}
.attendance-roster-presence .presence-card-metric{display:flex;align-items:center;gap:5px;min-width:0;padding:4px 6px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:500 12px var(--font-body);cursor:pointer}
.attendance-roster-presence .presence-card-metric:hover,.attendance-roster-presence .presence-card-metric[aria-pressed="true"]{background:var(--glass2);color:var(--text)}
.attendance-roster-presence .presence-card-metric:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.attendance-roster-presence .presence-card-metric+ .presence-card-metric{border-left:1px solid var(--border);padding-left:8px}
.attendance-roster-presence .presence-card-metric svg{width:18px;height:18px;flex-shrink:0}
.attendance-roster-presence .presence-card-metric--confirmed svg{color:var(--green)}
.attendance-roster-presence .presence-card-metric--waiting svg{color:#e8ad22}
.attendance-roster-presence .presence-card-metric--reserve svg{color:#a56cf5}
.attendance-roster-presence .presence-card-caption{margin:0;color:var(--muted);font:400 12px/1.4 var(--font-body)}
@media(max-width:600px){
 .players-screen__presence.attendance-roster-presence{padding:13px;border:1px solid color-mix(in srgb,var(--green) 30%,var(--border));border-radius:16px;gap:12px;background:linear-gradient(135deg,rgba(var(--accent-rgb),.055),transparent 65%),var(--glass)}
 .attendance-roster-presence .players-presence-icon{width:44px;height:44px;flex-basis:44px;border:1px solid color-mix(in srgb,var(--green) 24%,transparent)}
 .attendance-roster-presence .players-screen__presence-status{display:inline-flex;align-items:center;gap:5px;width:fit-content;padding:4px 7px;border-radius:999px;background:rgba(var(--accent-rgb),.1);color:var(--green);font-size:10px}
 .attendance-roster-presence .players-screen__presence-status::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
 .attendance-roster-presence .attendance-roster-top-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .attendance-roster-presence .attendance-roster-top-actions button{min-width:0;min-height:44px;padding:7px 5px;justify-content:center;font-size:11px;gap:6px}
 .attendance-roster-presence .attendance-roster-top-actions svg{width:17px;height:17px;flex-shrink:0}
 .attendance-roster-presence .presence-card-metric{font-size:10px;gap:4px}
 .attendance-roster-presence .presence-card-metrics{gap:5px}
 .attendance-roster-presence .presence-card-metric+ .presence-card-metric{padding-left:5px}
}
.players-loading-skeleton>div{height:64px;border:1px solid var(--border);border-radius:14px;background:var(--glass)}
@media(max-width:600px){
 #attendance-roster{gap:10px}
 #attendance-roster .player-row__inner{grid-template-columns:32px minmax(0,1fr) auto 32px;gap:5px}
 #attendance-roster .player-row__inner:has(.player-select-check){grid-template-columns:22px 32px minmax(0,1fr)}
 #attendance-roster .player-row__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
.attendance-roster-heading{margin:4px 2px 10px;font:800 19px/1.2 var(--font-display)}
.attendance-roster-presence{margin-top:8px}
.attendance-roster-presence>span:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.attendance-roster-presence .players-screen__presence-status{display:inline-flex;align-items:center;border-radius:999px;background:color-mix(in srgb,var(--green) 15%,transparent);color:var(--green);padding:4px 7px;font-size:9px;font-weight:750;line-height:1}
.attendance-roster-presence:not([data-list-status="active"]) .players-screen__presence-status{color:var(--muted);background:var(--glass)}
.attendance-roster-presence[data-list-status="disabled"] .attendance-roster-top-actions{grid-template-columns:1fr}
#attendance-roster .player-presence-state--reserve{color:#8b5cf6;background:rgba(139,92,246,.12)}
#attendance-roster .attendance-roster-menu summary svg{width:19px;height:19px}
#attendance-roster .attendance-roster-filters{display:flex;gap:8px;overflow:auto;padding:2px 0 4px;scrollbar-width:none}
#attendance-roster .attendance-roster-top-actions{display:flex;gap:8px;flex-wrap:wrap}
#attendance-roster .attendance-roster-top-actions .btn{min-height:40px}
#attendance-roster .attendance-roster-filters button{min-height:40px;white-space:nowrap;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--text);padding:0 13px;font:inherit}
#attendance-roster .attendance-roster-filters button.is-active{background:var(--green);border-color:var(--green);color:#fff}
.attendance-role-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.attendance-role-choice{min-height:48px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);color:var(--text);font:inherit}.attendance-role-choice.is-active{border-color:var(--green);background:color-mix(in srgb,var(--green) 14%,var(--card));color:var(--green);font-weight:700}
.attendance-roster-menu{padding:0;align-self:center}
.attendance-roster-menu summary{cursor:pointer}
.attendance-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
.attendance-detail-finalized .card{gap:12px}
.attendance-detail-finalized h2,.attendance-detail-finalized p{margin:0}
.attendance-finalized-status{display:inline-flex;align-items:center;gap:6px;justify-self:start;width:fit-content;padding:6px 10px;border-radius:999px;color:var(--green);background:color-mix(in srgb,var(--green) 14%,transparent);border:1px solid color-mix(in srgb,var(--green) 45%,transparent);font-size:13px;font-weight:700}
.attendance-finalized-status svg{width:16px;height:16px}
.attendance-finalized-note{font-size:13px;color:var(--muted)}
.attendance-finalized-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
.attendance-finalized-summary dl>div{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:8px;align-content:start;border-top:1px solid var(--border);padding-top:12px}
.attendance-finalized-summary dl>div>span{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,currentColor 12%,transparent);color:var(--muted)}
.attendance-finalized-summary svg{width:19px;height:19px}
.attendance-finalized-summary dt{grid-column:2;grid-row:2;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.attendance-finalized-summary dd{grid-column:2;grid-row:1;margin:0;font-size:20px;font-weight:700}
.attendance-finalized-summary .is-attended>span,.attendance-finalized-result.is-attended{color:var(--green)}
.attendance-finalized-summary .is-no_show>span,.attendance-finalized-result.is-no_show{color:#9d4040}
[data-theme="dark"] .attendance-finalized-summary .is-no_show>span,[data-theme="dark"] .attendance-finalized-result.is-no_show{color:#efb0b0}
.attendance-finalized-result{font-weight:600}
.attendance-finalized-players .attendance-review-list li{display:flex;align-items:center;gap:12px;padding:12px 0}
.attendance-finalized-players .attendance-review-person{overflow-wrap:anywhere}
.attendance-finalized-players .attendance-review-person p{font-size:13px;margin-top:3px}
.attendance-detail-finalized .attendance-avatar{background:color-mix(in srgb,var(--green) 16%,var(--bg))}
.attendance-finalized-players .attendance-review-list{gap:0;margin:0}
.attendance-finalized-players .attendance-review-list li:last-child{border-bottom:0;padding-bottom:0}
.attendance-detail-finalized :focus-visible{outline:2px solid var(--green);outline-offset:3px}
.attendance-dialog--review{width:min(100%,440px);padding:22px 18px 20px;gap:18px;min-height:0;border-radius:16px}
.attendance-dialog--review p{margin:0;font-family:inherit;font-size:15px;font-weight:400;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.attendance-dialog--review p strong{color:var(--text);font-weight:700}
.attendance-dialog--review .modal__title{display:flex;align-items:center;gap:14px;margin:0 0 2px;font-family:inherit;font-size:22px;line-height:1.2}
.attendance-dialog__symbol{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border-radius:50%;color:var(--text);background:color-mix(in srgb,var(--text) 9%,transparent)}
.attendance-dialog__symbol svg{width:28px;height:28px}
.attendance-dialog--review .attendance-dialog__progress{font-size:16px;line-height:1.4}
.attendance-dialog--review .attendance-dialog__progress strong{color:var(--green);font-size:19px}
.attendance-dialog--review .btn-row{display:grid;grid-template-columns:1fr 1.25fr;gap:10px;margin:6px 0 0;padding-top:16px;border-top:1px solid var(--border)}
.attendance-dialog--review .btn{min-width:0;min-height:58px;padding:10px;border-radius:12px;font-size:14px;white-space:normal;line-height:1.35}
.attendance-dialog--review :focus-visible{outline:2px dashed var(--muted);outline-offset:3px}
.attendance-dialog--review .modal__title:focus{outline:none}
.attendance-dialog__feedback{font-size:13px;color:var(--text)}
@media(max-width:340px){.attendance-dialog--review .btn-row{grid-template-columns:1fr}}
.attendance-roster-menu :focus-visible{outline:2px solid var(--green);outline-offset:3px}
.attendance-review-list{list-style:none;padding:0;display:grid;gap:14px}
.attendance-review-list li{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:12px;min-width:0}
.attendance-review-list li strong,.attendance-review-list li p{overflow-wrap:anywhere}
.attendance-screen .attendance-actions button{min-height:44px}
.attendance-screen :is(button,a):focus-visible{outline:2px solid var(--green);outline-offset:3px}
.attendance-periods{display:flex;gap:8px;overflow:auto;padding-bottom:2px}.attendance-periods button{min-height:40px;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--text);padding:0 14px;font:inherit;white-space:nowrap}.attendance-periods button.is-active{border-color:var(--green);background:var(--green);color:#fff}.attendance-history-card{gap:10px!important}.attendance-history-card__top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.attendance-history-card__top h2{margin:0}.attendance-history-card__top p,.attendance-history-card__summary,.attendance-history-card__other{margin:0}.attendance-history-card__other{color:var(--text-muted)}.attendance-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}.attendance-status--pending{background:#f6df9b;color:#745000}.attendance-status--complete{background:color-mix(in srgb,var(--green) 18%,transparent);color:var(--green)}.attendance-status--absence{background:color-mix(in srgb,#bf5b5b 16%,transparent);color:#9d4040}.attendance-review-event p{margin:0}.attendance-review-progress>div:first-child{display:flex;justify-content:space-between;gap:12px}.attendance-progress-bar{height:8px;border-radius:999px;background:var(--border);overflow:hidden}.attendance-progress-bar span{display:block;height:100%;border-radius:inherit;background:var(--green);transition:width .2s ease}.attendance-avatar{width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;border-radius:50%;background:color-mix(in srgb,var(--green) 16%,var(--card));color:var(--green);font-size:12px;font-weight:800}.attendance-review-person{min-width:0;flex:1}.attendance-review-person p{margin:2px 0}.attendance-review-person .attendance-status{font-size:11px}.attendance-actions{display:flex;gap:8px;flex-wrap:wrap}.attendance-review-footer{position:sticky;bottom:0;z-index:5;margin:0 -2px calc(-24px - env(safe-area-inset-bottom));padding:12px 2px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--border);display:grid;gap:8px}.attendance-review-footer p{margin:0;font-size:13px}.attendance-review-footer .btn{width:100%}.attendance-other-results{border-top:1px solid var(--border);padding:12px 0}.attendance-other-results summary{display:flex;justify-content:space-between;cursor:pointer;font-weight:700}.attendance-other-results summary::-webkit-details-marker{display:none}.attendance-other-results[open] summary span{transform:rotate(90deg)}.attendance-other-results ul{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}.attendance-other-results li{display:flex;align-items:center;gap:10px}.attendance-other-results em{display:block;font-size:12px;font-style:normal;color:var(--text-muted)}.attendance-history-skeleton{min-height:112px}
@media(prefers-reduced-motion:reduce){.attendance-screen,.attendance-screen *{animation:none!important;transition:none!important}}
@media(prefers-reduced-motion:reduce){#attendance-roster,#attendance-roster *{animation:none!important;transition:none!important}}
/* Private presence summaries reuse RF statistics tokens and vertical lists. */
.attendance-statistics-screen .racha-stats-grid{margin:16px 0}
.attendance-private-people{list-style:none;padding:0;margin:12px 0}
.attendance-private-people li{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--border)}
.attendance-private-people li span{overflow-wrap:anywhere}
.attendance-statistics-screen .btn{min-height:44px}
.attendance-statistics-screen .stats-section{margin:20px 0}
#attendance-statistics-title:focus{outline:none}
@media(prefers-reduced-motion:reduce){.attendance-statistics-screen,.attendance-statistics-screen *{animation:none!important;scroll-behavior:auto!important}}
.attendance-statistics-screen .racha-stat span{font-size:12px;line-height:1.35}
.attendance-player-detail{min-height:44px}
/* Active review only: consult/history and movement cards keep their styles. */
.attendance-review--active .attendance-review-context{padding:16px;gap:14px}
.attendance-review-context__event{display:grid;gap:6px}
.attendance-review-context__event h2{margin:0;font:700 20px/1.25 var(--font-body);overflow-wrap:anywhere}
.attendance-review-context__event p{display:flex;align-items:flex-start;gap:7px;margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.attendance-review-context__event svg{width:17px;height:17px;flex:0 0 17px}
.attendance-review-context__progress{display:grid;gap:8px}
.attendance-review-context__progress strong{font-size:16px}
.attendance-review--active .attendance-review-context>.btn{width:100%;min-height:44px;white-space:normal;font-size:13px}
.attendance-review--active .attendance-confirmed{padding:16px}
.attendance-review--active .attendance-confirmed h2{font:700 20px/1.25 var(--font-body);margin:0}
.attendance-review--active .attendance-review-list{gap:12px;margin:12px 0 0}
.attendance-review--active .attendance-review-list li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px 10px;padding:0 0 12px}
.attendance-review--active .attendance-review-list li:last-child{border:0;padding-bottom:0}
.attendance-review--active .attendance-review-person strong{font-size:15px;line-height:1.35}
.attendance-review--active .attendance-avatar{background:color-mix(in srgb,var(--green) 16%,var(--bg));font-family:var(--font-body)}
.attendance-review--active .attendance-review-person p{font-size:12px;line-height:1.45;color:var(--muted);margin:3px 0 0}
.attendance-review-state.is-pending{font-weight:600}
.attendance-review-state.is-attended{color:var(--green);font-weight:600}
.attendance-review-state.is-no_show{font-weight:700}
.attendance-review--active .attendance-review-state.is-no_show{color:#9d4040}
[data-theme="dark"] .attendance-review--active .attendance-review-state.is-no_show{color:#efb0b0}
.attendance-review--active .attendance-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.attendance-review--active .attendance-actions .btn{min-height:48px;padding:8px;font:600 13px/1.3 var(--font-body);white-space:normal;display:flex;gap:6px;justify-content:center;align-items:center}
.attendance-review--active .attendance-actions svg{width:18px;height:18px;flex:0 0 18px}
.attendance-review--active .btn:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.attendance-review--active .attendance-review-choice[data-result="no_show"][aria-pressed="true"]{color:#9d4040;background:rgba(157,64,64,.1);border-color:rgba(157,64,64,.5);box-shadow:none}
[data-theme="dark"] .attendance-review--active .attendance-review-choice[data-result="no_show"][aria-pressed="true"]{color:#efb0b0;background:rgba(191,91,91,.16);border-color:rgba(239,176,176,.5)}
.attendance-review--active .attendance-review-choice:focus-visible{outline:2px dashed var(--muted);outline-offset:3px}
@media(max-width:767px){
 #app:has(.attendance-review--active){padding-bottom:calc(180px + env(safe-area-inset-bottom))}
 .attendance-review--active [data-attendance-review-row]{scroll-margin-bottom:180px}
 .attendance-review--active .attendance-review-footer{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;box-sizing:border-box;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--border);z-index:20;gap:8px}
 .attendance-review--active .attendance-review-footer .btn{min-height:48px}
 .attendance-review--active .attendance-review-footer p{font-size:13px;line-height:1.45}
}

/* Match the shared selection layout and touch targets. */
#attendance-roster .player-row__inner:has(.player-select-check){grid-template-columns:44px 30px minmax(0,1fr)}
#attendance-roster .player-row__inner:not(:has(.player-select-check)){grid-template-columns:32px minmax(0,1fr) auto 44px}
#attendance-roster .players-tools[hidden]{display:none}

/* Attendance review journey: history, decisions and consolidated result. */
.attendance-result-filters{display:flex;gap:8px;overflow-x:auto;padding:2px 0;scrollbar-width:none}
.attendance-result-filters::-webkit-scrollbar{display:none}
.attendance-result-filters label{min-height:40px;display:inline-flex;align-items:center;justify-content:center;flex:1 0 auto;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--text);padding:0 14px;font:600 13px/1.2 var(--font-body);white-space:nowrap;cursor:pointer}
.attendance-result-filters input:checked+label{border-color:var(--green);background:color-mix(in srgb,var(--green) 14%,var(--card));color:var(--green)}
.attendance-result-filters input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.attendance-result-filters input:focus-visible+label{outline:2px solid var(--green);outline-offset:3px}
.attendance-review--active .attendance-result-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.attendance-review--active .attendance-result-filters label{min-width:0;padding:0 6px;font-size:12px}
.attendance-review-context__progress p{margin:0;color:#9d4040;font-weight:700;font-size:13px}
[data-theme="dark"] .attendance-review-context__progress p{color:#efb0b0}
.attendance-review--active:has(#attendance-review-filter-pending:checked) .attendance-review-list li:not(.is-pending),
.attendance-review--active:has(#attendance-review-filter-attended:checked) .attendance-review-list li:not(.is-attended),
.attendance-review--active:has(#attendance-review-filter-no_show:checked) .attendance-review-list li:not(.is-no_show){display:none}
.attendance-review--active .attendance-review-choice[aria-pressed="false"]{background:transparent;color:var(--text);border-color:var(--border);box-shadow:none}
.attendance-review--active .attendance-review-choice[aria-pressed="true"][data-result="attended"]{background:color-mix(in srgb,var(--green) 18%,var(--card));color:var(--green);border-color:var(--green);box-shadow:none}
.attendance-detail-finalized:has(#attendance-result-filter-attended:checked) .attendance-finalized-players li:not(.is-attended),
.attendance-detail-finalized:has(#attendance-result-filter-no_show:checked) .attendance-finalized-players li:not(.is-no_show){display:none}
.attendance-finalized-player{width:100%;min-height:56px;display:grid;grid-template-columns:36px minmax(0,1fr) 20px;align-items:center;gap:12px;padding:12px 0;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.attendance-finalized-player>.attendance-review-person{display:grid;gap:3px}
.attendance-finalized-player>.attendance-review-person>span{color:var(--muted);font-size:13px}
.attendance-finalized-player>span:last-child{font-size:24px;color:var(--muted)}
.attendance-finalized-players .attendance-review-list>li{display:block;padding:0}
.attendance-player-dialog{width:min(100% - 24px,520px);max-height:min(82dvh,680px);margin:auto auto 0;border:1px solid var(--border2);border-radius:24px 24px 0 0;padding:0;background:var(--bg2);color:var(--text);box-shadow:0 -20px 60px rgba(0,0,0,.35)}
.attendance-player-dialog::backdrop{background:rgba(2,12,25,.72);backdrop-filter:blur(4px)}
.attendance-player-dialog__sheet{display:grid;gap:16px;padding:22px 20px calc(20px + env(safe-area-inset-bottom));position:relative}
.attendance-player-dialog__sheet h2{font:800 26px/1.2 var(--font-body);padding-right:44px}
.attendance-player-dialog__close{position:absolute;top:14px;right:14px;width:44px;height:44px;border:0;background:transparent;color:var(--muted);font-size:30px;cursor:pointer}
.attendance-player-dialog dl{margin:0;display:grid}
.attendance-player-dialog dl>div{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid var(--border)}
.attendance-player-dialog dt{color:var(--muted)}
.attendance-player-dialog dd{margin:0;text-align:right}
.attendance-player-dialog .btn{width:100%;min-height:48px}
.attendance-list-details{padding:0!important;overflow:hidden;gap:0!important}
.attendance-list-details>summary,.attendance-movements>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:14px 16px;cursor:pointer}
.attendance-list-details>summary::-webkit-details-marker,.attendance-movements>summary::-webkit-details-marker{display:none}
.attendance-list-details>summary>span:first-child{display:grid;gap:3px}
.attendance-list-details>summary small,.attendance-movements>summary small{display:block;color:var(--muted);font-size:12px;font-weight:400}
.attendance-list-details>summary>span:last-child,.attendance-movements>summary>span:last-child{font-size:24px;color:var(--muted);transition:transform .2s ease}
.attendance-list-details[open]>summary>span:last-child,.attendance-movements[open]>summary>span:last-child{transform:rotate(90deg)}
.attendance-list-details__content{display:grid;gap:8px;padding:0 16px 16px;border-top:1px solid var(--border)}
.attendance-list-details__content h3{font:700 15px/1.3 var(--font-body);margin:16px 0 2px}
.attendance-movements{margin-top:20px}
.attendance-movements--embedded{margin:8px 0 0;border-top:1px solid var(--border)}
.attendance-movements__content{padding:0 16px 16px}
.attendance-movements--embedded .attendance-movements__content{padding:0 0 12px}
.attendance-movements ul{list-style:none;padding:0;margin:0}
.attendance-movements li{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}
.attendance-movements li>span svg{width:20px;height:20px;color:var(--muted)}
.attendance-movements li>div{min-width:0;flex:1}
.attendance-movements p{margin:0;overflow-wrap:anywhere;line-height:1.5}
.attendance-movements time,.attendance-movements li small{display:block;color:var(--muted);font-size:12px;margin-top:5px;overflow-wrap:anywhere}
@media(min-width:768px){.attendance-player-dialog{margin:auto;border-radius:24px}}

/* Presence history: one hierarchy on mobile and desktop. */
.attendance-history .attendance-history-mobile{display:grid!important;gap:28px}
.attendance-history-group{display:grid;gap:12px}
.attendance-history-group>header{display:grid;gap:3px;padding-inline:2px}
.attendance-history-group>header h2{margin:0;font:800 20px/1.2 var(--font-display);letter-spacing:.01em}
.attendance-history-group>header p{margin:0;color:var(--muted);font:400 13px/1.45 var(--font-body)}
.attendance-history-group__cards{display:grid;gap:12px}
.attendance-history-mobile-status.is-ready{color:var(--green);border:1px solid color-mix(in srgb,var(--green) 45%,transparent);background:color-mix(in srgb,var(--green) 14%,transparent)}
.attendance-history-group.previous .attendance-history-mobile-card{background:var(--card)}
.attendance-history-group.attention .attendance-history-mobile-card{border-color:color-mix(in srgb,var(--green) 28%,var(--border2))}
.attendance-history .attendance-history-mobile-card h2{font-family:var(--font-display)}
@media(min-width:768px){
 .attendance-history-group__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .attendance-history-group__cards>.attendance-history-mobile-card:only-child{grid-column:1/-1}
}

/* Result detail is a focused subpage instead of nested accordions. */
.attendance-list-details-entry{display:flex!important;align-items:center;justify-content:space-between;gap:16px}
.attendance-list-details-entry>div{display:grid;gap:4px;min-width:0}
.attendance-list-details-entry strong{font:800 18px/1.25 var(--font-display)}
.attendance-list-details-entry small{color:var(--muted);font-size:13px;line-height:1.45}
.attendance-list-details-entry .btn{min-height:44px;white-space:normal}
.attendance-list-dialog{width:min(100% - 24px,720px);max-width:720px;max-height:calc(100dvh - 24px);margin:auto;border:1px solid var(--border2);border-radius:24px;padding:0;background:var(--bg);color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.45)}
.attendance-list-dialog::backdrop{background:rgba(2,12,25,.76);backdrop-filter:blur(7px)}
.attendance-list-page{display:grid;gap:18px;padding:22px;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.attendance-list-page>form:first-child{margin:-4px 0 0}
.attendance-list-page>header{display:grid;gap:5px;padding-bottom:2px}
.attendance-list-page>header>span{color:var(--green);font:800 12px/1 var(--font-display);letter-spacing:.13em}
.attendance-list-page>header h2{margin:0;font:900 30px/1.08 var(--font-display)}
.attendance-list-page>header p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.attendance-list-overview{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 12px;padding:18px;border:1px solid color-mix(in srgb,var(--green) 34%,var(--border));border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--green) 11%,var(--card)),color-mix(in srgb,#20a1d2 8%,var(--card)));overflow:hidden}
.attendance-list-overview::before{content:'';position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--green),#20a1d2)}
.attendance-list-overview>span{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:color-mix(in srgb,var(--green) 17%,var(--card));color:var(--green)}
.attendance-list-overview>span svg{width:23px;height:23px}
.attendance-list-overview>div{display:grid;gap:2px}
.attendance-list-overview>div strong{font:800 18px/1.2 var(--font-display)}
.attendance-list-overview>div small{color:var(--muted);font-size:12px}
.attendance-list-overview dl{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 0}
.attendance-list-overview dl>div{display:grid;gap:2px;padding:12px;border:1px solid var(--border);border-radius:13px;background:color-mix(in srgb,var(--card) 82%,transparent)}
.attendance-list-overview dt{grid-row:2;color:var(--muted);font-size:11px}
.attendance-list-overview dd{grid-row:1;margin:0;color:var(--green);font:900 22px/1 var(--font-display)}
.attendance-list-section{display:grid;gap:12px;padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--card)}
.attendance-list-section__heading{display:flex;align-items:flex-start;gap:11px}
.attendance-list-section__heading>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:color-mix(in srgb,var(--green) 14%,transparent);color:var(--green)}
.attendance-list-section__heading svg{width:19px;height:19px}
.attendance-list-section__heading h3{margin:0;font:800 18px/1.25 var(--font-display)}
.attendance-list-section__heading p{margin:2px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
.attendance-list-people{list-style:none;display:grid;gap:0;margin:0;padding:0}
.attendance-list-people li{display:flex;align-items:center;gap:11px;padding:12px 0;border-top:1px solid var(--border)}
.attendance-list-people li>span:last-child{display:grid;gap:3px;min-width:0}
.attendance-list-people strong{overflow-wrap:anywhere}
.attendance-list-people small{color:var(--muted);font-size:12px}
.attendance-list-page__close{width:100%;min-height:48px}

/* Branded, grouped timeline. */
.attendance-movements{margin:0}
.attendance-movements--embedded{border:1px solid var(--border);margin:0}
.attendance-movements__content,.attendance-movements--embedded .attendance-movements__content{padding:0}
.attendance-timeline{position:relative;list-style:none;display:grid;margin:0;padding:0 0 0 4px}
.attendance-timeline::before{content:'';position:absolute;top:10px;bottom:14px;left:14px;width:2px;background:linear-gradient(var(--green),color-mix(in srgb,#20a1d2 65%,var(--green)))}
.attendance-timeline li{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding:8px 0 18px;border:0}
.attendance-timeline__node{z-index:1;display:grid;place-items:center;width:28px;height:28px;border:3px solid var(--card);border-radius:50%;background:var(--green);color:#061624}
.attendance-timeline__node svg{width:14px!important;height:14px!important;color:currentColor!important}
.attendance-timeline li>div{display:grid;gap:4px;padding-top:2px}
.attendance-timeline__phase{width:fit-content;color:var(--green);font:800 10px/1 var(--font-display);letter-spacing:.1em}
.attendance-timeline p{font-weight:700;line-height:1.4}
.attendance-timeline small,.attendance-timeline time{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.attendance-movements-empty{color:var(--muted);font-size:13px}
.attendance-movements__more{width:100%;margin-top:4px;min-height:46px}
@media(max-width:520px){
 .attendance-list-dialog{width:100%;max-width:none;max-height:100dvh;height:100dvh;margin:0;border:0;border-radius:0}
 .attendance-list-page{min-height:100dvh;max-height:100dvh;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
 .attendance-list-details-entry{align-items:stretch;flex-direction:column}
 .attendance-list-details-entry .btn{width:100%}
}
