:root {
  --ink: #17121f;
  --muted: #62596f;
  --purple: #4d18c0;
  --purple-dark: #2f1746;
  --purple-soft: #f2ecf8;
  --line: #e7dfef;
  --surface: #ffffff;
  --surface-soft: #faf8fc;
  --success: #1f7a4d;
  --shadow: 0 24px 70px rgba(32, 18, 48, 0.14);
  --header-top-height: 48px;
  --header-main-height: 64px;
  --header-total-height: calc(var(--header-top-height) + var(--header-main-height));
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

/* Admin console variables */
:root {
  --admin-sidebar-bg: #1a1425;
  --admin-sidebar-width: 264px;
  --admin-surface: #ffffff;
  --admin-surface-raised: #ffffff;
  --admin-canvas: #f4f2f8;
  --admin-border: #e8e4f0;
  --admin-border-strong: #d5cee3;
  --admin-ink: #1a1425;
  --admin-muted: #6b5f7d;
  --admin-accent: #4d18c0;
  --admin-accent-soft: #f2ecf8;
  --admin-accent-hover: #3a1296;
  --admin-success: #1f7a4d;
  --admin-success-soft: #e8f5ee;
  --admin-warning: #b36b00;
  --admin-warning-soft: #fff5e0;
  --admin-danger: #a61e4d;
  --admin-danger-soft: #fde8ef;
  --admin-radius-sm: 6px;
  --admin-radius: 10px;
  --admin-radius-lg: 14px;
  --admin-shadow-sm: 0 1px 2px rgba(26, 20, 37, 0.04);
  --admin-shadow: 0 4px 16px rgba(26, 20, 37, 0.06);
  --admin-shadow-lg: 0 12px 40px rgba(26, 20, 37, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.7;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
}

.header-top-bar {
  min-height: var(--header-top-height);
  padding: 0 clamp(20px, 5vw, 64px);
  color: #fff;
  background: var(--purple);
}

.header-top-shell,
.header-main-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.header-top-shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: var(--header-top-height);
  font-size: 14px;
  font-weight: 700;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 100%;
  color: #fff;
}

.topbar-link:hover {
  color: rgba(255, 255, 255, 0.76);
}

.topbar-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.topbar-icon-button {
  justify-content: center;
  align-items: center;
  width: 20px;
  min-width: 20px;
  border-radius: 999px;
}

.topbar-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-language {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  z-index: 10;
  min-width: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 18, 48, 0.14);
  transform: translateX(50%);
}

.public-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.public-user-trigger {
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.public-user-trigger:hover {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.22);
}

.public-user-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-user-dropdown {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-start: 0;
  z-index: 12;
  min-width: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(32, 18, 48, 0.14);
}

.public-user-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.public-user-menu-item:hover {
  color: var(--purple);
  background: var(--purple-soft);
}

.public-user-menu-item.is-disabled,
.public-user-menu-item[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}

.public-user-menu-item.is-disabled:hover,
.public-user-menu-item[aria-disabled="true"]:hover {
  color: var(--muted);
  background: transparent;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.language-option:hover {
  color: var(--purple);
  background: var(--purple-soft);
}

.language-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.header-main-bar {
  padding: 0 clamp(12px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(231, 223, 239, 0.9);
  box-shadow: 0 18px 50px rgba(32, 18, 48, 0.08);
  backdrop-filter: blur(16px);
}

.header-main-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-main-height);
  direction: ltr;
}

html[dir="ltr"] .header-main-shell,
html[dir="ltr"] .header-left-cluster {
  flex-direction: row-reverse;
}

.brand-link img {
  width: 138px;
  height: auto;
}

.brand-link {
  align-self: center;
  flex: 0 0 auto;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(26, 20, 37, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0ms linear 220ms;
}

.site-header.nav-open ~ .nav-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(400px, 86vw);
  padding: 0;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(32, 18, 48, 0.18);
  direction: rtl;
  transform: translateX(100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0ms linear 260ms;
}

html[dir="rtl"] .site-nav {
  right: 0;
  left: auto;
  border-right: 0;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(32, 18, 48, 0.18);
  direction: rtl;
  transform: translateX(100%);
}

html[dir="ltr"] .site-nav {
  right: auto;
  left: 0;
  border-right: 1px solid var(--line);
  border-left: 0;
  box-shadow: 24px 0 60px rgba(32, 18, 48, 0.18);
  direction: ltr;
  transform: translateX(-100%);
}

.site-header.nav-open ~ .site-nav {
  transform: translateX(0);
  visibility: visible;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.nav-drawer-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.nav-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nav-drawer-close:hover {
  color: var(--purple);
  background: var(--purple-soft);
  border-color: var(--purple);
}

.nav-drawer-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.nav-drawer-item:hover {
  background: var(--purple-soft);
  border-color: var(--line);
}

.nav-drawer-item-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.nav-drawer-item-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.nav-drawer-group {
  display: grid;
  gap: 6px;
}

.nav-drawer-children,
.nav-drawer-subchildren {
  display: grid;
  gap: 4px;
  margin: 0 28px 6px 14px;
}

.nav-drawer-subchildren {
  margin-right: 18px;
  margin-left: 0;
}

html[dir="ltr"] .nav-drawer-children,
html[dir="ltr"] .nav-drawer-subchildren {
  margin: 0 14px 6px 28px;
}

html[dir="ltr"] .nav-drawer-subchildren {
  margin-right: 0;
  margin-left: 18px;
}

.nav-drawer-branch {
  display: grid;
  gap: 4px;
}

.nav-drawer-child,
.nav-drawer-subchild {
  display: block;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-drawer-subchild {
  font-size: 13px;
  font-weight: 700;
}

.nav-drawer-child:hover,
.nav-drawer-subchild:hover {
  color: var(--purple);
  background: var(--purple-soft);
}

.header-left-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  direction: ltr;
}

.search-button {
  flex: 0 0 auto;
  cursor: default;
}

.register-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 0 18px 0 12px;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(32, 18, 48, 0.14);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.register-button:hover {
  border-color: var(--purple-dark);
  background: var(--purple-dark);
  box-shadow: 0 10px 22px rgba(32, 18, 48, 0.18);
  transform: translateY(-1px);
}

.register-button span {
  position: relative;
  top: -1px;
}

.nav-toggle {
  flex: 0 0 auto;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--purple);
  background: #fff;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.icon-button:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.icon-button.search-button:hover {
  border-color: var(--line);
  background: #fff;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--purple);
}

.hero-section {
  position: relative;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 80px) clamp(48px, 8vw, 92px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 16%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #241036 0%, #5a2d82 58%, #7a4da1 100%);
}

.media-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 70vh, 620px);
  margin-top: calc(var(--header-total-height) * -1);
  color: #fff;
  background: #1f1230;
}

.media-hero-video,
.media-hero-overlay {
  position: absolute;
  inset: 0;
}

.media-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(0.94);
}

.media-hero-overlay {
  background:
    linear-gradient(180deg, rgba(56, 33, 88, 0.24) 0%, rgba(56, 33, 88, 0.14) 32%, rgba(32, 18, 48, 0.38) 100%),
    linear-gradient(90deg, rgba(44, 24, 68, 0.22) 0%, rgba(44, 24, 68, 0.06) 54%, rgba(44, 24, 68, 0.2) 100%);
}

.media-hero-shell {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: min(1180px, 100%);
  min-height: clamp(420px, 70vh, 620px);
  margin: 0 auto;
  padding: calc(var(--header-total-height) + 44px) clamp(20px, 6vw, 80px) 56px;
}

.media-hero-copy {
  max-width: 620px;
}

.media-hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.media-hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}

.media-hero-copy p:not(.eyebrow) {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-inner {
  display: grid;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
}

.hero-carousel {
  --hero-slide-width: min(760px, 68vw);
  --hero-slide-gap: clamp(18px, 2vw, 28px);
  --hero-side-shift: calc((var(--hero-slide-width) * 0.43) + var(--hero-slide-gap));
  position: relative;
  overflow: hidden;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-carousel-track {
  position: relative;
  height: clamp(360px, 34vw, 440px);
}

.hero-empty-state {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(77, 24, 192, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 10, 27, 0.08);
  text-align: center;
}

.hero-empty-state.is-error {
  border-color: rgba(147, 30, 77, 0.2);
}

.hero-empty-state h2 {
  margin: 10px 0 12px;
}

.hero-empty-state p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--hero-slide-width);
  height: 100%;
  opacity: 0;
  transform: translateX(calc(-50% + (var(--hero-side-shift) * 1.3))) scale(0.84);
  transform-origin: center center;
  transition:
    opacity 320ms ease,
    transform 420ms ease,
    filter 320ms ease,
    z-index 0ms linear 220ms;
  filter: saturate(0.84);
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-current {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  filter: none;
  pointer-events: auto;
  z-index: 4;
}

.hero-slide.is-prev {
  opacity: 0.82;
  transform: translateX(calc(-50% - var(--hero-side-shift))) scale(0.88);
  filter: saturate(0.92);
  z-index: 3;
}

.hero-slide.is-next {
  opacity: 0.82;
  transform: translateX(calc(-50% + var(--hero-side-shift))) scale(0.88);
  filter: saturate(0.92);
  z-index: 3;
}

.hero-slide.is-hidden-prev {
  opacity: 0;
  transform: translateX(calc(-50% - (var(--hero-side-shift) * 1.55))) scale(0.78);
  z-index: 1;
}

.hero-slide.is-hidden-next {
  opacity: 0;
  transform: translateX(calc(-50% + (var(--hero-side-shift) * 1.55))) scale(0.78);
  z-index: 1;
}

.hero-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.hero-news {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.hero-news .hero-card {
  width: 100%;
}

.hero-card-link {
  color: inherit;
  text-decoration: none;
}

.hero-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(32, 18, 48, 0.18);
}

.hero-card-link:hover .hero-card-cta {
  background: rgba(255, 255, 255, 0.18);
}

.hero-centered {
  max-width: 880px;
  text-align: center;
}

.hero-centered .hero-media {
  display: none;
}

.hero-symbol {
  width: 54px;
  margin-bottom: 18px;
}

.hero-centered .hero-symbol {
  margin-right: auto;
  margin-left: auto;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-centered .hero-copy p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.hero-media {
  min-height: 360px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media > img,
.hero-media > video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-card {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #1b1029;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.hero-card.is-text-only {
  display: grid;
  align-content: end;
  padding: 22px 22px 24px;
  background: linear-gradient(135deg, rgba(36, 16, 54, 0.96) 0%, rgba(90, 45, 130, 0.96) 58%, rgba(122, 77, 161, 0.96) 100%);
}

.hero-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card-media img,
.hero-card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 10, 27, 0.08) 0%, rgba(17, 10, 27, 0.2) 40%, rgba(17, 10, 27, 0.82) 100%);
}

.hero-card-content {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 22px 24px;
}

.hero-card-title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.25;
}

.hero-card-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-card-excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.7;
}

.hero-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.hero-card-cta:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1180px;
  margin: 28px auto 0;
}

.hero-controls button {
  min-width: 92px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-controls-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.section,
.value-section,
.trust-section,
.final-cta {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 80px);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.compact {
  margin: 0 0 24px;
  text-align: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.tile,
.steps article,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tile {
  min-height: 260px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(40, 25, 55, 0.08);
}

.tile span {
  color: var(--purple);
  font-weight: 900;
}

.tile p,
.steps p,
.trust-section p,
.final-cta p,
.login-panel p {
  margin: 0;
  color: var(--muted);
}

.value-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
  background: var(--surface-soft);
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list p {
  margin: 0;
  border-right: 4px solid var(--purple);
  border-radius: 8px;
  padding: 18px 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(40, 25, 55, 0.06);
}

html[dir="ltr"] .value-list p {
  border-right: 0;
  border-left: 4px solid var(--purple);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.steps article {
  min-height: 180px;
  padding: 26px;
}

.steps strong {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--purple);
  font-size: 24px;
}

.trust-section {
  max-width: none;
  color: #fff;
  background: #1f1230;
  text-align: center;
}

.trust-section .eyebrow {
  color: #d9c9ea;
}

.trust-section p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.final-cta {
  color: #fff;
  background: linear-gradient(135deg, #5a2d82 0%, #2f1746 100%);
  text-align: center;
}

.final-cta p {
  max-width: 720px;
  margin: 16px auto 26px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.76);
  background: #160d22;
}

.site-footer img {
  width: 150px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--admin-accent);
  border-radius: var(--admin-radius-sm);
  padding: 8px 16px;
  color: #fff;
  background: var(--admin-accent);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--admin-accent-hover);
  border-color: var(--admin-accent-hover);
  box-shadow: 0 4px 12px rgba(77, 24, 192, 0.2);
}

.button-light {
  border-color: #fff;
  color: var(--admin-accent);
  background: #fff;
}

.button-light:hover {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.button-secondary {
  color: var(--admin-accent);
  background: #fff;
  border-color: var(--admin-border-strong);
}

.button-secondary:hover {
  color: #fff;
  background: var(--admin-accent);
  border-color: var(--admin-accent);
}

.assessment-experience-entry {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--surface-soft);
}

.assessment-experience-card {
  width: min(640px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assessment-experience-logo {
  display: block;
  width: 170px;
  margin: 0 auto 24px;
}

.assessment-experience-card h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  text-align: center;
}

.assessment-experience-eyebrow {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.assessment-experience-body {
  color: var(--muted);
  line-height: 1.8;
  text-align: right;
}

.assessment-experience-body p {
  margin: 0 0 12px;
}

.assessment-experience-body p:last-child {
  margin-bottom: 0;
}

.assessment-experience-ai-hint {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(112, 74, 170, 0.18);
  border-radius: 8px;
  background: rgba(112, 74, 170, 0.06);
}

.assessment-experience-ai-hint-button {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(112, 74, 170, 0.22);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--purple-dark);
  background: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(112, 74, 170, 0.1);
  opacity: 1;
}

.assessment-experience-ai-hint-button img {
  width: 22px;
  height: 22px;
}

.assessment-experience-ai-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  text-align: right;
}

html[dir="ltr"] .assessment-experience-card {
  direction: ltr;
}

html[dir="ltr"] .assessment-experience-body,
html[dir="ltr"] .assessment-experience-ai-hint p {
  text-align: left;
  direction: ltr;
  unicode-bidi: plaintext;
}

.assessment-experience-post-submit-cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.assessment-experience-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.assessment-experience-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.assessment-experience-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.assessment-experience-dot-active {
  background: var(--purple);
}

.questionnaires-page {
  min-height: 100vh;
  padding: 48px 24px;
  background: var(--surface-soft);
}

.questionnaires-container {
  max-width: 960px;
  margin: 0 auto;
}

.questionnaires-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  text-align: start;
}

.questionnaires-intro {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  text-align: start;
}

.questionnaires-section-heading {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--purple);
  text-align: start;
}

.questionnaires-section {
  display: grid;
  gap: 20px;
}

.questionnaires-section + .questionnaires-section {
  margin-top: 36px;
}

.questionnaires-section-description,
.questionnaires-subsection-description {
  margin: -8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: start;
}

.questionnaires-subsection {
  display: grid;
  gap: 16px;
  margin-top: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.questionnaires-subsection-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: start;
}

.questionnaires-cards {
  display: grid;
  gap: 20px;
}

.questionnaires-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: start;
}

.questionnaires-card-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
}

.questionnaires-card-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.questionnaires-card-description {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.questionnaires-card-cta {
  display: inline-flex;
}

.questionnaires-card-cta-disabled {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
}

.questionnaires-status {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.questionnaires-status-error {
  color: var(--admin-danger);
}

.questionnaires-tabs,
.questionnaires-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.questionnaires-subtabs {
  margin: -14px 0 28px;
}

.questionnaires-tab {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.questionnaires-tab:hover {
  background: var(--purple-soft);
  border-color: var(--purple-soft);
}

.questionnaires-tab.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.assessment-experience-loading,
.assessment-experience-error {
  text-align: center;
}

.assessment-experience-error {
  color: var(--admin-danger);
}

.public-login-entry {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--surface-soft);
}

.public-login-panel {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.login-google-step {
  gap: 14px;
}

.login-google-step .register-google-button-wrap {
  margin-top: 8px;
}

.login-unregistered-state {
  width: min(560px, 100%);
  margin: 0 auto;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.register-entry {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-top-height));
  padding: clamp(28px, 5vw, 48px) 20px 32px;
  background:
    radial-gradient(circle at top right, rgba(122, 77, 161, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(77, 24, 192, 0.08), transparent 34%);
  background-position: top right, bottom left, center;
  background-size: auto, auto;
  background-repeat: no-repeat, no-repeat;
}

.register-background {
  position: fixed;
  top: var(--header-top-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.register-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(245, 240, 251, 0.24) 100%);
  pointer-events: none;
}

.register-background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.register-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.register-header {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.register-header h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
}

.register-top-shell {
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.register-card {
  display: grid;
  gap: 18px;
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(247, 242, 252, 0.28) 100%);
  box-shadow: 0 14px 30px rgba(32, 18, 48, 0.12);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.register-card:hover,
.register-card.is-selected {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(32, 18, 48, 0.16);
}

.register-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: var(--purple);
  background: rgba(77, 24, 192, 0.08);
}

.register-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.register-card-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.register-card-copy h2 {
  font-size: 28px;
}

.register-card-copy p {
  margin: 0;
  color: rgba(46, 31, 66, 0.8);
  font-size: 16px;
}

.register-card-cta {
  justify-self: start;
  margin-top: auto;
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.register-card-cta:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.register-login-hint {
  margin: 24px 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.register-login-hint a {
  color: var(--purple);
}

.register-flow {
  display: grid;
  gap: 18px;
}

.register-flow-header {
  margin-bottom: 8px;
}

.register-flow-copy {
  margin: 12px auto 0;
  max-width: 720px;
  color: rgba(46, 31, 66, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.register-backlink {
  display: inline-flex;
  justify-self: start;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 800;
}

.register-status {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.register-status-error {
  color: #5b1230;
  background: rgba(255, 232, 239, 0.92);
}

.register-status-success {
  color: #164a28;
  background: rgba(232, 250, 238, 0.92);
}

.register-flow-card {
  width: min(860px, 100%);
  margin: 0 auto;
}

.register-google-step {
  justify-items: start;
}

.register-google-button-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.register-google-button-slot {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

.register-google-hint {
  margin: 0;
  text-align: center;
  color: rgba(46, 31, 66, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.register-details-form {
  display: grid;
}

.register-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.register-form-field {
  display: grid;
  gap: 8px;
  color: #2b183f;
  font-weight: 700;
}

.register-form-field input,
.register-form-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(77, 24, 192, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  color: #241036;
  background: rgba(255, 255, 255, 0.9);
}

.register-form-field input.is-invalid,
.register-form-field select.is-invalid {
  border-color: #b42318;
  background: rgba(255, 244, 245, 0.96);
}

.register-form-field input[readonly] {
  color: rgba(36, 16, 54, 0.74);
  background: rgba(247, 242, 252, 0.8);
}

.register-field-error {
  color: #8d1d2c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.register-readonly-email {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(77, 24, 192, 0.16);
  border-radius: 8px;
  color: #2b183f;
  background: rgba(255, 255, 255, 0.46);
}

.register-readonly-email span {
  color: rgba(46, 31, 66, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.register-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b183f;
  font-weight: 700;
}

.register-checkbox-row input {
  width: auto;
}

.register-form-actions {
  display: flex;
  justify-content: flex-start;
}

.news-page {
  min-height: 100vh;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 6vw, 80px);
  background: var(--surface-soft);
}

.news-article {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(32, 18, 48, 0.08);
}

.news-backlink {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--purple);
  font-weight: 800;
}

.news-article h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
}

.news-media {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #1f1230;
}

.news-media img,
.news-media video {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.news-copy {
  color: var(--ink);
  font-size: 18px;
}

.news-copy p,
.news-empty p {
  margin: 0;
  color: var(--muted);
}

.login-panel {
  width: min(480px, 100%);
  padding: 34px;
  box-shadow: var(--shadow);
}

.login-panel img {
  width: 170px;
  margin-bottom: 34px;
}

.login-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
}

.login-panel .button {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-row input {
  width: auto;
  accent-color: var(--admin-accent);
}

.form-actions,
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.admin-upload-row label {
  min-width: min(420px, 100%);
}

@media (max-width: 900px) {
  .site-footer,
  .login-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  :root {
    --header-top-height: 40px;
    --header-main-height: 56px;
  }

  .header-top-bar,
  .header-main-bar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .header-top-shell {
    gap: 16px;
    font-size: 13px;
  }

  .public-user-dropdown {
    min-width: min(176px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .header-main-shell {
    gap: 8px;
  }

  .brand-link img {
    width: auto;
    height: 54px;
  }

  .header-left-cluster {
    gap: 8px;
  }

  .public-login-entry {
    place-items: start center;
    padding: 18px 16px 28px;
  }

  .public-login-panel {
    gap: 14px;
  }

  .login-panel {
    width: min(440px, 100%);
    padding: 26px 22px;
  }

  .login-panel img {
    width: 148px;
    margin-bottom: 18px;
  }

  .login-panel h1 {
    margin-bottom: 10px;
    font-size: clamp(26px, 5.5vw, 34px);
  }

  .login-panel p {
    font-size: 15px;
    line-height: 1.65;
  }

  .login-google-step {
    padding: 18px;
  }

  .login-google-step .register-card-copy {
    gap: 8px;
  }

  .login-google-step .register-card-copy h2 {
    font-size: 22px;
  }

  .login-google-step .register-card-copy p {
    font-size: 15px;
  }

  .login-google-step .register-google-button-wrap {
    margin-top: 4px;
  }

  .login-google-step .register-google-button-slot {
    min-height: 40px;
  }

  .icon-button,
  .nav-toggle {
    width: 34px;
    height: 34px;
  }

  .register-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .nav-toggle span {
    width: 16px;
  }

  .hero-split,
  .value-section {
    grid-template-columns: 1fr;
  }

  .media-hero,
  .media-hero-shell {
    min-height: 390px;
  }

  .media-hero-shell {
    width: 100%;
    padding-top: calc(var(--header-total-height) + 24px);
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 34px;
  }

  .media-hero-copy {
    width: min(100%, 440px);
    max-width: 100%;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-carousel {
    --hero-slide-width: 100%;
    --hero-slide-gap: 0px;
    --hero-side-shift: 0px;
    width: 100%;
    overflow: visible;
  }

  .hero-carousel-track {
    height: auto;
  }

  .hero-slide {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
  }

  .hero-slide.is-prev,
  .hero-slide.is-next,
  .hero-slide.is-hidden-prev,
  .hero-slide.is-hidden-next {
    display: none;
  }

  .hero-slide.is-current {
    transform: none;
  }

  .hero-card,
  .hero-card-media,
  .hero-card-overlay {
    min-height: 330px;
  }

  .hero-card {
    height: auto;
  }

  .hero-card-overlay {
    position: relative;
    inset: auto;
  }

  .hero-card-overlay {
    padding: 18px;
  }

  .hero-card-title {
    font-size: 21px;
  }

  .hero-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-card-cta {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero-controls {
    gap: 10px;
    margin-top: 18px;
  }

  .hero-controls button {
    min-width: 76px;
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
  }

  .tile-grid,
  .steps,
  .form-grid,
  .register-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    width: 100%;
  }

  .register-card {
    min-height: 0;
    padding: 22px;
  }

  .register-card-copy h2 {
    font-size: 24px;
  }

  .register-card-cta {
    justify-self: stretch;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    text-align: center;
    white-space: normal;
  }

  .register-form-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  :root {
    --header-main-height: 52px;
  }

  .register-entry {
    padding: 26px 14px 24px;
  }

  .register-top-shell {
    gap: 12px;
  }

  .register-top-shell .topbar-link {
    white-space: nowrap;
  }

  .register-background {
    position: absolute;
    top: 0;
  }

  .register-shell,
  .register-header,
  .register-grid,
  .register-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .register-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .register-card {
    width: 100%;
  }

  .public-user-menu {
    position: static;
  }

  .public-user-dropdown {
    position: fixed;
    inset-block-start: calc(var(--header-top-height, 40px) + 8px);
    inset-inline: 12px;
    min-width: 0;
    max-width: none;
    width: auto;
  }

  .register-card-copy p {
    font-size: 14px;
  }

  .register-flow-copy {
    font-size: 15px;
    line-height: 1.7;
  }

  .public-login-entry {
    min-height: 100svh;
    place-items: start stretch;
    padding: 12px 12px 20px;
  }

  .public-login-panel,
  .login-panel {
    justify-items: stretch;
    text-align: right;
  }

  .login-panel {
    width: 100%;
    padding: 20px 16px 18px;
    gap: 12px;
  }

  .login-panel img {
    width: 128px;
    margin: 0 auto 10px;
  }

  .login-panel h1 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.25;
  }

  .login-panel p {
    font-size: 14px;
    line-height: 1.6;
  }

  .login-google-step {
    gap: 12px;
    padding: 16px 14px;
  }

  .login-google-step .register-card-copy {
    gap: 6px;
  }

  .login-google-step .register-card-copy h2 {
    font-size: 20px;
  }

  .login-google-step .register-card-copy p,
  .register-google-hint,
  .register-login-hint {
    font-size: 13px;
    line-height: 1.6;
  }

  .login-google-step .register-google-button-wrap {
    margin-top: 2px;
  }

  .login-google-step .register-google-button-slot {
    min-height: 40px;
  }

  .login-actions .button,
  .login-actions .button-secondary {
    width: 100%;
  }

  .media-hero-shell {
    justify-content: center;
  }

  .media-hero-copy {
    margin: 0 auto;
    text-align: center;
    width: min(100%, 290px);
  }

  .brand-link img {
    width: auto;
    height: 46px;
  }

  .header-left-cluster {
    gap: 5px;
  }

  .icon-button,
  .nav-toggle {
    width: 28px;
    height: 28px;
  }

  .register-button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .register-button span {
    display: inline;
  }

  .nav-toggle span {
    width: 14px;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-drawer-item-title {
    font-size: 14px;
  }

  .hero-section,
  .section,
  .value-section,
  .trust-section,
  .final-cta {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-carousel {
    --hero-slide-width: 100%;
    --hero-slide-gap: 0px;
    --hero-side-shift: 0px;
    width: 100%;
  }

  .hero-carousel-track {
    height: auto;
  }

  .media-hero-copy h1 {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.16;
  }

  .media-hero-copy p:not(.eyebrow) {
    margin: 14px 0 20px;
    font-size: 13px;
  }

  .media-hero-copy .button {
    margin-right: auto;
    margin-left: auto;
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-card.is-text-only {
    padding: 16px;
  }

  .hero-card-overlay {
    inset: auto;
    min-height: 52%;
    gap: 6px;
    align-content: start;
    padding: 18px 16px 16px;
  }

  .hero-card,
  .hero-card-media,
  .hero-card-overlay {
    min-height: 324px;
  }

  .hero-card-title {
    font-size: 18px;
    line-height: 1.15;
  }

  .hero-card-excerpt {
    display: block;
    overflow: visible;
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: initial;
  }

  .hero-card-cta {
    min-height: 30px;
    margin-top: 0;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero-controls {
    gap: 8px;
    margin-top: 14px;
  }

  .hero-controls button {
    min-width: 64px;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero-controls-counter {
    min-width: 72px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .login-panel,
  .public-login-entry {
    padding: 18px;
  }

  .news-page {
    padding: 24px 18px;
  }

  .news-article {
    padding: 20px 18px;
  }

  .news-copy {
    font-size: 16px;
  }
}

.runner-challenge-bar {
  --challenge-left-dark: #7a3d6b;
  --challenge-left-light: #dfa8bc;
  --challenge-right-cyan: #4db8d9;
  --challenge-right-lavender: #8880cc;
  --challenge-center: #fff8e8;
  --challenge-ink: #1f1230;
  --challenge-shell-gradient: linear-gradient(90deg, rgba(122, 61, 107, 0.1), transparent 48%, rgba(77, 184, 217, 0.1));
  --challenge-shell-bg: #ffffff;
  --challenge-shadow: 0 22px 54px rgba(16, 35, 80, 0.16);
  --challenge-center-glow: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 45%);
  --challenge-center-bg: linear-gradient(180deg, #fffdf6 0%, var(--challenge-center) 100%);
  --challenge-center-shadow: 0 16px 34px rgba(31, 18, 48, 0.16), inset 0 0 0 4px rgba(255, 255, 255, 0.62);
  --challenge-icon-bg: rgba(255, 190, 64, 0.22);
  --challenge-icon-color: currentColor;
  --challenge-state-color: rgba(31, 18, 48, 0.58);
  --challenge-paused-center-bg: linear-gradient(180deg, #ffffff 0%, #f4f0eb 100%);
  --challenge-center-width: clamp(132px, 18vw, 172px);
  --challenge-center-overlap: clamp(34px, 5vw, 54px);
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(58px, var(--challenge-completed-track, 1fr))
    var(--challenge-center-width)
    minmax(58px, var(--challenge-remaining-track, 1fr));
  align-items: center;
  width: min(920px, 100%);
  min-height: 74px;
  margin: 0 auto;
  border: 1px solid rgba(31, 18, 48, 0.12);
  border-radius: 999px;
  padding: 7px;
  background:
    var(--challenge-shell-gradient),
    var(--challenge-shell-bg);
  box-shadow: var(--challenge-shadow);
  direction: ltr;
  overflow: visible;
  isolation: isolate;
}

.runner-challenge-official {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(760px, 100%);
  min-height: 0;
  border-color: rgba(77, 24, 192, 0.12);
  border-radius: 18px;
  padding: clamp(12px, 2vw, 16px);
  color: var(--purple-dark);
  background:
    linear-gradient(135deg, rgba(77, 24, 192, 0.06) 0%, transparent 62%),
    #ffffff;
  box-shadow: 0 14px 34px rgba(47, 23, 70, 0.08);
  direction: rtl;
  overflow: hidden;
}

.runner-challenge-official-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.runner-challenge-official-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.runner-challenge-official-title {
  display: block;
  color: var(--purple-dark);
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 950;
  line-height: 1;
}

.runner-challenge-official-percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  border: 1px solid rgba(77, 24, 192, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--purple);
  background: rgba(242, 236, 248, 0.74);
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 950;
  line-height: 1;
}

.runner-challenge-official-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--purple-soft);
  direction: ltr;
}

.runner-challenge-official-fill {
  display: block;
  width: var(--challenge-completed-percent, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-dark) 0%, var(--purple) 58%, #7a4da1 100%);
}

.runner-challenge-side {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  overflow: hidden;
  padding: 0 clamp(14px, 3vw, 24px);
  color: #fff;
  direction: rtl;
  z-index: 1;
}

.runner-challenge-side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.98;
}

.runner-challenge-side-remaining {
  border-radius: 12px 999px 999px 12px;
  background: linear-gradient(90deg, var(--challenge-right-cyan) 0%, var(--challenge-right-lavender) 100%);
  margin-left: calc(var(--challenge-center-overlap) * -1);
  padding-left: calc(var(--challenge-center-overlap) + clamp(10px, 2vw, 18px));
}

.runner-challenge-side-completed {
  border-radius: 999px 12px 12px 999px;
  background: linear-gradient(90deg, var(--challenge-left-dark) 0%, var(--challenge-left-light) 100%);
  margin-right: calc(var(--challenge-center-overlap) * -1);
  padding-right: calc(var(--challenge-center-overlap) + clamp(10px, 2vw, 18px));
}

.runner-challenge-side-remaining::before {
  right: 0;
  width: var(--challenge-side-ratio, 100%);
  background: radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.34), transparent 26%);
}

.runner-challenge-side-completed::before {
  left: 0;
  width: var(--challenge-side-ratio, 0%);
  background: radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.3), transparent 28%);
}

.runner-challenge-value {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.runner-challenge-label {
  min-width: 0;
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 900;
  line-height: 1.25;
  opacity: 0.9;
  text-transform: uppercase;
}

.runner-challenge-center {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "icon time"
    "state state";
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  width: var(--challenge-center-width);
  min-height: 72px;
  margin: -8px 0;
  border: 1px solid rgba(31, 18, 48, 0.16);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--challenge-ink);
  background:
    var(--challenge-center-glow),
    var(--challenge-center-bg);
  box-shadow: var(--challenge-center-shadow);
  direction: rtl;
  justify-self: center;
}

.runner-challenge-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--challenge-icon-color);
  background: var(--challenge-icon-bg);
  font-size: 18px;
}

.runner-challenge-center.no-icon {
  grid-template-columns: 1fr;
  grid-template-areas:
    "time"
    "state";
  width: clamp(92px, 13vw, 126px);
  min-height: 62px;
  padding: 8px 14px;
}

[data-theme-key="gen_z"] {
  --challenge-center-width: clamp(98px, 12vw, 122px);
  --challenge-center-overlap: clamp(24px, 3.5vw, 38px);
}

[data-theme-key="gen_z"] .runner-challenge-center.no-icon {
  width: clamp(76px, 8.5vw, 92px);
  min-height: clamp(54px, 6vw, 62px);
  padding: 6px 8px;
  justify-items: center;
  align-content: center;
}

[data-theme-key="gen_z"] .runner-challenge-time {
  font-size: clamp(16px, 2.2vw, 22px);
}

[data-theme-key="gen_z"] .runner-challenge-state {
  margin-top: 2px;
  font-size: 8px;
}

/* TikTok theme emoji sizing */
[data-theme-key="tiktok_duel"] .runner-challenge-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.runner-challenge-time {
  grid-area: time;
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
}

.runner-challenge-state {
  grid-area: state;
  margin-top: 3px;
  color: var(--challenge-state-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.runner-challenge-bar.is-paused {
  filter: saturate(0.78);
}

.runner-challenge-bar.is-paused .runner-challenge-center {
  background: var(--challenge-paused-center-bg);
}

@media (max-width: 640px) {
  .runner-challenge-bar {
    --challenge-center-width: clamp(95px, 26vw, 130px);
    --challenge-center-overlap: clamp(16px, 3.5vw, 30px);
    grid-template-columns:
      minmax(38px, var(--challenge-completed-track, 1fr))
      var(--challenge-center-width)
      minmax(38px, var(--challenge-remaining-track, 1fr));
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    padding: 3px;
  }

  .runner-challenge-side {
    min-height: 36px;
    border-radius: 999px;
    padding: 0 8px;
    gap: 6px;
  }

  .runner-challenge-side-remaining {
    margin-left: calc(var(--challenge-center-overlap) * -1);
    padding-left: calc(var(--challenge-center-overlap) + 6px);
  }

  .runner-challenge-side-completed {
    margin-right: calc(var(--challenge-center-overlap) * -1);
    padding-right: calc(var(--challenge-center-overlap) + 6px);
  }

  .runner-challenge-label {
    display: none;
  }

  .runner-challenge-value {
    font-size: clamp(17px, 4.5vw, 24px);
  }

  .runner-challenge-center {
    order: 0;
    min-height: 36px;
    margin: -3px 0;
    padding: 3px 8px;
    column-gap: 4px;
  }

  .runner-challenge-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .runner-challenge-center.no-icon {
    min-height: 32px;
    padding: 3px 6px;
  }

  [data-theme-key="gen_z"].runner-challenge-bar {
    --challenge-center-width: clamp(72px, 20vw, 90px);
    --challenge-center-overlap: clamp(12px, 3vw, 22px);
  }

  [data-theme-key="gen_z"] .runner-challenge-center.no-icon {
    width: clamp(56px, 16vw, 68px);
    min-height: clamp(42px, 13vw, 54px);
    padding: 2px 4px;
  }

  [data-theme-key="gen_z"] .runner-challenge-time {
    font-size: clamp(12px, 3.4vw, 15px);
  }

  [data-theme-key="gen_z"] .runner-challenge-state {
    font-size: 6px;
    margin-top: 1px;
  }

  [data-theme-key="tiktok_duel"] .runner-challenge-icon {
    width: 36px;
    height: 36px;
  }

  .runner-challenge-time {
    font-size: clamp(14px, 4vw, 18px);
  }

  .runner-challenge-state {
    font-size: 7px;
    margin-top: 1px;
  }

  .runner-challenge-official-top {
    display: grid;
    align-items: start;
  }

  [data-theme-key="delta_official"] .runner-challenge-official {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 14px;
    min-height: 0;
  }

  [data-theme-key="delta_official"] .runner-challenge-official-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
  }

  [data-theme-key="delta_official"] .runner-challenge-official-top > div {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  [data-theme-key="delta_official"] .runner-challenge-official-kicker {
    display: none;
  }

  [data-theme-key="delta_official"] .runner-challenge-official-title {
    font-size: 16px;
    font-weight: 950;
    display: inline;
    line-height: 1;
  }

  [data-theme-key="delta_official"] .runner-challenge-official-percent {
    min-width: auto;
    font-size: 13px;
    padding: 2px 10px;
    margin-right: auto;
    line-height: 1.3;
  }

  [data-theme-key="delta_official"] .runner-challenge-official-track {
    width: 100%;
    height: 4px;
  }
}

.runner-response-appearance-modern {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  margin: 0 auto;
  direction: rtl;
  overflow: hidden;
}

.runner-response-appearance-modern.is-helpme-open {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  max-height: calc(100dvh - 32px);
}

@media (min-width: 761px) {
  .runner-response-appearance-modern {
    min-height: min(720px, calc(100vh - 40px));
  }

  .runner-response-appearance-modern.is-helpme-open {
    min-height: min(720px, calc(100dvh - 40px));
  }
}

.response-modern-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(77, 24, 192, 0.12);
  border-radius: 24px;
  padding: clamp(18px, 4vw, 28px);
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 24, 192, 0.08), transparent 32%),
    #fff;
  box-shadow: 0 20px 54px rgba(47, 23, 70, 0.08);
}

.response-modern-header.has-scale-info {
  padding-left: clamp(58px, 8vw, 76px);
}

.response-modern-stage {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 12px;
  font-weight: 900;
}

.response-modern-header h1 {
  margin: 12px 0 8px;
  color: var(--purple-dark);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
}

.response-modern-header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2.3vw, 19px);
  font-weight: 700;
}

.response-modern-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(77, 24, 192, 0.1);
  padding-top: 16px;
}

.response-modern-legend-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(77, 24, 192, 0.08);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95)),
    var(--response-option-soft-color);
  font-size: 13px;
  font-weight: 900;
}

/* Compact Graded Legend (≤5 options with rotating labels) */
.response-compact-legend {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
  border-top: 1px solid rgba(77, 24, 192, 0.1);
  padding-top: 14px;
  padding-bottom: 6px;
}

.response-compact-legend-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 120px;
}

.response-compact-legend-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border: 2px solid var(--response-option-color);
  border-radius: 999px;
  background: var(--response-option-soft-color);
  flex-shrink: 0;
}

.response-compact-legend-label {
  display: block;
  color: var(--ink);
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 700;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}

.response-modern-items {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-left: 4px;
}

.runner-response-appearance-modern.is-helpme-open .response-modern-items {
  align-content: start;
  scroll-padding-block: 12px 24px;
  padding: 2px 4px clamp(14px, 3vw, 24px);
}

.response-modern-item-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(77, 24, 192, 0.1);
  border-radius: 24px;
  padding: clamp(16px, 3vw, 24px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(47, 23, 70, 0.07);
}

.response-modern-item-card-compact {
  gap: 12px;
  padding: clamp(14px, 2.5vw, 18px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px rgba(47, 23, 70, 0.04);
}

.response-modern-item-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 3vw, 26px);
  line-height: 1.45;
}

.response-modern-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 3vw, 22px);
}

.response-modern-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  text-align: start;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.response-modern-option:hover,
.response-modern-option:focus-visible {
  box-shadow: 0 10px 24px rgba(47, 23, 70, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.response-modern-option.is-selected {
  background: var(--response-option-soft-color);
  box-shadow: 0 12px 28px rgba(47, 23, 70, 0.09);
}

.response-modern-option-circle {
  position: relative;
  display: inline-flex;
  width: 26px;
  min-width: 26px;
  height: 26px;
  border: 2px solid var(--response-option-color);
  border-radius: 999px;
  background: var(--response-option-soft-color);
}

.response-modern-option-circle::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 8px;
  display: none;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.response-modern-option.is-selected .response-modern-option-circle {
  border-color: var(--response-option-color);
  background: var(--response-option-color);
}

.response-modern-option.is-selected .response-modern-option-circle::after {
  display: block;
}

.response-modern-option-label {
  display: none;
}

.response-modern-compact-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
  padding-top: 4px;
}

.response-modern-compact-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.response-modern-compact-option:hover,
.response-modern-compact-option:focus-visible {
  box-shadow: 0 8px 20px rgba(47, 23, 70, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.response-modern-compact-option.is-selected {
  background: var(--response-option-soft-color);
  box-shadow: 0 10px 24px rgba(47, 23, 70, 0.09);
}

.response-modern-compact-option-circle {
  position: relative;
  display: inline-flex;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border: 2px solid var(--response-option-color);
  border-radius: 999px;
  background: var(--response-option-soft-color);
}

.response-modern-compact-option-circle::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 7px;
  display: none;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.response-modern-compact-option.is-selected .response-modern-compact-option-circle {
  border-color: var(--response-option-color);
  background: var(--response-option-color);
}

.response-modern-compact-option.is-selected .response-modern-compact-option-circle::after {
  display: block;
}

.response-modern-text-options {
  display: grid;
  gap: 10px;
}

.response-modern-text-option {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid rgba(77, 24, 192, 0.12);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(15px, 2.5vw, 17px);
  font-weight: 900;
  text-align: start;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.response-modern-text-option:hover,
.response-modern-text-option:focus-visible {
  outline: none;
  border-color: var(--response-option-color);
}

.response-modern-text-option.is-selected {
  background: var(--response-option-soft-color);
  border-color: var(--response-option-color);
}

.response-modern-center-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 900;
  text-align: center;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  border: 1px solid rgba(77, 24, 192, 0.15);
  color: var(--purple);
  background: rgba(77, 24, 192, 0.06);
  min-height: 36px;
  white-space: nowrap;
}

.response-helpme-trigger {
  cursor: pointer;
}

.response-helpme-trigger:hover,
.response-helpme-trigger:focus-visible {
  outline: none;
  border-color: rgba(77, 24, 192, 0.28);
  box-shadow: 0 10px 26px rgba(75, 0, 181, 0.1);
}

.response-helpme-trigger:disabled {
  cursor: wait;
  opacity: 0.72;
}

.response-helpme-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.5vw, 8px);
  max-width: 100%;
  direction: ltr;
  line-height: 1;
  white-space: nowrap;
}

.response-helpme-icon {
  display: block;
  width: clamp(26px, 6vw, 34px);
  height: clamp(26px, 6vw, 34px);
  object-fit: contain;
  pointer-events: none;
}

.response-helpme-label {
  display: inline-block;
  min-width: 0;
  font-size: clamp(13px, 2.6vw, 16px);
  font-weight: 950;
}

.response-helpme-target-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(16px, 4vw, 20px);
  height: clamp(16px, 4vw, 20px);
  margin-inline-end: 7px;
  vertical-align: -0.12em;
  opacity: 0.82;
  pointer-events: none;
}

.response-helpme-target-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.response-helpme-panel {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: clamp(10px, 2.6vw, 16px) auto;
  border: 1px solid rgba(122, 20, 200, 0.22);
  border-radius: 22px;
  padding: clamp(14px, 3vw, 18px) clamp(44px, 9vw, 54px) clamp(14px, 3vw, 18px) clamp(16px, 4vw, 22px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(234, 223, 234, 0.46)),
    radial-gradient(circle at 14% 18%, rgba(142, 205, 237, 0.2), transparent 34%),
    radial-gradient(circle at 82% 90%, rgba(245, 190, 184, 0.18), transparent 36%);
  box-shadow: 0 18px 44px rgba(47, 23, 70, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.48) inset;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-wrap: anywhere;
  overflow: visible;
  isolation: isolate;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .response-helpme-panel {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 241, 247, 0.9)),
      radial-gradient(circle at 14% 18%, rgba(142, 205, 237, 0.16), transparent 34%);
  }
}

.response-helpme-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(75, 0, 181, 0.12), rgba(142, 205, 237, 0.1), rgba(193, 100, 147, 0.12));
  opacity: 0.8;
  pointer-events: none;
}

.response-helpme-panel.is-loading,
.response-helpme-panel.is-writing {
  min-height: clamp(132px, 24vh, 210px);
  border-color: rgba(122, 20, 200, 0.28);
  box-shadow: 0 18px 52px rgba(47, 23, 70, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.52) inset;
}

.response-helpme-panel.is-complete {
  border-color: rgba(75, 0, 181, 0.28);
  box-shadow: 0 18px 44px rgba(47, 23, 70, 0.1), 0 0 22px rgba(122, 20, 200, 0.12);
}

.response-helpme-panel.is-complete::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border: 1px solid rgba(122, 20, 200, 0.2);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(122, 20, 200, 0.1), 0 0 22px rgba(142, 205, 237, 0.1) inset;
  pointer-events: none;
}

.response-helpme-content-scroll {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-height: min(34vh, 280px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 4px;
  scrollbar-gutter: stable;
}

.runner-response-appearance.is-helpme-open .response-helpme-content-scroll {
  max-height: min(44vh, 380px);
}

.runner-response-appearance-modern .response-helpme-content-scroll {
  max-height: min(36vh, 320px);
}

.runner-response-appearance-modern.is-helpme-open .response-helpme-content-scroll {
  max-height: min(44vh, 380px);
}

.response-helpme-content-scroll > :last-child {
  margin-bottom: 4px;
}

.response-helpme-intro-block {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 4px;
  border: 1px solid rgba(122, 20, 200, 0.14);
  border-radius: 16px;
  padding: 12px 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 236, 248, 0.7)),
    radial-gradient(circle at 8% 0%, rgba(142, 205, 237, 0.18), transparent 42%);
  box-shadow: 0 8px 18px rgba(47, 23, 70, 0.06), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.response-helpme-panel-target {
  margin: 0;
  color: var(--purple-dark);
  font-size: clamp(14px, 2.6vw, 16px);
  font-weight: 950;
  line-height: 1.55;
}

.response-helpme-content-scroll .response-helpme-written-content + .response-helpme-written-content {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(122, 20, 200, 0.08);
}

.response-helpme-panel-content,
.response-helpme-panel-error {
  margin: 0;
  font-size: clamp(14px, 2.6vw, 16px);
  font-weight: 750;
  line-height: 1.7;
  white-space: pre-wrap;
  user-select: text;
}

.response-helpme-panel-error {
  color: #9f1f2d;
}

.response-helpme-panel-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(77, 24, 192, 0.12);
  border-radius: 999px;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
}

.response-helpme-panel-dismiss:hover,
.response-helpme-panel-dismiss:focus-visible {
  outline: none;
  border-color: rgba(77, 24, 192, 0.28);
  background: #fff;
}

.response-helpme-loading-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  display: grid;
  place-items: center;
  width: min(190px, 48vw);
  max-width: calc(100% - 44px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.72;
  transition: opacity 260ms ease;
}

.response-helpme-panel.is-reduced-motion .response-helpme-loading-visual {
  opacity: 0.34;
  transition: none;
}

.response-helpme-loading-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.78;
  filter: saturate(1.04) drop-shadow(0 18px 34px rgba(75, 0, 181, 0.08));
}

.response-helpme-panel.is-writing .response-helpme-loading-visual {
  opacity: 0.58;
}

.response-helpme-panel.is-complete .response-helpme-loading-visual {
  animation: response-helpme-loader-fade 420ms ease forwards;
}

.response-helpme-written-content {
  position: relative;
}

@keyframes response-helpme-loader-fade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
}

.response-modern-center-btn.is-warning {
  border-color: rgba(212, 50, 66, 0.3);
  max-width: min(360px, 44vw);
  min-height: 44px;
  padding: 10px 14px;
  color: #9f1f2d;
  background: #fff1f2;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  animation: response-required-attention 360ms ease-in-out 2;
}

.runner-response-appearance-modern .response-modern-required {
  display: none;
}

.response-modern-required {
  margin: 0;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  color: #8a4b12;
  background: #fff7ed;
  font-size: 14px;
  font-weight: 900;
}

.response-modern-required.is-attention {
  border-color: rgba(212, 50, 66, 0.42);
  color: #9f1f2d;
  background: #fff1f2;
  font-size: 15px;
  animation: response-required-attention 360ms ease-in-out 2;
}

@keyframes response-required-attention {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }

  35% {
    transform: translateX(5px) scale(1.012);
  }

  70% {
    transform: translateX(-5px) scale(1.012);
  }
}

.response-modern-navigation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
}

.runner-response-appearance-modern.is-helpme-open .response-modern-navigation {
  display: none;
}

.response-modern-nav-button {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 950;
  cursor: pointer;
}

.response-modern-nav-button.primary {
  border-color: var(--purple);
  color: #fff;
  background: var(--purple);
  box-shadow: 0 12px 28px rgba(77, 24, 192, 0.18);
}

.response-modern-nav-button.secondary {
  color: var(--purple);
  background: #fff;
}

.response-modern-nav-button:disabled {
  color: var(--muted);
  background: #f3eef8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.response-ruler {
  position: relative;
  padding: 14px 20px 24px;
  user-select: none;
  -webkit-user-select: none;
}

.response-ruler-track {
  position: relative;
  height: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.response-ruler-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.response-ruler-knob {
  position: absolute;
  top: 50%;
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  transition: left 80ms ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.response-ruler-knob.is-visible {
  display: block;
}

.response-ruler-labels {
  position: relative;
  height: 18px;
  margin-top: 8px;
}

.response-ruler-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
}

button.response-ruler-label {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 2px 0;
  margin: 0;
  cursor: pointer;
  border-radius: 0;
  outline: none;
}

.response-ruler-label.is-selected {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.response-ruler-endpoints {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  gap: 8px;
}

.response-ruler-endpoint {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
  max-width: 45%;
  word-break: break-word;
}

@media (max-width: 760px) {
  .response-modern-options {
    justify-content: space-between;
  }

  .response-modern-navigation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .response-modern-nav-button {
    width: auto;
    min-width: 100px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .assessment-runner-shell:has(.runner-response-appearance-modern) {
    --runner-shell-gap: 4px;
  }

  .assessment-runner-shell:has(.runner-response-appearance-modern) .assessment-runner-challenge {
    --runner-challenge-min-height: 0;
  }

  .runner-response-appearance-modern {
    gap: 12px;
    max-height: calc(100dvh - 85px);
  }

  .runner-response-appearance-modern.is-helpme-open {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .runner-response-appearance-modern .response-modern-header h1 {
    display: none;
  }

  .runner-response-appearance-modern .response-modern-header {
    padding: clamp(12px, 3vw, 16px);
    gap: 12px;
  }

  .runner-response-appearance-modern .response-modern-header.has-scale-info {
    padding-left: 54px;
  }

  .runner-response-appearance-modern .response-modern-header p {
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 700;
    margin: 0;
  }

  .response-modern-option {
    width: auto;
    height: auto;
    flex-direction: column;
    padding: 10px 12px;
    border: 1px solid rgba(77, 24, 192, 0.1);
    border-radius: 16px;
    gap: 6px;
    min-width: 80px;
  }

  .response-modern-option.is-selected {
    background: var(--response-option-soft-color);
  }

  .response-modern-options {
    gap: 10px;
    justify-content: center;
  }

  .response-modern-compact-options {
    gap: clamp(8px, 2vw, 12px);
  }

  .response-modern-compact-option {
    width: 38px;
    height: 38px;
  }

  .response-compact-legend-label {
    font-size: clamp(10px, 1.8vw, 12px);
    max-width: 100px;
  }

  .response-compact-legend-option {
    max-width: 100px;
  }

  .response-compact-legend {
    gap: clamp(8px, 1.5vw, 12px);
    padding-top: 10px;
  }

  .response-modern-item-card {
    gap: 10px;
    padding: clamp(12px, 2.5vw, 16px);
  }

  .response-modern-item-copy h2 {
    font-size: clamp(16px, 3.5vw, 18px);
  }

  .runner-response-appearance-modern .response-modern-navigation {
    display: grid;
    grid-template-columns: 1fr minmax(0, auto) 1fr;
    gap: 6px;
    align-items: center;
  }

  .runner-response-appearance-modern .response-modern-nav-button {
    width: auto;
    min-width: 80px;
    padding: 10px 14px;
    font-size: clamp(13px, 3vw, 15px);
  }

  .runner-response-appearance-modern .response-modern-nav-button.primary {
    justify-self: end;
  }

  .runner-response-appearance-modern .response-modern-nav-button.secondary {
    justify-self: start;
  }

  .response-modern-center-btn {
    font-size: clamp(11px, 2.5vw, 13px);
    min-height: 34px;
    padding: 7px 10px;
  }

  .response-modern-center-btn.is-warning {
    max-width: min(188px, 42vw);
    min-height: 38px;
    padding: 8px 10px;
  }

  .response-helpme-action {
    gap: clamp(4px, 1.4vw, 6px);
  }

  .response-helpme-icon {
    width: clamp(24px, 6vw, 30px);
    height: clamp(24px, 6vw, 30px);
  }

  .response-helpme-label {
    font-size: clamp(12px, 2.7vw, 14px);
  }

  .response-modern-legend {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    padding-top: 12px;
  }

  .response-modern-legend-option {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 16px;
    min-height: 0;
    min-width: 0;
  }

  .response-ruler {
    padding: 10px 16px 20px;
  }

  .response-ruler-track {
    height: 8px;
    border-radius: 4px;
  }

  .response-ruler-knob {
    width: 22px;
    height: 22px;
  }

  .response-ruler-labels {
    height: 16px;
    margin-top: 6px;
  }

  .response-ruler-label {
    font-size: 11px;
  }

  .response-ruler-endpoint {
    font-size: 10px;
  }

  .response-modern-text-option {
    padding: 12px 14px;
    font-size: clamp(14px, 3.5vw, 16px);
  }
}

.runner-response-appearance-quick {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: clamp(8px, 2vw, 12px);
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  margin: 0 auto;
  direction: rtl;
  overflow: hidden;
}

.runner-response-appearance-quick.is-helpme-open {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.response-quick-header {
  display: flex;
  justify-content: flex-start;
  direction: ltr;
}

.response-quick-info-icon {
  display: block;
  width: clamp(28px, 7vw, 36px);
  height: clamp(28px, 7vw, 36px);
  margin-top: clamp(8px, 2vw, 14px);
  object-fit: contain;
  pointer-events: none;
}

.response-quick-card {
  display: grid;
  align-content: center;
  gap: clamp(12px, 3vw, 20px);
  min-height: 0;
  border: 1px solid rgba(77, 24, 192, 0.12);
  border-radius: clamp(22px, 5vw, 34px);
  padding: clamp(16px, 4vw, 28px);
  background: var(--quick-card-background, linear-gradient(135deg, #ffffff 0%, #eadfea 100%));
  box-shadow: 0 22px 56px rgba(47, 23, 70, 0.12);
  transition: background 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

.runner-response-appearance-quick.is-helpme-open .response-quick-card {
  align-content: start;
  max-height: min(680px, calc(100dvh - 48px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.response-quick-item-copy h2 {
  margin: 0;
  color: var(--purple-dark);
  font-size: clamp(18px, 5.1vw, 34px);
  line-height: 1.28;
  text-align: center;
  overflow-wrap: break-word;
}

.response-quick-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 2.2vw, 14px);
  align-items: start;
}

.response-quick-option {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: clamp(8px, 2.4vw, 12px) 6px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.response-quick-option:hover,
.response-quick-option:focus-visible {
  border-color: rgba(77, 24, 192, 0.2);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 18px rgba(47, 23, 70, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.response-quick-option.is-selected {
  border-color: rgba(77, 24, 192, 0.42);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.48), 0 12px 24px rgba(47, 23, 70, 0.12);
}

.response-quick-option-icon {
  display: block;
  width: clamp(42px, 12vw, 70px);
  height: clamp(42px, 12vw, 70px);
  object-fit: contain;
  pointer-events: none;
}

.response-quick-option-label {
  color: var(--purple-dark);
  font-size: clamp(9px, 2.1vw, 11px);
  line-height: 1.18;
  text-align: center;
  overflow-wrap: anywhere;
}

.response-quick-ai-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: clamp(7px, 2vw, 12px);
  max-width: 100%;
  margin: clamp(32px, 5.2vw, 46px) auto clamp(8px, 2vw, 14px);
  color: var(--purple-dark);
  font-size: clamp(18px, 4.8vw, 24px);
  font-weight: 950;
  line-height: 1;
  direction: ltr;
  white-space: nowrap;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.response-quick-ai-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.response-quick-ai-action:hover,
.response-quick-ai-action:focus-visible {
  outline: none;
  filter: drop-shadow(0 10px 18px rgba(75, 0, 181, 0.14));
}

.runner-response-appearance-quick .response-helpme-content-scroll {
  max-height: min(32vh, 300px);
}

.response-quick-ai {
  display: block;
  width: min(90px, 22vw);
  max-height: min(76px, 12vh);
  object-fit: contain;
  pointer-events: none;
}

.response-quick-ai-label,
.response-helpme-label {
  display: inline-block;
  min-width: 0;
  color: #4B00B5;
  background-image: linear-gradient(
    90deg,
    #4B00B5 0%,
    #7A14C8 18%,
    #8ecded 34%,
    #eadfea 48%,
    #f5beb8 62%,
    #c16493 78%,
    #7d61a4 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: response-quick-ai-label-wave 7s ease-in-out infinite alternate;
  text-shadow: 0 6px 18px rgba(75, 0, 181, 0.12);
}

.runner-response-appearance-quick .response-quick-required {
  display: none;
}

.runner-response-appearance-quick .response-quick-required.is-attention {
  display: block;
}

.response-quick-required {
  margin: 0;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  color: #8a4b12;
  background: #fff7ed;
  font-size: 14px;
  font-weight: 900;
}

.response-quick-required.is-attention {
  border-color: rgba(212, 50, 66, 0.42);
  color: #9f1f2d;
  background: #fff1f2;
  font-size: 15px;
  animation: response-required-attention 360ms ease-in-out 2;
}

.response-quick-navigation {
  display: flex;
  justify-content: flex-start;
  direction: ltr;
  margin-top: -4px;
}

.response-quick-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px;
  color: var(--purple);
  background: #fff;
  font-weight: 950;
  cursor: pointer;
  direction: rtl;
}

.response-quick-back-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}

.response-quick-nav-button:disabled {
  color: var(--muted);
  background: #f3eef8;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .assessment-runner-shell:has(.runner-response-appearance-quick) {
    --runner-shell-gap: clamp(8px, 2.4vw, 12px);
    height: 100dvh;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .assessment-runner-shell:has(.runner-response-appearance-quick) .assessment-runner-challenge {
    --runner-challenge-min-height: 0;
    padding-bottom: clamp(2px, 1vw, 6px);
  }

  .assessment-runner-shell:has(.runner-response-appearance-quick) .assessment-runner-response {
    min-height: 0;
    overflow: hidden;
  }

  .runner-response-appearance-quick {
    height: 100%;
    max-height: none;
    gap: 8px;
  }

  .runner-response-appearance-quick.is-helpme-open {
    grid-template-rows: minmax(0, 1fr);
  }

  .response-quick-card {
    gap: clamp(10px, 2.6vw, 16px);
    padding: clamp(12px, 3.4vw, 18px);
  }

  .runner-response-appearance-quick.is-helpme-open .response-quick-card {
    max-height: none;
    padding-bottom: calc(clamp(16px, 4vw, 24px) + env(safe-area-inset-bottom));
  }

  .runner-response-appearance-quick.is-helpme-open .response-helpme-content-scroll {
    max-height: min(38vh, 320px);
  }

  .response-quick-options {
    gap: clamp(5px, 1.8vw, 8px);
  }

  .response-quick-option {
    border-radius: 14px;
    padding: 7px 4px;
  }

  .response-quick-ai-action {
    gap: clamp(6px, 1.8vw, 9px);
    margin: clamp(30px, 7vw, 40px) auto clamp(6px, 1.8vw, 10px);
    font-size: clamp(18px, 5vw, 22px);
  }

  .response-quick-ai {
    width: min(72px, 20vw);
    max-height: 10vh;
  }

  .response-quick-navigation {
    margin-top: -6px;
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  }

  .response-quick-nav-button {
    min-width: 52px;
    min-height: 52px;
    padding: 9px;
  }

  .response-quick-back-icon {
    width: 32px;
    height: 32px;
  }
}

.runner-response-appearance-quick.is-helpme-open .response-quick-ai-action,
.runner-response-appearance-quick.is-helpme-open .response-quick-navigation,
.runner-response-appearance-quick.is-required-warning .response-quick-ai-action {
  display: none;
}

.runner-response-appearance-quick .response-helpme-panel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .runner-response-appearance-quick .response-helpme-panel {
    width: 100%;
    margin: 0 auto;
  }
}

@keyframes response-quick-ai-label-wave {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .response-quick-ai-label,
  .response-helpme-label {
    animation: none;
    background-position: 55% 50%;
  }

  .response-helpme-loading-visual {
    transition: none;
  }

  .response-helpme-panel {
    box-shadow: 0 14px 32px rgba(47, 23, 70, 0.08);
  }

  .response-modern-center-btn.is-warning,
  .response-quick-required.is-attention,
  .response-modern-required.is-attention,
  .response-official-required.is-attention {
    animation: none;
  }
}

.runner-response-appearance-official {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  margin: 0 auto;
  direction: rtl;
  overflow: hidden;
}

.runner-response-appearance-official.is-helpme-open {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  max-height: calc(100dvh - 32px);
}

.response-official-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid rgba(47, 23, 70, 0.08);
  border-radius: 18px;
  padding: clamp(16px, 3vw, 22px);
  background: #fff;
  box-shadow: 0 14px 34px rgba(47, 23, 70, 0.08);
}

.response-official-header p {
  margin: 0;
  color: var(--purple-dark);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 900;
  line-height: 1.65;
}

.response-official-items {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-left: 4px;
}

.runner-response-appearance-official.is-helpme-open .response-official-items {
  align-content: start;
  scroll-padding-block: 12px 24px;
  padding: 2px 4px clamp(14px, 3vw, 24px);
}

.response-official-item-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(47, 23, 70, 0.06);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 22px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(47, 23, 70, 0.05);
}

.response-official-item-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 850;
  line-height: 1.55;
}

.response-official-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.response-official-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgba(47, 23, 70, 0.08);
  border-radius: 16px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--surface-soft);
  font-weight: 850;
  text-align: start;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.response-official-option:hover,
.response-official-option:focus-visible {
  border-color: rgba(77, 24, 192, 0.32);
  background: #fff;
  box-shadow: 0 6px 16px rgba(47, 23, 70, 0.06);
  outline: none;
}

.response-official-option-indicator {
  position: relative;
  display: inline-flex;
  width: 22px;
  min-width: 22px;
  height: 22px;
  border: 2px solid rgba(77, 24, 192, 0.34);
  border-radius: 999px;
  background: #fff;
}

.response-official-option-indicator::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 7px;
  display: none;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.response-official-option.is-selected {
  border-color: var(--purple);
  color: var(--purple-dark);
  background: var(--purple-soft);
  box-shadow: 0 0 0 1px rgba(77, 24, 192, 0.12), 0 4px 14px rgba(77, 24, 192, 0.1);
}

.response-official-option.is-selected .response-official-option-indicator {
  border-color: var(--purple);
  background: var(--purple);
}

.response-official-option.is-selected .response-official-option-indicator::after {
  display: block;
}

.runner-response-appearance-official .response-official-required {
  display: none;
}

.response-official-required {
  margin: 0;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  color: #8a4b12;
  background: #fff7ed;
  font-size: 14px;
  font-weight: 900;
}

.response-official-required.is-attention {
  border-color: rgba(212, 50, 66, 0.42);
  color: #9f1f2d;
  background: #fff1f2;
  font-size: 15px;
  animation: response-required-attention 360ms ease-in-out 2;
}

.response-official-navigation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
}

.runner-response-appearance-official.is-helpme-open .response-official-navigation {
  display: none;
}

.response-official-nav-button {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 950;
  cursor: pointer;
}

.response-official-nav-button.primary {
  border-color: var(--purple);
  color: #fff;
  background: var(--purple);
}

.response-official-nav-button.secondary {
  color: var(--purple);
  background: #fff;
}

.response-official-nav-button:disabled {
  color: var(--muted);
  background: #f3eef8;
  cursor: not-allowed;
  opacity: 0.72;
}

@media (max-width: 760px) {
  .response-official-options {
    grid-template-columns: 1fr;
  }

  .response-official-navigation {
    display: grid;
    grid-template-columns: 1fr minmax(0, auto) 1fr;
    gap: 6px;
    align-items: center;
  }

  .response-official-nav-button {
    width: auto;
    min-width: 100px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .response-official-nav-button.primary {
    justify-self: end;
  }

  .response-official-nav-button.secondary {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .assessment-runner-shell:has(.runner-response-appearance-official) {
    --runner-shell-gap: 4px;
    height: 100dvh;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .assessment-runner-shell:has(.runner-response-appearance-official) .assessment-runner-challenge {
    --runner-challenge-min-height: 0;
  }

  .assessment-runner-shell:has(.runner-response-appearance-official) .assessment-runner-response {
    min-height: 0;
    overflow: hidden;
  }

  .runner-response-appearance-official {
    height: 100%;
    max-height: none;
    gap: 6px;
    border-radius: 20px;
  }

  .runner-response-appearance-official.is-helpme-open {
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .response-official-header {
    padding: 10px 14px;
  }

  .response-official-header h1 {
    display: none;
  }

  .response-official-header p {
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 800;
    line-height: 1.45;
  }

  .response-official-items {
    gap: 8px;
    padding: 0 4px 12px;
  }

  .response-official-navigation {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(77, 24, 192, 0.03);
    border-top: 1px solid rgba(77, 24, 192, 0.1);
  }

  .response-official-nav-button {
    min-width: 76px;
    padding: 10px 16px;
    font-size: clamp(13px, 3vw, 15px);
    border-radius: 14px;
  }
}

.admin-entry {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--admin-canvas);
}

#admin-app {
  display: grid;
  grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--admin-canvas);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 24px 16px;
  color: #fff;
  background: var(--admin-sidebar-bg);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand img {
  width: 152px;
  margin-bottom: 28px;
  opacity: 0.95;
}

.admin-sidebar nav {
  display: grid;
  gap: 4px;
}

.admin-nav-group {
  display: grid;
  gap: 2px;
}

.admin-subnav {
  display: grid;
  gap: 2px;
  padding-right: 10px;
  margin-top: 2px;
}

.admin-subnav a {
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 6px 6px 0;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.admin-subnav a:hover,
.admin-subnav a:focus-visible {
  border-right-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar a:not(.admin-brand) {
  border-radius: 8px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar a.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.admin-main {
  padding: 28px clamp(16px, 3vw, 40px) 40px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.admin-header .eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-section,
.admin-placeholder,
.admin-form,
.admin-item {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
}

.admin-section,
.admin-placeholder {
  margin-bottom: 20px;
  padding: 28px;
}

.admin-subsection + .admin-subsection {
  margin-top: 28px;
  border-top: 1px solid var(--admin-border);
  padding-top: 28px;
}

.admin-status {
  margin-bottom: 16px;
  border-radius: var(--admin-radius-sm);
  padding: 12px 14px;
  background: var(--admin-surface);
  color: var(--admin-accent);
  font-weight: 700;
  font-size: 14px;
  border-right: 3px solid var(--admin-accent);
  box-shadow: var(--admin-shadow-sm);
}

.admin-status.muted {
  background: var(--admin-surface);
  color: var(--admin-muted);
  font-weight: 700;
  border-right-color: var(--admin-border-strong);
}

.admin-status[role="alert"] {
  color: var(--admin-danger);
  background: var(--admin-danger-soft);
  border-right-color: var(--admin-danger);
}

.admin-status[role="note"] {
  color: var(--admin-warning);
  background: var(--admin-warning-soft);
  border-right-color: var(--admin-warning);
}

.admin-form {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 24px;
  background: var(--admin-surface-raised);
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--admin-ink);
  font-weight: 700;
  font-size: 14px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 10px 12px;
  color: var(--admin-ink);
  background: var(--admin-surface);
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft);
}

.admin-form textarea {
  min-height: 104px;
  resize: vertical;
}

.hero-admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.admin-item:hover {
  box-shadow: var(--admin-shadow);
}

.admin-item.is-editing {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft), var(--admin-shadow);
}

.admin-item span {
  color: var(--admin-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-item p,
.admin-placeholder p {
  margin: 0;
  color: var(--admin-muted);
}

.admin-item h3,
.admin-placeholder h2 {
  margin: 6px 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.admin-item strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--admin-success);
  font-size: 13px;
  font-weight: 800;
}

.item-actions {
  justify-content: flex-end;
}

.item-actions button {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 7px 12px;
  color: var(--admin-accent);
  background: var(--admin-surface);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.item-actions button:hover {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
}

.runner-setting-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px !important;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-surface);
}

.runner-setting-label {
  font-weight: 700;
  font-size: 14px;
}

.runner-setting-control input {
  width: auto;
  accent-color: var(--admin-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stat-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
}

.stat-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-card strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--admin-ink);
}

.assessments-admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.public-site-structure-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: start;
}

.public-site-structure-tree-panel,
.public-site-structure-editor-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.public-site-structure-panel-header,
.public-site-structure-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.public-site-structure-panel-header h3,
.public-site-structure-editor-heading h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.public-site-structure-panel-header p,
.public-site-structure-editor-heading p {
  margin: 6px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
}

.public-site-structure-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-site-structure-tree {
  display: grid;
  gap: 10px;
}

.public-site-structure-node-shell {
  display: grid;
  gap: 8px;
}

.public-site-structure-node-shell.level-1,
.public-site-structure-node-shell.level-2 {
  margin-right: 18px;
}

.public-site-structure-node,
.public-site-structure-placement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 12px 14px;
  text-align: right;
  color: var(--admin-ink);
  background: var(--admin-surface);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.public-site-structure-placement {
  margin-right: 18px;
  border-style: dashed;
  background: var(--admin-surface-raised);
}

.public-site-structure-node:hover,
.public-site-structure-placement:hover,
.public-site-structure-node.is-selected,
.public-site-structure-placement.is-selected {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft);
}

.public-site-structure-node.is-muted,
.public-site-structure-placement.is-muted {
  color: var(--admin-muted);
  background: #f8f6fc;
}

.public-site-structure-node-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.public-site-structure-node-main strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
}

.public-site-structure-node-main small {
  overflow-wrap: anywhere;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.public-site-structure-children {
  display: grid;
  gap: 8px;
}

.public-site-structure-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.public-site-structure-badges span {
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--admin-muted);
  background: var(--admin-surface);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.public-site-structure-form-grid,
.public-site-structure-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assessments-panel {
  display: grid;
  gap: 16px;
}

.assessments-panel h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.assessment-admin-list {
  display: grid;
  gap: 12px;
}

.response-scale-admin-list .admin-item {
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
}

.response-scale-admin-list .admin-item > div:first-child {
  min-width: 0;
}

.response-scale-admin-list .item-actions {
  justify-content: flex-start;
}

.response-scale-admin-list .item-actions button {
  white-space: nowrap;
}

.transfer-package-metadata {
  display: grid;
  gap: 10px;
}

.transfer-package-metadata h3 {
  margin: 0;
}

.transfer-package-field {
  display: grid;
  gap: 6px;
}

.transfer-package-field span {
  color: var(--admin-accent);
  font-size: 13px;
  font-weight: 900;
}

.transfer-package-preview {
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.assessment-advanced {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 20px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
}

.assessment-advanced summary {
  cursor: pointer;
  color: var(--admin-accent);
  font-weight: 800;
}

.assessment-advanced label {
  margin-top: 14px;
}

.assessment-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.assessment-runner-page {
  min-height: 100vh;
  padding: clamp(14px, 2.5vw, 28px);
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 24, 192, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf9ff 0%, #f5f1ff 100%);
  color: var(--ink);
}

.assessment-runner-shell,
.assessment-runner-login,
.assessment-runner-error,
.assessment-runner-confirmation,
.assessment-runner-status {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.assessment-runner-shell {
  --runner-shell-gap: 14px;
  --runner-challenge-min-height: 74px;
  display: grid;
  gap: var(--runner-shell-gap);
}

.assessment-runner-strip {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), #9d7cff 52%, var(--purple-dark));
  box-shadow: 0 10px 28px rgba(77, 24, 192, 0.18);
}

.assessment-runner-challenge {
  display: grid;
  align-items: center;
  min-height: var(--runner-challenge-min-height);
}

.assessment-runner-shell:has(.runner-response-appearance.is-helpme-open) {
  --runner-shell-gap: 0;
}

.assessment-runner-shell:has(.runner-response-appearance.is-helpme-open) .assessment-runner-strip,
.assessment-runner-shell:has(.runner-response-appearance.is-helpme-open) .assessment-runner-challenge {
  display: none;
}

.assessment-runner-response {
  min-height: 0;
}

.assessment-runner-login,
.assessment-runner-error,
.assessment-runner-confirmation,
.assessment-runner-status {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(34, 18, 74, 0.12);
}

.assessment-runner-login h1,
.assessment-runner-error h1,
.assessment-runner-confirmation h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 44px);
}

.assessment-runner-login p,
.assessment-runner-error p,
.assessment-runner-confirmation p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.8;
}

.assessment-runner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.assessment-runner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.assessment-runner-button.secondary {
  border: 1px solid var(--line);
  color: var(--purple);
  background: #fff;
}

/* Runner LTR overrides */
.assessment-runner-page[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.assessment-runner-page[dir="ltr"] .response-modern-header.has-scale-info {
  padding-left: 0;
  padding-right: clamp(58px, 8vw, 76px);
}

.assessment-runner-page[dir="ltr"] .response-quick-nav-button {
  direction: ltr;
}

@media (max-width: 900px) {
  #admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
    padding: 18px 14px;
  }

  .admin-brand img {
    width: 130px;
    margin-bottom: 18px;
  }

  .admin-main {
    padding: 20px 16px 32px;
  }

  .admin-header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .admin-header h1 {
    font-size: 26px;
  }

  .admin-header,
  .admin-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .admin-section,
  .admin-placeholder {
    padding: 18px;
  }

  .assessments-admin-layout,
  .assessment-placeholder-grid,
  .public-site-structure-layout,
  .public-site-structure-form-grid,
  .public-site-structure-toggle-grid {
    grid-template-columns: 1fr;
  }

  .public-site-structure-panel-header,
  .public-site-structure-editor-heading,
  .public-site-structure-node,
  .public-site-structure-placement {
    grid-template-columns: 1fr;
  }

  .public-site-structure-panel-header,
  .public-site-structure-editor-heading {
    flex-direction: column;
  }
}

.response-legend-wrapper {
  position: relative;
}

.response-scale-info-btn {
  position: absolute;
  left: clamp(14px, 3vw, 22px);
  top: clamp(14px, 3vw, 22px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0;
  color: #fff;
  background:
    linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.08) 55%, transparent 70%),
    linear-gradient(135deg, #4d18c0, #2f1746, #3b3b8a, #6a2be0);
  background-size: 200% 100%, 400% 400%;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(77, 24, 192, 0.2), 0 0 24px rgba(77, 24, 192, 0.06);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .response-scale-info-btn {
    animation: scaleInfoShift 8s ease-in-out infinite;
  }
}

@keyframes scaleInfoShift {
  0%, 100% { background-position: 100% 50%, 0% 50%; }
  50% { background-position: 0% 50%, 100% 50%; }
}

.response-scale-info-btn:hover,
.response-scale-info-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 22px rgba(77, 24, 192, 0.25), 0 0 36px rgba(77, 24, 192, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.response-scale-info-btn:active {
  box-shadow: 0 2px 6px rgba(77, 24, 192, 0.1), 0 0 18px rgba(77, 24, 192, 0.05);
  transform: translateY(0);
}

.response-scale-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.response-scale-modal[hidden] {
  display: none;
}

.response-scale-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 31, 0.48);
}

.response-scale-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  background: #fff;
  box-shadow: 0 32px 72px rgba(23, 18, 31, 0.22);
}

.response-scale-modal-close {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.response-scale-modal-close:hover,
.response-scale-modal-close:focus-visible {
  color: var(--ink);
  background: var(--purple-soft);
  outline: none;
}

.response-scale-modal-dialog h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  color: var(--purple-dark);
}

.response-scale-modal-dialog p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .response-scale-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .response-scale-modal-dialog {
    padding: 24px 20px;
    border-radius: 18px 18px 0 0;
  }

  .response-scale-modal-backdrop {
    background: rgba(23, 18, 31, 0.44);
  }

  .assessment-experience-entry {
    place-items: start center;
    padding: 18px 16px 28px;
  }

  .assessment-experience-card {
    width: min(440px, 100%);
    padding: 26px 22px;
  }

  .assessment-experience-logo {
    width: 148px;
    margin-bottom: 18px;
  }

  .assessment-experience-card h1 {
    font-size: clamp(22px, 5.5vw, 30px);
    margin-bottom: 12px;
  }

  .assessment-experience-actions {
    margin-top: 22px;
  }

  .questionnaires-page {
    padding: 28px 16px;
  }

  .questionnaires-card {
    padding: 22px 18px;
  }

  .questionnaires-card-title {
    font-size: 20px;
  }
}
.portal-entry {
  min-height: calc(100vh - 48px);
}

.portal-shell {
  display: grid;
  gap: 24px;
}

.portal-header {
  max-width: 760px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 14px;
  min-height: 190px;
  color: inherit;
  text-decoration: none;
}

.portal-card:not(.is-disabled):hover,
.portal-card:not(.is-disabled):focus-visible {
  border-color: rgba(77, 24, 192, 0.34);
  transform: translateY(-2px);
}

.portal-card.is-disabled {
  opacity: 0.72;
}

.portal-card-icon {
  margin: 0;
}

.portal-card-title,
.portal-card-description,
.portal-badge {
  display: block;
}

.portal-card-title {
  margin-bottom: 8px;
  color: var(--purple-dark);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
}

.portal-card-description {
  color: rgba(46, 31, 66, 0.74);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.portal-badge {
  width: fit-content;
  margin-top: 14px;
  border: 1px solid rgba(77, 24, 192, 0.18);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--purple);
  background: rgba(77, 24, 192, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.portal-footnote {
  margin: 0;
  color: rgba(46, 31, 66, 0.7);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 0;
  }
}
