:root {
  --ups-fundament: #4a90e2;
  --ups-keuze: #50c878;
  --ups-problem: #f5a623;
  --ups-analyse: #e94e77;
  --ups-inzicht: #9b59b6;
  --ups-oplossing: #245c42;

  /* UPS mini button system */
  --ups-button-primary-bg: #166534;
  --ups-button-primary-bg-hover: #14532d;
  --ups-button-primary-text: #ffffff;
  --ups-button-secondary-bg: rgba(22, 163, 74, 0.10);
  --ups-button-secondary-bg-hover: rgba(22, 163, 74, 0.16);
  --ups-button-secondary-border: rgba(22, 163, 74, 0.25);
  --ups-button-secondary-border-hover: rgba(22, 163, 74, 0.34);
  --ups-button-secondary-text: #166534;
  --ups-button-ghost-bg: rgba(15, 23, 42, 0.045);
  --ups-button-ghost-bg-hover: rgba(15, 23, 42, 0.07);
  --ups-button-ghost-border: rgba(15, 23, 42, 0.08);
  --ups-button-ghost-text: #334155;
  --ups-button-radius: 14px;
  --ups-button-height: 44px;
  --ups-button-padding-x: 20px;
  --ups-button-font-size: 0.95rem;
  --ups-button-font-weight: 800;
  --ups-button-shadow: 0 10px 24px rgba(22, 101, 52, 0.20);
  --ups-button-shadow-hover: 0 12px 28px rgba(22, 101, 52, 0.24);

  --ups-bg-top: #edf4f0;
  --ups-bg-bottom: #ffffff;

  --ups-bg-accent-1: rgba(74, 144, 226, 0.11);
  --ups-bg-accent-2: rgba(80, 200, 120, 0.08);
  --ups-bg-accent-3: rgba(36, 92, 66, 0.10);
  --ups-bg-accent-4: rgba(155, 89, 182, 0.07);

  --ups-text: #111827;
  --ups-text-soft: #334155;
  --ups-text-muted: #64748b;
  --ups-text-faint: #94a3b8;

  --ups-border: rgba(15, 23, 42, 0.08);
  --ups-border-strong: rgba(15, 23, 42, 0.12);

  --ups-panel: rgba(255, 255, 255, 0.72);
  --ups-panel-strong: rgba(255, 255, 255, 0.90);
  --ups-panel-solid: #ffffff;
  --ups-hover: rgba(255, 255, 255, 0.96);

  --ups-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
  --ups-shadow-medium: 0 18px 42px rgba(15, 23, 42, 0.08);
  --ups-shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.12);

  --ups-radius-sm: 12px;
  --ups-radius-md: 16px;
  --ups-radius-lg: 22px;
  --ups-radius-xl: 28px;
  --ups-radius-2xl: 36px;

  --ups-transition-fast: 0.18s ease;
  --ups-transition-medium: 0.28s ease;

  --ups-density: 1;

  --ups-space-1: calc(4px * var(--ups-density));
  --ups-space-2: calc(8px * var(--ups-density));
  --ups-space-3: calc(12px * var(--ups-density));
  --ups-space-4: calc(16px * var(--ups-density));
  --ups-space-5: calc(20px * var(--ups-density));
  --ups-space-6: calc(24px * var(--ups-density));
  --ups-space-7: calc(28px * var(--ups-density));
  --ups-space-8: calc(32px * var(--ups-density));

  --ups-font-xs: calc(10px * var(--ups-density));
  --ups-font-sm: calc(12px * var(--ups-density));
  --ups-font-md: calc(14px * var(--ups-density));
  --ups-font-lg: calc(16px * var(--ups-density));
  --ups-font-xl: calc(18px * var(--ups-density));

  --ups-content-padding: calc(30px * var(--ups-density));
}

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

html {
  scrollbar-gutter: stable;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ups-text);
  background:
    radial-gradient(circle at top left, var(--ups-bg-accent-1) 0%, transparent 28%),
    radial-gradient(circle at top right, var(--ups-bg-accent-2) 0%, transparent 24%),
    radial-gradient(circle at bottom right, var(--ups-bg-accent-3) 0%, transparent 22%),
    radial-gradient(circle at bottom left, var(--ups-bg-accent-4) 0%, transparent 18%),
    linear-gradient(180deg, var(--ups-bg-top) 0%, var(--ups-bg-bottom) 74%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.04) 26%, rgba(255, 255, 255, 0.00) 100%);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--ups-text);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
}

strong {
  font-weight: 700;
}

small {
  font-size: 0.875em;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--ups-transition-fast),
    background var(--ups-transition-fast),
    border-color var(--ups-transition-fast),
    box-shadow var(--ups-transition-fast),
    transform var(--ups-transition-fast);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
}

textarea {
  resize: vertical;
}

ul,
ol {
  margin-top: 0;
  padding-left: 1.2em;
}

table {
  width: 100%;
  border-collapse: collapse;
}

::selection {
  background: rgba(74, 144, 226, 0.18);
  color: var(--ups-text);
}

:focus-visible {
  outline: 2px solid rgba(74, 144, 226, 0.38);
  outline-offset: 2px;
}

.ups-glass {
  background: var(--ups-panel);
  border: 1px solid var(--ups-border);
  box-shadow: var(--ups-shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ups-card {
  border-radius: var(--ups-radius-lg);
  background: var(--ups-panel-strong);
  border: 1px solid var(--ups-border);
  box-shadow: var(--ups-shadow-soft);
}

.ups-card-solid {
  border-radius: var(--ups-radius-lg);
  background: var(--ups-panel-solid);
  border: 1px solid var(--ups-border);
  box-shadow: var(--ups-shadow-soft);
}

/* =========================================================
   UPS Button System
   Solid, calm, consistent buttons across the product.
   ========================================================= */

.ups-button,
.ups-button-primary,
.ups-button-secondary,
.ups-button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ups-button-height);
  padding: 0 var(--ups-button-padding-x);
  border-radius: var(--ups-button-radius);
  font-size: var(--ups-button-font-size);
  font-weight: var(--ups-button-font-weight);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--ups-transition-fast),
    background-color var(--ups-transition-fast),
    border-color var(--ups-transition-fast),
    box-shadow var(--ups-transition-fast),
    color var(--ups-transition-fast);
}

.ups-button:hover,
.ups-button-primary:hover,
.ups-button-secondary:hover,
.ups-button-ghost:hover,
.ups-button:focus-visible,
.ups-button-primary:focus-visible,
.ups-button-secondary:focus-visible,
.ups-button-ghost:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.ups-button-primary {
  color: var(--ups-button-primary-text);
  background: var(--ups-button-primary-bg);
  border: 1px solid var(--ups-button-primary-bg);
  box-shadow: var(--ups-button-shadow);
}

.ups-button-primary:hover,
.ups-button-primary:focus-visible {
  color: var(--ups-button-primary-text);
  background: var(--ups-button-primary-bg-hover);
  border-color: var(--ups-button-primary-bg-hover);
  box-shadow: var(--ups-button-shadow-hover);
}

.ups-button-secondary {
  color: var(--ups-button-secondary-text);
  background: var(--ups-button-secondary-bg);
  border: 1px solid var(--ups-button-secondary-border);
  box-shadow: none;
}

.ups-button-secondary:hover,
.ups-button-secondary:focus-visible {
  color: var(--ups-button-secondary-text);
  background: var(--ups-button-secondary-bg-hover);
  border-color: var(--ups-button-secondary-border-hover);
  box-shadow: none;
}

.ups-button-ghost {
  color: var(--ups-button-ghost-text);
  background: var(--ups-button-ghost-bg);
  border: 1px solid var(--ups-button-ghost-border);
  box-shadow: none;
}

.ups-button-ghost:hover,
.ups-button-ghost:focus-visible {
  color: var(--ups-text);
  background: var(--ups-button-ghost-bg-hover);
  border-color: var(--ups-border-strong);
  box-shadow: none;
}

.ups-button.is-disabled,
.ups-button-primary.is-disabled,
.ups-button-secondary.is-disabled,
.ups-button-ghost.is-disabled,
.ups-button[aria-disabled="true"],
.ups-button-primary[aria-disabled="true"],
.ups-button-secondary[aria-disabled="true"],
.ups-button-ghost[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.ups-container {
  width: min(1440px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.ups-muted {
  color: var(--ups-text-muted);
}

.ups-soft {
  color: var(--ups-text-soft);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 92, 66, 0.24) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(36, 92, 66, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(36, 92, 66, 0.30);
  border: 2px solid transparent;
  background-clip: padding-box;
}

@media (min-width: 1600px) {
  :root {
    --ups-density: 1.04;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  :root {
    --ups-density: 0.88;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --ups-density: 0.94;
  }

  body {
    background-attachment: scroll;
  }

  .ups-container {
    width: min(100% - 24px, 1440px);
  }
}

@media (max-width: 767px) {
  :root {
    --ups-density: 1;
  }

  body {
    font-size: 15px;
    background-attachment: scroll;
  }

  .ups-container {
    width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .ups-container {
    width: calc(100% - 16px);
  }
}
/* =========================================================
   FINAL REFLECTION — COMPACT PREMIUM PANEL
   Add this at the bottom of content.css
   ========================================================= */

.ups-reflection-overview-premium {
    display: flex;
    flex-direction: column;
    height: 31vh;
    max-height: 31vh;
    min-height: 230px;
    border-radius: 16px;
    overflow: hidden;
}

.ups-reflection-overview-premium .ups-reflection-overview-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 8px;
    min-height: 38px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ups-reflection-overview-premium .ups-reflection-overview-kicker {
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #166534;
}

.ups-reflection-overview-premium .ups-reflection-overview-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(22, 101, 52, 0.08);
    color: #166534;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.ups-reflection-overview-premium .ups-reflection-overview-count.is-complete {
    background: rgba(22, 163, 74, 0.13);
}

.ups-reflection-overview-premium .ups-reflection-overview-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px 8px;
    scrollbar-width: thin;
}

.ups-reflection-overview-premium .ups-reflection-overview-row {
    margin: 0 0 10px;
}

.ups-reflection-overview-premium .ups-reflection-overview-title {
    display: inline-block;
    margin: 0 0 2px;
    font-size: 0.88rem;
    line-height: 1.18;
    font-weight: 800;
    text-decoration: none;
}

.ups-reflection-overview-premium .ups-reflection-overview-row p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.28;
}

.ups-reflection-overview-premium .ups-reflection-overview-empty {
    color: #64748b;
    font-style: italic;
}

.ups-reflection-overview-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.94), #fff);
}

.ups-reflection-overview-action-text {
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.25;
    white-space: nowrap;
}

.ups-reflection-overview-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.ups-reflection-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ups-reflection-action:hover {
    transform: translateY(-1px);
}

.ups-reflection-action-primary {
    color: #ffffff;
    background: var(--ups-button-primary-bg);
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.18);
}

.ups-reflection-action-secondary {
    color: #166534;
    background: rgba(22, 163, 74, 0.09);
    border: 1px solid rgba(22, 163, 74, 0.20);
}

.ups-reflection-action-tertiary {
    color: #334155;
    background: rgba(15, 23, 42, 0.045);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.ups-reflection-action.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

@media (max-width: 900px) {
    .ups-reflection-overview-premium {
        height: auto;
        max-height: none;
    }

    .ups-reflection-overview-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ups-reflection-overview-action-text {
        white-space: normal;
    }

    .ups-reflection-overview-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* =========================================================
   MY UPS — ACCOUNT ACTION BUTTONS
   Review problem = secondary / Final reflection = primary
   ========================================================= */

.ups-reflection-side,
.ups-account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

.ups-account-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ups-account-action:hover {
    transform: translateY(-1px);
}

.ups-account-action-primary {
    color: #ffffff;
    background: var(--ups-button-primary-bg);
    border: 1px solid var(--ups-button-primary-bg);
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.20);
}

.ups-account-action-primary:hover {
    background: var(--ups-button-primary-bg-hover);
    border-color: var(--ups-button-primary-bg-hover);
    box-shadow: 0 12px 28px rgba(22, 101, 52, 0.24);
}

.ups-account-action-secondary {
    color: #166534;
    background: rgba(22, 163, 74, 0.10);
    border: 1px solid rgba(22, 163, 74, 0.25);
    box-shadow: none;
}

.ups-account-action-secondary:hover {
    background: rgba(22, 163, 74, 0.16);
    border-color: rgba(22, 163, 74, 0.34);
}

@media (max-width: 767px) {
    .ups-reflection-side,
    .ups-account-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ups-account-action {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* =========================================================
   MOBILE OVERSCROLL CONTAINMENT
   Prevents rubber-band micro movement on fixed mobile views.
   ========================================================= */

@media (max-width: 900px) {
  html,
  body {
    overscroll-behavior-y: none;
  }
}
