:root {
  --primary:#0d9488; --primary-2:#14b8a6; --primary-soft:#ecfdf9;
  --bg:#f8fafc; --surface:#fff; --soft:#f8fafc; --line:#e5e7eb; --line-soft:#eef2f7;
  --text:#111827; --muted:#64748b; --subtle:#94a3b8; --danger:#ef4444;
  --sidebar:256px; --header:64px; --radius:16px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--text); background:var(--bg); letter-spacing:0;
}
*{box-sizing:border-box} html,body{min-height:100%;margin:0} body{min-width:320px;background:var(--bg);font-size:14px}
button,input,select,textarea{font:inherit;letter-spacing:0} button{cursor:pointer} button:disabled{cursor:not-allowed;opacity:.52}
a{color:inherit;text-decoration:none} [hidden]{display:none!important} svg{width:20px;height:20px;stroke-width:1.6}
.mesh{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 34% 14%,rgba(45,212,191,.12),transparent 34%),radial-gradient(circle at 82% 18%,rgba(56,189,248,.07),transparent 28%),#f8fafc}
.sidebar{position:fixed;z-index:50;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;background:rgba(255,255,255,.96);border-right:1px solid var(--line);transition:width .25s ease,transform .25s ease}
.sidebar-head{height:64px;display:flex;align-items:center;gap:12px;padding:0 24px;border-bottom:1px solid var(--line-soft);overflow:hidden;white-space:nowrap}
.brand-logo{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:12px;background:#fff;box-shadow:0 0 20px rgba(20,184,166,.14)}
.brand-logo img{width:34px;height:34px;object-fit:contain;border-radius:10px}.brand-name{font-size:18px;font-weight:750;white-space:nowrap}
.sidebar-nav{flex:1;padding:16px 12px;overflow:auto;scrollbar-width:none}.sidebar-nav::-webkit-scrollbar{display:none}
.nav-link{width:100%;min-height:40px;display:flex;align-items:center;gap:12px;margin-bottom:4px;padding:9px 17px;border:0;border-radius:12px;color:#475569;background:transparent;font-weight:500;text-align:left;white-space:nowrap;overflow:hidden;transition:.18s ease}
.nav-link:hover{color:#0f172a;background:#f3f4f6}.nav-link.active{color:#0f9f94;background:#eafaf7}.nav-link svg{width:20px;height:20px;flex:none}
.sidebar-foot{padding:12px;border-top:1px solid var(--line-soft)}.nav-button{margin:0 0 4px}
.app{position:relative;min-height:100vh;margin-left:var(--sidebar);transition:margin-left .25s ease}
.topbar{position:sticky;z-index:35;top:0;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid rgba(229,231,235,.7);background:rgba(255,255,255,.8);backdrop-filter:blur(22px)}
.topbar-left{display:flex;align-items:center;gap:12px;min-width:0}.page-heading h1{margin:0;font-size:18px;line-height:1.35;font-weight:720}.page-heading p{margin:2px 0 0;color:var(--muted);font-size:12px}
.top-actions{display:flex;align-items:center;gap:6px}.top-link,.icon-button,.account{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:10px;color:#475569;background:transparent;font-size:13px;font-weight:500}
.top-link{padding:0 10px}.icon-button{width:36px;padding:0}.top-link:hover,.icon-button:hover,.account:hover{color:#0f172a;background:#f3f4f6}.top-actions svg{width:17px;height:17px}.language svg,.account>svg{width:14px;height:14px}
.balance-pill{height:32px;display:flex;align-items:center;gap:7px;padding:0 12px;border-radius:999px;color:#0f766e;background:#ecfdf9;font-size:13px}.balance-pill svg{width:16px;height:16px}
.account{height:44px;padding:0 4px 0 8px}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(135deg,#14b8a6,#0d9488);font-weight:700}.account-copy{max-width:120px;text-align:left;line-height:1.15}.account-copy strong,.account-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-copy small{margin-top:4px;color:var(--muted);font-size:10px}.mobile-menu{display:none}
main{position:relative;min-height:calc(100vh - 64px);padding:32px}.content{width:min(100%,1120px);margin:0 auto}.content-wide{width:min(100%,1280px);margin:0 auto}
.card{border:1px solid var(--line-soft);border-radius:var(--radius);background:rgba(255,255,255,.96);box-shadow:0 1px 2px rgba(15,23,42,.08)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat-card{min-height:94px;display:flex;align-items:center;gap:14px;padding:16px}.stat-icon{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:12px;color:#059669;background:#d1fae5}.stat-icon.blue{color:#2563eb;background:#dbeafe}.stat-icon.purple{color:#9333ea;background:#f3e8ff}.stat-icon.amber{color:#d97706;background:#fef3c7}.stat-icon.red{color:#e11d48;background:#ffe4e6}.stat-label{color:var(--muted);font-size:12px}.stat-value{margin-top:2px;font-size:23px;line-height:1.2;font-weight:730;font-variant-numeric:tabular-nums}.stat-meta{margin-top:3px;color:var(--muted);font-size:11px}
.section-card{margin-top:24px;padding:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title{margin:0;font-size:15px;font-weight:700}.section-note{color:var(--muted);font-size:12px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.toolbar-group{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.input,.select{height:42px;border:1px solid #dfe4eb;border-radius:12px;color:#334155;background:#fff;outline:none}.input{min-width:255px;padding:0 14px}.select{min-width:158px;padding:0 38px 0 14px}.input:focus,.select:focus{border-color:#14b8a6;box-shadow:0 0 0 3px rgba(20,184,166,.1)}
.search-box{position:relative;display:block}.search-box>svg{position:absolute;z-index:1;left:13px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:#94a3b8;pointer-events:none}.search-box .input{padding-left:39px}.keys-toolbar{margin-bottom:12px}.keys-toolbar-actions{margin-left:auto}.keys-page .endpoint-row{margin:0 0 24px}.keys-table table{min-width:1080px}.keys-table th:nth-child(1){width:13%}.keys-table th:nth-child(2){width:14%}.keys-table th:nth-child(3){width:27%}.keys-table th:nth-child(4){width:8%}.keys-table th:nth-child(5){width:13%}.keys-table th:nth-child(6){width:25%}.keys-table td{height:79px}.key-value{display:inline-flex;align-items:center;gap:6px}.key-value code{padding:3px 6px;border-radius:4px;color:#0f8f83;background:#f1f5f9;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}.action-copy{width:24px;height:24px;display:inline-grid;place-items:center;padding:0;border:0;border-radius:6px;color:#94a3b8;background:transparent}.action-copy:hover{color:#0d9488;background:#ecfdf5}.action-copy svg{width:13px;height:13px}.key-group{min-width:276px;display:flex;align-items:center;gap:10px}.key-group .badge{flex:none}.key-group .badge svg{width:14px;height:14px}.key-group select{width:136px;min-width:136px;max-width:136px;height:30px;padding:0 28px 0 8px;border:1px solid transparent;border-radius:7px;outline:none;color:#475569;background:transparent;font-size:12px}.key-group select:hover,.key-group select:focus{border-color:var(--line);background:var(--soft)}.concurrency-count{min-width:32px;height:28px;display:inline-grid;place-items:center;border-radius:5px;color:#64748b;background:#f1f5f9;font-weight:700}.key-usage{display:grid;gap:4px;color:#64748b;font-size:12px}.key-actions{gap:1px;justify-content:flex-end}.key-actions button{width:auto;min-width:43px;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 6px}.key-actions button span{font-size:11px;white-space:nowrap}.key-actions button:nth-child(2):hover{color:#2563eb;background:#eff6ff}.key-actions button:nth-child(3):hover{color:#ca8a04;background:#fefce8}.key-actions button:last-child:hover{color:#dc2626;background:#fef2f2}.table-footer{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 22px;color:var(--muted);font-size:12px}.pagination{display:flex;align-items:center;gap:0}.pagination label{display:flex;align-items:center;gap:6px;margin-right:18px}.pagination select{height:38px;min-width:72px;padding:0 28px 0 12px;border:1px solid var(--line);border-radius:12px;color:#334155;background:#fff}.pagination button,.page-current{width:40px;height:38px;display:grid;place-items:center;border:1px solid var(--line);color:#64748b;background:#fff}.pagination button:first-of-type{border-radius:8px 0 0 8px}.pagination button:last-child{border-radius:0 8px 8px 0}.pagination button svg{width:16px;height:16px}.page-current{border-left:0;border-right:0;color:#0f766e;background:#f0fdfa}.column-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px}.column-settings label{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:8px}.column-settings input{width:16px;height:16px;accent-color:#0d9488}
.btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border:1px solid #dfe4eb;border-radius:12px;color:#334155;background:#fff;font-size:13px;font-weight:600;box-shadow:0 1px 2px rgba(15,23,42,.05)}.btn:hover{background:#f8fafc}.btn svg{width:17px;height:17px}.btn-primary{border-color:transparent;color:#fff;background:linear-gradient(135deg,#14b8a6,#0d9488);box-shadow:0 5px 12px rgba(13,148,136,.2)}.btn-primary:hover{background:#0d9488}.btn-sm{min-height:30px;padding:0 10px;border-radius:8px;font-size:12px}.btn-icon{width:42px;padding:0}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.05)}table{width:100%;border-collapse:collapse;white-space:nowrap}th{height:52px;padding:0 18px;color:#475569;background:#f8fafc;font-size:13px;font-weight:500;text-align:left}td{height:68px;padding:10px 18px;border-top:1px solid #eef2f7;color:#334155;font-size:13px;vertical-align:middle}tbody tr:hover{background:#f9fbfc}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.muted{color:var(--muted)}.teal{color:#059669}.danger{color:#dc2626}.amount{font-variant-numeric:tabular-nums}
.badge{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:2px 8px;border-radius:7px;color:#047857;background:#ecfdf5;font-size:12px}.badge.gray{color:#475569;background:#f1f5f9}.badge.amber{color:#c2410c;background:#fff7ed}.badge.blue{color:#1d4ed8;background:#eff6ff}.badge.red{color:#b91c1c;background:#fef2f2}
.endpoint-row{display:flex;gap:8px;flex-wrap:wrap;margin:-4px 0 24px}.endpoint{display:flex;align-items:center;gap:7px;min-height:30px;padding:4px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#64748b;font-size:11px}.endpoint b{color:#334155}.endpoint .url{font-family:ui-monospace,monospace}
.platform-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.platform-card{min-height:110px;padding:14px;border:1px solid #dfe4eb;border-radius:9px}.platform-card h3{display:flex;align-items:center;justify-content:space-between;margin:0;font-size:14px}.platform-card dl{margin:10px 0 0;display:grid;grid-template-columns:1fr auto;gap:5px;color:var(--muted);font-size:12px}.platform-card dd{margin:0;color:#334155;font-family:ui-monospace,monospace}
.split-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.split-grid>*{min-width:0}.chart-placeholder{height:240px;display:flex;align-items:end;justify-content:space-around;gap:8px;padding:24px 14px 18px;border-bottom:1px solid var(--line-soft)}.bar{width:8%;min-width:12px;border-radius:6px 6px 2px 2px;background:#3b82f6}.bar:nth-child(2n){background:#10b981}.bar:nth-child(3n){background:#f59e0b}
.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.status-card{padding:20px}.status-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.status-name{min-width:0;display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700}.status-logo{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:12px;color:#059669;background:#d1fae5}.status-subtitle{margin:6px 0 0 50px;font-size:12px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.metric{padding:12px;border:1px solid var(--line-soft);border-radius:13px;background:#fbfdff}.metric span{display:block;color:var(--subtle);font-size:11px}.metric strong{display:block;margin-top:10px;font-size:15px}.availability{display:flex;justify-content:space-between;align-items:end;padding:12px 0;border-top:1px solid var(--line-soft)}.availability span{color:var(--subtle);font-size:12px}.availability strong{color:#16a34a;font-size:28px}.ticks{height:22px;display:flex;align-items:end;gap:3px}.ticks i{width:4px;height:16px;border-radius:2px;background:#10b981}.ticks i:nth-child(7n){height:9px;background:#f59e0b}.ticks.is-offline i{background:#ef4444}.ticks.is-unknown i{height:12px;background:#cbd5e1}.ticks.is-unknown i:nth-child(7n){height:8px;background:#94a3b8}
.empty-state{min-height:238px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-icon{width:64px;height:64px;display:grid;place-items:center;margin-bottom:16px;border-radius:50%;color:#94a3b8;background:#f3f4f6}.empty-state h2{margin:0 0 8px;font-size:19px}.empty-state p{margin:0;color:var(--muted);font-size:15px}
.tabs{display:grid;grid-template-columns:1fr 1fr;margin:0 auto 26px;padding:4px;border-radius:12px;background:#f1f5f9}.tab{height:40px;border:0;border-radius:9px;color:var(--muted);background:transparent}.tab.active{color:#111827;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.1)}
.purchase-content{max-width:896px}.purchase-account{margin:0 0 24px}.purchase-account strong{display:block;margin-top:5px}.purchase-content .section-card>.section-title{margin-bottom:12px}.custom-amount-title{margin:18px 0 10px}.purchase-content .input-prefix{display:block}.purchase-content .input-prefix .input{width:100%;min-width:0}.amount-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.amount-choice{height:58px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:2px solid #e5e7eb;border-radius:10px;color:#334155;background:#fff}.amount-choice strong{font-size:16px}.amount-choice small{color:#dc2626;font-size:10px}.amount-choice.selected{border-color:#14b8a6;color:#0f766e;background:#f0fdfa}.payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.payment-choice{height:62px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #d1d5db;border-radius:9px;background:#fff;font-size:16px;font-weight:700}.payment-choice svg{width:20px;height:20px}.payment-choice.selected{border-color:#0ea5e9;background:#eff6ff}.payment-summary{display:flex;align-items:center;justify-content:space-between;margin-top:24px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.payment-summary span{color:var(--muted)}.payment-summary strong{font-size:20px}.pay-now{width:100%;margin-top:12px}.subscription-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.subscription-card{min-width:0;padding:22px}.subscription-card h2{margin:12px 0 8px;font-size:18px}.subscription-card p{min-height:20px}.subscription-price{display:block;margin:18px 0 4px;color:#0f766e;font-size:28px}.subscription-meter{height:8px;margin:22px 0;border-radius:999px;background:#e2e8f0;overflow:hidden}.subscription-meter i{display:block;height:100%;border-radius:inherit;background:#14b8a6}.subscription-card dl{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0;color:var(--muted)}.subscription-card dd{margin:0;color:#334155;font-weight:600}.order-toolbar{margin:0}.order-toolbar .toolbar{margin:0}.orders-table{margin-top:16px}.orders-table table{min-width:960px}
.redeem-wrap{max-width:672px;margin:0 auto}.balance-hero{min-height:240px;display:grid;place-items:center;padding:28px;border-radius:16px;color:#fff;background:linear-gradient(135deg,#14b8a6,#0f9f94);text-align:center}.balance-hero .hero-icon{width:64px;height:64px;display:grid;place-items:center;margin:auto;border-radius:16px;background:rgba(255,255,255,.2)}.balance-hero small{display:block;margin-top:14px}.balance-hero strong{display:block;margin-top:4px;font-size:40px}.balance-hero p{margin:4px 0 0}.redeem-form{margin-top:24px;padding:24px}.redeem-form .input{width:100%;height:54px;font-size:17px}.redeem-form .btn{width:100%;margin-top:22px}.info-box{margin-top:24px;padding:24px;border:1px solid #5eead4;border-radius:16px;color:#0f766e;background:#f0fdfa}.info-box h3{margin:0 0 10px;font-size:14px}.info-box ul{margin:0;padding-left:22px;line-height:1.8}.recent-activity{margin-top:24px}.recent-empty{min-height:120px}.activity-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line-soft)}.activity-row:first-of-type{margin-top:12px}.activity-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0f766e;background:#ccfbf1}.activity-icon svg{width:18px}.activity-row small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.activity-row>.teal{text-align:right;font-size:12px;overflow-wrap:anywhere}
.affiliate-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.affiliate-code{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.affiliate-code>div{min-width:0}.copy-field{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:6px 10px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;overflow:hidden}.copy-field code{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.copy-field .action-copy{width:auto;min-width:112px;height:38px;display:inline-flex;flex:none;padding:0 12px;white-space:nowrap}.copy-field .action-copy svg{width:15px;height:15px;flex:none}
.profile-content{max-width:950px}.profile-hero{max-width:950px;margin:0 auto;padding:24px 32px}.profile-main{display:flex;align-items:center;gap:24px}.profile-avatar{width:82px;height:82px;display:grid;place-items:center;flex:none;border-radius:28px;color:#fff;background:linear-gradient(135deg,#14b8a6,#0d9488);font-size:30px;font-weight:700;box-shadow:0 12px 24px rgba(13,148,136,.22)}.compact-avatar{width:64px;height:64px;border-radius:18px;font-size:24px}.profile-title{min-width:0;flex:1}.profile-title h2{margin:0;font-size:25px;overflow:hidden;text-overflow:ellipsis}.profile-title p{margin:8px 0;color:var(--muted)}.profile-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.profile-fact{padding:12px 16px;border-radius:12px;background:#fbfdff}.profile-fact span{display:block;color:var(--subtle);font-size:12px}.profile-fact strong{display:block;margin-top:4px;font-size:19px}.settings{max-width:950px;margin:24px auto 0;padding:24px}.settings h2{margin:0 0 4px;font-size:20px}.settings p{margin:0;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:20px}.settings-panel{padding:20px;border:1px solid var(--line-soft);border-radius:16px;background:#fbfdff}.settings-panel label{display:block;margin:0 0 8px;font-size:13px}.settings-panel .input{width:100%;min-width:0}.profile-avatar-panel h3{margin:16px 0 6px}.settings-actions{display:flex;justify-content:flex-end;margin-top:20px}.binding-grid{display:grid;gap:0;margin-top:20px}.binding-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 4px;border-top:1px solid var(--line-soft)}.binding-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#0f766e;background:#ccfbf1;font-weight:700}.binding-row small{display:block;margin-top:4px;color:var(--muted)}.security-form{margin-top:20px}.security-form .input{width:100%;min-width:0}.twofa-setup{display:grid;gap:12px}.twofa-setup>label{font-size:12px;font-weight:600}.backup-codes{max-height:180px;overflow:auto;margin:0;padding:14px;border-radius:8px;color:#e2e8f0;background:#0f172a;font:13px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap}
.codex-frame{width:100%;height:calc(100vh - 129px);border:0;border-radius:0;background:#fff}.codex-content{width:100%;margin:-32px;height:calc(100vh - 64px)}
.page-loading{min-height:400px;display:grid;place-items:center;align-content:center;color:var(--muted)}.page-loading span{width:34px;height:34px;border:3px solid #ccfbf1;border-top-color:#14b8a6;border-radius:50%;animation:spin .8s linear infinite}.page-loading p{margin:12px 0}@keyframes spin{to{transform:rotate(360deg)}}
.notice{padding:14px 16px;border:1px solid #fde68a;border-radius:12px;color:#92400e;background:#fffbeb}.action-icons{display:flex;gap:4px}.action-icons button{width:30px;height:30px;border:0;border-radius:8px;color:#64748b;background:transparent}.action-icons button:hover{color:#0f766e;background:#ecfdf5}.action-icons svg{width:15px;height:15px}
.modal-layer{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.46);backdrop-filter:blur(4px)}.modal{position:relative;width:min(100%,512px);max-height:calc(100vh - 40px);overflow:auto;border-radius:16px;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.3)}.modal.modal-wide{width:min(100%,896px)}.modal>header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line)}.modal h2{margin:0;font-size:18px}.modal-body{padding:20px 24px}.form-grid{display:grid;gap:16px}.form-field label{display:block;margin-bottom:7px;color:#334155;font-size:13px}.form-field .input,.form-field .select{width:100%;min-width:0}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.key-create-form{gap:14px}.switch-row{min-height:26px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#334155;font-size:13px}.switch-row input{position:absolute;opacity:0;pointer-events:none}.switch-row i{position:relative;width:36px;height:20px;flex:none;border-radius:999px;background:#e2e8f0;transition:.18s}.switch-row i:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.18);transition:.18s}.switch-row input:checked+i{background:#14b8a6}.switch-row input:checked+i:after{transform:translateX(16px)}.switch-row.is-disabled{color:#94a3b8;cursor:not-allowed}.toggle-field{margin-top:-7px}.input-prefix{position:relative}.input-prefix>span{position:absolute;z-index:1;left:14px;top:50%;transform:translateY(-50%);color:#64748b}.input-prefix .input{padding-left:34px}.form-help{display:block;margin-top:5px;color:#64748b;font-size:11px}.key-config{display:grid;gap:16px}.config-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.config-tabs button{height:44px;display:flex;align-items:center;gap:7px;padding:0 5px;border:0;border-bottom:2px solid transparent;color:#64748b;background:transparent}.config-tabs button.active{border-color:#14b8a6;color:#0d9488}.config-tabs svg{width:15px;height:15px}.config-mode{padding:14px;border:1px solid var(--line);border-radius:10px;color:#334155}.config-mode>span{display:block;margin-bottom:10px;font-size:13px}.segmented{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:8px;background:#f1f5f9}.segmented button{height:34px;border:0;border-radius:6px;color:#64748b;background:transparent}.segmented button.active{color:#0f766e;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.08)}.os-tabs{gap:20px}.config-block{margin-top:14px;overflow:hidden;border-radius:12px;background:#111827}.config-block header{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #334155;color:#94a3b8}.config-block header button{display:flex;align-items:center;gap:5px;padding:5px 9px;border:0;border-radius:7px;color:#e2e8f0;background:#334155;font-size:11px}.config-block header button svg{width:13px;height:13px}.config-block pre{min-height:120px;max-height:250px;overflow:auto;margin:0;padding:16px;color:#f8fafc;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}.qr-placeholder{width:230px;aspect-ratio:1;display:grid;place-items:center;margin:4px auto 16px;border:1px dashed #94a3b8;border-radius:8px;color:#64748b;background:#f8fafc;text-align:center}.qr-placeholder svg{width:48px;height:48px;margin:0 auto 10px}.service-note{text-align:center;color:var(--muted)}.customer-service{text-align:center}.customer-qr-frame{width:min(100%,340px);margin:0 auto;padding:12px;border:1px solid #dfe4eb;border-radius:10px;background:#fff}.customer-qr{display:block;width:100%;aspect-ratio:1;object-fit:contain}.customer-service strong{display:block;margin-top:16px;font-size:16px}.customer-service p{margin:7px 0 0;color:var(--muted);line-height:1.65}
.toast{position:fixed;z-index:120;left:50%;bottom:32px;transform:translateX(-50%);max-width:min(90vw,460px);padding:12px 16px;border-radius:10px;color:#fff;background:#0f172a;box-shadow:0 12px 30px rgba(15,23,42,.2)}
.announcement-button{position:relative}.announcement-button.has-unread:after{content:"";position:absolute;top:7px;right:7px;width:7px;height:7px;border:2px solid var(--surface);border-radius:50%;background:#ef4444}.announcement-content{padding:2px 0}.announcement-mark{width:46px;height:46px;display:grid;place-items:center;margin-bottom:18px;border-radius:12px;color:#0f766e;background:#ccfbf1}.announcement-mark svg{width:23px;height:23px}.announcement-content h3{margin:0;color:#111827;font-size:20px}.announcement-content p{margin:13px 0 0;color:#334155;font-size:16px;line-height:1.75}.announcement-content time{display:block;margin-top:18px;color:var(--muted);font-size:12px}.announcement-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.sidebar-mask{display:none}.shell.collapsed{--sidebar:72px}.shell.collapsed .brand-name,.shell.collapsed .nav-link span{display:none}.shell.collapsed .sidebar-head{padding:0 18px}.shell.collapsed .nav-link{justify-content:center;padding:9px}.shell.collapsed .sidebar-nav,.shell.collapsed .sidebar-foot{padding-left:10px;padding-right:10px}
/* Source-matched dark palette for every customer-facing surface. */
.dark{--bg:#020617;--surface:#0f172a;--soft:#111827;--line:#334155;--line-soft:#1e293b;--text:#f8fafc;--muted:#94a3b8;--subtle:#64748b}
.dark body{color:var(--text);background:var(--bg)}
.dark .mesh{background:radial-gradient(circle at 30% 12%,rgba(8,145,178,.13),transparent 32%),#020617}
.dark .sidebar{border-color:#1e293b;background:#0f172a;color:#f8fafc}
.dark .sidebar-head,.dark .sidebar-foot{border-color:#1e293b}
.dark .brand-logo{background:#0f172a;box-shadow:0 0 18px rgba(45,212,191,.14)}
.dark .brand-name{color:#fff}
.dark .nav-link,.dark .top-link,.dark .icon-button,.dark .account{color:#cbd5e1}
.dark .nav-link svg,.dark .top-link svg,.dark .icon-button svg,.dark .account>svg{color:#cbd5e1;stroke-width:1.8}
.dark .nav-link:hover,.dark .top-link:hover,.dark .icon-button:hover,.dark .account:hover{color:#fff;background:#1e293b}
.dark .nav-link:hover svg,.dark .top-link:hover svg,.dark .icon-button:hover svg{color:#f8fafc}
.dark .nav-link.active{color:#2dd4bf;background:rgba(19,78,74,.2);font-weight:650}
.dark .nav-link.active svg{color:#2dd4bf;stroke-width:2}
.dark .topbar{border-color:#334155;background:rgba(30,41,59,.96)}
.dark .page-heading h1,.dark .section-title,.dark .settings h2,.dark .settings h3,.dark .empty-state h2,.dark .profile-title h2{color:#fff}
.dark .page-heading p,.dark .section-note,.dark .muted,.dark .stat-label,.dark .stat-meta,.dark .profile-title p,.dark .settings p,.dark .empty-state p{color:#94a3b8}
.dark .card,.dark .table-wrap,.dark .endpoint,.dark .modal{border-color:#334155;background:rgba(15,23,42,.94);color:#e2e8f0;box-shadow:none}
.dark .input,.dark .select,.dark .btn{border-color:#475569;background:#1e293b;color:#e2e8f0;box-shadow:none}
.dark .input::placeholder,.dark textarea::placeholder{color:#94a3b8;opacity:1}
.dark .search-box>svg{color:#94a3b8}
.dark .btn:not(.btn-primary):hover{border-color:#64748b;background:#334155;color:#fff}
.dark .btn-primary{border-color:transparent;color:#fff;background:#14b8a6;box-shadow:0 5px 12px rgba(20,184,166,.18)}
.dark .btn-primary:hover{background:#0d9488}
.dark th{background:#1e293b;color:#e2e8f0;font-weight:650}
.dark td{border-color:#1e293b;color:#cbd5e1}
.dark tbody tr:hover{background:#111827}
.dark td strong,.dark .status-name,.dark .platform-card h3,.dark .metric strong{color:#f8fafc}
.dark .table-footer{color:#94a3b8}
.dark .key-value code,.dark .concurrency-count{color:#5eead4;background:#1e293b}
.dark .action-copy{color:#94a3b8}
.dark .action-copy:hover{color:#5eead4;background:rgba(19,78,74,.35)}
.dark .key-group select{border-color:transparent;color:#cbd5e1;background:#0f172a}
.dark .key-group select:hover,.dark .key-group select:focus{border-color:#475569;background:#1e293b}
.dark .key-usage{color:#cbd5e1}
.dark .action-icons button,.dark .key-actions button{color:#94a3b8;background:transparent}
.dark .key-actions button svg{color:#94a3b8;stroke-width:1.8}
.dark .key-actions button:hover{color:#fff;background:#1e293b}
.dark .key-actions button:nth-child(2):hover{color:#93c5fd;background:#1e3a5f}
.dark .key-actions button:nth-child(3):hover{color:#fcd34d;background:#422f13}
.dark .key-actions button:last-child:hover{color:#fca5a5;background:#45232a}
.dark .pagination select,.dark .pagination button{border-color:#334155;color:#cbd5e1;background:#1e293b}
.dark .page-current{border-color:#334155;color:#5eead4;background:rgba(19,78,74,.35)}
.dark .badge{border:1px solid #285e57;color:#5eead4;background:rgba(19,78,74,.45)}
.dark .badge.gray{border-color:#475569;color:#cbd5e1;background:#334155}
.dark .badge.amber{border-color:#713f12;color:#fbbf24;background:#422006}
.dark .badge.blue{border-color:#1d4ed8;color:#93c5fd;background:#172554}
.dark .badge.red{border-color:#7f1d1d;color:#fca5a5;background:#450a0a}
.dark .endpoint b,.dark .endpoint .url{color:#cbd5e1}
.dark .balance-pill{color:#5eead4;background:rgba(19,78,74,.35)}
.dark .profile-fact,.dark .settings-panel,.dark .metric,.dark .copy-field,.dark .column-settings label,.dark .segmented{border-color:#334155;background:#111827;color:#cbd5e1}
.dark .platform-card{border-color:#475569}
.dark .platform-card dl{color:#94a3b8}.dark .platform-card dd{color:#e2e8f0}
.dark .stat-icon{color:#34d399;background:#064e3b80}.dark .stat-icon.blue{color:#60a5fa;background:#1e3a8a80}.dark .stat-icon.purple{color:#c084fc;background:#581c8780}.dark .stat-icon.amber{color:#fbbf24;background:#78350f80}.dark .stat-icon.red{color:#fb7185;background:#88133780}
.dark .status-logo{color:#2dd4bf;background:rgba(19,78,74,.45)}
.dark .metric span,.dark .availability span,.dark .profile-fact span{color:#94a3b8}
.dark .tabs{background:#111827}.dark .tab{color:#94a3b8}.dark .tab.active{color:#f8fafc;background:#334155}
.dark .amount-choice,.dark .payment-choice{border-color:#475569;color:#e2e8f0;background:#111827}
.dark .amount-choice.selected,.dark .payment-choice.selected{border-color:#2dd4bf;color:#5eead4;background:rgba(19,78,74,.35)}
.dark .amount-choice small{color:#fca5a5}.dark .tabs{background:#111827}.dark .tab{color:#94a3b8}.dark .tab.active{color:#fff;background:#334155}.dark .payment-summary{border-color:#334155;background:#0f172a}.dark .payment-summary strong,.dark .subscription-card dd{color:#f8fafc}.dark .subscription-card .subscription-price{color:#5eead4}.dark .subscription-meter{background:#334155}.dark .ticks.is-unknown i{background:#475569}.dark .ticks.is-unknown i:nth-child(7n){background:#64748b}.dark .activity-row{border-color:#334155}.dark .activity-icon,.dark .binding-icon{color:#5eead4;background:rgba(19,78,74,.45)}
.dark .info-box{border-color:#155e75;color:#5eead4;background:#0f2f36}
.dark .notice{border-color:#854d0e;color:#fde68a;background:#422006}
.dark .empty-icon{color:#94a3b8;background:#1e293b}
.dark .form-field label,.dark .switch-row,.dark .config-mode{color:#cbd5e1}
.dark .form-help,.dark .service-note{color:#94a3b8}
.dark .segmented button,.dark .config-tabs button{color:#94a3b8}
.dark .segmented button.active{color:#5eead4;background:#334155}
.dark .config-tabs button.active{color:#5eead4}
.dark .qr-placeholder{border-color:#64748b;color:#94a3b8;background:#111827}
.dark .customer-qr-frame{border-color:#475569;background:#fff}.dark .customer-service strong{color:#f8fafc}.dark .customer-service p{color:#94a3b8}
.dark .announcement-button.has-unread:after{border-color:#1e293b}.dark .announcement-mark{color:#5eead4;background:rgba(19,78,74,.45)}.dark .announcement-content h3{color:#f8fafc}.dark .announcement-content p{color:#cbd5e1}.dark .announcement-content time{color:#94a3b8}
@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-copy,.language,.top-docs{display:none}}
@media(max-width:1023px){:root{--sidebar:256px}.sidebar{transform:translateX(-100%)}.app{margin-left:0}.mobile-menu{display:inline-flex}.shell.mobile-open .sidebar{transform:translateX(0)}.shell.mobile-open .sidebar-mask{display:block;position:fixed;z-index:45;inset:0;background:rgba(15,23,42,.32)}.shell.collapsed{--sidebar:256px}.shell.collapsed .brand-name,.shell.collapsed .nav-link span{display:block}.shell.collapsed .sidebar-head{padding:0 24px}.shell.collapsed .nav-link{justify-content:flex-start;padding:9px 17px}.shell.collapsed .sidebar-nav,.shell.collapsed .sidebar-foot{padding-left:12px;padding-right:12px}}
@media(max-width:720px){main{padding:20px 14px}.topbar{padding:0 12px}.page-heading{display:none}.top-actions{gap:2px}.top-actions>.icon-button:first-of-type,.top-actions>.language{display:none}.top-link{padding:0 7px}.top-link span{display:none}.balance-pill{padding:0 9px}.account{padding:0 2px}.stats-grid,.split-grid,.status-grid,.affiliate-grid,.settings-grid,.subscription-grid{grid-template-columns:1fr}.platform-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.toolbar-group{display:grid;grid-template-columns:1fr 1fr}.toolbar-group .input{grid-column:1/-1}.keys-toolbar .search-box{grid-column:1/-1}.keys-toolbar-actions{display:flex;margin-left:0}.keys-toolbar-actions .btn{flex:1}.input,.select{min-width:0;width:100%}.content,.content-wide{width:100%}.section-card{margin-top:16px}.amount-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-grid,.affiliate-code{grid-template-columns:1fr}.profile-hero{padding:20px}.profile-main{align-items:flex-start}.profile-avatar{width:64px;height:64px;border-radius:20px}.profile-title h2{font-size:18px}.profile-facts{grid-template-columns:1fr}.settings{padding:20px}.binding-row{grid-template-columns:auto minmax(0,1fr)}.binding-row>.badge{grid-column:2}.activity-row{grid-template-columns:auto minmax(0,1fr)}.activity-row>.teal{grid-column:2;text-align:left}.codex-content{margin:-20px -14px;width:calc(100% + 28px);height:calc(100vh - 64px)}.codex-frame{height:calc(100vh - 64px)}.redeem-wrap{max-width:none}.balance-hero{min-height:210px}.table-wrap{border-radius:12px}.table-footer{padding:12px 2px;align-items:flex-start;flex-direction:column}.pagination{width:100%;justify-content:flex-end}.lang-prefix{display:none}}
.keys-command-row{min-height:43px;display:flex;justify-content:flex-end;margin-bottom:24px}.keys-filter-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.keys-page .endpoint{height:30px;min-height:30px;padding:2px 10px}
@media(max-width:720px){.keys-command-row{margin-bottom:12px}.keys-filter-row{display:grid;grid-template-columns:1fr 1fr}.keys-filter-row .search-box{grid-column:1/-1}.keys-toolbar-actions{display:flex;width:100%;margin-left:0}.keys-toolbar-actions .btn{flex:1}}
.key-actions{gap:4px;min-width:264px}.key-actions button{min-width:44px;padding:4px}.key-actions button:nth-child(2){min-width:60px}
@media(min-width:1181px){
  .keys-table table{min-width:0;table-layout:fixed}
  .keys-table th,.keys-table td{padding-left:10px;padding-right:10px}
  .keys-table td:first-child strong{display:block;overflow:hidden;text-overflow:ellipsis}
  .keys-table .key-group{min-width:0;gap:6px}
  .keys-table .key-group select{width:124px;min-width:124px;max-width:124px}
  .keys-table .key-actions{min-width:0;gap:1px}
  .keys-table .key-actions button{min-width:40px;padding:4px 3px}
  .keys-table .key-actions button:nth-child(2){min-width:56px}
}

/* 2026-07 GoAI parity pass: shared shell and data-heavy customer pages. */
:root{--bg:#f9fafb;--surface:#fff;--soft:#f9fafb;--line:#e5e7eb;--line-soft:#eef2f7;--text:#111827;--muted:#6b7280;--subtle:#9ca3af;--radius:14px;--header:65px}
body{color:var(--text);background:var(--bg)}
.mesh{background:var(--bg)}
.sidebar{background:#fff}
.sidebar-head{height:65px}
.sidebar-nav{padding-top:15px}
.nav-link{min-height:40px;color:#4b5563;font-size:14px}
.nav-link.active{color:#0d9488;background:#f0fdfa}
.nav-link:hover{color:#111827;background:#f3f4f6}
.topbar{height:65px;padding:0 24px;background:rgba(255,255,255,.82);border-color:rgba(229,231,235,.55)}
.page-heading h1{font-size:18px;font-weight:650}
.page-heading p{color:#6b7280}
main{min-height:calc(100vh - 65px);padding:32px}
.card,.table-wrap{border-color:#e5e7eb;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.stat-card{min-height:96px;padding:16px}
.stat-value{font-size:24px}
.stat-icon{border-radius:10px}
.eyebrow{display:block;margin-bottom:5px;color:#0d9488;font-size:11px;font-weight:700;text-transform:uppercase}

.dashboard-page,.usage-page{max-width:1280px}
.dashboard-stats,.usage-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-toolbar{min-height:122px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px;padding:22px 24px}
.dashboard-toolbar h2{margin:0;font-size:21px}
.dashboard-toolbar p{margin:7px 0 0;color:var(--muted)}
.dashboard-actions{display:flex;gap:10px;flex:none}
.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}
.analytics-card{min-width:0;min-height:330px;padding:16px}
.analytics-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.analytics-head h2{margin:0;font-size:14px;font-weight:650}
.analytics-head>a{font-size:12px}
.mini-segment{display:flex;padding:3px;border-radius:8px;background:#f3f4f6}
.mini-segment button{height:25px;padding:0 9px;border:0;border-radius:6px;color:#6b7280;background:transparent;font-size:11px}
.mini-segment button.active{color:#111827;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.1)}
.distribution-layout{min-height:260px;display:grid;grid-template-columns:minmax(170px,.9fr) minmax(250px,1.35fr);align-items:center;gap:14px}
.donut{position:relative;width:168px;aspect-ratio:1;margin:auto;border-radius:50%;background:#e5e7eb}
.donut:after{content:"";position:absolute;inset:31px;border-radius:50%;background:var(--surface)}
.donut>span{position:absolute;z-index:1;inset:0;display:grid;place-content:center;text-align:center}
.donut strong,.donut small{display:block}.donut strong{font-size:17px}.donut small{margin-top:3px;color:var(--muted);font-size:10px}
.mini-table{min-width:0;align-self:stretch;overflow:hidden}
.mini-table-row{min-height:31px;display:grid;grid-template-columns:minmax(88px,1fr) 42px 58px 66px;align-items:center;gap:5px;border-top:1px solid var(--line-soft);font-size:10px}
.mini-table-head{border-top:0;color:var(--muted);font-weight:600}
.legend-name{min-width:0;display:flex;align-items:center;gap:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.legend-name i{width:7px;height:7px;flex:none;border-radius:2px}
.analytics-empty{display:grid;place-items:center;min-height:180px;color:var(--muted)}
.trend-card{overflow:hidden}
.trend-legend{display:flex;justify-content:flex-end;color:var(--muted);font-size:10px}
.trend-legend span{display:flex;align-items:center;gap:5px}.trend-legend i{width:8px;height:8px;border-radius:50%;background:#14b8a6}
.trend-chart{display:block;width:100%;height:220px;overflow:visible}
.trend-chart line{stroke:var(--line-soft);stroke-width:1}
.trend-chart polyline{fill:none;stroke:#14b8a6;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.trend-chart circle{fill:var(--surface);stroke:#14b8a6;stroke-width:2}
.trend-labels{display:grid;grid-template-columns:repeat(7,1fr);color:var(--muted);font-size:9px;text-align:center}
.dashboard-lower{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr);gap:20px;margin-top:20px}
.recent-card,.quick-card{padding:16px}
.recent-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:60px;border-top:1px solid var(--line-soft)}
.recent-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#0d9488;background:#ecfdf5}.recent-icon svg{width:16px}
.recent-row>div:last-child{text-align:right}.recent-row small,.quick-row small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.quick-row{min-height:72px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;border-top:1px solid var(--line-soft)}
.quick-row>svg{width:16px;color:var(--muted)}

.token-stat>div{min-width:0}.token-stat .stat-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.range-card{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px;padding:10px 14px}
.range-card>div{display:flex;align-items:center;gap:10px}.range-card>div>span{color:var(--muted);font-size:12px}
.compact-select{min-width:112px;height:38px}
.usage-analytics{align-items:stretch}
.usage-filter-card{margin-top:20px;padding:16px}
.usage-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px}
.usage-filters label{min-width:0}.usage-filters label>span{display:block;margin:0 0 7px;color:var(--muted);font-size:11px}.usage-filters .select{width:100%;min-width:0}
.usage-filter-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.usage-table{margin-top:20px;border-radius:14px}
.usage-table-meta{height:38px;display:flex;align-items:center;justify-content:flex-end;padding:0 14px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px}
.usage-table table{min-width:1520px}.usage-table th{height:42px;padding:0 12px;font-size:11px}.usage-table td{height:60px;padding:8px 12px;font-size:11px}
.token-cell{display:grid;grid-template-columns:auto auto;gap:2px 8px}.token-cell span:first-child{color:#10b981}.token-cell span:nth-child(2){color:#8b5cf6}.token-cell strong{grid-column:1/-1;color:#0ea5e9;font-size:10px}

.channels-page .table-wrap{border-radius:14px}.channel-table table{min-width:1080px}.channel-table td{height:auto;min-height:68px}
.monitor-page{max-width:1280px}
.learning-page{max-width:1280px}.learning-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:26px}.learning-hero h2{margin:8px 0 8px;font-size:24px}.learning-hero p{margin:0;color:var(--muted);line-height:1.7}.learning-scope{display:inline-flex;align-items:center;gap:7px;flex:none;padding:8px 11px;border:1px solid var(--line-soft);border-radius:999px;color:var(--teal);font-size:12px}.learning-scope svg{width:15px}.learning-stats{margin-top:18px}.learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.learning-grid>.analytics-card{min-width:0}.learning-insight{grid-column:1 / -1;padding:22px}.learning-insight p{margin:10px 0 20px;color:var(--muted);line-height:1.8}.learning-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.learning-facts div{min-width:0;padding:14px;border:1px solid var(--line-soft);border-radius:10px;background:var(--soft)}.learning-facts span{display:block;color:var(--muted);font-size:11px}.learning-facts strong{display:block;overflow:hidden;margin-top:7px;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.learning-data-note{display:flex;align-items:flex-start;gap:10px;margin-top:20px;padding:16px 18px;color:var(--muted);font-size:12px;line-height:1.7}.learning-data-note svg{width:17px;flex:none;color:var(--teal)}
.monitor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.monitor-toolbar>div{display:flex;align-items:center;gap:10px}
.monitor-tabs{width:240px;margin:0;padding:3px}.monitor-tabs .tab{height:34px}
.monitor-refresh{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.monitor-refresh svg{width:14px}
.status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.monitor-card{min-width:0;padding:20px}
.monitor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.monitor-head h2{margin:0;font-size:16px}.monitor-head p{display:flex;align-items:center;gap:8px;margin:6px 0 0;color:var(--muted);font-size:11px}.monitor-head p span{padding-left:8px;border-left:1px solid var(--line)}
.monitor-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.monitor-metrics>div{padding:11px 12px;border:1px solid var(--line-soft);border-radius:10px;background:var(--soft)}
.monitor-metrics span{display:block;color:var(--muted);font-size:10px}.monitor-metrics strong{display:block;margin-top:5px;font-size:16px}
.monitor-availability{display:flex;align-items:end;justify-content:space-between;margin-top:18px}.monitor-availability span{color:var(--muted);font-size:11px}.monitor-availability strong{font-size:29px}.monitor-availability small{margin-left:3px;color:var(--muted);font-size:12px}
.monitor-history{margin-top:12px}.monitor-history>div:first-child,.history-axis{display:flex;justify-content:space-between;color:var(--muted);font-size:9px}.monitor-history .ticks{height:24px;margin:7px 0 5px;align-items:stretch;gap:2px}.monitor-history .ticks i{height:auto;flex:1;min-width:2px;border-radius:2px;background:#10b981}.monitor-history .ticks i.fail{background:#ef4444}.monitor-history .ticks i.unknown{background:#d1d5db}

.endpoint{min-height:42px;padding:7px 12px}.endpoint-help{padding-left:7px;border-left:1px solid var(--line);color:var(--muted)}
.keys-table table{min-width:1080px}.keys-table th,.keys-table td{padding-left:10px;padding-right:10px;font-size:11px}.keys-table td{height:76px}.keys-table .key-group{min-width:0}.keys-table .key-actions{min-width:250px}
.keys-table th[data-key-column="actions"]{width:25%}
.embedded-tool-content{width:100%;min-height:calc(100vh - 128px);overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 1px 2px rgba(15,23,42,.06)}
.embedded-tool-frame{display:block;width:100%;height:calc(100vh - 130px);min-height:760px;border:0;background:#fff}
.keys-table [data-key-column="created"],.keys-table [data-key-column="expiry"]{min-width:125px}

.profile-content{max-width:950px}.profile-title h2{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.profile-title h2 .badge{font-size:10px;font-weight:500}
.settings{border-radius:14px}.settings-panel{border-radius:14px}.binding-row{min-height:68px}.security-form{grid-template-columns:1fr}.security-form .settings-actions{grid-column:1/-1}

.dark{--bg:#020617;--surface:#0f172a;--soft:#111827;--line:#334155;--line-soft:#1e293b;--text:#f3f4f6;--muted:#9ca3af;--subtle:#64748b}
.dark .mesh{background:#020617}
.dark .sidebar{background:#0f172a}
.dark .topbar{background:rgba(30,41,59,.82);border-color:rgba(51,65,85,.55)}
.dark .card,.dark .table-wrap,.dark .modal{background:#0f172a;border-color:#334155}
.dark .mini-segment{background:#111827}.dark .mini-segment button.active{color:#fff;background:#334155}
.dark .donut:after,.dark .trend-chart circle{background:#0f172a;fill:#0f172a}
.dark .dashboard-toolbar p,.dark .recent-row small,.dark .quick-row small{color:#9ca3af}
.dark .recent-icon{color:#5eead4;background:rgba(19,78,74,.45)}
.dark .monitor-metrics>div{border-color:#334155;background:#111827}
.dark .monitor-history .ticks i.unknown{background:#475569}
.dark .usage-table-meta{border-color:#334155}
.dark .endpoint-help{border-color:#475569}

@media(max-width:1180px){.dashboard-stats,.usage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.distribution-layout{grid-template-columns:150px minmax(230px,1fr)}.donut{width:142px}.donut:after{inset:27px}.dashboard-lower{grid-template-columns:1fr}.status-grid{grid-template-columns:1fr}}
@media(max-width:720px){
  main{padding:20px 14px}.topbar{height:64px}.dashboard-stats,.usage-stats,.analytics-grid{grid-template-columns:1fr}.dashboard-toolbar{align-items:flex-start;flex-direction:column;padding:18px}.dashboard-actions{width:100%}.dashboard-actions .btn{flex:1}.analytics-card{min-height:0}.distribution-layout{grid-template-columns:1fr;gap:16px}.donut{width:150px}.mini-table-row{grid-template-columns:minmax(100px,1fr) 38px 58px 64px}.trend-chart{height:190px}.dashboard-lower{grid-template-columns:1fr}.range-card{align-items:stretch;flex-direction:column}.range-card>div{justify-content:space-between}.usage-filters{grid-template-columns:1fr 1fr}.usage-filter-actions{display:grid;grid-template-columns:1fr 1fr}.usage-filter-actions .btn{padding:0 8px}.monitor-toolbar{align-items:stretch;flex-direction:column}.monitor-toolbar>div{justify-content:space-between}.monitor-tabs{width:100%}.status-grid{grid-template-columns:1fr}.monitor-card{padding:16px}.monitor-head p{align-items:flex-start;flex-direction:column;gap:3px}.monitor-head p span{padding-left:0;border-left:0}.endpoint{width:100%;align-items:flex-start;flex-wrap:wrap}.endpoint .url{width:100%;overflow-wrap:anywhere}.endpoint-help{border-left:0;padding-left:0}.profile-main{gap:14px}.profile-title h2{font-size:17px}.profile-facts{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.keys-table table{min-width:1080px}
}
@media(max-width:440px){.usage-filters{grid-template-columns:1fr}.mini-table-row{grid-template-columns:minmax(80px,1fr) 34px 52px 60px;font-size:9px}.top-actions .balance-pill{display:none}.dashboard-actions{flex-direction:column}}

/* Native administrator surfaces. */
.admin-user-stats{margin-bottom:20px}.admin-toolbar-card{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px;padding:16px}.admin-user-filters{min-width:0;flex:1;display:grid;grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(135px,.72fr)) auto auto;gap:10px}.admin-user-filters .input,.admin-user-filters .select{width:100%;min-width:0}.admin-toolbar-actions{display:flex;align-items:center;gap:10px;flex:none}.admin-users-table table{min-width:1240px}.admin-users-table th,.admin-users-table td{padding-left:12px;padding-right:12px}.admin-user-cell{display:flex;align-items:center;gap:10px;min-width:190px}.admin-user-cell>span{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:9px;color:#fff;background:#14b8a6;font-weight:700}.admin-user-cell>div{min-width:0}.admin-user-cell strong,.admin-user-cell small{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis}.admin-user-cell small,.admin-cell-note{margin-top:4px;color:var(--muted);font-size:10px}.admin-cell-note{display:block}.admin-user-actions{min-width:142px;justify-content:flex-end}.admin-user-actions button{width:28px;height:28px}.admin-user-actions button:last-child:hover{color:#dc2626;background:#fef2f2}.admin-table-loading{min-height:150px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.admin-table-loading span{width:20px;height:20px;border:2px solid #ccfbf1;border-top-color:#14b8a6;border-radius:50%;animation:spin .8s linear infinite}.admin-user-form{grid-template-columns:1fr 1fr}.admin-form-wide{grid-column:1/-1}.admin-textarea{width:100%;min-height:88px;padding:12px 14px;resize:vertical}.admin-quota-summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;margin-bottom:20px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.admin-quota-summary span,.admin-quota-summary small{color:var(--muted)}.admin-quota-summary strong{font-size:24px}.admin-quota-summary small{grid-column:1/-1}
.admin-settings-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px}.admin-settings-toolbar h2{margin:3px 0 5px;font-size:20px}.admin-settings-toolbar p{margin:0;color:var(--muted)}.admin-settings-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:16px 0}.admin-settings-tabs button{height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:8px;color:#64748b;background:var(--surface);font-weight:600}.admin-settings-tabs button:hover{color:#0f766e;border-color:#99f6e4}.admin-settings-tabs button.active{color:#0f766e;border-color:#5eead4;background:#ecfdf5}.admin-settings-tabs svg{width:17px;height:17px}.admin-settings-section{padding:0;overflow:hidden}.admin-settings-section>header{height:72px;display:flex;align-items:center;gap:12px;padding:0 22px;border-bottom:1px solid var(--line-soft)}.admin-settings-section>header>svg{width:34px;height:34px;padding:8px;border-radius:9px;color:#0f766e;background:#ccfbf1}.admin-settings-section h3{margin:0;font-size:16px}.admin-settings-section header p{margin:4px 0 0;color:var(--muted);font-size:11px}.admin-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px;padding:22px}.admin-setting-field{min-width:0;display:grid;gap:7px}.admin-setting-field>span{color:#334155;font-size:12px;font-weight:600}.admin-setting-field .input{width:100%;min-width:0}.admin-setting-wide{grid-column:1/-1}.admin-setting-textarea{min-height:132px;padding:12px 14px;line-height:1.6;resize:vertical}.admin-setting-toggle{min-height:54px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:0 14px;border:1px solid var(--line);border-radius:8px;color:#334155;background:var(--soft);font-size:13px;font-weight:600}.admin-setting-toggle input{position:absolute;opacity:0;pointer-events:none}.admin-setting-toggle i{position:relative;width:38px;height:22px;border-radius:999px;background:#cbd5e1;transition:.18s}.admin-setting-toggle i:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.2);transition:.18s}.admin-setting-toggle input:checked+i{background:#14b8a6}.admin-setting-toggle input:checked+i:after{transform:translateX(16px)}
.dark .admin-user-cell>span{background:#0d9488}.dark .admin-user-actions button{color:#94a3b8}.dark .admin-user-actions button:hover{color:#fff;background:#334155}.dark .admin-user-actions button:last-child:hover{color:#fca5a5;background:#45232a}.dark .admin-quota-summary,.dark .admin-setting-toggle{border-color:#334155;color:#e2e8f0;background:#111827}.dark .admin-settings-toolbar h2,.dark .admin-settings-section h3,.dark .admin-setting-field>span{color:#f8fafc}.dark .admin-settings-tabs button{border-color:#334155;color:#cbd5e1;background:#0f172a}.dark .admin-settings-tabs button:hover{border-color:#475569;color:#fff;background:#1e293b}.dark .admin-settings-tabs button.active{border-color:#0f766e;color:#5eead4;background:#134e4a}.dark .admin-settings-section>header{border-color:#334155}.dark .admin-settings-section>header>svg{color:#5eead4;background:#134e4a}.dark .admin-setting-toggle i{background:#475569}
@media(max-width:1180px){.admin-user-filters{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(130px,.7fr))}.admin-user-filters select[name="status"]{grid-column:auto}.admin-toolbar-card{align-items:stretch;flex-direction:column}.admin-toolbar-actions{justify-content:flex-end}.admin-settings-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.admin-user-stats{grid-template-columns:1fr 1fr}.admin-user-filters{grid-template-columns:1fr 1fr}.admin-user-filters .search-box{grid-column:1/-1}.admin-toolbar-actions{display:grid;grid-template-columns:42px minmax(0,1fr)}.admin-user-form,.admin-settings-grid{grid-template-columns:1fr}.admin-form-wide,.admin-setting-wide{grid-column:auto}.admin-settings-toolbar{align-items:stretch;flex-direction:column}.admin-settings-toolbar .admin-toolbar-actions{grid-template-columns:1fr 1fr}.admin-settings-tabs{display:flex;overflow:auto;padding-bottom:3px}.admin-settings-tabs button{min-width:122px;flex:none}.admin-settings-section>header{height:64px;padding:0 16px}.admin-settings-grid{padding:16px}.admin-users-table{border-radius:10px}}
@media(max-width:440px){.admin-user-stats{grid-template-columns:1fr}.admin-user-filters{grid-template-columns:1fr}.admin-user-filters>*{grid-column:1}.admin-settings-toolbar .admin-toolbar-actions{grid-template-columns:1fr}.admin-settings-tabs button{min-width:112px}}

/* Keep API-key actions readable at every table width. */
.keys-table .key-actions{min-width:176px;gap:4px;justify-content:flex-end}
.keys-table .key-actions button,
.keys-table .key-actions button:nth-child(2){width:32px;min-width:32px;height:32px;padding:0}
.keys-table .key-actions svg{width:16px;height:16px;stroke-width:1.8}

/* Embedded customer tools stay inside the same workbench shell. */
@media(max-width:720px){
  .embedded-tool-content{margin:0 -14px;width:calc(100% + 28px);border-left:0;border-right:0;border-radius:0}
  .embedded-tool-frame{height:calc(100vh - 84px);min-height:720px}
}

/* System settings can contain the full upstream option catalog. */
.admin-settings-tabs{display:flex;align-items:stretch;gap:8px;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}
.admin-settings-tabs button{min-width:138px;flex:1 0 138px}
.admin-settings-tabs button small{min-width:20px;padding:2px 5px;border-radius:999px;color:var(--muted);background:var(--soft);font-size:10px;font-weight:700}
.admin-settings-tabs button.active small{color:#0f766e;background:#ccfbf1}
.admin-settings-section[hidden]{display:none}
.admin-setting-field input[type=password]{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.admin-setting-field .admin-setting-textarea{min-height:150px}
.dark .admin-settings-tabs button small{color:#cbd5e1;background:#1e293b}.dark .admin-settings-tabs button.active small{color:#5eead4;background:#134e4a}
@media(min-width:721px){.admin-settings-tabs{flex-wrap:wrap;overflow-x:visible}.admin-settings-tabs button{flex:1 1 138px}}

@media(max-width:720px){.learning-hero{flex-direction:column;padding:18px}.learning-hero h2{font-size:20px}.learning-scope{align-self:flex-start}.learning-stats{grid-template-columns:1fr 1fr}.learning-grid{grid-template-columns:1fr}.learning-facts{grid-template-columns:1fr}}
@media(max-width:440px){.learning-stats{grid-template-columns:1fr}}
