:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --surface-muted: #f1f5f9;
  --text: #101828;
  --muted: #667085;
  --muted-soft: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eff6ff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 12px 28px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 24px 70px rgba(16, 24, 40, 0.14);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -10%, rgba(37, 99, 235, 0.10), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(14, 165, 233, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.01em;
}

button,
input,
select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

.hidden { display: none !important; }
.full-width { width: 100%; }

.brand,
.app-header,
.header-actions,
.overview-panel,
.overview-actions,
.section-title,
.subscription-card-head,
.plan-identity,
.compact-quota-row,
.quota-caption,
.credential-line,
.guide-panel-head,
.endpoint-bar,
.endpoint-bar > div,
.result-head,
.result-field,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { justify-content: flex-start; min-height: 52px; }
.brand-mark,
.user-avatar,
.plan-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.user-avatar svg,
.plan-mark svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #60a5fa);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.20);
}
.brand h1,
.brand p,
.overview-panel h2,
.section-title h3,
.subscription-card h4,
.plan-identity p,
.quota-primary div,
.quota-primary span,
.quota-caption,
.endpoint-note,
.modal-head h3 { margin: 0; }
.brand h1 { font-size: 18px; line-height: 1.2; }
.brand p { margin-top: 3px; color: var(--muted); font-size: 13px; }

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.subscription-card button,
.result-field button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 15px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.primary-btn { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18); }
.primary-btn:hover { background: var(--brand-strong); transform: translateY(-1px); }
.secondary-btn,
.subscription-card button,
.result-field button { border-color: var(--line); background: #fff; color: #344054; }
.ghost-btn { border-color: transparent; background: transparent; color: #475467; }
.secondary-btn:hover,
.subscription-card button:hover,
.result-field button:hover,
.ghost-btn:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.icon-btn {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.app-shell { min-height: 100vh; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}
.header-actions { flex-wrap: wrap; justify-content: flex-end; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.user-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  line-height: 1;
  border-radius: 50%;
  background: #111827;
  font-size: 13px;
}
.user-chip > div span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.user-chip strong { display: block; max-width: 180px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px 32px 42px;
}
.overview-panel,
.panel-card,
.metric,
.notice,
.password-panel,
.subscription-card,
.guide-panel,
.endpoint-bar,
.empty-state,
.auth-card,
.modal-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.overview-panel {
  align-items: flex-start;
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,246,255,0.72));
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.overview-panel h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.06; }
.hero-subtitle { max-width: 640px; margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.overview-actions { flex-wrap: wrap; justify-content: flex-end; }
.small-action-btn { min-height: 38px; padding: 0 13px; }

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.muted { background: #f2f4f7; color: #667085; }
.badge[data-status="online"] { background: #ecfdf3; color: #067647; }
.badge[data-status="online"]::before,
.badge[data-status="offline"]::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
}
.badge[data-status="online"]::before { background: var(--success); }
.badge[data-status="offline"] { background: #fef2f2; color: #991b1b; }
.badge[data-status="offline"]::before { background: var(--danger); }
.status-pill[data-status="active"]::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}
.status-pill[data-status="disabled"],
.status-pill[data-status="missing"] { background: #fef2f2; color: #991b1b; }

.notice {
  margin: 18px 0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--brand-strong);
}
.notice.error { color: var(--danger); }

.password-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
  border-radius: var(--radius-lg);
  padding: 16px;
}
.password-panel label,
.form-stack label { display: grid; gap: 7px; }
.password-panel span,
.form-stack label span,
.endpoint-bar span,
.credential-line span,
.result-field > span { color: var(--muted); font-size: 12px; font-weight: 700; }

.form-stack input,
.password-panel input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 13px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-stack input:hover,
.password-panel input:hover,
select:hover { border-color: var(--line-strong); }
.form-stack input:focus,
.password-panel input:focus,
select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 16px;
}
.metric { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 16px 18px; }
.metric::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand-soft);
  content: "";
}
.metric span { display: block; color: var(--muted); font-size: 13px; }
.metric strong { display: block; margin-top: 10px; font-size: 28px; line-height: 1; }

.panel-card { min-width: 0; border-radius: var(--radius-lg); padding: 20px; }
.section-title { margin-bottom: 16px; }
.section-title h3 { font-size: 17px; line-height: 1.35; }
.section-caption { color: var(--muted); font-size: 13px; }

.key-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
  min-height: 260px;
}
.empty-state {
  display: grid;
  gap: 8px;
  padding: 34px 28px;
  border-style: dashed;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
}
.empty-state span { color: var(--muted); }

.subscription-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,250,251,0.86));
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.subscription-card:hover { border-color: rgba(37, 99, 235, 0.26); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.subscription-card-head { align-items: flex-start; }
.plan-identity { justify-content: flex-start; min-width: 0; }
.plan-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: #111827;
  font-size: 15px;
}
.plan-identity p { margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.plan-identity h4 { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.compact-quota-row { align-items: flex-end; }
.quota-primary > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.quota-primary strong { font-size: 28px; line-height: 1; }
.quota-primary small { color: var(--muted); font-size: 13px; font-weight: 600; }
.quota-percent { color: var(--brand-strong); font-size: 16px; font-weight: 800; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #eef2f6; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #60a5fa); transition: width 180ms ease; }
.quota-caption { color: var(--muted); font-size: 12px; }
.quota-caption strong { color: var(--text); }

.credential-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--surface-soft);
}
.credential-line { min-width: 0; justify-content: flex-start; }
.credential-line span { width: 62px; flex: 0 0 62px; }
.credential-line button { min-height: 28px; padding: 0 10px; font-size: 12px; }
.key-value {
  display: block;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #1f2937;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subscription-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding-top: 2px;
}
.subscription-meta dt,
.subscription-meta dd { margin: 0; font-size: 12px; }
.subscription-meta dt { margin-bottom: 3px; color: var(--muted); }
.subscription-meta dd { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.access-summary {
  display: grid;
  gap: 12px;
  margin: 20px 0 18px;
}
.access-summary > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff, var(--surface-soft));
}
.access-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.access-summary code {
  min-width: 0;
  overflow: hidden;
  color: #1f2937;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.access-summary button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}
.endpoint-note { margin: 10px 0 14px; color: var(--muted); font-size: 13px; }
.endpoint-note code { color: var(--brand-strong); font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; }
.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px;
  overflow: visible;
}
.guide-tab {
  min-height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.guide-tab.active { border-bottom-color: #14b8a6; color: #0f766e; }
.platform-guide-tabs {
  margin-top: 10px;
  border-bottom-color: #edf2f7;
}
.platform-guide-tabs .guide-tab {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}
.guide-panel {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 18px 0 0;
  background: transparent;
}
.guide-panel-head {
  align-items: flex-start;
  margin-bottom: 14px;
}
.guide-panel-head > div,
.result-head > div { display: grid; gap: 4px; }
.guide-panel-head strong { font-size: 16px; line-height: 1.3; }
.guide-panel-head span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.guide-hint {
  margin: 0 0 10px;
  padding-left: 16px;
  color: var(--warning);
  font-size: 13px;
  line-height: 1.5;
}
.guide-note {
  margin: 16px 0 0;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 13px 15px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.55;
}
.code-path {
  border: 1px solid #253244;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 11px 16px;
  background: #1f2937;
  color: #b6c2d1;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}
.code-block-wrap {
  position: relative;
  margin-bottom: 18px;
}
.code-copy-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 800;
}
.code-copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.code-block {
  min-height: 120px;
  max-height: min(240px, calc(100vh - 540px));
  margin: 0;
  overflow: auto;
  border: 1px solid #253244;
  border-radius: 0 0 14px 14px;
  padding: 20px 16px 16px;
  background: #0f172a;
  color: #e5e7eb;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.code-block {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.code-block::-webkit-scrollbar {
  display: none;
}
.compact-code-block {
  min-height: 80px;
  max-height: 120px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}
.modal-card {
  width: min(460px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.access-modal-card {
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  overflow: hidden;
  padding: 26px;
}
.modal-head {
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}
.modal-head .eyebrow { margin-bottom: 5px; }
.form-stack { display: grid; gap: 14px; margin-top: 16px; }
.captcha-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: end;
  gap: 10px;
}
.captcha-image-button {
  width: 180px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  background: var(--surface-muted);
}
.captcha-image-button img { display: block; width: 180px; height: 56px; }

.auth-body {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.28), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(14, 165, 233, 0.20), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 48%, #f8fafc 100%);
}
.auth-body::before,
.auth-body::after {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  content: "";
}
.auth-body::before {
  top: -150px;
  right: -130px;
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.06));
  filter: blur(2px);
}
.auth-body::after {
  bottom: -190px;
  left: -150px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  background: rgba(255, 255, 255, 0.42);
}
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
}
.auth-shell::before {
  position: absolute;
  inset: -26px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.12);
  content: "";
}
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--surface);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
  padding: 34px;
  backdrop-filter: blur(20px);
}
.auth-card::before {
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.75), rgba(14, 165, 233, 0.56), transparent);
  content: "";
}
.auth-brand {
  align-items: center;
  margin-bottom: 24px;
}
.auth-brand .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #38bdf8 100%);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
  font-size: 20px;
}
.auth-brand h1 { font-size: 22px; letter-spacing: -0.03em; }
.auth-brand p { margin-top: 6px; color: #64748b; font-size: 14px; }
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 6px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.76);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}
.tab {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.tab.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
}
.auth-card .form-stack { gap: 16px; margin-top: 20px; }
.auth-card .form-stack label span { color: #475569; letter-spacing: 0.02em; }
.auth-card .form-stack input {
  min-height: 48px;
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.auth-card .form-stack input:hover { border-color: rgba(37, 99, 235, 0.34); background: #fff; }
.auth-card .form-stack input:focus {
  border-color: rgba(37, 99, 235, 0.78);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11), 0 10px 24px rgba(37, 99, 235, 0.08);
}
.auth-card .primary-btn {
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
  letter-spacing: 0.02em;
}
.auth-card .primary-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.30);
}
.auth-card .captcha-field { gap: 12px; }
.auth-card .captcha-image-button {
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.auth-card .captcha-image-button:hover {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
  transform: translateY(-1px);
}
.auth-card .notice {
  margin: 18px 0 0;
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(239, 246, 255, 0.82);
}
.credential-result {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(240, 249, 255, 0.82));
  padding: 14px;
  color: var(--brand-strong);
}
.result-head span { color: var(--muted); font-size: 12px; }
.result-field {
  min-width: 0;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  background: #fff;
}
.result-field code { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.result-field button { min-height: 30px; flex: 0 0 auto; font-size: 12px; }

@media (max-width: 1080px) {
  .key-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-header,
  .overview-panel,
  .header-actions,
  .section-title { align-items: stretch; flex-direction: column; }
  .brand { width: 100%; }
  .user-chip { border-radius: var(--radius-md); }
  .app-header,
  .dashboard-main { padding: 18px; }
  .overview-actions { justify-content: stretch; }
  .overview-actions > *,
  .header-actions > button { width: 100%; }
  .summary-grid,
  .password-panel { grid-template-columns: 1fr; }
  .panel-card,
  .overview-panel,
  .auth-card { padding: 16px; }
  .credential-line { display: grid; grid-template-columns: 1fr auto; }
  .credential-line span { width: auto; grid-column: 1 / -1; }
  .subscription-meta { gap: 8px; }
  .access-summary > div { grid-template-columns: 1fr auto; }
  .access-summary span { grid-column: 1 / -1; }
}

@media (max-width: 440px) {
  .captcha-field { grid-template-columns: 1fr; }
  .captcha-image-button { width: 100%; }
  .captcha-image-button img { margin: 0 auto; }
}
