:root {
  --navy: #152333;
  --navy-soft: #203346;
  --teal: #0c786c;
  --teal-dark: #085d55;
  --teal-light: #e8f4f0;
  --text: #243347;
  --muted: #64748b;
  --border: #dfe6ed;
  --surface: #fff;
  --background: #f3f6f9;
  --danger: #b43535;
  --danger-light: #fff1f0;
  --warning: #946615;
  --warning-light: #fff7e4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button { white-space: nowrap; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #57b8ad; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: 29px; font-weight: 650; line-height: 1.4; letter-spacing: -.6px; }
h2 { font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 750; color: var(--teal); margin-bottom: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; transition: background-color .15s, border-color .15s; }
.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.primary:hover:not(:disabled) { background: var(--teal-dark); }
.secondary { background: #fff; border-color: #cfd9e2; color: #33475a; box-shadow: 0 1px 2px #15233305; }
.secondary:hover:not(:disabled) { background: #f3f7f9; border-color: #9dabb8; }
.quiet { background: transparent; color: var(--muted); }
.quiet:hover:not(:disabled) { background: #edf2f6; color: var(--text); }
.danger { background: #fff; color: var(--danger); border-color: #ecd4d4; }
.danger:hover:not(:disabled) { background: var(--danger-light); }
.compact { padding: 5px 10px; min-height: 30px; font-size: 12px; }
.full-width { width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 5px; padding: 3px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.neutral { color: #627184; background: #eef2f6; border-color: #e4e9ef; }
.positive { color: var(--teal); background: var(--teal-light); border-color: #d4e9e1; }
.warning { color: var(--warning); background: var(--warning-light); border-color: #efdfba; }
.negative { color: var(--danger); background: var(--danger-light); border-color: #f0d6d3; }
label { display: block; font-size: 12px; color: #40546a; font-weight: 600; margin-bottom: 7px; }
input, textarea, select { width: 100%; border: 1px solid #ccd7e0; border-radius: 7px; color: var(--text); background: #fff; padding: 10px 12px; min-height: 42px; }
input::placeholder { color: #93a0ae; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 20% 5%, #dbe8e9 0, transparent 55%), var(--background); }
.login-card { width: min(100%, 420px); padding: 38px; border: 1px solid #dce5eb; border-radius: 15px; background: #fff; box-shadow: 0 16px 55px #1b334312; }
.brand-mark { display: inline-grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ffffff24; border-radius: 9px; background: var(--teal); color: #fff; font-size: 22px; font-weight: 750; line-height: 1; }
.login-card > .brand-mark { width: 43px; height: 43px; margin-bottom: 26px; }
.login-card > .muted { margin: 10px 0 25px; font-size: 13px; }
.login-card form .button { margin-top: 18px; }
.login-note { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
#session-check { margin-top: 13px; }
.error-text { color: var(--danger); font-size: 12px; margin-top: 12px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 216px; flex-shrink: 0; padding: 28px 17px; background: var(--navy); color: #bac7d3; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; text-decoration: none; font-size: 21px; font-weight: 650; color: #f5f8fb; letter-spacing: -.4px; }
.brand-subtitle { display: block; font-size: 10px; color: #93a8ba; font-weight: 400; letter-spacing: 1px; margin-top: -1px; }
.nav-caption { font-size: 10px; color: #8096a8; letter-spacing: 1px; margin: 46px 14px 12px; }
nav { display: grid; gap: 6px; }
nav a { display: flex; align-items: center; gap: 12px; border-radius: 7px; padding: 11px 14px; text-decoration: none; font-size: 13px; }
nav a:hover { background: #ffffff08; color: #fff; }
nav a[aria-current="page"] { background: #ffffff0c; color: #fff; box-shadow: inset 3px 0 #60b9ac; }
.nav-number { font-size: 10px; color: #8097aa; font-variant-numeric: tabular-nums; }
nav a[aria-current="page"] .nav-number { color: #7ed0c3; }
.sidebar-note { margin: auto 12px 0; border-top: 1px solid #ffffff14; padding-top: 20px; font-size: 11px; color: #c4cfda; }
.sidebar-note p { margin-top: 9px; font-size: 10px; line-height: 1.9; color: #8298ab; }
.sidebar-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #78b9ae; margin: 0 6px 2px 0; }
.workspace { min-width: 0; flex: 1; margin-left: 216px; }
.topbar { height: 69px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--border); padding: 0 36px; background: #ffffffd9; }
.breadcrumb { font-size: 12px; color: #5f7083; }
.breadcrumb span { padding: 0 11px; color: #b9c4ce; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.main-content { max-width: 1490px; margin: 0 auto; padding: 35px 36px 20px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.page-heading > div > .muted { margin-top: 9px; font-size: 13px; }
.refresh-control { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
#last-refresh { font-size: 10px; font-variant-numeric: tabular-nums; }
.section { margin-bottom: 25px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-heading .muted, .panel-heading .muted { margin-top: 5px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 20px; display: flex; flex-direction: column; box-shadow: 0 2px 4px #20334602; }
.metric-label { font-size: 12px; font-weight: 500; color: #63748a; }
.metric-card strong { font-size: 29px; font-weight: 650; letter-spacing: -.8px; line-height: 1.5; font-variant-numeric: tabular-nums; margin: 8px 0 9px; }
.metric-footnote { font-size: 10px; color: #7b899a; }
.health-strip { display: flex; gap: 38px; padding: 18px 3px 0; flex-wrap: wrap; }
.health-strip > div { display: flex; gap: 10px; align-items: center; }
.health-strip strong { font-size: 11px; font-weight: 550; word-break: break-word; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; box-shadow: 0 2px 4px #20334602; }
.panel-heading { padding: 22px 23px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.count-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { font-size: 11px; font-weight: 550; color: #65768a; padding: 11px 23px; background: #f8fafb; border-top: 1px solid #edf1f5; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 15px 23px; border-bottom: 1px solid #edf1f5; vertical-align: middle; overflow-wrap: anywhere; max-width: 300px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfd; }
.account-name, .client-name { font-weight: 600; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.empty-state { text-align: center; color: #8291a1; padding: 36px 20px; font-weight: 400; }
.panel-footer { background: #fbfcfd; color: #7b8998; font-size: 10px; border-top: 1px solid #edf1f5; padding: 12px 23px; }
.panel-content { padding: 0 23px 22px; }
.info-box { font-size: 12px; color: #4e6a70; background: #f0f7f6; border: 1px solid #dcece8; border-radius: 6px; padding: 13px 15px; line-height: 1.8; }
.inline-form { display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; }
.form-field { flex: 1; max-width: 380px; }
.inline-form .button { min-height: 42px; }
.integration-guide { margin: 0 23px; padding: 17px 0; border-top: 1px solid #edf1f5; }
.integration-guide summary { color: var(--teal); font-size: 12px; font-weight: 550; }
.integration-guide > p { margin-top: 12px; }
.code-block { margin: 15px 0 0; background: #f5f8fa; border: 1px solid #e2e9ef; border-radius: 6px; color: #395369; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.9; padding: 17px; overflow-x: auto; tab-size: 2; }
.test-output { margin: 0; min-height: 76px; max-height: 420px; white-space: pre-wrap; overflow-wrap: anywhere; }
.error-box { padding: 11px 14px; background: var(--danger-light); border: 1px solid #f1d6d3; color: var(--danger); border-radius: 6px; font-size: 12px; margin: 0 0 15px; overflow-wrap: anywhere; }
.panel-alert { margin-left: 23px; margin-right: 23px; }
#clients-error { margin: 16px 0 0; }
.notice { background: #eaf3f1; border: 1px solid #cde4dc; color: #306b5e; font-size: 12px; border-radius: 6px; padding: 11px 15px; margin-bottom: 23px; }
.notice.is-error { background: var(--danger-light); border-color: #f1d6d3; color: var(--danger); }
.page-footer { font-size: 10px; color: #8a98a7; display: flex; justify-content: space-between; gap: 15px; padding: 4px 0 10px; }
dialog { border: 1px solid #d9e3eb; border-radius: 13px; padding: 30px; width: min(520px, calc(100% - 32px)); color: var(--text); box-shadow: 0 22px 70px #13273830; }
dialog::backdrop { background: #11233377; backdrop-filter: blur(3px); }
.dialog-heading h2 { margin: 13px 0 9px; font-size: 21px; }
.dialog-heading p { font-size: 13px; margin-bottom: 21px; }
#new-token { background: #f8fafb; }
#copy-message { margin-top: 10px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; }
.managed-heading { border-top: 1px solid var(--border); background: #fcfdfd; }
.managed-heading h3 { margin: 0; font-size: 16px; font-weight: 650; }
.managed-info { padding-bottom: 15px; }
.managed-info .info-box > p + p { margin-top: 9px; }
.managed-info .code-block { margin: 10px 0; padding: 11px 13px; }
.managed-info a { color: var(--teal-dark); overflow-wrap: anywhere; }
#managed-access-status { margin-top: 12px; }
#managed-accounts-error { margin: 12px 0 0; }
.cell-detail { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.managed-row-error { color: var(--danger); font-weight: 550; }
.managed-actions { min-width: 220px; }
.managed-actions .button { margin: 3px 5px 3px 0; }
.account-dialog { width: min(650px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
.account-dialog .dialog-heading h2 { margin-top: 0; }
.account-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-form-grid .form-field { max-width: none; min-width: 0; }
.account-form-grid .full-span { grid-column: 1 / -1; }
.account-form-grid .form-field > p { margin-top: 6px; font-size: 11px; }
#managed-form-error, #managed-delete-error { margin-top: 18px; margin-bottom: 0; }
.delete-account-name { margin: 15px 0 10px; font-weight: 600; overflow-wrap: anywhere; }
#managed-delete-help { font-size: 13px; }
@media (max-width: 520px) { .account-form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .managed-heading { flex-wrap: wrap; } .managed-heading > div { flex-basis: 100%; } .account-dialog { max-height: calc(100vh - 24px); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { padding: 18px; background: var(--warning-light); color: var(--warning); text-align: center; }
@media (min-width: 1500px) { .main-content { padding-top: 44px; } .metrics { gap: 20px; } .metric-card { padding: 24px; } }
@media (max-width: 1150px) { .sidebar { width: 185px; padding-left: 12px; padding-right: 12px; } .workspace { margin-left: 185px; } .main-content { padding: 28px 24px 16px; } .topbar { padding: 0 24px; } .metrics { gap: 11px; } .metric-card { padding: 16px; } .metric-card strong { font-size: 25px; } th, td { padding-left: 18px; padding-right: 18px; } }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metric-card { padding: 19px; } .sidebar { width: 168px; } .workspace { margin-left: 168px; } .brand { font-size: 19px; gap: 9px; padding: 0 6px; } .sidebar-note { margin-left: 6px; margin-right: 6px; } .topbar { padding: 0 20px; } .breadcrumb { font-size: 11px; } .page-heading { align-items: flex-start; } .page-heading h1 { font-size: 26px; } }
@media (max-width: 680px) { .app-shell { display: block; } .sidebar { position: static; width: 100%; padding: 16px 18px 0; } .brand { padding: 0; font-size: 19px; } .brand-subtitle { display: inline; margin-left: 10px; } .brand-mark { width: 30px; height: 30px; font-size: 19px; border-radius: 7px; } .nav-caption, .sidebar-note { display: none; } nav { display: flex; overflow-x: auto; margin-top: 16px; gap: 3px; padding-bottom: 10px; } nav a { padding: 8px 11px; font-size: 12px; white-space: nowrap; } .nav-number { display: none; } nav a[aria-current="page"] { box-shadow: inset 0 -2px #60b9ac; } .workspace { margin-left: 0; } .topbar { height: 56px; padding: 0 18px; } .topbar-actions { gap: 4px; } .topbar .badge { font-size: 10px; padding: 3px 7px; } .main-content { padding: 25px 17px 12px; } .page-heading { gap: 12px; margin-bottom: 24px; } .page-heading h1 { font-size: 24px; } .page-heading > div > .muted { font-size: 12px; } .refresh-control { padding-top: 5px; } #last-refresh { max-width: 110px; text-align: right; } .section-heading { align-items: flex-start; } .section-heading .badge { margin-top: 4px; } .metrics { gap: 10px; } .metric-card { padding: 16px; } .metric-card strong { font-size: 26px; margin: 8px 0; } .metric-footnote { font-size: 10px; } .health-strip { gap: 12px 22px; padding-top: 15px; } .health-strip > div { gap: 8px; } .panel-heading { padding: 19px 17px 16px; align-items: flex-start; } .panel-heading .badge { font-size: 10px; } .panel-content { padding-left: 17px; padding-right: 17px; } .panel-heading .muted { max-width: 300px; } .panel-footer { padding-left: 17px; padding-right: 17px; } th, td { padding-left: 17px; padding-right: 17px; } td { min-width: 90px; } .integration-guide { margin-left: 17px; margin-right: 17px; } .inline-form { gap: 10px; } .inline-form .button { padding-left: 12px; padding-right: 12px; } .page-footer { display: block; line-height: 1.9; } .page-footer span { display: block; } .panel-alert { margin-left: 17px; margin-right: 17px; } .login-card { padding: 29px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
