:root {
  --bg: #f3f6fa;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-muted: #edf2f7;
  --border: rgba(15, 23, 42, 0.07);
  --border-strong: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --accent: #124b47;
  --accent-strong: #0f3f3c;
  --accent-soft: #d7f3ef;
  --accent-blue: #1f5dcf;
  --accent-blue-soft: #dce8ff;
  --success: #0f766e;
  --success-soft: #ccfbf1;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --gold: #a16207;
  --gold-strong: #854d0e;
  --gold-soft: #fef3c7;
  --danger: #be123c;
  --danger-soft: #ffe4e6;
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.04);
  --radius-panel: 1.375rem;
  --radius-card: 1.05rem;
  --radius-media: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(19, 78, 74, 0.06), transparent 32%),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.04), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.font-display {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.035em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  padding: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 1rem;
  background: linear-gradient(180deg, #0f172a, #111827);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(15, 23, 42, 0.14);
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shell-grid {
  position: relative;
  overflow-x: hidden;
}

.shell-grid::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 92px 92px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 90%);
}

.surface-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-panel);
}

.surface-card-strong {
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
  border-radius: calc(var(--radius-panel) + 0.1rem);
}

.surface-card-muted {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(248, 250, 252, 0.88);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-card);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  content: "";
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(19, 78, 74, 0.14);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  content: "";
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.status-badge::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  content: "";
}

.status-badge[data-tone="success"] {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge[data-tone="success"]::before {
  background: var(--success);
}

.status-badge[data-tone="warning"] {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge[data-tone="warning"]::before {
  background: var(--warning);
}

.status-badge[data-tone="danger"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge[data-tone="danger"]::before {
  background: var(--danger);
}

.status-badge[data-tone="info"] {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
}

.status-badge[data-tone="info"]::before {
  background: var(--accent-blue);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(248, 250, 252, 0.92);
  padding: 0.38rem 0.68rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-soft);
  white-space: nowrap;
  flex-wrap: nowrap;
  max-width: 100%;
}

.metric-value {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.85rem, 2vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.metric-card-dark {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.metric-card-top,
.stat-card-header,
.provider-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.page-heading-with-logo {
  display: flex;
  align-items: stretch;
  gap: 1.15rem;
}

.page-heading-copy {
  display: flex;
  min-height: 5.6rem;
  flex-direction: column;
  justify-content: center;
}

.page-heading-meta {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card-top {
  justify-content: space-between;
  align-items: flex-start;
}

.stat-card-header {
  gap: 0.55rem;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  border: 1px solid rgba(18, 75, 71, 0.12);
  background: linear-gradient(180deg, rgba(215, 243, 239, 0.9), rgba(255, 255, 255, 0.98));
  color: var(--accent);
}

.icon-badge-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.icon-badge-soft {
  width: 3rem;
  height: 3rem;
}

.gradient-frame {
  position: relative;
  overflow: hidden;
}

.gradient-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.12));
  content: "";
  pointer-events: none;
}

.hero-panel {
  min-height: 34rem;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.58)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.58) 0%, rgba(2, 6, 23, 0.34) 42%, rgba(2, 6, 23, 0.5) 100%);
}

.hero-content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
}

.image-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-premium {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-premium th,
.table-premium td {
  padding: 1rem 1rem 0.95rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-premium th {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table-premium tbody tr:hover {
  background: rgba(248, 250, 252, 0.95);
}

.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.wizard-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.76);
}

.wizard-step-number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-soft);
  font-weight: 700;
}

.wizard-step.is-active {
  border-color: rgba(19, 78, 74, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(215, 243, 239, 0.7));
  box-shadow: var(--shadow-md);
}

.wizard-step.is-active .wizard-step-number {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff;
}

.wizard-step.is-complete .wizard-step-number {
  background: var(--success);
  color: #fff;
}

.match-bar {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.match-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
}

.tab-trigger.is-active {
  border-color: rgba(19, 78, 74, 0.18);
  background: rgba(215, 243, 239, 0.7);
  color: var(--accent);
}

.tab-panel[hidden] {
  display: none;
}

.tooltip-anchor {
  position: relative;
}

.tooltip-anchor::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.75rem);
  width: max-content;
  max-width: 16rem;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
  content: attr(data-tooltip);
  pointer-events: none;
}

.tooltip-anchor:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-panel {
  width: min(100%, 34rem);
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.modal-panel-wide {
  width: min(100%, 70rem);
}

.message-modal-panel-compact {
  width: min(100%, 61rem);
  max-height: min(88vh, 54rem);
  overflow: auto;
}

.header-icon-button {
  display: inline-flex;
  width: 2.9rem;
  height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background:
    radial-gradient(circle at top, rgba(31, 93, 207, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.96);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.header-icon-button:hover {
  border-color: rgba(31, 93, 207, 0.24);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.message-modal-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(18, 75, 71, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(31, 93, 207, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px);
}

.message-modal-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
}

.message-side-panel {
  display: grid;
  gap: 1rem;
}

.message-side-card,
.message-form-shell,
.message-thread-window,
.message-teaser-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.message-side-card {
  padding: 1rem;
}

.message-teaser-card {
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88)),
    rgba(255, 255, 255, 0.8);
}

.message-teaser-header,
.message-teaser-actions,
.message-thread-topbar,
.message-bubble-meta,
.message-bubble-actions,
.message-attachments-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.message-teaser-preview,
.message-thread-scroll {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.message-bubble-preview,
.message-bubble {
  max-width: 42rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.25rem 1.25rem 1.25rem 0.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.message-bubble-preview.is-outbound,
.message-bubble.is-outbound {
  margin-left: auto;
  border-radius: 1.25rem 1.25rem 0.4rem 1.25rem;
  background: linear-gradient(135deg, rgba(215, 243, 239, 0.96), rgba(220, 232, 255, 0.84));
}

.message-bubble p {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.message-bubble-actions {
  justify-content: flex-start;
  margin-top: 0.8rem;
}

.message-bubble-actions button,
.message-template-pill {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 0.85rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.message-template-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.message-recipient-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.8rem 0.9rem;
  text-align: left;
}

.message-recipient-item.is-active {
  border-color: rgba(18, 75, 71, 0.32);
  background: linear-gradient(135deg, rgba(215, 243, 239, 0.82), rgba(255, 255, 255, 0.92));
}

.message-recipient-item strong,
.message-thread-badge,
.message-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.message-recipient-item small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.message-recipient-avatar {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.message-recipient-avatar.is-admin {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.message-composer-panel,
.message-thread-panel {
  min-width: 0;
}

.message-form-shell,
.message-thread-window {
  padding: 1.25rem;
}

.message-form-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.message-form-row.is-stacked {
  grid-template-columns: 1fr;
}

.message-form-row label,
.message-teaser-eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.message-form-row input,
.message-form-row textarea,
.message-inline-composer textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  resize: none;
}

.message-attachment-chip {
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.95);
  padding: 0.55rem 0.8rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.message-thread-window {
  display: grid;
  gap: 1rem;
}

.message-thread-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.66);
  padding: 0.9rem 1rem;
}

.message-thread-summary-group {
  display: grid;
  gap: 0.45rem;
}

.message-thread-summary-avatars {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.message-thread-summary-avatars .message-recipient-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
}

.message-thread-topbar {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.message-thread-badge {
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.9);
  padding: 0.55rem 0.8rem;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
}

.message-thread-scroll {
  max-height: 18rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.message-inline-composer {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.message-inline-composer textarea {
  margin-top: 0.6rem;
  min-height: 5.25rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.85rem 1rem;
}

.message-modal-panel-compact .message-thread-window {
  padding: 1rem;
}

.message-modal-panel-compact .message-bubble {
  padding: 0.85rem 0.95rem;
}

.message-modal-panel-compact .message-bubble p {
  line-height: 1.6;
}

.message-modal-panel-compact .message-bubble-actions {
  margin-top: 0.65rem;
}

@media (max-width: 920px) {
  .message-modal-grid {
    grid-template-columns: 1fr;
  }
}

.route-map-shell {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rfq-review-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.review-export-hint {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.route-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.route-map-card {
  position: relative;
  overflow: hidden;
  min-height: 21rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top left, rgba(19, 78, 74, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
}

.route-map-canvas,
.route-map-fallback {
  min-height: 21rem;
}

.route-map-canvas.hidden,
.route-map-fallback.hidden {
  display: none;
}

.route-map-canvas {
  width: 100%;
  height: 100%;
}

.route-map-fallback {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.route-fallback-visual {
  display: grid;
  width: min(100%, 36rem);
  gap: 1rem;
}

.route-fallback-node {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.route-fallback-node-end {
  justify-content: flex-end;
}

.route-fallback-dot {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  box-shadow: 0 0 0 6px rgba(31, 93, 207, 0.08);
}

.route-fallback-line {
  height: 0.35rem;
  margin: 0 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 75, 71, 0.9), rgba(31, 93, 207, 0.9));
}

.route-fallback-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-fallback-value {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.leaflet-container {
  font: inherit;
  background: #dce8f5;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .rfq-review-toolbar {
    align-items: flex-start;
  }

  .route-map-card,
  .route-map-canvas,
  .route-map-fallback {
    min-height: 17rem;
  }

  .route-fallback-value {
    font-size: 0.95rem;
  }
}

.loading-overlay,
.loading-region-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading-overlay {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.loading-region {
  position: relative;
}

.loading-region.is-loading > *:not(.loading-region-overlay) {
  opacity: 0.18;
  pointer-events: none;
  filter: blur(1.5px);
}

.loading-region-overlay {
  position: absolute;
  z-index: 6;
  border-radius: 1.45rem;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.92), rgba(243, 246, 250, 0.9));
  opacity: 1;
  visibility: visible;
}

.loading-state {
  display: flex;
  width: min(100%, 28rem);
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-lg);
}

.loading-state-compact {
  width: min(100%, 24rem);
  box-shadow: var(--shadow-md);
}

.loading-spinner-wrap {
  position: relative;
  display: inline-flex;
  width: 3.4rem;
  height: 3.4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.loading-spinner-ring,
.loading-spinner-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.loading-spinner-ring {
  border: 3px solid rgba(18, 75, 71, 0.12);
  border-top-color: var(--accent);
  border-right-color: var(--accent-blue);
  animation: loading-spin 0.9s linear infinite;
}

.loading-spinner-icon {
  color: var(--accent);
  animation: loading-pulse 1.1s ease-in-out infinite;
}

.loading-copy strong,
.loading-copy p {
  display: block;
  margin: 0;
}

.loading-copy strong {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.loading-copy p {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.68;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.nav-link {
  position: relative;
  color: var(--text-soft);
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: -0.6rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  content: "";
}

.command-panel-shell {
  position: fixed;
  top: 5.9rem;
  left: 1rem;
  z-index: 45;
}

.command-panel-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 12rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 1rem;
  color: var(--text);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.command-panel-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 75, 71, 0.18);
  box-shadow: var(--shadow-lg);
}

.command-panel-trigger-label {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.command-panel-trigger-copy {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.command-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(4px);
}

.command-panel {
  position: fixed;
  top: 5.9rem;
  left: 1rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
  padding: 1.2rem;
  transform: translateX(calc(-100% - 1.5rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.command-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.command-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.command-panel-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-panel-title {
  margin: 0.45rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.command-panel-copy {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.command-panel-close {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-soft);
  font-size: 1.6rem;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.command-panel-close:hover {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--text);
}

.command-panel-body {
  overflow-y: auto;
  padding-right: 0.15rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  color: var(--text-soft);
  transition: all 180ms ease;
}

.sidebar-link:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 250, 247, 0.92));
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.sidebar-link-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.06);
}

.floating-blur {
  position: absolute;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.26;
  pointer-events: none;
}

.floating-blur.one {
  top: 10%;
  right: 5%;
  width: 12rem;
  height: 12rem;
  background: rgba(19, 78, 74, 0.28);
}

.floating-blur.two {
  bottom: 5%;
  left: 10%;
  width: 14rem;
  height: 14rem;
  background: rgba(29, 78, 216, 0.18);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.74rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.pill-button:hover {
  transform: translateY(-1px);
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.locale-switch-block {
  display: grid;
  gap: 0.55rem;
}

.locale-switch-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.locale-switch {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
}

.locale-switch-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0.42rem 0.8rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.locale-switch-button:hover {
  color: var(--text);
}

.locale-switch-button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff;
  box-shadow: 0 10px 18px rgba(18, 75, 71, 0.18);
}

.flow-progress {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-step-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 104px;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.flow-step-card strong {
  font-size: 0.92rem;
}

.flow-step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.flow-step-card.is-active {
  border-color: rgba(18, 75, 71, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 250, 247, 0.92));
  box-shadow: var(--shadow-md);
}

.flow-step-index {
  display: inline-flex;
  width: 1.9rem;
  height: 1.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.flow-step-card.is-active .flow-step-index {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff;
}

.context-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.context-media img {
  min-height: 220px;
}

.context-media-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1rem 1.05rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

.context-media-meta h3,
.context-media-meta p {
  margin: 0;
}

.context-media-meta h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.context-media-meta p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.stat-card,
.insight-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 1.3rem;
}

.provider-premium-card {
  position: relative;
  border-color: rgba(161, 98, 7, 0.18);
  background:
    radial-gradient(circle at top right, rgba(254, 240, 138, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 34px rgba(161, 98, 7, 0.08);
}

.provider-premium-card[data-tier="silver"] {
  border-color: rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.97));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
}

.provider-premium-card::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.provider-premium-card[data-tier="silver"]::before {
  border-color: rgba(96, 165, 250, 0.24);
}

.provider-premium-quote .surface-card-muted {
  border: 1px solid rgba(161, 98, 7, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.9), rgba(255, 255, 255, 0.94));
}

.provider-premium-quote[data-tier="silver"] .surface-card-muted {
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.95));
}

.premium-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(161, 98, 7, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(254, 240, 138, 0.38), rgba(255, 251, 235, 0.96));
  color: var(--gold-strong);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.premium-provider-badge[data-tier="silver"] {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.8), rgba(239, 246, 255, 0.96));
  color: #1d4ed8;
}

.premium-provider-badge svg,
.premium-provider-badge i {
  flex-shrink: 0;
}

.premium-provider-badge-inline {
  padding: 0.28rem 0.56rem;
  font-size: 0.66rem;
}

.premium-provider-note {
  color: var(--gold-strong);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.provider-premium-card[data-tier="silver"] .premium-provider-note {
  color: #1d4ed8;
}

.provider-tier-panel {
  margin-top: 1rem;
  border: 1px solid rgba(161, 98, 7, 0.14);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.98));
  padding: 1rem 1rem 0.95rem;
}

.provider-tier-panel[data-tier="silver"] {
  border-color: rgba(37, 99, 235, 0.14);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.98));
}

.provider-tier-panel-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.provider-tier-icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(161, 98, 7, 0.12);
  color: var(--gold-strong);
}

.provider-tier-panel[data-tier="silver"] .provider-tier-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.provider-tier-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.provider-tier-name {
  margin: 0.16rem 0 0;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.provider-tier-copy {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.provider-logo {
  position: relative;
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92));
  overflow: hidden;
}

.page-heading-logo {
  width: 5.6rem;
  height: 5.6rem;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 1.35rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.provider-logo-sm {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
}

.provider-logo-mark {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.provider-logo-caption {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.provider-logo-image-shell {
  padding: 0.35rem;
}

.provider-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.provider-logo-theme-teal {
  background: linear-gradient(180deg, rgba(215, 243, 239, 0.95), rgba(248, 250, 252, 0.92));
  color: #124b47;
}

.provider-logo-theme-blue {
  background: linear-gradient(180deg, rgba(220, 232, 255, 0.95), rgba(248, 250, 252, 0.92));
  color: #1f5dcf;
}

.provider-logo-theme-sand {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.82), rgba(255, 251, 235, 0.96));
  color: #b45309;
}

.provider-logo-theme-emerald {
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.95), rgba(240, 253, 250, 0.96));
  color: #0f766e;
}

.provider-logo-theme-slate {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.95), rgba(248, 250, 252, 0.96));
  color: #334155;
}

.provider-logo-theme-sky {
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.95), rgba(248, 250, 252, 0.96));
  color: #0369a1;
}

.insight-card {
  padding: 1.1rem 1.15rem;
}

.premium-form input:not([type="checkbox"]):not([type="radio"]),
.premium-form select,
.premium-form textarea,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 0.95rem !important;
  background: rgba(255, 255, 255, 0.96) !important;
  padding: 0.84rem 0.95rem !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-form input:not([type="checkbox"]):not([type="radio"])::placeholder,
.premium-form textarea::placeholder,
input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.premium-form input:not([type="checkbox"]):not([type="radio"]):focus,
.premium-form select:focus,
.premium-form textarea:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(18, 75, 71, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(18, 75, 71, 0.08) !important;
}

.empty-state {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.86));
  padding: 1.4rem;
}

.rounded-2xl {
  border-radius: 0.95rem !important;
}

.rounded-\[2\.4rem\] {
  border-radius: 1.75rem !important;
}

.rounded-\[2\.2rem\] {
  border-radius: 1.55rem !important;
}

.rounded-\[2rem\] {
  border-radius: 1.45rem !important;
}

.rounded-\[1\.8rem\] {
  border-radius: 1.28rem !important;
}

.rounded-\[1\.7rem\] {
  border-radius: 1.2rem !important;
}

.rounded-\[1\.6rem\] {
  border-radius: 1.16rem !important;
}

.rounded-\[1\.5rem\] {
  border-radius: 1.08rem !important;
}

.rounded-\[1\.4rem\] {
  border-radius: 0.98rem !important;
}

.rounded-\[1\.3rem\] {
  border-radius: 0.9rem !important;
}

.rounded-\[1\.2rem\] {
  border-radius: 0.86rem !important;
}

.shadow-2xl {
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.09) !important;
}

@media (max-width: 1024px) {
  .nav-link.is-active::after {
    display: none;
  }

  .command-panel-shell,
  .command-panel {
    top: 5.4rem;
  }

  .flow-progress {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .flow-step-card {
    min-width: 220px;
    flex: 0 0 220px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .shell-grid main .grid > *,
  .shell-grid main .flex > *,
  .provider-heading,
  .provider-heading > *,
  .page-heading-with-logo,
  .page-heading-with-logo > * {
    min-width: 0;
  }

  .surface-card h1,
  .surface-card h2,
  .surface-card h3,
  .surface-card p,
  .stat-card h1,
  .stat-card h2,
  .stat-card h3,
  .stat-card p,
  .insight-card p,
  .context-media h3,
  .context-media p,
  .surface-card-muted p {
    overflow-wrap: anywhere;
  }

  .command-panel-shell {
    display: none;
  }

  .command-panel-trigger {
    min-width: 0;
    width: auto;
    max-width: calc(100vw - 1.5rem);
    padding: 0.75rem 0.9rem;
  }

  .command-panel {
    top: 5.2rem;
    left: 0.75rem;
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 6.2rem);
  }

  .table-scroll .table-premium {
    min-width: 42rem;
  }

  .provider-logo {
    width: 3.35rem;
    height: 3.35rem;
  }

  .page-heading-with-logo {
    align-items: flex-start;
    gap: 0.8rem;
  }

  .page-heading-copy {
    min-height: 4.5rem;
  }

  .page-heading-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.1rem;
  }

  .provider-logo-sm {
    width: 2.9rem;
    height: 2.9rem;
  }

  .context-media img {
    min-height: 180px;
  }

  .table-premium th,
  .table-premium td {
    padding: 0.8rem 0.85rem;
  }

  .loading-state {
    flex-direction: column;
    text-align: center;
  }
}
