:root{color-scheme:dark;--bg:#111213;--surface:#191b1d;--line:#303234;--text:#f2f1ed;--muted:#a2a5a5;--accent:#c8f078;--radius:6px;font-family:"Segoe UI",Arial,sans-serif;font-synthesis:none;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{color:inherit}button,input,select{border-radius:var(--radius)}[hidden]{display:none!important}.page-shell{width:min(1264px,100% - 80px);margin:auto}.masthead{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;font-weight:850;font-size:21px;letter-spacing:1px}.brand-mark{display:grid;place-content:center;width:45px;height:45px;background:var(--accent);color:var(--bg);font-size:42px;letter-spacing:-5px;line-height:1;border-radius:var(--radius);padding-right:5px}.brand-mark span{color:#52652e}.brand-sub{display:block;color:var(--muted);font-size:8px;letter-spacing:2px;font-weight:600;margin-top:3px}.site-address{font-family:Consolas,monospace;font-size:12px;color:var(--muted)}.intro{padding:46px 0 36px;display:flex;justify-content:space-between;align-items:flex-end;gap:24px}.eyebrow{font:10px Consolas,monospace;letter-spacing:1.5px;color:var(--accent);margin:0 0 17px}h1{font-size:clamp(36px,4.4vw,62px);line-height:1.04;letter-spacing:-2.6px;margin:0;font-weight:780}h1 span{color:#969999}.intro-copy{font-size:14px;color:var(--muted);margin:18px 0 0}.intro-aside{text-align:right;padding-bottom:3px}.tiny-heading{font:10px Consolas,monospace;letter-spacing:1.2px;color:var(--muted)}.intro-aside p{font-size:15px;line-height:1.7;margin:12px 0}.local-note{font-size:11px;color:#bec5b6}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0}.board-heading{display:flex;align-items:center;gap:10px}h2{font-size:16px;font-weight:650;margin:0;letter-spacing:-.3px}.live-square{height:7px;width:7px;background:var(--accent)}.counter{font:11px Consolas,monospace;color:var(--muted);margin-left:6px}.actions{display:flex;gap:8px;align-items:center}.button{border:1px solid var(--line);padding:10px 15px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}.button-quiet{background:transparent}.button-quiet:hover:not(:disabled){background:#292c2d;border-color:#575b5c}.button-primary{background:var(--accent);border-color:var(--accent);color:#17210c}.button-primary:hover:not(:disabled){background:#dcffa1}.tier-board{border:1px solid #343638;border-radius:var(--radius);overflow:hidden;background:#17191a}.tier-row{display:grid;grid-template-columns:126px minmax(0,1fr);min-height:106px;border-bottom:1px solid #0e0f10}.tier-row:last-child{border-bottom:0}.tier-label{display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;color:#17171a;font-size:16px;font-weight:700;line-height:1.2;border-right:2px solid #111213}.tier-label.long{font-size:14px}.drop-zone{display:flex;align-content:flex-start;align-items:flex-start;flex-wrap:wrap;gap:10px;min-width:0;position:relative;padding:10px;transition:background .15s;min-height:106px}.tier-row:nth-child(even) .drop-zone{background:#1b1d1e}.drop-zone.over{background:#303a27!important;box-shadow:inset 0 0 0 2px var(--accent)}.empty-hint{color:#727879;font-size:11px;margin:auto 12px;align-self:center;pointer-events:none}.tier-row .empty-hint{opacity:0}.tier-row:first-child .empty-hint{opacity:1}.tier-row:hover .empty-hint{opacity:1}.player-card{--rank:#788184;position:relative;width:80px;min-height:87px;padding:4px 3px 5px;background:#222527;border:1px solid #3a3e40;border-radius:4px;text-align:center;flex-shrink:0;touch-action:pan-y;user-select:none;transition:transform .12s,background .12s,border-color .12s;cursor:grab}.player-card:hover{background:#303436;border-color:#838b8d;transform:translateY(-2px)}.player-card:active{cursor:grabbing}.player-card.dragging{opacity:.25}.portrait{width:54px;height:54px;margin:0 auto 5px;position:relative;display:block}.profile-icon{width:48px;height:48px;position:absolute;left:3px;top:3px;object-fit:cover;border-radius:50%;border:2px solid var(--rank);background:#303536;box-shadow:0 0 0 2px #101314}.portrait:after{content:"";position:absolute;inset:0;border:2px solid var(--rank);clip-path:polygon(0 0,26% 12%,74% 12%,100% 0,89% 73%,50% 100%,11% 73%);opacity:.8;pointer-events:none}.rank-emblem{position:absolute;bottom:-5px;right:-7px;width:33px;height:33px;object-fit:contain;filter:drop-shadow(0 2px 2px #000);z-index:1}.avatar-fallback{display:grid;place-items:center;font-weight:800;color:#cdd5c5;font-size:20px}.player-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:650;line-height:15px}.player-rank{display:block;font:8px Consolas,monospace;color:#aeb5b7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:12px}.board-foot{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted);padding:14px 0}kbd{font:10px inherit;color:#d6d8d5;border:1px solid #424748;border-radius:3px;padding:1px 4px;margin-right:3px}.pool-section{margin:20px 0 36px}.pool-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.pool-heading h2{font-size:18px}.pool-heading p{font-size:12px;color:var(--muted);margin:6px 0 0}.search{display:flex;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:0 12px;gap:8px}.search>span{font-size:23px;color:var(--muted)}.search input{border:0;padding:11px 0;background:transparent;color:var(--text);width:170px;font-size:12px;outline-offset:1px}.search:focus-within{border-color:var(--accent)}input::placeholder{color:#9a9e9f}.player-pool{background:#161819;border:1px dashed #424648;border-radius:var(--radius);min-height:118px;padding:14px}footer{border-top:1px solid var(--line);padding:22px 0 28px;display:flex;justify-content:space-between;gap:12px;color:#898e8f;font-size:10px}.notice{border:1px solid #424a38;border-radius:var(--radius);background:#20261b;padding:12px 16px;font-size:12px;line-height:1.5;margin:0 0 14px;color:#d5dfc6}.notice.error{border-color:#6e4141;background:#2c2020;color:#f4c6bc}.notice button{background:none;color:var(--accent);border:0;text-decoration:underline;padding:0 0 0 8px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:5;max-width:calc(100% - 32px);padding:14px 20px;background:#e6eddd;border:1px solid #b8c8a6;border-radius:var(--radius);color:#17200f;font-size:13px;box-shadow:0 8px 40px #0008}.move-dialog,.confirm-dialog{background:#202325;color:var(--text);border:1px solid #4a5052;border-radius:10px;padding:24px;width:min(440px,calc(100% - 32px));max-height:85dvh}.move-dialog::backdrop,.confirm-dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-head .eyebrow{margin-bottom:6px}.dialog-head h2,.confirm-dialog h2{font-size:23px}.move-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.move-option{display:flex;align-items:center;gap:10px;background:#292d2e;border:1px solid #444b4d;padding:13px 10px;font-size:12px;text-align:left}.move-option:hover{border-color:var(--accent)}.move-option i{width:12px;height:12px;border-radius:2px;background:#929a9d}.move-option:disabled{opacity:.45}.dialog-tip,.confirm-dialog p{font-size:12px;line-height:1.6;color:var(--muted)}.confirm-dialog .actions{justify-content:flex-end;margin-top:24px}.drop-before{box-shadow:inset 3px 0 var(--accent)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Admin shares the same small, buildless stylesheet. */
.admin-page{width:min(1100px,100% - 48px);margin:auto}.admin-intro{margin:36px 0 24px}.admin-intro h1{font-size:38px;letter-spacing:-1.3px}.admin-intro p{color:var(--muted);font-size:14px;line-height:1.6}.admin-section{border-top:1px solid var(--line);padding:24px 0}.admin-section h2{font-size:20px;margin-bottom:10px}.admin-section>p{color:var(--muted);font-size:13px;line-height:1.6}.roster-form{display:grid;grid-template-columns:2fr 1.3fr 1fr auto;gap:12px;align-items:end;margin-top:20px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#c5cbca}.field input,.field select{width:100%;min-height:40px;border:1px solid #4a5051;background:#1e2223;color:var(--text);padding:9px 11px}.admin-table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;font-size:12px;min-width:740px}.admin-table th{text-align:left;color:var(--muted);font-weight:500;padding:12px 10px;border-bottom:1px solid #484d4e}.admin-table td{padding:16px 10px;border-bottom:1px solid var(--line);vertical-align:top}.admin-table small{display:block;margin-top:6px;color:var(--muted);line-height:1.5}.admin-table small.warning{color:#e5b0a5;max-width:250px}.admin-table form{display:inline}.admin-table .actions{flex-wrap:wrap;min-width:205px}.admin-status{display:flex;gap:24px;flex-wrap:wrap;font:12px Consolas,monospace;margin:24px 0;color:var(--muted)}.admin-status strong{color:var(--text);font-weight:400}.inline-form{display:flex;gap:10px;flex-wrap:wrap}.danger{color:#f3b4a7}.edit-nickname{width:130px;background:#1b1f20;color:var(--text);border:1px solid #444b4c;padding:8px;font-size:11px}.nickname-form{display:flex!important;gap:5px;margin-top:8px}.loading-label{opacity:.6;pointer-events:none}.admin-empty{padding:30px 0;color:var(--muted);font-size:14px}code{font-family:Consolas,monospace;color:#d0ddaF;font-size:.94em}
.field textarea{font:13px Consolas,monospace;border:1px solid #4a5051;border-radius:6px;background:#1e2223;color:var(--text);padding:12px;resize:vertical;width:100%}.bulk-controls{display:flex;align-items:flex-end;gap:12px;margin:14px 0 18px;flex-wrap:wrap}.bulk-controls select{min-width:130px}.import-results{display:grid;gap:0;margin-top:16px}.import-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.import-row span{color:var(--muted)}.import-row[data-status=success] span{color:#c8f078}.import-row[data-status=failed] span{color:#f0aca0}.import-row[data-status=fetching] span{color:#efd88a}
.brand-mark{display:flex;align-items:center;justify-content:center}.player-card{touch-action:none}.drag-ghost{position:fixed!important;z-index:100;pointer-events:none;opacity:.95;transform:rotate(4deg) scale(1.07);box-shadow:0 10px 28px #0009}
@media(min-width:1450px){.page-shell{width:min(1320px,100% - 120px)}.tier-row,.drop-zone{min-height:112px}}
@media(max-width:720px){.page-shell{width:calc(100% - 32px)}.masthead{height:78px}.brand{font-size:18px;gap:10px}.brand-mark{width:38px;height:38px;font-size:36px}.brand-sub{font-size:7px;letter-spacing:1.1px}.site-address{font-size:10px}.intro{padding:32px 0 24px}.intro-aside{display:none}h1{font-size:42px;letter-spacing:-1.7px}.eyebrow{font-size:8px;letter-spacing:1px}.intro-copy{font-size:12px}.toolbar{gap:8px;flex-wrap:wrap}.board-heading h2{font-size:14px}.counter{font-size:10px}.button{padding:9px 11px;font-size:11px}.actions{gap:6px}.tier-row{grid-template-columns:83px minmax(0,1fr);min-height:94px}.tier-label{font-size:14px;padding:8px}.tier-label.long{font-size:11px}.drop-zone{min-height:94px;gap:6px;padding:7px}.player-card{width:67px;min-height:79px;padding:3px 2px}.portrait{width:48px;height:48px;margin-bottom:4px}.profile-icon{width:42px;height:42px}.rank-emblem{width:30px;height:30px;right:-5px;bottom:-4px}.player-name{font-size:9px}.player-rank{font-size:7px}.empty-hint{font-size:10px}.board-foot{font-size:10px;flex-wrap:wrap;gap:8px}.pool-section{margin-top:16px}.pool-heading h2{font-size:16px}.pool-heading p{font-size:10px}.search input{width:120px;font-size:11px}.search{padding:0 8px}.player-pool{min-height:106px;padding:10px}footer{flex-direction:column;font-size:9px;gap:8px}.admin-page{width:calc(100% - 32px)}.roster-form{grid-template-columns:1fr 1fr}.admin-status{gap:12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Compact board workspace. Public view intentionally keeps the board front and center. */
.board-page .page-shell{width:min(1560px,100% - 48px)}.board-page .masthead{height:72px}.board-page .brand{font-family:Georgia,'Times New Roman',serif;font-size:23px;color:#e2c682;letter-spacing:1.3px;gap:9px}.board-page .brand img{display:block}.board-page .list-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0 14px}.list-title{font-size:23px;font-weight:650;letter-spacing:-.6px;width:min(460px,100%);min-width:120px;background:transparent;color:var(--text);border:1px solid transparent;padding:6px 4px}.list-title:hover{border-color:var(--line)}.list-title:focus{border-color:#a0bd70}.board-controls{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px}.board-controls .actions{flex-wrap:wrap}.board-controls select{background:#1e2223;color:var(--text);border:1px solid #444a4b;padding:9px;font-size:12px;max-width:160px}.board-layout{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:20px;align-items:start;transition:grid-template-columns .28s ease,gap .28s ease}.board-layout.bench-hidden{grid-template-columns:minmax(0,1fr) 0px;gap:0}.bench{position:sticky;top:16px;min-width:0;max-height:calc(100dvh - 32px);overflow:auto;background:#191c1d;border:1px solid #373d3e;border-radius:6px;padding:14px;opacity:1;transform:translateX(0);transition:opacity .22s,transform .28s,padding .28s,border-color .28s}.bench-hidden .bench{opacity:0;transform:translateX(24px);pointer-events:none;padding-left:0;padding-right:0;border-color:transparent;overflow:hidden;visibility:hidden;transition:opacity .2s,transform .28s,visibility 0s .28s}.bench-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.bench-top h2{font-size:16px}.bench-top .button{border:0;padding:3px 7px;font-size:15px}.bench .search{width:100%;margin-bottom:12px}.bench .search input{width:100%;min-width:0}.board-page .player-pool{background:transparent;border:0;padding:0;gap:8px;min-height:130px}.board-page .tier-row{grid-template-columns:112px minmax(0,1fr) 0;min-height:148px}.board-page .tier-label{border:0;border-radius:0;display:flex;align-items:center;justify-content:center;font-size:14px;white-space:normal;overflow-wrap:anywhere;width:100%;letter-spacing:-.2px;font-weight:650}.board-page .tier-label:hover{filter:brightness(1.08)}.board-page .drop-zone{padding:8px;gap:8px;min-height:148px}.board-page .tier-row .empty-hint{opacity:0}.board-page .tier-row:hover .empty-hint{opacity:1}.board-page .tier-board.editing .tier-row{grid-template-columns:112px minmax(0,1fr) 42px}.row-tools{display:none;flex-direction:column;justify-content:center;gap:4px;padding:4px;border-left:1px solid #363c3e}.editing .row-tools{display:flex}.row-tool{background:transparent;border:1px solid #41494c;border-radius:3px;font-size:9px;padding:5px 1px}.row-tool:hover{background:#353d3f}.board-page .player-card{width:100px;min-height:132px;padding:0 3px 5px;background:#222729;border:1px solid #3d4547;overflow:hidden;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;touch-action:none}.board-page .portrait{width:86px;height:81px;display:block;flex-shrink:0;margin:0 auto 0;position:relative}.board-page .portrait:after{display:none}.board-page .profile-icon{box-shadow:none;position:absolute;object-fit:cover;border-radius:50%;border:0;z-index:0}.board-page .portrait.framed .profile-icon{width:28.55px;height:28.55px;left:28.72px;top:33.93px}.board-page .rank-frame{position:absolute;inset:0;width:86px;height:86px;object-fit:contain;z-index:1;pointer-events:none}.board-page .portrait.plain .profile-icon{width:54px;height:54px;left:16px;top:12px}.board-page .player-name{width:100%;font-size:10px;line-height:15px;font-weight:650}.board-page .player-rank{font-size:10px;line-height:14px;white-space:normal;color:#c6cecb;font-family:'Segoe UI',Arial,sans-serif}.board-page .apex-rank{color:#d2c2e6}.board-page .player-lp{font-size:11px;line-height:14px;font-weight:750;color:#efcf85}.board-page .player-queue{font:8px/11px Consolas,monospace;color:#a5b3ae}.board-page .ranks-hidden .player-card{min-height:87px}.board-page .ranks-hidden .portrait{height:64px}.board-page .ranks-hidden .tier-row,.board-page .ranks-hidden .drop-zone{min-height:104px}.board-page .board-foot{padding:12px 0 18px}.board-page footer{padding:15px 0;font-size:10px}.board-page .color-field{margin:16px 0}.color-field input{padding:3px;width:100%;height:42px}.field input{color:var(--text)}#share-url{width:100%;min-width:0;font-family:Consolas,monospace;font-size:12px}#tier-form .actions{flex-wrap:wrap}.move-options{max-height:55dvh;overflow:auto}.drag-ghost{width:100px!important;min-height:132px!important;background:#252c2e!important}.drag-ghost .portrait{width:86px;height:81px}.drag-ghost .rank-frame{position:absolute;inset:0;width:86px;height:86px}.drag-ghost .portrait.framed .profile-icon{width:28.55px;height:28.55px;left:28.72px;top:33.93px;border:0}.drag-ghost .portrait:after{display:none}
@media(max-width:1000px){.board-page .page-shell{width:calc(100% - 32px)}.board-layout{grid-template-columns:minmax(0,1fr) 236px;gap:14px}.bench{padding:10px}.board-page .tier-row{grid-template-columns:94px minmax(0,1fr) 0}.board-page .tier-board.editing .tier-row{grid-template-columns:94px minmax(0,1fr) 36px}.board-page .list-top{align-items:flex-start;flex-wrap:wrap}.board-page .player-card{width:96px}.board-page .player-pool{gap:6px}}
@media(max-width:760px){.board-page .masthead{height:62px}.board-page .brand{font-size:20px}.board-page .brand img{width:37px;height:37px}.board-page .list-top{padding:12px 0;gap:8px}.board-page .list-top .actions{width:100%;justify-content:space-between}.list-title{font-size:20px;padding-left:0}.board-controls{gap:8px;margin-bottom:12px}.board-controls .button,.board-controls select{font-size:10px;padding:8px}.board-layout,.board-layout.bench-hidden{grid-template-columns:minmax(0,1fr);gap:0}.bench{position:fixed;right:12px;top:220px;bottom:16px;max-height:calc(100dvh - 236px);width:234px;z-index:15;box-shadow:-10px 8px 30px #0008;visibility:visible}.bench-hidden .bench{transform:translateX(calc(100% + 18px));padding:10px}.board-page .tier-row{grid-template-columns:75px minmax(0,1fr) 0;min-height:144px}.board-page .tier-label{font-size:11px;padding:6px}.board-page .drop-zone{gap:6px;padding:6px;min-height:144px}.board-page .tier-board.editing .tier-row{grid-template-columns:75px minmax(0,1fr) 34px}.board-page .player-card{width:94px;min-height:130px}.board-page .portrait{width:82px;height:78px}.board-page .rank-frame{width:82px;height:82px}.board-page .portrait.framed .profile-icon{width:27.23px;height:27.23px;left:27.39px;top:32.35px}.board-page .portrait.plain .profile-icon{left:14px}.board-page .player-name{font-size:9px}.board-page .player-rank{font-size:10px}.board-page .board-foot{font-size:10px;line-height:1.6}.board-page footer{font-size:9px}.board-page .site-address{font-size:10px}.import-row{grid-template-columns:1fr;gap:5px}}
@media(prefers-reduced-motion:reduce){.board-layout,.bench,.bench-hidden .bench{transition:none}}
.brand-tagline{display:block;font:8px/1.4 "Segoe UI",Arial,sans-serif;letter-spacing:1.2px;color:#a6a89d;margin-top:3px;text-transform:uppercase}.board-page .bench .player-pool{padding:0}.board-page .bench .drop-zone{min-height:130px}
/* Preserve the original restrained typography and compact board rhythm. */
.board-page .brand{font-family:"Segoe UI",Arial,sans-serif;font-size:21px;font-weight:850;letter-spacing:1px;color:#f2f1ed}.board-page .list-title{font-size:20px}.board-page .tier-row{grid-template-columns:126px minmax(0,1fr) 0;min-height:124px}.board-page .tier-board.editing .tier-row{grid-template-columns:126px minmax(0,1fr) 42px}.board-page .drop-zone{min-height:124px}.board-page .player-card{min-height:106px}.board-page .portrait{width:74px;height:68px}.board-page .rank-frame{width:74px;height:74px}.board-page .portrait.framed .profile-icon{width:24.57px;height:24.57px;left:24.71px;top:29.2px}.board-page .portrait.plain .profile-icon{left:10px;top:9px}.board-page .apex-rank{color:#efcf85;font-weight:700}.board-page .player-rank{max-width:94px;line-height:13px}.board-page .player-queue{line-height:10px}.board-page .player-name{line-height:14px}.board-page .board-controls{margin-bottom:16px}
@media(max-width:1000px){.board-page .tier-row{grid-template-columns:94px minmax(0,1fr) 0}.board-page .tier-board.editing .tier-row{grid-template-columns:94px minmax(0,1fr) 36px}}
@media(max-width:760px){.board-page .brand{font-size:19px}.board-page .tier-row{grid-template-columns:75px minmax(0,1fr) 0;min-height:124px}.board-page .tier-board.editing .tier-row{grid-template-columns:75px minmax(0,1fr) 34px}.board-page .player-card{min-height:108px}.board-page .portrait{width:74px;height:68px}.board-page .rank-frame{width:74px;height:74px}.board-page .portrait.framed .profile-icon{width:24.57px;height:24.57px;left:24.71px;top:29.2px}.board-page .portrait.plain .profile-icon{left:10px;top:9px}.board-page .drop-zone{min-height:124px}.brand-tagline{font-size:7px;letter-spacing:1px}}
/* Every player tile has the same fixed footprint, including long apex labels. */
.board-page .player-card{width:100px;height:126px;min-height:126px;max-height:126px}.board-page .player-name{min-height:14px;max-height:14px}.board-page .player-rank{max-height:26px;min-height:13px;overflow:hidden;flex-shrink:0}.board-page .player-queue{margin-top:auto;flex-shrink:0}.board-page .tier-row,.board-page .drop-zone{min-height:144px}.board-page.hide-rank-details .player-card{height:90px;min-height:90px;max-height:90px}.board-page.hide-rank-details .portrait{height:64px}.board-page.hide-rank-details .tier-row,.board-page.hide-rank-details .drop-zone{min-height:108px}.board-page .bench .player-pool{gap:8px}.board-page.hide-rank-details .bench .player-pool{min-height:100px}
@media(max-width:760px){.board-page .player-card{width:94px;height:126px;min-height:126px;max-height:126px}.board-page .bench .player-pool{gap:6px}.board-page .bench{width:234px}.board-page .player-rank{max-width:88px}}
.template-editor{border:1px solid #384244;border-radius:6px;padding:14px;margin:12px 0}.template-editor summary{cursor:pointer;font-size:14px}.template-editor form{margin-top:14px}.template-editor .field{margin-bottom:14px}.template-editor input{padding:9px;color:var(--text);background:#1e2223;border:1px solid #4a5051}.template-editor .inline-form form{margin-top:0}
/* Maximize ranking space: one compact toolbar and a full-height right rail. */
.board-page .page-shell{width:calc(100% - 24px);max-width:none}.board-page .masthead{height:64px;position:sticky;top:0;z-index:30;background:var(--bg)}.board-page .list-top{height:48px;padding:7px 0;gap:10px;flex-wrap:nowrap;margin-right:276px;position:sticky;top:64px;z-index:20;background:var(--bg);transition:margin-right .28s}.board-page.bench-is-hidden .list-top{margin-right:0}.board-page .list-title{font-size:17px;width:180px;min-width:100px;flex:1;max-width:280px;padding:5px 3px}.toolbar-actions{flex:0 0 auto;flex-wrap:nowrap!important;gap:5px!important}.board-page .toolbar-actions .button{width:31px;height:31px;padding:4px;font-size:18px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.board-page .toolbar-actions select{height:31px;max-width:128px;width:128px;padding:5px;background:#1d2223;color:var(--text);border:1px solid #3a4345;font-size:11px;border-radius:6px}.board-page .board-layout{grid-template-columns:minmax(0,1fr) 264px;gap:12px}.board-page .board-layout.bench-hidden{grid-template-columns:minmax(0,1fr) 0;gap:0}.board-page .bench{position:fixed;top:64px;right:0;bottom:0;width:264px;height:calc(100dvh - 64px);max-height:none;border-radius:0;border-width:0 0 0 1px;padding:12px;z-index:21;box-shadow:none}.board-page .bench-hidden .bench{transform:translateX(100%)}.board-page .bench .player-pool{gap:8px}.board-page .board-foot{margin-right:276px;padding:9px 0 12px}.board-page.bench-is-hidden .board-foot{margin-right:0}.board-page footer{margin-right:276px;padding:10px 0}.board-page.bench-is-hidden footer{margin-right:0}.board-page .tier-board{border-radius:4px}.board-page .tier-row{grid-template-columns:112px minmax(0,1fr) 0}.board-page .tier-board.editing .tier-row{grid-template-columns:112px minmax(0,1fr) 38px}
@media(max-width:1060px) and (min-width:761px){.board-page .list-title{width:110px;max-width:160px;font-size:15px}.toolbar-actions{gap:3px!important}.board-page .toolbar-actions .button{width:28px;height:29px;font-size:16px}.board-page .toolbar-actions select{width:108px;max-width:108px;font-size:10px}.board-page .list-top{gap:5px}.board-page .tier-row{grid-template-columns:92px minmax(0,1fr) 0}.board-page .tier-board.editing .tier-row{grid-template-columns:92px minmax(0,1fr) 34px}}
@media(max-width:760px){.board-page .page-shell{width:calc(100% - 16px)}.board-page .masthead{height:58px}.board-page .brand img{width:34px;height:34px}.board-page .brand{font-size:18px}.board-page .list-top,.board-page.bench-is-hidden .list-top{top:58px;height:44px;padding:5px 0;margin-right:0;overflow-x:auto;gap:8px}.board-page .list-top .toolbar-actions{width:auto;justify-content:flex-start}.board-page .list-title{min-width:108px;width:108px;flex:0 0 108px;font-size:15px}.board-page .toolbar-actions .button{width:29px;height:29px;font-size:17px}.board-page .toolbar-actions select{width:104px;max-width:104px;font-size:10px}.board-page .board-layout,.board-page .board-layout.bench-hidden{grid-template-columns:minmax(0,1fr);gap:0}.board-page .bench{width:234px;top:102px;bottom:0;height:calc(100dvh - 102px);max-height:none;right:0;padding:10px;box-shadow:-12px 0 28px #0009}.board-page .bench .player-pool{gap:6px}.board-page .board-foot,.board-page footer{margin-right:0}.board-page .tier-row{grid-template-columns:74px minmax(0,1fr) 0}.board-page .tier-board.editing .tier-row{grid-template-columns:74px minmax(0,1fr) 32px}.board-page .site-address{font-size:9px}}
.board-page .tier-row,.board-page .drop-zone{min-height:96px}@media(max-width:760px){.board-page .list-top{scrollbar-width:none}.board-page .list-top::-webkit-scrollbar{display:none}}
.control-tooltip{position:fixed;z-index:10000;max-width:240px;pointer-events:none;background:#e1e8d7;color:#17200e;border:1px solid #bbcca3;border-radius:5px;padding:7px 10px;font:11px/1.4 "Segoe UI",Arial,sans-serif;box-shadow:0 4px 15px #0006}.board-page .player-lp{font-size:11px;line-height:15px;font-weight:700;color:#efcf85;flex-shrink:0}.board-page .player-rank{min-height:13px;max-height:13px;white-space:nowrap}.board-page .player-card{justify-content:flex-start}
/* Functional control groups; one focus ring; stable full-height bench drop grid. */
.toolbar-group{display:flex;align-items:center;gap:4px}.toolbar-group+.toolbar-group{border-left:1px solid #394244;padding-left:8px;margin-left:4px}.search:focus-within{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}.search input:focus,.search input:focus-visible{outline:none!important;border:0!important;box-shadow:none!important}.bench .search{box-sizing:border-box;min-height:37px}.bench .search input{flex:1;width:0;min-width:0;background:transparent;border:0}.bench .search>span{flex-shrink:0}.board-page .board-layout{grid-template-columns:minmax(0,1fr) 248px}.board-page .list-top,.board-page .board-foot,.board-page footer{margin-right:260px}.board-page .bench{width:248px;display:flex;flex-direction:column;overflow:hidden}.bench-top,.bench .search{flex-shrink:0}.board-page .bench .player-pool{display:grid;grid-template-columns:repeat(2,100px);gap:8px;align-content:start;align-items:start;justify-content:start;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;width:100%;margin:0;padding:0;border:0;border-radius:5px;box-sizing:border-box}.bench .player-pool.over{box-shadow:inset 0 0 0 2px var(--accent);background:#273020!important}.bench .empty-hint{grid-column:1/-1;align-self:start;margin:14px 8px;font-size:11px}.board-page.bench-is-hidden .list-top,.board-page.bench-is-hidden .board-foot,.board-page.bench-is-hidden footer{margin-right:0}.board-page .board-layout.bench-hidden{grid-template-columns:minmax(0,1fr) 0}
@media(max-width:1060px) and (min-width:761px){.toolbar-group{gap:3px}.toolbar-group+.toolbar-group{padding-left:5px;margin-left:2px}.board-page .list-title{min-width:70px;max-width:120px;font-size:14px}.board-page .toolbar-actions .button{width:26px}.board-page .toolbar-actions select{width:100px;max-width:100px}}
@media(max-width:760px){.board-page .list-top,.board-page .board-foot,.board-page footer{margin-right:0}.board-page .board-layout,.board-page .board-layout.bench-hidden{grid-template-columns:minmax(0,1fr)}.board-page .bench{width:230px}.board-page .bench .player-pool{grid-template-columns:repeat(2,94px);gap:6px}.toolbar-group+.toolbar-group{padding-left:7px;margin-left:2px}}
/* Card content alone scrolls; heading and search remain stationary. */
.board-page .bench .player-pool{scrollbar-width:thin;scrollbar-color:#59665f transparent;scrollbar-gutter:stable}.bench .player-pool::-webkit-scrollbar{width:8px}.bench .player-pool::-webkit-scrollbar-track{background:transparent}.bench .player-pool::-webkit-scrollbar-thumb{background:#59665f;border:2px solid #191c1d;border-radius:10px}.bench .player-pool::-webkit-scrollbar-thumb:hover{background:#8a9990}.bench .player-pool:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.bench .player-pool:focus-within{scrollbar-color:#7c8c82 transparent}
@media(min-width:1100px){.board-page .board-layout{grid-template-columns:minmax(0,1fr) 360px}.board-page .bench{width:360px}.board-page .bench .player-pool{grid-template-columns:repeat(3,100px);gap:8px}.board-page .list-top{margin-right:372px}.board-page .board-layout.bench-hidden{grid-template-columns:minmax(0,1fr) 0}.board-page.bench-is-hidden .list-top{margin-right:0}}
/* Admin: clear sections, compact roster, and labeled local icons. */
.ui-icon{display:inline-block;width:17px;height:17px;vertical-align:middle;flex-shrink:0;filter:brightness(0) invert(.85)}.button .ui-icon{width:15px;height:15px}.button-primary .ui-icon{filter:none}.admin-page{width:min(1240px,100% - 48px)}.admin-page .masthead{height:72px;position:sticky;top:0;background:var(--bg);z-index:40}.admin-page .brand{font-size:20px;gap:10px}.admin-page .brand img:not(.ui-icon){width:39px;height:39px}.admin-page .button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.admin-nav{display:flex;align-items:center;gap:6px;padding:10px 0;position:sticky;top:72px;z-index:35;background:var(--bg);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}.admin-nav a{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border-radius:5px;text-decoration:none;font-size:12px;white-space:nowrap;color:#b7c0bd}.admin-nav a:hover,.admin-nav a[aria-current]{background:#283127;color:#d4e9b8}.admin-nav a span{font:10px Consolas,monospace;background:#35402e;padding:2px 5px;border-radius:3px}.admin-intro{margin:24px 0 18px}.admin-intro h1{font-size:31px;letter-spacing:-1px}.admin-intro p{margin:9px 0 0;font-size:13px}.admin-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px}.admin-overview>span{position:relative;display:flex;flex-direction:column;gap:9px;min-height:80px;padding:14px;background:#1b2021;border:1px solid #333d3d;border-radius:6px;font-size:10px;letter-spacing:.4px}.admin-overview .ui-icon{position:absolute;right:12px;top:13px;opacity:.75}.admin-overview strong{font:600 18px/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:-.3px;color:#e6eddf}.admin-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start;margin-bottom:24px}.admin-operation{border:1px solid #3a4645;border-radius:6px;background:#181d1e}.admin-operation>summary{display:flex;align-items:center;gap:9px;cursor:pointer;padding:15px;font-size:14px;font-weight:600;list-style:none}.admin-operation>summary:after{content:'+';margin-left:auto;font-size:18px;color:#9dad9f}.admin-operation[open]>summary:after{content:'−'}.admin-operation>summary small{font-size:10px;font-weight:400;color:#8e9d97}.admin-operation>summary::-webkit-details-marker{display:none}.admin-operation>section{padding:0 16px 16px;border:0}.admin-operation>section>h2{display:none}.admin-operation .roster-form{grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.admin-operation .roster-form .button{height:40px}.admin-operation .field{font-size:11px}.admin-operation .bulk-controls{gap:8px}.admin-operation .bulk-controls .button{font-size:11px;padding:9px 10px}.admin-operation .import-row{grid-template-columns:1fr;font-size:11px;gap:5px}.admin-section{scroll-margin-top:134px;padding:24px 0 30px}.admin-section h2{display:flex;align-items:center;gap:9px;font-size:20px}.admin-section h2 .ui-icon{width:21px;height:21px}.admin-section>p{font-size:12px;max-width:80ch}.admin-table{table-layout:fixed;min-width:780px}.admin-table th:nth-child(1){width:29%}.admin-table th:nth-child(2){width:8%}.admin-table th:nth-child(3){width:23%}.admin-table th:nth-child(4){width:20%}.admin-table th:nth-child(5){width:20%}.admin-table td{padding:15px 8px;line-height:1.5}.admin-table th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;padding:12px 8px;color:#8d9f97}.roster-identity{display:flex;align-items:center;gap:10px;min-width:0}.roster-identity>div{min-width:0}.roster-identity strong{font-size:12px;font-weight:650;overflow-wrap:anywhere}.roster-avatar{width:40px;height:40px;object-fit:cover;border-radius:6px;border:1px solid #56615b;flex-shrink:0;position:static}.roster-identity small{margin-top:2px}.name-editor{margin-top:8px}.name-editor summary{font-size:10px;cursor:pointer;color:#95a69c;list-style:none;display:inline-flex;align-items:center;gap:5px}.name-editor summary:hover{color:var(--accent)}.name-editor .ui-icon{width:12px;height:12px}.name-editor .nickname-form{display:flex!important;gap:5px;margin-top:8px}.name-editor .edit-nickname{width:140px;min-width:0}.admin-table .actions{min-width:0;gap:6px;align-items:flex-start}.admin-table .button{font-size:10px;padding:8px}.admin-table .button .ui-icon{width:13px;height:13px}.admin-lp{font-size:11px;color:#e7ca85;white-space:nowrap}.rank-comparison{margin-top:7px}.rank-comparison summary{cursor:pointer;color:#8ea196;font-size:10px}.rank-comparison small{font-size:10px;color:#a6b4ad}.rank-empty{color:#8d9e95}.refresh-result{font:10px/1.5 Consolas,monospace;color:#b2c0b8}.roster-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 14px}.roster-tools .search{width:min(330px,100%)}.roster-tools .search input{width:100%;min-width:0;flex:1;font-size:12px}#roster-visible{font:11px Consolas,monospace;color:#91a397}.template-editor{background:#171c1d;padding:16px}.template-editor[open]{border-color:#5b705b}.template-editor summary{font-weight:600}.template-editor .inline-form{margin-top:12px}.template-editor>form{display:grid;grid-template-columns:1fr;max-width:800px}.template-editor .button{justify-self:start}.admin-page footer{font-size:10px;padding:18px 0}.admin-page .inline-form .button{gap:6px}.admin-page .pool-heading p{max-width:60ch}.admin-page .notice{font-size:12px}
@media(max-width:760px){.admin-page{width:calc(100% - 24px)}.admin-page .masthead{height:66px}.admin-page .brand{font-size:17px;gap:8px}.admin-page .brand img:not(.ui-icon){width:32px;height:32px}.admin-page .brand-tagline{font-size:6px;letter-spacing:.7px}.admin-page .masthead .button{font-size:10px;padding:8px}.admin-page .masthead .button .ui-icon{width:13px;height:13px}.admin-nav{top:66px;padding:8px 0;gap:3px}.admin-nav a{font-size:11px;padding:8px}.admin-nav .ui-icon{width:15px;height:15px}.admin-intro{margin:20px 0 16px}.admin-intro h1{font-size:27px}.admin-overview{grid-template-columns:1fr 1fr;gap:8px}.admin-overview>span{padding:12px;min-height:76px;font-size:9px}.admin-overview strong{font-size:15px}.admin-quick-actions{grid-template-columns:1fr;gap:8px;margin-bottom:20px}.admin-operation>summary{padding:13px}.admin-section{scroll-margin-top:120px}.admin-page .pool-heading{align-items:flex-start;gap:10px}.admin-page .pool-heading h2{font-size:18px}.admin-page .pool-heading .button{font-size:10px;padding:9px;max-width:140px}.roster-tools{gap:8px}.roster-tools .search{width:75%}#roster-visible{font-size:10px;white-space:nowrap}.admin-table-wrap{overflow:visible}.admin-table{display:block;min-width:0;width:100%;table-layout:auto}.admin-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.admin-table tbody{display:grid;grid-template-columns:1fr;gap:12px}.admin-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;background:#191f20;border:1px solid #35413d;border-radius:6px}.admin-table td{display:block;border:0;padding:0;min-width:0}.admin-table td:first-child,.admin-table td:last-child{grid-column:1/-1}.admin-table td[data-label]:before{content:attr(data-label);display:block;font-size:9px;letter-spacing:.4px;text-transform:uppercase;color:#8da092;margin-bottom:5px}.admin-table td:last-child:before{display:none}.admin-table .roster-avatar{width:42px;height:42px}.roster-identity strong{font-size:13px}.name-editor{margin-left:52px;margin-top:3px}.name-editor .nickname-form{margin-left:-52px}.name-editor .edit-nickname{width:100%;flex:1}.admin-table .actions{justify-content:flex-end;border-top:1px solid #303b36;padding-top:10px}.admin-table .button{font-size:11px;padding:8px 12px}.refresh-result{font-size:10px}.admin-table small.warning{max-width:none}.admin-page .inline-form{gap:8px}.admin-page .inline-form .button{font-size:11px;padding:10px}.admin-page footer{flex-direction:column}.template-editor{padding:13px}}
.admin-page a.button{text-decoration:none}
