/* Sudoku gebruikt dezelfde basisvormgeving als de woordzoeker. */
[hidden] { display: none !important; }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.step-card { min-width: 0; }
.step-card input[type="file"] { width: 100%; font-size: .78rem; color: var(--muted); }
.step-card small, .field-help { line-height: 1.5; }
.step-title > span { flex: none; }
.direction-choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
button:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
button:disabled { opacity: .45; cursor: default; }
input:disabled + span { opacity: .45; }
input[type="radio"] { accent-color: var(--blue); }
.selection-label { font-size: .8rem; color: var(--ink); font-weight: 700; line-height: 1.5; margin: 6px 0; }
.image-previews-container { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; max-height: 300px; overflow-y: auto; padding: 7px; border-radius: 10px; background: var(--sky); }
.image-previews-container:empty { display: none; }
.theme-image-wrapper { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; padding: 6px; background: #fff; border: 2px solid transparent; border-radius: 9px; cursor: pointer; }
.theme-image-wrapper img { width: 100%; height: 100%; max-height: 70px; object-fit: contain; }
.theme-image-wrapper.selected { background: #dff1ff; border-color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
.theme-image-wrapper:hover { border-color: #8eb8d8; }
.secondary-action { border: 1px solid #cadbe6; background: #eaf5fc; color: var(--navy); border-radius: 9px; padding: 10px 12px; font-weight: 700; font-size: .8rem; cursor: pointer; }
.preview-navigation { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px; border-bottom: 1px solid #dfe8ee; font-size: .8rem; }
.preview-navigation button { border: 1px solid #cadbe6; border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--navy); cursor: pointer; }
#mainCanvas { width: min(794px,100%); height: auto; border: none; box-shadow: 0 4px 16px #263c4c20; }
.preview-footer { padding: 12px 18px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.preview-footer p { margin: 3px 0; }
.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; }
@media(max-width:760px) {
    .tool-header { gap: 12px; flex-wrap: wrap; padding: 16px; }
    .tool-header > div { flex: 1 1 210px; }
    .preview-panel { order: initial; }
    .preview-stage { justify-content: center; padding: 10px; }
    .preview-navigation { gap: 8px; }
}
