:root {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-strong: #eaf7ff;
  --surface-soft: #f2fbff;
  --text: #050914;
  --muted: #52647f;
  --border: #d3e7f6;
  --brand: #00eadc;
  --brand-2: #129dff;
  --accent: #5a32ff;
  --success: #00b88a;
  --warning: #f59e0b;
  --danger: #e04468;
  --ink: #030711;
  --ink-panel: #071126;
  --ink-panel-2: #0b1732;
  --brand-glow: rgba(0, 234, 220, 0.16);
  --blue-glow: rgba(18, 157, 255, 0.16);
  --accent-glow: rgba(90, 50, 255, 0.16);
  --grid-glow: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 60px rgba(5, 9, 20, 0.12);
  --shadow-soft: 0 8px 24px rgba(5, 9, 20, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --page-pad: clamp(16px, 3vw, 36px);
  --section-gap: clamp(18px, 2.4vw, 28px);
  --grid-gap: clamp(14px, 2vw, 22px);
  --card-gap: 14px;
  --panel-pad: clamp(18px, 2.1vw, 26px);
  --control-h: 44px;
  --topbar-h: 76px;
  --content-max: 1480px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #030711;
  --surface: #071126;
  --surface-strong: #0c1934;
  --surface-soft: #050d1f;
  --text: #f8fbff;
  --muted: #b7c7df;
  --border: #173056;
  --brand-glow: rgba(0, 234, 220, 0.22);
  --blue-glow: rgba(18, 157, 255, 0.2);
  --accent-glow: rgba(90, 50, 255, 0.2);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  margin: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand), transparent 90%), transparent 340px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 96%), transparent 680px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

body.is-nav-open {
  overflow: hidden;
}

[dir="rtl"] .brand-button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  text-align: right;
}

[dir="rtl"] body,
[dir="rtl"] .topbar,
[dir="rtl"] .nav-tabs,
[dir="rtl"] .top-actions,
[dir="rtl"] .heading-actions,
[dir="rtl"] .form-actions,
[dir="rtl"] .hero-actions,
[dir="rtl"] .panel-header,
[dir="rtl"] .mini-actions {
  direction: rtl;
}

[dir="rtl"] .list-row,
[dir="rtl"] .checkout-row {
  direction: rtl;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(calc(-100% - 24px));
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--surface);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--topbar-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 20%);
  background: color-mix(in srgb, var(--surface), transparent 8%);
  padding: 12px clamp(14px, 2.5vw, 34px);
  backdrop-filter: blur(18px);
}

.brand-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: left;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand-button:hover .brand-logo,
.home-hero-logo:hover,
.home-hero-logo:focus-visible {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 0 3px var(--brand-glow), var(--shadow);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.12rem;
  letter-spacing: 0;
}

.brand-copy span {
  display: none;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab,
.segmented-button {
  min-height: var(--control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 850;
  flex: 0 0 auto;
  line-height: 1.1;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-tab:hover,
.segmented-button:hover,
.ghost-button:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.nav-tab.is-active,
.segmented-button.is-active {
  border-color: color-mix(in srgb, var(--brand-2), transparent 55%);
  background: color-mix(in srgb, var(--brand-2), transparent 88%);
  color: var(--brand-2);
}

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

.top-actions {
  min-width: 0;
  justify-content: flex-end;
}

.dummy-data-toggle {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  appearance: none;
  padding: 4px 8px 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.dummy-data-toggle:hover,
.dummy-data-toggle:focus-within {
  border-color: color-mix(in srgb, var(--brand), transparent 38%);
  background: color-mix(in srgb, var(--brand), transparent 92%);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.dummy-toggle-track {
  width: 56px;
  min-height: 26px;
  display: inline-grid;
  align-items: center;
  justify-items: start;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted), transparent 82%);
  padding: 3px;
  transition: background 160ms ease;
}

.dummy-toggle-state {
  width: 24px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  transform: translateX(0);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.dummy-data-toggle:disabled {
  opacity: 0.78;
  cursor: not-allowed;
}

.dummy-data-toggle.is-on {
  border-color: color-mix(in srgb, var(--brand), transparent 32%);
  background: color-mix(in srgb, var(--brand), transparent 88%);
  color: var(--text);
}

.dummy-data-toggle.is-on .dummy-toggle-track {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.dummy-data-toggle.is-on .dummy-toggle-state {
  color: var(--ink);
  transform: translateX(26px);
}

.dummy-data-toggle.is-busy {
  opacity: 0.78;
  pointer-events: none;
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.language-switcher,
.currency-switcher {
  width: min(150px, 32vw);
  display: block;
}

.currency-switcher {
  width: min(128px, 28vw);
}

.language-switcher select,
.currency-switcher select {
  min-height: 38px;
  padding-block: 7px;
  font-size: 0.84rem;
  font-weight: 850;
}

.session-pill,
.tier-pill,
.validation-pill,
.tag,
.status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.session-pill.large {
  min-height: 38px;
  padding-inline: 14px;
}

.name-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.session-pill .name-with-badge,
.session-pill.name-with-badge {
  flex-wrap: nowrap;
}

.session-plan-separator {
  color: var(--muted);
}

.verification-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(5, 9, 20, 0.12);
}

.verification-badge.verified {
  border-color: color-mix(in srgb, var(--brand-2), transparent 36%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-2), white 8%), #2563eb);
  color: #ffffff;
}

.verification-badge.premium {
  border-color: color-mix(in srgb, #f7c948, transparent 20%);
  background: linear-gradient(135deg, #f7c948, #f59e0b);
  color: #181004;
}

.validation-pill.is-ready,
.status-badge.approved,
.tag.success {
  border-color: color-mix(in srgb, var(--success), transparent 60%);
  background: color-mix(in srgb, var(--success), transparent 88%);
  color: var(--success);
}

.status-badge.pending,
.tag.warning {
  border-color: color-mix(in srgb, var(--warning), transparent 55%);
  background: color-mix(in srgb, var(--warning), transparent 88%);
  color: var(--warning);
}

.status-badge.rejected,
.tag.danger {
  border-color: color-mix(in srgb, var(--danger), transparent 55%);
  background: color-mix(in srgb, var(--danger), transparent 88%);
  color: var(--danger);
}

.status-badge.read {
  border-color: color-mix(in srgb, var(--muted), transparent 72%);
  background: color-mix(in srgb, var(--muted), transparent 92%);
  color: var(--muted);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: var(--control-h);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0 15px;
  font-weight: 850;
  line-height: 1.1;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  border-color: color-mix(in srgb, var(--brand), transparent 42%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--ink);
  box-shadow: 0 12px 28px var(--blue-glow);
}

.secondary-button {
  border-color: color-mix(in srgb, var(--brand), transparent 42%);
  background: color-mix(in srgb, var(--brand), transparent 90%);
  color: color-mix(in srgb, var(--brand-2), var(--text) 18%);
}

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

.danger-button {
  border-color: color-mix(in srgb, var(--danger), transparent 55%);
  background: color-mix(in srgb, var(--danger), transparent 90%);
  color: var(--danger);
}

.compact {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 0.84rem;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.primary-button.is-loading::before,
.secondary-button.is-loading::before,
.ghost-button.is-loading::before,
.danger-button.is-loading::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  content: "";
  animation: spin 720ms linear infinite;
}

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

.icon-button {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mobile-menu-button span,
.mobile-menu-button span::before,
.mobile-menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  content: "";
}

.mobile-menu-button span::before {
  transform: translateY(-6px);
}

.mobile-menu-button span::after {
  transform: translateY(4px);
}

main {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: var(--page-pad);
}

.view {
  display: none;
}

.view.is-active {
  display: grid;
  gap: var(--section-gap);
  animation: fade-in 180ms ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  min-height: calc(100svh - var(--topbar-h) - 70px);
  padding-block: clamp(24px, 4vw, 70px);
}

.home-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: min(620px, calc(100svh - var(--topbar-h) - 70px));
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  display: grid;
  gap: 12px;
  max-width: 780px;
  justify-items: center;
}

.home-hero .hero-actions {
  justify-content: center;
}

.home-hero-logo {
  width: clamp(150px, 22vw, 260px);
  height: clamp(150px, 22vw, 260px);
  margin: 10px auto 18px;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 58%);
  border-radius: var(--radius);
  object-fit: cover;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-size: 0.76rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-heading h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-lede {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.36rem);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-panel);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.content-grid,
.dashboard-grid,
.rating-layout,
.auth-layout,
.profile-layout,
.inner-layout,
.pricing-grid {
  display: grid;
  gap: var(--grid-gap);
  min-width: 0;
}

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

.dashboard-grid {
  grid-template-columns: minmax(260px, 0.88fr) minmax(500px, 1.36fr) minmax(260px, 0.88fr);
  grid-template-areas: "dashboard-left dashboard-feature dashboard-right";
  align-items: start;
}

.dashboard-grid > .dashboard-column:first-child {
  grid-area: dashboard-left;
}

.dashboard-column-feature {
  grid-area: dashboard-feature;
}

.dashboard-grid > .dashboard-column:last-child {
  grid-area: dashboard-right;
}

.dashboard-column {
  display: grid;
  gap: var(--grid-gap);
  align-content: start;
  min-width: 0;
}

.rating-layout,
.profile-layout,
.inner-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.3fr);
  align-items: start;
}

.profile-layout {
  grid-template-columns: minmax(0, 1fr);
}

.auth-layout {
  width: min(920px, 100%);
  margin-inline: auto;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  margin-bottom: var(--grid-gap);
}

.panel,
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface), transparent 0%);
  box-shadow: var(--shadow-soft);
  min-width: 0;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.panel:hover,
.pricing-card:hover,
.steps-grid li:hover {
  border-color: color-mix(in srgb, var(--brand-2), transparent 58%);
  box-shadow: var(--shadow);
}

.pricing-card:hover,
.steps-grid li:hover {
  transform: translateY(-2px);
}

.panel {
  display: grid;
  gap: var(--card-gap);
  align-content: start;
  padding: var(--panel-pad);
}

.panel > :last-child,
.pricing-card > :last-child,
.list-item > :last-child,
.search-result > :last-child,
.circle-card > :last-child,
.dashboard-circle-card > :last-child,
.empty-state > :last-child {
  margin-bottom: 0;
}

.section-band {
  margin-top: 0;
  border-top: 1px solid var(--border);
  padding-top: var(--section-gap);
}

.section-band .section-heading {
  display: grid;
  justify-content: start;
  gap: 4px;
}

.page-heading,
.section-heading,
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: var(--card-gap);
  align-items: flex-start;
  margin-bottom: 0;
  min-width: 0;
}

.panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.section-heading.inline {
  align-items: center;
}

.page-heading > *,
.section-heading > *,
.panel-header > * {
  min-width: 0;
}

.page-heading h1,
.section-heading h2,
.panel-header h2,
.panel-header h3 {
  margin-bottom: 0;
}

.panel-header .compact {
  justify-self: end;
}

.panel-collapse-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface), transparent 6%);
  color: var(--text);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.panel-collapse-toggle:hover,
.panel-collapse-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--brand-2), transparent 36%);
  background: color-mix(in srgb, var(--brand), transparent 90%);
}

.panel-collapse-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.dashboard-collapsible-panel.is-collapsed .panel-collapse-icon {
  transform: rotate(-45deg) translateY(1px);
}

.panel-collapse-body {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-collapsible-panel.is-collapsed .panel-collapse-body {
  display: none;
}

.dashboard-collapsible-panel.is-collapsed {
  padding-bottom: 18px;
}

.muted-text {
  color: var(--muted);
}

.trust-list,
.status-grid,
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
  width: 100%;
}

.metric-row > .dashboard-lock-state {
  grid-column: 1 / -1;
}

.trust-list > span,
.status-card,
.metric-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.home-principles {
  margin-top: var(--grid-gap);
}

.home-principles > span {
  position: relative;
  min-height: 64px;
  display: grid;
  align-items: center;
  padding-left: 42px;
  color: var(--text);
  font-weight: 850;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 92%), color-mix(in srgb, var(--brand-2), transparent 94%)),
    var(--surface-soft);
}

.home-principles > span::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 84%);
}

.metric-card {
  display: grid;
  align-content: start;
  gap: 2px;
}

.status-card strong,
.metric-card strong {
  display: block;
  color: var(--text);
  font-size: 1.25rem;
}

.dashboard-lock-state {
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed color-mix(in srgb, var(--brand-2), transparent 42%);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 90%), transparent),
    var(--surface-soft);
  padding: 18px;
  text-align: center;
}

.dashboard-lock-state.compact {
  min-height: 0;
  flex: 1 1 100%;
  place-items: start;
  justify-items: start;
  text-align: left;
}

.dashboard-lock-state.compact p {
  max-width: 40ch;
}

.dashboard-lock-state h3,
.dashboard-lock-state p {
  margin: 0;
}

.trust-wheel-panel.is-locked .trust-wheel-visual {
  min-height: 340px;
  display: grid;
  place-items: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps-grid li {
  position: relative;
  min-height: 164px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 52px 18px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.steps-grid li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand), transparent 72%);
  color: var(--brand-2);
  content: counter(steps);
  counter-increment: steps;
  font-weight: 900;
}

.steps-grid strong,
.steps-grid span {
  display: block;
}

.steps-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.score-panel {
  min-height: 0;
}

.qr-panel {
  overflow: hidden;
}

.rating-qr-layout {
  display: grid;
  gap: var(--card-gap);
}

.rating-qr-code {
  width: min(100%, 240px);
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 34%);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 78%), color-mix(in srgb, var(--accent), transparent 88%)),
    #ffffff;
  box-shadow: 0 16px 44px var(--brand-glow);
  padding: 12px;
}

.rating-qr-code svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.rating-qr-meta {
  display: grid;
  gap: 12px;
}

.rating-qr-meta p {
  margin: 6px 0 0;
}

.qr-code-pill {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 10px 12px;
}

.qr-code-pill {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.qr-code-pill span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.qr-code-pill strong {
  color: var(--text);
  font-size: 0.95rem;
  text-align: right;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.qr-actions .compact {
  width: 100%;
}

.trust-wheel-panel {
  display: grid;
  gap: var(--card-gap);
  min-height: 0;
}

.trust-wheel-panel .panel-header h2 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.dashboard-grid > .dashboard-column:not(.dashboard-column-feature) .panel-header h2 {
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  line-height: 1.12;
}

.trust-wheel-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 234, 220, 0.16), transparent 28%),
    radial-gradient(circle at 52% 56%, rgba(90, 50, 255, 0.16), transparent 38%),
    var(--ink-panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), var(--shadow-soft);
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(12px, 2.4vw, 28px);
}

.trust-score-chart {
  display: block;
  width: min(100%, 680px);
  aspect-ratio: 1;
  min-height: 280px;
}

.trust-score-bg {
  fill: #050b18;
  pointer-events: none;
}

.trust-score-grid-ring,
.trust-score-grid-spoke {
  fill: none;
  pointer-events: none;
  stroke: rgba(180, 199, 237, 0.13);
  stroke-width: 1.2;
}

.trust-score-category,
.trust-score-sub-segment {
  cursor: pointer;
  outline: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

.trust-score-category-track,
.trust-score-sub-track,
.trust-score-category-column-track {
  fill: rgba(255, 255, 255, 0.07);
  pointer-events: visiblePainted;
}

.trust-score-category-value,
.trust-score-sub-value,
.trust-score-category-column-value {
  fill: var(--segment-color);
  pointer-events: visiblePainted;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--segment-color), transparent 55%));
  transform-box: fill-box;
  transform-origin: center;
  animation: trust-column-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.trust-score-category-track {
  fill: rgba(255, 255, 255, 0.1);
}

.trust-score-category-value {
  opacity: 0.92;
}

.trust-score-sub-track,
.trust-score-category-column-track {
  opacity: 0.72;
}

.trust-score-sub-value,
.trust-score-category-column-value {
  opacity: 0.82;
}

.trust-score-category-label {
  fill: var(--segment-color);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  word-spacing: 2px;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(3, 7, 17, 0.72);
  stroke-width: 4px;
}

.trust-score-sub-label {
  fill: rgba(234, 244, 255, 0.88);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  word-spacing: 1px;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(3, 7, 17, 0.7);
  stroke-linejoin: round;
  stroke-width: 2.8px;
  text-rendering: geometricPrecision;
}

.trust-score-category.is-selected .trust-score-category-value,
.trust-score-category.is-selected .trust-score-category-column-value,
.trust-score-category.is-hovered .trust-score-category-value,
.trust-score-category.is-hovered .trust-score-category-column-value,
.trust-score-sub-segment.is-hovered .trust-score-sub-value {
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--segment-color), transparent 22%));
  opacity: 1;
}

.trust-score-category.is-selected .trust-score-category-track {
  fill: rgba(255, 255, 255, 0.17);
}

.trust-score-category.is-muted,
.trust-score-sub-segment.is-muted {
  opacity: 0.32;
}

.trust-score-center circle {
  fill: url(#trustScoreCenterGradient);
  stroke: rgba(240, 247, 255, 0.78);
  stroke-width: 3;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.trust-score-number,
.trust-score-title,
.trust-score-subtitle {
  fill: #ffffff;
  dominant-baseline: middle;
  letter-spacing: 0;
  pointer-events: none;
}

.trust-score-number {
  font-size: 64px;
  font-weight: 950;
}

.trust-score-title {
  font-size: 22px;
  font-weight: 950;
}

.trust-score-subtitle {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.trust-score-live-pill {
  position: absolute;
  inset: 14px auto auto 14px;
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--success), transparent 58%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--success), transparent 88%);
  color: var(--success);
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 950;
}

.trust-score-tooltip {
  position: absolute;
  z-index: 4;
  width: min(230px, calc(100% - 24px));
  border: 1px solid color-mix(in srgb, var(--brand-2), transparent 45%);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface), #030711 24%);
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 7px;
  padding: 11px;
  pointer-events: none;
}

.trust-score-tooltip strong,
.trust-score-tooltip span {
  display: block;
  line-height: 1.2;
}

.trust-score-tooltip strong {
  font-size: 0.92rem;
}

.trust-score-tooltip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.trust-score-tooltip dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.trust-score-tooltip div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.trust-score-tooltip dt,
.trust-score-tooltip dd {
  margin: 0;
  font-size: 0.74rem;
}

.trust-score-tooltip dt {
  color: var(--muted);
}

.trust-score-tooltip dd {
  font-weight: 900;
}

@keyframes trust-column-rise {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 0.9;
    transform: scale(1);
  }
}

.trust-wheel-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--card-gap);
  margin-top: 4px;
}

.trust-wheel-key {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface), transparent 0%), color-mix(in srgb, var(--surface-soft), transparent 8%));
  box-shadow: inset 3px 0 0 var(--key-color);
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button.trust-wheel-key {
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.trust-wheel-key:hover,
.trust-wheel-key:focus-visible,
.trust-wheel-key.is-selected {
  border-color: color-mix(in srgb, var(--key-color), transparent 38%);
  box-shadow: inset 4px 0 0 var(--key-color), 0 14px 28px color-mix(in srgb, var(--key-color), transparent 88%);
}

.trust-wheel-key:hover {
  transform: translateY(-1px);
}

.trust-wheel-key-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.trust-wheel-key-top strong {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.trust-wheel-key-top i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--key-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--key-color), transparent 78%);
}

.trust-wheel-percent {
  flex: 0 0 auto;
  align-self: start;
  border-radius: 999px;
  background: color-mix(in srgb, var(--key-color), transparent 84%);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 4px 8px;
}

.trust-wheel-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border), transparent 38%);
}

.trust-wheel-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--key-color), color-mix(in srgb, var(--key-color), white 24%));
  transition: width 480ms ease;
}

.trust-wheel-subkeys {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-width: 0;
}

.trust-wheel-subkeys span {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--border), transparent 22%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft), transparent 14%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.trust-wheel-subkeys b,
.trust-wheel-subkeys em {
  font-size: 0.76rem;
  line-height: 1.15;
}

.trust-wheel-subkeys b {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-wheel-subkeys em {
  color: var(--text);
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 900;
}

.trust-score-breakdown {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 93%), color-mix(in srgb, var(--brand-2), transparent 95%)),
    var(--surface-soft);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.trust-score-breakdown:empty {
  display: none;
}

.trust-score-breakdown-head,
.trust-score-breakdown-metrics,
.trust-score-breakdown-list article {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.trust-score-breakdown-head {
  border-left: 4px solid var(--key-color);
  padding-left: 12px;
}

.trust-score-breakdown-head h3 {
  font-size: 1.08rem;
}

.trust-score-breakdown-head strong {
  color: var(--key-color);
  font-size: 1.7rem;
  font-weight: 950;
}

.trust-score-breakdown-metrics {
  flex-wrap: wrap;
}

.trust-score-breakdown-metrics span {
  flex: 1 1 150px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: grid;
  gap: 3px;
  padding: 10px;
}

.trust-score-breakdown-metrics b,
.trust-score-breakdown-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.trust-score-breakdown-metrics strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 900;
}

.trust-score-breakdown-list {
  display: grid;
  gap: 8px;
}

.trust-score-breakdown-list article {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px;
}

.trust-score-breakdown-list div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.trust-score-breakdown-list em {
  flex: 0 0 auto;
  color: var(--text);
  font-style: normal;
  font-weight: 950;
}

.score-meter {
  --score: 50;
  width: min(230px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 8px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--brand) calc(var(--score) * 1%), var(--surface-strong) 0);
}

.score-meter span {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 950;
}

.item-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.list-item,
.search-result,
.notification-item,
.circle-card,
.dashboard-circle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  min-width: 0;
  padding: 14px;
  overflow-wrap: anywhere;
}

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

.notification-item {
  display: grid;
  gap: 12px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.notification-item.is-unread {
  border-color: color-mix(in srgb, var(--brand), transparent 34%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 90%), transparent),
    var(--surface-soft);
  box-shadow: inset 4px 0 0 var(--brand);
}

.notification-item.is-read {
  opacity: 0.86;
}

.notification-meta {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid color-mix(in srgb, var(--brand-2), transparent 74%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-2), transparent 92%);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 800;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.list-row > div {
  min-width: 0;
}

.list-row strong {
  display: block;
  min-width: 0;
}

.list-row > .status-badge,
.list-row > .tag {
  flex: 0 0 auto;
}

.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-actions > button {
  min-width: 0;
}

.stacked-form {
  display: grid;
  gap: var(--card-gap);
}

.compact-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.form-grid {
  display: grid;
  gap: var(--card-gap);
}

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

.registration-terms {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.consent-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--brand-2);
}

.consent-check span {
  line-height: 1.45;
}

.registration-terms .mini-actions {
  gap: 10px;
}

.registration-terms-copy {
  margin: 0;
}

label,
.select-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--control-h);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand), transparent 55%);
  outline-offset: 2px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--brand-2), transparent 50%);
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: var(--panel-pad);
  text-align: center;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  min-width: 0;
}

#profile-overview {
  display: grid;
  gap: var(--grid-gap);
  min-width: 0;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent));
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}

.profile-card h3 {
  margin-bottom: 2px;
  font-size: 1.25rem;
}

.profile-facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--card-gap);
}

.profile-fact {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 104px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 14px 16px;
}

.profile-fact-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-fact-value {
  min-width: 0;
  color: var(--text);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.search-results {
  margin-top: 14px;
}

.dashboard-explorer-search {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-explorer-search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.dashboard-explorer-search-row .field {
  margin: 0;
}

.dashboard-explorer-search-row .secondary-button {
  width: 100%;
}

.dashboard-explorer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.dashboard-explorer-results,
.dashboard-explorer-detail {
  min-width: 0;
}

.dashboard-explorer-results {
  margin-top: 0;
  max-height: 320px;
  overflow: auto;
  align-content: start;
  padding-right: 0;
}

.dashboard-explorer-results .search-result {
  grid-template-columns: 1fr;
  align-items: start;
}

.dashboard-explorer-results .search-result .secondary-button {
  width: 100%;
}

.dashboard-explorer-results .search-result-copy {
  display: grid;
  gap: 4px;
}

.dashboard-explorer-results .search-result-copy .muted-text {
  margin: 0;
  overflow-wrap: anywhere;
}

.dashboard-explorer-results .empty-state,
.dashboard-explorer-detail .empty-state {
  padding: 18px;
}

.dashboard-explorer-results .empty-state h3,
.dashboard-explorer-detail .empty-state h3 {
  margin-bottom: 6px;
}

.search-result.is-selected-result {
  border-color: color-mix(in srgb, var(--brand), transparent 34%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 92%), transparent),
    var(--surface-soft);
  box-shadow: inset 4px 0 0 var(--brand);
}

.dashboard-explorer-detail {
  display: grid;
  gap: 14px;
}

.dashboard-explorer-detail > * {
  min-width: 0;
}

.dashboard-explorer-detail .search-result-copy {
  display: grid;
  gap: 4px;
}

.dashboard-explorer-detail .search-result-copy .muted-text {
  margin: 0;
  overflow-wrap: anywhere;
}

.dashboard-explorer-profile,
.dashboard-explorer-section,
.dashboard-explorer-breakdown-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.dashboard-explorer-profile,
.dashboard-explorer-section {
  padding: 14px;
}

.dashboard-explorer-metrics {
  margin-top: 0;
}

.dashboard-explorer-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.dashboard-explorer-breakdown-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  box-shadow: inset 4px 0 0 var(--explore-color);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--explore-color), transparent 90%), transparent),
    var(--surface-soft);
}

.dashboard-explorer-breakdown-card strong,
.dashboard-explorer-breakdown-card span {
  color: var(--text);
}

.dashboard-explorer-breakdown-card span {
  font-size: 1.05rem;
  font-weight: 900;
}

.dashboard-explorer-breakdown-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dummy-rating-state {
  margin-top: 14px;
}

.dummy-rating-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 65%);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand), transparent 92%), transparent 72%),
    var(--surface-soft);
}

.dummy-rating-copy {
  display: grid;
  gap: 6px;
}

.dummy-rating-copy h3,
.dummy-rating-copy p {
  margin: 0;
}

.dummy-rating-copy p:last-child {
  color: var(--muted);
}

.dummy-rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.dummy-rating-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface), transparent 14%);
}

.dummy-rating-card .secondary-button {
  width: 100%;
}

.invite-email-field {
  max-width: 360px;
  display: grid;
  gap: 7px;
  margin: 14px auto 12px;
  text-align: left;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--card-gap);
  align-items: center;
}

.search-result-main,
.selected-user-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-copy,
.selected-user-summary > div {
  min-width: 0;
}

.user-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 54%);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, white, transparent 80%), transparent 38%),
    linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
  text-transform: uppercase;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.selected-user-avatar {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.user-avatar.profile-avatar {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: var(--radius);
  font-size: 1.25rem;
}

.selected-person {
  min-height: 52px;
  margin-bottom: 14px;
}

.validation-box {
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted);
  padding: 10px 12px;
}

.validation-box.is-ready {
  border-color: color-mix(in srgb, var(--success), transparent 55%);
  background: color-mix(in srgb, var(--success), transparent 90%);
  color: var(--success);
}

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

.question-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 12px;
}

.question-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand), transparent 78%);
  color: var(--brand-2);
  font-weight: 900;
}

.question-copy strong {
  display: block;
  margin-bottom: 2px;
}

.question-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.switch {
  position: relative;
  width: 58px;
  height: 32px;
  flex: 0 0 58px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  transition: background 160ms ease;
}

.switch-track::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  content: "";
  transition: transform 160ms ease;
}

.switch input:checked + .switch-track {
  border-color: color-mix(in srgb, var(--success), transparent 35%);
  background: var(--success);
}

.switch input:checked + .switch-track::after {
  transform: translateX(26px);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  justify-content: flex-end;
  margin: 0 -4px -4px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface), transparent 8%);
  padding: 12px 4px 4px;
  backdrop-filter: blur(12px);
}

.tab-switcher,
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 4px;
}

.profile-panel {
  display: none;
  margin-top: 0;
}

.profile-panel.is-active {
  display: block;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-template-rows:
    minmax(32px, auto)
    minmax(102px, auto)
    minmax(88px, auto)
    minmax(34px, auto)
    minmax(82px, auto)
    1fr
    auto;
  gap: var(--card-gap);
  overflow: hidden;
  padding: var(--panel-pad);
  min-height: 100%;
  align-content: start;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pricing-card h2,
.pricing-card p {
  margin-bottom: 0;
}

.pricing-card-top {
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.pricing-card-header {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.pricing-card.verified {
  border-color: color-mix(in srgb, var(--brand), transparent 25%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand), transparent 90%), var(--surface) 48%);
}

.pricing-card.premium {
  border-color: color-mix(in srgb, var(--accent), transparent 18%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent), transparent 90%), transparent 52%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-2), transparent 94%), var(--surface) 50%);
}

.lifetime-pricing-card {
  border-color: color-mix(in srgb, var(--accent), transparent 8%);
  background:
    linear-gradient(180deg, color-mix(in srgb, #f7c948, transparent 86%), transparent 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 92%), var(--surface) 48%);
}

.lifetime-pricing-card .plan-price strong {
  color: color-mix(in srgb, var(--accent), var(--text) 12%);
}

.pricing-card.is-selected {
  border-color: color-mix(in srgb, var(--brand), transparent 8%);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--brand), transparent 84%);
}

.selected-plan-chip {
  align-self: start;
  justify-self: end;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 36%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand), transparent 82%);
  color: var(--brand);
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 950;
  line-height: 1.1;
}

.plan-badge {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
}

.pricing-card.premium .plan-badge {
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
}

.plan-price {
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: start;
  min-width: 0;
}

.plan-price-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.plan-price strong {
  max-width: 100%;
  font-size: clamp(1.72rem, 2.5vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
  word-spacing: 0;
  overflow-wrap: anywhere;
}

.plan-price-main span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.15;
}

.plan-price .price-discount-label {
  align-self: start;
  justify-self: start;
  border: 1px solid color-mix(in srgb, var(--success), transparent 58%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--success), transparent 88%);
  color: var(--success);
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.converted-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: -6px 0 0;
  border: 1px solid color-mix(in srgb, var(--brand-2), transparent 64%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-2), transparent 90%);
  color: color-mix(in srgb, var(--brand-2), var(--text) 12%);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.plan-option-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  align-self: start;
  min-height: 78px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 94%), transparent),
    var(--surface-soft);
  color: var(--text);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plan-option-card:hover,
.plan-option-card:focus-visible,
.plan-option-card.is-selected {
  border-color: color-mix(in srgb, var(--brand), transparent 18%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 86%), color-mix(in srgb, var(--brand-2), transparent 92%)),
    var(--surface-soft);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff, transparent 84%), 0 12px 30px color-mix(in srgb, var(--brand), transparent 88%);
}

.plan-option-card:hover {
  transform: translateY(-1px);
}

.option-radio {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid color-mix(in srgb, var(--brand), transparent 42%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface), transparent 16%);
}

.plan-option-card.is-selected .option-radio {
  border-color: var(--brand);
  background: var(--brand);
}

.plan-option-card.is-selected .option-radio::after {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--ink);
  content: "";
}

.option-copy {
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
}

.option-copy strong,
.option-status {
  font-size: 0.82rem;
  font-weight: 950;
}

.option-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.option-status {
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand), transparent 88%);
  color: var(--brand);
  padding: 5px 9px;
  max-width: 100%;
  text-align: right;
  white-space: nowrap;
  line-height: 1.1;
}

.lifetime-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 42%);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 88%), color-mix(in srgb, var(--brand-2), transparent 94%)),
    var(--surface-soft);
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.lifetime-box.is-selected {
  border-color: color-mix(in srgb, var(--accent), transparent 8%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff, transparent 84%), 0 14px 34px color-mix(in srgb, var(--accent), transparent 86%);
}

.lifetime-box-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.lifetime-box-head,
.lifetime-box-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lifetime-box-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.lifetime-box-head strong {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 82%);
  color: var(--accent);
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 950;
  text-align: right;
}

.lifetime-box-price strong {
  color: color-mix(in srgb, var(--accent), var(--text) 18%);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 950;
}

.lifetime-box-price span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: right;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.feature-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
  line-height: 1.35;
}

.pricing-card-actions {
  display: grid;
  margin-top: auto;
  align-self: end;
  padding-top: 10px;
}

.pricing-card-actions .primary-button {
  width: 100%;
  min-height: 50px;
}

.feature-dot {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  margin-top: 2px;
  background: var(--success);
  color: #ffffff;
}

.feature-dot::before {
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  transform: translateY(-1px) rotate(45deg);
}

.feature-dot.excluded {
  background: transparent;
  color: var(--muted);
}

.feature-dot.excluded::before,
.feature-dot.excluded::after {
  position: absolute;
  width: 12px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.feature-dot.excluded::after {
  transform: rotate(-45deg);
}

.feature-dot.locked {
  background: transparent;
  color: var(--muted);
}

.feature-dot.locked::before {
  position: absolute;
  top: 2px;
  width: 8px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
  transform: none;
}

.feature-dot.locked::after {
  position: absolute;
  bottom: 3px;
  width: 12px;
  height: 9px;
  border-radius: 3px;
  background: currentColor;
  content: "";
}

.table-wrap {
  display: grid;
  gap: var(--card-gap);
  min-width: 0;
}

.comparison-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
}

.comparison-table {
  table-layout: fixed;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-feature-col {
  width: 42%;
}

.comparison-plan-col {
  width: 19.333%;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  color: var(--text);
  font-weight: 850;
  line-height: 1.25;
}

.comparison-heading-label {
  display: inline-block;
  min-width: max-content;
  white-space: nowrap;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: center;
}

.comparison-pill {
  display: inline-flex;
  min-width: 58px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 4px 12px;
  font-weight: 900;
}

.comparison-pill.yes {
  border-color: color-mix(in srgb, var(--success), transparent 58%);
  background: color-mix(in srgb, var(--success), transparent 88%);
  color: var(--success);
}

.comparison-pill.no {
  border-color: color-mix(in srgb, var(--danger), transparent 64%);
  background: color-mix(in srgb, var(--danger), transparent 92%);
  color: var(--danger);
}

.comparison-card-grid {
  display: none;
  gap: 10px;
}

.comparison-feature-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 14px;
}

.comparison-feature-card > strong {
  color: var(--text);
  line-height: 1.3;
}

.comparison-feature-statuses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.comparison-feature-status {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
}

.comparison-feature-status b {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 950;
}

.payment-dialog {
  width: min(720px, calc(100vw - 32px));
}

.checkout-summary,
.payment-status,
.wallet-panel,
.card-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 14px;
}

.checkout-summary {
  display: grid;
  gap: 8px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.checkout-row strong:last-child {
  font-size: 1.22rem;
}

.payment-method-fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.payment-method-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.payment-method-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.payment-method-option {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 850;
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.payment-method-option.is-active {
  border-color: color-mix(in srgb, var(--brand-2), transparent 30%);
  background: color-mix(in srgb, var(--brand-2), transparent 88%);
  color: var(--brand-2);
}

.payment-method-option small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.payment-method-option:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.wallet-panel {
  display: grid;
  gap: 8px;
}

.wallet-panel.is-authorized,
.payment-status.success {
  border-color: color-mix(in srgb, var(--success), transparent 55%);
  background: color-mix(in srgb, var(--success), transparent 90%);
  color: var(--success);
}

.payment-status.warning {
  border-color: color-mix(in srgb, var(--warning), transparent 55%);
  background: color-mix(in srgb, var(--warning), transparent 90%);
  color: var(--warning);
}

.payment-status.danger {
  border-color: color-mix(in srgb, var(--danger), transparent 55%);
  background: color-mix(in srgb, var(--danger), transparent 90%);
  color: var(--danger);
}

.receipt-lines {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.circle-card {
  display: grid;
  gap: var(--card-gap);
}

.inner-dashboard-panel {
  gap: var(--grid-gap);
}

.inner-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--grid-gap);
}

.inner-dashboard-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 94%), transparent),
    var(--surface-soft);
  padding: 14px;
}

.inner-dashboard-section-heading h3 {
  margin: 0;
}

.inner-dashboard-list {
  align-content: start;
}

.inner-dashboard-list .mini-card,
.inner-dashboard-list .request-card,
.inner-dashboard-list .dashboard-member-card {
  height: 100%;
}

.inner-snapshot-card {
  display: grid;
  gap: 10px;
}

.inner-snapshot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inner-activity-card {
  display: grid;
  gap: 8px;
}

.inner-activity-card strong,
.inner-snapshot-card strong {
  color: var(--text);
}

.inner-dashboard-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-circle-card {
  display: grid;
  gap: var(--card-gap);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 94%), transparent),
    var(--surface-soft);
}

.circle-section {
  display: grid;
  gap: 8px;
}

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

.request-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.request-role-select {
  gap: 6px;
}

.member-grid,
.request-grid,
.activity-grid,
.dashboard-member-grid,
.dashboard-request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.dashboard-member-card,
.dashboard-request-card {
  display: grid;
  gap: 8px;
}

.dashboard-request-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-width: 0;
  padding: 12px;
  overflow-wrap: anywhere;
}

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

.member-card .danger-button {
  justify-self: start;
}

.toast-region {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 24px));
}

.toast {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.danger {
  border-left-color: var(--danger);
}

.app-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 22px;
}

.app-dialog.wide-dialog {
  width: min(720px, calc(100vw - 32px));
}

#app-dialog form {
  display: grid;
  gap: 18px;
}

#app-dialog h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
}

#dialog-message {
  color: var(--muted);
}

.app-dialog::backdrop {
  background: rgba(4, 9, 20, 0.56);
}

.dialog-article {
  display: grid;
  gap: 14px;
  color: var(--text);
}

.dialog-article > p,
.dialog-article section {
  margin: 0;
}

.dialog-article section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.dialog-article h3 {
  margin: 0;
  font-size: 0.98rem;
}

.rating-details-dialog {
  display: grid;
  gap: 16px;
}

.rating-details-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.rating-detail-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 92%), transparent),
    var(--surface-soft);
  padding: 12px;
}

.rating-detail-metric span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.rating-detail-metric strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rating-detail-metric .verification-badge {
  max-width: 100%;
  min-height: 24px;
  white-space: normal;
  line-height: 1.15;
}

.rating-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 900;
}

.rating-section-heading strong {
  display: inline-grid;
  min-width: 34px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand), transparent 82%);
  color: var(--brand-2);
  font-size: 0.92rem;
}

.rating-signal-list {
  display: grid;
  gap: 10px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding-right: 4px;
}

.rating-signal-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-strong), transparent 24%);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.rating-signal-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.rating-signal-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.rating-signal-card p {
  margin: 0;
  color: var(--muted);
}

.rating-details-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 14px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1500px) {
  .brand-copy span,
  .top-actions .session-pill {
    display: none;
  }

  .language-switcher {
    width: 124px;
  }

  .currency-switcher {
    width: 104px;
  }
}

@media (max-width: 1360px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }

  .brand-button {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-strong), transparent 18%);
    box-shadow: inset 0 1px 0 color-mix(in srgb, white, transparent 92%);
    padding: 6px;
  }

  body.is-nav-open .nav-tabs {
    display: flex;
  }

  .mobile-menu-button {
    display: none;
  }

  .brand-copy span {
    display: none;
  }

  .top-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-band,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "dashboard-left dashboard-right"
      "dashboard-feature dashboard-feature";
  }

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

@media (max-width: 980px) {
  .dashboard-grid,
  .pricing-grid,
  .rating-layout,
  .inner-layout,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-areas:
      "dashboard-left"
      "dashboard-feature"
      "dashboard-right";
  }

  .pricing-grid {
    grid-auto-rows: auto;
  }

  .pricing-card {
    grid-template-rows: auto;
  }

  .hero-actions,
  .heading-actions,
  .form-actions {
    align-items: stretch;
  }

  .hero-actions > *,
  .heading-actions > *,
  .form-actions > * {
    flex: 1 1 180px;
  }
}

@media (max-width: 800px) {
  :root {
    --topbar-h: 150px;
    --page-pad: 14px;
    --section-gap: 18px;
    --grid-gap: 14px;
    --panel-pad: 16px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding-inline: 12px;
  }

  .brand-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .nav-tabs {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 6px;
    scroll-padding-inline: 6px;
  }

  .nav-tab {
    min-width: 0;
    min-height: 42px;
    padding-inline: 10px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .top-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    width: auto;
    gap: 8px;
  }

  .dummy-data-toggle {
    padding-inline: 8px;
  }

  .dummy-data-toggle > span:first-child {
    display: none;
  }

  .top-actions .compact {
    width: auto;
    min-width: 0;
    padding-inline: 8px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .top-actions .session-pill {
    display: none;
  }

  .language-switcher,
  .currency-switcher {
    width: 100%;
  }

  main {
    padding: var(--page-pad) var(--page-pad) 28px;
  }

  .hero-band {
    min-height: auto;
    padding-block: 24px;
  }

  h1 {
    font-size: clamp(2.15rem, 16vw, 3.75rem);
  }

  .page-heading,
  .section-heading,
  .panel-header {
    display: grid;
    gap: 10px;
  }

  .steps-grid,
  .dashboard-grid,
  .pricing-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-areas:
      "dashboard-left"
      "dashboard-feature"
      "dashboard-right";
  }

  .trust-wheel-visual {
    padding: 10px;
  }

  .trust-score-chart {
    min-height: 0;
  }

  .trust-score-category-label,
  .trust-score-sub-label {
    display: none;
  }

  .trust-score-live-pill {
    position: static;
    justify-self: start;
    margin-bottom: -8px;
  }

  .trust-wheel-legend,
  .trust-wheel-subkeys {
    grid-template-columns: 1fr;
  }

  .trust-score-breakdown-head,
  .trust-score-breakdown-list article {
    align-items: flex-start;
  }

  .trust-score-breakdown-head {
    display: grid;
  }

  .search-result,
  .question-card {
    grid-template-columns: 1fr;
  }

  .dashboard-explorer-search-row,
  .dashboard-explorer-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-explorer-results {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .question-index {
    display: none;
  }

  .switch {
    justify-self: start;
  }

  .sticky-actions {
    justify-content: stretch;
  }

  .sticky-actions button {
    flex: 1;
  }

  .hero-actions,
  .heading-actions,
  .form-actions,
  .mini-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
    min-width: 0;
  }

  .billing-toggle {
    width: 100%;
    justify-content: center;
  }

  .billing-toggle .segmented-button {
    flex: 1 1 0;
  }

  .plan-option-card,
  .lifetime-box {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .option-status {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
    text-align: left;
  }

  .payment-method-picker {
    grid-template-columns: 1fr;
  }

  .comparison-table-scroll {
    display: none;
  }

  .comparison-card-grid {
    display: grid;
  }

  .list-row,
  .checkout-row,
  .qr-code-pill,
  .lifetime-box-head,
  .lifetime-box-price {
    display: grid;
    justify-items: start;
  }

  .list-row > .status-badge,
  .list-row > .tag,
  .qr-code-pill strong,
  .lifetime-box-head strong,
  .lifetime-box-price span {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .brand-copy {
    display: none;
  }

  .top-actions {
    grid-template-columns: 1fr;
  }

  .plan-option-card,
  .lifetime-box,
  .rating-signal-card {
    grid-template-columns: 1fr;
  }

  .option-radio {
    display: none;
  }

  .option-status {
    grid-column: auto;
  }

  .comparison-feature-statuses {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
