/* Scoped to the independent portal; shared Relay styles stay unchanged. */
.provider-backends-page .provider-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:12px 16px;margin-bottom:12px;border-radius:14px}
.provider-backends-page .provider-filters label{gap:5px;font-size:12px;flex:0 1 260px;min-width:0}
.provider-backends-page .provider-filters input,.provider-backends-page .provider-filters select{height:38px;min-height:38px;padding:7px 10px;font-size:14px;border-radius:8px}
.provider-backends-page .provider-filters button,.provider-backends-page .provider-filters .master-link{min-height:38px;padding:8px 14px;font-size:13px}
.provider-backends-page .master-header{margin-bottom:16px}
.provider-backends-page .master-notice{padding:10px 14px;font-size:12px;line-height:1.5;margin:0 0 12px}
.provider-backends-page .provider-result-count{font-size:12px;margin:0 0 10px}
.provider-backends-page .master-games{gap:12px}
.provider-backends-page .master-game-card{padding:16px;border-radius:16px}
.provider-backends-page .master-game-identity{gap:12px}
.provider-backends-page .master-game-icon{width:64px;height:64px;flex-basis:64px;border-radius:13px}
.provider-backends-page .master-game-card h2{font-size:17px;margin:0 0 8px}
.provider-backends-page .master-game-card .master-muted{font-size:12px;line-height:1.5}
.provider-backends-page .master-game-card>p{margin:10px 0}
.provider-backends-page .provider-balance{gap:4px;margin:6px 0 12px}
.provider-backends-page .provider-balance strong{font-size:26px}
.provider-backends-page .provider-check-actions{margin-top:10px;gap:6px}
.provider-backends-page .master-game-action{min-height:38px;padding:10px 0 0;font-size:13px}
@media(max-width:600px){
 .provider-backends-page .provider-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:8px}
 .provider-backends-page .provider-filters label{grid-column:1/-1}
 .provider-backends-page .provider-filters input,.provider-backends-page .provider-filters select,.provider-backends-page .provider-filters button,.provider-backends-page .provider-filters .master-link{min-height:44px;height:44px}
}
.master-site{overflow-wrap:break-word}
.master-groups-header{align-items:flex-start}
.master-create-group{position:relative;flex-shrink:0;margin-top:4px}
.master-site .master-create-group>summary{display:block;list-style:none;padding:12px 18px;color:#171710;font-size:14px;white-space:nowrap;border-radius:12px}
.master-create-group>summary::-webkit-details-marker{display:none}
.master-create-panel{position:absolute;z-index:30;right:0;top:56px;width:min(520px,calc(100vw - 44px));max-height:calc(100dvh - 190px);overflow:auto;box-shadow:0 20px 65px #0009;border:1px solid #4c4730}
.master-create-panel .errorlist{color:#f7928d}
.master-create-panel .master-native-form{gap:16px}
.master-create-field label{margin-bottom:6px}
.master-create-field .helptext ul{margin:6px 0;padding-left:18px}
@media(max-width:650px){.master-groups-header{flex-wrap:wrap}.master-create-group{margin-left:auto}.master-create-panel{max-height:65dvh}}
.report-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.report-filters{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.report-chart{display:block;width:100%;height:auto;min-height:180px;max-height:360px}
.chart-legend{display:flex;gap:24px;margin:18px 0;font-size:14px}
.master-site .chart-load{color:#d6b845;background:transparent}.master-site .chart-redeem{color:#60cda0;background:transparent}
.report-key-values{display:grid;gap:14px;margin:24px 0}
.report-key-values>div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #28313d;padding-bottom:12px}
.report-key-values dt{color:#aab4c2}.report-key-values dd{margin:0;color:#f4f4f4;font-weight:700}
.provider-balance{display:grid;gap:8px;margin:12px 0 20px}.provider-balance strong{font-size:30px}
.master-site summary{cursor:pointer;color:#d6b845;min-height:44px;padding:12px 0}
.report-pagination{justify-content:space-between}
.master-site .master-main{max-width:none;width:calc(100% - 264px);min-height:100vh}
.master-site .master-main.master-login{max-width:570px;width:auto;min-height:0}
.master-sidebar{overflow-y:auto}
.master-site .master-sidebar .nav-label{margin-top:20px}
.master-settings-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px;align-items:start}
.master-settings-grid>*{min-width:0}
.master-native-form{display:grid;gap:20px}
.master-native-form .helptext{display:block;font-size:12px;color:#95a0af;line-height:1.6}
.master-native-form .helptext ul{padding-left:20px}
.master-native-form label:has(input[type=checkbox]){flex-direction:row;align-items:center}
.master-native-form input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:#d6b845}
.master-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.master-connection-meta{font-size:13px;line-height:1.7;color:#aeb7c4}
.master-state.login_accepted{color:#60cda0;background:#143c30}
.master-state.login_rejected,.master-state.provider_unavailable,.master-state.timeout,.master-state.invalid_response{color:#f7928d;background:#3d2429}
.master-panel form p{line-height:1.7}
.master-site .master-sidebar .nav-item{font-size:14px;gap:12px;min-height:56px;line-height:1.4}
.master-site .master-nav-icon{display:block;width:28px;height:28px;flex:0 0 28px;color:inherit}
.master-menu-toggle{display:none;background:#29291f;border:1px solid #494632;border-radius:10px;color:#dcc985;padding:10px 14px;font-size:14px}
.master-main,.master-panel,.master-header>div,.master-filters>*,.master-form-grid>*{min-width:0}
.master-site input,.master-site select{min-width:0;max-width:100%;min-height:48px;font-size:16px}
.master-site button,.master-site .nav-item{min-height:44px}
.master-site .master-check input{flex:0 0 24px;width:24px;height:24px;min-height:24px;accent-color:#d6b845}
.master-site .nav-item[aria-current="page"]{background:#2d2c23;color:#e5c34d;border-left:3px solid #d6b845}
.master-table-wrap{position:relative;max-width:100%;overscroll-behavior-inline:contain}
@media(max-width:900px){
 .report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .master-sidebar{position:relative;padding:20px 22px 14px}
 .master-menu-toggle:not([hidden]){display:block;position:absolute;right:20px;top:24px}
 .master-sidebar[data-menu-open="false"] nav,.master-sidebar[data-menu-open="false"] .master-sidebar-footer{display:none}
 .master-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;margin-top:16px}
 .master-sidebar .nav-item{margin:0;padding:10px;font-size:13px;min-width:0;white-space:normal}
 .master-sidebar-footer{display:flex;justify-content:flex-end;margin-top:6px}
 .master-site .master-main{width:100%;padding:24px 22px 36px}
 .master-settings-grid{grid-template-columns:minmax(0,1fr)}
 .master-site .master-login{width:auto;margin:5vh auto;max-width:570px}
}
@media(max-width:520px){
 .report-metrics{grid-template-columns:minmax(0,1fr)}
 .master-sidebar{padding:18px 16px 10px}
 .master-main{padding:24px 16px max(24px,env(safe-area-inset-bottom))}
 .master-site h1{font-size:29px;line-height:1.2;letter-spacing:-.7px}
 .master-header{margin-bottom:24px;gap:12px}
 .master-panel{padding:18px;border-radius:18px}
 .master-filters,.master-form-grid{grid-template-columns:minmax(0,1fr)}
 .master-game-search{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
 .master-game-identity{gap:14px}
 .master-game-icon{width:72px;height:72px;flex-basis:72px;border-radius:14px}
 .master-games h2{font-size:19px}
 .master-site form>.master-primary{width:100%}
 .master-site .master-check{align-items:flex-start;line-height:1.5}
 .master-notice,.master-error{padding:16px}
}
/* Compact Groups workspace, without shrinking setup fields or other pages. */
.master-site .master-main.master-groups-page{padding:28px 34px 32px}
.master-groups-page>.master-notice{margin:0 0 14px;padding:12px 16px}
.master-groups-page .master-groups-header{margin-bottom:16px;gap:16px}
.master-groups-page .master-groups-header .eyebrow{margin:0 0 6px}
.master-groups-page .master-groups-header h1{margin:0 0 8px}
.master-groups-page .master-groups-header>div>.master-muted{margin:0;line-height:1.5;font-size:15px}
.master-groups-page .report-filters{padding:12px 16px;margin-bottom:12px;gap:10px;grid-template-columns:repeat(3,minmax(140px,1fr)) auto auto}
.master-groups-page .report-filters label{gap:6px;font-size:13px}
.master-groups-page .report-filters input,.master-groups-page .report-filters select{height:44px;min-height:44px;padding:8px 12px;line-height:24px}
.master-groups-page .report-filters button,.master-groups-page .report-filters>.master-link{height:44px;min-height:44px;padding:10px 16px;white-space:nowrap;font-size:14px;line-height:22px}
.master-groups-page .master-groups-table{padding:10px 18px;margin-bottom:14px}
.master-groups-page .master-groups-table td{font-size:16px;line-height:1.45;padding:12px 10px}
.master-groups-page .master-groups-table th{font-size:12px;padding:13px 10px;letter-spacing:.4px}
.master-groups-page .master-groups-table td .master-link{font-size:16px;font-weight:700;display:inline-block;min-height:44px;padding:10px 0}
@media(max-width:1200px){.master-groups-page .report-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.master-site .master-main.master-groups-page{padding:20px 22px 28px}}
@media(max-width:600px){
 .master-site .master-main.master-groups-page{padding:18px 16px 24px}
 .master-groups-page .master-groups-header{gap:10px;margin-bottom:14px}
 .master-groups-page .report-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}
 .master-groups-page .report-filters>div:first-of-type{grid-column:1/-1}
 .master-groups-page .report-filters button,.master-groups-page .report-filters>.master-link{padding:10px 8px}
 .master-groups-page .master-groups-table{padding:8px 12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.master-site *{transition:none!important}}

/* Compact provider checks, with touch-sized buttons on every screen. */
.provider-check-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:14px 0 0}
.provider-check-actions button{min-height:42px;padding:9px 10px;font-size:13px;width:100%}
.master-secondary{border:1px solid #46546a;border-radius:10px;background:#18283c;color:#90bbff;font-weight:700;cursor:pointer}
.master-secondary:disabled{opacity:.35;cursor:not-allowed}
.master-header>[data-provider-check]{display:grid;gap:7px;flex-shrink:0}
@media(max-width:600px){.master-header:has(>[data-provider-check]){flex-wrap:wrap}.master-header>[data-provider-check]{width:100%}.provider-check-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Phone ledger-first view. Desktop filters and totals remain expanded. */
.ledger-options{margin:0;padding:0;border:0}
.ledger-options>summary{display:none}
@media(max-width:600px){
 .master-ledger-page>.master-header{margin-bottom:12px}
 .master-ledger-page>.master-header .eyebrow,.master-ledger-page>.master-header .master-muted{display:none}
 .master-ledger-page>.master-header h1{margin-bottom:0}
 .ledger-options{margin-bottom:14px}
 .ledger-options>summary{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:10px 14px;border:1px solid currentColor;border-radius:9px;cursor:pointer;font-size:14px;list-style:none}
 .ledger-options>summary::-webkit-details-marker{display:none}
 .ledger-options>summary small{font-size:11px;opacity:.8}
 .ledger-options[open]>summary{margin-bottom:14px}
 .ledger-options[open]>summary>span{transform:rotate(180deg)}
}
