@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/inter/Inter-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter/Inter-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter/Inter-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter/Inter-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter/Inter-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter/Inter-ExtraBold.woff2") format("woff2");
}

/* ============================================
   Synaptic Labs Portal - Baseline tokens
   ============================================ */

:root {
  color-scheme: light;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --color-brand-start: #a8008e;
  --color-brand-mid: #c82390;
  --color-brand-end: #ff5f95;
  --brand-gradient: linear-gradient(
    135deg,
    #a8008e 0%,
    #ab038e 20%,
    #b60f8f 40%,
    #c82390 60%,
    #e13f92 80%,
    #ff5f95 100%
  );
  --brand-gradient-soft: linear-gradient(
    135deg,
    rgba(168, 0, 142, 0.045) 0%,
    rgba(171, 3, 142, 0.045) 20%,
    rgba(182, 15, 143, 0.04) 40%,
    rgba(200, 35, 144, 0.045) 60%,
    rgba(225, 63, 146, 0.05) 80%,
    rgba(255, 95, 149, 0.055) 100%
  );
  --page-bg: #f7f8fb;
  --page-ink: #1f2937;
  --page-muted: #64748b;
  --surface: #ffffff;
  --surface-muted: #f3f4f8;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --neutral-bg: #eef1f6;
  --neutral-bg-strong: #e2e8f0;
  --neutral-border: rgba(148, 163, 184, 0.5);
  --neutral-border-strong: rgba(100, 116, 139, 0.5);
  --section-title-ink: var(--page-ink);
  --label-ink: var(--page-muted);
  --pill-bg: var(--surface-muted);
  --pill-bg-subtle: var(--neutral-bg);
  --pill-border: var(--border-subtle);
  --badge-bg: var(--neutral-bg);
  --badge-border: var(--neutral-border);
  --badge-ink: var(--page-ink);
  --status-bg: var(--neutral-bg);
  --status-border: var(--neutral-border);
  --status-ink: var(--page-ink);
  --required-bg: var(--neutral-bg);
  --required-border: var(--neutral-border);
  --required-ink: var(--page-muted);
  --option-selected-bg: var(--neutral-bg);
  --option-selected-border: var(--neutral-border);
  --option-selected-shadow: var(--shadow-soft);
  --accent-1: #a8008e;
  --accent-2: #c82390;
  --accent-3: #ff5f95;
  --accent-soft: rgba(100, 116, 139, 0.04);
  --accent-soft-strong: rgba(100, 116, 139, 0.08);
  --accent-border: rgba(148, 163, 184, 0.4);
  --focus-ring: rgba(148, 163, 184, 0.25);
  --halo-1: rgba(15, 23, 42, 0.05);
  --halo-2: rgba(15, 23, 42, 0.04);
  --halo-3: rgba(15, 23, 42, 0.03);
  --slide-bg-odd: var(--surface);
  --slide-bg-even: var(--neutral-bg);
  --slide-border: var(--neutral-border);
  --slide-shadow: var(--shadow-elevated);
  --slide-title-ink: var(--page-ink);
  --slide-title-size: clamp(1.6rem, 2.1vw, 2.15rem);
  --slide-gap: 0.8rem;
  --slide-padding: 1.9rem;
  --slide-padding-compact: 1.35rem;
  --error-ink: #b42318;
  --error-bg: #fef3f2;
  --error-border: rgba(180, 35, 24, 0.35);
  --cta-gradient: var(--brand-gradient-soft);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --content-max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.dark {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

::selection {
  background: rgba(236, 72, 153, 0.2);
  color: #831843;
}

.bg-brand-gradient {
  background: var(--surface);
  background-image: var(--brand-gradient-soft);
  background-repeat: no-repeat;
  background-size: cover;
}

.text-brand-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up-sm {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up-lg {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(241, 245, 249, 0.8) 0%,
    rgba(226, 232, 240, 0.8) 50%,
    rgba(241, 245, 249, 0.8) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 0.75rem;
}

/* ============================================
   MediaPlan.dev UI extensions
   ============================================ */

body {
  background: var(--page-bg);
  color: var(--page-ink);
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 65%;
  background: radial-gradient(circle at 18% 35%, var(--halo-1), transparent 55%),
    radial-gradient(circle at 72% 12%, var(--halo-2), transparent 50%),
    radial-gradient(circle at 82% 70%, var(--halo-3), transparent 55%);
  opacity: 0.6;
  z-index: -1;
}

.page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--brand-gradient-soft);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--page-muted);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--page-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note {
  font-size: 0.85rem;
  color: var(--page-muted);
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.report-body {
  background: var(--page-bg);
  color: var(--page-ink);
}

.report-page {
  gap: 2rem;
}

.report-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.report-hero-copy h1 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.report-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.report-section {
  padding: var(--slide-padding);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slide-border);
  box-shadow: var(--slide-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: fade-in-up 0.6s ease both;
  animation-delay: calc(var(--section-index, 0) * 0.05s);
}

.report-section:nth-child(odd) {
  background: var(--slide-bg-odd);
}

.report-section:nth-child(even) {
  background: var(--slide-bg-even);
}

.report-section h2 {
  font-size: var(--slide-title-size);
  margin: 0;
  color: var(--slide-title-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.report-subtitle {
  font-size: 1.18rem;
  margin: 0.4rem 0 0;
  color: var(--page-ink);
  font-weight: 600;
}

.report-paragraph {
  margin: 0;
  color: var(--page-ink);
  font-size: 0.95rem;
  line-height: 1.6;
}

.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.report-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--page-ink);
}

.report-list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent-3);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.report-table-wrapper {
  border-radius: 1rem;
  border: 1px solid var(--slide-border);
  background: var(--surface);
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.report-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--page-muted);
  padding: 0.75rem 0.9rem;
  background: var(--neutral-bg);
  border-bottom: 1px solid var(--border-subtle);
}

.report-table td {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--page-ink);
  font-size: 0.9rem;
  line-height: 1.5;
  vertical-align: top;
}

.report-table tr:nth-child(even) td {
  background: var(--surface-muted);
}

.report-link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-link:hover {
  color: var(--accent-1);
}

.session-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--page-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--page-ink);
  font-size: 0.85rem;
  border: 1px solid var(--pill-border);
}

.pill.subtle {
  background: var(--pill-bg-subtle);
  border-color: var(--pill-border);
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stepper-panel {
  padding: 1.75rem 2rem;
}

.stepper {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stepper-step {
  flex: 1 1 220px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stepper-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.stepper-marker {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--page-ink);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.stepper-copy {
  flex: 1;
  min-width: 0;
}

.stepper-title {
  display: block;
  font-weight: 600;
  color: var(--page-ink);
  font-size: 0.98rem;
}

.stepper-detail {
  display: block;
  color: var(--page-muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.stepper-state {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--page-muted);
  white-space: nowrap;
}

.stepper-step.is-active {
  border-color: var(--neutral-border-strong);
  box-shadow: var(--shadow-elevated);
}

.stepper-step.is-active .stepper-marker {
  background: var(--surface);
  border-color: var(--neutral-border-strong);
}

.stepper-step.is-complete .stepper-marker {
  background: var(--neutral-bg);
  border-color: var(--neutral-border-strong);
}

.stepper-step.is-complete .stepper-state {
  color: var(--page-ink);
}

.stepper-button[aria-disabled="true"] {
  cursor: not-allowed;
}

.stepper-step.is-disabled {
  opacity: 0.65;
  box-shadow: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--section-title-ink);
  font-weight: 700;
}

.section-subtitle {
  margin: 0.5rem 0 0;
  color: var(--page-muted);
}

.badge-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.35rem 0.65rem;
  border-radius: 0.75rem;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border: 1px solid var(--badge-border);
  font-size: 0.85rem;
}

.question-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.question-header h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.question-meta {
  font-size: 0.85rem;
  color: var(--page-muted);
}

.question-description {
  margin: 0.25rem 0 0.5rem;
  color: var(--page-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 42rem;
}

.question-input {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.question-input.has-error {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid var(--error-border);
  background: var(--error-bg);
}

.question-input.group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.question-input.group-grid > * {
  min-width: 0;
  max-width: 100%;
}

.group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  grid-auto-flow: row;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.group-grid > * {
  min-width: 0;
  max-width: 100%;
}

.group-field {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-x: hidden;
}

.group-field.has-error {
  border-color: var(--error-border);
  background: var(--error-bg);
  box-shadow: 0 12px 24px -20px rgba(180, 35, 24, 0.45);
}

.group-field.has-error .input,
.group-field.has-error textarea,
.group-field.has-error .select-input {
  border-color: var(--error-border);
  box-shadow: none;
}

.group-field.compact {
  padding: 0.85rem;
}

.group-field-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.group-field-title {
  font-size: 1rem;
  margin: 0;
}

.group-field-meta {
  font-size: 0.8rem;
  color: var(--page-muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}

.option-grid.has-error .option-button {
  border-color: var(--error-border);
  box-shadow: none;
}

.option-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.4rem;
}

.option-button {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  text-align: left;
  font-weight: 600;
  color: var(--page-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.option-button.compact {
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.option-button.is-selected {
  border-color: var(--option-selected-border);
  background: var(--option-selected-bg);
  box-shadow: var(--option-selected-shadow);
  transform: translateY(-2px);
}

.input,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-size: 1rem;
  color: var(--page-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input.compact,
textarea.compact {
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
}

.select-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem 2.2rem 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-size: 1rem;
  color: var(--page-ink);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--page-muted) 50%),
    linear-gradient(135deg, var(--page-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 3px), calc(100% - 0.9rem) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-input.compact {
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  font-size: 0.92rem;
}

.input:focus,
textarea:focus,
.select-input:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.input.is-invalid,
textarea.is-invalid,
.select-input.is-invalid {
  border-color: var(--error-border);
  background: var(--error-bg);
  box-shadow: none;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.input-grid > * {
  min-width: 0;
  max-width: 100%;
}

.input-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--label-ink);
}

.custom-input {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  overflow-x: hidden;
}

.custom-input * {
  box-sizing: border-box;
}

.custom-input > * {
  min-width: 0;
  max-width: 100%;
}

.custom-input label {
  font-size: 0.85rem;
  color: var(--label-ink);
  display: block;
  margin-bottom: 0;
}

.custom-input .input,
.custom-input input,
.custom-input textarea,
.custom-input select,
.custom-input .select-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.multi-select {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.chip-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--label-ink);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  min-height: 2.6rem;
  max-width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
  color: var(--page-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.chip.placeholder {
  border-style: dashed;
  color: var(--page-muted);
  background: var(--neutral-bg);
  font-weight: 500;
}

.multi-select-list {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  max-height: 260px;
  overflow-y: auto;
}

.multi-select-option {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  color: var(--page-ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.multi-select-option input {
  width: 1rem;
  height: 1rem;
}

.multi-select-option:hover {
  background: var(--surface-muted);
}

.multi-select-option input:checked + span {
  color: var(--page-ink);
}

.input-grid.date-range {
  grid-template-columns: repeat(2, minmax(0, 150px));
  gap: 0.6rem;
  width: min(100%, 320px);
  max-width: 100%;
  min-width: 0;
  align-items: start;
}

.input-grid.date-range .input-stack {
  min-width: 0;
}

.input-grid.date-range .input,
.input-grid.date-range input {
  width: 100%;
  max-width: 100%;
}

.input.input-short {
  width: min(100%, 110px);
  max-width: 110px;
  justify-self: start;
}

.compact-input {
  width: min(100%, 200px);
  max-width: 200px;
  justify-self: start;
}

.group-field.compact .input,
.group-field.compact .select-input,
.group-field.compact input,
.group-field.compact select {
  width: min(100%, 200px);
  max-width: 200px;
  min-width: 0;
  align-self: flex-start;
}

.required-marker {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--required-border);
  background: var(--required-bg);
  color: var(--required-ink);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--error-ink);
}

.question-error {
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--error-border);
  background: var(--surface);
  color: var(--error-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.question-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.planner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
}

.cta-copy h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cta-copy p {
  margin: 0.35rem 0 0;
  color: var(--page-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button.primary {
  border: 1px solid var(--accent-border);
  background: var(--surface);
  color: var(--accent-1);
  box-shadow: var(--shadow-soft);
}

.button.secondary {
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--page-ink);
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--page-ink);
}

.button.link {
  background: transparent;
  border: none;
  color: var(--page-muted);
  padding: 0.3rem 0.2rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  box-shadow: none;
}

.button.cta {
  background: var(--page-ink);
  color: var(--surface);
  border: 1px solid var(--page-ink);
  box-shadow: var(--shadow-elevated);
}

.button.link:not(:disabled):hover {
  color: var(--page-ink);
  transform: none;
}

.button.cta:not(:disabled):hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
  color: #991b1b;
}

.hidden {
  display: none;
}

.status-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--page-muted);
}

.status-log li {
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--page-ink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  animation: fade-in-up-sm 0.4s ease;
}

.status-log li.is-active {
  background: var(--neutral-bg);
  border-color: var(--neutral-border-strong);
}

.status-log li.is-complete {
  background: var(--surface-muted);
  color: var(--page-muted);
}

.status-log li.is-error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-ink);
}

.status-text {
  flex: 1;
  min-width: 0;
}

.status-spinner {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--neutral-border);
  border-top-color: var(--page-ink);
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.slide-deck {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.slide {
  padding: var(--slide-padding);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slide-border);
  box-shadow: var(--slide-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--slide-gap);
  animation: fade-in-up 0.6s ease both;
  animation-delay: calc(var(--slide-index, 0) * 0.05s);
}

.slide:nth-child(odd) {
  background: var(--slide-bg-odd);
}

.slide:nth-child(even) {
  background: var(--slide-bg-even);
}

.slide-title {
  font-size: var(--slide-title-size);
  margin: 0;
  color: var(--slide-title-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.slide-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--page-ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

.slide-grid {
  display: grid;
  gap: 0.65rem;
}

.slide-row {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.slide-label {
  color: var(--page-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.slide-value {
  color: var(--page-ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.empty-state {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--neutral-bg);
  color: var(--page-muted);
  text-align: center;
}

.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.focus-ring {
  outline: none;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }

  .report-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .report-hero-copy {
    max-width: 38rem;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 2rem 1.1rem 3rem;
  }

  .panel {
    padding: 1.5rem;
  }

  .slide {
    padding: var(--slide-padding-compact);
  }

  .report-hero {
    padding: 2rem 1.5rem;
  }

  .report-section {
    padding: var(--slide-padding-compact);
  }

  .report-table {
    min-width: 520px;
  }

  .input-grid.date-range {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .slide-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }
}

/* ============================================
   MediaPlan Deck Overhaul v0.2.0
   ============================================ */

:root {
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-copy: "Inter", "Segoe UI", sans-serif;
  --page-bg: #ece9e2;
  --page-ink: #1b2536;
  --page-muted: #51617a;
  --surface: #fffdf8;
  --surface-muted: #f3f6fb;
  --border-subtle: rgba(27, 37, 54, 0.16);
  --neutral-bg: #ecf1f9;
  --neutral-bg-strong: #dce7f6;
  --neutral-border: rgba(27, 37, 54, 0.22);
  --neutral-border-strong: rgba(27, 37, 54, 0.42);
  --shadow-soft: 0 16px 32px -28px rgba(16, 27, 45, 0.48);
  --shadow-elevated: 0 36px 64px -42px rgba(16, 27, 45, 0.58);
  --accent-1: #12253d;
  --accent-2: #9b2f6d;
  --accent-3: #e2862f;
  --brand-gradient: linear-gradient(118deg, #102843 0%, #1f4473 24%, #8b2f72 63%, #e2862f 100%);
  --brand-gradient-soft: linear-gradient(
    140deg,
    rgba(16, 40, 67, 0.12) 0%,
    rgba(31, 68, 115, 0.1) 25%,
    rgba(139, 47, 114, 0.1) 62%,
    rgba(226, 134, 47, 0.11) 100%
  );
  --slide-bg-odd: #fffdf8;
  --slide-bg-even: #f5f8fc;
  --slide-border: rgba(27, 37, 54, 0.16);
  --slide-shadow: 0 30px 56px -42px rgba(16, 27, 45, 0.48);
  --slide-title-size: clamp(1.9rem, 3vw, 2.9rem);
  --slide-padding: clamp(1.65rem, 2.3vw, 2.35rem);
  --slide-padding-compact: 1.2rem;
  --content-max: 1320px;
  --radius-lg: 1.1rem;
  --radius-xl: 1.6rem;
  --focus-ring: rgba(31, 68, 115, 0.25);
  --option-selected-bg: rgba(16, 40, 67, 0.06);
  --option-selected-border: rgba(31, 68, 115, 0.54);
}

body {
  font-family: var(--font-copy);
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(180deg, #f3f0e8 0%, #ece9e2 100%);
  color: var(--page-ink);
}

body::before {
  inset: 0;
  height: 52vh;
  opacity: 0.94;
  background:
    radial-gradient(circle at 12% 10%, rgba(31, 68, 115, 0.12), transparent 42%),
    radial-gradient(circle at 86% 4%, rgba(139, 47, 114, 0.16), transparent 40%),
    linear-gradient(120deg, rgba(16, 40, 67, 0.06) 0%, rgba(226, 134, 47, 0.06) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(16, 40, 67, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 40, 67, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 68%);
  z-index: -1;
}

.page {
  padding: 2.75rem 1.6rem 4.4rem;
  gap: 2rem;
}

.hero,
.report-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  border: 1px solid rgba(16, 40, 67, 0.22);
  box-shadow: 0 42px 74px -56px rgba(16, 27, 45, 0.7);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 246, 239, 0.98) 42%, rgba(240, 243, 250, 0.97) 100%);
}

.hero::before,
.report-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(16, 40, 67, 0.09), rgba(155, 47, 109, 0.08), rgba(226, 134, 47, 0.07));
  opacity: 0.72;
  pointer-events: none;
}

.hero-copy,
.hero-actions,
.report-hero-copy,
.report-actions {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: rgba(16, 40, 67, 0.72);
}

.hero h1,
.report-hero-copy h1,
.section-header h2,
.slide-title,
.report-section h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: #112841;
}

.hero h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2.35rem, 4.1vw, 4rem);
  line-height: 0.98;
}

.text-brand-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 46rem;
  font-size: 1.06rem;
  line-height: 1.6;
  color: rgba(27, 37, 54, 0.82);
}

.session-meta {
  margin-top: 1.3rem;
}

.session-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(16, 40, 67, 0.72);
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(16, 40, 67, 0.24);
  background: rgba(255, 255, 255, 0.84);
  color: #13263f;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.pill.subtle {
  background: rgba(16, 40, 67, 0.06);
}

.panel {
  position: relative;
  overflow: hidden;
  gap: 1.35rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(16, 40, 67, 0.2);
  background: linear-gradient(175deg, rgba(255, 253, 248, 0.98) 0%, rgba(244, 248, 253, 0.98) 100%);
  box-shadow: 0 28px 52px -44px rgba(16, 27, 45, 0.64);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  opacity: 0.86;
}

.section-header h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  margin: 0;
}

.section-subtitle {
  color: rgba(27, 37, 54, 0.76);
  font-size: 0.98rem;
  max-width: 45rem;
}

.badge {
  background: rgba(16, 40, 67, 0.08);
  border-color: rgba(16, 40, 67, 0.24);
  color: #11253c;
  font-weight: 600;
}

.button {
  min-height: 2.65rem;
  padding: 0.72rem 1.28rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button.primary {
  border: 1px solid rgba(16, 40, 67, 0.25);
  background: linear-gradient(135deg, rgba(16, 40, 67, 0.96), rgba(31, 68, 115, 0.95));
  color: #f9fbff;
  box-shadow: 0 18px 28px -22px rgba(16, 40, 67, 0.68);
}

.button.secondary,
.button.ghost {
  border: 1px solid rgba(16, 40, 67, 0.22);
  background: rgba(255, 255, 255, 0.75);
  color: #13263f;
}

.button.link {
  border: 1px solid rgba(16, 40, 67, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: #13263f;
  text-decoration: none;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
}

.button.cta {
  border: 1px solid rgba(16, 40, 67, 0.35);
  background: var(--brand-gradient);
  color: #fffdf9;
  box-shadow: 0 22px 36px -28px rgba(155, 47, 109, 0.7);
}

.button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -24px rgba(16, 27, 45, 0.55);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stepper-step {
  border-radius: 1.05rem;
  border: 1px solid rgba(16, 40, 67, 0.18);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 253, 0.95));
  box-shadow: 0 20px 34px -30px rgba(16, 27, 45, 0.44);
}

.stepper-button {
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
}

.stepper-marker {
  width: 1.8rem;
  height: 1.8rem;
  font-size: 0.75rem;
  border: 1px solid rgba(16, 40, 67, 0.26);
  background: rgba(16, 40, 67, 0.05);
}

.stepper-title {
  font-size: 0.89rem;
  color: #11263f;
}

.stepper-detail {
  margin-top: 0.12rem;
  font-size: 0.76rem;
  line-height: 1.35;
}

.stepper-state {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.stepper-step.is-active {
  border-color: rgba(16, 40, 67, 0.58);
  box-shadow: 0 24px 42px -30px rgba(16, 40, 67, 0.6);
}

.stepper-step.is-active .stepper-marker {
  border-color: rgba(16, 40, 67, 0.64);
  background: rgba(16, 40, 67, 0.12);
}

.question-card,
.status-card {
  border-radius: 1.05rem;
  border: 1px solid rgba(16, 40, 67, 0.18);
  background: linear-gradient(175deg, rgba(248, 251, 255, 0.96), rgba(255, 254, 251, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.question-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  letter-spacing: -0.01em;
}

.question-description,
.question-meta {
  color: rgba(27, 37, 54, 0.76);
}

.group-field {
  border-color: rgba(16, 40, 67, 0.16);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 24px -26px rgba(16, 27, 45, 0.56);
}

.group-field-title {
  color: #11253f;
  font-weight: 700;
}

.group-field-meta,
.input-label,
.chip-header {
  color: rgba(27, 37, 54, 0.7);
  font-weight: 600;
}

.option-button {
  border-radius: 0.85rem;
  border-color: rgba(16, 40, 67, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.option-button.is-selected {
  border-color: rgba(31, 68, 115, 0.64);
  background: linear-gradient(160deg, rgba(16, 40, 67, 0.1), rgba(31, 68, 115, 0.1));
  color: #0f253e;
}

.input,
textarea,
.select-input {
  border-radius: 0.85rem;
  border-color: rgba(16, 40, 67, 0.24);
  background: rgba(255, 255, 255, 0.96);
}

.input:focus,
textarea:focus,
.select-input:focus {
  border-color: rgba(31, 68, 115, 0.72);
}

.status-header {
  font-weight: 700;
  color: #11263f;
}

.status-log {
  gap: 0.62rem;
}

.status-log li {
  border-radius: 0.8rem;
  border-color: rgba(16, 40, 67, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 28px -30px rgba(16, 27, 45, 0.62);
}

.status-log li.is-active {
  border-color: rgba(31, 68, 115, 0.62);
  background: linear-gradient(145deg, rgba(16, 40, 67, 0.14), rgba(31, 68, 115, 0.12));
}

.status-spinner {
  border-color: rgba(31, 68, 115, 0.3);
  border-top-color: rgba(16, 40, 67, 0.9);
}

.cta-row {
  border-radius: 1.1rem;
  border-color: rgba(16, 40, 67, 0.26);
  background: linear-gradient(142deg, rgba(16, 40, 67, 0.1), rgba(155, 47, 109, 0.11), rgba(226, 134, 47, 0.1));
}

.cta-copy h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: #0f243c;
}

.cta-copy p {
  color: rgba(16, 40, 67, 0.84);
}

.slide-deck,
.report-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  counter-reset: deck-section;
}

.slide,
.report-section {
  position: relative;
  overflow: hidden;
  min-height: clamp(23rem, 56vh, 42rem);
  padding: var(--slide-padding);
  border-radius: 1.5rem;
  border: 1px solid rgba(16, 40, 67, 0.2);
  background: linear-gradient(182deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 254, 0.98));
  box-shadow: 0 42px 72px -58px rgba(16, 27, 45, 0.68);
  gap: 0.95rem;
  counter-increment: deck-section;
}

.slide::before,
.report-section::before {
  content: counter(deck-section, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 40, 67, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(16, 40, 67, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 2;
}

.slide::after,
.report-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 95% 0%, rgba(31, 68, 115, 0.08), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(155, 47, 109, 0.06), transparent 34%);
  pointer-events: none;
}

.slide > *,
.report-section > * {
  position: relative;
  z-index: 1;
}

.slide-title,
.report-section h2 {
  margin: 0;
  max-width: calc(100% - 4rem);
  line-height: 1.02;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  color: #102843;
}

.slide-grid {
  gap: 0.72rem;
  margin-top: 0.2rem;
}

.slide-row {
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.66rem 0.74rem;
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 40, 67, 0.13);
}

.slide-list {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  font-size: 1.01rem;
  line-height: 1.52;
  gap: 0.7rem;
}

.slide-label {
  color: rgba(16, 40, 67, 0.66);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.slide-value {
  color: #13263f;
  font-size: 1.01rem;
  line-height: 1.56;
  font-weight: 600;
}

.report-subtitle {
  margin: 0.4rem 0 0;
  padding-top: 0.86rem;
  border-top: 1px dashed rgba(16, 40, 67, 0.24);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.15;
}

.report-paragraph {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.66;
  color: rgba(27, 37, 54, 0.95);
}

.report-list {
  gap: 0.7rem;
}

.report-list li {
  font-size: 1rem;
  line-height: 1.58;
}

.report-list li::before {
  width: 0.52rem;
  height: 0.52rem;
  margin-top: 0.45rem;
  background: linear-gradient(130deg, #8b2f72 0%, #e2862f 100%);
}

.report-table-wrapper {
  margin-top: 0.2rem;
  border-radius: 0.95rem;
  border-color: rgba(16, 40, 67, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.report-table {
  min-width: 680px;
}

.report-table th {
  padding: 0.86rem 0.92rem;
  border-bottom-color: rgba(16, 40, 67, 0.24);
  background: linear-gradient(180deg, rgba(16, 40, 67, 0.11), rgba(16, 40, 67, 0.06));
  color: #102843;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.report-table td {
  padding: 0.86rem 0.92rem;
  font-size: 0.95rem;
  line-height: 1.54;
  border-top-color: rgba(16, 40, 67, 0.17);
  background: rgba(255, 255, 255, 0.78);
}

.report-table tr:nth-child(even) td {
  background: rgba(240, 245, 252, 0.85);
}

.report-link {
  color: #183f68;
  text-decoration-thickness: 1px;
}

.report-link:hover {
  color: #0f2b47;
}

.empty-state {
  border: 1px dashed rgba(16, 40, 67, 0.24);
  background: rgba(16, 40, 67, 0.06);
  color: rgba(16, 40, 67, 0.76);
}

.alert {
  border-color: rgba(185, 43, 28, 0.42);
  background: rgba(255, 237, 230, 0.94);
  color: #8f2215;
}

.report-page {
  gap: 2.2rem;
}

.report-hero {
  padding: 2.1rem 2rem;
}

.report-hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.1rem, 4.1vw, 3.75rem);
}

.report-container {
  gap: 2rem;
}

@media (max-width: 1080px) {
  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .slide-row {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  }
}

@media (max-width: 840px) {
  body::after {
    background-size: 42px 42px;
  }

  .page {
    padding: 2rem 1rem 3rem;
    gap: 1.35rem;
  }

  .hero,
  .panel,
  .report-hero,
  .slide,
  .report-section {
    border-radius: 1.18rem;
  }

  .panel {
    padding: 1.35rem;
  }

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

  .stepper-button {
    padding: 0.82rem 0.9rem;
  }

  .slide,
  .report-section {
    min-height: auto;
    padding: 1.15rem;
    gap: 0.76rem;
  }

  .slide::before,
  .report-section::before {
    top: 0.75rem;
    right: 0.75rem;
    width: 1.95rem;
    height: 1.95rem;
    font-size: 0.64rem;
  }

  .slide-title,
  .report-section h2 {
    max-width: calc(100% - 3rem);
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .report-subtitle {
    font-size: 1.15rem;
  }

  .report-table {
    min-width: 560px;
  }

  .report-actions {
    justify-content: flex-start;
  }

  .report-hero {
    padding: 1.5rem 1.2rem;
  }
}

/* ============================================
   Synaptic Palette Alignment v0.2.1
   ============================================ */

:root {
  --color-brand-start: #a8008e;
  --color-brand-mid: #c82390;
  --color-brand-end: #ff5f95;
  --brand-gradient: linear-gradient(
    135deg,
    #a8008e 0%,
    #ab038e 20%,
    #b60f8f 40%,
    #c82390 60%,
    #e13f92 80%,
    #ff5f95 100%
  );
  --brand-gradient-soft: linear-gradient(
    135deg,
    rgba(168, 0, 142, 0.07) 0%,
    rgba(200, 35, 144, 0.06) 55%,
    rgba(255, 95, 149, 0.07) 100%
  );
  --page-bg: #f8fafc;
  --page-ink: #0f172a;
  --page-muted: #475569;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --neutral-bg: #f1f5f9;
  --neutral-bg-strong: #e2e8f0;
  --neutral-border: rgba(148, 163, 184, 0.5);
  --neutral-border-strong: rgba(100, 116, 139, 0.52);
  --focus-ring: rgba(236, 72, 153, 0.3);
  --accent-1: #a8008e;
  --accent-2: #c82390;
  --accent-3: #ff5f95;
}

body {
  background: var(--page-bg);
}

body::before {
  height: 45%;
  opacity: 0.52;
  background: radial-gradient(circle at 14% 20%, rgba(168, 0, 142, 0.05), transparent 48%),
    radial-gradient(circle at 82% 8%, rgba(255, 95, 149, 0.06), transparent 46%);
}

body::after {
  display: none;
}

.hero,
.report-hero,
.panel,
.slide,
.report-section,
.question-card,
.status-card {
  background: var(--surface);
}

.hero::before,
.report-hero::before {
  background: var(--brand-gradient-soft);
  opacity: 0.45;
}

.panel::before {
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0.92;
}

.button.primary,
.button.cta {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: rgba(168, 0, 142, 0.34);
}

.button.secondary,
.button.ghost,
.button.link {
  background: var(--surface);
  color: var(--page-ink);
}

.stepper-step.is-active {
  border-color: rgba(200, 35, 144, 0.55);
}

.stepper-step.is-active .stepper-marker,
.stepper-step.is-complete .stepper-marker {
  border-color: rgba(200, 35, 144, 0.5);
  background: rgba(200, 35, 144, 0.08);
}

.status-log li.is-active {
  border-color: rgba(200, 35, 144, 0.45);
  background: rgba(200, 35, 144, 0.06);
}

.status-spinner {
  border-top-color: var(--color-brand-mid);
}

.slide::after,
.report-section::after {
  background: radial-gradient(circle at 96% 2%, rgba(200, 35, 144, 0.07), transparent 34%);
}

.report-list li::before {
  background: var(--color-brand-mid);
}

.report-link {
  color: #9f1f76;
}

.report-link:hover {
  color: #7f1a5e;
}
