:root {
  /* TravelLine Design System v1.0 — Classic mode */
  --tl-ink: #2B3D56;
  --tl-blue: #227BDD;
  --tl-blue-hover: #0B51B1;
  --tl-blue-400: #4A9AE8;
  --tl-pink: #F0285A;
  --tl-pink-hover: #FF4C79;
  --tl-pink-active: #D11E4A;
  --tl-violet: #7F00BE;
  --tl-success: #1DA870;
  --tl-warning: #E8A30A;
  --tl-danger: #E23858;
  --tl-surface: #F6F8FB;
  --tl-white: #FFFFFF;

  --color-ink: var(--tl-ink);
  --color-blue: var(--tl-blue);
  --color-blue-hover: var(--tl-blue-hover);
  --color-cta: var(--tl-pink);
  --color-cta-hover: var(--tl-pink-hover);
  --color-cta-active: var(--tl-pink-active);
  --color-success: var(--tl-success);
  --color-warning: var(--tl-warning);
  --color-danger: var(--tl-danger);
  --color-surface: var(--tl-surface);
  --color-surface-raised: var(--tl-white);
  --color-text: var(--tl-ink);
  --color-text-muted: #5A6B82;
  --color-border: #D8E3EF;
  --color-input-border: #C5D4E4;
  --color-error-bg: #FEF0F3;
  --color-error-text: var(--tl-danger);
  --color-focus-ring-blue: rgba(34, 123, 221, 0.35);
  --color-focus-ring-pink: rgba(240, 40, 90, 0.4);
  --shadow-sh-1: 0 1px 3px rgba(43, 61, 86, 0.08);
  --shadow-sh-2: 0 4px 16px rgba(43, 61, 86, 0.1);
  --shadow-shell: 0 8px 32px rgba(43, 61, 86, 0.08);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 180ms;
  --radius-btn: 6px;
  --radius-card: 14px;
  --radius-lg: 20px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --space-xs: var(--s-2);
  --space-sm: var(--s-3);
  --space-md: var(--s-4);
  --space-lg: var(--s-6);
  --space-xl: var(--s-8);
  --font-display: "Roboto Condensed", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.app-shell {
  width: min(1120px, calc(100% - var(--space-lg)));
  margin: 0 auto;
  padding: var(--space-lg) 0 calc(var(--s-12) + 72px);
}

.main-content { display: flex; flex-direction: column; gap: var(--space-md); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  background: var(--color-surface-raised);
  border: 1px solid rgba(34, 123, 221, 0.12);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-shell);
}

.hero, .panel, .actions {
  background: var(--color-surface-raised);
  border: 1px solid rgba(34, 123, 221, 0.12);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-shell);
}

.logo img { height: 32px; width: auto; display: block; }

.topbar p, .hero p, .section-head p, .how-card p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  max-width: 70ch;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: var(--space-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
}

.eyebrow, .section-head span {
  color: var(--color-blue);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1, h2, h3 {
  font-family: var(--font-body);
  margin: 0;
  color: var(--color-blue);
}

h1 { font-size: 2rem; font-weight: 800; line-height: 1.16; margin-top: var(--space-sm); }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.21; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.28; margin-bottom: var(--space-sm); }

.how-card {
  align-self: end;
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #0B51B1 0%, #002353 100%);
  color: var(--color-surface-raised);
}

.how-card strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.how-card p { color: rgba(255, 255, 255, 0.88); }
.how-card ol {
  margin: var(--space-sm) 0 0;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  list-style: none;
  padding: 0;
}

.step {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  border-radius: var(--radius-btn);
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.step:hover:not(.active) {
  border-color: var(--tl-blue-400);
  color: var(--color-blue);
}

.step.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-surface-raised);
}

.panel { padding: var(--space-xl); margin-bottom: var(--space-md); }
.hidden { display: none !important; }
.section-head { margin-bottom: var(--space-lg); }
.section-head.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cards { display: grid; gap: var(--space-md); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }

.choice-card {
  min-height: 160px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.choice-card:hover {
  border-color: var(--tl-blue-400);
}

.choice-card.selected {
  border-color: var(--color-blue);
  background: rgba(34, 123, 221, 0.04);
  box-shadow: var(--shadow-sh-2);
  transform: translateY(-2px);
}

.choice-card strong {
  display: block;
  color: var(--color-blue);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.choice-card p, .small {
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
  font-size: 14px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.wide-field { grid-column: 1 / -1; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-xl);
}

@media (min-width: 1024px) {
  .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.field {
  display: grid;
  grid-template-rows: auto 44px minmax(40px, auto);
  gap: var(--s-2);
  align-content: start;
}

.field label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  min-height: 20px;
}

.field-label { flex: 1; min-width: 0; }

.field-hint {
  margin: 0;
  min-height: 40px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.field-hint--empty {
  visibility: hidden;
  pointer-events: none;
}

.field input, .field select, .field textarea, .threshold-input {
  width: 100%;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-btn);
  padding: 0 var(--space-sm);
  height: 44px;
  min-height: 44px;
  background: var(--color-surface-raised);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.field input:hover, .field select:hover, .field textarea:hover, .threshold-input:hover {
  border-color: var(--tl-blue-400);
}

.field input:focus, .field select:focus, .field textarea:focus, .threshold-input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px var(--color-focus-ring-blue);
}

.field textarea { min-height: 112px; resize: vertical; padding-top: var(--space-sm); }

.field.error input, .field.error select, .field.error textarea {
  border-color: var(--color-error-text);
}

.field.expert-only:not(.show) { display: none; }

.expert-panel .field.expert-only { display: block; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.errors {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-btn);
  background: var(--color-error-bg);
  color: var(--color-error-text);
  margin-bottom: var(--space-md);
  font-size: 14px;
}

.errors div + div { margin-top: 4px; }

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  position: sticky;
  bottom: var(--space-md);
  z-index: 4;
}

.actions-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

.levels-info-row--benefits {
  margin-top: var(--s-2);
  color: var(--color-text);
}

.levels-naming-block {
  margin-bottom: var(--space-md);
}

.levels-naming-title {
  margin: 0 0 var(--s-2);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.levels-naming-copy {
  margin: 0 0 var(--space-md);
  line-height: 1.55;
}

.primary, .ghost {
  border: 0;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  min-height: 48px;
  min-width: 44px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: background var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.primary {
  background: var(--color-cta);
  color: var(--color-surface-raised);
}

.primary:hover:not(:disabled) { background: var(--color-cta-hover); }
.primary:active:not(:disabled) { background: var(--color-cta-active); }

.primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus-ring-pink);
  outline-offset: 2px;
}

.ghost {
  background: transparent;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
}

.ghost:hover:not(:disabled) {
  background: rgba(34, 123, 221, 0.08);
}

.ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus-ring-blue);
}

.primary:disabled, .ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.kpi {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.kpi span {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.kpi strong {
  display: block;
  margin-top: var(--space-xs);
  color: var(--color-blue);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
}

.kpi.highlight {
  background: rgba(29, 168, 112, 0.08);
  border-color: rgba(29, 168, 112, 0.25);
}

.kpi.highlight strong { color: var(--color-success); }

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.result-card {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.result-card h3 {
  margin-bottom: 0;
}

.chart-wrap {
  position: relative;
  flex: 1;
  min-height: 260px;
  height: 260px;
  padding: var(--s-2) 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-sm) 0 var(--space-md);
  font-size: 14px;
}

.wide { grid-column: 1 / -1; }

th, td {
  padding: 12px var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

td.num {
  text-align: right;
  white-space: nowrap;
}

th {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 600;
  background: transparent;
  font-size: 13px;
}

tbody tr:hover td {
  background: rgba(34, 123, 221, 0.04);
}

.threshold-input {
  width: 100%;
  min-width: 7.5rem;
  max-width: 9rem;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}

.loyalty-levels-table th:nth-child(4),
.loyalty-levels-table td:nth-child(4) {
  min-width: 120px;
}

.threshold-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
}

.threshold-unit {
  color: var(--color-text-muted);
  font-size: 13px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.recommend-copy p {
  margin: 0 0 var(--space-sm);
  line-height: 1.55;
}

.recommend-copy p:last-child {
  margin-bottom: 0;
}

.recommend-table-wrap {
  overflow-x: auto;
}

.loyalty-levels-table {
  margin: 0;
  min-width: 360px;
}

.loyalty-levels-table th:last-child,
.loyalty-levels-table td.num {
  text-align: right;
}

.loyalty-levels-table th:nth-child(2) {
  width: 45%;
}

.source-note {
  margin: 0 var(--space-xs) var(--space-lg);
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 70ch;
}

.levels-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--space-md);
  font-size: 14px;
  color: var(--color-text);
}

.levels-info-sep { color: var(--color-text-muted); }

.result-section {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.result-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.result-section-title {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-blue);
}

.levels-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.levels-toolbar .levels-info-row {
  margin: 0;
}

.levels-name-select {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 600;
}

.levels-name-select select {
  min-width: 200px;
}

.loyalty-levels-table .threshold-input {
  max-width: 140px;
}

.hero--hidden { display: none; }

.progress-mobile {
  display: none;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
}

.step.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero-result {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(34, 123, 221, 0.06) 0%, rgba(29, 168, 112, 0.08) 100%);
  border: 1px solid rgba(34, 123, 221, 0.15);
}

.hero-result-body { flex: 1; min-width: 0; }

.hero-result-eyebrow {
  margin: 0 0 var(--s-2);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.hero-result-value {
  margin: 0 0 var(--s-3);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-success);
}

.hero-result-value--positive { color: var(--color-success); }

.hero-result-value--negative { color: var(--color-error-text); }

.hero-result-note {
  margin: 0 0 var(--space-md);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.hero-result-note--warning {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-btn);
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.hero-result-summary {
  margin: 0 0 var(--space-md);
  color: var(--color-text);
  max-width: 62ch;
}

.hero-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(34, 123, 221, 0.1);
  color: var(--color-blue);
}

.badge-winner {
  background: rgba(29, 168, 112, 0.12);
  color: var(--color-success);
}

.hero-result-cta { flex-shrink: 0; align-self: center; }

.kpi-grid-secondary {
  margin-bottom: var(--space-lg);
  grid-template-columns: repeat(2, 1fr);
}

.kpi-grid-secondary .kpi strong {
  font-size: 1.25rem;
}

.result-card.flat {
  padding: var(--space-md) 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.charts-grid { margin-top: var(--space-md); }

.form-section { margin-bottom: var(--space-xl); }

.form-section-title {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-blue);
}

.form-section-expert { margin-bottom: 0; }

.expert-details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.expert-details:hover,
.expert-details[open] {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 1px rgba(34, 123, 221, 0.12);
}

.expert-details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--color-ink);
}

.expert-details-summary::-webkit-details-marker { display: none; }

.expert-details-summary::after {
  content: "▼";
  flex-shrink: 0;
  font-size: 11px;
  color: var(--color-blue);
  transition: transform var(--duration-fast) var(--ease-out);
}

.expert-details[open] .expert-details-summary::after {
  transform: rotate(180deg);
}

.expert-toggle-label { font-weight: 700; }

.expert-toggle-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
  text-align: right;
}

.expert-panel {
  padding: 0 var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.expert-panel-note { margin: var(--space-md) 0; }

.live-preview {
  position: sticky;
  bottom: calc(72px + var(--s-3));
  z-index: 3;
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--color-ink);
  color: var(--color-surface-raised);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sh-2);
}

.live-preview--muted {
  background: var(--color-text-muted);
  font-weight: 500;
  font-size: 14px;
}

.live-preview--negative {
  background: #8b2e2e;
  font-weight: 600;
}

.optional-tag {
  margin-left: var(--s-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.confirm-dialog {
  width: min(420px, calc(100% - var(--space-lg)));
  padding: var(--space-lg);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sh-2);
}

.confirm-dialog::backdrop { background: rgba(43, 61, 86, 0.45); }

.confirm-dialog h3 { margin: 0 0 var(--s-2); color: var(--color-blue); }

.confirm-dialog p { margin: 0 0 var(--space-lg); color: var(--color-text-muted); }

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
}

.pdf-extra { display: none; }

.pdf-root {
  position: fixed;
  left: 0;
  top: 0;
  width: 794px;
  background: #ffffff;
  color: #2b3d56;
  font-family: "Open Sans", Arial, sans-serif;
  pointer-events: none;
}

.pdf-doc {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdf-page {
  position: relative;
  box-sizing: border-box;
  width: 794px;
  min-height: 1123px;
  padding: 36px 44px 48px;
  background: #ffffff;
  overflow: hidden;
}

.pdf-page-num {
  position: absolute;
  right: 44px;
  bottom: 20px;
  margin: 0;
  font-size: 11px;
  color: #6b7c93;
}

.pdf-logo {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

.pdf-summary {
  margin: 0 0 12px;
  line-height: 1.55;
}

.pdf-header {
  margin-bottom: 24px;
  border-bottom: 2px solid #227bdd;
  padding-bottom: 16px;
}

.pdf-doc,
.pdf-page {
  font-size: 13px;
  line-height: 1.5;
}

.pdf-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #227bdd;
}

.pdf-subtitle {
  margin: 0;
  color: #6b7c93;
  font-size: 14px;
}

.pdf-hero {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(34, 123, 221, 0.06);
}

.pdf-hero-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7c93;
}

.pdf-hero-value {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  color: #1da870;
}

.pdf-hero-value--negative { color: #c0392b; }

.pdf-hero-meta {
  margin: 0;
  font-size: 13px;
  color: #2b3d56;
}

.pdf-section {
  margin-bottom: 20px;
  page-break-inside: avoid;
}

.pdf-section h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #227bdd;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

.pdf-table th,
.pdf-table td {
  border: 1px solid #d8dee8;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.pdf-table th {
  background: rgba(34, 123, 221, 0.08);
  font-weight: 700;
}

.pdf-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pdf-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #d8dee8;
  font-size: 12px;
  color: #6b7c93;
}

.pdf-small { font-size: 11px; }

@media (max-width: 900px) {
  .hero, .cards.three, .cards.two, .form-grid, .kpi-grid, .charts-grid, .recommend-grid, .setup-grid {
    grid-template-columns: 1fr;
  }

  .levels-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .progress { display: none; }
  .progress-mobile { display: block; }
  .hero-result { flex-direction: column; }
  .hero-result-cta { align-self: stretch; width: 100%; }
  .section-head.row, .topbar { flex-direction: column; align-items: stretch; }
  .actions { flex-wrap: wrap; }
  .actions-group { width: 100%; justify-content: space-between; }
  h1 { font-size: 1.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .choice-card.selected { transform: none; }
}

@media print {
  body * {
    visibility: hidden;
  }

  #report,
  #report * {
    visibility: visible;
  }

  #report {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .topbar,
  .hero,
  .progress,
  .progress-mobile,
  .actions,
  .source-note,
  .panel:not([data-panel="4"]),
  #downloadPdf,
  .confirm-dialog,
  .pdf-root {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .panel {
    box-shadow: none;
    border: 0;
  }
}
