/* Heyuma oefengroepen: rustig, warm, mobiel eerst. Kleuren uit het ontwerp. */

:root {
  --purple: #573588;
  --purple-dark: #432869;
  --purple-tint: #ede8f4;
  --purple-tint-2: #f1ecf7;
  --ink: #1f1a2b;
  --ink-2: #4a4458;
  --ink-3: #3a3347;
  --muted: #5e5870;
  --line: #ece8f1;
  --line-2: #d6d0e0;
  --bg: #f6f4f9;
  --card: #ffffff;
  --green: #3f6b4f;
  --green-dark: #2f5a3e;
  --green-tint: #e3ece5;
  --green-tint-2: #eef3ef;
  --green-ink: #2f3d33;
  --sand: #6b4e1f;
  --sand-tint: #efe6d8;
  --sky: #2e5470;
  --sky-tint: #dce6ee;
  --danger: #b3261e;
  --radius: 20px;
  --radius-sm: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #ebe7f0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

.screen {
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) {
  .screen {
    box-shadow: 0 0 0 1px #e0dbe7, 0 20px 60px rgba(31, 26, 43, 0.08);
  }
}

a {
  color: var(--purple);
}
a:hover {
  color: var(--purple-dark);
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.display {
  font-size: 34px;
  line-height: 1.08;
}
p {
  margin: 0;
}
code {
  font-size: 0.9em;
}

/* ---------------------------------------------------------------- opbouw */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 6px;
  min-height: 64px;
}
.topbar-steps {
  padding-top: 10px;
  padding-bottom: 0;
}
.wordmark {
  font-size: 22px;
  font-weight: 750;
  color: var(--purple);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-nav a {
  text-decoration: none;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.content {
  flex: 1 0 auto;
  padding: 16px 24px 24px;
}
.actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 24px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(246, 244, 249, 0.85), var(--bg) 18px);
}

.stack,
.stack-sm,
.stack-xs,
.stack-xxs {
  display: flex;
  flex-direction: column;
}
.stack {
  gap: 20px;
}
.stack-sm {
  gap: 12px;
}
.stack-xs {
  gap: 8px;
}
.stack-xxs {
  gap: 3px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.grow {
  flex-grow: 1;
  min-width: 0;
}
.center {
  text-align: center;
}

/* ---------------------------------------------------------------- tekst */

.lead {
  font-size: 17px;
  color: var(--ink-2);
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 14px;
}
.big {
  font-size: 20px;
  font-weight: 700;
}
.kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.muted-link {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.strike {
  text-decoration: line-through;
}
.pre {
  white-space: pre-wrap;
}
.danger-text {
  color: var(--danger) !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flash {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green-ink);
  font-size: 15px;
}
.flash-error {
  background: #f7e3e1;
  color: #6e1a14;
}

/* ---------------------------------------------------------------- pictogrammen */

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-sm {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.icon-green {
  stroke: var(--green);
}
.btn .icon {
  stroke: currentColor;
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------- kaarten */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
}
.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link:hover {
  color: inherit;
  box-shadow: 0 0 0 2px var(--purple-tint);
}
.card.is-muted {
  background: #f0edf4;
}
.meeting {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-actions > .inline-form,
.card-actions > .btn-primary {
  flex: 1 1 auto;
}
.card-actions .inline-form .btn {
  width: 100%;
}
.card-actions-later {
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.join-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.join-hint .icon {
  width: 20px;
  height: 20px;
}
.duo-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 6px 18px;
}
.info-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child {
  border-bottom: 0;
}
.info-list.plain {
  padding: 0;
}
.info-list.plain li {
  align-items: flex-start;
  border: 0;
  padding: 6px 0;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 15px;
}
.notice .icon {
  margin-top: 1px;
}
.notice-green {
  background: var(--green-tint-2);
  color: var(--green-ink);
}
.notice-green .icon {
  stroke: var(--green);
}
.notice-purple {
  background: var(--purple-tint);
  color: var(--ink-3);
}
.notice-sand {
  background: #f6efe4;
  color: #4d3a1a;
}
.notice-sand .icon {
  stroke: var(--sand);
}
.notice.stack-xs,
.notice.stack-sm {
  display: flex;
  flex-direction: column;
}

.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pill-purple {
  background: var(--purple-tint);
  color: var(--purple);
}
.pill-green {
  background: var(--green-tint);
  color: var(--green-dark);
}
.pill-sand {
  background: var(--sand-tint);
  color: var(--sand);
}
.pill-grey {
  background: var(--line);
  color: var(--ink-2);
}
.pill-dark {
  background: #2a2436;
  color: #d9d2e6;
}

.done-mark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.done-mark .icon {
  stroke: #fff;
  width: 32px;
  height: 32px;
  stroke-width: 2.4;
}

/* ---------------------------------------------------------------- avatars */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  font-weight: 600;
}
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.avatar-md {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 24px;
}
.tint-0 {
  background: var(--green-tint);
  color: var(--green-dark);
}
.tint-1 {
  background: var(--sand-tint);
  color: var(--sand);
}
.tint-2 {
  background: var(--sky-tint);
  color: var(--sky);
}
.tint-3 {
  background: #e7e1f0;
  color: var(--purple);
}
.avatar-self {
  background: transparent;
  border: 1px dashed #8a829a;
  color: var(--muted);
  font-size: 13px;
}
.avatar.is-absent {
  opacity: 0.4;
}
.avatar-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.people-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.people-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  min-width: 48px;
}

/* ---------------------------------------------------------------- knoppen */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn:focus-visible,
.chip input:focus-visible + span,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #a98ad6;
  outline-offset: 2px;
}
.btn-block {
  width: 100%;
}
.actions .btn-primary {
  min-height: 56px;
  font-size: 17px;
  border-radius: 16px;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--purple-dark);
  color: #fff;
}
.btn-quiet {
  background: var(--purple-tint);
  color: var(--purple);
  font-weight: 600;
}
.btn-quiet:hover {
  background: #e3dbef;
  color: var(--purple-dark);
}
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--purple);
  color: var(--purple);
}
.btn-outline-muted {
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-weight: 500;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--ink);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #941f18;
  color: #fff;
}
.btn-sm {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 12px;
}
.inline-form {
  display: flex;
  margin: 0;
}
.inline-form .btn-block {
  width: 100%;
}
.actions .inline-form {
  flex-direction: column;
}

/* ---------------------------------------------------------------- formulieren */

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='password'],
input[type='date'],
input[type='time'] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
fieldset {
  margin: 0;
  border: 0;
}
.input-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.input-row,
.copy-row {
  display: flex;
  gap: 8px;
}
.input-row input,
.copy-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.copy-row input {
  font-size: 13px;
  color: var(--ink-2);
}

.choice-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}
.chip input:checked + span {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
}
.chip-green input:checked + span {
  background: var(--green);
  border-color: var(--green);
}

.avail-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.avail-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.avail-day {
  width: 30px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.pref-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pref-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e4dfeb;
}
.pref-list li:last-child {
  border-bottom: 0;
}
.pref-name {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
.pref-chips {
  display: flex;
  gap: 6px;
}
.pref-chips .chip {
  flex: 0 0 auto;
}

.progress {
  display: flex;
  gap: 6px;
  padding: 6px 24px 0;
}
.progress span {
  flex: 1 1 0;
  height: 4px;
  border-radius: 2px;
  background: #ddd6e8;
}
.progress span.is-done {
  background: var(--purple);
}

.toggles {
  padding-top: 4px;
  padding-bottom: 4px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.toggle-row:last-child {
  border-bottom: 0;
}
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  background: #cfc8da;
  cursor: pointer;
  transition: background 0.15s;
}
.switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.15s;
}
.switch:checked {
  background: var(--green);
}
.switch:checked::before {
  transform: translateX(20px);
}
.switch:focus-visible {
  outline: 3px solid #a98ad6;
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- lijsten */

.list-nav {
  display: flex;
  flex-direction: column;
  padding: 4px 18px;
}
.list-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.list-nav a:last-child {
  border-bottom: 0;
}
.list-nav a .icon {
  stroke: var(--muted);
}
.list-plain {
  list-style: none;
  margin: 0;
  padding: 4px 18px;
}
.list-plain li {
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.list-plain li:last-child {
  border-bottom: 0;
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px;
}
.member-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.member-list li:last-child {
  border-bottom: 0;
}
.member-list.compact li {
  padding: 8px 0;
}
.member-list li.is-highlight {
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--purple-tint-2);
}
.member-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 56px;
}
.more summary {
  list-style: none;
  cursor: pointer;
  padding: 0 4px;
}
.more summary::-webkit-details-marker {
  display: none;
}
.more-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4px;
}
.more-body .btn {
  padding-left: 0;
}
.member-actions .more {
  flex-basis: 100%;
}
.member-actions .btn-primary + .more {
  flex-basis: auto;
}
.status {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.status-green {
  color: var(--green-dark);
}
.status-sand {
  color: var(--sand);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--line);
  color: var(--ink-2);
  font-size: 13px;
}
.stat strong {
  font-size: 26px;
  line-height: 1.1;
}
.stat-green {
  background: var(--green-tint);
  color: var(--green-ink);
}
.stat-green strong {
  color: var(--green-dark);
}
.stat-sand {
  background: var(--sand-tint);
  color: #4d3a1a;
}
.stat-sand strong {
  color: var(--sand);
}

/* ---------------------------------------------------------------- testmodus video */

.theme-dark {
  background: #0f0c15;
}
.theme-dark .screen {
  background: #17131f;
  color: #fff;
}
.theme-dark .actions {
  background: #17131f;
}
.dev-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dev-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: #2a2436;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 3px #7db08c;
}
.dev-name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(23, 19, 31, 0.7);
  font-size: 13px;
}
.dev-note {
  color: #c9c2d6;
}

/* ---------------------------------------------------------------- taal en tijdzones */

.lang-toggle {
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-toggle:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.lang-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--line);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  vertical-align: middle;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
select:focus-visible {
  outline: 3px solid #a98ad6;
  outline-offset: 2px;
}

.small .icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.tz-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px;
}
.tz-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tz-list li:last-child {
  border-bottom: 0;
}
.tz-now {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tz-time {
  align-items: flex-end;
  text-align: right;
}
.tz-time time {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.icon-sun {
  stroke: #b7791f;
}
.icon-moon {
  stroke: #5e5870;
}
.list-plain.flush {
  padding: 0;
}
.list-plain li {
  display: flex;
  align-items: center;
}
