:root {
  --bg: #f4f7fb;
  --bg-2: #edf2f8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --line: rgba(24, 39, 75, 0.1);
  --line-strong: rgba(24, 39, 75, 0.16);
  --text: #132238;
  --muted: #637085;
  --brand: #4b67ff;
  --brand-2: #8ea2ff;
  --brand-soft: rgba(75, 103, 255, 0.12);
  --green: #1ea97c;
  --green-soft: rgba(30, 169, 124, 0.14);
  --amber: #c98812;
  --amber-soft: rgba(201, 136, 18, 0.14);
  --red: #cf4f5d;
  --red-soft: rgba(207, 79, 93, 0.14);
  --shadow: 0 24px 64px rgba(36, 56, 99, 0.12);
  --shadow-soft: 0 16px 38px rgba(36, 56, 99, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --app-padding: 28px;
  --sidebar-width: 284px;
  --sidebar-width-collapsed: 76px;
  --wizard-nav-width: 320px;
  --wizard-nav-width-collapsed: 78px;
  --font-ui: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(75, 103, 255, 0.16), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(141, 161, 255, 0.18), transparent 26%),
    radial-gradient(circle at 68% 82%, rgba(122, 92, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f7faff 35%, #f2f6fc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 34, 56, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 34, 56, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.14));
}

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

button {
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.92);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  font-size: 16px;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(75, 103, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(75, 103, 255, 0.11);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

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

#app {
  min-height: 100vh;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
}

.marketing-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.marketing-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(420px, 0.96fr);
  gap: 42px;
  align-items: center;
}

.landing-topbar {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(36, 56, 99, 0.08);
  transition: transform 0.28s ease, opacity 0.22s ease;
  will-change: transform;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5270ff, #8e78ff);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 14px 30px rgba(82, 112, 255, 0.24);
}

.landing-brand strong,
.landing-brand span {
  display: block;
}

.landing-brand strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.landing-brand span {
  color: var(--muted);
  font-size: 13px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-nav a,
.landing-nav-link {
  color: #536176;
  font-weight: 700;
  font-size: 15px;
}

.landing-nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.landing-nav-link:hover {
  color: var(--brand);
}

.landing-nav .ghost-button,
.landing-nav .primary-button {
  padding-block: 12px;
}

.landing-cta-top {
  min-width: 150px;
}

.hero-copy h1 {
  margin: 16px 0 22px;
  font-size: clamp(58px, 5.1vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 760px;
  color: #10213c;
}

.hero-copy p {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.6;
}

.hero-gradient {
  background: linear-gradient(135deg, #3d63ff, #8669ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(75, 103, 255, 0.12);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip.soft {
  color: var(--muted);
}

.hero-actions,
.topbar-actions,
.modal-actions,
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.landing-primary-cta,
.landing-secondary-cta {
  min-height: 58px;
  padding-inline: 26px;
  border-radius: 999px;
}

.landing-primary-cta {
  box-shadow: 0 18px 38px rgba(75, 103, 255, 0.24);
}

.landing-secondary-cta {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(36, 56, 99, 0.08);
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-benefit-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(36, 56, 99, 0.06);
}

.hero-benefit-card strong,
.hero-benefit-card span {
  display: block;
}

.hero-benefit-card strong {
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.hero-benefit-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-benefit-icon {
  min-width: 42px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(75, 103, 255, 0.14), rgba(134, 105, 255, 0.18));
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.trust-bar {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.trust-bar strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(82, 104, 146, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: #5c6880;
  font-size: 13px;
  font-weight: 700;
}

.auth-card,
.panel-card,
.page-section,
.modal-card,
.sidebar-note,
.price-card,
.metric-card,
.placeholder-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.landing-auth-column {
  display: grid;
  gap: 18px;
  width: min(540px, 100%);
  justify-self: end;
}

.premium-auth-card {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 70px rgba(36, 56, 99, 0.12);
}

.premium-auth-form input {
  min-height: 56px;
  border-radius: 18px;
  background: rgba(246, 249, 255, 0.96);
}

.auth-submit-button {
  width: 100%;
  min-height: 56px;
  border-radius: 20px;
  font-size: 16px;
}

.auth-support-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.muted-link {
  color: #6a7790;
}

.auth-preview-card,
.landing-contact-note {
  padding: 22px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(36, 56, 99, 0.08);
}

.auth-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.auth-preview-head h3 {
  margin: 12px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.auth-preview-card p,
.landing-contact-note span {
  color: #59677d;
  line-height: 1.6;
}

.auth-preview-progress {
  margin-top: 16px;
  height: 10px;
  border-radius: 999px;
  background: rgba(75, 103, 255, 0.12);
  overflow: hidden;
}

.auth-preview-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #4b67ff, #8a72ff);
}

.auth-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.auth-preview-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(247, 249, 254, 0.96);
  border: 1px solid rgba(82, 104, 146, 0.12);
  color: #5d6b81;
  font-size: 13px;
  font-weight: 700;
}

.landing-contact-note strong,
.landing-contact-note span {
  display: block;
}

.landing-contact-note strong {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.landing-section {
  margin-top: 28px;
  padding: 34px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 46px rgba(36, 56, 99, 0.08);
}

.landing-section-head {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-bottom: 26px;
}

.landing-section-head h2 {
  margin: 0;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.landing-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.checkout-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.checkout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.checkout-hero {
  margin-bottom: 24px;
}

.checkout-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(42px, 4vw, 58px);
  letter-spacing: -0.05em;
}

.checkout-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.checkout-auth-banner,
.checkout-form-card,
.checkout-summary-card,
.checkout-success-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 64px rgba(36, 56, 99, 0.1);
  backdrop-filter: blur(18px);
}

.checkout-auth-banner {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 26px;
  margin-bottom: 22px;
}

.checkout-auth-banner strong,
.checkout-auth-banner span {
  display: block;
}

.checkout-auth-form {
  margin-top: 6px;
}

.checkout-auth-banner span {
  color: var(--muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 380px;
  gap: 24px;
  align-items: start;
}

.checkout-form-card {
  padding: 30px;
  border-radius: 30px;
}

.checkout-summary-card {
  position: sticky;
  top: 28px;
  padding: 26px;
  border-radius: 28px;
}

.checkout-radio-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.choice-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(247, 249, 254, 0.88);
  font-weight: 700;
}

.choice-card.active {
  border-color: rgba(75, 103, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(75, 103, 255, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.choice-card input {
  width: auto;
  margin: 0;
}

.checkout-consents {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.checkout-notice,
.checkout-inline-info {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(75, 103, 255, 0.08);
  border: 1px solid rgba(75, 103, 255, 0.12);
}

.checkout-notice strong,
.checkout-notice span,
.checkout-inline-info span {
  display: block;
}

.checkout-notice span,
.checkout-inline-info span {
  color: var(--muted);
  line-height: 1.6;
}

.checkout-pay-button {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(75, 103, 255, 0.22);
}

.checkout-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
}

.checkout-line span {
  color: var(--muted);
}

.checkout-line.total {
  padding-top: 16px;
}

.checkout-line.total strong {
  font-size: 22px;
}

.checkout-security-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.checkout-security-list span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(247, 249, 254, 0.96);
  border: 1px solid rgba(82, 104, 146, 0.12);
  color: #5d6b81;
  font-size: 13px;
  font-weight: 700;
}

.checkout-success-card {
  max-width: 860px;
  margin: 10vh auto 0;
  padding: 36px;
  border-radius: 34px;
}

.checkout-success-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 4vw, 58px);
  letter-spacing: -0.05em;
}

.checkout-success-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.checkout-success-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.checkout-success-meta div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(247, 249, 254, 0.9);
  border: 1px solid rgba(82, 104, 146, 0.12);
}

.checkout-success-meta span,
.checkout-success-meta strong {
  display: block;
}

.checkout-success-meta span {
  color: var(--muted);
  margin-bottom: 8px;
}

.compact-center {
  margin-inline: auto;
  text-align: center;
}

.feature-grid,
.value-grid,
.audience-grid,
.pricing-showcase,
.footer-grid {
  display: grid;
  gap: 16px;
}

.feature-grid.six-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pricing-showcase {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.feature-card,
.value-card,
.audience-card,
.pricing-card,
.contact-form-card,
.contact-note-card,
.faq-item {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(36, 56, 99, 0.07);
}

.feature-card,
.value-card,
.audience-card,
.contact-note-card {
  padding: 22px;
}

.feature-card h3,
.value-card h3,
.audience-card h3,
.pricing-head h3,
.contact-note-card strong {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.feature-card p,
.value-card p,
.audience-card p,
.contact-note-card p,
.pricing-list li,
.contact-meta span,
.landing-disclaimer {
  margin: 0;
  color: #5b677a;
  line-height: 1.65;
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(75, 103, 255, 0.15), rgba(134, 105, 255, 0.16));
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(36, 56, 99, 0.07);
}

.step-number {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4b67ff, #8a72ff);
  color: #fff;
  font-weight: 900;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.step-card p {
  margin: 0;
  color: #5b677a;
  line-height: 1.6;
}

.pricing-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 24px;
}

.pricing-card.featured {
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(244, 247, 255, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(75, 103, 255, 0.22);
  box-shadow: 0 24px 48px rgba(75, 103, 255, 0.14);
}

.pricing-head {
  display: grid;
  gap: 10px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pricing-list li {
  position: relative;
  padding-left: 24px;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 22px 22px;
  margin: 0;
  color: #5b677a;
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
}

.contact-form-card {
  padding: 24px;
}

.contact-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-meta strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.contact-sidecards {
  display: grid;
  gap: 14px;
}

.contact-side-cta {
  min-height: 54px;
}

.centered-actions,
.centered-pills {
  justify-content: center;
}

.final-cta-section {
  text-align: center;
}

.terms-teaser-section {
  text-align: center;
}

.landing-disclaimer {
  max-width: 880px;
  margin: 16px auto 0;
  font-size: 14px;
}

.landing-footer {
  margin-top: 22px;
  padding: 28px 8px 12px;
}

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

.footer-grid strong,
.footer-grid a,
.footer-link-button {
  display: block;
}

.footer-grid strong {
  margin-bottom: 12px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.footer-grid a,
.footer-link-button {
  margin-top: 10px;
  color: #5b677a;
  font-size: 14px;
}

.footer-link-button {
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-grid a:hover,
.footer-link-button:hover,
.legal-checkbox-row a {
  color: var(--brand);
}

.card-head h2,
.section-header h2,
.wizard-header h2,
.modal-card h3 {
  margin: 14px 0 8px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.card-head p,
.section-header p,
.wizard-header p,
.modal-card p,
.placeholder-card p,
.panel-card p,
.metric-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form,
.stack-form,
.wizard-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 14px;
  font-weight: 700;
  color: #49576b;
}

.primary-button,
.secondary-button,
.ghost-button,
.link-button,
.mini-button {
  border: 0;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  padding: 13px 18px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand), #5f7dff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(75, 103, 255, 0.24);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button,
.link-button {
  background: transparent;
  color: var(--muted);
}

.mini-button {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.mini-button.danger {
  color: var(--red);
  border-color: rgba(207, 79, 93, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.link-button:hover,
.mini-button:hover,
.nav-item:hover,
.wizard-step:hover,
.project-row:hover {
  transform: translateY(-1px);
}

.link-button {
  justify-self: start;
  padding: 0;
  margin-top: 8px;
}

.form-error {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(207, 79, 93, 0.08);
  color: var(--red);
  font-size: 14px;
}

.app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px var(--app-padding) 28px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-height: 100vh;
  overflow-x: hidden;
  transition: grid-template-columns 0.24s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-width-collapsed) minmax(0, 1fr);
  gap: 18px;
}

.app-shell.editor-focus-mode {
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  height: calc(100vh - 36px);
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  width: var(--sidebar-width);
  overflow: hidden;
  transition: width 0.24s ease, padding 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.sidebar.is-collapsed {
  width: var(--sidebar-width-collapsed);
  height: calc(100vh - 36px);
  padding: 14px 10px 16px;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-header-copy {
  display: grid;
  gap: 2px;
}

.sidebar-header-copy strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sidebar-header-copy span {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-toggle-button {
  min-width: 44px;
}

.sidebar-header-copy,
.sidebar-copy,
.nav-label,
.sidebar-note,
.sidebar-mobile-close {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sidebar.is-collapsed .sidebar-header-copy,
.sidebar.is-collapsed .sidebar-copy,
.sidebar.is-collapsed .nav-label,
.sidebar.is-collapsed .sidebar-mobile-close {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.sidebar.is-collapsed .sidebar-note {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  max-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
}

.sidebar.is-collapsed .brand-block {
  display: none;
}

.sidebar.is-collapsed .sidebar-header {
  justify-content: center;
  padding-bottom: 6px;
  border-bottom-color: transparent;
}

.sidebar.is-collapsed .nav-item {
  justify-content: center;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 16px;
}

.sidebar.is-collapsed .nav-icon {
  width: 36px;
  height: 36px;
}

.sidebar.is-collapsed .nav-list {
  display: grid;
  justify-items: center;
  align-content: start;
  overflow: visible;
  gap: 10px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), #8ea2ff);
  box-shadow: 0 10px 28px rgba(75, 103, 255, 0.28);
}

.brand-block strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-block span {
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.nav-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(75, 103, 255, 0.13), rgba(255, 255, 255, 0.85));
  color: var(--text);
  border-color: rgba(75, 103, 255, 0.14);
  box-shadow: 0 12px 24px rgba(75, 103, 255, 0.1);
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(75, 103, 255, 0.08);
  color: var(--brand);
  font-weight: 800;
  flex: 0 0 30px;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sidebar-note {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(75, 103, 255, 0.08), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(75, 103, 255, 0.12);
}

.sidebar-note strong {
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.main-content {
  min-width: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.app-shell.editor-focus-mode .topbar {
  padding: 14px 18px;
  border-radius: 26px;
}

.topbar-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.topbar-subtitle {
  margin-top: 4px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(19, 34, 56, 0.24);
}

.page-section {
  margin-top: 20px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.panel-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

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

.section-header h2,
.wizard-header h2 {
  font-size: 34px;
}

.section-header p,
.wizard-header p,
.panel-card p,
.metric-card span,
.project-row span,
.substance-row span {
  color: #4f5f76;
}

.metrics-grid,
.pricing-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.metric-card,
.price-card {
  border-radius: 24px;
  padding: 24px;
}

.metric-card strong,
.price-card strong {
  display: block;
  margin-top: 10px;
  font-size: 38px;
  letter-spacing: -0.05em;
}

.price-card.active {
  outline: 2px solid rgba(75, 103, 255, 0.2);
}

.empty-state,
.placeholder-card {
  text-align: center;
  padding: 56px 24px;
}

.empty-state.compact {
  padding-block: 40px;
}

.empty-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(75, 103, 255, 0.18), rgba(142, 162, 255, 0.18));
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.list-card,
.table-card {
  display: grid;
  gap: 10px;
}

.table-card {
  overflow-x: auto;
}

.project-row,
.table-row,
.substance-row {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  padding: 18px 20px;
}

.project-row,
.substance-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.project-row {
  width: 100%;
  text-align: left;
}

.project-row.static {
  background: rgba(255, 255, 255, 0.75);
}

.project-row strong,
.substance-row strong,
.table-row span:first-child {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.project-row span,
.substance-row span,
.table-empty,
.loading-banner {
  color: var(--muted);
}

.substance-row p {
  margin: 6px 0 0;
  color: #4f5f76;
  line-height: 1.55;
}

.progress-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.table-head {
  background: transparent;
  border: 0;
  padding: 0 4px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(280px, 2.2fr) minmax(120px, 0.9fr) minmax(100px, 0.8fr) minmax(180px, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 860px;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.table-empty,
.loading-banner {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.66);
}

.wizard-shell {
  padding: 22px;
}

.app-shell.editor-focus-mode .wizard-shell {
  padding: 18px;
}

.stacked-panels {
  display: grid;
  gap: 24px;
}

.mixture-builder-layout {
  width: 100%;
}

.mixture-search-field {
  display: grid;
  gap: 10px;
}

.mixture-search-field input {
  min-height: 58px;
  font-size: 16px;
}

.mixture-form-card {
  width: 100%;
}

.mixture-item-table-form {
  gap: 20px;
}

.mixture-item-grid {
  align-items: start;
}

.mixture-item-grid label {
  height: 100%;
}

.mixture-item-grid .full-row {
  grid-column: 1 / -1;
}

.mixture-added-list {
  margin-top: 6px;
}

.field-error-flash {
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(220, 58, 78, 0.08);
  border: 1px solid rgba(220, 58, 78, 0.38);
  animation: fieldErrorPulse 0.8s ease-in-out 6;
}

.field-error-flash span {
  color: #b42336;
}

.field-error-flash input,
.field-error-flash textarea,
.field-error-flash select {
  border-color: rgba(220, 58, 78, 0.62);
  box-shadow: 0 0 0 4px rgba(220, 58, 78, 0.12);
}

@keyframes fieldErrorPulse {
  0%, 100% {
    background: rgba(220, 58, 78, 0.08);
    border-color: rgba(220, 58, 78, 0.38);
  }
  50% {
    background: rgba(220, 58, 78, 0.2);
    border-color: rgba(220, 58, 78, 0.76);
  }
}

.wizard-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 4px 6px 24px;
}

.save-bar {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.app-shell.editor-focus-mode .save-bar {
  align-self: center;
}

.save-indicator {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.save-indicator[data-state="dirty"] {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: rgba(201, 136, 18, 0.18);
}

.save-indicator[data-state="saving"] {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(75, 103, 255, 0.16);
}

.save-indicator[data-state="saved"] {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(30, 169, 124, 0.16);
}

.save-indicator[data-state="error"] {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(207, 79, 93, 0.16);
}

.wizard-layout,
.two-panel {
  display: grid;
  grid-template-columns: var(--wizard-nav-width) minmax(0, 1fr);
  gap: 24px;
  transition: grid-template-columns 0.24s ease;
}

.wizard-nav {
  display: grid;
  gap: 10px;
  align-content: start;
  position: sticky;
  top: 110px;
  width: var(--wizard-nav-width);
  transition: width 0.24s ease;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(36, 56, 99, 0.06);
}

.app-shell.wizard-collapsed .wizard-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.wizard-nav.is-collapsed {
  width: var(--wizard-nav-width-collapsed);
  justify-items: center;
  padding-inline: 8px;
}

.wizard-nav.is-collapsed .wizard-nav-toolbar {
  justify-content: center;
  margin-bottom: 0;
}

.wizard-nav-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 4px;
}

.wizard-toggle-button {
  min-width: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.wizard-toggle-floating {
  min-width: 120px;
}

.wizard-step {
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid transparent;
  text-align: left;
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  gap: 4px;
  transition: padding 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.wizard-step span,
.wizard-step small {
  color: var(--muted);
}

.wizard-step strong {
  letter-spacing: -0.02em;
}

.wizard-step.active {
  background: linear-gradient(135deg, rgba(75, 103, 255, 0.12), rgba(255, 255, 255, 0.92));
  border-color: rgba(75, 103, 255, 0.18);
  box-shadow: 0 14px 28px rgba(75, 103, 255, 0.1);
}

.wizard-nav.is-collapsed .wizard-step {
  justify-items: center;
  text-align: center;
  width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 18px;
  align-content: center;
}

.wizard-nav.is-collapsed .wizard-step strong,
.wizard-nav.is-collapsed .wizard-step small {
  display: none;
}

.wizard-compact-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
  padding: 6px 0 4px;
}

.wizard-compact-step {
  min-width: 56px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(149, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.wizard-compact-step.active {
  color: var(--ink);
  border-color: rgba(75, 103, 255, 0.24);
  background: linear-gradient(135deg, rgba(75, 103, 255, 0.14), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 16px rgba(75, 103, 255, 0.1);
}

.wizard-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.84);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.app-shell.editor-focus-mode .wizard-panel {
  padding: 22px;
}

.field-grid {
  display: grid;
  gap: 18px;
}

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

.stack-form {
  gap: 18px;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 30, 52, 0.28);
  backdrop-filter: blur(8px);
  z-index: 12;
}

.modal-card {
  width: min(540px, 100%);
  padding: 28px;
  border-radius: 28px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.toast.success strong {
  color: var(--green);
}

.toast.error strong {
  color: var(--red);
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 14, 28, 0.58);
  backdrop-filter: blur(8px);
}

.cookie-modal {
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 0%, rgba(75, 103, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 90px rgba(8, 14, 28, 0.32);
}

.cookie-settings-modal {
  width: min(860px, 100%);
}

.cookie-modal h2 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.cookie-modal p {
  margin: 0 0 14px;
  color: #536176;
  line-height: 1.68;
}

.cookie-legal-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(75, 103, 255, 0.08);
  border: 1px solid rgba(75, 103, 255, 0.12);
}

.cookie-legal-note a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.cookie-actions .primary-button,
.cookie-actions .secondary-button,
.cookie-actions .ghost-button {
  min-height: 48px;
  border-radius: 999px;
}

.cookie-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-top: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(82, 104, 146, 0.14);
  box-shadow: 0 14px 30px rgba(36, 56, 99, 0.06);
}

.cookie-option-card.is-required {
  background: linear-gradient(135deg, rgba(240, 253, 248, 0.94), rgba(255, 255, 255, 0.88));
  border-color: rgba(30, 169, 124, 0.18);
}

.cookie-option-copy {
  display: grid;
  gap: 7px;
}

.cookie-option-copy h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.cookie-option-copy span,
.cookie-option-copy small {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-option-copy p {
  margin: 0;
}

.cookie-required-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
}

.cookie-switch {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 64px;
  height: 36px;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(99, 112, 133, 0.22);
  border: 1px solid rgba(99, 112, 133, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(36, 56, 99, 0.18);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: linear-gradient(135deg, var(--green), #32c997);
  border-color: rgba(30, 169, 124, 0.7);
  box-shadow: 0 10px 22px rgba(30, 169, 124, 0.22);
}

.cookie-switch input:checked + span::before {
  transform: translateX(28px);
}

.cookie-switch input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(75, 103, 255, 0.16);
}

@media (max-width: 1023px) {
  .app-shell,
  .marketing-hero,
  .wizard-layout,
  .two-panel,
  .pricing-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    width: 100%;
  }

  .wizard-nav {
    position: relative;
    top: 0;
    width: 100%;
  }

  .section-editor-nav,
  .section-editor-side {
    position: relative;
    top: 0;
  }

  .sticky-save-bar {
    top: 0;
  }

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

@media (max-width: 767px) {
  .marketing-shell {
    width: min(1440px, calc(100% - 20px));
  }

  .app-shell {
    padding: 12px 12px 24px;
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .topbar,
  .section-header,
  .wizard-header,
  .project-row,
  .substance-row,
  .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .modal-actions,
  .export-actions,
  .row-actions {
    width: 100%;
  }

  .row-actions,
  .topbar-actions,
  .modal-actions,
  .export-actions {
    justify-content: stretch;
  }

  .sidebar {
    position: fixed;
    top: 12px;
    left: 12px;
    bottom: 12px;
    height: auto;
    width: min(320px, calc(100vw - 24px));
    z-index: 18;
    transform: translateX(calc(-100% - 18px));
    box-shadow: 0 28px 62px rgba(16, 28, 52, 0.18);
  }

  .sidebar.is-mobile-open {
    transform: translateX(0);
  }

  .sidebar.is-collapsed {
    width: min(320px, calc(100vw - 24px));
    padding-inline: 20px;
  }

  .sidebar.is-collapsed .sidebar-copy,
  .sidebar.is-collapsed .sidebar-header-copy,
  .sidebar.is-collapsed .nav-label,
  .sidebar.is-collapsed .sidebar-note,
  .sidebar.is-collapsed .sidebar-mobile-close {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .sidebar.is-collapsed .brand-block,
  .sidebar.is-collapsed .nav-item {
    justify-content: flex-start;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 25, 44, 0.18);
    backdrop-filter: blur(2px);
    z-index: 17;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .mini-button {
    width: 100%;
  }

  .field-grid.two-columns,
  .field-grid.three-columns,
  .metrics-grid,
  .table-row {
    grid-template-columns: 1fr;
  }

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

  .wizard-nav.is-collapsed {
    width: 100%;
  }

  .wizard-nav.is-collapsed .wizard-step {
    justify-items: start;
    text-align: left;
  }

  .wizard-nav.is-collapsed .wizard-step strong,
  .wizard-nav.is-collapsed .wizard-step small {
    display: block;
  }

  .table-head {
    display: none;
  }
}

.field-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.section-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.app-shell.editor-focus-mode .section-workspace {
  gap: 18px;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  gap: 24px;
  align-items: start;
}

.preview-main,
.preview-sidebar {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.section-workspace-left,
.section-workspace-right,
.audit-list {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.section-list-stack {
  display: grid;
  gap: 18px;
}

.compact-sections-view {
  gap: 14px;
}

.sds-progress-card {
  display: grid;
  gap: 16px;
}

.section-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-overview-head h2 {
  margin: 0 0 6px;
}

.section-overview-head p {
  margin: 0;
}

.section-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.section-overview-metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(111, 130, 176, 0.14);
  display: grid;
  gap: 4px;
}

.section-overview-metric strong {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.section-overview-metric span {
  color: var(--muted);
  font-size: 13px;
}

.section-rail-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(8, minmax(132px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  align-items: stretch;
}

.section-rail-item {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 14px;
  min-height: 168px;
  border-radius: 20px;
  border: 1px solid rgba(111, 130, 176, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(36, 56, 99, 0.05);
}

.section-rail-item.active {
  border-color: rgba(75, 103, 255, 0.22);
  box-shadow: 0 18px 34px rgba(75, 103, 255, 0.1);
  background: linear-gradient(180deg, rgba(245, 248, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.section-rail-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(75, 103, 255, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-rail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.section-rail-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.section-rail-copy h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  min-height: 54px;
}

.section-rail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.section-rail-progress {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.section-rail-progress strong {
  font-size: 12px;
}

.section-rail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.section-rail-actions .ghost-button,
.section-rail-actions .primary-button {
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
}

.section-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.section-card {
  min-width: 0;
  min-height: 200px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(111, 130, 176, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
  box-shadow: 0 18px 40px rgba(36, 56, 99, 0.08);
  display: grid;
  gap: 14px;
}

.section-card.active {
  border-color: rgba(75, 103, 255, 0.24);
  box-shadow: 0 24px 52px rgba(75, 103, 255, 0.12);
}

.section-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-card-number {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.section-card-head h3 {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.28;
}

.section-card-description,
.muted-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.section-card-meta,
.section-card-progress,
.section-card-actions,
.section-editor-nav-head,
.subsection-editor-head,
.section-side-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-editor-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(75, 103, 255, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(75, 103, 255, 0.12);
}

.section-editor-hero-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.section-editor-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.section-editor-hero-main h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-editor-hero-main p,
.section-editor-hero-side .muted-copy {
  margin: 0;
}

.section-editor-hero-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.section-editor-meta,
.sticky-save-copy,
.section-subtab-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.section-card-meta {
  color: var(--muted);
  font-size: 13px;
}

.sds-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(145, 160, 196, 0.18);
  overflow: hidden;
}

.sds-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4b67ff 0%, #6f7cff 45%, #22c55e 100%);
}

.sds-progress-bar.compact {
  flex: 1;
  height: 10px;
}

.section-card-actions {
  margin-top: auto;
}

.section-status-badge {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.section-status-badge.empty {
  color: #667085;
  background: rgba(148, 163, 184, 0.16);
}

.section-status-badge.generated {
  color: #2856d6;
  background: rgba(75, 103, 255, 0.12);
}

.section-status-badge.needs_review {
  color: #c67614;
  background: rgba(245, 158, 11, 0.14);
}

.section-status-badge.missing_data {
  color: var(--red);
  background: var(--red-soft);
}

.section-status-badge.accepted {
  color: var(--green);
  background: var(--green-soft);
}

.section-editor-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.section-editor-card {
  width: 100%;
  min-width: 0;
}

.section-editor-nav,
.section-editor-main,
.section-editor-side {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.section-editor-nav,
.section-editor-side {
  position: sticky;
  top: 112px;
  align-self: start;
}

.section-editor-side {
  grid-column: 1 / -1;
  position: relative;
  top: 0;
}

.section-editor-tabs {
  display: grid;
  gap: 10px;
}

.section-subtab {
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 4px;
  box-shadow: 0 10px 22px rgba(36, 56, 99, 0.05);
}

.section-subtab.active {
  border-color: rgba(75, 103, 255, 0.24);
  background: linear-gradient(180deg, rgba(75, 103, 255, 0.12), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 32px rgba(75, 103, 255, 0.08);
}

.section-subtab strong {
  font-size: 13px;
  color: var(--brand);
}

.section-subtab span {
  font-size: 14px;
  line-height: 1.45;
}

.subsection-editor-head {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(75, 103, 255, 0.08);
  border: 1px solid rgba(75, 103, 255, 0.12);
  align-items: flex-start;
}

.subsection-editor-head p {
  margin: 6px 0 0;
}

.section-editor-surface,
.section-editor-secondary {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(111, 130, 176, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(36, 56, 99, 0.05);
}

.section-editor-main textarea:first-of-type {
  min-height: 420px;
  font-size: 16px;
  line-height: 1.72;
}

.section-side-actions {
  display: grid;
  gap: 10px;
}

.section-status-badge.needs_review,
.section-status-badge.draft {
  color: var(--amber);
  background: var(--amber-soft);
}

.section-status-badge.empty,
.section-status-badge.not_applicable {
  color: var(--muted);
}

.section-status-badge.critical_error {
  color: #fff;
  background: var(--red);
}

.section-status-badge.complete {
  color: var(--green);
  background: var(--green-soft);
}

.section-editor-card textarea {
  min-height: 520px;
  font-size: 16px;
  line-height: 1.75;
}

.section-guidance-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(247, 250, 255, 0.92);
  box-shadow: 0 14px 28px rgba(36, 56, 99, 0.05);
}

.section-guidance-card h3,
.section-guidance-group strong {
  margin: 0;
}

.section-guidance-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-guidance-group {
  display: grid;
  gap: 10px;
}

.guidance-questions {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.validation-panel h3,
.panel-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.validation-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(75, 103, 255, 0.12), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(75, 103, 255, 0.14);
}

.validation-score strong {
  font-size: 32px;
  letter-spacing: -0.05em;
}

.validation-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.section-workspace-toolbar .section-header {
  margin-bottom: 0;
}

.warning-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.warning-list.errors li {
  color: var(--red);
}

.warning-list.critical li {
  color: #8f1220;
  font-weight: 700;
}

.warning-list.warnings li {
  color: var(--amber);
}

.warning-list.ok li {
  color: var(--green);
}

.preview-card,
.label-preview-card {
  display: grid;
  gap: 18px;
}

.preview-frame {
  width: 100%;
  min-height: 1080px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.preview-stage {
  width: 100%;
  overflow: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(231, 237, 247, 0.95), rgba(244, 247, 251, 0.88));
  padding: 20px;
}

.preview-stage.preview-mode-fit .preview-frame {
  width: 100%;
}

.preview-stage.preview-mode-full .preview-frame {
  width: 1100px;
  max-width: none;
}

.preview-stage.preview-mode-focus {
  min-height: calc(100vh - 220px);
}

.preview-stage.preview-mode-focus .preview-frame {
  min-height: calc(100vh - 260px);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.legal-checkbox-row {
  position: relative;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(75, 103, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.9)),
    rgba(247, 249, 254, 0.88);
  box-shadow: 0 12px 26px rgba(36, 56, 99, 0.06);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.legal-checkbox-row:hover {
  border-color: rgba(75, 103, 255, 0.34);
  box-shadow: 0 16px 34px rgba(75, 103, 255, 0.12);
  transform: translateY(-1px);
}

.legal-checkbox-row:has(input:checked) {
  border-color: rgba(30, 169, 124, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 252, 247, 0.94)),
    rgba(240, 253, 248, 0.9);
  box-shadow: 0 16px 34px rgba(30, 169, 124, 0.12);
}

.legal-checkbox-row:has(input:checked) span {
  color: #2f604f;
}

.legal-checkbox-row input {
  appearance: none;
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid rgba(75, 103, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 3px rgba(36, 56, 99, 0.08);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.legal-checkbox-row input::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.legal-checkbox-row input:checked {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), #32c997);
  box-shadow: 0 8px 18px rgba(30, 169, 124, 0.28);
}

.legal-checkbox-row input:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.legal-checkbox-row input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(75, 103, 255, 0.16), inset 0 1px 3px rgba(36, 56, 99, 0.08);
}

.legal-checkbox-row span {
  display: block;
  padding-top: 1px;
  font-size: 13px;
  line-height: 1.5;
  color: #536176;
}

.legal-checkbox-row a {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-page {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--brand);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(36, 56, 99, 0.08);
}

.legal-document {
  padding: clamp(24px, 4vw, 52px);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.legal-document h2 {
  margin: 34px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.legal-document p,
.legal-document li {
  color: #4f5d72;
  line-height: 1.75;
}

.legal-document p {
  margin: 0 0 14px;
}

.legal-document .legal-list-line {
  padding-left: 28px;
  text-indent: -28px;
}

.legal-document .legal-list-line span {
  font-weight: 800;
  color: var(--text);
}

.legal-document ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.legal-document a {
  color: var(--brand);
  font-weight: 800;
}

.field-stack {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.multi-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.multi-option-card {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.inline-warning,
.inline-meta {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--muted);
}

.inline-warning {
  color: var(--amber);
  border-color: rgba(201, 136, 18, 0.18);
  background: var(--amber-soft);
}

.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.audit-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.audit-item strong {
  display: block;
  margin-bottom: 4px;
}

.audit-item span {
  color: var(--muted);
  font-size: 13px;
}

.subsection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.subsection-pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.regulatory-note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(75, 103, 255, 0.07);
  border: 1px solid rgba(75, 103, 255, 0.14);
  color: var(--muted);
  line-height: 1.6;
}

.label-preview {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(75, 103, 255, 0.18);
  background: linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.label-preview-head,
.label-preview-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.label-preview-head strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.label-preview-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.pictogram-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pictogram-grid span {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(75, 103, 255, 0.1);
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(28, 44, 79, 0.1);
  background: rgba(247, 249, 254, 0.9);
}

.progress-step.done {
  border-color: rgba(41, 138, 86, 0.18);
  background: rgba(230, 247, 237, 0.95);
}

.progress-step strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nested-panel {
  padding: 20px;
  background: rgba(247, 249, 254, 0.72);
}

.review-section-stack,
.review-table-stack,
.review-field-stack {
  display: grid;
  gap: 16px;
}

.review-section-card,
.review-table-card,
.review-field-card {
  border: 1px solid rgba(28, 44, 79, 0.1);
  border-radius: 20px;
  background: rgba(247, 249, 254, 0.76);
}

.review-section-card {
  padding: 18px;
}

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

.review-section-head h3,
.review-table-meta strong,
.review-field-main strong {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.review-section-head p,
.review-table-meta span,
.review-field-main p {
  margin: 0;
}

.review-table-card,
.review-field-card {
  padding: 14px 16px;
}

.review-table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(28, 44, 79, 0.08);
  background: #fff;
}

.mini-review-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.mini-review-table th,
.mini-review-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(28, 44, 79, 0.08);
  font-size: 14px;
  vertical-align: top;
}

.mini-review-table th {
  color: #49576b;
  background: rgba(247, 249, 254, 0.92);
}

.review-field-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.review-field-main {
  display: grid;
  gap: 8px;
}

.review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-badges em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(75, 103, 255, 0.12);
}

.review-field-value {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}

.review-field-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
}

.review-field-meta strong {
  color: var(--text);
}

.review-actions {
  align-self: stretch;
}

@media (max-width: 1279px) {
  .marketing-hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(50px, 4.8vw, 62px);
  }

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

  .feature-grid.six-up,
  .pricing-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1023px) {
  .landing-topbar,
  .landing-nav,
  .auth-support-links {
    flex-wrap: wrap;
  }

  .marketing-shell {
    width: min(100%, calc(100% - 28px));
  }

  .marketing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }

  .landing-auth-column {
    width: 100%;
    justify-self: stretch;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(44px, 8vw, 56px);
  }

  .feature-grid.six-up,
  .value-grid,
  .audience-grid,
  .pricing-showcase,
  .steps-row,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .preview-layout,
  .section-workspace,
  .section-editor-layout,
  .validation-columns,
  .autofill-grid,
  .review-field-card,
  .field-grid.three-columns,
  .compact,
  .section-card-grid {
    grid-template-columns: 1fr;
  }

  .review-table-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .cookie-backdrop {
    padding: 12px;
  }

  .cookie-modal {
    max-height: 92vh;
    border-radius: 26px;
  }

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

  .cookie-actions .primary-button,
  .cookie-actions .secondary-button,
  .cookie-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .cookie-option-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-switch {
    align-self: flex-start;
  }

  .marketing-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 16px;
  }

  .landing-section {
    padding: 24px 18px;
  }

  .landing-topbar {
    border-radius: 28px;
    padding: 16px;
  }

  .landing-topbar.is-hidden-on-scroll {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - 36px));
  }

  .landing-nav a,
  .landing-nav-link {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 10vw, 44px);
    line-height: 1.03;
  }

  .landing-section-head p {
    font-size: 16px;
  }

  .premium-auth-card {
    padding: 24px;
  }

  .auth-preview-card {
    display: none;
  }

  .checkout-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 18px;
  }

  .checkout-layout,
  .checkout-success-meta {
    grid-template-columns: 1fr;
  }

  .checkout-form-card,
  .checkout-summary-card,
  .checkout-success-card {
    padding: 22px;
  }

  .checkout-radio-row,
  .checkout-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-summary-card {
    position: static;
  }

  .section-editor-hero,
  .sticky-save-bar,
  .section-editor-nav-head,
  .subsection-editor-head {
    flex-direction: column;
    align-items: stretch;
  }

  .section-overview-head,
  .section-rail-item {
    grid-template-columns: 1fr;
  }

  .section-overview-metrics,
  .section-rail-list {
    grid-template-columns: 1fr;
  }
}

.sticky-save-bar {
  position: sticky;
  top: 98px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(75, 103, 255, 0.12);
  box-shadow: 0 14px 32px rgba(36, 56, 99, 0.08);
}

.sticky-save-actions {
  align-items: center;
}

.topbar-actions .is-active {
  color: var(--brand);
  border-color: rgba(75, 103, 255, 0.18);
  background: rgba(75, 103, 255, 0.1);
}

@media (min-width: 1024px) and (max-width: 1439px) {
  :root {
    --app-padding: 24px;
    --sidebar-width: 270px;
    --wizard-nav-width: 290px;
  }

  .topbar {
    padding: 20px 24px;
  }

  .page-section,
  .panel-card {
    padding: 24px;
  }

  .section-workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

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

  .section-rail-list {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
  }

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

  .section-editor-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

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

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

  .preview-frame {
    min-height: 980px;
  }

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

@media (min-width: 1440px) {
  :root {
    --app-padding: 32px;
    --sidebar-width: 292px;
    --wizard-nav-width: 320px;
  }

  .wizard-layout,
  .two-panel {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .section-workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .section-rail-list {
    grid-template-columns: repeat(8, minmax(132px, 1fr));
  }

  .section-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-section {
    padding: 32px;
  }

  .preview-frame {
    min-height: 1180px;
  }
}
