:root{color-scheme:dark;font-family:Arial,sans-serif;background:#101318;color:#edf1f7}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;justify-content:space-between;padding:18px 4vw;border-bottom:1px solid #363d47;background:#171d25}header a{font-size:23px;color:var(--brand-accent,#ffad36);text-decoration:none;font-weight:700}header span{font-size:14px;color:#aab6c7;margin-left:12px}main{max-width:1280px;margin:28px auto;padding:0 20px}h1{font-size:25px}h2{font-size:19px}.login{max-width:440px;margin:8vh auto;background:#1e2631;border:1px solid #3b4656;border-radius:14px;padding:28px}label{display:flex;flex-direction:column;gap:8px;margin:15px 0}input,select,button{font:inherit;border:1px solid #455160;border-radius:7px;padding:10px 13px;background:#171d25;color:inherit;min-height:44px}button{cursor:pointer}button.primary{background:var(--brand-accent,#ff9919);color:#111;font-weight:bold;border-color:#ffb447}button:disabled{opacity:.55}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between}small,.hint{color:#aebaca;line-height:1.5}.table-wrap{overflow:auto;border:1px solid #3b4656;border-radius:10px;margin:14px 0 28px}table{width:100%;border-collapse:collapse}td,th{padding:12px;text-align:left;border-bottom:1px solid #313a48}th{background:#222c38}td:last-child{width:100px}dialog{color:inherit;background:#202935;border:1px solid #586576;border-radius:12px;width:min(580px,calc(100% - 24px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#000a}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.checks label{flex-direction:row;align-items:center}.checks input{min-height:24px;width:24px}#message{max-width:1240px;margin:18px auto;padding:0 20px;color:#ffc37c}form>button{width:100%}@media(max-width:600px){header{padding:12px}main{padding:0 12px}.login{margin:24px auto;padding:20px}td,th{padding:10px}header span{display:block;margin:4px 0 0}input,select{font-size:16px}}

.workspace-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.workspace-tabs [aria-current=page]{border-color:var(--brand-accent);color:var(--brand-accent)}td small{display:block;margin-top:4px;color:#b5becc}.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.toolbar{flex-wrap:wrap}dialog{max-height:90dvh;overflow:auto}button{min-height:36px}@media(max-width:600px){.contact-grid{grid-template-columns:1fr}button{min-height:44px}}

#video{width:100%;max-height:65dvh;aspect-ratio:16/9;background:#000}a{color:var(--brand-accent,#ffad36)}

body.reseller-app{font-family:Inter,'Segoe UI',Arial,sans-serif;background:radial-gradient(ellipse at 90% 0,#33251555,transparent 45%),#101318}
.reseller-app header{padding:0 24px;min-height:68px;gap:22px;flex-wrap:wrap;background:#191e26;border-bottom:1px solid #74512b}
.reseller-app header>a{display:flex;align-items:center;gap:10px;max-width:280px;font-size:20px;overflow-wrap:anywhere}
.reseller-app header #brand-name{color:#eef1f5;margin:0;font-size:18px;letter-spacing:.3px}
#brand-logo{width:42px;height:42px;object-fit:contain;border-radius:7px}#brand-logo[hidden],#reseller-nav[hidden]{display:none}
#reseller-nav{display:flex;flex:1;flex-wrap:wrap;gap:3px;align-items:center;margin:0}
#reseller-nav button{border:0;border-bottom:3px solid transparent;border-radius:6px 6px 0 0;background:transparent;color:#c5cbd3;min-height:64px;padding:14px 13px;font-size:13px;font-weight:600}
#reseller-nav button[aria-current=page]{color:var(--brand-accent,#ffad36);border-bottom-color:var(--brand-accent,#ffad36);background:#ffffff05}
.reseller-app main{max-width:1600px;margin:24px auto}.reseller-app h1{font-size:25px;margin:0 0 10px}.reseller-app h2{font-size:18px}
.reseller-app .table-wrap{border-radius:8px;background:#181e27}.reseller-app table{font-size:13px;table-layout:auto}.reseller-app th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#b7c1cf;padding:12px 14px}.reseller-app td{padding:12px 14px}.reseller-app tbody tr:nth-child(even){background:#ffffff03}
.reseller-app .settings-card{max-width:720px;padding:22px;background:#1c232d;border:1px solid #36414f;border-radius:10px}.reseller-app .logo-preview{display:block;max-width:240px;max-height:120px;object-fit:contain;margin:18px 0}.reseller-app input,.reseller-app select,.reseller-app textarea{width:100%;min-width:0}.reseller-app textarea{min-height:100px;background:#171d25;color:inherit;padding:12px;border:1px solid #455160;border-radius:7px;font:inherit}
.reseller-app .checks input,.reseller-app .switch input,.reseller-app .channel-choices input{width:42px;min-width:42px;height:24px;min-height:24px;appearance:none;border-radius:20px;padding:0;background:#3c4653;position:relative;cursor:pointer;flex-shrink:0}.reseller-app input[type=checkbox]::after{content:'';display:block;width:18px;height:18px;background:#dce1e8;border-radius:50%;position:absolute;left:2px;top:2px;transition:transform .15s}.reseller-app input[type=checkbox]:checked{background:var(--brand-accent,#ffad36)}.reseller-app input[type=checkbox]:checked::after{transform:translateX(17px);background:#171d25}
.reseller-app .switch{flex-direction:row;align-items:center;gap:12px}.reseller-app .channel-choices{max-height:320px;overflow:auto;border:1px solid #3b4656;border-radius:8px}.reseller-app .channel-choices label{flex-direction:row;align-items:center;padding:9px 12px;margin:0;border-bottom:1px solid #303a46}.reseller-app .channel-choices label[hidden]{display:none}.reseller-app .channel-choices small{display:block}.reseller-app .toolbar button{white-space:normal}.reseller-app [role=status]{overflow-wrap:anywhere}
@media(max-width:900px){.reseller-app header{padding:12px;gap:10px}#reseller-nav{order:3;flex-basis:100%}#reseller-nav button{min-height:44px;padding:10px 12px}.reseller-app header>a{flex:1}.reseller-app button{min-height:44px}.reseller-app input,.reseller-app select,.reseller-app textarea{font-size:16px}.reseller-app main{margin-top:18px}.reseller-app dialog{padding:14px}.reseller-app .checks{grid-template-columns:1fr}.reseller-app .settings-card{padding:16px}}

/* Compact customer account overview. */
.reseller-app .customer-detail-dialog{width:min(780px,calc(100vw - 32px));box-sizing:border-box;padding:22px;max-height:calc(100dvh - 32px);overflow:auto}
.customer-detail-dialog .dialog-head{align-items:center;margin-bottom:18px}.customer-detail-dialog .dialog-head h2{margin:4px 0 0;font-size:21px;overflow-wrap:anywhere}.customer-eyebrow{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#a9b5c4}.customer-detail-dialog .dialog-head>button{width:36px;height:36px;min-height:36px;padding:0;flex:none;font-size:22px}
.customer-quick-info{display:grid;grid-template-columns:1fr 1.4fr 1.2fr 1fr;gap:14px;margin:0 0 20px;padding:15px;background:#11182070;border:1px solid #394451;border-radius:9px}.customer-quick-info>div{min-width:0}.customer-quick-info dt{color:#a9b5c4;font-size:11px;margin-bottom:7px}.customer-quick-info dd{margin:0;color:#f0f3f7;font-size:13px;font-weight:600;overflow-wrap:anywhere}.customer-state{display:inline-flex;align-items:center;gap:6px;text-transform:capitalize}.customer-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#9aa7b8}.customer-state.is-active:before{background:#6bdfb5}
.customer-action-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.customer-action-sections h3{margin:0 0 10px;font-size:11px;letter-spacing:.5px;color:#abb7c7;text-transform:uppercase}.customer-action-sections button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;margin:0 0 7px;padding:10px 12px;text-align:left;font-size:12px;font-weight:500;background:#ffffff04;border-color:#414c5a}.customer-action-sections button:hover{background:#ffffff0b;border-color:var(--brand-accent,#ffad36)}.customer-action-sections button>span{color:#aeb9c8}.customer-mini-state{font-size:10px;background:#11182070;border-radius:4px;padding:3px 6px}
.customer-detail-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #ffffff12;padding-top:14px;margin-top:12px}.customer-detail-footer [role=status]{flex:1;margin:0;font-size:12px}.customer-detail-footer [role=status]:empty{display:none}.customer-detail-footer button{flex:none;font-size:12px;min-height:38px}.customer-detail-footer .customer-disable{color:#f0b4af;border-color:#83504f;background:#9d383510}
@media(max-width:600px){.reseller-app .customer-detail-dialog{padding:16px}.customer-quick-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.customer-action-sections{grid-template-columns:1fr;gap:14px}.customer-action-sections section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.customer-action-sections h3{grid-column:1/-1;margin-bottom:1px}.customer-action-sections button{margin:0;min-height:44px}.customer-detail-footer{flex-wrap:wrap}.customer-detail-footer [role=status]{flex-basis:100%}}

.app-order-price{display:flex;align-items:center;gap:12px;margin-bottom:18px}.app-order-price strong{font-size:24px;color:var(--brand-accent,#ffad36)}.app-order-price span{font-size:12px;color:#abb7c7}.app-branding-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.app-branding-fields label{min-width:0;padding:14px;border:1px solid #414c5a;border-radius:8px;background:#11182040}.app-branding-fields img{max-width:100%;max-height:120px;object-fit:contain;align-self:flex-start}.app-branding-fields small{font-size:11px;line-height:1.5;color:#abb7c7}.app-branding-fields input{font-size:12px}@media(max-width:600px){.app-branding-fields{grid-template-columns:1fr}}

/* Read-only channel telemetry, fixed geometry during refresh. */
.reseller-links small{display:block;color:var(--muted,#a5adbb);margin-top:4px}.reseller-links td:nth-child(2){overflow-wrap:anywhere}.reseller-channel-filters{display:flex;gap:12px;align-items:end;margin:16px 0}.reseller-channel-filters label:first-child{flex:1}.reseller-channel-filters label{min-width:160px}.reseller-channels table{table-layout:fixed;width:1650px;font-variant-numeric:tabular-nums}.reseller-channels td{height:76px;box-sizing:border-box;overflow:hidden}.reseller-channels th:nth-child(1){width:55px}.reseller-channels th:nth-child(2){width:65px}.reseller-channels th:nth-child(3){width:220px}.reseller-channels th:nth-child(4){width:170px}.reseller-channels th:nth-child(5){width:65px}.reseller-channels th:nth-child(6){width:100px}.reseller-channels th:nth-child(7){width:140px}.reseller-channels th:nth-child(8){width:410px}.reseller-channels th:nth-child(9){width:170px}.reseller-channels th:nth-child(10){width:110px}.reseller-channels td small{display:block;color:var(--muted,#a5adbb);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}.reseller-channels td>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reseller-channels img{width:45px;height:40px;object-fit:contain}.reseller-channels th button{padding:0;border:0;background:none;color:inherit;font:inherit}.reseller-stream-info{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.reseller-stream-info strong{font-size:11px;white-space:nowrap}.reseller-state{display:inline-block;border-radius:4px;padding:4px 7px;background:#323945;font-size:11px}.reseller-state.online{background:#254e38;color:#b2f1cd}.reseller-channel-actions{display:flex;gap:5px}.reseller-channel-actions button{width:34px;height:32px;padding:0;font-size:18px}.channel-uptime{white-space:nowrap}.reseller-channels tr:nth-child(even){background:#ffffff03}@media(max-width:650px){.reseller-channel-filters{flex-wrap:wrap}.reseller-channel-filters label:first-child{flex-basis:100%}.reseller-channel-filters label{flex:1;min-width:120px}}

.connection-agent{max-width:290px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Reseller message history preserves newlines on narrow screens. */
.customer-email-body{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}

.reseller-email-switch{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}.reseller-email-switch input{position:absolute;left:0;width:48px;height:44px;margin:0;opacity:0}.reseller-email-switch span{display:block;width:48px;height:26px;border:1px solid #59616b;border-radius:999px;background:#2b3038;flex:0 0 48px;box-sizing:border-box}.reseller-email-switch span:before{content:"";display:block;width:18px;height:18px;margin:3px;border-radius:50%;background:#d3d8df;transition:transform .16s}.reseller-email-switch input:checked+span{background:#ff9800}.reseller-email-switch input:checked+span:before{transform:translateX(22px);background:#171a20}.reseller-email-switch input:focus-visible+span{outline:2px solid #ffb249;outline-offset:3px}

/* Receipt gateway settings */
.receipt-gateway{min-width:0;overflow-wrap:anywhere}
.receipt-gateway form{max-width:680px}
.receipt-gateway form>label{display:flex;flex-direction:column;gap:8px;margin:16px 0}
.receipt-gateway input:not([type=checkbox]){box-sizing:border-box;width:100%;min-height:44px;font-size:16px}
.receipt-gateway form>label.switch{flex-direction:row;align-items:center;min-height:44px;gap:12px}
.receipt-gateway .switch input{width:22px;min-width:22px;height:22px;min-height:22px;margin:0;flex:0 0 auto}
.receipt-gateway .toolbar{display:flex;flex-wrap:wrap;gap:12px}
.receipt-gateway button{min-height:44px;padding:10px 16px;white-space:normal;background:#253a50;color:#f3f6fa;border:1px solid #526b83;border-radius:8px;cursor:pointer}
.receipt-gateway button:focus-visible,.receipt-gateway input:focus-visible,.receipt-gateway summary:focus-visible{outline:3px solid #ffae42;outline-offset:3px}
.receipt-gateway summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.receipt-gateway details{margin-top:16px}
.receipt-gateway li{margin:10px 0}
