:root{color-scheme:light;font:16px/1.55 system-ui,"PingFang SC","Microsoft YaHei",sans-serif;color:#142037;background:#f4f7fb}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
bar,main{display:block}
a{color:#184baf}
.wrap{width:min(1100px,calc(100% - 48px));margin:auto}
.bar{background:#15264a;color:white;border-bottom:3px solid #3969d5}
.bar-inner,.title-row,.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.bar-inner{min-height:64px}
h1{font-size:2rem;line-height:1.2;margin:30px 0 20px;letter-spacing:-.025em}
h2{line-height:1.3}
button,input,select,textarea{font:inherit}
button,select,input,textarea{border:1px solid #b9c5d8;border-radius:8px;background:white;color:#142037;padding:8px 12px}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2a67dc;outline-offset:2px}
.primary,button[aria-pressed=true]{background:#2859bf;border-color:#2859bf;color:#fff}
.panel{border-radius:12px;border:1px solid #dce4f0;background:white;padding:18px 22px;margin:14px 0}
.login{max-width:450px;margin:48px auto}
.login h1{margin-top:0}
.login form,.login label{display:grid;gap:12px}
nav{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.filter{display:inline-flex;gap:12px;align-items:center}
.item time,.item details,#status{color:#4a5870}
.item details{overflow-wrap:anywhere}
.message{white-space:pre-wrap;overflow-wrap:anywhere}
.reply{background:#edf3ff;padding:10px 12px;border-left:3px solid #3969d5}
.reply-form{margin-top:12px}
.reply-form label,.reply-form textarea{display:block;width:100%}
.reply-form textarea{margin:5px 0 10px;resize:vertical}
.reply-files{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px;margin-bottom:12px}
.reply-files input{display:block;width:100%;margin-top:4px}
.actions{justify-content:flex-start}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin-top:12px}
.gallery img,.gallery video{width:100%;height:145px;object-fit:contain;display:block;background:#eff4fc;border-radius:6px}
.empty{text-align:center;color:#526079}
.doc-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:24px}
.doc-nav{align-content:start;flex-direction:column;position:sticky;top:12px;max-height:85vh;overflow:auto;padding:12px}
.doc-nav a{font-size:.875rem;text-decoration:none}
pre{background:#edf3ff;border-radius:8px;padding:12px;overflow:auto;font-size:.875rem}
.method{font-size:.875rem;color:#174da9}
table{border-collapse:collapse;width:100%}
td,th{vertical-align:top;text-align:left;border-bottom:1px solid #dce4f0;padding:8px;overflow-wrap:anywhere}
@media(max-width:650px){.wrap{width:calc(100% - 24px)}.doc-layout{grid-template-columns:1fr}.doc-nav{position:static;max-height:240px}}
.download{color:#e9f1ff}
.admin-main{width:min(1500px,calc(100% - 32px))}
.user-filter-grid,.user-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px 16px}
.user-filters label,.user-editor label{display:grid;gap:4px;font-size:.875rem;color:#4a5870}
.user-filters .actions{margin-top:14px}
.admin-table-wrap{border:1px solid #dce4f0;border-radius:12px;background:white;overflow:auto;margin-bottom:12px}
.admin-table{min-width:max-content;font-size:.875rem}
.admin-table th{background:#edf2fa;color:#394b67;white-space:nowrap}
.admin-table td,.admin-table th{padding:10px 12px;vertical-align:middle}
.admin-table tbody tr:last-child td{border-bottom:0}
.admin-table tbody tr:hover{background:#f8faff}
.user-cell,.user-row-actions{display:flex;gap:8px;align-items:center}
.user-cell strong{max-width:15ch;overflow-wrap:anywhere}
.user-avatar{width:34px;height:34px;border-radius:50%;background:#dfeaff;color:#244fa0;display:inline-grid;place-items:center;object-fit:cover;flex-shrink:0}
.user-id{display:block;max-width:18ch;overflow-wrap:anywhere}
.user-times{display:grid;gap:3px}
.user-state{display:inline-block;border-radius:14px;padding:2px 9px;background:#eef1f6;white-space:nowrap}
.user-state.state-active{background:#e6f4ec;color:#196043}
.user-state.state-suspended{background:#fbecef;color:#9f2f43}
.user-dialog{width:min(1240px,calc(100% - 32px));max-height:calc(100% - 32px);border:1px solid #dce4f0;border-radius:16px;padding:0;color:inherit;background:#f4f7fb}
.user-dialog::backdrop{background:#13234581}
.user-dialog-header{position:sticky;top:0;background:#fff;padding:14px 22px;border-bottom:1px solid #dce4f0;z-index:1}
.user-dialog-header h2{margin:0}
.user-dialog-content{padding:20px}
.user-summary{padding:14px;background:#fff;border-radius:10px}
.user-summary dt{font-size:.875rem;color:#4a5870}
.user-summary dd{margin:2px 0 0;overflow-wrap:anywhere}
.user-editor{display:grid;gap:12px}
.user-editor button{justify-self:start}
.user-editor p{margin:0}
.channel-dialog{width:min(560px,calc(100% - 32px))}
.channel-dialog input[type=checkbox]{justify-self:start}
.channel-dialog .channel-error{color:#a12c42}
.channel-dialog .channel-error:empty{display:none}
.membership-dialog{width:min(720px,calc(100% - 32px))}
.membership-dialog .membership-error{color:#a12c42}
.membership-dialog .membership-error:empty{display:none}
.membership-table th,.membership-table td{white-space:nowrap}
.membership-description{color:#51607a;white-space:normal;max-width:24ch}
.binding-editor{background:white;border:1px solid #dce4f0;border-radius:10px;padding:14px;margin:12px 0}
.binding-editor p{margin:6px 0 0}
.binding-editor label{display:grid;gap:4px;width:min(100%,340px)}
.binding-editor .actions{margin-top:12px}
.doc-nav strong{font-size:.875rem;margin-top:10px}
#content section{scroll-margin-top:12px}
.order-date-range{display:flex;gap:8px;min-width:0;margin:0;padding:5px 8px 8px;border:1px solid #dce4f0;border-radius:8px;grid-column:span 2}
.order-date-range legend{color:#4a5870;font-size:.875rem}
.order-date-range label,.order-date-range input{min-width:0;width:100%}
.order-table td:first-child{max-width:18ch;overflow-wrap:anywhere}
.order-table td:last-child{white-space:nowrap}
.order-table button{font-size:.82rem;padding:4px 8px;margin-right:5px}
.order-details{display:grid;grid-template-columns:minmax(7rem,auto) minmax(0,1fr);gap:4px 14px;margin:0 0 16px}
.order-details dt,.order-details dd{margin:0;padding:6px 9px}
.order-details dt{color:#4a5870}
.order-details dd{background:white;border:1px solid #dce4f0;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere}
.order-refund-form{display:grid;gap:12px}
.order-refund-form .order-checkbox{display:flex;align-items:center;flex-direction:row-reverse;justify-content:flex-end;gap:8px}
.order-danger{background:#fff4f4;border-color:#dca6ae;color:#932d40}
@media(max-width:680px){.order-date-range{grid-column:1/-1}}
.payment-dialog-wide{width:min(1020px,calc(100% - 24px))}
.payment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
.payment-fields label{min-width:0}
.payment-fields input,.payment-fields select,.payment-fields textarea{width:100%;min-width:0}
.payment-field-wide,.payment-fields label:has(textarea){grid-column:1/-1}
.payment-fields textarea{min-height:10rem;resize:vertical;overflow-wrap:anywhere;font: .875rem/1.5 ui-monospace,monospace}
.payment-credentials{min-width:0;margin:0;padding:14px 18px 18px;border:1px solid #dce4f0;border-radius:10px}
.payment-credentials>label{margin-bottom:14px;width:min(100%,23rem)}
.payment-credentials .payment-fields p{color:#4a5870}
@media(max-width:580px){.payment-fields{grid-template-columns:1fr}.payment-credentials{padding:12px}}
.report-filter{display:flex;align-items:end;flex-wrap:wrap;gap:14px 24px}
.report-filter .actions{margin:0}
.report-date-inputs{display:flex;gap:10px;flex-wrap:wrap}
.report-date-inputs input{min-width:9.5rem}
.report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px}
.report-card{display:grid;gap:3px;margin:0;padding:13px 16px}
.report-card span,.report-note,.report-table small{color:#51607a;font-size:.85rem}
.report-card strong{font-size:1.15rem;font-variant-numeric:tabular-nums}
.report-note{margin:9px 0}
.report-wrap{max-height:65vh}
.report-table{text-align:right;font-variant-numeric:tabular-nums}
.report-table thead{position:sticky;top:0;z-index:2}
.report-table thead tr:first-child th{background:#e4eefc}
.report-table thead tr:first-child th[colspan]{text-align:center}
.report-table tbody th{background:#fff;font-weight:600;text-align:left}
.report-table td{text-align:right;white-space:nowrap}
.report-table .report-period{position:sticky;left:0;z-index:1;box-shadow:3px 0 5px #203f6921}
.report-table small{display:block}
.report-table .report-profit{font-weight:650}
.report-negative,.report-range-message{color:#a12c42}
.user-filters .trial-toggle{display:flex;align-items:center;gap:9px}
.trial-toggle input{width:18px;height:18px;accent-color:#2859bf}
.sms-generation-table td.sms-device-id{max-width:14ch;font-family:ui-monospace,monospace}
.sms-generation-table td.sms-content{min-width:22ch;max-width:45ch;white-space:pre-wrap}
.sms-generation-table td:last-child{min-width:9rem}
.sms-generation-table td:last-child button{margin:2px;padding:4px 8px;font-size:.82rem}

.sms-generation-table{min-width:1340px}
.sms-rules-dialog{width:min(780px,calc(100% - 32px))}
.sms-rule{margin:0}
.sms-rule h3{margin:0}
.sms-rule summary{cursor:pointer}
.sms-rule pre{white-space:pre-wrap;overflow-wrap:anywhere}
.user-switch{display:inline-flex;align-items:center;gap:7px;padding:4px 6px;border-color:transparent;background:transparent;white-space:nowrap;font-size:.85rem;justify-self:start}
.user-switch-track{position:relative;display:inline-block;width:34px;height:20px;border-radius:20px;background:#737f92}
.user-switch-track::after{content:'';width:14px;height:14px;position:absolute;top:3px;left:3px;border-radius:50%;background:#fff}
.user-switch[aria-checked=true] .user-switch-track{background:#2859bf}
.user-switch[aria-checked=true] .user-switch-track::after{transform:translateX(14px)}
.account-disabled-source{color:#5b6577}

.generation-menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;margin:14px 0}
.generation-menu-feature{min-width:0;padding:12px 14px;border:1px solid #dae3f2;border-radius:10px}
.generation-menu-feature h3{margin:0 0 10px;font-size:1rem}
.generation-menu-list{min-width:0;padding:8px 10px 11px;border:1px solid #dae3f2;border-radius:8px}
.generation-menu-list+.generation-menu-list{margin-top:12px}
.generation-menu-list legend{padding:0 5px;font-weight:600}
.generation-menu-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:8px}
.generation-menu-choices label{min-height:28px}
