/* Kaart van de dag · Academy of Minds
   Mobile first. Kleuren uit de huisstijl; tekstkleuren gekozen op contrast (WCAG 2.2 AA). */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/poppins-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(assets/fonts/open-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(assets/fonts/open-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #24364b;
  --navy-2: #2f4762;
  --blue: #00aeef;
  --lightblue: #8ac8ef;
  --paleblue: #e5f6fd;
  --yellow: #fff5cc;
  --ink: #1e2b3a;
  --muted: #4a5b6d;
  --line: #c6d9e6;
  --bg: #f4f9fc;
  --surface: #ffffff;
  --danger: #a4262c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(36, 54, 75, 0.08), 0 8px 24px rgba(36, 54, 75, 0.08);
  --shadow-card: 0 2px 6px rgba(36, 54, 75, 0.12), 0 18px 40px rgba(36, 54, 75, 0.16);
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 {
  font-size: 1.5rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 0.85em;
}
a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.35);
  border-radius: 4px;
}
[tabindex='-1']:focus {
  outline: none;
  box-shadow: none;
}
[tabindex='-1']:focus-visible {
  outline: 3px solid var(--navy);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 8px;
}

/* ---------- kop en navigatie ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* Geen backdrop-filter/transform hier: dat maakt de kop het referentiekader van het vaste menu onderin. */
}
.topbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 6px;
}
.brand img {
  width: 150px;
  height: auto;
  display: block;
}
.topbar__title {
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  white-space: nowrap;
}

.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 16px rgba(36, 54, 75, 0.06);
}
.tabs[hidden] {
  display: none;
}
.tab {
  appearance: none;
  border: 0;
  background: none;
  min-height: var(--tabbar-h);
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font: 600 0.75rem/1.2 var(--font-body);
  color: var(--muted);
  cursor: pointer;
  position: relative;
}
.tab svg {
  width: 24px;
  height: 24px;
}
.tab[aria-current='page'] {
  color: var(--navy);
}
.tab[aria-current='page']::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--blue);
}
.tab__badge {
  position: absolute;
  top: 8px;
  left: calc(50% + 8px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  line-height: 18px;
}

.banner {
  max-width: 44rem;
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  border: 1px solid #e6d68f;
  color: var(--ink);
  font-size: 0.95rem;
}
.banner[hidden] {
  display: none;
}

main {
  display: block;
  max-width: 72rem;
  margin: 0 auto;
  padding: 20px 16px 32px;
}
main:focus {
  outline: none;
}
.view {
  max-width: 40rem;
  margin: 0 auto;
}
.loading {
  color: var(--muted);
  text-align: center;
  padding: 48px 0;
}

.footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px 16px 32px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.footer p {
  margin: 0 0 4px;
}

/* ---------- algemene bouwstenen ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.panel > :last-child {
  margin-bottom: 0;
}
.eyebrow {
  display: inline-block;
  font: 600 0.78rem/1.3 var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.lead {
  font-size: 1.05rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.stack > * + * {
  margin-top: 12px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  font: 600 1rem/1.2 var(--font-head);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
}
.btn svg,
.btn-row .outcome svg,
.reflect__saved svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}
.btn--secondary {
  background: #fff;
  color: var(--navy);
}
.btn--secondary:hover {
  background: var(--paleblue);
}
.btn--danger {
  background: #fff;
  color: var(--danger);
  border-color: var(--danger);
}
.btn--danger:hover {
  background: #fbeeee;
}
.btn--block {
  width: 100%;
}
.btn--small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9rem;
}
.btn-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 44px;
  font: inherit;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  margin-bottom: 16px;
}
.field label,
.field .label,
fieldset legend {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.hint {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
.hint--above {
  margin: -2px 0 8px;
}

/* uitleg bij de gekozen denkfout */
.df-info {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paleblue);
  font-size: 0.925rem;
}
.df-info[hidden] {
  display: none;
}
.df-info p {
  margin: 0 0 6px;
}
.df-info > :last-child {
  margin-bottom: 0;
}
.df-info__title {
  font-weight: 700;
  color: var(--navy);
}
.df-info__ref {
  color: var(--muted);
}
input[type='text'],
input[type='time'],
input[type='date'],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #8ea4b8;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea {
  min-height: 104px;
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--navy);
}
[aria-invalid='true'] {
  border-color: var(--danger) !important;
}
.error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.925rem;
  margin: 6px 0 0;
}
.error:empty {
  display: none;
}
.counter {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
fieldset {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
}

/* keuzeknoppen (radio) */
.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.choices--6 {
  grid-template-columns: repeat(3, 1fr);
}
/* feedbackpagina (sinds 10-11) */
.choices--scale {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.choices--scale small {
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}
.view--feedback {
  padding-top: 8px;
}
.view--feedback h1 {
  margin-bottom: 8px;
}
.fb-form fieldset,
.fb-form .field {
  margin-bottom: 20px;
}
.fb-form .field > label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.fb-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fb-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.topbar__back {
  text-decoration: none;
}
.topbar__back:hover {
  text-decoration: underline;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 10px 6px;
  border: 2px solid #8ea4b8;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.choice svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.choice:hover span {
  border-color: var(--navy);
  background: var(--paleblue);
}
/* Gekozen: donkere vulling, dikkere rand én een vinkje in de hoek, dus niet alleen kleur. */
.choice input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 3px var(--blue);
}
.choice input:checked + span::after {
  content: '✓';
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--navy);
  border: 2px solid #fff;
  font: 700 13px/18px var(--font-body);
  text-align: center;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .choice span {
    transition: none;
  }
}
.choice input:focus-visible + span {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.35);
}

/* ---------- welkom ---------- */

.welcome {
  text-align: left;
}
.welcome__hero {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.welcome__visual {
  justify-self: center;
  width: 190px;
  aspect-ratio: 5 / 7;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy) 0%, #1b2a3b 100%);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  padding: 18px;
  transform: rotate(-3deg);
}
.welcome__visual img {
  width: 100%;
}
/* Voorbeeldkaart op de beginpagina: de echte kaart van dag 1 (zelfde onderdeel als op Vandaag). */
.welcome__card {
  margin: 0;
  justify-self: center;
  width: min(100%, 360px);
}
.welcome__card .card-scene {
  margin: 0;
}
.welcome__card figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.privacy-line + .privacy-line {
  margin-top: 8px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.steps__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.steps__num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font: 700 0.95rem/1 var(--font-head);
}
.steps__item strong {
  color: var(--navy);
}
.gains {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.gains li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.gains svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--blue);
}
.gains-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
}
.gains-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg);
}
.gains-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--navy);
}
.gains-group__title svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
}
.gains-group .gains {
  margin: 0;
}
@media (min-width: 640px) {
  .gains-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps--four {
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
}
.welcome__form {
  scroll-margin-top: 16px;
}
.welcome__form h2:focus {
  outline: none;
}
/* Beginblok: twee vakken, op telefoon onder elkaar, vanaf tablet naast elkaar. */
/* Teamvak: keuze nieuw team / meedoen, en het vinkje voor het weekend. */
.team-mode {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.team-mode legend {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  padding: 0;
}
.team-mode .choice span {
  min-height: 52px;
}
.checkline,
.field .checkline {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.checkline input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
}
.team-join p {
  margin-top: 0;
}
.welcome__start {
  display: grid;
  gap: 16px;
  align-items: start;
}
.welcome__start > .panel {
  margin: 0;
}
.welcome__start h2 {
  margin-top: 0;
}
.welcome__solo .btn,
.welcome__team .btn {
  margin-top: 8px;
}
@media (min-width: 768px) {
  .welcome__start {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 20px;
  }
}
/* Via een teamlink: één vak, niet over de volle breedte. */
.welcome__start--link {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .welcome__start.welcome__start--link {
    grid-template-columns: minmax(0, 1fr);
  }
}
.privacy-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.privacy-line svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--navy);
}
.more-intro .privacy-line {
  margin: 0 0 16px;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}
.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.facts svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--navy);
}
details.more {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 16px;
}
details.more summary {
  cursor: pointer;
  padding: 12px 14px;
  min-height: 48px;
  font-weight: 600;
  color: var(--navy);
}
details.more > div {
  padding: 0 14px 14px;
}

/* sinds 10-11: rustige tekstlinks en hulpregels */
.linkbtn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkbtn:hover {
  text-decoration-thickness: 2px;
}
.reminder-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 44rem;
  margin: -6px 0 14px;
  font-size: 0.875rem;
  color: var(--muted);
}
.reminder-tip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--navy);
}
.tag--concept {
  display: inline-block;
  padding: 2px 0;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.tag--concept .tag__label {
  font-weight: 600;
}
.tag--concept:hover {
  color: var(--navy);
}
.next-step {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.next-step p {
  margin: 0 0 6px;
}
.next-step__deep {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.next-step__deep svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--navy);
}
.next-step__help {
  font-size: 0.85rem;
}
.profile-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--navy);
}
.profile-name svg {
  width: 22px;
  height: 22px;
}
.more-intro > p {
  margin-top: 4px;
}
.more-intro .panel {
  box-shadow: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0 0;
  margin: 14px 0 0;
}
.more-intro .facts {
  margin: 14px 0 0;
}

/* uitklapbare uitleg: teamcode en kaart */
details.howto {
  border-left: 3px solid var(--blue);
  background: var(--paleblue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 16px;
}
details.howto summary {
  cursor: pointer;
  padding: 10px 12px;
  min-height: 44px;
  font-weight: 600;
  color: var(--navy);
}
details.howto summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
details.howto > ul,
details.howto > ol {
  margin: 0;
  padding: 0 14px 12px 34px;
  font-size: 0.925rem;
}
details.howto li + li {
  margin-top: 6px;
}
details.howto strong {
  color: var(--navy);
}
.howto--card {
  max-width: 44rem;
}

/* ---------- de kaart ---------- */

.today-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.today-head h1 {
  margin: 0;
  font-size: 1.35rem;
}
.progress-dots {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.progress-dots li {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #d5e4ee;
}
.progress-dots li.is-past {
  background: #aebfcc;
}
.progress-dots li.is-today {
  background: var(--navy);
}

.card-scene {
  perspective: 1600px;
  margin: 0 auto 20px;
  max-width: 26rem;
}
/* Beide kanten liggen in dezelfde rastercel: de kaart is zo hoog als de langste kant, dus niets wordt afgekapt. */
.card3d {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
  /* horizontaal vegen draait de kaart om; verticaal scrollen en zoomen blijven werken */
  touch-action: pan-y pinch-zoom;
}
.card3d.is-flipped {
  transform: rotateY(180deg);
}
.card3d.is-flipped-left {
  transform: rotateY(-180deg);
}
.card-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #f7fbfe 0%, #fff 40%);
}
.card-band {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-band img {
  width: 108px;
}
.card-band--back {
  background: var(--paleblue);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.card-band__label {
  font: 700 0.85rem/1.2 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-band__day {
  font: 600 0.78rem/1.2 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}
.card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-theme {
  font: 600 0.8rem/1.2 var(--font-head);
  color: var(--muted);
  margin: 0 0 4px;
}
.card-title {
  font-size: 1.45rem;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.card-title:focus {
  outline: none;
}
.card-title:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.card-sec {
  margin: 0 0 12px;
}
.card-sec__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 0.78rem/1.2 var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.card-sec__label svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.card-sec p {
  margin: 0;
  overflow-wrap: break-word;
}
.card-sec--task p {
  font-size: 1.05rem;
}
.card-sec--tip {
  background: var(--yellow);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.card-sec--example {
  border-left: 3px solid var(--lightblue);
  padding-left: 12px;
}
/* Ingeklapt praktijkvoorbeeld */
.card-fold summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  margin: 0;
  border-radius: 6px;
}
.card-fold summary::-webkit-details-marker {
  display: none;
}
.card-fold summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.card-fold[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.card-fold__hint {
  margin-left: auto;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-fold[open] .card-fold__hint {
  display: none;
}
.card-fold summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.card-fold p {
  margin-top: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .card-fold summary::after {
    transition: none;
  }
}
/* Beginpagina: voorbeeldkaart zo hoog als de voorkant (niet als de lange achterkant), zonder tip en hint. */
.welcome__card .card3d {
  display: block;
  position: relative;
}
.welcome__card .card-back {
  position: absolute;
  inset: 0;
  overflow-y: auto;
}
.welcome__card .card-sec--tip,
.welcome__card .card-hint {
  display: none;
}
.card-sec--reflect {
  background: var(--paleblue);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
}
.card-sec--more p {
  font-size: 0.925rem;
}
.card-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.btn--flip {
  width: 100%;
  margin-top: 12px;
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--flip:hover {
  background: #1b2a3b;
}
.btn--flip svg {
  width: 20px;
  height: 20px;
}
.btn--flip-back {
  margin-top: auto;
  background: #fff;
  color: var(--navy);
}
.btn--flip-back:hover {
  background: var(--paleblue);
}
.card-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
/* De verborgen kant pas na de halve draai onzichtbaar maken; samen met inert en aria-hidden in de code. */
.card3d:not(.is-flipped) .card-back {
  visibility: hidden;
  transition: visibility 0s linear 0.25s;
}
.card3d.is-flipped .card-front {
  visibility: hidden;
  transition: visibility 0s linear 0.25s;
}

/* ---------- reeks (vlammetje) ---------- */

.today-head__title {
  display: grid;
  gap: 2px;
}
.today-head {
  align-items: center;
}
.flame {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 54px;
  flex: 0 0 auto;
  margin: -6px 0 -4px;
}
.flame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.flame__layer {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.flame__spark {
  fill: #ffb627;
  opacity: 0;
}
.flame__num {
  position: relative;
  top: 11px;
  font: 800 1.1rem/1 var(--font-head);
  color: #fff;
  text-shadow: 0 0 1px #7a2400, 0 1px 1px #7a2400, 0 0 6px rgba(122, 36, 0, 0.55);
  letter-spacing: -0.02em;
}

/* Actief: volle kleur, gloed en flakkerende lagen. */
.flame--actief svg {
  filter: drop-shadow(0 0 5px rgba(255, 120, 20, 0.55)) drop-shadow(0 3px 8px rgba(230, 60, 0, 0.3));
}
.flame--actief .flame__outer {
  animation: flame-sway 2.4s ease-in-out infinite;
}
.flame--actief .flame__mid {
  animation: flame-sway 1.7s ease-in-out infinite reverse;
}
.flame--actief .flame__core {
  animation: flame-pulse 1.3s ease-in-out infinite;
}
.flame--actief .flame__spark--a {
  animation: flame-spark 2.6s ease-out infinite;
}
.flame--actief .flame__spark--b {
  animation: flame-spark 2.6s ease-out 1.3s infinite;
}
@keyframes flame-sway {
  0%,
  100% {
    transform: scale(1, 1) skewX(0deg);
  }
  30% {
    transform: scale(0.97, 1.04) skewX(-2.5deg);
  }
  65% {
    transform: scale(1.02, 0.97) skewX(2deg);
  }
}
@keyframes flame-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08, 1.12);
  }
}
@keyframes flame-spark {
  0% {
    opacity: 0;
    transform: translate(0, 6px) scale(1);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(2px, -10px) scale(0.3);
  }
}

/* Open: de reeks loopt nog, maar vandaag is nog niet geoefend. Rustiger en minder fel. */
.flame--open .flame__s--outer1 { stop-color: #f7a25c; }
.flame--open .flame__s--outer2 { stop-color: #fbc27f; }
.flame--open .flame__s--mid1 { stop-color: #fbc073; }
.flame--open .flame__s--mid2 { stop-color: #fde0a0; }
.flame--open .flame__s--core1 { stop-color: #fff8dc; }
.flame--open .flame__s--core2 { stop-color: #fff0bf; }
.flame--open .flame__outer {
  animation: flame-sway 3.6s ease-in-out infinite;
}
.flame--open .flame__num {
  text-shadow: 0 0 1px #9a4a10, 0 1px 1px #9a4a10, 0 0 5px rgba(154, 74, 16, 0.5);
}

/* Uit: grijs en stil. */
.flame--uit .flame__s--outer1,
.flame--uit .flame__s--outer2 { stop-color: #d5dde4; }
.flame--uit .flame__s--mid1,
.flame--uit .flame__s--mid2 { stop-color: #e4e9ee; }
.flame--uit .flame__s--core1,
.flame--uit .flame__s--core2 { stop-color: #f2f5f7; }
.flame--uit .flame__num {
  color: var(--muted);
  text-shadow: none;
}
.streak {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 15rem;
}
.streak--actief {
  border-color: #f3c27f;
  background: #fff8ec;
}
.streak__text {
  display: grid;
  line-height: 1.25;
}
.streak__text strong {
  font: 700 0.92rem/1.2 var(--font-head);
  color: var(--navy);
}
.streak__text span {
  font-size: 0.78rem;
  color: var(--muted);
}
.streak.is-bumped .flame {
  animation: flame-bump 0.7s ease-out;
}
@keyframes flame-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.35) rotate(-5deg);
    filter: drop-shadow(0 0 10px rgba(255, 120, 20, 0.9));
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}
.cheer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8ec;
  border: 1px solid #f3c27f;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 0 auto 16px;
  max-width: 26rem;
}
.cheer p {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}
.cheer--mile {
  background: linear-gradient(90deg, #fff1d6, #fff8ec);
}
.stat--streak {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat--streak .flame {
  width: 54px;
  height: 63px;
  margin: 0;
}
.stat--streak .flame__num {
  font-size: 1.3rem;
  top: 13px;
}
.stat--streak {
  grid-column: 1 / -1;
}
.stat__best {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--navy);
}
.streak-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
}
.progress-dots li.is-done {
  background: var(--blue);
}
.progress-dots li.is-today {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--navy);
}
.progress-dots li.is-today.is-done {
  background: var(--blue);
}
.progress-dots li.is-mile {
  height: 10px;
  margin-top: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .card3d {
    transition: none;
  }
  .card3d:not(.is-flipped) .card-back,
  .card3d.is-flipped .card-front {
    transition: none;
  }
  .streak.is-bumped .flame,
  .flame__layer,
  .flame__spark {
    animation: none !important;
  }
  .toast {
    transition: none !important;
  }
}

/* ---------- reflectie ---------- */

.reflect {
  max-width: 26rem;
  margin: 0 auto;
}
/* stap 1: de opdracht (sinds 10-11) */
.task {
  max-width: 26rem;
  margin: 0 auto 16px;
  border-left: 4px solid var(--blue);
}
.task .field,
.task fieldset {
  margin-bottom: 16px;
}
.task .field > label,
.task fieldset legend {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.task textarea {
  min-height: 84px;
}
.input--short {
  max-width: 7rem;
}
.task__options {
  display: grid;
  gap: 6px;
}
.task__option,
.task__check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.task__check label {
  font-weight: 600;
  color: var(--navy);
}
.task__option input,
.task__check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}
.task__option:has(input:checked),
.task__check label:has(input:checked) {
  border-color: var(--navy);
  background: var(--paleblue);
}
.task__option:has(input:focus-visible),
.task__check label:has(input:focus-visible) {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.task__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.task__foot .btn {
  margin: 0;
}
.task__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.answer {
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.answer__title {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--navy);
}
.answer__list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
}
.answer__label {
  color: var(--muted);
}
.reflect fieldset,
.reflect .field {
  margin-bottom: 22px;
}
.reflect fieldset legend,
.reflect .field > label {
  font-size: 1rem;
  margin-bottom: 8px;
}
.reflect__saved {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.yesterday {
  max-width: 26rem;
  margin: 0 auto;
}

/* ---------- kalender en voortgang ---------- */

.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.cal button {
  appearance: none;
  width: 100%;
  min-height: 64px;
  padding: 6px 2px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}
.cal button[disabled] {
  cursor: default;
  background: #f0f5f9;
  color: var(--muted);
  border-style: dashed;
}
.cal button.is-today {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.cal button[aria-pressed='true'] {
  background: var(--paleblue);
}
.cal__num {
  font: 600 0.95rem/1 var(--font-head);
  color: var(--navy);
}
.cal__date {
  font-size: 0.68rem;
  line-height: 1.1;
  color: var(--muted);
}
.cal svg {
  width: 20px;
  height: 20px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend svg {
  width: 18px;
  height: 18px;
}
.st-gelukt {
  color: var(--navy);
}
.st-deels {
  color: #1d6e96;
}
.st-niet {
  color: var(--danger);
}
.st-leeg {
  color: #7b8b9a;
}
.daydetail {
  background: var(--paleblue);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 4px;
}
.daydetail h3 {
  margin-bottom: 4px;
}
.daydetail p {
  margin: 0 0 6px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  background: var(--paleblue);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.stat__num {
  display: block;
  font: 700 1.6rem/1.1 var(--font-head);
  color: var(--navy);
}
.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
}
.bars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.bar__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.92rem;
}
.bar__track {
  height: 10px;
  border-radius: 5px;
  background: #dbe8f1;
  overflow: hidden;
  margin-top: 4px;
}
.bar__fill {
  height: 100%;
  background: var(--navy);
  border-radius: 5px;
  width: 0;
}
.bar__fill--alt {
  background: var(--blue);
}
.notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.notes li {
  border-left: 3px solid var(--lightblue);
  padding: 4px 0 4px 12px;
}
.notes .meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.note-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- beslisdagboek ---------- */

.dec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.dec {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fff;
}
.dec--due {
  border-color: var(--navy);
  box-shadow: inset 4px 0 0 var(--blue);
}
.dec__title {
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.dec__exp {
  margin: 0 0 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dec__meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.dec .btn-row .btn {
  flex: 1 1 8rem;
}
.outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.outcome svg {
  width: 18px;
  height: 18px;
}
.locked {
  text-align: center;
}
.locked svg {
  width: 40px;
  height: 40px;
  color: var(--lightblue);
}

/* ---------- meer ---------- */

.linklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.linklist a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-decoration: none;
}
.linklist a:hover {
  background: var(--paleblue);
}
.linklist strong {
  display: block;
  color: var(--navy);
}
.linklist span span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.linklist svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.sharebox {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sharebox input {
  flex: 1 1 14rem;
  font-size: 0.85rem;
}

/* ---------- dialoog en melding ---------- */

.dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(28rem, calc(100vw - 32px));
  width: 100%;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.dialog::backdrop {
  background: rgba(20, 31, 43, 0.55);
}
.dialog__form {
  padding: 22px;
}
.dialog__text {
  white-space: pre-line;
}
.dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.dialog__actions .btn {
  flex: 1 1 9rem;
}

/* keuze in de dialoog (opnieuw beginnen als teamlid) */
.dialog__choices {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.dialog__choice {
  position: relative;
  display: block;
}
.dialog__choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.dialog__choice > span {
  position: relative;
  display: block;
  padding: 12px 14px 12px 44px;
  border: 2px solid #8ea4b8;
  border-radius: var(--radius-sm);
  background: var(--bg);
  pointer-events: none;
}
.dialog__choice > span::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: #fff;
}
.dialog__choice strong {
  display: block;
  color: var(--navy);
}
.dialog__choice-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--muted);
}
.dialog__choice:hover > span {
  border-color: var(--navy);
}
/* Gekozen: dikke rand, lichte achtergrond én een gevuld rondje, dus niet alleen kleur. */
.dialog__choice input:checked + span {
  border-color: var(--navy);
  background: var(--paleblue);
  box-shadow: 0 0 0 2px var(--blue);
}
.dialog__choice input:checked + span::before {
  background: var(--navy);
  box-shadow: inset 0 0 0 3px #fff;
}
.dialog__choice input:focus-visible + span {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* dagen vóór een herstart met het team: zichtbaar, maar gedimd */
.cal .is-before {
  opacity: 0.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- grotere schermen ---------- */

@media (min-width: 390px) {
  .brand img {
    width: 160px;
  }
}

@media (min-width: 768px) {
  .topbar__inner {
    padding: 12px 24px;
    gap: 24px;
  }
  .brand img {
    width: 190px;
  }
  .topbar__title {
    margin-left: 0;
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }
  main {
    padding: 32px 24px 48px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .welcome__hero {
    grid-template-columns: 1fr 200px;
  }
  .welcome__visual,
  .welcome__card {
    grid-column: 2;
    grid-row: 1;
  }
  .welcome__hero:has(.welcome__card) {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps__item {
    flex-direction: column;
  }
  /* Vier stappen: 2 × 2 op tablet (de algemene regel hierboven zou 3 + 1 geven). */
  .steps.steps--four {
    grid-template-columns: 1fr 1fr;
  }
  .cal button {
    min-height: 76px;
  }
  .cal__date {
    font-size: 0.75rem;
  }
}

/* Vanaf 1024 px staat het menu in de kopbalk; daaronder blijft het onderin. */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
  .tabs {
    position: static;
    margin-left: auto;
    display: flex;
    gap: 4px;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: none;
  }
  .tab {
    flex-direction: row;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    gap: 8px;
  }
  .tab svg {
    width: 20px;
    height: 20px;
  }
  .tab:hover {
    background: var(--paleblue);
  }
  .tab[aria-current='page'] {
    background: var(--paleblue);
  }
  .tab[aria-current='page']::before {
    display: none;
  }
  .tab__badge {
    position: static;
  }
  .toast {
    bottom: 24px;
  }
  .view--today {
    max-width: 62rem;
  }
  .today-grid {
    display: grid;
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .today-grid .card-scene {
    margin: 0;
  }
  .today-grid .reflect,
  .today-grid .yesterday {
    margin: 0;
    max-width: none;
  }
  .today-grid .task {
    margin: 0 0 16px;
    max-width: none;
  }
  .view--wide {
    max-width: 52rem;
  }
  /* Beginpagina op pc: even breed als Vandaag, zodat de blokken mooi naast elkaar vallen. */
  .view--welcome {
    max-width: 62rem;
  }
  .view--welcome .welcome__hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 40px;
  }
  .view--welcome .welcome__hero:has(.welcome__card) {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
  }
  .view--welcome .steps.steps--four {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

}

@media (min-width: 1600px) {
  html {
    font-size: 17px;
  }
}

@media print {
  .tabs,
  .topbar,
  .footer,
  .toast {
    display: none !important;
  }
}

/* beheerpagina feedback (alleen voor beheerders) */
.view--beheer {
  padding: 24px 16px;
  max-width: 80rem;
}
.beheer-table {
  overflow-x: auto;
}
.beheer-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  background: #fff;
}
.beheer-table th,
.beheer-table td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

/* teamoverzicht (alleen met teamfuncties aan) */
.team-privacy {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 0.925rem;
}
.team-privacy li + li {
  margin-top: 6px;
}
.board-wrap {
  overflow-x: auto;
}
.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.board th,
.board td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.board thead th {
  font: 600 0.78rem/1.3 var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.board tbody th {
  font-weight: 600;
  color: var(--navy);
}
.board tr.is-me {
  background: var(--paleblue);
}
.board tr.is-me th {
  box-shadow: inset 4px 0 0 var(--blue);
}
.board .flame {
  width: 30px;
  height: 34px;
}
.rank {
  width: 3.2rem;
}
.rank__badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font: 700 0.85rem/1 var(--font-head);
  color: var(--navy);
  border: 2px solid var(--line);
  background: #fff;
}
.rank__badge--1 {
  border-color: #e3b23c;
  background: #fff6dc;
}
.rank__badge--2 {
  border-color: #a9b6c3;
  background: #f2f5f8;
}
.rank__badge--3 {
  border-color: #c9894f;
  background: #fbefe4;
}
.you {
  font-weight: 400;
  color: var(--muted);
}
.shared-group + .shared-group {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.shared-group h3 {
  margin: 0 0 8px;
}
.shared-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.shared-list > li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.shared-list > li.is-me {
  border-color: var(--blue);
}
.shared-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--navy);
}
.shared-name svg {
  width: 18px;
  height: 18px;
}
.task__share {
  margin-top: 4px;
}
.task__share-status {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* teamoverzicht 3.1: vandaag geoefend, beheerder, verwijderen */
.team-today {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--navy);
}
.team-today svg,
.board__today svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.board__today {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
}
.board__name {
  overflow-wrap: break-word;
}
.board__role {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: middle;
}
.board__remove {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 400;
}
@media (max-width: 420px) {
  .board {
    font-size: 0.875rem;
  }
  .board thead th {
    letter-spacing: 0;
    font-size: 0.7rem;
  }
  .rank {
    width: 2.4rem;
  }
  .board th,
  .board td {
    padding: 8px 4px;
  }
  .board .flame {
    width: 24px;
    height: 28px;
  }
}

/* online teamoverzicht: kop, kaart van vandaag, uitnodiging, melden */
.team-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
  color: var(--muted);
}
.team-head svg,
.invite-note svg,
.online-on svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--navy);
  vertical-align: middle;
}
.team-card h2 {
  margin: 2px 0 6px;
}
.invite-note {
  border-left: 4px solid var(--blue);
}
.invite-note p {
  margin: 0 0 10px;
}
.online-on {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.online-on p {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--navy);
}
.report-btn {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Na "Bewaar opdracht" scrolt de pagina naar stap 2; niet onder de vaste kopbalk. */
.panel.reflect {
  scroll-margin-top: 88px;
}

/* Vervolgstap bovenaan, onder het vlammetje */
.today-head + .next-step {
  margin: 4px 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.today-head + .next-step p:last-child {
  margin-bottom: 0;
}
