:root {
  --bg-0: #f3f2f1;
  --bg-1: #edebe9;
  --bg-2: #e4edf7;
  --ink-900: #1b1a19;
  --ink-700: #323130;
  --ink-500: #605e5c;
  --line-200: #e1dfdd;
  --surface: #ffffff;
  --surface-muted: #faf9f8;
  --brand-600: #0078d4;
  --brand-700: #106ebe;
  --success-600: #067647;
  --danger-600: #b42318;
  --radius-xl: 10px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.14);
  --shadow-md: 0 1px 4px rgba(0, 0, 0, 0.12);
  --mesh-a: rgba(0, 120, 212, 0.16);
  --mesh-b: rgba(16, 110, 190, 0.13);
  --mesh-c: rgba(0, 120, 212, 0.12);
  --ambient-a: rgba(0, 120, 212, 0.2);
  --ambient-b: rgba(16, 110, 190, 0.18);
  --hero-0: #0e3b69;
  --hero-1: #0f548c;
  --hero-2: #106ebe;
  --hero-glow-a: rgba(199, 224, 244, 0.24);
  --hero-glow-b: rgba(255, 255, 255, 0.14);
}

body[data-theme="enterprise-blue"] {
  --bg-0: #eef4ff;
  --bg-1: #e6eefb;
  --bg-2: #dce8fb;
  --brand-600: #0e67c6;
  --brand-700: #0a5aaf;
  --mesh-a: rgba(14, 103, 198, 0.22);
  --mesh-b: rgba(19, 87, 170, 0.17);
  --mesh-c: rgba(8, 138, 209, 0.13);
  --ambient-a: rgba(14, 103, 198, 0.28);
  --ambient-b: rgba(8, 138, 209, 0.23);
  --hero-0: #0a2f63;
  --hero-1: #104895;
  --hero-2: #1264c8;
  --hero-glow-a: rgba(124, 193, 255, 0.3);
  --hero-glow-b: rgba(255, 255, 255, 0.12);
}

body[data-theme="fintech-slate"] {
  --bg-0: #ebf0f4;
  --bg-1: #e1e8ee;
  --bg-2: #d6e0e8;
  --ink-900: #17212b;
  --ink-700: #293847;
  --ink-500: #4e6073;
  --brand-600: #0078a8;
  --brand-700: #005f86;
  --mesh-a: rgba(0, 120, 168, 0.2);
  --mesh-b: rgba(0, 95, 134, 0.14);
  --mesh-c: rgba(0, 148, 184, 0.14);
  --ambient-a: rgba(0, 120, 168, 0.25);
  --ambient-b: rgba(0, 95, 134, 0.22);
  --hero-0: #1b2733;
  --hero-1: #1d3648;
  --hero-2: #23516c;
  --hero-glow-a: rgba(152, 211, 236, 0.2);
  --hero-glow-b: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0f1b2d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

body,
.body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Segoe UI Variable", Tahoma, Arial, sans-serif;
  color: var(--ink-900);
  background: #ffffff;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ================================================================
   SITE NAVBAR
   ================================================================ */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.site-navbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.navbar-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #201f1e;
  white-space: nowrap;
}

.navbar-brand-accent {
  color: #0078d4;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.navbar-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #3a3a3a;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.navbar-link:hover,
.navbar-link.is-active {
  background: #f0f4f8;
  color: #0078d4;
  text-decoration: none;
}

.navbar-link-cta {
  background: #0078d4;
  color: #ffffff !important;
  font-weight: 600;
}

.navbar-link-cta:hover {
  background: #106ebe;
  color: #ffffff;
}

.navbar-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.navbar-demo-toggle,
.navbar-theme-label {
  font-size: 12px;
  color: #605e5c;
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
}

.navbar-hamburger span {
  display: block;
  height: 2px;
  background: #3a3a3a;
  border-radius: 2px;
  transition: all .2s;
}

.navbar-mobile-menu {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 8px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar-mobile-link {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #3a3a3a;
  text-decoration: none;
}

.navbar-mobile-link:hover {
  background: #f0f4f8;
  color: #0078d4;
}

.navbar-mobile-link-cta {
  background: #0078d4;
  color: #ffffff !important;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  .navbar-demo-toggle,
  .navbar-theme-label {
    display: none;
  }
  .theme-select {
    display: none;
  }
  .navbar-hamburger {
    display: flex;
  }
}

/* ================================================================
   HOMEPAGE
   ================================================================ */
.home-page {
  width: 100%;
  background: #ffffff;
}

.home-role-banner {
  border-bottom: 1px solid #e5e7eb;
  background: #f7f9fc;
  padding: 14px 20px;
}

.home-role-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.home-role-label {
  margin: 0;
  color: #005a9e;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
}

.home-role-title {
  margin: 4px 0;
  color: #1a1a2e;
  font-size: 18px;
  font-weight: 800;
}

.home-role-copy {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}

.home-role-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-role-mode {
  border: 1px solid #c7d7ec;
  border-radius: 999px;
  background: #fff;
  color: #23415f;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
}

.btn-role-mode.is-active {
  background: #0078d4;
  border-color: #0078d4;
  color: #fff;
}

.home-doc-tabs {
  padding-top: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e5e7eb;
}

.doc-tab-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-tab-button {
  border: 1px solid #d0d7e3;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.doc-tab-button:hover {
  border-color: #9cb5d8;
}

.doc-tab-button.is-active {
  border-color: #0078d4;
  color: #005a9e;
  background: #eef6fc;
}

.docs-tab-panel.is-hidden {
  display: none;
}

.comparison-matrix-wrap {
  overflow-x: auto;
}

.comparison-matrix {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-matrix th,
.comparison-matrix td {
  border-bottom: 1px solid #eef0f3;
  padding: 12px 14px;
  vertical-align: top;
  font-size: 13px;
  color: #374151;
}

.comparison-matrix th {
  background: #f8fafc;
  color: #1f2937;
  font-weight: 800;
}

.home-page[data-user-mode="end-user"] .developer-only {
  display: none;
}

.home-guided-journey {
  padding-top: 36px;
  padding-bottom: 24px;
}

.guided-journey-list {
  display: grid;
  gap: 10px;
}

.guided-step {
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, auto) minmax(220px, 1.5fr);
  gap: 12px;
  align-items: center;
}

.guided-step-label {
  font-size: 14px;
  font-weight: 800;
  color: #1f2937;
}

.guided-step-status {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.guided-step-status.state-completed {
  color: #067647;
}

.guided-step-status.state-skipped {
  color: #b54708;
}

.guided-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.btn-guided {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.btn-guided-primary {
  border-color: #0078d4;
  color: #005a9e;
  background: #eef6fc;
}

.guided-step.is-recommended {
  border-color: #9cc6ef;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.08);
}

.guided-step[data-state="locked"] .guided-step-label {
  color: #6b7280;
}

.production-checklist {
  margin-top: 22px;
  border: 1px solid #f9d7a7;
  border-radius: 12px;
  background: #fff8eb;
  padding: 16px;
}

.production-checklist .home-subsection-title {
  margin-top: 0;
}

/* Hero */
.home-hero {
  background: linear-gradient(150deg, #0e3b69 0%, #0f548c 55%, #106ebe 100%);
  color: #ffffff;
  padding: 72px 20px;
}

.home-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.home-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin: 0 0 12px;
}

.home-hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #ffffff;
}

.home-hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 680px;
  margin: 0 auto 28px;
}

.home-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn-home-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #ffffff;
  color: #0078d4;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.btn-home-primary:hover {
  background: #f0f4f8;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  color: #0078d4;
  text-decoration: none;
}

.btn-home-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.btn-home-secondary:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,.1);
  color: #ffffff;
  text-decoration: none;
}

.home-hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.home-badge {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
}

/* Sections */
.home-section {
  padding: 64px 20px;
}

.home-section-alt {
  background: #f7f9fc;
}

.home-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.home-section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 12px;
}

.home-section-lead {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 0 36px;
}

.home-subsection-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 48px 0 16px;
}

.home-inline-code {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 13px;
  background: #e8edf2;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0f548c;
}

/* Overview cards */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.home-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow .15s;
}

.home-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.home-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.home-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.home-card-body {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* API Endpoint Cards */
.api-endpoint-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #ffffff;
}

.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  background: #f7f9fc;
  transition: background .15s;
  user-select: none;
}

.api-endpoint-header:hover {
  background: #edf2f7;
}

.api-endpoint-card.is-open > .api-endpoint-header {
  background: #e8f0fe;
  border-bottom: 1px solid #c5d2ed;
}

.api-endpoint-method {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  background: #0078d4;
  color: #fff;
  font-family: 'Cascadia Code', Consolas, monospace;
  flex-shrink: 0;
}

.api-method-alt {
  background: #8764b8;
}

.api-endpoint-path {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  flex-shrink: 0;
}

.api-endpoint-summary {
  font-size: 13px;
  color: #555;
  flex: 1;
}

.api-endpoint-toggle {
  font-size: 12px;
  color: #888;
  transition: transform .2s;
  flex-shrink: 0;
}

.api-endpoint-card.is-open .api-endpoint-toggle {
  transform: rotate(180deg);
}

.api-endpoint-body {
  display: none;
  padding: 20px 18px;
  border-top: 1px solid #e5e7eb;
}

.api-endpoint-card.is-open .api-endpoint-body {
  display: block;
}

.api-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .api-cols {
    grid-template-columns: 1fr;
  }
}

.api-param-heading {
  font-size: 13px;
  font-weight: 700;
  color: #3a3a3a;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}

.api-table th {
  text-align: left;
  padding: 6px 8px;
  background: #f0f4f8;
  border-bottom: 2px solid #d0d8e4;
  font-weight: 700;
  color: #444;
}

.api-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  color: #333;
  vertical-align: top;
}

.api-table td code {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  background: #e8edf2;
  padding: 1px 5px;
  border-radius: 3px;
  color: #0f548c;
}

.api-table-wide {
  font-size: 13px;
}

.api-required {
  color: #0078d4;
  font-weight: 700;
  text-align: center;
}

.api-code-example {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  background: #0f1b2d;
  color: #b5d4f1;
  padding: 12px 14px;
  border-radius: 7px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 8px 0 0;
}

.api-desc {
  font-size: 13px;
  color: #555;
  margin: 0 0 8px;
  line-height: 1.55;
}

.api-note {
  background: #fff8e1;
  border-left: 3px solid #f5a623;
  padding: 10px 12px;
  font-size: 13px;
  color: #555;
  border-radius: 0 6px 6px 0;
  margin-top: 12px;
}

/* Flow Cards */
.flows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.flow-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 22px;
}

.flow-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.flow-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.flow-badge {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.flow-badge-primary  { background: #dbeafe; color: #1d4ed8; }
.flow-badge-warning  { background: #fef3c7; color: #92400e; }
.flow-badge-info     { background: #e0f2f1; color: #00695c; }
.flow-badge-success  { background: #dcfce7; color: #166534; }
.flow-badge-danger   { background: #fee2e2; color: #991b1b; }
.flow-badge-muted    { background: #f3f4f6; color: #4b5563; }

.flow-steps {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.7;
  padding-left: 18px;
  margin: 0 0 10px;
}

.flow-steps li {
  margin-bottom: 4px;
}

.flow-steps code {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  background: #e8edf2;
  padding: 1px 5px;
  border-radius: 3px;
  color: #0f548c;
}

.flow-branch-note {
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
  padding: 6px 10px;
  border-radius: 0 5px 5px 0;
}

/* Key Concepts */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.concept-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
}

.concept-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}

.concept-card p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.concept-card code {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  background: #e8edf2;
  padding: 1px 5px;
  border-radius: 3px;
  color: #0f548c;
}

/* Best Practices */
.best-practices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .best-practices-grid {
    grid-template-columns: 1fr;
  }
}

.bp-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 22px;
}

.bp-card-do {
  border-left: 4px solid #16a34a;
  background: #f0fdf4;
}

.bp-card-dont {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
}

.bp-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bp-list {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.7;
  padding-left: 18px;
  margin: 0;
}

.bp-list li {
  margin-bottom: 4px;
}

.bp-list code {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  background: rgba(0,0,0,.06);
  padding: 1px 5px;
  border-radius: 3px;
}

/* CTA */
.home-cta {
  background: linear-gradient(120deg, #0e3b69, #106ebe);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}

.home-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.home-cta-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}

.home-cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  margin: 0 0 28px;
}

.home-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Login page wrapper: kept inside padded area */
#loginDiv,
#authenticatedDiv {
  margin: 32px auto;
  width: min(1180px, calc(100vw - 40px));
}

body::before,
.body::before {
  content: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-shape {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: none;
  display: none;
}

.ambient-shape-1 {
  width: 320px;
  height: 320px;
  top: -180px;
  right: -130px;
  background: radial-gradient(circle at 35% 35%, var(--ambient-a), rgba(0, 120, 212, 0));
}

.ambient-shape-2 {
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle at 50% 45%, var(--ambient-b), rgba(16, 110, 190, 0));
  animation-delay: -5s;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.azure-shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-200);
  background: #f8f9fb;
}

.azure-shell-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.azure-shell-product {
  font-size: 13px;
  font-weight: 600;
  color: #201f1e;
}

.azure-shell-meta {
  font-size: 12px;
  color: #605e5c;
}

.theme-label {
  font-size: 12px;
  color: #605e5c;
}

.demo-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #605e5c;
}

.theme-select {
  min-width: 148px;
  height: 30px;
  border: 1px solid #c8c6c4;
  border-radius: 4px;
  background: #ffffff;
  color: #323130;
  font-size: 12px;
  padding: 0 8px;
}

.theme-select:focus-visible {
  outline: 2px solid rgba(0, 120, 212, 0.45);
  outline-offset: 1px;
}

#loginDiv {
  padding: 0;
  overflow: hidden;
  margin: auto;
}

.box-inner {
  font-size: 15px;
  line-height: 1.5;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(360px, 1fr);
  min-height: 580px;
}

.login-context {
  padding: 44px 42px;
  background:
    linear-gradient(165deg, var(--hero-0) 0%, var(--hero-1) 60%, var(--hero-2) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-context::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 14%, var(--hero-glow-a), transparent 36%),
    radial-gradient(circle at 12% 88%, var(--hero-glow-b), transparent 44%);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.hero-title {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(244, 248, 255, 0.94);
}

.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #c7e0f4;
  flex-shrink: 0;
}

.login-form-panel {
  padding: 42px 40px;
  display: flex;
  align-items: center;
  background: #ffffff;
  position: relative;
}

.login-form-panel::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 120, 212, 0.13), rgba(16, 110, 190, 0.06));
  border: 1px solid rgba(0, 120, 212, 0.16);
}

#form1 {
  width: 100%;
  max-width: 430px;
  position: relative;
  z-index: 1;
}

.panel-title {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.panel-subtitle {
  margin: 10px 0 22px;
  color: #605e5c;
  font-size: 0.9rem;
}

.prod-guardrail {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #fbd38d;
  background: #fff7e8;
  color: #7c4a03;
  font-size: 12px;
  font-weight: 600;
}

.prod-guardrail a {
  color: #9a3412;
  font-weight: 800;
}

.flow-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 14px;
}

.flow-choice-card {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f9fbff;
  padding: 10px;
}

.flow-choice-card h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #1f2937;
}

.flow-choice-card p {
  margin: 6px 0 8px;
  font-size: 11px;
  color: #4b5563;
  line-height: 1.35;
}

.flow-choice-chip {
  display: inline-flex;
  border-radius: 999px;
  background: #e0ecfa;
  color: #005a9e;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
}

.auth-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.auth-notice-info {
  background: #eef6fc;
  color: #0b5cab;
  border: 1px solid #c7e0f4;
}

.auth-notice-success {
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
}

.auth-notice-error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.auth-flow-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #c7d7ec;
  background: #f7fbff;
  color: #1f2937;
  font-size: 12px;
  display: grid;
  gap: 4px;
}

.auth-flow-status.is-info {
  border-color: #c7d7ec;
  background: #f7fbff;
}

.auth-flow-status.is-success {
  border-color: #abefc6;
  background: #ecfdf3;
}

.auth-flow-status.is-warning {
  border-color: #f9d7a7;
  background: #fff8eb;
}

.auth-flow-status.is-error {
  border-color: #fecdca;
  background: #fef3f2;
}

.auth-flow-status .flow-line-title {
  font-size: 12px;
  font-weight: 800;
}

.auth-flow-status .flow-line-step {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.auth-flow-status .flow-line-next {
  font-size: 11px;
  color: #4b5563;
}

.auth-flow-status .flow-line-endpoint {
  font-size: 11px;
  color: #475467;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.auth-flow-status .flow-line-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-flow-status .flow-time-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d0ddf0;
  background: rgba(255, 255, 255, 0.8);
  color: #344054;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}

.auth-flow-log {
  margin: 0 0 12px;
  border: 1px solid #d0ddf0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.flow-log-title {
  font-size: 12px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 8px;
}

.flow-log-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.flow-log-item {
  display: grid;
  gap: 2px;
}

.flow-log-stage {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

.flow-log-meta {
  font-size: 11px;
  color: #475467;
}

.flow-log-endpoint {
  font-size: 11px;
  color: #475467;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.flow-comparison-summary {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d0ddf0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #f5f8ff 100%);
}

.flow-compare-title {
  font-size: 13px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 8px;
}

.flow-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.flow-compare-card {
  border: 1px solid #d0ddf0;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  gap: 3px;
}

.flow-compare-label {
  font-size: 11px;
  font-weight: 700;
  color: #475467;
}

.flow-compare-flow {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
}

.flow-compare-time {
  font-size: 14px;
  font-weight: 800;
  color: #1d4ed8;
}

.flow-compare-meta {
  font-size: 11px;
  color: #475467;
}

.flow-compare-delta {
  margin-top: 8px;
  font-size: 12px;
  color: #344054;
}

@media (max-width: 640px) {
  .flow-compare-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-top: 12px;
}

.form-control-textarea {
  min-height: 94px;
  resize: vertical;
  padding: 12px;
}

.field-help {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.5;
}

.form-control {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-200);
  background: var(--surface-muted);
  color: var(--ink-900);
  font-size: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-control::placeholder {
  color: #7b8ea7;
}

.form-control:focus {
  border-color: #0078d4;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.form-control:focus-visible,
.btn-primary:focus-visible,
.mfa-btn-cancel:focus-visible,
.btn-add-phone:focus-visible,
.btn-token-raw:focus-visible,
.token-card-header:focus-visible,
.mfa-method-btn:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid rgba(23, 92, 211, 0.35);
  outline-offset: 2px;
}

.mt-password {
  margin-top: 14px;
}

.btn-primary {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--brand-600);
  color: #fff;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: none;
  background: var(--brand-700);
  box-shadow: none;
}

.flow-btn {
  min-height: 50px;
}

.flow-btn-secondary {
  background: #fff;
  color: var(--ink-700);
  border-color: #c8c6c4;
}

.flow-btn-secondary:hover,
.flow-btn-secondary:focus {
  box-shadow: none;
  border-color: #8a8886;
  color: var(--ink-900);
}

.flow-btn-native {
  margin-top: 16px;
}

#authenticatedDiv {
  padding: 34px;
  width: min(1080px, calc(100vw - 32px));
}

#authenticatedDiv > h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-900);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.auth-actions #form2 {
  margin: 0;
}

.auth-actions #form2 .btn-primary {
  margin-top: 0;
  min-width: 140px;
}

.btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 140px;
  border: 1px solid #c8c6c4;
  border-radius: 4px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-settings:hover,
.btn-settings:focus-visible {
  border-color: #8a8886;
  color: var(--ink-900);
  text-decoration: none;
}

.settings-page-body {
  justify-content: flex-start;
  padding-top: 28px;
}

.settings-page {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
}

.settings-inner {
  padding: 28px;
}

.settings-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink-900);
}

.settings-subtitle {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 0.95rem;
}

.settings-toolbar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-last-updated {
  font-size: 12px;
  color: var(--ink-500);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-btn {
  border: 1px solid #c8c6c4;
  border-radius: 4px;
  min-height: 38px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-btn:hover,
.settings-btn:focus-visible {
  border-color: #8a8886;
  color: var(--ink-900);
  text-decoration: none;
}

.settings-table-wrap {
  margin-top: 14px;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  overflow: hidden;
}

.settings-group {
  margin-top: 18px;
}

.settings-group:first-child {
  margin-top: 14px;
}

.settings-group-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.settings-table thead {
  background: #f6f8fb;
}

.settings-table th,
.settings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-200);
  text-align: left;
  vertical-align: top;
}

.settings-table th {
  font-size: 12px;
  color: var(--ink-700);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.settings-table td {
  font-size: 13px;
  color: var(--ink-900);
}

.settings-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--ink-700);
}

.settings-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.settings-empty {
  padding: 16px;
  color: var(--ink-500);
  font-size: 14px;
}

.content-header {
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink-900);
}

.mfa-dialog {
  border: none;
  border-radius: var(--radius-lg);
  width: min(520px, 92vw);
  padding: 0;
  box-shadow: var(--shadow-lg);
}

.mfa-dialog::backdrop {
  background: rgba(15, 27, 45, 0.56);
}

.mfa-dialog-inner {
  padding: 28px;
}

.mfa-dialog-inner .title {
  margin-bottom: 8px;
}

.mfa-dialog-inner .content-header {
  margin-bottom: 14px;
}

.mfa-method-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
}

.mfa-method-btn:hover {
  background: #f8fbff;
  border-color: #c3d2e7;
}

.mfa-method-btn .mfa-method-channel {
  color: var(--brand-700);
}

.mfa-method-btn .mfa-method-hint {
  color: var(--ink-700);
  margin-left: 6px;
}

.mfa-btn {
  margin-top: 14px;
}

.mfa-btn-cancel {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-200);
  background: #fff;
  color: var(--ink-700);
  font-weight: 700;
}

.mfa-btn-cancel:hover {
  border-color: #b7c6dc;
  background: #f9fbff;
}

.secondary-flow-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.btn-inline-link {
  border: 0;
  background: transparent;
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.btn-inline-link:hover,
.btn-inline-link:focus-visible {
  text-decoration: underline;
}

.token-section-title {
  margin: 24px 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-900);
}

.demo-mode-warning {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}

.profile-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.profile-graph-config {
  border: 1px solid var(--line-200);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.profile-graph-config-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-graph-config-row .form-control {
  flex: 1;
  min-width: 0;
}

.profile-graph-meta {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-200);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ink-700);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.profile-chip {
  border: 1px solid var(--line-200);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
}

.profile-chip-label {
  display: block;
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-chip-value {
  display: block;
  margin-top: 4px;
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.profile-chip-value.is-locale {
  color: #005a9e;
}

.token-card {
  margin-bottom: 12px;
  border: 1px solid var(--line-200);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.token-card-header {
  width: 100%;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8f9fa;
  cursor: pointer;
  appearance: none;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}

.token-card-header:hover {
  background: #f3f2f1;
}

.token-card-label {
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
}

.token-toggle {
  color: var(--ink-500);
  font-size: 12px;
  transition: transform 0.2s;
}

.token-scopes {
  padding: 6px 14px;
}

.token-scope-label {
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 700;
}

.token-scope-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #deecf9;
  color: #005a9e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  margin: 3px 4px 0 0;
}

.token-body {
  margin: 0;
  padding: 12px 14px;
  background: #fbfbfb;
  border-top: 1px solid var(--line-200);
  color: var(--ink-700);
  font-size: 12px;
  line-height: 1.45;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.token-raw {
  background: #f6f8fb;
}

.token-raw-toggle {
  padding: 8px 14px;
  border-top: 1px solid var(--line-200);
  background: #fff;
}

.token-lifetime {
  padding: 8px 14px 0;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.token-lifetime.state-good {
  color: #067647;
}

.token-lifetime.state-warning {
  color: #b54708;
}

.token-lifetime.state-critical {
  color: #b42318;
}

.token-guidance-banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: #7a271a;
  font-size: 13px;
  font-weight: 700;
}

.token-guidance-copy {
  line-height: 1.4;
}

.token-guidance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-token-guidance {
  border: 1px solid #fda29b;
  border-radius: 8px;
  background: #fff;
  color: #7a271a;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.btn-token-guidance:hover {
  border-color: #f97066;
}

.refresh-schedule-indicator {
  margin-bottom: 12px;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.refresh-schedule-mode {
  color: #005a9e;
  font-size: 12px;
  font-weight: 800;
}

.refresh-schedule-row {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.refresh-schedule-label {
  color: var(--ink-500);
  font-weight: 700;
  margin-right: 6px;
}

.btn-token-raw {
  border: 1px solid var(--line-200);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.btn-token-raw:hover {
  border-color: #b9c9de;
  color: var(--ink-900);
}

.auth-methods-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-methods-loading {
  color: var(--ink-500);
  font-size: 13px;
  padding: 8px 0 12px;
}

.auth-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-200);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.auth-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #deecf9;
  color: #005a9e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.auth-method-info {
  flex: 1;
  min-width: 0;
}

.auth-method-type {
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
}

.auth-method-detail {
  color: var(--ink-700);
  font-size: 12px;
  margin-top: 2px;
  word-break: break-word;
}

.auth-method-id {
  color: var(--ink-500);
  font-size: 11px;
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.auth-methods-error {
  color: var(--danger-600);
  font-size: 13px;
}

.operator-message {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-200);
  background: #f8fafc;
  color: var(--ink-700);
  font-size: 13px;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.operator-search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.operator-search-input {
  height: 40px;
}

.operator-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.operator-history-chip {
  border: 1px solid var(--line-200);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.operator-history-chip:hover {
  border-color: #8a8886;
  color: var(--ink-900);
}

.operator-card {
  border: 1px solid var(--line-200);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.operator-card-wide {
  grid-column: 1 / -1;
}

.operator-card-title {
  margin: 0 0 10px;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
}

.operator-kv {
  display: grid;
  gap: 8px;
}

.operator-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-200);
}

.operator-kv-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.operator-kv-key {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.operator-kv-value {
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.operator-summary-list {
  display: grid;
  gap: 8px;
}

.operator-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  background: #fbfdff;
  align-items: center;
}

.operator-summary-name {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
}

.operator-summary-metric {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.provenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.provenance-card {
  border: 1px solid var(--line-200);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  min-width: 0;
}

.provenance-claim {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 800;
}

.provenance-sources,
.provenance-value {
  margin-top: 6px;
  color: var(--ink-700);
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.provenance-conflict {
  margin-top: 8px;
  display: inline-block;
  border-radius: 999px;
  background: #fef3f2;
  color: #b42318;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  text-transform: uppercase;
}

.provenance-action {
  margin-top: 8px;
  border: 1px solid var(--line-200);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.claim-diff-grid {
  display: grid;
  gap: 12px;
}

.claim-diff-card {
  border: 1px solid var(--line-200);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.claim-diff-source {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.claim-diff-value {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-700);
  font-size: 12px;
}

.operator-drawer {
  width: min(900px, 94vw);
}

.btn-add-phone {
  border: 1px solid #c8c6c4;
  border-radius: 4px;
  padding: 7px 12px;
  background: #fff;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.btn-add-phone:hover {
  border-color: #8a8886;
  color: var(--ink-900);
}

.phone-label {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
}

.is-hidden {
  display: none;
}

@media (max-width: 960px) {
  .guided-step {
    grid-template-columns: 1fr;
  }

  .guided-step-actions {
    justify-content: flex-start;
  }

  .flow-choice-grid {
    grid-template-columns: 1fr;
  }
}

.mfa-registration-list {
  margin-bottom: 18px;
}

.field-block {
  margin-bottom: 14px;
}

.email-display {
  padding: 10px;
  background: #f6f9ff;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  color: var(--ink-700);
  font-size: 13px;
}

.diagnostic-grid {
  display: grid;
  gap: 8px;
}

.diagnostic-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line-200);
  border-radius: 8px;
  background: #fbfdff;
  font-size: 13px;
}

.diagnostic-block {
  margin-top: 14px;
}

.diagnostic-block h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
}

.diagnostic-pre {
  margin: 0;
  max-height: 180px;
  overflow: auto;
  background: #f8fafc;
  border: 1px solid var(--line-200);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
}

.no-bottom-margin {
  margin-bottom: 0;
}

#loadingDiv {
  text-align: center;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-context {
    padding: 30px 26px;
  }

  .operator-search-row {
    flex-direction: column;
  }

  .login-form-panel {
    padding: 30px 26px 32px;
  }

  #form1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body,
  .body {
    padding: 20px 10px;
  }

  .container,
  #authenticatedDiv {
    width: calc(100vw - 20px);
  }

  .login-context,
  .login-form-panel,
  #authenticatedDiv,
  .settings-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .auth-methods-header {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-add-phone {
    width: 100%;
  }

  .mfa-dialog-inner {
    padding: 20px 16px;
  }

  .azure-shell-actions {
    gap: 6px;
  }

  .azure-shell-meta,
  .theme-label {
    display: none;
  }

  .theme-select {
    min-width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, 10px, 0) scale(1.04);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
