.wrap { max-width: 1100px; margin: 0 auto; padding: 14px 14px 60px; }
.tabs { display: flex; gap: 6px; margin: 4px 0 14px; position: sticky; top: 52px; z-index: 10; background: var(--bg); padding: 8px 0; flex-wrap: wrap; }
.tabs button { flex: 1; min-width: 90px; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.tabs button[aria-pressed=true] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.panelbox { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.panelbox h2 { font-size: 16px; margin-bottom: 8px; }
.panelbox h3 { font-size: 13px; margin: 12px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.panelbox p, .panelbox li { line-height: 1.55; }
.panelbox ol, .panelbox ul { padding-left: 20px; margin: 6px 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .row2 { grid-template-columns: 1fr; } }

/* bibliotheek */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--accent); }
.pcard canvas { width: 100%; height: 120px; display: block; background: var(--surface); object-fit: contain; }
.pcard .meta { padding: 8px 10px; }
.pcard .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* weven */
.big { font-size: 22px; font-weight: 700; }
.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.dirbox { border-radius: 12px; padding: 12px; border: 2px solid; }
.dirbox.f { border-color: #2f9e57; background: color-mix(in srgb, #2f9e57 12%, transparent); }
.dirbox.b { border-color: #e0802a; background: color-mix(in srgb, #e0802a 12%, transparent); }
.dirbox b { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.dirbox .list { font-size: 22px; font-weight: 700; margin-top: 4px; word-break: break-word; }
.tiles { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.tile2 { width: 44px; border-radius: 9px; border: 2px solid; padding: 3px 0 5px; text-align: center; font-size: 11px; background: var(--panel); position: relative; }
.tile2.f { border-color: #2f9e57; }
.tile2.b { border-color: #e0802a; }
.tile2 .arrow { font-size: 18px; line-height: 1.1; }
.tile2.f .arrow { color: #2f9e57; }
.tile2.b .arrow { color: #e0802a; }
.tile2 .chip { width: 22px; height: 22px; aspect-ratio: 1; border-radius: 50%; margin: 3px auto 0; border: 1px solid rgba(128, 128, 128, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.tile2.chg::after { content: ''; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: #d92d20; border: 2px solid var(--bg); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.navbtns { display: flex; gap: 10px; margin: 14px 0; }
.navbtns .btn { flex: 1; justify-content: center; min-height: 52px; font-size: 16px; font-weight: 600; }
.navbtns .btn.primary { flex: 2; }
canvas.band { width: 100%; max-width: 420px; display: block; margin: 0 auto; border: 1px solid var(--border); border-radius: 6px; image-rendering: auto; background: var(--surface); }

/* rijgen */
.cardsvg { width: 170px; height: 170px; display: block; margin: 0 auto; }
.hole { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 16px; }
.hole .chip { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); flex: 0 0 auto; }
.hole b { width: 22px; }

/* bewerken */
.palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; align-items: center; }
.sw { width: 36px; height: 36px; border-radius: 8px; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.sw.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.scroll { overflow: auto; max-width: 100%; border: 1px solid var(--border); border-radius: 8px; }
table.grid { border-collapse: collapse; }
table.grid td, table.grid th { border: 1px solid var(--border); padding: 0; text-align: center; font-size: 11px; color: var(--muted); }
table.grid th { background: var(--surface); min-width: 28px; position: sticky; left: 0; }
table.grid td.c { width: 28px; height: 28px; cursor: pointer; }
table.grid td.f { background: color-mix(in srgb, #2f9e57 30%, transparent); color: #2f9e57; font-size: 15px; cursor: pointer; }
table.grid td.b { background: color-mix(in srgb, #e0802a 30%, transparent); color: #e0802a; font-size: 15px; cursor: pointer; }
table.grid td.dir { background: var(--surface); font-weight: 700; color: var(--text); cursor: pointer; width: 28px; height: 26px; }
.refs { display: flex; gap: 10px; flex-wrap: wrap; }
.ref { width: 150px; }
.ref img { width: 150px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; display: block; background: var(--surface); }
.imgmodal { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 80; overflow: auto; padding: 10px; cursor: zoom-out; }
.imgmodal img { max-width: none; width: 160%; max-width: 1600px; display: block; margin: 0 auto; background: #fff; }
textarea.t { width: 100%; min-height: 160px; font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px; color: var(--text); }
details.dd summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
