.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; }

/* Upload in de AI Studio */
.upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 16px; }
.ai-form .upload-button { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 15px; border-radius: 11px; background: var(--ink); color: white; font-size: 13px; font-weight: 600; cursor: pointer; }
.upload-row input[type="file"]:focus-visible + .upload-button { outline: 3px solid #735ce4; outline-offset: 3px; }
.upload-row.busy .upload-button { opacity: .6; pointer-events: none; }
.ai-form .pages-field { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; }
.ai-form .pages-field[hidden] { display: none; }
.pages-field input { width: 104px; border: 1px solid #b6c5df; border-radius: 9px; padding: 8px 9px; background: rgba(255,255,255,.85); font-size: 12px; }
.upload-status { font-size: 12px; color: #4d5a63; line-height: 1.45; }
.upload-status.ok { color: #2f5d1e; font-weight: 600; }
.upload-status.error { color: #a13d27; font-weight: 600; }
.ai-form textarea.drop-target { outline: 3px dashed #735ce4; outline-offset: 2px; }

.plan-picker { border: 0; padding: 0; margin: 0 0 18px; }
.plan-picker legend { font-size: 11px; font-weight: 700; margin-bottom: 9px; padding: 0; }
.plan-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ai-form .plan-row label { display: inline-flex; align-items: center; gap: 6px; margin: 0; border: 1px solid #b6c5df; background: rgba(255,255,255,.55); border-radius: 99px; padding: 7px 12px; font-size: 12px; font-weight: 500; cursor: pointer; }
.ai-form .plan-row label:has(input:checked) { background: var(--ink); color: white; border-color: var(--ink); }
.plan-row input[type="radio"] { accent-color: var(--lime); margin: 0; }
.ai-form .plan-row .exam-field { cursor: default; }
.exam-field input { border: 0; background: transparent; font: inherit; color: inherit; }

/* Mijn geheugen */
.memory-section { max-width: 1284px; margin: 0 auto; padding: 0 48px 110px; }
.memory-section .section-heading h2 { margin: 12px 0 10px; }
.memory-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.memory-stats div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.memory-stats strong { display: block; font-family: "Space Grotesk"; font-size: 28px; }
.memory-stats span { color: var(--muted); font-size: 12px; }
.memory-list { display: grid; gap: 14px; }
.memory-empty { border: 1px dashed var(--line); border-radius: 18px; padding: 28px; text-align: center; color: var(--muted); }
.memory-empty a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.set-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 22px; align-items: start; }
.set-card.due { border-color: #b7da55; box-shadow: inset 5px 0 0 var(--lime); }
.set-card h3 { margin: 4px 0 6px; font-family: "Space Grotesk"; font-size: 20px; }
.set-meta { color: var(--muted); font-size: 12px; line-height: 1.55; }
.set-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.set-card.due .set-kicker { color: #4f6b10; }
.stage-dots { display: flex; gap: 5px; margin: 12px 0 6px; }
.stage-dots i { width: 22px; height: 7px; border-radius: 9px; background: var(--paper-deep); }
.stage-dots i.on { background: var(--ink); }
.history-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 8px; }
.history-bars i { width: 10px; border-radius: 3px 3px 0 0; background: #c7bdf0; min-height: 3px; }
.history-bars i.perfect { background: #8fbf2a; }
.set-plan { display: grid; gap: 10px; font-size: 12px; }
.set-plan label { display: grid; gap: 5px; font-weight: 600; }
.set-plan select, .set-plan input { border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; background: var(--paper); font: inherit; font-weight: 400; color: var(--ink); }
.upcoming { display: flex; flex-wrap: wrap; gap: 5px; }
.upcoming span { background: var(--paper-deep); border-radius: 99px; padding: 4px 9px; font-size: 11px; }
.upcoming span:first-child { background: var(--lime); }
.set-actions { display: grid; gap: 8px; min-width: 170px; }
.set-actions .button { min-height: 44px; }
.link-button { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 6px; }
.memory-explainer { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 760px; }
.memory-explainer summary { cursor: pointer; color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .set-card { grid-template-columns: 1fr; }
  .set-actions { min-width: 0; }
  .memory-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .memory-section { padding: 0 24px 80px; }
}
.set-card > * { min-width: 0; }
.set-plan select, .set-plan input { width: 100%; max-width: 100%; }
@media (max-width: 1100px) {
  .main-nav { gap: 22px; }
}
@media (max-width: 560px) {
  .site-header { flex-wrap: wrap; height: auto; padding: 16px 20px 6px; row-gap: 12px; }
  .main-nav { width: 100%; margin: 0; justify-content: space-between; gap: 10px; }
  .main-nav a { white-space: nowrap; }
}

/* Nieuwe stijl */
.set-card { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--lime); }
.set-card.due { box-shadow: 4px 4px 0 var(--coral); }
.memory-stats div { border: 2px solid var(--ink); }
.review-banner { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--lime); }
