/* WITCH RIFT 0.44 — shared components, no external fonts or animation dependency. */
:root{color-scheme:dark;--bg:#0d0e12;--card:#171820;--line:#2a2d38;--ink:#f4f4f6;--muted:#a4a7b5;--accent:#ff7832;--red:#ff9caa;--blue:#8dbdff;--violet:#a996d8}
body{background:var(--bg);color:var(--ink);font:14px/1.6 Pretendard,'Noto Sans KR','Malgun Gothic',system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.2px}button,input,select,textarea{font:inherit}h1,h2,h3{color:var(--ink);letter-spacing:-.7px}h1{font-size:28px;font-weight:750}h2{font-size:26px}h3{font-size:18px}p,small,.muted{color:var(--muted)}p{line-height:1.7}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--muted)}a{color:var(--blue)}button,.button,.file-button{border:1px solid #363947;background:#20222c;color:var(--ink);border-radius:10px;padding:9px 14px;min-height:40px;box-shadow:none;line-height:1.5}button:hover,.button:hover,.file-button:hover{background:#2a2d39;border-color:#626778}button.primary,.button.primary{background:var(--accent);color:#1c1008;border-color:var(--accent);font-weight:800}button.primary:hover{background:#ff955e}button:disabled{opacity:.45;cursor:not-allowed}button.help{padding:0;min-height:26px;width:26px;height:26px;font-size:13px;border-radius:50%}input,select,textarea{background:#101117;color:var(--ink);border:1px solid #3d414f;border-radius:8px;padding:9px 12px;min-height:40px}input[type=checkbox]{accent-color:var(--accent);min-height:auto}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #ffad7e;outline-offset:3px}::selection{background:#824021;color:#fff}input::placeholder,textarea::placeholder{color:#9295a4}*{scrollbar-width:thin;scrollbar-color:#505363 #171820}::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-thumb{background:#505363;border-radius:8px}
.rail{background:#111218;width:224px;padding:28px 16px 20px;border-right:1px solid var(--line);z-index:50}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;line-height:1.3;letter-spacing:2px;text-decoration:none;padding:0 10px;color:var(--ink)}.brand small{display:block;font:9px/1.8 inherit;letter-spacing:2px}.brand svg{width:38px;height:42px;flex-shrink:0}.rail nav{display:flex;flex-direction:column;gap:4px;margin-top:30px;overflow-y:auto;max-height:calc(100dvh - 200px)}.rail nav button{display:flex;align-items:center;gap:10px;min-height:42px;padding:10px 12px;text-align:left;border:1px solid transparent;background:transparent;color:#b5b8c6;border-radius:8px;font-size:13px}.rail nav button span{margin:0}.rail nav button:hover{background:#1b1d26;color:#fff}.rail nav button.active{background:#ff783215;border-color:#ff783235;color:#ffad7e;border-left:1px solid #ff783235}.nav-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.nav-section{font-size:10px;color:#8f93a4;letter-spacing:1px;margin:20px 12px 5px}.portal-links{display:flex;gap:8px;margin:0 0 4px}.portal-links .button{font-size:11px;flex:1;padding:8px;display:flex;align-items:center;justify-content:center;gap:6px}.rail-bottom{font-size:10px;border-top:1px solid var(--line);padding:16px 12px 0;color:#969aa9}.dot{background:#9be6bd}main{margin-left:224px;padding:32px;max-width:1900px;min-width:0}main>header{gap:16px;align-items:center;margin-bottom:24px;flex-wrap:wrap}.sync{font-size:11px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sync button{font-size:12px}.sync #connection{max-width:240px;color:#b0bcbb}.public-main{margin:0 auto!important;max-width:1320px!important;padding:32px!important}.public-main header{margin-bottom:24px}.public-main header h1{font-size:28px}.public-main .hero{min-height:200px}.status{font-size:12px;color:var(--muted);margin:12px 0}
.hero{min-height:200px;padding:28px 32px;border:1px solid #39303b;border-radius:14px;overflow:hidden;position:relative;background:#19171f url('./assets/witch-night.svg') no-repeat right center;background-size:auto 100%;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.hero>div{position:relative;z-index:1}.hero>div:first-child{max-width:60%}.hero h2{font-size:32px;line-height:1.3;margin-top:14px}.hero h2 em{font-style:normal;color:#ffb489}.hero p{font-size:12px}.pill{display:inline-flex;align-items:center;border:1px solid #4b4055;background:#a996d80a;color:#c9bde0;letter-spacing:.5px;border-radius:6px;padding:3px 8px;font-size:10px}.moon{display:none!important}.hero-count{padding:16px 20px;background:#111218e8;border:1px solid #34323d;border-radius:12px;min-width:230px;text-align:left;max-width:290px}.hero-count>strong{font-size:32px;line-height:1;color:var(--ink)}.hero-count>strong span{font-size:14px;color:var(--muted)}.hero-count p{margin:5px 0}.hero-count .matching-method-control{margin:12px 0}.hero-count button.primary{width:100%}.hero-count .lane-gap-control{align-items:start}.hero-count .matching-method-control select{font-size:12px}.hero-count label{font-size:12px}.dashboard-links{gap:10px;margin:20px 0}.dashboard-links .button{font-size:13px;min-width:130px;background:var(--card);text-align:left;flex:1;padding:14px}.dashboard-links .button:hover{background:var(--card-hover,#1e2029)}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:none;min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.card-head h2{margin:0}.card-head h3{margin:0}.workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}.toolbar label{font-size:11px;display:flex;flex-direction:column;gap:6px;color:var(--muted)}.toolbar input{max-width:100%}.toolbar button{font-size:12px}.toolbar input[name=patch]{width:160px}.toolbar input[type=number]{width:90px}.toolbar>input[type=search]{flex:1;min-width:140px}.legend{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}.kind{border:1px solid transparent;border-radius:5px;padding:3px 7px;font-size:11px}.k0{background:#2a3c34;color:#c1ead3}.k1{background:#293748;color:#c0d8ff}.k2{background:#443727;color:#f2d5a7}.k4{background:#382a32;color:#dfaebb}.kind.disabled{opacity:.35;text-decoration:line-through}.table-scroll,.table-wrap{overflow-x:auto;max-height:none;overscroll-behavior-x:contain}table{border-collapse:collapse;width:100%}th{background:#12131a;color:#a7abba;font-size:11px;letter-spacing:.2px;font-weight:600;white-space:nowrap;position:static;padding:12px}th button{font-size:11px;min-height:30px;background:none;border:0;padding:4px;color:#b8bece}td{font-size:13px;padding:14px 12px;border-bottom:1px solid #292b35;vertical-align:middle}tbody tr:hover{background:#1e2029}tbody tr:last-child td{border-bottom:0}td button{font-size:12px}td.name{min-width:140px}.table-scroll td .kind{min-height:28px;margin:2px}.selected-row,#roster .selected-row{background:#ff78320d}.profile-link,[data-player]{background:none;border:0;text-decoration:none;padding:2px 0;color:var(--ink);text-align:left;white-space:normal}.profile-link:hover,[data-player]:hover{background:none;color:#ffb489}.profile-link .name-frame{display:inline-flex}.name-frame{padding:2px 8px;border-radius:6px;text-decoration:none}.equipped-title{display:inline-flex;vertical-align:middle;max-width:240px;white-space:normal;overflow-wrap:anywhere;font-size:10px;color:#c7b8df;margin:3px 0}.tier-badge{vertical-align:middle;width:23px;height:27px}.rank-crown{font-size:14px}.win,.blue{color:var(--blue)}.loss,.red{color:var(--red)}.bad{color:#ff9caa!important}.bad-border{border-color:#ff9caa!important}.vote-badge{font-size:11px;border-radius:6px}.vote-yes{background:#1b332c;color:#b0efcb;border-color:#436858}.vote-no{background:#39242a;color:#ffc0ca;border-color:#734653}.vote-late{background:#3b3323;color:#ffe0a3;border-color:#6d5d36}.vote-none{background:#292b35;color:#c5c8d3;border-color:#4e5262}.vote{border-color:var(--line);padding:16px 0;gap:16px;flex-wrap:wrap}.empty{text-align:center;padding:40px 20px;color:var(--muted)}.result-empty .sigil{font-size:40px;color:var(--violet)}.result-empty strong{display:block;color:#d1d4df}.metrics{gap:8px;margin:16px 0}.metric{background:#111218;border:1px solid var(--line);border-radius:8px;padding:12px;font-size:11px;color:var(--muted)}.metric strong{display:block;color:var(--ink);font-size:20px}.teams-head{color:var(--blue);font-size:11px;font-weight:800;letter-spacing:1px;margin:20px 0 12px}.teams-head span:last-child{color:var(--red)}.team-player{min-height:76px;background:#151c27;border-color:#2c3e57;border-radius:9px;gap:10px;overflow-wrap:anywhere}.team-player.red{background:#25191f;border-color:#51313f}.team-player span{min-width:0}.team-player b{font-size:12px;font-weight:650}.player-mmr strong{font-size:16px;color:var(--ink)}.player-mmr small{font-size:10px}.team-player.pick{outline:2px solid var(--accent)}.role-label{font-size:10px;color:var(--muted)}.balance-summary{background:#111218;border:1px solid var(--line);padding:16px;border-radius:10px;margin-top:16px}.balance-heading{gap:10px;display:flex;justify-content:space-between;font-size:12px}.balance-table td,.balance-table th{padding:9px;font-size:12px}.team-role-counts{font-size:11px;color:var(--muted)}.confirmed{background:#1d2426;border-color:#3e5850;border-radius:10px}.confirmed strong{color:#bee3d0}.match-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.match-actions button{flex:1}.record{border-color:var(--line)}.record.cancelled{opacity:.6}.settings-grid{gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid label{font-size:12px}.settings-grid p{font-size:12px}.settings-grid input:not([type=checkbox]),.settings-grid textarea{width:100%}.settings-grid .button{font-size:12px}.settings-grid button{font-size:12px}details{border:1px solid var(--line);border-radius:10px;padding:14px;margin:12px 0}summary{cursor:pointer;color:#d2d5e0;font-weight:650;font-size:13px}details[open]>summary{margin-bottom:16px}.profile-hero{padding:16px 0}.profile-hero h2{font-size:25px;overflow-wrap:anywhere}.profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.profile-stats>div{min-width:0;padding:14px;background:#101117;border:1px solid var(--line);border-radius:10px}.profile-stats strong{font-size:22px;margin-top:4px}.title-chip{background:#252030;border:1px solid #4d415e;color:#ddcfee;font-size:12px;line-height:1.5;border-radius:8px;padding:7px 10px;max-width:100%;overflow-wrap:anywhere}.title-chip small{color:#b9adca;font-size:10px}.profile-notes{border-top:1px solid var(--line);margin-top:10px;max-height:220px}.profile-notes article{padding:10px 0}.note-form{border:1px solid var(--line);padding:16px;border-radius:10px}.note-form input{width:100%}.cosmetic-preview{border:1px solid var(--line);border-radius:8px;padding:12px;background:#101117;min-width:120px}.cosmetic-title{display:inline-block;padding:3px 9px;border-radius:5px;border:1px solid currentColor;font-size:11px;margin:0 5px}.shop-row{display:grid;grid-template-columns:1fr minmax(120px,1fr) auto;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
dialog{background:#171820;border:1px solid #424656;box-shadow:0 32px 100px #0009;border-radius:14px;padding:24px;max-width:1100px;width:min(900px,94vw);min-width:0;max-height:90dvh;color:var(--ink)}dialog::backdrop{background:#07080bc9;backdrop-filter:blur(3px)}.modal-head{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px;gap:16px}.modal-head button{margin:0;min-width:40px}.modal-head h3{font-size:19px}.modal-head{position:sticky;top:-24px;background:#171820;z-index:4;padding-top:12px}dialog p{font-size:13px;overflow-wrap:anywhere}dialog button{margin-top:0}dialog .profile-stats{margin:16px 0}#notice:empty{display:none}#notice:not(:empty){background:#1b1d26;border:1px solid #3a3d4c;color:#d0d4df;border-radius:9px;font-size:12px;padding:10px 14px;margin-bottom:16px}#notice button{margin-left:8px}footer{border-top:1px solid var(--line);padding-top:20px;margin-top:32px;color:var(--muted);font-size:10px;gap:12px;flex-wrap:wrap}.my-info{background:#171820;border-color:var(--line)}.my-picker{font-size:12px}.my-profile{background:#101117;border-color:var(--line)}.my-numbers{font-size:12px}.my-profile-open{color:#ffb489}.my-info-panel{margin-bottom:20px}.my-info-panel>summary{font-size:12px}.scroll-hint{font-size:10px;color:var(--muted);margin:8px 0}.error-state{padding:20px;background:#332128;border:1px solid #704453;border-radius:10px;color:#ffd0d7}.skeleton{height:140px;border-radius:10px;background:linear-gradient(#242632 0 0) 20px 25px/45% 14px no-repeat,linear-gradient(#20222c 0 0) 20px 60px/85% 12px no-repeat,linear-gradient(#20222c 0 0) 20px 90px/65% 12px no-repeat,#171820}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.stat-grid article{padding:18px 20px;background:var(--card);border:1px solid var(--line);border-radius:10px}.stat-grid strong{display:block;font-size:26px;margin-top:6px}.stat-grid small{font-size:11px}.dashboard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.dashboard-grid>.card{margin:0}.dashboard-grid .card:last-child{grid-column:1/-1}.compact-rank{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.compact-rank>b{color:var(--muted);width:20px}.compact-rank>span:last-child{margin-left:auto;color:var(--blue);font-size:13px}.team-mini{display:grid;grid-template-columns:1fr 1fr;gap:16px}.team-mini>div{padding:16px;border:1px solid #304059;background:#141c28;border-radius:10px}.team-mini>div:last-child{border-color:#533240;background:#251920}.team-mini p{display:flex;gap:10px;align-items:center;color:var(--ink);font-size:12px}.team-mini small{font-size:10px;min-width:30px}.team-mini strong{font-size:12px}.team-mini p span{margin-left:auto;color:var(--muted)}
.champion-page{padding:24px}.champion-page .card-head p{margin:4px 0 0}.role-segments{display:flex;gap:4px;padding:5px;background:#101117;border:1px solid var(--line);border-radius:10px;flex-wrap:wrap;margin:20px 0}.role-segments button{border:0;background:transparent;color:#abb0c0;display:flex;gap:8px;align-items:center;font-size:12px;flex:1;justify-content:center;min-width:82px;padding:8px}.role-segments button[aria-pressed=true]{background:#ff78321c;color:#ffad7e}.champion-filters{padding-bottom:20px;border-bottom:1px solid var(--line)}.champion-search{flex:1;min-width:180px}.champion-search input{width:100%}.champion-filters input,.champion-filters select{font-size:12px}.champion-filters input[name=patch]{width:130px}.champion-filters input[name=min]{width:75px}#championStatus{font-size:11px;color:var(--muted);margin:16px 0}.view-switch{display:flex;gap:6px;margin:16px 0}.view-switch button{font-size:11px;min-height:32px;padding:5px 12px;background:transparent}.view-switch [aria-pressed=true]{border-color:#8c705e;color:#ffc29e;background:#30231d}.tier-board{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:24px}.tier-row{display:flex;border-bottom:1px solid var(--line);min-height:110px}.tier-row:last-child{border:0}.tier-row>h3{width:68px;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:28px;margin:0;background:#20222c;color:#d8dce8}.tier-row>h3 small{font-size:10px;line-height:1;color:inherit;opacity:.8;margin-top:8px}.tier-S>h3,.tier-badge-text.tier-S{color:#ffb6a4;background:#412a29}.tier-A>h3,.tier-badge-text.tier-A{color:#f0d08d;background:#393122}.tier-B>h3,.tier-badge-text.tier-B{color:#a7ddca;background:#21352f}.tier-C>h3,.tier-badge-text.tier-C{color:#b4c7f5;background:#263048}.tier-U>h3{font-size:12px;text-align:center;line-height:1.5}.tier-content{padding:14px;flex:1;min-width:0}.champion-tiles{display:flex;flex-wrap:wrap;gap:10px}.champion-tile{display:flex;flex-direction:column;align-items:center;width:76px;padding:5px 3px;gap:4px;border:1px solid transparent;background:transparent;min-height:90px;font-size:11px}.champion-tile:hover,.champion-tile:focus-visible{background:#252833;border-color:#555b6d}.champion-tile>span:not(.champion-portrait){max-width:100%;white-space:normal;line-height:1.3}.champion-tile small{font-size:9px;white-space:nowrap}.champion-portrait{position:relative;width:48px;height:48px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;background:#2a2e3c;border:1px solid #464b5c;border-radius:9px;color:#adb2c5;overflow:hidden;font-size:22px}.champion-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.champion-portrait img[hidden]{display:none}.tier-empty{font-size:11px;padding:24px 10px}.tier-content details{padding:8px;margin:10px 0 0}.tier-content summary{font-size:11px}.champion-table table{min-width:850px}.champion-table td:not(:nth-child(2)),.champion-table th:not(:nth-child(2)){text-align:right}.champion-table td{padding:13px 10px}.champion-table th{font-size:10px}.champion-table th button{font-size:10px;white-space:nowrap}.champion-name{display:flex;align-items:center;gap:12px;background:transparent;border:0;padding:0;text-align:left;min-width:140px}.champion-name small{display:block;font-size:10px;margin-top:2px}.champion-name .champion-portrait{width:38px;height:38px}.tier-badge-text{display:inline-block;padding:2px 8px;border-radius:5px;font-size:11px;font-weight:700}.win-meter{display:block;width:64px;margin:4px 0 0 auto;height:3px;border-radius:4px;background:#303340}.win-meter i{display:block;height:100%;background:#8dbdff;border-radius:4px}.most-row{display:grid;grid-template-columns:18px 42px 1fr repeat(3,70px);gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.most-row small{display:block;font-size:10px;color:var(--muted)}.most-row .champion-portrait{width:38px;height:38px}.most-row span:nth-last-child(-n+3){text-align:right}.match-list{display:grid;gap:10px}.match-list button{display:flex;justify-content:space-between;gap:16px}.match-list small{font-size:11px}.mobile-menu,.drawer-backdrop{display:none}
@media(min-width:1600px){main{padding:36px 40px}.hero{min-height:210px}.workspace{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}}
@media(max-width:1200px){main{padding:24px}.workspace{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr 1fr}.hero{padding:24px}.hero h2{font-size:28px}.public-main{padding:24px!important}}
@media(max-width:800px){.rail{display:flex;position:fixed;inset:0 auto 0 0;width:260px;height:100dvh;transform:translateX(-100%);padding:24px 16px;transition:transform .18s ease;z-index:101}.drawer-open .rail{transform:translateX(0)}.rail nav{display:flex;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;max-height:calc(100dvh - 170px)}.rail nav button{flex:none;font-size:13px;padding:10px 12px}.rail-bottom{display:block}.nav-section{margin-top:16px}.mobile-menu{display:flex;align-items:center;justify-content:center;padding:10px;min-width:40px}.drawer-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#000a;border:0;border-radius:0;z-index:100}.drawer-open{overflow:hidden}main{margin:0;padding:20px}.public-main{padding:20px!important}main>header{flex-wrap:wrap;gap:12px}main>header>div:first-of-type{flex:1}.sync{margin-left:auto}.hero{min-height:200px;background-position:right center;background-size:auto 100%;flex-wrap:nowrap}.hero>div:first-child{max-width:55%}.hero-count{min-width:215px;max-width:250px;padding:14px}.hero h2{font-size:25px}.hero-count>strong{font-size:30px}.card{padding:20px}.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.settings-grid{grid-template-columns:1fr}.dashboard-grid>.card:last-child{grid-column:auto}.public-grid{grid-template-columns:1fr!important}.champion-page{padding:20px}.role-segments button{min-width:70px}.shop-row{grid-template-columns:1fr auto}.shop-row .cosmetic-preview{grid-column:1}.shop-row button{grid-column:2;grid-row:1/3}.my-info{flex-wrap:wrap}.table-scroll td,.table-scroll th{white-space:nowrap}.table-scroll td.name{white-space:normal}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){main,.public-main{padding:16px!important}h1,.public-main header h1{font-size:23px}main>header>.sync{width:100%;justify-content:space-between}.hero{display:block;padding:24px 20px;background-position:80px top;background-size:auto 180px}.hero>div:first-child{max-width:100%;padding-right:30px}.hero h2{font-size:27px}.hero p{font-size:11px}.hero-count{margin-top:24px;max-width:none;min-width:0;width:100%;padding:16px}.hero-count>strong{font-size:28px}.hero-count>p{display:inline;margin-left:8px}.hero-count .matching-method-control{max-width:none}.hero-count button.primary{margin-top:8px}.dashboard-links{display:grid;grid-template-columns:1fr 1fr}.dashboard-links .button{min-width:0;padding:12px;font-size:12px}.card,.champion-page{padding:16px}.card-head{gap:12px}.card-head h2{font-size:23px}.stat-grid{gap:10px}.stat-grid article{padding:14px}.stat-grid strong{font-size:23px}.role-segments{gap:3px}.role-segments button{font-size:11px;padding:7px;min-width:66px;flex:1 0 25%}.role-segments .nav-icon{width:15px}.champion-filters{gap:10px}.champion-filters label{flex:1;min-width:80px}.champion-filters .champion-search{flex-basis:100%}.champion-filters input,.champion-filters select{width:100%!important;min-width:0}.tier-row>h3{width:42px;font-size:23px}.tier-U>h3{font-size:10px}.tier-content{padding:8px}.champion-tiles{gap:3px}.champion-tile{width:65px;font-size:10px}.champion-tile small{font-size:10px}.champion-portrait{width:42px;height:42px}.most-row{grid-template-columns:14px 32px 1fr 50px 50px;gap:7px;font-size:11px}.most-row .champion-portrait{width:30px;height:30px}.most-row>span:last-child{display:none}.team-mini{grid-template-columns:1fr}.teams{grid-template-columns:1fr!important}.team-row{display:flex;flex-wrap:wrap;gap:8px;position:relative;padding-top:22px;margin-bottom:12px}.team-row .role-label{position:absolute;top:0;left:0;order:-1}.team-row .team-slot{width:100%}.teams-head{display:none}.team-player{width:100%;min-height:65px}.team-player.blue:before{content:'BLUE';font-size:9px;color:var(--blue)}.team-player.red:before{content:'RED';font-size:9px;color:var(--red)}.team-role-counts{flex-wrap:wrap}.balance-heading strong{font-size:11px}.my-profile{width:100%}.my-numbers{flex-wrap:wrap}dialog{padding:18px;width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.modal-head{top:-18px}.profile-hero h2{font-size:22px}.match-list button{flex-direction:column;text-align:left}.record-head{flex-wrap:wrap}.matching-method-control select{max-width:100%}.profile-link{overflow-wrap:anywhere}.modal-head h3{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.my-info:not([open]){display:block;padding:12px 18px}.my-info>summary{cursor:pointer;color:var(--muted)}.my-info[open]{display:block}.my-info[open]>summary{margin-bottom:12px}.my-info .my-picker{display:inline-flex;align-items:center;gap:12px;margin-right:16px}
/* Reset legacy sidebar flex and large logo rules across desktop and drawer. */
.brand>span{float:none;font-size:18px;margin:0;letter-spacing:1.5px;line-height:1.4}.brand small{font-family:inherit;font-size:8px;line-height:1.8;white-space:nowrap}.rail nav{flex-wrap:nowrap}.rail nav .portal-links{flex:0 0 auto}.rail nav button{flex:0 0 auto}.rail nav .portal-links a{min-height:36px}.scroll-hint{display:none}@media(max-width:800px){.scroll-hint{display:block}}

/* Match confirmation feedback stays next to the action, including on mobile. */
.confirm-feedback{padding:12px 14px;border:1px solid #626079;border-radius:9px;background:#222332;color:#e1d9ee;line-height:1.6;overflow-wrap:anywhere;scroll-margin:24px}
.confirm-feedback[data-state=error]{border-color:#a76a78;background:#34232b;color:#ffd3dc}
.confirm-feedback[data-state=success]{border-color:#537765;background:#1d3029;color:#c0efd4}
#confirmed{scroll-margin:24px}

/* Review changed confirmation data without discarding the current candidate. */
dialog:has(.confirmation-review){width:min(1360px,96vw);max-width:96vw}
.confirmation-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}
.confirmation-review-panel{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#121824}
.confirmation-review-panel>h3{font-size:17px;color:var(--ink)}
.confirmation-review-panel>p{overflow-wrap:anywhere}
.confirmation-review-panel:last-child{border-color:#8e79b4}
@media(max-width:1000px){.confirmation-review{grid-template-columns:1fr}}
@media(max-width:600px){.confirmation-review-panel{padding:12px}.confirmation-review-panel .display-team{padding-inline:10px}.confirmation-review+.muted{font-size:11px}}

/* Replay errors and progress belong inside the open preview, beside its save action. */
dialog:has(.replay-preview){width:min(1360px,96vw);max-width:96vw}
.replay-preview{min-width:0}
.replay-preview .table-scroll{max-width:100%;overflow:auto}
.replay-preview [aria-invalid=true]{border:2px solid #e89aa8;background:#34232b;outline-offset:2px}
.replay-role-tools{margin:16px 0}
.replay-save-actions{position:sticky;bottom:-26px;background:var(--surface,#171c28);border-top:1px solid var(--line,#37374c);padding:12px 0;margin-top:16px;z-index:2}
.replay-save-actions .confirm-feedback{white-space:pre-line;max-height:180px;overflow:auto;margin:0 0 10px}
.replay-save-actions button{width:100%}
@media(max-width:600px){.replay-save-actions{bottom:-18px}.replay-save-actions .confirm-feedback{font-size:12px;max-height:130px}.replay-role-tools button{width:100%;white-space:normal}}
