/* DialogGuru Bestandskundenanalyse inside the ruled-paper browser. */
.hero-type .hero-art.selfcheck-browser {
  --browser-frame: #e6e6e6;
  display: grid;
  grid-template-rows: 32px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 570px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 5px solid var(--browser-frame);
  border-radius: 20px;
  background: var(--browser-frame);
  box-shadow: none;
}

.selfcheck-browser__toolbar {
  display: flex;
  align-items: center;
  padding-inline: 14px;
  background: var(--browser-frame);
  user-select: none;
}

.selfcheck-browser__lights { display: flex; align-items: center; gap: 9px; }
.selfcheck-browser__lights span { width: 18px; height: 18px; flex: none; border-radius: 50%; }
.selfcheck-browser__lights span:nth-child(1) { background: #476cf3; }
.selfcheck-browser__lights span:nth-child(2) { background: #f44646; }
.selfcheck-browser__lights span:nth-child(3) { background: #f6bd50; }

.selfcheck-browser__content {
  --notebook-leading: 43.2px;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px 10px 15px 15px;
  background: #f7f7f7;
}

.selfcheck-browser__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.selfcheck-browser__canvas.is-ready { opacity: .75; }

.selfcheck-browser__content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, #27232c0b 0 1.2px, transparent 1.2px);
  background-size: 100% var(--notebook-leading);
  background-position: 0 var(--notebook-rule-phase, 0px);
  background-repeat: repeat;
}

.selfcheck-notebook {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 45.6px;
  width: 100%;
  height: 100%;
  min-height: 528px;
  padding: 72px 32px;
  text-align: center;
}

.selfcheck-notebook__title {
  position: relative;
  width: 100%;
  max-width: 984px;
  margin: 0;
  color: #41444a;
  font-family: var(--font-display);
  font-size: 37.2px;
  font-weight: 500;
  line-height: var(--notebook-leading);
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.selfcheck-notebook__title > span { display: block; }
.selfcheck-notebook__baseline { display: inline-block; width: 0; height: 0; padding: 0; margin: 0; line-height: 0; vertical-align: baseline; }
.selfcheck-notebook__ink { display: inline-block; vertical-align: baseline; color: #41444a; }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .selfcheck-notebook__ink {
    background-image: linear-gradient(to bottom, #5b5e64 0%, #292c32 100%);
    background-size: 100% var(--notebook-ink-height, 129.6px);
    background-position: 0 var(--notebook-ink-offset, 0px);
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.selfcheck-notebook__pill {
  --pill-angle: -3deg;
  display: inline-block;
  margin-inline: 3.6px;
  padding: 0 15.6px;
  border-radius: 12px;
  background: var(--lemon);
  color: inherit;
  font-size: 1em;
  font-weight: 500;
  line-height: inherit;
  white-space: nowrap;
  vertical-align: baseline;
  box-shadow: inset 0 3.6px 3.6px #ffffff35, inset 0 -6px 9.6px #00000018;
  transform: rotate(var(--pill-angle));
  transform-origin: 50% 70%;
}

.selfcheck-notebook__pill--orange { --pill-angle: 3deg; background: var(--orange); }

/* Fixed-height wizard shell, composed like shadcn Card, Progress and Choice Cards. */
.selfcheck-browser[data-selfcheck-state] .selfcheck-notebook {
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  height: 100%;
  min-height: 0;
  padding: clamp(14px, 2.2vw, 24px) clamp(16px, 3.2vw, 34px);
  overflow: hidden;
  text-align: left;
}

.selfcheck-flow {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 1080px;
  margin-inline: auto;
}

.selfcheck-flow__top {
  display: grid;
  grid-template-columns: minmax(138px, .7fr) minmax(420px, 2fr) 38px;
  gap: 18px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid #dcdce0;
  padding: 0 2px 10px;
}

.selfcheck-flow__brand { display: grid; gap: 3px; min-width: 0; }
.selfcheck-flow__eyebrow {
  color: var(--berry);
  font: 700 10px/1.2 var(--font-body);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.selfcheck-flow__brand strong {
  overflow: hidden;
  color: #303238;
  font: 600 14px/1.2 var(--font-body);
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selfcheck-flow__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5b5e64;
  font: 600 11px/1 var(--font-body);
}

.selfcheck-stepper { min-width: 0; }
.selfcheck-stepper ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.selfcheck-stepper ol::before,
.selfcheck-stepper ol::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 10%;
  height: 2px;
  border-radius: 99px;
}
.selfcheck-stepper ol::before { display: none; right: 10%; background: #dedee2; }
.selfcheck-stepper ol::after {
  display: none;
  width: calc(var(--step-progress) * .8);
  background: var(--berry);
  transition: width 420ms cubic-bezier(.22, 1, .36, 1);
}
.selfcheck-stepper li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  color: #8b8d92;
}
.selfcheck-stepper__marker {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border: 0;
  border-radius: 1px;
  background: #d9dadd;
  color: transparent;
  font-size: 0;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.selfcheck-stepper__label {
  overflow: hidden;
  max-width: 100%;
  font: 500 9px/1.1 var(--font-body);
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selfcheck-stepper li.is-complete .selfcheck-stepper__marker {
  border-color: transparent;
  background: #777a80;
  color: transparent;
}
.selfcheck-stepper li.is-current { color: #34363b; }
.selfcheck-stepper li.is-current .selfcheck-stepper__marker {
  border-color: transparent;
  background: #171719;
  color: transparent;
  box-shadow: none;
}

.selfcheck-flow__stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.selfcheck-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: selfcheck-panel-in 280ms cubic-bezier(.22, 1, .36, 1) both;
}
.selfcheck-panel:not(.selfcheck-result) {
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: clamp(20px, 2.4vw, 30px);
  padding-block: clamp(24px, 3vw, 38px);
}
.selfcheck-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  display: none;
}

@keyframes selfcheck-panel-in {
  from { opacity: 0; transform: translateY(7px) scale(.994); }
  to { opacity: 1; transform: none; }
}

.selfcheck-panel__header { padding: 0 clamp(20px, 3vw, 30px); text-align: center; }
.selfcheck-panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 18px;
  margin-bottom: 8px;
  color: var(--berry);
  font: 700 10px/1.2 var(--font-body);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.selfcheck-panel__header h3 {
  max-width: 790px;
  margin: 0 auto;
  color: #2f3238;
  font: 500 37.2px/var(--notebook-leading) var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
  outline: 0;
}
.selfcheck-panel__header p {
  max-width: 690px;
  margin: 6px auto 0;
  color: #686a70;
  font: 400 13px/calc(var(--notebook-leading) / 2) var(--font-body);
  letter-spacing: -.015em;
}
.selfcheck-panel__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 4px clamp(20px, 3vw, 30px) 6px;
  scrollbar-width: thin;
  scrollbar-color: #c9c9cd transparent;
}

.selfcheck-subprogress {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #74767c;
  font: 600 9px/1.2 var(--font-body);
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
}
.selfcheck-subprogress__track {
  display: block;
  width: 72px;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e5e7;
}
.selfcheck-subprogress__track i { display: block; height: 100%; border-radius: inherit; background: #171719; transition: width 320ms ease; }

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

.selfcheck-field { display: grid; gap: 8px; width: min(620px, 100%); }
.selfcheck-field > label {
  color: #3f4248;
  font: 600 12px/1.3 var(--font-body);
  letter-spacing: -.01em;
  text-align: center;
}
.selfcheck-input-wrap { position: relative; }
.selfcheck-input {
  width: 100%;
  height: 56px;
  border: 1px solid #d1d2d6;
  border-radius: 8px;
  padding: 0 17px;
  background: #fff;
  color: #272a30;
  box-shadow: none;
  font: 500 16px/1.2 var(--font-body);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.selfcheck-field--with-suffix .selfcheck-input { padding-right: 50px; }
.selfcheck-input-suffix {
  position: absolute;
  top: 50%;
  right: 17px;
  color: #777980;
  font: 600 15px/1 var(--font-body);
  transform: translateY(-50%);
}
.selfcheck-input:focus {
  border-color: #171719;
  box-shadow: none;
}
.selfcheck-input::placeholder { color: #a0a1a6; font-weight: 400; }

.selfcheck-choice-fieldset { width: 100%; margin: 0; padding: 0; border: 0; }
.selfcheck-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: min(760px, 100%);
  margin-inline: auto;
  padding: 4px;
}
.selfcheck-choice-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.selfcheck-choice-grid--revenue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.selfcheck-choice-card { position: relative; display: block; min-width: 0; cursor: pointer; }
.selfcheck-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.selfcheck-choice-card__surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17px;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  border: 1px solid #d7d7db;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: #45484e;
  box-shadow: none;
  font: 500 12px/1.25 var(--font-body);
  letter-spacing: -.015em;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}
.selfcheck-choice-card__surface i {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1.5px solid #c7c8cc;
  border-radius: 50%;
  background: #fff;
}
.selfcheck-choice-card__surface i::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 150ms ease;
}
.selfcheck-choice-card:hover .selfcheck-choice-card__surface {
  transform: translateY(-1px);
  border-color: #aaaab0;
  box-shadow: none;
}
.selfcheck-choice-card input:focus-visible + .selfcheck-choice-card__surface { outline: 2px solid var(--blue); outline-offset: 2px; }
.selfcheck-choice-card input:checked + .selfcheck-choice-card__surface {
  border-color: #171719;
  background: color-mix(in srgb, #171719 5%, #fff);
  color: #2e3036;
  box-shadow: none;
}
.selfcheck-choice-card input:checked + .selfcheck-choice-card__surface i { border-color: #171719; background: #171719; }
.selfcheck-choice-card input:checked + .selfcheck-choice-card__surface i::after { transform: scale(1); }

.selfcheck-range-card {
  width: min(680px, 100%);
  border: 1px solid #dadade;
  border-radius: 9px;
  padding: 17px 22px 14px;
  background: #fff;
  box-shadow: none;
}
.selfcheck-range-card__value { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.selfcheck-range-card__value output { color: var(--berry); font: 600 28px/1 var(--font-display); letter-spacing: -.045em; }
.selfcheck-range-card__value span { color: #6a6c72; font: 500 11px/1.2 var(--font-body); }
.selfcheck-range-card input[type="range"] { width: 100%; accent-color: #171719; cursor: grab; }
.selfcheck-range-card input[type="range"]:active { cursor: grabbing; }
.selfcheck-range-card__labels { display: flex; justify-content: space-between; margin-top: 4px; color: #98999e; font: 500 9px/1.2 var(--font-body); }

.selfcheck-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border-top: 0;
  padding: 0 clamp(20px, 3vw, 30px) 4px;
  background: transparent;
}
.selfcheck-actions--center { justify-content: center; }
.selfcheck-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 20px;
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, opacity 150ms ease;
}
.selfcheck-button--primary {
  min-width: 128px;
  border-color: #0b0b0c;
  background: linear-gradient(180deg, #29292c 0%, #111113 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.38), 0 3px 0 #050506, 0 7px 12px rgba(20,20,22,.14);
}
.selfcheck-button--primary:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(180deg, #333336 0%, #09090a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.42), 0 4px 0 #050506, 0 8px 14px rgba(20,20,22,.16); }
.selfcheck-gate .selfcheck-button--primary { border-color: #d87d00; background: linear-gradient(180deg, #ffa119 0%, var(--orange) 100%); color: #171719; box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -2px 0 rgba(127,69,0,.24), 0 3px 0 #b76500, 0 7px 12px rgba(159,88,0,.16); }
.selfcheck-gate .selfcheck-button--primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffab2e 0%, #ea8800 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -2px 0 rgba(127,69,0,.28), 0 4px 0 #a95f00, 0 8px 14px rgba(159,88,0,.18); }
.selfcheck-button--primary:disabled { border-color: #999ba0; background: linear-gradient(180deg, #b7b8bc 0%, #999ba0 100%); color: rgba(255,255,255,.94); opacity: 1; cursor: not-allowed; box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 0 rgba(0,0,0,.1), 0 3px 0 #7d7e82, 0 7px 12px rgba(20,20,22,.1); }
.selfcheck-button__arrow { font-size: 17px; transition: transform 150ms ease; }
.selfcheck-button--primary:hover:not(:disabled) .selfcheck-button__arrow { transform: translateX(2px); }
.selfcheck-button--back { border-color: #d2d3d7; background: linear-gradient(180deg, #fff 0%, #f4f4f5 100%); color: #4a4d53; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 0 rgba(47,50,56,.06), 0 3px 0 #c8c9cc, 0 7px 12px rgba(20,20,22,.08); }
.selfcheck-button--back:hover { background: linear-gradient(180deg, #fff 0%, #eeeeef 100%); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 0 rgba(47,50,56,.08), 0 4px 0 #bfc0c3, 0 8px 14px rgba(20,20,22,.1); }
.selfcheck-actions > .selfcheck-button { width: 160px; }
.selfcheck-button:active { transform: translateY(2px) scale(.99); }
.selfcheck-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.selfcheck-gate__body { flex-direction: column; gap: 12px; align-items: center; justify-content: flex-start; }
.selfcheck-gate__body .selfcheck-field { width: min(650px, 100%); }
.selfcheck-consents { display: grid; gap: 8px; width: min(650px, 100%); }
.selfcheck-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #575a60;
  font: 400 11px/1.35 var(--font-body);
  cursor: pointer;
}
.selfcheck-consent input { width: 17px; height: 17px; margin: 0; accent-color: var(--berry); }
.selfcheck-consent a { color: var(--berry); text-decoration: underline; text-underline-offset: 2px; }
.selfcheck-form-error { width: min(650px, 100%); min-height: 15px; margin: -2px 0 0; color: #9a174f; font: 600 11px/1.25 var(--font-body); }

.selfcheck-result { grid-template-rows: minmax(0, 1fr) auto; }
.selfcheck-result__scroll { display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: clamp(24px, 3vw, 34px) clamp(28px, 4vw, 46px) 20px; scrollbar-width: thin; scrollbar-color: #c9c9cd transparent; }
.selfcheck-result__hero { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: clamp(24px, 4vw, 52px); align-items: center; }
.selfcheck-result__kicker { display: block; margin-bottom: 7px; color: var(--berry); font: 700 10px/1.2 var(--font-body); letter-spacing: .075em; text-transform: uppercase; }
.selfcheck-result h3 { margin: 0; color: #303238; font: 500 clamp(20px, 2.2vw, 27px)/1.15 var(--font-display); letter-spacing: -.035em; text-wrap: balance; outline: 0; }
.selfcheck-result h3 strong { display: block; margin: 4px 0 2px; color: var(--berry); font: 600 clamp(42px, 5.2vw, 66px)/.98 var(--font-display); letter-spacing: -.055em; }
.selfcheck-result__estimate { margin: 9px 0 0; color: #666970; font: 450 11px/1.35 var(--font-body); }
.selfcheck-result__score { display: flex; flex-direction: column; justify-content: center; min-height: 112px; border: 1px solid rgba(47,50,56,.18); border-radius: 10px; padding: 18px; background: rgba(255,255,255,.7); color: #2e3035; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.selfcheck-result__score span { color: #65676d; font: 600 10px/1.25 var(--font-body); text-transform: uppercase; letter-spacing: .05em; }
.selfcheck-result__score strong { margin-top: 5px; color: #2f3238; font: 650 36px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.selfcheck-result__score small { margin-top: 3px; color: #777980; font: 500 10px/1.2 var(--font-body); }
.selfcheck-result__details { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(24px, 4vw, 46px); margin-top: 25px; padding-top: 21px; border-top: 1px solid rgba(47,50,56,.15); }
.selfcheck-result__bars, .selfcheck-result__warnings { display: grid; gap: 12px; align-content: start; }
.selfcheck-result__warnings { padding-left: clamp(20px, 3vw, 34px); border-left: 1px solid rgba(47,50,56,.14); }
.selfcheck-result__details h4 { margin: 0 0 3px; color: #3b3e44; font: 650 13px/1.3 var(--font-body); }
.selfcheck-result__bar-label { display: flex; justify-content: space-between; gap: 12px; color: #60636a; font: 550 12px/1.25 var(--font-body); }
.selfcheck-result__track { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(47,50,56,.1); }
.selfcheck-result__track span { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--berry); animation: selfcheck-grow 700ms cubic-bezier(.22, 1, .36, 1) both; }
.selfcheck-result__bar:last-of-type .selfcheck-result__track span { background: var(--orange); }
@keyframes selfcheck-grow { from { width: 0; } }
.selfcheck-result__warnings ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.selfcheck-result__warnings li { position: relative; padding-left: 16px; color: #575a60; font: 450 12px/1.42 var(--font-body); }
.selfcheck-result__warnings li::before { content: "+"; position: absolute; left: 0; color: var(--berry); font-weight: 700; }
.selfcheck-result__footer { flex-direction: column; justify-content: center; gap: 9px; padding: 9px 28px 18px; }
.selfcheck-result__cta { border-color: #d87d00; background: linear-gradient(180deg, #ffa119 0%, var(--orange) 100%); color: #171719; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(127,69,0,.22), 0 3px 0 #b76500, 0 7px 12px rgba(159,88,0,.15); }
.selfcheck-result__footer > .selfcheck-result__cta { width: auto; min-width: 230px; }
.selfcheck-result__cta:hover { transform: translateY(-1px); background: linear-gradient(180deg, #ffac31 0%, #eb8900 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(127,69,0,.25), 0 4px 0 #a95f00, 0 8px 14px rgba(159,88,0,.18); }
.selfcheck-result__save { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .selfcheck-browser[data-selfcheck-state] .selfcheck-notebook { padding: 14px 18px; }
  .selfcheck-panel { height: 100%; }
  .selfcheck-panel:not(.selfcheck-result) { gap: 19px; padding-block: 24px; }
  .selfcheck-flow { grid-template-rows: minmax(0, 1fr); gap: 0; }
  .selfcheck-flow__top { grid-template-columns: minmax(120px, .6fr) minmax(330px, 2fr) 36px; gap: 11px; padding-bottom: 7px; }
  .selfcheck-flow__brand strong { font-size: 12px; }
  .selfcheck-stepper__label { font-size: 8px; }
  .selfcheck-panel__header { padding: 14px 20px 5px; }
  .selfcheck-panel__header h3 { font-size: clamp(22px, 4vw, 28px); }
  .selfcheck-panel__header p { margin-top: 5px; font-size: 11px; }
  .selfcheck-panel__body { padding: 6px 20px 9px; }
  .selfcheck-choice-card__surface { min-height: 44px; padding: 8px 10px; font-size: 10px; }
  .selfcheck-choice-grid { gap: 7px; }
  .selfcheck-actions { min-height: 48px; padding: 3px 20px; }
  .selfcheck-button { min-height: 42px; font-size: 12px; }
}

@media (max-width: 600px) {
  .hero-type .hero-art.selfcheck-browser { min-height: 450px; aspect-ratio: auto; grid-template-rows: 30px minmax(0, 1fr); border-width: 4px; border-radius: 18px; }
  .selfcheck-browser__lights { gap: 7px; }
  .selfcheck-browser__lights span { width: 15px; height: 15px; }
  .selfcheck-browser__content { --notebook-leading: 36px; }
  .selfcheck-notebook { height: auto; min-height: 412px; padding: 42px 18px; gap: 26px; }
  .selfcheck-notebook__title { max-width: 430px; font-size: clamp(21px, 6.4vw, 23px); }
  .selfcheck-notebook__pill { padding-inline: 10px; border-radius: 8px; }
  .selfcheck-browser[data-selfcheck-state] .selfcheck-notebook { height: 100%; min-height: 0; padding: 9px 8px; }
  .selfcheck-panel:not(.selfcheck-result) { gap: 16px; padding-block: 17px; }
  .selfcheck-flow { grid-template-rows: minmax(0, 1fr); gap: 0; }
  .selfcheck-flow__top { grid-template-columns: minmax(0, 1fr) 29px; gap: 8px; padding-bottom: 5px; }
  .selfcheck-flow__brand { display: none; }
  .selfcheck-flow__count { min-width: 29px; height: 22px; border-radius: 7px; font-size: 8px; }
  .selfcheck-stepper ol::before, .selfcheck-stepper ol::after { display: none; }
  .selfcheck-stepper__marker { width: 100%; height: 3px; border: 0; border-radius: 1px; font-size: 0; }
  .selfcheck-stepper__label { display: none; }
  .selfcheck-panel { border-radius: 0; }
  .selfcheck-panel,
  .selfcheck-panel__header,
  .selfcheck-panel__body,
  .selfcheck-actions,
  .selfcheck-field,
  .selfcheck-input-wrap { min-width: 0; max-width: 100%; }
  .selfcheck-panel__header { width: 100%; padding: 12px 4px 4px; }
  .selfcheck-panel__meta { min-height: 14px; margin-bottom: 5px; font-size: 7px; }
  .selfcheck-subprogress { gap: 6px; font-size: 7px; }
  .selfcheck-subprogress__track { width: 45px; height: 3px; }
  .selfcheck-panel__header h3 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(20px, 6.5vw, 24px);
    line-height: 1.06;
    letter-spacing: -.025em;
    white-space: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }
  .selfcheck-panel__header p { margin-top: 4px; font-size: 9px; line-height: 1.3; }
  .selfcheck-panel__body { width: 100%; align-items: flex-start; padding: 7px 10px 8px; overflow-x: hidden; }
  .selfcheck-field { width: 100%; align-self: center; gap: 6px; }
  .selfcheck-field > label { font-size: 9px; }
  .selfcheck-input { box-sizing: border-box; max-width: 100%; height: 44px; border-radius: 11px; padding-inline: 13px; font-size: 13px; }
  .selfcheck-choice-grid, .selfcheck-choice-grid--wide, .selfcheck-choice-grid--revenue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .selfcheck-choice-card__surface { min-height: 38px; border-radius: 6px; padding: 6px 8px; font-size: 8.5px; }
  .selfcheck-choice-card__surface i { width: 13px; height: 13px; }
  .selfcheck-choice-card__surface i::after { inset: 2.5px; }
  .selfcheck-range-card { align-self: center; border-radius: 13px; padding: 13px 15px 10px; }
  .selfcheck-range-card__value output { font-size: 23px; }
  .selfcheck-actions { width: 100%; min-height: 42px; gap: 8px; padding: 2px 10px; }
  .selfcheck-button { min-width: 0; min-height: 38px; border-radius: 6px; padding: 8px 9px; font-size: 9px; }
  .selfcheck-button--primary { min-width: 0; }
  .selfcheck-actions > .selfcheck-button { flex: 1 1 0; width: auto; max-width: 128px; }
  .selfcheck-button__arrow { font-size: 13px; }
  .selfcheck-gate__body { gap: 8px; }
  .selfcheck-consents { gap: 6px; }
  .selfcheck-consent { grid-template-columns: 15px minmax(0, 1fr); gap: 6px; font-size: 7.5px; line-height: 1.25; }
  .selfcheck-consent input { width: 14px; height: 14px; }
  .selfcheck-form-error { font-size: 8px; }
  .selfcheck-result__scroll { justify-content: flex-start; padding: 15px 13px 10px; }
  .selfcheck-result__hero { grid-template-columns: minmax(0, 1fr) 86px; gap: 9px; }
  .selfcheck-result h3 { font-size: 15px; }
  .selfcheck-result h3 strong { margin-block: 3px 1px; font-size: clamp(28px, 8.4vw, 33px); }
  .selfcheck-result__estimate { margin-top: 5px; font-size: 10px; }
  .selfcheck-result__kicker { font-size: 7px; }
  .selfcheck-result__score { min-height: 76px; border-radius: 7px; padding: 9px; }
  .selfcheck-result__score span { font-size: 7.5px; }
  .selfcheck-result__score strong { font-size: 22px; }
  .selfcheck-result__details { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; padding-top: 12px; }
  .selfcheck-result__warnings { padding: 12px 0 0; border-top: 1px solid rgba(47,50,56,.14); border-left: 0; }
  .selfcheck-result__details h4 { font-size: 10px; }
  .selfcheck-result__bar-label { font-size: 9px; }
  .selfcheck-result__warnings li { font-size: 9px; line-height: 1.4; }
  .selfcheck-result__footer { gap: 6px; padding: 6px 13px 10px; }
  .selfcheck-result__footer > .selfcheck-result__cta { flex: 0 1 auto; width: auto; min-width: min(190px, 100%); max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .selfcheck-panel, .selfcheck-result__track span { animation: none; }
  .selfcheck-stepper ol::after, .selfcheck-button, .selfcheck-choice-card__surface { transition: none; }
}
