*{box-sizing:border-box}body{margin:0;background:#f7f8fb;color:#252c3b;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}button,input,textarea{font:inherit}button,a,input,textarea,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #ab7c99;outline-offset:4px}input,textarea{display:block;width:100%;border:1px solid #e3e7ef;border-radius:12px;background:#fbfcfe;padding:13px 14px;color:#2f3748;outline:0;transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus{border-color:#c89bb8;box-shadow:0 0 0 3px #f5eaf2}input::placeholder,textarea::placeholder{color:#a0a7b5}label{display:block;font-size:13px;font-weight:500;margin-bottom:9px}h1{font-size:30px;letter-spacing:-.8px;line-height:1.4;margin:6px 0 10px;font-weight:600}h2{font-size:16px;font-weight:600;line-height:1.5;margin:0}p{line-height:1.75}.subtle{color:#838b9b;margin:0;line-height:1.7}.small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#a78a9d;margin:0;font-weight:600}.brand{font-size:24px;letter-spacing:-.7px;font-weight:600;display:flex;align-items:center;gap:12px}.brand span{font-size:9px;letter-spacing:2px;font-weight:500;color:#9b8b9d}.primary,.secondary{border-radius:11px;padding:12px 20px;font-size:13px;font-weight:500;min-height:44px}.primary{background:#303749;color:#fff}.secondary{background:white;border:1px solid #e3e6ed;color:#656e81}.primary:hover:not(:disabled){background:#40485d}.secondary:hover:not(:disabled){background:#faf7fa}.text-button{background:none;color:#8a8295;padding:8px;font-size:12px}.workspace{display:flex;min-height:100vh}.sidebar{width:218px;background:#fff;flex-shrink:0;border-right:1px solid #e9ecf2;padding:38px 26px;display:flex;flex-direction:column}.sidebar-label{font-size:11px;color:#a0a7b6;margin:48px 0 14px}.side-selected{background:#f8eff5;color:#9c708d;font-size:13px;border-radius:12px;padding:13px 16px}.sidebar-foot{font-size:12px;color:#a1a7b5;line-height:1.9;margin-top:auto;padding-top:80px}.sidebar a{font-size:12px;color:#758095;text-decoration:none;margin-top:18px}main{flex:1;min-width:0}.topbar{height:80px;border-bottom:1px solid #e9ecf2;display:flex;align-items:center;justify-content:space-between;padding:0 44px;font-size:12px;color:#9da4b2}.content{max-width:1180px;margin:auto;padding:42px 44px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}.local-badge{font-size:11px;color:#8b879a;border:1px solid #e7e3ec;padding:7px 12px;border-radius:20px;background:#fcfbfd}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.summary-card{border:1px solid #e9ecf2;background:#fff;border-radius:18px;padding:22px 24px}.summary-card>span{display:block;font-size:11px;color:#959dad;margin-bottom:10px}.summary-card strong{display:block;font-size:19px;font-weight:500;overflow-wrap:anywhere}.summary-card small{display:block;margin-top:8px;color:#9ba3b2;font-size:11px}.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:24px;align-items:start}.panel{border:1px solid #e7ebf2;background:#fff;border-radius:20px;padding:26px;box-shadow:0 4px 18px rgba(63,82,115,.025)}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.field{margin-bottom:22px}.field-help{font-size:11px;color:#969ead;line-height:1.8;margin:8px 0 0}.label-note{font-size:11px;color:#9aa2b0;margin-left:6px}.short-input{width:112px}.form-actions{display:flex;gap:12px;margin-top:26px}.right-column{display:flex;flex-direction:column;gap:24px}.activation h2{font-size:20px;margin-top:12px;margin-bottom:10px}.activation>.subtle{font-size:13px}.wide{width:100%;margin-top:22px}.voice-note{font-size:11px;padding-top:16px;border-top:1px solid #eceef3;margin-top:20px;color:#a0a7b5}details{border-top:1px solid #eceef3;padding-top:20px}summary{color:#80899b;font-size:12px;cursor:pointer}details textarea{margin-top:16px;resize:vertical}.feedback{font-size:12px;line-height:1.8;margin-top:20px;border-radius:12px;padding:12px 14px;background:#f3f8f6;color:#5c8274}.feedback.failed{background:#fff3f6;color:#b97491}.events-empty{font-size:12px;color:#a0a7b5;padding:12px 0 18px}.event-row{display:flex;gap:8px;align-items:center;font-size:12px;padding:12px 0;border-bottom:1px solid #f0f2f6;color:#747e91}.event-row small{margin-left:auto;color:#a4abba;font-size:10px}.event-badge{font-size:10px;color:#7b998d;background:#f2f8f5;border-radius:8px;padding:3px 6px}.event-badge.failed{color:#b27a91;background:#fcf1f6}footer{display:flex;justify-content:space-between;color:#a5adbb;font-size:10px;margin-top:30px;padding:0 0 24px}.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{background:#fff;border:1px solid #e7eaf1;border-radius:28px;padding:38px;width:420px;box-shadow:0 15px 50px rgba(70,88,118,.045)}.auth-card .brand{margin-bottom:38px}.auth-card h1{font-size:26px;margin-top:12px}.auth-card .subtle{font-size:13px;margin-bottom:28px}.auth-card form input{margin-bottom:20px}.auth-card form button{width:100%;margin-top:8px}.auth-note{text-align:center;font-size:11px;color:#a1a9b8;margin:20px 0 0}.error{font-size:12px;color:#b57793;margin-bottom:0}#key-status{font-size:10px;color:#869e91;margin-left:10px;font-weight:400}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-width:1050px){.sidebar{width:170px;padding:32px 20px}.content{padding:32px 26px 0}.topbar{padding:0 26px}.columns{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr}}@media(max-width:650px){.workspace{display:block}.sidebar{width:100%;padding:18px 24px;flex-direction:row;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid #e9ecf2}.sidebar-label,.side-selected,.sidebar-foot{display:none}.sidebar a{margin-top:0}.topbar{height:56px;padding:0 22px}.content{padding:26px 20px 0}.page-heading{gap:12px;margin-bottom:24px}h1{font-size:26px}.local-badge{white-space:nowrap}.summary-grid{gap:8px}.summary-card{padding:15px 12px;border-radius:14px}.summary-card strong{font-size:15px}.summary-card small{font-size:10px}.panel{padding:22px}.right-column{display:flex}.auth-card{padding:28px}}

.billing-panel{margin-top:25px}.billing-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px;margin-top:26px}.demo-check{display:flex;align-items:center;gap:10px;color:#8f7690}.demo-check input{width:17px;height:17px;display:inline-block;padding:0;accent-color:#b78da6}.billing-panel .primary{margin-top:20px}@media(max-width:650px){.billing-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.billing-panel .panel-heading{align-items:flex-start;gap:12px}.billing-panel .local-badge{font-size:9px}}

select{font:inherit;color:#4e586c;border:1px solid #e3e7ef;border-radius:12px;background:#fbfcfe;padding:12px;min-height:44px;max-width:100%;outline-offset:3px}.side-nav{display:flex;flex-direction:column;gap:8px}.side-nav button{padding:13px 16px;text-align:left;border-radius:12px;background:transparent;color:#80899a;font-size:13px}.side-nav button.side-selected{background:#f8eff5;color:#9c708d}.users-panel{padding:24px}.users-toolbar{display:flex;align-items:center;gap:12px}.users-toolbar input{flex:1;min-width:160px}.users-toolbar select{width:135px}.users-toolbar button{white-space:nowrap}.table-scroll{overflow:auto;margin-top:20px}.user-table{border-collapse:collapse;width:100%;min-width:790px;text-align:left;font-size:12px}.user-table th{padding:13px 10px;background:#f8f9fc;font-weight:400;color:#929baa;white-space:nowrap}.user-table td{padding:21px 10px;border-bottom:1px solid #edf0f5;vertical-align:middle}.user-table td:first-child{font-weight:500}.user-table small{display:block;font-size:10px;font-weight:400;color:#9ba3b2;margin-top:6px}.status-pill{display:inline-block;padding:5px 9px;border-radius:20px;background:#eff7f3;color:#698d7e;font-size:10px;white-space:nowrap}.status-pill.disabled{background:#fcf0f5;color:#b27b96}.table-empty{text-align:center;color:#9ba3b2;height:180px}.pagination{display:flex;align-items:center;justify-content:space-between;color:#929aaa;font-size:12px;margin-top:22px}.pagination>div{display:flex;gap:14px;align-items:center}.pagination .secondary{padding:8px 12px;font-size:11px;min-height:36px}.user-dialog{width:min(980px,calc(100vw - 40px));max-height:90vh;padding:30px;border:1px solid #e7eaf1;border-radius:24px;background:#fff;color:#252c3b;box-shadow:0 24px 100px #30374922}.user-dialog::backdrop{background:#30374955;backdrop-filter:blur(3px)}.detail-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.detail-header h2{font-size:24px;margin:6px 0}.detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.detail-summary>div{border:1px solid #e9ecf2;background:#fafbfd;border-radius:15px;padding:16px}.detail-summary span{display:block;font-size:11px;color:#969ead}.detail-summary strong{display:block;font-size:18px;font-weight:500;margin:8px 0;overflow-wrap:anywhere}.detail-summary small{font-size:10px;color:#9ca3b1;line-height:1.8}.detail-tabs{display:flex;gap:20px;border-bottom:1px solid #e9ecf2;margin-bottom:20px;overflow:auto}.detail-tabs button{background:none;padding:10px 0 14px;white-space:nowrap;font-size:12px;color:#929aab;border-bottom:2px solid transparent}.detail-tabs button.active{color:#a27694;border-color:#c595b1}.detail-forms{display:grid;grid-template-columns:1fr 1fr;gap:20px}.manage-card{padding:22px;border:1px solid #e7ebf2;border-radius:18px}.manage-card h3{font-size:14px;font-weight:500;margin:0 0 8px}.manage-card label{margin-top:18px;font-size:12px}.manage-card select{width:100%}.manage-card button{margin-top:20px}.manage-card .field-help{min-height:38px}.status-management{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:18px;background:#fcf9fb}.status-management label{margin-top:0}.status-management button{margin-top:20px}.detail-record{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #edf0f5;padding:20px 3px;font-size:12px}.detail-record>div{min-width:0;flex:1;overflow-wrap:anywhere}.detail-record strong{font-weight:500}.detail-record p{font-size:11px;color:#9aa2b1;margin:8px 0 0}.record-value{color:#a77b96;font-variant-numeric:tabular-nums;white-space:nowrap}.detail-empty{padding:40px 0;text-align:center;color:#9ba3b2}.user-dialog>.feedback{margin:0 0 18px}@media(max-width:650px){.sidebar{flex-wrap:wrap;gap:15px}.side-nav{order:3;width:100%;flex-direction:row}.side-nav button{display:block;flex:1;text-align:center}.users-toolbar{flex-wrap:wrap}.users-toolbar input{flex-basis:100%}.users-toolbar select{flex:1;width:auto}.users-toolbar button{flex:1}.users-panel{padding:18px}.pagination{gap:8px;font-size:10px}.pagination>div{gap:8px}.user-dialog{padding:20px;width:calc(100vw - 24px)}.detail-summary{grid-template-columns:1fr 1fr}.detail-forms{grid-template-columns:1fr}.status-management{grid-column:auto;grid-template-columns:1fr}.status-management button{margin:0}.detail-header h2{font-size:20px}.detail-tabs{gap:17px}}

.model-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px;align-items:start}.model-list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.model-list{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid #edf0f5}.profile-item{flex:1 1 180px;min-width:0;text-align:left;border:1px solid #e7eaf1;border-radius:14px;background:#fafbfd;padding:14px;display:flex;justify-content:space-between;align-items:center;gap:10px}.profile-item.selected{background:#fbf2f7;border-color:#e8ccde}.profile-item>span:first-child{min-width:0}.profile-item strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.profile-item small{display:block;font-size:10px;color:#9aa2b1;margin-top:6px;overflow-wrap:anywhere}.profile-state{font-size:9px;color:#ae8a9e;white-space:nowrap;flex-shrink:0}.routing-title{font-size:19px;margin:12px 0}.right-column #routing-form{margin-top:24px}#routing-form select{width:100%}.model-editor .form-actions{flex-wrap:wrap}#reset-model{margin-left:auto}.model-editor h2{overflow-wrap:anywhere}@media(max-width:1050px){.model-workspace{grid-template-columns:1fr}}@media(max-width:650px){.profile-item{flex-basis:100%}.model-workspace{gap:18px}.page-heading>.secondary{padding:9px 12px;font-size:11px;white-space:nowrap}.model-list{margin-bottom:22px}.right-column #routing-form{margin-top:20px}}

.current-model-panel>strong{display:block;font-size:17px;font-weight:500;margin:20px 0 7px;overflow-wrap:anywhere}.active-separator{height:1px;background:#edf0f5;margin:22px 0}.current-model-panel #toggle-mode{margin-top:10px}.model-preview-panel textarea{margin-top:20px;resize:vertical;line-height:1.8;font-size:12px}.model-preview-panel pre{font-family:inherit;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #e9ecf2;border-radius:12px;padding:16px;color:#727d8f;background:#fafbfd}

.model-list-actions{display:flex;align-items:center;gap:14px}.delete-model-button{padding:8px 0;background:none;color:#b77483;font-size:12px;white-space:nowrap}.delete-model-button:hover:not(:disabled){color:#994457}.models-empty{padding:28px 0}.delete-model-dialog{width:min(390px,calc(100vw - 64px));border:1px solid #e7eaf1;border-radius:20px;padding:28px;color:#252c3b;background:white;box-shadow:0 24px 100px #30374922}.delete-model-dialog::backdrop{background:#30374955;backdrop-filter:blur(3px)}.delete-model-dialog h2{font-size:20px;margin-bottom:14px}.delete-model-dialog p{overflow-wrap:anywhere}.delete-model-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:26px}.delete-model-confirm{border-radius:11px;background:#ac657a;color:white;padding:12px 20px;font-size:13px;min-height:44px}.delete-model-confirm:hover:not(:disabled){background:#965366}

.promotion-toggle{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 24px;border-bottom:1px solid #edf0f5;cursor:pointer}.promotion-toggle strong{font-size:14px;font-weight:500;display:block}.promotion-toggle small{font-size:12px;color:#959dad;display:block;margin-top:8px;line-height:1.7}.promotion-toggle input{appearance:none;width:44px;height:26px;padding:0;border:0;border-radius:20px;background:#dfe3eb;position:relative;flex-shrink:0;cursor:pointer;transition:background .2s}.promotion-toggle input::before{content:'';display:block;width:20px;height:20px;background:white;border-radius:50%;position:absolute;left:3px;top:3px;box-shadow:0 1px 4px #30374922;transition:transform .2s}.promotion-toggle input:checked{background:#bb8fa9}.promotion-toggle input:checked::before{transform:translateX(18px)}.promotion-reward-field{margin:25px 0 15px;max-width:250px}.promotion-settings .primary{margin-top:18px}.promotion-history{margin-top:24px}.promotion-table{border-collapse:collapse;width:100%;min-width:560px;text-align:left;font-size:12px}.promotion-table th{padding:12px 10px;background:#f8f9fc;color:#929baa;font-weight:400}.promotion-table td{padding:16px 10px;border-bottom:1px solid #edf0f5}.promotion-table small{display:block;font-size:10px;color:#9ba3b2;margin-top:5px}

.rights-settings{margin:25px 0;padding-top:25px;border-top:1px solid #edf0f5}.rights-settings-heading h3{font-size:15px;font-weight:500;margin:0 0 8px}.rights-settings-heading .field-help{margin-bottom:20px}.rights-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rights-tier{min-width:0;margin:0;padding:20px 18px 12px;border:1px solid #e7eaf1;border-radius:16px;background:#fafbfd}.rights-tier legend{padding:0 7px;font-size:13px;font-weight:500;color:#626d80}.rights-tier .field{margin-bottom:16px}.rights-tier input[type=number]{font-variant-numeric:tabular-nums;background:white}.rights-photo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0;font-size:12px}.rights-photo input{height:17px;width:17px;padding:0;accent-color:#b78da6}.rights-advanced{margin-top:15px;padding-top:15px}.rights-advanced .field:first-of-type{margin-top:18px}.rights-advanced summary{font-size:11px}@media(max-width:800px){.rights-settings-grid{grid-template-columns:1fr}.rights-tier{padding:18px}.rights-tier .field{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}.rights-tier .field label{margin:0}}

#billing-page .billing-panel{margin-top:0}#billing-page>.page-heading{align-items:center}@media(max-width:650px){.side-nav{gap:4px}.side-nav button{font-size:12px;padding:11px 7px}}

.effective-rates{padding:16px 18px;border-radius:14px;background:#f8f3f7;color:#96758a;font-size:12px;line-height:1.9;margin-top:22px}.billing-form-state{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px}.billing-form-state .field-help{margin:0}.save-state{font-size:11px;white-space:nowrap;color:#759285}.save-state.unsaved{color:#b68476}.rights-panel{margin-top:24px}.rights-panel .primary{margin-top:24px}.rights-settings-heading .panel-heading{margin-bottom:0}.rights-settings-heading .field-help{margin-top:10px;margin-bottom:22px}@media(max-width:950px){.billing-form-state{align-items:flex-start;flex-direction:column}}@media(max-width:650px){.side-nav{flex-wrap:wrap}.side-nav button{flex:1 1 28%;white-space:nowrap}.billing-fields{grid-template-columns:1fr 1fr}.billing-fields label{min-height:36px}.effective-rates{font-size:11px;padding:14px}}
.routing-overview{margin-bottom:24px;border-left:3px solid #b78da6}.routing-overview h2{font-size:23px;letter-spacing:-.6px}.routing-flow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0}.routing-flow span{padding:10px 13px;background:#f6f7fa;border-radius:9px;font-size:12px;color:#566176}.routing-flow i{font-style:normal;color:#aaa}.task-route{display:flex;gap:14px;border-top:1px solid #edf0f5;padding:22px 0}.task-number{font-size:12px;color:#b78da6;letter-spacing:1px;padding-top:2px}.task-route>div{flex:1;min-width:0}.task-route label{font-size:14px;font-weight:600;margin-bottom:8px}.task-route p{font-size:12px;line-height:1.8;color:#8a94a6;margin:0 0 13px}.task-route select{width:100%;font-size:12px}.task-route small{display:block;font-size:10px;color:#909bac;margin-top:8px;overflow-wrap:anywhere}.routing-enable{display:flex;align-items:center;gap:9px;padding:15px 0;font-size:13px}.routing-enable input{width:17px;height:17px;accent-color:#b78da6}.quick-switch{margin:22px 0}.quick-switch strong{display:block;margin-top:15px;font-size:13px}.model-capabilities{display:grid;grid-template-columns:1fr 1fr;gap:16px}.model-capabilities select{width:100%;font-size:12px}.context-limits{display:grid;grid-template-columns:1fr 90px;gap:12px;align-items:center;margin-top:24px}.context-limits label{font-size:12px;margin:0}.context-limits input{font-size:13px;padding:10px;min-width:0}.config-guide ol{padding-left:18px;font-size:12px;line-height:2;color:#788499}.config-guide dl{font-size:12px;line-height:1.8}.config-guide dt{font-weight:600;color:#566176;margin-top:16px}.config-guide dd{margin:6px 0 0;overflow-wrap:anywhere;color:#8993a6}.guide-links{display:flex;flex-wrap:wrap;gap:12px}.guide-links a{font-size:11px;color:#a47792}#route-preview-result{font-size:12px;white-space:pre-wrap;line-height:1.9;padding:15px;background:#f8f9fc;border-radius:12px;overflow-wrap:anywhere}.event-row>span:first-child{overflow-wrap:anywhere;max-width:65%}@media(max-width:650px){.model-capabilities{grid-template-columns:1fr}.routing-flow{gap:6px}.routing-flow span{font-size:11px}.routing-overview h2{font-size:20px}}
.model-workspace,.right-column,.model-editor{min-width:0}.page-heading>#add-model{white-space:nowrap;flex-shrink:0}.summary-card strong{overflow-wrap:anywhere}.config-guide dd{word-break:break-word}@media(max-width:1050px){.right-column{display:flex;flex-direction:column}}#task-routing-form select,#core-settings-form select,#route-preview-form select,#task-test-role{width:100%}

/* Registry and per-plan strategies reuse the existing administration tokens. */
.ai-registry .actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.ai-model-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.ai-model-row,.ai-editor{border:1px solid var(--line,#e4e7f1);border-radius:20px;padding:20px;background:var(--surface,#fafbfe)}
.ai-model-row h3,.ai-editor h3{margin:0 0 14px;font-size:17px}.ai-model-row .panel-heading{align-items:start}
.ai-policy-fields{display:grid;gap:14px;margin:16px 0}.ai-plan-policy .primary{margin:12px 8px 12px 0}
.ai-policy-role{display:grid;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line,#e5e8ef)}.ai-policy-role:last-child{border-bottom:0;padding-bottom:0}
.ai-table-wrap{max-width:100%;overflow:auto}.ai-usage-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;line-height:1.7}
.ai-usage-table th,.ai-usage-table td{padding:12px;border-bottom:1px solid var(--line,#e4e7f1);vertical-align:top;min-width:115px;overflow-wrap:anywhere}
@media(max-width:780px){.ai-model-list{grid-template-columns:1fr}.ai-editor{padding:16px}}
.rights-settings-grid{align-items:start}
.ai-registry .field,.ai-plan-policy .field{display:flex;flex-direction:column;gap:8px;margin:0}
.ai-registry select,.ai-plan-policy select{width:100%;max-width:100%;min-height:44px}
.ai-registry .billing-fields{margin:18px 0}

/* P2 administrative reporting, isolated from mini-program styles. */
.analytics-filter{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end}
.analytics-filter label{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
.analytics-filter input,.analytics-filter select{width:100%;margin:0;min-width:0}
.analytics-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:18px}
.analytics-money{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.6}
#analytics-cost-cards .summary-card strong{font-size:23px}
.analytics-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.analytics-metrics .summary-card strong{font-size:24px}
.analytics-table{min-width:1150px}
.analytics-table td:first-child{min-width:160px;max-width:280px;overflow-wrap:anywhere;white-space:normal}
.analytics-notes p{font-size:13px;color:var(--muted,#8590a5);line-height:1.9}
@media(max-width:900px){.analytics-filter,.analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.analytics-filter,.analytics-metrics{grid-template-columns:1fr}.analytics-tabs{overflow-x:auto}.analytics-tabs button{white-space:nowrap}}
.ai-control-help{display:block;margin:9px 0 0;color:#7d8799;font-size:11px;font-weight:400;line-height:1.8;overflow-wrap:anywhere}
.ai-config-guide{margin:16px 0 22px;padding:14px 16px;border:1px solid #e4e8f0;border-radius:12px;background:#fbfcfe}
.ai-config-guide>summary{font-size:12px;font-weight:500;color:#68748a;line-height:1.8}
.ai-guide-content{padding-top:10px;font-size:12px;color:#646f82;line-height:1.85;overflow-wrap:anywhere}
.ai-guide-intro{margin:4px 0 12px}.ai-guide-steps{padding-left:21px;margin:12px 0 20px}.ai-guide-steps li{margin:6px 0}
.ai-guide-example{background:#f8eff5;border:1px solid #ecdae5;border-radius:12px;padding:16px;margin:18px 0}
.ai-guide-content h4{color:#374156;font-size:13px;font-weight:600;margin:0 0 7px}.ai-guide-content p{margin:6px 0}
.ai-guide-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.ai-guide-field{padding:16px 0;border-bottom:1px solid #e8ecf2}
.ai-guide-range{display:block;font-size:11px;font-weight:500;color:#9b6f8c;line-height:1.8;font-variant-numeric:tabular-nums}.ai-guide-sample{color:#8590a1}.ai-guide-foot{padding-top:12px;font-size:11px}
.ai-plan-policy .ai-guide-fields{grid-template-columns:1fr}
@media(max-width:650px){.ai-guide-fields{grid-template-columns:1fr}.ai-config-guide{padding:12px}.ai-guide-example{padding:12px}}

/* Simplified model editor: the same spacing and surfaces as existing billing forms. */
.ai-editor .billing-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ai-editor .field span{display:block;margin-bottom:10px;font-weight:600;color:var(--ink,#303546)}
.ai-editor input{box-sizing:border-box;width:100%;min-height:52px;padding:12px 16px;border:1px solid #dfe3ed;border-radius:14px;background:#fff;color:#303546;font:inherit}
.ai-editor input:focus{outline:2px solid #cfaac0;outline-offset:2px}
.ai-registry .panel-heading .actions{margin:0;display:flex;gap:10px;flex-wrap:wrap}
.ai-policy-fields .field span{display:block;margin-bottom:9px}
@media(max-width:760px){.ai-editor .billing-fields{grid-template-columns:1fr}}

.model-connection-state{margin-top:16px;padding:12px 14px;border:1px solid #e3e7ee;border-radius:12px;font-size:12px;line-height:1.7;color:#8b94a5;overflow-wrap:anywhere}.model-connection-state strong{display:block;font-size:13px;font-weight:600}.model-connection-state small{display:block;margin-top:5px}.model-connection-state.success{background:#f0f8f5;border-color:#dceee5;color:#537b6c}.model-connection-state.failed{background:#fcf2f5;border-color:#efdce3;color:#a8667d}.model-connection-state.pending{background:#f5f3fc;border-color:#e7e1f1;color:#8a7aa6}.model-test-reply{margin-top:8px;color:#778598;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.ai-model-row .delete-model-button{padding:12px 10px}
.model-purchase-prices{margin:24px 0;padding-top:20px;border-top:1px solid #e7ebf2}.model-purchase-prices .billing-fields{margin-top:16px}.profit-cards{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:24px}.simple-profit-filter{grid-template-columns:repeat(3,minmax(0,1fr)) auto}.profit-panel{margin-top:20px}.profit-panel details{border:0;padding:0}.profit-panel summary{font-size:15px;color:#384257}.profit-panel p{color:#828b9c;font-size:12px;line-height:1.9}.profit-panel td{font-size:12px;overflow-wrap:anywhere}@media(max-width:780px){.profit-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.simple-profit-filter{grid-template-columns:1fr 1fr}}

.topbar-actions{display:flex;align-items:center;gap:20px}.security-dialog{border:1px solid var(--line,#e3e7ef);border-radius:24px;padding:28px;background:var(--surface,#fff);color:var(--ink,#303747);width:min(840px,calc(100vw - 40px));max-height:85vh;overflow:auto}.security-dialog::backdrop{background:rgba(37,43,57,.35)}.security-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}.security-dialog form .field-help,.security-dialog form>button{grid-column:1/-1}.security-dialog form>button{justify-self:start}.security-dialog h3{font-size:16px}.security-log-heading{display:flex;justify-content:space-between;align-items:center;margin-top:26px}.security-table{width:100%;font-size:13px;white-space:nowrap}.security-table th,.security-table td{padding:12px 10px;border-bottom:1px solid var(--line,#e3e7ef)}.security-table th{color:var(--muted,#8992a6);text-align:left}.security-revoke{margin-top:24px}.security-revoke summary{cursor:pointer;color:var(--muted,#8992a6)}@media(max-width:620px){.security-dialog form{grid-template-columns:1fr}.security-dialog{padding:20px}.topbar-actions{gap:12px}}

.speech-settings{max-width:760px}.speech-limits{display:grid;grid-template-columns:1fr 1fr;gap:20px}.speech-settings .demo-check{margin-bottom:24px}@media(max-width:600px){.speech-limits{grid-template-columns:1fr}}


/* Redemption administration: compact ledger, generous headings, existing rose accent. */
.redemption-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.redemption-stats .summary-card{padding:24px}.redemption-stats strong{font-variant-numeric:tabular-nums}.redemption-issued{background:#f9f2f6;border-color:#ecdce6}.redemption-issued strong{color:#9b7089}.redemption-stats small{line-height:1.8}
.redemption-panel{padding:28px}.redemption-panel .panel-heading p{margin:10px 0 0;line-height:1.8}.redemption-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:26px 0 8px}.redemption-toolbar>input{flex:1 1 235px;min-width:180px}.redemption-toolbar>select{max-width:210px}.redemption-toolbar-actions{display:flex;gap:10px;margin-left:auto}.redemption-toolbar button{white-space:nowrap;min-height:44px}.redemption-table{width:100%;min-width:880px;text-align:left;border-collapse:collapse;font-size:12px}.redemption-table th{padding:14px 12px;color:#8c96a7;background:#f8f9fc;font-size:11px;font-weight:500;white-space:nowrap}.redemption-table td{padding:20px 12px;border-bottom:1px solid #edf0f5;vertical-align:middle;line-height:1.65}.redemption-table tbody tr:hover{background:#fcfafb}.redemption-table small{display:block;font-size:10px;color:#909aab;margin-top:6px}.redemption-table strong{font-weight:600}.redemption-code{font-family:'SFMono-Regular',Consolas,monospace;letter-spacing:.5px;font-weight:600;white-space:nowrap;user-select:all;color:#384355}.redemption-remark{max-width:170px;overflow-wrap:anywhere}.redemption-row-actions{white-space:nowrap}.redemption-row-actions button{padding:8px 11px;min-height:36px;font-size:11px;margin-left:6px}.redemption-revoke{border:1px solid #e6beca;color:#a36679;border-radius:9px;background:transparent}.redemption-status{display:inline-block;padding:4px 8px;border-radius:6px;font-size:10px;font-weight:500;white-space:nowrap;background:#f3f4f7;color:#8892a3}.redemption-status.available{color:#588474;background:#edf6f1}.redemption-status.expired{color:#b18c55;background:#fcf5e9}.redemption-status.revoked{color:#ae7287;background:#fcf0f5}.redemption-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px;font-size:12px;color:#929aab}.redemption-pagination>div{display:flex;align-items:center;gap:14px}.redemption-pagination button{padding:9px 12px;min-height:36px;font-size:11px}
.redemption-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #e6e9f1;border-radius:24px;background:#fff;color:#303747;padding:32px;box-shadow:0 24px 100px #30374922}.redemption-dialog::backdrop{background:#30374955;backdrop-filter:blur(3px)}.redemption-dialog h2{font-size:23px;margin:4px 0 14px}.redemption-dialog>.small{line-height:1.9;margin:18px 0 0}.redemption-dialog .detail-header{align-items:start}.redemption-fields{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:26px 0}.redemption-fields .field{margin:0;min-width:0}.redemption-fields label{font-size:12px;font-weight:500}.redemption-fields select,.redemption-fields input{box-sizing:border-box;width:100%;min-height:48px}.redemption-product-field,.redemption-remark-field{grid-column:1/-1}.redemption-fields .field-help{margin:10px 0 0;font-size:11px;line-height:1.8}.redemption-preview{background:#f8f2f6;border:1px solid #eddee7;padding:16px;border-radius:13px;color:#98758b;font-size:12px;line-height:1.9}.redemption-modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.redemption-use{padding:18px 0;border-bottom:1px solid #edf0f5;display:flex;justify-content:space-between;gap:20px;font-size:13px}.redemption-dialog [hidden]{display:none}.redemption-panel .feedback:empty,.redemption-dialog .feedback:empty{display:none}.redemption-panel .feedback.failed,.redemption-dialog .feedback.failed{color:#af5e76}
@media(max-width:1100px){.redemption-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.redemption-toolbar-actions{margin-left:0}}@media(max-width:650px){.redemption-panel{padding:18px}.redemption-toolbar>select{flex:1;max-width:100%}.redemption-toolbar-actions{width:100%}.redemption-toolbar-actions button{flex:1}.redemption-stats .summary-card{padding:18px}.redemption-stats strong{font-size:25px}.redemption-dialog{padding:22px}.redemption-dialog h2{font-size:20px}.redemption-fields{gap:18px}.redemption-pagination{align-items:start;font-size:11px}.redemption-pagination>div{gap:8px}}@media(prefers-reduced-motion:reduce){.redemption-dialog{scroll-behavior:auto}}

/* Business reporting shares the existing restrained, rounded admin surfaces. */
.commerce-filters{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:24px 0}.commerce-filters>div{min-width:150px;flex:1}.commerce-filters select{width:100%;min-height:44px}.commerce-dates{display:flex;gap:10px;flex:2!important}.commerce-dates>div{flex:1;min-width:140px}.commerce-dates[hidden]{display:none}.commerce-search{flex:2!important;min-width:240px!important}.commerce-filter-actions{display:flex;gap:8px;flex:0 0 auto!important}.commerce-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:22px 0}.commerce-stat{border:1px solid #e4e6ef;border-radius:20px;background:#fff;padding:22px 18px;min-width:0}.commerce-stat:nth-child(4){background:linear-gradient(130deg,#fff,#f8edf4);border-color:#eddfeb}.commerce-stat span{color:#788295;font-size:13px}.commerce-stat strong{display:block;font-size:clamp(22px,2.2vw,32px);font-weight:600;letter-spacing:-.7px;margin:15px 0 10px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.commerce-stat small{font-size:11px;color:#929aad;line-height:1.7;display:block}.commerce-feedback{color:#838b9b;min-height:22px;margin:10px 0}.commerce-feedback.failed{color:#b5465b}.commerce-footnote{font-size:12px;line-height:1.9;color:#8b93a4;margin:16px 0 24px}.commerce-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.commerce-table{width:100%;border-collapse:collapse;min-width:650px}.commerce-table th{font-size:12px;font-weight:500;color:#929aad;text-align:left;padding:14px 12px;border-bottom:1px solid #e7e9f0}.commerce-table td{padding:18px 12px;border-bottom:1px solid #eef0f5;vertical-align:middle;font-variant-numeric:tabular-nums}.commerce-table td:first-child{max-width:260px;overflow-wrap:anywhere}.commerce-table td small{display:block;font-size:11px;color:#9099ab;margin-top:7px;line-height:1.7}.commerce-table td:last-child .text-button{white-space:nowrap;display:block;margin:5px 0}.commerce-table tbody tr:last-child td{border-bottom:0}.commerce-badge{display:inline-block;font-size:12px;padding:5px 10px;border-radius:9px;background:#f2f4f8;color:#8992a4}.commerce-badge.paid{background:#e9f5ef;color:#448869}.commerce-badge.demo{background:#f5edf4;color:#ac819e}.commerce-badge.unverified{background:#fff5e6;color:#a57d36}.commerce-tabs{display:flex;gap:6px;border-bottom:1px solid #e6e8ef;margin-top:26px}.commerce-tabs button{background:transparent;color:#939bad;padding:14px 22px;border-bottom:2px solid transparent}.commerce-tabs button.active{color:#303749;border-bottom-color:#bc8ea9;font-weight:600}.commerce-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.commerce-pagination>div{display:flex;align-items:center;gap:16px}.commerce-pagination button{padding:9px 14px;min-height:38px}.commerce-pagination span{font-size:12px}.commerce-scope{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border:1px solid #eedeea;background:#faf3f8;border-radius:14px;color:#9a718d}.commerce-scope[hidden]{display:none}.commerce-dialog{width:min(680px,calc(100vw - 40px));max-height:85vh;overflow:auto;border:1px solid #e4e7ef;border-radius:24px;padding:28px;color:#303749;box-shadow:0 25px 90px #26334c24}.commerce-dialog::backdrop{background:#222b4366;backdrop-filter:blur(4px)}.commerce-detail-row{display:grid;grid-template-columns:140px 1fr;gap:20px;padding:13px 0;border-bottom:1px solid #edf0f5;font-size:13px}.commerce-detail-row span{color:#8e97aa}.commerce-detail-row strong{font-weight:500;overflow-wrap:anywhere}.commerce-trend{overflow:auto}.commerce-trend-legend{display:flex;gap:22px;font-size:12px;margin:0 0 24px}.commerce-user-color{color:#bf90ae}.commerce-revenue-color{color:#677f9a}.commerce-bars{display:flex;gap:6px;min-width:100%;height:180px;padding:0 0 20px;border-bottom:1px solid #edf0f5}.commerce-bar-column{flex:1;min-width:12px;position:relative}.commerce-bar-pair{height:140px;display:flex;align-items:flex-end;gap:2px;border-bottom:1px solid #edf0f5}.commerce-bar-pair>div{flex:1;border-radius:4px 4px 0 0;min-width:3px}.commerce-bar-pair .users{background:#c49ab5}.commerce-bar-pair .revenue{background:#8096ae}.commerce-bar-label{position:absolute;bottom:0;left:50%;transform:translateX(-50%);font-size:10px;color:#909aab;white-space:nowrap}.commerce-trend .subtle{margin-top:14px}.commerce-trend-details{margin-top:22px}.commerce-trend-details summary{cursor:pointer;color:#a47e98;font-size:13px}
@media(max-width:1200px){.commerce-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.commerce-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.commerce-stat{padding:18px 14px}.commerce-filters{gap:12px}.commerce-pagination{align-items:flex-start;flex-direction:column}.commerce-detail-row{grid-template-columns:100px 1fr;gap:12px}.commerce-dialog{padding:22px}.commerce-section-heading{align-items:flex-start}.commerce-tabs button{padding:12px 14px}}
.sms-check-results{white-space:pre-line;overflow-wrap:anywhere}

/* Health diagnostics reuse the admin shell; reports never render HTML payloads. */
.health-actions{display:flex;gap:10px;flex-wrap:wrap}.health-scope p{margin:10px 0 0}.health-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.health-count{border:1px solid #e5e8ef;background:#fff;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:8px}.health-count span{font-size:13px;color:#6b7385}.health-count strong{font-size:30px;line-height:1.3}.health-pass strong,.health-pass .health-badge{color:#28775e}.health-warning strong,.health-warning .health-badge{color:#966718}.health-fail strong,.health-fail .health-badge{color:#b04453}.health-unverified strong,.health-unverified .health-badge{color:#6e7789}.health-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.health-filter{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.health-filter input{width:16px;height:16px;padding:0;accent-color:#ab7c99}.health-empty{padding:42px 24px;text-align:center;color:#838b9b;background:#fff;border:1px solid #e5e8ef;border-radius:18px;margin-bottom:22px}.health-group{margin:24px 0}.health-group-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.health-item{background:#fff;border:1px solid #e5e8ef;border-left:3px solid #d1d6df;border-radius:14px;padding:18px 22px;margin-bottom:12px}.health-item.health-fail{border-left-color:#ca6c7a}.health-item.health-warning{border-left-color:#c5a166}.health-item.health-pass{border-left-color:#78ad99}.health-item-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.health-item h3{font-size:15px;margin:0;font-weight:600;overflow-wrap:anywhere}.health-badge{font-size:12px;white-space:nowrap;background:#f6f7fa;padding:4px 10px;border-radius:20px}.health-meta{font-size:11px;color:#8b92a0;margin:8px 0 12px;overflow-wrap:anywhere}.health-details{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px 14px;margin:0;font-size:13px;line-height:1.75}.health-details dt{color:#969dab}.health-details dd{margin:0;overflow-wrap:anywhere;color:#505a6d}.health-report{margin-top:14px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;line-height:1.8;resize:vertical}.health-scope .field-help{margin-bottom:0}@media(max-width:900px){.health-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.health-toolbar{align-items:flex-start;flex-direction:column}.health-item{padding:16px}.health-actions{width:100%}.health-actions button{flex:1}}
@media(max-width:900px){#health-page .page-heading{flex-direction:column;align-items:flex-start;gap:18px}#health-page .page-heading>div:first-child{width:100%}}

/* Shared control geometry: avoid native select sizing drifting across browsers. */
:root{--admin-control-height:46px}
select{appearance:none;-webkit-appearance:none;height:var(--admin-control-height);min-height:var(--admin-control-height);padding:0 38px 0 14px;line-height:normal;background-image:linear-gradient(45deg,transparent 50%,#858d9e 50%),linear-gradient(135deg,#858d9e 50%,transparent 50%);background-repeat:no-repeat;background-position:right 17px center,right 12px center;background-size:5px 5px}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]){height:var(--admin-control-height)}
.commerce-filters{padding:18px;background:#fff;border:1px solid #e5e8ef;border-radius:16px;gap:12px;margin:22px 0}
.commerce-filters label{font-size:11px;color:#697487;line-height:18px;margin-bottom:8px;white-space:nowrap}
.commerce-filters input,.commerce-filters select,.commerce-filters button{height:var(--admin-control-height);min-height:var(--admin-control-height);border-radius:10px;font-size:12px}
.commerce-filters select{padding-right:34px}
.commerce-filters>div{min-width:0}
.commerce-filters .commerce-filter-actions{align-self:end;gap:8px}
.commerce-filters button{white-space:nowrap;padding:0 18px;flex-shrink:0}
#overview-filters>div:first-child{flex:0 0 210px}
#overview-updated{margin-left:auto;font-size:11px;align-self:center}
#orders-filters{display:grid;grid-template-columns:minmax(130px,1fr) minmax(200px,1.8fr) repeat(3,minmax(110px,1fr)) auto}
#orders-filters .commerce-search{min-width:0!important}
#orders-filters .commerce-dates{grid-column:1/-1;order:1;display:grid;grid-template-columns:1fr 1fr;max-width:440px}
.commerce-stat{padding:22px 20px;min-height:158px;display:flex;flex-direction:column;border-radius:18px}
.commerce-stat span{font-size:12px;line-height:20px}
.commerce-stat strong{font-size:30px;line-height:1.2;margin:18px 0 12px;letter-spacing:-.8px}
.commerce-stat small{margin-top:auto;font-size:10px}
.commerce-feedback:empty{display:none}
.commerce-lifetime{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 2px;margin:0 0 24px}
.commerce-lifetime p{display:flex;gap:24px;flex-wrap:wrap;font-size:12px;color:#778295;margin:0;font-variant-numeric:tabular-nums}
.commerce-lifetime .text-button{white-space:nowrap;color:#a07792}
.overview-charts{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(240px,1fr);gap:20px;align-items:start}
.overview-charts .panel{padding:24px;min-width:0}
.overview-charts .eyebrow{font-size:9px;margin-bottom:7px;letter-spacing:1.4px}
.overview-charts h2{font-size:16px}
.overview-trend-panel .commerce-section-heading{align-items:flex-start;flex-direction:column;gap:8px}
.commerce-product-list{min-height:200px}
.commerce-product-row{padding:14px 0;border-bottom:1px solid #edf0f5}
.commerce-product-row:first-child{padding-top:0}
.commerce-product-row:last-child{border-bottom:0}
.commerce-product-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#626d80}
.commerce-product-heading strong{font-weight:600;color:#303749;font-variant-numeric:tabular-nums}
.commerce-product-track{height:7px;border-radius:9px;background:#f3edf1;overflow:hidden;margin:12px 0 8px}
.commerce-product-track span{display:block;height:100%;background:#ba91aa;border-radius:9px}
.commerce-product-row small{font-size:10px;color:#939bac}
.commerce-product-empty{font-size:14px;color:#717c8f;padding:45px 0 10px}
.commerce-order-stats{gap:0;border:1px solid #e5e8ef;border-radius:16px;background:#fff;overflow:hidden}
.commerce-order-stats .commerce-stat{border:0;border-radius:0;min-height:112px;padding:18px 20px;border-right:1px solid #edf0f5;background:none}
.commerce-order-stats .commerce-stat:last-child{border-right:0}
.commerce-order-stats .commerce-stat strong{font-size:23px;margin:10px 0 8px}
.commerce-tabs button{padding:12px 18px;font-size:13px}
.commerce-table th{background:#fafbfd;white-space:nowrap}
.commerce-table td{font-size:12px;padding:16px 12px}
.commerce-table tbody tr:hover{background:#fcfafc}
.commerce-footnote{font-size:11px}
@media(max-width:1280px){#orders-filters{grid-template-columns:repeat(3,minmax(0,1fr))}#orders-filters .commerce-search{grid-column:span 2}#orders-filters .commerce-filter-actions{grid-column:1/-1;justify-content:flex-end}.overview-charts{grid-template-columns:1fr}.commerce-order-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.commerce-order-stats .commerce-stat:nth-child(3){border-right:0}.commerce-order-stats .commerce-stat:nth-child(n+4){border-top:1px solid #edf0f5}}
@media(max-width:720px){.commerce-filters{padding:14px;gap:12px}#orders-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#orders-filters .commerce-search{grid-column:1/-1;grid-row:1}#orders-filters .commerce-filter-actions{justify-content:flex-start}#overview-filters>div:first-child{flex:1 1 180px}#overview-updated{width:100%;margin-left:0}.commerce-stat{min-height:138px;padding:18px 16px}.commerce-stat strong{font-size:26px}.commerce-lifetime{align-items:flex-start;flex-direction:column;gap:4px}.commerce-lifetime p{gap:12px}.commerce-order-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-order-stats .commerce-stat{border-top:1px solid #edf0f5;border-right:1px solid #edf0f5}.commerce-order-stats .commerce-stat:nth-child(-n+2){border-top:0}.commerce-order-stats .commerce-stat:nth-child(2n){border-right:0}.commerce-order-stats .commerce-stat:nth-child(3){border-right:1px solid #edf0f5}.overview-charts .panel{padding:20px}}

.commerce-bar-column:first-child .commerce-bar-label{left:0;transform:none}
.commerce-bar-column:last-child .commerce-bar-label{left:auto;right:0;transform:none}

#orders-filters.commerce-customer-filters{grid-template-columns:minmax(150px,1fr) minmax(220px,2fr) auto}
#orders-filters.commerce-customer-filters .commerce-search{grid-column:auto}
#orders-filters.commerce-customer-filters .commerce-filter-actions{grid-column:auto}
@media(max-width:720px){#orders-filters.commerce-customer-filters{grid-template-columns:1fr 1fr}#orders-filters.commerce-customer-filters .commerce-search{grid-column:1/-1}}
.commerce-bars{gap:4px}
.commerce-bar-column{min-width:7px}
.commerce-bar-pair>div{min-width:2px}

.payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin-top:24px}.payment-fields .field{margin:0}.payment-fields select{width:100%}.payment-panel{margin-top:22px}.payment-table{min-width:680px}.payment-table input{height:46px;min-width:200px;font-family:ui-monospace,monospace;font-size:12px}.payment-price-warning{display:block;color:#b88554;font-size:10px;max-width:150px;margin-top:6px}.payment-panel .field-help{line-height:1.9}.payment-panel .field{margin-bottom:12px}#payment-form .form-actions{align-items:center;flex-wrap:wrap}@media(max-width:700px){.payment-fields{grid-template-columns:1fr;gap:18px}}
