:root {
  --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: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Avenir Next", "PingFang SC", sans-serif;
  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;
}

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;
}

.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);
}

.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: 18px;
}

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

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

.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: 24px;
}

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

.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: 10px;
}

.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: 16px;
}

.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));
}

.section {
  margin-top: 20px;
}

.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;
}

.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: 13px 14px;
}

.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: 12px 14px;
}

.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;
}

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

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

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

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

.inline-note,
.notice,
.banner {
  padding: 14px 16px;
  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);
}

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

.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 > .plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  gap: 10px;
}

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;
}

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;
  gap: 10px;
  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;
  justify-content: center;
  align-items: center;
}

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

.plan-purchase-button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

body[data-page="plans"] .plan-grid > .plan-card .plan-purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-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-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;
}

.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"] {
  --accent: #18bcae;
  --accent-strong: #0f9e96;
  --surface-muted: #f1fcfa;
  --border: rgba(24, 188, 174, 0.14);
  --border-strong: rgba(24, 188, 174, 0.22);
  background:
    radial-gradient(circle at top right, rgba(108, 225, 217, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(107, 225, 217, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 252, 250, 0.98));
}

body[data-page="home"]::before,
body[data-page="auth"]::before,
body[data-page="register"]::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="home"] .brand-title-side,
body[data-page="auth"] .brand-title-side,
body[data-page="register"] .brand-title-side {
  display: none;
}

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

body[data-page="home"] .button,
body[data-page="auth"] .button,
body[data-page="register"] .button,
body[data-page="home"] .copy-btn,
body[data-page="auth"] .copy-btn,
body[data-page="register"] .copy-btn {
  background: linear-gradient(90deg, #22c7ba 0%, #11a49b 100%);
  box-shadow: 0 14px 28px rgba(24, 188, 174, 0.18);
}

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

body[data-page="home"] .ghost-button,
body[data-page="auth"] .ghost-button,
body[data-page="register"] .ghost-button {
  color: #12887f;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(24, 188, 174, 0.16);
}

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: 18px 16px 16px;
}

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

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

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

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

.auth-portal-mark {
  width: 68px;
  height: 68px;
  padding: 10px;
  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);
}

.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: 420px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(89, 97, 106, 0.82);
}

.auth-portal-card {
  padding: 24px 20px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(127, 167, 166, 0.14);
  backdrop-filter: blur(12px);
}

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

body[data-page="register"] .auth-portal-card {
  padding: 22px 16px 18px;
}

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: 10px;
  margin-bottom: 18px;
  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: 26px;
}

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

.auth-portal-card-head p {
  margin: 0;
  color: #8a94a0;
  line-height: 1.55;
  font-size: 14px;
}

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

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

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

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

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

.auth-standalone-field {
  gap: 8px;
  border-radius: 14px;
  border-color: rgba(24, 188, 174, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(122, 175, 173, 0.06);
}

.auth-input-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
}

.auth-input-card-focus {
  border-color: rgba(24, 188, 174, 0.52);
  box-shadow: 0 0 0 4px rgba(36, 198, 186, 0.12), 0 16px 34px rgba(24, 188, 174, 0.12);
}

.auth-standalone-field:focus-within {
  border-color: rgba(24, 188, 174, 0.58);
  box-shadow: 0 0 0 4px rgba(36, 198, 186, 0.12), 0 16px 34px rgba(24, 188, 174, 0.12);
}

.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: 500;
}

.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%, 760px);
  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: 700;
  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: 18px;
  height: 18px;
  flex: 0 0 18px;
  pointer-events: none;
  border-radius: 6px;
  border: 1px solid rgba(24, 188, 174, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 12px rgba(24, 188, 174, 0.08);
  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%, 760px);
  margin: 2px auto 0;
  display: flex;
  gap: 12px;
}

.auth-standalone-submit {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 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%, 760px);
  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 {
  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;
  min-height: 56px;
  margin-bottom: 0;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(24, 188, 174, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: #14a79d;
  font-size: 14px;
  font-weight: 800;
  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-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-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-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-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-runtime-metrics,
  .dashboard-console-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: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 16px 0;
  align-items: start;
}

.app-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 36px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 190, 118, 0.16), transparent 34%),
    linear-gradient(180deg, #18232c 0%, #1f2d38 52%, #253744 100%);
  box-shadow: 0 28px 56px rgba(22, 33, 43, 0.22);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.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;
  background: rgba(255, 255, 255, 0.06);
}

.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: #f4f8fb;
}

.app-sidebar .brand-title-side,
.app-sidebar .brand-subtitle {
  color: rgba(228, 236, 243, 0.72);
}

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

.sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(231, 238, 245, 0.76);
  background: rgba(255, 255, 255, 0.03);
  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: #ffffff;
  border-color: rgba(255, 192, 128, 0.22);
  background: linear-gradient(135deg, rgba(209, 122, 47, 0.26), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 209, 167, 0.08);
}

.sidebar-link:hover .sidebar-link-desc,
.sidebar-link.active .sidebar-link-desc {
  color: rgba(255, 248, 240, 0.78);
}

.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;
}

.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 {
  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 {
  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;
  }

  .app-sidebar {
    position: relative;
    top: 0;
    min-height: auto;
    max-height: min(420px, calc(100vh - 24px));
    overflow-y: auto;
  }

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

  .dashboard-overview-grid,
  .summary-stat-strip,
  .api-note-grid {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .app-topbar-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .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;
  }

  .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-top: 22px;
  }

  .auth-portal-card {
    padding: 22px;
    border-radius: 24px;
  }

  .auth-inline-code-row,
  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .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: min(360px, calc(100vh - 24px));
  }

  .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 {
    left: 10px;
    right: 10px;
    bottom: 10px;
    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;
  }
}