:root {
    color-scheme: light;
    --bg-dark: #f6f7f9;
    --bg-card: #fff;
    --bg-card-hover: #f7f8fa;
    --border-subtle: #e3e6eb;
    --border-focus: #2563eb;
    --text-primary: #171b24;
    --text-secondary: #657080;
    --text-muted: #788291;
    --accent-primary: #2563eb;
    --accent-secondary: #1d4ed8;
    --success: #177245;
    --error: #c43c3c;
    --font-sans: 'IBM Plex Sans', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text-primary); background: var(--bg-dark); font: 14px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--accent-primary); text-decoration: none; }
a:hover { color: #1748b5; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #9ec2ff; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .5; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #151922; text-decoration: none; }
.brand:hover { color: #151922; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #181d27; border-radius: 7px; font: 600 25px/1 'IBM Plex Sans', sans-serif; letter-spacing: -3px; padding-right: 3px; }
.brand-mark > span { transform: translateY(-1px); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.7px; }
.brand-copy > span { margin-top: 3px; font-size: 10px; line-height: 1.3; letter-spacing: .6px; color: var(--text-secondary); }
.eyebrow { color: var(--text-muted); font-size: 10px; font-weight: 500; letter-spacing: 1.8px; line-height: 1.6; }
.eyebrow > span { display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; background: var(--accent-primary); }
.login-container { min-height: 100vh; display: flex; flex-direction: column; background: #fbfcfd; }
.login-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 91px; width: min(1520px, calc(100% - 112px)); margin: 0 auto; border-bottom: 1px solid var(--border-subtle); }
.back-link, .text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; }
.back-link { color: #586270; }
.back-link svg, .text-link svg { width: 17px; height: 17px; }
.login-shell { width: min(1140px, calc(100% - 112px)); display: grid; grid-template-columns: 1fr 412px; gap: 104px; align-items: center; flex: 1; margin: 72px auto; }
.login-intro { padding: 10px 0; }
.login-intro h1 { margin-top: 24px; font-size: clamp(34px, 3.5vw, 49px); line-height: 1.4; font-weight: 500; letter-spacing: -1.9px; }
.intro-copy { max-width: 400px; margin-top: 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.95; }
.intro-features { display: grid; gap: 22px; margin: 36px 0; }
.intro-features > div { display: flex; gap: 17px; align-items: flex-start; }
.feature-index { margin-top: 2px; font: 11px/1.8 var(--font-mono); color: #89919e; }
.intro-features h2 { font-size: 13px; font-weight: 500; }
.intro-features p { margin-top: 3px; font-size: 12px; color: var(--text-secondary); }
.login-box { background: #fff; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 38px 34px; box-shadow: 0 10px 35px #18284405; }
.login-header { margin-bottom: 29px; }
.login-header h2 { margin: 12px 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.subtitle { color: var(--text-secondary); font-size: 12px; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; width: min(1520px, calc(100% - 112px)); margin: 0 auto; color: var(--text-muted); font-size: 10px; border-top: 1px solid var(--border-subtle); }
.form-group { margin-bottom: 19px; }
.form-group label { display: block; margin-bottom: 8px; color: #394150; font-size: 12px; font-weight: 500; }
.form-group input, select { min-width: 0; border: 1px solid #d9dfe7; border-radius: 5px; background: #fff; color: var(--text-primary); transition: border-color .16s ease; }
.form-group input { display: block; width: 100%; min-height: 43px; padding: 10px 12px; }
.form-group input::placeholder { color: #929ba7; font-size: 12px; }
.form-group input:focus { border-color: var(--accent-primary); }
.form-group input:disabled { background: #f6f7f9; color: #657080; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; gap: 8px; padding: 9px 18px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 500; line-height: 1.5; transition: background .16s, border-color .16s; }
.btn-primary { background: #202630; border-color: #202630; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #343e4e; border-color: #343e4e; }
.btn-secondary { color: #465060; background: #fff; border-color: #d9dfe7; }
.btn-secondary:hover:not(:disabled) { background: #f4f6f8; border-color: #bfc8d4; }
.btn-danger { color: #b83333; background: #fff5f5; border-color: #f0d8d8; }
.btn-sm { min-height: 34px; padding: 7px 12px; }
.login-box > div > .btn-primary, #btn-resend { width: 100%; }
.email-display-row { display: flex; gap: 8px; }
.email-display-row input { flex: 1; }
.email-display-row .btn { flex: 0 0 auto; }
.code-input { font-family: var(--font-mono); letter-spacing: 9px; font-size: 21px; text-align: center; }
.resend-section { margin-top: 12px; }
.terms-checkbox { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0; }
.terms-checkbox input { width: 14px; height: 14px; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--accent-primary); }
.terms-checkbox label { color: var(--text-secondary); font-size: 11px; line-height: 1.85; }
.inline-link { display: inline; padding: 0; border: 0; background: transparent; color: var(--accent-primary); font: inherit; text-align: inherit; }
.inline-link:hover { text-decoration: underline; }
.message { padding: 11px 13px; margin-bottom: 18px; border: 1px solid; border-radius: 5px; font-size: 12px; overflow-wrap: anywhere; }
.message.error { color: #a53434; border-color: #f0d3d3; background: #fff7f7; }
.message.success { color: #236446; border-color: #cee6d8; background: #f3faf6; }
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 232px; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--border-subtle); }
.sidebar-header { padding: 26px 23px 29px; }
.sidebar-header .brand-copy strong { font-size: 19px; }
.sidebar-header .brand-copy > span { font-size: 9px; }
.sidebar-nav { padding: 0 12px 20px; flex: 1; overflow-y: auto; }
.nav-label { padding: 0 12px; margin: 6px 0 11px; color: #929aa5; font-size: 10px; letter-spacing: .6px; }
.resources-label { margin-top: 29px; padding-top: 22px; border-top: 1px solid #edf0f3; }
.nav-item { display: flex; width: 100%; gap: 12px; align-items: center; padding: 11px 13px; margin-bottom: 4px; border: 0; border-radius: 5px; color: #636e7d; background: transparent; font-size: 12px; font-weight: 400; line-height: 1.5; text-align: left; white-space: nowrap; transition: background .15s, color .15s; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { color: #1e2633; background: #f6f7f9; }
.nav-item.active { color: #2159c7; background: #edf3fe; font-weight: 500; }
.sidebar-footer { padding: 17px 14px; border-top: 1px solid var(--border-subtle); }
.user-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-avatar { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; background: #edf0f4; border: 1px solid #e0e5eb; border-radius: 50%; color: #435062; font-size: 12px; font-weight: 500; }
.user-info { flex: 1; min-width: 0; }
.user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #424c5a; }
.user-points { margin-top: 1px; color: var(--text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.logout-btn { display: grid; place-items: center; width: 29px; height: 32px; padding: 0; border: 0; border-radius: 4px; color: #788291; background: transparent; }
.logout-btn:hover { color: #202630; background: #f0f2f5; }
.main-content { margin-left: 232px; flex: 1; min-width: 0; padding: 0 42px 44px; }
.console-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 67px; margin: 0 -42px 38px; padding: 0 42px; border-bottom: 1px solid var(--border-subtle); background: #fff; color: var(--text-muted); font-size: 11px; }
.console-topbar > div { display: flex; align-items: center; gap: 14px; }
.topbar-brand { font-weight: 500; color: #485260; }
.topbar-separator { color: #c5cbd3; }
.console-topbar a { color: #626d7c; }
.console-topbar a span { margin-left: 7px; }
.tab-content { display: none; max-width: 1480px; margin: 0 auto; }
.tab-content.active { display: block; }
.page-header { margin-bottom: 27px; }
.page-header h2 { margin-top: 7px; font-size: 26px; line-height: 1.5; font-weight: 500; letter-spacing: -.8px; }
.page-header p { margin-top: 6px; font-size: 12px; color: var(--text-secondary); }
.dashboard-disclaimer { display: flex; gap: 12px; align-items: center; margin-bottom: 25px; padding: 15px 18px; background: #f0f4fa; border: 1px solid #dfe6f0; border-radius: 6px; }
.dashboard-disclaimer-icon { display: grid; place-items: center; color: #667b9b; flex-shrink: 0; }
.dashboard-disclaimer-icon svg { width: 21px; height: 21px; }
.dashboard-disclaimer-title { font-size: 12px; font-weight: 500; color: #42536c; }
.dashboard-disclaimer-text { margin-top: 2px; color: #728097; font-size: 11px; }
.dashboard-disclaimer-text .inline-link { margin-left: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { padding: 21px 24px 20px; border: 1px solid var(--border-subtle); border-radius: 7px; background: #fff; min-width: 0; }
.stat-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.stat-order { font: 10px var(--font-mono); color: #a1a9b4; }
.stat-unit { font-size: 9px; letter-spacing: 1.5px; color: #8f99a7; }
.stat-card .label { font-size: 12px; color: #667080; }
.stat-card .value { margin-top: 8px; font-size: clamp(21px, 2.5vw, 34px); line-height: 1.5; font-weight: 500; letter-spacing: -.9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card .value.primary { color: #245cce; }
.stat-note { margin-top: 15px; padding-top: 12px; border-top: 1px solid #f0f2f5; font-size: 10px; color: #8b95a3; }
.card { padding: 24px; margin-bottom: 24px; border: 1px solid var(--border-subtle); border-radius: 7px; background: #fff; }
.card-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 21px; font-size: 14px; font-weight: 500; }
.section-caption { color: #8d96a3; font-size: 10px; font-weight: 400; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-card { padding: 21px; border: 1px solid #e8ebf0; border-radius: 5px; color: #28313f; background: #fff; transition: border-color .18s, background .18s; }
.quick-card:hover { color: #28313f; border-color: #b9c9e1; background: #fcfdff; }
.quick-icon { display: grid; place-items: center; width: 33px; height: 33px; margin-bottom: 17px; border: 1px solid #e1e6ed; border-radius: 5px; color: #6b7a91; background: #f9fafc; }
.quick-icon svg { width: 17px; height: 17px; }
.quick-card h3 { font-size: 13px; font-weight: 500; }
.quick-card p { margin-top: 6px; font-size: 11px; color: #87909d; line-height: 1.8; }
.quick-link { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; padding-top: 15px; border-top: 1px solid #edf0f4; color: #4b6385; font-size: 10px; }
.quick-link svg { width: 15px; height: 15px; }
.create-key-section { display: flex; gap: 15px; align-items: flex-end; padding: 22px 24px; border: 1px solid var(--border-subtle); border-radius: 7px; background: #fff; }
.create-key-section .form-group { width: min(100%, 430px); margin: 0; }
.create-key-section .btn { min-height: 43px; white-space: nowrap; }
.table-wrap { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; white-space: nowrap; }
th { padding: 12px 13px; border-bottom: 1px solid #e1e5ec; background: #f8f9fb; color: #7a8492; font-size: 10px; font-weight: 400; }
td { padding: 16px 13px; border-bottom: 1px solid #edf0f4; color: #4a5463; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
.table-empty, .loading { padding: 46px 16px; color: #8d96a2; font-size: 12px; text-align: center; }
.key-cell { display: flex; align-items: center; gap: 8px; }
.key-value { max-width: 230px; overflow: hidden; text-overflow: ellipsis; font: 10px/1.6 var(--font-mono); color: #6c7684; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; padding: 4px 6px; color: #8893a1; background: transparent; border: 1px solid #e5e9ef; border-radius: 4px; }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn:hover, .copy-btn.copied { color: var(--accent-primary); background: #f1f6ff; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; font-size: 10px; }
.status-tag.active { background: #edf7f0; color: #318150; }
.status-tag.disabled { background: #f1f2f5; color: #8993a0; }
.action-btns { display: flex; gap: 7px; align-items: center; }
.action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 6px; border: 1px solid #e4e8ed; border-radius: 4px; background: #fff; color: #7b8798; font-size: 10px; }
.action-btn svg { width: 14px; height: 14px; }
.action-btn:hover { background: #f3f6fa; color: #2b5eae; }
.action-btn.delete:hover { color: #c43c3c; background: #fff3f3; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 16px; }
.plan-card { padding: 24px 18px; border: 1px solid #e2e6ed; border-radius: 6px; background: #fff; text-align: center; cursor: pointer; }
.plan-card:hover { border-color: #9bb9e8; }
.plan-card.selected { border-color: #3b73d9; background: #f5f8ff; box-shadow: inset 0 0 0 1px #3b73d9; }
.plan-card .price { font-size: 28px; font-weight: 500; letter-spacing: -.8px; }
.plan-card .price span { font-size: 11px; margin-left: 4px; font-weight: 400; color: #89929f; }
.plan-card .points { margin-top: 10px; font-size: 12px; color: #3865af; }
.plan-card .name { margin-top: 5px; font-size: 11px; color: #919aa7; }
.qrcode-section { padding: 10px 0 20px; text-align: center; }
.qrcode-section img { display: block; width: 212px; height: 212px; margin: 0 auto 22px; border: 1px solid #e3e7ed; padding: 6px; border-radius: 5px; }
.qrcode-section .amount { font-size: 27px; font-weight: 500; }
.qrcode-section .tip { margin: 10px 0 22px; color: #7e8897; font-size: 12px; }
.modal { display: none; position: fixed; inset: 0; z-index: 100; background: #19233366; padding: 28px; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { width: min(100%, 480px); max-height: calc(100dvh - 56px); overflow-y: auto; padding: 29px; border: 1px solid #dce2eb; border-radius: 9px; background: #fff; box-shadow: 0 20px 70px #15223926; }
.modal-title { margin-bottom: 24px; font-size: 18px; font-weight: 500; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.terms-modal .modal-content { max-width: 630px; width: 100%; }
.terms-content { color: #6e7988; font-size: 12px; line-height: 1.95; }
.terms-content h3 { margin: 23px 0 9px; font-size: 13px; font-weight: 500; color: #343f4e; }
.terms-content h3:first-child { margin-top: 0; }
.terms-content ul { padding-left: 19px; margin: 0; }
.terms-content li { margin-bottom: 6px; }
.terms-content strong { font-weight: 500; color: #475264; }
.terms-endnote { margin-top: 25px; padding-top: 16px; border-top: 1px solid #e7ebf1; color: #97a0ac; font-size: 10px; }
.usage-list { max-height: 360px; overflow: auto; }
.usage-item { padding: 15px 0; border-bottom: 1px solid #e8edf2; }
.usage-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.usage-service { font-size: 12px; color: #4f5b6c; }
.usage-amount { font-size: 12px; color: #2f62b8; font-variant-numeric: tabular-nums; }
.usage-time { margin-top: 5px; font-size: 10px; color: #8a94a2; }
.log-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.log-filters select { padding: 6px 10px; font-size: 11px; cursor: pointer; font-weight: 400; }
.log-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.log-status .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.log-status.success { color: #34815a; }
.log-status.frozen { color: #a57422; }
.log-status.failed { color: #bd5757; }
.log-status.recharge { color: #346cc5; }
.remark-cell { max-width: 270px; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.custom-tooltip { position: fixed; display: none; z-index: 200; max-width: min(400px, calc(100vw - 32px)); padding: 11px 14px; border: 1px solid #dce3ec; border-radius: 5px; background: #fff; box-shadow: 0 5px 22px #12223b1a; color: #515f72; font-size: 11px; overflow-wrap: anywhere; white-space: pre-wrap; }
.custom-tooltip.show { display: block; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 22px; border-top: 1px solid #e9edf2; }
.pagination-info { color: #8e98a6; font-size: 10px; }
.pagination-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.pagination-btn { min-width: 29px; min-height: 29px; padding: 3px 8px; border: 1px solid #e0e6ed; border-radius: 4px; background: #fff; color: #788597; font-size: 10px; }
.pagination-btn.active { color: #3066c6; background: #eef4ff; border-color: #cfdef8; }
.pagination-btn:hover:not(:disabled) { border-color: #a8bddc; }
@media (min-width: 1600px) { .main-content { padding-left: 60px; padding-right: 60px; } .console-topbar { margin-left: -60px; margin-right: -60px; padding-left: 60px; padding-right: 60px; } }
@media (max-width: 1100px) {
    .login-shell { gap: 50px; grid-template-columns: 1fr 370px; }
    .sidebar { width: 206px; }
    .sidebar-header { padding-left: 18px; padding-right: 15px; }
    .main-content { margin-left: 206px; padding-left: 27px; padding-right: 27px; }
    .console-topbar { margin-left: -27px; margin-right: -27px; padding-left: 27px; padding-right: 27px; }
    .stat-card { padding: 19px; }
    .quick-grid { gap: 10px; }
    .quick-card { padding: 17px 14px; }
}
@media (max-width: 850px) {
    .login-topbar, .login-footer { width: calc(100% - 64px); }
    .login-shell { width: calc(100% - 64px); grid-template-columns: 1fr 350px; gap: 28px; margin: 55px auto; }
    .login-intro h1 { font-size: 33px; }
    .intro-copy { font-size: 12px; }
    .intro-features { gap: 17px; }
    .intro-features p { font-size: 10px; }
    .login-box { padding: 29px 25px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-note { font-size: 9px; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-card { display: grid; grid-template-columns: 34px 1fr auto; column-gap: 14px; align-items: center; }
    .quick-icon { grid-row: span 2; margin: 0; }
    .quick-card p { grid-column: 2; margin-top: 2px; }
    .quick-link { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0; border: 0; gap: 10px; }
}
@media (max-width: 700px) {
    .login-topbar { min-height: 79px; width: calc(100% - 40px); }
    .login-topbar .brand-mark { width: 31px; height: 31px; font-size: 23px; }
    .login-topbar .brand-copy strong { font-size: 18px; }
    .back-link { font-size: 10px; gap: 6px; }
    .login-shell { display: flex; flex-direction: column; align-items: stretch; max-width: 440px; width: calc(100% - 40px); gap: 28px; margin: 34px auto 42px; }
    .login-intro { padding: 0 5px; }
    .login-intro h1 { margin-top: 13px; font-size: 32px; line-height: 1.4; }
    .login-intro h1 br { display: none; }
    .intro-copy { margin-top: 12px; max-width: none; }
    .intro-features { display: none; }
    .login-intro .text-link { margin-top: 15px; font-size: 11px; }
    .login-box { padding: 27px 25px; }
    .login-footer { width: calc(100% - 40px); flex-wrap: wrap; gap: 5px; font-size: 9px; padding: 18px 0; }
    .app-layout { display: block; }
    .sidebar { position: relative; width: 100%; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
    .sidebar-header { padding: 18px 21px 15px; }
    .sidebar-nav { display: flex; overflow-x: auto; padding: 0 13px 10px; flex: none; gap: 4px; }
    .nav-label { display: none; }
    .nav-item { width: auto; flex: 0 0 auto; padding: 9px 11px; margin: 0; gap: 7px; font-size: 11px; }
    .nav-item svg { width: 15px; height: 15px; }
    .sidebar-footer { position: absolute; right: 16px; top: 21px; border: 0; padding: 0; }
    .sidebar-footer .user-info { max-width: 130px; }
    .sidebar-footer .user-avatar { display: none; }
    .sidebar-footer .user-email { max-width: 130px; }
    .main-content { margin: 0; padding: 0 20px 30px; }
    .console-topbar { min-height: 49px; margin: 0 -20px 25px; padding: 0 21px; font-size: 10px; }
    .page-header { margin-bottom: 22px; }
    .page-header h2 { font-size: 23px; }
    .page-header p { font-size: 11px; }
    .dashboard-disclaimer { padding: 13px; align-items: flex-start; gap: 9px; }
    .dashboard-disclaimer-text { font-size: 10px; }
    .dashboard-disclaimer-icon { padding-top: 4px; }
    .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; gap: 8px; }
    .stat-card { padding: 13px 10px; }
    .stat-heading { margin-bottom: 18px; }
    .stat-unit { font-size: 7px; letter-spacing: .5px; }
    .stat-card .label { font-size: 10px; }
    .stat-card .value { font-size: 19px; letter-spacing: -.5px; }
    .stat-note { font-size: 8px; margin-top: 12px; padding-top: 10px; }
    .card { padding: 20px 16px; }
    .card-title { font-size: 13px; }
    .section-caption { font-size: 9px; }
    .create-key-section { padding: 18px 16px; flex-wrap: wrap; }
    .create-key-section .form-group { width: 100%; }
    .create-key-section .btn { width: 100%; }
    .log-filters { width: 100%; gap: 8px; }
    .log-filters select { flex: 1; }
    .modal { padding: 18px; }
    .modal-content { max-height: calc(100dvh - 36px); padding: 24px; }
}
@media (max-width: 380px) {
    .brand-copy > span { font-size: 8px; }
    .sidebar-footer .user-info { max-width: 102px; }
    .sidebar-footer .user-email { max-width: 102px; }
    .quick-link { font-size: 9px; gap: 5px; }
    .quick-card { column-gap: 9px; }
    .quick-card h3 { font-size: 12px; }
    .quick-card p { font-size: 9px; }
    .stat-unit { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Shared API Hub mark. */
.brand-mark{display:grid;place-items:center;border:0!important;background:transparent!important;padding:0;box-shadow:none!important}.brand-mark img{display:block;width:30px;height:30px}

@media(max-width:600px){.stats-grid{grid-template-columns:1fr}.stat-card{min-height:0;padding:22px}.stat-card .value{white-space:nowrap;overflow-wrap:normal;overflow-x:auto;max-width:100%;font-size:27px;line-height:1.5}.stat-card .stat-footer{margin-top:12px}}
