/* Conversie (23-10): label Voorbeeld, startkaart, proefregel en proef-voorbij-melding. App-stijl, geen pop-ups. */
.voorbeeld-label {
  display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 1px 7px; border-radius: 5px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  font-size: 11px; font-weight: 600; line-height: 16px; letter-spacing: .01em; white-space: nowrap;
}
.sidebar-item .voorbeeld-label { margin-left: 4px; font-size: 10px; line-height: 14px; padding: 0 6px; }
.voorbeeld-label-kop { font-size: 11px; }

/* Startkaart bovenaan het dashboard */
.startkaart {
  width: 100%; max-width: 720px; box-sizing: border-box; margin: 0 0 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 10px; color: var(--text);
}
/* 26.43: in donker viel de rand van de kaart weg (--border lijkt op --card); daar een zichtbaardere rand uit bestaande variabelen. */
.startkaart { --startkaart-rand: var(--border); --startkaart-cirkel: var(--border); border-color: var(--startkaart-rand); }
html[data-theme="dark"] .startkaart { --startkaart-rand: color-mix(in srgb, var(--control-border) 45%, var(--card)); --startkaart-cirkel: color-mix(in srgb, var(--control-border) 70%, var(--card)); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .startkaart { --startkaart-rand: color-mix(in srgb, var(--control-border) 45%, var(--card)); --startkaart-cirkel: color-mix(in srgb, var(--control-border) 70%, var(--card)); } }
.startkaart-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.startkaart-kopje { margin: 0; font-size: 15px; font-weight: 600; }
.startkaart-voortgang { color: var(--muted); font-size: 12px; }
button.startkaart-sluit {
  width: 32px; height: 32px; flex: 0 0 32px; padding: 0; margin: -4px -6px 0 0; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); box-shadow: none;
}
button.startkaart-sluit:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); border-color: transparent; }
button.startkaart-sluit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.startkaart-lijst { list-style: none; margin: 8px 0 0; padding: 0; }
.startkaart-stap { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--startkaart-rand); }
.startkaart-stap:first-child { border-top: 0; }
.startkaart-vink {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 1.5px solid var(--startkaart-cirkel); box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; color: var(--opposite-text, #fff);
}
.startkaart-stap.is-klaar .startkaart-vink { background: var(--accent); border-color: var(--accent); }
.startkaart-tekst { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.startkaart-titel { font-size: 14px; font-weight: 500; }
.startkaart-stap.is-klaar .startkaart-titel { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.startkaart-uitleg { color: var(--muted); font-size: 12px; line-height: 1.4; }
/* Bevestiging na een stap (25-10): korte groene regel onder een stap die net klaar is. */
.startkaart-gelukt { display: block; color: var(--success, #1f8a4c); font-size: 12px; line-height: 1.4; }
.startkaart-actie { flex: 0 0 auto; }
/* Knoppen in ruststand zoals de velden; pas bij hover/focus/actief de accentkleur. */
button.startkaart-knop, a.startkaart-knop, #pageContent a.startkaart-knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; margin: 0; padding: 7px 14px; min-height: 34px; box-sizing: border-box;
  background: var(--bg); color: var(--text); border: 1px solid var(--control-border, var(--border)); border-radius: 8px;
  font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; box-shadow: none; white-space: nowrap;
}
button.startkaart-knop:hover:not(:disabled), a.startkaart-knop:hover, #pageContent a.startkaart-knop:hover { border-color: var(--accent); text-decoration: none; }
button.startkaart-knop:focus-visible, a.startkaart-knop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.startkaart-knop[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--opposite-text); }
button.startkaart-knop:disabled { opacity: .5; cursor: default; }
button.startkaart-knop .knop-spinner { margin-right: 0; }
@media (max-width: 640px) {
  .startkaart { padding: 12px 12px 8px; }
  .startkaart-stap { flex-wrap: wrap; }
  .startkaart-tekst { flex: 1 1 0; }
  /* Knop op een eigen regel onder de tekst, het rondje blijft naast de titel (fix 24-10: rondje stond los op een regel) */
  .startkaart-actie { flex: 0 0 calc(100% - 30px); margin-left: 30px; }
}

/* Proefregel onder de AI-teller in het accountmenu */
.account-proef {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 0 9px 9px; margin: -2px 0 4px;
  border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px;
}
.account-proef[hidden] { display: none; }
.account-proef-scheiding { color: var(--muted); }
a.account-proef-link { color: var(--text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); font-weight: 600; }
a.account-proef-link:hover, a.account-proef-link:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
a.account-proef-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
a.account-proef-link .knop-spinner { width: 9px; height: 9px; margin-right: 4px; vertical-align: -1px; }
.account-proef.is-accent, .account-proef.is-accent .account-proef-tekst { color: var(--accent); font-weight: 600; }
.account-proef.is-accent a.account-proef-link { color: var(--accent); }
/* Als de AI-teller verborgen is, krijgt de proefregel zelf wat ruimte bovenaan. */
#aiLimietTeller[hidden] + .account-proef { padding-top: 8px; margin-top: 0; }

/* Eenmalige melding na afloop van de proef */
.proef-voorbij-melding {
  width: 100%; max-width: 720px; box-sizing: border-box; margin: 0 auto 10px;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px;
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; color: var(--text);
}
.proef-voorbij-tekst { flex: 1 1 auto; margin: 0; font-size: 13px; line-height: 1.45; }
#pageContent a.proef-voorbij-knop, a.proef-voorbij-knop {
  flex: 0 0 auto; display: inline-flex; align-items: center; padding: 7px 14px; min-height: 34px; box-sizing: border-box; border-radius: 8px;
  background: var(--accent); color: var(--opposite-text); font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
}
#pageContent a.proef-voorbij-knop:hover, #pageContent a.proef-voorbij-knop:focus-visible { box-shadow: 0 0 15px var(--accent); text-decoration: none; }
a.proef-voorbij-knop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.proef-voorbij-sluit {
  flex: 0 0 30px; width: 30px; height: 30px; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); box-shadow: none;
}
button.proef-voorbij-sluit:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); border-color: transparent; }
button.proef-voorbij-sluit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .proef-voorbij-melding { flex-wrap: wrap; }
  .proef-voorbij-tekst { flex-basis: calc(100% - 40px); }
}
.account-usage:has(+ .account-proef:not([hidden])) { border-bottom: 0; margin-bottom: 0; }
/* Voorbeelddossier-balk boven de berichten (23-10, feedback 12:48): einddatum + inline verwijderen. */
.voorbeeld-balk {
  flex: none; align-self: stretch; box-sizing: border-box; width: 100%; max-width: 720px; margin: 0 auto 4px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px 10px 14px;
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; color: var(--text);
}
.voorbeeld-balk-tekst { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.45; }
.voorbeeld-balk-acties { display: flex; gap: 6px; flex: 0 0 auto; }
button.voorbeeld-balk-knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; margin: 0; min-height: 34px; padding: 7px 14px; box-sizing: border-box;
  font-size: 13px; font-weight: 500; background: var(--bg); color: var(--text); border: 1px solid var(--control-border, var(--border));
  border-radius: 8px; box-shadow: none; cursor: pointer; white-space: nowrap;
}
button.voorbeeld-balk-knop:hover:not(:disabled) { border-color: var(--accent); }
button.voorbeeld-balk-knop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.voorbeeld-balk-knop.is-gevaar { background: #d64545; border-color: #d64545; color: #fff; }
button.voorbeeld-balk-knop.is-gevaar:hover:not(:disabled) { background: #c03a3a; border-color: #c03a3a; }
button.voorbeeld-balk-knop:disabled { opacity: .6; cursor: default; }
button.voorbeeld-balk-knop[hidden] { display: none; }
button.voorbeeld-balk-knop .knop-spinner { margin: 0; }
.voorbeeld-balk-melding { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); }
.voorbeeld-balk-melding:empty { display: none; }
.voorbeeld-balk-melding.fout { color: #d64545; }
@media (max-width: 640px) {
  .voorbeeld-balk { border-radius: 8px; }
  .voorbeeld-balk-acties { width: 100%; }
}
/* Startkaart monteur: voortgangsbalk en compliment */
.startkaart-balk { width: 160px; max-width: 100%; height: 4px; margin-top: 6px; border-radius: 999px; background: var(--startkaart-cirkel, var(--border)); overflow: hidden; }
.startkaart-balk > span { display: block; height: 100%; border-radius: inherit; background: var(--accent, #2aa7c9); transition: width .3s ease; }
.startkaart-compliment .startkaart-kopje { font-size: 15px; }

/* UX-ronde 15 punt 5 (D13, Harrie 27-10): status kon niet worden opgehaald -> stap 'onbekend' (vraagteken, gestippelde rand),
   met een regel en knop 'Opnieuw proberen' in de kop. Nooit 0 of 'nog te doen' tonen bij een fout. */
.startkaart-stap.is-onbekend .startkaart-vink { border-style: dashed; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; }
.startkaart-stap.is-onbekend .startkaart-uitleg { font-style: italic; }
.startkaart-onbekend-regel { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.startkaart-opnieuw { display: inline; width: auto; text-align: left; vertical-align: baseline; margin: 0 0 0 4px; padding: 0; min-height: 0; height: auto; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.startkaart-opnieuw:hover { color: var(--accent); }
.startkaart-opnieuw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 650px) { .startkaart-opnieuw { position: relative; } .startkaart-opnieuw::after { content: ""; position: absolute; inset: -12px -6px; } }
