:root{--theme-background-start:#081124;--theme-background-mid:#121f38;--theme-background-end:#1c2f4f;--theme-surface:#132746;--theme-surface-alt:#1d3a62;--theme-border:#4f7bb2;--theme-border-soft:#365a8b;--theme-text:#f4f8ff;--theme-text-muted:#bed2f0;--theme-accent:#6ad9ff;--theme-accent-contrast:#0f2340;--theme-called:#5dcf9b;--theme-called-bg:#133f31;--theme-free:#ffd17d;--theme-free-bg:#4f3820;--theme-error:#ff8d8d;--theme-error-bg:#4f2323;--theme-success:#9ef8c7;--theme-success-bg:#1d4a39;--theme-warning:#ffd27e;--theme-warning-bg:#4c3b1a;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}:root[data-theme-mode=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme-mode=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--theme-background-start);color:var(--theme-text)}.control{min-height:100%;color:var(--theme-text);background:radial-gradient(circle at 100% 0%, var(--theme-background-end) 0%, transparent 40%), radial-gradient(circle at 0% 0%, var(--theme-accent) 0%, transparent 44%), linear-gradient(165deg, var(--theme-background-start) 0%, var(--theme-background-mid) 100%);padding:20px}.control-header{max-width:1080px;margin:0 auto 14px}.control-badge{letter-spacing:.04em;text-transform:uppercase;background:var(--theme-accent);color:var(--theme-accent-contrast);border-radius:999px;padding:5px 10px;font-size:.8rem;display:inline-flex}.control-header h1{margin:10px 0 6px;font-size:clamp(1.8rem,4vw,2.4rem)}.control-subtitle{color:var(--theme-text-muted);margin:0}.control-header-actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.control-view-tabs{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.control-view-tab{border:1px solid var(--theme-border);background:var(--theme-surface-alt);color:var(--theme-text);border-radius:999px}.control-view-tab:hover:enabled{background:var(--theme-called-bg)}.control-view-tab.active{border-color:var(--theme-accent);background:var(--theme-accent);color:var(--theme-accent-contrast)}.control-note,.control-error,.control-success{border:1px solid var(--theme-border-soft);background:var(--theme-surface);border-radius:10px;max-width:1080px;margin:0 auto 10px;padding:10px 12px}.control-error{color:var(--theme-error);border-color:var(--theme-error);background:var(--theme-error-bg)}.control-success{color:var(--theme-success);border-color:var(--theme-success);background:var(--theme-success-bg)}.control-warning-banner{border:1px solid var(--theme-warning);max-width:1080px;color:var(--theme-warning);background:var(--theme-warning-bg);border-radius:10px;margin:0 auto 10px;padding:10px 12px}.control-warning{color:var(--theme-warning);margin:8px 0 0;font-size:.92rem}.control-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1080px;margin:0 auto;display:grid}.control-grid-single{grid-template-columns:1fr}.control-panel{border:1px solid var(--theme-border-soft);background:var(--theme-surface);border-radius:14px;padding:12px;box-shadow:0 18px 34px -26px #00000047}.control-access-blocked{border-color:var(--theme-warning)}.control-auth-gate{border-color:var(--theme-border)}.control-access-diagnostics{border-top:none;margin-top:0;padding-top:0}.control-panel h2{margin:0 0 8px;font-size:1.15rem}.control-section-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.control-section-header h2{margin:0}.control-panel p{color:var(--theme-text-muted);margin:6px 0}.control-helper-text{color:var(--theme-text-muted);margin:8px 0;font-size:.9rem}.control-summary-line{color:var(--theme-accent);margin:8px 0;font-size:.9rem;font-weight:600}.control-panel-wide{max-width:1080px;margin:12px auto 0}.control-form-row{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.control-form-column{gap:8px;display:grid}.control-actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.grace-window{color:var(--theme-success);margin:8px 0;font-size:.9rem;font-weight:600}.quick-call-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px;display:grid}.quick-call-button{border-color:var(--theme-border);background:var(--theme-surface-alt);color:var(--theme-text);text-align:left;font-weight:500}.quick-call-button:hover:enabled{background:var(--theme-called-bg)}.called-option-list{gap:6px;margin-top:10px;padding:0;list-style:none;display:grid}.called-option-item{border:1px solid var(--theme-border-soft);background:var(--theme-called-bg);border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;display:flex}.called-option-item span{overflow-wrap:anywhere;font-size:.9rem}label{color:var(--theme-text-muted);gap:6px;font-size:.9rem;display:grid}label.grow{flex:1;min-width:260px}input,select,button{font:inherit}input,select{border:1px solid var(--theme-border);background:var(--theme-surface-alt);color:var(--theme-text);border-radius:9px;padding:8px 10px}button{border:1px solid var(--theme-accent);background:var(--theme-accent);color:var(--theme-accent-contrast);cursor:pointer;border-radius:9px;padding:8px 12px;font-weight:600}button.secondary{border-color:var(--theme-border);background:var(--theme-surface-alt);color:var(--theme-text)}button.secondary:hover:enabled{background:var(--theme-called-bg)}button.danger{border-color:var(--theme-error);background:var(--theme-error-bg);color:var(--theme-error)}button.danger:hover:enabled{background:var(--theme-error);color:var(--theme-accent-contrast)}button:disabled{opacity:.65;cursor:not-allowed}button[data-loading=true]:disabled{cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,input[type=color]:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}.diagnostics-panel{margin-top:12px}.diagnostics-toggle{border-color:var(--theme-border);background:var(--theme-surface-alt);color:var(--theme-text)}.diagnostics-toggle:hover:enabled{background:var(--theme-called-bg)}.diagnostics-content{border-top:1px dashed var(--theme-border-soft);margin-top:10px;padding-top:10px}.theme-link-toggle{color:var(--theme-text);align-items:center;gap:8px;font-weight:600;display:inline-flex}.theme-toggle-row{flex-wrap:wrap;gap:8px;display:flex}.theme-compact-toggle{font-weight:500}.theme-link-toggle input{width:16px;height:16px;accent-color:var(--theme-accent);margin:0}.theme-link-hint{margin-top:-2px}.theme-config-section,.theme-preview-section,.theme-save-section{border:1px solid var(--theme-border-soft);background:var(--theme-surface-alt);border-radius:12px;gap:10px;padding:10px;display:grid}.theme-config-header{gap:4px;display:grid}.theme-config-header h3{color:var(--theme-text);margin:0;font-size:1rem}.theme-config-header p{color:var(--theme-text-muted);margin:0;font-size:.84rem}.theme-skin-library-notice{color:var(--theme-warning);margin:0}.theme-skin-draft-notice{color:var(--theme-success);margin:0}.theme-skin-library-actions{margin-top:0}.theme-selected-skin{border:1px solid var(--theme-border-soft);background:var(--theme-surface);border-radius:10px;padding:9px}.theme-selected-skin h4{color:var(--theme-text);margin:0;font-size:.95rem}.theme-selected-skin .control-helper-text{margin:6px 0 0}.theme-scope{border:1px solid var(--theme-border-soft);background:var(--theme-surface-alt);border-radius:12px;gap:10px;padding:10px;display:grid}.theme-scope-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.theme-scope-header-copy{gap:4px;min-width:0;display:grid}.theme-scope-header h3{color:var(--theme-text);margin:0;font-size:.98rem}.theme-scope-header p{color:var(--theme-text-muted);margin:0;font-size:.84rem}.theme-scope-collapse-toggle{flex:none}.theme-scope-content{gap:10px;display:grid}.theme-scope-content[hidden]{display:none}.theme-scope-locked-note{color:var(--theme-warning);margin:0}.theme-linked-summary{border:1px solid var(--theme-border-soft);background:var(--theme-surface);border-radius:10px;gap:6px;padding:9px;display:grid}.theme-linked-summary .control-helper-text{margin:0}.theme-category-block{gap:6px;display:grid}.theme-category-toggle{border:1px solid var(--theme-border-soft);background:var(--theme-surface);width:100%;color:var(--theme-text);text-align:left;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;display:flex}.theme-category-toggle:hover:enabled{background:var(--theme-called-bg)}.theme-category-toggle-label{letter-spacing:.04em;text-transform:uppercase;color:var(--theme-accent);font-size:.82rem}.theme-category-toggle-meta{color:var(--theme-text-muted);font-size:.75rem}.theme-category-content{display:grid}.theme-category-block h4{letter-spacing:.04em;text-transform:uppercase;color:var(--theme-accent);margin:0;font-size:.82rem}.theme-color-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.theme-color-field{border:1px solid var(--theme-border-soft);background:var(--theme-surface);border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;display:flex}.theme-color-field-copy{gap:3px;min-width:0;display:grid}.theme-color-field-copy strong{color:var(--theme-text);font-size:.86rem;line-height:1.2}.theme-color-field-copy small{color:var(--theme-text-muted);font-size:.74rem;line-height:1.25}.theme-color-field-controls{align-items:center;gap:8px;display:inline-flex}.theme-color-field-controls code{text-align:right;min-width:64px;color:var(--theme-text-muted);letter-spacing:.02em;font-size:.74rem;font-weight:600}.theme-color-field input[type=color]{border:1px solid var(--theme-border);cursor:pointer;border-radius:8px;width:48px;height:34px;padding:0}.theme-form.compact .theme-color-field-copy small,.theme-form.compact .theme-color-field-controls code{display:none}.theme-action-bar{z-index:4;border-top:1px solid var(--theme-border-soft);background:var(--theme-surface-alt);margin-top:10px;padding-top:8px;position:sticky;bottom:0}.theme-action-buttons{margin-top:0}.theme-preview-scope-toggle{flex-wrap:wrap;gap:8px;display:flex}.theme-preview-scope-button{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);border-radius:999px}.theme-preview-scope-button.active{border-color:var(--theme-accent);background:var(--theme-accent);color:var(--theme-accent-contrast)}.theme-preview-mode-label{margin:0}.theme-preview-source-badge{border:1px solid var(--theme-border-soft);background:var(--theme-surface);width:fit-content;color:var(--theme-text-muted);letter-spacing:.03em;border-radius:999px;margin:0;padding:2px 10px;font-size:.75rem;font-weight:700}.theme-preview-identical-note{margin:0}.theme-preview-surface{border:1px solid var(--theme-border);background:radial-gradient(circle at 100% 0%, var(--theme-background-end) 0%, transparent 42%), linear-gradient(165deg, var(--theme-background-start) 0%, var(--theme-background-mid) 100%);border-radius:12px;gap:10px;padding:12px;display:grid}.theme-preview-controller{border:1px solid var(--theme-border-soft);background:var(--theme-surface);border-radius:12px;gap:8px;padding:10px;display:grid}.theme-preview-chip-row{flex-wrap:wrap;gap:8px;display:flex}.theme-preview-chip{border:1px solid var(--theme-border-soft);letter-spacing:.02em;border-radius:999px;padding:2px 9px;font-size:.75rem;font-weight:700}.theme-preview-chip.success{border-color:var(--theme-success);background:var(--theme-success-bg);color:var(--theme-success)}.theme-preview-chip.warning{border-color:var(--theme-warning);background:var(--theme-warning-bg);color:var(--theme-warning)}.theme-preview-chip.error{border-color:var(--theme-error);background:var(--theme-error-bg);color:var(--theme-error)}.theme-preview-action-row{flex-wrap:wrap;gap:8px;display:flex}.theme-preview-action{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);opacity:.78;border-radius:9px;padding:7px 10px;font-weight:700}.theme-preview-action[aria-pressed=true]{opacity:1;border-color:var(--theme-accent);background:var(--theme-accent);color:var(--theme-accent-contrast);box-shadow:inset 0 0 0 2px var(--theme-accent-contrast)}.theme-preview-action.secondary{border-style:dashed}.theme-preview-action.secondary[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--theme-accent-contrast);border-style:solid}.theme-preview-action-help{margin:0}.theme-preview-action-current{color:var(--theme-accent);margin:0;font-weight:600}.theme-preview-controller-metrics{flex-wrap:wrap;gap:8px;display:flex}.theme-preview-metric{border:1px solid var(--theme-border-soft);background:var(--theme-surface-alt);color:var(--theme-text);border-radius:8px;gap:2px;min-width:82px;padding:6px 8px;display:grid}.theme-preview-metric strong{line-height:1}.theme-preview-metric small{color:var(--theme-text-muted);letter-spacing:.03em;text-transform:uppercase;font-size:.68rem}.theme-preview-card{border:1px solid var(--theme-border-soft);background:var(--theme-surface);border-radius:12px;gap:8px;padding:10px;display:grid}.theme-preview-card-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.theme-preview-card-header strong{color:var(--theme-text);font-size:.9rem}.theme-preview-card-header span{color:var(--theme-text-muted);letter-spacing:.04em;font-size:.74rem;font-weight:700}.theme-preview-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;display:grid}.theme-preview-cell{border:1px solid var(--theme-border-soft);background:var(--theme-surface-alt);min-height:52px;color:var(--theme-text);text-align:center;border-radius:8px;justify-content:center;align-items:center;padding:6px;display:flex}.theme-preview-cell span{overflow-wrap:anywhere;font-size:.7rem;font-weight:700;line-height:1.15}.theme-preview-cell.called{border-color:var(--theme-called);background:var(--theme-called-bg)}.theme-preview-cell.stamped{border-color:var(--theme-accent);background:var(--theme-surface);box-shadow:inset 0 0 0 1px var(--theme-accent)}.theme-preview-cell.free{border-color:var(--theme-free);background:var(--theme-free-bg)}.theme-preview-cell.winner{border-color:var(--theme-success);background:var(--theme-success-bg);box-shadow:inset 0 0 0 1px var(--theme-success)}.active-player-panel{align-content:start;gap:8px;display:grid}.active-player-panel .control-helper-text,.active-player-panel .control-summary-line{margin:0}.active-player-actions{flex-wrap:wrap;gap:8px;display:flex}.active-player-random-result{border:1px solid var(--theme-accent);background:var(--theme-surface);color:var(--theme-text);border-radius:10px;padding:8px 10px}.active-player-list{gap:6px;max-height:430px;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.active-player-item{border:1px solid var(--theme-border-soft);background:var(--theme-surface);border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:8px 9px;display:flex}.active-player-item.selected{border-color:var(--theme-accent);box-shadow:inset 0 0 0 1px var(--theme-accent)}.active-player-name{color:var(--theme-text);overflow-wrap:anywhere;font-size:.88rem}.active-player-badge{border:1px solid var(--theme-border-soft);background:var(--theme-surface-alt);color:var(--theme-text-muted);white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:.74rem;font-weight:600}.active-player-badge.winner{border-color:var(--theme-success);background:var(--theme-success-bg);color:var(--theme-success)}.option-list,.option-bulk-toolbar{gap:8px;margin-top:10px;display:grid}.option-bulk-actions{flex-wrap:wrap;gap:6px;display:flex}.option-chip-list{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.option-chip{border:1px solid var(--theme-border-soft);background:var(--theme-surface-alt);color:var(--theme-text);border-radius:999px;align-items:center;gap:8px;padding:6px 9px;font-size:.82rem;display:inline-flex}.option-chip.called{border-color:var(--theme-called);background:var(--theme-called-bg)}.option-chip em{color:var(--theme-text-muted);font-size:.74rem;font-style:normal}.option-item{border:1px solid var(--theme-border-soft);background:var(--theme-surface-alt);border-radius:10px;justify-content:flex-start;align-items:center;gap:10px;padding:9px;display:flex}.option-select{align-items:center;display:inline-flex}.option-select input{width:16px;height:16px;accent-color:var(--theme-accent);cursor:pointer}.option-item.enabled{border-color:var(--theme-border-soft);background:var(--theme-surface-alt)}.option-item.disabled{border-color:var(--theme-warning);background:var(--theme-warning-bg)}.option-main{flex:1;gap:4px;min-width:0;display:grid}.option-main strong{overflow-wrap:anywhere}.option-item.disabled .option-main strong{color:var(--theme-warning)}.option-state{border:1px solid var(--theme-border-soft);border-radius:999px;width:fit-content;padding:2px 8px;font-size:.78rem;font-weight:600}.option-state.enabled{color:var(--theme-success);border-color:var(--theme-success);background:var(--theme-success-bg)}.option-state.disabled{color:var(--theme-warning);border-color:var(--theme-warning);background:var(--theme-warning-bg)}.option-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}@media (width<=980px){.control{padding:12px}.control-grid{grid-template-columns:1fr}.control-view-tabs{flex-wrap:nowrap;padding-bottom:4px;overflow-x:auto}.control-view-tab{white-space:nowrap;flex:none}.theme-color-grid{grid-template-columns:1fr}.theme-color-field{flex-direction:column;align-items:flex-start}.theme-color-field-controls{justify-content:space-between;width:100%}.option-item{flex-direction:column;align-items:flex-start}.option-actions{justify-content:flex-start;width:100%}.theme-toggle-row{flex-direction:column;align-items:flex-start}.theme-scope-collapse-toggle,.theme-preview-controller-metrics{width:100%}.theme-preview-metric{flex:90px}.theme-preview-grid{gap:4px}.theme-preview-cell{min-height:46px;padding:5px}.theme-preview-cell span{font-size:.66rem}}
