/* Operator connections and credits. Scoped to preserve agency billing. */
.os-admin{--os-line:#35333f;--os-muted:#a6a2b5;--os-accent:#b9a5ff;max-width:1280px;margin-inline:auto;min-width:0}
.os-admin [hidden]{display:none!important}
.os-admin h2,.os-admin h3,.os-admin p{margin:0}
.os-admin button,.os-admin .button{white-space:normal;min-height:42px;max-width:100%;height:auto;line-height:1.35;overflow-wrap:anywhere}
.os-admin button:focus-visible,.os-admin a:focus-visible,.os-admin summary:focus-visible{outline:2px solid #c1afff;outline-offset:4px}
.os-admin-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 24px}
.os-admin-head h2{font-size:26px;line-height:1.2;letter-spacing:-.8px;margin:7px 0 8px}
.os-admin-head p{color:var(--os-muted);font-size:14px;line-height:1.6}
.os-admin-head>.button{flex-shrink:0;background:#202029;border:1px solid var(--os-line);font-size:13px}
.os-switch{display:inline-flex;gap:5px;border:1px solid var(--os-line);border-radius:13px;padding:5px;margin:0 0 24px;background:#111116}
.os-switch button{border:0;background:transparent;color:var(--os-muted);box-shadow:none;font-size:14px;padding:10px 20px;border-radius:9px}
.os-switch button[aria-pressed=true]{background:#302640;color:#e6dcff;box-shadow:inset 0 0 0 1px #53406b}
.os-admin #operator-setup{border:0;box-shadow:none;background:none;padding:0;margin:0}
.os-overview{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:27px 30px;background:linear-gradient(115deg,#292132,#1a1823 65%,#18171f);border:1px solid #49395b;border-radius:18px}
.os-overview h2{font-size:28px;letter-spacing:-.8px;line-height:1.2;margin:8px 0 10px}
.os-overview p{color:#bcb5ca;line-height:1.55;font-size:14px}
.os-count{flex-shrink:0;text-align:right}
.os-count>strong{display:block;font-size:35px;line-height:1.3;letter-spacing:-1px}
.os-count strong span{font-size:19px;color:#9690a5;font-weight:500;margin-left:6px;letter-spacing:0}
.os-count>small{font-size:12px;color:#b7b0c6;display:block}
.os-section-label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:27px 0 12px}
.os-section-label>span{font-size:14px;font-weight:650;color:#e6e2ef}
.os-section-label>small{font-size:12px;color:var(--os-muted)}
.os-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.os-provider{min-width:0;margin:0!important;border:1px solid var(--os-line);border-radius:15px;background:#19181f;overflow:hidden}
.os-provider>summary{display:flex;align-items:center;gap:13px;padding:19px;cursor:pointer;list-style:none;background:transparent;min-height:92px}
.os-provider>summary::-webkit-details-marker,.ocred-checks>summary::-webkit-details-marker{display:none}
.os-provider>summary:hover{background:#211e29}
.os-provider[open]{border-color:#695184}
.os-provider[open]>summary{border-bottom:1px solid #39303f;background:#231d2b}
.os-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:#342747;border:1px solid #503761;color:#d8bcff;font-weight:750;font-size:19px;line-height:1}
.os-higgsfield .os-icon{background:#d3ff39;border-color:#d3ff39;color:#141709;font-style:italic}
.os-payments .os-icon{background:#253b31;border-color:#345844;color:#a1e5b7}
.os-email .os-icon{background:#322c41;border-color:#4a3d5f;color:#d0bbf8}
.os-google .os-icon{background:#f4f3f8;border-color:#dddbe4;color:#4285f4}
.os-onlyfansapi .os-icon{background:#09b4df;border-color:#09b4df;color:white;font-size:15px}
.os-fanvue .os-icon{background:#49f264;border-color:#49f264;color:#092911}
.os-telegram .os-icon{background:#248ec6;border-color:#248ec6;color:white}
.os-provider-label{min-width:0;flex:1;display:grid;gap:5px}
.os-provider-label>strong{font-size:15px;font-weight:650;line-height:1.3;overflow-wrap:anywhere}
.os-provider-label>small{font-size:12px;color:var(--os-muted);line-height:1.45;overflow-wrap:anywhere}
.os-badge{flex-shrink:0;border:1px solid #49414f;color:#bdb2cc;background:#292331;font-size:11px;font-weight:550;border-radius:7px;padding:5px 8px;line-height:1.3;white-space:nowrap}
.os-badge.good{color:#ade4c3;background:#1c332b;border-color:#355445}
.os-badge.warn{color:#f0cf99;background:#352b1d;border-color:#665032}
.os-chevron{color:#a89bbb;font-size:20px;line-height:1;margin-left:2px;flex:none;transition:transform .15s}
.os-provider[open]>summary>.os-chevron,.ocred-checks[open]>summary>.os-chevron{transform:rotate(180deg)}
.os-provider-body{padding:22px}
.os-provider-body p{font-size:13px;line-height:1.7;color:#bcb5c9;margin:0 0 16px}
.os-provider-body form{display:grid;gap:14px;margin:0}
.os-provider-body form>p{margin:0}
.os-provider-body form>label:not(.check){display:grid;gap:7px;font-size:13px;font-weight:550;color:#ddd6e9;margin:0}
.os-provider-body input:not([type=checkbox]){display:block;min-width:0;max-width:100%;width:100%;min-height:46px;border:1px solid #484050;border-radius:10px;background:#100f15;padding:11px 13px;font-size:14px;color:#eeebf6;margin:0}
.os-provider-body input::placeholder{color:#857d94}
.os-provider-body input:focus{border-color:#bba0f1;outline:2px solid #a387d733;outline-offset:1px}
.os-provider-body input[readonly]{color:#aca4bb;background:#201c28;font-size:12px;cursor:text}
.os-provider-body .check{display:flex;align-items:flex-start;gap:10px;color:#bcb5c9;font-size:12px;line-height:1.6;margin:0}
.os-provider-body .check input{margin-top:3px;flex:none}
.os-provider-body form>button{justify-self:start;font-size:13px;padding:11px 16px}
.os-provider-body small{display:block;color:var(--os-muted);font-size:12px;line-height:1.6}
.os-provider-body .error:empty{display:none}
.os-provider-body .error{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:0}
.os-provider-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:17px}
.os-provider-metrics>div{background:#121116;border:1px solid #332c3b;border-radius:11px;padding:13px 15px}
.os-provider-metrics strong{display:block;font-size:15px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.os-provider-body .os-notice{border-left:2px solid #b9a5ff;padding:9px 12px;background:#282030;border-radius:0 7px 7px 0;color:#d4c6e8}
.os-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:3px}
.os-actions button,.os-actions .button{font-size:13px;padding:11px 16px}
.os-guide{border:1px solid #3d3548;border-radius:10px;background:#151219;margin:0}
.os-guide>summary{cursor:pointer;font-size:12px;font-weight:600;color:#cbbbdf;padding:12px 14px}
.os-guide>div{padding:0 14px 13px}
.os-guide p:last-child{margin:0}
.os-guide code{font-size:11px;overflow-wrap:anywhere;white-space:normal}
.os-guide .setup-packs{padding-left:18px;color:#b8aec5;font-size:12px;line-height:1.7;margin-bottom:0}
.os-guide .setup-packs li{margin:8px 0}
.os-test{display:grid;justify-items:start;gap:9px;margin-top:15px;padding-top:15px;border-top:1px solid #39303f}
.os-checked{margin-top:16px}
.setup-result:empty{display:none}
.os-admin .setup-result{font-size:13px;color:#cce3d5;background:#1e3028;border:1px solid #395443;border-radius:10px;padding:12px 16px;margin:16px 0 0;overflow-wrap:anywhere}
.os-security{font-size:12px;color:#91899f;line-height:1.7;margin:20px 3px 0!important}
.os-loading,.os-load-error{border:1px solid var(--os-line);border-radius:15px;padding:25px!important;color:var(--os-muted);background:#19171f}
.os-load-error p{margin-top:8px}
.ocred-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.ocred-summary>div{display:grid;gap:7px;padding:22px;border:1px solid var(--os-line);border-radius:15px;background:#1c1924}
.ocred-summary>div:first-child{background:linear-gradient(125deg,#33263e,#211c2a);border-color:#5c456f}
.ocred-summary span{font-size:12px;color:#b9b0c9}
.ocred-summary strong{font-size:32px;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1.25}
.ocred-summary .ocred-service-status{font-size:22px;letter-spacing:-.5px}
.ocred-summary small{color:#958ba7;font-size:12px;line-height:1.5}
.ocred-card{border:1px solid var(--os-line);border-radius:15px;background:#19171f;overflow:hidden;margin:0 0 16px;padding:0;min-width:0}
.ocred-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:23px}
.ocred-heading h3{font-size:19px;letter-spacing:-.4px;line-height:1.35;margin:6px 0}
.ocred-heading p{font-size:13px;line-height:1.6;color:var(--os-muted)}
.ocred-heading>button{flex:none}
.ocred-count{display:inline-grid;place-items:center;font-size:11px;min-width:23px;height:23px;border-radius:7px;background:#3a2d4b;color:#d4c1ed;margin-left:5px;vertical-align:middle}
.ocred-list{padding:0 23px}
.ocred-row{display:grid;grid-template-columns:36px minmax(0,1fr) minmax(110px,auto) auto;align-items:center;gap:14px;border-top:1px solid #302b39;padding:17px 0}
.ocred-avatar{display:grid;place-items:center;width:36px;height:36px;background:#34263f;border:1px solid #4a365b;border-radius:11px;color:#d7c0ee;font-size:15px;font-weight:650}
.ocred-identity{min-width:0;display:grid;gap:4px}
.ocred-identity strong{font-size:14px;color:#ebe6f3;line-height:1.4;overflow-wrap:anywhere}
.ocred-identity small,.ocred-identity p{font-size:12px;line-height:1.5;color:var(--os-muted);overflow-wrap:anywhere}
.ocred-balance{text-align:right;display:grid;gap:3px}
.ocred-balance strong{font-size:19px;font-variant-numeric:tabular-nums;line-height:1.4}
.ocred-balance small{font-size:11px;color:var(--os-muted)}
.ocred-row>button{font-size:12px;min-height:38px;padding:9px 13px}
.ocred-empty{display:flex;align-items:center;gap:13px;padding:21px 23px 25px;color:#c6becf}
.ocred-empty>span{display:grid;place-items:center;width:37px;height:37px;border:1px solid #375443;background:#20352b;color:#a8dabe;border-radius:50%;flex:none}
.ocred-empty strong{font-size:14px;font-weight:550}
.ocred-empty p{font-size:12px;line-height:1.6;margin-top:4px;color:var(--os-muted)}
.ocred-search{padding:0 23px 20px;margin:0}
.ocred-search>label{display:block;font-size:12px;font-weight:550;color:#b8adc8;margin-bottom:8px}
.ocred-search>div{display:flex;gap:8px}
.ocred-search input{min-width:0;flex:1;width:auto;margin:0;border-radius:10px;background:#100e15;border:1px solid #45394f;padding:11px 13px;font-size:13px;min-height:43px}
.ocred-search button{font-size:13px}
.ocred-pagination{display:flex;gap:8px;padding:0 23px 18px}
.ocred-pagination:empty{display:none}
.ocred-history{padding:0 23px}
.ocred-history>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;padding:16px 0;border-top:1px solid #302b39;align-items:center}
.ocred-history strong{font-size:13px;overflow-wrap:anywhere}
.ocred-history time{font-size:12px;color:var(--os-muted)}
.ocred-history b{font-size:16px;color:#b5e6c6;font-variant-numeric:tabular-nums}
.ocred-history b small{font-size:11px;color:#8ea498;font-weight:400}
.ocred-checks>summary{display:flex;gap:15px;justify-content:space-between;align-items:center;cursor:pointer;padding:21px 23px;list-style:none}
.ocred-checks>summary strong{display:block;font-size:14px;line-height:1.4}
.ocred-checks>summary small{display:block;font-size:12px;line-height:1.5;color:var(--os-muted);margin-top:5px}
.ocred-checks>div{padding:0 23px 22px;display:grid;justify-items:start;gap:13px}
.ocred-checks>div>p,.ocred-checks>div>small{font-size:13px;line-height:1.6;color:var(--os-muted)}
.ocred-checks .health-detail{width:100%;border:1px solid #50422f;background:#282116;border-radius:10px;padding:15px}
.ocred-checks .health-detail p{font-size:13px;line-height:1.6;margin:8px 0}
.ocred-checks .health-detail small{font-size:11px;color:var(--os-muted);overflow-wrap:anywhere}
.ocred-payment-review{padding:23px;border-color:#695134;background:#251f19}
.ocred-payment-review h3{font-size:19px;margin:8px 0 16px}
.ocred-payment-review .topup-row small{overflow-wrap:anywhere}
@media(max-width:1100px){.os-provider-grid{grid-template-columns:1fr}.os-provider>summary{min-height:84px}.os-provider-metrics{max-width:none}}
@media(max-width:640px){
  .os-admin-head{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:18px}.os-admin-head h2{font-size:23px}.os-admin-head>.button{font-size:12px}
  .os-switch{display:flex;width:100%;margin-bottom:18px}.os-switch button{flex:1;padding:10px 9px;font-size:13px}
  .os-overview{padding:21px;gap:18px;align-items:flex-start}.os-overview h2{font-size:23px}.os-overview p{font-size:13px}.os-count>strong{font-size:29px}.os-count>small{max-width:70px;font-size:11px;line-height:1.5}.os-count strong span{font-size:15px}
  .os-section-label{display:grid;gap:5px;margin-top:24px}.os-section-label>small{font-size:11px}
  .os-provider>summary{display:grid;grid-template-columns:36px minmax(0,1fr) 13px;gap:6px 11px;padding:16px}.os-icon{width:36px;height:36px;border-radius:10px;font-size:17px;grid-row:1/3}.os-provider-label{grid-column:2;grid-row:1;gap:4px}.os-provider-label>strong{font-size:14px}.os-provider-label>small{font-size:11px}.os-provider>summary>.os-badge{grid-column:2;grid-row:2;justify-self:start;font-size:10px;padding:4px 7px}.os-chevron{grid-column:3;grid-row:1/3;font-size:18px}
  .os-provider-body{padding:17px}.os-provider-metrics{gap:8px}.os-provider-metrics>div{padding:11px}.os-provider-metrics strong{font-size:13px}.os-provider-metrics small{font-size:10px}.os-provider-body p{font-size:12px}.os-provider-body input:not([type=checkbox]){font-size:16px}.os-provider-body label:not(.check){font-size:12px}.os-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.os-actions button[type=submit]{grid-column:1/-1}.os-actions button,.os-actions .button{font-size:12px;padding:10px}.os-actions>[data-setup-higgsfield-check]{grid-column:1/-1}.os-security{font-size:11px}
  .ocred-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ocred-summary>div{padding:15px;gap:5px}.ocred-summary>div:last-child{grid-column:1/-1;grid-template-columns:1fr auto;align-items:center}.ocred-summary>div:last-child>small{grid-column:1}.ocred-summary>div:last-child>strong{grid-column:2;grid-row:1/3;font-size:17px}.ocred-summary span,.ocred-summary small{font-size:11px}.ocred-summary strong{font-size:27px}
  .ocred-heading{padding:18px;gap:10px}.ocred-heading h3{font-size:17px}.ocred-heading p{font-size:12px}.ocred-heading .eyebrow{font-size:10px}.ocred-heading>button{padding:8px 10px;font-size:11px}
  .ocred-list{padding:0 18px}.ocred-row{grid-template-columns:33px minmax(0,1fr);gap:11px;padding:16px 0}.ocred-avatar{width:33px;height:33px;border-radius:10px}.ocred-identity strong{font-size:13px}.ocred-identity small{font-size:11px}.ocred-balance{grid-column:1/3;grid-row:2;justify-self:start;text-align:left;padding-left:44px;max-width:calc(100% - 104px)}.ocred-balance strong{font-size:18px}.ocred-row>button{grid-column:1/3;grid-row:2;justify-self:end;align-self:center;padding:9px 10px;max-width:102px;font-size:11px}.ocred-balance small{font-size:10px}
  .ocred-empty{padding:17px 18px 21px}.ocred-empty strong{font-size:13px}.ocred-empty p{font-size:11px}.ocred-search{padding:0 18px 18px}.ocred-search input{font-size:16px}.ocred-search button{font-size:12px;padding:10px}.ocred-history{padding:0 18px}.ocred-history>div{grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}.ocred-history time{grid-column:1;grid-row:2;font-size:11px}.ocred-history b{grid-column:2;grid-row:1/3;font-size:15px}.ocred-history b small{display:block;text-align:right}.ocred-checks>summary{padding:18px}.ocred-checks>div{padding:0 18px 18px}.ocred-payment-review{padding:18px}.ocred-pagination{padding:0 18px 16px}
}
@media(prefers-reduced-motion:reduce){.os-chevron{transition:none}}
