:root{--jade-950:#083b32;--jade-900:#0c4238;--jade-700:#08775b;--jade-600:#138968;--jade-100:#e3f0e9;--ink:#15332e;--muted:#72817c;--line:#e6ebe7;--canvas:#fafbf9;--radius:10px}*{box-sizing:border-box}body{max-width:none;margin:0;padding:96px 30px 30px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5;background:var(--canvas);color:var(--ink);-webkit-font-smoothing:antialiased}body:has(#dashboard:not([hidden])){padding:94px 30px 30px 242px}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 15px;margin:0;border:1px solid transparent;border-radius:6px;background:var(--jade-700);color:white;font-weight:500;line-height:1.2;white-space:nowrap;transition:background .15s,border-color .15s;cursor:pointer}button:hover:not(:disabled){background:#065e49}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8fcdb7;outline-offset:2px}input,select,textarea{min-height:38px;padding:8px 11px;margin:4px;border:1px solid #d7dfda;border-radius:6px;background:white;color:var(--ink)}input::placeholder,textarea::placeholder{color:#96a29c}input[readonly]{background:#f3f6f3;color:#75837c}input[type=checkbox]{min-height:0;accent-color:var(--jade-700)}textarea{resize:vertical;line-height:1.6}#topNav{height:64px;padding:0 24px;box-shadow:none;border-bottom:1px solid var(--line);z-index:50}#topNav nav{height:100%}.navBrand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:650;letter-spacing:.2px;color:var(--jade-900)}.navBrand .fa{font-size:24px;color:#34957a}.navRight{gap:16px}.navRight h1{display:none}#identity{font-size:13px;color:#667971}#topActions{gap:10px}#refresh{background:white;color:var(--jade-700);border-color:#a5cbbc}#refresh:hover{background:#eef7f1}#logout{border-color:#e9beb8;color:#ae4741;background:white}#logout:hover{background:#fff3f1}#menu{top:64px;width:212px;padding:24px 12px;background:var(--jade-950);border-right:none;z-index:30}#menu h3{color:#b8cdc6;font-size:12px;font-weight:600;letter-spacing:1.1px;margin:22px 10px 10px}#menu h3:first-child{margin-top:8px}#menu button{width:100%;min-height:40px;margin:2px 0;padding:10px 12px;justify-content:flex-start;text-align:left;font-size:13px;font-weight:450;gap:11px;color:#e3efea;border-radius:7px;background:transparent}#menu button .fa{width:18px;text-align:center;font-size:15px;color:#c0d7ce}#menu button:hover{background:#ffffff0d}#menu button.selected{background:#11664f;color:white;font-weight:600}#menu button.selected .fa{color:white}.page-heading{margin:0 0 24px;padding:0 3px}.page-heading h1{margin:0 0 7px;font-size:30px;line-height:1.3;letter-spacing:-.8px;font-weight:650}.page-heading p{margin:0;color:#75837c;font-size:14px}#msg:empty{display:none}#msg:not(:empty){padding:12px 15px;border:1px solid #e1e9e0;background:#f0f7ed;border-radius:8px;margin:0 0 16px;color:#375d45}#listFilters{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:17px 18px;margin:0;border:0;border-radius:var(--radius) var(--radius) 0 0;background:white;border-bottom:1px solid var(--line)}#listFilters label{font-size:13px;font-weight:500;white-space:nowrap}#listFilters input,#listFilters select{margin:0}#filter{width:235px;max-width:100%;margin-right:10px!important}#listFilters input[type=date]{width:155px}#orderStatusFilter{display:inline-flex;align-items:center;gap:8px}#clearFilters,#resetChannel,#resetPlan,#resetProfile,#cancelKey,#modalClose,#deny,#switchAccount{color:var(--jade-700);background:white;border-color:#bed3c8}#clearFilters:hover,#resetChannel:hover,#resetPlan:hover,#resetProfile:hover,#cancelKey:hover{background:#f1f7f2}section{padding:22px;background:white;border:0;border-radius:var(--radius);margin:0 0 20px;box-shadow:none}section[data-panel]>h2{font-size:20px;margin:0 0 15px}section[data-panel]>h3{font-size:15px;font-weight:600;margin:20px 0 12px}section[data-panel=users],section[data-panel=orders],section[data-panel=usage],section[data-panel=audit],section[data-panel=oauthClients],section[data-panel=oauthGrants]{padding:0 18px 0;border-radius:0 0 var(--radius) var(--radius)}section[data-panel=users]>h2,section[data-panel=users]>h3,section[data-panel=orders]>h2,section[data-panel=usage]>h2,section[data-panel=audit]>h2,section[data-panel=oauthClients]>h2,section[data-panel=oauthGrants]>h2{display:none}section[data-panel=oauthClients]>p,section[data-panel=oauthGrants]>p{padding-top:16px;margin:0;color:var(--muted)}#channels,#plans,#keys{margin-top:20px}#users,#channels,#plans,#keys,#orders,#usage,#audit,#oauthClients,#oauthGrants{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;table-layout:auto;font-size:13px;margin:0;background:white}thead th{background:#f0f4ef;color:#24473b;font-size:13px;font-weight:600;padding:13px 12px;text-align:left;border-bottom:1px solid #e0e7df;white-space:nowrap}tbody td{padding:13px 12px;height:65px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap;line-height:1.45;word-break:normal}tbody tr:hover{background:#f5faf5}table td.identifier{max-width:200px;overflow:hidden;text-overflow:ellipsis;font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px;color:#66766c}td[data-field=details],td[data-field=redirects]{max-width:300px;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#6d7c74}table button{font-size:12px;min-height:30px;padding:6px 11px;border-radius:5px;margin-right:5px}table[data-list=users]{min-width:1040px;table-layout:fixed}table[data-list=users] th:nth-child(1){width:24%}table[data-list=users] th:nth-child(2){width:15%}table[data-list=users] th:nth-child(3),table[data-list=users] th:nth-child(4){width:12%}table[data-list=users] th:nth-child(5),table[data-list=users] th:nth-child(6){width:15%}table[data-list=users] th:last-child{width:7%}td[data-field=created_at],td[data-field=updated_at],td[data-field=expires_at],td[data-field=paid_at]{font-size:12px;font-variant-numeric:tabular-nums;color:#425f50}td[data-field=free_used],td[data-field=paid_balance],th[data-field=free_used],th[data-field=paid_balance]{text-align:center;font-variant-numeric:tabular-nums}.user-cell{display:flex;align-items:center;gap:11px;min-width:0}.user-avatar{width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#eaf0eb;color:#8f9e94;display:inline-flex;align-items:center;justify-content:center;font-size:20px;position:relative;overflow:hidden}.user-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.user-text{min-width:0;display:flex;flex-direction:column;gap:3px}.user-text strong{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;color:#173e31}.user-id{font-size:11px;line-height:1.4;color:#819087;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-tag{display:inline-block;max-width:100%;padding:3px 8px;border-radius:4px;background:#e4f0e7;color:#326e51;font-size:12px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.status-tag{display:inline-flex;align-items:center;padding:3px 8px;border-radius:4px;background:#eaf4eb;color:#35794f;font-size:12px}.status-tag[data-status=closed],.status-tag[data-status="0"],.status-tag[data-status="1"]{background:#f0f2ef;color:#68766c}.status-tag[data-status=pending]{background:#fff5df;color:#927139}.pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:20px 2px;margin:0;border-top:none;white-space:nowrap;min-height:72px}.pager button{background:white;color:#436b55;border:1px solid #d4dfd5;min-height:34px;font-size:12px}.pager button:hover:not(:disabled){background:#edf6ed}.empty-state{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#87988c;gap:12px}.empty-state .fa{font-size:32px;color:#b0c5b6}.empty-state p{margin:0}dialog{padding:24px 26px;width:min(540px,calc(100vw - 40px));border:1px solid #dce6df;border-radius:14px;box-shadow:0 20px 80px #123c3229;background:#fff;color:var(--ink)}dialog::backdrop{background:#0b2c255f;backdrop-filter:blur(2px)}dialog header{padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--line)}dialog h2{font-size:20px;font-weight:650}#modalClose{font-size:20px;width:32px;min-height:32px;padding:0;background:#f4f6f3;color:#697b6c;border:0}#modalBody{gap:13px}#modalBody label{font-size:13px;font-weight:500;color:#4b6658}#modalBody input,#modalBody select{margin-top:7px;font-weight:400}#modalBody>button{min-height:39px}#modalBody>span{font-size:12px;color:#8b9a8e}#modalError:empty{display:none}#modalError:not(:empty){background:#fff3ef;padding:10px 12px;border-radius:6px;color:#a35040;font-size:13px}pre{background:#f6f8f4;padding:16px;border-radius:7px;font-size:12px;line-height:1.7}pre:empty{display:none}#login{margin:55px auto;padding:32px;width:min(460px,100%);border:1px solid #e0e8df}#login h2{font-size:24px;margin:0 0 20px}#login input{margin:0 0 15px;width:100%}#loginButton{width:100%;margin-bottom:18px;min-height:42px}section[data-panel=sms],section[data-panel=connectorConfig],section[data-panel=password],section[data-panel=quota]{max-width:900px;padding:26px}section[data-panel=sms] label,section[data-panel=connectorConfig] label{display:block;margin:15px 0;font-size:13px;font-weight:500}section[data-panel=sms] input:not([type=checkbox]),section[data-panel=sms] select,section[data-panel=connectorConfig] input:not([type=checkbox]),section[data-panel=connectorConfig] select{display:block;width:min(560px,100%);margin:7px 0}section[data-panel=connectorConfig] textarea{max-width:560px}section[data-panel] p{font-size:13px;color:var(--muted)}#connectorTip{margin-top:16px}@media(min-width:1700px){body:has(#dashboard:not([hidden])){padding-left:260px;padding-right:48px}}@media(max-width:1100px){body:has(#dashboard:not([hidden])){padding:88px 18px 20px 218px}#menu{width:200px}#filter{width:190px}#listFilters{gap:8px}#listFilters input[type=date]{width:145px}.page-heading h1{font-size:27px}}@media(max-width:760px){body,body:has(#dashboard:not([hidden])){padding:116px 14px 20px;margin:0}#topNav{height:96px;padding:12px 14px}#topNav nav{align-items:flex-start}.navBrand{font-size:16px;gap:6px}.navBrand .fa{font-size:19px}.navRight{max-width:55%;gap:7px;flex-wrap:wrap}#identity{font-size:11px}#topActions{gap:6px;flex-basis:100%;justify-content:flex-end}#topActions button{font-size:11px;padding:6px 8px;min-height:30px}#menu{position:static;width:100%;padding:10px;margin-bottom:22px;border-radius:8px}#menu h3{margin:12px 8px 5px}#menu button{display:inline-flex;width:auto;min-height:36px;font-size:12px;padding:8px 10px}#menu button .fa{font-size:13px;width:14px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}#listFilters{gap:8px;padding:14px}#filter{width:100%;margin-right:0!important}#listFilters input[type=date]{width:calc(50% - 20px)}#rangeLabel{width:100%}.pager{font-size:11px;gap:7px;justify-content:flex-start}section{padding:16px}#modalBody{gap:12px}.navRight h1{display:none}}
/* Visual QA refinement: match the selected design's readable type scale and rhythm. */
body{font-size:15px}body:has(#dashboard:not([hidden])){padding-top:88px}#menu{padding-top:32px}#menu h3{font-size:14px;letter-spacing:.5px;margin-top:24px}#menu button{display:flex;font-size:14px;min-height:42px;gap:12px}.page-heading h1{font-size:32px}#listFilters{margin-bottom:20px;border-radius:10px;border-bottom:0;min-height:80px;padding:18px}#listFilters label{font-size:14px}#filter{width:265px}#applyFilters{min-width:82px}#clearFilters{min-width:70px}table{font-size:14px}thead th{font-size:14px;padding-top:13px;padding-bottom:13px}tbody td{height:60px;padding-top:10px;padding-bottom:10px}.user-text strong{font-size:15px;line-height:1.3}.user-id{font-size:12px;line-height:1.3}td[data-field=created_at],td[data-field=updated_at],td[data-field=expires_at],td[data-field=paid_at]{font-size:13px}.channel-tag{font-size:13px}table button{font-size:13px;min-height:31px}.pager{font-size:13px}.pager button{font-size:13px}section[data-panel]>h2{display:none}section[data-panel=users],section[data-panel=orders],section[data-panel=usage],section[data-panel=audit],section[data-panel=oauthClients],section[data-panel=oauthGrants]{border-radius:10px}#login h2{display:block}@media(max-width:1100px){#filter{width:190px}thead th{font-size:13px}}@media(max-width:760px){body:has(#dashboard:not([hidden])){padding-top:116px}#menu{padding-top:10px}#menu button{display:inline-flex;font-size:12px}.page-heading h1{font-size:26px}#filter{width:100%}#listFilters label{font-size:13px}.pager{font-size:11px}}

#menuToggle{display:none}.pager-summary{margin-right:auto;color:#6a8071}.pager-position{order:1;color:#6a8071}.pager button{order:2}@media(max-width:760px){#menuToggle{display:flex;width:100%;min-height:42px;justify-content:flex-start;background:white;border:1px solid #d9e5db;color:var(--jade-900);font-size:13px;margin-bottom:14px}#menuCurrent{margin-left:auto;font-weight:600}#menuShell:not(.expanded) #menu{display:none}#menuShell.expanded #menu{display:block;margin-bottom:16px}.pager{flex-wrap:wrap}.pager-summary{flex-basis:100%}}
#modalBody>span{overflow-wrap:anywhere}.status-tag[data-field=active][data-status="1"],.status-tag[data-field=channel_active][data-status="1"]{background:#eaf4eb;color:#35794f}.status-tag[data-field=revoked][data-status="1"]{background:#fff0eb;color:#a45a48}

#connectorScopes{max-width:600px;margin:16px 0;padding:12px 16px;border:1px solid var(--line);border-radius:8px}#connectorScopes legend{padding:0 6px;font-weight:600}section[data-panel="connectorConfig"] #connectorScopes label{display:flex;align-items:center;gap:8px;margin:10px 0;flex-wrap:wrap}#connectorScopes small{color:var(--muted)}

.admin-toast{position:fixed;inset:84px auto auto 50%;transform:translateX(-50%);margin:0;width:max-content;max-width:min(460px,calc(100vw - 32px));padding:14px 16px;display:flex;align-items:center;gap:10px;border:1px solid #b7ddc9;border-radius:10px;background:#effaf3;color:#215b40;box-shadow:0 8px 30px #15332e24;z-index:10000;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.admin-toast.error{background:#fff3f1;border-color:#edc1ba;color:#9d382e}.admin-toast>span{flex:1;min-width:0}.admin-toast>button{flex-shrink:0;background:transparent;color:inherit;border:0;min-height:28px;padding:0 6px;font-size:22px}.admin-toast>button:hover{background:#00000008}@media(max-width:760px){.admin-toast{inset:112px auto auto 50%;max-width:calc(100vw - 32px)}}

#queryFilters{display:contents}#querySearch{width:230px}#queryDetailModal{width:min(850px,calc(100vw - 32px))}.query-info{display:grid;grid-template-columns:190px minmax(0,1fr);gap:8px 16px}.query-info dt{color:var(--muted)}.query-info dd{margin:0;overflow-wrap:anywhere}.query-names{padding:4px 16px;background:#f1f7f2;border-radius:8px}.query-error{color:#a33d2d}#queryDetailBody pre{max-height:400px;overflow:auto;padding:14px;background:#f4f7f4}td[data-field=query_summary]{min-width:180px;max-width:320px}td:last-child>button+button{margin-left:6px}.status-tag[data-status=success]{background:#eaf4eb;color:#35794f}.status-tag[data-status=error]{background:#fff0eb;color:#a45a48}@media(max-width:760px){.query-info{grid-template-columns:1fr;gap:3px}.query-info dd{margin-bottom:10px}#querySearch{width:100%}}

#queryFilters{display:flex;align-items:center;flex-wrap:wrap;gap:8px}table[data-list=queryHistory]{min-width:1050px;table-layout:fixed}table[data-list=queryHistory] th:nth-child(1){width:21%}table[data-list=queryHistory] th:nth-child(2){width:9%}table[data-list=queryHistory] th:nth-child(3){width:8%}table[data-list=queryHistory] th:nth-child(4){width:17%}table[data-list=queryHistory] th:nth-child(5){width:7%}table[data-list=queryHistory] th:nth-child(6){width:13%}table[data-list=queryHistory] th:nth-child(7){width:16%}table[data-list=queryHistory] th:last-child{width:9%}

table[data-list=queryHistory] th:nth-child(1){width:20%}table[data-list=queryHistory] th:nth-child(2){width:11%}table[data-list=queryHistory] th:nth-child(6){width:12%}td[data-field=query_summary]{white-space:normal;overflow-wrap:anywhere}

section[data-panel=paymentConfig] label{display:block;margin:16px 0}section[data-panel=paymentConfig] label>input:not([type=checkbox]){display:block;width:100%;max-width:620px;margin:6px 0}#paymentState{padding:12px 16px;background:#eff6f0;border-radius:8px}#paymentGoPlans{background:white;color:var(--jade-700);border-color:#b8d1c2}
