﻿:root {
  --color-bg: #ebe3f5;
  --color-bg-accent: #ffe8dc;
  --color-surface: #fffefb;
  --color-text: #14181f;
  --color-muted: #5c6573;
  --color-tertiary: #8b939e;
  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  --color-accent-soft: #e8f7f2;
  --color-accent-ring: rgba(13, 148, 136, 0.2);
  --vivid-cyan: #06b6d4;
  --vivid-emerald: #10b981;
  --vivid-amber: #f59e0b;
  --vivid-rose: #f43f5e;
  --vivid-violet: #8b5cf6;
  --vivid-sky: #0ea5e9;
  --ornament-a: linear-gradient(90deg, var(--vivid-cyan), var(--vivid-emerald), var(--vivid-amber));
  --ornament-b: linear-gradient(90deg, var(--vivid-amber), var(--vivid-rose));
  --color-border: rgba(20, 24, 31, 0.08);
  --color-border-strong: rgba(20, 24, 31, 0.14);
  --panel-stroke: rgba(48, 42, 68, 0.16);
  --panel-stroke-light: rgba(255, 255, 255, 0.78);
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 24, 31, 0.06), 0 1px 3px rgba(20, 24, 31, 0.04);
  --shadow-panel:
    0 0 0 1px var(--panel-stroke-light),
    0 0 0 2px rgba(48, 42, 68, 0.06),
    0 1px 2px rgba(32, 28, 52, 0.05),
    0 10px 32px rgba(36, 30, 58, 0.11),
    0 28px 56px -18px rgba(36, 30, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 24, 31, 0.08), 0 2px 8px rgba(20, 24, 31, 0.04);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  /* Kompozycja: rytm 8px → ~φ (13 / 21 / 34) */
  --space-xs: 8px;
  --space-sm: 13px;
  --space-md: 21px;
  --space-lg: 34px;
  --compose-intro-max: 34ch;
  --compose-stage-inset: 1px;
  /* Obrys ramki jak RozsianiZebrani mockups-v2 */
  --border-strong: #8f99a8;
  --ui-stroke: 1.5px solid var(--border-strong);
  --ui-shadow-tile:
    0 1px 2px rgba(15, 20, 25, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  /* Kafle + przyciski — ten sam obrys co „Przejdź do sklepu” (btn-accent) */
  --ui-kafel-radius: var(--radius-xs);
  --ui-kafel-shadow-accent: 0 2px 10px rgba(13, 148, 136, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background-color: #dce2eb;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(26, 86, 219, 0.11) 0%, transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(196, 30, 58, 0.07) 0%, transparent 38%),
    radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 1.25rem auto;
  padding: 24px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: calc(100dvh - 2.5rem);
  box-sizing: border-box;
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #e8edf5 0%, #dfe6f0 45%, #d5dde9 100%);
  box-shadow: 0 4px 24px rgba(15, 20, 25, 0.08);
}

.app-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 4px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--color-text);
}

.brand-hook {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-muted);
  letter-spacing: -0.01em;
}

.brand-tag {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 450;
}

.brand-wordmark {
  margin: 8px 0 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(120deg, #0f766e 0%, #0891b2 38%, #059669 72%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.steps {
  display: flex;
  gap: 3px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
}

/* Wstążka jak na dalszych krokach — zawsze 4 kolory; .on = pełna jasność (postęp). */
.step-dot {
  flex: 1;
  height: 5px;
  border-radius: 0;
  opacity: 0.28;
  transition: opacity 0.25s ease;
}

.step-dot:nth-child(1) {
  background: linear-gradient(90deg, var(--vivid-cyan), var(--vivid-sky));
}

.step-dot:nth-child(2) {
  background: linear-gradient(90deg, var(--vivid-sky), var(--vivid-emerald));
}

.step-dot:nth-child(3) {
  background: linear-gradient(90deg, var(--vivid-emerald), var(--vivid-amber));
}

.step-dot:nth-child(4) {
  background: linear-gradient(90deg, var(--vivid-amber), var(--vivid-rose));
}

.step-dot.on {
  opacity: 1;
}

.screen {
  display: none;
  animation: fade 0.28s ease;
}

.screen.active {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.screen-frame {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.screen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.screen-nav .back {
  margin-bottom: 0;
  flex-shrink: 0;
}

.screen-nav .model-chip {
  margin-bottom: 0;
  max-width: 58%;
  justify-content: flex-end;
  text-align: right;
}

.screen-nav--solo .back {
  margin-right: auto;
}

/* Kontekst sesji — jawne powroty (telefon / duperel), rozdzielone miejsca */
.session-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: var(--space-md);
}

.session-bar .model-chip {
  margin-bottom: 0;
  align-self: flex-start;
  max-width: 100%;
}

.session-bar__context {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid var(--color-border);
}

.model-chip--compact {
  flex-wrap: wrap;
  row-gap: 2px;
}

.model-chip__prefix {
  font-weight: 550;
  color: var(--color-muted);
}

.back--session {
  width: 100%;
  margin-bottom: 0;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
}

.back--session:hover,
.back--session:focus-visible {
  transform: none;
}

.back--secondary {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Powrót z wyniku — mniej treści nad polami Od/Do */
.screen-budget--quick .screen-intro,
.screen-budget--quick .budget-rule {
  display: none;
}

.screen-budget--quick .session-bar__context {
  display: none;
}

.screen-budget--quick .session-bar {
  margin-bottom: var(--space-sm);
}

.screen-budget--quick .note-box {
  margin-bottom: 12px;
}

.screen-budget--quick .run-fieldset {
  scroll-margin-top: 12vh;
  scroll-margin-bottom: 12vh;
}

.screen-intro {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.screen-intro h1 {
  max-width: 92%;
}

.screen-intro .lead {
  margin-bottom: 0;
  max-width: var(--compose-intro-max);
}

.budget-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: none;
  width: 100%;
}

.budget-lead__type {
  display: block;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.budget-lead__type:empty {
  display: none;
}

.budget-lead__hint {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
}

.screen-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.screen-stage > .panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.screen-frame--result .screen-stage {
  justify-content: center;
}

.panel-actions {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.panel-actions .btn {
  margin-top: 0;
}

.panel--choices {
  padding: 16px 14px 18px;
}

.panel--choices .section-label:first-child {
  margin-top: 2px;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

h1 {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lead {
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.entry-tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.entry-tile {
  padding: 18px 16px;
}

.steps--hidden {
  visibility: hidden;
}

/* Ramka kafli — wspólny obrys z btn-accent / btn-ghost */
.model-pick,
.model-pick--brand,
.choice,
.choice.compact,
.back,
.session-bar .model-chip {
  border: var(--ui-stroke);
  border-radius: var(--ui-kafel-radius);
  box-shadow: var(--ui-shadow-tile);
}

.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  background: var(--color-surface);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.choice.compact {
  padding: 11px 12px;
}

.model-pick,
.choice.compact {
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.model-pick:hover,
.model-pick:focus-visible,
.choice:hover,
.choice:focus-visible,
.choice.compact:hover,
.choice.compact:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  outline: none;
  transform: none;
  box-shadow: var(--ui-shadow-tile);
}

.choice-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.choice-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.choice.compact .choice-title {
  font-size: 0.8125rem;
  font-weight: 550;
}

.choice.compact .choice-sub {
  margin-top: 3px;
  font-size: 0.75rem;
}

.panel {
  background: var(--color-surface);
  border: var(--ui-stroke);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  box-shadow: var(--shadow-panel);
  position: relative;
}

.panel::after {
  content: "";
  position: absolute;
  inset: var(--compose-stage-inset);
  border-radius: calc(var(--radius) - 1px);
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(48, 42, 68, 0.04);
}

.run-fieldset {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.run-fieldset legend {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 10px;
  padding: 0;
  color: var(--color-text);
}

.run-hint {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--color-tertiary);
}

label.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

input[type="search"],
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border: var(--ui-stroke);
  border-radius: var(--radius-xs);
  font: inherit;
  background: #fafbfc;
  box-shadow: var(--ui-shadow-tile);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input[type="search"]:hover,
input[type="number"]:hover {
  background: #fff;
}

.model-picker {
  margin-top: 12px;
  max-height: min(26rem, 42vh);
  overflow-y: auto;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
}

.model-pick--brand .model-pick__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.3;
}

.model-pick--brand {
  padding-top: 9px;
  padding-bottom: 9px;
}

.model-pick--brand:hover,
.model-pick--brand:focus-visible {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--tile-accent, var(--color-accent)) 8%, var(--color-accent-soft));
}

.model-brand-back-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.model-brand-back {
  padding: 8px 12px;
  font-size: 0.8125rem;
}

.model-brand-label--inline {
  margin: 0;
  flex: 1 1 auto;
}

.model-picker-section--flat {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.model-picker-section + .model-picker-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.model-brand-label {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-tertiary);
}

.model-brand-sub {
  margin: 10px 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
}

.model-brand-sub:first-of-type {
  margin-top: 0;
}

.model-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.model-pick {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 550;
  color: inherit;
}

.model-pick.selected {
  border: var(--ui-stroke);
  border-color: var(--color-accent);
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  color: #fff;
  font-weight: 650;
  box-shadow: var(--ui-shadow-tile), var(--ui-kafel-shadow-accent);
}

.model-pick.selected:hover,
.model-pick.selected:focus-visible {
  background: linear-gradient(135deg, #0f766e 0%, #0284c7 100%);
  color: #fff;
  border-color: var(--color-accent-hover);
}

#model-search.model-search--selected {
  background: linear-gradient(135deg, #ecfeff 0%, #ecfdf5 100%);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.15), 0 0 0 3px var(--color-accent-ring);
}

.model-form-error {
  margin: 12px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-danger, #b42318);
}

.model-picker-empty {
  margin: 0;
  padding: 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-xs);
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}

input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-ring);
  background: #fff;
}

.budget-range--unified {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.budget-range--unified span {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--color-surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.model-chip button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.model-chip button:hover {
  color: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--ui-kafel-radius);
  border: var(--ui-stroke);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn + .btn {
  margin-top: 10px;
}

.btn-primary,
.btn-accent {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 45%, #059669 100%);
  color: #fff;
  border-color: rgba(15, 118, 110, 0.65);
  box-shadow: var(--ui-shadow-tile), var(--ui-kafel-shadow-accent);
}

.btn-primary:hover,
.btn-accent:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0284c7 50%, #047857 100%);
  box-shadow: var(--ui-shadow-tile), 0 4px 16px rgba(14, 165, 233, 0.28);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-accent:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-muted);
}

.btn-ghost:hover {
  border-color: var(--color-accent-ring);
  color: var(--color-text);
}

/* Akcje na karcie wyniku — wyraźniejsze niż ghost w formularzu */
.decision-card .btn-ghost {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  color: #0f766e;
  font-weight: 650;
}

.decision-card .btn-ghost:hover,
.decision-card .btn-ghost:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  outline: none;
}

.decision-card .btn-accent + .btn-ghost,
.decision-card .btn-primary + .btn-ghost {
  margin-top: 14px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-md);
  padding: 10px 16px 10px 14px;
  min-height: 44px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.1s;
}

.back:hover,
.back:focus-visible {
  border-color: var(--vivid-cyan);
  background: linear-gradient(135deg, #fff 0%, #ecfeff 100%);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(6, 182, 212, 0.15);
  outline: none;
  transform: translateX(-2px);
}

.back:active {
  transform: translateX(0);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-a {
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
  color: #0f766e;
  border: var(--ui-stroke);
}

.badge-b {
  background: linear-gradient(135deg, #ffedd5, #ffe4e6);
  color: #c2410c;
  border: var(--ui-stroke);
}

.badge-b--market {
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.35);
}

.decision-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: min(520px, 72vh);
}

.decision-hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.decision-actions {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.decision-actions [hidden] {
  display: none !important;
}

.decision-actions .btn + .btn {
  margin-top: 10px;
}

.decision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--ornament-a);
  border-radius: var(--radius) var(--radius) 0 0;
}

#screen-b .decision-card::before {
  background: var(--ornament-b);
}

.decision-card h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.decision-meta {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

#decision-sub {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent-hover);
}

.stanb-message {
  margin: var(--space-sm) 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text);
  max-width: var(--compose-intro-max);
}

.decision-facts {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
}

.decision-facts li {
  padding: 12px 14px;
  background: #f8fafb;
  border: var(--ui-stroke);
  border-radius: var(--ui-kafel-radius);
  line-height: 1.45;
  box-shadow: var(--ui-shadow-tile);
}

.decision-facts li:first-child {
  background: linear-gradient(135deg, #ecfeff 0%, #ecfdf5 100%);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.decision-facts li:first-child strong {
  font-weight: 650;
  color: var(--color-text);
}

.decision-facts li:nth-child(2) {
  font-size: 1.0625rem;
  font-weight: 650;
  color: #047857;
  background: linear-gradient(90deg, #fff 0%, #fffbeb 100%);
}

.decision-operator {
  margin: var(--space-sm) 0 0;
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted, #64748b);
  background: #f1f5f9;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-xs);
}

.decision-operator-line {
  display: block;
}

.decision-operator-line + .decision-operator-line {
  margin-top: 6px;
}

.decision-freshness {
  margin: var(--space-sm) 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted, #64748b);
}

.decision-shop-hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-muted, #64748b);
  text-align: center;
  max-width: 22rem;
}

.model-detect-banner {
  margin: var(--space-sm) 0 0;
  padding: 12px 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #0f766e;
  background: linear-gradient(135deg, #ecfdf5 0%, #ecfeff 100%);
  border: var(--ui-stroke);
  border-radius: var(--radius-xs);
  box-shadow: var(--ui-shadow-tile);
}

.section-label {
  margin: 20px 0 10px;
  padding-left: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c3aed;
  border-left: 3px solid var(--vivid-violet);
}

.section-label:first-child {
  margin-top: 0;
}

.escape {
  margin-top: 16px;
}

.beta-banner {
  position: relative;
  flex-shrink: 0;
  padding: 10px 14px 10px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 254, 255, 0.55) 100%);
  backdrop-filter: blur(8px);
  border: var(--ui-stroke);
  border-radius: var(--radius-sm);
  box-shadow: var(--ui-shadow-tile);
  font-size: 0.75rem;
  color: var(--color-tertiary);
  box-shadow: none;
  overflow: hidden;
}

.beta-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--vivid-cyan), var(--vivid-violet));
}

.beta-banner__title {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 650;
  background: linear-gradient(90deg, #0891b2, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.01em;
}

.beta-banner__text {
  margin: 0;
  line-height: 1.5;
  text-align: left;
  text-wrap: pretty;
}

#screen-model .screen-intro .lead.lead--paired {
  max-width: 92%;
  text-align: left;
  text-wrap: pretty;
  hyphens: none;
}

#screen-model .screen-intro .lead.lead--paired .lead__line {
  display: block;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

#screen-model .screen-intro .lead.lead--paired .lead__line + .lead__line {
  margin-top: 0.35em;
}

.beta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.beta-share-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
}

.beta-share-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.beta-share-panel__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--color-text);
}

.beta-share-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: var(--ui-stroke);
  border-radius: var(--ui-kafel-radius);
  background: var(--color-surface);
  color: var(--color-muted);
  font: inherit;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--ui-shadow-tile);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.beta-share-close:hover,
.beta-share-close:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: var(--color-accent-soft);
  outline: none;
}

.beta-share-lead {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted, #64748b);
}

.share-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}

.share-url-row input {
  flex: 1 1 12rem;
  min-width: 0;
}

.beta-share-ok {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: #047857;
}

.beta-share-warn {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: #b45309;
}

.beta-banner__feedback {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: none;
}

.beta-banner__feedback:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.beta-feedback-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(14, 165, 233, 0.12);
}

.beta-feedback-form .field-label {
  margin-top: 10px;
}

.beta-feedback-form .field-label:first-child {
  margin-top: 0;
}

.beta-feedback-form select,
.beta-feedback-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: var(--ui-stroke);
  border-radius: var(--radius-xs);
  font: inherit;
  font-size: 0.875rem;
  background: #fff;
  color: var(--color-text);
  box-shadow: var(--ui-shadow-tile);
}

.beta-feedback-form textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.45;
}

.beta-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.beta-feedback-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
}

.beta-feedback-ok {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent-hover);
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: var(--space-lg);
  font-size: 0.75rem;
  color: var(--color-tertiary);
  text-align: center;
  line-height: 1.5;
}

@media (min-height: 700px) {
  .screen-frame:not(.screen-frame--result) .screen-stage {
    padding-bottom: var(--space-xs);
  }

  .panel-actions,
  .decision-actions {
    padding-top: var(--space-lg);
  }
}

.note-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border: var(--ui-stroke);
  border-radius: var(--ui-kafel-radius);
  box-shadow: var(--ui-shadow-tile);
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.budget-rule {
  margin: 0 0 16px;
  padding: 11px 14px;
  background: linear-gradient(90deg, #ecfeff 0%, #ecfdf5 100%);
  border: var(--ui-stroke);
  border-radius: var(--ui-kafel-radius);
  box-shadow: var(--ui-shadow-tile);
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.45;
}

@media (min-width: 420px) {
  .choices-grid,
  .model-picker-grid {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .choice,
  .btn,
  .step-dot {
    animation: none;
    transition: none;
  }
}
