.refined-app .compact-navigation{align-items:center;justify-content:space-between;gap:12px}.project-links{display:flex;align-items:center;gap:8px}.project-links .ui-icon{width:16px;height:16px;flex:none}.project-links a,.project-links button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text-muted);font:inherit;font-size:13px;text-decoration:none;white-space:nowrap;cursor:pointer}.project-links .app-download-link{border-color:var(--border);color:var(--text)}.project-links a:hover,.project-links button:hover{color:var(--text);background:var(--surface-muted)}.project-links a:focus-visible{outline:2px solid var(--text-muted);outline-offset:3px}@media(max-width:760px){.refined-app .compact-navigation:has(.project-links){display:flex;flex-wrap:wrap;gap:4px 8px}.project-links{margin-left:auto;gap:2px}.project-links a,.project-links button{gap:4px;padding-inline:4px;font-size:12px}.refined-app .compact-navigation:has(.project-links) .compact-tabs button{padding-inline:8px}}.project-legal{margin-top:24px;color:var(--text-muted);font-size:12px;line-height:1.7}.project-legal summary{cursor:pointer;min-height:32px}:root{color-scheme:light;--bg: #f5f7fb;--surface: rgba(255, 255, 255, .88);--surface-strong: #fff;--surface-muted: #f1f5f9;--border: #dce4ef;--border-strong: #c3d0df;--text: #172033;--text-muted: #68758a;--primary: #356ae6;--primary-strong: #2454c7;--primary-soft: #eaf0ff;--accent: #0c8b78;--danger: #d74755;--shadow-sm: 0 3px 10px rgba(29, 43, 66, .06);--shadow: 0 18px 50px rgba(29, 43, 66, .12);--radius-sm: 10px;--radius: 16px;--radius-lg: 22px}:root[data-theme=dark]{color-scheme:dark;--bg: #0e1420;--surface: rgba(24, 34, 51, .9);--surface-strong: #1a2639;--surface-muted: #202f45;--border: #33435b;--border-strong: #4b6080;--text: #f4f7fb;--text-muted: #aab8c9;--primary: #80a6ff;--primary-strong: #a7c0ff;--primary-soft: #21395f;--accent: #55d2b7;--danger: #ff8994;--shadow-sm: 0 3px 12px rgba(0, 0, 0, .22);--shadow: 0 22px 58px rgba(0, 0, 0, .36)}*{box-sizing:border-box}.client-lobby-panel{padding:24px;margin-bottom:32px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm)}.client-lobby-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.client-lobby-heading h2{margin:5px 0 12px}.client-player-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;padding:0;list-style:none}.client-player-list li{display:grid;gap:6px;padding:14px;border-radius:var(--radius-sm);background:var(--surface-muted);overflow-wrap:anywhere}.client-player-list span,.client-player-list small,.client-read-time{color:var(--text-muted);font-size:13px}.client-preference-option{display:flex;align-items:center;gap:10px;margin:20px 0 10px}.client-preference-option input{width:18px;height:18px;accent-color:var(--primary)}.client-lobby-error{color:var(--danger)}.client-apply-status{padding:12px 16px;border-radius:var(--radius-sm);background:var(--surface-muted)}.client-apply-status.is-success{color:var(--accent)}.client-apply-status.is-error{color:var(--danger)}.client-lobby-details summary{cursor:pointer;color:var(--text-muted);font-size:14px;padding:8px 0}html{min-width:320px;background:var(--bg)}body{min-width:320px;min-height:100vh;margin:0;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans TC,sans-serif;background:radial-gradient(circle at 8% -10%,color-mix(in srgb,var(--primary) 18%,transparent),transparent 29rem),radial-gradient(circle at 96% 10%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 25rem),linear-gradient(150deg,var(--bg),var(--surface-muted))}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 36%,transparent);outline-offset:2px}.container{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:42px 0 60px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:34px;animation:enter-up .45s both}.eyebrow,.flow-heading>span,.card-kicker{display:block;color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}h1{margin:5px 0 0;font-size:clamp(28px,4vw,38px);letter-spacing:-.055em;line-height:1.08}.header-tools{display:flex;flex-direction:column;align-items:flex-end;gap:14px;min-width:0}.header-actions{display:flex;gap:9px}.tool-mode-toggle{display:flex;width:min(360px,100%);margin:-10px auto 30px;padding:4px;border:1px solid var(--border);border-radius:13px;background:var(--surface);box-shadow:var(--shadow-sm)}.mode-choice{flex:1;min-height:39px;border:0;border-radius:9px;color:var(--text-muted);background:transparent;font-weight:800;transition:color .16s ease,background .16s ease,box-shadow .16s ease}.mode-choice:hover{color:var(--primary)}.mode-choice.is-selected{color:#fff;background:var(--primary);box-shadow:0 4px 12px color-mix(in srgb,var(--primary) 28%,transparent)}.icon-button{display:inline-grid;width:44px;height:44px;place-items:center;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .18s ease,border-color .18s ease,color .18s ease,background .18s ease}.icon-button:hover{transform:translateY(-2px);border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}.stepper{display:flex;justify-content:center;max-width:570px;margin:0 auto 32px;padding:0;list-style:none}.stepper li{position:relative;display:grid;width:33.33%;justify-items:center;gap:8px;color:var(--text-muted);font-size:13px;transition:color .25s ease}.stepper li:before{position:absolute;top:16px;left:-50%;z-index:-1;width:100%;height:2px;content:"";background:var(--border);transition:background .3s ease}.stepper li:first-child:before{display:none}.stepper li span{display:grid;width:34px;height:34px;place-items:center;border:2px solid var(--border);border-radius:50%;background:var(--surface-strong);box-shadow:var(--shadow-sm);font-weight:800;transition:transform .25s ease,color .25s ease,background .25s ease,border-color .25s ease}.stepper li.is-active,.stepper li.is-complete{color:var(--primary)}.stepper li.is-active span,.stepper li.is-complete span{border-color:var(--primary);color:#fff;background:var(--primary)}.stepper li.is-active span{transform:scale(1.12);box-shadow:0 0 0 5px color-mix(in srgb,var(--primary) 14%,transparent)}.stepper li.is-complete:before{background:var(--primary)}.flow-heading{margin:0 auto 28px;text-align:center;animation:enter-up .45s .08s both}.flow-heading h2{margin:6px 0 8px;font-size:clamp(25px,3vw,31px);letter-spacing:-.04em}.flow-heading p{margin:0;color:var(--text-muted)}.flow-panel{width:min(880px,100%);margin:0 auto;animation:enter-up .42s .14s both}.player-input{width:min(640px,100%);margin:0 auto}.field-label,.known-section h3{display:block;margin:0 0 9px;color:var(--text-muted);font-size:13px;font-weight:800}.input-group{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px}.input-group input{min-height:48px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:0 15px;color:var(--text);background:var(--surface);box-shadow:var(--shadow-sm);transition:border-color .18s ease,box-shadow .18s ease;outline:none}.input-group input:focus{border-color:var(--primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 16%,transparent)}.btn{display:inline-flex;min-height:46px;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--radius-sm);padding:0 17px;font-weight:800;white-space:nowrap;box-shadow:var(--shadow-sm);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease,color .16s ease}.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 18px #1d2b4224}.btn:active:not(:disabled){transform:translateY(0) scale(.98)}.btn-primary{color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary-strong))}.btn-primary:hover:not(:disabled){filter:brightness(1.04)}.btn-secondary{border-color:var(--border);color:var(--text);background:var(--surface)}.btn-secondary:hover:not(:disabled){border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}.btn-danger-text{color:var(--danger)}.btn-large{min-width:215px;min-height:52px}.known-section{margin-top:30px}.known-hints,.roster-names{display:flex;flex-wrap:wrap;gap:9px;min-height:34px}.known-chip,.roster-names button{border:1px solid var(--border);border-radius:999px;padding:7px 12px;color:var(--text);background:var(--surface);transition:transform .16s ease,color .16s ease,border-color .16s ease,background .16s ease}.known-chip:hover,.known-chip.is-selected{transform:translateY(-1px);border-color:var(--primary);color:#fff;background:var(--primary)}.roster-names button:hover{border-color:var(--danger);color:var(--danger)}.roster-names span{margin-left:7px;color:var(--danger);font-weight:900}.roster-summary{display:grid;gap:15px;margin-top:30px;padding:22px 24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm)}.roster-summary>div:first-child{display:flex;align-items:baseline;justify-content:space-between}.roster-summary span,.roster-summary p{margin:0;color:var(--text-muted)}.roster-summary strong{font-size:27px;letter-spacing:-.04em}.roster-summary small{font-size:14px;font-weight:700}.flow-actions{display:flex;justify-content:center;margin-top:32px}.split-actions,.result-actions{justify-content:space-between;gap:12px}.result-actions{flex-wrap:wrap}.result-actions .btn-large{margin-left:auto}.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;align-items:stretch}.player-card{position:relative;min-height:210px;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);padding:21px;background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.player-card:hover{transform:translateY(-4px);border-color:var(--border-strong);box-shadow:var(--shadow)}.card-header{display:grid;justify-items:center;gap:4px;min-height:48px;padding:0 28px;text-align:center}.card-name{overflow-wrap:anywhere;font-size:22px;font-weight:850;letter-spacing:-.035em}.btn-remove{position:absolute;top:12px;right:12px;display:grid;width:30px;height:30px;place-items:center;border:1px solid var(--border);border-radius:9px;color:var(--text-muted);background:transparent;transition:color .16s ease,border-color .16s ease,background .16s ease}.btn-remove:hover{border-color:var(--danger);color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent)}.preferred-role-control{margin-top:21px}.preferred-role-control>span{color:var(--text-muted);font-size:13px;font-weight:800}.preferred-role-control em{font-style:normal;font-weight:500}.role-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.role-choice{display:flex;min-height:39px;align-items:center;justify-content:center;gap:5px;border:1px solid var(--border);border-radius:9px;padding:4px;color:var(--text);background:var(--surface-muted);font-size:12px;font-weight:700;transition:transform .15s ease,color .15s ease,border-color .15s ease,background .15s ease}.role-choice:hover:not(:disabled){transform:translateY(-1px);border-color:var(--primary)}.role-choice .role-glyph{width:18px;height:18px;object-fit:contain}.role-choice.is-selected{border-color:var(--primary);color:#fff;background:var(--primary);box-shadow:0 4px 12px color-mix(in srgb,var(--primary) 28%,transparent)}.role-choice:disabled{opacity:.36}.cards-grid.is-drawing{pointer-events:none}.cards-grid.is-drawing .player-card{border-color:color-mix(in srgb,var(--primary) 44%,var(--border))}.cards-grid.is-drawing .player-card>*{opacity:.22}.cards-grid.is-drawing .player-card:after{position:absolute;inset:0;content:"";background:linear-gradient(105deg,transparent 28%,color-mix(in srgb,var(--primary) 18%,transparent) 48%,transparent 68%);transform:translate(-100%);animation:shimmer 1s infinite}.draw-status{margin:18px 0 -5px;color:var(--primary);text-align:center;font-size:14px;font-weight:800;animation:pulse .95s ease-in-out infinite}.card-result{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;min-height:124px;margin-top:18px}.card-result:has(.role-col:only-child){grid-template-columns:1fr}.role-col{display:grid;justify-items:center;gap:8px}.role-label{color:var(--text-muted);font-size:12px;font-weight:800}.role-col .role-glyph{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 9px 13px rgba(15,23,42,.18))}.role-name{font-size:18px;font-weight:900}.role-divider{width:1px;height:78px;background:var(--border)}.result-flow{width:min(1060px,100%)}.draw-completed-at{margin:0 0 14px;color:var(--text-muted);text-align:right;font-size:12px;font-weight:700;animation:reveal .36s .04s both}.result-grid .player-card{min-height:242px;animation:reveal .46s .13s both}.result-grid .role-col .role-glyph{width:68px;height:68px;animation:role-pop .52s .31s both}.champion-flow{width:min(760px,100%);margin:0 auto;animation:enter-up .42s .14s both}.champion-panel{min-height:430px;display:grid;place-items:center;padding:28px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow);text-align:center}.champion-position-picker{display:grid;width:min(560px,100%);grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:18px}.champion-position{min-height:42px;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted);color:var(--text-muted);font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:border-color .18s,background .18s,color .18s,transform .18s}.champion-position:hover{border-color:var(--primary);color:var(--text);transform:translateY(-1px)}.champion-position.is-selected{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.champion-result{display:grid;width:min(330px,100%);justify-items:center;gap:9px;animation:reveal .24s both}.champion-image-frame{display:grid;width:190px;height:190px;place-items:center;overflow:hidden;border:1px solid var(--border);border-radius:24px;background:var(--surface-muted);box-shadow:0 14px 30px #1d2b4229}.champion-image-frame img{width:100%;height:100%;object-fit:cover}.champion-image-fallback{max-width:80%;color:var(--text-muted);font-size:14px;font-weight:800}.champion-result h3{margin:4px 0 0;font-size:clamp(32px,7vw,48px);letter-spacing:-.06em;line-height:1}.champion-id{margin:0;color:var(--text-muted);font-size:13px}.champion-empty{min-height:250px;display:grid;place-items:center;color:var(--text-muted);font-weight:800}.champion-actions{width:100%;margin-top:25px}.champion-actions .btn{width:min(300px,100%)}.champion-data-meta{margin:23px 0 0;color:var(--text-muted);font-size:12px;font-weight:700}.champion-error{margin:18px 0 -4px;color:var(--danger);font-size:13px;font-weight:800}.stats-modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#0a12218c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:overlay-in .18s both}.stats-content{width:min(760px,100%);max-height:min(78vh,680px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-strong);box-shadow:var(--shadow);animation:modal-in .24s both}.stats-header,.stats-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px}.shortcut-hint{margin:0;color:var(--text-muted);font-size:12px;font-weight:700;line-height:1.8}.shortcut-hint kbd{display:inline-block;min-width:20px;border:1px solid var(--border-strong);border-bottom-width:2px;border-radius:5px;padding:0 5px;color:var(--text);background:var(--surface-muted);font:inherit;text-align:center}.stats-header h2{margin:0;font-size:22px;letter-spacing:-.03em}.stats-close{width:36px;height:36px;border:1px solid var(--border);border-radius:10px;color:var(--text-muted);background:transparent}.stats-close:hover{color:var(--danger);border-color:var(--danger)}.stats-scroll{overflow:auto;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}table{width:100%;border-collapse:collapse}th,td{padding:13px 14px;text-align:center;border-bottom:1px solid var(--border)}th{color:var(--text-muted);font-size:13px}th:first-child,td:first-child{text-align:left;font-weight:800}.champion-pool-content{width:min(760px,100%)}.champion-pool-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;padding:0 20px 18px}.champion-pool-tab{min-height:40px;border:1px solid var(--border);border-radius:11px;background:var(--surface-muted);color:var(--text-muted);font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:border-color .18s,background .18s,color .18s}.champion-pool-tab:hover{border-color:var(--primary);color:var(--text)}.champion-pool-tab.is-selected{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.champion-pool-scroll{min-height:260px;padding:18px 20px 22px}.champion-pool-summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}.champion-pool-summary strong{font-size:18px}.champion-pool-summary span,.champion-pool-meta{color:var(--text-muted);font-size:12px;font-weight:700}.champion-name-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.champion-name-grid li{min-width:0;padding:10px 12px;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted);font-size:13px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.champion-pool-actions{justify-content:flex-start}.champion-pool-meta{margin:0}.app-footer{width:min(760px,calc(100% - 32px));margin:-26px auto 0;padding-bottom:28px;color:var(--text-muted);text-align:center;font-size:11px;line-height:1.7}.app-footer a{color:var(--text-muted)}.app-footer a:hover{color:var(--primary)}.toast-wrap{position:fixed;right:18px;bottom:18px;z-index:30;display:grid;gap:10px}.toast{display:flex;max-width:min(370px,calc(100vw - 36px));align-items:center;gap:10px;border:1px solid var(--border);border-radius:13px;padding:12px 15px;color:var(--text);background:var(--surface-strong);box-shadow:var(--shadow);animation:toast-in .28s both}.toast-mark{display:grid;width:20px;height:20px;flex:0 0 auto;place-items:center;border-radius:50%;color:#fff;background:var(--accent);font-size:12px;font-weight:900}@keyframes enter-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes reveal{0%{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes role-pop{0%{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}@keyframes shimmer{to{transform:translate(100%)}}@keyframes pulse{50%{opacity:.55}}@keyframes overlay-in{0%{opacity:0}}@keyframes modal-in{0%{opacity:0;transform:translateY(12px) scale(.98)}}@keyframes toast-in{0%{opacity:0;transform:translateY(10px)}}@media(min-width:769px){.preferences-flow .cards-grid:has(.player-card:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}.preferences-flow .cards-grid:has(.player-card:nth-child(5):last-child) .player-card{grid-column:span 2}.preferences-flow .cards-grid:has(.player-card:nth-child(5):last-child) .player-card:nth-child(4){grid-column:2 / span 2}.preferences-flow .cards-grid:has(.player-card:nth-child(5):last-child) .player-card:nth-child(5){grid-column:4 / span 2}}@media(max-width:768px){.container{width:min(100% - 20px,1120px);padding-top:22px}.app-header{align-items:flex-start;margin-bottom:28px}.tool-mode-toggle{margin-top:-3px;margin-bottom:25px}.stepper{margin-bottom:25px}.stepper li{font-size:12px}.flow-heading h2{font-size:25px}.draw-completed-at{text-align:center}.input-group,.player-input .input-group{grid-template-columns:1fr}.btn,.input-group input{width:100%}.cards-grid,.card-result{grid-template-columns:1fr}.role-divider{width:72px;height:1px;justify-self:center}.split-actions,.result-actions{align-items:stretch;flex-direction:column-reverse}.result-actions .btn-large{margin-left:0}.btn-large,.result-actions .btn{width:100%}.champion-panel{min-height:390px;padding:22px 16px}.champion-position-picker,.champion-pool-tabs{grid-template-columns:repeat(3,1fr)}.champion-name-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.champion-image-frame{width:160px;height:160px}.stats-actions{align-items:flex-start;flex-direction:column}.app-footer{width:min(100% - 20px,760px);margin-top:-16px}.toast-wrap{right:10px;bottom:10px;left:10px}.toast{max-width:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.step-back{display:grid;justify-items:center;gap:8px;min-width:64px;margin:-6px 0;padding:6px 12px;border:0;border-radius:12px;color:inherit;background:transparent;font:inherit;cursor:pointer}.step-back:hover:not(:disabled){background:var(--primary-soft)}.step-back:hover:not(:disabled) strong{text-decoration:underline;text-underline-offset:4px}.step-back:focus-visible{outline:2px solid var(--primary);outline-offset:4px}.step-back:disabled{opacity:.55;cursor:default}.discord-sync-controls{position:relative;display:flex;align-items:center;gap:10px;max-width:100%;margin:0;padding:0}.discord-sync-label{flex-shrink:0;color:var(--text);font-size:12px;font-weight:700}.discord-sync-label>span{margin-left:3px;color:var(--text-muted);font-weight:500}.discord-sync-switch{display:grid;flex-shrink:0;width:44px;min-height:36px;place-items:center;padding:0;border:0;border-radius:8px;background:transparent}.discord-switch-track{display:flex;align-items:center;width:36px;height:21px;padding:3px;border-radius:999px;background:var(--border-strong);transition:background .2s}.discord-switch-track>span{width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s}.discord-sync-switch[aria-checked=true] .discord-switch-track{background:var(--primary)}.discord-sync-switch[aria-checked=true] .discord-switch-track>span{transform:translate(15px)}.discord-destination-select{position:relative;min-width:0}.discord-destination-select select{appearance:none;width:clamp(100px,13vw,160px);max-width:100%;min-height:36px;padding:6px 28px 6px 12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:transparent;font-size:12px;text-overflow:ellipsis;cursor:pointer}.discord-destination-select select:hover{background:var(--surface-muted)}.discord-destination-select option{color:var(--text);background:var(--surface-strong)}.discord-destination-select>svg{position:absolute;right:9px;top:50%;width:14px;height:14px;transform:translateY(-50%);fill:none;stroke:var(--text-muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.discord-current-name{min-width:0;padding:0 8px 0 12px;border-left:1px solid var(--border);color:var(--text-muted);font-size:12px;overflow-wrap:anywhere}.discord-sync-controls>.discord-sync-error{position:absolute;top:100%;right:0;max-width:300px;margin:5px 0 0;font-size:12px}.menu-lines-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}@media(max-width:600px){.app-header{flex-wrap:wrap}.header-tools{display:contents}.header-actions{margin-left:auto}.discord-sync-controls{flex-basis:100%;justify-content:flex-end;padding-top:12px;border-top:1px solid var(--border)}.discord-destination-select select{width:140px}.discord-current-name{max-width:180px}.app-header h1{font-size:28px}.header-actions .icon-button{width:36px;height:36px}}.roster-flow{width:min(720px,100%);padding:28px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm)}.roster-flow .player-input{width:100%}.roster-flow .roster-summary{padding:24px 0;border-width:1px 0;border-radius:0;background:transparent;box-shadow:none}.roster-flow .flow-actions{margin-top:24px}.roster-flow .flow-actions .btn{width:100%}@media(max-width:600px){.roster-flow{padding:20px 16px}}.discord-settings-content{width:min(760px,100%);margin:0 auto}.discord-settings-content h3{margin:22px 0 12px;font-size:17px}.discord-settings-content label{display:block;margin:14px 0 8px;font-size:13px;font-weight:700}.discord-settings-content input{width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);background:var(--surface-muted)}.discord-local-note{color:var(--text-muted);font-size:13px;line-height:1.7}.discord-sync-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.discord-destination-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}.discord-destination-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-muted)}.discord-destination-list li>div:first-child{flex:1;min-width:120px;overflow-wrap:anywhere}.discord-destination-list span{display:block;margin-top:6px;color:var(--accent);font-size:12px}.discord-destination-list .discord-sync-actions{margin-top:0}.discord-settings-notice{color:var(--accent);font-size:13px}.discord-help-link{display:inline-block;margin-top:14px;color:var(--primary);font-size:12px}.discord-sync-status{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px;padding:12px 16px;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted);background:var(--surface-muted)}.discord-sync-status p{flex:1 1 200px;margin:0;font-size:13px;line-height:1.6}.discord-sync-status.is-sent{color:var(--accent)}.discord-sync-error,.discord-sync-status.is-error{color:var(--danger)}.roster-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.roster-slot{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:64px;padding:10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-muted);color:var(--text)}.roster-slot.is-filled:hover{border-color:var(--danger)}.roster-slot .roster-slot-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:13px}.roster-slot .roster-slot-remove{flex-shrink:0;color:var(--text-muted);font-size:17px}.roster-slot.is-filled:hover .roster-slot-remove{color:var(--danger)}.roster-slot.is-empty{flex-direction:column;gap:2px;border-style:dashed;background:transparent}.roster-slot.is-empty>span{font-size:20px;line-height:1}.roster-slot.is-empty small{color:var(--text-muted);font-size:11px}@media(max-width:600px){.roster-slots{gap:6px}.roster-slot{min-height:64px;padding:8px 4px}.roster-slot.is-filled{flex-direction:column}.roster-slot .roster-slot-name{max-width:100%;font-size:11px}}.role-glyph{display:inline-block;flex-shrink:0;width:1em;height:1em;background-color:currentColor;mask:var(--role-mask) center / contain no-repeat;-webkit-mask:var(--role-mask) center / contain no-repeat}.table-role-icon{color:var(--primary)}.table-role.is-secondary .table-role-icon{color:var(--text-muted)}.role-col>.role-glyph{color:var(--primary)}.compact-app{min-height:100vh;background:var(--bg)}.compact-app .container{width:min(960px,calc(100% - 36px));padding:18px 0 0}.compact-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}.app-brand{display:flex;align-items:center;gap:10px;min-width:0}.app-brand>img{width:25px;height:25px;border-radius:6px}.app-brand h1{margin:0;font-size:19px;font-weight:750;letter-spacing:-.035em}.compact-header-actions{display:flex;align-items:center;gap:6px}.toolbar-icon,.toolbar-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:6px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text-muted);font-size:13px}.toolbar-icon{width:34px;font-size:20px}.toolbar-button>span:first-child{font-size:19px}.toolbar-icon:hover:not(:disabled),.toolbar-button:hover:not(:disabled){border-color:var(--border);color:var(--primary);background:var(--surface-strong)}.compact-app .theme-toggle{width:34px;height:34px;border-color:transparent;border-radius:7px;box-shadow:none;background:transparent}.compact-app .theme-toggle:hover{transform:none;border-color:var(--border);background:var(--surface-strong)}.compact-app .theme-toggle svg{width:17px;height:17px}.compact-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;height:47px;margin:4px 0 14px;border-bottom:1px solid var(--border)}.compact-tabs{align-self:stretch;display:flex;gap:8px}.compact-tabs button{position:relative;min-width:86px;padding:0 16px;border:0;border-radius:6px 6px 0 0;background:transparent;color:var(--text-muted);font-weight:700;font-size:14px}.compact-tabs button[aria-selected=true]{color:var(--primary);background:var(--primary-soft)}.compact-tabs button[aria-selected=true]:after{content:"";position:absolute;bottom:-1px;left:12px;right:12px;height:3px;border-radius:3px 3px 0 0;background:var(--primary)}.discord-summary{display:flex;align-items:center;gap:7px;padding:6px 4px;border:0;background:none;color:var(--text-muted);font-size:12px}.discord-summary>i,.connection-state>i{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:var(--border-strong)}.discord-summary .is-on{background:var(--accent)}.role-workspace{overflow:visible;border:1px solid var(--border);border-radius:11px;background:var(--surface-strong);box-shadow:var(--shadow-sm)}.workspace-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;min-height:54px;padding:10px 18px}.source-switch{display:flex;gap:6px}.source-switch button{display:flex;align-items:center;gap:7px;min-height:32px;padding:5px 11px;border:0;border-radius:6px;color:var(--text-muted);background:transparent;font-size:13px;font-weight:600}.source-switch button.is-selected{color:var(--text);background:var(--primary-soft)}.source-dot{width:12px;height:12px;border:1px solid var(--border-strong);border-radius:50%;background:var(--surface-strong)}.is-selected .source-dot{border:4px solid var(--primary)}.roster-connection{display:flex;align-items:center;gap:7px;color:var(--text-muted);font-size:12px}.connection-state{display:flex;align-items:center;gap:6px}.connection-state.is-connected{color:var(--accent)}.connection-state.is-connected>i{background:var(--accent)}.manual-source-title{font-size:13px}.roster-table-wrap{min-height:264px;padding:0 18px}.roster-card-grid{display:grid;grid-template-columns:repeat(var(--player-count),minmax(0,1fr));gap:12px;min-height:264px;padding:4px 18px 16px;align-items:start}.roster-card-grid.count-1{width:min(350px,100%);margin:0 auto}.roster-card-grid.count-2{width:min(660px,100%);margin:0 auto}.roster-card-grid.count-0{grid-template-columns:1fr}.roster-player-card{position:relative;min-width:0;min-height:244px;padding:20px 12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-strong);box-shadow:0 3px 12px #17203306;transition:border-color .18s,box-shadow .18s}.roster-player-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.roster-player-card.is-self{border-color:color-mix(in srgb,var(--primary) 55%,var(--border));background:linear-gradient(180deg,var(--primary-soft),var(--surface-strong) 54%)}.roster-player-header{display:flex;flex-direction:column;align-items:center;gap:9px;min-height:76px;margin-bottom:13px}.roster-player-header .player-avatar{width:34px;height:34px;font-size:14px}.roster-player-header .player-label{max-width:100%;margin:0;font-size:16px;line-height:1.3;font-weight:700}.roster-player-header .self-badge{position:absolute;top:12px;left:12px}.roster-player-card .remove-player{position:absolute;top:7px;right:7px}.card-role-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:13px;border-top:1px solid var(--border)}.card-role-grid.is-single-role{grid-template-columns:1fr}.card-role-slot{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:92px}.card-role-caption{color:var(--text-muted);font-size:11px}.roster-player-card .table-role{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;font-size:16px}.roster-player-card .table-role-icon{width:43px;height:43px;border-radius:10px}.roster-player-card .table-role-icon>.role-glyph{width:31px;height:31px}.roster-player-card .table-role.is-secondary{font-size:14px}.roster-player-card .table-role.is-secondary .table-role-icon{width:37px;height:37px;margin:3px 0}.roster-player-card .table-role.is-secondary .table-role-icon>.role-glyph{width:26px;height:26px}.card-role-placeholder{display:grid;width:43px;height:43px;place-items:center;border:1px dashed var(--border-strong);border-radius:10px;color:var(--border-strong);font-size:22px;font-weight:400}.card-role-placeholder.is-secondary{width:37px;height:37px;margin:3px 0}.roster-player-card .inline-preference{width:100%;margin-top:5px;padding-left:5px;padding-right:2px;font-size:12px}.roster-player-card .pending-preference{display:grid;gap:7px;margin-top:10px;text-align:center}.roster-player-card .pending-preference small{margin:0}.player-card-note{margin:11px 0 0;color:var(--text-muted);text-align:center;font-size:10px;font-weight:400}.roster-card-grid.is-busy .roster-player-card{opacity:.6}.roster-player-card.has-result .table-role{animation:reveal .24s both}.roster-table{table-layout:fixed}.roster-table th{height:34px;padding:7px 14px;background:var(--surface-muted);font-size:12px;font-weight:500}.roster-table th:first-child{width:50%;font-weight:500}.roster-table th:not(:first-child){width:25%}.roster-table td{height:51px;padding:8px 14px;font-size:14px}.roster-table tr:last-child td{border-bottom:0}.roster-table.is-busy tbody{opacity:.55}.roster-table:has(.remove-player) th:first-child{width:46%}.roster-table:has(.remove-player) th:nth-child(2),.roster-table:has(.remove-player) th:nth-child(3){width:24%}.roster-table:has(.remove-player) th:last-child{width:6%}.table-player{display:flex;align-items:center;gap:10px;min-width:0}.player-avatar{display:grid;place-items:center;width:30px;height:30px;flex:0 0 auto;border-radius:50%;color:var(--text-muted);background:var(--surface-muted);font-size:12px;font-weight:600}.is-self .player-avatar{color:var(--primary);background:var(--primary-soft)}.player-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.self-badge{flex:0 0 auto;padding:2px 6px;border-radius:4px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:600}.table-role{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;min-width:74px;font-weight:650}.table-role-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:var(--primary-soft)}.table-role-icon>.role-glyph{width:21px;height:21px;object-fit:contain}.table-role.is-secondary{color:var(--text-muted);font-weight:500}.table-role.is-secondary .table-role-icon{background:var(--surface-muted)}.empty-role{color:var(--text-muted);font-size:17px;font-weight:400}.pending-preference{color:var(--text);font-size:13px}.pending-preference small{margin-left:7px;color:var(--text-muted);font-size:11px}.inline-preference{width:min(126px,100%);min-height:32px;border:1px solid var(--border);border-radius:6px;padding:4px 8px;color:var(--text);background:var(--surface-strong);font-size:13px}.remove-player{width:25px;height:25px;border:0;border-radius:4px;background:transparent;color:var(--text-muted);font-size:18px}.remove-player:hover{color:var(--danger);background:var(--surface-muted)}.roster-empty{display:grid;align-content:center;justify-items:center;min-height:214px;padding:20px 10px;color:var(--text-muted)}.roster-empty>span{margin-bottom:12px;font-size:28px;color:var(--border-strong)}.roster-empty strong{color:var(--text);font-size:15px;font-weight:600}.roster-empty p{margin:8px 0 0;font-size:12px;font-weight:400}.workspace-status{min-height:36px;padding:4px 18px}.status-hint{margin:5px 0;color:var(--text-muted);font-size:12px}.inline-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;margin:0 0 4px;border-radius:6px;color:var(--text-muted);background:var(--surface-muted);font-size:12px;line-height:1.6}.inline-status.is-success,.inline-status.is-sent{color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface-strong))}.inline-status.is-error{color:var(--danger);background:color-mix(in srgb,var(--danger) 7%,var(--surface-strong))}.workspace-rule-row{display:flex;align-items:center;gap:14px;min-height:55px;margin:0 18px;border-top:1px solid var(--border)}.draw-mode-field{display:flex;align-items:center;gap:12px;color:var(--text-muted);font-size:12px}.draw-mode-field select{min-width:164px;min-height:33px;padding:5px 28px 5px 11px;border:1px solid var(--border);border-radius:6px;color:var(--text);background:var(--surface-strong);font-size:13px}.read-time{margin-left:auto;color:var(--text-muted);font-size:11px}.workspace-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;min-height:76px;padding:15px 18px;border-top:1px solid var(--border);background:color-mix(in srgb,var(--surface-muted) 36%,var(--surface-strong));border-radius:0 0 11px 11px}.draw-buttons{display:flex;gap:10px;margin-left:auto}.compact-app .btn{min-height:36px;padding:0 15px;border-radius:7px;box-shadow:none;font-size:13px;font-weight:650}.compact-app .btn:hover:not(:disabled){transform:none;box-shadow:none}.compact-app .primary-draw{min-width:138px;min-height:42px}.compact-app .btn-primary{background:var(--primary);color:#fff}:root[data-theme=dark] .compact-app .btn-primary{background:#4263df;color:#fff}.auto-apply-control{display:flex;align-items:center;gap:10px;position:relative;cursor:pointer;font-size:12px;font-weight:550}.auto-apply-control>input{position:absolute;opacity:0;width:36px;height:22px;margin:0}.switch-visual{display:flex;align-items:center;width:36px;height:21px;flex:0 0 auto;border-radius:99px;padding:3px;background:var(--border-strong);pointer-events:none}.switch-visual:after{content:"";width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:transform .15s}.auto-apply-control input:checked+.switch-visual{background:var(--primary)}.auto-apply-control input:checked+.switch-visual:after{transform:translate(15px)}.auto-apply-control input:focus-visible+.switch-visual{outline:2px solid var(--primary);outline-offset:3px}.auto-apply-control:has(input:disabled){cursor:not-allowed;opacity:.55}.auto-apply-control small{display:block;margin-top:4px;color:var(--text-muted);font-size:11px;font-weight:400}.web-storage-hint{color:var(--text-muted);font-size:11px}.manual-roster-tools{padding:0 18px 10px}.manual-add-form{display:flex;align-items:center;gap:8px}.manual-add-form>input{flex:1;min-width:0;min-height:35px;padding:7px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface-strong);color:var(--text);font-size:13px}.manual-roster-tools+.roster-table-wrap{min-height:225px}.manual-roster-tools+.roster-card-grid{min-height:250px}.recent-player-picker{position:relative;font-size:12px;color:var(--text-muted)}.recent-player-picker>summary{cursor:pointer;padding:8px 0;white-space:nowrap}.recent-player-popover{position:absolute;top:100%;right:0;z-index:4;width:min(360px,80vw);max-height:220px;overflow:auto;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface-strong);box-shadow:var(--shadow)}.recent-player-popover .known-chip{font-size:12px;padding:5px 9px}.text-button{border:0;padding:4px 0;color:var(--primary);background:none;font-size:12px;white-space:nowrap}.compact-footer{display:flex;justify-content:center;padding:12px 0 16px;color:var(--text-muted);font-size:10px}.compact-footer a{color:inherit;text-decoration:none}.compact-footer a:hover{text-decoration:underline}.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}.settings-dialog{width:min(680px,calc(100% - 32px));max-height:min(650px,calc(100dvh - 40px));padding:0;margin:auto;border:1px solid var(--border);border-radius:11px;color:var(--text);background:var(--surface-strong);box-shadow:var(--shadow)}.settings-dialog::backdrop{background:#10182b66}.settings-shell{display:flex;flex-direction:column;max-height:inherit}.settings-dialog-header{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:10px 18px;border-bottom:1px solid var(--border)}.settings-dialog-header h2{margin:0;font-size:17px;font-weight:650}.settings-layout{display:grid;grid-template-columns:126px minmax(0,1fr);min-height:290px;overflow:hidden}.settings-nav{display:flex;flex-direction:column;gap:6px;padding:16px 10px;border-right:1px solid var(--border)}.settings-nav button{min-height:38px;padding:8px 14px;border:0;border-radius:6px;color:var(--text-muted);background:transparent;font-size:13px;text-align:left}.settings-nav button[aria-current]{color:var(--primary);background:var(--primary-soft);font-weight:650}.settings-panel{overflow:auto;padding:22px}.settings-panel h3{margin:0 0 22px;font-size:15px;font-weight:650}.settings-note{color:var(--text-muted);font-size:12px;line-height:1.8}.data-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 12px}.data-directory{overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.data-error,.data-replace-warning{color:var(--danger);font-size:12px;line-height:1.8}.data-notice{color:var(--accent);font-size:12px}.stats-import-preview{margin-top:18px;padding:14px;border:1px solid var(--border);border-radius:7px;font-size:12px;line-height:1.8}.stats-import-preview h4{margin:0 0 10px;font-size:14px}.stats-import-preview label{display:block;margin-bottom:6px}.stats-import-preview select{width:100%;min-height:36px;padding:5px 8px;border:1px solid var(--border);border-radius:6px;color:var(--text);background:var(--surface-strong);font-size:12px}.data-startup{width:min(560px,calc(100% - 40px));margin:80px auto;color:var(--text);font:14px/1.8 system-ui}.data-startup h1{font-size:22px}.data-startup button{padding:8px 14px}.settings-info{margin-top:24px;padding:14px;border:1px solid var(--border);border-radius:7px;background:var(--surface-muted);font-size:12px}.settings-info strong{font-weight:600}.settings-info p{margin:6px 0 0;color:var(--text-muted);line-height:1.7}.settings-dialog-footer{display:flex;justify-content:flex-end;min-height:58px;padding:10px 18px;border-top:1px solid var(--border)}.settings-dialog-footer .btn{min-width:80px}.webhook-manager{margin-top:20px}.webhook-manager>summary{width:fit-content;cursor:pointer;padding:8px 12px;border:1px solid var(--border);border-radius:6px;color:var(--primary);font-size:12px}.settings-panel .discord-sync-controls{flex-wrap:wrap;justify-content:flex-start;padding:0;border:0}.settings-panel .discord-current-name{padding-left:0;border:0}.settings-panel .discord-destination-select select{width:145px}.settings-panel .discord-settings-content{margin:0;width:100%}.settings-panel .discord-settings-content h3{margin:16px 0 10px;font-size:13px}.settings-panel .discord-settings-content label{margin:12px 0 6px}.settings-panel .discord-settings-content input{min-height:36px;font-size:12px}.settings-panel .discord-settings-content .flow-actions{margin-top:20px}.settings-panel .discord-local-note{font-size:12px}.settings-panel .discord-destination-list li{padding:10px}.compact-app .champion-flow{width:100%}.compact-app .champion-flow>.flow-heading{display:none}.compact-app .champion-panel{border-radius:11px;box-shadow:var(--shadow-sm)}.compact-app .stats-header h2{font-size:18px}.compact-app .stats-modal{z-index:10}@media(min-width:601px)and (max-width:900px){.roster-card-grid.count-4,.roster-card-grid.count-5{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.compact-app .container{width:calc(100% - 20px);padding-top:12px}.app-brand{gap:7px}.app-brand h1{font-size:17px}.app-brand>img{width:22px;height:22px}.toolbar-text{display:none}.compact-header-actions{gap:2px}.compact-tabs button{min-width:73px;padding:0 12px}.discord-summary{font-size:10px}.workspace-toolbar{padding:8px 10px}.source-switch button{padding:5px 7px;font-size:12px}.source-switch{gap:2px}.roster-connection{font-size:11px}.roster-table-wrap{padding:0 10px;min-height:245px}.roster-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:3px 10px 14px;min-height:240px}.roster-card-grid.count-0,.roster-card-grid.count-1{grid-template-columns:1fr}.roster-card-grid.count-3>:last-child,.roster-card-grid.count-5>:last-child{grid-column:1 / -1;width:calc(50% - 5px);justify-self:center}.roster-player-card{padding:18px 10px 13px;min-height:235px}.roster-player-header .player-label{font-size:15px}.roster-table th,.roster-table td{padding:8px 6px}.roster-table th:first-child{width:45%}.roster-table th:not(:first-child){width:27.5%}.roster-table:has(.remove-player) th:first-child{width:43%}.roster-table:has(.remove-player) th:nth-child(2),.roster-table:has(.remove-player) th:nth-child(3){width:24%}.roster-table:has(.remove-player) th:last-child{width:9%}.table-player{gap:6px}.player-avatar{width:24px;height:24px;font-size:10px}.player-label{font-size:12px}.self-badge{padding:2px 4px;font-size:10px}.table-role{min-width:0;gap:5px;font-size:12px}.table-role-icon{width:23px;height:23px}.table-role-icon .role-glyph{width:17px;height:17px}.workspace-status{padding:4px 10px}.workspace-rule-row{flex-wrap:wrap;gap:6px;padding:10px 0;margin:0 10px}.read-time{display:none}.workspace-actions{padding:13px 12px}.compact-app .draw-buttons .btn{width:auto}.compact-app .primary-draw{min-width:112px}.auto-apply-control{font-size:11px}.workspace-actions .auto-apply-control{flex-basis:100%}.workspace-actions .draw-buttons{width:100%;justify-content:flex-end}.workspace-actions .primary-draw{flex:1}.manual-roster-tools{padding:0 10px 10px}.manual-add-form{gap:6px}.manual-add-form .btn{width:auto;padding:0 10px}.recent-player-picker{font-size:11px}.inline-preference{padding:4px;font-size:11px}.settings-layout{grid-template-columns:1fr}.settings-nav{flex-direction:row;padding:8px 12px;border-right:0;border-bottom:1px solid var(--border)}.settings-nav button{flex:1;padding:8px;text-align:center}.settings-panel{padding:18px}.settings-dialog{max-height:calc(100dvh - 28px)}.settings-dialog-footer .btn{width:auto}.settings-panel .draw-mode-field{flex-wrap:wrap}.settings-panel .discord-sync-actions .btn{width:auto}}.role-setup{--setup-control-height: 40px;--setup-action-width: 40px;--setup-preference-width: 106px;--setup-control-gap: 12px}.compact-app .container{width:min(1060px,calc(100% - 48px))}.compact-header{min-height:52px}.preparation-heading{margin:25px 0 22px}.preparation-heading h2{margin:0;font-size:25px;font-weight:650}.preparation-heading p{margin:6px 0 0;color:var(--text-muted);font-size:13px}.preparation-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,1fr);gap:20px}.preparation-panel{min-width:0;padding:23px;border:1px solid var(--border);border-radius:13px;background:var(--surface-strong);box-shadow:var(--shadow-sm)}.preparation-panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.preparation-panel h3{margin:0;font-size:16px;font-weight:650}.preparation-panel-title>span,.preparation-source{color:var(--text-muted);font-size:12px}.preparation-source{margin:0 0 14px}.role-setup .source-switch{margin-bottom:14px;border:1px solid var(--border);border-radius:9px;padding:4px;background:var(--surface-muted)}.role-setup .source-switch button{flex:1;justify-content:center;padding:7px}.role-setup .source-switch .is-selected{color:var(--primary)}.preparation-client-status{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px;color:var(--text-muted);font-size:12px}.preparation-client-status .text-button{font-size:12px}.preparation-player-list{display:grid;gap:9px}.preparation-player-row{display:grid;grid-template-columns:minmax(0,1fr) var(--setup-preference-width) var(--setup-action-width);align-items:center;gap:var(--setup-control-gap);min-height:62px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted)}.preparation-player-name{display:flex;align-items:center;gap:9px;min-width:0}.preparation-player-name .player-label{white-space:normal;overflow-wrap:anywhere;font-size:14px}.preparation-player-row .inline-preference{grid-column:2;width:100%;height:var(--setup-control-height);min-height:var(--setup-control-height);margin:0;padding:8px 10px;border-radius:8px;font-size:13px}.preparation-player-row .remove-player{grid-column:3;position:static;margin:0;width:var(--setup-action-width);height:var(--setup-control-height);border:1px solid transparent;border-radius:8px;font-size:20px}.client-preference-label{grid-column:2;text-align:right;color:var(--text-muted);font-size:12px}.preparation-empty{padding:24px 4px;color:var(--text-muted);text-align:center;font-size:13px}.role-setup .manual-add-form{display:grid;grid-template-columns:minmax(0,1fr) var(--setup-preference-width) var(--setup-action-width);align-items:center;padding:0 13px;margin-bottom:14px;gap:var(--setup-control-gap)}.role-setup .manual-add-form>input{width:100%;min-width:0;height:var(--setup-control-height);min-height:var(--setup-control-height);padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted);color:var(--text);font-size:13px}.role-setup .manual-add-form>.btn{width:var(--setup-action-width);height:var(--setup-control-height);min-height:var(--setup-control-height);padding:0;border-radius:8px;font-size:13px}.role-setup .recent-player-picker{flex:0 0 auto}.role-setup .recent-player-picker>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:7px;padding:8px 10px;height:var(--setup-control-height);min-height:var(--setup-control-height);font-size:13px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface-strong)}.role-setup .recent-player-picker>summary::-webkit-details-marker{display:none}.role-setup .recent-player-picker[open]>summary{border-color:var(--primary);color:var(--primary)}.role-setup .recent-player-popover{top:calc(100% + 8px);width:min(300px,80vw);max-height:240px}.role-setup .recent-player-popover .known-hints{display:flex;flex-wrap:wrap;gap:8px;margin:0}.role-setup .recent-player-popover .known-chip{min-height:32px;font-size:12px;padding:5px 10px}.preparation-group+.preparation-group{border-top:1px solid var(--border);padding-top:21px;margin-top:22px}.preparation-group>h3{margin-bottom:14px}.preparation-group .draw-mode-field{display:block}.preparation-group .draw-mode-field>span{display:none}.preparation-group .draw-mode-field select{width:100%;height:var(--setup-control-height);min-height:var(--setup-control-height);padding:8px 10px;background:var(--surface-muted)}.preparation-group .auto-apply-control{flex-direction:row-reverse;justify-content:space-between;font-size:13px}.preparation-group .auto-apply-control input{right:0}.preparation-group .auto-apply-control small{margin-top:4px}.preparation-group .discord-sync-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:13px;padding:0;border:0;margin:0;background:none}.preparation-group .discord-sync-label{font-size:13px}.preparation-group .discord-destination-select,.preparation-group .discord-current-name,.preparation-group .discord-sync-error{grid-column:1 / -1;width:100%}.preparation-group .discord-current-name{padding:10px 12px;border:1px solid var(--border);border-radius:7px;margin:0;color:var(--text-muted);font-size:12px}.preparation-group .discord-destination-select select{width:100%;height:var(--setup-control-height);min-height:var(--setup-control-height);background:var(--surface-muted)}.preparation-group .manage-webhook{margin-top:12px;font-size:12px}.preparation-actions{display:flex;justify-content:flex-end;margin-top:23px}.compact-app .finish-setup{min-height:42px;min-width:205px;gap:12px;display:inline-flex;justify-content:center;align-items:center}.preparation-error{margin-top:16px}.draw-workspace{display:flex;flex-direction:column;min-height:calc(100dvh - 152px);border:0;border-radius:0;background:none;box-shadow:none}.draw-screen-title{margin:38px 0 30px;text-align:center;font-size:19px;font-weight:550}.draw-workspace .roster-card-grid{grid-template-columns:repeat(var(--player-count),minmax(0,1fr));padding:0;gap:14px;min-height:0;width:100%;margin:0 auto}.draw-workspace .count-1{max-width:280px}.draw-workspace .count-2{max-width:540px}.draw-workspace .count-3{max-width:760px}.draw-workspace .roster-player-card{position:relative;display:flex;flex-direction:column;align-items:center;height:302px;min-height:302px;padding:26px 13px 20px;border-color:var(--border);background:var(--surface-strong)}.draw-workspace .roster-player-header{display:block;margin:0;min-height:26px;padding:0;text-align:center;border:0}.draw-workspace .player-label{margin:0;font-size:17px;white-space:normal;overflow-wrap:anywhere}.draw-workspace .self-badge{position:absolute;top:11px;right:11px;font-size:10px}.draw-card-result{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:19px;width:100%;padding-top:10px}.draw-workspace .table-role{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;font-size:23px;font-weight:600;min-width:0}.draw-workspace .table-role-icon{width:64px;height:64px;background:none;border-radius:0}.draw-workspace .table-role-icon>.role-glyph{width:64px;height:64px}.draw-workspace .draw-secondary{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--text-muted)}.draw-workspace .table-role.is-secondary{flex-direction:row;gap:7px;font-size:13px}.draw-workspace .table-role.is-secondary .table-role-icon,.draw-workspace .table-role.is-secondary .role-glyph{width:18px;height:18px;margin:0;background:none}.draw-workspace .table-role.is-secondary .role-glyph{background:currentColor}.draw-workspace .empty-role{color:var(--border-strong);font-size:29px;font-weight:300}.draw-feedback{margin-top:18px;min-height:24px}.draw-screen-actions{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:auto;padding:24px 0 18px}.compact-app .draw-screen-actions .btn{min-width:130px;min-height:44px}.compact-app .draw-screen-actions .primary-draw{min-width:155px}.compact-app .draw-screen-actions .btn-return{min-width:auto;margin-right:8px;border-color:transparent;background:none;color:var(--text-muted)}.is-draw-view .compact-header{border-bottom:1px solid var(--border);padding-bottom:12px}@media(max-width:760px){.preparation-grid{grid-template-columns:1fr}.preparation-panel{padding:19px}.compact-app .container{width:calc(100% - 30px)}.draw-workspace .roster-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.draw-workspace .count-1{grid-template-columns:1fr}.draw-workspace .roster-card-grid.count-3>:last-child,.draw-workspace .roster-card-grid.count-5>:last-child{grid-column:1 / -1;width:calc(50% - 6px);justify-self:center}.draw-workspace .roster-player-card{height:246px;min-height:246px}.draw-workspace .table-role-icon,.draw-workspace .table-role-icon>.role-glyph{width:49px;height:49px}.draw-screen-actions{position:sticky;bottom:0;background:var(--bg);padding-top:16px;gap:8px}.compact-app .draw-screen-actions .btn{min-width:95px;padding:0 10px}.compact-app .draw-screen-actions .primary-draw{min-width:118px}.compact-app .draw-screen-actions .btn-return{min-width:auto;margin-right:0;padding-left:0}}@media(max-width:400px){.role-setup .manual-add-form{display:flex;flex-wrap:wrap;padding:0;gap:8px}.role-setup .manual-add-form>input{flex-basis:100%;width:100%}.role-setup .recent-player-picker{margin-left:auto}.role-setup{--setup-preference-width: 90px;--setup-action-width: 36px;--setup-control-gap: 8px}.preparation-player-row{padding:9px}}.draw-workspace .roster-player-header .self-badge{left:auto;right:11px;width:auto}.draw-workspace .roster-player-card.has-result .table-role{animation:none}.preparation-group .discord-sync-controls>.discord-sync-error{position:static;max-width:none}.compact-navigation{height:auto;min-height:0;margin:18px 0 24px;border:0}.compact-tabs{display:inline-flex;align-self:auto;align-items:center;gap:3px;padding:4px;border:1px solid var(--border);border-radius:11px;background:var(--surface-muted)}.compact-tabs button{display:inline-flex;align-items:center;justify-content:center;min-width:91px;min-height:32px;padding:6px 15px;border:1px solid transparent;border-radius:7px;background:none;color:var(--text-muted);font-size:13px;font-weight:550}.compact-tabs button[aria-selected=true]{border-color:var(--border);background:var(--surface-strong);color:var(--primary);box-shadow:0 1px 4px #0000000a}.compact-tabs button[aria-selected=true]:after{content:none}.compact-tabs button:hover:not(:disabled):not([aria-selected=true]){color:var(--text);background:color-mix(in srgb,var(--surface-strong) 50%,transparent)}@media(max-width:600px){.compact-navigation{margin:14px 0 20px}.compact-tabs button{min-width:83px;padding:6px 12px}}:root{--bg: #f4f5f7;--surface: #fff;--surface-strong: #fff;--surface-muted: #f1f2f4;--border: #e4e7eb;--border-strong: #c3c8cf;--text: #20242b;--text-muted: #606770;--primary: #20242b;--primary-strong: #101216;--primary-soft: #e8eaed;--accent: #426b50;--danger: #a33232;--shadow-sm: none;--shadow: 0 16px 44px #00000020;--radius-sm: 6px;--radius: 8px;--radius-lg: 10px}:root[data-theme=dark]{--bg: #141416;--surface: #1e1e21;--surface-strong: #1e1e21;--surface-muted: #27272b;--border: #35353a;--border-strong: #5e5e66;--text: #f2f2f3;--text-muted: #b4b4bc;--primary: #eeeeef;--primary-strong: #fff;--primary-soft: #303035;--accent: #a4ceb0;--danger: #ffaaa4;--shadow-sm: none;--shadow: 0 16px 44px #0005}html,body,#root{height:100%}body{min-height:0;overflow:hidden;background:var(--bg);font-family:Segoe UI,Microsoft JhengHei,Noto Sans TC,system-ui,sans-serif}.refined-app{display:grid;grid-template-columns:minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden;background:var(--bg)}.refined-app .container{display:flex;flex-direction:column;width:min(1680px,calc(100% - clamp(48px,8vw,192px)));min-width:0;min-height:0;margin:0 auto;padding:22px 0 0}.refined-app .compact-header{flex:none;min-height:52px;margin:0 0 16px;padding:0 0 12px;border:0;border-bottom:1px solid var(--border);align-items:center}.refined-app .compact-header .app-brand{display:flex;gap:10px;color:var(--text);font-size:16px;font-weight:600}.settings-app-version{margin-inline-end:auto;align-self:center;color:var(--text-muted);font-size:12px}.refined-app .toolbar-button,.refined-app .toolbar-icon,.refined-app .theme-toggle{width:auto;min-width:40px;height:40px;min-height:40px;border:0;padding:6px 9px;border-radius:6px;background:none;color:var(--text-muted);font-size:13px;box-shadow:none}.refined-app .compact-header-actions>button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;height:44px;padding:0}.refined-app .compact-header-actions>button>svg{width:20px;height:20px}.refined-app .theme-toggle{display:grid;place-items:center}.refined-app .theme-toggle svg{width:18px;height:18px}.refined-app .compact-navigation{display:flex;flex:none;height:auto;margin:0 0 16px;padding:0}.refined-app .compact-tabs{display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));align-self:auto;gap:4px;border:0;border-radius:6px;padding:3px;background:var(--surface-muted)}.refined-app .compact-tabs button{display:grid;place-items:center;min-width:0;min-height:36px;border:1px solid transparent;border-radius:5px;padding:4px 12px;color:var(--text-muted);font-size:13px;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.refined-app .compact-tabs button:after{content:none}.tool-content{flex:1;min-height:0;min-width:0}.refined-app .role-setup,.refined-app .draw-workspace{display:grid;grid-template-rows:minmax(0,1fr) auto;height:auto;max-height:100%;min-height:0;padding:0;margin:0;border:0;background:none;box-shadow:none}.workspace-scroll{min-height:0;min-width:0;overflow:auto;padding:0 2px 20px;scrollbar-width:thin;scrollbar-gutter:stable}.refined-app h1{margin:0;font-size:28px;line-height:1.35;font-weight:600;letter-spacing:-.025em}.refined-app .preparation-heading{margin:0 0 24px}.role-setup-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}.role-setup-heading h1{margin:0}.refined-app .preparation-heading p,.draw-heading p{margin:8px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.refined-app .preparation-grid{grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr);gap:18px;align-items:start}.refined-app .preparation-panel{min-width:0;padding:18px 20px;border:1px solid var(--border);border-radius:8px;background:var(--surface-strong);box-shadow:none}.preparation-settings{min-width:0;display:grid;gap:18px}.refined-app .preparation-panel h2,.refined-app .preparation-panel h3{margin:0;font-size:15px;font-weight:600}.refined-app .preparation-panel-title{margin:0 0 14px}.refined-app .preparation-panel-title>span{font-size:13px;font-variant-numeric:tabular-nums}.refined-app .roster-preparation{display:flex;flex-direction:column}.roster-preparation .preparation-panel-title{order:0}.roster-preparation .source-switch{order:1}.roster-preparation .preparation-client-status{order:2}.roster-preparation .preparation-player-list{order:3}.roster-preparation .preparation-empty{order:4}.roster-preparation .manual-add-form{order:5}.refined-app .preparation-source{display:none}.refined-app .source-switch{margin-bottom:12px;box-shadow:none}.refined-app .source-switch button{min-height:36px;font-size:13px}.refined-app .source-switch .is-selected{color:var(--text);background:var(--surface-strong)}.refined-app .preparation-player-list{gap:0}.refined-app .preparation-player-row{grid-template-columns:minmax(0,1fr) 106px 44px;gap:8px;min-height:54px;padding:4px 0;border:0;border-top:1px solid var(--border);border-radius:0;background:none}.preparation-player-row:not(.has-preference):not(:has(.client-preference-label)) .preparation-player-name{grid-column:1 / 3}.refined-app .preparation-player-name .player-label{font-size:14px;line-height:1.5}.refined-app .preparation-player-row .inline-preference{height:44px;min-height:44px;font-size:13px;border-radius:6px;background:var(--surface-strong)}.refined-app .preparation-player-row .remove-player{width:44px;height:44px;min-height:44px;padding:0;color:var(--text-muted);background:none}.refined-app .manual-add-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:12px 0 0;margin:0;border-top:1px solid var(--border)}.refined-app .manual-add-form>input{width:100%;height:44px;min-height:44px;background:var(--surface-strong);font-size:14px}.refined-app .manual-add-form>.btn{width:auto;height:44px;min-height:44px;padding:0 12px}.refined-app .recent-player-picker>summary{min-height:44px;height:44px;padding:8px 10px;font-size:13px}.refined-app .manual-add-form:has(input[placeholder="已達 5 人上限"]){grid-template-columns:1fr auto}.refined-app .manual-add-form:has(input[placeholder="已達 5 人上限"])>input,.refined-app .manual-add-form:has(input[placeholder="已達 5 人上限"])>.btn{display:none}.refined-app .manual-add-form:has(input[placeholder="已達 5 人上限"])>details{grid-column:2}.refined-app .recent-player-popover{top:auto;bottom:calc(100% + 8px);width:min(300px,80vw);max-height:220px;z-index:5}.refined-app .recent-player-popover .known-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 12px;font-size:14px;line-height:1.5;color:var(--text);background:var(--surface-strong);border-color:var(--border-strong);transform:none}.refined-app .recent-player-popover .known-chip:hover:not(:disabled){color:var(--text);background:var(--surface-muted);border-color:var(--text-muted)}.refined-app .recent-player-popover .known-chip[aria-pressed=true],.refined-app .recent-player-popover .known-chip[aria-pressed=true]:hover{color:var(--surface-strong);background:var(--primary);border-color:var(--primary)}.known-player-check{flex:none}.refined-app .preparation-empty{margin:0;padding:30px 0;font-size:13px}.refined-app .preparation-group>h2{margin-bottom:16px}.refined-app .preparation-group .draw-mode-field>span{display:block;font-size:13px;color:var(--text-muted);margin-bottom:8px}.refined-app .preparation-group .draw-mode-field select{min-height:44px;height:44px;background:var(--surface-strong)}.preparation-rule-note{font-size:13px;color:var(--text-muted);margin:12px 0 0;line-height:1.7}.refined-app .preparation-group+.preparation-group{padding-top:16px;margin-top:16px}.refined-app .discord-preparation{padding:0}.discord-preparation>summary{min-height:58px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none}.discord-preparation>summary::-webkit-details-marker{display:none}.discord-preparation>summary>span{font-size:13px;color:var(--text-muted);white-space:nowrap}.discord-preparation>.preparation-group{padding:0 20px 18px}.refined-app .manage-webhook{min-height:44px;font-size:13px}.refined-app .text-button{color:var(--text)}.refined-app .self-badge{font-size:11px;color:var(--text-muted);background:var(--surface-muted)}.refined-app .preparation-actions,.refined-app .draw-screen-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;position:static;flex:none;margin:0;padding:18px 0;border-top:1px solid var(--border);background:var(--bg)}.action-summary{margin:0;color:var(--text-muted);font-size:13px;line-height:1.6}.action-summary strong{display:block;margin-bottom:2px;color:var(--text);font-weight:500}.draw-action-buttons{display:flex;align-items:center;gap:10px}.refined-app .btn{width:auto;min-height:44px;font-size:13px;font-weight:500;border-radius:6px;box-shadow:none}.refined-app .btn-primary{color:var(--surface-strong);background:var(--primary);border-color:var(--primary)}:root[data-theme=dark] .refined-app .btn-primary{color:#141416;background:var(--primary)}.refined-app .btn-primary:disabled{color:var(--text-muted);background:var(--surface-muted);border-color:var(--border);opacity:1}.refined-app .btn-secondary{color:var(--text);background:var(--surface-strong);border-color:var(--border-strong)}.refined-app .btn:hover:not(:disabled){transform:none;box-shadow:none}.refined-app .finish-setup{min-height:46px;min-width:205px}.draw-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:24px}.refined-app .draw-screen-title{margin:0;text-align:left}.refined-app .draw-heading .btn-return{min-width:auto;margin:0;padding:0 12px;border:1px solid var(--border-strong);background:var(--surface-strong);color:var(--text);flex:none}.result-scope{margin:0 0 14px;color:var(--text-muted);font-size:13px}.refined-app .draw-workspace .roster-card-grid{gap:10px;margin:0;width:100%}.refined-app .draw-workspace .roster-player-card{height:auto;min-height:278px;padding:22px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-strong);box-shadow:none}.refined-app .draw-workspace .roster-player-header{display:flex;flex-direction:column;justify-content:start;align-items:center;min-height:44px;width:100%;gap:6px}.refined-app .draw-workspace .player-label{font-size:14px;font-weight:500;line-height:1.5}.refined-app .draw-workspace .self-badge{position:absolute;top:10px;right:10px;left:auto;flex:none}.refined-app .draw-card-result{padding-top:0;gap:12px}.refined-app .draw-workspace .table-role{font-size:23px;font-weight:500;gap:14px}.refined-app .draw-workspace .table-role-icon,.refined-app .draw-workspace .table-role-icon>.role-glyph{width:52px;height:52px;background:none}.refined-app .role-glyph{display:inline-block;object-fit:contain;background:none;mask:none;-webkit-mask:none;filter:none;color-scheme:light}:root[data-theme=dark] .refined-app .role-glyph{color-scheme:dark}.refined-app .draw-workspace .draw-secondary{gap:6px;font-size:12px}.refined-app .draw-workspace .table-role.is-secondary{display:inline-flex;flex-direction:row;gap:6px;font-size:13px}.refined-app .draw-workspace .table-role.is-secondary .table-role-icon,.refined-app .draw-workspace .table-role.is-secondary .role-glyph{width:18px;height:18px;background:none}.refined-app .draw-feedback{margin:16px 0 0;min-height:0;font-size:13px}.draw-feedback:empty{display:none}.draw-feedback .inline-status{margin:8px 0 0}.draw-feedback .is-success,.draw-feedback .is-sent{color:var(--accent)}.refined-app .compact-footer{flex:none;margin:0;padding:0 0 12px;font-size:11px;text-align:left}.refined-app .compact-footer a{color:var(--text-muted)}.refined-app .champion-flow{height:100%;min-height:0;overflow:auto;padding:0 2px 20px;animation:none;scrollbar-width:thin}.refined-app .champion-flow>.flow-heading{display:block;text-align:left;margin:0 0 24px;animation:none}.refined-app .champion-flow>.flow-heading>span{display:none}.refined-app .champion-panel{box-shadow:none;border-radius:8px;background:var(--surface-strong)}.refined-app .champion-image-frame{border-radius:8px;box-shadow:none}.refined-app .champion-position{color:var(--text-muted);border-color:var(--border);background:var(--surface-strong);min-height:44px;box-shadow:none}.refined-app .champion-position.is-selected{color:var(--text);background:var(--surface-muted);border-color:var(--border-strong)}.refined-app .card-kicker{display:none}.refined-app .champion-data-meta{color:var(--text-muted);font-size:12px;overflow-wrap:anywhere}.refined-app .settings-dialog,.refined-app .stats-content{border-radius:8px}.refined-app .stats-modal{-webkit-backdrop-filter:none;backdrop-filter:none}.refined-app .stats-close{width:44px;height:44px}.refined-app .stats-scroll th,.refined-app .stats-scroll td{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.refined-app .stats-scroll th:first-child,.refined-app .stats-scroll td:first-child{text-align:left;white-space:normal;overflow-wrap:anywhere}.refined-app .stats-scroll th:first-child{min-width:105px}@media(min-width:1440px){.refined-app .container{padding-top:clamp(28px,3vh,44px)}.refined-app .compact-header{min-height:60px;margin-bottom:20px}.refined-app .compact-header .app-brand{font-size:18px}.refined-app .compact-navigation{margin-bottom:20px}.refined-app .compact-tabs button{min-height:40px;padding-inline:16px;font-size:15px}.refined-app h1{font-size:32px}.refined-app .preparation-heading,.refined-app .draw-heading{margin-bottom:30px}.refined-app .preparation-heading p,.refined-app .draw-heading p,.refined-app .preparation-rule-note,.refined-app .action-summary,.refined-app .result-scope,.refined-app .draw-feedback{font-size:15px}.refined-app .preparation-grid,.refined-app .preparation-settings{gap:24px}.refined-app .preparation-panel{padding:24px 28px}.refined-app .preparation-panel h2,.refined-app .preparation-panel h3{font-size:18px}.refined-app .preparation-panel-title{margin-bottom:20px}.refined-app .preparation-panel-title>span,.refined-app .preparation-group .draw-mode-field>span,.refined-app .source-switch button,.refined-app .preparation-client-status,.refined-app .client-preference-label,.refined-app .apply-client-setting,.refined-app .inline-status,.refined-app .manage-webhook,.refined-app .discord-preparation>summary>span{font-size:15px}.refined-app .source-switch button{min-height:44px}.refined-app .preparation-player-row{min-height:66px}.refined-app .preparation-player-name .player-label,.refined-app .draw-workspace .player-label{font-size:16px}.refined-app .preparation-empty{padding-block:44px;font-size:15px}.refined-app .manual-add-form>input,.refined-app .manual-add-form>.btn,.refined-app .recent-player-picker>summary,.refined-app .preparation-group .draw-mode-field select,.refined-app .preparation-player-row .inline-preference,.refined-app .btn{min-height:48px;height:auto;font-size:15px}.refined-app .manual-add-form>input{font-size:16px}.refined-app .discord-preparation{padding:0}.refined-app .discord-preparation>summary{min-height:68px;padding:20px 28px}.refined-app .discord-preparation>.preparation-group{padding:0 28px 24px}.refined-app .preparation-actions,.refined-app .draw-screen-actions{padding-block:24px}.refined-app .finish-setup{min-width:240px;min-height:52px}.refined-app .draw-workspace .roster-card-grid{gap:16px}.refined-app .draw-workspace .roster-player-card{min-height:340px;padding:32px 20px}.refined-app .draw-workspace .table-role{font-size:28px;gap:20px}.refined-app .draw-workspace .table-role-icon,.refined-app .draw-workspace .table-role-icon>.role-glyph{width:68px;height:68px}.refined-app .draw-workspace .draw-secondary,.refined-app .draw-workspace .table-role.is-secondary{font-size:15px}.refined-app .compact-footer{font-size:12px}}@media(min-width:701px)and (max-width:1100px){.refined-app .container{padding:18px 0 0}.refined-app .preparation-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr);gap:14px}.refined-app .preparation-panel{padding:16px}.refined-app .discord-preparation{padding:0}.refined-app .manual-add-form{grid-template-columns:minmax(0,1fr) auto}.refined-app .manual-add-form>input{grid-column:1 / -1}.refined-app .manual-add-form>details{justify-self:end}}@media(min-width:701px)and (max-width:900px){.refined-app .preparation-grid{grid-template-columns:1fr}.preparation-settings{grid-template-columns:1fr 1fr;align-items:start;gap:14px}.refined-app .draw-workspace .roster-card-grid{grid-template-columns:1fr;max-width:none;gap:0;border:1px solid var(--border);border-radius:8px;overflow:hidden}.refined-app .draw-workspace .roster-player-card{min-height:89px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:0 12px;align-content:center;padding:14px;border:0;border-top:1px solid var(--border);border-radius:0}.refined-app .draw-workspace .roster-player-card:first-child{border-top:0}.refined-app .draw-workspace .roster-card-grid>.roster-player-card:last-child{grid-column:auto;width:100%;justify-self:stretch}.refined-app .draw-workspace .roster-player-header{grid-column:2;grid-row:1;min-height:0;flex-direction:row;align-items:center;text-align:left}.refined-app .draw-workspace .self-badge{position:static}.refined-app .draw-card-result,.refined-app .draw-card-result>.table-role{display:contents}.refined-app .draw-card-result>.table-role>.table-role-icon{grid-column:1;grid-row:1}.refined-app .draw-card-result>.table-role>span:last-child{grid-column:3;grid-row:1;font-size:18px}.refined-app .draw-workspace .table-role-icon,.refined-app .draw-workspace .table-role-icon>.role-glyph{width:34px;height:34px}.refined-app .draw-workspace .draw-secondary{grid-column:2 / -1;grid-row:2;display:flex;justify-content:start;margin-top:4px}.refined-app .draw-workspace .empty-role{grid-column:1;grid-row:1;width:34px;text-align:center;font-size:22px}}@media(max-width:700px){.refined-app{display:flex;flex-direction:column}.refined-app .role-setup,.refined-app .draw-workspace{height:100%}.refined-app .container{flex:1;width:100%;margin:0;padding:0}.refined-app .compact-header{min-height:60px;margin:0;padding:8px 16px;background:var(--surface-strong);border-bottom:1px solid var(--border)}.refined-app .compact-header .app-brand{display:flex;gap:8px;white-space:nowrap;font-size:14px;font-weight:600}.refined-app .app-brand img{width:22px;height:22px}.refined-app .compact-header-actions{gap:0}.refined-app .toolbar-button,.refined-app .toolbar-icon,.refined-app .theme-toggle{min-width:36px;width:auto;min-height:44px;height:44px;padding:5px;font-size:12px}.refined-app .compact-navigation{flex-wrap:wrap;margin:0;padding:8px 16px 4px}.refined-app .compact-tabs button{min-height:44px}.workspace-scroll{padding:18px 16px 20px;scrollbar-gutter:auto}.refined-app h1{font-size:24px}.refined-app .preparation-heading{margin:0 0 18px}.refined-app .preparation-heading p,.draw-heading p{margin-top:6px;font-size:13px}.refined-app .preparation-grid{display:grid;grid-template-columns:1fr;gap:12px}.refined-app .preparation-panel{padding:13px 14px}.refined-app .preparation-panel-title{margin-bottom:8px}.refined-app .preparation-panel h2,.refined-app .preparation-panel h3{font-size:14px}.refined-app .preparation-player-row{min-height:48px;grid-template-columns:minmax(0,1fr) 94px 44px;gap:6px;padding:2px 0}.refined-app .preparation-player-name .player-label{font-size:14px}.refined-app .manual-add-form{display:grid;grid-template-columns:minmax(0,1fr) auto;padding-top:10px;gap:8px}.refined-app .manual-add-form>input{grid-column:1 / -1;font-size:16px}.refined-app .manual-add-form>details{justify-self:end}.refined-app .manual-add-form:has(input[placeholder="已達 5 人上限"]){padding-top:6px}.preparation-settings{grid-template-columns:1fr;gap:12px}.refined-app .draw-preparation .preparation-group:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.refined-app .draw-preparation .preparation-group>h2{margin:0;white-space:nowrap}.refined-app .draw-preparation .draw-mode-field{min-width:0;max-width:200px}.refined-app .preparation-group .draw-mode-field>span,.preparation-rule-note{display:none}.refined-app .draw-preparation .draw-mode-field select{font-size:13px}.refined-app .discord-preparation{padding:0}.discord-preparation>summary{padding:12px 14px;min-height:52px}.discord-preparation>.preparation-group{padding:0 14px 14px}.refined-app .preparation-actions,.refined-app .draw-screen-actions{flex-direction:column;align-items:stretch;gap:8px;padding:10px 16px max(14px,env(safe-area-inset-bottom));background:var(--surface-strong)}.action-summary{text-align:center;font-size:12px}.action-summary strong{display:none}.refined-app .finish-setup{min-height:48px;width:100%}.draw-action-buttons{display:grid;grid-template-columns:1fr 1.35fr;gap:10px}.refined-app .draw-screen-actions .btn{min-width:0;min-height:48px;width:100%}.draw-heading{margin-bottom:18px;gap:10px}.draw-heading>div{min-width:0}.refined-app .draw-heading .btn-return{min-width:0;padding:0 10px;font-size:12px}.result-scope{font-size:13px;margin-bottom:10px}.refined-app .draw-workspace .roster-card-grid{display:grid;grid-template-columns:1fr;gap:0;border:1px solid var(--border);border-radius:8px;background:var(--surface-strong);overflow:hidden;max-width:none}.refined-app .draw-workspace .roster-player-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:0 12px;align-content:center;min-height:89px;height:auto;width:100%;padding:14px;border:0;border-top:1px solid var(--border);border-radius:0}.refined-app .draw-workspace .roster-player-card:first-child{border-top:0}.refined-app .draw-workspace .roster-card-grid>.roster-player-card:last-child{grid-column:auto;width:100%;justify-self:stretch}.refined-app .draw-workspace .roster-player-header{grid-column:2;grid-row:1;min-height:0;flex-direction:row;align-items:center;justify-content:start;text-align:left}.refined-app .draw-workspace .self-badge{position:static}.refined-app .draw-workspace .player-label{font-size:14px;text-align:left}.refined-app .draw-card-result,.refined-app .draw-card-result>.table-role{display:contents}.refined-app .draw-card-result>.table-role>.table-role-icon{grid-column:1;grid-row:1}.refined-app .draw-card-result>.table-role>span:last-child{grid-column:3;grid-row:1;font-size:18px;white-space:nowrap;font-weight:500}.refined-app .draw-workspace .table-role-icon,.refined-app .draw-workspace .table-role-icon>.role-glyph{width:34px;height:34px}.refined-app .draw-workspace .draw-secondary{grid-column:2 / -1;grid-row:2;display:flex;justify-content:start;margin-top:4px}.refined-app .draw-workspace .empty-role{grid-column:1;grid-row:1;width:34px;text-align:center;font-size:22px}.refined-app .compact-footer{display:none}.refined-app .champion-flow{padding:18px 16px 20px}.refined-app .champion-flow>.flow-heading{margin-bottom:18px}.refined-app .champion-panel{padding:18px 14px}.refined-app .champion-actions{width:100%}.refined-app .champion-actions .btn{min-height:48px;width:100%}.refined-app .stats-scroll th,.refined-app .stats-scroll td{padding:12px 7px;font-size:12px}.refined-app .stats-scroll th:first-child{min-width:90px}}.ui-icon{flex:none;vertical-align:middle}.refined-app .btn,.refined-app .text-button,.refined-app .preparation-panel h3,.refined-app .visual-summary{display:inline-flex;align-items:center;gap:8px}.refined-app .btn{justify-content:center}.refined-app .icon-action{width:48px;min-width:48px;padding-inline:0;flex:none}.refined-app .preparation-empty{display:flex;flex-direction:column;align-items:center;gap:12px}.refined-app .preparation-empty>svg{width:36px;height:36px;opacity:.7}.refined-app .visual-summary{line-height:1;font-variant-numeric:tabular-nums}.rule-icons{display:flex;gap:16px;color:var(--text-muted);margin-top:14px}.rule-icons>span{display:inline-flex;align-items:center;gap:2px}.sync-indicator{display:inline-flex;align-items:center;gap:12px}.sync-indicator>i{width:7px;height:7px;border-radius:50%;background:var(--text-muted)}.sync-indicator>.is-on{background:var(--accent)}.refined-app .recent-player-popover{position:fixed;left:var(--picker-left, 16px);top:var(--picker-top, 16px);right:auto;bottom:auto;width:min(520px,calc(100vw - 32px));max-height:min(420px,calc(100dvh - 32px));padding:20px;z-index:15;overscroll-behavior:contain}.recent-player-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.refined-app .recent-player-header>h3{margin:0;font-size:16px}.recent-player-header h3>span{color:var(--text-muted);font-size:13px;font-weight:400}.history-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:6px;color:var(--text-muted);background:var(--surface-muted)}.refined-app .recent-player-popover .known-hints{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.refined-app .recent-player-popover .known-chip{justify-content:flex-start;min-width:0;width:100%;min-height:56px;padding:12px 14px;gap:10px;font-size:16px;text-align:left}.refined-app .recent-player-popover .known-chip>span{min-width:0;overflow-wrap:anywhere}.refined-app .recent-player-popover .muted-text{grid-column:1 / -1;font-size:14px}@media(max-width:700px){.refined-app .draw-action-buttons{grid-template-columns:48px minmax(0,1fr)}.refined-app .visual-summary{justify-content:center}.refined-app .recent-player-popover{padding:16px}.refined-app .recent-player-popover .known-chip{font-size:15px;padding:12px 10px}.refined-app .rule-icons{display:none}}.refined-app .draw-workspace .table-role-icon{position:relative;overflow:visible}.refined-app .draw-workspace .table-role.is-assigned>.table-role-icon:before{content:"";position:absolute;inset:-9px;border:1.5px solid var(--text-muted);border-radius:8px}.assignment-marker{position:absolute;right:-17px;bottom:-15px;display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--text-muted);border-radius:6px;color:var(--text);background:var(--surface-strong)}.assignment-marker>svg{width:18px;height:18px}.refined-app .draw-workspace .draw-secondary{padding:6px 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface-muted)}.discord-draw-status{display:inline-flex;align-items:center;gap:9px;min-width:0;max-width:50%;color:var(--text-muted);font-size:13px}.discord-destination-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.discord-draw-status>i{flex:none;width:6px;height:6px;border-radius:50%;background:var(--text-muted)}.discord-draw-status.is-off{opacity:1}.discord-draw-status.is-sent>i{background:var(--accent)}.discord-draw-status.is-sending>i{background:var(--text)}.discord-draw-status.is-error>i,.discord-draw-status.is-unconfigured>i{background:var(--danger)}@media(min-width:901px){.refined-app .draw-workspace .roster-player-header{height:92px;min-height:92px;padding:0 14px 14px;border-bottom:1px solid var(--border)}.refined-app .draw-workspace .roster-player-header .player-label{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.refined-app .draw-workspace .draw-card-result{padding-top:18px;gap:18px}}@media(min-width:1440px){.discord-draw-status{font-size:15px}}@media(max-width:900px){.refined-app .draw-workspace .table-role.is-assigned>.table-role-icon:before{inset:-5px;border-radius:6px}.assignment-marker{width:20px;height:20px;right:-10px;bottom:-10px}.assignment-marker>svg{width:12px;height:12px}.refined-app .draw-workspace .draw-secondary{justify-self:start;padding:3px 8px;margin-top:5px}}@media(max-width:700px){.discord-draw-status{max-width:100%;justify-content:center;min-height:20px;font-size:12px}.discord-draw-status>svg{width:16px;height:16px}}.refined-app .preparation-grid{gap:0;border:1px solid var(--border);border-radius:8px;background:var(--surface-strong);align-items:stretch}.refined-app .preparation-grid>.roster-preparation{border:0;border-right:1px solid var(--border);border-radius:0;background:none}.refined-app .preparation-settings{display:flex;flex-direction:column;gap:0}.refined-app .preparation-settings>.draw-preparation{border:0;border-radius:0;background:none}.refined-app .preparation-settings>.discord-preparation{border:0;border-top:1px solid var(--border);border-radius:0;margin-inline:20px;background:none}.refined-app .preparation-settings>.discord-preparation>summary{padding-inline:0}.refined-app .preparation-settings>.discord-preparation>.preparation-group{padding-inline:0}@media(min-width:1440px){.refined-app .preparation-settings>.discord-preparation{margin-inline:28px}}@media(min-width:701px)and (max-width:1100px){.refined-app .preparation-settings>.discord-preparation{margin-inline:16px}}@media(min-width:701px)and (max-width:900px){.refined-app .preparation-grid>.roster-preparation{border-right:0;border-bottom:1px solid var(--border)}.refined-app .preparation-settings{display:grid;grid-template-columns:1fr 1fr}.refined-app .preparation-settings>.discord-preparation{border:0;border-left:1px solid var(--border);margin:0;padding-inline:16px}}@media(max-width:700px){.refined-app .preparation-grid>.roster-preparation{border-right:0;border-bottom:1px solid var(--border)}.refined-app .preparation-settings>.discord-preparation{margin-inline:14px}}.discord-availability{display:inline-flex;align-items:center;gap:6px;flex:none;padding:5px 8px;border:1px solid var(--border-strong);border-radius:6px;color:var(--text);background:var(--surface-muted);font-size:12px;white-space:nowrap}.discord-availability>svg{width:16px;height:16px}.discord-availability.is-enabled{color:var(--accent);border-color:var(--accent);background:var(--surface-strong)}.refined-app .discord-sync-switch{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;width:auto;min-width:104px;min-height:44px;padding:0 2px}.discord-switch-caption{color:var(--text);font-size:14px;font-weight:600}.refined-app .discord-switch-track{width:48px;height:28px;padding:3px;border:1px solid #606770;background:#606770}.refined-app .discord-switch-track>span{display:grid;place-items:center;width:20px;height:20px;color:#606770;background:#fff;box-shadow:none}.refined-app .discord-switch-track>span>svg{width:14px;height:14px}.refined-app .discord-sync-switch[aria-checked=true] .discord-switch-track{border-color:#247b50;background:#247b50}.refined-app .discord-sync-switch[aria-checked=true] .discord-switch-track>span{transform:translate(20px);color:#247b50}.refined-app .discord-sync-switch:focus-visible{outline:2px solid var(--text);outline-offset:3px}.refined-app .discord-sync-switch:disabled{opacity:.65}.refined-app .preparation-settings h2{display:flex;align-items:center;gap:8px;font-size:15px}.draw-mode-options{display:grid;grid-template-columns:repeat(var(--mode-count),minmax(0,1fr));gap:6px;padding:4px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted)}.draw-mode-options>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:64px;padding:8px 4px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--text-muted);font:inherit;font-size:13px}.draw-mode-options>button[aria-checked=true]{border-color:var(--border-strong);color:var(--text);background:var(--surface-strong)}.draw-mode-options>button:focus-visible{outline:2px solid var(--text);outline-offset:2px}.refined-app .preparation-group .auto-apply-control{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.setting-control-label,.refined-app .discord-sync-label{display:inline-flex;align-items:center;gap:8px;color:var(--text);font-size:13px;font-weight:500}.refined-app .preparation-settings>.discord-preparation{padding-top:12px;padding-bottom:20px}.setting-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.refined-app .setting-section-heading h2{margin:0}.refined-app .setting-section-heading .manage-webhook{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--border);border-radius:6px;background:var(--surface-muted)}.refined-app .preparation-settings>.discord-preparation>.preparation-group{padding-bottom:0}@media(max-width:700px){.refined-app .draw-preparation .preparation-group:first-child{display:block}.refined-app .draw-preparation .preparation-group>h2{margin:0 0 12px}.draw-mode-options>button{flex-direction:row;min-height:44px;gap:8px}.refined-app .preparation-settings>.discord-preparation{padding-top:6px;padding-bottom:14px}}.discord-section-heading{gap:8px}.discord-section-heading h2{flex:none}.discord-destination-picker,.discord-destination-static{margin-left:auto;min-width:0;max-width:180px}.discord-destination-picker{position:relative;flex:0 1 180px}.discord-destination-trigger,.discord-destination-static{min-height:36px;padding:6px 9px;border:1px solid var(--border);border-radius:6px;color:var(--text);background:var(--surface-muted);font:inherit;font-size:12px}.discord-destination-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0}.discord-destination-trigger>span,.discord-destination-static{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.discord-destination-trigger>svg{width:15px;height:15px}.discord-destination-trigger[aria-expanded=true]{border-color:var(--text-muted)}.discord-destination-menu{position:fixed;left:16px;top:16px;z-index:25;display:grid;gap:4px;width:min(280px,calc(100vw - 32px));max-height:min(320px,calc(100dvh - 32px));overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface-strong);box-shadow:var(--shadow)}.discord-destination-menu>button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:44px;padding:10px 12px;border:0;border-radius:5px;background:transparent;color:var(--text);font:inherit;font-size:14px;text-align:left}.discord-destination-menu>button>span{min-width:0;overflow-wrap:anywhere}.discord-destination-menu>button[aria-selected=true],.discord-destination-menu>button:hover{background:var(--surface-muted)}.discord-destination-menu>button:focus-visible,.discord-destination-trigger:focus-visible{outline:2px solid var(--text-muted);outline-offset:-2px}.discord-destination-error{position:absolute;right:0;bottom:-18px;color:var(--danger)}@media(max-width:700px){.discord-destination-trigger{min-height:44px}.discord-destination-picker,.discord-destination-static{max-width:160px}}.app-select{position:relative;min-width:0}.app-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0;min-height:40px;padding:6px 9px;border:1px solid var(--border);border-radius:6px;background:var(--surface-muted);color:var(--text);font:inherit;font-size:13px}.app-select-trigger>.ui-icon{width:15px;height:15px}.app-select-option-label{display:inline-flex;align-items:center;gap:7px;min-width:0}.app-select-trigger .app-select-option-label>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-select-option-label>.ui-icon,.app-select-option-label>.role-glyph{flex:none;width:20px;height:20px}.app-select-menu{position:fixed;inset:16px auto auto 16px;margin:0;z-index:25;display:grid;gap:4px;width:min(280px,calc(100vw - 32px));max-height:min(320px,calc(100dvh - 32px));overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface-strong);color:var(--text);box-shadow:var(--shadow)}.app-select-menu::backdrop{background:transparent;pointer-events:none}.app-select-menu>button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:44px;padding:10px 12px;border:0;border-radius:5px;background:transparent;color:var(--text);font:inherit;font-size:14px;text-align:left}.app-select-menu .app-select-option-label>span{overflow-wrap:anywhere}.app-select-menu>button[aria-selected=true],.app-select-menu>button:hover:not(:disabled){background:var(--surface-muted)}.app-select-menu>button:disabled{color:var(--text-muted);cursor:not-allowed}.app-select-menu>button:disabled .app-select-option-label>span{text-decoration:none}.app-select-menu>button:focus-visible,.app-select-trigger:focus-visible{outline:2px solid var(--text-muted);outline-offset:-2px}.refined-app .preparation-player-row .app-select.inline-preference{padding:0;border:0;background:none}.refined-app .preparation-player-row .app-select-trigger{min-height:44px;height:100%;background:var(--surface-strong)}.toast-wrap[popover]{position:fixed;inset:auto 20px 20px auto;margin:0;padding:0;width:min(460px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);overflow:auto;border:0;background:transparent;color:var(--text);display:grid;gap:10px;pointer-events:none}.toast-wrap::backdrop{background:transparent;pointer-events:none}.toast{box-sizing:border-box;width:100%;max-width:none;padding:12px;gap:10px;border-radius:8px;background:var(--surface-strong);border:1px solid var(--border-strong);box-shadow:0 4px 18px #0002;pointer-events:auto;font-size:14px;line-height:1.5}.toast-mark{color:var(--accent);background:transparent;border-radius:0}.toast.is-error .toast-mark{color:var(--danger)}.toast.is-warning .toast-mark{color:#946516}:root[data-theme=dark] .toast.is-warning .toast-mark{color:#e8c174}.toast-message{flex:1;min-width:0;overflow-wrap:anywhere}.toast-action,.toast-close{flex:none;min-height:36px;display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--border);border-radius:6px;background:var(--surface-muted);color:var(--text);font:inherit;cursor:pointer}.toast-action{padding:5px 10px;font-weight:600}.toast-close{width:36px;padding:0;background:transparent;border-color:transparent;color:var(--text-muted)}.toast-close:hover{color:var(--text);background:var(--surface-muted)}.toast button:disabled{opacity:.55;cursor:wait}.toast button:focus-visible{outline:2px solid var(--text);outline-offset:2px}.dialog-layer{padding:0;margin:auto;border:0;width:min(840px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);overflow:visible;background:transparent;color:var(--text)}.dialog-layer::backdrop,.settings-dialog::backdrop{background:#080b1299}.dialog-layer .stats-content{width:100%;max-height:min(760px,calc(100dvh - 32px));border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.refined-app .settings-dialog{width:min(840px,calc(100% - 32px));max-height:min(760px,calc(100dvh - 32px))}.stats-header,.settings-dialog-header{min-height:64px;padding:12px 20px;box-sizing:border-box}.stats-header h2,.settings-dialog-header h2{margin:0;font-size:18px;font-weight:650;letter-spacing:0}.stats-actions,.settings-dialog-footer{min-height:68px;padding:12px 20px;box-sizing:border-box}.stats-close,.settings-dialog-header .toolbar-icon{width:40px;height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--text-muted)}.stats-close:hover,.settings-dialog-header .toolbar-icon:hover{color:var(--text);background:var(--surface-muted);border-color:var(--border)}.settings-panel h3,.discord-settings-content h3{font-size:16px;font-weight:650}.settings-panel p,.settings-panel label{line-height:1.6}.settings-panel .webhook-manager{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.settings-panel .discord-settings-content{padding:0;border:0;background:none}.settings-panel .discord-settings-page .flow-actions{margin-top:20px}.settings-panel .settings-info{padding:12px 0;border:0;background:none}.settings-panel .settings-note,.settings-panel .discord-local-note{font-size:13px;color:var(--text-muted)}.refined-app .toolbar-button,.refined-app .toolbar-icon,.refined-app .icon-action,.refined-app .remove-player,.refined-app .history-close{min-width:44px;min-height:44px;border-radius:6px}.compact-app .draw-screen-actions .btn.copy-results{width:44px;min-width:44px;padding-inline:0;flex:0 0 44px}.refined-app .compact-tabs button[aria-selected=true],.refined-app .source-switch button[aria-pressed=true],.refined-app .champion-position[aria-pressed=true],.champion-pool-tab[aria-selected=true],.settings-nav button[aria-selected=true]{color:var(--text);background:var(--surface-strong);border-color:var(--border-strong);box-shadow:none}.refined-app button:disabled,.app-select-menu button:disabled{cursor:not-allowed}.refined-app button:focus-visible,.dialog-layer button:focus-visible{outline:2px solid var(--text-muted);outline-offset:3px}@media(max-width:700px){.toast-wrap[popover]{inset:auto 12px 12px;width:auto;max-height:calc(100dvh - 24px)}.toast{gap:8px;padding:10px;font-size:13px}.toast-action{max-width:100px}.stats-header,.settings-dialog-header,.stats-actions,.settings-dialog-footer{padding-inline:14px}.dialog-layer .stats-content{max-height:calc(100dvh - 24px)}}@media(prefers-reduced-motion:reduce){.toast{animation:none}}.refined-app .settings-dialog{overflow:hidden}.settings-shell{max-height:min(758px,calc(100dvh - 34px))}.settings-dialog-header,.settings-dialog-footer{flex-shrink:0}.settings-layout{min-height:0;flex:1 1 auto}.settings-nav{flex-shrink:0}.refined-app .settings-panel h3{font-size:16px;font-weight:650}.refined-app .settings-panel .setting-section-heading h3{display:inline-flex;align-items:center;gap:8px;margin:0}.refined-app .settings-panel .setting-section-heading{margin-bottom:16px}.refined-app .settings-panel label{font-size:13px;font-weight:500}.refined-app .settings-panel input{min-height:44px;font-size:14px;border-radius:6px}.refined-app .settings-panel .discord-destination-list li{padding:12px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}.refined-app .settings-panel .discord-destination-list strong{font-size:14px;font-weight:600}.refined-app :is(.preparation-actions,.draw-screen-actions){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.preparation-actions>.action-summary,.draw-screen-actions>.draw-footer-status{grid-column:1}.preparation-actions>.btn,.draw-screen-actions>:is(.primary-draw,.copy-results){grid-column:2;grid-row:1;justify-self:center}.draw-screen-actions:has(.primary-draw)>.copy-results{grid-column:3;justify-self:start}.refined-app .compact-tabs button:hover:not(:disabled){color:var(--text);background:color-mix(in srgb,var(--surface-strong) 65%,var(--surface-muted));border-color:var(--border-strong)}.refined-app .compact-tabs button:is([aria-selected=true],[aria-pressed=true]):hover:not(:disabled){background:var(--surface-strong);border-color:var(--text-muted)}@media(max-width:700px){.refined-app :is(.preparation-actions,.draw-screen-actions){grid-template-columns:minmax(0,1fr) minmax(0,205px) minmax(0,1fr)}.preparation-actions>.action-summary,.draw-screen-actions>.draw-footer-status{grid-column:1 / -1;grid-row:1;justify-self:center;text-align:center}.preparation-actions>.btn,.draw-screen-actions>:is(.primary-draw,.copy-results){grid-row:2}.draw-screen-actions>.primary-draw{width:100%}}@media(max-width:420px){.refined-app :is(.preparation-actions,.draw-screen-actions){grid-template-columns:minmax(0,1fr) minmax(0,155px) minmax(0,1fr)}.refined-app .preparation-actions .finish-setup{min-width:0}}body:has(.role-setup,.draw-workspace):not(:has(dialog[open])) .toast-wrap[popover]{bottom:100px}.refined-app .solo-draw-workspace{height:100%}.solo-draw-controls,.solo-draw-discord{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.solo-draw-controls{justify-content:space-between;margin-bottom:12px}.draw-roster-controls{display:flex;align-items:center;gap:6px;color:var(--text-muted)}.refined-app .stats-history-actions{justify-content:flex-end;align-items:flex-end}.refined-app .solo-draw-controls .auto-apply-control .discord-sync-switch{gap:8px;min-width:0}.solo-draw-controls .discord-switch-caption{font-size:13px;font-weight:500}.card-random-role{color:var(--text-muted);font-size:12px}.solo-draw-discord .discord-sync-controls{display:flex;align-items:center;gap:8px}.solo-draw-discord .discord-destination-static{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.solo-draw-hint{color:var(--text-muted);font-size:13px}.refined-app .solo-draw-workspace .solo-remove-player{position:absolute;z-index:2;top:4px;right:4px;width:32px;min-width:32px;min-height:32px;padding:0}.solo-remove-player svg{width:15px;height:15px}.refined-app .draw-roster-controls .lol-refresh-button{width:44px;min-width:44px;min-height:44px;padding:0;color:var(--text-muted);background:transparent}.refined-app .draw-roster-controls .lol-refresh-button:hover:not(:disabled){color:var(--text);background:var(--surface-muted)}.lol-refresh-button>span{display:grid;place-items:center}@media(prefers-reduced-motion:no-preference){.lol-refresh-button>.is-spinning{animation:lol-refresh-spin .5s ease-out}}@keyframes lol-refresh-spin{to{transform:rotate(1turn)}}.draw-discord-menu{min-width:0;max-width:200px}.refined-app .solo-draw-workspace .solo-empty-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;min-height:278px;padding:22px 12px;border:1px dashed var(--border-strong);border-radius:8px;color:var(--text-muted);background:var(--surface-strong)}.refined-app .solo-draw-workspace .roster-card-grid>.solo-empty-card:last-child{grid-column:auto;width:100%;justify-self:stretch}.refined-app .solo-draw-workspace .solo-empty-card:has(.solo-add-trigger:hover:not(:disabled)){color:var(--text);border-color:var(--text-muted)}.solo-add-trigger{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--border-strong);border-radius:50%;color:inherit;background:transparent;cursor:pointer}.solo-add-trigger:disabled{cursor:default;opacity:.6}.solo-add-trigger svg{width:24px;height:24px}.solo-add-dialog{width:min(100%,560px);max-height:min(85vh,800px);overflow-y:auto;padding:24px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface);box-shadow:var(--shadow)}.solo-add-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.solo-add-dialog>header h2{margin:0}.solo-add-dialog .manual-add-form{flex-wrap:wrap}.solo-add-history{margin-top:16px}.solo-add-history>summary{cursor:pointer}@media(min-width:1440px){.refined-app .solo-draw-workspace .solo-empty-card{min-height:340px}}@media(max-width:900px){.draw-card-result>.card-preferred-role{grid-column:1;grid-row:1}.draw-card-result>.card-random-role{grid-column:3;grid-row:1}.refined-app .solo-draw-workspace .roster-player-card:has(.solo-remove-player){padding-right:42px}.refined-app .solo-draw-workspace .solo-empty-card{min-height:72px;flex-direction:row;border:0;border-top:1px dashed var(--border-strong);border-radius:0}}@media(max-width:700px){.solo-draw-workspace .draw-screen-actions>.solo-draw-discord{justify-self:start;text-align:start}}.draw-workspace{--own-result-border: #a17931;--own-result-light: #c79434}:root[data-theme=dark] .draw-workspace{--own-result-border: #c49b50;--own-result-light: #edc473}.draw-workspace .is-own-result:after,.draw-workspace .own-result-glow{position:absolute;inset:0;border-radius:inherit;pointer-events:none}.draw-workspace .is-own-result:after{content:"";box-shadow:inset 0 0 0 1px var(--own-result-border)}.draw-workspace .own-result-glow{opacity:0}@property --own-result-angle{syntax: "<angle>"; inherits: false; initial-value: 0turn;}@media(prefers-reduced-motion:no-preference){.draw-workspace .draw-card-result.is-revealing>.draw-secondary,.draw-workspace .draw-card-result.is-revealing>.table-role>span{animation:role-result-reveal .3s cubic-bezier(.2,.75,.25,1) var(--role-reveal-delay) both}.draw-workspace .draw-card-result.is-revealing>.table-role>.table-role-icon{animation-name:role-icon-reveal}.draw-workspace .own-result-glow{padding:3px;background:conic-gradient(from var(--own-result-angle),transparent 73%,var(--own-result-light) 96%,#fff2cc 99%,transparent);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:own-result-sweep .7s cubic-bezier(.5,0,.2,1) var(--role-reveal-delay) both,own-result-fade .7s linear var(--role-reveal-delay) both}}@keyframes role-result-reveal{0%{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes role-icon-reveal{0%{opacity:0;transform:translateY(12px) scale(.78)}64%{opacity:1;transform:translateY(-2px) scale(1.08)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes own-result-sweep{0%{--own-result-angle: 0turn}to{--own-result-angle: 1turn}}@keyframes own-result-fade{0%,to{opacity:0}12%,74%{opacity:1}}.roster-player-card>.sync-role-picker{position:absolute;inset:0}.sync-role-picker>.app-select-trigger{position:absolute;inset:0;z-index:1;height:100%;padding:0;border:0;border-radius:8px;background:transparent}.sync-role-picker>.app-select-trigger>span,.sync-role-picker>.app-select-trigger>svg{display:none}.sync-role-picker>.app-select-trigger:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--text-muted)}.sync-role-menu .role-glyph{width:18px;height:18px}
