:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#f2f6fa;background:#091521;--muted:#aec2ce;--orange:#ff985c;--line:#304757;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% 10%,#23405355,transparent 60%)}[hidden]{display:none!important}header{display:flex;align-items:center;gap:16px;padding:20px max(18px,calc((100% - 1180px)/2));border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:inherit;font-weight:950;letter-spacing:.04em;font-size:24px}.brand span{color:var(--orange)}#connection{margin-left:auto;font-size:12px;color:#8edcbd}.chip{border:1px solid var(--line);border-radius:30px;padding:5px 10px;font-size:11px;color:var(--muted)}main{max-width:1220px;margin:auto;padding:28px 20px 60px}h1{font-size:clamp(28px,5vw,48px);letter-spacing:-.045em;line-height:1.1;margin:12px 0}h2{font-size:22px;margin:8px 0 14px}h3{font-size:17px;margin:0 0 8px}p,small{line-height:1.65;color:var(--muted)}.eyebrow{letter-spacing:.15em;font-size:11px;font-weight:800;color:var(--orange)}.intro,.row{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.card{padding:24px;background:linear-gradient(140deg,#182e3f,#102130);border:1px solid var(--line);border-radius:16px;margin-bottom:18px;min-width:0}.login{max-width:500px;margin:35px auto}.grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px}.buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}button,input,select{font:inherit;border-radius:9px;padding:12px;border:1px solid #466172;background:#203a4c;color:white;min-height:44px;max-width:100%}button{cursor:pointer;font-weight:650}button:hover{filter:brightness(1.12)}button.primary{background:var(--orange);color:#171e29;border-color:var(--orange)}button.active{border-color:#89ddba;background:#2d5f50}button:disabled{opacity:.5;cursor:wait}label{display:grid;gap:6px;font-size:13px;color:var(--muted);margin:12px 0}input{width:100%}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6cdae0;outline-offset:3px}nav{display:flex;gap:8px;overflow-x:auto;margin:20px 0 24px;padding:3px}nav button{white-space:nowrap;background:transparent}nav button[aria-current=page]{background:#ff985c;color:#132032;border-color:var(--orange)}.session,.milestone{border-top:1px solid var(--line);padding:18px 0}.session p{margin:7px 0 12px}.status{font-size:12px;border-radius:20px;background:#2b4757;padding:4px 9px;display:inline-block}.profile-hero{position:relative;overflow:hidden;isolation:isolate;border:1px solid #6b5c4b;background:linear-gradient(115deg,#c85d2b 0%,#ef9455 30%,#233a4c 30.2%,#112232 100%);padding:40px;display:flex;gap:40px;align-items:center;border-radius:16px;margin-bottom:20px;min-height:250px}.avatar{font-size:90px;filter:drop-shadow(0 15px 20px #25190555);animation:float 4s ease-in-out infinite}.profile-copy{position:relative}.profile-copy blockquote{margin:15px 0;color:#c6d7e1;font-style:italic}.speedlines{position:absolute;inset:0;opacity:.14;background:repeating-linear-gradient(-25deg,transparent 0 22px,#fff 23px 24px);z-index:-1}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stats strong{display:block;font-size:36px;color:var(--orange)}.stats span{font-size:13px;color:var(--muted)}.badges{display:flex;gap:16px}.badges span{display:grid;place-items:center;width:65px;height:75px;font-size:32px;color:#6c8190;border:1px dashed #536c7c;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);background:#1d3546}#error{color:#ffb1a5;overflow-wrap:anywhere}#message{color:#98e8c1}footer{font-size:12px;color:#91a8b6;line-height:1.7}.audit-line{border-top:1px solid var(--line);padding:10px 0;font-size:13px;overflow-wrap:anywhere}.audit-line small{display:block}.empty{color:var(--muted);padding:20px 0}.attendance-row{display:grid;grid-template-columns:1fr minmax(130px,1fr);align-items:center;gap:12px;border-top:1px solid var(--line);padding:12px 0}@keyframes float{50%{transform:translateY(-8px) rotate(-3deg)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}@media(max-width:720px){main{padding:20px 14px 40px}.grid{grid-template-columns:1fr}.card{padding:18px}.intro .buttons{width:100%}.intro .buttons label{flex:1}.profile-hero{padding:25px 18px;gap:18px;background:linear-gradient(115deg,#c85d2b 0%,#dc8149 23%,#233a4c 23.2%,#112232)}.avatar{font-size:60px}.profile-copy h1{font-size:30px}.stats{gap:8px}.stats .card{padding:14px 10px}.stats strong{font-size:27px}.stats span{font-size:11px}.chip{display:none}.buttons button{flex-grow:1}nav button{font-size:13px;padding:10px}header{padding:15px 18px}.login{margin:15px auto}.attendance-row{grid-template-columns:1fr}select{width:100%}}
.editor{max-width:760px;margin:0 auto}fieldset{border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0;min-width:0}legend{padding:0 8px;color:var(--orange);font-weight:750}textarea{font:inherit;width:100%;padding:12px;background:#203a4c;border:1px solid #466172;border-radius:9px;color:white;resize:vertical}.skill-option{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:9px;padding:12px;cursor:pointer;line-height:1.5;color:#dfebf2}.skill-option:has(input:checked){border-color:var(--orange);background:#493326}.skill-option input{width:20px;min-height:20px;flex-shrink:0;margin:2px 0}.skill-entry{border-top:1px solid var(--line);padding:15px 0}.skill-entry strong{display:block;margin-bottom:7px}.skill-entry p{margin:8px 0}.skill-entry small{display:block}.profile-skills{display:grid;gap:12px;margin-top:18px}.profile-skills .skill-entry{padding:12px;border:1px solid var(--line);border-radius:10px}

.live-quick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin:1rem 0}.live-quick button{font-size:1.7rem;min-height:64px;font-weight:800;padding:.5rem;background:#24354b;border:2px solid #ff8a3d}.live-players{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.live-players button{min-height:48px}.live-presence{display:flex;align-items:center;gap:.8rem;min-height:48px}.live-presence input{width:24px;height:24px}#liveFeedback{min-height:3rem;font-weight:700}#live select{width:100%;max-width:100%}

.live-score{padding:1rem;background:#172738;border-left:4px solid #ff8a3d;margin:1rem 0}.live-score strong{font-size:1.6rem}

.live-playerbar{position:sticky;top:0;z-index:3;background:#122535;padding:12px;border:1px solid var(--line);border-radius:12px;margin:16px 0}.live-hint{margin:0;font-size:13px}.live-players{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));max-height:260px;overflow-y:auto;margin:.7rem 0;gap:8px}.live-player{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 8px;min-height:116px;touch-action:manipulation;border:2px solid #466172;background:#203a4c}.live-player.once{border-color:#ff985c;background:#543522}.live-player.pinned{border-color:#86dfc2;background:#214b43}.live-player strong{font-size:14px;overflow-wrap:anywhere}.live-player small{font-size:12px;color:inherit}.live-player-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#091521;color:#ffb786;font-size:17px;font-weight:800}.live-score-row{padding:8px 0}.live-score-row small{display:block}.live-playerbar h3{font-size:14px;line-height:1.5;margin-bottom:0}@media(max-width:480px){.live-playerbar{padding:9px}.live-players{grid-template-columns:repeat(3,minmax(0,1fr));max-height:245px}.live-player{min-height:108px}.live-score strong{font-size:1.2rem}}

.live-sides{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0}.live-side{min-width:0;min-height:140px;border:2px solid #ff985c;border-radius:12px;padding:9px;background:#271f1b}.live-side-right{border-color:#72cdd6;background:#152b31}.live-side h4{margin:0;padding:5px 0 8px;color:#ffc396}.live-side-right h4{color:#9ae2e7}.live-player-list{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));margin:0;max-height:245px}.live-player-tile{min-width:0}.live-player-tile>.live-player{width:100%}.live-tile-controls{display:flex;gap:3px;margin-top:4px}.live-tile-controls button{min-height:44px;padding:5px;font-size:11px}.live-drag{flex:1;touch-action:none;cursor:grab}.live-swap{width:34px;flex-shrink:0}.live-player-tile.dragging{opacity:.5}.live-side.drop-target{outline:3px solid #e8edf2;outline-offset:2px}.live-side-empty{font-size:12px;padding:15px 5px}.live-playerbar h3{max-height:3em;overflow:auto}@media(max-width:480px){.live-sides{gap:7px}.live-side{padding:6px}.live-player-list{grid-template-columns:1fr;max-height:235px}.live-playerbar .live-hint{font-size:11px}}

.live-sides.together{grid-template-columns:1fr}.live-sides.together .live-side{border-color:var(--line);background:#142b3b}.live-layout-switch{display:flex;align-items:center;gap:10px;position:relative;color:#edf4f7;width:max-content;margin:0 0 8px;cursor:pointer}.live-layout-switch input{position:absolute;width:48px;height:28px;opacity:0;left:85px;min-height:0;margin:0}.live-switch-track{display:block;position:relative;width:48px;height:28px;background:#486174;border-radius:20px;border:1px solid #6b8799;flex-shrink:0}.live-switch-track:after{content:'';position:absolute;width:20px;height:20px;border-radius:50%;background:#fff;top:3px;left:3px;transition:transform .15s}.live-layout-switch input:checked+.live-switch-track{background:#a45424}.live-layout-switch input:checked+.live-switch-track:after{transform:translateX(20px)}.live-layout-switch input:focus-visible+.live-switch-track{outline:3px solid #6cdae0;outline-offset:3px}@media(max-width:480px){.live-sides.together .live-player-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Large rosters: readable touch targets, no nested list scrolling. */
.live-playerbar{position:relative;top:auto}.live-player-list,.live-sides.together .live-player-list{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));max-height:none;overflow:visible}.live-player{min-height:104px;padding:10px 6px;gap:5px}.live-player-avatar{width:34px;height:34px}.live-player strong{line-height:1.3}.live-swap{width:44px}#liveArrange{font-size:13px;min-height:44px;margin:0 0 8px}.live-quick{position:sticky;top:8px;z-index:4;padding:8px;background:#122535;border:1px solid var(--line);border-radius:12px}.live-quick button{min-height:60px}@media(max-width:640px){.live-sides{grid-template-columns:1fr}.live-player-list,.live-sides.together .live-player-list{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));max-height:none}.live-playerbar{padding:8px}.live-side{padding:6px}.live-player strong{font-size:13px}.live-player{min-height:104px}#live>.card{padding:12px}}

#live{padding-bottom:120px}#live .live-quick{position:fixed;top:auto;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(640px,calc(100% - 28px));box-shadow:0 6px 30px #0009}#liveQuickContext{grid-column:1/-1;color:#e8f3f7;text-align:center;line-height:1.4}#live .live-quick button{min-height:56px}

.live-arranging .live-player,.live-drag{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}.live-arranging .live-quick{visibility:hidden}.live-drag-preview{position:fixed;top:0;left:0;z-index:100;pointer-events:none;max-width:180px;padding:15px;border:2px solid #ff985c;border-radius:12px;background:#162f42;color:white;font-weight:750;box-shadow:0 10px 30px #0008}.live-player-tile.dragging{opacity:.35}.live-arranging .live-player{border-style:dashed}

.live-player{touch-action:auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.live-player-tile.drag-ready>.live-player{outline:3px solid #fdd7ab;outline-offset:2px}.live-arranging .live-player{touch-action:none}

#live{padding-bottom:180px}.live-skill-picker{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:0;color:#edf4f7;font-size:13px}.live-skill-picker select{flex:1;min-width:0;min-height:44px;padding:8px;font-size:14px}.live-arranging .live-quick{visibility:visible}#live .live-quick{padding:8px;gap:5px}

.live-skill-buttons{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}#live .live-quick .live-skill-button{min-height:44px;padding:6px 3px;font-size:12px;line-height:1.25;border:1px solid #466172;background:#203a4c;overflow-wrap:anywhere}#live .live-quick .live-skill-button[aria-pressed=true]{background:#ff985c;color:#132032;border-color:#ff985c}#live{padding-bottom:230px}@media(min-width:560px){.live-skill-buttons{grid-template-columns:repeat(6,minmax(0,1fr))}}

.profile-skill-details{margin-top:24px;border-top:1px solid var(--line);padding-top:12px}.profile-skill-details summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:650;color:var(--muted)}.profile-skill-details summary:focus-visible{outline:3px solid #6cdae0;outline-offset:3px}

.performance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px}.performance-result{background:#142b3b;border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:16px;min-width:0}.performance-best{font-size:22px;font-weight:750;color:#98e8c1}.performance-chart{display:block;width:100%;height:auto;color:var(--orange);border-bottom:1px solid var(--line);margin-top:12px}.measurement-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:0 16px}#performance summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:700}#performance summary:focus-visible{outline:3px solid #6cdae0;outline-offset:3px}#performance textarea{min-height:80px}

.stopwatch-panel{border:1px solid var(--line);background:#102333;border-radius:16px;padding:16px;margin-bottom:20px}.stopwatch-display{display:block;font-size:clamp(40px,9vw,64px);font-variant-numeric:tabular-nums;font-weight:800;color:#98e8c1;margin:12px 0}.stopwatch-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stopwatch-actions button{min-height:60px;font-size:18px;touch-action:manipulation}#stopwatchStatus{min-height:3em}#stopwatchTarget{overflow-wrap:anywhere}

.legacy-skills{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.legacy-skills summary{cursor:pointer;font-weight:700;padding:12px 0;min-height:44px}.legacy-table-wrap{overflow-x:auto;max-width:100%}.legacy-skills-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.legacy-skills-table th,.legacy-skills-table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top}.legacy-skills-table tbody th{font-weight:600}.legacy-skills-table thead{color:#98e8c1}.legacy-skills-table td{font-variant-numeric:tabular-nums}
.legacy-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.legacy-table th,.legacy-table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top;min-width:90px}.legacy-table thead{color:#98e8c1}.legacy-table td{font-variant-numeric:tabular-nums}.legacy-table-wrap{margin:10px 0}#excelCatalogs details{margin:12px 0}#excelCatalogs summary{cursor:pointer;padding:10px 0;font-weight:600}

.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:18px 0}.weekday{text-align:center;color:var(--muted);font-size:12px}.calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:65px;padding:6px;font-size:16px}.calendar-day small{font-size:10px;line-height:1.3}.calendar-day.today{box-shadow:inset 0 0 0 2px var(--orange)}.calendar-reminders:empty{display:none}.calendar-reminders{padding:14px;margin-bottom:18px;border:1px solid #98e8c1;border-radius:12px;background:#173c32;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.response-prompt{color:#98e8c1}.calendar-editor{padding:16px;margin-top:14px;border:1px solid var(--line);border-radius:12px}.calendar-editor button{margin:5px 5px 0 0}@media(max-width:480px){.month-grid{gap:3px}.calendar-day{min-height:56px;padding:3px}.calendar-day small{font-size:9px}}

/* Confirmed player progress */
#profileProgress{margin:1rem 0 2rem}.xp-total{display:block;font-size:1.8rem;margin:.7rem 0}progress{display:block;width:100%;height:1.1rem;accent-color:#f4a340}.progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:1rem 0}.progress-stats div{padding:.7rem;background:rgba(255,255,255,.05);border-radius:.7rem}.progress-stats strong,.progress-stats span{display:block}.progress-stats strong{font-size:1.35rem}.progress-stats span{font-size:.85rem}.xp-journal-entry{padding:.7rem 0;border-bottom:1px solid rgba(255,255,255,.15)}@media(max-width:520px){.progress-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.badges{flex-wrap:wrap;gap:10px}.badges span{width:auto;min-width:105px;max-width:100%;height:auto;min-height:65px;padding:12px;font-size:.95rem;text-align:center;clip-path:none;border-radius:12px;overflow-wrap:anywhere;color:#dbe9f0}.badges span.badge-earned{border:1px solid #86d9b5;background:#234638;color:#b7f3d7}#profileXpTotal{font-size:clamp(18px,4vw,30px);line-height:1.35;overflow-wrap:anywhere}

/* Achievements and confirmed quest steps */
#rewardManagement form{padding:1rem 0;border-bottom:1px solid #284055}#rewardManagement details{margin:1rem 0}#rewardManagement input[type=checkbox]{width:auto;min-width:22px;min-height:22px}#rewardManagement label:has(input[type=checkbox]){display:flex;align-items:center;gap:.6rem;flex-direction:row}.quest-card{padding:1rem;margin:.8rem 0;border:1px solid #284055;border-radius:12px}.quest-card progress{width:100%}.reward-rule{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:1rem 0}#rewardPending:empty{display:none}

.badge-negative{background:#4a1e30;border:1px solid #f28ba5;color:#ffc5d4}

/* The player card follows the supplied blue/orange profile, with real text
   and responsive layout instead of a flattened screenshot. */
.player-card{margin-bottom:22px;background:#eef6fc;color:#102638;border:2px solid #ee7926;border-radius:14px;overflow:hidden;box-shadow:0 14px 30px #030b1366}
.player-card-heading{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 24px;background:repeating-linear-gradient(-28deg,#122c44 0 25px,#163650 26px 29px);border-bottom:5px solid #ff861f;color:white;font-style:italic;font-weight:950;letter-spacing:.025em}
.player-card-heading strong{color:#ff9a46}.player-card-layout{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(0,2fr)}
.player-identity{padding:26px 20px;background:repeating-linear-gradient(-30deg,#132c43 0 30px,#193a55 31px 34px);color:white;min-width:0;text-align:center;border-right:5px solid #ff861f}
.player-identity h2{font-style:italic;text-transform:uppercase;font-size:clamp(23px,3vw,34px);overflow-wrap:anywhere;margin:18px 0}.player-identity p{color:#d4e4ef}.player-identity blockquote{margin:18px 0;font-size:14px;line-height:1.6;color:#ffb779}
.player-portrait{width:min(100%,220px);aspect-ratio:1;margin:auto;border-radius:50%;border:5px solid #ff8a22;outline:3px solid white;background:radial-gradient(circle,#40617a,#102334);display:grid;place-items:center;overflow:hidden;font-size:56px;font-weight:950;color:#ffb677}
.player-portrait img{width:100%;height:100%;object-fit:cover}.player-card-main{padding:22px;min-width:0}.player-card-level{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.player-card-level strong{font-size:34px;font-style:italic}.player-card-level span{font-size:13px;font-weight:800}.player-card-main>progress{width:100%;height:18px;margin:12px 0 18px;accent-color:#f87a1b}
.player-card-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.player-stat{padding:10px 12px;min-width:0}.player-stat strong{display:block;font-size:20px;font-weight:950;line-height:1.3;overflow-wrap:anywhere}.player-stat span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.045em;margin-top:4px;font-weight:750}.player-card-overview .player-stat{background:#fff;border-left:4px solid #f87a1b;border-radius:3px}
.player-card-skills h3{background:#132c43;color:white;font-style:italic;padding:10px 12px;margin:0}.player-card-skills>small{display:block;color:#527086;text-align:right;padding:5px 0}.player-skill-row{display:grid;grid-template-columns:110px 35px minmax(30px,1fr) 64px;align-items:center;gap:8px;border-bottom:1px solid #cddfea;padding:8px 0;font-size:13px}.player-skill-row progress{width:100%;height:12px;accent-color:#f87a1b}.skill-value{border:2px solid #f87a1b;text-align:center;border-radius:50px;background:white;font-weight:850;padding:2px}.skill-trend{font-size:11px;text-align:right;font-weight:800;white-space:nowrap}
.player-training-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#c8dce9;border-top:5px solid #ff861f}.player-training-strip .player-stat{background:#fff;text-align:center}.player-training-strip .player-stat:nth-child(2){color:#cc5316}.player-training-strip .player-stat:nth-child(3){color:#147bb0}.player-card>.development-detail{margin:0;padding:14px 20px;background:#f8fcff;border-top:1px solid #c8dce9}.player-card .development-detail p,.player-card .development-detail small{color:#3a586e}.development-detail{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}.development-detail summary{cursor:pointer;font-weight:750;min-height:26px;line-height:1.5}.development-table{width:100%;border-collapse:collapse;font-size:13px}.development-table th,.development-table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.development-event{border-top:1px solid var(--line);padding:14px 0}.development-event p{margin:4px 0}.development-badges{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}.development-badges h3{width:100%;padding:9px 12px;background:#132d43;border-left:4px solid #ff861f;text-transform:uppercase;font-style:italic}.development-badges:nth-child(2) h3{border-color:#ab84ff}.development-badges:nth-child(3) h3{border-color:#f0717d}.development-badge{width:115px;text-align:center}.development-badge img{width:90px;height:90px;object-fit:contain}.development-badge strong,.development-badge small{display:block;font-size:12px;line-height:1.5}.position-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.position-checks label{display:flex;gap:12px;align-items:center;margin:4px 0}.position-checks input{width:22px;min-height:22px}.player-card~.grid{align-items:start}
@media(max-width:720px){.player-card-layout{grid-template-columns:1fr}.player-identity{border-right:0;border-bottom:4px solid #ff861f;padding:18px;display:grid;grid-template-columns:80px minmax(0,1fr);column-gap:20px;text-align:left}.player-portrait{grid-row:1/4;width:80px;font-size:24px;border-width:3px;outline-width:2px}.player-identity h2{font-size:25px;margin:0 0 5px}.player-identity p{margin:0;font-size:12px}.player-identity blockquote{grid-column:1/-1;margin:15px 0 0}.player-card-main{padding:16px}.player-card-heading{padding:13px 16px;font-size:12px}.player-card-level strong{font-size:29px}.player-card-level{gap:10px}.player-card-overview{gap:7px}.player-stat strong{font-size:17px}.player-training-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.player-skill-row{grid-template-columns:90px 32px minmax(20px,1fr) 58px;gap:6px;font-size:12px}.player-card>.development-detail{padding:14px}.development-detail{padding:12px}.development-table th,.development-table td{padding:10px 8px}}
@media print{header,nav,#auth,#coach,#roster,#live,#skills,#performance,#progress,footer,#error,#message{display:none!important}.player-card{break-inside:avoid;box-shadow:none}body{background:white}.player-card-layout{grid-template-columns:1fr 2fr}}

.diary-text{white-space:pre-wrap;overflow-wrap:anywhere}.diary-editor label:has(input[type=checkbox]){display:flex;align-items:center;gap:12px}.diary-editor input[type=checkbox]{width:22px;min-height:22px}

.jump-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.jump-figure,.jump-timeline{display:block;width:100%;height:auto}.jump-timeline{background:#10283c;border-radius:12px}.dashboard-mean{display:grid;grid-template-columns:130px 1fr 160px;gap:12px;align-items:center;margin:12px 0}@media(max-width:650px){.jump-figures{grid-template-columns:1fr}.dashboard-mean{grid-template-columns:1fr}}
/* Calendar drafts and modular voting identities. */
.calendar-drafts{margin-top:1.2rem;padding:1rem;border:1px solid #40566c;border-radius:16px;background:#142231}
.calendar-drafts>summary{cursor:pointer;font-weight:700;padding:.4rem}
.calendar-drafts .session{margin-top:1rem}
.decline-editor{display:grid;gap:.7rem;margin-top:1rem;padding:1rem;border-radius:12px;background:#142231}
.decline-editor textarea{width:100%;min-height:5rem;padding:.7rem;border-radius:10px}
.voting-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:.8rem;margin:1rem 0}
.voting-card{display:grid;grid-template-columns:52px 1fr;gap:.8rem;align-items:center;padding:1rem;border:1px solid #3b5267;border-radius:16px;background:linear-gradient(135deg,#20374b,#172737);animation:vote-appear .32s ease both;animation-delay:calc(var(--order)*25ms);transition:transform .18s ease,box-shadow .18s ease}
.voting-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px #0003}
.voting-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#31546d;color:#fff;font-weight:800;overflow:hidden}
.voting-avatar img{width:100%;height:100%;object-fit:cover}
.voting-identity{display:grid;gap:.25rem;min-width:0;overflow-wrap:anywhere}
.voting-answer{font-size:.88rem;font-weight:700}.vote-yes{border-left:4px solid #8edcbd}.vote-no{border-left:4px solid #ffb1a5}.vote-maybe{border-left:4px solid #edcf80}
.voting-reason{grid-column:1/-1;font-size:.9rem;margin:0;overflow-wrap:anywhere}
.attendance-row small{max-width:25rem;overflow-wrap:anywhere}
@keyframes vote-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.voting-card{animation:none;transition:none}.voting-card:hover{transform:none}}
.profile-links{position:sticky;top:0;z-index:10;display:flex;flex-wrap:wrap;gap:.4rem;padding:.75rem;background:#142231f5;border:1px solid #40566c;border-radius:12px;margin-bottom:1rem}
.profile-links a{display:inline-block;padding:.45rem .7rem;border-radius:9px;background:#294359;color:#fff;text-decoration:none;font-size:.9rem}
.profile-links a:hover,.profile-links a:focus-visible{background:#4c6071;outline:2px solid #ff8a3d}
#profile section,#profile details,#playerDetails section,#playerDetails h3{scroll-margin-top:120px}
.community-card{padding:1.2rem;border:1px solid #40566c;border-radius:16px;margin:1rem 0;background:#172b3a}
.post-body{white-space:pre-wrap;overflow-wrap:anywhere}.poll-options{display:grid;gap:.7rem;margin-top:1rem}.poll-option{display:grid;grid-template-columns:1fr auto;gap:.5rem;padding:.8rem;background:#203b4b;border-radius:12px}.poll-option progress{width:100%;grid-column:1/-1}.poll-option button{grid-column:1/-1}
.match-card{border-left:4px solid #b49bed}.match-card>a{display:inline-block;margin:.5rem .8rem .5rem 0}.match-card>strong{display:block;color:#a8e4c4;padding:.5rem 0}
.match-card details{margin:1rem 0}.match-card summary{cursor:pointer;padding:.7rem;background:#203b4b;border-radius:9px}.match-card form{padding:1rem 0;display:grid;gap:.6rem}
#communityEditor form,#profileAbsences form{display:grid;gap:.7rem;padding:1rem 0}
@media(max-width:600px){.profile-links{gap:.3rem;padding:.5rem}.profile-links a{padding:.4rem .5rem;font-size:.83rem}.poll-option{grid-template-columns:1fr}.poll-option progress,.poll-option button{grid-column:1}}
.badge-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin:12px 0 24px}.badge-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px;border:1px solid var(--border,#d8dce5);border-radius:14px;text-align:center}.badge-card p{font-size:.85rem;line-height:1.4;margin:0}.badge-card progress{width:100%;height:8px}.badge-art{position:relative;width:88px;height:88px}.badge-art img,.badge-art span{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.badge-art span{display:grid;place-items:center;font-size:44px;border-radius:50%;background:#ffcb50;color:#765106}.badge-gray{filter:grayscale(1);opacity:.4}.badge-color{clip-path:inset(calc(100% - var(--badge-fill)) 0 0 0);transition:clip-path .5s ease}.badge-locked strong{opacity:.8}.readonly-hint{padding:10px;border-left:3px solid #6e86a6;background:rgba(110,134,166,.1)}.appointment-access fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.appointment-access label input[type=checkbox]{width:auto}.appointment-access{padding:16px;border:1px solid var(--border,#d8dce5);border-radius:12px}@media(prefers-reduced-motion:reduce){.badge-color{transition:none}}
.volleymon-sprite{width:96px;height:104px;flex:0 0 96px;background-image:url('/static/mascot/spritesheet-extended.png');background-size:768px 1144px;background-repeat:no-repeat}.volleymon-profile{display:flex;align-items:center;gap:12px;margin:0 0 12px}.volleymon-profile>div:last-child{display:grid;gap:6px}.volleymon-toast{position:fixed;z-index:1000;right:16px;bottom:max(16px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;max-width:440px;padding:12px 16px;background:#172d3b;color:#fff;border:1px solid #fb9d38;border-radius:18px;box-shadow:0 8px 30px #0005}.volleymon-toast p{margin:8px 0;line-height:1.4}.volleymon-toast small{color:#e8cda8}.volleymon-toast button{flex-shrink:0}@media(max-width:480px){.volleymon-toast{left:10px;right:10px;max-width:none;gap:6px;padding:10px}.volleymon-toast button{font-size:.75rem;padding:8px}.volleymon-profile{gap:6px}}@media(prefers-reduced-motion:reduce){.volleymon-toast{scroll-behavior:auto}}

/* Badge navigation stays entirely inside the current profile. */
.badge-tabs,.badge-categories{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px;overflow:visible}.badge-tabs button,.badge-categories button{white-space:normal;font-size:.85rem;min-height:44px;padding:9px 12px}.badge-tabs button[aria-pressed=true]{background:var(--orange);color:#132032;border-color:var(--orange)}.badge-categories button[aria-pressed=true]{background:#2d5f50;border-color:#89ddba}.badge-page{min-width:0}.badge-count{margin:0 0 12px;font-size:.85rem}.badge-page .badge-gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}.badge-page .badge-card{padding:14px 10px;border-color:var(--line);background:#102130}.badge-page .badge-art{width:72px;height:72px}.badge-page .badge-art img{position:absolute;inset:0;width:72px;height:72px;padding:0;border:0;border-radius:0;object-fit:contain}.badge-page .badge-gray{filter:grayscale(1);opacity:.42}.badge-page .badge-color{clip-path:inset(calc(100% - var(--badge-fill)) 0 0 0)}.badge-page .badge-card strong{font-size:.9rem;min-height:2.6em}.badge-page .badge-card p{font-size:.78rem}.badge-page .badge-card small{font-size:.75rem}.badge-paging{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px}.badge-paging span{font-size:.85rem;color:var(--muted)}.badge-paging button:disabled{cursor:default}@media(max-width:520px){.badge-page .badge-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.badge-tabs button,.badge-categories button{flex:1 1 auto}.badge-page .badge-card strong{overflow-wrap:anywhere}}

.team-table{width:100%;border-collapse:collapse;font-size:.85rem;text-align:left}.team-table th,.team-table td{padding:12px 8px;border-bottom:1px solid var(--line);white-space:nowrap}.team-table-own{background:#2d5f5077;font-weight:700}#teamPlanning .card>a{display:inline-block;margin:12px}#teamPlanning>h2{margin-bottom:20px}

/* V38: responsive team progress */
.team-skill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.6rem}.team-skill-grid p{margin:0;padding:.8rem;border:1px solid var(--border,#d8e0e8);border-radius:.7rem}.card>progress{width:100%;height:1.2rem;accent-color:#e97d22}

.parent-photo{max-width:128px;height:auto;border-radius:1rem}.parent-sharing-form{margin-bottom:1.5rem}

.badge-earned-strip{display:flex;gap:.7rem;overflow-x:auto;padding:.6rem 0 1rem}.badge-earned-tile{flex:0 0 135px;padding:.7rem;border-radius:1rem;background:#eef7ff;border:1px solid #d0e2f0;text-align:center;color:#16354b}.badge-earned-tile img{display:block;width:62px;height:62px;object-fit:contain;margin:auto auto .5rem}.badge-earned-tile strong{font-size:.85rem}.badge-earned-overview{margin-bottom:1rem}.team-portrait img{object-fit:contain!important;background:#fff}.team-profile-card .player-skill-row{grid-template-columns:minmax(70px,1fr) 45px minmax(60px,2fr) minmax(80px,1fr)}
/* V41 navigation and true profile areas */
.work-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:22px;align-items:start}.work-content{min-width:0}#mainNav{display:flex;flex-direction:column;overflow:visible;position:sticky;top:12px;padding:10px;background:#122333;border:1px solid var(--line);border-radius:16px;gap:6px}#mainNav button{white-space:normal;width:100%;text-align:left}.nav-heading{font-size:.68rem;letter-spacing:.09em;color:var(--muted);padding:12px 6px 4px}.mobile-quick{display:none}.profile-links{position:static;overflow:visible}.profile-links button{font-size:.85rem;padding:8px 11px;white-space:normal}.profile-links button[aria-current=page]{background:#ff985c;color:#102333}#profilePageTitle{margin:12px 0 18px;outline:none}[data-profile-page][hidden]{display:none!important}.badge-earned-strip{flex-wrap:wrap;overflow:visible}.badge-earned-tile{flex:1 0 110px;max-width:160px}
@media(max-width:800px){.work-layout{display:block}.mobile-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible;position:sticky;top:0;z-index:30;background:#091521;padding:8px 0}.mobile-quick button{padding:9px 4px;white-space:normal;font-size:.76rem}#mainNav{display:none;position:static;margin:0 0 16px;grid-template-columns:repeat(2,minmax(0,1fr))}#mainNav[data-open=true]{display:grid}#mainNav .nav-heading{grid-column:1/-1}.profile-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.profile-links button{font-size:.77rem;padding:9px 5px}.badge-earned-tile{max-width:none}}
.progress-reveal{width:min(620px,calc(100% - 28px));max-height:85vh;overflow:auto;padding:24px;border:1px solid #ff985c;border-radius:22px;background:linear-gradient(145deg,#173448,#091521);color:#fff;box-shadow:0 24px 100px #0009}.progress-reveal::backdrop{background:#020b14c9;backdrop-filter:blur(5px)}.progress-reveal h2{color:#ffb47f}.progress-reveal>button{margin:10px 8px 0 0}.feedback-changes p{display:flex;justify-content:space-between;gap:15px;padding:12px;border-bottom:1px solid #3b5368;margin:0}.feedback-changes span{text-align:right}.team-level-explanation{padding:14px;border-left:4px solid #ffb66a;background:#49361b}.badge-reveal-scene{display:flex;align-items:center;justify-content:center;gap:16px}.badge-reveal-cards{display:flex;flex-wrap:wrap;gap:15px;justify-content:center}.badge-reveal-card{display:grid;gap:12px;text-align:center;justify-items:center;animation:badge-unlock 1.1s cubic-bezier(.15,.8,.3,1) both}.badge-reveal-card img{width:108px;height:108px;object-fit:contain;filter:drop-shadow(0 0 18px #ffb43b99)}.progress-changed{filter:none}.change-label{font-size:.8rem;font-weight:bold;display:inline-block;padding:5px}.challenge-card{border-left:4px solid #ff985c}.challenge-card .buttons{flex-wrap:wrap}.challenge-result{background:#254b40;padding:12px;border-radius:12px}.challenge-form{display:grid;gap:12px}.challenge-rules{display:grid;gap:8px;padding-top:12px}.challenge-status{font-size:.8rem;color:#e5c493}@keyframes badge-unlock{0%{opacity:0;transform:scale(.35) rotate(-12deg);filter:grayscale(1)}65%{opacity:1;transform:scale(1.12) rotate(3deg)}100%{transform:scale(1) rotate(0)}}@media(prefers-reduced-motion:reduce){.badge-reveal-card{animation:none}.progress-changed{filter:none}}@media(max-width:480px){.progress-reveal{padding:17px}.feedback-changes p{display:grid}.feedback-changes span{text-align:left}.badge-reveal-scene{flex-direction:column}}
/* V42: readable progress, profile companion and direct challenges */
.profile-companion{display:flex;gap:16px;align-items:center;padding:14px 18px;border:1px solid #3e6680;border-radius:18px;background:linear-gradient(130deg,#142a3b,#1b3447);margin-bottom:18px}.profile-companion>div:nth-child(2){flex:1}.profile-companion p{font-size:.9rem;line-height:1.5;margin:7px 0}.profile-companion button{font-size:.75rem}.latest-badges{margin:20px 0;padding:18px;border-radius:18px;background:#142c3b}.latest-badge-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:15px}.latest-badge-grid button{display:flex;flex-direction:column-reverse;gap:10px;align-items:center;white-space:normal;font-size:.8rem;padding:12px 6px}.latest-badge-grid img{width:100%;max-width:95px;height:auto;object-fit:contain}.badge-details>img{display:block;width:150px;height:150px;object-fit:contain;margin:0 auto}.joker-card{border:1px solid #bd974d;border-radius:18px;padding:18px;background:linear-gradient(135deg,#3b2d19,#182a37);margin:16px 0}.joker-card>strong{font-size:.75rem;letter-spacing:.1em;color:#f4ca76}.joker-card h3{font-size:1.4rem;margin:8px 0}.challenge-shortcut{padding:7px 9px;font-size:.72rem;background:#223e52;white-space:normal}.player-skill-row:has(.challenge-shortcut){grid-template-columns:minmax(80px,1fr) 40px minmax(65px,1.5fr) 60px 90px}.challenge-card{position:relative;border:1px solid #3c6077;border-left:4px solid #ff985c;background:linear-gradient(135deg,#163448,#12232f);border-radius:20px;padding:22px}.challenge-card h3{font-size:1.2rem}.challenge-result strong{color:#90edc0}.challenge-status{display:inline-block;padding:8px 12px;background:#29465a;border-radius:30px;margin:8px 0}.challenge-form>label,.challenge-rules>label{font-weight:600}#pushPreferences form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#pushPreferences input[type=checkbox]{width:22px;min-height:22px}#pushPreferences label{display:flex;align-items:center;gap:10px;padding:10px;background:#203747;border-radius:10px}img[src$="/ST02.png"]{clip-path:inset(0 0 8% 0)}html[data-motion=off] *,html[data-motion=reduced] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:650px){.profile-companion{gap:9px;padding:12px;align-items:flex-start;flex-wrap:wrap}.profile-companion>div:nth-child(2){min-width:150px}.profile-companion>button{margin-left:auto}.latest-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.player-skill-row:has(.challenge-shortcut){grid-template-columns:minmax(65px,1fr) 35px minmax(60px,1.5fr) 50px}.challenge-shortcut{grid-column:1/-1;width:max-content;justify-self:end}#pushPreferences form{grid-template-columns:1fr}}
.challenge-versus{display:flex;justify-content:space-around;align-items:center;gap:20px;padding:15px 0}.challenge-person{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;flex:1}.challenge-avatar{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:#254b61;color:#ffc492;font-size:1.3rem;font-weight:800;border:2px solid #557f99;overflow:hidden}.challenge-avatar img{width:100%;height:100%;object-fit:cover}
.badge-page img.badge-color[src$="/ST02.png"]{clip-path:inset(calc(100% - var(--badge-fill)) 0 8% 0)}
.parent-push-preferences form{display:grid;gap:10px}.parent-push-preferences label{display:flex;align-items:center;gap:10px}.parent-push-preferences input[type=checkbox]{width:22px;min-height:22px}

/* V43: finite work areas, direct actions and touch-friendly participants. */
.workspace-pages{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;margin:12px 0 18px;padding:0}.workspace-pages button{white-space:normal;min-height:44px}.workspace-pages button.active,.workspace-pages button[aria-current=page]{background:#ff985c;color:#132032;border-color:var(--orange)}
.workflow-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0}.workflow-filters label{margin:0}.workspace-pager{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.workspace-pager span{color:var(--muted);font-size:13px}.workspace-pager button{min-height:44px}
.attendance-toolbar{position:sticky;top:0;z-index:3;padding:12px;border:1px solid var(--line);border-radius:12px;background:#122535}.attendance-toolbar h3{font-size:16px;margin:0 0 8px}.attendance-summary{font-size:13px;line-height:1.5;margin:8px 0}.attendance-toolbar>.buttons{margin:8px 0 0}.attendance-toolbar>.buttons button{font-size:12px;padding:8px}.attendance-toolbar>button{width:100%;background:#ff985c;color:#132032;font-weight:750}.attendance-row small{grid-column:1/-1}.attendance-row[hidden],[data-coach-page][hidden]{display:none!important}
.measurement-player-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.measurement-player{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:122px;padding:10px 6px;min-width:0;border:2px solid #466172}.measurement-player strong{font-size:14px;overflow-wrap:anywhere}.measurement-player small{font-size:11px;color:inherit}.measurement-player[aria-pressed=true]{border-color:#ff985c;background:#543522;color:white}.measurement-saved{color:#98e8c1!important}.measurement-selection{font-size:14px;font-weight:700}.measurement-fields{align-items:start}#measurementSaved{color:#98e8c1}#measurementSaved:empty{display:none}#measurementTestButtons button{font-size:13px}#measurementPlayerLabel[hidden]{display:none!important}
#error:not(:empty),#message:not(:empty){position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:30;width:min(92vw,760px);padding:12px 16px;margin:0;border-radius:10px;background:#142839;box-shadow:0 8px 35px #0008;border:1px solid currentColor;font-size:14px;max-height:24vh;overflow:auto}#error:not(:empty){bottom:72px}
@media(max-width:600px){.measurement-player-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-filters{grid-template-columns:1fr}.workspace-pages button{flex:1 1 40%;font-size:13px}.attendance-toolbar{padding:9px}.attendance-row{grid-template-columns:1fr minmax(120px,1fr)}.attendance-row span{font-size:13px}}
