:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1c2740;
  background: #f4f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #101b3f;
  --navy-2: #172750;
  --blue: #3468e8;
  --green: #13a36c;
  --muted: #78839b;
  --line: #e5e9f2;
  --surface: #fff;
  --shadow: 0 5px 18px rgb(22 41 85 / 4%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f6fb; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }

/* Sign-in */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 18px; background: radial-gradient(ellipse at 50% 0%, #eaf0ff 0, #f5f7fc 52%, #f4f6fb 100%); }
.auth-brand { position: absolute; top: 28px; left: 34px; display: flex; align-items: center; gap: 11px; color: var(--navy); }
.brand-mark { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #4782f1, #2457d6); color: white; font-size: 21px; font-weight: 800; box-shadow: 0 5px 12px rgb(52 104 232 / 24%); }
.auth-brand strong, .brand-copy strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.auth-brand small, .brand-copy small { display: block; margin-top: 3px; color: #8390ac; font-size: 9px; letter-spacing: .14em; }
.auth-card { width: min(100%, 430px); padding: 38px 40px 30px; border: 1px solid #e4e9f4; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgb(27 46 92 / 9%); }
.auth-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 14px; background: #edf2ff; color: var(--blue); font-size: 23px; }
.eyebrow { margin: 0 0 9px; color: #7582a0; font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.auth-card h1 { margin: 0; color: var(--navy); font-size: 25px; letter-spacing: -.04em; }
.auth-copy { margin: 9px 0 27px; color: var(--muted); font-size: 13px; }
.auth-card label, .form-panel label { display: block; margin: 16px 0 7px; color: #37435e; font-size: 12px; font-weight: 650; }
.auth-card input, .form-panel input, .form-panel textarea, .inline-form input, .search-box input { width: 100%; border: 1px solid #dce2ee; border-radius: 9px; outline: none; background: #fff; color: #1c2740; transition: border-color .15s, box-shadow .15s; }
.auth-card input { height: 46px; padding: 0 13px; }
input:focus, textarea:focus { border-color: #6c91ed !important; box-shadow: 0 0 0 3px rgb(52 104 232 / 12%); }
.primary-button, .secondary-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 0; border-radius: 9px; text-decoration: none; font-size: 12px; font-weight: 700; transition: transform .15s, background .15s, box-shadow .15s; }
.primary-button { background: var(--blue); color: #fff; box-shadow: 0 4px 10px rgb(52 104 232 / 18%); }
.primary-button:hover { transform: translateY(-1px); background: #285bd4; box-shadow: 0 7px 15px rgb(52 104 232 / 22%); }
.secondary-button { border: 1px solid #dce2ee; background: #fff; color: #52607c; }
.secondary-button:hover { background: #f7f8fc; }
.full-button { width: 100%; height: 47px; margin-top: 24px; }
.account-links { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; font-size: 11px; }
.account-links a, .docs-link a { color: #3869dc; font-weight: 650; text-decoration: none; }
.account-links a:hover, .docs-link a:hover { text-decoration: underline; }
.result { min-height: 18px; margin: 12px 0 0; color: #bd3c45; font-size: 12px; }
.auth-footnote { margin: 18px 0 0; color: #9aa4b9; font-size: 11px; }

/* Application frame and navigation */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 246px; display: flex; flex-direction: column; padding: 20px 12px 14px; background: var(--navy); color: #e8edff; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 8px 24px; color: #fff; text-decoration: none; }
.brand-mark { flex: 0 0 42px; }
.brand-copy strong { color: #fff; }
.brand-copy small { color: #9cabd2; font-size: 8px; }
.side-nav { flex: 1; overflow-y: auto; padding-top: 10px; }
.nav-caption { margin: 19px 10px 8px; color: #8392bc; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.nav-link { width: 100%; min-height: 41px; display: flex; align-items: center; gap: 12px; margin: 3px 0; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #d1d9ef; text-align: left; font-size: 11px; font-weight: 600; }
.nav-link:hover { background: rgb(255 255 255 / 7%); color: #fff; }
.nav-link.active { background: #3468e8; color: #fff; box-shadow: 0 5px 12px rgb(4 13 44 / 25%); }
.nav-icon { width: 17px; color: #a9b9e6; font-size: 16px; text-align: center; }
.nav-link.active .nav-icon { color: #fff; }
.sidebar-account { display: flex; align-items: center; gap: 9px; margin: 12px 1px 0; padding: 13px 7px 0; border-top: 1px solid rgb(255 255 255 / 11%); }
.avatar, .profile-avatar { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 50%; background: #14a16b; color: #fff; font-size: 12px; font-weight: 800; }
.account-name { min-width: 0; flex: 1; }
.account-name strong { display: block; overflow: hidden; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-name small { display: block; margin-top: 3px; color: #9cabd2; font-size: 9px; }
.logout-button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #f28a8e; font-size: 17px; }
.logout-button:hover { background: rgb(255 255 255 / 8%); }
.main-panel { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; z-index: 20; top: 0; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 30px; border-bottom: 1px solid #e8ebf3; background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8a94aa; font-size: 11px; }
.breadcrumb strong { color: #34415e; font-weight: 650; }
.breadcrumb-separator { color: #c2c9d7; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.connection-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #e3e8f1; border-radius: 8px; color: #596681; font-size: 10px; }
.connection-chip i { width: 7px; height: 7px; border-radius: 50%; background: #f2a43d; }
.connection-chip.connected { border-color: #72c99b; background: #e7f8ee; color: #08743f; font-weight: 800; }
.connection-chip.connected i { background: #078343; box-shadow: 0 0 0 3px rgb(7 131 67 / 18%); }
.top-send { min-height: 36px; padding: 0 13px; background: #12a36c; box-shadow: none; font-size: 10px; }
.top-send:hover { background: #0b8c5b; }
.menu-toggle { display: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #4d5a74; }
.page-content { max-width: 1600px; margin: 0 auto; padding: 28px 30px 48px; }
.sender-warning { display: grid; gap: 7px; margin: 0 0 22px; padding: 17px 20px; border: 1px solid #e7bd54; border-left: 5px solid #cf8a00; border-radius: 12px; background: #fff7df; color: #58420c; box-shadow: 0 5px 18px rgb(124 83 0 / 8%); }
.sender-warning[hidden] { display: none; }
.sender-warning > strong { color: #765000; font-size: 13px; letter-spacing: .025em; }
.sender-warning p { margin: 0; font-size: 12px; line-height: 1.6; }
.sender-warning p strong { color: #624400; }
.sender-warning-slot { width: fit-content; padding: 4px 9px; border-radius: 99px; background: #f5e5b7; color: #6d4c00; font-size: 11px; font-weight: 750; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-heading h1 { margin: 0; color: var(--navy); font-size: 24px; letter-spacing: -.04em; }
.page-heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.date-label { padding-bottom: 3px; color: #8490a8; font-size: 10px; }

/* Cards and charts */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card, .panel { border: 1px solid #e5e9f2; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.metric-card { min-height: 105px; padding: 15px 17px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #687590; font-size: 10px; }
.metric-card > strong { display: block; margin-top: 5px; color: var(--navy); font-size: 23px; letter-spacing: -.04em; }
.metric-card > small { display: block; margin-top: 4px; color: #9aa3b5; font-size: 9px; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 15px; }
.metric-icon.blue { background: #edf2ff; color: #376de6; }
.metric-icon.green { background: #e8f8f1; color: #0c9b64; }
.metric-icon.orange { background: #fff3e7; color: #ef861e; }
.metric-icon.violet { background: #f2edff; color: #7952de; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); gap: 14px; margin-bottom: 15px; }
.panel { padding: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-heading h2, .panel h2 { margin: 0; color: #1d2946; font-size: 13px; letter-spacing: -.02em; }
.panel-heading p { margin: 5px 0 0; color: #929cb0; font-size: 10px; }
.period-pill { padding: 5px 8px; border-radius: 6px; background: #eff2f8; color: #7b87a0; font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.chart-panel { min-height: 252px; }
.chart-wrap { height: 164px; margin-top: 12px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-area { fill: url(#volume-fill); }
.chart-line { fill: none; stroke: #12a36c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: white; stroke: #12a36c; stroke-width: 3; }
.chart-labels { display: flex; justify-content: space-between; color: #9ca6b9; font-size: 9px; }
.session-panel { min-height: 252px; }
.text-button { padding: 2px 0; border: 0; background: transparent; color: #3569df; font-size: 10px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.session-summary { display: flex; align-items: center; gap: 11px; margin-top: 20px; padding: 12px; border: 1px solid #e4e9f2; border-radius: 9px; }
.session-symbol { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #e8f8f1; color: #0f9c65; font-size: 15px; }
.session-summary > div { min-width: 0; flex: 1; }
.session-summary strong { display: block; color: #263451; font-size: 10px; }
.session-summary small { display: block; margin-top: 3px; color: #8d98ad; font-size: 9px; }
.status-pill { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #dcefe6; border-radius: 99px; background: #effaf5; color: #0b9b64; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.status-pill.connected { border-color: #087a43; background: #087a43; color: #fff; font-weight: 900; box-shadow: 0 2px 8px rgb(8 122 67 / 22%); }
.status-pill.pending { border-color: #f3e6ce; background: #fff8eb; color: #b6791b; }
.status-pill.disconnected, .status-pill.error { border-color: #f3dce0; background: #fff2f3; color: #bf4651; }
.session-divider { height: 1px; margin: 16px 0 13px; background: #edf0f5; }
.api-token-heading { display: flex; align-items: center; gap: 7px; color: #7750dc; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.api-token-heading .text-button { margin-left: auto; letter-spacing: 0; }
.token-symbol { font-size: 14px; }
.key-preview { margin: 8px 0 0; padding: 10px; overflow: hidden; border: 1px solid #e3d9ff; border-radius: 8px; background: #f8f5ff; color: #7149ce; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.security-note { margin: 9px 0 0; color: #929db1; font-size: 9px; line-height: 1.55; }
.table-panel { padding-bottom: 5px; }
.table-panel > .panel-heading { margin-bottom: 13px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 8px; border-bottom: 1px solid #e9edf4; color: #8d98ae; font-size: 8px; font-weight: 750; letter-spacing: .08em; white-space: nowrap; }
td { padding: 11px 8px; border-bottom: 1px solid #edf0f5; color: #52607a; font-size: 10px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.message { max-width: 250px; overflow: hidden; color: #7d879a; text-overflow: ellipsis; white-space: nowrap; }
.status-tag, .source-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #d8efe4; border-radius: 99px; background: #f0faf5; color: #0b9b64; font-size: 8px; font-weight: 800; white-space: nowrap; }
.status-tag::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-tag.unknown, .status-tag.sending, .status-tag.reserved { border-color: #f1e3c7; background: #fff9ec; color: #a8701c; }
.status-tag.failed { border-color: #f3dade; background: #fff2f4; color: #bd4654; }
.source-tag { border-color: #e5dcff; background: #f7f3ff; color: #8054db; }
.empty-hint { margin: 16px 0 8px; color: #8c97ab; font-size: 11px; text-align: center; }
.admin-panel { margin-top: 15px; }

/* Feature views */
.manage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 14px; }
.manage-card, .qr-panel { min-height: 270px; }
.connection-state { display: flex; align-items: center; gap: 13px; margin: 25px 0 18px; }
.large-session-symbol { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: #e8f8f1; color: #119e68; font-size: 22px; }
.connection-state strong { display: block; color: #1f2d4b; font-size: 14px; }
.connection-state p { margin: 6px 0 0; color: #8e99ae; font-size: 10px; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; }
.qr-placeholder { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 16px 0 8px; border: 1px dashed #d7deeb; border-radius: 10px; background: #fafbfe; color: #97a1b4; text-align: center; }
.qr-placeholder span { color: #7786a3; font-size: 30px; }
.qr-placeholder p { max-width: 210px; margin: 7px 0 0; font-size: 10px; line-height: 1.5; }
#qr { display: block; width: min(100%, 320px); height: auto; margin: 16px auto; border: 8px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px #e2e7f0, 0 7px 20px rgb(26 42 79 / 8%); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .48fr); align-items: start; gap: 14px; }
.form-panel { max-width: 760px; }
.section-copy { margin: 6px 0 20px; color: #8d98ad; font-size: 10px; }
.form-panel input, .form-panel textarea { display: block; margin-top: 7px; padding: 11px 12px; font-size: 12px; }
.form-panel textarea { resize: vertical; }
.form-panel label small { display: block; margin-top: 6px; color: #929db0; font-size: 9px; font-weight: 400; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; }
.form-actions .security-note { max-width: 340px; margin: 0; }
.info-panel { padding: 22px; background: #f8faff; }
.info-icon { color: #4774dc; font-size: 19px; }
.info-panel h3 { margin: 12px 0 7px; color: #263552; font-size: 12px; }
.info-panel p { color: #78849b; font-size: 10px; line-height: 1.7; }
.search-box { width: min(100%, 270px); display: flex; align-items: center; gap: 8px; padding-left: 10px; border: 1px solid #dfe5ef; border-radius: 8px; background: #fff; color: #98a2b4; }
.search-box input { height: 34px; padding: 0 9px 0 0; border: 0; box-shadow: none; font-size: 10px; }
.api-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 14px; }
.inline-form { display: flex; gap: 8px; margin-top: 18px; }
.inline-form input { min-width: 0; height: 40px; padding: 0 11px; font-size: 11px; }
.inline-form button { flex: 0 0 auto; }
.key-list { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.key-item { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e8ebf3; border-radius: 9px; }
.key-item-main { min-width: 0; flex: 1; }
.key-item-main strong { display: block; overflow: hidden; color: #33405c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.key-item-main code { display: block; margin-top: 4px; color: #7651d1; font-size: 9px; }
.key-item-main small { display: block; margin-top: 4px; color: #95a0b2; font-size: 8px; }
.key-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.key-actions button { min-height: 29px; padding: 0 8px; font-size: 9px; }
.secret-reveal { margin-top: 13px; padding: 13px; border: 1px solid #f0d798; border-radius: 9px; background: #fffaf0; }
.secret-reveal strong { display: block; color: #8f6519; font-size: 10px; }
.secret-reveal p { margin: 5px 0 9px; color: #8d7b54; font-size: 9px; }
.secret-value-row { display: flex; align-items: center; gap: 7px; }
.secret-value-row code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #573f12; font-size: 9px; user-select: all; }
.secret-value-row button { flex: 0 0 auto; min-height: 30px; padding: 0 9px; font-size: 9px; }
.docs-panel pre { overflow: auto; margin: 13px 0; padding: 14px; border-radius: 9px; background: #111c3a; color: #d8e2ff; font-size: 9px; line-height: 1.75; }
.doc-meta { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 10px; border: 1px solid #e9edf4; border-radius: 8px; }
.doc-meta span { padding: 4px 6px; border-radius: 5px; background: #e9f8f1; color: #0c9562; font-size: 8px; font-weight: 800; }
.doc-meta code { overflow: hidden; color: #53617e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.notice-box { padding: 12px; border: 1px solid #f1e5c7; border-radius: 8px; background: #fffbf1; }
.notice-box strong { color: #7c611f; font-size: 10px; }
.notice-box p { margin: 5px 0 0; color: #8d805a; font-size: 9px; line-height: 1.6; }
.docs-link { display: flex; gap: 9px; color: #a0a9b8; font-size: 9px; }
.docs-link a { font-size: 9px; }
.api-docs { display: grid; gap: 14px; }
.api-key-card { border-color: #d9caff; box-shadow: 0 5px 18px rgb(88 53 170 / 7%); }
.api-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.api-fact { min-width: 0; margin: 0; padding: 17px; }
.api-fact .eyebrow { display: block; margin-bottom: 9px; font-size: 9px; }
.api-fact code { display: block; overflow-wrap: anywhere; color: #4d5b77; font-size: 10px; line-height: 1.65; }
.api-fact p { margin: 0; color: #68758e; font-size: 10px; line-height: 1.65; }
.method-get { background: #edf2ff !important; color: #4268d8 !important; }
.docs-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-toc a { padding: 8px 11px; border: 1px solid #e1e6f0; border-radius: 8px; background: #fff; color: #53617c; font-size: 10px; font-weight: 650; text-decoration: none; }
.docs-toc a:hover { border-color: #bfcdf0; background: #f8faff; color: #315fd1; }
.setup-steps { display: grid; gap: 11px; margin: 16px 0; padding-left: 23px; color: #5d6982; font-size: 11px; line-height: 1.6; }
.setup-steps code, .section-copy code { color: #6846c0; font-size: .95em; }
.endpoint-card { scroll-margin-top: 84px; }
.endpoint-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 18px; margin-top: 18px; }
.endpoint-grid h3, .code-heading h3 { margin: 0; color: #34415e; font-size: 11px; }
.docs-table { width: 100%; margin: 9px 0; border: 1px solid #e8ebf3; border-radius: 8px; font-size: 10px; }
.docs-table th { padding: 9px; background: #fafbfe; font-size: 8px; }
.docs-table td { padding: 9px; font-size: 9px; line-height: 1.55; }
.docs-table td code { color: #6345b3; font-size: 9px; overflow-wrap: anywhere; }
.docs-table td:first-child { white-space: nowrap; }
.section-copy { margin: 10px 0 0; color: #78839b; font-size: 10px; line-height: 1.7; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.code-heading > span { color: #6f7b94; font-size: 10px; }
.code-copy { min-height: 29px; padding: 0 10px; font-size: 9px; }
.docs-panel pre { white-space: pre; }
.code-example { margin-top: 12px; border: 1px solid #e6eaf2; border-radius: 8px; }
.code-example summary { padding: 11px 13px; color: #42516f; cursor: pointer; font-size: 10px; font-weight: 700; }
.code-example[open] summary { border-bottom: 1px solid #e6eaf2; }
.code-example .code-heading { margin: 12px 13px 0; }
.code-example pre { margin: 9px 12px 12px; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 14px 0 18px; }
.status-grid > div { display: grid; gap: 5px; padding: 11px; border: 1px solid #e8ebf3; border-radius: 8px; background: #fbfcfe; }
.status-grid strong { color: #287c62; font-size: 9px; letter-spacing: .03em; }
.status-grid span { color: #76829a; font-size: 9px; line-height: 1.55; }
.error-table td:first-child { width: 58px; }
.api-limit-note { margin-top: 12px; }
.api-docs > .docs-link { margin: 0; }
.billing-card { display: flex; align-items: flex-start; gap: 16px; max-width: 690px; padding: 24px; }
.billing-icon { width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center; border-radius: 11px; background: #edf2ff; color: var(--blue); font-size: 19px; }
.billing-card h2 { margin: 2px 0 6px; }
.billing-card p { margin: 0 0 17px; color: #8490a5; font-size: 10px; }
.inline-button { min-height: 36px; width: fit-content; }
.profile-card { display: flex; align-items: center; gap: 14px; max-width: 580px; margin-bottom: 12px; }
.profile-avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 17px; }
.profile-card h2 { margin: 0; font-size: 14px; }
.profile-card p { margin: 5px 0; color: #8390a6; font-size: 10px; }
.profile-provider { color: #0f9b66; font-size: 9px; }
.app-result { position: sticky; bottom: 10px; z-index: 10; width: fit-content; max-width: 100%; padding: 0; border-radius: 8px; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sidebar-backdrop { display: none; }

/* Subscription dialogs and legacy admin tables */
.subscription-notice { position: fixed; inset: 10vh auto auto 50%; width: min(560px, calc(100% - 28px)); transform: translateX(-50%); margin: 0; padding: 28px; border: 1px solid #dce3ef; border-radius: 14px; color: #1c2740; box-shadow: 0 18px 70px rgb(16 28 63 / 28%); }
.subscription-notice::backdrop { background: rgb(12 21 48 / 56%); }
.subscription-notice .dismiss { float: right; min-height: 30px; padding: 0 10px; font-size: 18px; }
.subscription-notice h2 { padding-right: 40px; }
.admin-panel .secondary-button, .admin-panel button { min-height: 28px; margin: 2px; padding: 0 8px; font-size: 9px; }
.muted { color: #8590a4; font-size: 10px; }

@media (max-width: 1120px) {
  .page-content { padding-right: 20px; padding-left: 20px; }
  .topbar { padding: 0 20px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 12px 0 35px rgb(10 21 55 / 20%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop:not([hidden]) { position: fixed; z-index: 25; inset: 0; display: block; background: rgb(9 16 39 / 42%); }
  .main-panel { margin-left: 0; }
  .menu-toggle { display: inline-grid; flex: 0 0 34px; place-items: center; }
  .breadcrumb { flex: 1; }
  .topbar { gap: 11px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .manage-grid, .api-layout { grid-template-columns: minmax(0, 1fr); }
  .api-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .endpoint-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  .auth-brand { top: 17px; left: 17px; }
  .auth-card { padding: 28px 22px 22px; }
  .auth-card h1 { font-size: 22px; }
  .topbar { height: 59px; padding: 0 12px; }
  .breadcrumb { gap: 6px; font-size: 9px; }
  .topbar-actions { gap: 7px; }
  .connection-chip { padding: 7px; font-size: 0; }
  .connection-chip i { width: 8px; height: 8px; }
  .top-send { min-height: 34px; padding: 0 9px; font-size: 9px; }
  .page-content { padding: 21px 12px 32px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 16px; }
  .page-heading h1 { font-size: 21px; }
  .date-label { align-self: flex-start; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 100px; padding: 12px; }
  .metric-card > strong { font-size: 21px; }
  .metric-card > small { line-height: 1.4; }
  .metric-icon { width: 29px; height: 29px; }
  .panel { padding: 14px; }
  .chart-panel, .session-panel { min-height: 0; }
  .chart-wrap { height: 140px; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions .primary-button { width: 100%; }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .search-box { width: 100%; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form button { width: 100%; }
  .key-item { align-items: flex-start; flex-direction: column; }
  .key-actions { justify-content: flex-start; }
  .billing-card { padding: 17px; }
  .table-panel { padding-right: 10px; padding-left: 10px; }
  th { padding-right: 7px; padding-left: 7px; }
  td { padding-right: 7px; padding-left: 7px; }
}
.connection-progress { margin: 14px 0 2px; padding: 12px; border: 1px solid #e3e9f4; border-radius: 10px; background: #f8faff; }
.connection-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #30405f; font-size: 11px; }
.connection-progress-head span { color: #75829b; font-size: 10px; font-variant-numeric: tabular-nums; }
.connection-progress-track { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #e4eaf5; }
.connection-progress-track span { display: block; width: 36%; height: 100%; border-radius: inherit; background: #3869dc; animation: connect-progress-slide 1.35s ease-in-out infinite; }
.connection-progress[data-state="complete"] .connection-progress-track span { width: 100%; background: #11a46b; animation: none; }
.connection-progress[data-state="error"] .connection-progress-track span { width: 100%; background: #d84952; animation: none; }
.connection-progress p { margin: 8px 0 0; color: #77849b; font-size: 10px; line-height: 1.5; }
.connection-progress[data-state="complete"] p { color: #14825b; }
.connection-progress[data-state="error"] p { color: #b53d47; }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }
@keyframes connect-progress-slide { from { transform: translateX(-120%); } to { transform: translateX(360%); } }
@media (prefers-reduced-motion: reduce) { .connection-progress-track span { animation-duration: 3s; } }
#connection.is-connected, #metric-connection.is-connected { color: #087a43; font-weight: 850; }
#manual-send-form input[name="number"]::placeholder { color: #aab3c2; opacity: 1; }
