:root {
  color-scheme: light;
  --layout-min-width: 360px;
  --auth-workspace-min-width: 1152px;
  --bg: #f4f7fb;
  --bg-soft: #eef4fb;
  --panel: #ffffff;
  --panel-strong: #f8fafc;
  --text: #152033;
  --muted: #607089;
  --line: #dbe3ef;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-ink: #ffffff;
  --danger: #b42318;
  --success: #067647;
  --warning: #c2410c;
  --shadow: 0 18px 40px rgba(30, 41, 59, 0.08);
  --input-bg: #ffffff;
  --button-text: #ffffff;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  min-width: var(--layout-min-width);
  overflow-x: auto;
}

body {
  margin: 0;
  max-width: 100%;
  min-width: var(--layout-min-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  color: var(--text);
}

html,
body,
.modal-panel,
textarea {
  scrollbar-color: color-mix(in srgb, var(--brand) 48%, var(--line)) color-mix(in srgb, var(--panel) 82%, #000 8%);
  scrollbar-width: thin;
}

html,
body {
  scrollbar-gutter: stable;
}

html.extra-settings-modal-open,
html.extra-settings-modal-open body,
body.extra-settings-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, #000 8%);
}

::-webkit-scrollbar-thumb {
  border: 2px solid color-mix(in srgb, var(--panel) 82%, #000 8%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 48%, var(--line));
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--brand) 68%, var(--line));
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  flex: 0 0 auto;
  width: min(1120px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0;
  isolation: isolate;
  background: transparent;
  border-bottom: 0;
}

.topbar::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.site-brand,
.topbar-nav,
.topbar-actions {
  position: relative;
  z-index: 1;
}

.topbar-nav,
.topbar-actions,
.oauth-row,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-nav {
  justify-content: center;
}

.topbar-actions {
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: nowrap;
  max-width: 100%;
}

.account-menu {
  position: relative;
  min-width: 0;
  flex: 0 1 auto;
}

.nav-link,
.ghost-btn,
.button-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, var(--text) 4%);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.ghost-btn:hover,
.nav-link:hover,
.button-link:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--panel) 70%, var(--brand) 12%);
}

.topbar-create-order {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-strong) 72%, #38bdf8));
  color: var(--button-text);
  font-weight: 800;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 20%, transparent);
}

.topbar-create-order:hover,
.topbar-create-order:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 88%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 86%, #ffffff 14%), var(--brand-strong));
}

.login-cta {
  min-width: 104px;
  min-height: 40px;
  padding: 0 18px;
  border-color: transparent;
  background:
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-strong) 72%, #38bdf8));
  color: var(--button-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 22%, transparent);
}

.login-cta:hover,
.login-cta.is-active {
  border-color: color-mix(in srgb, var(--brand) 88%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 86%, #ffffff 14%), var(--brand-strong));
}

.site-brand {
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.text-mark {
  color: var(--brand);
  font-family: "Arial Black", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark.has-image {
  background: transparent;
  box-shadow: none;
}

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

.brand-wordmark {
  width: clamp(150px, 12vw, 176px);
  aspect-ratio: 300 / 72;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  max-width: min(100%, calc(100vw - 156px));
  overflow: visible;
}

.brand-wordmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-name {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  color: color-mix(in srgb, var(--text) 88%, var(--brand) 12%);
  font-family: "Arial Black", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-shell {
  flex: 1 0 auto;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

body.public-home-page .page-shell {
  padding-top: 12px;
}

body.user-order-wizard .page-shell {
  flex: 1 0 auto;
  padding: 18px 0 34px;
}

body.public-auth-page {
  overflow-y: auto;
}

body.public-auth-page .page-shell {
  display: grid;
  align-items: center;
  min-height: 0;
  padding: clamp(10px, 2.5vh, 22px) 0;
}

body.public-auth-page .orders-user-main {
  display: grid;
  align-items: center;
}

.orders-user-main {
  flex: 1 0 auto;
}

.profile-main {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 34px 0 56px;
}

.user-profile-shell {
  display: grid;
  gap: 18px;
}

.user-profile-head {
  display: grid;
  gap: 6px;
}

.user-profile-head h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.user-profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 640px);
  gap: 18px;
  align-items: start;
}

.user-profile-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.user-profile-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.user-profile-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.user-profile-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.user-profile-meta div {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.user-profile-meta div:last-child {
  border-bottom: 0;
}

.user-profile-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.user-profile-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 750;
}

.home-panel {
  display: grid;
  gap: 40px;
  padding: 0 0 56px;
}

.home-panel > section {
  scroll-margin-top: 92px;
}

.home-hero {
  --home-parallax-x: 0;
  --home-parallax-y: 0;
  position: relative;
  min-height: clamp(450px, calc(100svh - 340px), 530px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--brand) 18%);
  border-radius: 8px;
  background: #07101b;
  isolation: isolate;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 13, 20, 0.98) 0%, rgba(8, 13, 20, 0.88) 36%, rgba(8, 13, 20, 0.46) 65%, rgba(8, 13, 20, 0.68) 100%),
    linear-gradient(180deg, rgba(94, 234, 212, 0.16), rgba(37, 99, 235, 0.08));
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 74% center;
  filter: saturate(1.08) contrast(1.04);
  transform:
    translate3d(calc(var(--home-parallax-x) * 1px), calc(var(--home-parallax-y) * 1px), 0)
    scale(1.12);
  transition: transform 0.18s ease-out;
}

.home-hero-content {
  width: min(720px, 100%);
  padding: 48px 56px 24px;
}

.home-hero h1 {
  max-width: 700px;
  font-size: 58px;
  line-height: 0.96;
  letter-spacing: 0;
}

.home-lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: color-mix(in srgb, var(--text) 76%, var(--muted));
  font-size: 18px;
  line-height: 1.55;
}

.home-analytics-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.home-analytics-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 82%, var(--brand) 8%), color-mix(in srgb, var(--panel) 82%, transparent));
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 7%, transparent);
}

.home-analytics-badges span:first-child {
  border-color: color-mix(in srgb, #fc3f1d 34%, var(--line));
  color: color-mix(in srgb, #ffffff 84%, #fc3f1d);
}

.home-analytics-badges span:nth-child(2) {
  border-color: color-mix(in srgb, #f59e0b 38%, var(--line));
  color: color-mix(in srgb, #ffffff 82%, #f59e0b);
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--brand-strong);
}

.home-primary-link {
  min-height: 48px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-strong) 62%, #38bdf8));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 22%, transparent);
}

.ghost-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ghost-link:hover {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  background: color-mix(in srgb, var(--panel) 68%, var(--brand) 10%);
}

.home-hero-facts {
  display: grid;
  width: min(1030px, calc(100vw - 112px));
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.home-hero-facts span,
.home-stats-strip div {
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.home-hero-facts strong,
.home-stats-strip strong {
  display: block;
  color: var(--text);
  font-family: "Arial Black", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.05;
}

.home-hero-facts span {
  position: relative;
  min-height: 98px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  align-items: start;
  justify-items: start;
  row-gap: 9px;
  padding: 17px 15px 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 84%, var(--text) 2%), color-mix(in srgb, var(--panel) 82%, transparent));
  border-color: color-mix(in srgb, var(--line) 78%, var(--brand) 14%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 6%, transparent);
  overflow-wrap: normal;
}

.home-hero-facts span::before,
.home-hero-facts span::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-hero-facts span::before {
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cap-color, var(--brand)) 74%, transparent);
  opacity: 0.82;
}

.home-hero-facts span::after {
  inset: auto 10px 10px auto;
  width: 74px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cap-color, var(--brand)) 24%, transparent), transparent 68%);
  opacity: 0.46;
  filter: blur(2px);
}

.home-hero-capability.is-search {
  --cap-color: #5eead4;
}

.home-hero-capability.is-route {
  --cap-color: #60a5fa;
}

.home-hero-capability.is-time {
  --cap-color: #22d3ee;
}

.home-hero-capability.is-depth {
  --cap-color: #34d399;
}

.home-hero-capability.is-actions {
  --cap-color: #a78bfa;
}

.home-hero-facts strong {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
}

.home-hero-facts small {
  display: block;
  color: color-mix(in srgb, var(--muted) 90%, var(--text));
  font-size: 11px;
  font-weight: 750;
  line-height: 1.22;
  max-width: 100%;
  overflow-wrap: normal;
}

.home-hero-more {
  max-width: 760px;
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--muted) 84%, var(--text));
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.home-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.home-stats-strip div {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px 16px;
  border-color: color-mix(in srgb, var(--line) 70%, var(--brand) 16%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 88%, var(--brand) 5%), color-mix(in srgb, var(--panel) 92%, transparent));
  text-align: center;
}

.home-stats-strip div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 76%, #60a5fa);
  transform: translateX(-50%);
}

.home-stats-strip strong {
  width: 100%;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(24px, 1.65vw, 30px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#legacy-home-stat-total-visits {
  font-size: clamp(20px, 1.35vw, 25px);
}

#legacy-home-stat-duration {
  font-size: clamp(21px, 1.45vw, 26px);
}

.home-stats-strip span {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 142px;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.home-control-section,
.home-screens-section,
.home-visual-section,
.home-seo-section,
.home-cta-band {
  display: grid;
  gap: 22px;
}

.home-section-head {
  max-width: 780px;
}

.home-section-head h2,
.home-flow-copy h2,
.home-cta-band h2 {
  max-width: 760px;
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.home-section-head p,
.home-flow-copy p,
.home-cta-band p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.home-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.home-behavior-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 84%, var(--brand) 9%), color-mix(in srgb, var(--panel) 94%, transparent));
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 color-mix(in srgb, #ffffff 5%, transparent);
}

.home-behavior-strip strong,
.home-behavior-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  white-space: nowrap;
}

.home-behavior-strip strong {
  padding: 0 12px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.home-behavior-strip span {
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
  font-size: 13px;
  font-weight: 800;
}

.home-visit-tree {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.64fr) minmax(0, 1.36fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--brand) 14%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 82%, var(--brand) 5%), color-mix(in srgb, var(--panel) 94%, transparent));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.home-visit-tree-root,
.home-visit-node {
  position: relative;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 88%, var(--text) 3%), color-mix(in srgb, var(--panel) 94%, transparent));
  overflow: hidden;
}

.home-visit-tree-root {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 246px;
  padding: 24px;
}

.home-visit-tree-root::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -19px;
  width: 18px;
  height: 2px;
  background: color-mix(in srgb, var(--brand) 62%, var(--line));
  transform: translateY(-50%);
}

.home-visit-tree-root span {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 44%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-visit-tree-root strong {
  max-width: 280px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.12;
}

.home-visit-tree-root p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.home-visit-tree-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.home-visit-tree-branches::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: -10px;
  width: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.home-visit-node {
  --node-accent: var(--brand);
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 176px;
  padding: 16px 16px 15px;
}

.home-visit-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--node-accent) 76%, transparent);
}

.home-visit-node::after {
  content: "";
  position: absolute;
  top: 27px;
  left: -13px;
  width: 13px;
  height: 2px;
  background: color-mix(in srgb, var(--node-accent) 54%, var(--line));
}

.home-visit-node.is-route { --node-accent: #5eead4; }
.home-visit-node.is-source { --node-accent: #60a5fa; }
.home-visit-node.is-audience { --node-accent: #34d399; }
.home-visit-node.is-schedule { --node-accent: #22d3ee; }
.home-visit-node.is-pro { --node-accent: #a78bfa; }
.home-visit-node.is-price { --node-accent: #fbbf24; }

.home-visit-node h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.12;
  white-space: nowrap;
}

.home-visit-node ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-visit-node li {
  position: relative;
  min-width: 0;
  padding-left: 14px;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: 13px;
  line-height: 1.35;
}

.home-visit-node li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--node-accent) 82%, var(--text));
}

.home-visit-node li strong {
  color: color-mix(in srgb, var(--text) 92%, var(--node-accent));
  font-weight: 900;
}

.home-feature-card {
  position: relative;
  min-width: 0;
  min-height: 136px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 88%, var(--text) 3%), color-mix(in srgb, var(--panel) 94%, transparent));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
  overflow: hidden;
}

.home-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent, var(--brand)) 76%, transparent);
}

.home-feature-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 72px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent, var(--brand)) 16%, transparent), transparent 68%);
  pointer-events: none;
}

.home-feature-card:hover {
  border-color: color-mix(in srgb, var(--brand) 46%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 82%, var(--brand) 7%), color-mix(in srgb, var(--panel) 94%, transparent));
  transform: translateY(-2px);
}

.home-feature-card-wide {
  grid-column: span 2;
}

.home-feature-card-accent {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 82%, var(--brand) 8%), color-mix(in srgb, var(--panel) 92%, transparent));
}

.home-feature-card-trust {
  grid-column: span 2;
}

.home-feature-card.is-entry { --card-accent: #5eead4; }
.home-feature-card.is-source { --card-accent: #60a5fa; }
.home-feature-card.is-schedule { --card-accent: #22d3ee; }
.home-feature-card.is-geo { --card-accent: #34d399; }
.home-feature-card.is-pro { --card-accent: #a78bfa; }
.home-feature-card.is-price { --card-accent: #fbbf24; }

.home-feature-visual {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-feature-icon {
  width: fit-content;
  min-width: 46px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
  color: var(--brand);
  font-family: "Arial Black", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.home-feature-art {
  width: min(44%, 170px);
  min-width: 104px;
  height: 72px;
  color: color-mix(in srgb, var(--brand) 78%, #60a5fa);
  opacity: 0.86;
  filter: drop-shadow(0 12px 26px color-mix(in srgb, var(--brand) 18%, transparent));
}

.home-feature-art path,
.home-feature-art rect,
.home-feature-art circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-feature-art circle,
.home-feature-art rect:first-child {
  fill: color-mix(in srgb, var(--brand) 16%, transparent);
}

.home-feature-card-wide .home-feature-art,
.home-feature-card-trust .home-feature-art {
  width: min(46%, 230px);
  height: 86px;
}

.home-feature-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.12;
  white-space: nowrap;
}

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

.home-screens-section {
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--brand) 12%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.home-screens-section .home-flow-copy {
  max-width: none;
}

.home-screens-section .home-flow-copy p {
  max-width: 860px;
}

.home-screenshot-showcase {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.home-screenshot-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 76%, var(--brand) 18%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 90%, var(--text) 2%), color-mix(in srgb, var(--panel) 96%, transparent));
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 color-mix(in srgb, #ffffff 6%, transparent);
}

.home-screenshot-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--panel-strong) 76%, transparent);
}

.home-screenshot-head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 44%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.home-screenshot-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-screenshot-card img {
  width: 100%;
  aspect-ratio: 1.295 / 1;
  max-height: 390px;
  display: block;
  object-position: top center;
  object-fit: contain;
  background: #111827;
}

.home-visual-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--brand) 12%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.home-flow-graphic {
  min-height: 420px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.home-flow-map {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 31, 49, 0.94), rgba(8, 13, 20, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(148, 163, 184, 0.08) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(148, 163, 184, 0.08) 31px 32px);
}

.home-flow-map::before,
.home-flow-map::after {
  content: "";
  position: absolute;
  inset: 54px 34px 64px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.home-flow-map::after {
  inset: 92px 92px 88px;
  border-color: color-mix(in srgb, #60a5fa 28%, transparent);
  transform: rotate(18deg);
}

.home-flow-map span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 16%, transparent);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.home-flow-map span::after {
  content: attr(data-city);
  position: absolute;
  left: 16px;
  top: -6px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.home-flow-map span:nth-child(1) { left: 42%; top: 33%; }
.home-flow-map span:nth-child(2) { left: 32%; top: 22%; }
.home-flow-map span:nth-child(3) { left: 62%; top: 46%; }
.home-flow-map span:nth-child(4) { left: 53%; top: 61%; }
.home-flow-map span:nth-child(5) { left: 24%; top: 70%; }

.home-flow-map span.is-active {
  background: #38bdf8;
  box-shadow:
    0 0 0 8px rgba(56, 189, 248, 0.18),
    0 0 30px rgba(94, 234, 212, 0.42);
  transform: scale(1.18);
}

.home-flow-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-demo-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-demo-controls button {
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 74%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.home-demo-controls button:hover,
.home-demo-controls button.is-active {
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, var(--panel-strong));
  color: var(--text);
  transform: translateY(-1px);
}

.home-demo-live {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 78%, var(--brand) 7%), color-mix(in srgb, var(--panel) 92%, transparent));
}

.home-demo-live strong,
.home-demo-live span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-demo-live strong {
  color: var(--text);
  font-size: 16px;
}

.home-demo-live span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.home-flow-panels div {
  min-height: 88px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 74%, transparent);
}

.home-flow-panels b,
.home-flow-panels span {
  display: block;
  min-width: 0;
}

.home-flow-panels b {
  color: var(--text);
  font-size: 13px;
}

.home-flow-panels span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.home-steps strong {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand);
  color: var(--button-text);
  font-family: "Arial Black", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.home-steps span {
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  font-size: 14px;
  line-height: 1.4;
}

.home-seo-section {
  padding: 0;
}

.home-keyword-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-keyword-list span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
  font-size: 13px;
  font-weight: 800;
}

.home-cta-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-strong) 82%, var(--brand) 9%), color-mix(in srgb, var(--panel) 92%, transparent));
}

.auth-first {
  align-items: center;
  min-height: calc(100vh - 220px);
  padding: clamp(30px, 6vw, 86px) 0;
}

body.public-auth-page .auth-first {
  min-height: 0;
  padding: clamp(10px, 2.5vh, 22px) 0;
  align-content: center;
}

.auth-first.auth-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.admin-title {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.oauth-login-panel,
.email-register-panel,
.password-reset-panel {
  width: min(500px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--success) 14%);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--success) 9%, transparent), transparent 38%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 92%, var(--success) 2%));
  box-shadow:
    0 22px 54px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  grid-column: 1 / -1;
}

.oauth-login-panel {
  border-color: color-mix(in srgb, var(--line) 78%, var(--success) 14%);
}

.auth-grid.has-registration .oauth-login-panel,
.auth-grid.has-registration .email-register-panel,
.auth-grid.has-registration .password-reset-panel {
  width: min(500px, 100%);
  margin: 0 auto;
  grid-column: 1 / -1;
}

.email-register-panel {
  border-color: color-mix(in srgb, var(--line) 76%, var(--success) 18%);
}

.password-reset-panel {
  border-color: color-mix(in srgb, var(--line) 78%, var(--success) 14%);
}

.auth-view-panel.hidden {
  display: none;
}

.oauth-login-panel h1 {
  max-width: none;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
}

.auth-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.email-auth-fields {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.oauth-login-panel .email-auth-fields {
  margin-top: 8px;
}

.email-auth-fields label {
  display: grid;
  gap: 6px;
}

.email-auth-fields label span {
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
  font-size: 12.5px;
  font-weight: 760;
}

.auth-password-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.email-auth-fields label .auth-password-label-row > span {
  min-width: 0;
}

.auth-forgot-link {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.auth-forgot-link:hover,
.auth-forgot-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.auth-secondary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.auth-login-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 9px;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.auth-register-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  text-align: right;
}

.auth-login-links .link-btn {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 12px;
  font-weight: 500;
}

.auth-login-links .link-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.link-btn {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.oauth-login-panel h2,
.email-register-panel h2,
.password-reset-panel h2 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.1;
}

.oauth-login-panel input,
.email-register-panel input,
.password-reset-panel input {
  min-height: 44px;
  margin-top: 0;
  padding: 0 13px;
  border-color: color-mix(in srgb, var(--line) 82%, var(--success) 10%);
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 1px 0 rgba(15, 23, 42, 0.02);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.oauth-login-panel input:hover,
.email-register-panel input:hover,
.password-reset-panel input:hover {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
}

.oauth-login-panel input:focus,
.email-register-panel input:focus,
.password-reset-panel input:focus {
  border-color: color-mix(in srgb, var(--success) 54%, var(--line));
  outline: 3px solid color-mix(in srgb, var(--success) 16%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--success) 14%, transparent),
    0 10px 22px color-mix(in srgb, var(--success) 8%, transparent);
}

.oauth-login-panel .email-auth-fields button[type="submit"],
.email-register-panel .email-auth-fields button[type="submit"],
.password-reset-panel .email-auth-fields button[type="submit"] {
  min-height: 44px;
  margin-top: 2px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #111827, #0f172a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0;
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.oauth-login-panel .email-auth-fields button[type="submit"]:hover,
.oauth-login-panel .email-auth-fields button[type="submit"]:focus-visible,
.email-register-panel .email-auth-fields button[type="submit"]:hover,
.email-register-panel .email-auth-fields button[type="submit"]:focus-visible,
.password-reset-panel .email-auth-fields button[type="submit"]:hover,
.password-reset-panel .email-auth-fields button[type="submit"]:focus-visible {
  border-color: color-mix(in srgb, var(--success) 38%, #0f172a);
  background:
    linear-gradient(135deg, color-mix(in srgb, #0f172a 82%, var(--success) 18%), color-mix(in srgb, #111827 76%, #14b8a6 24%));
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.16),
    0 8px 20px color-mix(in srgb, var(--success) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.oauth-login-panel .link-btn,
.email-register-panel .link-btn,
.password-reset-panel .link-btn,
.auth-forgot-link {
  border-radius: 7px;
  color: color-mix(in srgb, var(--text) 58%, var(--muted));
  font-weight: 620;
  text-decoration: none;
  text-underline-offset: 3px;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    text-decoration-color 0.16s ease;
}

.auth-password-label-row .auth-forgot-link {
  margin: -2px -4px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 560;
}

.oauth-login-panel .link-btn:hover,
.oauth-login-panel .link-btn:focus-visible,
.email-register-panel .link-btn:hover,
.email-register-panel .link-btn:focus-visible,
.password-reset-panel .link-btn:hover,
.password-reset-panel .link-btn:focus-visible,
.auth-forgot-link:hover,
.auth-forgot-link:focus-visible {
  background: color-mix(in srgb, var(--success) 10%, transparent);
  color: color-mix(in srgb, var(--success) 76%, var(--text));
  outline: none;
  text-decoration: none;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.email-verification-notice {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 44%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--warning) 11%, var(--panel));
}

.email-verification-notice > span {
  color: var(--text);
  font-weight: 850;
}

.email-verification-resend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--shadow);
}

.admin-sidebar-title {
  padding: 4px 4px 8px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-title h2 {
  margin: 0;
  font-size: 20px;
}

.admin-sidebar-group {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.admin-sidebar-label {
  margin: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-btn {
  justify-content: flex-start;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.admin-nav-btn:hover,
.admin-nav-btn.is-active {
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
  color: var(--text);
}

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

body.admin-page .topbar,
body.admin-page .page-shell {
  width: calc(100% - 28px);
  max-width: none;
}

body.admin-page .page-shell {
  padding-top: 18px;
}

body.admin-page .admin-title {
  padding: 16px 0 18px;
}

body.admin-page .admin-layout {
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 14px;
}

body.admin-page .admin-main {
  gap: 14px;
}

body.admin-page .panel {
  padding: 18px;
}

@media (min-width: 1600px) {
  body.admin-page .admin-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  body.admin-page .topbar,
  body.admin-page .page-shell {
    width: calc(100% - 20px);
  }

  body.admin-page .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-tab-panel {
  min-width: 0;
}

.admin-settings-form {
  display: contents;
}

.settings-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.admin-feature-switch {
  min-height: 104px;
  margin: 18px 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--brand));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, var(--brand) 6%);
}

.admin-feature-switch-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-feature-switch-kicker {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-feature-switch-copy strong {
  font-size: 17px;
}

.admin-feature-switch-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-feature-toggle {
  flex: 0 0 auto;
  min-width: 142px;
  min-height: 46px;
  padding: 0 14px 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--success) 48%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--success) 9%, var(--panel));
  color: color-mix(in srgb, var(--success) 78%, var(--text));
  box-shadow: none;
}

.admin-feature-toggle:hover {
  border-color: color-mix(in srgb, var(--success) 70%, var(--line));
  background: color-mix(in srgb, var(--success) 14%, var(--panel));
  transform: none;
}

.admin-feature-toggle[data-enabled="false"] {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  background: color-mix(in srgb, var(--danger) 6%, var(--panel));
  color: color-mix(in srgb, var(--danger) 72%, var(--text));
}

.admin-feature-toggle-track {
  width: 38px;
  height: 22px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 999px;
  background: var(--success);
  transition: background 0.16s ease, justify-content 0.16s ease;
}

.admin-feature-toggle[data-enabled="false"] .admin-feature-toggle-track {
  justify-content: flex-start;
  background: color-mix(in srgb, var(--muted) 68%, var(--line));
}

.admin-feature-toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 31, 49, 0.24);
}

.admin-feature-toggle-label {
  min-width: 70px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.admin-feature-toggle.is-loading {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 680px) {
  .admin-feature-switch {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .admin-feature-toggle {
    width: 100%;
  }
}

.dashboard {
  display: grid;
  gap: 22px;
}

.dashboard.is-wizard > .section-head,
.dashboard.is-wizard > .dashboard-tabs,
.dashboard.is-wizard > .tab-panel {
  display: none;
}

.order-wizard-panel {
  width: min(940px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.order-wizard-form {
  display: grid;
  gap: 28px;
  padding: clamp(20px, 3vw, 30px);
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, var(--brand) 5%), color-mix(in srgb, var(--panel) 96%, transparent)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent 62%);
}

.wizard-step-panel {
  display: grid;
  gap: 18px;
}

.wizard-step-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.wizard-step-kicker {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.wizard-step-panel h2 {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.1;
}

.wizard-fields {
  gap: 16px;
}

.wizard-basic-fields {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  justify-self: center;
}

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

.wizard-mobile-ratio-field {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.wizard-mobile-ratio-field legend {
  margin-bottom: 8px;
}

.wizard-device-ratio-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wizard-device-ratio-head span:last-child {
  text-align: right;
}

.wizard-device-ratio-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}

.wizard-device-ratio-input {
  width: 100%;
  height: 32px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.wizard-device-ratio-input:focus {
  outline: none;
}

.wizard-device-ratio-input::-webkit-slider-runnable-track {
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--text) 18%);
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--panel-strong) 92%, var(--text) 8%) 0%,
      color-mix(in srgb, var(--brand) 9%, var(--panel)) 50%,
      color-mix(in srgb, var(--panel-strong) 92%, var(--text) 8%) 100%
    );
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.12),
    0 1px 0 color-mix(in srgb, var(--panel) 70%, transparent);
}

.wizard-device-ratio-input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 4px solid var(--panel);
  border-radius: 999px;
  background: var(--brand);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 54%, var(--line)),
    0 8px 20px rgba(0, 0, 0, 0.2);
  appearance: none;
}

.wizard-device-ratio-input:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent),
    0 0 0 1px color-mix(in srgb, var(--brand) 54%, var(--line)),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

.wizard-device-ratio-input::-moz-range-track {
  height: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--text) 18%);
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--panel-strong) 92%, var(--text) 8%) 0%,
      color-mix(in srgb, var(--brand) 9%, var(--panel)) 50%,
      color-mix(in srgb, var(--panel-strong) 92%, var(--text) 8%) 100%
    );
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.12),
    0 1px 0 color-mix(in srgb, var(--panel) 70%, transparent);
}

.wizard-device-ratio-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid var(--panel);
  border-radius: 999px;
  background: var(--brand);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 54%, var(--line)),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

.wizard-activity-field {
  margin: 2px 0 0;
}

.wizard-activity-field legend {
  margin-bottom: 9px;
}

.wizard-activity-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wizard-activity-options label {
  min-width: 0;
  margin: 0;
}

.wizard-activity-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wizard-activity-options span {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--text) 18%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 96%, var(--text) 4%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.wizard-activity-options input:checked + span {
  border-color: color-mix(in srgb, var(--brand) 82%, var(--line));
  background: color-mix(in srgb, var(--brand) 22%, var(--panel));
  color: var(--text);
  font-weight: 950;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 28%, transparent),
    0 10px 24px color-mix(in srgb, var(--brand) 22%, transparent);
}

.wizard-activity-options input:checked + span::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateX(-50%);
}

.wizard-activity-options label:hover span {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 46%, var(--line));
  color: var(--text);
}

.wizard-activity-options input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent);
  outline-offset: 2px;
}

.wizard-fields label {
  margin-top: 0;
}

.wizard-source-items {
  display: grid;
  gap: 10px;
}

.wizard-source-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px 46px 14px 14px;
  scroll-margin-top: 92px;
  border: 1px solid color-mix(in srgb, var(--line) 92%, var(--text) 8%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 95%, var(--text) 5%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.wizard-source-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: color-mix(in srgb, var(--brand) 62%, var(--line));
}

.wizard-source-card:hover,
.wizard-source-card:focus-within {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 72%, var(--panel) 28%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.wizard-source-card.is-new-source {
  animation: wizard-source-card-add 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes wizard-source-card-add {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  58% {
    opacity: 1;
    transform: translateY(-2px) scale(1.003);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-source-card.is-new-source {
    animation: none;
  }
}

.wizard-source-card-head {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wizard-source-card-head .icon-btn {
  width: 26px;
  min-height: 26px;
  margin-top: 0;
  padding: 0;
  border-color: color-mix(in srgb, #ef4444 62%, var(--line));
  background: color-mix(in srgb, #ef4444 12%, var(--panel));
  color: #ef4444;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px color-mix(in srgb, #ef4444 14%, transparent);
}

.wizard-source-card-head .icon-btn:hover,
.wizard-source-card-head .icon-btn:focus-visible {
  border-color: color-mix(in srgb, #ef4444 82%, var(--line));
  background: color-mix(in srgb, #ef4444 18%, var(--panel));
  color: #dc2626;
}

.wizard-source-row {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(300px, 1fr) minmax(148px, 170px);
  gap: 12px;
  align-items: start;
}

.wizard-source-row label,
.wizard-field-label {
  min-height: 18px;
  margin-top: 0;
  line-height: 18px;
}

.wizard-source-row [data-wizard-entry-url] {
  min-height: 44px;
  margin-top: 0;
}

.wizard-field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.wizard-source-picker,
.wizard-entry-url-control,
.wizard-source-value-control {
  min-width: 0;
  display: grid;
  grid-template-rows: 18px 44px auto;
  align-items: start;
  row-gap: 6px;
}

.wizard-source-select-wrap {
  min-width: 0;
  margin-top: 0;
}

.wizard-source-select {
  position: relative;
  min-width: 0;
}

.wizard-source-select-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 70%, transparent), color-mix(in srgb, var(--input-bg) 94%, transparent));
  color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.wizard-source-select-trigger:hover,
.wizard-source-select.is-open .wizard-source-select-trigger {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, var(--panel-strong)), color-mix(in srgb, var(--panel) 92%, var(--brand) 8%));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 26%, transparent),
    0 10px 24px color-mix(in srgb, var(--brand) 12%, transparent);
}

.wizard-source-select-trigger:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
}

.wizard-source-select-value,
.wizard-source-select-option-logo {
  min-width: 0;
  display: flex;
  align-items: center;
}

.wizard-source-select-arrow {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.wizard-source-select.is-open .wizard-source-select-arrow {
  opacity: 0.95;
  transform: rotate(-135deg) translateY(-1px);
}

.wizard-source-select-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(284px, calc(100vw - 48px));
  display: none;
  gap: 4px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-strong) 96%, #050816 4%);
  box-shadow: 0 18px 42px color-mix(in srgb, #000 28%, transparent);
}

.wizard-source-select.is-open .wizard-source-select-menu {
  display: grid;
}

.wizard-source-select-option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.wizard-source-select-option:hover,
.wizard-source-select-option:focus-visible,
.wizard-source-select-option.is-active {
  outline: none;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 24%, transparent);
}

.source-brand {
  height: 24px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.source-brand-yandex {
  min-width: 86px;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.source-brand-yandex-initial {
  color: #fc3f1d;
}

.source-brand-google {
  min-width: 72px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 780;
}

.source-brand-google span {
  display: inline-block;
  letter-spacing: 0;
}

.google-blue { color: #4285f4; }
.google-red { color: #ea4335; }
.google-yellow { color: #fbbc05; }
.google-green { color: #34a853; }

.source-brand-bing {
  min-width: 58px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 820;
}

.bing-blue { color: #008373; }

.source-brand-http {
  min-width: 126px;
  gap: 7px;
  font-family: Inter, Arial, sans-serif;
}

.source-brand-http-icon {
  width: 25px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--text) 36%, transparent);
  border-radius: 7px;
  color: color-mix(in srgb, var(--text) 82%, var(--brand) 18%);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.source-brand-http-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.source-brand-http-icon rect,
.source-brand-http-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-brand-http-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 13px;
  letter-spacing: 0;
}

.source-brand-http-text strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.source-brand-http-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.source-brand-combo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-brand-combo .source-brand {
  min-width: 0;
  height: 22px;
  font-size: 14px;
}

.source-brand-plus {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.wizard-source-row textarea {
  min-height: 124px;
  height: 124px;
  resize: none;
}

.wizard-source-value-control {
  justify-items: start;
}

.wizard-source-value-button {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 72%, transparent), color-mix(in srgb, var(--input-bg) 94%, transparent));
  color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent);
}

.wizard-source-value-button:hover,
.wizard-source-value-button:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 13%, var(--panel-strong)), color-mix(in srgb, var(--panel) 92%, var(--brand) 8%));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 24%, transparent),
    0 10px 24px color-mix(in srgb, var(--brand) 11%, transparent);
}

.wizard-source-value-button strong {
  min-width: 0;
  overflow: hidden;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-source-add-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 42px;
}

.wizard-add-source-item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  border: 1px dashed color-mix(in srgb, var(--brand) 54%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--panel));
  color: var(--text);
}

.wizard-add-source-item:hover {
  border-style: solid;
  background: color-mix(in srgb, var(--brand) 18%, var(--panel));
}

.wizard-add-source-item:disabled,
.wizard-add-source-item:disabled:hover {
  cursor: not-allowed;
  opacity: 0.58;
  border-style: dashed;
  background: color-mix(in srgb, var(--panel) 86%, var(--text) 4%);
}

.wizard-add-source-item span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--button-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.wizard-geo-card {
  --wizard-geo-list-height: clamp(300px, 42vh, 380px);
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--brand) 14%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 78%, transparent), color-mix(in srgb, var(--panel) 94%, transparent)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 64%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.wizard-geo-picker-layout {
  min-height: 0;
  align-items: start;
  padding: 14px;
}

.wizard-geo-card .geo-picker-countries,
.wizard-geo-card .geo-picker-regions {
  height: var(--wizard-geo-list-height);
  max-height: var(--wizard-geo-list-height);
}

.wizard-schedule-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--brand) 14%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 78%, transparent), color-mix(in srgb, var(--panel) 94%, transparent)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 64%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.wizard-schedule-field .schedule-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
}

.schedule-plan-controls {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.schedule-plan-controls .schedule-total-control,
.schedule-plan-controls .schedule-deviation-editor {
  flex: 0 0 auto;
}

.wizard-schedule-field .schedule-deviation-editor {
  margin: 0;
}

.wizard-schedule-field .schedule-timezone-label {
  justify-self: end;
}

@media (max-width: 760px) {
  .wizard-schedule-field .schedule-head {
    grid-template-columns: 1fr;
  }

  .wizard-schedule-field .schedule-timezone-label {
    justify-self: start;
  }
}

.wizard-schedule-field .schedule-canvas {
  min-height: 420px;
}

.wizard-review-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--brand) 14%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.wizard-review-list dt,
.wizard-review-list dd {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}

.wizard-review-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wizard-review-list dd {
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wizard-review-list dt:nth-last-child(2),
.wizard-review-list dd:last-child {
  border-bottom: 0;
}

.wizard-start-now-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.wizard-start-now-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.wizard-validation-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #ef4444 60%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #ef4444 10%, var(--panel));
  color: var(--text);
}

.wizard-validation-summary strong {
  font-size: 14px;
}

.wizard-validation-summary ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.wizard-bottom {
  display: grid;
  gap: 20px;
}

.wizard-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 18px;
}

.wizard-progress::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: color-mix(in srgb, var(--line) 84%, var(--text) 8%);
}

.wizard-progress-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 66px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.wizard-progress-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.wizard-progress-step strong {
  min-width: 0;
  color: currentColor;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.wizard-progress-step.is-active span,
.wizard-progress-step.is-complete span {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  background: color-mix(in srgb, var(--brand) 18%, var(--panel));
  color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 8%, transparent);
}

.wizard-progress-step.is-active {
  color: var(--text);
}

.wizard-progress-step:disabled {
  cursor: default;
  opacity: 0.58;
}

.wizard-progress-step:not(:disabled) {
  cursor: pointer;
}

.wizard-progress-step:hover,
.wizard-progress-step:disabled:hover {
  background: transparent;
}

.wizard-progress-step:not(:disabled):hover span {
  border-color: color-mix(in srgb, var(--brand) 70%, var(--line));
  background: color-mix(in srgb, var(--brand) 22%, var(--panel));
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
}

.wizard-actions button {
  min-width: 148px;
}

@media (min-width: 721px) {
  body.user-order-wizard[data-order-wizard-step="1"] .wizard-source-add-wrap {
    padding-bottom: 260px;
  }

  body.user-order-wizard[data-order-wizard-step="1"] .wizard-bottom {
    position: sticky;
    z-index: 30;
    bottom: 0;
    gap: 12px;
    margin: 4px calc(clamp(20px, 3vw, 30px) * -1) calc(clamp(20px, 3vw, 30px) * -1);
    padding: 12px clamp(20px, 3vw, 30px) clamp(14px, 2vw, 20px);
    border-top: 1px solid color-mix(in srgb, var(--line) 88%, var(--brand) 12%);
    border-radius: 0 0 8px 8px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--panel) 98%, var(--bg) 2%));
    box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 720px) {
  body.user-order-wizard .page-shell {
    padding: 12px 0 24px;
  }

  .wizard-step-title {
    gap: 10px;
  }

  .wizard-source-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wizard-source-card {
    padding: 16px 46px 16px 16px;
  }

  .wizard-source-card-head {
    justify-content: flex-start;
  }

  .wizard-progress {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .wizard-progress::before {
    left: 24px;
    right: 24px;
  }

  .wizard-progress-step strong {
    font-size: 11px;
  }

  .wizard-review-list {
    grid-template-columns: 1fr;
  }

  .wizard-review-list dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .wizard-review-list dd {
    padding-top: 0;
  }

  .wizard-actions,
  .wizard-actions button {
    width: 100%;
  }
}

.dashboard-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 82%, var(--text) 4%);
}

.tab-btn {
  min-height: 38px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.tab-btn:hover,
.tab-btn.is-active {
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  background: color-mix(in srgb, var(--brand) 16%, var(--panel));
  color: var(--text);
}

.tab-panel {
  min-width: 0;
}

.compact-form {
  max-width: 680px;
}

.order-plan-grid {
  margin-top: 6px;
}

.entry-pages-field {
  display: grid;
  gap: 10px;
}

.entry-pages-list {
  display: grid;
  gap: 10px;
}

.entry-page-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 76%, transparent);
}

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

.entry-page-head strong {
  font-size: 14px;
}

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

.entry-page-row label {
  margin-top: 0;
}

.entry-page-add {
  justify-self: start;
}

.locked-login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.mobile-ratio-field {
  display: grid;
  gap: 10px;
}

.ratio-head,
.ratio-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ratio-head span,
.ratio-labels {
  color: var(--muted);
  font-size: 13px;
}

.ratio-head strong {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.mobile-ratio-input {
  width: 100%;
  min-height: 32px;
  margin: 0;
  accent-color: var(--brand);
  direction: rtl;
}

.ratio-labels span:last-child {
  text-align: right;
}

.schedule-field {
  width: 100%;
  display: grid;
  gap: 10px;
}

.schedule-field > legend {
  display: none;
}

.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.schedule-timezone-label {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.schedule-timezone-label span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.schedule-timezone-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-timezone-select {
  position: relative;
  z-index: 2;
  width: min(232px, calc(100vw - 48px));
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--brand) 12%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 76%, transparent), color-mix(in srgb, var(--input-bg) 96%, transparent));
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 3%, transparent);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.schedule-timezone-select:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.schedule-timezone-select:focus {
  outline: none;
}

.schedule-timezone-select:focus-visible,
.schedule-timezone-select.is-open {
  z-index: 60;
  border-color: var(--brand);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 28%, transparent);
}

.schedule-timezone-value {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-timezone-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.schedule-timezone-select.is-open .schedule-timezone-arrow {
  border-color: var(--brand);
  transform: translateY(-35%) rotate(225deg);
}

.schedule-timezone-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  max-height: 238px;
  display: none;
  overflow: auto;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--brand) 14%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 96%, #000000 4%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.schedule-timezone-select.is-open .schedule-timezone-menu {
  display: grid;
  gap: 3px;
}

.schedule-timezone-option {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-timezone-option:hover,
.schedule-timezone-option.is-active {
  background: color-mix(in srgb, var(--brand) 15%, var(--panel));
  color: var(--text);
}

.schedule-timezone-option.is-active {
  color: color-mix(in srgb, var(--brand) 80%, var(--text));
}

.schedule-head .schedule-total-control {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  line-height: 1;
}

.schedule-deviation-editor {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 0 0;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.schedule-deviation-editor input {
  width: 42px;
  min-height: 30px;
  margin: 0;
  padding: 0 2px 3px;
  border: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 4px 4px 0 0;
  background: transparent;
  color: color-mix(in srgb, var(--brand) 70%, var(--text));
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  caret-color: var(--brand);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.schedule-deviation-editor:hover input {
  border-bottom-color: color-mix(in srgb, var(--brand) 58%, var(--line));
}

.schedule-deviation-editor:focus-within {
  color: var(--text);
}

.schedule-deviation-editor input:focus {
  outline: none;
  border-bottom-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  box-shadow: 0 10px 18px -18px color-mix(in srgb, var(--brand) 80%, transparent);
  color: var(--text);
}

.schedule-deviation-editor input::selection {
  background: color-mix(in srgb, var(--brand) 36%, transparent);
}

.schedule-total-editor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 2px 0;
}

.schedule-total-label {
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.schedule-total-editor input {
  width: 68px;
  min-height: 32px;
  margin: 0;
  padding: 0 2px 3px;
  border: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--brand) 42%, var(--line));
  border-radius: 4px 4px 0 0;
  background: transparent;
  color: color-mix(in srgb, var(--brand) 78%, var(--text));
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  caret-color: var(--brand);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.schedule-total-editor input::placeholder {
  color: color-mix(in srgb, var(--muted) 62%, transparent);
  opacity: 1;
}

.schedule-total-editor:hover input {
  border-bottom-color: color-mix(in srgb, var(--brand) 62%, var(--line));
}

.schedule-total-editor:focus-within .schedule-total-label {
  color: var(--text);
}

.schedule-total-editor input:focus {
  outline: none;
  border-bottom-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  box-shadow: 0 10px 18px -18px color-mix(in srgb, var(--brand) 80%, transparent);
  color: var(--text);
}

.schedule-total-editor input::selection {
  background: color-mix(in srgb, var(--brand) 36%, transparent);
}

.schedule-total-editor input::-webkit-outer-spin-button,
.schedule-total-editor input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.schedule-canvas {
  width: 100%;
  max-width: 100%;
  height: 460px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 86%, transparent), color-mix(in srgb, var(--input-bg) 94%, transparent));
  cursor: default;
  touch-action: none;
  user-select: none;
}

.schedule-presets {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-presets button {
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 10%, var(--panel));
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.schedule-presets button:hover,
.schedule-presets button:focus-visible,
.schedule-presets button.is-active {
  border-color: color-mix(in srgb, var(--brand) 68%, var(--line));
  background: color-mix(in srgb, var(--brand) 17%, var(--panel));
  outline: none;
}

.schedule-presets button.is-active {
  border-color: color-mix(in srgb, var(--brand) 90%, var(--text) 10%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 34%, var(--panel)), color-mix(in srgb, var(--brand) 22%, var(--panel)));
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent),
    0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent),
    0 10px 24px -18px color-mix(in srgb, var(--brand) 90%, transparent);
  transform: translateY(-1px);
}

.panel {
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.wide-panel { grid-column: 1 / -1; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: min(420px, 100%);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 82%, var(--text) 4%);
}

.segmented-control label {
  margin: 0;
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}

.segmented-control input:checked + span {
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  background: color-mix(in srgb, var(--brand) 16%, var(--panel));
  color: var(--text);
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 7%, var(--input-bg));
}

input.is-invalid:focus,
textarea.is-invalid:focus,
select.is-invalid:focus {
  border-color: var(--danger);
  outline: 3px solid color-mix(in srgb, var(--danger) 20%, transparent);
}

.field-error {
  min-height: 17px;
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.geo-search-box {
  position: relative;
}

.geo-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.geo-suggestion {
  width: 100%;
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.geo-suggestion:hover {
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
}

.geo-suggestion span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.geo-picker-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 82%, var(--text) 4%);
}

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

.geo-picker-field strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-picker-field .ghost-btn {
  grid-row: 1 / span 2;
  grid-column: 2;
  margin-top: 0;
}

.geo-picker-panel {
  width: min(1040px, 100%);
  height: min(780px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.geo-picker-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.geo-picker-countries,
.geo-picker-regions {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.geo-country-row,
.geo-check-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.geo-country-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.geo-check-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.geo-country-row.active,
.geo-country-row:hover,
.geo-check-row:hover {
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
}

.geo-check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.geo-country-row.has-selection {
  border-bottom-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  border-left: 3px solid var(--brand);
  padding-left: 9px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 18%, transparent), transparent 62%),
    color-mix(in srgb, var(--panel) 86%, var(--brand) 6%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 46%, transparent),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.geo-country-row.has-selection em {
  color: color-mix(in srgb, var(--brand) 76%, var(--text));
}

.geo-country-flag {
  width: 24px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent),
    0 4px 10px rgba(0, 0, 0, 0.16);
}

.geo-country-flag svg {
  width: 24px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.geo-country-row span,
.geo-check-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-country-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.geo-picker-tree {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.geo-picker-tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.geo-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.geo-picker-tree-head .ghost-btn,
.geo-picker-actions .ghost-btn {
  margin-top: 0;
}

.geo-picker-search {
  width: 100%;
  min-height: 42px;
  margin: 0;
}

.geo-picker-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.geo-region-node {
  border-bottom: 1px solid var(--line);
}

.geo-city-list {
  padding: 0 0 8px 34px;
}

.geo-check-row.city {
  min-height: 38px;
  padding: 7px 12px;
  border-bottom: 0;
  color: var(--muted);
}

.geo-picker-footer-actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
}

.geo-picker-footer-actions button {
  min-width: 132px;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

button,
.primary-btn {
  min-height: 42px;
  margin-top: 16px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--button-text);
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.primary-btn:hover { background: var(--brand-strong); }

button:disabled:not(.wizard-progress-step),
button:disabled:not(.wizard-progress-step):hover {
  background: color-mix(in srgb, var(--muted) 34%, var(--panel));
  color: color-mix(in srgb, var(--muted) 88%, var(--panel));
  cursor: not-allowed;
  box-shadow: none;
}

.modal-actions button[type="submit"] {
  min-width: 132px;
}

button.is-loading,
button.is-loading:hover,
button.is-loading:disabled,
button.is-loading:disabled:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 8%, transparent), transparent),
    var(--brand);
  color: var(--button-text);
  cursor: wait;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 14%, transparent),
    0 10px 22px color-mix(in srgb, var(--brand) 18%, transparent);
}

button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--button-text) 34%, transparent);
  border-top-color: var(--button-text);
  border-radius: 999px;
  animation: button-loader-spin 0.72s linear infinite;
}

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

.topbar-actions .user-label {
  flex: 0 1 auto;
  min-width: 150px;
  min-height: 40px;
  max-width: min(236px, 19vw);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(15, 23, 42, 0.38);
  color: rgba(237, 243, 251, 0.86);
  cursor: pointer;
  overflow: hidden;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 22px rgba(2, 6, 23, 0.1);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.topbar-actions .user-label::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.72), transparent 0 20%, transparent 21%),
    linear-gradient(135deg, #38d6cc, #4f9ef7 58%, #7c3aed);
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.26),
    0 8px 16px rgba(37, 99, 235, 0.18);
}

.topbar-actions .user-label::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-left: auto;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  opacity: 0.58;
  transform: translateY(-2px) rotate(45deg);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.topbar-actions .user-label:hover,
.topbar-actions .user-label:focus-visible,
.topbar-actions .user-label[aria-expanded="true"] {
  border-color: rgba(94, 234, 212, 0.26);
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.1), rgba(37, 99, 235, 0.055)),
    rgba(15, 23, 42, 0.48);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.topbar-actions .user-label:hover::after,
.topbar-actions .user-label:focus-visible::after,
.topbar-actions .user-label[aria-expanded="true"]::after {
  opacity: 0.88;
  transform: translateY(1px) rotate(225deg);
}

.user-balance-widget {
  position: relative;
  flex: 0 0 auto;
  min-height: 40px;
  min-width: 0;
  max-width: min(156px, 16vw);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(56, 214, 204, 0.16), rgba(79, 158, 247, 0.1)),
    rgba(15, 23, 42, 0.34);
  color: #eafbf8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(20, 184, 166, 0.08);
  outline: none;
  white-space: nowrap;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.user-balance-widget::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: max(100%, 178px);
  height: 12px;
  transform: translateX(-50%);
}

.user-balance-widget:hover,
.user-balance-widget:focus-within,
.user-balance-widget:focus-visible {
  border-color: rgba(94, 234, 212, 0.34);
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(96, 165, 250, 0.13)),
    rgba(15, 23, 42, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 28px rgba(20, 184, 166, 0.12);
}

.user-balance-info {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.user-balance-pill {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: #ecfffb;
  font-size: 15px;
  font-weight: 880;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-balance-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 45;
  min-width: 178px;
  display: grid;
  gap: 0;
  padding: 10px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow:
    0 22px 48px rgba(2, 6, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.user-balance-widget:hover .user-balance-menu,
.user-balance-widget:focus-within .user-balance-menu,
.user-balance-widget:focus-visible .user-balance-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.topup-balance-btn {
  width: 100%;
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.14), rgba(96, 165, 250, 0.1)),
    rgba(15, 23, 42, 0.42);
  color: #dffefa;
  font-size: 13px;
  font-weight: 840;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(20, 184, 166, 0.08);
  cursor: pointer;
  opacity: 1;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    transform 0.16s ease;
}

.topup-balance-btn:not(:disabled):hover,
.topup-balance-btn:not(:disabled):focus-visible {
  border-color: rgba(94, 234, 212, 0.42);
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.88), rgba(96, 165, 250, 0.82));
  color: #04111f;
  box-shadow:
    0 16px 30px rgba(37, 99, 235, 0.18),
    0 10px 24px rgba(20, 184, 166, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: saturate(1.03) brightness(1.02);
  transform: translateY(-1px);
}

.topup-balance-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.18);
  box-shadow: none;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 194px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow:
    0 22px 48px rgba(2, 6, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.account-menu::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.account-menu:hover .account-menu-panel.hidden,
.account-menu:focus-within .account-menu-panel.hidden {
  display: grid !important;
}

.account-menu-item {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(237, 243, 251, 0.82);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: rgba(94, 234, 212, 0.1);
  color: #ffffff;
  outline: 0;
}

.account-menu-item-danger {
  color: rgba(248, 113, 113, 0.88);
}

.account-menu-item-danger:hover,
.account-menu-item-danger:focus-visible {
  background: rgba(248, 113, 113, 0.11);
  color: #fecaca;
}

.topbar-actions .profile-user-label,
.topbar-actions .profile-user-label:hover,
.topbar-actions .profile-user-label:focus-visible {
  cursor: pointer;
}

.topbar-actions .logout-icon-btn {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  margin-top: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, var(--text) 4%);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.topbar-actions .logout-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-actions .logout-icon-btn:hover,
.topbar-actions .logout-icon-btn:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--panel) 70%, var(--brand) 12%);
  color: var(--text);
  transform: translateY(-1px);
}

.topbar-actions .logout-icon-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 94%, #000000 6%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  white-space: nowrap;
}

.topbar-actions .logout-icon-btn:hover::after,
.topbar-actions .logout-icon-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.oauth-row {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.oauth-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--success) 10%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 92%, var(--text) 3%);
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.oauth-link span {
  min-width: 0;
}

.oauth-link:hover {
  border-color: color-mix(in srgb, var(--success) 38%, var(--line));
  background: color-mix(in srgb, var(--success) 8%, #ffffff);
  box-shadow:
    0 12px 24px color-mix(in srgb, var(--success) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #0f172a;
  transform: translateY(-1px);
}

.oauth-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.oauth-link.is-disabled:hover {
  border-color: color-mix(in srgb, var(--line) 86%, var(--success) 10%);
  background: color-mix(in srgb, var(--panel-strong) 92%, var(--text) 3%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: none;
}

.oauth-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.toast {
  --toast-accent: var(--brand);
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 88px);
  right: max(18px, calc((100vw - 1120px) / 2 - 356px));
  z-index: 260;
  width: min(340px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  min-width: 0;
  margin: 0;
  padding: 14px 16px 14px 44px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--text) 12%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), transparent),
    color-mix(in srgb, var(--panel) 94%, #000 6%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  white-space: normal;
  animation: toast-enter 0.18s ease-out;
  backdrop-filter: blur(14px);
}

.toast::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--toast-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--toast-accent) 14%, transparent);
  transform: translateY(-50%);
}

.toast::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--toast-accent);
}

.toast.success {
  --toast-accent: var(--success);
  border-color: color-mix(in srgb, var(--success) 46%, var(--line));
}

.toast.error {
  --toast-accent: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 52%, var(--line));
}

.toast.info {
  --toast-accent: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translate3d(10px, -8px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 780px) {
  .toast {
    top: calc(env(safe-area-inset-top, 0px) + 132px);
    right: 16px;
    width: min(340px, calc(100vw - 32px));
  }
}

.orders-list {
  display: grid;
  gap: 12px;
}

.orders-page-shell {
  width: min(1120px, calc(100% - 32px));
}

.orders-page-dashboard {
  padding: 28px 0 44px;
}

.orders-page-content {
  display: grid;
  gap: 18px;
}

.orders-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.orders-page-head h1 {
  max-width: none;
  font-size: clamp(32px, 4vw, 48px);
}

.orders-page-list {
  gap: 16px;
}

.orders-page .orders-page-list.is-loading {
  display: none;
}

body.orders-page.orders-page-empty .orders-user-main,
body.orders-page.orders-page-loading .orders-user-main {
  flex: 1 0 auto;
}

body.billing-page {
  min-width: 360px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 16%, transparent), transparent 34rem),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.billing-main {
  flex: 1 0 auto;
  width: 100%;
}

.billing-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.billing-hero,
.billing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.billing-hero {
  margin-bottom: 18px;
}

.billing-hero-compact {
  grid-template-columns: 1fr;
}

.billing-hero h1 {
  margin: 6px 0 10px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.billing-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.billing-balance-card,
.billing-panel {
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 94%, var(--brand) 6%), var(--panel));
  box-shadow: var(--shadow);
}

.billing-balance-card {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 24px;
}

.billing-balance-card span,
.billing-balance-card small,
.billing-calculation span,
.billing-note,
.billing-history-row small {
  color: var(--muted);
}

.billing-balance-card strong {
  margin: 8px 0 4px;
  color: var(--brand);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.billing-return-status {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 62%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
}

.billing-return-status strong {
  color: var(--text);
}

.billing-return-status span {
  color: var(--muted);
}

.billing-panel {
  padding: 22px;
}

.billing-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.billing-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.billing-provider-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  font-size: 13px;
  font-weight: 800;
}

.billing-provider-status.is-ready {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}

.billing-amount-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.billing-amount-presets button,
.billing-amount-field input,
.billing-calculation,
.billing-history-row {
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--input-bg) 88%, var(--panel));
}

.billing-amount-presets button {
  min-height: 48px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.billing-amount-presets button.is-active {
  border-color: color-mix(in srgb, var(--brand) 72%, transparent);
  background: color-mix(in srgb, var(--brand) 18%, var(--panel));
  color: var(--brand);
}

.billing-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.billing-payment-methods button {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  justify-items: stretch;
  gap: 12px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 12%, transparent), transparent 46%),
    linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 78%, transparent), color-mix(in srgb, var(--input-bg) 90%, var(--panel)));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.billing-payment-methods button:hover,
.billing-payment-methods button:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 58%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
  outline: none;
  transform: translateY(-1px);
}

.billing-payment-methods button.is-active {
  border-color: color-mix(in srgb, var(--brand) 74%, transparent);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 24%, transparent), transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand) 16%, var(--panel)), color-mix(in srgb, var(--panel-strong) 88%, transparent));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand) 16%, transparent);
}

.billing-payment-methods button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
  box-shadow: none;
}

.billing-payment-methods strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
}

.billing-payment-methods span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.billing-payment-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.billing-payment-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.pay-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  color: var(--text);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.pay-chip-usdt {
  border-color: rgba(38, 161, 123, 0.38);
  color: #13795b;
  background: rgba(38, 161, 123, 0.12);
}

.pay-chip-btc {
  border-color: rgba(245, 158, 11, 0.4);
  color: #a46105;
  background: rgba(245, 158, 11, 0.14);
}

.pay-chip-eth {
  border-color: rgba(99, 102, 241, 0.34);
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
}

.pay-chip-yoo {
  width: 26px;
  padding: 0;
  border-color: rgba(123, 92, 255, 0.38);
  color: #5b35e5;
  background: rgba(123, 92, 255, 0.12);
}

.pay-chip-sber {
  border-color: rgba(28, 184, 96, 0.36);
  color: #0f8b4d;
  background: rgba(28, 184, 96, 0.12);
}

.pay-chip-visa {
  border-color: rgba(28, 89, 204, 0.28);
  color: #143f9d;
  background: rgba(28, 89, 204, 0.1);
  font-style: italic;
}

.pay-chip-mastercard {
  width: 34px;
  padding: 0;
}

.pay-chip-mastercard i {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
}

.pay-chip-mastercard i:first-child {
  margin-right: -5px;
  background: #eb001b;
}

.pay-chip-mastercard i:last-child {
  background: #f79e1b;
}

.pay-chip-mir {
  border-color: rgba(21, 128, 61, 0.34);
  color: #157f3f;
  background: rgba(21, 128, 61, 0.1);
}

.pay-chip-maestro {
  border-color: rgba(0, 91, 187, 0.26);
  color: #005bbb;
  background: rgba(0, 91, 187, 0.09);
}

.billing-amount-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.billing-amount-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  outline: none;
}

.billing-amount-field input:focus {
  border-color: color-mix(in srgb, var(--brand) 76%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.billing-calculation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
}

.billing-calculation div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
}

.billing-calculation strong {
  color: var(--text);
  line-height: 1.25;
}

#billing-submit {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, #5ff7e7 0%, #38dcd2 42%, #5e7bff 100%);
  color: var(--button-text);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 18px 36px color-mix(in srgb, var(--brand) 30%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

#billing-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    0 22px 42px color-mix(in srgb, var(--brand) 38%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

#billing-submit:active {
  transform: translateY(0);
  box-shadow:
    0 12px 26px color-mix(in srgb, var(--brand) 24%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

#billing-submit:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.billing-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.billing-info-panel ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.billing-info-panel li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.45;
}

.billing-info-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent);
}

.billing-rate-card {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 16%, transparent), transparent 58%),
    color-mix(in srgb, var(--panel-strong) 78%, transparent);
}

.billing-rate-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.billing-rate-card strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

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

.billing-history-panel {
  margin-top: 18px;
}

.billing-history-panel .ghost-btn {
  gap: 8px;
}

.billing-history-panel .ghost-btn.is-loading {
  cursor: wait;
  opacity: 0.78;
}

.billing-history-panel .ghost-btn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid color-mix(in srgb, currentColor 24%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: billing-spin 0.7s linear infinite;
}

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

.billing-history {
  display: grid;
  gap: 10px;
}

.billing-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
}

.billing-history-row > span:first-child {
  display: grid;
  min-width: 0;
}

.billing-history-row strong {
  color: var(--text);
}

.billing-history-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-history-status {
  justify-self: end;
  color: var(--muted);
  font-weight: 800;
}

.billing-history-row.is-paid .billing-history-status {
  color: var(--success);
}

.billing-history-row a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .billing-shell {
    width: min(100% - 24px, 680px);
    padding: 24px 0 34px;
  }

  .billing-hero,
  .billing-grid,
  .billing-calculation {
    grid-template-columns: 1fr;
  }

  .billing-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .billing-payment-methods {
    grid-template-columns: 1fr;
  }

  .billing-payment-methods button {
    min-height: 104px;
  }

  .billing-payment-copy span {
    white-space: normal;
  }

  .billing-history-row {
    grid-template-columns: 1fr;
  }

  .billing-history-status {
    justify-self: start;
  }
}

body.orders-page.orders-page-empty .orders-preview-shell,
body.orders-page.orders-page-loading .orders-preview-shell,
body.orders-page.orders-page-short .orders-preview-shell {
  padding-top: 8px;
  padding-bottom: 14px;
}

body.orders-page.orders-page-empty .orders-preview-canvas,
body.orders-page.orders-page-loading .orders-preview-canvas,
body.orders-page.orders-page-short .orders-preview-canvas {
  min-height: 0;
  padding-bottom: 0;
}

body.orders-page.orders-page-empty :where(.orders-folders-sidebar),
body.orders-page.orders-page-loading :where(.orders-folders-sidebar),
body.orders-page.orders-page-short :where(.orders-folders-sidebar) {
  max-height: none;
  padding-bottom: 14px;
}

body.orders-page.orders-page-empty .site-footer,
body.orders-page.orders-page-loading .site-footer,
body.orders-page.orders-page-short .site-footer {
  min-height: 0;
  padding-top: 36px;
  padding-bottom: 38px;
}

.orders-preview-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 24px;
}

.orders-folders-sidebar {
  position: sticky;
  top: 88px;
  z-index: 30;
  min-height: 0;
  max-height: calc(100svh - 104px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 6px 0 22px;
  align-self: start;
}

.orders-folders-sidebar::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -12px;
  bottom: auto;
  width: 1px;
  height: calc(100% - 16px);
  min-height: 168px;
  max-height: calc(100svh - 172px);
  background:
    linear-gradient(
      180deg,
      transparent,
      color-mix(in srgb, var(--line) 65%, transparent) 14%,
      color-mix(in srgb, var(--line) 78%, transparent) 50%,
      color-mix(in srgb, var(--line) 65%, transparent) 86%,
      transparent
    );
  pointer-events: none;
}

.orders-folders-sidebar h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.orders-search-box {
  min-height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, var(--text) 3%);
}

.orders-search-box:focus-within {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

.orders-search-box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-search-box input {
  min-width: 0;
  height: 20px;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}

.orders-search-box input::placeholder {
  color: var(--muted);
}

.orders-search-box-main {
  width: 100%;
  margin-top: 0;
}

.orders-preview-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 174px 150px;
  align-items: start;
  gap: 10px;
}

.orders-sort-control {
  position: relative;
  z-index: 4;
}

.orders-add-site-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  background: linear-gradient(135deg, #38d6cc, #4f9ef7);
  color: #06111f;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    transform 0.16s ease;
}

.orders-add-site-btn:hover,
.orders-add-site-btn:focus-visible {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, #5eead4, #60a5fa);
  color: #04111f;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.orders-sort-button {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, var(--text) 3%);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.orders-sort-button:hover,
.orders-sort-control.is-open .orders-sort-button {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  background: color-mix(in srgb, var(--panel) 74%, var(--brand) 10%);
}

.orders-sort-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-sort-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.orders-sort-control.is-open .orders-sort-button svg {
  transform: rotate(180deg);
}

.orders-sort-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--brand) 16%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-6px) scaleY(0.96);
  transform-origin: top;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.orders-sort-control.is-open .orders-sort-menu {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
}

.orders-sort-menu button {
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.orders-sort-menu button:last-child {
  border-bottom: 0;
}

.orders-sort-menu button:hover {
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
}

.orders-sort-menu button.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}

.orders-folder-list {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 0;
  margin-top: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--brand) 16%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 84%, transparent), transparent 74px),
    color-mix(in srgb, var(--panel) 92%, var(--text) 3%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.1);
}

.orders-folder-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.orders-folder-card::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.orders-folder-card::after {
  content: "";
  position: absolute;
  inset: 0 -18px 0 0;
  z-index: -1;
  opacity: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 4%, transparent), transparent 36%),
    radial-gradient(circle at 18px 14px, color-mix(in srgb, var(--brand) 18%, transparent), transparent 40px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--brand) 9%, var(--panel));
  transition: opacity 0.16s ease;
}

.orders-folder-card:last-child {
  border-bottom: 0;
}

.orders-folder-card:hover,
.orders-folder-card.is-active {
  background: transparent;
}

.orders-folder-card:hover::after,
.orders-folder-card.is-active::after {
  opacity: 1;
}

.orders-folder-card:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

.orders-folder-card.is-active::before {
  background: var(--brand);
}

.orders-folder-card:focus {
  outline: 0;
}

.orders-folder-card:focus-visible {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 38%, transparent),
    inset 0 0 0 999px color-mix(in srgb, var(--brand) 5%, transparent);
}

.orders-folder-card-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  color: var(--muted);
}

.orders-folder-card-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-folder-card.is-active .orders-folder-card-icon {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--brand) 16%, var(--panel));
  color: var(--brand);
}

.orders-folder-card-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-folder-card-count {
  min-width: 26px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 86%, var(--text) 5%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.orders-folder-card.is-active .orders-folder-card-count {
  background: color-mix(in srgb, var(--brand) 22%, var(--panel));
  color: var(--brand);
}

.orders-folder-list.is-order-drag-targets .orders-folder-card {
  cursor: copy;
}

.orders-folder-list.is-order-drag-targets .orders-folder-card.is-drop-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.orders-folder-card.is-drop-available {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--success) 13%, transparent), transparent 64%),
    color-mix(in srgb, var(--panel) 88%, var(--success) 5%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 26%, transparent);
}

.orders-folder-card.is-drop-available::before {
  background: color-mix(in srgb, var(--success) 82%, var(--brand));
}

.orders-folder-card.is-drop-available .orders-folder-card-icon {
  border-color: color-mix(in srgb, var(--success) 44%, var(--line));
  color: var(--success);
}

.orders-folder-card.is-drop-hover {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--success) 22%, transparent), transparent 72%),
    color-mix(in srgb, var(--panel) 70%, var(--success) 14%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--success) 54%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.16);
  transform: translateX(3px);
}

.orders-folder-card.is-drop-hover .orders-folder-card-icon,
.orders-folder-card.is-drop-success .orders-folder-card-icon {
  background: color-mix(in srgb, var(--success) 18%, var(--panel));
  color: var(--success);
}

.orders-folder-card.is-drop-success {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--success) 24%, transparent), transparent 72%),
    color-mix(in srgb, var(--panel) 64%, var(--success) 18%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--success) 58%, transparent),
    0 14px 26px rgba(0, 0, 0, 0.16);
  animation: orderFolderDropPulse 0.42s ease-out;
}

@keyframes orderFolderDropPulse {
  0% {
    transform: translateX(3px) scale(0.99);
  }
  58% {
    transform: translateX(6px) scale(1.015);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

.orders-folder-card.is-drop-current {
  opacity: 0.58;
}

.orders-folder-card.is-drop-paused {
  background: color-mix(in srgb, var(--panel) 92%, var(--danger) 3%);
}

.orders-folder-card-grip {
  display: none;
}

.orders-folder-tools {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.orders-folder-tool-btn {
  min-height: 28px;
  width: 100%;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 76%, transparent);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.orders-folder-tool-btn:hover,
.orders-folder-tool-btn:focus-visible {
  background: color-mix(in srgb, var(--text) 5%, transparent);
  color: color-mix(in srgb, var(--text) 82%, transparent);
  outline: 0;
}

.orders-management-modal-panel {
  width: min(740px, calc(100vw - 28px));
  max-height: min(640px, calc(100svh - 32px));
  overflow: auto;
}

.orders-folder-management-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.78fr);
  gap: 14px;
  align-items: start;
}

.orders-folder-create-form,
.orders-folder-management-list,
.orders-task-management-list {
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, var(--text) 3%);
}

.orders-folder-create-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  align-self: start;
}

.orders-folder-create-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.orders-folder-create-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.orders-folder-create-row input {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 84%, transparent);
  color: var(--text);
  font: inherit;
}

.orders-folder-create-row input:focus {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
  outline: 0;
}

.orders-folder-create-row button {
  min-height: 40px;
  width: 100%;
  margin: 0;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.orders-folder-create-row button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.orders-folder-management-list,
.orders-task-management-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  align-self: start;
}

.orders-folder-management-item,
.orders-task-management-item {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(32px, auto) 30px 30px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.orders-task-management-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.orders-folder-management-item:last-child,
.orders-task-management-item:last-child {
  border-bottom: 0;
}

.orders-folder-management-item span,
.orders-task-management-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-folder-management-name {
  padding: 5px 7px;
  margin: -5px -7px;
  border-radius: 8px;
  cursor: text;
}

.orders-folder-management-name:hover,
.orders-folder-management-name:focus-visible {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  outline: 0;
}

.orders-folder-management-input {
  min-width: 0;
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 52%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.orders-folder-management-input:focus {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}

.orders-folder-management-input:disabled {
  opacity: 0.7;
  cursor: progress;
}

.orders-folder-management-item strong,
.orders-task-management-item strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.orders-folder-management-item.is-loading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.orders-folder-loader-inline {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--muted) 32%, transparent);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: orders-loading-spin 0.78s linear infinite;
}

.orders-folder-management-item button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--danger);
  cursor: pointer;
}

.orders-folder-management-item button.orders-folder-management-edit {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--brand);
}

.orders-folder-management-item button.orders-folder-management-edit:hover,
.orders-folder-management-item button.orders-folder-management-edit:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  outline: 0;
}

.orders-folder-management-item button.orders-folder-management-delete:hover,
.orders-folder-management-item button.orders-folder-management-delete:focus-visible {
  border-color: color-mix(in srgb, var(--danger) 58%, var(--line));
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  outline: 0;
}

.orders-folder-management-item button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-management-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.orders-preview-canvas {
  min-height: calc(100svh - 172px);
  overflow: visible;
  padding: 8px 0 14px;
}

.orders-preview-order-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  overflow: visible;
}

.orders-loading-panel {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-sizing: border-box;
  color: var(--muted);
}

.orders-loading-mark {
  position: relative;
  width: 18px;
  min-width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-top-color: color-mix(in srgb, var(--brand) 82%, var(--text));
  border-radius: 999px;
  animation: orders-loading-spin 0.78s linear infinite;
}

.orders-loading-panel div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.orders-loading-panel strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.orders-loading-panel span:not(.orders-loading-mark) {
  font-size: 13px;
  line-height: 1.35;
}

.orders-list.is-hydrating .order-card-progress strong,
.orders-list.is-hydrating .order-card-progress em,
.orders-list.is-hydrating .order-metric strong,
.orders-list.is-hydrating .order-card-details strong {
  color: transparent;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--line) 70%, transparent),
    color-mix(in srgb, var(--text) 16%, transparent),
    color-mix(in srgb, var(--line) 70%, transparent)
  );
  background-size: 220% 100%;
  animation: orders-skeleton-soft 1.15s ease-in-out infinite;
}

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

@keyframes orders-skeleton-soft {
  0% { background-position: 110% 0; }
  100% { background-position: -110% 0; }
}

.orders-skeleton-line {
  width: 100%;
  max-width: 180px;
  height: 10px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--line) 72%, transparent),
    color-mix(in srgb, var(--text) 15%, transparent),
    color-mix(in srgb, var(--line) 72%, transparent)
  );
  background-size: 220% 100%;
  animation: orders-skeleton-soft 1.15s ease-in-out infinite;
}

.orders-skeleton-line.is-title { max-width: 280px; height: 16px; }
.orders-skeleton-line.is-title.is-short { max-width: 210px; }
.orders-skeleton-line.is-link { max-width: 145px; height: 9px; }
.orders-skeleton-line.is-link.is-short { max-width: 112px; }
.orders-skeleton-line.is-id { max-width: 42px; height: 10px; }
.orders-skeleton-line.is-status { width: 78px; height: 28px; }
.orders-skeleton-line.is-label { max-width: 96px; height: 8px; }
.orders-skeleton-line.is-value { max-width: 118px; height: 13px; }
.orders-skeleton-line.is-percent { width: 38px; height: 13px; }
.orders-skeleton-line.is-button { width: 76px; height: 12px; }

.orders-preview-order-card-skeleton,
.order-card-skeleton {
  pointer-events: none;
}

.orders-preview-order-card-skeleton .orders-preview-order-title-block,
.order-card-skeleton .order-card-title-block {
  display: grid;
  gap: 7px;
}

.orders-preview-order-card-skeleton .orders-preview-order-action:disabled,
.orders-preview-order-card-skeleton .orders-preview-order-toggle:disabled,
.orders-preview-order-card-skeleton .orders-preview-order-step:disabled,
.order-card-skeleton button:disabled {
  opacity: 0.72;
}

.orders-preview-order-card-skeleton .orders-preview-order-id .orders-skeleton-line {
  width: 28px;
  min-width: 0;
}

.orders-preview-order-card-skeleton .orders-preview-order-step .orders-skeleton-line {
  width: min(72px, 100%);
  min-width: 0;
  height: 9px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--line) 72%, transparent),
    color-mix(in srgb, var(--text) 15%, transparent),
    color-mix(in srgb, var(--line) 72%, transparent)
  );
  background-size: 220% 100%;
  animation: orders-skeleton-soft 1.15s ease-in-out infinite;
}

.orders-preview-order-card {
  position: relative;
  height: 118px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 10px 14px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 8px 18px rgba(0, 0, 0, 0.08);
  overflow: visible;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.orders-preview-order-head {
  display: contents;
}

.orders-preview-order-rail {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.orders-preview-order-rail .orders-preview-order-toggle {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
}

.orders-preview-order-title-block {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
}

.orders-preview-order-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.orders-preview-order-head h2 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-preview-order-website {
  display: inline-block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.orders-preview-edit-title {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  cursor: pointer;
}

.orders-preview-edit-title svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-preview-edit-title:hover {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--panel) 84%, var(--text) 4%);
  color: var(--text);
}

.orders-preview-order-toggle {
  width: 42px;
  min-width: 42px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--success) 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 22%, var(--panel));
  color: var(--success);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent),
    0 0 0 2px color-mix(in srgb, var(--success) 7%, transparent);
  cursor: pointer;
}

.orders-preview-order-toggle-track {
  position: relative;
  width: 34px;
  height: 18px;
  display: block;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 46%, var(--panel));
  box-shadow: none;
}

.orders-preview-order-toggle-track span {
  position: absolute;
  top: 3px;
  left: 19px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 92%, var(--success));
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.24),
    0 0 0 2px color-mix(in srgb, var(--success) 14%, transparent);
  transition: left 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.orders-preview-order-toggle:not(.is-on) {
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  background: color-mix(in srgb, var(--panel) 90%, var(--text) 2%);
  color: var(--muted);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent);
}

.orders-preview-order-toggle:not(.is-on) .orders-preview-order-toggle-track {
  background: color-mix(in srgb, var(--panel-strong) 86%, var(--text) 5%);
  box-shadow: none;
}

.orders-preview-order-toggle:not(.is-on) .orders-preview-order-toggle-track span {
  left: 3px;
  background: color-mix(in srgb, var(--muted) 82%, var(--text));
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.orders-preview-order-toggle:hover {
  border-color: color-mix(in srgb, var(--success) 34%, transparent);
  background: color-mix(in srgb, var(--success) 17%, var(--panel));
}

.orders-preview-order-toggle:not(.is-on):hover {
  border-color: color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, var(--panel) 86%, var(--text) 4%);
}

.orders-preview-order-drag {
  position: relative;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 64%, transparent);
  cursor: grab;
  opacity: 0.78;
  touch-action: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.orders-preview-order-drag:hover,
.orders-preview-order-drag:focus-visible {
  z-index: 120;
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent),
    color-mix(in srgb, var(--panel) 82%, var(--brand) 7%);
  color: color-mix(in srgb, var(--text) 82%, var(--brand));
  opacity: 1;
  outline: 0;
}

.orders-preview-order-drag:active {
  cursor: grabbing;
  transform: scale(0.96);
}

.orders-preview-order-drag.is-disabled,
.orders-preview-order-drag:disabled {
  cursor: not-allowed;
  opacity: 1;
  touch-action: auto;
}

.orders-preview-order-drag.is-disabled:hover,
.orders-preview-order-drag.is-disabled:focus-visible,
.orders-preview-order-drag:disabled:hover,
.orders-preview-order-drag:disabled:focus-visible {
  border-color: transparent;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 64%, transparent);
  outline: 0;
  transform: none;
}

.orders-preview-order-drag.is-disabled .orders-preview-order-drag-dots,
.orders-preview-order-drag:disabled .orders-preview-order-drag-dots {
  opacity: 0.36;
}

.orders-preview-order-drag-dots {
  display: grid;
  grid-template-columns: repeat(2, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 4px 5px;
}

.orders-preview-order-drag-dots i {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
}

.orders-preview-order-card.is-dragging {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  opacity: 0.76;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 0 0 2px color-mix(in srgb, var(--brand) 16%, transparent),
    0 16px 30px rgba(0, 0, 0, 0.16);
  transform: translateX(4px) scale(0.995);
}

.orders-preview-order-card.is-dragging::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px dashed color-mix(in srgb, var(--brand) 58%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

.orders-preview-order-card.is-moving-out {
  filter: saturate(0.96);
  opacity: 0;
  pointer-events: none;
  transform: translateX(36px) scale(0.975);
}

.orders-preview-order-actions {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.orders-preview-order-action {
  position: relative;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 4%, transparent), transparent),
    color-mix(in srgb, var(--panel) 88%, var(--text) 3%);
  color: var(--muted);
  cursor: pointer;
}

.orders-preview-order-action:hover,
.orders-preview-order-action:focus-visible,
.orders-preview-order-step:hover,
.orders-preview-order-step:focus-visible {
  z-index: 130;
}

.orders-preview-order-action[data-tooltip]::before,
.orders-preview-order-drag[data-tooltip]::before,
.orders-preview-order-step[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 80;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--brand) 22%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), transparent),
    color-mix(in srgb, var(--panel) 94%, #000 6%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translate(-50%, 4px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.orders-preview-order-card:has(.orders-preview-order-drag:hover),
.orders-preview-order-card:has(.orders-preview-order-drag:focus-visible),
.orders-preview-order-card:has(.orders-preview-order-action:hover),
.orders-preview-order-card:has(.orders-preview-order-action:focus-visible),
.orders-preview-order-card:has(.orders-preview-order-step:hover),
.orders-preview-order-card:has(.orders-preview-order-step:focus-visible) {
  z-index: 90;
}

.orders-preview-order-drag[data-tooltip]::before {
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 140;
  max-width: 190px;
  transform: translate(-50%, 0) scale(1);
  transition: none;
}

.orders-preview-order-action[data-tooltip]:hover::before,
.orders-preview-order-action[data-tooltip]:focus-visible::before,
.orders-preview-order-drag[data-tooltip]:hover::before,
.orders-preview-order-drag[data-tooltip]:focus-visible::before,
.orders-preview-order-step[data-tooltip]:hover::before,
.orders-preview-order-step[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.orders-preview-order-drag[data-tooltip]:hover::before,
.orders-preview-order-drag[data-tooltip]:focus-visible::before {
  transform: translate(-50%, 0) scale(1);
}

.orders-preview-order-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-preview-order-action:hover {
  border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 11%, transparent), transparent),
    color-mix(in srgb, var(--panel) 76%, var(--brand) 10%);
  color: var(--text);
}

.orders-preview-order-action.is-customized,
.settings-icon.is-customized {
  border-color: color-mix(in srgb, var(--success) 48%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--success) 14%, transparent), transparent),
    color-mix(in srgb, var(--panel) 78%, var(--success) 12%);
  color: var(--success);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 64%, transparent);
}

.orders-preview-order-action.is-customized:hover,
.orders-preview-order-action.is-customized:focus-visible,
.settings-icon.is-customized:hover,
.settings-icon.is-customized:focus-visible {
  border-color: color-mix(in srgb, var(--success) 68%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--success) 20%, transparent), transparent),
    color-mix(in srgb, var(--panel) 70%, var(--success) 16%);
  color: color-mix(in srgb, var(--success) 88%, #042f2e);
}

.orders-preview-order-action:disabled,
.orders-preview-order-toggle:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.orders-preview-order-action:disabled:hover,
.orders-preview-order-toggle:disabled:hover {
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--panel) 88%, var(--text) 3%);
  color: var(--muted);
  box-shadow: none;
}

.orders-preview-order-id {
  width: auto;
  min-width: 58px;
  padding: 0 10px;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 13px;
  font-weight: 850;
}

.orders-preview-order-id span {
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.orders-preview-order-id::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0;
  transform: translate(-50%, -58%) rotate(42deg) scale(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.orders-preview-order-id.is-copied {
  border-color: color-mix(in srgb, var(--success) 44%, var(--line));
  background: color-mix(in srgb, var(--success) 12%, var(--panel));
  color: var(--success);
}

.orders-preview-order-id.is-copied span {
  opacity: 0;
  transform: scale(0.86);
}

.orders-preview-order-id.is-copied::after {
  opacity: 1;
  transform: translate(-50%, -58%) rotate(42deg) scale(1);
}

.orders-preview-order-action.is-danger:hover {
  border-color: color-mix(in srgb, var(--danger) 54%, var(--line));
  background: color-mix(in srgb, var(--danger) 14%, var(--panel));
  color: var(--danger);
}

.orders-preview-order-steps {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-left: 0;
}

.orders-preview-order-step {
  position: relative;
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 3%, transparent), transparent),
    color-mix(in srgb, var(--panel) 90%, var(--text) 3%);
  color: var(--muted);
  cursor: pointer;
}

.orders-preview-order-step span {
  width: 19px;
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
  color: color-mix(in srgb, var(--text) 86%, var(--brand));
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.orders-preview-order-step span svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-preview-order-step strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-preview-order-step:hover {
  border-color: color-mix(in srgb, var(--brand) 46%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent),
    color-mix(in srgb, var(--panel) 78%, var(--brand) 8%);
  color: var(--text);
}

.dashboard .order-card,
.orders-page .order-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.order-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.order-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.order-card-title-block {
  min-width: 0;
}

.order-card-id {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-card-title-block h3 {
  margin: 9px 0 5px;
  font-size: clamp(19px, 2vw, 24px);
}

.order-card-website {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-progress {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.order-card-progress div:first-child {
  display: grid;
  gap: 3px;
}

.order-card-progress span,
.order-metric span,
.order-card-details span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-card-progress strong,
.order-card-progress em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.order-progress-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 72%, var(--text) 10%);
}

.order-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--success) 70%, var(--brand)));
}

.order-card-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.order-metric {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 62%, transparent);
}

.order-metric strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.order-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.order-card-details div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.order-card-details strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.order-card-detail-wide {
  grid-column: 1 / -1;
}

.orders-empty-panel {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

body.orders-page.orders-page-empty .orders-empty-panel {
  padding: 20px 22px;
}

.orders-empty-panel h2 {
  margin-bottom: 6px;
}

.order-card-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  color: var(--muted);
}

.order-card-main {
  align-items: flex-start;
  margin-top: 0;
}

.order-card-row strong { color: var(--text); }

.order-card-workers strong {
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 999px;
  text-align: center;
  background: color-mix(in srgb, var(--panel) 82%, var(--text) 8%);
  color: var(--muted);
}

.order-card-workers strong.is-live {
  background: color-mix(in srgb, var(--success) 18%, var(--panel));
  color: var(--success);
}

.order-card-workers small {
  display: block;
  max-width: min(420px, 62vw);
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.order-card-actions .ghost-btn {
  margin-top: 0;
}

.dashboard .order-card-actions,
.orders-page .order-card-actions {
  padding-top: 2px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.icon-btn {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, var(--text) 4%);
  color: var(--muted);
  cursor: pointer;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--panel) 70%, var(--brand) 12%);
  color: var(--text);
}

.danger-icon:hover {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
  background: color-mix(in srgb, var(--danger) 16%, var(--panel));
  color: var(--danger);
}

.log-icon:hover {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--brand) 18%, var(--panel));
  color: var(--brand);
}

.settings-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-icon:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
  color: var(--text);
}

.stats-icon:hover {
  border-color: color-mix(in srgb, var(--success) 58%, var(--line));
  background: color-mix(in srgb, var(--success) 16%, var(--panel));
  color: var(--success);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: none;
  padding: 20px;
}

#geo-picker-modal {
  z-index: 140;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.order-basic-edit-panel {
  width: min(760px, calc(100vw - 32px));
}

.order-edit-panel .modal-head,
.order-basic-edit-panel .modal-head,
.order-sources-edit-panel .modal-head,
.order-geo-edit-panel .modal-head,
.order-schedule-edit-panel .modal-head {
  align-items: center;
  padding: 14px 18px;
}

.order-edit-panel .modal-head > div,
.order-basic-edit-panel .modal-head > div,
.order-sources-edit-panel .modal-head > div,
.order-geo-edit-panel .modal-head > div,
.order-schedule-edit-panel .modal-head > div {
  min-width: 0;
}

.order-edit-panel .modal-head h2,
.order-basic-edit-panel .modal-head h2,
.order-sources-edit-panel .modal-head h2,
.order-geo-edit-panel .modal-head h2,
.order-schedule-edit-panel .modal-head h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-basic-edit-form {
  max-width: none;
}

.order-basic-edit-form .wizard-basic-fields {
  width: 100%;
}

.order-sources-edit-panel {
  width: min(1120px, calc(100vw - 32px));
}

.order-sources-edit-form {
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  gap: 14px;
}

.sources-edit-list {
  width: 100%;
  display: grid;
  gap: 12px;
}

.sources-edit-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--brand) 16%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), transparent),
    color-mix(in srgb, var(--panel) 94%, var(--brand) 3%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
    0 14px 30px color-mix(in srgb, #000 16%, transparent);
}

.sources-edit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sources-edit-card-head strong {
  font-size: 14px;
}

.sources-edit-grid {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(260px, 1fr) minmax(330px, 1.1fr);
  gap: 12px 14px;
  align-items: start;
}

.sources-edit-grid label,
.sources-edit-type-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0;
}

.sources-edit-select-wrap {
  margin-top: 7px;
}

.sources-edit-select-wrap .wizard-source-select-trigger {
  border-radius: 8px;
}

.sources-edit-value-field {
  grid-column: auto;
}

.sources-edit-grid select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.sources-edit-grid select:focus {
  border-color: var(--brand);
  outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
}

.sources-edit-value-field textarea {
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  resize: none;
  overflow: auto;
}

.sources-edit-actions {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.order-sources-edit-form > .modal-actions {
  width: 100%;
}

.order-geo-edit-panel {
  width: min(1040px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.order-geo-edit-form {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.order-geo-edit-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 74%, transparent);
}

.order-geo-edit-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.order-geo-edit-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-geo-edit-card {
  --wizard-geo-list-height: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.order-geo-edit-card .wizard-geo-picker-layout {
  height: 100%;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.order-geo-edit-card .geo-picker-countries,
.order-geo-edit-card .geo-picker-regions {
  height: 100%;
  max-height: none;
  overflow: auto;
}

.order-geo-edit-card .geo-picker-tree {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.order-schedule-edit-panel {
  width: min(1040px, calc(100vw - 32px));
  height: min(690px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brand) 18%, var(--line));
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 34%),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--success) 10%, transparent), transparent 28%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 86%, var(--brand) 3%));
  box-shadow:
    0 26px 72px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.order-schedule-edit-panel .modal-head {
  border-bottom-color: color-mix(in srgb, var(--brand) 15%, var(--line));
  background: color-mix(in srgb, #ffffff 92%, transparent);
}

.order-schedule-edit-form {
  max-width: none;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  padding: 14px 18px 16px;
}

.order-schedule-edit-field {
  margin: 0;
  min-height: 0;
  gap: 8px;
  overflow: hidden;
  padding: 12px 14px 14px;
  border-color: color-mix(in srgb, var(--brand) 18%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 94%, var(--brand) 2%), color-mix(in srgb, var(--panel-strong) 88%, transparent)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, transparent), transparent 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

.order-schedule-edit-field .schedule-head {
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.order-schedule-edit-field .schedule-timezone-select {
  min-height: 36px;
  border-color: color-mix(in srgb, var(--brand) 16%, var(--line));
  background: color-mix(in srgb, #ffffff 90%, var(--panel-strong));
}

.order-schedule-edit-field .schedule-deviation-editor {
  min-height: 36px;
  color: color-mix(in srgb, var(--text) 76%, var(--muted));
}

.order-schedule-edit-field .schedule-canvas {
  height: clamp(250px, calc(100vh - 350px), 340px);
  min-height: 0;
  border-color: color-mix(in srgb, var(--brand) 16%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 88%, transparent), color-mix(in srgb, var(--panel-strong) 92%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.order-schedule-edit-field .schedule-presets {
  gap: 7px;
  margin-top: 2px;
}

.order-schedule-edit-field .schedule-presets button {
  min-height: 32px;
  height: 32px;
  padding: 0 14px;
  border-color: color-mix(in srgb, var(--brand) 16%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, #ffffff 86%, var(--panel-strong));
  color: color-mix(in srgb, var(--text) 74%, var(--muted));
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.order-schedule-edit-field .schedule-presets button:hover,
.order-schedule-edit-field .schedule-presets button:focus-visible {
  border-color: color-mix(in srgb, var(--success) 34%, var(--brand));
  background: color-mix(in srgb, var(--success) 9%, #ffffff);
  color: color-mix(in srgb, var(--success) 78%, var(--text));
  outline: none;
}

.order-schedule-edit-field .schedule-presets button.is-active {
  border-color: color-mix(in srgb, var(--success) 46%, var(--brand));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 32%, #ffffff), color-mix(in srgb, var(--brand) 18%, #ffffff));
  color: color-mix(in srgb, var(--text) 88%, var(--success));
  box-shadow:
    0 9px 18px color-mix(in srgb, var(--brand) 13%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
  transform: none;
}

.order-schedule-edit-form > .modal-actions {
  margin-top: 0;
  padding-top: 2px;
}

.order-schedule-edit-form > .modal-actions .ghost-btn,
.order-schedule-edit-form > .modal-actions button {
  min-height: 36px;
  border-radius: 8px;
}

.order-schedule-edit-form > .modal-actions button[type="submit"] {
  border-color: color-mix(in srgb, var(--success) 36%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 76%, #ffffff 24%), color-mix(in srgb, #14b8a6 84%, #2563eb 16%));
  color: #ffffff;
  box-shadow:
    0 12px 24px color-mix(in srgb, var(--success) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.order-schedule-edit-form > .modal-actions button[type="submit"]:hover,
.order-schedule-edit-form > .modal-actions button[type="submit"]:focus-visible {
  border-color: color-mix(in srgb, var(--success) 48%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, #14b8a6 88%, #ffffff 12%), color-mix(in srgb, var(--success) 82%, #2563eb 18%));
  box-shadow:
    0 15px 30px color-mix(in srgb, var(--success) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(12px);
}

.modal-head h2 {
  margin-bottom: 4px;
}

.modal-head .icon-btn {
  font-size: 22px;
  line-height: 1;
}

.modal-form {
  padding: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions .ghost-btn,
.modal-actions button {
  margin-top: 0;
}

.order-extra-settings-panel {
  position: relative;
  width: min(1040px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  min-height: min(720px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding-bottom: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border-color: color-mix(in srgb, var(--brand) 20%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, transparent), transparent 34%),
    var(--panel);
  box-shadow:
    0 26px 70px rgba(30, 41, 59, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.order-extra-settings-panel .modal-head {
  position: relative;
  z-index: 8;
  overflow: visible;
  align-items: center;
  padding: 20px 22px 18px;
  border-bottom-color: color-mix(in srgb, var(--brand) 20%, var(--line));
  background:
    radial-gradient(circle at 4% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 34%),
    radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--success) 12%, transparent), transparent 30%),
    linear-gradient(180deg, #eaf1f9, #f4f8fc);
}

.order-extra-settings-panel .modal-head > div {
  min-width: 0;
}

.order-extra-settings-panel .modal-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
}

.order-extra-settings-panel .modal-head .hint {
  max-width: 560px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.order-extra-settings-panel .modal-head .icon-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  box-shadow: none;
}

.order-extra-settings-panel .modal-head .icon-btn:hover,
.order-extra-settings-panel .modal-head .icon-btn:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: #ffffff;
  color: var(--text);
}

.extra-settings-head-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.extra-settings-head-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  margin-left: auto;
}

.extra-settings-variance-control {
  --daily-deviation-ratio: 0%;
  min-width: 292px;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(128px, auto) 122px;
  align-items: center;
  gap: 14px;
  padding: 12px 10px 12px 13px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), color-mix(in srgb, #ffffff 78%, var(--panel-strong))),
    color-mix(in srgb, var(--panel) 88%, #ffffff);
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.extra-settings-variance-text {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.extra-settings-variance-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 16px;
  line-height: 16px;
}

.extra-settings-variance-title label {
  overflow: hidden;
  display: block;
  height: 16px;
  color: color-mix(in srgb, var(--muted) 84%, var(--text));
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.extra-settings-variance-text strong {
  color: color-mix(in srgb, var(--brand) 74%, var(--text));
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.extra-settings-variance-control input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.extra-settings-variance-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--brand) 92%, var(--success)) 0%,
      color-mix(in srgb, var(--success) 68%, var(--brand)) var(--daily-deviation-ratio),
      color-mix(in srgb, var(--line) 70%, #ffffff) var(--daily-deviation-ratio),
      color-mix(in srgb, var(--line) 84%, #ffffff) 100%);
}

.extra-settings-variance-control input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  appearance: none;
  background: color-mix(in srgb, var(--brand) 84%, var(--success));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 34%, var(--line)),
    0 8px 16px color-mix(in srgb, var(--brand) 18%, transparent);
}

.extra-settings-variance-control input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--brand) 92%, var(--success)) 0%,
      color-mix(in srgb, var(--success) 68%, var(--brand)) var(--daily-deviation-ratio),
      color-mix(in srgb, var(--line) 70%, #ffffff) var(--daily-deviation-ratio),
      color-mix(in srgb, var(--line) 84%, #ffffff) 100%);
}

.extra-settings-variance-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 84%, var(--success));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 34%, var(--line)),
    0 8px 16px color-mix(in srgb, var(--brand) 18%, transparent);
}

.extra-settings-variance-help {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  z-index: 9;
  transform: translateY(-1px);
}

.order-extra-settings-form {
  --extra-section-heading-size: clamp(18px, 1.55vw, 21px);
  --extra-section-heading-weight: 950;
  --extra-card-heading-size: 16px;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.order-extra-settings-form.modal-form {
  padding: 0 22px 0;
}

.extra-settings-tabs {
  --extra-tabs-divider: color-mix(in srgb, var(--line) 62%, var(--brand) 18%);
  position: sticky;
  top: 0;
  z-index: 4;
  isolation: isolate;
  overflow: hidden;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 -22px 2px;
  padding: 0 22px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 0;
  background:
    radial-gradient(circle at 5% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 34%),
    radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--success) 15%, transparent), transparent 30%),
    linear-gradient(180deg, #dfeaf5, #eef5fb);
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.extra-settings-tabs::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(223, 234, 245, 0.92), rgba(238, 245, 251, 0));
}

.extra-settings-tabs::after {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 22px;
  right: 22px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(20% - 0.5px), var(--extra-tabs-divider) calc(20% - 0.5px) calc(20% + 0.5px), transparent calc(20% + 0.5px)),
    linear-gradient(to right, transparent calc(40% - 0.5px), var(--extra-tabs-divider) calc(40% - 0.5px) calc(40% + 0.5px), transparent calc(40% + 0.5px)),
    linear-gradient(to right, transparent calc(60% - 0.5px), var(--extra-tabs-divider) calc(60% - 0.5px) calc(60% + 0.5px), transparent calc(60% + 0.5px)),
    linear-gradient(to right, transparent calc(80% - 0.5px), var(--extra-tabs-divider) calc(80% - 0.5px) calc(80% + 0.5px), transparent calc(80% + 0.5px));
}

.extra-settings-tabs button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  height: 58px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text) 66%, var(--muted));
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.extra-settings-tabs button:hover,
.extra-settings-tabs button:focus-visible {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, #ffffff), color-mix(in srgb, #ffffff 78%, var(--panel-strong)));
  color: color-mix(in srgb, var(--text) 86%, var(--brand));
  outline: none;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 13%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.extra-settings-tabs button:active {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 11%, #ffffff), color-mix(in srgb, var(--success) 6%, #ffffff));
}

.extra-settings-tabs button.is-active {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--brand) 12%, #ffffff) 52%, color-mix(in srgb, var(--success) 9%, #ffffff));
  color: color-mix(in srgb, var(--brand) 86%, var(--text));
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 color-mix(in srgb, var(--brand) 12%, transparent),
    0 12px 24px color-mix(in srgb, var(--brand) 14%, transparent);
}

.extra-settings-tabs button.is-active:hover,
.extra-settings-tabs button.is-active:focus-visible {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 62%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--brand) 14%, #ffffff) 52%, color-mix(in srgb, var(--success) 10%, #ffffff));
  color: color-mix(in srgb, var(--brand) 90%, var(--text));
}

.order-extra-settings-form [data-extra-settings-tab-panel]:not(.is-active) {
  display: none;
}

.order-extra-settings-form [data-extra-settings-tab-panel].is-active {
  width: 100%;
  min-width: 0;
}

.order-extra-settings-form .wizard-source-ratio-control {
  gap: 16px;
  padding: 18px;
  border-color: color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--panel-strong) 90%, #ffffff)),
    var(--panel);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.extra-inline-setting-head {
  display: grid;
  gap: 4px;
}

.extra-inline-setting-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.extra-inline-setting-head span {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 8%, #ffffff);
  color: color-mix(in srgb, var(--success) 78%, var(--text));
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.extra-inline-setting-head h3,
.extra-settings-section-head h3 {
  margin: 0;
  max-width: 720px;
  color: var(--text);
  font-size: var(--extra-section-heading-size);
  font-weight: var(--extra-section-heading-weight);
  line-height: 1.18;
  letter-spacing: 0;
}

.order-extra-settings-form .wizard-source-ratio-values span {
  font-size: 15px;
}

.order-extra-settings-form .wizard-source-ratio-values strong {
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0;
}

.extra-search-ratio-control .wizard-source-ratio-scale,
.wizard-mobile-device-ratio-control .wizard-source-ratio-scale {
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: 13.5px;
  font-weight: 900;
}

.order-extra-settings-form .wizard-source-ratio-input::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--success) 70%, var(--brand)));
}

.order-extra-settings-form .wizard-source-ratio-input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 4px solid #ffffff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 44%, var(--line)),
    0 10px 20px color-mix(in srgb, var(--brand) 22%, transparent);
}

.order-extra-settings-form .wizard-source-ratio-input::-moz-range-track {
  background:
    linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--success) 70%, var(--brand)));
}

.order-extra-settings-form .wizard-source-ratio-input::-moz-range-thumb {
  border: 4px solid #ffffff;
}

.order-extra-settings-form .wizard-short-visit-ratio-control .wizard-source-ratio-values strong,
.extra-bounce-head strong {
  color: var(--warning);
}

.extra-bounce-card {
  margin-top: 2px;
  border-color: color-mix(in srgb, var(--warning) 22%, var(--line));
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--warning) 9%, transparent), transparent 34%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--warning) 3%, var(--panel-strong)));
}

.extra-bounce-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.extra-bounce-head strong {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.extra-help-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  line-height: 1;
  vertical-align: middle;
}

.extra-help-label-text {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.extra-help-tip {
  position: relative;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 78%, var(--text));
  font-size: 0;
  font-weight: 900;
  line-height: 0;
  appearance: none;
  cursor: help;
  box-shadow: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.extra-help-tip::after {
  content: "?";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--muted) 26%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 5%, #ffffff);
  color: color-mix(in srgb, var(--muted) 78%, var(--text));
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--muted) 5%, transparent);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.extra-help-tip::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 25;
  width: min(330px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--muted) 14%);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.38;
  text-align: left;
  white-space: normal;
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.extra-help-tip:hover,
.extra-help-tip:focus-visible {
  background: color-mix(in srgb, var(--muted) 3%, transparent);
  outline: none;
}

.extra-help-tip:hover::after,
.extra-help-tip:focus-visible::after {
  border-color: color-mix(in srgb, var(--muted) 38%, var(--line));
  background: color-mix(in srgb, var(--muted) 8%, #ffffff);
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
  box-shadow: 0 8px 16px color-mix(in srgb, var(--muted) 7%, transparent);
}

.extra-help-tip:hover::before,
.extra-help-tip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.extra-settings-head-tools .extra-help-tip::before {
  top: calc(100% + 12px);
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 80;
  width: min(310px, calc(100vw - 48px));
  transform: translateY(0);
}

.extra-settings-head-tools .extra-help-tip:hover::before,
.extra-settings-head-tools .extra-help-tip:focus-visible::before {
  transform: translateY(4px);
}

.extra-settings-variance-title .extra-settings-variance-help {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  align-self: center;
  transform: translateY(5px);
}

.extra-settings-variance-title .extra-settings-variance-help::after {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.order-extra-settings-form .wizard-short-visit-ratio-input::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--warning) 18%, var(--panel-strong)) 0%,
      var(--warning) var(--short-visit-ratio),
      color-mix(in srgb, var(--line) 72%, var(--panel-strong)) var(--short-visit-ratio),
      color-mix(in srgb, var(--warning) 24%, var(--panel-strong)) 74%,
      color-mix(in srgb, var(--warning) 86%, var(--brand)) 100%);
}

.order-extra-settings-form .wizard-short-visit-ratio-input::-moz-range-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--warning) 18%, var(--panel-strong)) 0%,
      var(--warning) var(--short-visit-ratio),
      color-mix(in srgb, var(--line) 72%, var(--panel-strong)) var(--short-visit-ratio),
      color-mix(in srgb, var(--warning) 24%, var(--panel-strong)) 74%,
      color-mix(in srgb, var(--warning) 86%, var(--brand)) 100%);
}

.order-extra-settings-form .wizard-short-visit-ratio-input::-webkit-slider-thumb {
  background: var(--warning);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--warning) 48%, var(--line)),
    0 10px 20px color-mix(in srgb, var(--warning) 22%, transparent);
}

.order-extra-settings-form .wizard-short-visit-ratio-input::-moz-range-thumb {
  background: var(--warning);
}

.wizard-source-ratio-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.order-extra-settings-form .wizard-mobile-device-ratio-input {
  --tablet-ratio: 3%;
}

.order-extra-settings-form .wizard-mobile-device-ratio-input::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--success) 78%, var(--brand)) 0%,
      color-mix(in srgb, var(--success) 78%, var(--brand)) calc(100% - var(--tablet-ratio)),
      color-mix(in srgb, var(--brand) 84%, #22d3ee) calc(100% - var(--tablet-ratio)),
      color-mix(in srgb, var(--brand) 84%, #22d3ee) 100%);
}

.order-extra-settings-form .wizard-mobile-device-ratio-input::-moz-range-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--success) 78%, var(--brand)) 0%,
      color-mix(in srgb, var(--success) 78%, var(--brand)) calc(100% - var(--tablet-ratio)),
      color-mix(in srgb, var(--brand) 84%, #22d3ee) calc(100% - var(--tablet-ratio)),
      color-mix(in srgb, var(--brand) 84%, #22d3ee) 100%);
}

.extra-settings-basic-panel,
.extra-settings-profile-mix,
.extra-settings-source-mix,
.extra-settings-exit-points,
.extra-settings-transition-exclusions {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--brand) 20%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 34%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 90%, #ffffff));
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.extra-settings-basic-panel {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--success) 11%, transparent), transparent 32%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 30%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 90%, #ffffff));
}

.extra-geo-query-support-card {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 34%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 88%, #ffffff));
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.extra-geo-query-support-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.extra-geo-query-support-check {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
}

.extra-geo-query-support-check input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.extra-geo-query-support-check span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--brand) 6%, var(--panel-strong)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 16px color-mix(in srgb, var(--brand) 8%, transparent);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.extra-geo-query-support-check span::after {
  content: "";
  width: 13px;
  height: 7px;
  margin-top: -2px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  opacity: 0;
  transform: rotate(-45deg) scale(0.8);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.extra-geo-query-support-check input:checked + span {
  border-color: color-mix(in srgb, var(--brand) 72%, var(--success));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, #38bdf8), color-mix(in srgb, var(--success) 72%, var(--brand)));
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--brand) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.extra-geo-query-support-check input:checked + span::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.extra-geo-query-support-check input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--brand) 18%, transparent);
  outline-offset: 2px;
}

.extra-geo-query-support-text {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extra-help-tip-info {
  flex: 0 0 30px;
}

.extra-help-tip-info::before {
  border-color: color-mix(in srgb, var(--line) 86%, var(--muted) 14%);
}

.extra-search-ratio-help::before {
  top: calc(100% + 10px);
  bottom: auto;
  width: min(420px, calc(100vw - 64px));
  transform: translate(-50%, -6px);
}

.extra-search-ratio-help:hover::before,
.extra-search-ratio-help:focus-visible::before {
  transform: translate(-50%, 0);
}

.extra-geo-query-support-card .extra-help-tip-info::before {
  top: calc(100% + 10px);
  bottom: auto;
  width: min(420px, calc(100vw - 64px));
  transform: translate(-50%, -6px);
}

.extra-geo-query-support-card .extra-help-tip-info:hover::before,
.extra-geo-query-support-card .extra-help-tip-info:focus-visible::before {
  transform: translate(-50%, 0);
}

.extra-settings-source-mix {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 32%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 90%, #ffffff));
}

.extra-source-mix-switch {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--brand) 14%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-strong) 92%, #ffffff);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.extra-source-mix-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.extra-source-mix-switch-track {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  border: 1px solid color-mix(in srgb, var(--muted) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 17%, #ffffff);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.extra-source-mix-switch-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease;
}

.extra-source-mix-switch input:checked + .extra-source-mix-switch-track {
  border-color: color-mix(in srgb, var(--success) 60%, var(--brand));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 78%, #38bdf8), var(--success));
  box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 17%, transparent);
}

.extra-source-mix-switch input:checked + .extra-source-mix-switch-track span {
  transform: translateX(20px);
}

.extra-source-mix-switch:has(input:focus-visible) {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}

.extra-source-mix-switch-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.extra-source-mix-switch-copy strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.extra-source-mix-switch-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.extra-settings-source-mix.is-source-mix-active .extra-source-mix-switch {
  border-color: color-mix(in srgb, var(--success) 34%, var(--line));
  background: color-mix(in srgb, var(--success) 5%, #ffffff);
}

.extra-settings-source-mix.is-waiting .extra-source-mix-switch {
  border-color: color-mix(in srgb, var(--warning) 38%, var(--line));
}

.extra-settings-source-mix.is-disabled .extra-source-mix-group {
  opacity: 0.48;
  filter: saturate(0.5);
}

.extra-source-mix-group {
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.extra-settings-source-mix.is-disabled .extra-source-mix-group input {
  cursor: not-allowed;
}

.extra-mobile-tablet-ratio-switch {
  margin-bottom: 4px;
}

.wizard-mobile-device-ratio-control .wizard-source-ratio-values,
.wizard-mobile-device-ratio-control .wizard-source-ratio-input,
.wizard-mobile-device-ratio-control .wizard-source-ratio-scale {
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.wizard-mobile-device-ratio-control.is-disabled .wizard-source-ratio-values,
.wizard-mobile-device-ratio-control.is-disabled .wizard-source-ratio-input,
.wizard-mobile-device-ratio-control.is-disabled .wizard-source-ratio-scale {
  opacity: 0.48;
  filter: saturate(0.5);
}

.wizard-mobile-device-ratio-control.is-disabled .wizard-source-ratio-input {
  cursor: not-allowed;
}

.extra-settings-exit-points {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 32%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--success) 8%, transparent), transparent 30%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 88%, #ffffff));
}

.extra-settings-exit-points.is-active {
  padding-bottom: 92px;
}

.extra-settings-transition-exclusions {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--success) 8%, transparent), transparent 32%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 88%, #ffffff));
}

.extra-weekday-reduction-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--success) 18%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 7%, #ffffff), #ffffff 58%),
    var(--panel);
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    opacity 0.16s ease;
}

.extra-weekday-reduction-list {
  display: grid;
  gap: 9px;
}

.extra-weekday-reduction-row {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) minmax(220px, 1fr) 58px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-strong) 74%, #ffffff);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.extra-weekday-name {
  min-width: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.1;
}

.extra-weekday-reduction-row strong {
  justify-self: end;
  min-width: 50px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--success) 18%, var(--line));
  border-radius: 10px;
  background: #ffffff;
  color: color-mix(in srgb, var(--success) 76%, var(--text));
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.extra-weekday-reduction-input {
  --weekday-traffic-ratio: 100%;
  width: 100%;
}

.order-extra-settings-form .extra-weekday-reduction-input::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--success) 82%, var(--brand)) 0%,
      color-mix(in srgb, var(--success) 82%, var(--brand)) var(--weekday-traffic-ratio),
      color-mix(in srgb, var(--line) 76%, #ffffff) var(--weekday-traffic-ratio),
      color-mix(in srgb, var(--line) 76%, #ffffff) 100%);
}

.order-extra-settings-form .extra-weekday-reduction-input::-moz-range-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--success) 82%, var(--brand)) 0%,
      color-mix(in srgb, var(--success) 82%, var(--brand)) var(--weekday-traffic-ratio),
      color-mix(in srgb, var(--line) 76%, #ffffff) var(--weekday-traffic-ratio),
      color-mix(in srgb, var(--line) 76%, #ffffff) 100%);
}

.extra-weekday-reduction-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.extra-settings-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 16px;
}

.extra-settings-section-head > div {
  min-height: 100%;
  display: grid;
  align-content: center;
}

.extra-settings-source-mix .extra-settings-section-head > .extra-inline-setting-title {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  align-content: initial;
  justify-content: flex-start;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
}

.extra-settings-source-mix .extra-inline-setting-title .extra-help-tip {
  flex: 0 0 30px;
}

.extra-settings-section-head span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--success) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 8%, #ffffff);
  color: color-mix(in srgb, var(--success) 78%, var(--text));
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.extra-settings-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.extra-profile-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.extra-profile-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--brand) 16%);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, #ffffff), #ffffff 64%),
    var(--panel);
}

.extra-profile-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.extra-profile-card-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, #ffffff), color-mix(in srgb, var(--success) 10%, #ffffff));
  color: color-mix(in srgb, var(--brand) 82%, var(--text));
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.extra-profile-card-head h4 {
  margin: 0;
  color: var(--text);
  font-size: var(--extra-card-heading-size);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: 0;
}

.extra-profile-card-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.extra-profile-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-strong) 72%, #ffffff);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.extra-profile-group.is-balanced {
  border-color: color-mix(in srgb, var(--success) 18%, var(--line));
}

.extra-profile-group.is-invalid {
  border-color: color-mix(in srgb, var(--warning) 48%, var(--line));
  background: color-mix(in srgb, var(--warning) 5%, #ffffff);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--warning) 8%, transparent);
}

.extra-profile-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.extra-profile-group-head span {
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.extra-profile-group-head strong {
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 10%, #ffffff);
  color: color-mix(in srgb, var(--success) 78%, var(--text));
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.extra-profile-group.is-invalid .extra-profile-group-head strong {
  background: color-mix(in srgb, var(--warning) 12%, #ffffff);
  color: color-mix(in srgb, var(--warning) 82%, var(--text));
}

.extra-exit-pages-card.is-invalid .extra-profile-group-head strong {
  background: color-mix(in srgb, var(--warning) 12%, #ffffff);
  color: color-mix(in srgb, var(--warning) 82%, var(--text));
}

.extra-profile-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.82fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.extra-profile-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extra-profile-range {
  --profile-percent: 0%;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.extra-profile-range:focus-visible {
  outline: none;
}

.extra-profile-range::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--brand) 80%, var(--success)) 0%,
      color-mix(in srgb, var(--brand) 80%, var(--success)) var(--profile-percent),
      color-mix(in srgb, var(--line) 80%, #ffffff) var(--profile-percent),
      color-mix(in srgb, var(--line) 80%, #ffffff) 100%);
}

.extra-profile-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5.5px;
  appearance: none;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 78%, var(--success));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 32%, var(--line)),
    0 8px 15px color-mix(in srgb, var(--brand) 18%, transparent);
}

.extra-profile-range::-moz-range-track {
  height: 7px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--brand) 80%, var(--success)) 0%,
      color-mix(in srgb, var(--brand) 80%, var(--success)) var(--profile-percent),
      color-mix(in srgb, var(--line) 80%, #ffffff) var(--profile-percent),
      color-mix(in srgb, var(--line) 80%, #ffffff) 100%);
}

.extra-profile-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 78%, var(--success));
}

.extra-profile-percent {
  position: relative;
  width: 66px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.extra-profile-percent::after {
  content: attr(data-percent);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 1px;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.extra-profile-percent input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 36px;
  text-align: center;
  opacity: 0;
  appearance: textfield;
  cursor: text;
}

.extra-profile-percent:focus-within::after {
  opacity: 0;
}

.extra-profile-percent:focus-within input {
  opacity: 1;
}

.extra-profile-percent span {
  display: none;
}

.extra-profile-percent input:focus {
  outline: none;
}

.extra-profile-percent input::-webkit-outer-spin-button,
.extra-profile-percent input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.extra-exit-row .extra-profile-percent {
  width: 56px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  align-self: end;
}

.extra-exit-row .extra-profile-percent input {
  width: 100%;
  height: 100%;
  flex: none;
  text-align: center;
  line-height: 36px;
}

.extra-exit-row .extra-profile-percent span {
  display: none;
}

.extra-exit-trigger-card,
.extra-exit-pages-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, #ffffff), #ffffff 68%),
    var(--panel);
}

.extra-exit-trigger-card .wizard-source-ratio-values span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.extra-exit-trigger-card .wizard-source-ratio-values strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 950;
}

.extra-exit-trigger-input {
  --exit-trigger-ratio: 35%;
}

.extra-settings-exit-points .extra-profile-range:focus-visible,
.extra-settings-exit-points .wizard-source-ratio-input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 72%, #ffffff);
  outline-offset: 3px;
}

.extra-exit-trigger-input::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--line) 84%, #ffffff) 0%,
      color-mix(in srgb, var(--brand) 84%, var(--success)) var(--exit-trigger-ratio),
      color-mix(in srgb, var(--line) 78%, #ffffff) var(--exit-trigger-ratio),
      color-mix(in srgb, var(--success) 22%, var(--line)) 100%);
}

.extra-exit-trigger-input::-moz-range-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--line) 84%, #ffffff) 0%,
      color-mix(in srgb, var(--brand) 84%, var(--success)) var(--exit-trigger-ratio),
      color-mix(in srgb, var(--line) 78%, #ffffff) var(--exit-trigger-ratio),
      color-mix(in srgb, var(--success) 22%, var(--line)) 100%);
}

.extra-exit-pages-card {
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.extra-exit-pages-card.is-balanced {
  border-color: color-mix(in srgb, var(--success) 20%, var(--line));
}

.extra-exit-pages-card.is-invalid {
  border-color: color-mix(in srgb, var(--warning) 48%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--warning) 5%, #ffffff), #ffffff 68%),
    var(--panel);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--warning) 8%, transparent);
}

.extra-exit-pages-list {
  display: grid;
  gap: 9px;
}

.extra-exit-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(160px, 0.9fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-strong) 68%, #ffffff);
}

.extra-exit-url-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin: 0;
}

.extra-exit-url-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.extra-exit-url-field input {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.extra-exit-url-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 64%, transparent);
}

.extra-exit-url-field input:focus {
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  outline: 3px solid color-mix(in srgb, var(--brand) 14%, transparent);
}

.extra-exit-page-range {
  margin-bottom: 6px;
}

.extra-exit-remove {
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 10px;
  background: #ffffff;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.extra-exit-remove:hover,
.extra-exit-remove:focus-visible {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--line));
  background: color-mix(in srgb, var(--danger) 7%, #ffffff);
  color: var(--danger);
}

.extra-exit-add {
  width: fit-content;
  justify-self: end;
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 7%, #ffffff);
  color: color-mix(in srgb, var(--brand) 78%, var(--text));
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.extra-exit-add:hover,
.extra-exit-add:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background: color-mix(in srgb, var(--brand) 11%, #ffffff);
  color: color-mix(in srgb, var(--brand) 88%, var(--text));
}

.extra-exit-pages-message {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.45;
}

.extra-exit-pages-message:empty {
  display: none;
}

.extra-exit-add:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.extra-text-action-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--success) 8%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, #ffffff), #ffffff 72%);
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.extra-text-action-head {
  padding-bottom: 2px;
}

.extra-text-action-trigger-card,
.extra-text-action-ratio-card {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--brand) 12%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-strong) 72%, #ffffff);
}

.extra-text-action-ratio-card.is-hidden {
  display: none;
}

.extra-text-action-ratio-head {
  display: grid;
  gap: 4px;
}

.extra-text-action-ratio-head span {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.extra-text-action-ratio-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.extra-text-action-trigger-card .wizard-source-ratio-values span,
.extra-text-action-ratio-card .wizard-source-ratio-values span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 900;
}

.extra-text-action-trigger-card .wizard-source-ratio-values strong,
.extra-text-action-ratio-card .wizard-source-ratio-values strong {
  color: var(--text);
  font-size: 23px;
  font-weight: 950;
}

.extra-text-action-trigger-input {
  --text-action-trigger-ratio: 30%;
}

.extra-text-action-ratio-input {
  --text-action-ratio: 50%;
}

.extra-text-action-trigger-input::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--line) 84%, #ffffff) 0%,
      color-mix(in srgb, var(--brand) 82%, var(--success)) var(--text-action-trigger-ratio),
      color-mix(in srgb, var(--line) 78%, #ffffff) var(--text-action-trigger-ratio),
      color-mix(in srgb, var(--success) 20%, var(--line)) 100%);
}

.extra-text-action-trigger-input::-moz-range-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--line) 84%, #ffffff) 0%,
      color-mix(in srgb, var(--brand) 82%, var(--success)) var(--text-action-trigger-ratio),
      color-mix(in srgb, var(--line) 78%, #ffffff) var(--text-action-trigger-ratio),
      color-mix(in srgb, var(--success) 20%, var(--line)) 100%);
}

.extra-text-action-ratio-input::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--brand) 84%, #2563eb) 0%,
      color-mix(in srgb, var(--brand) 84%, #2563eb) var(--text-action-ratio),
      color-mix(in srgb, var(--success) 18%, var(--line)) var(--text-action-ratio),
      color-mix(in srgb, var(--success) 78%, var(--brand)) 100%);
}

.extra-text-action-ratio-input::-moz-range-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--brand) 84%, #2563eb) 0%,
      color-mix(in srgb, var(--brand) 84%, #2563eb) var(--text-action-ratio),
      color-mix(in srgb, var(--success) 18%, var(--line)) var(--text-action-ratio),
      color-mix(in srgb, var(--success) 78%, var(--brand)) 100%);
}

.extra-text-action-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.extra-text-action-mode {
  min-width: 0;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 82%, #ffffff));
  color: var(--text);
  text-align: left;
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.extra-text-action-mode span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extra-text-action-mode small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.extra-text-action-mode:hover,
.extra-text-action-mode:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, #ffffff);
  outline: none;
}

.extra-text-action-mode.is-active {
  border-color: color-mix(in srgb, var(--brand) 46%, var(--success));
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--success) 15%, transparent), transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, #ffffff), #ffffff);
  color: color-mix(in srgb, var(--brand) 78%, var(--text));
  box-shadow:
    0 12px 22px color-mix(in srgb, var(--brand) 10%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

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

.extra-text-action-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 90%, #ffffff));
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.extra-text-action-field span {
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.extra-text-action-field input {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--brand) 3%, #ffffff));
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px color-mix(in srgb, var(--brand) 6%, transparent);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.extra-text-action-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 74%, transparent);
}

.extra-text-action-field input:focus {
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  outline: 3px solid color-mix(in srgb, var(--brand) 14%, transparent);
}

.extra-text-action-field.is-disabled {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--panel-strong) 76%, #ffffff);
  box-shadow: none;
  opacity: 0.66;
}

.extra-text-action-field.is-disabled span {
  color: color-mix(in srgb, var(--muted) 76%, transparent);
}

.extra-text-action-field.is-disabled input {
  border-color: color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, var(--panel-strong) 84%, #ffffff);
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
  cursor: not-allowed;
  box-shadow: none;
}

.extra-text-action-field.is-disabled input::placeholder {
  color: color-mix(in srgb, var(--muted) 54%, transparent);
}

.extra-exclusion-field {
  min-width: 0;
  display: grid;
  gap: 9px;
  margin: 0;
}

.extra-exclusion-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.extra-exclusion-label-row span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.extra-exclusion-label-row strong {
  min-width: 76px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 7%, #ffffff);
  color: color-mix(in srgb, var(--brand) 76%, var(--text));
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.extra-exclusion-field textarea {
  width: 100%;
  min-height: 132px;
  max-height: 220px;
  margin: 0;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--brand) 12%);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #ffffff 92%, var(--panel-strong)), #ffffff);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(15, 23, 42, 0.05);
}

.extra-exclusion-field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
  font-weight: 700;
}

.extra-exclusion-field textarea:focus {
  border-color: color-mix(in srgb, var(--brand) 46%, var(--line));
  outline: 3px solid color-mix(in srgb, var(--brand) 16%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 28px color-mix(in srgb, var(--brand) 10%, transparent);
}

.extra-exclusion-field small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.order-extra-settings-form > .modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: auto -22px 0;
  padding: 14px 22px;
  border-top: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 36%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--success) 14%, transparent), transparent 34%),
    linear-gradient(180deg, #e5edf7, #f3f7fb);
  box-shadow:
    0 -14px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.order-extra-settings-form > .modal-actions.extra-settings-actions {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.extra-settings-actions-left,
.extra-settings-actions-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.extra-settings-actions-right {
  justify-content: flex-end;
}

.extra-settings-reset-open {
  min-height: 40px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid color-mix(in srgb, #d92d20 22%, var(--line));
  border-radius: 9px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff5f3 86%, #ffffff), #ffffff);
  color: color-mix(in srgb, #b42318 88%, var(--text));
  font-size: 13px;
  font-weight: 850;
  box-shadow:
    0 9px 18px rgba(180, 35, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.extra-settings-reset-open:hover,
.extra-settings-reset-open:focus-visible {
  border-color: color-mix(in srgb, #d92d20 34%, var(--line));
  background: linear-gradient(180deg, #fff7f5, #ffffff);
  color: #9f1f16;
  outline: none;
  box-shadow:
    0 12px 22px rgba(180, 35, 24, 0.12),
    0 0 0 3px color-mix(in srgb, #d92d20 10%, transparent);
}

.extra-settings-reset-dialog {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
}

.extra-settings-reset-dialog.hidden {
  display: none;
}

.extra-settings-reset-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(7px);
}

.extra-settings-reset-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, #d92d20 7%, transparent), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--text);
  box-shadow:
    0 26px 60px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.extra-settings-reset-kicker {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, #d92d20 16%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, #fff3f0 86%, #ffffff);
  color: color-mix(in srgb, #b42318 78%, var(--text));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.extra-settings-reset-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
}

.extra-settings-reset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.extra-settings-reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.extra-settings-reset-actions button {
  min-height: 40px;
  margin: 0;
  border-radius: 9px;
}

.extra-settings-reset-actions button[data-confirm-extra-settings-reset] {
  min-width: 132px;
  border: 1px solid color-mix(in srgb, #d92d20 28%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, #d92d20 88%, #fb7185), color-mix(in srgb, #b42318 90%, var(--brand)));
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(180, 35, 24, 0.18);
}

.extra-settings-reset-actions button[data-confirm-extra-settings-reset]:hover,
.extra-settings-reset-actions button[data-confirm-extra-settings-reset]:focus-visible {
  background:
    linear-gradient(135deg, color-mix(in srgb, #c72a1c 90%, #fb7185), color-mix(in srgb, #9f1f16 92%, var(--brand)));
  outline: none;
  box-shadow:
    0 18px 32px rgba(180, 35, 24, 0.24),
    0 0 0 3px color-mix(in srgb, #d92d20 12%, transparent);
}

.wizard-source-ratio-control {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--brand) 16%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-strong) 76%, var(--text) 4%);
}

.wizard-source-ratio-values,
.wizard-source-ratio-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-source-ratio-values span {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.wizard-source-ratio-values strong {
  color: var(--brand);
  font-size: 22px;
  font-weight: 950;
}

.wizard-source-ratio-scale {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wizard-source-ratio-input {
  width: 100%;
  height: 24px;
  margin: 2px 0 0;
  padding: 0;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wizard-source-ratio-input:focus-visible {
  outline: none;
}

.wizard-source-ratio-input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #fc3f1d, color-mix(in srgb, var(--brand) 72%, #4285f4));
}

.wizard-source-ratio-input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  appearance: none;
  border: 3px solid var(--panel);
  border-radius: 999px;
  background: var(--brand);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 56%, var(--line)),
    0 8px 18px color-mix(in srgb, var(--brand) 24%, transparent);
}

.wizard-source-ratio-input::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #fc3f1d, color-mix(in srgb, var(--brand) 72%, #4285f4));
}

.wizard-source-ratio-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--panel);
  border-radius: 999px;
  background: var(--brand);
}

.wizard-short-visit-ratio-control .wizard-source-ratio-values strong {
  color: #d92d20;
}

.wizard-short-visit-ratio-input {
  --short-visit-ratio: 0%;
}

.wizard-short-visit-ratio-input::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, #fc8d74 44%, var(--panel-strong)) 0%,
      #d92d20 var(--short-visit-ratio),
      color-mix(in srgb, var(--line) 72%, var(--panel-strong)) var(--short-visit-ratio),
      color-mix(in srgb, #fc8d74 68%, var(--panel-strong)) 74%,
      #d92d20 100%);
}

.wizard-short-visit-ratio-input::-moz-range-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, #fc8d74 44%, var(--panel-strong)) 0%,
      #d92d20 var(--short-visit-ratio),
      color-mix(in srgb, var(--line) 72%, var(--panel-strong)) var(--short-visit-ratio),
      color-mix(in srgb, #fc8d74 68%, var(--panel-strong)) 74%,
      #d92d20 100%);
}

.wizard-short-visit-ratio-input::-webkit-slider-thumb {
  background: #d92d20;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #d92d20 58%, var(--line)),
    0 8px 18px color-mix(in srgb, #d92d20 24%, transparent);
}

.wizard-short-visit-ratio-input::-moz-range-thumb {
  background: #d92d20;
}

.order-extra-settings-form .modal-actions .ghost-btn {
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  background: var(--panel-strong);
  color: var(--muted);
}

.order-extra-settings-form .modal-actions .ghost-btn:hover,
.order-extra-settings-form .modal-actions .ghost-btn:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
  background: #ffffff;
  color: var(--text);
}

.order-extra-settings-form .modal-actions button[type="submit"] {
  min-width: 148px;
  border-color: color-mix(in srgb, var(--success) 24%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 88%, #22d3ee), color-mix(in srgb, var(--brand) 70%, var(--success)));
  color: #ffffff;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--success) 22%, transparent);
}

.order-extra-settings-form .modal-actions button[type="submit"]:hover,
.order-extra-settings-form .modal-actions button[type="submit"]:focus-visible {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 78%, #22d3ee), color-mix(in srgb, var(--brand) 82%, var(--success)));
  box-shadow: 0 18px 30px color-mix(in srgb, var(--brand) 24%, transparent);
}

@media (max-width: 900px) {
  .order-extra-settings-panel .modal-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .extra-settings-head-copy {
    flex: 1 1 320px;
  }

  .extra-settings-head-tools {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .extra-settings-variance-control {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 680px) {
  .order-extra-settings-panel {
    width: min(100%, calc(100vw - 20px));
    height: calc(100vh - 20px);
    min-height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .order-extra-settings-panel .modal-head,
  .order-extra-settings-form.modal-form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .extra-settings-head-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 14px;
    align-items: center;
  }

  .extra-settings-variance-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
  }

  .extra-settings-variance-text {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .order-extra-settings-form .wizard-source-ratio-values {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .extra-settings-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 -16px 2px;
    padding: 12px 16px;
  }

  .extra-settings-tabs::after {
    display: none;
  }

  .extra-settings-tabs button {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12.5px;
  }

  .extra-settings-section-head,
  .extra-profile-layout {
    grid-template-columns: 1fr;
  }

  .extra-profile-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .extra-weekday-reduction-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .extra-weekday-reduction-input {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .extra-profile-range {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .extra-exit-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .extra-exit-url-field {
    grid-column: 1 / -1;
  }

  .extra-exit-page-range {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-bottom: 0;
  }

  .extra-exit-add {
    width: 100%;
    justify-self: stretch;
  }

  .extra-text-action-mode-grid,
  .extra-text-action-fields {
    grid-template-columns: 1fr;
  }

  .extra-text-action-mode {
    min-height: 64px;
  }

  .order-extra-settings-form .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px;
  }

  .extra-settings-actions-left,
  .extra-settings-actions-right,
  .extra-settings-reset-actions {
    width: 100%;
  }

  .extra-settings-actions-left,
  .extra-settings-actions-right {
    justify-content: stretch;
  }

  .extra-settings-actions-left button,
  .extra-settings-actions-right button,
  .extra-settings-reset-actions button {
    width: 100%;
  }

  .extra-settings-reset-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.wizard-source-value-modal-panel {
  width: min(640px, calc(100vw - 32px));
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
  gap: 14px;
  padding-bottom: 18px;
  overflow: hidden;
}

.wizard-source-value-modal-panel > label,
.wizard-source-value-modal-panel > .wizard-source-value-input,
.wizard-source-value-modal-panel > .modal-actions {
  margin-left: 18px;
  margin-right: 18px;
}

.wizard-source-value-modal-panel > label {
  margin-top: 0;
}

.wizard-source-value-input {
  width: auto;
  min-width: 0;
  min-height: 260px;
  max-height: min(42vh, 380px);
  resize: vertical;
  outline: none;
  scrollbar-color: color-mix(in srgb, var(--brand) 52%, var(--line)) color-mix(in srgb, var(--panel) 82%, #000 8%);
  scrollbar-width: thin;
}

.wizard-source-value-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 68%, var(--line));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent);
}

.wizard-source-value-input::-webkit-scrollbar {
  width: 10px;
}

.wizard-source-value-input::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--panel) 82%, #000 8%);
  border-radius: 999px;
}

.wizard-source-value-input::-webkit-scrollbar-thumb {
  border: 2px solid color-mix(in srgb, var(--panel) 82%, #000 8%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 52%, var(--line));
}

.wizard-source-value-modal-panel .modal-actions {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

.order-stats-panel {
  width: min(980px, 100%);
  height: min(720px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.visit-log-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.visit-log-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
}

.visit-log-top,
.visit-log-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visit-log-top {
  margin-bottom: 12px;
}

.visit-log-top span {
  color: var(--muted);
  font-size: 13px;
}

.visit-log-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visit-log-metric {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 82%, var(--text) 3%);
}

.visit-log-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.visit-log-metric strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-log-metric .visit-device {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--text);
}

.visit-log-metric .visit-device svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.visit-log-metric .visit-device.mobile {
  color: var(--brand);
}

.visit-log-metric .visit-device.desktop {
  color: var(--success);
}

.visit-log-metric .visit-device span {
  display: inline;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transition-details {
  margin-top: 12px;
  color: var(--muted);
}

.transition-details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
}

.transition-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.transition-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, var(--text) 4%);
}

.transition-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#visit-log-more {
  margin: 0 18px 18px auto;
}

.order-stats-body {
  flex: 1;
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.order-stats-body.is-loading .order-stats-summary div,
.order-stats-body.is-loading .order-stats-chart {
  opacity: 0.68;
  transition: opacity 0.16s ease;
}

.stats-period-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  width: min(660px, 100%);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 82%, var(--text) 4%);
}

.stats-period-tabs button {
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.stats-period-tabs button.active,
.stats-period-tabs button.is-active {
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  background: color-mix(in srgb, var(--brand) 16%, var(--panel));
  color: var(--text);
}

.stats-granularity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: min(560px, 100%);
}

.stats-granularity-tabs button {
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 84%, var(--text) 4%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stats-granularity-tabs button.active {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background: color-mix(in srgb, var(--brand) 13%, var(--panel));
  color: var(--text);
}

.order-stats-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.order-stats-summary div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.order-stats-summary strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-stats-summary span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.order-stats-chart-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.order-stats-body.is-loading .order-stats-chart-wrap::after {
  content: "Обновляю";
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-stats-chart {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  border-radius: 8px;
  background: var(--panel);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, var(--panel));
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.status-pill.saved {
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
  color: var(--brand);
}

.status-pill.done {
  background: color-mix(in srgb, var(--success) 18%, var(--panel));
  color: var(--success);
}

.status-pill.error {
  background: color-mix(in srgb, var(--danger) 18%, var(--panel));
  color: var(--danger);
}

.status-pill.processing {
  background: color-mix(in srgb, var(--warning) 18%, var(--panel));
  color: var(--warning);
}

.status-pill.active {
  background: color-mix(in srgb, var(--success) 18%, var(--panel));
  color: var(--success);
}

.status-pill.paused {
  background: color-mix(in srgb, var(--muted) 18%, var(--panel));
  color: var(--muted);
}

.site-footer {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: transparent;
  pointer-events: none;
}

.footer-main,
.payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal-links {
  min-width: 190px;
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 72%, transparent), color-mix(in srgb, var(--panel) 42%, transparent));
  color: color-mix(in srgb, var(--muted) 90%, var(--text));
  font-size: 12px;
  font-weight: 760;
  text-align: left;
}

.footer-legal-links::before {
  content: "Документы";
  padding: 0 8px 4px;
  color: color-mix(in srgb, var(--brand) 78%, var(--text));
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-legal-links a {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--text);
}

.footer-support {
  min-width: 0;
  max-width: 280px;
  display: grid;
  gap: 3px;
  margin: 0;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-style: normal;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.footer-support span,
.footer-support a {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.footer-support span {
  font-weight: 700;
}

.footer-support a {
  color: color-mix(in srgb, var(--brand) 72%, var(--text));
  font-weight: 800;
  text-decoration: none;
}

.footer-support a:hover,
.footer-support a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-icons {
  gap: 8px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(360px, 1.25fr) minmax(230px, 0.85fr) auto;
  align-items: stretch;
  justify-content: stretch;
  gap: 16px;
  padding: 26px 0 30px;
}

.site-footer::before {
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 60%, transparent), color-mix(in srgb, #000 12%, transparent));
}

.footer-main {
  min-width: 0;
  display: grid;
  align-content: start;
  align-items: start;
  gap: 13px;
  padding: 14px 0;
}

.footer-main > span {
  width: 100%;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 13px;
  font-weight: 830;
  line-height: 1.35;
}

.payment-icons {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-icons::before {
  content: "Оплата";
  width: 100%;
  color: color-mix(in srgb, var(--muted) 84%, var(--text));
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-legal-links {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 6px 8px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 90%, var(--brand) 2%), color-mix(in srgb, var(--panel) 68%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent);
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
  font-size: 12px;
  font-weight: 780;
  text-align: left;
}

.footer-legal-links::before {
  content: "Документы";
  grid-column: 1 / -1;
  padding: 0 2px 4px;
  color: color-mix(in srgb, var(--brand) 78%, var(--text));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-legal-links a {
  min-height: 30px;
  justify-content: flex-start;
  padding: 0 10px;
  line-height: 1.2;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.footer-support {
  min-width: 0;
  max-width: none;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 60%, transparent);
  text-align: left;
}

.footer-support span {
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 12px;
  font-weight: 820;
}

.footer-support a {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: color-mix(in srgb, var(--brand) 78%, var(--text));
  text-decoration: none;
}

.footer-support a:hover,
.footer-support a:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
  text-decoration: none;
}

.legal-page .page-shell {
  display: grid;
  gap: 22px;
  padding: 28px 0 54px;
}

.legal-hero,
.legal-doc,
.legal-index-card {
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--brand) 12%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, var(--brand) 4%), color-mix(in srgb, var(--panel) 96%, transparent));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.legal-hero {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 38px);
}

.legal-hero h1,
.legal-doc h1 {
  margin: 0;
  color: var(--text);
  font-family: "Arial Black", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
}

.legal-hero p,
.legal-doc-lead,
.legal-index-card p,
.legal-section p,
.legal-section li {
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
  font-size: 15px;
  line-height: 1.62;
}

.legal-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.legal-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--brand) 16%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 12px;
  font-weight: 820;
}

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

.legal-index-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.legal-index-card:hover,
.legal-index-card:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, var(--brand) 8%), color-mix(in srgb, var(--panel) 96%, transparent));
  transform: translateY(-1px);
}

.legal-index-card strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.legal-index-card p {
  margin: 0;
}

.legal-doc {
  width: 100%;
  max-width: 940px;
  justify-self: center;
  display: grid;
  gap: 24px;
  padding: clamp(20px, 4vw, 38px);
}

.legal-doc-head {
  display: grid;
  gap: 12px;
}

.legal-doc-lead {
  max-width: 840px;
  margin: 0;
}

.legal-section {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
}

.legal-section h3 {
  margin: 8px 0 0;
  color: color-mix(in srgb, var(--text) 92%, var(--brand));
  font-size: 17px;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  margin: 0;
  min-width: 0;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.legal-note {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 8%, var(--panel));
}

.legal-contact {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 44%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.legal-contact:hover,
.legal-contact:focus-visible {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}

.payment-icon {
  width: 72px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 242, 255, 0.94));
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #0f172a;
}

.payment-icon svg {
  flex: 0 0 58px;
  width: 58px;
  height: 22px;
  display: block;
  overflow: visible;
}

.payment-icon text {
  fill: currentColor;
  font-family: "Arial Black", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.visa-logo {
  width: 58px;
  height: 22px;
}

.visa-word {
  fill: #1434cb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: central;
}

.payment-icon .mc-red {
  fill: #ef4444;
  opacity: 0.9;
}

.payment-icon .mc-yellow {
  fill: #f59e0b;
  opacity: 0.85;
  mix-blend-mode: normal;
}

.usdt-logo circle { fill: #26a17b; }
.usdt-logo path { fill: #ffffff; }
.usdt-logo text { fill: #26a17b; }

.bitcoin-logo .btc-circle { fill: #f7931a; }
.bitcoin-logo .btc-mark {
  fill: #ffffff;
}
.bitcoin-logo .btc-text { fill: #f7931a; }

.eth-logo .eth-top { fill: #64748b; }
.eth-logo .eth-bottom { fill: #94a3b8; }
.eth-logo text { fill: #475569; }

.ltc-logo .ltc-circle { fill: #345d9d; }
.ltc-logo .ltc-mark { fill: #ffffff; }
.ltc-logo text { fill: #345d9d; }

.user-label,
.hint {
  color: var(--muted);
  font-size: 14px;
}

.hint.is-ok {
  color: color-mix(in srgb, var(--success) 84%, var(--text));
}

.hint.is-warning {
  color: color-mix(in srgb, var(--warning) 86%, var(--text));
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
  margin: 0;
}

.provider-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

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

.stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.stats strong {
  display: block;
  font-size: 26px;
}

.stats strong.is-live {
  color: var(--accent);
}

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

.health-history-head {
  margin-top: 22px;
}

.proxy-quality-head {
  margin-top: 22px;
}

.proxy-quality-head h3 {
  margin: 0;
  font-size: 18px;
}

.proxy-quality-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.proxy-quality-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.proxy-quality-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
}

.proxy-quality-summary strong {
  display: block;
  font-size: 20px;
}

.proxy-quality-summary span,
.proxy-quality-row span,
.proxy-quality-hosts span {
  color: var(--muted);
  font-size: 13px;
}

.proxy-quality-hosts,
.proxy-quality-list {
  display: grid;
  gap: 8px;
}

.proxy-quality-hosts {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 76%, transparent);
}

.proxy-quality-hosts > strong {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.proxy-quality-hosts span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  overflow-wrap: anywhere;
}

.proxy-quality-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
}

.proxy-quality-row.is-ok {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
}

.proxy-quality-row.is-fail {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
}

.proxy-quality-row div {
  display: grid;
  gap: 4px;
}

.proxy-quality-row strong,
.proxy-quality-row p {
  overflow-wrap: anywhere;
}

.proxy-quality-row b {
  color: var(--text);
  font-size: 13px;
}

.proxy-quality-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.proxy-provider-panel {
  display: grid;
  gap: 14px;
}

.proxy-provider-summary,
.proxy-provider-check-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.proxy-provider-summary div,
.proxy-provider-check-cards div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
}

.proxy-provider-summary strong,
.proxy-provider-check-cards strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.proxy-provider-summary span,
.proxy-provider-check-cards span,
.proxy-provider-row span,
.proxy-provider-recent-row span {
  color: var(--muted);
  font-size: 13px;
}

.proxy-provider-section {
  display: grid;
  gap: 10px;
}

.proxy-provider-section h3 {
  margin: 0;
  font-size: 18px;
}

.proxy-provider-orders,
.proxy-provider-recent {
  display: grid;
  gap: 8px;
}

.proxy-provider-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
}

.proxy-provider-row > div,
.proxy-provider-recent-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.proxy-provider-row strong,
.proxy-provider-row b,
.proxy-provider-recent-row strong {
  overflow-wrap: anywhere;
}

.proxy-provider-row b {
  color: var(--text);
}

.proxy-provider-recent-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(100px, auto));
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
}

.health-history-head h3 {
  margin: 0;
  font-size: 18px;
}

.health-history-list {
  display: grid;
  gap: 10px;
}

.order-audit-head {
  margin-top: 0;
}

.order-audit-head h2,
.order-audit-head h3 {
  margin: 0;
  font-size: 18px;
}

.order-audit-summary,
.order-audit-runs-list,
.order-audit-list,
.order-audit-modal-list {
  display: grid;
  gap: 10px;
}

.order-audit-runs-list,
.order-audit-list {
  margin-top: 10px;
}

.order-audit-subhead {
  margin-top: 4px;
}

.order-audit-subhead h3 {
  margin: 0;
  font-size: 16px;
}

.order-audit-run-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.order-audit-summary-row,
.order-audit-run-row,
.order-audit-item-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
}

.order-audit-run-card {
  width: 100%;
  min-width: 0;
  min-height: 176px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.order-audit-run-card:hover,
.order-audit-run-card:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 54%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 76%, var(--brand) 8%);
}

.order-audit-run-card.is-ok {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
}

.order-audit-run-card.is-warning {
  border-color: color-mix(in srgb, var(--warning) 40%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 88%, var(--warning) 4%);
}

.order-audit-run-card.is-fail {
  border-color: color-mix(in srgb, var(--danger) 46%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 88%, var(--danger) 4%);
}

.order-audit-card-head,
.order-audit-card-foot {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-audit-run-time {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.order-audit-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-audit-card-metrics span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, var(--text) 4%);
}

.order-audit-card-metrics b,
.order-audit-card-metrics em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-audit-card-metrics b {
  color: var(--text);
  font-size: 14px;
  line-height: 1.1;
}

.order-audit-card-metrics em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.order-audit-card-foot {
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.order-audit-card-foot span,
.order-audit-card-foot strong,
.order-audit-card-error {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-audit-card-foot strong {
  color: var(--text);
  font-size: 12px;
}

.order-audit-card-error {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-audit-item-row.is-warning {
  border-color: color-mix(in srgb, var(--warning) 38%, var(--line));
}

.order-audit-item-row.is-critical {
  border-color: color-mix(in srgb, var(--danger) 46%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 88%, var(--danger) 4%);
}

.health-status.is-warning {
  background: color-mix(in srgb, var(--warning) 18%, var(--panel));
  color: var(--warning);
}

.order-audit-issues {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-audit-issues li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, var(--text) 4%);
}

.order-audit-issues strong,
.order-audit-issues span {
  overflow-wrap: anywhere;
}

.order-audit-issues span {
  color: var(--muted);
  font-size: 13px;
}

.order-audit-evidence {
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, var(--brand) 3%);
}

.order-audit-evidence-head,
.order-audit-evidence figcaption {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-audit-evidence-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.order-audit-evidence-head strong,
.order-audit-evidence-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-audit-evidence-head strong {
  color: var(--text);
  font-size: 13px;
}

.order-audit-evidence-head span,
.order-audit-evidence figcaption {
  color: var(--muted);
  font-size: 11px;
}

.order-audit-evidence-head a {
  flex: 0 0 auto;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.order-audit-evidence-head a:hover,
.order-audit-evidence-head a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.order-audit-evidence-preview {
  min-height: 140px;
  max-height: 280px;
  display: grid;
  place-items: start center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.order-audit-evidence-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.order-audit-evidence figcaption {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.order-audit-evidence figcaption span + span::before {
  content: "·";
  margin-right: 10px;
  color: color-mix(in srgb, var(--muted) 60%, transparent);
}

.order-audit-evidence figcaption .is-limited {
  color: var(--warning);
  font-weight: 750;
}

.order-audit-modal-panel {
  width: min(1040px, calc(100vw - 32px));
}

.order-audit-modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.order-audit-modal-meta div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
}

.order-audit-modal-meta strong,
.order-audit-modal-meta span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-audit-modal-meta strong {
  color: var(--text);
  font-size: 14px;
}

.order-audit-modal-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-audit-modal-list {
  padding: 18px;
}

.order-audit-modal-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 8%, var(--panel));
}

@media (max-width: 900px) {
  .order-audit-modal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .order-audit-run-grid,
  .order-audit-card-metrics,
  .order-audit-modal-meta {
    grid-template-columns: 1fr;
  }

  .order-audit-card-head,
  .order-audit-card-foot,
  .order-audit-evidence-head {
    align-items: stretch;
    flex-direction: column;
  }

  .order-audit-evidence-head a {
    align-self: flex-start;
  }
}

.security-events-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-users-list,
.admin-users-rows {
  display: grid;
  gap: 10px;
}

.admin-users-toolbar {
  margin: 0 0 14px;
}

.admin-users-toolbar input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.admin-users-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-users-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
}

.admin-users-summary strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.admin-users-summary span,
.admin-user-row span {
  color: var(--muted);
  font-size: 13px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(96px, auto) minmax(112px, 0.8fr) repeat(5, minmax(96px, 1fr));
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--brand) 16%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.admin-user-row:hover,
.admin-user-row:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 76%, var(--brand) 7%);
  outline: none;
  transform: translateY(-1px);
}

.admin-user-row > span,
.admin-user-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-user-row strong,
.admin-user-row b {
  overflow-wrap: anywhere;
}

.admin-user-balance-cell b {
  color: color-mix(in srgb, var(--success) 82%, var(--text));
  font-size: 16px;
}

.admin-user-warning {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--warning);
}

.admin-user-balance-panel {
  width: min(520px, calc(100vw - 32px));
}

.admin-user-balance-current {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--success) 40%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--success) 12%, var(--panel-strong));
}

.admin-user-balance-current span {
  color: var(--muted);
  font-size: 13px;
}

.admin-user-balance-current strong {
  color: color-mix(in srgb, var(--success) 84%, var(--text));
  font-size: 26px;
}

.admin-user-balance-actions {
  grid-template-columns: 1fr auto auto;
}

.danger-btn {
  border-color: color-mix(in srgb, var(--danger) 58%, var(--line)) !important;
  background: color-mix(in srgb, var(--danger) 16%, var(--panel-strong)) !important;
  color: color-mix(in srgb, var(--danger) 84%, var(--text)) !important;
}

.security-event-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 88%, var(--danger) 4%);
}

.security-event-head,
.security-event-grid {
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-event-head {
  justify-content: space-between;
}

.security-event-head strong,
.security-event-row p {
  overflow-wrap: anywhere;
}

.security-event-head span,
.security-event-grid span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, var(--text) 4%);
  color: var(--text);
  font-size: 13px;
}

.security-event-grid {
  flex-wrap: wrap;
}

.security-event-grid b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.security-event-row p {
  margin: 0;
}

.health-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
}

.health-alerts.is-ok {
  border-color: color-mix(in srgb, var(--success) 32%, var(--line));
}

.health-alerts.is-warning {
  border-color: color-mix(in srgb, var(--warning) 40%, var(--line));
}

.health-alerts.is-critical {
  border-color: color-mix(in srgb, var(--danger) 48%, var(--line));
}

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

.health-alerts-head strong {
  font-size: 13px;
}

.health-alerts-head span {
  color: var(--muted);
  font-size: 13px;
}

.health-alerts.is-ok .health-alerts-head strong {
  color: var(--success);
}

.health-alerts.is-warning .health-alerts-head strong {
  color: var(--warning);
}

.health-alerts.is-critical .health-alerts-head strong {
  color: var(--danger);
}

.health-alerts-list {
  display: grid;
  gap: 8px;
}

.health-alert-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, var(--text) 4%);
}

.health-alert-item strong {
  overflow-wrap: anywhere;
}

.health-alert-item span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.health-history-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
}

.health-history-main,
.health-history-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
}

.health-history-main {
  justify-content: space-between;
}

.health-history-main strong {
  overflow-wrap: anywhere;
}

.health-history-metrics {
  flex-wrap: wrap;
}

.health-history-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, var(--text) 4%);
  color: var(--text);
  font-size: 13px;
}

.health-history-metrics b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.health-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.health-status.is-ok {
  background: color-mix(in srgb, var(--success) 18%, var(--panel));
  color: var(--success);
}

.health-status.is-fail {
  background: color-mix(in srgb, var(--danger) 18%, var(--panel));
  color: var(--danger);
}

html[data-action-builder-enabled="false"] a[href="/actions"] {
  display: none !important;
}

.hidden { display: none !important; }

body.admin-page.admin-page-loading .site-footer {
  visibility: hidden;
}

body.public-auth-page #home-panel.home-panel:not(.hidden) {
  display: none !important;
}

body.public-auth-page #auth-panel.auth-grid.auth-first.hidden {
  display: grid !important;
}

html[data-auth-initial-view="register"] #login-form.auth-view-panel,
html[data-auth-initial-view="forgot"] #login-form.auth-view-panel,
html[data-auth-initial-view="reset"] #login-form.auth-view-panel {
  display: none !important;
}

html[data-auth-initial-view="register"] #register-form.auth-view-panel.hidden,
html[data-auth-initial-view="forgot"] #password-reset-request-form.auth-view-panel.hidden,
html[data-auth-initial-view="reset"] #password-reset-form.auth-view-panel.hidden {
  display: block !important;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--text);
}

@media (max-width: 780px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px 16px;
  }

  body.public-home-page .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 76px;
    padding: 10px 0;
  }

  body.public-home-page .topbar-nav {
    display: none;
  }

  body.public-home-page .topbar-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .section-head,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .topbar-nav {
    justify-content: space-between;
  }

  .topbar-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .user-balance-widget {
    max-width: 100%;
  }

  .topup-balance-btn {
    padding: 0 11px;
  }

  body:not(.orders-page) .orders-page-shell {
    width: min(1120px, calc(100% - 32px));
  }

  body:not(.orders-page) .orders-page-dashboard {
    padding: 14px 0 28px;
  }

  body:not(.orders-page) .orders-preview-shell {
    grid-template-columns: minmax(172px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
  }

  body:not(.orders-page) .orders-preview-tools {
    grid-template-columns: 1fr;
  }

  body:not(.orders-page) .sources-edit-grid {
    grid-template-columns: 1fr;
  }

  body:not(.orders-page) .orders-preview-order-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body:not(.orders-page) .orders-preview-order-card {
    height: 204px;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
  }

  body:not(.orders-page) .orders-preview-order-rail {
    grid-column: 1;
    grid-row: 1 / 4;
  }

  body:not(.orders-page) .orders-preview-order-rail .orders-preview-order-toggle {
    grid-column: auto;
    grid-row: auto;
  }

  body:not(.orders-page) .orders-preview-order-title-block {
    grid-column: 2;
    grid-row: 1;
  }

  body:not(.orders-page) .orders-preview-order-actions {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body:not(.orders-page) .orders-preview-order-steps {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  body:not(.orders-page) .orders-folders-sidebar,
  body:not(.orders-page) .orders-preview-canvas {
    min-height: auto;
  }

  body:not(.orders-page) .orders-folders-sidebar {
    position: sticky;
    top: 88px;
    z-index: 30;
    max-height: calc(100svh - 104px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 6px 0 14px;
    border-bottom: 0;
  }

  body:not(.orders-page) .orders-folder-list {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  body:not(.orders-page) .orders-folders-sidebar::after {
    display: block;
  }

  body:not(.orders-page) .orders-folder-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.orders-page) .orders-folder-tool-btn {
    text-align: center;
  }

  body:not(.orders-page) .orders-folder-management-layout {
    grid-template-columns: 1fr;
  }

  body:not(.orders-page) .orders-folder-create-row {
    grid-template-columns: 1fr;
  }

  body:not(.orders-page) .orders-page-head,
  body:not(.orders-page) .order-card-top,
  body:not(.orders-page) .order-card-progress {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body:not(.orders-page) .orders-page-head {
    padding-top: 14px;
  }

  body:not(.orders-page) .order-card-metrics,
  body:not(.orders-page) .order-card-details {
    grid-template-columns: 1fr;
  }

  body:not(.orders-page) .order-card-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body:not(.orders-page) .dashboard .order-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .auth-grid,
  .admin-grid,
  .admin-layout,
  .email-verification-resend,
  .form-grid,
  .entry-page-grid,
  .wizard-duration-grid,
  .wizard-activity-options,
  .home-metrics,
  .user-profile-layout,
  .admin-users-summary,
  .admin-user-row,
  .proxy-quality-summary,
  .proxy-provider-summary,
  .proxy-provider-check-cards,
  .proxy-provider-row,
  .proxy-provider-recent-row,
  .stats,
  .order-stats-summary,
  .visit-log-metrics {
    grid-template-columns: 1fr;
  }

  .proxy-quality-row {
    grid-template-columns: 1fr;
  }

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

  .geo-picker-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .wizard-geo-card {
    --wizard-geo-list-height: 220px;
  }

  .geo-picker-countries {
    max-height: 180px;
  }

  .geo-picker-field {
    grid-template-columns: 1fr;
  }

  .geo-picker-field .ghost-btn {
    grid-row: auto;
    grid-column: auto;
  }

  .geo-picker-tree-head,
  .geo-picker-footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .geo-picker-actions,
  .geo-picker-footer-actions button {
    width: 100%;
  }

  .order-geo-edit-panel {
    height: min(760px, calc(100vh - 24px));
  }

  .order-geo-edit-card .geo-picker-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(120px, 0.42fr) minmax(0, 0.58fr);
    overflow: hidden;
  }

  .order-geo-edit-card .geo-picker-countries,
  .order-geo-edit-card .geo-picker-regions {
    max-height: none;
  }

  .order-schedule-edit-panel {
    width: min(1040px, calc(100vw - 24px));
    height: min(660px, calc(100vh - 24px));
  }

  .order-edit-panel .modal-head,
  .order-basic-edit-panel .modal-head,
  .order-sources-edit-panel .modal-head,
  .order-geo-edit-panel .modal-head,
  .order-schedule-edit-panel .modal-head {
    padding: 12px 14px;
  }

  .order-schedule-edit-form {
    padding: 12px 14px 14px;
  }

  .order-schedule-edit-field .schedule-canvas {
    height: clamp(220px, calc(100vh - 370px), 300px);
    min-height: 0;
  }

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

  .admin-sidebar-title {
    grid-column: 1 / -1;
  }

  .footer-main,
  .footer-support,
  .footer-legal-links,
  .payment-icons {
    justify-content: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0 26px;
  }

  .footer-main {
    justify-items: center;
    text-align: center;
  }

  .payment-icons {
    justify-content: center;
  }

  .footer-legal-links {
    width: 100%;
    max-width: 520px;
    justify-self: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-support {
    width: 100%;
    max-width: 520px;
    justify-self: center;
    justify-items: center;
    text-align: center;
  }

  .legal-index-grid {
    grid-template-columns: 1fr;
  }

  .legal-doc,
  .legal-hero,
  .legal-index-card {
    padding: 18px;
  }

  .transition-list li {
    grid-template-columns: 1fr;
  }

  .home-panel {
    gap: 34px;
    padding-top: 0;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero::after {
    background:
      linear-gradient(180deg, rgba(8, 13, 20, 0.88) 0%, rgba(8, 13, 20, 0.94) 58%, rgba(8, 13, 20, 0.98) 100%);
  }

  .home-hero-media {
    position: absolute;
    inset: 0;
    height: auto;
    opacity: 0.36;
  }

  .home-hero-media img {
    object-position: 68% center;
  }

  .home-hero-content {
    width: 100%;
    padding: 30px;
  }

  .home-hero h1 {
    font-size: 42px;
    line-height: 1;
  }

  .home-lead {
    font-size: 16px;
  }

  .home-hero-facts {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stats-strip,
  .home-flow-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-visit-tree {
    grid-template-columns: 1fr;
  }

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

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

  .home-visit-tree-root::after,
  .home-visit-tree-branches::before,
  .home-visit-node::after {
    display: none;
  }

  .home-visit-tree-root strong,
  .home-visit-tree-root p {
    max-width: none;
  }

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

  .home-feature-card-wide,
  .home-feature-card-accent,
  .home-feature-card-trust {
    grid-column: auto;
  }

  .home-screens-section,
  .home-visual-section,
  .home-cta-band {
    grid-template-columns: 1fr;
  }

  .home-flow-graphic {
    min-height: 360px;
  }

  .home-section-head h2,
  .home-flow-copy h2,
  .home-cta-band h2 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    width: min(100% - 24px, 420px);
  }

  .footer-legal-links {
    grid-template-columns: 1fr;
  }

  body:not(.orders-page) .orders-preview-shell {
    grid-template-columns: 1fr;
  }

  body:not(.orders-page) .orders-folders-sidebar {
    top: 132px;
    max-height: min(42svh, calc(100svh - 148px));
    border-bottom: 1px solid var(--line);
  }

  body:not(.orders-page) .orders-folders-sidebar::after {
    display: none;
  }

  body:not(.orders-page) .orders-folder-tools {
    grid-template-columns: 1fr;
  }

  .home-panel {
    gap: 28px;
  }

  .home-hero-content {
    padding: 18px;
  }

  .home-hero h1 {
    font-size: 30px;
    line-height: 1.02;
  }

  .home-lead {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .home-actions,
  .home-primary-link,
  .home-secondary-link {
    width: 100%;
  }

  .home-actions {
    gap: 8px;
    margin-top: 20px;
  }

  .home-primary-link,
  .home-secondary-link {
    min-height: 42px;
  }

  .home-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
  }

  .home-hero-facts span {
    padding: 13px 12px 12px;
    font-size: 10px;
    grid-template-columns: 1fr;
    min-height: 76px;
  }

  .home-hero-facts span::before {
    left: 12px;
    right: 12px;
  }

  .home-hero-facts span::after {
    right: 8px;
    bottom: 8px;
    width: 58px;
    height: 26px;
  }

  .home-hero-facts strong {
    font-size: 12px;
  }

  .home-hero-facts small {
    font-size: 9px;
  }

  .home-stats-strip,
  .home-flow-panels,
  .home-demo-controls {
    grid-template-columns: 1fr;
  }

  .home-control-grid {
    grid-template-columns: 1fr;
  }

  .home-visit-tree {
    gap: 10px;
    padding: 12px;
  }

  .home-visit-tree-root {
    padding: 18px;
  }

  .home-visit-tree-root strong {
    font-size: 20px;
  }

  .home-visit-tree-branches {
    grid-template-columns: 1fr;
  }

  .home-visit-node {
    min-height: auto;
  }

  .home-hero-media {
    position: absolute;
    inset: 0;
    height: auto;
    opacity: 0.42;
  }

  .home-feature-card {
    min-height: 188px;
  }

  .home-control-grid .home-feature-card {
    min-height: 138px;
  }

  .home-screens-section,
  .home-visual-section,
  .home-cta-band {
    padding: 18px;
  }

  .home-screenshot-head {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-screenshot-showcase,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-screenshot-card img {
    aspect-ratio: auto;
    max-height: 420px;
  }

  .home-flow-graphic {
    min-height: auto;
  }

  .home-flow-map {
    min-height: 260px;
  }

  .home-flow-map span::after {
    display: none;
  }

  .home-section-head h2,
  .home-flow-copy h2,
  .home-cta-band h2 {
    font-size: 24px;
  }

  .home-keyword-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-keyword-list span {
    justify-content: center;
    text-align: center;
  }

  body.public-home-page .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 78px;
    padding: 10px 16px;
  }

  body.public-home-page .topbar-nav {
    display: none;
  }

  body.public-home-page .topbar-actions {
    justify-content: flex-end;
  }

  body.public-home-page .login-cta {
    min-width: 92px;
    min-height: 40px;
    padding: 0 14px;
  }

  .brand-wordmark {
    width: clamp(124px, 37.8vw, 148px);
    max-width: calc(100vw - 154px);
  }
}

body.public-home-page {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(94, 234, 212, 0.18), transparent 28rem),
    linear-gradient(180deg, #f7fbff, var(--bg));
}

body .home-hero {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background:
    linear-gradient(135deg, #ffffff, #eef7ff 58%, #eafdf9);
  box-shadow:
    0 22px 60px rgba(30, 64, 175, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body .home-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.94) 38%, rgba(239, 247, 255, 0.72) 68%, rgba(245, 250, 255, 0.9) 100%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(94, 234, 212, 0.1));
}

body .home-hero-media {
  opacity: 0.2;
}

body .home-hero-media img {
  filter: saturate(1.05) contrast(1.02) brightness(1.16);
}

body .home-lead {
  color: color-mix(in srgb, var(--text) 76%, var(--muted));
}

body .home-hero-more {
  color: color-mix(in srgb, var(--muted) 84%, var(--text));
}

body .home-analytics-badges span {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--brand) 8%, #ffffff));
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body .home-analytics-badges span:first-child {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.9));
  color: #9f2d18;
}

body .home-analytics-badges span:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.9));
  color: #92400e;
}

body .ghost-link {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

body .home-hero-facts span,
body .home-stats-strip div,
body .home-behavior-strip,
body .home-behavior-strip strong,
body .home-behavior-strip span,
body .home-visit-tree,
body .home-visit-tree-root,
body .home-visit-node,
body .home-feature-card,
body .home-flow-panels div,
body .home-demo-live,
body .home-steps li,
body .home-keyword-list span {
  border-color: color-mix(in srgb, var(--line) 76%, var(--brand) 10%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--panel-strong) 86%, var(--brand) 3%));
  box-shadow:
    0 14px 34px rgba(30, 64, 175, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body .home-hero-facts small,
body .home-stats-strip span,
body .home-behavior-strip span,
body .home-visit-tree-root p,
body .home-visit-node li,
body .home-feature-card p,
body .home-flow-panels span,
body .home-demo-live span,
body .home-steps span,
body .home-keyword-list span {
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
}

body .home-stats-strip div {
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 82%, var(--brand) 4%));
}

body .home-feature-card:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background:
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 82%, var(--brand) 7%));
}

body .home-visit-tree-branches::before,
body .home-visit-tree-root::after,
body .home-visit-node::after {
  background: color-mix(in srgb, var(--brand) 42%, var(--line));
}

body .home-visual-section,
body .home-screens-section,
body .home-cta-band {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), color-mix(in srgb, var(--panel-strong) 82%, var(--brand) 6%));
  box-shadow: 0 18px 42px rgba(30, 64, 175, 0.07);
}

body .home-screenshot-card {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--panel-strong) 88%, var(--brand) 3%));
  box-shadow:
    0 18px 42px rgba(30, 64, 175, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body .home-screenshot-head {
  background: color-mix(in srgb, #ffffff 84%, var(--brand) 4%);
}

body .home-screenshot-card img {
  background: #eef4fb;
}

body .home-flow-map {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 244, 255, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(37, 99, 235, 0.08) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(37, 99, 235, 0.08) 31px 32px);
}

body .home-flow-map span::after {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

body .home-demo-controls button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

body .home-demo-controls button:hover,
body .home-demo-controls button.is-active {
  background: color-mix(in srgb, var(--brand) 12%, #ffffff);
  color: var(--text);
}

/* Public landing refresh */
body.public-home-page {
  --home-cyan: #16c7d7;
  --home-mint: #20d6a8;
  --home-blue: #2563eb;
  --home-violet: #6d5dfc;
  --home-amber: #f59e0b;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0 18%, transparent 18% 100%),
    linear-gradient(215deg, rgba(32, 214, 168, 0.14) 0 22%, transparent 22% 100%),
    linear-gradient(180deg, #f8fbff 0%, #eef7ff 46%, #f7fbff 100%);
}

body.public-home-page .topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
}

body.public-home-page .topbar::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(241, 248, 255, 0.82) 54%, rgba(232, 252, 247, 0.76));
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 34px rgba(37, 99, 235, 0.08);
  backdrop-filter: blur(18px);
}

body.public-home-page .nav-link {
  border-color: rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.64);
  color: #112036;
}

body.public-home-page .login-cta {
  border: 0;
  background: linear-gradient(135deg, var(--home-mint), var(--home-cyan) 48%, var(--home-blue));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.16);
}

body.public-home-page .page-shell {
  width: min(1180px, calc(100% - 32px));
}

body.public-home-page .home-panel {
  gap: 34px;
  padding-bottom: 64px;
}

body.public-home-page .home-hero {
  min-height: min(760px, calc(100svh - 132px));
  padding: clamp(24px, 4vw, 54px);
  align-items: stretch;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0 34%, rgba(232, 248, 255, 0.88) 34% 68%, rgba(239, 253, 248, 0.92) 68% 100%),
    linear-gradient(110deg, rgba(37, 99, 235, 0.16), rgba(32, 214, 168, 0.18));
  box-shadow:
    0 28px 80px rgba(30, 64, 175, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.public-home-page .home-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.54) 68%, rgba(255, 255, 255, 0.86) 100%),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(32, 214, 168, 0.05) 0 1px, transparent 1px 92px);
}

body.public-home-page .home-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 13px;
  background:
    linear-gradient(115deg, transparent 0 52%, rgba(37, 99, 235, 0.08) 52% 62%, transparent 62%),
    linear-gradient(145deg, transparent 0 60%, rgba(32, 214, 168, 0.14) 60% 72%, transparent 72%);
  pointer-events: none;
}

body.public-home-page .home-hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  padding: clamp(18px, 3vw, 34px) 0;
}

body.public-home-page .home-hero-kicker {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: color-mix(in srgb, var(--home-blue) 72%, var(--text));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

body.public-home-page .home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #0b1628;
  font-size: clamp(42px, 7.2vw, 82px);
  line-height: 0.94;
  text-wrap: balance;
}

body.public-home-page .home-lead {
  max-width: 720px;
  margin-top: 22px;
  color: #41516a;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.52;
}

body.public-home-page .home-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(calc(var(--home-parallax-x) * 0.55px), calc(var(--home-parallax-y) * 0.55px), 0);
  transition: transform 0.18s ease-out;
}

body.public-home-page .home-hero-glow {
  position: absolute;
  display: block;
  width: 360px;
  height: 140px;
  border-radius: 34px;
  opacity: 0.5;
  filter: blur(24px);
  transform: rotate(-18deg);
}

body.public-home-page .home-hero-glow.is-blue {
  right: 2%;
  top: 11%;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.46), rgba(109, 93, 252, 0.22));
}

body.public-home-page .home-hero-glow.is-mint {
  right: 18%;
  bottom: 10%;
  background: linear-gradient(90deg, rgba(32, 214, 168, 0.44), rgba(22, 199, 215, 0.2));
}

body.public-home-page .home-traffic-orbit {
  position: absolute;
  right: clamp(16px, 5vw, 70px);
  top: clamp(108px, 14vw, 148px);
  width: min(39vw, 500px);
  aspect-ratio: 1.15;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 56px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 28px 54px rgba(37, 99, 235, 0.12);
  transform: rotate(-5deg);
}

body.public-home-page .home-traffic-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--home-mint);
  box-shadow: 0 0 0 8px rgba(32, 214, 168, 0.16);
}

body.public-home-page .home-traffic-orbit span:nth-child(1) { left: 18%; top: 30%; }
body.public-home-page .home-traffic-orbit span:nth-child(2) { left: 40%; top: 54%; background: var(--home-blue); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.13); }
body.public-home-page .home-traffic-orbit span:nth-child(3) { right: 18%; top: 25%; background: var(--home-amber); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.15); }
body.public-home-page .home-traffic-orbit span:nth-child(4) { right: 28%; bottom: 19%; background: var(--home-violet); box-shadow: 0 0 0 8px rgba(109, 93, 252, 0.13); }

body.public-home-page .home-traffic-card {
  position: absolute;
  min-width: 214px;
  padding: 14px 15px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 34px rgba(30, 64, 175, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

body.public-home-page .home-traffic-card span,
body.public-home-page .home-traffic-card strong {
  display: block;
}

body.public-home-page .home-traffic-card span {
  color: #65748c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body.public-home-page .home-traffic-card strong {
  margin-top: 5px;
  color: #101d32;
  font-size: 14px;
  line-height: 1.2;
}

body.public-home-page .home-traffic-card i {
  display: block;
  height: 7px;
  margin-top: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-mint), var(--home-cyan), var(--home-blue));
}

body.public-home-page .home-traffic-card.is-main {
  right: clamp(28px, 7vw, 110px);
  top: clamp(96px, 12vw, 128px);
  min-width: 260px;
}

body.public-home-page .home-traffic-card.is-source {
  right: clamp(22px, 20vw, 300px);
  top: clamp(246px, 25vw, 286px);
}

body.public-home-page .home-traffic-card.is-geo {
  right: clamp(18px, 5vw, 72px);
  top: clamp(382px, 33vw, 420px);
}

body.public-home-page .home-traffic-card.is-route {
  right: clamp(86px, 15vw, 232px);
  top: clamp(500px, 42vw, 526px);
}

body.public-home-page .home-analytics-badges span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #10223b;
}

body.public-home-page .home-hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

body.public-home-page .home-hero-proof span {
  min-width: 142px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

body.public-home-page .home-hero-proof strong {
  color: #0d182a;
  font-size: 22px;
  line-height: 1;
}

body.public-home-page .home-hero-proof small {
  color: #61708a;
  font-size: 12px;
  font-weight: 760;
}

body.public-home-page .home-hero-facts {
  width: min(980px, 100%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.public-home-page .home-hero-facts span {
  min-height: 118px;
  border-color: rgba(37, 99, 235, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.9));
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.08);
  backdrop-filter: blur(12px);
}

body.public-home-page .home-hero-facts strong {
  color: #112036;
  white-space: normal;
}

body.public-home-page .home-hero-facts small,
body.public-home-page .home-hero-more {
  color: #5b6b84;
}

body.public-home-page .primary-link {
  background: linear-gradient(135deg, var(--home-mint), var(--home-cyan) 48%, var(--home-blue));
  color: #ffffff;
}

body.public-home-page .ghost-link {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: #12223a;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

body.public-home-page .home-stats-strip {
  gap: 12px;
}

body.public-home-page .home-stats-strip div {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 255, 0.78));
  box-shadow: 0 18px 38px rgba(30, 64, 175, 0.08);
}

body.public-home-page .home-control-section,
body.public-home-page .home-usp-section,
body.public-home-page .home-seo-section,
body.public-home-page .home-cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 255, 0.72) 62%, rgba(239, 253, 248, 0.76));
  box-shadow:
    0 22px 54px rgba(30, 64, 175, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.public-home-page .home-control-section,
body.public-home-page .home-usp-section,
body.public-home-page .home-seo-section {
  padding: clamp(22px, 3vw, 34px);
}

body.public-home-page .home-section-head h2,
body.public-home-page .home-flow-copy h2,
body.public-home-page .home-cta-band h2 {
  color: #101d32;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  text-wrap: balance;
}

body.public-home-page .home-section-head p,
body.public-home-page .home-flow-copy p,
body.public-home-page .home-cta-band p {
  color: #5a6a82;
}

body.public-home-page .home-behavior-strip,
body.public-home-page .home-visit-tree,
body.public-home-page .home-visit-tree-root,
body.public-home-page .home-visit-node {
  border-color: rgba(37, 99, 235, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 250, 255, 0.74));
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.07);
}

body.public-home-page .home-visit-node h3,
body.public-home-page .home-visit-tree-root strong {
  color: #112036;
}

body.public-home-page .home-usp-section {
  display: grid;
  gap: 22px;
}

body.public-home-page .home-usp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.public-home-page .home-usp-card {
  --usp-accent: var(--home-blue);
  position: relative;
  min-height: 198px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 255, 0.78));
  box-shadow:
    0 16px 34px rgba(30, 64, 175, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.public-home-page .home-usp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--usp-accent), color-mix(in srgb, var(--usp-accent) 42%, #ffffff));
}

body.public-home-page .home-usp-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: 20px;
  width: 160px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--usp-accent) 16%, transparent), transparent);
  transform: rotate(-18deg);
}

body.public-home-page .home-usp-card-main {
  grid-column: span 2;
}

body.public-home-page .home-usp-card span {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--usp-accent) 12%, #ffffff);
  color: color-mix(in srgb, var(--usp-accent) 76%, #0f172a);
  font-size: 12px;
  font-weight: 950;
}

body.public-home-page .home-usp-card h3 {
  max-width: 430px;
  margin: 0;
  color: #101d32;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

body.public-home-page .home-usp-card p {
  max-width: 560px;
  margin: 0;
  color: #5b6b84;
  font-size: 15px;
  line-height: 1.48;
}

body.public-home-page .home-usp-card.is-analytics { --usp-accent: var(--home-blue); }
body.public-home-page .home-usp-card.is-behavior { --usp-accent: var(--home-mint); }
body.public-home-page .home-usp-card.is-sources { --usp-accent: var(--home-violet); }
body.public-home-page .home-usp-card.is-geo { --usp-accent: #0891b2; }
body.public-home-page .home-usp-card.is-schedule { --usp-accent: #0ea5e9; }
body.public-home-page .home-usp-card.is-price {
  --usp-accent: var(--home-amber);
  grid-column: span 3;
  min-height: 156px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(22, 78, 99, 0.92) 48%, rgba(245, 158, 11, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

body.public-home-page .home-usp-card.is-price span {
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

body.public-home-page .home-usp-card.is-price h3,
body.public-home-page .home-usp-card.is-price p {
  color: #ffffff;
}

body.public-home-page .home-usp-card.is-price p {
  max-width: 760px;
  opacity: 0.84;
}

body.public-home-page .home-setup-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(238, 247, 255, 0.76));
}

body.public-home-page .home-setup-flow strong,
body.public-home-page .home-setup-flow span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

body.public-home-page .home-setup-flow strong {
  background: linear-gradient(135deg, var(--home-blue), var(--home-cyan));
  color: #ffffff;
}

body.public-home-page .home-setup-flow span {
  border: 1px solid rgba(37, 99, 235, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #52627b;
}

body.public-home-page .home-seo-section {
  padding-block: clamp(22px, 3vw, 30px);
}

body.public-home-page .home-keyword-list span {
  border-color: rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #52627b;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.06);
}

body.public-home-page .home-cta-band {
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(12, 28, 50, 0.95), rgba(17, 85, 139, 0.92) 48%, rgba(22, 199, 215, 0.88));
}

body.public-home-page .home-cta-band h2,
body.public-home-page .home-cta-band p,
body.public-home-page .home-cta-band .eyebrow {
  color: #ffffff;
}

body.public-home-page .home-cta-band p {
  opacity: 0.84;
}

@media (max-width: 980px) {
  body.public-home-page .home-hero {
    min-height: auto;
  }

  body.public-home-page .home-traffic-orbit,
  body.public-home-page .home-traffic-card {
    display: none;
  }

  body.public-home-page .home-hero-facts,
  body.public-home-page .home-stats-strip,
  body.public-home-page .home-usp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-home-page .home-usp-card-main {
    grid-column: span 2;
  }

  body.public-home-page .home-usp-card.is-price {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  body.public-home-page .page-shell {
    width: min(100% - 24px, 520px);
  }

  body.public-home-page .home-panel {
    gap: 24px;
  }

  body.public-home-page .home-hero {
    padding: 18px;
    border-radius: 14px;
  }

  body.public-home-page .home-hero-content {
    padding: 6px 0;
  }

  body.public-home-page .home-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 0.98;
  }

  body.public-home-page .home-lead {
    font-size: 15px;
  }

  body.public-home-page .home-traffic-orbit,
  body.public-home-page .home-traffic-card,
  body.public-home-page .home-hero-glow {
    display: none;
  }

  body.public-home-page .home-hero-proof,
  body.public-home-page .home-hero-facts,
  body.public-home-page .home-stats-strip,
  body.public-home-page .home-usp-grid,
  body.public-home-page .home-setup-flow {
    grid-template-columns: 1fr;
  }

  body.public-home-page .home-hero-proof {
    display: grid;
  }

  body.public-home-page .home-hero-facts {
    display: grid;
  }

  body.public-home-page .home-hero-facts span {
    min-height: 88px;
  }

  body.public-home-page .home-usp-card,
  body.public-home-page .home-usp-card-main {
    grid-column: auto;
  }

  body.public-home-page .home-usp-card.is-price {
    grid-column: auto;
  }

  body.public-home-page .home-control-section,
  body.public-home-page .home-usp-section,
  body.public-home-page .home-seo-section,
  body.public-home-page .home-cta-band {
    padding: 18px;
    border-radius: 14px;
  }

  body.public-home-page .home-setup-flow {
    display: grid;
  }

  body.public-home-page .home-setup-flow strong,
  body.public-home-page .home-setup-flow span {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Public landing: premium analytics-first hero */
body.public-home-page {
  --home-navy: #07111f;
  --home-ink: #0a1424;
  --home-panel-2026: rgba(255, 255, 255, 0.78);
  --home-ga-blue: #1a73e8;
  --home-ga-green: #34a853;
  --home-ga-amber: #fbbc04;
  --home-ga-violet: #7c3aed;
  --home-accent-soft: rgba(26, 115, 232, 0.12);
  background:
    linear-gradient(120deg, rgba(26, 115, 232, 0.11) 0 18%, transparent 18% 100%),
    linear-gradient(218deg, rgba(52, 168, 83, 0.11) 0 23%, transparent 23% 100%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 42%, #f7fbff 100%);
}

body.public-home-page .home-panel {
  gap: 26px;
}

body.public-home-page .home-hero {
  min-height: min(720px, calc(100svh - 112px));
  padding: clamp(22px, 3.4vw, 46px);
  border-color: rgba(30, 64, 175, 0.24);
  background:
    linear-gradient(128deg, rgba(7, 17, 31, 0.98) 0%, rgba(9, 26, 48, 0.98) 43%, rgba(10, 52, 78, 0.95) 72%, rgba(12, 24, 44, 0.98) 100%);
  box-shadow:
    0 34px 88px rgba(15, 23, 42, 0.22),
    0 12px 32px rgba(26, 115, 232, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  isolation: isolate;
}

body.public-home-page .home-hero::after {
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.9) 43%, rgba(7, 17, 31, 0.42) 73%, rgba(7, 17, 31, 0.84) 100%),
    linear-gradient(115deg, transparent 0 54%, rgba(26, 115, 232, 0.14) 54% 61%, transparent 61% 100%),
    linear-gradient(145deg, transparent 0 63%, rgba(52, 168, 83, 0.12) 63% 73%, transparent 73% 100%),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.11) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 80px);
  opacity: 1;
}

body.public-home-page .home-hero::before {
  inset: 16px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(26, 115, 232, 0.12) 47% 50%, transparent 50% 100%),
    linear-gradient(155deg, transparent 0 56%, rgba(251, 188, 4, 0.12) 56% 59%, transparent 59% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
}

body.public-home-page .home-hero-content {
  max-width: 770px;
}

body.public-home-page .home-hero-kicker {
  border-color: rgba(125, 211, 252, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #98f5ff;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.public-home-page .home-hero h1 {
  color: #f8fbff;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 0.96;
  text-shadow: 0 14px 46px rgba(0, 0, 0, 0.28);
}

body.public-home-page .home-lead {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(16px, 1.45vw, 19px);
  color: rgba(226, 238, 255, 0.84);
}

body.public-home-page .home-analytics-badges {
  gap: 8px;
}

body.public-home-page .home-analytics-badges span {
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(239, 246, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.public-home-page .home-analytics-badges span:first-child {
  border-color: rgba(66, 133, 244, 0.42);
  background:
    linear-gradient(90deg, rgba(66, 133, 244, 0.22), rgba(251, 188, 4, 0.11), rgba(52, 168, 83, 0.12));
}

body.public-home-page .home-analytics-badges span:nth-child(2) {
  border-color: rgba(34, 211, 238, 0.32);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(124, 58, 237, 0.12));
}

body.public-home-page .home-hero-proof span,
body.public-home-page .home-hero-facts span {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

body.public-home-page .home-hero-proof {
  margin-top: 15px;
}

body.public-home-page .home-hero-proof strong,
body.public-home-page .home-hero-facts strong {
  color: #ffffff;
}

body.public-home-page .home-hero-proof small,
body.public-home-page .home-hero-facts small,
body.public-home-page .home-hero-more {
  color: rgba(226, 238, 255, 0.72);
}

body.public-home-page .home-hero-proof span {
  min-width: 150px;
}

body.public-home-page .home-hero-facts {
  margin-top: 18px;
}

body.public-home-page .home-hero-facts span {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

body.public-home-page .home-hero-facts span::before {
  opacity: 0.95;
}

body.public-home-page .home-hero-facts span::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
}

body.public-home-page .home-hero-facts span:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.075));
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(125, 211, 252, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.public-home-page .home-hero-capability.is-search::before { background: linear-gradient(90deg, var(--home-ga-blue), #8ab4f8); }
body.public-home-page .home-hero-capability.is-route::before { background: linear-gradient(90deg, var(--home-ga-green), #22d3ee); }
body.public-home-page .home-hero-capability.is-time::before { background: linear-gradient(90deg, var(--home-ga-amber), #fb7185); }
body.public-home-page .home-hero-capability.is-depth::before { background: linear-gradient(90deg, var(--home-ga-violet), #38bdf8); }
body.public-home-page .home-hero-capability.is-actions::before { background: linear-gradient(90deg, #14b8a6, #f59e0b); }

body.public-home-page .primary-link {
  color: #05101d;
  background:
    linear-gradient(135deg, #7ff6e2, #22d3ee 48%, #8ab4f8);
  box-shadow:
    0 20px 38px rgba(34, 211, 238, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

body.public-home-page .primary-link:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 46px rgba(34, 211, 238, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

body.public-home-page .ghost-link {
  border-color: rgba(226, 238, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #eaf4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.public-home-page .ghost-link:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(255, 255, 255, 0.11);
}

body.public-home-page .home-traffic-orbit {
  border-color: rgba(125, 211, 252, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 35, 62, 0.62), rgba(5, 14, 27, 0.34)),
    repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(125, 211, 252, 0.06) 0 1px, transparent 1px 56px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 68px rgba(0, 0, 0, 0.28);
}

body.public-home-page .home-traffic-orbit::before,
body.public-home-page .home-traffic-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.public-home-page .home-traffic-orbit::before {
  left: 11%;
  right: 11%;
  top: 20%;
  height: 39%;
  background:
    linear-gradient(180deg, transparent 0 68%, rgba(52, 168, 83, 0.18) 68% 100%),
    linear-gradient(135deg, transparent 0 16%, rgba(34, 211, 238, 0.58) 16% 18%, transparent 18% 31%, rgba(26, 115, 232, 0.56) 31% 33%, transparent 33% 49%, rgba(251, 188, 4, 0.62) 49% 51%, transparent 51% 68%, rgba(124, 58, 237, 0.58) 68% 70%, transparent 70% 100%),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.11) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 32px);
}

body.public-home-page .home-traffic-orbit::after {
  left: 17%;
  right: 17%;
  bottom: 17%;
  height: 16%;
  background:
    linear-gradient(90deg, rgba(26, 115, 232, 0.8) 0 20%, transparent 20% 27%, rgba(52, 168, 83, 0.8) 27% 47%, transparent 47% 54%, rgba(251, 188, 4, 0.82) 54% 69%, transparent 69% 76%, rgba(124, 58, 237, 0.82) 76% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

body.public-home-page .home-traffic-card {
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(6, 18, 34, 0.78);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.public-home-page .home-traffic-card span {
  color: rgba(186, 230, 253, 0.78);
}

body.public-home-page .home-traffic-card strong {
  color: #f8fbff;
}

body.public-home-page .home-traffic-card i {
  background:
    linear-gradient(90deg, var(--home-ga-blue), var(--home-ga-green), var(--home-ga-amber), var(--home-ga-violet));
}

body.public-home-page .home-stats-strip {
  margin-top: 0;
}

body.public-home-page .home-stats-strip div,
body.public-home-page .home-control-section,
body.public-home-page .home-usp-section,
body.public-home-page .home-seo-section {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 250, 255, 0.72));
  box-shadow:
    0 20px 52px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.public-home-page .home-stats-strip div {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

body.public-home-page .home-stats-strip div:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 115, 232, 0.18);
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.public-home-page .home-usp-card {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.78)),
    linear-gradient(135deg, color-mix(in srgb, var(--usp-accent) 9%, transparent), transparent);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

body.public-home-page .home-usp-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--usp-accent) 32%, rgba(15, 23, 42, 0.12));
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.public-home-page .home-usp-card:hover::before {
  height: 6px;
}

body.public-home-page .home-usp-card::after {
  opacity: 0.86;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

body.public-home-page .home-usp-card:hover::after {
  opacity: 1;
  transform: rotate(-12deg) translateX(-8px);
}

body.public-home-page .home-behavior-strip span,
body.public-home-page .home-visit-node {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.public-home-page .home-behavior-strip span:hover,
body.public-home-page .home-visit-node:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 115, 232, 0.18);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.09);
}

@media (prefers-reduced-motion: no-preference) {
  body.public-home-page .home-traffic-card.is-main {
    animation: homeCardFloat 7s ease-in-out infinite;
  }

  body.public-home-page .home-traffic-card.is-source {
    animation: homeCardFloat 8s ease-in-out 0.4s infinite;
  }

  body.public-home-page .home-traffic-card.is-geo {
    animation: homeCardFloat 7.6s ease-in-out 0.8s infinite;
  }

  body.public-home-page .home-traffic-card.is-route {
    animation: homeCardFloat 8.4s ease-in-out 1.2s infinite;
  }

  body.public-home-page .home-traffic-orbit span {
    animation: homePulseDot 2.8s ease-in-out infinite;
  }
}

@keyframes homeCardFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes homePulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

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

@media (max-width: 980px) {
  body.public-home-page .home-hero {
    min-height: auto;
    background:
      linear-gradient(145deg, rgba(7, 17, 31, 0.98), rgba(10, 48, 76, 0.96));
  }

  body.public-home-page .home-hero-content {
    max-width: none;
  }

  body.public-home-page .home-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.public-home-page .home-hero {
    min-height: auto;
    padding: 20px;
  }

  body.public-home-page .home-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  body.public-home-page .home-analytics-badges,
  body.public-home-page .home-actions {
    align-items: stretch;
  }

  body.public-home-page .home-analytics-badges span,
  body.public-home-page .home-actions a {
    justify-content: center;
    width: 100%;
  }
}

/* Public landing: calmer startup-style header and light hero */
body.public-home-page .topbar {
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0;
  min-height: 72px;
}

body.public-home-page .topbar::before {
  background:
    linear-gradient(90deg, rgba(4, 12, 23, 0.98), rgba(8, 22, 37, 0.97) 58%, rgba(4, 12, 23, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
}

body.public-home-page .brand-wordmark {
  width: clamp(160px, 13.6vw, 190px);
  opacity: 0.86;
  filter: saturate(0.74) contrast(0.98);
}

body.public-home-page .site-brand:hover .brand-wordmark {
  opacity: 0.94;
  filter: saturate(0.88) contrast(1);
}

body.public-home-page .login-cta {
  min-width: 98px;
  min-height: 38px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.92), rgba(59, 130, 246, 0.92));
  color: #06111f;
  box-shadow: 0 14px 28px rgba(34, 211, 238, 0.18);
}

body.public-home-page .login-cta:hover {
  border-color: rgba(125, 211, 252, 0.36);
  background:
    linear-gradient(135deg, #67e8f9, #60a5fa);
}

body.public-home-page .topbar-nav {
  justify-content: flex-start;
  gap: 4px;
  margin-left: 4px;
}

body.public-home-page .topbar-actions {
  justify-self: end;
  gap: 10px;
}

body.public-home-page .public-nav-link {
  color: rgba(226, 232, 240, 0.74);
}

body.public-home-page .public-nav-link:hover,
body.public-home-page .public-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.language-switcher {
  position: relative;
  z-index: 5;
}

.mobile-menu {
  position: relative;
  z-index: 7;
  display: none;
}

.mobile-menu-trigger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  list-style: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.mobile-menu-trigger::-webkit-details-marker {
  display: none;
}

.mobile-menu-trigger span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.mobile-menu[open] .mobile-menu-trigger {
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu[open] .mobile-menu-trigger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu[open] .mobile-menu-trigger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] .mobile-menu-trigger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(84vw, 320px);
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 18, 32, 0.98), rgba(5, 15, 27, 0.98));
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.38);
}

.mobile-menu-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 18, 32, 0.98);
}

.mobile-menu-section {
  position: relative;
  display: grid;
  gap: 8px;
}

.mobile-menu-section + .mobile-menu-section {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-menu-account {
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-menu-account > span {
  color: rgba(226, 232, 240, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mobile-menu-account.is-authenticated {
  gap: 0;
  padding: 12px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(94, 234, 212, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mobile-menu-account-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 0.56fr);
  gap: 10px;
  align-items: stretch;
}

.mobile-menu-account-column {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(3, 10, 22, 0.24);
}

.mobile-menu-account-column span {
  min-width: 0;
  overflow: hidden;
  color: rgba(203, 213, 225, 0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-menu-account-column strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-account-column.is-balance strong {
  color: #8ff7e8;
  font-size: 15px;
  font-weight: 920;
}

.mobile-menu-account-side {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.mobile-menu-account-side .mobile-menu-account-column {
  min-height: 0;
  padding: 9px 10px;
}

.mobile-menu-topup {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.88), rgba(96, 165, 250, 0.78));
  color: #06111f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.12);
}

.mobile-menu-topup:hover,
.mobile-menu-topup:focus-visible {
  border-color: rgba(94, 234, 212, 0.38);
  background:
    linear-gradient(135deg, #5eead4, #60a5fa);
  color: #04111f;
}

.mobile-menu-link,
.mobile-menu-languages button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 250, 252, 0.9);
  font: inherit;
  font-size: 14px;
  font-weight: 820;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-menu-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, #38d6cc, #4f9ef7);
  color: #06111f;
  font-size: 14px;
  font-weight: 860;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.mobile-menu-login:hover,
.mobile-menu-login:focus-visible {
  background: linear-gradient(135deg, #5eead4, #60a5fa);
  color: #04111f;
}

.mobile-menu-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.55;
  transform: rotate(-45deg);
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible,
.mobile-menu-languages button:hover,
.mobile-menu-languages button:focus-visible,
.mobile-menu-languages button[aria-current="true"] {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(45, 212, 191, 0.12);
  color: #ffffff;
}

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

.mobile-menu-languages > span {
  grid-column: 1 / -1;
  color: rgba(226, 232, 240, 0.56);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mobile-menu-languages button {
  min-height: 38px;
  justify-content: center;
  padding: 0 10px;
  font-size: 13px;
}

.language-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(248, 250, 252, 0.9);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.language-trigger::-webkit-details-marker {
  display: none;
}

.language-trigger:hover,
.language-switcher[open] .language-trigger {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.language-icon,
.language-chevron {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.language-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.16s ease;
}

.language-switcher[open] .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  min-width: 192px;
  max-width: calc(100vw - 24px);
  max-height: min(520px, calc(100vh - 84px));
  display: grid;
  gap: 0;
  padding: 5px 4px;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(8, 18, 32, 0.98);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.32);
}

.language-menu button {
  min-height: 30px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  column-gap: 7px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(230, 239, 250, 0.92);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.language-flag {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 10px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.language-label {
  min-width: 0;
}

.language-menu button:disabled {
  cursor: default;
  opacity: 0.9;
}

.language-menu button:not(:disabled):hover,
.language-menu button[aria-selected="true"] {
  background: rgba(45, 212, 191, 0.12);
  color: #ffffff;
}

@media (max-width: 620px) {
  .language-trigger {
    width: 42px;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .language-trigger span {
    display: none;
  }

  .language-chevron {
    width: 14px;
    height: 14px;
    margin-left: 4px;
  }
}

body.public-home-page .home-hero {
  border-color: rgba(37, 99, 235, 0.14);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.95) 42%, rgba(228, 243, 255, 0.92) 68%, rgba(239, 253, 249, 0.94) 100%);
  box-shadow:
    0 30px 82px rgba(30, 64, 175, 0.13),
    0 12px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.public-home-page .home-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 43%, rgba(255, 255, 255, 0.44) 73%, rgba(255, 255, 255, 0.86) 100%),
    linear-gradient(115deg, transparent 0 54%, rgba(37, 99, 235, 0.09) 54% 61%, transparent 61% 100%),
    linear-gradient(145deg, transparent 0 63%, rgba(20, 184, 166, 0.11) 63% 73%, transparent 73% 100%),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.07) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(20, 184, 166, 0.055) 0 1px, transparent 1px 80px);
}

body.public-home-page .home-hero::before {
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(37, 99, 235, 0.08) 47% 50%, transparent 50% 100%),
    linear-gradient(155deg, transparent 0 56%, rgba(245, 158, 11, 0.1) 56% 59%, transparent 59% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent 36%);
}

body.public-home-page .home-hero-kicker {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #1d4ed8;
  box-shadow: 0 12px 26px rgba(30, 64, 175, 0.08);
}

body.public-home-page .home-hero h1 {
  color: #0f172a;
  text-shadow: none;
}

body.public-home-page .home-lead {
  color: #44546a;
}

body.public-home-page .home-analytics-badges span {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: #1f2f46;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.06);
}

body.public-home-page .home-analytics-badges span:first-child {
  border-color: rgba(26, 115, 232, 0.28);
  background:
    linear-gradient(90deg, rgba(26, 115, 232, 0.12), rgba(251, 188, 4, 0.08), rgba(52, 168, 83, 0.1)),
    rgba(255, 255, 255, 0.82);
}

body.public-home-page .home-analytics-badges span:nth-child(2) {
  border-color: rgba(20, 184, 166, 0.22);
  background:
    linear-gradient(90deg, rgba(20, 184, 166, 0.11), rgba(59, 130, 246, 0.08)),
    rgba(255, 255, 255, 0.82);
}

body.public-home-page .home-hero-proof span,
body.public-home-page .home-hero-facts span {
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 255, 0.78));
  box-shadow:
    0 16px 34px rgba(30, 64, 175, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.public-home-page .home-hero-proof strong,
body.public-home-page .home-hero-facts strong {
  color: #122033;
}

body.public-home-page .home-hero-proof small,
body.public-home-page .home-hero-facts small,
body.public-home-page .home-hero-more {
  color: #5b6b84;
}

body.public-home-page .home-hero-facts span::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

body.public-home-page .home-hero-facts span:hover {
  border-color: rgba(37, 99, 235, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.9));
  box-shadow:
    0 24px 48px rgba(30, 64, 175, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

body.public-home-page .ghost-link {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #17243a;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.07);
}

body.public-home-page .ghost-link:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.92);
}

body.public-home-page .home-traffic-orbit {
  border-color: rgba(37, 99, 235, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(221, 238, 255, 0.28)),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(20, 184, 166, 0.06) 0 1px, transparent 1px 56px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 30px 62px rgba(30, 64, 175, 0.12);
}

body.public-home-page .home-traffic-orbit::before,
body.public-home-page .home-traffic-orbit::after {
  border-color: rgba(37, 99, 235, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

body.public-home-page .home-traffic-orbit::before {
  background:
    linear-gradient(180deg, transparent 0 68%, rgba(20, 184, 166, 0.16) 68% 100%),
    linear-gradient(135deg, transparent 0 16%, rgba(34, 211, 238, 0.5) 16% 18%, transparent 18% 31%, rgba(26, 115, 232, 0.5) 31% 33%, transparent 33% 49%, rgba(245, 158, 11, 0.56) 49% 51%, transparent 51% 68%, rgba(124, 58, 237, 0.5) 68% 70%, transparent 70% 100%),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.09) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(20, 184, 166, 0.06) 0 1px, transparent 1px 32px);
}

body.public-home-page .home-traffic-orbit::after {
  background:
    linear-gradient(90deg, rgba(26, 115, 232, 0.72) 0 20%, transparent 20% 27%, rgba(52, 168, 83, 0.72) 27% 47%, transparent 47% 54%, rgba(245, 158, 11, 0.74) 54% 69%, transparent 69% 76%, rgba(124, 58, 237, 0.74) 76% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.22));
}

body.public-home-page .home-traffic-card {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 40px rgba(30, 64, 175, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.public-home-page .home-traffic-card span {
  color: #64748b;
}

body.public-home-page .home-traffic-card strong {
  color: #122033;
}

@media (max-width: 980px) {
  body.public-home-page .home-hero {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(231, 245, 255, 0.95));
  }
}

/* Public landing: denser balanced revision */
body.public-home-page {
  background:
    linear-gradient(120deg, rgba(15, 49, 86, 0.1) 0 18%, transparent 18% 100%),
    linear-gradient(218deg, rgba(20, 184, 166, 0.1) 0 23%, transparent 23% 100%),
    linear-gradient(180deg, #e8f0f8 0%, #f3f7fb 50%, #eaf2f8 100%);
}

body.public-home-page .home-panel {
  gap: 20px;
  padding-bottom: 52px;
}

body.public-home-page .home-hero {
  min-height: min(640px, calc(100svh - 104px));
  padding: clamp(22px, 3vw, 40px);
  border-color: rgba(15, 49, 86, 0.14);
  background:
    linear-gradient(112deg, rgba(236, 246, 255, 0.98) 0%, rgba(245, 250, 255, 0.94) 45%, rgba(206, 230, 243, 0.92) 72%, rgba(222, 244, 239, 0.92) 100%);
  box-shadow:
    0 26px 66px rgba(15, 49, 86, 0.14),
    0 10px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.public-home-page .home-hero::after {
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.93) 42%, rgba(232, 244, 251, 0.42) 72%, rgba(225, 241, 248, 0.84) 100%),
    linear-gradient(115deg, transparent 0 55%, rgba(37, 99, 235, 0.08) 55% 62%, transparent 62% 100%),
    repeating-linear-gradient(90deg, rgba(15, 49, 86, 0.06) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(20, 184, 166, 0.05) 0 1px, transparent 1px 76px);
}

body.public-home-page .home-hero-content {
  max-width: 735px;
  padding: clamp(8px, 1.6vw, 18px) 0;
}

body.public-home-page .home-hero-kicker {
  margin-bottom: 12px;
  padding: 7px 11px;
  font-size: 10px;
}

body.public-home-page .home-hero h1 {
  max-width: 700px;
  font-size: clamp(38px, 4.9vw, 62px);
  line-height: 0.98;
}

body.public-home-page .home-lead {
  max-width: 690px;
  margin-top: 14px;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.45;
}

body.public-home-page .home-hero-checks {
  width: min(710px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

body.public-home-page .home-hero-checks span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  color: #26364d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 49, 86, 0.05);
}

body.public-home-page .home-analytics-badges,
body.public-home-page .home-hero-proof,
body.public-home-page .home-actions {
  margin-top: 12px;
}

body.public-home-page .home-hero-proof span {
  min-width: 128px;
  padding: 10px 12px;
}

body.public-home-page .home-hero-proof strong {
  font-size: 20px;
}

body.public-home-page .home-hero-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

body.public-home-page .home-hero-facts span {
  min-height: 88px;
  padding: 12px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(236, 246, 255, 0.72));
}

body.public-home-page .home-hero-facts strong {
  font-size: 13px;
}

body.public-home-page .home-hero-facts small {
  font-size: 10.5px;
  line-height: 1.22;
}

body.public-home-page .home-hero-more {
  max-width: 690px;
  margin-top: 12px;
  font-size: 12px;
}

body.public-home-page .home-traffic-orbit {
  right: clamp(18px, 4vw, 54px);
  top: clamp(94px, 10vw, 116px);
  width: min(36vw, 440px);
  opacity: 0.86;
}

body.public-home-page .home-traffic-card {
  min-width: 184px;
  padding: 12px 13px;
  border-radius: 10px;
}

body.public-home-page .home-traffic-card strong {
  font-size: 13px;
}

body.public-home-page .home-traffic-card.is-main {
  right: clamp(28px, 6vw, 82px);
  top: clamp(96px, 10vw, 114px);
  min-width: 226px;
}

body.public-home-page .home-traffic-card.is-source {
  right: clamp(28px, 17vw, 250px);
  top: clamp(218px, 20vw, 244px);
}

body.public-home-page .home-traffic-card.is-geo {
  right: clamp(18px, 4vw, 56px);
  top: clamp(334px, 27vw, 362px);
}

body.public-home-page .home-traffic-card.is-route {
  right: clamp(72px, 13vw, 190px);
  top: clamp(444px, 34vw, 462px);
}

body.public-home-page .home-stats-strip {
  gap: 10px;
}

body.public-home-page .home-stats-strip div {
  min-height: 88px;
  border-radius: 12px;
  box-shadow:
    0 14px 34px rgba(15, 49, 86, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.public-home-page .home-control-section,
body.public-home-page .home-usp-section,
body.public-home-page .home-seo-section {
  padding: clamp(20px, 2.6vw, 30px);
  border-color: rgba(15, 49, 86, 0.1);
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.9), rgba(239, 246, 252, 0.72));
  box-shadow:
    0 18px 46px rgba(15, 49, 86, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.public-home-page .home-section-head h2,
body.public-home-page .home-flow-copy h2,
body.public-home-page .home-cta-band h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

body.public-home-page .home-section-head p {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.5;
}

body.public-home-page .home-behavior-strip,
body.public-home-page .home-visit-tree,
body.public-home-page .home-visit-tree-root,
body.public-home-page .home-visit-node {
  border-color: rgba(15, 49, 86, 0.09);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

body.public-home-page .home-behavior-strip {
  gap: 8px;
  padding: 12px;
}

body.public-home-page .home-behavior-strip strong,
body.public-home-page .home-behavior-strip span {
  min-height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

body.public-home-page .home-visit-tree {
  padding: 12px;
}

body.public-home-page .home-visit-tree-root::after,
body.public-home-page .home-visit-tree-branches::before,
body.public-home-page .home-usp-card::after {
  display: none;
}

body.public-home-page .home-visit-tree-root {
  min-height: auto;
  padding: 18px;
}

body.public-home-page .home-visit-node {
  padding: 16px;
}

body.public-home-page .home-visit-node:hover,
body.public-home-page .home-behavior-strip span:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 49, 86, 0.07);
}

body.public-home-page .home-usp-grid {
  gap: 10px;
}

body.public-home-page .home-usp-card {
  min-height: 154px;
  gap: 10px;
  padding: 18px;
  border-color: rgba(15, 49, 86, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

body.public-home-page .home-usp-card::before {
  height: 2px;
  opacity: 0.5;
}

body.public-home-page .home-usp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 49, 86, 0.07);
}

body.public-home-page .home-usp-card:hover::before {
  height: 2px;
}

body.public-home-page .home-usp-card span {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

body.public-home-page .home-usp-card h3 {
  font-size: clamp(18px, 1.55vw, 22px);
}

body.public-home-page .home-usp-card p {
  font-size: 13px;
  line-height: 1.42;
}

body.public-home-page .home-usp-card.is-price {
  min-height: 118px;
  background:
    linear-gradient(135deg, rgba(17, 35, 56, 0.92), rgba(24, 89, 112, 0.86));
}

@media (max-width: 980px) {
  body.public-home-page .home-hero {
    min-height: auto;
  }

  body.public-home-page .home-hero-checks,
  body.public-home-page .home-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.public-home-page .home-hero {
    padding: 18px;
  }

  body.public-home-page .home-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  body.public-home-page .home-hero-checks,
  body.public-home-page .home-hero-facts {
    grid-template-columns: 1fr;
  }

  body.public-home-page .home-hero-checks span,
  body.public-home-page .home-hero-facts span {
    min-height: 54px;
  }
}

/* Public landing: final calm-down pass */
body.public-home-page .home-hero {
  background:
    linear-gradient(112deg, rgba(226, 240, 250, 0.98) 0%, rgba(240, 247, 252, 0.95) 42%, rgba(190, 219, 235, 0.92) 72%, rgba(207, 236, 230, 0.92) 100%);
}

body.public-home-page .home-hero::after {
  background:
    linear-gradient(90deg, rgba(243, 248, 252, 0.96) 0%, rgba(243, 248, 252, 0.88) 42%, rgba(218, 236, 246, 0.38) 72%, rgba(208, 229, 238, 0.78) 100%),
    linear-gradient(115deg, transparent 0 55%, rgba(37, 99, 235, 0.1) 55% 62%, transparent 62% 100%),
    repeating-linear-gradient(90deg, rgba(15, 49, 86, 0.07) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(20, 184, 166, 0.06) 0 1px, transparent 1px 76px);
}

body.public-home-page .home-usp-card::before,
body.public-home-page .home-usp-card span {
  display: none;
}

body.public-home-page .home-usp-card {
  min-height: 132px;
  align-content: center;
}

body.public-home-page .home-usp-card-main {
  min-height: 146px;
}

body.public-home-page .home-usp-card.is-price {
  min-height: 104px;
}

@media (max-width: 620px) {
  body.public-home-page .home-hero {
    padding: 16px;
  }

  body.public-home-page .home-hero h1 {
    font-size: clamp(30px, 9.4vw, 40px);
  }

  body.public-home-page .home-lead {
    font-size: 14px;
    line-height: 1.42;
  }

  body.public-home-page .home-hero-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.public-home-page .home-hero-checks span {
    min-height: 42px;
    padding: 6px 7px;
    font-size: 10.5px;
  }

  body.public-home-page .home-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.public-home-page .home-hero-facts span {
    min-height: 76px;
    padding: 10px;
  }

  body.public-home-page .home-hero-facts strong {
    font-size: 12px;
  }

  body.public-home-page .home-hero-facts small {
    font-size: 10px;
  }
}

/* Public landing: content-led refinement */
body.public-home-page .topbar::before {
  background:
    linear-gradient(90deg, rgba(4, 12, 23, 0.98), rgba(8, 22, 37, 0.97) 56%, rgba(4, 12, 23, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
}

body.public-home-page .brand-wordmark {
  width: clamp(160px, 13.6vw, 190px);
  opacity: 0.96;
  filter: saturate(1) contrast(1);
}

body.public-home-page .login-cta {
  border-color: rgba(15, 49, 86, 0.08);
  background:
    linear-gradient(135deg, #32d6c9, #4f9ef7);
  color: #06111f;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

body.public-home-page .topbar-nav {
  justify-content: flex-start;
  gap: 4px;
  margin-left: 4px;
}

body.public-home-page .public-nav-link {
  position: relative;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.74);
  font-size: 13px;
  font-weight: 850;
  box-shadow: none;
}

body.public-home-page .public-nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c7ba, #3b82f6);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

body.public-home-page .public-nav-link:hover,
body.public-home-page .public-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

body.public-home-page .public-nav-link:hover::after,
body.public-home-page .public-nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

body.public-home-page #features,
body.public-home-page #pricing,
body.public-home-page #contacts {
  scroll-margin-top: 96px;
}

body.public-home-page .home-hero-kicker {
  color: #1d4ed8;
  text-transform: uppercase;
}

body.public-home-page .home-hero-checks span {
  justify-content: flex-start;
  padding-left: 12px;
  text-align: left;
}

body.public-home-page .home-hero-checks span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c7ba, #3b82f6);
  box-shadow: 0 0 0 4px rgba(34, 199, 186, 0.1);
}

body.public-home-page .home-hero-facts {
  width: min(860px, 100%);
}

body.public-home-page .home-hero-facts span {
  min-height: 78px;
}

body.public-home-page .home-control-section,
body.public-home-page .home-usp-section,
body.public-home-page .home-seo-section {
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.82), rgba(239, 246, 252, 0.66));
}

body.public-home-page .home-visit-tree {
  background: rgba(255, 255, 255, 0.44);
}

body.public-home-page .home-visit-tree-root {
  background:
    linear-gradient(135deg, rgba(15, 49, 86, 0.9), rgba(26, 99, 121, 0.78));
  color: #ffffff;
}

body.public-home-page .home-visit-tree-root span {
  background: rgba(255, 255, 255, 0.12);
  color: #bdf7f0;
}

body.public-home-page .home-visit-tree-root strong,
body.public-home-page .home-visit-tree-root p {
  color: #ffffff;
}

body.public-home-page .home-visit-tree-root p {
  opacity: 0.78;
}

body.public-home-page .home-visit-node h3,
body.public-home-page .home-usp-card h3 {
  color: #102033;
}

body.public-home-page .home-visit-node li,
body.public-home-page .home-usp-card p {
  color: #52627a;
}

body.public-home-page .home-setup-flow {
  background: rgba(255, 255, 255, 0.5);
}

body.public-home-page .home-setup-flow strong {
  background: linear-gradient(135deg, #164e63, #1d8ca0);
}

@media (max-width: 620px) {
  body.public-home-page .topbar::before {
    background:
      linear-gradient(90deg, rgba(4, 12, 23, 0.98), rgba(8, 22, 37, 0.97));
  }

  body.public-home-page .home-hero-checks span {
    justify-content: flex-start;
  }
}

/* Public landing: declutter pass */
body.public-home-page .home-panel {
  gap: 16px;
}

body.public-home-page .home-hero {
  min-height: min(560px, calc(100svh - 112px));
  padding: clamp(26px, 3.3vw, 44px);
  border-radius: 18px;
  background:
    linear-gradient(118deg, rgba(248, 251, 254, 0.98) 0%, rgba(238, 247, 252, 0.96) 52%, rgba(210, 233, 241, 0.9) 100%);
  box-shadow:
    0 24px 64px rgba(15, 49, 86, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.public-home-page .home-hero::after {
  background:
    linear-gradient(90deg, rgba(248, 251, 254, 0.96) 0%, rgba(248, 251, 254, 0.9) 50%, rgba(218, 237, 246, 0.48) 100%),
    linear-gradient(118deg, transparent 0 58%, rgba(37, 99, 235, 0.07) 58% 64%, transparent 64% 100%),
    repeating-linear-gradient(90deg, rgba(15, 49, 86, 0.045) 0 1px, transparent 1px 92px);
}

body.public-home-page .home-hero::before {
  opacity: 0.34;
}

body.public-home-page .home-hero-content {
  max-width: 705px;
}

body.public-home-page .home-hero h1 {
  max-width: 670px;
  font-size: clamp(40px, 4.35vw, 58px);
  line-height: 1.02;
}

body.public-home-page .home-lead {
  max-width: 660px;
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.5;
}

body.public-home-page .home-hero-checks {
  width: min(660px, 100%);
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 9px 18px;
  margin-top: 18px;
}

body.public-home-page .home-hero-checks span {
  min-height: 0;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #34465f;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
}

body.public-home-page .home-hero-checks span::before {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(34, 199, 186, 0.08);
}

body.public-home-page .home-analytics-badges {
  margin-top: 18px;
}

body.public-home-page .home-analytics-badges span {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  box-shadow: none;
}

body.public-home-page .home-hero-proof {
  width: min(560px, 100%);
  gap: 18px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(15, 49, 86, 0.1);
}

body.public-home-page .home-hero-proof span {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.public-home-page .home-hero-proof strong {
  font-size: 20px;
}

body.public-home-page .home-hero-proof small {
  max-width: 110px;
  font-size: 10.5px;
  line-height: 1.2;
}

body.public-home-page .home-hero-facts {
  display: none;
}

body.public-home-page .home-hero-proof,
body.public-home-page .home-hero-more {
  display: none;
}

body.public-home-page .home-traffic-card.is-source,
body.public-home-page .home-traffic-card.is-geo,
body.public-home-page .home-traffic-card.is-route {
  display: none;
}

body.public-home-page .home-traffic-orbit {
  right: clamp(26px, 5vw, 68px);
  top: clamp(112px, 11vw, 142px);
  width: min(31vw, 370px);
  opacity: 0.48;
  filter: saturate(0.78);
}

body.public-home-page .home-traffic-card.is-main {
  right: clamp(32px, 7vw, 92px);
  top: clamp(122px, 12vw, 152px);
  min-width: 218px;
  opacity: 0.92;
}

body.public-home-page .home-stats-strip {
  gap: 8px;
}

body.public-home-page .home-stats-strip div {
  min-height: 74px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

body.public-home-page .home-stats-strip div::before {
  height: 2px;
  opacity: 0.36;
}

body.public-home-page .home-stats-strip strong {
  font-size: clamp(20px, 2.05vw, 28px);
}

body.public-home-page .home-stats-strip span {
  font-size: 10.5px;
  line-height: 1.25;
}

body.public-home-page .home-control-section {
  display: none;
}

body.public-home-page .home-control-section,
body.public-home-page .home-usp-section,
body.public-home-page .home-seo-section {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 18px;
  box-shadow:
    0 16px 44px rgba(15, 49, 86, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.public-home-page .home-section-head {
  margin-bottom: 18px;
}

body.public-home-page .home-section-head h2 {
  max-width: 760px;
  font-size: clamp(28px, 2.75vw, 38px);
  line-height: 1.08;
}

body.public-home-page .home-section-head p {
  max-width: 720px;
}

body.public-home-page .home-behavior-strip {
  display: none;
}

body.public-home-page .home-visit-tree {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.68fr);
  gap: 12px;
  box-shadow: none;
}

body.public-home-page .home-visit-tree-root {
  padding: 20px;
  border-radius: 14px;
}

body.public-home-page .home-visit-node {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
}

body.public-home-page .home-visit-node:hover,
body.public-home-page .home-usp-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 49, 86, 0.055);
}

body.public-home-page .home-visit-node ul {
  gap: 5px;
}

body.public-home-page .home-visit-node li {
  font-size: 11.5px;
  line-height: 1.32;
}

body.public-home-page .home-usp-grid {
  gap: 10px;
}

body.public-home-page .home-usp-card,
body.public-home-page .home-usp-card-main {
  min-height: 118px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
}

body.public-home-page .home-usp-card h3 {
  font-size: clamp(17px, 1.38vw, 20px);
}

body.public-home-page .home-usp-card p {
  font-size: 12.5px;
}

body.public-home-page .home-setup-flow {
  display: none;
}

@media (max-width: 980px) {
  body.public-home-page .home-hero {
    min-height: auto;
  }

  body.public-home-page .home-traffic-orbit,
  body.public-home-page .home-traffic-card.is-main {
    display: none;
  }

  body.public-home-page .home-visit-tree {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body.public-home-page .home-hero-checks,
  body.public-home-page .home-stats-strip,
  body.public-home-page .home-usp-grid {
    grid-template-columns: 1fr;
  }

  body.public-home-page .home-hero-proof {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  body.public-home-page .home-hero {
    padding: 18px;
  }

  body.public-home-page .home-hero h1 {
    font-size: clamp(32px, 9.2vw, 40px);
  }

  body.public-home-page .home-hero-checks {
    gap: 8px;
  }

  body.public-home-page .home-hero-checks span:nth-child(n+3),
  body.public-home-page .home-analytics-badges {
    display: none;
  }
}

/* Public landing: traffic-sales concept */
body.public-home-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.14), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(34, 211, 238, 0.15), transparent 30%),
    linear-gradient(180deg, #edf6fb 0%, #f7fbff 48%, #eef6fc 100%);
}

body.public-home-page .home-panel {
  width: min(1180px, calc(100% - 32px));
  gap: 18px;
  padding: 8px 0 56px;
}

body.contacts-page {
  min-height: 100vh;
}

.contact-main,
.contact-main * {
  box-sizing: border-box;
}

.contact-main {
  width: min(1180px, calc(100% - 32px));
  display: block;
  margin: 0 auto;
  padding: 24px 0 48px;
  color: #102033;
}

.contact-shell {
  display: grid;
  gap: 18px;
}

.contact-layout,
.contact-info-card,
.contact-form-card {
  border: 1px solid rgba(35, 86, 125, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 28px 80px rgba(20, 61, 96, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.contact-form-card h1 {
  margin: 0;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: 0;
}

.contact-form-head p,
.contact-info-card p {
  color: #44546a;
  line-height: 1.58;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.contact-info-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contact-info-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 250, 255, 0.8));
}

.contact-info-card.is-primary {
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(240, 253, 250, 0.9), rgba(255, 255, 255, 0.86));
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f766e;
}

.contact-card-icon svg,
.contact-input-wrap svg,
.contact-upload-box svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-info-card strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 920;
}

.contact-info-card p {
  margin: 6px 0 0;
  font-size: 14px;
}

.contact-direct-link {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.09);
  color: #0369a1;
  font-weight: 900;
  text-decoration: none;
}

.contact-direct-link:hover,
.contact-direct-link:focus-visible {
  border-color: rgba(14, 165, 233, 0.38);
  background: rgba(14, 165, 233, 0.14);
}

.contact-form-card {
  display: grid;
  gap: 9px;
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 20px;
}

.contact-form-head {
  display: grid;
  gap: 5px;
}

.contact-form-card h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.04;
}

.contact-form-head p {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.contact-field {
  display: grid;
  gap: 4px;
}

.contact-field > span:first-child {
  color: #102033;
  font-size: 13px;
  font-weight: 880;
}

.contact-field b {
  color: #0ea5e9;
}

.contact-field input,
.contact-field textarea,
.contact-input-wrap {
  width: 100%;
  border: 1px solid rgba(35, 86, 125, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.contact-field input,
.contact-field textarea {
  padding: 0 16px;
}

.contact-field input,
.contact-input-wrap {
  min-height: 48px;
}

.contact-field textarea {
  min-height: 118px;
  resize: vertical;
  padding-top: 12px;
  line-height: 1.42;
}

.contact-input-wrap {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #64748b;
}

.contact-input-wrap input {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-input-wrap:focus-within {
  border-color: rgba(14, 165, 233, 0.46);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.11);
}

.contact-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-upload-box {
  min-height: 84px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(35, 86, 125, 0.26);
  border-radius: 18px;
  background: rgba(241, 249, 255, 0.68);
  color: #64748b;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.contact-upload-box strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.contact-upload-box small {
  font-size: 12px;
  line-height: 1.25;
}

.contact-upload:hover .contact-upload-box,
.contact-upload:focus-within .contact-upload-box {
  border-color: rgba(14, 165, 233, 0.48);
  background: rgba(224, 242, 254, 0.78);
  transform: translateY(-1px);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

.contact-actions button,
.contact-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 920;
  text-decoration: none;
}

.contact-actions button {
  min-width: 230px;
  padding: 0 20px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  background:
    linear-gradient(135deg, #5eead4, #60a5fa);
  color: #06111f;
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.18);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.contact-actions button:hover,
.contact-actions button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 22px 44px rgba(14, 165, 233, 0.24);
}

.contact-actions button:disabled {
  cursor: progress;
  opacity: 0.74;
  transform: none;
}

.contact-actions a {
  padding: 0 18px;
  border: 1px solid rgba(35, 86, 125, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  border-color: rgba(14, 165, 233, 0.34);
  background: #ffffff;
}

.pricing-main,
.pricing-main * {
  box-sizing: border-box;
}

.pricing-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 54px;
  color: #102033;
}

.pricing-shell {
  display: grid;
  gap: 18px;
}

.pricing-hero,
.pricing-card,
.pricing-calculator,
.pricing-included,
.pricing-notes article {
  border: 1px solid rgba(35, 86, 125, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 28px 80px rgba(20, 61, 96, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.pricing-hero {
  position: relative;
  overflow: hidden;
  min-height: min(620px, calc(100svh - 130px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(circle at 90% 18%, rgba(34, 211, 238, 0.2), transparent 31%),
    radial-gradient(circle at 18% 82%, rgba(37, 99, 235, 0.11), transparent 34%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 255, 0.92));
}

.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 56%, rgba(37, 99, 235, 0.07) 56% 63%, transparent 63%),
    repeating-linear-gradient(90deg, rgba(15, 49, 86, 0.04) 0 1px, transparent 1px 86px);
  pointer-events: none;
}

.pricing-hero > * {
  position: relative;
  z-index: 1;
}

.pricing-hero h1,
.pricing-calculator h2,
.pricing-section-head h2,
.pricing-notes h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: 0;
}

.pricing-hero h1 {
  max-width: 770px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
}

.pricing-hero-copy > p:not(.traffic-kicker),
.pricing-calculator p,
.pricing-card p,
.pricing-included p,
.pricing-notes p {
  color: #44546a;
  line-height: 1.58;
}

.pricing-hero-copy > p:not(.traffic-kicker) {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.25vw, 19px);
}

.pricing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pricing-primary,
.pricing-secondary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 920;
  text-decoration: none;
}

.pricing-primary {
  border: 1px solid rgba(20, 184, 166, 0.32);
  background: linear-gradient(135deg, #5eead4, #60a5fa);
  color: #06111f;
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.18);
}

.pricing-secondary {
  border: 1px solid rgba(35, 86, 125, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
}

.pricing-primary:hover,
.pricing-primary:focus-visible,
.pricing-secondary:hover,
.pricing-secondary:focus-visible {
  transform: translateY(-1px);
}

.pricing-rate-card {
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(240, 253, 250, 0.94), rgba(255, 255, 255, 0.86));
  box-shadow:
    0 32px 70px rgba(14, 165, 233, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-rate-card > span {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(14, 165, 233, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #0369a1;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-rate-card > strong {
  color: #0f172a;
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 980;
  line-height: 0.9;
  letter-spacing: 0;
}

.pricing-rate-card > p {
  margin: -4px 0 8px;
  color: #44546a;
  font-size: 17px;
  font-weight: 820;
}

.pricing-rate-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(35, 86, 125, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.pricing-rate-line b {
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.pricing-rate-line small {
  color: #64748b;
  font-size: 13px;
  font-weight: 820;
  text-align: right;
}

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

.pricing-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  transition:
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.pricing-card:hover {
  border-color: rgba(14, 165, 233, 0.32);
  transform: translateY(-2px);
  box-shadow:
    0 34px 90px rgba(20, 61, 96, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-card span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 14px;
  background: rgba(224, 242, 254, 0.66);
  color: #0369a1;
  font-size: 13px;
  font-weight: 950;
}

.pricing-card h2 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 950;
  line-height: 1.04;
}

.pricing-card p {
  margin: 0;
  font-size: 15px;
}

.pricing-calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 255, 0.86));
}

.pricing-calculator h2,
.pricing-section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
}

.pricing-calculator p {
  max-width: 560px;
  margin: 12px 0 0;
  font-size: 16px;
}

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

.pricing-amounts div {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(35, 86, 125, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 72% 10%, rgba(94, 234, 212, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.pricing-amounts strong {
  color: #0f172a;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 980;
  line-height: 0.95;
}

.pricing-amounts span {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.pricing-included {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 38px);
}

.pricing-section-head {
  max-width: 760px;
  display: grid;
  gap: 8px;
}

.pricing-included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-included-grid article,
.pricing-notes article {
  position: relative;
  overflow: hidden;
}

.pricing-included-grid article {
  min-height: 156px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(35, 86, 125, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.pricing-included-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #5eead4, #60a5fa);
}

.pricing-included h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 930;
}

.pricing-included p {
  margin: 0;
  font-size: 14px;
}

.pricing-notes article {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
}

.pricing-notes h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.05;
}

.pricing-notes p {
  margin: 0;
  font-size: 15px;
}

.features-main,
.features-main * {
  box-sizing: border-box;
}

.features-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 54px;
  color: #102033;
}

.features-shell {
  display: grid;
  gap: 18px;
}

.features-quick {
  order: 1;
}

.features-pro {
  order: 2;
}

.features-hero {
  order: 3;
}

.features-hero,
.features-quick,
.features-pro {
  border: 1px solid rgba(35, 86, 125, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 28px 80px rgba(20, 61, 96, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.features-hero {
  position: relative;
  overflow: hidden;
  min-height: min(620px, calc(100svh - 130px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(circle at 88% 18%, rgba(94, 234, 212, 0.22), transparent 32%),
    radial-gradient(circle at 16% 86%, rgba(37, 99, 235, 0.1), transparent 35%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 255, 0.92));
}

.features-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 55%, rgba(37, 99, 235, 0.07) 55% 62%, transparent 62%),
    repeating-linear-gradient(90deg, rgba(15, 49, 86, 0.04) 0 1px, transparent 1px 86px);
  pointer-events: none;
}

.features-hero > *,
.features-quick > *,
.features-pro > * {
  position: relative;
  z-index: 1;
}

.features-hero h1,
.features-section-head h2,
.features-pro h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: 0;
}

.features-hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
}

.features-hero-copy > p,
.features-grid p,
.features-pro-copy p,
.features-pro-list span {
  color: #44546a;
  line-height: 1.58;
}

.features-hero-copy > p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.25vw, 19px);
}

.features-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.features-primary,
.features-secondary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 920;
  text-decoration: none;
}

.features-primary {
  border: 1px solid rgba(20, 184, 166, 0.32);
  background: linear-gradient(135deg, #5eead4, #60a5fa);
  color: #06111f;
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.18);
}

.features-secondary {
  border: 1px solid rgba(35, 86, 125, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
}

.features-primary:hover,
.features-primary:focus-visible,
.features-secondary:hover,
.features-secondary:focus-visible {
  transform: translateY(-1px);
}

.features-flow {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 8%, rgba(34, 211, 238, 0.19), transparent 36%),
    linear-gradient(180deg, rgba(240, 253, 250, 0.94), rgba(255, 255, 255, 0.86));
  box-shadow:
    0 32px 70px rgba(14, 165, 233, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.features-flow div {
  min-height: 86px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-content: center;
  gap: 4px 14px;
  padding: 14px;
  border: 1px solid rgba(35, 86, 125, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.features-flow span {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 15px;
  background: rgba(224, 242, 254, 0.74);
  color: #0369a1;
  font-size: 13px;
  font-weight: 950;
}

.features-flow strong {
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.05;
}

.features-flow small {
  color: #64748b;
  font-size: 13px;
  font-weight: 820;
}

.features-quick,
.features-pro {
  padding: clamp(22px, 4vw, 38px);
}

.features-section-head,
.features-pro-copy {
  max-width: 780px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 0, rgba(94, 234, 212, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(240, 249, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.features-section-head h2,
.features-pro h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
}

.features-section-head > p:not(.traffic-kicker),
.features-pro-copy > p {
  max-width: 700px;
  margin: 0;
  color: #44546a;
  font-size: 15px;
  line-height: 1.55;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.features-grid article {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(35, 86, 125, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  transition:
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.features-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #5eead4, #60a5fa);
}

.features-grid article:hover {
  border-color: rgba(14, 165, 233, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(20, 61, 96, 0.12);
}

.features-grid h3 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  font-weight: 930;
}

.features-grid p {
  margin: 0;
  font-size: 14px;
}

.features-grid article.features-capacity-card {
  grid-column: 1 / -1;
  min-height: 122px;
  align-content: center;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 0, rgba(34, 211, 238, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(236, 253, 245, 0.86), rgba(239, 246, 255, 0.86));
}

.features-grid article.features-capacity-card h3 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.features-grid article.features-capacity-card p {
  max-width: 740px;
  font-size: 15px;
}

.features-pro {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 255, 0.86));
}

.features-pro-copy p {
  font-size: 16px;
}

.features-included-badge {
  width: fit-content;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.88), rgba(96, 165, 250, 0.66));
  color: #062033;
  font-size: 13px;
  font-weight: 930;
}

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

.features-pro-list div {
  min-height: 122px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(35, 86, 125, 0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 10%, rgba(94, 234, 212, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.features-pro-list strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 930;
}

.features-pro-list span {
  font-size: 13px;
}

@media (max-width: 1040px) {
  .features-main {
    width: min(100% - 32px, 820px);
  }

  .features-hero,
  .features-pro {
    grid-template-columns: 1fr;
  }

  .features-hero {
    min-height: 0;
  }

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

@media (max-width: 760px) {
  .features-main {
    width: min(100% - 24px, 560px);
    padding: 18px 0 36px;
  }

  .features-shell {
    gap: 14px;
  }

  .features-hero,
  .features-quick,
  .features-pro {
    border-radius: 20px;
    padding: 20px;
  }

  .features-hero h1 {
    font-size: clamp(33px, 10.5vw, 46px);
  }

  .features-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 20px;
  }

  .features-primary,
  .features-secondary {
    width: 100%;
  }

  .features-flow {
    padding: 12px;
    border-radius: 22px;
  }

  .features-grid,
  .features-pro-list {
    grid-template-columns: 1fr;
  }

  .features-grid article,
  .features-pro-list div {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .features-main {
    width: min(100% - 20px, 390px);
  }

  .features-hero,
  .features-quick,
  .features-pro {
    padding: 14px;
  }

  .features-flow div {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px;
  }

  .features-flow span {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1040px) {
  .pricing-main {
    width: min(100% - 32px, 820px);
  }

  .pricing-hero,
  .pricing-calculator {
    grid-template-columns: 1fr;
  }

  .pricing-hero {
    min-height: 0;
  }

  .pricing-rate-card {
    min-height: 0;
  }

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

@media (max-width: 760px) {
  .pricing-main {
    width: min(100% - 24px, 560px);
    padding: 18px 0 36px;
  }

  .pricing-shell {
    gap: 14px;
  }

  .pricing-hero,
  .pricing-calculator,
  .pricing-included {
    border-radius: 20px;
    padding: 20px;
  }

  .pricing-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .pricing-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 20px;
  }

  .pricing-primary,
  .pricing-secondary {
    width: 100%;
  }

  .pricing-grid,
  .pricing-included-grid,
  .pricing-notes,
  .pricing-amounts {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .pricing-notes article {
    min-height: 0;
    padding: 18px;
  }

  .pricing-amounts div {
    min-height: 96px;
  }
}

@media (max-width: 420px) {
  .pricing-main {
    width: min(100% - 20px, 390px);
  }

  .pricing-hero,
  .pricing-calculator,
  .pricing-included,
  .pricing-card,
  .pricing-notes article {
    padding: 14px;
  }

  .pricing-rate-card {
    padding: 18px;
  }
}

@media (max-width: 1040px) {
  .contact-main {
    width: min(100% - 32px, 820px);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .contact-main {
    width: min(100% - 24px, 560px);
    padding: 18px 0 34px;
  }

  .contact-layout {
    padding: 12px;
    border-radius: 20px;
  }

  .contact-info-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 15px;
  }

  .contacts-page .contact-info-card:not(.is-primary) {
    display: none;
  }

  .contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .contact-form-card {
    padding: 16px;
  }

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

  .contact-actions button,
  .contact-actions a {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .contact-main {
    width: min(100% - 20px, 390px);
  }

  .contact-form-card {
    padding: 14px;
  }

  .contact-field input,
  .contact-field textarea,
  .contact-input-wrap {
    font-size: 15px;
  }
}

body.public-home-page .page-shell > .home-panel {
  width: 100%;
}

body.public-home-page #home-panel > :not(.traffic-landing) {
  display: none !important;
}

.traffic-landing,
.traffic-landing * {
  box-sizing: border-box;
}

.traffic-landing {
  display: grid;
  gap: 18px;
  color: #102033;
}

.traffic-hero,
.traffic-section,
.traffic-pricing {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35, 86, 125, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 28px 80px rgba(20, 61, 96, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.traffic-hero {
  min-height: min(680px, calc(100svh - 116px));
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  padding: clamp(26px, 4vw, 52px) clamp(34px, 5vw, 68px) clamp(34px, 5vw, 68px);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 249, 255, 0.9) 48%, rgba(212, 236, 247, 0.82) 100%);
}

.traffic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 54%, rgba(37, 99, 235, 0.07) 54% 62%, transparent 62% 100%),
    repeating-linear-gradient(90deg, rgba(15, 49, 86, 0.045) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.traffic-hero-copy,
.traffic-hero-visual,
.traffic-section > *,
.traffic-pricing > * {
  position: relative;
  z-index: 1;
}

.traffic-kicker {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.traffic-hero h1,
.traffic-section h2,
.traffic-pricing h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: 0;
}

.traffic-hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 4.7vw, 66px);
  line-height: 0.98;
}

.traffic-lead {
  max-width: 690px;
  margin: 20px 0 0;
  color: #44546a;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.58;
}

.traffic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.traffic-primary,
.traffic-secondary {
  min-height: 48px;
  border-radius: 12px;
}

.traffic-primary {
  min-width: 190px;
  background: linear-gradient(135deg, #31ddd2, #4c9df7);
  color: #071322;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.18);
}

.traffic-secondary {
  background: rgba(255, 255, 255, 0.66);
  color: #1d3149;
}

.traffic-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.traffic-points span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(35, 86, 125, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #26364d;
  font-size: 13px;
  font-weight: 850;
}

.traffic-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c7ba, #3b82f6);
}

.traffic-hero-visual {
  min-height: 480px;
  display: grid;
  place-items: center;
}

.traffic-analytics-window {
  width: min(100%, 420px);
  padding: 16px;
  border: 1px solid rgba(35, 86, 125, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(230, 243, 252, 0.82));
  box-shadow:
    0 30px 70px rgba(15, 49, 86, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.traffic-window-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.traffic-window-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.traffic-window-top span:first-child { background: #ef4444; }
.traffic-window-top span:nth-child(2) { background: #f59e0b; }
.traffic-window-top span:nth-child(3) { background: #22c55e; }
.traffic-window-top strong { margin-left: auto; }

.traffic-live-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #132f4c, #16768a);
  color: #ffffff;
}

.traffic-live-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.traffic-live-card strong {
  font-size: 18px;
}

.traffic-live-card b {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 54px;
  line-height: 1;
}

.traffic-chart {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(35, 86, 125, 0.1);
  border-radius: 18px;
  background:
    repeating-linear-gradient(0deg, rgba(15, 49, 86, 0.06) 0 1px, transparent 1px 36px),
    rgba(255, 255, 255, 0.52);
}

.traffic-chart i {
  display: block;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, #3b82f6, #2dd4bf);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.traffic-ga-table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.traffic-ga-table div,
.traffic-report-list div {
  display: grid;
  grid-template-columns: minmax(100px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(35, 86, 125, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.traffic-ga-table span,
.traffic-report-list span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.traffic-ga-table strong,
.traffic-report-list strong {
  color: #132033;
  font-size: 13px;
  font-weight: 900;
}

.traffic-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  align-items: stretch;
}

.traffic-metrics div {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 136px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 24px 22px;
  border: 1px solid rgba(35, 86, 125, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 14%, rgba(45, 212, 191, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(229, 242, 250, 0.84));
  box-shadow:
    0 18px 48px rgba(15, 49, 86, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.traffic-metrics div::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 24px;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, #3b82f6);
  opacity: 0.72;
}

.traffic-metrics div::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  pointer-events: none;
}

.traffic-metrics strong {
  color: #0f172a;
  font-size: 46px;
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.traffic-metrics div:nth-child(2) strong {
  font-size: 38px;
}

.traffic-metrics span {
  max-width: none;
  min-height: 38px;
  margin-top: 12px;
  color: #354760;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.18;
  text-align: left;
}

body.public-home-page .traffic-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  align-items: stretch;
}

body.public-home-page .traffic-metrics div {
  min-height: 136px;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 24px 22px;
  border: 1px solid rgba(35, 86, 125, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 14%, rgba(45, 212, 191, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(229, 242, 250, 0.84));
  box-shadow:
    0 18px 48px rgba(15, 49, 86, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.public-home-page .traffic-metrics div::before {
  top: 17px;
  left: 24px;
  right: auto;
  width: 38px;
  height: 4px;
  opacity: 0.72;
  background: linear-gradient(90deg, #2dd4bf, #3b82f6);
}

body.public-home-page .traffic-metrics strong {
  color: #0f172a;
  font-size: 46px;
  font-weight: 950;
  line-height: 0.92;
}

body.public-home-page .traffic-metrics div:nth-child(2) strong {
  font-size: 38px;
}

body.public-home-page .traffic-metrics span {
  max-width: none;
  min-height: 38px;
  margin-top: 12px;
  color: #42546d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.18;
}

.traffic-section {
  padding: clamp(28px, 4vw, 48px);
}

.traffic-section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.traffic-section h2,
.traffic-pricing h2 {
  max-width: 820px;
  font-size: clamp(30px, 3.7vw, 52px);
  line-height: 1.03;
}

.traffic-section-head p,
.traffic-report-copy p,
.traffic-pricing p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #52627a;
  font-size: 15px;
  line-height: 1.55;
}

.traffic-transparency {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.traffic-transparency span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #164e63;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.traffic-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.traffic-feature-grid article {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(35, 86, 125, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 248, 253, 0.72));
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.traffic-feature-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 20px 46px rgba(15, 49, 86, 0.09);
}

.traffic-feature-grid article span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(59, 130, 246, 0.16));
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.traffic-feature-grid h3 {
  margin: 0;
  color: #132033;
  font-size: 21px;
  line-height: 1.12;
}

.traffic-feature-grid p {
  margin: 0;
  color: #52627a;
  font-size: 14px;
  line-height: 1.46;
}

.traffic-feature-grid h3 a {
  color: inherit;
  text-decoration: none;
}

.traffic-feature-grid h3 a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.46;
}

.traffic-feature-grid article:has(h3 a):hover h3 a::after {
  opacity: 0.9;
}

.traffic-reporting {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 62px);
  padding:
    clamp(24px, 2.7vw, 34px)
    clamp(42px, 5.2vw, 68px)
    clamp(42px, 5.2vw, 68px);
  background:
    linear-gradient(135deg, rgba(18, 42, 65, 0.96), rgba(16, 112, 131, 0.86));
}

.traffic-reporting .traffic-kicker {
  margin-top: 0;
  margin-bottom: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #a7fff5;
}

.traffic-reporting h2,
.traffic-reporting p {
  color: #ffffff;
}

.traffic-reporting p {
  margin-top: 18px;
  opacity: 0.78;
}

.traffic-report-list {
  display: grid;
  gap: 12px;
}

.traffic-report-list div {
  grid-template-columns: 0.7fr 1fr;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

.traffic-report-list strong {
  color: #ffffff;
}

.traffic-report-list span {
  color: rgba(255, 255, 255, 0.7);
}

.traffic-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding:
    clamp(24px, 2.7vw, 34px)
    clamp(42px, 5vw, 64px)
    clamp(42px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(222, 244, 250, 0.82));
}

.traffic-pricing .traffic-kicker {
  margin-top: 0;
  margin-bottom: 18px;
}

.traffic-pricing p {
  margin-top: 18px;
}

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

.traffic-faq-grid article {
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
}

.traffic-faq-grid h3 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 18px;
  line-height: 1.25;
}

.traffic-faq-grid p {
  margin: 0;
  color: #52627a;
  font-size: 15px;
  line-height: 1.62;
}

.seo-landing-page .features-grid article {
  min-height: 206px;
}

@media (max-width: 1080px) {
  .traffic-metrics strong,
  body.public-home-page .traffic-metrics strong {
    font-size: 40px;
  }

  .traffic-metrics div:nth-child(2) strong,
  body.public-home-page .traffic-metrics div:nth-child(2) strong {
    font-size: 32px;
  }

  .traffic-metrics div,
  body.public-home-page .traffic-metrics div {
    padding: 24px 18px 20px;
  }
}

@media (max-width: 980px) {
  .traffic-hero,
  .traffic-reporting,
  .traffic-pricing {
    grid-template-columns: 1fr;
  }

  .traffic-hero {
    min-height: auto;
  }

  .traffic-hero-visual {
    min-height: 360px;
  }

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

@media (max-width: 780px) {
  body.public-home-page .home-panel {
    width: 100%;
    padding-top: 12px;
  }

  .traffic-hero,
  .traffic-section,
  .traffic-pricing {
    border-radius: 18px;
  }

  .traffic-hero {
    padding: 22px 24px 24px;
  }

  .traffic-hero h1 {
    font-size: clamp(32px, 8.7vw, 42px);
    line-height: 1;
  }

  .traffic-lead {
    font-size: 15px;
  }

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

  .traffic-primary,
  .traffic-secondary {
    width: 100%;
  }

  .traffic-points {
    display: grid;
  }

  .traffic-hero-visual {
    min-height: 0;
  }

  .traffic-analytics-window {
    display: none;
  }

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

  .traffic-feature-grid {
    grid-template-columns: 1fr;
  }

  .traffic-faq-grid {
    grid-template-columns: 1fr;
  }

  .traffic-metrics div {
    min-height: 128px;
    padding: 24px 16px 18px;
    border-radius: 18px;
  }

  .traffic-metrics strong {
    font-size: 32px;
  }

  .traffic-metrics div:nth-child(2) strong {
    font-size: 26px;
  }

  .traffic-metrics span {
    max-width: none;
    min-height: 34px;
    font-size: 14px;
    line-height: 1.18;
  }

  body.public-home-page .traffic-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.public-home-page .traffic-metrics div {
    min-height: 128px;
    padding: 24px 16px 18px;
    border-radius: 18px;
  }

  body.public-home-page .traffic-metrics strong {
    font-size: 32px;
  }

  body.public-home-page .traffic-metrics div:nth-child(2) strong {
    font-size: 26px;
  }

  body.public-home-page .traffic-metrics span {
    max-width: none;
    min-height: 34px;
    font-size: 14px;
    line-height: 1.18;
  }

  .traffic-report-list div,
  .traffic-ga-table div {
    grid-template-columns: 1fr;
  }

  .traffic-reporting,
  .traffic-pricing {
    padding: 22px 22px 28px;
  }
}

@media (max-width: 430px) {
  .traffic-metrics div,
  body.public-home-page .traffic-metrics div {
    min-height: 122px;
    padding: 24px 12px 16px;
  }

  .traffic-metrics div::before,
  body.public-home-page .traffic-metrics div::before {
    left: 12px;
  }

  .traffic-metrics strong,
  body.public-home-page .traffic-metrics strong {
    font-size: 29px;
  }

  .traffic-metrics div:nth-child(2) strong,
  body.public-home-page .traffic-metrics div:nth-child(2) strong {
    font-size: 23px;
  }

  .traffic-metrics span,
  body.public-home-page .traffic-metrics span {
    min-height: 32px;
    font-size: 13.5px;
  }
}

/* Light Shell
   Single source of truth for the site chrome: header, logo, footer and contact form.
   The product uses only the light theme, so there are no theme-dependent overrides here. */
:root {
  --shell-max: 1180px;
  --shell-gutter: 16px;
  --shell-header-height: 72px;
  --shell-bg: #151a23;
  --shell-bg-strong: #10151d;
  --shell-line: rgba(255, 255, 255, 0.1);
  --shell-text: #edf3fb;
  --shell-muted: #a5b4c7;
  --shell-accent: #5eead4;
  --brand-visual-offset: -5px;
}

html {
  background: var(--bg);
}

body {
  color-scheme: light;
  background:
    radial-gradient(circle at 12% -8%, rgba(37, 99, 235, 0.09), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
}

body > main {
  flex: 1 0 auto;
  width: 100%;
}

.topbar,
body.public-home-page .topbar,
body.legal-page .topbar,
body.orders-page .topbar,
body.billing-page .topbar,
body.profile-page .topbar,
body.admin-page .topbar {
  width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: var(--shell-header-height);
  padding: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.topbar::before,
body.public-home-page .topbar::before,
body.legal-page .topbar::before,
body.orders-page .topbar::before,
body.billing-page .topbar::before,
body.profile-page .topbar::before,
body.admin-page .topbar::before,
.site-footer::before {
  background:
    radial-gradient(circle at 18% 0%, rgba(94, 234, 212, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(27, 34, 46, 0.98), rgba(15, 20, 29, 0.98));
  border-color: var(--shell-line);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.18);
}

.site-brand,
body.public-home-page .site-brand,
body.legal-page .site-brand,
body.orders-page .site-brand,
body.billing-page .site-brand,
body.profile-page .site-brand,
body.admin-page .site-brand {
  width: fit-content;
  max-width: min(100%, 198px);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.brand-wordmark,
body.public-home-page .brand-wordmark,
body.legal-page .brand-wordmark,
body.orders-page .brand-wordmark.has-image,
body.billing-page .brand-wordmark.has-image,
body.profile-page .brand-wordmark.has-image,
body.admin-page .brand-wordmark.has-image {
  width: clamp(158px, 12.2vw, 184px);
  max-width: min(100%, calc(100vw - 154px));
  aspect-ratio: 300 / 72;
  opacity: 0.96;
  filter: saturate(0.84) contrast(0.98);
  transform: translateX(var(--brand-visual-offset));
}

.brand-wordmark img,
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-brand:hover .brand-wordmark,
body.public-home-page .site-brand:hover .brand-wordmark,
body.legal-page .site-brand:hover .brand-wordmark,
body.orders-page .site-brand:hover .brand-wordmark,
body.billing-page .site-brand:hover .brand-wordmark,
body.profile-page .site-brand:hover .brand-wordmark,
body.admin-page .site-brand:hover .brand-wordmark {
  opacity: 1;
  filter: saturate(1) contrast(1);
}

.topbar-nav,
body.public-home-page .topbar-nav,
body.legal-page .topbar-nav,
body.orders-page .topbar-nav,
body.billing-page .topbar-nav,
body.profile-page .topbar-nav,
body.admin-page .topbar-nav {
  justify-content: flex-start;
  gap: 4px;
  margin-left: 4px;
}

.topbar-actions,
body.public-home-page .topbar-actions,
body.legal-page .topbar-actions,
body.orders-page .topbar-actions,
body.billing-page .topbar-actions,
body.profile-page .topbar-actions,
body.admin-page .topbar-actions {
  justify-self: end;
  gap: 10px;
  min-width: 0;
}

.topbar .nav-link,
body.public-home-page .public-nav-link {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--shell-muted);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: none;
  text-transform: none;
}

body.public-home-page .public-nav-link::after {
  display: none;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus-visible,
body.public-home-page .public-nav-link:hover,
body.public-home-page .public-nav-link:focus-visible {
  border-color: rgba(94, 234, 212, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--shell-text);
}

.topbar .login-cta,
body.public-home-page .login-cta,
.topbar .topbar-create-order {
  min-width: 96px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, #38d6cc, #4f9ef7);
  color: #06111f;
  font-size: 14px;
  font-weight: 820;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.topbar .login-cta:hover,
.topbar .login-cta:focus-visible,
body.public-home-page .login-cta:hover,
body.public-home-page .login-cta:focus-visible,
.topbar .topbar-create-order:hover,
.topbar .topbar-create-order:focus-visible {
  border-color: rgba(37, 99, 235, 0.2);
  background:
    linear-gradient(135deg, #5eead4, #60a5fa);
  color: #04111f;
}

.mobile-menu-trigger,
.language-trigger {
  min-height: 36px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--shell-text);
  font-size: 13px;
  font-weight: 720;
  gap: 7px;
}

.language-trigger .language-icon,
.language-trigger .language-chevron {
  width: 17px;
  height: 17px;
}

.language-trigger span {
  line-height: 1;
}

.mobile-menu[open] .mobile-menu-trigger,
.language-trigger:hover,
.language-switcher[open] .language-trigger {
  border-color: rgba(94, 234, 212, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mobile-menu-panel,
.language-menu {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(21, 26, 35, 0.98);
  box-shadow: 0 24px 58px rgba(2, 6, 23, 0.28);
}

.mobile-menu-panel::before {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(21, 26, 35, 0.98);
}

.mobile-menu-link,
.mobile-menu-languages button,
.language-menu button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--shell-muted);
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible,
.mobile-menu-languages button:hover,
.mobile-menu-languages button:focus-visible,
.mobile-menu-languages button[aria-current="true"],
.language-menu button:hover,
.language-menu button[aria-selected="true"] {
  border-color: rgba(94, 234, 212, 0.24);
  background: rgba(94, 234, 212, 0.1);
  color: var(--shell-text);
}

.mobile-menu-languages > span,
.payment-icons::before {
  color: var(--shell-muted);
}

body.auth-header-active .topbar::before {
  background:
    radial-gradient(circle at 18% 0%, rgba(94, 234, 212, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(27, 34, 46, 0.98), rgba(15, 20, 29, 0.98));
  border-color: var(--shell-line);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.18);
}

body.auth-header-active .topbar .nav-link {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--shell-muted);
  font-size: 14px;
  font-weight: 760;
  box-shadow: none;
}

body.auth-header-active .topbar .nav-link:hover,
body.auth-header-active .topbar .nav-link:focus-visible {
  border-color: rgba(94, 234, 212, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--shell-text);
}

.site-footer {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  align-self: center;
  width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(420px, 1.38fr) minmax(240px, 0.82fr);
  align-items: start;
  justify-content: stretch;
  column-gap: clamp(28px, 4vw, 54px);
  row-gap: 24px;
  margin: clamp(8px, 2vw, 16px) auto 0;
  padding: 36px 0 38px;
  border-top: 1px solid var(--shell-line);
  color: var(--shell-muted);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-footer::before {
  border-top: 1px solid var(--shell-line);
  box-shadow: 0 -14px 34px rgba(2, 6, 23, 0.12);
}

.footer-main,
.footer-support,
.footer-legal-links {
  grid-column: auto;
  grid-row: auto;
}

.footer-main {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.footer-main > span {
  color: var(--shell-text);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.footer-copy,
.footer-support-copy {
  max-width: 260px;
  margin: 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.46;
}

.payment-icons {
  width: min(100%, 208px);
  display: grid;
  grid-template-columns: repeat(3, 64px);
  justify-content: start;
  gap: 8px;
  margin-top: 6px;
}

.payment-icons::before {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.payment-icon {
  width: 64px;
  min-width: 64px;
  height: 30px;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  box-shadow: none;
  color: var(--shell-text);
}

.footer-legal-links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  justify-content: start;
  gap: 7px 18px;
  min-width: 0;
  padding: 0 clamp(22px, 2.6vw, 34px);
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  background: transparent;
  box-shadow: none;
  color: var(--shell-muted);
}

.footer-legal-links::before {
  content: "Правовая информация";
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--shell-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-legal-links a {
  position: relative;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 13px;
  font-weight: 690;
  line-height: 1.22;
  padding-left: 13px;
  text-decoration: none;
}

.footer-legal-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.58);
  transform: translateY(-50%);
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: #ffffff;
}

.footer-support {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
  max-width: none;
  padding: 0;
  border: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
  color: var(--shell-muted);
  text-align: right;
}

.footer-support span {
  color: var(--shell-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-support-copy {
  max-width: 250px;
}

.footer-support-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-support-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 10px;
  background: rgba(94, 234, 212, 0.09);
  color: var(--shell-accent);
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
}

.footer-support-links a:last-child {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: var(--shell-muted);
}

.footer-support-links a:hover,
.footer-support-links a:focus-visible {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(94, 234, 212, 0.14);
  color: #ffffff;
}

.contacts-page .contact-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.contacts-page .contact-field > span:first-child {
  display: block;
  width: 100%;
  min-width: 0;
}

.contacts-page .contact-field input,
.contacts-page .contact-field textarea,
.contacts-page .contact-input-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.contacts-page .contact-input-wrap {
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  overflow: hidden;
}

.contacts-page .contact-input-wrap svg {
  width: 22px;
  height: 22px;
  min-width: 0;
}

.contacts-page .contact-input-wrap input[type="email"] {
  align-self: center;
  display: block;
  width: 100%;
  min-width: 0;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  appearance: none;
}

.contacts-page .contact-input-wrap input[type="email"]:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html:has(body.not-found-page) {
  overflow-x: hidden;
}

body.not-found-page {
  max-width: 100%;
  overflow-x: hidden;
}

.not-found-main {
  flex: 1 0 auto;
  width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
  max-width: 100%;
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 0 auto;
  overflow-x: clip;
  padding: clamp(22px, 4vw, 44px) 0 clamp(42px, 6vw, 74px);
}

.not-found-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(430px, 56vh, 570px);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 0.84fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 252, 0.82)),
    radial-gradient(circle at 82% 18%, rgba(94, 234, 212, 0.18), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(96, 165, 250, 0.14), transparent 34%);
  box-shadow:
    0 24px 70px rgba(15, 49, 86, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  isolation: isolate;
}

.not-found-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 72%);
}

.not-found-copy {
  min-width: 0;
  max-width: 100%;
  display: grid;
  align-content: center;
  gap: 16px;
}

.not-found-code {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: transparent;
  background: linear-gradient(135deg, #111827 0%, #2563eb 45%, #14b8a6 100%);
  background-clip: text;
  filter: drop-shadow(0 14px 26px rgba(37, 99, 235, 0.12));
  font-size: clamp(84px, 17vw, 190px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.78;
  -webkit-background-clip: text;
}

.not-found-copy h1 {
  max-width: 680px;
  margin: 0;
  color: #111827;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
}

.not-found-copy > p:not(.not-found-code) {
  max-width: 610px;
  margin: 0;
  color: #526174;
  font-size: clamp(16px, 1.55vw, 19px);
  font-weight: 570;
  line-height: 1.62;
}

.not-found-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.not-found-primary,
.not-found-secondary {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
}

.not-found-primary {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
}

.not-found-primary:hover,
.not-found-primary:focus-visible {
  background: linear-gradient(135deg, #0f172a, #243144);
}

.not-found-secondary {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #1f2937;
}

.not-found-visual {
  min-width: 0;
  max-width: 100%;
  display: grid;
  place-items: center;
}

.not-found-browser {
  min-width: 0;
  width: min(100%, 420px);
  max-width: 100%;
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 22px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(20, 27, 40, 0.96));
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e5edf7;
}

.not-found-browser-top {
  display: grid;
  grid-template-columns: repeat(3, 9px) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 34px;
}

.not-found-browser-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
}

.not-found-browser-top span:first-child {
  background: #5eead4;
}

.not-found-browser-top span:nth-child(2) {
  background: #60a5fa;
}

.not-found-browser-top strong {
  min-width: 0;
  justify-self: end;
  overflow: hidden;
  color: rgba(226, 232, 240, 0.64);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.not-found-route {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  min-height: 70px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.route-node {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
}

.route-node.is-active {
  border-color: rgba(94, 234, 212, 0.92);
  background: #5eead4;
  box-shadow: 0 0 0 7px rgba(94, 234, 212, 0.14);
}

.route-line {
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.route-line.is-ok {
  background: linear-gradient(90deg, #5eead4, #60a5fa);
}

.route-line.is-lost {
  background: repeating-linear-gradient(90deg, rgba(248, 113, 113, 0.9) 0 12px, transparent 12px 20px);
}

.not-found-chart {
  min-width: 0;
  max-width: 100%;
  height: 116px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.08), rgba(94, 234, 212, 0.04));
}

.not-found-chart i {
  min-height: 20px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #5eead4, #2563eb);
  opacity: 0.88;
}

.not-found-status {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 16px;
  background: rgba(94, 234, 212, 0.08);
}

.not-found-status span {
  min-width: 0;
  overflow: hidden;
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.not-found-status strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.not-found-links {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.not-found-links a {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(15, 49, 86, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.not-found-links a:hover,
.not-found-links a:focus-visible {
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 22px 42px rgba(15, 49, 86, 0.1);
  transform: translateY(-2px);
}

.not-found-links strong {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.not-found-links span {
  color: #607089;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

body.legal-page {
  overflow-x: clip;
}

body.legal-page .page-shell {
  width: min(1040px, calc(100% - (var(--shell-gutter) * 2)));
  padding: clamp(18px, 3vw, 30px) 0 clamp(42px, 6vw, 72px);
}

body.legal-page .legal-hero,
body.legal-page .legal-doc,
body.legal-page .legal-index-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 248, 253, 0.74));
  box-shadow:
    0 18px 48px rgba(15, 49, 86, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.legal-page .legal-hero,
body.legal-page .legal-doc {
  min-width: 0;
}

body.legal-page .legal-doc h1,
body.legal-page .legal-hero h1 {
  max-width: 880px;
  overflow-wrap: anywhere;
}

body.legal-page .legal-doc-lead,
body.legal-page .legal-hero p {
  max-width: 820px;
}

body.legal-page .legal-index-card {
  align-content: start;
  min-height: 158px;
}

@media (max-width: 1040px) {
  :root {
    --shell-max: 820px;
  }

  .topbar,
  body.public-home-page .topbar,
  body.legal-page .topbar,
  body.orders-page .topbar,
  body.billing-page .topbar,
  body.profile-page .topbar,
  body.admin-page .topbar {
    gap: 12px;
  }

  body.legal-page .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: var(--shell-header-height);
    padding: 0;
  }

  body.public-home-page .topbar-nav,
  body.public-home-page .language-switcher,
  body.public-auth-page .topbar-nav,
  body.public-auth-page .language-switcher,
  body.pricing-page .topbar-nav,
  body.pricing-page .language-switcher,
  body.features-page .topbar-nav,
  body.features-page .language-switcher,
  body.contacts-page .topbar-nav,
  body.contacts-page .language-switcher,
  body.legal-page .topbar-nav,
  body.legal-page .language-switcher {
    display: none;
  }

  body.public-home-page .login-cta,
  body.public-auth-page .login-cta,
  body.pricing-page .login-cta,
  body.features-page .login-cta,
  body.contacts-page .login-cta,
  body.legal-page .login-cta {
    display: none;
  }

  body.contacts-page .user-balance-widget,
  body.contacts-page .account-menu,
  body.not-found-page .user-balance-widget,
  body.not-found-page .account-menu,
  body.legal-page .user-balance-widget,
  body.legal-page .account-menu {
    display: none;
  }

  body.public-home-page .mobile-menu,
  body.public-auth-page .mobile-menu,
  body.pricing-page .mobile-menu,
  body.features-page .mobile-menu,
  body.contacts-page .mobile-menu,
  body.legal-page .mobile-menu {
    display: block;
  }

  .mobile-menu-panel {
    position: fixed;
    top: calc(var(--shell-header-height) + 10px);
    right: var(--shell-gutter);
    left: var(--shell-gutter);
    width: auto;
    max-width: none;
  }

  .mobile-menu-panel::before {
    right: 18px;
  }

  .brand-wordmark,
  body.public-home-page .brand-wordmark,
  body.legal-page .brand-wordmark,
  body.orders-page .brand-wordmark.has-image,
  body.billing-page .brand-wordmark.has-image,
  body.profile-page .brand-wordmark.has-image,
  body.admin-page .brand-wordmark.has-image {
    width: clamp(142px, 22vw, 166px);
    max-width: min(100%, calc(100vw - 138px));
  }

  body.orders-page .topbar .nav-link,
  body.billing-page .topbar .nav-link,
  body.profile-page .topbar .nav-link {
    padding: 0 9px;
    font-size: 13px;
  }

  body.orders-page .user-balance-widget,
  body.billing-page .user-balance-widget,
  body.profile-page .user-balance-widget {
    max-width: 132px;
    padding: 0 10px;
  }

  body.orders-page .topbar-actions .user-label,
  body.billing-page .topbar-actions .user-label,
  body.profile-page .topbar-actions .user-label {
    max-width: 136px;
    padding: 0 11px;
  }

  .site-footer {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    column-gap: clamp(28px, 6vw, 48px);
    row-gap: 18px;
  }

  .footer-main {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-support {
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
    width: min(100%, 260px);
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
  }

  .footer-support-links {
    justify-content: flex-start;
  }

  .footer-legal-links {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    padding: 0 0 0 clamp(24px, 4vw, 34px);
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    border-right: 0;
  }
}

@media (max-width: 780px) {
  body.legal-page .topbar {
    width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0;
  }

  body.legal-page .topbar-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  body.legal-page .page-shell {
    gap: 16px;
    padding-top: 16px;
  }

  body.legal-page .legal-index-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.legal-page .legal-doc,
  body.legal-page .legal-hero,
  body.legal-page .legal-index-card {
    padding: 18px;
  }

  body.orders-page .topbar,
  body.billing-page .topbar,
  body.profile-page .topbar {
    width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 0;
  }

  body.orders-page .topbar-actions,
  body.billing-page .topbar-actions,
  body.profile-page .topbar-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --shell-max: 560px;
    --shell-gutter: 12px;
    --shell-header-height: 66px;
  }

  .topbar,
  body.public-home-page .topbar,
  body.legal-page .topbar,
  body.orders-page .topbar,
  body.billing-page .topbar,
  body.profile-page .topbar,
  body.admin-page .topbar {
    gap: 8px;
  }

  .topbar .login-cta,
  body.public-home-page .login-cta {
    min-width: 76px;
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .brand-wordmark,
  body.public-home-page .brand-wordmark,
  body.legal-page .brand-wordmark,
  body.orders-page .brand-wordmark.has-image,
  body.billing-page .brand-wordmark.has-image,
  body.profile-page .brand-wordmark.has-image,
  body.admin-page .brand-wordmark.has-image {
    width: clamp(126px, 38vw, 148px);
    max-width: min(100%, calc(100vw - 94px));
  }

  body.orders-page .topbar,
  body.billing-page .topbar,
  body.profile-page .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 0;
  }

  body.orders-page .topbar-nav,
  body.billing-page .topbar-nav,
  body.profile-page .topbar-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    order: 3;
  }

  body.orders-page .topbar .nav-link,
  body.billing-page .topbar .nav-link,
  body.profile-page .topbar .nav-link {
    flex: 1 1 0;
    min-width: 0;
  }

  body.orders-page .topbar-actions,
  body.billing-page .topbar-actions,
  body.profile-page .topbar-actions {
    gap: 7px;
  }

  body.orders-page .user-balance-widget,
  body.billing-page .user-balance-widget,
  body.profile-page .user-balance-widget {
    max-width: 112px;
    min-height: 38px;
    padding: 0 9px;
  }

  body.orders-page .topbar-actions .user-label,
  body.billing-page .topbar-actions .user-label,
  body.profile-page .topbar-actions .user-label {
    max-width: 108px;
    min-height: 38px;
    padding: 0 9px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 30px 0 32px;
  }

  .footer-main,
  .footer-support,
  .footer-legal-links {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-main,
  .footer-support {
    justify-self: stretch;
    justify-items: start;
    text-align: left;
  }

  .footer-support {
    width: 100%;
    padding-top: 2px;
    border-top: 0;
  }

  .footer-copy,
  .footer-support-copy {
    max-width: 100%;
  }

  .footer-support-links {
    justify-content: flex-start;
  }

  .footer-legal-links {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }

  .footer-legal-links::before {
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  body.legal-page .legal-hero h1,
  body.legal-page .legal-doc h1 {
    font-size: clamp(27px, 8.4vw, 36px);
    line-height: 1.04;
  }

  body.legal-page .legal-hero p,
  body.legal-page .legal-doc-lead,
  body.legal-page .legal-index-card p,
  body.legal-page .legal-section p,
  body.legal-page .legal-section li {
    font-size: 14px;
    line-height: 1.58;
  }

  body.legal-page .legal-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.legal-page .legal-meta span {
    width: 100%;
    min-height: 34px;
    justify-content: flex-start;
    border-radius: 10px;
    white-space: normal;
  }

  body.legal-page .legal-section {
    gap: 9px;
    padding-top: 16px;
  }

  body.legal-page .legal-section h2 {
    font-size: clamp(20px, 6vw, 24px);
  }

  body.legal-page .legal-section ul,
  body.legal-page .legal-section ol {
    gap: 9px;
    padding-left: 18px;
  }
}

@media (max-width: 420px) {
  :root {
    --shell-max: 390px;
    --shell-gutter: 10px;
  }

  .topbar,
  body.public-home-page .topbar,
  body.legal-page .topbar,
  body.orders-page .topbar,
  body.billing-page .topbar,
  body.profile-page .topbar,
  body.admin-page .topbar {
    gap: 6px;
  }

  .brand-wordmark,
  body.public-home-page .brand-wordmark,
  body.legal-page .brand-wordmark,
  body.orders-page .brand-wordmark.has-image,
  body.billing-page .brand-wordmark.has-image,
  body.profile-page .brand-wordmark.has-image,
  body.admin-page .brand-wordmark.has-image {
    width: clamp(116px, 40vw, 132px);
    max-width: min(100%, calc(100vw - 86px));
  }

  body.legal-page .page-shell {
    width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
    gap: 12px;
    padding-top: 12px;
  }

  body.legal-page .legal-doc,
  body.legal-page .legal-hero,
  body.legal-page .legal-index-card {
    padding: 16px;
    border-radius: 14px;
  }

  body.legal-page .legal-index-card {
    min-height: 0;
  }

  body.orders-page .user-balance-widget,
  body.billing-page .user-balance-widget,
  body.profile-page .user-balance-widget {
    max-width: 94px;
  }

  body.orders-page .topbar-actions .user-label,
  body.billing-page .topbar-actions .user-label,
  body.profile-page .topbar-actions .user-label {
    max-width: 88px;
  }
}

@media (max-width: 900px) {
  .not-found-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .not-found-browser {
    width: min(100%, 520px);
    min-height: 290px;
  }

  .not-found-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .not-found-main {
    gap: 12px;
    padding-top: 16px;
  }

  .not-found-shell {
    gap: 22px;
    padding: 20px;
    border-radius: 18px;
  }

  .not-found-copy {
    gap: 14px;
  }

  .not-found-code {
    font-size: clamp(78px, 25vw, 112px);
  }

  .not-found-copy h1 {
    font-size: clamp(35px, 11vw, 52px);
  }

  .not-found-copy > p:not(.not-found-code) {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .not-found-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .not-found-primary,
  .not-found-secondary {
    width: 100%;
  }

  .not-found-browser {
    min-height: 252px;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .not-found-route {
    grid-template-columns: 20px minmax(0, 1fr) 20px minmax(0, 1fr) 20px;
    gap: 6px;
  }

  .route-node {
    width: 20px;
    height: 20px;
  }

  .not-found-route,
  .not-found-chart {
    padding: 12px;
    border-radius: 14px;
  }

  .not-found-chart {
    height: 92px;
  }

  .not-found-links a {
    padding: 16px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .not-found-main {
    width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
  }

  .not-found-shell {
    padding: 16px;
  }

  .not-found-code {
    font-size: clamp(72px, 26vw, 98px);
  }

  .not-found-browser {
    min-height: 220px;
    padding: 12px;
  }

  .not-found-status {
    padding: 12px;
  }

  .not-found-browser-top strong {
    max-width: 132px;
  }
}

/* Authenticated workspace is desktop-first: public pages adapt, cabinet keeps its full tool layout. */
body.orders-page,
body.user-order-wizard,
body.billing-page,
body.profile-page,
body.admin-page {
  --shell-max: 1120px;
  --shell-gutter: 16px;
  --shell-header-height: 72px;
  max-width: none;
  width: max(100%, var(--auth-workspace-min-width));
  min-width: calc(var(--shell-max) + (var(--shell-gutter) * 2));
  overflow-x: auto;
  background:
    radial-gradient(circle at 10% -10%, rgba(37, 99, 235, 0.09), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(20, 184, 166, 0.08), transparent 26%),
    var(--bg);
}

body.orders-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  min-height: 100dvh;
}

body.orders-page .orders-user-main {
  align-self: stretch;
}

body.orders-page .site-footer {
  align-self: end;
}

html:has(body.orders-page),
html:has(body.user-order-wizard),
html:has(body.billing-page),
html:has(body.profile-page),
html:has(body.admin-page) {
  max-width: none;
  min-width: var(--auth-workspace-min-width);
  overflow-x: auto;
}

body.orders-page .topbar,
body.user-order-wizard .topbar,
body.billing-page .topbar,
body.profile-page .topbar,
body.admin-page .topbar {
  width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: var(--shell-header-height);
  padding: 0;
}

body.orders-page .site-brand,
body.user-order-wizard .site-brand,
body.billing-page .site-brand,
body.profile-page .site-brand,
body.admin-page .site-brand {
  max-width: min(100%, 198px);
  min-height: 52px;
}

body.orders-page .brand-wordmark.has-image,
body.user-order-wizard .brand-wordmark.has-image,
body.billing-page .brand-wordmark.has-image,
body.profile-page .brand-wordmark.has-image,
body.admin-page .brand-wordmark.has-image {
  width: clamp(158px, 12.2vw, 184px);
  max-width: 184px;
}

body.orders-page .topbar-nav,
body.user-order-wizard .topbar-nav,
body.billing-page .topbar-nav,
body.profile-page .topbar-nav,
body.admin-page .topbar-nav {
  grid-column: auto;
  width: auto;
  display: flex;
  justify-content: flex-start;
  order: 0;
}

body.orders-page .topbar .nav-link,
body.user-order-wizard .topbar .nav-link,
body.billing-page .topbar .nav-link,
body.profile-page .topbar .nav-link,
body.admin-page .topbar .nav-link {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  font-size: 14px;
}

body.orders-page .topbar-actions,
body.user-order-wizard .topbar-actions,
body.billing-page .topbar-actions,
body.profile-page .topbar-actions,
body.admin-page .topbar-actions {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

body.orders-page .user-balance-widget,
body.user-order-wizard .user-balance-widget,
body.billing-page .user-balance-widget,
body.profile-page .user-balance-widget {
  max-width: 156px;
  min-height: 40px;
  padding: 0 13px;
}

body.orders-page .topbar-actions .user-label,
body.user-order-wizard .topbar-actions .user-label,
body.billing-page .topbar-actions .user-label,
body.profile-page .topbar-actions .user-label {
  min-width: 150px;
  max-width: 236px;
  min-height: 40px;
  padding: 0 12px 0 10px;
}

body.orders-page .orders-page-shell,
body.user-order-wizard .page-shell,
body.billing-page .billing-shell,
body.profile-page .profile-main {
  width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
}

body.orders-page .orders-user-main {
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.orders-page .orders-page-shell {
  flex: 0 0 auto;
}

body.user-order-wizard .page-shell {
  padding: 18px 0 34px;
}

body.user-order-wizard .order-wizard-panel {
  width: min(940px, 100%);
}

body.user-order-wizard .order-wizard-form {
  padding: clamp(20px, 3vw, 30px);
}

body.user-order-wizard .wizard-source-row {
  grid-template-columns: minmax(190px, 220px) minmax(300px, 1fr) minmax(148px, 170px);
  gap: 12px;
}

body.user-order-wizard .wizard-duration-grid,
body.user-order-wizard .entry-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.user-order-wizard .wizard-activity-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.user-order-wizard .wizard-progress {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
  padding-bottom: 0;
}

body.user-order-wizard .wizard-progress-step strong {
  font-size: 12px;
}

body.user-order-wizard .wizard-review-list {
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
}

body.user-order-wizard .wizard-review-list dt,
body.user-order-wizard .wizard-review-list dd {
  padding: 14px 16px;
}

body.user-order-wizard .wizard-actions {
  width: auto;
  justify-content: flex-end;
}

body.user-order-wizard .wizard-actions button {
  width: auto;
  min-width: 148px;
}

body.user-order-wizard .geo-picker-layout,
body.user-order-wizard .wizard-geo-picker-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

body.user-order-wizard .geo-picker-field {
  grid-template-columns: 1fr auto;
}

body.user-order-wizard .wizard-geo-card {
  --wizard-geo-list-height: clamp(300px, 42vh, 380px);
}

body.orders-page .orders-preview-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
}

body.orders-page .orders-preview-tools {
  grid-template-columns: minmax(260px, 1fr) 174px 150px;
}

body.orders-page .orders-preview-order-card {
  height: 118px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
}

body.orders-page .orders-preview-order-head {
  display: contents;
  grid-template-columns: none;
}

body.orders-page .orders-preview-order-rail {
  grid-column: 1;
  grid-row: 1 / 3;
}

body.orders-page .orders-preview-order-title-block {
  grid-column: 2;
  grid-row: 1;
}

body.orders-page .orders-preview-order-actions {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

body.orders-page .orders-preview-order-steps {
  grid-column: 2 / 4;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-left: 0;
}

body.orders-page .orders-folders-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100svh - 104px);
  border-bottom: 0;
}

body.orders-page .orders-folders-sidebar::after {
  display: block;
}

body.orders-page .orders-folder-tools {
  grid-template-columns: 1fr;
}

body.orders-page .orders-folder-tool-btn {
  text-align: left;
}

body.orders-page .orders-folder-management-layout {
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.78fr);
}

body.orders-page .orders-folder-create-row {
  grid-template-columns: 1fr;
}

body.orders-page .orders-page-head,
body.orders-page .order-card-top,
body.orders-page .order-card-progress {
  align-items: start;
}

body.orders-page .orders-page-head {
  display: flex;
  align-items: flex-end;
}

body.orders-page .order-card-top {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.orders-page .order-card-progress {
  grid-template-columns: minmax(150px, auto) minmax(160px, 1fr) auto;
}

body.orders-page .order-card-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.orders-page .order-card-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.orders-page .order-card-details div {
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

body.billing-page .billing-hero,
body.billing-page .billing-grid,
body.billing-page .billing-calculation {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

body.billing-page .billing-amount-presets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.billing-page .billing-payment-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-page .topbar,
body.admin-page .page-shell {
  width: calc(100% - 28px);
}

body.orders-page .topbar::before,
body.user-order-wizard .topbar::before,
body.billing-page .topbar::before,
body.profile-page .topbar::before,
body.admin-page .topbar::before,
body.orders-page .site-footer::before,
body.user-order-wizard .site-footer::before,
body.billing-page .site-footer::before,
body.profile-page .site-footer::before,
body.admin-page .site-footer::before {
  width: max(100vw, calc(var(--shell-max) + (var(--shell-gutter) * 2)));
}

body.admin-page .admin-sidebar {
  position: sticky;
  grid-template-columns: 1fr;
}

body.admin-page .admin-layout {
  grid-template-columns: 236px minmax(0, 1fr);
}

body.admin-page .admin-users-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.admin-page .admin-user-row {
  grid-template-columns: minmax(240px, 1.35fr) minmax(96px, auto) minmax(112px, 0.8fr) repeat(5, minmax(96px, 1fr));
}

body.admin-page .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.orders-page .site-footer,
body.user-order-wizard .site-footer,
body.billing-page .site-footer,
body.profile-page .site-footer,
body.admin-page .site-footer {
  width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
  grid-template-columns: minmax(220px, 0.82fr) minmax(420px, 1.38fr) minmax(240px, 0.82fr);
  column-gap: clamp(28px, 4vw, 54px);
  row-gap: 24px;
  padding: 36px 0 38px;
}

body.orders-page .footer-main,
body.orders-page .footer-support,
body.orders-page .footer-legal-links,
body.user-order-wizard .footer-main,
body.user-order-wizard .footer-support,
body.user-order-wizard .footer-legal-links,
body.billing-page .footer-main,
body.billing-page .footer-support,
body.billing-page .footer-legal-links,
body.profile-page .footer-main,
body.profile-page .footer-support,
body.profile-page .footer-legal-links,
body.admin-page .footer-main,
body.admin-page .footer-support,
body.admin-page .footer-legal-links {
  grid-column: auto;
  grid-row: auto;
}

body.orders-page .footer-support,
body.user-order-wizard .footer-support,
body.billing-page .footer-support,
body.profile-page .footer-support,
body.admin-page .footer-support {
  justify-items: end;
  width: auto;
  padding-top: 0;
  border-top: 0;
  text-align: right;
}

body.orders-page .footer-support-links,
body.user-order-wizard .footer-support-links,
body.billing-page .footer-support-links,
body.profile-page .footer-support-links,
body.admin-page .footer-support-links {
  justify-content: flex-end;
}

body.orders-page .footer-legal-links,
body.user-order-wizard .footer-legal-links,
body.billing-page .footer-legal-links,
body.profile-page .footer-legal-links,
body.admin-page .footer-legal-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  padding: 0 clamp(22px, 2.6vw, 34px);
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

/* Account-wide analytics */
body.analytics-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100dvh;
}

body.analytics-page .analytics-main {
  width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2)));
  margin: 0 auto;
  padding: 24px 0 38px;
}

.account-analytics-shell {
  display: grid;
  gap: 18px;
}

.account-analytics-head,
.account-analytics-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.account-analytics-head > div,
.account-analytics-section-head > div {
  min-width: 0;
}

.account-analytics-head .eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-analytics-head h1 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.1;
}

.account-analytics-head p:not(.eyebrow),
.account-analytics-section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.analytics-refresh-btn {
  width: 148px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 8%, var(--panel));
  color: color-mix(in srgb, var(--brand) 86%, var(--text));
  font-weight: 800;
}

.analytics-refresh-btn:hover,
.analytics-refresh-btn:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
}

.analytics-refresh-btn:disabled {
  cursor: default;
  opacity: 1;
}

.analytics-refresh-indicator {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.analytics-refresh-icon {
  position: absolute;
  inset: 0;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  opacity: 0.88;
  transform: scale(1);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.analytics-refresh-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 2px 2px 3px;
  opacity: 0;
  transform: scale(0.78);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.analytics-refresh-spinner > span {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.45;
  transform: scaleY(0.38);
  transform-origin: center bottom;
}

.analytics-refresh-label {
  transition: opacity 0.18s ease;
}

.analytics-refresh-btn.is-loading,
.analytics-refresh-btn.is-loading:hover,
.analytics-refresh-btn.is-loading:disabled,
.analytics-refresh-btn.is-loading:disabled:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: color-mix(in srgb, var(--brand) 7%, var(--panel));
  color: color-mix(in srgb, var(--brand) 72%, var(--text));
  cursor: default;
  box-shadow: none;
}

.analytics-refresh-btn.is-loading::before {
  content: none;
  display: none;
}

.analytics-refresh-btn.is-loading .analytics-refresh-icon {
  opacity: 0;
  transform: rotate(-24deg) scale(0.76);
}

.analytics-refresh-btn.is-loading .analytics-refresh-spinner {
  opacity: 0.84;
  transform: scale(1);
}

.analytics-refresh-btn.is-loading .analytics-refresh-spinner > span {
  animation: analytics-refresh-loader-bar 0.9s ease-in-out infinite;
}

.analytics-refresh-btn.is-loading .analytics-refresh-spinner > span:nth-child(2) {
  animation-delay: -0.6s;
}

.analytics-refresh-btn.is-loading .analytics-refresh-spinner > span:nth-child(3) {
  animation-delay: -0.3s;
}

.analytics-refresh-btn.is-loading .analytics-refresh-label {
  opacity: 0.78;
}

@keyframes analytics-refresh-loader-bar {
  0%,
  100% {
    opacity: 0.38;
    transform: scaleY(0.38);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.account-analytics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--brand) 3%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.account-analytics-toolbar .stats-period-tabs,
.account-analytics-toolbar .stats-granularity-tabs {
  width: auto;
}

.account-analytics-body {
  display: grid;
  gap: 18px;
}

.account-analytics-body.is-loading .account-analytics-summary,
.account-analytics-body.is-loading .account-analytics-chart-section,
.account-analytics-body.is-loading .account-analytics-orders-section {
  opacity: 0.68;
  transition: opacity 0.16s ease;
}

.account-analytics-summary div {
  min-height: 92px;
  display: grid;
  align-content: center;
  padding: 16px 18px;
  border-color: color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 96%, var(--brand) 4%), var(--panel));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.account-analytics-summary strong {
  font-size: 27px;
}

.account-analytics-chart-section,
.account-analytics-orders-section {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.account-analytics-section-head {
  align-items: center;
}

.account-analytics-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.2;
}

.account-analytics-sites {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-analytics-sites span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 90%, var(--brand) 4%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.account-analytics-sites strong {
  color: var(--text);
  font-size: 14px;
}

.account-analytics-chart-wrap {
  height: 382px;
  padding: 10px;
  background: var(--panel);
}

.account-analytics-chart {
  min-height: 360px;
}

.account-analytics-table-wrap {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-analytics-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.account-analytics-table th,
.account-analytics-table td {
  padding: 13px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  color: var(--text);
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.account-analytics-table th {
  background: color-mix(in srgb, var(--panel) 88%, var(--brand) 5%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-analytics-table th:first-child {
  width: 35%;
}

.account-analytics-table th:nth-child(2) {
  width: 14%;
}

.account-analytics-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-analytics-table tbody tr:hover {
  background: color-mix(in srgb, var(--panel) 94%, var(--brand) 4%);
}

.account-analytics-site {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-analytics-site strong,
.account-analytics-site span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-analytics-site strong {
  font-size: 14px;
}

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

.analytics-status {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, var(--muted) 5%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.analytics-status.is-active {
  border-color: color-mix(in srgb, var(--success) 34%, var(--line));
  background: color-mix(in srgb, var(--success) 10%, var(--panel));
  color: color-mix(in srgb, var(--success) 76%, #0f5132);
}

.analytics-status.is-paused {
  border-color: color-mix(in srgb, var(--warning) 30%, var(--line));
  background: color-mix(in srgb, var(--warning) 9%, var(--panel));
  color: color-mix(in srgb, var(--warning) 68%, #714b00);
}

.analytics-status.is-completed {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--panel));
  color: var(--brand);
}

.account-analytics-empty {
  padding: 34px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
