/* =========================
   UPS content.css
   Clean consolidated version
   ========================= */

/* =========================================================
   Main content layout
   ========================================================= */

.ups-main-content {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 10px 0;
}

.ups-content-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ups-content-inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.ups-content-inner--center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.ups-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* =========================================================
   Mobile sticky step bar
   ========================================================= */

.ups-mobile-step-bar {
  display: none;
}

@media (max-width: 900px) {
  .ups-mobile-step-bar {
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--ups-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .ups-mobile-step-title {
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ups-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ups-mobile-step-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ups-text-soft);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition:
      background-color 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease,
      box-shadow 0.18s ease;
  }

  .ups-mobile-step-toggle:hover,
  .ups-mobile-step-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--ups-border-strong);
    color: var(--ups-text);
    outline: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  }

  .ups-mobile-step-toggle-label {
    white-space: nowrap;
  }
}

/* =========================================================
   Described problem + demo marker
   ========================================================= */

.described-problem {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ups-border);
  color: var(--ups-text-soft);
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: var(--ups-shadow-soft);
}

.described-problem.is-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.described-problem-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ups-demo-problem-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
}

.ups-demo-problem-label--right {
  margin-left: auto;
}

.ups-demo-own-link {
  flex: 0 0 auto;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.ups-demo-own-link:hover,
.ups-demo-own-link:focus-visible {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.11);
  border-color: rgba(37, 99, 235, 0.18);
  outline: none;
}

.ups-demo-own-link.is-attention {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.ups-demo-own-link.is-attention:hover,
.ups-demo-own-link.is-attention:focus-visible {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .described-problem.is-demo {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ups-demo-problem-label--right {
    display: none;
  }
}

/* =========================================================
   Step copy
   ========================================================= */

.app-copy {
  flex: 0 0 auto;
  max-width: 860px;
  min-height: 220px;
}

.app-copy--compact {
  max-width: none;
  min-height: 0;
}

.app-copy h1 {
  margin: 0 0 18px;
  font-family: 'Domine', serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.025em;
  height: calc(2 * 1.05em);
  overflow: hidden;
}

.app-copy h1::after {
  display: none;
  content: none;
}

.app-copy h2 {
  margin: 28px 0 12px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.app-copy p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ups-text-soft);
}

.app-copy p:last-child {
  margin-bottom: 0;
}

.app-copy .closing-line {
  margin-top: 22px;
  font-weight: 600;
  color: var(--ups-text);
}

/* Page title follows active sidebar group */

.ups-layout:has(.ups-nav-group[data-group="foundation"] .ups-nav-link.is-current) .app-copy h1,
.ups-layout:has(.ups-nav-group[data-group="fundament"] .ups-nav-link.is-current) .app-copy h1 {
  color: color-mix(in srgb, var(--ups-fundament) 88%, black 12%);
}

.ups-layout:has(.ups-nav-group[data-group="intent"] .ups-nav-link.is-current) .app-copy h1,
.ups-layout:has(.ups-nav-group[data-group="keuze"] .ups-nav-link.is-current) .app-copy h1 {
  color: color-mix(in srgb, var(--ups-keuze) 88%, black 12%);
}

.ups-layout:has(.ups-nav-group[data-group="formulation"] .ups-nav-link.is-current) .app-copy h1,
.ups-layout:has(.ups-nav-group[data-group="problem"] .ups-nav-link.is-current) .app-copy h1 {
  color: color-mix(in srgb, var(--ups-problem) 88%, black 12%);
}

.ups-layout:has(.ups-nav-group[data-group="analyse"] .ups-nav-link.is-current) .app-copy h1,
.ups-layout:has(.ups-nav-group[data-group="analysis"] .ups-nav-link.is-current) .app-copy h1 {
  color: color-mix(in srgb, var(--ups-analyse) 88%, black 12%);
}

.ups-layout:has(.ups-nav-group[data-group="clarity"] .ups-nav-link.is-current) .app-copy h1,
.ups-layout:has(.ups-nav-group[data-group="inzicht"] .ups-nav-link.is-current) .app-copy h1 {
  color: color-mix(in srgb, var(--ups-inzicht) 88%, black 12%);
}

.ups-layout:has(.ups-nav-group[data-group="resolution"] .ups-nav-link.is-current) .app-copy h1,
.ups-layout:has(.ups-nav-group[data-group="oplossing"] .ups-nav-link.is-current) .app-copy h1 {
  color: color-mix(in srgb, var(--ups-oplossing) 88%, black 12%);
}

/* =========================================================
   Reflection / AI output blocks
   ========================================================= */

.ups-insight-box,
.ups-group-reflection-box,
.ups-final-reflection {
  position: relative;
  margin: 14px 0 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(36, 92, 66, 0.10);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.ups-insight-box::before,
.ups-group-reflection-box::before,
.ups-final-reflection::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(36, 92, 66, 0.34);
}

.ups-insight-kicker {
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #245c42;
}

.ups-insight-text,
.ups-group-reflection-content,
.ups-final-reflection-text,
.ups-final-reflection-content {
  white-space: pre-line;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #334155;
}

.ups-insight-text strong,
.ups-group-reflection-content strong,
.ups-final-reflection-text strong {
  color: #1f2d26;
  font-weight: 700;
}

.ups-insight-text p,
.ups-group-reflection-content p,
.ups-final-reflection-text p {
  margin: 0 0 10px;
}

.ups-insight-text p:last-child,
.ups-group-reflection-content p:last-child,
.ups-final-reflection-text p:last-child {
  margin-bottom: 0;
}

.ups-insight-error {
  color: #8b2e2e;
}

.ups-ai-reflection-box {
  margin: 14px 0 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(74, 144, 226, 0.06);
  border: 1px solid rgba(74, 144, 226, 0.18);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ups-ai-reflection-kicker {
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2c5d9e;
}

.ups-ai-reflection-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2a4a75;
}

/* =========================================================
   Progress beads
   ========================================================= */

.ups-bead-progress {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding: 8px 10px 10px;
}

.ups-bead-chain {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 6px;
  width: 100%;
  position: relative;
}

.ups-bead {
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.15;
  transition:
    opacity 0.25s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.ups-bead.state-1 {
  opacity: 0.45;
}

.ups-bead.state-2 {
  opacity: 1;
  filter: saturate(1.03);
}

.ups-bead.is-current {
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.ups-bead:nth-child(3),
.ups-bead:nth-child(6),
.ups-bead:nth-child(9),
.ups-bead:nth-child(12),
.ups-bead:nth-child(14) {
  margin-right: 6px;
}

.ups-bead[data-group="foundation"],
.ups-bead[data-group="fundament"] {
  color: var(--ups-fundament);
}

.ups-bead[data-group="intent"],
.ups-bead[data-group="keuze"] {
  color: var(--ups-keuze);
}

.ups-bead[data-group="formulation"],
.ups-bead[data-group="problem"] {
  color: var(--ups-problem);
}

.ups-bead[data-group="analyse"],
.ups-bead[data-group="analysis"] {
  color: var(--ups-analyse);
}

.ups-bead[data-group="clarity"],
.ups-bead[data-group="inzicht"] {
  color: var(--ups-inzicht);
}

.ups-bead[data-group="resolution"],
.ups-bead[data-group="oplossing"] {
  color: var(--ups-oplossing);
}

/* =========================================================
   Step input
   ========================================================= */

.ups-step-input-card {
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(36, 92, 66, 0.14);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ups-step-input-copy h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.ups-step-input-copy p {
  margin: 0 0 14px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ups-text-soft);
}

.ups-step-flow-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ups-text-muted);
  opacity: 0.82;
}

.ups-step-input-feedback {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(36, 92, 66, 0.08);
  border: 1px solid rgba(36, 92, 66, 0.12);
  color: var(--ups-oplossing);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.ups-step-input-warning {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 248, 244, 0.96);
  border: 1px solid rgba(180, 60, 60, 0.18);
  color: #8b2e2e;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.ups-step-help-box {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(74, 144, 226, 0.08);
  border: 1px solid rgba(74, 144, 226, 0.18);
  color: #234a7a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ups-step-input-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ups-step-input-textarea {
  width: 100%;
  min-height: 78px;
  max-height: 120px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(36, 92, 66, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ups-text);
  line-height: 1.6;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  resize: vertical;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.ups-step-input-textarea:focus {
  outline: none;
  border-color: rgba(36, 92, 66, 0.36);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(36, 92, 66, 0.09);
}

.ups-step-input-textarea::placeholder {
  color: var(--ups-text-faint);
}

.ups-step-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.start-button,
.ups-text-link,
.ups-btn-primary,
.ups-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.start-button,
.ups-btn-primary {
  border: none;
  background: #1f4d38;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(36, 92, 66, 0.20);
  cursor: pointer;
}

.start-button:hover,
.start-button:focus-visible,
.ups-btn-primary:hover,
.ups-btn-primary:focus-visible {
  background: #183d2d;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(36, 92, 66, 0.24);
  outline: none;
}

.ups-btn-secondary {
  background: #eceff3;
  color: #111827;
}

.ups-btn-secondary:hover,
.ups-btn-secondary:focus-visible {
  background: #e3e7ec;
  outline: none;
}

.ups-help-nudge-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
}

.ups-help-link {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ups-text-muted);
  opacity: 0.48;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.ups-help-link.is-delayed {
  display: none;
}

.ups-help-link.is-visible {
  display: inline-flex;
}

.ups-help-link:hover,
.ups-help-link:focus-visible {
  opacity: 0.9;
  color: var(--ups-text-soft);
  outline: none;
}

.ups-help-link:active {
  transform: translateY(1px);
}

.ups-help-used {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ups-text-muted);
  opacity: 0.34;
  cursor: default;
  white-space: nowrap;
}

/* Group-colored reflection input title */

.ups-step-input-scope.group-foundation .ups-step-input-copy h2,
.ups-step-title.group-foundation,
.ups-step-title.group-fundament,
.ups-layout:has(.ups-nav-group[data-group="foundation"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="fundament"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="foundation"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="fundament"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2 {
  color: var(--ups-fundament);
}

.ups-step-input-scope.group-intent .ups-step-input-copy h2,
.ups-step-title.group-intent,
.ups-step-title.group-keuze,
.ups-layout:has(.ups-nav-group[data-group="intent"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="keuze"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="intent"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="keuze"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2 {
  color: var(--ups-keuze);
}

.ups-step-input-scope.group-formulation .ups-step-input-copy h2,
.ups-step-title.group-formulation,
.ups-step-title.group-problem,
.ups-layout:has(.ups-nav-group[data-group="formulation"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="problem"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="formulation"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="problem"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2 {
  color: var(--ups-problem);
}

.ups-step-input-scope.group-analyse .ups-step-input-copy h2,
.ups-step-input-scope.group-analysis .ups-step-input-copy h2,
.ups-step-title.group-analyse,
.ups-step-title.group-analysis,
.ups-layout:has(.ups-nav-group[data-group="analyse"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="analysis"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="analyse"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="analysis"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2 {
  color: var(--ups-analyse);
}

.ups-step-input-scope.group-clarity .ups-step-input-copy h2,
.ups-step-title.group-clarity,
.ups-step-title.group-inzicht,
.ups-layout:has(.ups-nav-group[data-group="clarity"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="inzicht"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="clarity"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="inzicht"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2 {
  color: var(--ups-inzicht);
}

.ups-step-input-scope.group-resolution .ups-step-input-copy h2,
.ups-step-title.group-resolution,
.ups-step-title.group-oplossing,
.ups-layout:has(.ups-nav-group[data-group="resolution"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="oplossing"] .ups-nav-link.is-current) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="resolution"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2,
.ups-layout:has(.ups-nav-group[data-group="oplossing"] .ups-nav-link[aria-current="page"]) .ups-step-input-copy h2 {
  color: var(--ups-oplossing);
}

.ups-step-title {
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* =========================================================
   Step navigation
   ========================================================= */

.ups-step-nav-wrap {
    margin-top: auto;
    margin-bottom: 0;
    flex: 0 0 auto;
    padding-top: 0;
    padding-bottom: 8px;
}

.ups-step-nav-modern {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.95fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.ups-step-nav-modern > * {
  min-width: 0;
}

.ups-step-nav-modern.is-first {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.ups-step-nav-modern.is-last {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.ups-step-nav-link,
.ups-step-nav-current {
  width: 100%;
  max-width: 100%;
  min-height: 64px;
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ups-step-nav-link {
  text-decoration: none;
  border: 1px solid var(--ups-border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.ups-step-nav-link:hover,
.ups-step-nav-link:focus-visible {
  border-color: var(--ups-border-strong);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  outline: none;
}

.ups-step-nav-link.prev {
  text-align: left;
}

.ups-step-nav-link.next {
  text-align: right;
}

.ups-step-nav-current {
  text-align: center;
  border: 1px solid var(--ups-border-strong);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.ups-step-nav-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.92;
  line-height: 1.15;
}

.ups-step-nav-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ups-text);
}

.ups-step-nav-current .ups-step-nav-title {
  font-weight: 700;
}

.ups-step-nav-link.group-foundation,
.ups-step-nav-link.group-fundament {
  background: color-mix(in srgb, var(--ups-fundament) 5%, white);
  border-color: color-mix(in srgb, var(--ups-fundament) 14%, white);
}

.ups-step-nav-link.group-intent,
.ups-step-nav-link.group-keuze {
  background: color-mix(in srgb, var(--ups-keuze) 5%, white);
  border-color: color-mix(in srgb, var(--ups-keuze) 14%, white);
}

.ups-step-nav-link.group-formulation,
.ups-step-nav-link.group-problem {
  background: color-mix(in srgb, var(--ups-problem) 5%, white);
  border-color: color-mix(in srgb, var(--ups-problem) 14%, white);
}

.ups-step-nav-link.group-analyse,
.ups-step-nav-link.group-analysis {
  background: color-mix(in srgb, var(--ups-analyse) 5%, white);
  border-color: color-mix(in srgb, var(--ups-analyse) 14%, white);
}

.ups-step-nav-link.group-clarity,
.ups-step-nav-link.group-inzicht {
  background: color-mix(in srgb, var(--ups-inzicht) 5%, white);
  border-color: color-mix(in srgb, var(--ups-inzicht) 14%, white);
}

.ups-step-nav-link.group-resolution,
.ups-step-nav-link.group-oplossing {
  background: color-mix(in srgb, var(--ups-oplossing) 5%, white);
  border-color: color-mix(in srgb, var(--ups-oplossing) 14%, white);
}

.ups-step-nav-link.group-foundation:hover,
.ups-step-nav-link.group-foundation:focus-visible,
.ups-step-nav-link.group-fundament:hover,
.ups-step-nav-link.group-fundament:focus-visible {
  background: color-mix(in srgb, var(--ups-fundament) 8%, white);
  border-color: color-mix(in srgb, var(--ups-fundament) 20%, white);
}

.ups-step-nav-link.group-intent:hover,
.ups-step-nav-link.group-intent:focus-visible,
.ups-step-nav-link.group-keuze:hover,
.ups-step-nav-link.group-keuze:focus-visible {
  background: color-mix(in srgb, var(--ups-keuze) 8%, white);
  border-color: color-mix(in srgb, var(--ups-keuze) 20%, white);
}

.ups-step-nav-link.group-formulation:hover,
.ups-step-nav-link.group-formulation:focus-visible,
.ups-step-nav-link.group-problem:hover,
.ups-step-nav-link.group-problem:focus-visible {
  background: color-mix(in srgb, var(--ups-problem) 8%, white);
  border-color: color-mix(in srgb, var(--ups-problem) 20%, white);
}

.ups-step-nav-link.group-analyse:hover,
.ups-step-nav-link.group-analyse:focus-visible,
.ups-step-nav-link.group-analysis:hover,
.ups-step-nav-link.group-analysis:focus-visible {
  background: color-mix(in srgb, var(--ups-analyse) 8%, white);
  border-color: color-mix(in srgb, var(--ups-analyse) 20%, white);
}

.ups-step-nav-link.group-clarity:hover,
.ups-step-nav-link.group-clarity:focus-visible,
.ups-step-nav-link.group-inzicht:hover,
.ups-step-nav-link.group-inzicht:focus-visible {
  background: color-mix(in srgb, var(--ups-inzicht) 8%, white);
  border-color: color-mix(in srgb, var(--ups-inzicht) 20%, white);
}

.ups-step-nav-link.group-resolution:hover,
.ups-step-nav-link.group-resolution:focus-visible,
.ups-step-nav-link.group-oplossing:hover,
.ups-step-nav-link.group-oplossing:focus-visible {
  background: color-mix(in srgb, var(--ups-oplossing) 8%, white);
  border-color: color-mix(in srgb, var(--ups-oplossing) 20%, white);
}

.group-foundation .ups-step-nav-kicker,
.group-fundament .ups-step-nav-kicker,
.ups-step-nav-link.group-foundation .ups-step-nav-title,
.ups-step-nav-current.group-foundation .ups-step-nav-title,
.ups-step-nav-link.group-fundament .ups-step-nav-title,
.ups-step-nav-current.group-fundament .ups-step-nav-title {
  color: var(--ups-fundament);
}

.group-intent .ups-step-nav-kicker,
.group-keuze .ups-step-nav-kicker,
.ups-step-nav-link.group-intent .ups-step-nav-title,
.ups-step-nav-current.group-intent .ups-step-nav-title,
.ups-step-nav-link.group-keuze .ups-step-nav-title,
.ups-step-nav-current.group-keuze .ups-step-nav-title {
  color: var(--ups-keuze);
}

.group-formulation .ups-step-nav-kicker,
.group-problem .ups-step-nav-kicker,
.ups-step-nav-link.group-formulation .ups-step-nav-title,
.ups-step-nav-current.group-formulation .ups-step-nav-title,
.ups-step-nav-link.group-problem .ups-step-nav-title,
.ups-step-nav-current.group-problem .ups-step-nav-title {
  color: var(--ups-problem);
}

.group-analyse .ups-step-nav-kicker,
.group-analysis .ups-step-nav-kicker,
.ups-step-nav-link.group-analyse .ups-step-nav-title,
.ups-step-nav-current.group-analyse .ups-step-nav-title,
.ups-step-nav-link.group-analysis .ups-step-nav-title,
.ups-step-nav-current.group-analysis .ups-step-nav-title {
  color: var(--ups-analyse);
}

.group-clarity .ups-step-nav-kicker,
.group-inzicht .ups-step-nav-kicker,
.ups-step-nav-link.group-clarity .ups-step-nav-title,
.ups-step-nav-current.group-clarity .ups-step-nav-title,
.ups-step-nav-link.group-inzicht .ups-step-nav-title,
.ups-step-nav-current.group-inzicht .ups-step-nav-title {
  color: var(--ups-inzicht);
}

.group-resolution .ups-step-nav-kicker,
.group-oplossing .ups-step-nav-kicker,
.ups-step-nav-link.group-resolution .ups-step-nav-title,
.ups-step-nav-current.group-resolution .ups-step-nav-title,
.ups-step-nav-link.group-oplossing .ups-step-nav-title,
.ups-step-nav-current.group-oplossing .ups-step-nav-title {
  color: var(--ups-oplossing);
}

.ups-step-nav-final {
  background: #1f4d38;
  color: #fff;
  border: none;
  box-shadow: 0 10px 28px rgba(36, 92, 66, 0.25);
}

.ups-step-nav-final .ups-step-nav-kicker {
  color: rgba(255, 255, 255, 0.75);
}

.ups-step-nav-final .ups-step-nav-title {
  color: #ffffff;
}

.ups-step-nav-final:hover {
  background: #183d2d;
}

/* =========================================================
   Final decision / closed state
   ========================================================= */

.ups-final-warning-box,
.ups-final-decision-box {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(180, 60, 60, 0.18);
  background: rgba(255, 248, 244, 0.96);
}

.ups-final-warning-box h2,
.ups-final-decision-box h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ups-text);
}

.ups-final-warning-box p,
.ups-final-decision-box p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ups-text-soft);
}

.ups-final-decision-box .start-button {
  margin-top: 4px;
}

.ups-final-closed-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(36, 92, 66, 0.08);
  border: 1px solid rgba(36, 92, 66, 0.12);
  color: var(--ups-oplossing);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.ups-final-reflection-box {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ups-border);
  box-shadow: var(--ups-shadow-soft);
}

.ups-final-button {
  background: #1f4d38;
}

.ups-final-button:hover {
  background: #16382a;
}

/* =========================================================
   Reflection overview
   ========================================================= */

.ups-reflection-overview {
  margin: 18px 0 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(36, 92, 66, 0.14);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ups-reflection-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.ups-reflection-overview-kicker {
  margin-bottom: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ups-oplossing);
}

.ups-reflection-overview h2 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.2;
  color: var(--ups-text);
}

.ups-reflection-overview-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(36, 92, 66, 0.08);
  color: var(--ups-oplossing);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.ups-reflection-overview-problem {
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(244, 248, 246, 0.96);
  border: 1px solid rgba(36, 92, 66, 0.10);
  color: var(--ups-text-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.ups-reflection-overview-scroll {
  max-height: 245px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ups-reflection-overview-scroll:focus-visible {
  outline: 2px solid rgba(36, 92, 66, 0.18);
  outline-offset: 3px;
  border-radius: 12px;
}

.ups-reflection-overview-item {
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.ups-reflection-overview-item.is-empty {
  opacity: 0.56;
}

.ups-reflection-overview-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.ups-reflection-overview-group {
  margin-bottom: 2px;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.78;
}

.ups-reflection-overview-item h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.18;
  color: currentColor;
}

.ups-reflection-overview-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.42;
  color: var(--ups-text-soft);
}

.ups-reflection-overview-empty,
.ups-empty {
  color: var(--ups-text-muted) !important;
  font-style: italic;
}

.ups-reflection-overview-edit {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ups-oplossing);
  opacity: 0.72;
}

.ups-reflection-overview-edit:hover,
.ups-reflection-overview-edit:focus-visible {
  opacity: 1;
  outline: none;
}

.ups-reflection-overview-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--ups-text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ups-reflection-overview-free-note {
  text-align: right;
}

.ups-reflection-overview-item.group-foundation,
.ups-reflection-overview-item.group-fundament { color: var(--ups-fundament); }
.ups-reflection-overview-item.group-intent,
.ups-reflection-overview-item.group-keuze { color: var(--ups-keuze); }
.ups-reflection-overview-item.group-formulation,
.ups-reflection-overview-item.group-problem { color: var(--ups-problem); }
.ups-reflection-overview-item.group-analyse,
.ups-reflection-overview-item.group-analysis { color: var(--ups-analyse); }
.ups-reflection-overview-item.group-clarity,
.ups-reflection-overview-item.group-inzicht { color: var(--ups-inzicht); }
.ups-reflection-overview-item.group-resolution,
.ups-reflection-overview-item.group-oplossing { color: var(--ups-oplossing); }

/* Legacy overview row classes kept for compatibility */

.ups-reflection-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ups-reflection-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ups-reflection-item:first-child {
  border-top: 0;
  padding-top: 4px;
}

.ups-reflection-label {
  margin-bottom: 4px;
  color: #6e8679;
  font-size: 0.85rem;
}

.ups-reflection-content,
.ups-reflection-value {
  color: #1f2d26;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ups-reflection-main {
  flex: 1 1 auto;
  min-width: 0;
}

.ups-reflection-main h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ups-text);
}

.ups-reflection-main p {
  margin: 0;
  line-height: 1.5;
  color: var(--ups-text-soft);
}

.ups-reflection-side {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  padding-top: 1px;
}

.ups-edit-link {
  display: inline-block;
  color: var(--ups-oplossing);
  font-weight: 600;
  text-decoration: none;
}

.ups-edit-link:hover,
.ups-edit-link:focus-visible {
  color: #1f4d38;
  outline: none;
}

/* =========================================================
   My UPS / account pages
   ========================================================= */

.ups-account-hero {
  margin-bottom: 24px;
}

.ups-account-hero h1,
.ups-myups-library-hero h1 {
  margin: 0 0 6px;
  font-family: 'Domine', serif;
  font-size: clamp(2.2rem, 3.1vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ups-text);
}

.ups-account-subtle {
  margin: 0 0 10px;
  color: #5f6b66;
  font-size: 0.98rem;
}

.ups-account-intro {
  max-width: 760px;
  margin: 0;
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
}

.ups-account-card,
.ups-myups-library-card {
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(36, 92, 66, 0.12);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.ups-account-card h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--ups-text);
}

.ups-account-card p {
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--ups-text-soft);
}

.ups-account-muted {
  color: #6b7280;
}

.ups-account-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ups-oplossing);
}

.ups-myups-page,
.ups-myups-pdf-style {
  max-width: 980px;
}

.ups-myups-hero,
.ups-myups-library-hero,
.ups-case-header,
.ups-myups-section-head,
.ups-myups-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ups-myups-library-hero {
  gap: 28px;
  margin-bottom: 18px;
  padding: 4px 0 2px;
}

.ups-myups-library-copy {
  min-width: 0;
}

.ups-myups-hero-actions,
.ups-myups-library-actions {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.ups-myups-library-head {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(36, 92, 66, 0.12);
}

.ups-myups-library-head h2,
.ups-myups-section-head h2 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
  color: #1f2d26;
}

.ups-myups-library-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 92, 66, 0.08);
  color: #245c42;
  font-size: 0.82rem;
  font-weight: 700;
}

.ups-myups-library-list,
.ups-myups-problem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ups-myups-library-item,
.ups-myups-problem-item {
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px 16px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ups-myups-library-item:hover,
.ups-myups-problem-item:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 92, 66, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ups-myups-library-item.is-current-problem,
.ups-myups-problem-item.is-current-problem {
  border-color: rgba(36, 92, 66, 0.36);
  background: rgba(244, 248, 246, 0.98);
  box-shadow:
    0 14px 32px rgba(36, 92, 66, 0.09),
    inset 0 0 0 1px rgba(36, 92, 66, 0.10);
}

.ups-myups-library-marker {
  width: 4px;
  align-self: stretch;
  border-radius: 0 999px 999px 0;
  background: rgba(36, 92, 66, 0.32);
}

.ups-myups-library-item.is-current-problem .ups-myups-library-marker {
  background: #245c42;
}

.ups-myups-library-main,
.ups-myups-problem-main {
  min-width: 0;
}

.ups-myups-library-meta,
.ups-myups-problem-meta,
.ups-case-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ups-myups-library-main h3,
.ups-myups-problem-main h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.32;
  font-weight: 700;
  color: #1f2d26;
}

.ups-myups-library-subline,
.ups-myups-date {
  margin: 6px 0 0;
  color: #6e8679;
  font-size: 0.88rem;
  line-height: 1.35;
}

.ups-case-problem {
  margin: 6px 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ups-text);
}

.ups-case-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #243140;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.ups-case-badge.is-paid,
.ups-case-badge.is-current,
.ups-case-badge.is-completed {
  background: rgba(36, 92, 66, 0.10);
  color: #245c42;
}

.ups-case-badge.is-in-progress {
  background: rgba(74, 144, 226, 0.12);
  color: #245d9a;
}

.ups-myups-library-buttons,
.ups-myups-problem-actions,
.ups-case-actions,
.ups-account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ups-account-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.ups-account-action:hover,
.ups-account-action:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.ups-account-action-primary {
  color: #ffffff;
  background: #1f4d38;
  border: 1px solid #1f4d38;
  box-shadow: 0 8px 20px rgba(36, 92, 66, 0.18);
}

.ups-account-action-primary:hover,
.ups-account-action-primary:focus-visible {
  background: #183d2d;
  border-color: #183d2d;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 92, 66, 0.22);
}

.ups-account-action-secondary {
  color: #245c42;
  background: rgba(36, 92, 66, 0.08);
  border: 1px solid rgba(36, 92, 66, 0.14);
}

.ups-account-action-secondary:hover,
.ups-account-action-secondary:focus-visible {
  background: rgba(36, 92, 66, 0.12);
  border-color: rgba(36, 92, 66, 0.22);
  color: #183d2d;
}

.ups-account-action-ghost {
  color: #51695c;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ups-account-action-ghost:hover,
.ups-account-action-ghost:focus-visible {
  color: #1f2d26;
  background: rgba(15, 23, 42, 0.055);
  border-color: rgba(15, 23, 42, 0.10);
}

.ups-myups-empty-state,
.ups-myups-empty-premium {
  padding: 24px 22px;
  border-radius: 18px;
  background: rgba(244, 248, 246, 0.96);
  border: 1px solid rgba(36, 92, 66, 0.14);
}

.ups-myups-empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ups-text);
}

.ups-myups-empty-state p {
  max-width: 620px;
  margin: 0 0 16px;
  color: var(--ups-text-soft);
}

/* =========================================================
   Static pages: About / Guide / Access
   Supports both new .ups-static-page-* classes and older page aliases.
   ========================================================= */

.ups-static-page,
.ups-about-page,
.ups-guide-page,
.ups-access-page {
  width: 100%;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ups-static-page-container,
.ups-about-container,
.ups-guide-container,
.ups-access-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ups-static-page-card,
.ups-about-card,
.ups-guide-card,
.ups-access-card {
  width: min(100%, 820px);
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 92, 66, 0.10);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.ups-static-page-panel,
.ups-static-page-block,
.ups-about-panel,
.ups-about-block,
.ups-guide-panel,
.ups-guide-block,
.ups-access-panel {
  position: relative;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(36, 92, 66, 0.10);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.ups-static-page-panel--intro,
.ups-about-panel--intro,
.ups-guide-panel--intro,
.ups-access-panel--intro {
  margin-bottom: 14px;
  background: rgba(244, 248, 246, 0.96);
  border-color: rgba(36, 92, 66, 0.16);
}

.ups-static-page-panel--summary,
.ups-access-panel--summary {
  margin-top: 14px;
}

.ups-static-page-panel--intro::before,
.ups-static-page-block::before,
.ups-about-panel--intro::before,
.ups-about-block::before,
.ups-guide-panel--intro::before,
.ups-guide-block::before,
.ups-access-panel--intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(36, 92, 66, 0.42);
}

.ups-static-page-kicker,
.ups-about-kicker {
  margin: 0 0 8px;
  font-size: 0.70rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #245c42;
}

.ups-static-page-copy h1,
.ups-about-copy h1,
.ups-guide-copy h1,
.ups-access-copy h1 {
  margin: 0 0 12px;
  font-family: 'Domine', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ups-text);
}

.ups-static-page-copy h2,
.ups-static-page-block h2,
.ups-about-block h2,
.ups-guide-block h2,
.ups-access-copy h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--ups-text);
}

.ups-access-copy h2 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.ups-static-page-copy p,
.ups-static-page-block p,
.ups-about-copy p,
.ups-about-block p,
.ups-guide-copy p,
.ups-guide-block p,
.ups-access-copy p {
  margin: 0 0 10px;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ups-text-soft);
}

.ups-static-page-copy p:last-child,
.ups-static-page-block p:last-child,
.ups-about-copy p:last-child,
.ups-about-block p:last-child,
.ups-guide-copy p:last-child,
.ups-guide-block p:last-child,
.ups-access-copy p:last-child {
  margin-bottom: 0;
}

.ups-static-page-lead,
.ups-about-lead {
  font-size: 1.02rem !important;
  font-weight: 600;
  color: var(--ups-text) !important;
}

.ups-static-page-grid,
.ups-about-grid,
.ups-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ups-static-page-block:nth-child(even),
.ups-about-block:nth-child(even),
.ups-guide-block:nth-child(even) {
  background: rgba(244, 248, 246, 0.96);
  border-color: rgba(36, 92, 66, 0.14);
}

.ups-static-page-block--strong,
.ups-about-block--strong,
.ups-guide-block--strong {
  background: rgba(244, 248, 246, 1);
  border-color: rgba(36, 92, 66, 0.22);
  box-shadow: 0 10px 28px rgba(36, 92, 66, 0.08);
}

.ups-static-page-block--strong h2,
.ups-static-page-block--strong p,
.ups-about-block--strong h2,
.ups-about-block--strong p,
.ups-guide-block--strong h2,
.ups-guide-block--strong p {
  font-weight: 600;
  color: var(--ups-text);
}

.ups-static-page-actions,
.ups-about-actions,
.ups-guide-actions,
.ups-access-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ups-static-page-actions--bottom,
.ups-guide-actions--bottom {
  padding-top: 2px;
}

.ups-static-page-actions .start-button,
.ups-about-actions .start-button,
.ups-guide-actions .start-button,
.ups-access-actions .start-button {
  min-width: 220px;
}

.ups-static-page-secondary-link,
.ups-about-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: #1f4d38;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.ups-static-page-secondary-link:hover,
.ups-static-page-secondary-link:focus-visible,
.ups-about-secondary-link:hover,
.ups-about-secondary-link:focus-visible {
  color: #183d2d;
  outline: none;
}

.ups-access-closing {
  margin-top: 14px;
  font-weight: 600;
  color: var(--ups-text);
}

/* =========================================================
   Desktop step-page fit
   ========================================================= */

@media (min-width: 901px) {
  .ups-main-content:has(.ups-bead-progress) {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: 6px;
}

  .ups-main-content:has(.ups-bead-progress) .ups-content-shell,
  .ups-main-content:has(.ups-bead-progress) .ups-content-inner {
    min-height: 0;
    overflow: hidden;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-content-inner {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-bead-progress {
    margin-bottom: 4px;
    padding-top: 4px;
    padding-bottom: 6px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-bead {
    height: 5px;
  }

  .ups-main-content:has(.ups-bead-progress) .described-problem {
    margin-bottom: 6px;
    padding: 8px 12px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .ups-main-content:has(.ups-bead-progress) .app-copy {
    min-height: 0;
  }

  .ups-main-content:has(.ups-bead-progress) .app-copy h1 {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.45vw, 34px);
    line-height: 1.04;
    height: calc(2 * 1.04em);
  }

  .ups-main-content:has(.ups-bead-progress) .app-copy p {
    margin-bottom: 8px;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .ups-main-content:has(.ups-bead-progress) .app-copy .closing-line {
    margin-top: 10px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-insight-box,
  .ups-main-content:has(.ups-bead-progress) .ups-group-reflection-box,
  .ups-main-content:has(.ups-bead-progress) .ups-final-reflection {
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 14px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-insight-kicker {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-insight-text,
  .ups-main-content:has(.ups-bead-progress) .ups-group-reflection-content,
  .ups-main-content:has(.ups-bead-progress) .ups-final-reflection-text {
    font-size: 0.88rem;
    line-height: 1.46;
  }

.ups-main-content:has(.ups-bead-progress) .ups-step-input-card {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 18px 20px;
    border-radius: 16px;
}

  .ups-main-content:has(.ups-bead-progress) .ups-step-input-copy h2 {
    margin-bottom: 4px;
    font-size: 0.96rem;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-input-copy p {
    margin-bottom: 8px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-flow-hint {
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-input-feedback,
  .ups-main-content:has(.ups-bead-progress) .ups-step-input-warning,
  .ups-main-content:has(.ups-bead-progress) .ups-step-help-box {
    margin-bottom: 8px;
    padding: 8px 10px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-input-form {
    gap: 8px;
  }

.ups-main-content:has(.ups-bead-progress) .ups-step-input-textarea {
    min-height: 180px;
    max-height: 320px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    resize: vertical;
}

  .ups-main-content:has(.ups-bead-progress) .ups-step-input-actions {
    gap: 10px;
  }

  .ups-main-content:has(.ups-bead-progress) .start-button,
  .ups-main-content:has(.ups-bead-progress) .ups-text-link,
  .ups-main-content:has(.ups-bead-progress) .ups-btn-primary,
  .ups-main-content:has(.ups-bead-progress) .ups-btn-secondary {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.88rem;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-help-nudge-wrap {
    min-height: 38px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-help-link,
  .ups-main-content:has(.ups-bead-progress) .ups-help-used {
    font-size: 0.78rem;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-final-decision-box {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-final-decision-box h2 {
    margin-bottom: 4px;
    font-size: 0.96rem;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-final-decision-box p {
    margin-bottom: 6px;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-reflection-overview {
    margin: 10px 0 8px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-reflection-overview-scroll {
    max-height: 185px;
    gap: 6px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-reflection-overview-item {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-reflection-overview-item p {
    font-size: 0.78rem;
    line-height: 1.34;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-nav-wrap {
    margin-top: auto;
    margin-bottom: 0;
    flex: 0 0 auto;
    padding-top: 0;
    padding-bottom: 8px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-nav-modern {
    gap: 10px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-nav-link,
  .ups-main-content:has(.ups-bead-progress) .ups-step-nav-current {
    min-height: 46px;
    padding: 7px 10px;
    border-radius: 13px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-nav-kicker {
    margin-bottom: 2px;
    font-size: 0.52rem;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-nav-title {
    font-size: 0.68rem;
    line-height: 1.1;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .ups-main-content:has(.ups-bead-progress) .app-copy h1 {
    font-size: clamp(22px, 2.2vw, 30px);
  }

  .ups-main-content:has(.ups-bead-progress) .app-copy p {
    font-size: 0.88rem;
    line-height: 1.34;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-step-nav-link,
  .ups-main-content:has(.ups-bead-progress) .ups-step-nav-current {
    min-height: 42px;
  }
}

/* =========================================================
   Static pages compact laptop
   ========================================================= */

@media (min-width: 1024px) and (max-height: 940px) {
  .ups-static-page,
  .ups-about-page,
  .ups-guide-page,
  .ups-access-page {
    min-height: calc(100vh - 110px);
    align-items: flex-start;
  }

  .ups-static-page-card,
  .ups-about-card,
  .ups-guide-card,
  .ups-access-card {
    width: min(100%, 780px);
    max-width: 780px;
    padding: 16px 18px;
    border-radius: 22px;
  }

  .ups-static-page-panel,
  .ups-static-page-block,
  .ups-about-panel,
  .ups-about-block,
  .ups-guide-panel,
  .ups-guide-block,
  .ups-access-panel,
  .ups-access-option-body {
    padding: 16px 18px 14px;
    border-radius: 16px;
  }

  .ups-static-page-panel--intro,
  .ups-about-panel--intro,
  .ups-guide-panel--intro,
  .ups-access-panel--intro {
    margin-bottom: 12px;
  }

  .ups-static-page-panel--summary,
  .ups-access-panel--summary {
    margin-top: 12px;
  }

  .ups-static-page-grid,
  .ups-about-grid,
  .ups-guide-grid {
    gap: 12px;
  }

  .ups-static-page-copy h1,
  .ups-about-copy h1,
  .ups-guide-copy h1,
  .ups-access-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 2.7vw, 2.45rem);
  }

  .ups-static-page-copy h2,
  .ups-static-page-block h2,
  .ups-about-block h2,
  .ups-guide-block h2,
  .ups-access-copy h2 {
    margin-bottom: 8px;
    font-size: 0.98rem;
  }

  .ups-access-copy h2 {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 0.96rem;
  }

  .ups-static-page-copy p,
  .ups-static-page-block p,
  .ups-about-copy p,
  .ups-about-block p,
  .ups-guide-copy p,
  .ups-guide-block p,
  .ups-access-copy p {
    margin-bottom: 8px;
    font-size: 0.93rem;
    line-height: 1.42;
  }

  .ups-static-page-actions,
  .ups-about-actions,
  .ups-guide-actions,
  .ups-access-actions {
    margin-top: 14px;
  }

  .ups-static-page-actions .start-button,
  .ups-static-page-secondary-link,
  .ups-about-actions .start-button,
  .ups-about-secondary-link {
    min-height: 44px;
  }
}

/* =========================================================
   Tablet / mobile
   ========================================================= */

@media (max-width: 900px) {
  .ups-main-content {
    min-height: auto;
    padding: 10px;
  }

  .ups-content-shell,
  .ups-content-inner {
    min-height: auto;
  }

  .ups-content-inner {
    overflow: visible;
    padding-bottom: 118px;
  }

  body:not(.ups-homepage) .ups-content-inner--center {
  display: block;
	}
.app-copy {
    min-height: 0;
  }

  .app-copy h1 {
    min-height: 0;
    margin-bottom: 12px;
  }

  .app-copy p {
    margin-bottom: 13px;
    line-height: 1.62;
  }

  .ups-step-input-card {
    margin-top: 22px;
    padding: 20px;
    border-radius: 20px;
  }

  .ups-step-input-copy p {
    margin-bottom: 14px;
  }

  .ups-step-input-textarea {
    min-height: 74px;
    max-height: 110px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .ups-step-input-actions {
    gap: 10px;
  }

  .ups-help-link,
  .ups-help-used {
    font-size: 0.84rem;
  }

  .ups-help-nudge-wrap {
    min-height: 40px;
  }

  .ups-step-nav-wrap {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 999;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  .ups-step-nav-modern {
    grid-template-columns: 1fr 0.95fr 1fr;
    gap: 8px;
    pointer-events: auto;
  }

  .ups-step-nav-modern.is-first {
    grid-template-columns: 2fr 1fr;
  }

  .ups-step-nav-modern.is-last {
    grid-template-columns: 1fr 2fr;
  }

  .ups-step-nav-link,
  .ups-step-nav-current {
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .ups-step-nav-kicker {
    font-size: 0.56rem;
  }

  .ups-step-nav-title {
    font-size: 0.7rem;
  }

  .ups-reflection-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ups-myups-hero,
  .ups-myups-library-hero {
    flex-direction: column;
    gap: 14px;
  }

  .ups-myups-hero-actions,
  .ups-myups-library-actions {
    width: 100%;
    flex-basis: auto;
    padding-top: 0;
  }

  .ups-myups-library-item,
  .ups-myups-problem-item {
    grid-template-columns: 4px minmax(0, 1fr);
    align-items: flex-start;
  }

  .ups-myups-library-buttons,
  .ups-myups-problem-actions {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .ups-static-page,
  .ups-about-page,
  .ups-guide-page,
  .ups-access-page {
    min-height: auto;
    align-items: flex-start;
  }

  .ups-static-page-card,
  .ups-about-card,
  .ups-guide-card,
  .ups-access-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .ups-static-page-card,
  .ups-about-card,
  .ups-guide-card,
  .ups-access-card {
    padding: 16px;
    border-radius: 20px;
  }

  .ups-static-page-panel,
  .ups-static-page-block,
  .ups-about-panel,
  .ups-about-block,
  .ups-guide-panel,
  .ups-guide-block,
  .ups-access-panel,
  .ups-access-option-body {
    padding: 16px 16px 14px;
    border-radius: 16px;
  }

  .ups-static-page-copy h1,
  .ups-about-copy h1,
  .ups-guide-copy h1,
  .ups-access-copy h1 {
    font-size: 2rem;
  }

  .ups-static-page-copy p,
  .ups-static-page-block p,
  .ups-about-copy p,
  .ups-about-block p,
  .ups-guide-copy p,
  .ups-guide-block p,
  .ups-access-copy p {
    font-size: 0.94rem;
  }
}

@media (max-width: 640px) {
  .ups-bead {
    height: 5px;
  }

  .app-copy h1 {
    font-size: 2rem;
  }

  .app-copy p,
  .ups-insight-text {
    font-size: 0.96rem;
  }

  .ups-step-input-card {
    padding: 18px;
    border-radius: 18px;
  }

  .ups-step-input-copy h2 {
    font-size: 1rem;
  }

  .ups-step-input-copy p,
  .ups-step-input-feedback,
  .ups-step-help-box,
  .ups-step-input-textarea {
    font-size: 0.94rem;
  }

  .ups-step-input-textarea {
    min-height: 70px;
    max-height: 100px;
    padding: 13px 14px;
  }

  .ups-help-link,
  .ups-help-used {
    font-size: 0.8rem;
  }

  .ups-step-nav-wrap {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .ups-step-nav-modern {
    gap: 6px;
  }

  .ups-step-nav-link,
  .ups-step-nav-current {
    min-height: 52px;
    padding: 7px 8px;
    border-radius: 13px;
  }

  .ups-step-nav-kicker {
    font-size: 0.52rem;
  }

  .ups-step-nav-title {
    font-size: 0.66rem;
  }
.ups-mobile-step-bar {
    padding: 9px 10px;
    border-radius: 11px;
  }

  .ups-mobile-step-title {
    font-size: 0.9rem;
  }

  .ups-mobile-step-toggle {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.8rem;
    border-radius: 9px;
  }

  .ups-final-decision-box,
  .ups-account-card,
  .ups-myups-library-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .ups-reflection-overview {
    padding: 14px;
    border-radius: 16px;
  }

  .ups-reflection-overview-head,
  .ups-reflection-overview-foot,
  .ups-myups-library-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ups-reflection-overview-free-note {
    text-align: left;
  }

  .ups-reflection-overview-scroll {
    max-height: 285px;
  }

  .ups-static-page-actions,
  .ups-about-actions,
  .ups-guide-actions,
  .ups-access-actions,
  .ups-myups-library-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .ups-static-page-actions .start-button,
  .ups-static-page-secondary-link,
  .ups-about-actions .start-button,
  .ups-about-secondary-link,
  .ups-account-action {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   MOBILE WRITING MODE
   When the mobile overview is hidden, the page becomes a focused
   writing surface: the step explanation and input help copy are hidden,
   and the textarea gets more useful vertical space.
   ========================================================= */

.ups-mobile-final-reflection-link {
  display: none;
}

@media (max-width: 900px) {
  .ups-mobile-step-bar {
    gap: 8px;
  }

  .ups-mobile-step-title {
    flex: 1 1 auto;
  }

  .ups-mobile-step-toggle,
  .ups-mobile-final-reflection-link {
    flex: 0 0 auto;
  }

  body.ups-mobile-writing-mode .ups-mobile-final-reflection-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(22, 163, 74, 0.20);
    background: rgba(22, 163, 74, 0.09);
    color: #166534;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  body.ups-mobile-writing-mode .app-copy,
  body.ups-mobile-writing-mode .ups-step-input-copy {
    display: none;
  }

  body.ups-mobile-writing-mode .ups-content-inner {
    padding-bottom: 116px;
  }

  body.ups-mobile-writing-mode .ups-step-input-card {
    margin-top: 12px;
    padding: 16px;
  }

  body.ups-mobile-writing-mode .ups-step-input-form {
    gap: 0;
  }

  body.ups-mobile-writing-mode .ups-step-input-textarea {
    min-height: min(42vh, 360px);
    max-height: none;
    resize: vertical;
  }
}

@media (max-width: 640px) {
  body.ups-mobile-writing-mode .ups-mobile-step-bar {
    gap: 6px;
  }

  body.ups-mobile-writing-mode .ups-mobile-step-title {
    max-width: 34%;
  }

  body.ups-mobile-writing-mode .ups-mobile-step-toggle,
  body.ups-mobile-writing-mode .ups-mobile-final-reflection-link {
    min-height: 32px;
    padding-left: 9px;
    padding-right: 9px;
    font-size: 0.78rem;
    border-radius: 9px;
  }

  body.ups-mobile-writing-mode .ups-step-input-card {
    padding: 14px;
  }

  body.ups-mobile-writing-mode .ups-step-input-textarea {
    min-height: min(44vh, 340px);
    padding: 14px;
  }
}


/* =========================================================
   MOBILE STEP NAV — corrected two-column width
   On first/last step the bottom nav has only two cards.
   Keep them balanced and safely inside the viewport.
   ========================================================= */

@media (max-width: 900px) {
  .ups-step-nav-modern.is-first,
  .ups-step-nav-modern.is-last {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .ups-step-nav-modern.is-first,
  .ups-step-nav-modern.is-last {
    gap: 8px;
  }
}

/* =========================================================
   MOBILE STEP NAV — definitive viewport-safe sizing
   Keeps the fixed bottom navigation inside the screen on mobile.
   Also makes two-column states balanced instead of one card becoming
   visually too wide.
   ========================================================= */

@media (max-width: 900px) {
  .ups-step-nav-wrap {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    box-sizing: border-box;
    overflow: visible;
  }

  .ups-step-nav-modern {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 8px;
  }

  .ups-step-nav-modern.is-first,
  .ups-step-nav-modern.is-last {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ups-step-nav-modern > *,
  .ups-step-nav-link,
  .ups-step-nav-current {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ups-step-nav-link,
  .ups-step-nav-current {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ups-step-nav-title,
  .ups-step-nav-kicker {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  .ups-step-nav-wrap {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .ups-step-nav-modern,
  .ups-step-nav-modern.is-first,
  .ups-step-nav-modern.is-last {
    gap: 8px;
  }

  .ups-step-nav-link,
  .ups-step-nav-current {
    padding-left: 7px;
    padding-right: 7px;
  }
}
/* =========================================================
   MOBILE WRITING MODE — keep colored input title visible
   Hide only explanatory copy, not the group title.
   Also aligns the writing area lower on the screen.
   ========================================================= */

@media (max-width: 900px) {

  /* Keep the input copy container visible */
  body.ups-mobile-writing-mode .ups-step-input-copy {
    display: block;
    margin-bottom: 10px;
  }

  /* Hide only explanatory paragraphs */
  body.ups-mobile-writing-mode .ups-step-input-copy p,
  body.ups-mobile-writing-mode .ups-step-flow-hint {
    display: none;
  }

  /* Keep colored section title visible */
  body.ups-mobile-writing-mode .ups-step-input-copy h2 {
    display: block;
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.15;
  }

  /* Push writing card lower into the viewport */
  body.ups-mobile-writing-mode .ups-content-shell,
  body.ups-mobile-writing-mode .ups-content-inner {
    display: flex;
    flex-direction: column;
  }

  body.ups-mobile-writing-mode .ups-step-input-card {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 14px;
  }

  /* Larger focused writing surface */
  body.ups-mobile-writing-mode .ups-step-input-textarea {
    min-height: min(48vh, 420px);
  }
}

@media (max-width: 640px) {

  body.ups-mobile-writing-mode .ups-step-input-copy h2 {
    font-size: 0.96rem;
    margin-bottom: 8px;
  }

  body.ups-mobile-writing-mode .ups-step-input-card {
    padding-top: 12px;
  }

  body.ups-mobile-writing-mode .ups-step-input-textarea {
    min-height: min(50vh, 420px);
  }
}


/* =========================================================
   AI REVEAL BLOCK
   Fixed block on step pages. Only the text inside this block scrolls.
   ========================================================= */

.ups-ai-reveal-box {
  position: relative;
  flex: 0 0 auto;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  margin: 12px 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(36, 92, 66, 0.12);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
  overflow: hidden;
}

.ups-ai-reveal-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(36, 92, 66, 0.34);
}

.ups-ai-reveal-head {
  margin: 0 0 8px;
  padding-left: 0;
}

.ups-ai-reveal-head h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--ups-text);
}

.ups-ai-reveal-scroll {
  height: calc(100% - 28px);
  overflow-y: auto;
  padding-right: 8px;
}

.ups-ai-reveal-text {
  white-space: normal;
  font-size: 0.92rem;
  line-height: 1.38;
  color: #334155;
}

.ups-ai-reveal-text p {
  margin: 0 0 6px;
}

@media (min-width: 901px) {
  .ups-main-content:has(.ups-bead-progress) .ups-ai-reveal-box {
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    margin: 8px 0 10px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-ai-reveal-head {
    margin-bottom: 6px;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-ai-reveal-head h2 {
    font-size: 0.96rem;
  }

  .ups-main-content:has(.ups-bead-progress) .ups-ai-reveal-text {
    font-size: 0.88rem;
    line-height: 1.36;
  }
}

@media (max-width: 900px) {
  .ups-ai-reveal-box {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }
}

/* =========================================================
   AI REFLECTION PAGE
   Same atmosphere as the flow, but without bottom step navigation.
   ========================================================= */

.ups-ai-reflection-page {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ups-ai-reflection-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto;
  gap: 12px;
}

.ups-ai-reflection-card,
.ups-ai-chat-card {
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(36, 92, 66, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
  overflow: hidden;
}

.ups-ai-reflection-card::before,
.ups-ai-chat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(36, 92, 66, 0.34);
}

.ups-ai-reflection-card h1,
.ups-ai-chat-card h2 {
  margin: 0 0 10px;
  font-family: 'Domine', serif;
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ups-text);
}

.ups-ai-reflection-scroll {
  max-height: 38vh;
  overflow-y: auto;
  padding-right: 8px;
}

.ups-ai-reflection-text,
.ups-ai-chat-message-text {
  white-space: normal;
  font-size: 0.96rem;
  line-height: 1.42;
  color: #334155;
}

.ups-ai-chat-list {
  max-height: 24vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding-right: 6px;
}

.ups-ai-chat-message {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(244, 248, 246, 0.86);
  border: 1px solid rgba(36, 92, 66, 0.09);
}

.ups-ai-chat-message.is-user {
  background: rgba(74, 144, 226, 0.07);
  border-color: rgba(74, 144, 226, 0.12);
}

.ups-ai-chat-label {
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #245c42;
}

.ups-ai-discussion-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.ups-ai-discussion-form textarea {
  width: 100%;
  min-height: 74px;
  max-height: 120px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 92, 66, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ups-text);
  line-height: 1.5;
  resize: vertical;
}

.ups-ai-reflection-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ups-ai-reflection-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(36, 92, 66, 0.08);
  border: 1px solid rgba(36, 92, 66, 0.12);
  color: #245c42;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (min-width: 901px) {
  .ups-main-content:has(.ups-ai-reflection-page) {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .ups-main-content:has(.ups-ai-reflection-page) .ups-content-shell,
  .ups-main-content:has(.ups-ai-reflection-page) .ups-content-inner {
    min-height: 0;
    overflow: hidden;
  }

  .ups-main-content:has(.ups-ai-reflection-page) .ups-content-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 900px) {
  .ups-ai-reflection-main {
    display: flex;
    flex-direction: column;
  }

  .ups-ai-reflection-scroll,
  .ups-ai-chat-list {
    max-height: none;
  }

  .ups-ai-discussion-form {
    grid-template-columns: 1fr;
  }

  .ups-ai-reflection-actions .ups-btn-primary,
  .ups-ai-reflection-actions .ups-btn-secondary,
  .ups-ai-reflection-actions .ups-button-secondary {
    width: 100%;
  }
}

/* =========================================================
   AUTH FORM — login / register only
   No page shell or topbar styling here.
   ========================================================= */

body.auth-page .ups-static-page-card,
body.auth-page .ups-auth-card {
  max-width: 620px;
}

.ups-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.ups-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ups-auth-field label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ups-text-soft);
}

.ups-auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 92, 66, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ups-text);
  font-size: 0.96rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ups-auth-field input:focus {
  outline: none;
  border-color: rgba(36, 92, 66, 0.34);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(36, 92, 66, 0.08);
}

.ups-auth-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 248, 244, 0.96);
  border: 1px solid rgba(180, 60, 60, 0.18);
  color: #8b2e2e;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ups-auth-error ul {
  margin: 0;
  padding-left: 18px;
}

.ups-auth-error li + li {
  margin-top: 4px;
}

.ups-auth-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ups-auth-actions .start-button {
  min-width: 180px;
}

.ups-auth-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ups-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 2px;
  color: #1f4d38;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.ups-auth-link:hover,
.ups-auth-link:focus-visible {
  color: #183d2d;
  outline: none;
}

@media (max-width: 640px) {
  .ups-auth-actions,
  .ups-auth-links {
    flex-direction: column;
    align-items: stretch;
  }

  .ups-auth-actions .start-button,
  .ups-auth-link {
    width: 100%;
    justify-content: center;
  }
}




/* =========================================================
   OVERVIEW PAGE — document viewer inside UPrS
   Toolbar stays fixed inside content; document area scrolls.
   ========================================================= */

.ups-overview-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ups-overview-toolbar {
  flex: 0 0 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 10px;
  padding: 0 2px 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(36, 92, 66, 0.08);
}

.ups-overview-tool-link,
.ups-overview-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ups-text-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.ups-overview-tool-link:hover,
.ups-overview-tool-link:focus-visible,
.ups-overview-tool-button:hover,
.ups-overview-tool-button:focus-visible {
  color: var(--ups-text);
  outline: none;
}

.ups-overview-tool-link.is-muted {
  opacity: 0.44;
}

.ups-overview-tool-link.is-muted:hover,
.ups-overview-tool-link.is-muted:focus-visible {
  opacity: 0.78;
}

.ups-overview-document-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  overflow-y: auto;
  padding: 4px 8px 14px;
  box-sizing: border-box;
}

.ups-overview-document {
  width: 100%;
  min-height: 100%;
  padding: 18px 18px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 92, 66, 0.08);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.ups-overview-document-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(36, 92, 66, 0.10);
}

.ups-overview-kicker {
  margin: 0 0 6px;
  color: #6e8679;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.ups-overview-document h1 {
  margin: 0 0 10px;
  font-family: 'Domine', serif;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ups-text);
}

.ups-overview-problem-title {
  max-width: 920px;
  margin: 0;
  color: var(--ups-text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ups-overview-group {
  margin: 0 0 18px;
  padding: 0 0 0 14px;
  border-left: 3px solid currentColor;
  color: var(--ups-text);
}

.ups-overview-group h2 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: currentColor;
}

.ups-overview-group-lines {
  max-width: 980px;
}

.ups-overview-group-lines p {
  margin: 0 0 9px;
  color: var(--ups-text-soft);
  font-size: 0.92rem;
  line-height: 1.48;
}

.ups-overview-group-lines p:last-child {
  margin-bottom: 0;
}

.ups-overview-empty,
.ups-overview-empty-state p {
  margin: 0;
  color: var(--ups-text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  font-style: italic;
}

.ups-overview-group.group-foundation,
.ups-overview-group.group-fundament {
  color: var(--ups-fundament);
}

.ups-overview-group.group-intent,
.ups-overview-group.group-keuze {
  color: var(--ups-keuze);
}

.ups-overview-group.group-formulation,
.ups-overview-group.group-problem {
  color: var(--ups-problem);
}

.ups-overview-group.group-analyse,
.ups-overview-group.group-analysis {
  color: var(--ups-analyse);
}

.ups-overview-group.group-clarity,
.ups-overview-group.group-inzicht {
  color: var(--ups-inzicht);
}

.ups-overview-group.group-resolution,
.ups-overview-group.group-oplossing {
  color: var(--ups-oplossing);
}

@media (min-width: 901px) {
  .ups-main-content:has(.ups-overview-page) {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .ups-main-content:has(.ups-overview-page) .ups-content-shell,
  .ups-main-content:has(.ups-overview-page) .ups-content-inner {
    min-height: 0;
    overflow: hidden;
  }

  .ups-main-content:has(.ups-overview-page) .ups-content-inner {
    padding-top: 8px;
    padding-bottom: 10px;
  }
}

@media (max-width: 900px) {
  .ups-overview-toolbar {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 9px;
  }

  .ups-overview-tool-link,
  .ups-overview-tool-button {
    flex: 0 0 auto;
    font-size: 0.86rem;
  }

  .ups-overview-document-shell {
    padding-left: 0;
    padding-right: 0;
    overflow-y: visible;
  }

  .ups-overview-document {
    padding: 16px;
    border-radius: 16px;
  }

  .ups-overview-group-lines p {
    font-size: 0.9rem;
  }
}

/* =========================================================
   Archive
   ========================================================= */

.ups-archive-page {
    display: flex;
    flex-direction: column;

    width: 100%;

    height: 100%;
    min-height: 0;

    margin: 0;
    padding: 2.15rem 1.5rem 0;
    overflow: hidden;
}
.ups-archive-page > h1 {
    font-family: "Domine", serif;
}

.ups-archive-header {
    flex: 0 0 auto;
    margin-bottom: 2.15rem;
}

.ups-archive-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 3rem;
}

.ups-archive-header h1 {
    margin: 0 0 0.3rem;
    font-size: 1.9rem;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-family: 'Domine', serif;
    color: var(--ups-ink, #102033);
}

.ups-archive-header p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--ups-muted, #657184);
}

.ups-archive-message {
    margin: 0 0 1.7rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ups-green-dark, #1f6b4a);
}

.ups-archive-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ups-archive-item {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(16, 32, 51, 0.07);
}

.ups-archive-item:last-child {
    border-bottom: 0;
}

.ups-archive-item h2 {
    margin: 0 0 0.28rem;
    font-size: 1.12rem;
    line-height: 1.32;
    font-weight: 560;
    letter-spacing: -0.01em;
    color: rgba(16, 32, 51, 0.78);
}

.ups-archive-meta {
    margin: 0 0 0.32rem;
    font-size: 0.84rem;
    line-height: 1.3;
    color: var(--ups-muted, #657184);
}

.ups-archive-item-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    font-size: 0.84rem;
    line-height: 1.3;
}

.ups-archive-item-tools a,
.ups-archive-footer a,
.ups-archive-removed a {
    color: var(--ups-green-dark, #1f6b4a);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition:
        opacity 0.18s ease,
        color 0.18s ease;
}

.ups-archive-item-tools a:hover,
.ups-archive-footer a:hover,
.ups-archive-removed a:hover {
    opacity: 0.78;
    text-decoration: none;
}

.ups-archive-empty {
    max-width: 560px;
    padding-top: 0.6rem;
}

.ups-archive-empty h2 {
    margin: 0 0 0.45rem;
    font-size: 1.18rem;
    line-height: 1.28;
    font-weight: 560;
    color: var(--ups-ink, #102033);
}

.ups-archive-empty p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ups-muted, #657184);
}

.ups-archive-footer {
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    font-size: 0.9rem;
}

.ups-archive-removed {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.ups-archive-removed h2 {
    margin: 0 0 1.1rem;
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 560;
    letter-spacing: -0.01em;
    color: var(--ups-muted, #657184);
}

.ups-archive-item-removed {
    opacity: 0.68;
}

.ups-archive-removed-empty {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ups-muted, #657184);
}

@media (max-width: 760px) {

    .ups-archive-page {
        padding: 1.6rem 1.1rem 2.6rem;
    }

    .ups-archive-header {
        margin-bottom: 1.7rem;
    }

    .ups-archive-header h1 {
        font-size: 1.65rem;
		font-family: "Domine", serif;
    }

    .ups-archive-item h2 {
        font-size: 1.02rem;
        line-height: 1.34;
    }

    .ups-archive-item-tools {
        gap: 0.2rem 0.75rem;
    }

    .ups-archive-footer {
        margin-top: 2.6rem;
    }

    .ups-archive-removed {
        margin-top: 2.3rem;
    }
}

/* =========================================================
   Desktop fixed app frame for Archive + Static pages
   Sidebar fixed, topbar fixed, only page body scrolls.
   ========================================================= */

@media (min-width: 901px) {

  .ups-main-content:has(.ups-archive-page),
  .ups-main-content:has(.ups-static-page) {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .ups-main-content:has(.ups-archive-page) .ups-content-shell,
  .ups-main-content:has(.ups-archive-page) .ups-content-inner,
  .ups-main-content:has(.ups-static-page) .ups-content-shell,
  .ups-main-content:has(.ups-static-page) .ups-content-inner {
    min-height: 0;
    overflow: hidden;
  }

  .ups-main-content:has(.ups-archive-page) .ups-content-inner,
  .ups-main-content:has(.ups-static-page) .ups-content-inner {
    flex: 1 1 auto;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .ups-main-content:has(.ups-static-page) .ups-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .ups-static-page {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
  }

  .ups-static-page-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 28px;
  }

  .ups-static-page-card {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Fix static page card height inside fixed app frame */

@media (min-width: 901px) {

  .ups-main-content:has(.ups-static-page) .ups-static-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .ups-main-content:has(.ups-static-page) .ups-static-page-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .ups-main-content:has(.ups-static-page) .ups-static-page-card > *:last-child {
    margin-bottom: 0;
  }
}


/* =========================================================
   OVERVIEW AI REFLECTION DISCUSSION
   Phase 1: session-based discussion under the Overview document.
   ========================================================= */

.ups-overview-ai-discussion {
  margin: 14px 0 4px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(36, 92, 66, 0.12);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.ups-overview-ai-discussion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ups-overview-ai-kicker {
  margin: 0 0 5px;
  color: #245c42;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.ups-overview-ai-discussion h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--ups-text);
}

.ups-overview-ai-muted {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--ups-text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ups-overview-ai-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 248, 244, 0.96);
  border: 1px solid rgba(180, 60, 60, 0.18);
  color: #8b2e2e;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.ups-overview-ai-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.ups-overview-ai-message {
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(36, 92, 66, 0.10);
  background: rgba(244, 248, 246, 0.78);
}

.ups-overview-ai-message.is-user {
  background: rgba(74, 144, 226, 0.06);
  border-color: rgba(74, 144, 226, 0.12);
}

.ups-overview-ai-message-label {
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #245c42;
}

.ups-overview-ai-message.is-user .ups-overview-ai-message-label {
  color: #245d9a;
}

.ups-overview-ai-message-text {
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.5;
}

.ups-overview-ai-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
}

.ups-overview-ai-form-discuss {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ups-overview-ai-form textarea {
  width: 100%;
  min-height: 76px;
  max-height: 150px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 92, 66, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ups-text);
  font-size: 0.94rem;
  line-height: 1.5;
  resize: vertical;
}

.ups-overview-ai-form textarea:focus {
  outline: none;
  border-color: rgba(36, 92, 66, 0.34);
  box-shadow: 0 0 0 4px rgba(36, 92, 66, 0.08);
}

.ups-overview-ai-reset-form {
  margin: 0;
}

.ups-overview-ai-reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ups-text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ups-overview-ai-reset:hover,
.ups-overview-ai-reset:focus-visible {
  color: var(--ups-text);
  outline: none;
}

.ups-overview-ai-access-link {
  min-height: 40px;
}

@media (max-width: 900px) {
  .ups-overview-ai-discussion {
    padding: 16px;
    border-radius: 16px;
  }

  .ups-overview-ai-discussion-head,
  .ups-overview-ai-form,
  .ups-overview-ai-form-discuss {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ups-overview-ai-form .ups-btn-primary,
  .ups-overview-ai-access-link {
    width: 100%;
  }
}
