:root {
  --ui-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --bg: #f6f8fb;
  --bg-accent: #eef2ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: #f6f8fa;
  --border: rgba(31, 35, 40, 0.1);
  --border-strong: rgba(31, 35, 40, 0.16);
  --text: #1f2328;
  --muted: #59636e;
  --accent: #0969da;
  --accent-strong: #0550ae;
  --success: #1a7f37;
  --warning: #9a6700;
  --danger: #cf222e;
  --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.06);
  --shadow-md: 0 12px 30px rgba(31, 35, 40, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ui-font);
  font-weight: 400;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.94), rgba(239, 244, 249, 0.96)),
    url("linktech-ai-bg.svg") center top / cover no-repeat,
    radial-gradient(circle at top left, rgba(9, 105, 218, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 111, 235, 0.08), transparent 26%),
    linear-gradient(180deg, #f6f8fb 0%, #eff3f8 100%);
  padding-bottom: 32px;
}

button,
input,
select,
textarea,
code,
pre,
.mono {
  font-family: var(--ui-font);
}

body[data-page="dashboard"],
body[data-page="ops-admin"],
body[data-page="agent-center"] {
  --accent: #6a879e;
  --accent-strong: #4d697f;
  --surface-muted: #edf4f7;
  --border: rgba(77, 105, 127, 0.11);
  --border-strong: rgba(77, 105, 127, 0.18);
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(236, 243, 247, 0.98)),
    radial-gradient(circle at top left, rgba(146, 174, 194, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(129, 160, 183, 0.12), transparent 26%),
    linear-gradient(180deg, #f4f8fa 0%, #eaf1f4 100%);
}

body.auth-modal-open {
  overflow: hidden;
}

body.auth-modal-open::before {
  opacity: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.25;
}

body[data-page="dashboard"] .site-header,
body[data-page="ops-admin"] .site-header,
body[data-page="agent-center"] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 250, 0.92));
  border-color: rgba(91, 121, 144, 0.14);
  box-shadow: 0 16px 34px rgba(102, 130, 151, 0.09);
}

body[data-page="dashboard"] .nav a,
body[data-page="ops-admin"] .nav a,
body[data-page="agent-center"] .nav a {
  color: #5b7287;
  background: rgba(238, 244, 247, 0.94);
  border-color: rgba(107, 135, 158, 0.04);
}

body[data-page="dashboard"] .nav a.active,
body[data-page="dashboard"] .nav a:hover,
body[data-page="ops-admin"] .nav a.active,
body[data-page="ops-admin"] .nav a:hover,
body[data-page="agent-center"] .nav a.active,
body[data-page="agent-center"] .nav a:hover {
  color: var(--accent-strong);
  background: rgba(106, 135, 158, 0.12);
  border-color: rgba(106, 135, 158, 0.16);
}

body[data-page="dashboard"] .button,
body[data-page="dashboard"] .link-button,
body[data-page="dashboard"] .copy-btn,
body[data-page="ops-admin"] .button,
body[data-page="ops-admin"] .link-button,
body[data-page="ops-admin"] .copy-btn,
body[data-page="agent-center"] .button,
body[data-page="agent-center"] .link-button,
body[data-page="agent-center"] .copy-btn {
  background: linear-gradient(135deg, #809cb2, #6b879f 56%, #577288 100%);
  box-shadow: 0 12px 26px rgba(91, 121, 144, 0.16);
}

body[data-page="dashboard"] .button:hover,
body[data-page="dashboard"] .link-button:hover,
body[data-page="dashboard"] .copy-btn:hover,
body[data-page="ops-admin"] .button:hover,
body[data-page="ops-admin"] .link-button:hover,
body[data-page="ops-admin"] .copy-btn:hover,
body[data-page="agent-center"] .button:hover,
body[data-page="agent-center"] .link-button:hover,
body[data-page="agent-center"] .copy-btn:hover {
  background: linear-gradient(135deg, #7493ab, #5f7d95 56%, #4d687e 100%);
}

body[data-page="dashboard"] .button.alt,
body[data-page="ops-admin"] .button.alt,
body[data-page="agent-center"] .button.alt,
body[data-page="dashboard"] .ghost-button,
body[data-page="ops-admin"] .ghost-button,
body[data-page="agent-center"] .ghost-button {
  color: #425e75;
  background: linear-gradient(180deg, rgba(246, 250, 252, 0.98), rgba(239, 245, 248, 0.98));
  border-color: rgba(106, 135, 158, 0.14);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.ops-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ops-pagination-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shell,
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 18px 48px;
}

.header,
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.brand-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
}

body[data-page="ops-admin"] #admin-access-module {
  display: block;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-section] {
  width: 100%;
}

body[data-page="ops-admin"] #ops-super-admin-overview {
  grid-template-columns: minmax(0, 1.44fr) minmax(340px, 0.86fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}

body[data-page="ops-admin"] #ops-super-admin-overview > article {
  height: 100%;
}

body[data-page="ops-admin"] #pricing-private-module {
  display: block;
  margin-top: 0;
}

body[data-page="ops-admin"] #pricing-private-module #private-pricing-card {
  width: 100%;
}

body[data-page="ops-admin"] #pricing-sync-card {
  display: grid;
  gap: 10px;
}

body[data-page="ops-admin"] #pricing-sync-card .pricing-sync-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

body[data-page="ops-admin"] #pricing-sync-card .pricing-sync-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body[data-page="ops-admin"] #pricing-sync-card .pricing-sync-title h2 {
  margin: 0;
}

body[data-page="ops-admin"] #pricing-sync-card [data-ops-pricing-sync-button] {
  min-height: 40px;
  padding: 9px 14px;
  white-space: nowrap;
}

body[data-page="ops-admin"] #private-pricing-card [data-ops-private-pricing-form] {
  gap: 10px;
}

body[data-page="ops-admin"] #private-pricing-card .form-grid.two {
  grid-template-columns: 1fr;
  gap: 10px;
}

body[data-page="ops-admin"] #private-pricing-card .form-grid.two > .field {
  min-width: 0;
  padding: 9px 12px;
}

body[data-page="ops-admin"] #private-pricing-card .notice,
body[data-page="ops-admin"] #private-pricing-card .helper-text,
body[data-page="ops-admin"] #pricing-sync-card .activity-meta,
body[data-page="ops-admin"] #pricing-sync-card .activity-time {
  line-height: 1.38;
}

body[data-page="ops-admin"] #private-pricing-card .notice,
body[data-page="ops-admin"] #private-pricing-card .surface.helper-text,
body[data-page="ops-admin"] #pricing-sync-card .notice,
body[data-page="ops-admin"] #pricing-sync-card .activity-row {
  padding: 9px 12px;
}

body[data-page="ops-admin"] #private-pricing-card .field label,
body[data-page="ops-admin"] #pricing-sync-card .activity-time {
  line-height: 1.3;
}

body[data-page="ops-admin"] #private-pricing-card .table-wrap {
  width: 100%;
}

body[data-page="ops-admin"] #private-pricing-card .ops-private-rate-table {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}

body[data-page="ops-admin"] #private-pricing-card .ops-private-rate-table th,
body[data-page="ops-admin"] #private-pricing-card .ops-private-rate-table td {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.22;
  white-space: nowrap;
  vertical-align: middle;
}

body[data-page="ops-admin"] #private-pricing-card .ops-private-rate-table th {
  padding-top: 9px;
  padding-bottom: 9px;
}

body[data-page="ops-admin"] #private-pricing-card .ops-private-rate-name,
body[data-page="ops-admin"] #private-pricing-card .ops-private-rate-status {
  display: inline-block;
  white-space: nowrap;
}

body[data-page="ops-admin"] #private-pricing-card .ops-private-rate-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="ops-admin"] #private-pricing-card .ops-private-rate-override-cell input {
  min-width: 112px;
  max-width: 128px;
  min-height: 36px;
  padding: 7px 10px;
}

body[data-page="ops-admin"] #pricing-sync-card .timeline {
  gap: 6px;
}

body[data-page="ops-admin"] #pricing-sync-card .activity-row {
  align-items: flex-start;
}

body[data-page="ops-admin"] #pricing-sync-card .activity-meta strong {
  display: block;
  line-height: 1.32;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] {
  gap: 16px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] > .form-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] > .field {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] > .form-grid.two > .field {
  min-height: 116px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-level-note] {
  min-height: 44px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  line-height: 1.7;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-permission-grid] {
  display: grid;
  gap: 14px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-permission-grid] .permission-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-permission-grid] .permission-item {
  min-height: 48px;
  padding: 12px 14px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-list] {
  margin-top: 18px;
  gap: 12px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-list] .activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 12px;
}

body[data-page="ops-admin"] #admin-access-module [data-ops-account-list] .activity-meta {
  min-width: 0;
}

@media (max-width: 960px) {
  body[data-page="ops-admin"] #ops-super-admin-overview {
    grid-template-columns: 1fr;
  }

  body[data-page="ops-admin"] #pricing-sync-card .pricing-sync-head {
    grid-template-columns: 1fr;
  }

  body[data-page="ops-admin"] #pricing-sync-card [data-ops-pricing-sync-button] {
    width: 100%;
  }

  body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] > .form-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] > .form-grid.two > .field {
    min-height: auto;
  }

  body[data-page="ops-admin"] #admin-access-module [data-ops-account-list] .activity-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-page="ops-admin"] #admin-access-module [data-ops-account-list] .activity-row > .ghost-button,
  body[data-page="ops-admin"] #admin-access-module [data-ops-account-list] .activity-row > .danger-button {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] {
    gap: 14px;
  }

  body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] > .field,
  body[data-page="ops-admin"] #admin-access-module [data-ops-account-form] > .form-grid.two > .field {
    padding: 12px 14px;
  }

  body[data-page="ops-admin"] #admin-access-module [data-ops-account-level-note] {
    padding: 10px 12px;
  }
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-title-main {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-title-side {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-muted);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--accent);
  background: rgba(9, 105, 218, 0.08);
  border-color: rgba(9, 105, 218, 0.12);
}

.header-actions,
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-menu {
  position: relative;
}

.account-menu > summary {
  list-style: none;
}

.account-menu > summary::-webkit-details-marker {
  display: none;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.account-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.account-brand,
.account-divider {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  white-space: nowrap;
}

.account-caret {
  color: var(--muted);
  font-size: 12px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.account-dropdown a,
.account-dropdown button {
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(9, 105, 218, 0.08);
  color: var(--accent-strong);
}

.hero,
.hero-grid,
.auth-layout {
  display: grid;
  gap: 16px;
}

.hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  margin-bottom: 16px;
}

.hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.auth-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.panel,
.surface,
.card,
.section-card,
.kpi-card,
.info-card,
.guide-card,
.download-card,
.step-card,
.auth-card,
.legal-article {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel,
.surface,
.card,
.section-card,
.legal-article {
  padding: 20px;
}

.kpi-card,
.info-card,
.guide-card,
.download-card,
.step-card,
.auth-card {
  padding: 18px;
}

.page-title,
.hero-title,
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-copy,
.lead,
.legal-article p,
.legal-article li {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(9, 105, 218, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tag-row,
.chip-list,
.plan-meta,
.card-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.chip,
.status-badge,
.status-pill,
.badge,
.family-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.tag,
.chip,
.badge,
.family-pill {
  background: var(--surface-muted);
  color: var(--muted);
  border: 1px solid var(--border);
}

.chip.is-available,
.status-pill.is-available,
.badge.is-available {
  background: rgba(26, 127, 55, 0.1);
  color: var(--success);
  border-color: rgba(26, 127, 55, 0.18);
}

.chip.is-locked,
.status-pill.is-locked,
.badge.is-locked {
  background: rgba(207, 34, 46, 0.08);
  color: var(--danger);
  border-color: rgba(207, 34, 46, 0.12);
}

.status-badge,
.status-pill {
  border: 1px solid transparent;
}

.status-badge.active,
.status-pill.active {
  background: rgba(26, 127, 55, 0.1);
  color: var(--success);
}

.status-badge.pending,
.status-pill.pending {
  background: rgba(154, 103, 0, 0.12);
  color: var(--warning);
}

.status-badge.danger,
.status-pill.danger {
  background: rgba(207, 34, 46, 0.12);
  color: var(--danger);
}

.kpi-grid,
.stats-grid,
.card-grid,
.link-grid,
.split-grid,
.plan-grid,
.model-grid,
.legal-grid,
.form-grid {
  display: grid;
  gap: 14px;
}

.kpi-grid,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.card-grid.two,
.split-grid,
.legal-grid,
.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-grid,
.model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="cursor-download"] .link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
}

body[data-page="cursor-download"] .download-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 292px;
}

body[data-page="cursor-download"] .download-card .value {
  min-height: 54px;
  margin: 0;
  line-height: 1.22;
}

body[data-page="cursor-download"] .download-card .subvalue {
  min-height: 68px;
  line-height: 1.55;
}

body[data-page="cursor-download"] .download-card .helper-text {
  min-height: 44px;
}

body[data-page="cursor-download"] .download-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
  width: 100%;
}

body[data-page="cursor-download"] .download-card-actions .link-button,
body[data-page="cursor-download"] .download-card-actions .copy-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 11px 15px;
}

body[data-page="cursor-download"] .download-card-actions .copy-btn {
  color: #ffffff;
  background: var(--accent);
  border-color: transparent;
}

.section {
  margin-top: 16px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.section-subtitle,
.subvalue,
.helper-text,
.muted-text,
.footer,
.empty-state {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.value,
.metric-value {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.info-list,
.bullet-list,
.faq-list,
.step-list,
.timeline,
.model-family-sections {
  display: grid;
  gap: 14px;
}

.model-provider-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}

.model-provider-column,
.model-series-stack,
.model-series-group {
  display: grid;
  gap: 14px;
}

.model-provider-column {
  align-content: start;
}

.model-provider-column-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.model-provider-column-head h2 {
  margin: 2px 0;
}

.model-provider-column-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.model-series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-series-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
}

.model-series-head span {
  color: var(--muted);
  font-size: 12px;
}

.model-series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.progress {
  margin-top: 16px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 35, 40, 0.08);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #6e8efb);
}

.copy-row,
.field,
.table-wrap,
.notice,
.activity-row,
.result-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.copy-row,
.activity-row,
.result-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
}

.copy-row code,
.code-block code,
.result-box code,
.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

.spacer {
  flex: 1;
}

.button,
.link-button,
.copy-btn,
.ghost-button,
.danger-button,
.tab-button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.button,
.link-button,
.copy-btn {
  color: #ffffff;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

.button:hover,
.link-button:hover,
.copy-btn:hover {
  background: var(--accent-strong);
}

.button.alt,
.link-button.alt {
  color: var(--accent);
  background: rgba(9, 105, 218, 0.08);
  border-color: rgba(9, 105, 218, 0.14);
}

.button.ghost,
.ghost-button,
.tab-button {
  color: var(--text);
  background: var(--surface-muted);
  border-color: var(--border);
}

.danger-button {
  color: var(--danger);
  background: rgba(207, 34, 46, 0.08);
  border-color: rgba(207, 34, 46, 0.12);
}

.button:disabled,
.link-button:disabled,
.ghost-button:disabled,
.tab-button:disabled,
.copy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-button.is-active {
  color: var(--accent);
  border-color: rgba(9, 105, 218, 0.18);
  background: rgba(9, 105, 218, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  min-height: 26px;
}

.ops-pricing-global-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ops-pricing-global-control input {
  flex: 1 1 auto;
  min-width: 0;
}

.ops-pricing-global-control .button {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-stack {
  display: grid;
  gap: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.divider {
  height: 1px;
  margin: 6px 0;
  background: var(--border);
}

.inline-note,
.notice,
.banner {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.65;
}

.inline-note,
.notice.info,
.banner.info {
  background: rgba(9, 105, 218, 0.08);
  color: var(--accent-strong);
  border: 1px solid rgba(9, 105, 218, 0.12);
}

.notice.warning,
.banner.warning {
  background: rgba(154, 103, 0, 0.1);
  color: var(--warning);
  border: 1px solid rgba(154, 103, 0, 0.14);
}

.notice.danger,
.banner.danger {
  background: rgba(207, 34, 46, 0.08);
  color: var(--danger);
  border: 1px solid rgba(207, 34, 46, 0.12);
}

.model-card,
.plan-card,
.legal-nav-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.official-model-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.official-model-card:hover {
  border-color: rgba(9, 105, 218, 0.24);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.official-model-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.official-model-card-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.official-model-card-head code {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.official-model-card-head .badge {
  justify-self: end;
}

.official-model-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.official-model-facts div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.9);
}

.official-model-facts span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.official-model-facts strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.model-card.is-locked,
.plan-card.is-muted {
  background: rgba(255, 255, 255, 0.7);
}

.provider-family-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.provider-brand-badge,
.provider-choice-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.provider-brand-badge.provider-openai,
.provider-choice-mark.provider-openai {
  box-shadow: inset 0 0 0 1px rgba(16, 163, 127, 0.08);
}

.provider-brand-badge.provider-gemini,
.provider-choice-mark.provider-gemini {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.provider-brand-badge.provider-claude,
.provider-choice-mark.provider-claude {
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.08);
}

.provider-brand-icon,
.provider-choice-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
}

.model-card-brand-header.provider-openai {
  border-color: rgba(16, 163, 127, 0.16);
  background: linear-gradient(135deg, rgba(16, 163, 127, 0.12), rgba(255, 255, 255, 0.96));
}

.model-card-brand-header.provider-gemini {
  border-color: rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(255, 255, 255, 0.96));
}

.model-card-brand-header.provider-claude {
  border-color: rgba(180, 83, 9, 0.16);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.12), rgba(255, 255, 255, 0.96));
}

.model-card-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.model-card-brand-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.model-card-brand-copy span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.model-card-brand-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.provider-choice-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.model-price-grid,
.surface-grid {
  display: grid;
  gap: 12px;
}

.official-model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.official-model-meta .chip,
.official-model-meta .badge {
  min-width: 0;
  white-space: normal;
}

.surface-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.model-price-grid > div,
.surface-key-value {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.92);
  padding: 12px 14px;
}

.model-price-grid span,
.surface-key-value span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.model-price-grid strong,
.surface-key-value strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.surface-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provider-choice-grid,
.model-binding-grid {
  display: grid;
  gap: 14px;
}

.provider-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-binding-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-choice-card,
.provider-group-card,
.model-binding-card,
.choice-chip {
  position: relative;
  display: grid;
  gap: 10px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  padding: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.provider-choice-card:hover,
.provider-group-card:hover,
.model-binding-card:hover,
.choice-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(9, 105, 218, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.provider-choice-card.is-selected,
.provider-group-card.is-selected,
.model-binding-card.is-selected,
.choice-chip-toggle:has(input:checked) {
  border-color: rgba(9, 105, 218, 0.28);
  box-shadow: 0 16px 32px rgba(9, 105, 218, 0.12);
}

.provider-choice-card.is-locked,
.provider-group-card.is-locked,
.model-binding-card.is-locked {
  background: rgba(248, 250, 252, 0.72);
}

.provider-choice-card input,
.model-binding-card input,
.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.provider-choice-copy {
  display: grid;
  gap: 4px;
}

.provider-choice-copy strong {
  font-size: 16px;
}

.provider-choice-copy span {
  color: var(--muted);
  font-size: 13px;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.choice-chip-toggle span {
  font-size: 14px;
  font-weight: 700;
}

.model-access-layout {
  display: grid;
  gap: 18px;
}

.model-access-summary-card,
.model-provider-section,
.provider-group-card,
.model-key-card,
.model-key-binding-card {
  display: grid;
  gap: 18px;
}

.model-provider-stack {
  display: grid;
  gap: 18px;
}

.model-provider-section {
  padding: 20px;
}

.model-provider-section-head,
.provider-group-head {
  align-items: flex-start;
}

.provider-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-group-title h2,
.provider-group-title h3 {
  margin-bottom: 4px;
}

.provider-model-key-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-model-chip-list {
  gap: 8px;
}

.model-key-card {
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.95);
}

.model-key-card.is-empty {
  background: rgba(248, 250, 252, 0.72);
}

.model-key-code {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.model-key-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-key-binding-card h3 {
  margin-bottom: 0;
}

.ops-user-model-access-card .surface {
  display: grid;
  gap: 14px;
}

body[data-page="api-keys"] .model-access-layout {
  gap: 14px;
}

body[data-page="api-keys"] .model-access-summary-card {
  gap: 14px;
}

body[data-page="api-keys"] .model-provider-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

body[data-page="api-keys"] .model-provider-section {
  gap: 12px;
  padding: 16px;
  height: 100%;
  align-content: start;
}

body[data-page="api-keys"] .model-provider-section-head {
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

body[data-page="api-keys"] .provider-group-title {
  gap: 10px;
}

body[data-page="api-keys"] .provider-group-title h2 {
  margin: 0;
}

body[data-page="api-keys"] .provider-model-key-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

body[data-page="api-keys"] .model-series-grid {
  grid-template-columns: 1fr;
}

body[data-page="api-keys"] .model-key-binding-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 14px;
}

body[data-page="api-keys"] .model-card-brand-header {
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 16px;
}

body[data-page="api-keys"] .model-card-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

body[data-page="api-keys"] .model-card-brand-copy span {
  font-size: 14px;
}

body[data-page="api-keys"] .model-card-brand-copy small {
  font-size: 11px;
}

body[data-page="api-keys"] .model-key-binding-card .inline-actions {
  gap: 6px;
}

body[data-page="api-keys"] .model-key-binding-card h3 {
  font-size: 17px;
  line-height: 1.2;
}

body[data-page="api-keys"] .model-access-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-page="api-keys"] .model-access-card-meta .chip {
  padding: 6px 10px;
  font-size: 12px;
}

body[data-page="api-keys"] .model-access-use-case {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(52, 73, 94, 0.86);
}

body[data-page="api-keys"] .model-price-grid {
  margin-top: 2px;
  gap: 8px;
}

body[data-page="api-keys"] .model-price-grid > div {
  padding: 9px 10px;
}

body[data-page="api-keys"] .model-price-grid span {
  margin-bottom: 4px;
  font-size: 11px;
}

body[data-page="api-keys"] .model-price-grid strong {
  font-size: 13px;
  line-height: 1.25;
}

body[data-page="api-keys"] .model-key-card {
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
}

body[data-page="api-keys"] .model-key-code {
  padding: 8px 10px;
  border-radius: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="api-keys"] .compact-actions {
  gap: 8px;
  margin-top: auto;
}

body[data-page="api-keys"] .compact-actions > * {
  width: 100%;
}

body[data-page="api-keys"] .empty-state {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.82);
}

body[data-page="api-keys"] .web-chat-section {
  display: grid;
  gap: 14px;
}

body[data-page="api-keys"] .web-chat-overview-card,
body[data-page="api-keys"] .web-chat-sidebar,
body[data-page="api-keys"] .web-chat-main,
body[data-page="api-keys"] .web-chat-context {
  gap: 14px;
}

body[data-page="api-keys"] .web-chat-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: start;
}

body[data-page="api-keys"] .web-chat-sidebar,
body[data-page="api-keys"] .web-chat-main,
body[data-page="api-keys"] .web-chat-context {
  min-height: 0;
  padding: 16px;
}

body[data-page="api-keys"] .web-chat-sidebar-head,
body[data-page="api-keys"] .web-chat-context-head,
body[data-page="api-keys"] .web-chat-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="api-keys"] .web-chat-sidebar-head h3,
body[data-page="api-keys"] .web-chat-context-head h3 {
  margin: 2px 0 4px;
}

body[data-page="api-keys"] .web-chat-limit-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(18, 102, 79, 0.08);
  color: #12664f;
  font-size: 12px;
  font-weight: 600;
}

body[data-page="api-keys"] .web-chat-session-list,
body[data-page="api-keys"] .web-chat-file-list {
  display: grid;
  gap: 10px;
}

body[data-page="api-keys"] .web-chat-search-box {
  display: grid;
  gap: 7px;
}

body[data-page="api-keys"] .web-chat-search-box input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  padding: 11px 12px;
  font: inherit;
  color: #102a43;
}

body[data-page="api-keys"] .web-chat-search-box input:focus {
  outline: none;
  border-color: rgba(14, 116, 144, 0.42);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.08);
}

body[data-page="api-keys"] .web-chat-session-list {
  max-height: 780px;
  overflow: auto;
  padding-right: 4px;
}

body[data-page="api-keys"] .web-chat-session-card {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.92));
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="api-keys"] .web-chat-session-card:hover {
  border-color: rgba(16, 79, 94, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

body[data-page="api-keys"] .web-chat-session-card.is-selected {
  border-color: rgba(14, 116, 144, 0.34);
  box-shadow: 0 16px 34px rgba(14, 116, 144, 0.12);
}

body[data-page="api-keys"] .web-chat-session-card.is-idle {
  opacity: 0.76;
}

body[data-page="api-keys"] .web-chat-session-title-row,
body[data-page="api-keys"] .web-chat-session-meta,
body[data-page="api-keys"] .web-chat-message-meta,
body[data-page="api-keys"] .web-chat-file-head,
body[data-page="api-keys"] .web-chat-code-head,
body[data-page="api-keys"] .web-chat-file-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body[data-page="api-keys"] .web-chat-session-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #102a43;
}

body[data-page="api-keys"] .web-chat-session-preview {
  margin: 0;
  color: rgba(51, 65, 85, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

body[data-page="api-keys"] .web-chat-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.72);
}

body[data-page="api-keys"] .web-chat-status-badge.is-idle {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

body[data-page="api-keys"] .web-chat-status-badge.is-archived {
  background: rgba(71, 85, 105, 0.12);
  color: #334155;
}

body[data-page="api-keys"] .web-chat-main {
  display: grid;
  grid-template-rows: auto auto minmax(420px, 1fr) auto;
}

body[data-page="api-keys"] .web-chat-title-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body[data-page="api-keys"] .web-chat-title-input,
body[data-page="api-keys"] .web-chat-toolbar select,
body[data-page="api-keys"] .web-chat-config-group textarea,
body[data-page="api-keys"] .web-chat-file-card input,
body[data-page="api-keys"] .web-chat-file-card textarea,
body[data-page="api-keys"] .web-chat-compose textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 13px;
  color: #102a43;
  font: inherit;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body[data-page="api-keys"] .web-chat-title-input:focus,
body[data-page="api-keys"] .web-chat-toolbar select:focus,
body[data-page="api-keys"] .web-chat-config-group textarea:focus,
body[data-page="api-keys"] .web-chat-file-card input:focus,
body[data-page="api-keys"] .web-chat-file-card textarea:focus,
body[data-page="api-keys"] .web-chat-compose textarea:focus {
  outline: none;
  border-color: rgba(14, 116, 144, 0.42);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
}

body[data-page="api-keys"] .web-chat-title-input {
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
}

body[data-page="api-keys"] .web-chat-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="api-keys"] .web-chat-toolbar label,
body[data-page="api-keys"] .web-chat-config-group {
  display: grid;
  gap: 7px;
}

body[data-page="api-keys"] .web-chat-toolbar span,
body[data-page="api-keys"] .web-chat-config-group > span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(30, 41, 59, 0.72);
  letter-spacing: 0.04em;
}

body[data-page="api-keys"] .web-chat-messages {
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-right: 4px;
}

body[data-page="api-keys"] .web-chat-message {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

body[data-page="api-keys"] .web-chat-message.is-user {
  background: linear-gradient(180deg, rgba(230, 244, 255, 0.95), rgba(214, 236, 251, 0.9));
}

body[data-page="api-keys"] .web-chat-message.is-assistant {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.92));
}

body[data-page="api-keys"] .web-chat-message.is-error {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(239, 68, 68, 0.22);
}

body[data-page="api-keys"] .web-chat-message.is-streaming {
  border-color: rgba(14, 116, 144, 0.22);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.04);
}

body[data-page="api-keys"] .web-chat-message.is-streaming .web-chat-role::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #0ea5e9;
  animation: web-chat-pulse 1.1s ease-in-out infinite;
}

body[data-page="api-keys"] .web-chat-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.62);
}

body[data-page="api-keys"] .web-chat-markdown {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #102a43;
}

body[data-page="api-keys"] .web-chat-markdown p,
body[data-page="api-keys"] .web-chat-markdown h4,
body[data-page="api-keys"] .web-chat-markdown ul,
body[data-page="api-keys"] .web-chat-markdown ol,
body[data-page="api-keys"] .web-chat-markdown pre {
  margin: 0;
}

body[data-page="api-keys"] .web-chat-markdown ul,
body[data-page="api-keys"] .web-chat-markdown ol {
  padding-left: 20px;
}

body[data-page="api-keys"] .web-chat-markdown code.inline-code {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

body[data-page="api-keys"] .web-chat-code-block {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #0f172a;
}

body[data-page="api-keys"] .web-chat-code-head {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.96);
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
}

body[data-page="api-keys"] .web-chat-code-head .ghost-button {
  min-height: 30px;
  padding: 7px 10px;
  border-color: rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.88);
  background: rgba(30, 41, 59, 0.42);
}

body[data-page="api-keys"] .web-chat-code-head .ghost-button:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(125, 211, 252, 0.32);
}

body[data-page="api-keys"] .web-chat-code-pre {
  margin: 0;
  overflow: auto;
  padding: 14px;
  color: #e2e8f0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
}

body[data-page="api-keys"] .token-keyword {
  color: #7dd3fc;
}

body[data-page="api-keys"] .token-string {
  color: #fde68a;
}

body[data-page="api-keys"] .token-comment {
  color: #94a3b8;
}

body[data-page="api-keys"] .token-number {
  color: #fca5a5;
}

body[data-page="api-keys"] .web-chat-compose {
  display: grid;
  gap: 10px;
}

body[data-page="api-keys"] .web-chat-compose-box {
  display: grid;
  gap: 7px;
}

body[data-page="api-keys"] .web-chat-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="api-keys"] .web-chat-file-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="api-keys"] .web-chat-file-card textarea {
  min-height: 160px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
}

body[data-page="api-keys"] .web-chat-file-card input {
  font-weight: 700;
}

body[data-page="api-keys"] .web-chat-file-card .helper-text {
  margin: 0;
}

@keyframes web-chat-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1180px) {
  body[data-page="api-keys"] .model-provider-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="api-keys"] .web-chat-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body[data-page="api-keys"] .web-chat-sidebar,
  body[data-page="api-keys"] .web-chat-context {
    grid-column: span 1;
  }

  body[data-page="api-keys"] .web-chat-main {
    grid-column: span 2;
  }

  body[data-page="api-keys"] .provider-model-key-grid {
    grid-template-columns: 1fr;
  }

  .provider-choice-grid,
  .surface-grid,
  .surface-grid-three,
  .model-price-grid,
  .provider-model-key-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-binding-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body[data-page="api-keys"] .model-provider-stack {
    grid-template-columns: 1fr;
  }

  body[data-page="api-keys"] .provider-model-key-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="api-keys"] .web-chat-layout,
  body[data-page="api-keys"] .web-chat-toolbar {
    grid-template-columns: 1fr;
  }

  body[data-page="api-keys"] .web-chat-main {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .model-provider-columns,
  body[data-page="api-keys"] .model-provider-stack,
  .model-series-grid,
  .official-model-facts {
    grid-template-columns: 1fr;
  }

  .official-model-card-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .official-model-card-head .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .provider-choice-grid,
  .surface-grid,
  .surface-grid-three,
  .model-price-grid,
  .model-binding-grid,
  .provider-model-key-grid {
    grid-template-columns: 1fr;
  }

  .choice-chip {
    width: 100%;
    justify-content: center;
  }

  .model-card-brand-header {
    padding: 12px 14px;
  }

  body[data-page="api-keys"] .web-chat-main-head,
  body[data-page="api-keys"] .web-chat-context-head,
  body[data-page="api-keys"] .web-chat-sidebar-head,
  body[data-page="api-keys"] .web-chat-compose-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .model-card-brand-mark {
    width: 46px;
    height: 46px;
  }
}

.plan-card.is-current {
  border-color: rgba(9, 105, 218, 0.24);
  box-shadow: 0 0 0 1px rgba(9, 105, 218, 0.12), var(--shadow-md);
}

.plan-card.is-featured {
  border-color: rgba(9, 105, 218, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.98));
  box-shadow: 0 12px 34px rgba(9, 105, 218, 0.12);
}

.plan-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-card-head {
  justify-content: space-between;
  align-items: center;
}

.plan-billing-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.plan-spec-list,
.plan-model-list {
  display: grid;
  gap: 10px;
}

.plan-spec-list div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
  font-size: 14px;
}

.plan-spec-list div:last-child {
  border-bottom: none;
}

.plan-spec-list span {
  color: var(--muted);
}

.plan-spec-list strong {
  font-size: 14px;
  text-align: right;
}

.plan-model-list {
  min-height: 180px;
}

.plan-overview-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

body[data-page="plans"] .plan-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.recharge-grid {
  margin-bottom: 18px;
  align-items: stretch;
}

.recharge-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.recharge-card h2 {
  margin-bottom: 0;
}

.recharge-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recharge-quick-button {
  min-height: 46px;
  justify-content: center;
  white-space: normal;
  line-height: 1.45;
  text-align: center;
}

.recharge-form {
  gap: 14px;
}

.recharge-form .field {
  min-height: 100%;
}

.recharge-form-actions {
  align-items: center;
}

body[data-page="plans"] [data-topup-status] {
  margin-bottom: 18px;
}

body[data-page="plans"] .plan-grid > .plan-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  padding: 16px;
  gap: 10px;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-card-head {
  min-height: 24px;
  align-items: flex-start;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-model-list {
  flex: 1;
  align-content: start;
}

body[data-page="plans"] .plan-overview-meta .notice {
  padding: 12px 14px;
  line-height: 1.55;
}

body[data-page="plans"] .plan-grid > .plan-card h3 {
  margin-bottom: 4px;
  min-height: 30px;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-price {
  font-size: 26px;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-billing-note {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.55;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-spec-list {
  gap: 0;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-spec-list div {
  padding: 8px 0;
  font-size: 13px;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-model-summary {
  display: grid;
  flex: 1 0 auto;
  gap: 10px;
  min-height: 88px;
  padding-top: 2px;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-model-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

body[data-page="plans"] .plan-grid > .plan-card .plan-model-pills {
  gap: 8px;
  min-height: 44px;
  align-content: flex-start;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-model-pills .chip {
  padding: 7px 10px;
  font-size: 12px;
}

.plan-model-list .helper-text {
  padding-left: 12px;
  position: relative;
}

.plan-model-list .helper-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.plan-card-actions {
  margin-top: auto;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-card-actions {
  padding-top: 14px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

body[data-page="plans"] .plan-guide-actions {
  justify-content: center;
}

.plan-purchase-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  height: 44px;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
}

.model-card h3,
.plan-card h3,
.legal-nav-card h3,
.activity-row h3,
.auth-card h2,
.surface h2,
.section-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.table-wrap {
  overflow-x: auto;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.inline-form input,
.inline-form select,
.table-wrap input,
.table-wrap select {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.inline-form input,
.inline-form select {
  flex: 1;
  min-width: 180px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.permission-group-block {
  display: grid;
  gap: 10px;
}

.permission-group-block + .permission-group-block {
  margin-top: 14px;
}

.permission-item,
.table-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
}

.permission-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.table-wrap th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  background: rgba(246, 248, 250, 0.85);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.code-block {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #0d1117;
  color: #f0f6fc;
  overflow-x: auto;
  border: 1px solid rgba(240, 246, 252, 0.08);
}

.timeline .activity-row {
  align-items: flex-start;
}

.activity-row.is-selected {
  border-color: rgba(9, 105, 218, 0.22);
  box-shadow: 0 0 0 1px rgba(9, 105, 218, 0.1), var(--shadow-sm);
}

.ops-compact-table table {
  min-width: 720px;
}

.ops-compact-stats {
  margin: 14px 0 0;
}

.ops-detail-stack,
.ops-metric-list {
  display: grid;
  gap: 14px;
}

.ops-panel-grid {
  margin-top: 0;
}

.ops-panel-card .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}

.ops-metric-line {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
}

.ops-metric-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ops-metric-line span {
  color: var(--muted);
  font-size: 13px;
}

.ops-metric-line strong {
  font-size: 15px;
}

.ops-inner-timeline {
  gap: 10px;
}

body[data-page="ops-admin"] .hero-actions {
  flex-wrap: wrap;
}

body[data-page="ops-admin"] .hero-actions .ghost-button,
body[data-page="ops-admin"] .hero-actions .button {
  min-height: 44px;
}

.usage-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.usage-metric-card,
.usage-breakdown-row,
.usage-notes {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.usage-metric-card {
  padding: 16px;
}

.usage-breakdown {
  display: grid;
  gap: 12px;
}

.usage-breakdown-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.usage-breakdown-main,
.usage-breakdown-meta {
  display: grid;
  gap: 4px;
}

.usage-breakdown-main span,
.usage-breakdown-meta span {
  color: var(--muted);
  font-size: 13px;
}

.usage-breakdown-meta {
  justify-items: flex-end;
  text-align: right;
}

.usage-notes {
  padding: 16px;
}

.scene-guide-grid,
.scene-step-grid {
  margin-top: 16px;
}

.scene-guide-card,
.scene-step-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.scene-guide-card {
  border: 1px solid rgba(116, 145, 171, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.94));
}

.scene-guide-card.is-code {
  box-shadow: inset 0 0 0 1px rgba(92, 133, 174, 0.06);
}

.scene-guide-card.is-image {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.96));
}

.scene-guide-card.is-office {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.96));
}

.scene-guide-card h3,
.scene-step-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.scene-guide-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.scene-guide-highlights {
  margin-top: auto;
}

.scene-step-card {
  border: 1px solid rgba(116, 145, 171, 0.18);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(244, 248, 253, 0.96));
}

.scene-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(83, 122, 160, 0.12);
  color: #355171;
  font-size: 18px;
  font-weight: 700;
}

.activity-meta {
  display: grid;
  gap: 4px;
}

.activity-time {
  font-size: 12px;
  color: var(--muted);
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  text-align: center;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 35, 40, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.site-footer.is-compact {
  width: fit-content;
  max-width: calc(100% - 32px);
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(127, 167, 166, 0.08);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer.is-compact .site-footer-links {
  justify-content: center;
  gap: 10px;
}

.site-footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.site-footer.is-compact .site-footer-links a {
  font-size: 12px;
  font-weight: 600;
  color: rgba(72, 85, 99, 0.86);
}

.site-footer-links a:hover {
  color: var(--accent);
}

.site-footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 240px;
  max-width: min(92vw, 360px);
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  line-height: 1.5;
}

.toast.success {
  background: rgba(26, 127, 55, 0.95);
}

.toast.error {
  background: rgba(207, 34, 46, 0.95);
}

.toast.info {
  background: rgba(9, 105, 218, 0.95);
}

.auth-modal-root {
  --auth-soft-blue-100: #eef4f8;
  --auth-soft-blue-200: #e4edf5;
  --auth-soft-blue-300: #d4e2ee;
  --auth-soft-blue-400: #bfd2e3;
  --auth-soft-blue-500: #8fb0cc;
  --auth-soft-blue-600: #7597b7;
  --auth-soft-blue-700: #5f7f9d;
  --auth-soft-slate: #486077;
  --auth-soft-border: rgba(143, 176, 204, 0.24);
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(233, 241, 248, 0.82), transparent 36%),
    radial-gradient(circle at top right, rgba(214, 228, 239, 0.7), transparent 32%),
    linear-gradient(180deg, rgba(141, 169, 194, 0.2), rgba(95, 122, 148, 0.26));
  backdrop-filter: blur(12px);
}

.auth-modal-root.is-open {
  display: flex;
}

.auth-modal-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 500px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 26px;
  border: 1px solid var(--auth-soft-border);
  background:
    radial-gradient(circle at top left, rgba(228, 236, 244, 0.78), transparent 40%),
    radial-gradient(circle at top right, rgba(216, 227, 237, 0.58), transparent 34%),
    linear-gradient(180deg, rgba(249, 252, 254, 0.996), rgba(240, 245, 249, 0.992));
  box-shadow: 0 22px 52px rgba(92, 118, 145, 0.16);
}

.auth-modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 4px;
  background: linear-gradient(90deg, #e7f0f7, #c9dceb 34%, #9fbdd7 68%, #7e9fbe 100%);
}

.auth-modal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.84), transparent 18%),
    radial-gradient(circle at 86% 14%, rgba(222, 234, 243, 0.84), transparent 22%);
  background-size: auto, auto;
  opacity: 0.48;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 74%);
}

.auth-modal-header {
  position: relative;
  z-index: 1;
  padding: 26px 24px 10px;
}

.auth-modal-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-modal-brand-mark {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 248, 0.98));
  border: 1px solid rgba(167, 191, 212, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(120, 149, 178, 0.1);
}

.auth-modal-brand-mark .brand-logo {
  width: 40px;
  height: 40px;
}

.auth-modal-heading {
  display: grid;
  gap: 5px;
  padding-right: 56px;
}

.auth-modal-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auth-soft-blue-600);
}

.auth-modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #2a3646;
}

.auth-modal-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #607082;
}

.auth-modal-main {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
  padding: 16px 24px 24px;
}

.auth-scene-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(157, 184, 206, 0.22);
  background: linear-gradient(135deg, rgba(245, 249, 252, 0.98), rgba(232, 240, 246, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.auth-scene-copy {
  display: grid;
  gap: 4px;
}

.auth-scene-copy strong {
  font-size: 15px;
  font-weight: 800;
  color: #324658;
}

.auth-scene-copy span {
  font-size: 13px;
  line-height: 1.6;
  color: #647587;
}

.auth-scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-scene-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #4a667f;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(157, 184, 206, 0.2);
}

.auth-modal-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-method-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.auth-modal-mode-row .tab-button,
.auth-method-row .tab-button,
.auth-code-button,
.auth-compact-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-mode-row .tab-button,
.auth-method-row .tab-button {
  min-height: 48px;
  border-radius: 16px;
  font-size: 15px;
}

.auth-modal-mode-row .tab-button {
  color: var(--auth-soft-slate);
  background: rgba(248, 251, 254, 0.92);
  border-color: rgba(159, 189, 215, 0.2);
}

.auth-modal-mode-row .tab-button.is-active {
  color: #294766;
  border-color: rgba(143, 176, 204, 0.28);
  background: linear-gradient(135deg, rgba(235, 242, 248, 0.99), rgba(214, 228, 239, 0.99));
  box-shadow: 0 10px 22px rgba(124, 151, 177, 0.12);
}

.auth-method-row .tab-button {
  min-height: 40px;
  padding: 9px 14px;
  color: #556373;
  background: rgba(244, 248, 252, 0.94);
  border-color: rgba(191, 210, 227, 0.28);
}

.auth-method-row .tab-button.is-active {
  color: var(--auth-soft-blue-700);
  border-color: rgba(159, 189, 215, 0.32);
  background: linear-gradient(180deg, rgba(235, 242, 248, 0.98), rgba(246, 250, 253, 0.99));
  box-shadow: inset 0 0 0 1px rgba(212, 226, 238, 0.46);
}

.auth-view {
  display: grid;
  gap: 14px;
}

.auth-switch-strip,
.auth-context-row,
.auth-secondary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-switch-strip {
  padding: 2px 2px 0;
}

.auth-switch-label,
.auth-context-copy,
.auth-secondary-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #647587;
}

.auth-context-copy,
.auth-secondary-copy {
  color: #6a7a8c;
}

.auth-step-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(167, 191, 212, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 245, 250, 0.96), rgba(248, 251, 253, 0.98));
}

.auth-step-copy {
  display: grid;
  gap: 4px;
}

.auth-step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #728396;
}

.auth-step-value {
  font-size: 15px;
  font-weight: 800;
  color: #35506a;
  word-break: break-word;
}

.auth-secondary-row {
  justify-content: center;
}

.auth-text-link {
  padding: 0;
  border: none;
  background: transparent;
  color: #12958d;
  font-size: 13px;
  font-weight: 700;
}

.auth-text-link:hover {
  color: #0f817a;
}

.auth-text-link-subtle {
  color: #7b8792;
  font-size: 14px;
  font-weight: 600;
}

.auth-text-link-subtle:hover {
  color: #12958d;
}

.auth-code-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.auth-form-panel,
.auth-modal-main .form-stack {
  gap: 14px;
}

.auth-code-field {
  min-width: 0;
}

.auth-code-button {
  align-self: stretch;
  min-width: 0;
  min-height: 58px;
  border-radius: 16px;
  color: var(--auth-soft-blue-700);
  background: linear-gradient(180deg, rgba(241, 246, 250, 0.98), rgba(248, 251, 253, 0.98));
  border-color: rgba(167, 191, 212, 0.24);
}

.auth-modal-main .field {
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--auth-soft-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.96), rgba(251, 253, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 14px rgba(116, 141, 167, 0.05);
}

.auth-modal-main .field:focus-within {
  border-color: rgba(126, 159, 190, 0.38);
  box-shadow:
    0 0 0 4px rgba(212, 226, 238, 0.48),
    0 10px 22px rgba(124, 151, 177, 0.08);
}

.auth-modal-main .field > span {
  font-size: 13px;
  font-weight: 700;
  color: #586678;
}

.auth-modal-main .field input,
.auth-modal-main .field textarea,
.auth-modal-main .field select {
  min-height: 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.auth-modal-main .field input::placeholder,
.auth-modal-main .field textarea::placeholder {
  color: rgba(96, 107, 120, 0.76);
}

.auth-phone-field {
  gap: 12px;
}

.auth-phone-composite {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
}

.auth-phone-country {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(167, 191, 212, 0.24);
  background: linear-gradient(180deg, rgba(235, 242, 248, 0.96), rgba(246, 250, 253, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.auth-phone-country-prefix {
  color: var(--auth-soft-blue-700);
  font-size: 15px;
  font-weight: 800;
}

.auth-phone-country-input,
.auth-phone-number-input {
  min-width: 0;
}

.auth-phone-country-input {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  color: #35506a;
}

.auth-phone-country-input:focus {
  outline: none;
}

.auth-phone-helper {
  margin-top: -2px;
  font-size: 12px;
  color: #728396;
}

.auth-slider {
  --auth-slider-progress: 0%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 72px 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(182, 204, 223, 0.34);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(239, 244, 248, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
  isolation: isolate;
}

.auth-slider:focus-within {
  border-color: rgba(128, 164, 190, 0.36);
  box-shadow: 0 0 0 4px rgba(168, 192, 212, 0.14);
}

.auth-slider.is-verified {
  border-color: rgba(167, 211, 148, 0.42);
  background: linear-gradient(180deg, rgba(241, 250, 231, 0.98), rgba(232, 246, 216, 0.98));
}

.auth-slider-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--auth-slider-progress);
  background: linear-gradient(90deg, rgba(196, 226, 183, 0.68), rgba(185, 224, 166, 0.9));
  transition: width 0.18s ease, background 0.18s ease;
  z-index: 0;
}

.auth-slider.is-verified .auth-slider-progress {
  background: linear-gradient(90deg, rgba(196, 233, 172, 0.9), rgba(175, 221, 142, 0.96));
}

.auth-slider-status {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #6f7c89;
  line-height: 1.4;
  pointer-events: none;
}

.auth-slider-status.is-verified {
  color: #7b9563;
}

.auth-slider-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  width: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(188, 207, 222, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 249, 0.98));
  color: #8ba0b4;
  font-size: 26px;
  font-weight: 800;
  z-index: 2;
  pointer-events: none;
  transition: all 0.18s ease;
}

.auth-slider-badge.is-verified {
  color: #61b46e;
  border-color: rgba(164, 209, 143, 0.48);
  background: linear-gradient(180deg, rgba(252, 255, 249, 0.98), rgba(243, 251, 235, 0.98));
}

.auth-slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  z-index: 3;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  opacity: 0;
  cursor: ew-resize;
}

.auth-slider-range:disabled {
  cursor: default;
}

.auth-slider-range:focus {
  outline: none;
}

.auth-slider-range::-webkit-slider-runnable-track {
  height: 54px;
  background: transparent;
}

.auth-slider-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 56px;
  height: 54px;
  border: none;
  background: transparent;
}

.auth-slider-range::-moz-range-track {
  height: 54px;
  border: none;
  background: transparent;
}

.auth-slider-range::-moz-range-thumb {
  width: 56px;
  height: 54px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.auth-compact-actions {
  justify-content: stretch;
}

.auth-compact-actions > * {
  flex: 1 1 0;
  min-height: 52px;
  border-radius: 16px;
}

.auth-compact-actions .button {
  border: 1px solid rgba(122, 150, 178, 0.2);
  background: linear-gradient(135deg, #9bb4c7, #88a4bb 58%, #7994aa 100%);
  box-shadow: 0 10px 22px rgba(126, 159, 190, 0.12);
}

.auth-compact-actions .button:hover {
  background: linear-gradient(135deg, #8faabd, #7b98b0 58%, #6c879e 100%);
}

.agent-visual-card {
  background: linear-gradient(180deg, rgba(246, 250, 252, 0.98), rgba(237, 244, 247, 0.98));
}

.agent-qrcode-wrap {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(106, 135, 158, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 251, 0.98));
}

.agent-qrcode {
  width: min(100%, 240px);
  height: auto;
  display: block;
}

.auth-compact-actions .button.alt,
.auth-compact-actions .ghost-button {
  color: var(--auth-soft-slate);
  background: linear-gradient(180deg, rgba(245, 249, 252, 0.98), rgba(251, 253, 255, 0.98));
  border-color: rgba(118, 147, 177, 0.16);
  box-shadow: none;
}

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(150, 176, 201, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243, 248, 252, 0.96), rgba(251, 253, 255, 0.94));
  color: #5a6776;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  color: var(--auth-soft-blue-700);
  border-color: rgba(126, 159, 190, 0.24);
  background: #ffffff;
}

.auth-entry-surface {
  max-width: 760px;
}

.brand-hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.96)),
    url("linktech-ai-bg.svg") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(31, 35, 40, 0.08);
}

body[data-page="home"],
body[data-page="auth"],
body[data-page="register"],
body[data-page="reset-password"] {
  --accent: #18bcae;
  --accent-strong: #0f9e96;
  --surface-muted: #f1fcfa;
  --border: rgba(24, 188, 174, 0.14);
  --border-strong: rgba(24, 188, 174, 0.22);
}

body[data-page="auth"],
body[data-page="register"],
body[data-page="reset-password"] {
  background:
    linear-gradient(180deg, rgba(249, 250, 251, 0.98), rgba(244, 246, 248, 0.98));
}

body[data-page="home"]::before,
body[data-page="auth"]::before,
body[data-page="register"]::before,
body[data-page="reset-password"]::before {
  opacity: 1;
  background-image:
    linear-gradient(90deg, rgba(129, 220, 215, 0.08) 50%, transparent 50%),
    linear-gradient(rgba(129, 220, 215, 0.08) 50%, transparent 50%);
  background-size: 128px 128px;
  background-position: 0 0, 64px 64px;
}

body[data-page="home"]::before {
  opacity: 0;
}

body[data-page="auth"]::before,
body[data-page="register"]::before,
body[data-page="reset-password"]::before {
  opacity: 0;
}

body[data-page="home"] .brand-title-side,
body[data-page="auth"] .brand-title-side,
body[data-page="register"] .brand-title-side,
body[data-page="reset-password"] .brand-title-side {
  display: none;
}

body[data-page="home"] .brand-title,
body[data-page="auth"] .brand-title,
body[data-page="register"] .brand-title,
body[data-page="reset-password"] .brand-title {
  gap: 0;
}

body[data-page="home"] .button,
body[data-page="auth"] .button,
body[data-page="register"] .button,
body[data-page="reset-password"] .button,
body[data-page="home"] .copy-btn,
body[data-page="auth"] .copy-btn,
body[data-page="register"] .copy-btn,
body[data-page="reset-password"] .copy-btn {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

body[data-page="home"] .button:hover,
body[data-page="auth"] .button:hover,
body[data-page="register"] .button:hover,
body[data-page="reset-password"] .button:hover,
body[data-page="home"] .copy-btn:hover,
body[data-page="auth"] .copy-btn:hover,
body[data-page="register"] .copy-btn:hover,
body[data-page="reset-password"] .copy-btn:hover {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

body[data-page="home"] .ghost-button,
body[data-page="auth"] .ghost-button,
body[data-page="register"] .ghost-button,
body[data-page="reset-password"] .ghost-button {
  color: #475467;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
}

body[data-page="home"] .nav a.active,
body[data-page="home"] .nav a:hover,
body[data-page="auth"] .nav a.active,
body[data-page="auth"] .nav a:hover,
body[data-page="register"] .nav a.active,
body[data-page="register"] .nav a:hover {
  color: var(--accent-strong);
  background: rgba(24, 188, 174, 0.1);
  border-color: rgba(24, 188, 174, 0.14);
}

body[data-page="home"] .dashboard-site-header {
  position: relative;
  top: 0;
  margin-bottom: 10px;
  padding: 6px 0 12px;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="home"] .dashboard-site-header .brand-title-main {
  color: #121926;
  font-size: 28px;
}

body[data-page="home"] .dashboard-site-header .brand-subtitle {
  color: #5b6670;
}

body[data-page="home"] .header-actions[data-auth-slot] {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-home-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid rgba(15, 25, 38, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(127, 167, 166, 0.08);
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.dashboard-home-auth-link.is-strong {
  border-color: transparent;
  background: linear-gradient(90deg, #22c7ba 0%, #1188f4 100%);
  color: #ffffff;
}

body[data-page="home"] .dashboard-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 300px;
}

body[data-page="home"] .dashboard-primary-cta::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 6.5v11l9-5.5-9-5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 6.5v11l9-5.5-9-5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-portal-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 32px);
  display: grid;
  place-items: center;
  padding: 24px 16px 16px;
}

.auth-portal-stage {
  width: min(100%, 448px);
  display: grid;
  gap: 18px;
}

body[data-page="auth"] .auth-portal-stage {
  width: min(100%, 448px);
}

body[data-page="register"] .auth-portal-stage {
  width: min(100%, 448px);
}

body[data-page="reset-password"] .auth-portal-stage {
  width: min(100%, 448px);
}

.auth-portal-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.auth-portal-mark {
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.98));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.auth-portal-brand-copy {
  display: grid;
  gap: 6px;
}

.auth-portal-brand-title {
  justify-content: center;
}

.auth-portal-brand .brand-title-main {
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #16b1a6;
}

.auth-portal-brand-subtitle {
  max-width: 382px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(71, 84, 103, 0.84);
}

.auth-portal-card {
  padding: 28px 24px 22px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

body[data-page="auth"] .auth-portal-card {
  padding: 26px 24px 22px;
}

body[data-page="register"] .auth-portal-card,
body[data-page="reset-password"] .auth-portal-card {
  padding: 26px 24px 22px;
}

body[data-page="register"] .auth-portal-card-head {
  gap: 8px;
  margin-bottom: 14px;
}

body[data-page="register"] .auth-standalone-form {
  gap: 12px;
}

.auth-portal-card-wide {
  width: 100%;
  justify-self: center;
}

.auth-portal-card-secondary {
  width: 100%;
  padding-top: 24px;
}

.auth-portal-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.auth-portal-card-head h1,
.auth-portal-card-head h2 {
  margin: 0;
  letter-spacing: -0.05em;
  color: #101828;
}

.auth-portal-card-head h1 {
  font-size: 28px;
}

.auth-portal-card-head h2 {
  font-size: 24px;
}

.auth-portal-card-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
  font-size: 13px;
}

.auth-portal-card .notice {
  width: min(100%, 382px);
  margin: 0 auto 14px;
}

.auth-standalone-form {
  width: min(100%, 382px);
  margin: 0 auto;
  gap: 12px;
}

.auth-field-group {
  display: grid;
  gap: 8px;
}

.auth-field-label {
  color: #2d3640;
  font-size: 13px;
  font-weight: 600;
}

.auth-field-hint {
  margin: 0 4px;
  color: #7f8993;
  font-size: 12px;
  line-height: 1.5;
}

.auth-standalone-field {
  gap: 8px;
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-input-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.auth-input-card-focus {
  border-color: rgba(9, 105, 218, 0.28);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.auth-standalone-field:focus-within {
  border-color: rgba(9, 105, 218, 0.28);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.auth-standalone-field > span {
  font-size: 13px;
  font-weight: 700;
  color: #606b76;
}

.auth-input-card input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  font-size: 14px;
  font-weight: 400;
}

.auth-field-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background-color: #a4aab3;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.88;
}

.auth-field-icon.is-email {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.25'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.25'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-field-icon.is-lock {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-field-icon.is-token {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h8l4 4v12H6z'/%3E%3Cpath d='M14 4v4h4'/%3E%3Cpath d='M9 12h6M9 16h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h8l4 4v12H6z'/%3E%3Cpath d='M14 4v4h4'/%3E%3Cpath d='M9 12h6M9 16h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-password-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: none;
  padding: 0;
  background: transparent;
  opacity: 0.64;
}

.auth-password-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #a4aab3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-password-toggle.is-visible::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 10px;
  height: 2px;
  border-radius: 999px;
  background: #8f98a2;
  transform: rotate(-32deg);
}

.auth-password-toggle:hover {
  opacity: 0.92;
}

.auth-standalone-meta {
  width: min(100%, 382px);
  margin: -2px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-remember-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5a6672;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.auth-remember-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-remember-indicator {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  pointer-events: none;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.auth-remember-indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 4px;
  background: linear-gradient(135deg, #18bcae, #0fa49a);
  transform: scale(0);
  transition: transform 0.16s ease;
}

.auth-remember-toggle input:checked + .auth-remember-indicator {
  border-color: rgba(15, 164, 154, 0.42);
  background: rgba(36, 198, 186, 0.1);
}

.auth-remember-toggle input:checked + .auth-remember-indicator::after {
  transform: scale(1);
}

.auth-remember-toggle input:focus-visible + .auth-remember-indicator {
  box-shadow: 0 0 0 4px rgba(36, 198, 186, 0.14);
}

.auth-standalone-actions {
  width: min(100%, 382px);
  margin: 2px auto 0;
  display: flex;
  gap: 12px;
}

.auth-standalone-submit {
  width: 100%;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 14px;
}

body[data-page="register"] .auth-inline-code-button,
body[data-page="reset-password"] .auth-standalone-actions .ghost-button {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
}

.auth-standalone-submit::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h10'/%3E%3Cpath d='M11 7l5 5-5 5'/%3E%3Cpath d='M18 4v16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h10'/%3E%3Cpath d='M11 7l5 5-5 5'/%3E%3Cpath d='M18 4v16'/%3E%3C/svg%3E") center / contain no-repeat;
}

body[data-page="register"] .auth-standalone-submit::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3Ccircle cx='12' cy='12' r='9' opacity='.18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3Ccircle cx='12' cy='12' r='9' opacity='.18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-portal-secondary-row {
  width: min(100%, 382px);
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.auth-portal-secondary-row-split {
  justify-content: space-between;
}

.auth-portal-secondary-row-center {
  justify-content: center;
}

.auth-portal-secondary-row-compact {
  justify-content: center;
  gap: 8px;
}

.auth-secondary-divider {
  color: #a4aab3;
}

.auth-portal-secondary-row a {
  color: var(--accent-strong);
  font-weight: 800;
}

.auth-inline-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 12px;
  align-items: end;
}

body[data-page="register"] .auth-inline-code-row {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: center;
}

body[data-page="register"] .auth-inline-code-field {
  gap: 0;
}

body[data-page="register"] .auth-inline-code-row .auth-field-label {
  display: none;
}

.auth-inline-code-field {
  min-width: 0;
}

.auth-inline-code-button {
  min-height: 44px;
  border-radius: 14px;
  justify-content: center;
}

body[data-page="register"] .auth-inline-code-button {
  padding: 0 10px;
  font-size: 13px;
}

body[data-page="register"] .auth-field-hint {
  margin-top: -2px;
}

body[data-page="register"] .auth-portal-secondary-row,
body[data-page="reset-password"] .auth-portal-secondary-row {
  margin-top: 12px;
}

.auth-inline-code-button-strong {
  width: 100%;
}

body[data-page="dashboard"] {
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 138px, #edf4ff 138px, #edf4ff 100%);
}

body[data-page="dashboard"]::before {
  opacity: 0;
}

.dashboard-landing-shell {
  max-width: 1220px;
  padding-top: 18px;
}

.dashboard-site-header {
  position: sticky;
  top: 14px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(118, 145, 182, 0.12);
  backdrop-filter: blur(16px);
}

.dashboard-home-nav {
  gap: 12px;
}

.dashboard-home-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  margin-top: 8px;
  margin-bottom: 12px;
}

.dashboard-hero-copy-card {
  display: grid;
  gap: 18px;
  padding: 36px 32px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(92, 161, 255, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(47, 214, 231, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow: 0 24px 56px rgba(117, 145, 181, 0.12);
}

.dashboard-live-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  margin-bottom: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(24, 188, 174, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: #14a79d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
  box-shadow: 0 12px 28px rgba(103, 194, 185, 0.16);
}

.eyebrow-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #40d46d;
  box-shadow: 0 0 0 6px rgba(64, 212, 109, 0.14);
}

.dashboard-hero-copy-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.dashboard-gradient-line {
  background: linear-gradient(90deg, #1ab3a8 0%, #16b8a6 38%, #48d8cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dashboard-hero-copy-card .hero-copy {
  max-width: 92%;
  font-size: 15px;
  line-height: 1.85;
}

.dashboard-home-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-home-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(120, 151, 189, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(132, 160, 193, 0.08);
}

.dashboard-home-summary-card span {
  color: rgba(82, 102, 124, 0.8);
  font-size: 12px;
}

.dashboard-home-summary-card strong {
  font-size: 16px;
  line-height: 1.45;
  color: #122034;
}

.dashboard-home-summary-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-hero-actions {
  align-items: center;
}

.dashboard-primary-cta {
  min-width: 280px;
  min-height: 58px;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c7ba 0%, #11a39a 100%);
  box-shadow: 0 18px 34px rgba(24, 188, 174, 0.24);
}

.dashboard-primary-cta:hover {
  background: linear-gradient(90deg, #1bb7ab 0%, #0e938a 100%);
}

.dashboard-hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-proof-card {
  display: grid;
  gap: 8px;
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(120, 151, 189, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(132, 160, 193, 0.08);
  text-align: center;
}

.dashboard-proof-card strong {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-proof-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-runtime-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(18, 34, 49, 0.92);
  background:
    radial-gradient(circle at top right, rgba(65, 119, 214, 0.2), transparent 26%),
    linear-gradient(180deg, #182634 0%, #121d29 52%, #0d151f 100%);
  color: #f4f9fc;
  box-shadow: 0 28px 56px rgba(22, 34, 46, 0.22);
}

.dashboard-runtime-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-runtime-label {
  color: rgba(233, 242, 248, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-runtime-code {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #7ee9de;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
}

.dashboard-runtime-card .status-badge {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbff;
}

.dashboard-runtime-card .status-badge.active {
  background: rgba(65, 212, 128, 0.16);
  color: #9df0c0;
}

.dashboard-runtime-card .status-badge.danger {
  background: rgba(255, 160, 122, 0.14);
  color: #ffd5c5;
}

.dashboard-runtime-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.dashboard-runtime-node {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-runtime-node strong {
  color: #ffffff;
  font-size: 15px;
}

.dashboard-runtime-node span {
  color: rgba(226, 237, 246, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-runtime-arrow {
  color: rgba(181, 205, 226, 0.76);
  font-size: 22px;
  font-weight: 800;
}

.dashboard-runtime-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 16px;
}

.dashboard-runtime-overview,
.dashboard-route-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-runtime-overview-head,
.dashboard-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-runtime-overview-head strong,
.dashboard-route-head strong {
  color: #ffffff;
  font-size: 15px;
}

.dashboard-runtime-overview-head span,
.dashboard-route-head span {
  color: rgba(223, 236, 246, 0.68);
  font-size: 13px;
}

.dashboard-runtime-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-runtime-metric {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-runtime-metric span {
  color: rgba(223, 236, 246, 0.66);
  font-size: 12px;
}

.dashboard-runtime-metric strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.dashboard-runtime-card .progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-runtime-card .progress > span {
  background: linear-gradient(90deg, #2fd6e7, #2a7deb);
}

.dashboard-route-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-route-item:first-of-type {
  padding-top: 0;
  border-top: none;
}

.dashboard-route-item span {
  color: rgba(234, 244, 250, 0.84);
  font-size: 13px;
}

.dashboard-route-item em {
  color: #cce0ff;
  font-style: normal;
  font-weight: 700;
}

.dashboard-feature-section .section-title {
  margin-bottom: 18px;
  text-align: center;
  font-size: 30px;
}

.dashboard-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-feature-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(120, 151, 189, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: 0 20px 38px rgba(122, 151, 186, 0.08);
}

.dashboard-feature-kicker {
  color: #14a79d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.dashboard-feature-card h3,
.dashboard-step-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.dashboard-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.dashboard-contact-card {
  align-content: start;
}

.dashboard-contact-qr {
  margin-top: 10px;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  border-radius: 24px;
  border: 1.5px dashed rgba(17, 163, 154, 0.34);
  background:
    linear-gradient(180deg, rgba(238, 252, 249, 0.96), rgba(245, 250, 255, 0.98)),
    radial-gradient(circle at top left, rgba(20, 167, 157, 0.08), transparent 36%);
}

.dashboard-contact-qr span {
  display: block;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-contact-qr small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-contact-qr-placeholder {
  display: grid;
  gap: 8px;
}

.dashboard-contact-qr-image {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(104, 131, 155, 0.14);
}

.dashboard-contact-qr-helper {
  margin-top: 10px;
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.dashboard-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-step-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  box-shadow: 0 18px 36px rgba(122, 151, 186, 0.08);
}

.dashboard-step-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c7ba, #11a39a);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.dashboard-data-stack {
  display: grid;
  gap: 0;
}

.dashboard-console-section {
  display: grid;
  gap: 18px;
}

.dashboard-section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.dashboard-section-heading .section-title,
.dashboard-section-heading .section-subtitle {
  margin: 0;
}

.dashboard-section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(24, 188, 174, 0.12);
  color: #12958d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.dashboard-console-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-console-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(120, 151, 189, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: 0 20px 38px rgba(122, 151, 186, 0.08);
}

.dashboard-console-card strong {
  color: #183144;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.dashboard-console-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.dashboard-console-tags {
  gap: 8px;
}

.dashboard-console-link {
  width: fit-content;
  color: #12958d;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-console-actions .button,
.dashboard-console-actions .ghost-button {
  min-height: 48px;
  padding: 0 18px;
}

.dashboard-console-card-accent {
  border-color: rgba(18, 34, 49, 0.2);
  background:
    radial-gradient(circle at top right, rgba(125, 244, 228, 0.18), transparent 34%),
    linear-gradient(180deg, #15343d 0%, #122730 100%);
  box-shadow: 0 24px 48px rgba(21, 52, 61, 0.18);
}

.dashboard-console-card-accent strong,
.dashboard-console-card-accent p,
.dashboard-console-card-accent .dashboard-console-link {
  color: #f3fbfb;
}

.dashboard-console-card-accent .dashboard-feature-kicker {
  color: #80eee2;
}

.dashboard-console-card-accent .button {
  background: #ffffff;
  color: #10867e;
  box-shadow: none;
}

.dashboard-console-card-accent .button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-console-card-accent .ghost-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f3fbfb;
}

.dashboard-console-card-accent .ghost-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-work-grid {
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(120, 151, 189, 0.12);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 250, 253, 0.94));
  box-shadow: 0 18px 40px rgba(114, 140, 164, 0.06);
}

.dashboard-work-grid > .section-card {
  min-height: 100%;
}

.dashboard-detail-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
}

.dashboard-card-head {
  display: grid;
  gap: 10px;
}

.dashboard-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(24, 188, 174, 0.1);
  color: #12958d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.dashboard-card-head .inline-actions {
  align-items: flex-start;
  justify-content: space-between;
  margin: 0;
}

.dashboard-card-head h2,
.dashboard-card-head .section-subtitle {
  margin: 0;
}

.dashboard-card-head h2 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.dashboard-card-head .section-subtitle {
  max-width: 640px;
}

body[data-page="dashboard"] .dashboard-detail-card .button,
body[data-page="dashboard"] .dashboard-detail-card .copy-btn,
body[data-page="dashboard"] .dashboard-detail-card .ghost-button,
body[data-page="dashboard"] .dashboard-detail-card .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .dashboard-site-header {
    position: relative;
    top: 0;
  }

  .dashboard-console-grid,
  .dashboard-contact-grid,
  .dashboard-feature-grid,
  .dashboard-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-runtime-stack {
    grid-template-columns: 1fr;
  }

  .dashboard-runtime-flow {
    grid-template-columns: 1fr;
  }

  .dashboard-runtime-arrow {
    display: none;
  }

  .dashboard-runtime-node {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .dashboard-landing-shell {
    padding-top: 12px;
  }

  .dashboard-site-header {
    padding: 16px 18px;
  }

  .dashboard-home-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-hero-copy-card,
  .dashboard-runtime-card,
  .dashboard-console-card,
  .dashboard-detail-card,
  .dashboard-feature-card,
  .dashboard-step-card {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .dashboard-hero-copy-card h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .dashboard-hero-copy-card .hero-copy {
    max-width: 100%;
  }

  .dashboard-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-primary-cta {
    width: 100%;
    min-width: 0;
  }

  .dashboard-hero-proof-grid,
  .dashboard-home-summary-grid,
  .dashboard-runtime-metrics,
  .dashboard-console-grid,
  .dashboard-contact-grid,
  .dashboard-feature-grid,
  .dashboard-step-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-work-grid {
    padding: 14px;
    border-radius: 28px;
  }

  .dashboard-console-actions {
    flex-direction: column;
  }

  .dashboard-feature-section .section-title {
    font-size: 26px;
  }

  .dashboard-card-head .inline-actions {
    flex-direction: column;
    gap: 10px;
  }
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto 0 12px;
  padding: 18px 18px 0 0;
  align-items: start;
}

.app-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 36px);
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 22px;
  border: 1px solid rgba(24, 188, 174, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.98));
  box-shadow: 0 18px 36px rgba(108, 133, 152, 0.1);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-section-label {
  display: none;
}

.app-sidebar-mark {
  width: 48px;
  height: 48px;
  padding: 7px;
  border-radius: 14px;
  border: 1px solid rgba(24, 188, 174, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 252, 0.98));
  box-shadow: 0 10px 22px rgba(108, 133, 152, 0.08);
}

.app-sidebar .brand-title {
  font-size: 15px;
  line-height: 1.25;
}

.app-sidebar .brand-subtitle {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.app-sidebar .brand-title-main {
  color: #122034;
}

.app-sidebar .brand-title-side,
.app-sidebar .brand-subtitle {
  color: rgba(72, 85, 99, 0.72);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  flex: 1;
}

.sidebar-nav-group {
  display: grid;
  gap: 4px;
}

.sidebar-nav-group + .sidebar-nav-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(77, 105, 127, 0.08);
}

.sidebar-nav-group-label {
  padding: 0 8px 2px;
  color: rgba(75, 85, 99, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(24, 188, 174, 0.08);
  color: rgba(31, 41, 55, 0.82);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.16s ease;
}

.sidebar-link-title {
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.sidebar-link-desc {
  display: none;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #0f172a;
  border-color: rgba(24, 188, 174, 0.18);
  background: linear-gradient(135deg, rgba(24, 188, 174, 0.12), rgba(255, 255, 255, 0.82));
  box-shadow: inset 0 0 0 1px rgba(24, 188, 174, 0.08);
}

.sidebar-link:hover .sidebar-link-desc,
.sidebar-link.active .sidebar-link-desc {
  color: rgba(31, 41, 55, 0.82);
}

.sidebar-status-card,
.sidebar-footer-links {
  display: none;
}

.sidebar-status-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-status-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.sidebar-status-list {
  display: grid;
  gap: 10px;
}

.sidebar-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-status-list div:first-child {
  padding-top: 0;
  border-top: none;
}

.sidebar-status-list span {
  color: rgba(228, 236, 243, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-status-list strong {
  color: #ffffff;
  font-size: 13px;
}

.sidebar-footer-links {
  display: grid;
  gap: 8px;
}

.sidebar-footer-links a {
  color: rgba(231, 238, 245, 0.66);
  font-size: 13px;
  font-weight: 600;
}

.sidebar-footer-links a:hover {
  color: #ffffff;
}

.app-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 28px;
  border: 1px solid rgba(77, 105, 127, 0.11);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(108, 133, 152, 0.08);
  backdrop-filter: blur(14px);
}

.app-topbar-leading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.app-topbar-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(77, 105, 127, 0.12);
  background: rgba(244, 248, 250, 0.94);
  color: #466076;
  font-size: 18px;
}

.app-topbar-copy {
  min-width: 0;
}

.app-topbar-copy .eyebrow {
  margin-bottom: 8px;
}

.app-topbar-copy h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.app-topbar-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.app-topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-metric {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(77, 105, 127, 0.12);
  background: rgba(246, 249, 252, 0.96);
  color: #587186;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(242, 246, 248, 0.96);
  color: #466076;
  font-size: 14px;
  font-weight: 700;
}

.app-topbar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d98a48, #bd6c2d 62%, #a95822 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(185, 98, 34, 0.18);
}

body[data-page="dashboard"] .app-sidebar,
body[data-page="models"] .app-sidebar,
body[data-page="plans"] .app-sidebar,
body[data-page="api-guide"] .app-sidebar {
  border: 1px solid rgba(24, 188, 174, 0.14);
  background:
    radial-gradient(circle at top right, rgba(92, 219, 210, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 252, 250, 0.94));
  box-shadow: 0 24px 52px rgba(104, 202, 194, 0.14);
  backdrop-filter: blur(18px);
}

body[data-page="dashboard"] .app-sidebar-mark,
body[data-page="models"] .app-sidebar-mark,
body[data-page="plans"] .app-sidebar-mark,
body[data-page="api-guide"] .app-sidebar-mark {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.98));
  box-shadow: 0 14px 30px rgba(104, 202, 194, 0.16);
}

body[data-page="dashboard"] .app-sidebar .brand-title-main,
body[data-page="models"] .app-sidebar .brand-title-main,
body[data-page="plans"] .app-sidebar .brand-title-main,
body[data-page="api-guide"] .app-sidebar .brand-title-main {
  color: #122034;
}

body[data-page="dashboard"] .app-sidebar .brand-title-side,
body[data-page="dashboard"] .app-sidebar .brand-subtitle,
body[data-page="models"] .app-sidebar .brand-title-side,
body[data-page="models"] .app-sidebar .brand-subtitle,
body[data-page="plans"] .app-sidebar .brand-title-side,
body[data-page="plans"] .app-sidebar .brand-subtitle,
body[data-page="api-guide"] .app-sidebar .brand-title-side,
body[data-page="api-guide"] .app-sidebar .brand-subtitle {
  color: rgba(72, 85, 99, 0.72);
}

body[data-page="dashboard"] .sidebar-section-label,
body[data-page="models"] .sidebar-section-label,
body[data-page="plans"] .sidebar-section-label,
body[data-page="api-guide"] .sidebar-section-label {
  color: rgba(15, 158, 150, 0.72);
}

body[data-page="dashboard"] .sidebar-link,
body[data-page="models"] .sidebar-link,
body[data-page="plans"] .sidebar-link,
body[data-page="api-guide"] .sidebar-link {
  color: rgba(31, 41, 55, 0.82);
  border-color: rgba(24, 188, 174, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

body[data-page="dashboard"] .sidebar-link-desc,
body[data-page="models"] .sidebar-link-desc,
body[data-page="plans"] .sidebar-link-desc,
body[data-page="api-guide"] .sidebar-link-desc {
  color: rgba(75, 85, 99, 0.68);
}

body[data-page="dashboard"] .sidebar-link:hover,
body[data-page="dashboard"] .sidebar-link.active,
body[data-page="models"] .sidebar-link:hover,
body[data-page="models"] .sidebar-link.active,
body[data-page="plans"] .sidebar-link:hover,
body[data-page="plans"] .sidebar-link.active,
body[data-page="api-guide"] .sidebar-link:hover,
body[data-page="api-guide"] .sidebar-link.active {
  color: #0f172a;
  border-color: rgba(24, 188, 174, 0.2);
  background: linear-gradient(135deg, rgba(24, 188, 174, 0.14), rgba(255, 255, 255, 0.78));
  box-shadow: inset 0 0 0 1px rgba(24, 188, 174, 0.08);
}

body[data-page="dashboard"] .sidebar-link:hover .sidebar-link-desc,
body[data-page="dashboard"] .sidebar-link.active .sidebar-link-desc,
body[data-page="models"] .sidebar-link:hover .sidebar-link-desc,
body[data-page="models"] .sidebar-link.active .sidebar-link-desc,
body[data-page="plans"] .sidebar-link:hover .sidebar-link-desc,
body[data-page="plans"] .sidebar-link.active .sidebar-link-desc,
body[data-page="api-guide"] .sidebar-link:hover .sidebar-link-desc,
body[data-page="api-guide"] .sidebar-link.active .sidebar-link-desc {
  color: rgba(31, 41, 55, 0.82);
}

body[data-page="dashboard"] .sidebar-status-card,
body[data-page="models"] .sidebar-status-card,
body[data-page="plans"] .sidebar-status-card,
body[data-page="api-guide"] .sidebar-status-card {
  border-color: rgba(24, 188, 174, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 251, 249, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-page="dashboard"] .sidebar-status-card h2,
body[data-page="dashboard"] .sidebar-status-list strong,
body[data-page="models"] .sidebar-status-card h2,
body[data-page="models"] .sidebar-status-list strong,
body[data-page="plans"] .sidebar-status-card h2,
body[data-page="plans"] .sidebar-status-list strong,
body[data-page="api-guide"] .sidebar-status-card h2,
body[data-page="api-guide"] .sidebar-status-list strong {
  color: #122034;
}

body[data-page="dashboard"] .sidebar-status-list span,
body[data-page="models"] .sidebar-status-list span,
body[data-page="plans"] .sidebar-status-list span,
body[data-page="api-guide"] .sidebar-status-list span,
body[data-page="dashboard"] .sidebar-footer-links a,
body[data-page="models"] .sidebar-footer-links a,
body[data-page="plans"] .sidebar-footer-links a,
body[data-page="api-guide"] .sidebar-footer-links a {
  color: rgba(75, 85, 99, 0.76);
}

body[data-page="dashboard"] .sidebar-footer-links a:hover,
body[data-page="models"] .sidebar-footer-links a:hover,
body[data-page="plans"] .sidebar-footer-links a:hover,
body[data-page="api-guide"] .sidebar-footer-links a:hover {
  color: #0f9e96;
}

body[data-page="dashboard"] .sidebar-status-card,
body[data-page="dashboard"] .sidebar-footer-links,
body[data-page="models"] .sidebar-status-card,
body[data-page="models"] .sidebar-footer-links,
body[data-page="plans"] .sidebar-status-card,
body[data-page="plans"] .sidebar-footer-links,
body[data-page="api-guide"] .sidebar-status-card,
body[data-page="api-guide"] .sidebar-footer-links,
body[data-page="agent-center"] .sidebar-status-card,
body[data-page="agent-center"] .sidebar-footer-links,
body[data-page="ops-admin"] .sidebar-status-card,
body[data-page="ops-admin"] .sidebar-footer-links {
  display: none;
}

body[data-page="dashboard"] .app-topbar,
body[data-page="models"] .app-topbar,
body[data-page="plans"] .app-topbar,
body[data-page="api-guide"] .app-topbar {
  border-color: rgba(24, 188, 174, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(108, 133, 152, 0.08);
}

body[data-page="dashboard"] .app-topbar-icon,
body[data-page="models"] .app-topbar-icon,
body[data-page="plans"] .app-topbar-icon,
body[data-page="api-guide"] .app-topbar-icon {
  border-color: rgba(24, 188, 174, 0.14);
  background: rgba(242, 252, 250, 0.96);
  color: #0f9e96;
}

body[data-page="dashboard"] .topbar-metric,
body[data-page="models"] .topbar-metric,
body[data-page="plans"] .topbar-metric,
body[data-page="api-guide"] .topbar-metric,
body[data-page="dashboard"] .app-topbar-link,
body[data-page="models"] .app-topbar-link,
body[data-page="plans"] .app-topbar-link,
body[data-page="api-guide"] .app-topbar-link {
  border-color: rgba(24, 188, 174, 0.12);
  background: rgba(242, 252, 250, 0.94);
  color: #466076;
}

body[data-page="agent-center"] .app-sidebar,
body[data-page="ops-admin"] .app-sidebar {
  border: 1px solid rgba(24, 188, 174, 0.14);
  background:
    radial-gradient(circle at top right, rgba(92, 219, 210, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 252, 250, 0.94));
  box-shadow: 0 24px 52px rgba(104, 202, 194, 0.14);
  backdrop-filter: blur(18px);
}

body[data-page="agent-center"] .app-sidebar-mark,
body[data-page="ops-admin"] .app-sidebar-mark {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.98));
  box-shadow: 0 14px 30px rgba(104, 202, 194, 0.16);
}

body[data-page="agent-center"] .app-sidebar .brand-subtitle,
body[data-page="ops-admin"] .app-sidebar .brand-subtitle,
body[data-page="agent-center"] .sidebar-section-label,
body[data-page="ops-admin"] .sidebar-section-label {
  color: rgba(15, 158, 150, 0.72);
}

body[data-page="agent-center"] .sidebar-link,
body[data-page="ops-admin"] .sidebar-link {
  color: rgba(31, 41, 55, 0.82);
  border-color: rgba(24, 188, 174, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

body[data-page="agent-center"] .sidebar-link-desc,
body[data-page="ops-admin"] .sidebar-link-desc {
  color: rgba(75, 85, 99, 0.68);
}

body[data-page="agent-center"] .sidebar-link:hover,
body[data-page="agent-center"] .sidebar-link.active,
body[data-page="ops-admin"] .sidebar-link:hover,
body[data-page="ops-admin"] .sidebar-link.active {
  color: #0f172a;
  border-color: rgba(24, 188, 174, 0.2);
  background: linear-gradient(135deg, rgba(24, 188, 174, 0.14), rgba(255, 255, 255, 0.78));
  box-shadow: inset 0 0 0 1px rgba(24, 188, 174, 0.08);
}

body[data-page="agent-center"] .sidebar-link:hover .sidebar-link-desc,
body[data-page="agent-center"] .sidebar-link.active .sidebar-link-desc,
body[data-page="ops-admin"] .sidebar-link:hover .sidebar-link-desc,
body[data-page="ops-admin"] .sidebar-link.active .sidebar-link-desc {
  color: rgba(31, 41, 55, 0.82);
}

body[data-page="agent-center"] .sidebar-status-card,
body[data-page="ops-admin"] .sidebar-status-card {
  border-color: rgba(24, 188, 174, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 251, 249, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-page="agent-center"] .sidebar-status-card h2,
body[data-page="agent-center"] .sidebar-status-list strong,
body[data-page="ops-admin"] .sidebar-status-card h2,
body[data-page="ops-admin"] .sidebar-status-list strong {
  color: #122034;
}

body[data-page="agent-center"] .sidebar-status-list span,
body[data-page="ops-admin"] .sidebar-status-list span,
body[data-page="agent-center"] .sidebar-footer-links a,
body[data-page="ops-admin"] .sidebar-footer-links a {
  color: rgba(75, 85, 99, 0.76);
}

body[data-page="agent-center"] .sidebar-footer-links a:hover,
body[data-page="ops-admin"] .sidebar-footer-links a:hover {
  color: #0f9e96;
}

body[data-page="agent-center"] .app-topbar,
body[data-page="ops-admin"] .app-topbar {
  border-color: rgba(24, 188, 174, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(108, 133, 152, 0.08);
}

body[data-page="agent-center"] .app-topbar-icon,
body[data-page="ops-admin"] .app-topbar-icon {
  border-color: rgba(24, 188, 174, 0.14);
  background: rgba(242, 252, 250, 0.96);
  color: #0f9e96;
}

body[data-page="agent-center"] .topbar-metric,
body[data-page="ops-admin"] .topbar-metric,
body[data-page="agent-center"] .app-topbar-link,
body[data-page="ops-admin"] .app-topbar-link {
  border-color: rgba(24, 188, 174, 0.12);
  background: rgba(242, 252, 250, 0.94);
  color: #466076;
}

body.user-console-page .dashboard-shell {
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 12px;
  max-width: 1480px;
  padding: 14px 18px 0 0;
}

body.user-console-page .app-sidebar {
  top: 16px;
  min-height: calc(100vh - 24px);
  max-height: none;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 18px;
}

body.user-console-page .app-sidebar-brand {
  gap: 8px;
  padding: 2px 2px 6px;
}

body.user-console-page .app-sidebar-mark {
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 12px;
}

body.user-console-page .app-sidebar .brand-title {
  font-size: 14px;
  line-height: 1.2;
}

body.user-console-page .app-sidebar .brand-title-main,
body.user-console-page .app-sidebar .brand-title-side,
body.user-console-page .app-sidebar .brand-subtitle,
body.user-console-page .sidebar-link,
body.user-console-page .sidebar-link-title,
body.user-console-page .topbar-metric,
body.user-console-page .app-topbar-link,
body.user-console-page .button,
body.user-console-page .ghost-button,
body.user-console-page .copy-btn,
body.user-console-page .danger-button,
body.user-console-page .chip,
body.user-console-page .status-badge,
body.user-console-page .badge,
body.user-console-page .eyebrow,
body.user-console-page .helper-text,
body.user-console-page strong,
body.user-console-page h1,
body.user-console-page h2,
body.user-console-page h3,
body.user-console-page h4,
body.user-console-page h5,
body.user-console-page h6 {
  font-weight: 400;
}

body.user-console-page .app-sidebar .brand-title-side,
body.user-console-page .app-sidebar .brand-subtitle {
  display: none;
}

body.user-console-page .sidebar-nav {
  gap: 0;
}

body.user-console-page .sidebar-nav-group {
  gap: 0;
}

body.user-console-page .sidebar-nav-group + .sidebar-nav-group {
  margin-top: 4px;
  padding-top: 4px;
}

body.user-console-page .sidebar-nav-group-label {
  padding: 0 8px 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

body.user-console-page .sidebar-link {
  position: relative;
  min-height: 34px;
  padding: 5px 10px 5px 31px;
  border-radius: 9px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.35;
  transition: none !important;
}

body.user-console-page .sidebar-link::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 13px;
  height: 13px;
  background-color: currentColor;
  opacity: 0.78;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body.user-console-page .sidebar-link[data-sidebar-icon="dashboard"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='8' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='15' width='7' height='6' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='8' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='15' width='7' height='6' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="api-key"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M12 15h9'/%3E%3Cpath d='M18 12v6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M12 15h9'/%3E%3Cpath d='M18 12v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="usage"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V9'/%3E%3Cpath d='M10 19V5'/%3E%3Cpath d='M16 19v-7'/%3E%3Cpath d='M22 19V3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V9'/%3E%3Cpath d='M10 19V5'/%3E%3Cpath d='M16 19v-7'/%3E%3Cpath d='M22 19V3'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="subscriptions"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="billing"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M6 3h12l2 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7l2-4Z'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M6 3h12l2 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7l2-4Z'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="orders"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M15 3v4h4'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M15 3v4h4'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="redeem"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2a2 2 0 0 0 0-4V8Z'/%3E%3Cpath d='M12 6v12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2a2 2 0 0 0 0-4V8Z'/%3E%3Cpath d='M12 6v12'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="invite"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='15' r='3'/%3E%3Cpath d='M11.5 9.5l3 4'/%3E%3Cpath d='M5 20c0-2.2 1.8-4 4-4h1'/%3E%3Cpath d='M13 20h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='15' r='3'/%3E%3Cpath d='M11.5 9.5l3 4'/%3E%3Cpath d='M5 20c0-2.2 1.8-4 4-4h1'/%3E%3Cpath d='M13 20h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="profile"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="ops-admin"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10'/%3E%3Cpath d='M7 12h5'/%3E%3Cpath d='M15 12h2'/%3E%3Cpath d='M7 16h3'/%3E%3Cpath d='M14 15.5 16 17.5l3-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10'/%3E%3Cpath d='M7 12h5'/%3E%3Cpath d='M15 12h2'/%3E%3Cpath d='M7 16h3'/%3E%3Cpath d='M14 15.5 16 17.5l3-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="catalog"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5.5A2.5 2.5 0 0 1 7.5 3H20v18H7.5A2.5 2.5 0 0 0 5 23Z'/%3E%3Cpath d='M5 5.5V21'/%3E%3Cpath d='M9 7h7'/%3E%3Cpath d='M9 11h7'/%3E%3Cpath d='M9 15h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5.5A2.5 2.5 0 0 1 7.5 3H20v18H7.5A2.5 2.5 0 0 0 5 23Z'/%3E%3Cpath d='M5 5.5V21'/%3E%3Cpath d='M9 7h7'/%3E%3Cpath d='M9 11h7'/%3E%3Cpath d='M9 15h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="guide"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M8 5h8'/%3E%3Cpath d='M8 19h8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M8 5h8'/%3E%3Cpath d='M8 19h8'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="api-doc"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h7l5 5v11H7z'/%3E%3Cpath d='M14 4v5h5'/%3E%3Cpath d='M10 13h4'/%3E%3Cpath d='M10 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h7l5 5v11H7z'/%3E%3Cpath d='M14 4v5h5'/%3E%3Cpath d='M10 13h4'/%3E%3Cpath d='M10 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="verify"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.2-2.4 7.3-7 9-4.6-1.7-7-4.8-7-9V6l7-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.2-2.4 7.3-7 9-4.6-1.7-7-4.8-7-9V6l7-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link[data-sidebar-icon="download"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10'/%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10'/%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-console-page .sidebar-link-title {
  font-size: 13px;
  line-height: 1.35;
}

body.user-console-page .sidebar-link:hover,
body.user-console-page .sidebar-link.active {
  border-color: rgba(24, 188, 174, 0.16);
  background: rgba(24, 188, 174, 0.1);
  box-shadow: none;
}

body.user-console-page .sidebar-subgroup {
  display: grid;
  gap: 4px;
  padding: 2px 0 4px;
}

body.user-console-page .sidebar-parent-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding-right: 8px;
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.16);
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-weight: 400;
  text-align: left;
}

body.user-console-page .sidebar-parent-link .sidebar-link-title {
  flex: 1;
}

body.user-console-page .sidebar-parent-arrow {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border: 1px solid rgba(24, 188, 174, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(70, 96, 118, 0.78);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

body.user-console-page .sidebar-parent-arrow::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.3s ease, top 0.3s ease, left 0.3s ease;
}

body.user-console-page .sidebar-subgroup.expanded .sidebar-parent-arrow {
  border-color: rgba(24, 188, 174, 0.32);
  background: rgba(24, 188, 174, 0.1);
  color: rgba(15, 118, 110, 0.92);
}

body.user-console-page .sidebar-subgroup.expanded .sidebar-parent-arrow::before {
  left: 7px;
  top: 5px;
  transform: rotate(45deg);
}

body.user-console-page .sidebar-subnav {
  display: grid;
  gap: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 14px;
  transform: translateY(-2px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

body.user-console-page .sidebar-subgroup.expanded .sidebar-subnav {
  opacity: 1;
  transform: translateY(0);
}

body.user-console-page .sidebar-link-child {
  min-height: 30px;
  padding-left: 42px;
  font-size: 12px;
}

body.user-console-page .sidebar-link-child::before {
  left: 24px;
  width: 6px;
  height: 6px;
  opacity: 0.4;
  border-radius: 999px;
  -webkit-mask: none;
  mask: none;
}

body.user-console-page .app-topbar {
  padding: 16px 18px;
  border-radius: 22px;
}

body.user-console-page .app-topbar-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 15px;
}

body.user-console-page .app-topbar-copy .eyebrow {
  margin-bottom: 6px;
}

body.user-console-page .app-topbar-copy h1 {
  font-size: clamp(24px, 3vw, 30px);
}

body.user-console-page .topbar-metric {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

body.user-console-page .app-topbar-link,
body.user-console-page .app-topbar-pill {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

body.user-console-page .app-topbar-minimal {
  gap: 14px;
}

body.user-console-page .app-topbar-minimal .app-topbar-copy p {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.6;
}

body.user-console-page .ops-hero {
  margin-bottom: 2px;
  align-items: stretch;
}

body.user-console-page .ops-hero-main,
body.user-console-page .ops-hero-side {
  padding: 20px 22px;
}

body.user-console-page .ops-hero-main {
  background:
    radial-gradient(circle at top right, rgba(217, 138, 72, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.98));
}

body.user-console-page .ops-hero-side {
  display: grid;
  gap: 12px;
}

body.user-console-page .ops-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

body.user-console-page .ops-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 188, 174, 0.14);
  background: rgba(24, 188, 174, 0.08);
  color: #466076;
  font-size: 12px;
}

body.user-console-page .ops-priority-section {
  margin-top: -4px;
}

body.user-console-page .section-card-priority {
  padding: 20px 22px;
  border-color: rgba(217, 138, 72, 0.18);
  background:
    radial-gradient(circle at top right, rgba(217, 138, 72, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 36px rgba(149, 104, 75, 0.1);
}

body.user-console-page .section-card-priority .inline-actions {
  align-items: flex-start;
  justify-content: space-between;
}

body.user-console-page .ops-pricing-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 16px;
  align-items: start;
}

body.user-console-page .ops-pricing-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.user-console-page .ops-pricing-metric {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(217, 138, 72, 0.16);
  background: rgba(255, 255, 255, 0.8);
}

body.user-console-page .ops-pricing-metric span {
  color: rgba(70, 96, 118, 0.82);
  font-size: 12px;
}

body.user-console-page .ops-pricing-metric strong {
  color: #0f172a;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

body.user-console-page .ops-pricing-metric small {
  color: rgba(75, 85, 99, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

body.user-console-page .section-card-priority form {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(217, 138, 72, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

body.user-console-page .section-card-priority .notice {
  margin-top: 16px;
  border-radius: 16px;
}

body.user-console-page .ops-overview-grid {
  gap: 10px;
  margin-bottom: 0;
}

body.user-console-page .ops-overview-grid .kpi-card,
body.user-console-page .ops-overview-grid .info-card {
  padding: 16px 14px;
  border-radius: 16px;
}

body.user-console-page .ops-clean-grid {
  gap: 12px;
}

body.user-console-page .section-card {
  padding: 18px 18px;
}

body.user-console-page .app-main {
  gap: 10px;
}

body.user-console-page .section {
  margin-top: 14px;
}

body.user-console-page .hero {
  margin-bottom: 12px;
}

body.user-console-page .timeline,
body.user-console-page .form-stack {
  gap: 10px;
}

body.user-console-page .notice,
body.user-console-page .banner,
body.user-console-page .inline-note {
  padding: 12px 14px;
}

body.user-console-page .table-wrap th,
body.user-console-page .table-wrap td {
  padding: 12px 14px;
}

body.user-console-page .form-actions {
  gap: 8px;
}

body[data-page="ops-admin"] .ops-contact-wechat-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

body[data-page="ops-admin"] .ops-contact-wechat-card {
  display: grid;
  gap: 10px;
}

body[data-page="ops-admin"] .ops-contact-wechat-card img {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(68, 83, 96, 0.12);
}

body[data-page="ops-admin"] .ops-contact-wechat-card .empty-state {
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(119, 142, 164, 0.28);
  background: rgba(248, 251, 253, 0.92);
}

body[data-page="ops-admin"] .ops-contact-wechat-meta {
  display: grid;
  gap: 4px;
}

body.user-console-page .ops-release-section {
  margin-top: 14px;
}

body.user-console-page .ops-release-card {
  display: grid;
  gap: 10px;
}

body.user-console-page .ops-release-head {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.user-console-page .ops-release-head h2 {
  margin-bottom: 6px;
}

body.user-console-page .ops-release-log {
  gap: 8px;
}

body.user-console-page .ops-release-log .activity-row {
  padding: 12px 14px;
}

body.user-console-page .ops-list-card .inline-actions {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.user-console-page .inline-form {
  gap: 8px;
  margin: 10px 0 12px;
}

body.user-console-page .inline-form input,
body.user-console-page .inline-form select {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
}

body.user-console-page .ops-finance-filter-bar > * {
  flex: 1 1 150px;
}

body.user-console-page .ops-finance-filter-bar button,
body.user-console-page .inline-actions .ghost-button[data-ops-export] {
  flex: 0 0 auto;
}

body.user-console-page .ops-finance-summary-host {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

body.user-console-page .ops-finance-summary-host .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body.user-console-page .ops-finance-summary-host .kpi-card {
  min-width: 0;
}

body.user-console-page .ops-list-card .notice {
  margin: 0 0 12px;
}

body.user-console-page .ops-list-card .timeline {
  gap: 8px;
}

body.user-console-page .ops-list-card .activity-row {
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
}

body.user-console-page .ops-list-card .activity-meta {
  gap: 4px;
}

body.user-console-page .ops-list-card .activity-meta strong {
  font-size: 14px;
  line-height: 1.45;
}

body.user-console-page .ops-list-card .ops-pagination {
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(77, 105, 127, 0.1);
}

body.user-console-page .ops-list-card .ops-pagination-actions {
  gap: 8px;
}

body.user-console-page .ops-list-card .ops-pagination .ghost-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
}

body.user-console-page .ops-admin-anchor {
  padding: 16px 18px;
}

body.user-console-page .ops-admin-anchor h2 {
  margin: 4px 0 8px;
}

body.user-console-page .ops-admin-anchor .section-subtitle {
  margin: 0;
}

body[data-page="dashboard"].user-console-page .site-footer {
  display: none;
}

body.user-console-page .button,
body.user-console-page .ghost-button,
body.user-console-page .copy-btn,
body.user-console-page .danger-button,
body.user-console-page .sidebar-link,
body.user-console-page .app-topbar-link,
body.user-console-page .topbar-metric,
body.user-console-page .chip,
body.user-console-page .status-badge,
body.user-console-page .badge {
  transition: none !important;
}

.dashboard-hero-row,
.dashboard-work-grid,
.dashboard-kpi-grid {
  margin: 0;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.dashboard-summary-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(209, 122, 47, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 249, 250, 0.98));
  box-shadow: 0 18px 36px rgba(103, 126, 144, 0.08);
}

.dashboard-summary-card h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.dashboard-summary-card .lead {
  max-width: 92%;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.summary-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-stat-tile {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(77, 105, 127, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

.summary-stat-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-stat-tile strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.dashboard-side-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(214, 156, 116, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 249, 0.98));
  box-shadow: 0 18px 36px rgba(103, 126, 144, 0.08);
}

.dashboard-side-card h2 {
  margin: 0;
  font-size: 24px;
}

.overview-status-list,
.dashboard-action-stack {
  display: grid;
  gap: 12px;
}

.overview-status-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(77, 105, 127, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.overview-status-item span {
  color: var(--muted);
  font-size: 13px;
}

.overview-status-item strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.dashboard-action-link,
.dashboard-action-tile {
  text-decoration: none;
}

.dashboard-action-link {
  display: grid;
  gap: 6px;
  padding: 15px 17px;
  border-radius: 18px;
  border: 1px solid rgba(77, 105, 127, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.dashboard-action-link strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.dashboard-action-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-command-grid {
  align-items: stretch;
}

.dashboard-action-grid,
.api-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-action-tile {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(77, 105, 127, 0.1);
  background:
    radial-gradient(circle at top left, rgba(209, 122, 47, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 251, 0.98));
  box-shadow: 0 14px 28px rgba(109, 132, 150, 0.08);
}

.dashboard-action-tile strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
}

.dashboard-action-tile .helper-text {
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-scene-panel {
  display: grid;
  gap: 18px;
}

.scenario-pick-list,
.dashboard-step-list {
  display: grid;
  gap: 12px;
}

.scenario-pick-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(77, 105, 127, 0.1);
  background: rgba(248, 250, 252, 0.96);
}

.scenario-pick-copy {
  display: grid;
  gap: 5px;
}

.scenario-pick-copy strong {
  color: var(--text);
  font-size: 15px;
}

.scenario-pick-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(77, 105, 127, 0.08);
}

.dashboard-step-item:first-child {
  padding-top: 0;
  border-top: none;
}

.dashboard-step-number {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #d98a48, #bb6a2e);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.dashboard-step-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

.dashboard-step-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-kpi-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 251, 0.98));
  box-shadow: 0 18px 38px rgba(109, 132, 150, 0.08);
}

.dashboard-kpi-card .eyebrow {
  margin-bottom: 0;
}

.dashboard-kpi-card .subvalue {
  margin-top: auto;
}

body[data-page="dashboard"] .section-card,
body[data-page="dashboard"] .kpi-card {
  border-color: rgba(77, 105, 127, 0.1);
}

body[data-page="dashboard"] .dashboard-detail-card {
  background:
    radial-gradient(circle at top right, rgba(157, 240, 229, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.98));
  box-shadow: 0 20px 40px rgba(109, 132, 150, 0.08);
}

body[data-page="dashboard"] .copy-row,
body[data-page="dashboard"] .usage-metric-card,
body[data-page="dashboard"] .usage-breakdown-row,
body[data-page="dashboard"] .usage-notes,
body[data-page="dashboard"] .timeline .activity-row,
body[data-page="dashboard"] .model-card,
body[data-page="dashboard"] .result-box {
  border-color: rgba(77, 105, 127, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 251, 0.98));
  box-shadow: 0 12px 28px rgba(109, 132, 150, 0.06);
}

body[data-page="dashboard"] .copy-row {
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
}

body[data-page="dashboard"] .copy-row code,
body[data-page="dashboard"] .result-box code {
  color: #274156;
}

body[data-page="dashboard"] .copy-row .eyebrow {
  margin-bottom: 10px;
}

body[data-page="dashboard"] .copy-row code {
  font-size: 15px;
}

body[data-page="dashboard"] .usage-metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
}

body[data-page="dashboard"] .usage-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #d98a48, #7aa0c7);
}

body[data-page="dashboard"] .usage-breakdown-row {
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
}

body[data-page="dashboard"] .usage-breakdown-main strong {
  font-size: 15px;
}

body[data-page="dashboard"] .usage-breakdown-meta span {
  font-size: 12px;
}

body[data-page="dashboard"] .timeline .activity-row {
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
}

body[data-page="dashboard"] .timeline .activity-meta {
  gap: 6px;
}

body[data-page="dashboard"] .timeline .activity-meta strong {
  line-height: 1.55;
}

body[data-page="dashboard"] .model-card {
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  border-radius: 24px;
}

body[data-page="dashboard"] .model-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

body[data-page="dashboard"] .result-box {
  padding: 18px 20px;
  border-radius: 24px;
  border-color: rgba(18, 34, 49, 0.16);
  background: linear-gradient(180deg, #15343d 0%, #122730 100%);
  box-shadow: 0 18px 34px rgba(21, 52, 61, 0.14);
}

body[data-page="dashboard"] .result-box code {
  color: #eefbfa;
}

body[data-page="dashboard"] .usage-notes {
  padding: 18px 20px;
  border-radius: 24px;
}

.dashboard-api-card {
  background:
    radial-gradient(circle at top right, rgba(209, 122, 47, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.98));
}

.api-note-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(77, 105, 127, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.api-note-card strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

body[data-page="dashboard"] .site-footer {
  max-width: 1480px;
}

body[data-page="auth"] .site-footer,
body[data-page="register"] .site-footer,
body[data-page="reset-password"] .site-footer {
  max-width: 960px;
  background: rgba(255, 255, 255, 0.84);
}

body[data-page="auth"] .site-footer.is-compact,
body[data-page="register"] .site-footer.is-compact,
body[data-page="reset-password"] .site-footer.is-compact {
  max-width: calc(100% - 32px);
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(31, 35, 40, 0.06);
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 17, 23, 0.46);
}

.modal-root.is-open {
  display: flex;
}

.modal-card {
  width: min(92vw, 460px);
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(31, 35, 40, 0.08);
  box-shadow: var(--shadow-md);
}

.modal-eyebrow {
  margin-bottom: 10px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
}

.modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 35, 40, 0.08);
  border-radius: 999px;
  background: rgba(246, 248, 251, 0.92);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent-strong);
  border-color: rgba(106, 135, 158, 0.18);
}

.modal-description,
.modal-body {
  margin-top: 12px;
}

.modal-body {
  display: grid;
  gap: 10px;
  color: var(--text);
  line-height: 1.7;
}

.modal-body p {
  margin: 0;
}

.modal-meta {
  margin-top: 6px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.legal-article h1 {
  margin: 0 0 18px;
  font-size: 36px;
  letter-spacing: -0.03em;
}

.legal-article h2 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.legal-article ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 1100px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
    padding: 14px 12px 0;
  }

  .app-sidebar {
    position: relative;
    top: 0;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.user-console-page .sidebar-nav {
    grid-template-columns: 1fr;
  }

  body.user-console-page .dashboard-shell {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
    padding: 14px 12px 0;
  }

  body.user-console-page .app-topbar-leading,
  body.user-console-page .app-topbar-copy {
    width: 100%;
    min-width: 0;
  }

  body.user-console-page .app-sidebar {
    max-height: none;
    overflow: visible;
  }

  .dashboard-overview-grid,
  .summary-stat-strip,
  .api-note-grid,
  .recharge-grid {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.user-console-page .ops-pricing-spotlight,
  body.user-console-page .ops-pricing-metrics {
    grid-template-columns: 1fr;
  }

  .app-topbar-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .recharge-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .auth-layout,
  .hero-grid,
  .kpi-grid,
  .stats-grid,
  .card-grid.three,
  .plan-grid,
  .link-grid,
  .model-grid,
  .split-grid,
  .form-grid.two,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="cursor-download"] .link-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  body[data-page="cursor-download"] .download-card {
    min-height: 0;
  }

  body[data-page="cursor-download"] .download-card .value,
  body[data-page="cursor-download"] .download-card .subvalue,
  body[data-page="cursor-download"] .download-card .helper-text {
    min-height: 0;
  }

  .header,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions,
  .header-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-metric-grid {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 122px;
  }

  .auth-portal-shell {
    padding: 18px 12px 16px;
  }

  .auth-portal-stage {
    width: 100%;
    gap: 14px;
  }

  .auth-portal-brand .brand-title-main {
    font-size: 28px;
  }

  .auth-portal-brand-subtitle {
    max-width: none;
    font-size: 12px;
  }

  .auth-portal-card {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .auth-portal-card .notice,
  .auth-standalone-form,
  .auth-standalone-meta,
  .auth-standalone-actions,
  .auth-portal-secondary-row {
    width: 100%;
  }

  .auth-inline-code-row,
  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  body[data-page="register"] .auth-inline-code-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  body[data-page="register"] .auth-inline-code-button {
    width: 100%;
    padding: 0 14px;
  }

  .dashboard-action-grid,
  .api-note-grid,
  .summary-stat-strip {
    grid-template-columns: 1fr;
  }

  .auth-portal-secondary-row,
  .app-topbar-leading,
  .app-topbar-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-standalone-meta {
    justify-content: flex-start;
  }

  .auth-portal-secondary-row-compact {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .dashboard-shell {
    padding: 16px 12px 0;
  }

  .app-sidebar {
    padding: 18px;
    border-radius: 24px;
    max-height: none;
    overflow: visible;
  }

  body.user-console-page .app-sidebar {
    padding: 12px 10px;
    border-radius: 18px;
    max-height: none;
    overflow: visible;
  }

  body.user-console-page .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .recharge-quick-grid {
    grid-template-columns: 1fr;
  }

  body.user-console-page .sidebar-link {
    min-height: 36px;
  }

  body.user-console-page .app-topbar {
    padding: 14px 16px;
    border-radius: 20px;
  }

  body.user-console-page .ops-hero-main,
  body.user-console-page .ops-hero-side,
  body.user-console-page .section-card-priority {
    padding: 18px 16px;
  }

  body[data-page="ops-admin"] .ops-contact-wechat-preview-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-link {
    min-height: auto;
  }

  .app-topbar {
    padding: 16px 18px;
    border-radius: 24px;
  }

  .overview-status-item,
  .scenario-pick-row {
    flex-direction: column;
  }

  .shell,
  .page-shell {
    padding: 16px 12px 34px;
  }

  .panel,
  .surface,
  .card,
  .section-card,
  .legal-article,
  .kpi-card,
  .info-card,
  .guide-card,
  .download-card,
  .step-card,
  .auth-card,
  .model-card,
  .plan-card,
  .legal-nav-card {
    padding: 18px;
  }

  .copy-row,
  .activity-row,
  .result-box,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-row .spacer,
  .activity-row .spacer,
  .result-box .spacer {
    display: none;
  }

  .site-footer,
  .site-footer.is-compact {
    width: calc(100% - 20px);
    max-width: none;
    margin: 22px auto 0;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 12px 14px;
  }

  .site-footer-copy {
    font-size: 11px;
  }

  .page-title,
  .hero-title,
  .hero h1,
  .legal-article h1 {
    font-size: clamp(26px, 10vw, 34px);
  }

  .auth-modal-root {
    padding: 14px;
  }

  .auth-modal-header,
  .auth-modal-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-modal-header {
    padding-top: 22px;
  }

  .auth-modal-brand {
    align-items: flex-start;
  }

  .auth-modal-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .auth-phone-composite {
    grid-template-columns: 1fr;
  }

  .auth-switch-strip,
  .auth-context-row,
  .auth-secondary-row,
  .auth-step-summary {
    flex-wrap: wrap;
  }

  .auth-method-row {
    width: 100%;
    justify-content: flex-start;
  }

  .account-name {
    max-width: 170px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
  }

  .usage-breakdown-row {
    flex-direction: column;
  }

  .usage-breakdown-meta {
    justify-items: flex-start;
    text-align: left;
  }
}

/* ── Call History Page ── */
.call-history-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.call-history-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.call-history-search:focus {
  outline: none;
  border-color: var(--accent);
}

.call-history-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.call-history-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.call-history-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.call-history-model {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.call-history-time {
  margin-left: auto;
  font-size: 12px;
}

.call-history-session {
  font-size: 12px;
}

.call-history-prompt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.call-history-stats {
  font-size: 12px;
}
