#provider-configuration-page,#provider-games-page{padding-bottom:28px}
.provider-config-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.8fr);gap:18px;align-items:start}
.provider-config-card{overflow:hidden}
.provider-config-heading{display:flex;align-items:center;gap:13px;padding:20px 22px;border-bottom:1px solid var(--line,#e7eaf0)}
.provider-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#f5a523,#d86429);color:#fff;font-size:20px;font-weight:800;box-shadow:0 6px 16px #dc79262d}
.provider-config-heading>div{display:grid;gap:3px;flex:1}.provider-config-heading>div strong{font-size:15px}.provider-config-heading>div small{font-size:12px;color:var(--muted,#758096)}
.provider-state,.provider-live-badge,.provider-paused-badge{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:6px 10px;font-size:11px;font-weight:700;background:#f2f4f7;color:#697386;white-space:nowrap}
.provider-state.is-configured,.provider-live-badge{background:#eaf8f0;color:#188452}.provider-live-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#27a56a}
.provider-paused-badge{background:#fff4df;color:#9b6b17}
#provider-config-form{padding:21px 22px}
.provider-config-fields{display:grid;grid-template-columns:1fr;gap:18px}
.provider-config-fields>label{display:grid;gap:7px;font-size:12px;font-weight:650;color:var(--text,#283247)}
.provider-config-fields>label>small{font-weight:450;color:var(--muted,#758096);margin-top:-4px}
.provider-config-fields input{width:100%;min-width:0;height:43px;padding:10px 12px;border:1px solid var(--line,#dfe4ec);border-radius:9px;background:var(--surface,#fff);color:var(--text,#263247);font:inherit;font-weight:450;outline:none;transition:border-color .16s,box-shadow .16s}
.provider-config-fields input:focus{border-color:#5277e7;box-shadow:0 0 0 3px #5277e71c}
.provider-media-base-url-field{grid-column:1/-1}
.provider-secret-field{grid-column:1/-1}.provider-secret-input{display:flex;gap:8px}.provider-secret-input button{min-width:74px;border:1px solid var(--line,#dfe4ec);border-radius:9px;background:var(--surface,#fff);color:var(--text,#263247);font-weight:650}
#provider-secret-help{line-height:1.5}
.provider-config-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:21px;margin-top:20px;border-top:1px solid var(--line,#e7eaf0)}
.provider-config-actions .form-status{margin:0;min-height:20px;font-size:12px}.provider-config-actions .form-status[data-state=success]{color:#168351}
.provider-security-note{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:linear-gradient(140deg,var(--surface,#fff),var(--soft-surface,#f8faff))}
.provider-note-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#edf2ff;color:#4169d8}.provider-note-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.provider-security-note>strong{font-size:14px}.provider-security-note p{margin:0;color:var(--muted,#758096);font-size:12px;line-height:1.7}.provider-security-note code{font-size:11px;color:var(--text,#344054);background:#eef1f6;padding:2px 5px;border-radius:4px}
.provider-games-notice{min-height:1px;margin:0 0 12px;color:var(--muted,#758096);font-size:12px}.provider-games-notice:not(:empty){padding:10px 13px;border:1px solid var(--line,#e5e9f0);border-radius:9px;background:var(--surface,#fff)}
.provider-catalog-panel,.provider-list-panel{overflow:hidden;margin-bottom:18px}.provider-list-panel[hidden]{display:none}
.provider-catalog-intro{display:flex;align-items:center;gap:13px;padding:19px 22px;border-bottom:1px solid var(--line,#e7eaf0)}
.catalog-step{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:10px;background:#edf2ff;color:#4169d8;font-weight:800;font-size:11px;letter-spacing:.3px}
.provider-catalog-intro>div{flex:1;min-width:0}.provider-catalog-intro h2{font-size:15px;margin:0}.provider-catalog-intro p{font-size:12px;color:var(--muted,#758096);margin:4px 0 0}
.provider-count{padding:5px 9px;background:var(--soft-surface,#f4f6fa);color:var(--muted,#758096);border-radius:20px;font-size:11px;white-space:nowrap}
.provider-type-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 22px}
.provider-type-card{display:flex;align-items:center;gap:11px;min-width:0;text-align:left;padding:14px 13px;border:1px solid var(--line,#e5e9f0);border-radius:11px;background:var(--surface,#fff);color:var(--text,#263247);transition:transform .16s,border-color .16s,box-shadow .16s}
.provider-type-card:hover{transform:translateY(-1px);border-color:#b8c8f4;box-shadow:0 5px 16px #263e7610}.provider-type-card.is-selected{border-color:#5579e4;box-shadow:0 0 0 3px #5579e41c;background:var(--soft-surface,#f8faff)}
.provider-type-icon{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:10px;background:var(--soft-surface,#f1f4fa);color:#5a6e9a}.provider-type-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.provider-type-text{display:grid;gap:4px;min-width:0;flex:1}.provider-type-text strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.provider-type-text small{font-size:10px;color:var(--muted,#758096);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.provider-type-arrow{width:15px;height:15px;flex:none;fill:none;stroke:#9aa4b4;stroke-width:1.8}
.provider-back{border:0;background:transparent;color:#4969c8;font-size:12px;font-weight:650;white-space:nowrap}.provider-back:hover{text-decoration:underline}
.provider-list{padding:12px 18px 18px}.provider-item{border:1px solid var(--line,#e5e9f0);border-radius:11px;background:var(--surface,#fff);overflow:hidden;margin-top:9px}.provider-item:first-child{margin-top:0}.provider-item.is-open{border-color:#c9d4f1;box-shadow:0 5px 18px #273b6d0b}.provider-item-toggle{display:flex;align-items:center;width:100%;gap:12px;padding:12px 14px;text-align:left;border:0;background:transparent;color:var(--text,#263247)}
.provider-logo-wrap{position:relative;width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:11px;background:var(--soft-surface,#f0f3f8);overflow:hidden}.provider-logo-wrap img{max-width:100%;max-height:100%;object-fit:contain}.provider-logo-fallback{position:absolute;inset:0;display:grid;place-items:center;font-weight:800;color:#62729b;font-size:16px}.provider-logo-wrap img:not([hidden])~.provider-logo-fallback{display:none}
.provider-item-title{display:grid;gap:4px;min-width:0;flex:1}.provider-item-title strong{font-size:13px}.provider-item-title small{font-size:11px;color:var(--muted,#758096)}.provider-item-meta{display:flex;align-items:center;gap:10px}.provider-game-count{font-size:11px;color:var(--muted,#758096);min-width:66px;text-align:right}.provider-chevron{width:18px;height:18px;flex:none;fill:none;stroke:#758096;stroke-width:1.8;transition:transform .18s}.provider-item.is-open .provider-chevron{transform:rotate(180deg)}
.provider-games-wrap{padding:14px;border-top:1px solid var(--line,#e9edf3);background:var(--soft-surface,#fafbfe)}.provider-games-wrap[hidden]{display:none}.provider-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.provider-game-card{overflow:hidden;border:1px solid var(--line,#e5e9f0);border-radius:10px;background:var(--surface,#fff);min-width:0}.provider-game-image{position:relative;height:132px;display:grid;place-items:center;background:var(--soft-surface,#f0f3f8);overflow:hidden}.provider-game-image img{width:100%;height:100%;object-fit:cover}.provider-game-fallback{position:absolute;inset:0;display:grid;place-items:center;color:#97a3b8}.provider-game-fallback svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.4}.provider-game-image img:not([hidden])~.provider-game-fallback{display:none}
.provider-game-copy{display:grid;gap:5px;padding:10px 11px}.provider-game-copy strong{font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.provider-game-copy small{font-size:10px;color:var(--muted,#758096)}
.provider-loading,.provider-empty{display:flex;align-items:center;justify-content:center;gap:10px;min-height:70px;padding:18px;color:var(--muted,#758096);font-size:12px;text-align:center}.provider-spinner{width:16px;height:16px;border:2px solid #dce3f2;border-top-color:#5277e7;border-radius:50%;animation:provider-spin .8s linear infinite}@keyframes provider-spin{to{transform:rotate(360deg)}}
body.dark #provider-games-page .provider-catalog-panel,body.dark #provider-games-page .provider-list-panel{background:#262626!important;border-color:#414141!important;color:#ececec!important}body.dark #provider-games-page .provider-catalog-intro{border-color:#414141!important}body.dark #provider-games-page .provider-catalog-intro h2,body.dark #provider-games-page .provider-type-card,body.dark #provider-games-page .provider-item-toggle,body.dark #provider-games-page .provider-item-title strong{color:#ececec!important}body.dark #provider-games-page .provider-catalog-intro p,body.dark #provider-games-page .provider-count,body.dark #provider-games-page .provider-type-text small,body.dark #provider-games-page .provider-item-title small,body.dark #provider-games-page .provider-game-count,body.dark #provider-games-page .provider-game-copy small,body.dark #provider-games-page .provider-loading,body.dark #provider-games-page .provider-empty{color:#b8c0cc!important}body.dark #provider-games-page .provider-count,body.dark #provider-games-page .provider-type-icon,body.dark #provider-games-page .provider-logo-wrap{background:#30343b!important;color:#c4cddd!important}body.dark #provider-games-page .provider-type-card,body.dark #provider-games-page .provider-item,body.dark #provider-games-page .provider-game-card{background:#2b2b2b!important;border-color:#454b55!important}body.dark #provider-games-page .provider-type-card:hover,body.dark #provider-games-page .provider-item.is-open{border-color:#6578ad!important}body.dark #provider-games-page .provider-type-card.is-selected{background:#202b3e!important;border-color:#5579e4!important}body.dark #provider-games-page .provider-type-arrow,body.dark #provider-games-page .provider-chevron{stroke:#aeb8c8!important}body.dark #provider-games-page .provider-games-wrap{background:#22252a!important;border-color:#414141!important}body.dark #provider-games-page .provider-game-image{background:#30343b!important}body.dark #provider-games-page .provider-game-copy{background:#2b2b2b!important}body.dark #provider-games-page .provider-game-copy strong{color:#f1f3f5!important}body.dark #provider-games-page .provider-game-fallback{color:#aeb8c8!important}body.dark .provider-config-fields>label,body.dark .provider-game-copy strong{color:#e7edf7}body.dark .provider-security-note code{background:#303a4a;color:#e7edf7}body.dark .provider-state{background:#303a4a;color:#bdc7d6}body.dark .provider-state.is-configured,body.dark .provider-live-badge{background:#173b31;color:#82dbb1}body.dark .provider-paused-badge{background:#40351f;color:#f0c875}body.dark .provider-note-icon,body.dark .catalog-step{background:#273654;color:#9fb6ff}body.dark .provider-type-card.is-selected{background:#202b3e}
@media(max-width:980px){.provider-config-layout{grid-template-columns:1fr}.provider-security-note{flex-direction:row;align-items:center;flex-wrap:wrap}.provider-security-note p{flex-basis:100%;padding-left:50px}.provider-type-list{grid-template-columns:repeat(2,minmax(0,1fr))}.provider-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.provider-media-base-url-field{grid-column:auto}#provider-configuration-page,#provider-games-page{padding-bottom:18px}.provider-config-heading{padding:16px}.provider-config-heading>div strong{font-size:14px}.provider-state{font-size:10px;padding:5px 8px}.provider-config-fields{grid-template-columns:1fr;gap:15px}.provider-secret-field{grid-column:auto}#provider-config-form{padding:16px}.provider-config-actions{align-items:flex-start;flex-direction:column}.provider-config-actions button{width:100%}.provider-catalog-intro{padding:15px;gap:10px}.provider-catalog-intro h2{font-size:14px}.provider-type-list{grid-template-columns:1fr;padding:13px}.provider-type-card{padding:13px}.provider-list{padding:10px}.provider-item-toggle{gap:9px;padding:10px}.provider-logo-wrap{width:36px;height:36px}.provider-item-title strong{font-size:12px}.provider-item-title small{font-size:10px}.provider-item-meta{gap:5px}.provider-live-badge,.provider-paused-badge{padding:5px 7px;font-size:9px}.provider-game-count{min-width:45px;font-size:10px}.provider-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.provider-game-image{height:115px}.provider-games-wrap{padding:10px}.provider-back{font-size:11px;padding:6px 0}}
@media(prefers-reduced-motion:reduce){.provider-type-card,.provider-chevron{transition:none}.provider-spinner{animation-duration:1.5s}}

.provider-games-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:12px 0 16px}
.provider-games-toolbar label{display:grid;gap:6px;width:min(360px,100%);font-size:12px;font-weight:600;color:var(--text,#25354d)}
.provider-games-toolbar input,.game-launch-dialog select{width:100%;padding:10px 12px;border:1px solid var(--line,#dfe4ec);border-radius:8px;background:var(--surface,#fff);color:var(--text,#25354d)}
.provider-games-toolbar small{color:var(--muted,#758096);font-size:11px}
.provider-game-provider{color:var(--text,#42556f)!important;font-weight:600}
.provider-launch-button{display:block;width:calc(100% - 20px);margin:0 10px 10px;padding:9px 10px;border:0;border-radius:7px;background:#395cf6;color:white;font-weight:700;font-size:11px}
.provider-launch-button:disabled{opacity:.5;cursor:not-allowed}
.provider-games-pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px}
.provider-games-pager span{font-size:12px;color:var(--muted,#758096)}
.game-launch-dialog{width:min(480px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line,#e4e8ef);border-radius:14px;background:var(--surface,#fff);color:var(--text,#25354d);padding:0;box-shadow:0 24px 80px #0c1b382e}
.game-launch-dialog::backdrop{background:#10182770;backdrop-filter:blur(2px)}
.game-launch-dialog form{display:grid;gap:14px;padding:20px}
.game-launch-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line,#e7eaf0);padding-bottom:14px}
.game-launch-heading h2{margin:0 0 4px;font-size:18px}
.game-launch-heading p{margin:0}
.game-launch-dialog form>label{display:grid;gap:6px;font-size:12px;font-weight:600}
.game-launch-dialog select:disabled{opacity:.65}
.game-launch-actions{display:flex;justify-content:flex-end;gap:9px}
.game-launch-dialog .form-status{margin:0;min-height:18px;font-size:12px}
.game-launch-dialog #game-launch-open-link{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;padding:11px;border-radius:8px}
body.dark .provider-games-toolbar label,body.dark .provider-game-provider{color:#e7edf7!important}
body.dark .provider-games-toolbar input,body.dark .game-launch-dialog select{background:#202b3d;border-color:#39465b;color:#e7edf7}
body.dark .game-launch-dialog{background:#202b3d;color:#e7edf7;border-color:#39465b}
body.dark .game-launch-heading{border-color:#39465b}
@media(max-width:640px){.provider-games-toolbar{align-items:stretch;flex-direction:column;gap:9px}.provider-games-toolbar label{width:100%}.provider-games-pager{gap:9px;padding:13px}.game-launch-dialog form{padding:16px}.game-launch-actions{display:grid;grid-template-columns:1fr 1fr}}


.provider-save-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px;padding:14px;border:1px solid var(--line,#e7eaf0);border-radius:12px;background:var(--surface-soft,#f7f8fb)}
.provider-save-status>div{display:grid;gap:5px;min-width:0}.provider-save-status>div>span{font-size:11px;color:var(--muted,#758096)}.provider-save-status>div>strong{font-size:13px;line-height:1.35;color:var(--text,#283247);overflow-wrap:anywhere}
.provider-save-status>p{grid-column:1/-1;margin:0;padding-top:10px;border-top:1px solid var(--line,#e7eaf0);font-size:12px;line-height:1.55;color:var(--muted,#758096)}
.provider-save-status[data-state=saved]{border-color:#b9e5cf;background:var(--success-soft,#effaf4)}.provider-save-status[data-state=saved]>div:first-child strong{color:#168351}
.provider-save-status[data-state=unsaved],.provider-state.is-dirty{border-color:#f0d28f;background:var(--warning-soft,#fff8e8);color:#8b6415}
.provider-save-status[data-state=unavailable]{border-color:#f2c1c1;background:var(--danger-soft,#fff3f3)}.provider-save-status[data-state=unavailable]>div:first-child strong{color:#a83232}
.provider-save-status[data-state=saving],.provider-save-status[data-state=checking]{opacity:.82}
@media(max-width:640px){.provider-save-status{grid-template-columns:1fr;gap:10px}.provider-save-status>p{grid-column:auto}}


.player-game-launch-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:14px 18px;border:1px solid #c8d7ff;border-radius:12px;background:#eff4ff;color:#25314a}.player-game-launch-context>div{display:grid;gap:4px}.player-game-launch-context small{color:#68748a}.player-game-launch-context button{flex:none}@media(max-width:600px){.player-game-launch-context{align-items:flex-start;flex-direction:column}}


/* Provider configuration page refresh */
.provider-page-heading{align-items:center;gap:16px;margin-bottom:18px}
.provider-title-line{display:flex;align-items:center;gap:14px}
.provider-title-line h1{margin:0}
.provider-title-line p{margin:5px 0 0}
.provider-page-mark{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#eef3ff,#e5ecff);color:#385edc}
.provider-page-mark svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.provider-count-tag{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line,#e5e9f0);border-radius:999px;background:var(--surface,#fff);color:var(--text,#29364b);font-size:12px;font-weight:650;white-space:nowrap}
.provider-count-dot{width:8px;height:8px;border-radius:50%;background:#20a46b;box-shadow:0 0 0 3px #20a46b1c}
.provider-directory{padding:18px 20px;margin-bottom:18px}
.provider-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.provider-directory-heading>div{display:grid;gap:4px}
.provider-directory-heading strong{font-size:14px;color:var(--text,#263247)}
.provider-directory-heading small,.provider-directory-caption{font-size:11px;color:var(--muted,#758096)}
.provider-directory-caption{padding:6px 9px;border-radius:7px;background:var(--subtle,#f4f6fa);font-weight:600}
.provider-tabs{display:flex;align-items:center;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line,#e7eaf0)}
.provider-tab{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #dce4ff;border-radius:10px;background:#f3f6ff;color:#2d477f;font:inherit;font-size:12px;font-weight:700}
.provider-tab-mark{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:linear-gradient(145deg,#f5a523,#d86429);color:#fff;font-size:12px;font-weight:800}
.provider-tab small{padding:3px 6px;border-radius:5px;background:#e5ebff;color:#536aa9;font-size:9px;letter-spacing:.04em}
.provider-tabs-note{margin:0;color:var(--muted,#758096);font-size:11px}
.provider-config-layout{grid-template-columns:minmax(0,1.65fr) minmax(250px,.8fr)}
.provider-config-card{padding:0;border-radius:14px}
.provider-config-card>summary{list-style:none;cursor:pointer;user-select:none}
.provider-config-card>summary::-webkit-details-marker{display:none}
.provider-config-card>summary:focus-visible{outline:3px solid #526fff55;outline-offset:-3px}
.provider-config-heading{min-height:76px;padding:16px 20px;border-bottom:0}
.provider-config-card[open]>.provider-config-heading{border-bottom:1px solid var(--line,#e7eaf0)}
.provider-collapse-icon{width:30px;height:30px;display:grid;place-items:center;margin-left:2px;border:1px solid var(--line,#e5e9f0);border-radius:9px;color:var(--muted,#758096);transition:transform .18s ease,background .18s ease}
.provider-collapse-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.provider-config-card[open] .provider-collapse-icon{transform:rotate(180deg);background:var(--subtle,#f5f6f9)}
.provider-config-card #provider-config-form{padding:20px}
.provider-security-note{border-radius:14px}
@media(max-width:760px){
 .provider-page-heading{align-items:flex-start;flex-direction:column}
 .provider-count-tag{margin-left:60px}
 .provider-directory{padding:15px}
 .provider-directory-caption{display:none}
 .provider-tabs{align-items:flex-start;flex-direction:column}
 .provider-config-layout{grid-template-columns:1fr}
 .provider-config-heading{gap:10px;padding:14px}
 .provider-config-heading>div strong{font-size:13px}
 .provider-config-heading>div small{font-size:10px}
 .provider-state{max-width:112px;overflow:hidden;text-overflow:ellipsis}
 .provider-collapse-icon{width:28px;height:28px;flex:0 0 28px}
 .provider-config-card #provider-config-form{padding:15px}
}
@media(prefers-reduced-motion:reduce){.provider-collapse-icon{transition:none}}


/* Cached catalogue management */
.provider-cache-status{margin:0 0 14px;padding:10px 13px;border:1px solid var(--line,#e5e9f0);border-radius:9px;background:var(--surface,#fff);color:var(--muted,#758096);font-size:11px}
.provider-type-entry{display:flex;align-items:stretch;gap:8px;min-width:0}
.provider-type-entry .provider-type-card{flex:1;min-width:0;text-align:left}
.catalogue-edit-button{flex:0 0 auto;padding:7px 10px;border:1px solid var(--line,#dfe4ec);border-radius:8px;background:var(--surface,#fff);color:var(--text,#344156);font:inherit;font-size:11px;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s}
.catalogue-edit-button:hover{border-color:#b8c7fb;background:#f4f7ff}
.provider-row-tools{display:flex;justify-content:flex-end;padding:0 12px 10px}
.provider-row-tools .catalogue-edit-button{padding:5px 9px;font-size:10px}
.catalogue-game-tools{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:0 10px 10px;color:var(--muted,#758096);font-size:10px}
.catalogue-game-tools .catalogue-edit-button{font-size:10px;padding:5px 8px}
.provider-game-card.is-disabled{opacity:.68}
.provider-game-card.is-disabled .provider-launch-button{background:#e8ebf0;color:#7c8491;cursor:not-allowed}
.catalogue-source-name{display:block;color:var(--muted,#7b8799)!important;font-size:10px!important;font-weight:450!important}
.provider-type-card .catalogue-source-name{margin-top:2px}
.catalogue-editor-dialog{width:min(480px,calc(100% - 28px));padding:0;border:1px solid var(--line,#e4e8ef);border-radius:16px;background:var(--surface,#fff);color:var(--text,#263247);box-shadow:0 24px 80px #1b263b35}
.catalogue-editor-dialog::backdrop{background:#11182770;backdrop-filter:blur(3px)}
.catalogue-editor-dialog form{display:grid}
.catalogue-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 22px;border-bottom:1px solid var(--line,#e7eaf0)}
.catalogue-editor-heading h2{margin:0 0 5px;font-size:18px}
.catalogue-editor-heading p{margin:0;color:var(--muted,#758096);font-size:12px}
.catalogue-editor-body{display:grid;gap:18px;padding:20px 22px}
.catalogue-editor-body>label:first-child{display:grid;gap:7px;font-size:12px;font-weight:650}
.catalogue-editor-body input[name=custom_name]{width:100%;height:42px;padding:10px 12px;border:1px solid var(--line,#dfe4ec);border-radius:9px;background:var(--surface,#fff);color:var(--text,#263247);font:inherit}
.catalogue-enabled-toggle{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid var(--line,#e6eaf0);border-radius:10px;cursor:pointer}
.catalogue-enabled-toggle[hidden]{display:none}
.catalogue-enabled-toggle>input{width:17px;height:17px;accent-color:#3b63e6}
.catalogue-enabled-toggle>span{display:grid;gap:4px}
.catalogue-enabled-toggle strong{font-size:12px}
.catalogue-enabled-toggle small{color:var(--muted,#758096);font-size:11px;font-weight:450}
.catalogue-editor-dialog footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid var(--line,#e7eaf0)}
.provider-cache-status:empty{display:none}
body.dark .provider-cache-status,body.dark .catalogue-edit-button,body.dark .catalogue-editor-dialog{background:#202b3d;color:#e7edf7;border-color:#39465b}
body.dark .catalogue-editor-heading,body.dark .catalogue-editor-dialog footer{border-color:#39465b}
body.dark .catalogue-editor-body input[name=custom_name]{background:#182233;color:#e7edf7;border-color:#39465b}
body.dark .catalogue-edit-button:hover{background:#2b3951}
body.dark .catalogue-enabled-toggle{border-color:#39465b}
@media(max-width:640px){
 .provider-type-entry{gap:6px}
 .provider-type-entry .provider-type-card{padding:11px}
 .provider-type-entry>.catalogue-edit-button{padding:6px 8px}
 .provider-row-tools{padding:0 9px 8px}
 .catalogue-editor-heading,.catalogue-editor-body{padding:16px}
 .catalogue-editor-dialog footer{padding:12px 16px}
}

.provider-sync-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:12px 20px;align-items:center;margin:4px 0 20px;padding:16px 18px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--surface-soft,#f8fafc)}.provider-sync-settings h3{margin:0 0 5px;font-size:15px;color:var(--text,#243247)}.provider-sync-settings p{margin:0;color:var(--muted,#718096);font-size:13px;line-height:1.5}.provider-sync-settings label{display:grid;gap:6px;color:var(--text,#354052);font-size:13px;font-weight:600}.provider-sync-settings input{min-height:42px;padding:8px 12px;border:1px solid var(--line,#d8dee8);border-radius:9px;background:var(--surface,#fff);color:inherit;font:inherit}.provider-sync-settings .provider-sync-status,.provider-sync-settings>small{grid-column:1/-1}.provider-sync-settings .provider-sync-status{color:var(--text,#46556b);font-size:12px}.provider-sync-settings>small{color:var(--muted,#718096);font-size:11px}@media(max-width:700px){.provider-sync-settings{grid-template-columns:1fr}.provider-sync-settings label{max-width:260px}}


/* Operator directory and editable connection names */
.provider-directory{padding:20px 22px}.provider-operator-list{margin-top:16px;padding-top:14px;border-top:1px solid var(--line,#e7eaf0)}.provider-operator-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 12px;border:1px solid var(--line,#e4e9f0);border-radius:12px;background:var(--surface,#fff)}.provider-operator-row .provider-tab-mark{width:38px;height:38px;flex:0 0 38px;border-radius:11px;font-size:16px}.provider-operator-name{display:grid;gap:4px;min-width:0;flex:1}.provider-operator-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text,#263247);font-size:13px}.provider-operator-name small{color:var(--muted,#758096);font-size:11px}.provider-operator-row code{padding:6px 8px;border:1px solid var(--line,#e6eaf0);border-radius:7px;background:var(--surface-soft,#f6f8fb);color:var(--muted,#66748b);font-size:10px;font-weight:700;letter-spacing:.04em}.provider-operator-status{display:flex;align-items:center;gap:7px;padding:7px 9px;border-radius:999px;background:#effaf4;color:#248058;font-size:10px;font-weight:650;white-space:nowrap}.provider-operator-status i{width:7px;height:7px;border-radius:50%;background:#29a56e}.provider-operator-list .provider-tabs-note{margin-top:12px;line-height:1.5}.provider-config-fields .provider-display-name-field{grid-column:1/-1}.provider-display-name-field small{color:var(--muted,#758096);font-size:11px;font-weight:400;line-height:1.45}.provider-config-heading>div{min-width:0}.provider-config-heading>div strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:640px){.provider-directory{padding:15px}.provider-operator-row{flex-wrap:wrap;gap:9px}.provider-operator-name{min-width:calc(100% - 56px);flex:1}.provider-operator-row code{margin-left:47px}.provider-operator-status{margin-left:auto}.provider-config-fields .provider-display-name-field{grid-column:auto}}
body.dark .provider-operator-row{background:#202b3d;border-color:#39465b}body.dark .provider-operator-row code{background:#182233;border-color:#39465b;color:#bdc7d6}body.dark .provider-operator-name strong{color:#e7edf7}body.dark .provider-operator-status{background:#173b31;color:#82dbb1}


/* Provider configuration page: clearer hierarchy and compact responsive controls */
#provider-configuration-page .provider-page-heading{padding:4px 0 18px;margin-bottom:16px;border-bottom:1px solid var(--line,#e6eaf0)}
#provider-configuration-page .provider-title-line{gap:13px}
#provider-configuration-page .provider-page-mark{box-shadow:0 5px 14px #385edc18}
#provider-configuration-page .provider-directory{padding:18px 20px;border-radius:15px;box-shadow:0 2px 10px #15223805}
#provider-configuration-page .provider-directory-heading strong{font-size:15px}
#provider-configuration-page .provider-operator-list{margin-top:14px;padding-top:13px}
#provider-configuration-page .provider-operator-row{min-height:68px;padding:12px 14px;border-radius:13px}
#provider-configuration-page .provider-config-layout{grid-template-columns:minmax(0,1.65fr) minmax(235px,.72fr);gap:16px}
#provider-configuration-page .provider-config-card{border-radius:15px;box-shadow:0 2px 12px #15223806}
#provider-configuration-page .provider-config-heading{min-height:76px;padding:17px 20px}
#provider-configuration-page .provider-config-heading:hover{background:var(--surface-soft,#f8faff)}
#provider-configuration-page #provider-config-form{padding:20px}
#provider-configuration-page .provider-config-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#provider-configuration-page .provider-config-fields .provider-secret-field{grid-column:1/-1}
#provider-configuration-page .provider-config-fields>label{gap:7px}
#provider-configuration-page .provider-config-fields input{height:46px;border-radius:10px}
#provider-configuration-page .provider-secret-input button{min-width:82px;border-radius:10px}
#provider-configuration-page .provider-sync-settings{margin-top:18px;padding:17px 18px;border-radius:13px}
#provider-configuration-page .provider-save-status{margin-top:16px;padding:13px 15px;border-radius:13px}
#provider-configuration-page .provider-config-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding-top:17px;margin-top:17px}
#provider-configuration-page .provider-config-actions .form-status{min-width:0}
#provider-configuration-page .provider-config-actions button{min-height:44px;padding:0 17px;border-radius:10px;white-space:nowrap}
#provider-configuration-page .provider-security-note{position:sticky;top:20px;border-radius:15px;box-shadow:0 2px 12px #15223805}
@media(max-width:1050px){
 #provider-configuration-page .provider-config-layout{grid-template-columns:minmax(0,1fr)}
 #provider-configuration-page .provider-security-note{position:static;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;column-gap:12px}
 #provider-configuration-page .provider-security-note>strong,
 #provider-configuration-page .provider-security-note p{grid-column:2}
 #provider-configuration-page .provider-security-note .provider-note-icon{grid-row:1/3}
}
@media(max-width:700px){
 #provider-configuration-page .provider-page-heading{align-items:flex-start;flex-direction:column;gap:12px;padding-bottom:15px}
 #provider-configuration-page .provider-title-line{align-items:flex-start}
 #provider-configuration-page .provider-page-mark{width:40px;height:40px;flex-basis:40px;border-radius:12px}
 #provider-configuration-page .provider-count-tag{margin-left:53px}
 #provider-configuration-page .provider-directory{padding:15px}
 #provider-configuration-page .provider-directory-heading{align-items:flex-start}
 #provider-configuration-page .provider-directory-caption{white-space:nowrap}
 #provider-configuration-page .provider-operator-row{gap:9px}
 #provider-configuration-page .provider-config-heading{padding:14px;gap:10px}
 #provider-configuration-page .provider-mark{width:38px;height:38px;flex-basis:38px}
 #provider-configuration-page .provider-state{max-width:125px;overflow:hidden;text-overflow:ellipsis}
 #provider-configuration-page #provider-config-form{padding:14px}
 #provider-configuration-page .provider-config-fields{grid-template-columns:minmax(0,1fr);gap:14px}
 #provider-configuration-page .provider-config-fields .provider-secret-field{grid-column:auto}
 #provider-configuration-page .provider-sync-settings{padding:14px}
 #provider-configuration-page .provider-save-status{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:11px}
 #provider-configuration-page .provider-save-status>div>span{font-size:10px}
 #provider-configuration-page .provider-save-status>div>strong{font-size:11px}
 #provider-configuration-page .provider-save-status>p{font-size:11px}
 #provider-configuration-page .provider-config-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #provider-configuration-page .provider-config-actions .form-status{grid-column:1/-1}
 #provider-configuration-page .provider-config-actions button{width:100%;padding:0 8px;font-size:12px}
 #provider-configuration-page .provider-security-note{padding:15px}
}

/* Keep operator name and base URL aligned as equal-width fields on desktop. */
@media(min-width:701px){
 #provider-configuration-page .provider-config-fields .provider-display-name-field{grid-column:auto}
}

/* Provider settings: one contained section with one expandable card per operator. */
#provider-configuration-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px clamp(18px, 2.5vw, 36px) 40px;
}
#provider-configuration-page .provider-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line, #e6eaf0);
  border-radius: 0;
  background: transparent;
}
#provider-configuration-page .provider-config-shell {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line, #e6eaf0);
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 3px 14px #15223808;
}
#provider-configuration-page .provider-config-shell-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, #e6eaf0);
}
#provider-configuration-page .provider-config-shell-heading > div {
  display: grid;
  gap: 4px;
}
#provider-configuration-page .provider-config-shell-heading strong {
  color: var(--text, #263247);
  font-size: 15px;
}
#provider-configuration-page .provider-config-shell-heading small {
  color: var(--muted, #758096);
  font-size: 12px;
  line-height: 1.45;
}
#provider-configuration-page .provider-operator-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
}
#provider-configuration-page .provider-config-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line, #e6eaf0);
  border-radius: 13px;
  background: var(--surface, #fff);
  box-shadow: none;
}
#provider-configuration-page .provider-config-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
}
#provider-configuration-page .provider-config-heading::-webkit-details-marker {
  display: none;
}
#provider-configuration-page .provider-config-heading:hover {
  background: var(--surface-soft, #f7f9fc);
}
#provider-configuration-page .provider-config-heading > div {
  display: grid;
  gap: 4px;
}
#provider-configuration-page .provider-config-heading > div strong {
  color: var(--text, #263247);
  font-size: 14px;
}
#provider-configuration-page .provider-config-heading > div small {
  color: var(--muted, #758096);
  font-size: 11px;
}
#provider-configuration-page .provider-config-heading .provider-collapse-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line, #e6eaf0);
  border-radius: 8px;
}
#provider-configuration-page .provider-config-heading .provider-collapse-icon svg {
  width: 14px;
  height: 14px;
  transition: transform .18s ease;
}
#provider-configuration-page .provider-config-card[open] .provider-collapse-icon svg {
  transform: rotate(180deg);
}
#provider-configuration-page .provider-config-card form {
  padding: 20px;
  border-top: 1px solid var(--line, #e6eaf0);
}
#provider-configuration-page .provider-security-note {
  position: static;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  border: 0;
  border-top: 1px solid var(--line, #e6eaf0);
  border-radius: 0;
  background: var(--surface-soft, #f7f9fc);
  box-shadow: none;
}
#provider-configuration-page .provider-security-note .provider-note-icon {
  flex: 0 0 auto;
}
#provider-configuration-page .provider-security-note strong {
  display: block;
  margin: 1px 0 4px;
  color: var(--text, #263247);
  font-size: 13px;
}
#provider-configuration-page .provider-security-note p {
  margin: 0;
  color: var(--muted, #758096);
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 700px) {
  #provider-configuration-page {
    padding: 16px 12px 28px;
  }
  #provider-configuration-page .provider-page-heading {
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  #provider-configuration-page .provider-config-shell-heading {
    align-items: flex-start;
    padding: 14px;
  }
  #provider-configuration-page .provider-config-shell-heading small {
    max-width: 38ch;
  }
  #provider-configuration-page .provider-operator-list {
    padding: 12px;
  }
  #provider-configuration-page .provider-config-heading {
    grid-template-columns: 36px minmax(0, 1fr) auto 22px;
    gap: 8px;
    min-height: 64px;
    padding: 11px;
  }
  #provider-configuration-page .provider-config-heading .provider-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  #provider-configuration-page .provider-config-heading > div strong {
    font-size: 13px;
  }
  #provider-configuration-page .provider-state {
    max-width: 108px;
    padding: 6px 8px;
    font-size: 10px;
  }
  #provider-configuration-page .provider-config-card form {
    padding: 14px;
  }
  #provider-configuration-page .provider-security-note {
    padding: 14px;
  }
}
body.dark #provider-configuration-page .provider-config-shell,
body.dark #provider-configuration-page .provider-config-card {
  background: var(--surface, #1d293b);
  border-color: var(--line, #39465b);
}
body.dark #provider-configuration-page .provider-config-shell-heading {
  border-color: var(--line, #39465b);
}
body.dark #provider-configuration-page .provider-security-note {
  background: var(--surface-soft, #202b3d);
  border-color: var(--line, #39465b);
}

/* Category icon editor and feedback polish. */
.catalogue-icon-field{display:grid;gap:7px;font-size:12px;font-weight:650;color:var(--text,#283247)}
.catalogue-icon-field[hidden]{display:none}
.catalogue-icon-control{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center}
.catalogue-icon-preview{width:42px;height:42px;display:grid;place-items:center;border:1px solid #dce5ff;border-radius:12px;background:#eff3ff;color:#4169d8}
.catalogue-icon-preview svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.catalogue-icon-field select{width:100%;height:42px;padding:0 12px;border:1px solid var(--line,#dfe4ec);border-radius:10px;background:var(--surface,#fff);color:var(--text,#263247);font:inherit;font-size:13px;outline:none}
.catalogue-icon-field select:focus,.catalogue-editor-body input[name=custom_name]:focus{border-color:#5277e7;box-shadow:0 0 0 3px #5277e71c}
.catalogue-icon-field>small{color:var(--muted,#758096);font-size:11px;font-weight:450}
.catalogue-editor-kicker{display:inline-block;margin-bottom:7px;color:#526fca;font-size:9px;font-weight:800;letter-spacing:.12em}
.catalogue-feedback{padding:0;border-radius:10px;line-height:1.45;transition:all .18s ease}
.catalogue-feedback:not(:empty){padding:10px 12px;background:#f4f6fa}
.form-status[data-state=success]:not(:empty),.catalogue-feedback[data-state=success]:not(:empty){color:#147a4b;background:#eaf8f0}
.form-status[data-state=error]:not(:empty),.catalogue-feedback[data-state=error]:not(:empty){color:#a43138;background:#fff0f0}
.form-status[data-state=pending]:not(:empty),.catalogue-feedback[data-state=pending]:not(:empty){color:#53627a;background:#f1f4f9}
.provider-games-notice[data-state=error]{color:#a43138!important;border-color:#f2c7ca!important;background:#fff5f5!important}
.provider-games-notice[data-state=success]{color:#147a4b!important;border-color:#c9ead7!important;background:#f0fbf4!important}
.game-launch-dialog .form-status:not(:empty){padding:12px 14px;border:1px solid var(--line,#e3e8f0);border-radius:12px;line-height:1.5}
.catalogue-editor-dialog{max-height:min(84dvh,680px);overflow:auto;overscroll-behavior:contain}
.catalogue-editor-dialog footer{position:sticky;bottom:0;background:var(--surface,#fff);justify-content:space-between;min-height:66px}
.catalogue-editor-dialog footer .primary{min-width:138px}
.catalogue-editor-dialog footer .outline,.catalogue-editor-dialog footer .primary{min-height:42px;border-radius:10px}
.provider-type-entry{gap:10px}
.provider-type-entry .catalogue-edit-button{align-self:center;min-width:66px;min-height:42px;border-radius:10px;font-size:12px}
.provider-type-icon{background:linear-gradient(145deg,#f0f4ff,#e8edfb);color:#4968bb}
.provider-type-icon svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.game-launch-dialog .game-launch-actions{display:flex;justify-content:space-between;gap:10px}
.game-launch-dialog .game-launch-actions button{min-height:42px;border-radius:10px}
@media(max-width:560px){
 .catalogue-editor-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:16px}
 .catalogue-editor-heading,.catalogue-editor-body{padding-left:16px;padding-right:16px}
 .catalogue-editor-dialog footer{padding:12px 16px;gap:10px}
 .catalogue-editor-dialog footer button{flex:1}
 .provider-type-entry{gap:7px}
 .provider-type-entry .catalogue-edit-button{min-width:58px;padding:7px 8px}
}
body.dark .catalogue-icon-preview{background:#263553;border-color:#3b5079}
body.dark .catalogue-icon-field select{background:var(--surface,#1d293b);color:var(--text,#e5eaf3)}
body.dark .catalogue-editor-dialog footer{background:var(--surface,#1d293b)}

.catalogue-upload-control{display:grid;gap:6px;font-size:11px;font-weight:650;color:var(--text,#344156)}
.catalogue-upload-control input{width:100%;min-width:0;min-height:40px;padding:8px;border:1px dashed #b8c7e7;border-radius:10px;background:var(--soft-surface,#f8faff);font:inherit;font-weight:450}
.catalogue-upload-control input::file-selector-button{margin-right:9px;padding:7px 10px;border:0;border-radius:7px;background:#e9efff;color:#3658bb;font:inherit;font-weight:700}
.catalogue-upload-control small{color:var(--muted,#758096);font-size:10px;font-weight:450}
.catalogue-clear-icon{justify-self:start;min-height:34px;padding:0 10px;font-size:11px}
.catalogue-icon-preview img,.provider-type-icon img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.provider-type-icon img{padding:2px}
@media(max-width:560px){.catalogue-upload-control input{font-size:11px}.catalogue-upload-control input::file-selector-button{padding:7px}}
body.dark .catalogue-upload-control input{background:var(--surface-soft,#202b3d);border-color:#465777;color:var(--text,#e5eaf3)}


/* Provider & Game page content inset */
#provider-games-page{padding:28px}
@media(max-width:760px){#provider-games-page{padding:18px 12px}}


/* Currency-specific provider credentials */
.provider-currency-keys{display:grid;gap:12px;min-width:0;padding:16px;border:1px solid var(--line,#e4e8ef);border-radius:12px;background:var(--subtle,#f8f9fc)}
.provider-currency-keys-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.provider-currency-keys-heading>div{display:grid;gap:4px}
.provider-currency-keys-heading strong{font-size:14px;color:var(--text,#283247)}
.provider-currency-keys-heading small,.provider-currency-help{font-size:12px;line-height:1.5;color:var(--muted,#758096)}
.provider-currency-key-list{display:grid;gap:9px;min-width:0}
.provider-currency-key-row{display:grid;grid-template-columns:minmax(125px,.55fr) minmax(220px,1fr) minmax(145px,.65fr) auto;align-items:center;gap:9px;min-width:0;padding:10px;border:1px solid var(--line,#e4e8ef);border-radius:10px;background:var(--surface,#fff)}
.provider-currency-key-row[hidden]{display:none!important}
.provider-currency-key-row select,.provider-currency-key-row input{height:42px;min-width:0;margin:0;padding:9px 11px;border:1px solid var(--line,#dfe4ec);border-radius:8px;background:var(--surface,#fff);color:var(--text,#263247)}
.provider-currency-secret-input{display:flex;gap:7px;min-width:0}
.provider-currency-secret-input input{flex:1}
.provider-currency-secret-input button,.provider-currency-remove{min-width:58px;padding:9px 10px;white-space:nowrap}
.provider-currency-key-status{font-size:11px;color:var(--muted,#758096)}
.provider-currency-help{display:block}
@media(max-width:760px){
 .provider-currency-keys{padding:13px}
 .provider-currency-key-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .provider-currency-key-row select{grid-column:1}
 .provider-currency-secret-input{grid-column:1/-1;grid-row:2}
 .provider-currency-key-status{grid-column:1;grid-row:3}
 .provider-currency-remove{grid-column:2;grid-row:1}
}

.provider-site-admin-field{display:grid;gap:7px;margin-top:14px;font-size:13px;font-weight:650;color:var(--text,#283247)}
.provider-site-admin-field select{height:44px;max-width:100%;padding:9px 12px;border:1px solid var(--line,#dfe4ec);border-radius:9px;background:var(--surface,#fff);color:var(--text,#263247)}
.provider-site-admin-field small,.provider-currency-empty,.provider-legacy-key-assignments small{font-size:12px;line-height:1.5;color:var(--muted,#758096);font-weight:400}
.provider-legacy-key-assignments{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #f0d9a8;border-radius:9px;background:#fff9eb}
.provider-legacy-key-assignments[hidden]{display:none}
.provider-legacy-key-assignments button{white-space:normal}
.provider-currency-empty{padding:8px 2px}
#provider-currency-add:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:760px){
 .provider-legacy-key-assignments{align-items:stretch;flex-direction:column}
 .provider-legacy-key-assignments button{width:100%}
}

.provider-admin-key-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px 14px;border:1px solid var(--line,#e4e8ef);border-radius:10px;background:var(--surface,#fff)}
.provider-admin-key-status[hidden]{display:none!important}
.provider-admin-key-status>div{display:grid;gap:4px;min-width:0}
.provider-admin-key-status span{font-size:11px;color:var(--muted,#758096)}
.provider-admin-key-status strong{font-size:13px;line-height:1.35;color:var(--text,#283247);overflow-wrap:anywhere}
.provider-admin-key-status [data-launch-key-state]{color:#a43f39}
.provider-admin-key-status[data-state="ready"] [data-launch-key-state]{color:#26754e}
.provider-admin-key-status[data-state="available"] [data-launch-key-state]{color:#916211}
.provider-legacy-key-assignments{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:8px 0;border:0;background:transparent}
.provider-legacy-key-assignments small{font-size:12px;color:var(--muted,#758096);font-weight:600}
.provider-legacy-key-assignments button{min-height:34px;padding:6px 10px;border-radius:8px;font-size:12px;white-space:nowrap}
.provider-currency-empty{display:block;padding:4px 0;color:var(--muted,#758096)}
@media(max-width:760px){
 .provider-admin-key-status{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
 .provider-legacy-key-assignments{align-items:center;flex-direction:row}
 .provider-legacy-key-assignments button{width:auto}
}

.provider-currency-key-status{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.provider-key-change{min-height:32px;padding:5px 9px;border:1px solid var(--line,#dfe4ec);border-radius:7px;background:var(--surface,#fff);color:var(--text,#283247);font-size:12px;font-weight:650;white-space:nowrap}
.provider-key-change:hover{border-color:#3a5cf5;color:#3157e8}

.provider-currency-key-status span{overflow-wrap:anywhere}
.provider-currency-empty{display:block;padding:10px 4px}


/* Game catalogue: compact horizontal category rail and scrollable provider workspace */
.provider-catalog-panel{overflow:visible}
.provider-catalog-intro{padding:16px 20px}
.provider-type-list{
  display:flex;align-items:stretch;gap:10px;padding:14px 18px 16px;
  overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:#b9c5dc #eef1f6
}
.provider-type-list::-webkit-scrollbar{height:7px}
.provider-type-list::-webkit-scrollbar-track{background:#eef1f6;border-radius:999px}
.provider-type-list::-webkit-scrollbar-thumb{background:#b9c5dc;border-radius:999px}
.provider-type-entry{position:relative;flex:0 0 190px;min-width:0;scroll-snap-align:start;align-items:center;gap:7px}
.provider-type-entry .provider-type-card{
  min-height:68px;padding:10px 34px 10px 11px;border-radius:12px;
  box-shadow:none;transition:border-color .16s,background .16s
}
.provider-type-entry .provider-type-card:hover{transform:none}
.provider-type-entry .provider-type-card.is-selected{background:#f3f6ff;border-color:#5477df;box-shadow:0 0 0 2px #5477df20}
.provider-type-icon{width:38px;height:38px}
.provider-type-text strong{font-size:12px}
.provider-type-entry .catalogue-edit-button{
  position:absolute;right:7px;top:7px;z-index:1;width:27px;height:27px;
  display:grid;place-items:center;padding:0;border-radius:8px;
  color:#62718e;background:var(--surface,#fff);opacity:.84
}
.provider-type-entry .catalogue-edit-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.provider-type-entry .catalogue-edit-button:hover{opacity:1;color:#355bd4}
.provider-type-arrow{width:13px;height:13px}
.provider-list-panel{overflow:hidden}
.provider-list-panel .provider-catalog-intro{position:sticky;top:0;z-index:2;background:var(--surface,#fff)}
.provider-list{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;
  gap:10px;padding:14px 18px 18px;max-height:min(66vh,720px);
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:#b9c5dc #eef1f6
}
.provider-list::-webkit-scrollbar{width:7px}
.provider-list::-webkit-scrollbar-track{background:#eef1f6;border-radius:8px}
.provider-list::-webkit-scrollbar-thumb{background:#b9c5dc;border-radius:8px}
.provider-list .provider-item{
  position:relative;min-width:0;margin:0;border-radius:12px;
  transition:border-color .16s,box-shadow .16s
}
.provider-list .provider-item:hover{border-color:#c9d4e8;box-shadow:0 4px 14px #263b6810}
.provider-list .provider-item-toggle{
  min-height:82px;align-items:center;gap:9px;padding:12px 34px 12px 11px
}
.provider-list .provider-logo-wrap{width:40px;height:40px;border-radius:10px}
.provider-list .provider-item-title{gap:3px}
.provider-list .provider-item-title strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.provider-list .provider-item-title small{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.provider-list .provider-item-meta{gap:5px}
.provider-list .provider-live-badge,.provider-list .provider-paused-badge{font-size:9px;padding:4px 7px}
.provider-list .provider-game-count{min-width:0;font-size:10px;text-align:left}
.provider-list .provider-chevron{position:absolute;right:10px;top:18px;width:14px;height:14px}
.provider-list .provider-row-tools{position:absolute;right:8px;top:43px;z-index:1;padding:0}
.provider-list .provider-row-tools .catalogue-edit-button{
  width:27px;height:27px;display:grid;place-items:center;padding:0;border-radius:8px
}
.catalogue-edit-icon-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.provider-list .provider-games-wrap{grid-column:1/-1}
.provider-list .provider-games-wrap:not([hidden]){border-top:1px solid var(--line,#e8ebf1)}
.provider-list .provider-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){
  .provider-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .provider-catalog-intro{padding:14px 15px}
  .provider-type-list{padding:12px 14px 14px;gap:8px}
  .provider-type-entry{flex-basis:164px}
  .provider-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 13px 15px;max-height:68vh}
  .provider-list .provider-item-toggle{min-height:77px;gap:7px;padding-left:9px}
  .provider-list .provider-logo-wrap{width:34px;height:34px}
  .provider-list .provider-game-count{display:none}
  .provider-list .provider-game-grid{grid-template-columns:1fr}
}
@media(max-width:390px){
  .provider-type-entry{flex-basis:152px}
  .provider-list{grid-template-columns:1fr}
  .provider-list .provider-game-count{display:block}
}


/* Provider rail and the selected provider's full-width game area */
.provider-list{
  display:block;max-height:none;overflow:visible;padding:0
}
.provider-selector-row{
  display:flex;align-items:stretch;gap:9px;padding:13px 18px 15px;
  overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:#b9c5dc #eef1f6
}
.provider-selector-row::-webkit-scrollbar{height:7px}
.provider-selector-row::-webkit-scrollbar-track{background:#eef1f6;border-radius:8px}
.provider-selector-row::-webkit-scrollbar-thumb{background:#b9c5dc;border-radius:8px}
.provider-selector-entry{
  position:relative;flex:0 0 174px;min-width:0;scroll-snap-align:start;
  border:1px solid var(--line,#e5e9f0);border-radius:11px;background:var(--surface,#fff);
  transition:border-color .16s,box-shadow .16s,background .16s
}
.provider-selector-entry:hover{border-color:#c1cde2}
.provider-selector-entry.is-selected{
  border-color:#456de0;box-shadow:0 0 0 3px #456de022;background:#f5f7ff
}
.provider-selector-card{
  width:100%;min-width:0;min-height:60px;display:flex;align-items:center;gap:9px;
  padding:9px 33px 9px 10px;border:0;border-radius:10px;background:transparent;
  color:var(--text,#263247);text-align:left;cursor:pointer
}
.provider-selector-entry.is-selected .provider-selector-card{background:transparent}
.provider-selector-card:focus-visible{outline:2px solid #4169d8;outline-offset:2px}
.provider-selector-card .provider-logo-wrap{width:34px;height:34px;border-radius:9px}
.provider-selector-copy{display:grid;gap:3px;min-width:0;flex:1}
.provider-selector-copy strong{font-size:11px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.provider-selector-copy small{font-size:9px;color:var(--muted,#758096);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.provider-selector-copy .catalogue-source-name{font-size:9px!important}
.provider-selector-edit{
  position:absolute;top:7px;right:7px;width:23px;height:23px;z-index:1;
  display:grid;place-items:center;padding:0;border-radius:7px
}
.provider-selector-edit svg{width:12px;height:12px}
/* Keep the edit button above the stacked reorder controls on narrow cards. */
.provider-selector-entry:has(.provider-selector-edit){min-height:84px}
.provider-selector-entry:has(.provider-selector-edit) .provider-selector-card{min-height:84px}
.provider-selected-games{
  margin:2px 18px 18px;padding:16px 18px 18px;
  border:1px solid var(--line,#e5e9f0);border-radius:13px;
  background:var(--surface,#fff);box-shadow:0 3px 14px #253b6e08
}
.provider-selected-games[hidden]{display:none}
.provider-selected-heading{
  display:flex;align-items:center;gap:11px;padding-bottom:13px;
  border-bottom:1px solid var(--line,#e8ebf1)
}
.provider-selected-heading>div{min-width:0;flex:1}
.provider-selected-heading h3{margin:0;font-size:14px;color:var(--text,#263247)}
.provider-selected-heading p{margin:4px 0 0;color:var(--muted,#758096);font-size:11px}
.provider-selected-count{
  padding:5px 9px;border-radius:999px;background:var(--soft-surface,#f3f5f9);
  color:var(--muted,#66748a);font-size:10px;white-space:nowrap
}
.provider-selected-games .provider-games-wrap{
  padding:0;border:0;background:transparent;overflow:visible
}
.provider-selected-games .provider-games-toolbar{padding:14px 0}
.provider-selected-games .provider-game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.provider-selected-games .provider-games-pager{padding-top:16px}
@media(max-width:1100px){
  .provider-selected-games .provider-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .provider-selector-row{padding:11px 13px 13px;gap:8px}
  .provider-selector-entry{flex-basis:154px}
  .provider-selected-games{margin:0 13px 15px;padding:13px}
  .provider-selected-games .provider-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .provider-selected-games .provider-games-toolbar{align-items:stretch;flex-direction:column;gap:7px}
}
@media(max-width:390px){
  .provider-selector-entry{flex-basis:145px}
  .provider-selected-games .provider-game-grid{grid-template-columns:1fr}
}


/* Keep catalogue headings compact and give desktop game cards room to breathe */
.provider-catalog-intro{min-height:0;padding:14px 18px}
.provider-catalog-intro h2{font-size:14px}
.provider-catalog-intro p{margin-top:3px;font-size:11px}
.provider-selected-heading{justify-content:flex-end;padding:0 0 8px;border:0}
.provider-selected-games{margin-top:0;padding:11px 16px 16px}
.provider-selected-games .provider-games-toolbar{padding:10px 0 13px}
.provider-selected-games .provider-games-toolbar small{display:none}
.provider-selected-games .provider-game-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.provider-selected-games .provider-game-image{height:clamp(110px,12vw,170px)}
@media(max-width:1300px){
  .provider-selected-games .provider-game-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:1100px){
  .provider-selected-games .provider-game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:850px){
  .provider-selected-games .provider-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  .provider-catalog-intro{padding:12px 14px}
  .provider-selected-games{padding:10px 12px 14px}
  .provider-selected-games .provider-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .provider-selected-games .provider-game-image{height:clamp(105px,34vw,150px)}
}


/* Compact catalogue controls: keep the type rail visible and align search with its result count. */
.provider-catalog-panel .provider-catalog-intro{min-height:0;padding:10px 18px}
.provider-catalog-panel .provider-catalog-intro p,.provider-catalog-panel #provider-type-count{display:none}
.provider-selected-games{margin:12px 18px 18px}
.provider-selected-games .provider-selected-heading{display:none}
.provider-selected-games .provider-games-toolbar{
  display:flex;align-items:center;justify-content:space-between;flex-direction:row;
  gap:12px;padding:10px 0 13px
}
.provider-selected-games .provider-games-toolbar .provider-games-search{
  display:block;width:min(448px,calc(100% - 112px));min-width:0;flex:1 1 448px;
  font-size:0
}
.provider-selected-games .provider-games-toolbar .provider-games-search input{
  display:block;width:100%;min-height:40px
}
.provider-selected-games .provider-games-toolbar .provider-selected-count{
  flex:0 0 auto;margin-left:auto
}
@media(max-width:600px){
  .provider-selected-games{margin:10px 13px 15px}
  .provider-selected-games .provider-games-toolbar{align-items:center;flex-direction:row;gap:8px}
  .provider-selected-games .provider-games-toolbar .provider-games-search{width:auto;flex:1 1 auto}
  .provider-selected-games .provider-games-toolbar .provider-selected-count{font-size:9px;padding:5px 7px}
}


/* The catalogue starts at the two selection rails; keep the first view compact. */
#provider-games-page>.page-heading,#provider-games-page>#provider-cache-status{display:none!important}
#provider-games-page .provider-catalog-intro{display:none!important}

#provider-games-page{padding-top:12px}
@media(max-width:760px){#provider-games-page{padding-top:10px}}


/* Append game batches without page navigation. */
.provider-games-load-more{display:flex;justify-content:center;padding:14px 0 3px}
.provider-games-load-more button{min-width:126px;min-height:40px;border-radius:9px;font-size:12px;font-weight:650}
.provider-games-load-status{display:grid;justify-items:center;gap:7px;padding:5px 0 2px;text-align:center}
.provider-games-progress{width:min(264px,60%);height:5px;overflow:hidden;border-radius:999px;background:#e8ebf1}
.provider-games-progress span{display:block;height:100%;border-radius:inherit;background:#aab7cc;transition:width .2s ease}
.provider-games-count{color:var(--muted,#758096);font-size:12px;line-height:1.4}
body.dark .provider-games-progress{background:#344055}
body.dark .provider-games-progress span{background:#7f94b6}

/* Player catalogue cards use square game artwork, with each title kept below the image. */
.provider-game-card.player-launch-card .provider-game-image{
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
}
.provider-game-card.player-launch-card .provider-game-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}


/* Player-only compact game navigation and provider search controls. */
body.player-account-view #provider-type-list{
  gap:9px;
  padding:11px 16px 13px;
  scroll-padding-inline:16px;
}
body.player-account-view #provider-type-list .provider-type-entry{
  flex:0 0 104px;
  align-self:stretch;
}
body.player-account-view #provider-type-list .provider-type-card{
  display:flex;
  width:100%;
  min-height:92px;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:7px;
  padding:9px 6px;
  text-align:center;
}
body.player-account-view #provider-type-list .provider-type-icon{
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
}
body.player-account-view #provider-type-list .provider-type-icon svg{
  width:24px;
  height:24px;
}
body.player-account-view #provider-type-list .provider-type-text{
  display:block;
  flex:none;
  width:100%;
}
body.player-account-view #provider-type-list .provider-type-text strong{
  display:-webkit-box;
  overflow:hidden;
  white-space:normal;
  text-overflow:ellipsis;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  font-size:10px;
  line-height:1.2;
  text-transform:uppercase;
}
body.player-account-view #provider-type-list .provider-type-text small,
body.player-account-view #provider-type-list .provider-type-arrow{
  display:none!important;
}
body.player-account-view .provider-selected-games .player-game-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(160px,220px) auto;
  align-items:stretch;
  justify-content:initial;
  gap:10px;
  padding:10px 0 14px;
}
body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap{
  position:relative;
  display:flex;
  width:100%;
  min-width:0;
  flex:initial;
  align-items:center;
  font-size:12px;
}
body.player-account-view .player-game-search-icon{
  position:absolute;
  z-index:1;
  left:14px;
  width:17px;
  height:17px;
  pointer-events:none;
  color:var(--muted,#758096);
}
body.player-account-view .player-game-search-wrap input{
  width:100%;
  min-width:0;
  min-height:44px;
  padding:10px 12px 10px 40px;
  border:1px solid var(--line,#dfe4ec);
  border-radius:10px;
  background:var(--surface,#fff);
  color:var(--text,#283247);
  font-size:12px;
}
body.player-account-view .player-game-provider-filter{
  position:relative;
  display:block;
  min-width:0;
  margin:0;
}
body.player-account-view .player-game-provider-sr{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
body.player-account-view .player-game-provider-filter select{
  display:block;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:9px 31px 9px 12px;
  border:1px solid var(--line,#dfe4ec);
  border-radius:10px;
  background:var(--surface,#fff);
  color:var(--text,#283247);
  font:inherit;
  font-size:12px;
}
body.player-account-view .player-game-search-submit{
  min-width:84px;
  min-height:44px;
  padding:9px 16px;
  border:1px solid #3458ec;
  border-radius:10px;
  background:#3458ec;
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
body.player-account-view .player-game-search-submit:hover{
  background:#274bd7;
}
body.player-account-view .player-game-search-submit:focus-visible,
body.player-account-view .player-game-provider-filter select:focus-visible,
body.player-account-view .player-game-search-wrap input:focus-visible{
  outline:3px solid #aebfff;
  outline-offset:2px;
}
@media(max-width:640px){
  body.player-account-view #provider-type-list{
    gap:8px;
    padding:10px 12px 12px;
    scroll-padding-inline:12px;
  }
  body.player-account-view #provider-type-list .provider-type-entry{
    flex-basis:88px;
  }
  body.player-account-view #provider-type-list .provider-type-card{
    min-height:84px;
    gap:6px;
    padding:8px 5px;
  }
  body.player-account-view #provider-type-list .provider-type-icon{
    width:30px;
    height:30px;
  }
  body.player-account-view #provider-type-list .provider-type-icon svg{
    width:22px;
    height:22px;
  }
  body.player-account-view .provider-selected-games .player-game-toolbar{
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    padding:8px 0 12px;
  }
  body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap{
    grid-column:1/-1;
  }
  body.player-account-view .player-game-provider-filter select{
    min-height:42px;
  }
  body.player-account-view .player-game-search-submit{
    min-width:88px;
    min-height:42px;
  }
}
body.dark.player-account-view .player-game-search-wrap input,
body.dark.player-account-view .player-game-provider-filter select{
  border-color:var(--line,#46536a);
  background:var(--surface,#202a3b);
  color:var(--text,#e7edf8);
}
body.dark.player-account-view .player-game-search-icon{
  color:var(--muted,#a1acc0);
}


/* Player Game menu: make the search reliably editable and keep one content surface. */
body.player-account-view #provider-list-panel{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.player-account-view #provider-list-panel .provider-selected-games{margin:12px 0 16px;padding:14px;border:1px solid var(--line,#e5e9f0);border-radius:13px;background:var(--surface,#fff);box-shadow:0 3px 14px #253b6e08}
body.player-account-view .provider-selected-games .player-game-search-wrap{z-index:1;pointer-events:auto;cursor:text}
body.player-account-view .provider-selected-games .player-game-search-wrap input{
  position:relative;z-index:1;display:block;min-height:46px;width:100%;padding-left:42px;
  pointer-events:auto;user-select:text;-webkit-user-select:text;touch-action:manipulation;
  font-size:14px;line-height:1.4;color:var(--text,#283247);-webkit-text-fill-color:var(--text,#283247)
}
body.player-account-view .player-game-search-wrap input::placeholder{color:var(--muted,#758096);-webkit-text-fill-color:var(--muted,#758096);opacity:1}
body.player-account-view .player-game-search-icon{z-index:2}
body.player-account-view .player-game-provider-filter{position:relative;z-index:20;min-width:0;margin:0}
body.player-account-view .player-game-provider-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body.player-account-view .player-game-provider-trigger{
  display:flex;align-items:center;gap:9px;width:100%;min-width:0;min-height:46px;padding:8px 11px;
  border:1px solid var(--line,#dfe4ec);border-radius:10px;background:var(--surface,#fff);color:var(--text,#283247);
  text-align:left;font:inherit;font-size:12px;cursor:pointer
}
body.player-account-view .player-game-provider-trigger:hover,
body.player-account-view .player-game-provider-trigger[aria-expanded="true"]{border-color:#7289de;box-shadow:0 0 0 2px #5579e41c}
body.player-account-view .player-game-provider-trigger>svg{width:16px;height:16px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
body.player-account-view .player-game-provider-selected,
body.player-account-view .player-game-provider-option-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.player-account-view .player-provider-option-logo{display:grid;width:25px;height:25px;flex:0 0 25px;place-items:center;overflow:hidden;border-radius:7px;background:var(--soft-surface,#f1f4fa)}
body.player-account-view .player-provider-option-logo img{width:100%;height:100%;object-fit:contain}
body.player-account-view .player-provider-option-logo img[hidden]{display:none}
body.player-account-view .player-game-provider-menu{
  position:absolute;z-index:25;top:calc(100% + 6px);right:0;left:0;display:grid;
  max-height:min(310px,50vh);overflow:auto;padding:5px;border:1px solid var(--line,#dfe4ec);
  border-radius:11px;background:var(--surface,#fff);box-shadow:0 12px 30px #14223d24
}
body.player-account-view .player-game-provider-menu[hidden]{display:none}
body.player-account-view .player-game-provider-option{
  display:flex;align-items:center;gap:9px;width:100%;min-height:39px;padding:6px 9px;
  border:0;border-radius:7px;background:transparent;color:var(--text,#283247);text-align:left;
  font:inherit;font-size:12px;cursor:pointer
}
body.player-account-view .player-game-provider-option:hover,
body.player-account-view .player-game-provider-option[aria-selected="true"]{background:var(--soft-surface,#f2f5ff);color:var(--text,#283247)}
body.player-account-view .player-game-provider-trigger:focus-visible,
body.player-account-view .player-game-provider-option:focus-visible{outline:3px solid #aebfff;outline-offset:1px}
@media(max-width:640px){
 body.player-account-view #provider-list-panel .provider-selected-games{margin:10px 0 14px;padding:11px}
 body.player-account-view .player-game-provider-menu{left:auto;width:min(260px,calc(100vw - 48px))}
}
body.dark.player-account-view #provider-list-panel .provider-selected-games{border-color:var(--line,#39465b);background:var(--surface,#202b3d);box-shadow:none}
body.dark.player-account-view .player-game-search-wrap input{color:var(--text,#e7edf7);-webkit-text-fill-color:var(--text,#e7edf7)}
body.dark.player-account-view .player-game-provider-trigger,
body.dark.player-account-view .player-game-provider-menu{border-color:var(--line,#39465b);background:var(--surface,#202b3d);color:var(--text,#e7edf7)}
body.dark.player-account-view .player-game-provider-option{color:var(--text,#e7edf7)}
body.dark.player-account-view .player-game-provider-option:hover,
body.dark.player-account-view .player-game-provider-option[aria-selected="true"]{background:#303d53;color:var(--text,#e7edf7)}


/* Player balance capsule and reference-sized category tiles. */
body.player-account-view .header-money>small{
  display:none;
}
body.player-account-view .player-provider-balance-tools{
  align-items:center;
}
body.player-account-view .player-provider-balance-row{
  gap:8px;
  min-height:34px;
}
body.player-account-view .player-provider-balance-pill{
  display:inline-flex;
  min-height:34px;
  align-items:center;
  gap:8px;
  padding:4px 11px 4px 5px;
  border:1px solid #d5deed;
  border-radius:999px;
  background:#f2f5ff;
  color:#26344d;
  box-shadow:0 1px 3px #17243a12;
}
body.player-account-view .player-provider-balance-plus{
  display:grid;
  width:25px;
  height:25px;
  flex:0 0 25px;
  place-items:center;
  border-radius:50%;
  background:#3158ee;
  color:#fff;
  font-size:21px;
  font-weight:500;
  line-height:1;
}
body.player-account-view .player-provider-balance-pill #own-available{
  color:inherit;
  font-size:14px;
  font-weight:800;
}
body.dark.player-account-view .player-provider-balance-pill{
  border-color:#47536a;
  background:#252e3e;
  color:#e1e8ff;
  box-shadow:none;
}
body.player-account-view #provider-type-list .provider-type-entry{
  flex:0 0 94px;
}
body.player-account-view #provider-type-list .provider-type-card{
  min-height:104px;
  gap:8px;
  padding:10px 6px;
}
body.player-account-view #provider-type-list .provider-type-icon{
  width:38px;
  height:38px;
}
body.player-account-view #provider-type-list .provider-type-icon svg{
  width:27px;
  height:27px;
}
body.player-account-view #provider-type-list .provider-type-text strong{
  font-size:10.5px;
  line-height:1.25;
}
@media(max-width:760px){
  body.player-account-view .player-provider-balance-row{gap:6px}
  body.player-account-view .player-provider-balance-pill{min-height:32px;gap:6px;padding:3px 9px 3px 4px}
  body.player-account-view .player-provider-balance-plus{width:24px;height:24px;flex-basis:24px}
  body.player-account-view .player-provider-balance-pill #own-available{font-size:13px}
  body.player-account-view #provider-type-list .provider-type-entry{flex-basis:88px}
  body.player-account-view #provider-type-list .provider-type-card{min-height:100px}
}


/* Player game catalogue: remove the inner divider and align the controls. */
body.player-account-view .provider-selected-games .provider-games-wrap,
body.player-account-view .provider-list .provider-games-wrap:not([hidden]){
  border-top:0!important;
  padding-top:0;
}
body.player-account-view .provider-selected-games .player-game-toolbar{
  grid-template-columns:minmax(0,1fr) minmax(180px,230px) 104px;
  align-items:stretch;
  gap:10px;
}
body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap,
body.player-account-view .provider-selected-games .player-game-provider-trigger,
body.player-account-view .provider-selected-games .player-game-search-submit{
  box-sizing:border-box;
  height:46px;
  min-height:46px;
  align-self:stretch;
}
body.player-account-view .provider-selected-games .player-game-search-submit{
  display:inline-flex;
  width:104px;
  min-width:104px;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  line-height:1;
  white-space:nowrap;
}
body.player-account-view #provider-type-list{
  display:flex!important;
  align-items:stretch;
  gap:10px;
}
body.player-account-view #provider-type-list .provider-type-entry{
  width:96px!important;
  min-width:96px!important;
  flex:0 0 96px!important;
}
body.player-account-view #provider-type-list .provider-type-card{
  box-sizing:border-box;
  width:100%;
  min-height:112px!important;
  height:112px;
  gap:9px;
  padding:11px 6px;
}
body.player-account-view #provider-type-list .provider-type-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
}
body.player-account-view #provider-type-list .provider-type-icon svg{
  width:27px;
  height:27px;
}
body.player-account-view #provider-type-list .provider-type-text{
  width:100%;
  min-width:0;
  flex:none;
}
body.player-account-view #provider-type-list .provider-type-text strong{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  white-space:normal;
  font-size:10.5px;
  line-height:1.2;
  text-align:center;
}
@media(max-width:760px){
  body.player-account-view .provider-selected-games .player-game-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(150px,220px) 96px;
  }
  body.player-account-view .provider-selected-games .player-game-search-submit{
    width:96px;
    min-width:96px;
  }
  body.player-account-view #provider-type-list .provider-type-entry{
    width:88px!important;
    min-width:88px!important;
    flex-basis:88px!important;
  }
  body.player-account-view #provider-type-list .provider-type-card{
    min-height:104px!important;
    height:104px;
    gap:7px;
  }
}
@media(max-width:640px){
  body.player-account-view .provider-selected-games .player-game-toolbar{
    grid-template-columns:minmax(0,1fr) auto;
  }
  body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap{
    height:46px;
  }
  body.player-account-view .provider-selected-games .player-game-search-submit{
    width:auto;
    min-width:88px;
  }
}


/* Player catalogue: strengthen category separation and keep desktop controls level. */
body.player-account-view #provider-type-list{
  gap:11px;
}
body.player-account-view #provider-type-list .provider-type-entry{
  width:96px!important;
  min-width:96px!important;
  flex:0 0 96px!important;
}
body.player-account-view #provider-type-list .provider-type-card{
  display:flex!important;
  box-sizing:border-box;
  width:100%;
  height:124px!important;
  min-height:124px!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 7px;
  border:1px solid #d8dfeb;
  border-radius:13px;
  background:var(--surface,#fff);
  box-shadow:0 2px 7px #1c2b460d;
  text-align:center;
}
body.player-account-view #provider-type-list .provider-type-card:hover{
  border-color:#aebce4;
  box-shadow:0 5px 13px #263e7614;
}
body.player-account-view #provider-type-list .provider-type-card.is-selected{
  border-color:#5579e4;
  background:var(--soft-surface,#f3f6ff);
  box-shadow:0 0 0 2px #5579e426;
}
body.dark.player-account-view #provider-type-list .provider-type-card{
  border-color:#445168;
  background:var(--surface,#202b3d);
  box-shadow:0 2px 7px #0003;
}
body.dark.player-account-view #provider-type-list .provider-type-card.is-selected{
  border-color:#8199ef;
  background:#26334a;
}
body.player-account-view #provider-type-list .provider-type-icon{
  display:grid;
  flex:0 0 38px;
  place-items:center;
  margin:0 auto;
}
body.player-account-view #provider-type-list .provider-type-text{
  display:block;
  width:100%;
  min-width:0;
  flex:none;
  text-align:center;
}
body.player-account-view #provider-type-list .provider-type-text strong{
  display:-webkit-box;
  overflow:hidden;
  max-width:100%;
  margin:0 auto;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  white-space:normal;
  text-align:center;
}
body.player-account-view .provider-selected-games .player-game-toolbar{
  grid-template-columns:minmax(0,1fr) minmax(190px,240px) 112px;
  align-items:stretch;
  gap:12px;
}
body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap,
body.player-account-view .provider-selected-games .player-game-provider-trigger,
body.player-account-view .provider-selected-games .player-game-search-submit{
  box-sizing:border-box;
  height:46px;
  min-height:46px;
  align-self:stretch;
}
body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap{
  display:flex;
  align-items:center;
}
body.player-account-view .provider-selected-games .player-game-search-wrap input{
  box-sizing:border-box;
  width:100%;
  height:46px;
  min-height:46px;
  line-height:normal;
}
body.player-account-view .provider-selected-games .player-game-provider-trigger{
  display:flex;
  align-items:center;
  width:100%;
  line-height:normal;
}
body.player-account-view .provider-selected-games .player-game-search-submit{
  display:inline-flex;
  width:112px;
  min-width:112px;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  line-height:1;
  white-space:nowrap;
}
@media(max-width:760px){
  body.player-account-view #provider-type-list .provider-type-entry{
    width:88px!important;
    min-width:88px!important;
    flex-basis:88px!important;
  }
  body.player-account-view #provider-type-list .provider-type-card{
    height:112px!important;
    min-height:112px!important;
    gap:8px;
  }
  body.player-account-view .provider-selected-games .player-game-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(150px,220px) 96px;
    gap:9px;
  }
  body.player-account-view .provider-selected-games .player-game-search-submit{
    width:96px;
    min-width:96px;
  }
}
@media(max-width:640px){
  body.player-account-view .provider-selected-games .player-game-toolbar{
    grid-template-columns:minmax(0,1fr) auto;
  }
  body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap{
    height:46px;
  }
  body.player-account-view .provider-selected-games .player-game-search-submit{
    width:auto;
    min-width:88px;
  }
}


/* Keep mobile provider and search controls visibly separated. */
@media(max-width:760px){
  body.player-account-view #provider-type-list{gap:12px}
  body.player-account-view #provider-type-list .provider-type-card{
    border-color:#d3dcec;
    box-shadow:0 2px 8px #1c2b4612;
  }
  body.player-account-view .provider-selected-games .player-game-toolbar{
    column-gap:14px;
    row-gap:12px;
  }
  body.player-account-view .provider-selected-games .player-game-provider-filter{
    min-width:0;
  }
  body.player-account-view .provider-selected-games .player-game-provider-trigger,
  body.player-account-view .provider-selected-games .player-game-search-submit{
    box-sizing:border-box;
    height:46px;
    min-height:46px;
  }
}
@media(max-width:640px){
  body.player-account-view .provider-selected-games .player-game-toolbar{
    grid-template-columns:minmax(0,1fr) 96px;
    column-gap:14px;
    row-gap:12px;
  }
  body.player-account-view .provider-selected-games .player-game-search-submit{
    width:96px;
    min-width:96px;
    padding-inline:10px;
  }
}


/* Final alignment: center every Player type tile and level the search controls. */
body.player-account-view #provider-type-list .provider-type-entry{
  display:flex;
  align-items:stretch;
  justify-content:center;
}
body.player-account-view #provider-type-list .provider-type-card{
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
}
body.player-account-view #provider-type-list .provider-type-icon,
body.player-account-view #provider-type-list .provider-type-text{
  margin-inline:auto;
  text-align:center!important;
}
body.player-account-view .provider-selected-games .player-game-toolbar{
  align-items:center!important;
}
body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap{
  box-sizing:border-box;
  display:flex!important;
  align-self:center;
  height:46px;
  min-height:46px;
  margin:0!important;
  padding:0!important;
  line-height:normal;
}
body.player-account-view .provider-selected-games .player-game-toolbar .player-game-search-wrap input{
  box-sizing:border-box;
  display:block;
  align-self:stretch;
  width:100%;
  height:46px;
  min-height:46px;
  margin:0!important;
  line-height:normal;
}
body.player-account-view .provider-selected-games .player-game-provider-filter{
  height:46px;
  margin:0!important;
}
body.player-account-view .provider-selected-games .player-game-provider-trigger,
body.player-account-view .provider-selected-games .player-game-search-submit{
  box-sizing:border-box;
  height:46px;
  min-height:46px;
  margin:0!important;
}


/* Player category tiles: use a self-contained centered layout so legacy flex rules cannot offset the icon or label. */
body #provider-type-list .provider-type-card.player-centered-type{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-content:center!important;
  justify-content:initial!important;
  justify-items:center!important;
  align-items:center!important;
  gap:9px!important;
  text-align:center!important;
}
body #provider-type-list .provider-type-card.player-centered-type .provider-type-icon{
  display:grid!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  margin:0!important;
  flex:none!important;
  justify-self:center!important;
  align-self:center!important;
  place-items:center!important;
}
body #provider-type-list .provider-type-card.player-centered-type .provider-type-icon img,
body #provider-type-list .provider-type-card.player-centered-type .provider-type-icon svg{
  display:block;
  max-width:100%;
  max-height:100%;
  margin:auto!important;
  object-fit:contain;
}
body #provider-type-list .provider-type-card.player-centered-type .provider-type-text{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  flex:none!important;
  justify-self:stretch!important;
  text-align:center!important;
}
body #provider-type-list .provider-type-card.player-centered-type .provider-type-text strong{
  display:-webkit-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  text-align:center!important;
  white-space:normal!important;
}
body #provider-type-list .provider-type-card.player-centered-type .provider-type-arrow,
body #provider-type-list .provider-type-card.player-centered-type .provider-type-text small{
  display:none!important;
}
@media(max-width:760px){
  body #provider-type-list .provider-type-card.player-centered-type .provider-type-icon{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
  }
}

/* Final, Player-only type tile alignment and role-specific header alignment. */
body.player-account-view #provider-type-list .provider-type-card.player-centered-type{
  box-sizing:border-box!important;
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:12px 8px!important;
  text-align:center!important;
}
body.player-account-view #provider-type-list .provider-type-card.player-centered-type .provider-type-icon{
  display:grid!important;
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  margin:0 auto!important;
  place-items:center!important;
}
body.player-account-view #provider-type-list .provider-type-card.player-centered-type .provider-type-text{
  display:block!important;
  flex:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  text-align:center!important;
}
body.player-account-view #provider-type-list .provider-type-card.player-centered-type .provider-type-text strong{
  display:-webkit-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  text-align:center!important;
  white-space:normal!important;
}
body.player-account-view #provider-type-list .provider-type-card.player-centered-type .provider-type-arrow,
body.player-account-view #provider-type-list .provider-type-card.player-centered-type .provider-type-text small{
  display:none!important;
}
body:not(.player-account-view)>.workspace>.admin-header>.header-identity{
  position:static!important;
  left:auto!important;
  transform:none!important;
  flex:1 1 auto!important;
  margin:0!important;
  text-align:left!important;
  justify-content:flex-start!important;
}
body:not(.player-account-view)>.workspace>.admin-header>.header-identity>strong{
  text-align:left!important;
}
@media(max-width:760px){
  body.player-account-view #provider-type-list .provider-type-card.player-centered-type .provider-type-icon{
    flex-basis:36px!important;
    width:36px!important;
    height:36px!important;
  }
}


/* Player provider filter supports persistent multi-select checkboxes. */
body.player-account-view .player-game-provider-selected{
  flex:1 1 auto;
  text-align:left;
}
body.player-account-view .player-game-provider-option{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:7px 9px;
  border-radius:8px;
  color:var(--text,#283247);
  cursor:pointer;
  user-select:none;
}
body.player-account-view .player-game-provider-option:hover{
  background:var(--soft-surface,#f2f5ff);
}
body.player-account-view .player-game-provider-option input[type="checkbox"]{
  appearance:none;
  box-sizing:border-box;
  display:grid;
  place-items:center;
  flex:0 0 18px;
  width:18px;
  height:18px;
  min-height:18px;
  margin:0;
  padding:0;
  border:1.5px solid #aab5c8;
  border-radius:5px;
  background:var(--surface,#fff);
  color:#fff;
  cursor:pointer;
}
body.player-account-view .player-game-provider-option input[type="checkbox"]::before{
  content:"";
  width:8px;
  height:4px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-1px) rotate(-45deg) scale(0);
  transition:transform .12s ease;
}
body.player-account-view .player-game-provider-option input[type="checkbox"]:checked{
  border-color:#395cf6;
  background:#395cf6;
}
body.player-account-view .player-game-provider-option input[type="checkbox"]:checked::before{
  transform:translateY(-1px) rotate(-45deg) scale(1);
}
body.player-account-view .player-game-provider-option input[type="checkbox"]:focus-visible{
  outline:3px solid #aebfff;
  outline-offset:2px;
}
body.player-account-view .player-game-provider-option-logo{
  display:grid;
  place-items:center;
  flex:0 0 24px;
  width:24px;
  height:24px;
  overflow:hidden;
  border-radius:6px;
  background:#f1f4fa;
}
body.player-account-view .player-game-provider-option-logo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
body.player-account-view .player-game-provider-option-name{
  flex:1 1 auto;
}
body.dark.player-account-view .player-game-provider-option:hover{
  background:#303d53;
}
body.dark.player-account-view .player-game-provider-option input[type="checkbox"]{
  border-color:#65748c;
  background:#202b3d;
}
body.dark.player-account-view .player-game-provider-option input[type="checkbox"]:checked{
  border-color:#7893f7;
  background:#5475e8;
}

/* Mobile provider picker opens as a full-height filter sheet with staged selection. */
body.player-account-view.player-provider-modal-open{overflow:hidden!important}
body.player-account-view .player-game-provider-menu-header,
body.player-account-view .player-game-provider-section-heading,
body.player-account-view .player-game-provider-menu-actions{display:none}
body.player-account-view .player-game-provider-options{min-height:0;overflow:auto}
@media(max-width:640px){
  body.player-account-view .player-game-provider-filter:has(.player-game-provider-menu:not([hidden])){z-index:10000}
  body.player-account-view .player-game-provider-menu{
    position:fixed!important;inset:0!important;z-index:10001!important;
    display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;
    width:100vw!important;height:100vh!important;height:100dvh!important;max-height:none!important;
    overflow:hidden!important;padding:0!important;border:0!important;border-radius:0!important;
    background:var(--surface,#fff);box-shadow:none!important
  }
  body.player-account-view .player-game-provider-menu[hidden]{display:none!important}
  body.player-account-view .player-game-provider-menu-header{
    display:flex;align-items:center;justify-content:space-between;min-height:68px;
    padding:0 20px;border-bottom:1px solid var(--line,#e4e6e9)
  }
  body.player-account-view .player-game-provider-menu-header strong{font-size:20px;font-weight:700}
  body.player-account-view .player-game-provider-menu-header button{
    display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;
    background:transparent;color:var(--text,#283247);cursor:pointer
  }
  body.player-account-view .player-game-provider-menu-header svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  body.player-account-view .player-game-provider-section-heading{
    display:flex;align-items:center;justify-content:space-between;min-height:64px;
    margin:0 20px;border-bottom:1px solid var(--line,#e4e6e9);color:var(--muted,#758096);
    font-size:15px
  }
  body.player-account-view .player-game-provider-section-heading svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  body.player-account-view .player-game-provider-options{
    padding:10px 20px 18px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch
  }
  body.player-account-view .player-game-provider-option{
    min-height:52px;gap:12px;padding:7px 9px;border-radius:9px;font-size:15px
  }
  body.player-account-view .player-game-provider-option input[type="checkbox"]{
    flex-basis:22px;width:22px;height:22px;min-height:22px;border-radius:6px
  }
  body.player-account-view .player-game-provider-option input[type="checkbox"]::before{width:10px;height:5px}
  body.player-account-view .player-game-provider-option-logo{flex-basis:30px;width:30px;height:30px}
  body.player-account-view .player-game-provider-menu-actions{
    display:flex;gap:12px;padding:12px 20px max(16px,env(safe-area-inset-bottom));
    border-top:1px solid var(--line,#e4e6e9);background:var(--surface,#fff)
  }
  body.player-account-view .player-game-provider-menu-actions button{
    min-height:54px;padding:0 18px;border:1px solid var(--line,#d4d8de);border-radius:5px;
    background:transparent;color:var(--muted,#758096);font:inherit;font-size:15px;font-weight:600
  }
  body.player-account-view .player-game-provider-menu-actions [data-player-provider-clear]{flex:1}
  body.player-account-view .player-game-provider-menu-actions [data-player-provider-apply]{
    flex:1.35;border-color:#395cf6;background:#395cf6;color:#fff
  }
  body.dark.player-account-view .player-game-provider-menu{
    background:var(--surface,#171a1c);color:var(--text,#e7edf7)
  }
  body.dark.player-account-view .player-game-provider-menu-header,
  body.dark.player-account-view .player-game-provider-section-heading,
  body.dark.player-account-view .player-game-provider-menu-actions{border-color:var(--line,#33383d)}
  body.dark.player-account-view .player-game-provider-menu-header button{color:var(--text,#e7edf7)}
  body.dark.player-account-view .player-game-provider-menu-actions{background:var(--surface,#171a1c)}
  body.dark.player-account-view .player-game-provider-menu-actions button{border-color:#3c4248;color:#aab1b8}
  body.dark.player-account-view .player-game-provider-menu-actions [data-player-provider-apply]{border-color:#395cf6;color:#fff}
}

/* Final mobile game catalogue layout and primary action color. */
body.player-account-view .player-game-provider-menu-actions [data-player-provider-apply]{
  border-color:#395cf6!important;
  background:#395cf6!important;
  color:#fff!important;
}
@media(max-width:640px){
  body.player-account-view .provider-selected-games .provider-game-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body.player-account-view .provider-selected-games .provider-game-image{
    height:clamp(76px,29vw,112px)!important;
  }
  body.player-account-view .provider-selected-games .provider-game-copy{
    gap:4px;
    padding:7px 6px!important;
  }
  body.player-account-view .provider-selected-games .provider-game-copy strong{
    font-size:10px!important;
  }
}


/* Compact ordering controls for the dashboard catalogue rails */
.catalogue-order-controls{display:flex;flex:0 0 25px;flex-direction:column;align-self:center;gap:3px;z-index:2}
.catalogue-order-controls button{display:grid;width:25px;height:22px;place-items:center;padding:0;border:1px solid var(--line,#dfe4ec);border-radius:6px;background:var(--surface,#fff);color:var(--muted,#758096);font:700 13px/1 system-ui,sans-serif;cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.catalogue-order-controls button:hover:not(:disabled){border-color:#9bb0f0;background:#f2f5ff;color:#3158ee}
.catalogue-order-controls button:focus-visible{outline:2px solid #5579e4;outline-offset:1px}
.catalogue-order-controls button:disabled{opacity:.35;cursor:default}
.provider-selector-entry>.catalogue-order-controls{position:absolute;right:7px;bottom:6px}
.provider-selector-entry .provider-selector-card{padding-right:39px}
@media(max-width:760px){.catalogue-order-controls{flex-basis:23px}.catalogue-order-controls button{width:23px;height:21px}.provider-selector-entry>.catalogue-order-controls{right:6px;bottom:5px}}

/* Dark mode: provider selection rails, reorder controls, and selected-game frame. */
body.dark #provider-games-page .provider-selector-row{scrollbar-color:#596273 #292d33}
body.dark #provider-games-page .provider-selector-row::-webkit-scrollbar-track{background:#292d33}
body.dark #provider-games-page .provider-selector-row::-webkit-scrollbar-thumb{background:#596273}
body.dark #provider-games-page .provider-selector-entry{background:#2b2b2b!important;border-color:#454b55!important;box-shadow:none!important}
body.dark #provider-games-page .provider-selector-entry:hover{border-color:#6578ad!important}
body.dark #provider-games-page .provider-selector-entry.is-selected{background:#202b3e!important;border-color:#5579e4!important;box-shadow:0 0 0 3px #5579e422!important}
body.dark #provider-games-page .provider-selector-card{background:transparent!important;color:#ececec!important}
body.dark #provider-games-page .provider-selector-copy strong{color:#f1f3f5!important}
body.dark #provider-games-page .provider-selector-copy small,body.dark #provider-games-page .provider-selector-copy .catalogue-source-name{color:#b8c0cc!important}
body.dark #provider-games-page .provider-selector-card .provider-logo-wrap{background:#30343b!important;color:#c4cddd!important}
body.dark #provider-games-page .provider-selector-entry .catalogue-edit-button,body.dark #provider-games-page .provider-type-entry .catalogue-edit-button{background:#30343b!important;border-color:#515866!important;color:#e1e6ee!important}
body.dark #provider-games-page .provider-selector-entry .catalogue-edit-button:hover,body.dark #provider-games-page .provider-type-entry .catalogue-edit-button:hover{background:#394253!important;border-color:#7187c0!important;color:#fff!important}
body.dark #provider-games-page .catalogue-order-controls button{background:#30343b!important;border-color:#515866!important;color:#e1e6ee!important}
body.dark #provider-games-page .catalogue-order-controls button:hover:not(:disabled){background:#394253!important;border-color:#7187c0!important;color:#fff!important}
body.dark #provider-games-page .catalogue-order-controls button:disabled{color:#838b99!important}
body.dark #provider-games-page .provider-selected-games{background:#262626!important;border-color:#414141!important;box-shadow:none!important;color:#ececec!important}
body.dark #provider-games-page .provider-selected-heading{border-color:#414141!important}
body.dark #provider-games-page .provider-selected-heading h3{color:#f1f3f5!important}
body.dark #provider-games-page .provider-selected-heading p,body.dark #provider-games-page .provider-selected-count{color:#b8c0cc!important}
body.dark #provider-games-page .provider-selected-count{background:#30343b!important}
body.dark #provider-games-page .provider-selected-games .provider-games-wrap{background:transparent!important}
body.dark #provider-games-page .provider-games-toolbar label{color:#ececec!important}
body.dark #provider-games-page .provider-games-toolbar input{background:#30343b!important;border-color:#515866!important;color:#f1f3f5!important;color-scheme:dark}
body.dark #provider-games-page .provider-games-toolbar input::placeholder{color:#a8b0bd!important}
body.dark #provider-games-page .catalogue-game-tools{color:#b8c0cc!important}
body.dark #provider-games-page .catalogue-game-tools .catalogue-edit-button{background:#30343b!important;border-color:#515866!important;color:#e1e6ee!important}
body.dark #provider-games-page .provider-game-card.is-disabled{background:#292d33!important}

/* Clear, touch-friendly provider icon upload controls. */
.catalogue-provider-upload .catalogue-upload-trigger{min-height:42px;padding:9px 14px;border:1px solid #b8c7e7;border-radius:10px;background:#edf2ff;color:#3155b5;font:inherit;font-size:12px;font-weight:700;text-align:left;cursor:pointer}
.catalogue-provider-upload .catalogue-upload-trigger:hover{background:#e3ebff;border-color:#8fa6e5}
.catalogue-provider-upload .catalogue-upload-filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.dark .catalogue-provider-upload .catalogue-upload-trigger{background:#263653;border-color:#536991;color:#e1eaff}
@media(max-width:640px){.provider-selector-edit{width:38px;height:38px;top:50%;right:5px;transform:translateY(-50%)}.provider-selector-edit svg{width:16px;height:16px}}
