:root {
    --bg: #f5f5f7; --card: #ffffff; --text: #1c1c1e; --muted: #6e6e73; --line: #e5e5ea;
    --accent: #2E86AB; --error: #c62828; --field: #f5f5f7;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #000000; --card: #1c1c1e; --text: #f2f2f7; --muted: #98989d; --line: #2c2c2e; --field: #2c2c2e; --error: #ff6b6b; }
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text);
         font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
  main { max-width: 560px; margin: 0 auto; padding: 28px 16px 48px; }
  .card { background: var(--card); border-radius: 20px; padding: 24px; }
  .head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
  .avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; object-fit: cover;
            display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 26px; }
  h1 { font-size: 24px; margin: 0; }
  .sub { color: var(--muted); margin: 2px 0 0; font-size: 15px; }
  .intro { margin: 16px 0 4px; white-space: pre-line; }
  form { margin-top: 12px; }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
  label .opt { color: var(--muted); font-weight: 400; }
  input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--field);
    border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; margin: 0; }
  /* Overal even hoog, ook op iPhone (datum en keuzelijst hebben daar een eigen vorm). */
  input, select { height: 48px; -webkit-appearance: none; appearance: none; }
  input[type="date"] { display: block; min-width: 0; text-align: left; }
  input[type="date"]::-webkit-date-and-time-value { text-align: left; }
  select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
           background-repeat: no-repeat; background-position: right 14px center; }
  /* Leeg datumveld: tekst tonen zolang er niets gekozen is. */
  .datewrap { position: relative; }
  .datewrap .ph { display: none; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
  /* Alleen iPhone/iPad: daar blijft een leeg datumveld blanco (andere browsers tonen zelf dd-mm-jjjj). */
  @supports (-webkit-touch-callout: none) { .datewrap .ph { display: block; } }
  .datewrap.filled .ph { display: none !important; }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
  textarea { min-height: 96px; resize: vertical; }
  button { width: 100%; margin-top: 20px; font: inherit; font-weight: 700; color: #fff; background: var(--accent);
           border: 0; border-radius: 12px; padding: 14px; cursor: pointer; }
  button:disabled { opacity: .6; cursor: default; }
  .error { color: var(--error); font-size: 14px; margin: 12px 0 0; }
  .note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
  .done { text-align: center; padding: 12px 0; }
  .done .tick { font-size: 44px; }
  .ts { margin-top: 16px; }
  footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }
  footer a { color: inherit; }
  [hidden] { display: none !important; }
  /* Telefoon: alles onder elkaar. */
  @media (max-width: 600px) { .row { grid-template-columns: 1fr; gap: 0; } .card { padding: 20px; } }
.avatar.at { background: #1c1c1e; }

.setup { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(10, 132, 255, .1); font-size: 14px; line-height: 1.45; }

  /* huisstijl: klein woordmerk onder de kaart */
  .footer-logo { display: block; width: 110px; margin: 10px auto 0; line-height: 0; }
  .footer-logo img { width: 110px; height: auto; display: block; }
  .avatar.logo { border-radius: 12px; object-fit: cover; padding: 0; background: none; }
