/* BusiTrace: links het beeld, rechts de stappen (zoals Vector Magic, maar licht en duidelijk). */
:root { --bt-ink: #0f172a; --bt-stil: #64748b; --bt-lijn: #e2e8f0; --bt-vlak: #ffffff; --bt-achter: #f1f5f9; --bt-accent: #0d9488; --bt-accent2: #0f766e; --bt-groen: #16a34a; --bt-fout: #dc2626; }
html, body { margin: 0; height: 100%; background: var(--bt-achter); color: var(--bt-ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bt-pagina { display: flex; flex-direction: column; min-height: 100vh; }
.bt-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #0f172a; color: #fff; }
.bt-top a { color: #fff; text-decoration: none; }
.bt-top .bt-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.bt-top .bt-logo img { width: 26px; height: 26px; }
.bt-top .bt-sp { flex: 1; }
.bt-top select, .bt-top .bt-tknop { background: #1e293b; color: #fff; border: 1px solid #334155; border-radius: 8px; padding: 5px 9px; font: inherit; }
.bt-top .bt-wie { color: #cbd5e1; font-size: 13px; }
#bt-app { flex: 1 0 auto; min-height: 560px; }   /* basis = de hoogte van .bt (scherm min kopbalk), anders groeit het mee met het paneel */
.bt { display: grid; grid-template-columns: 1fr 340px; height: calc(100vh - 46px); min-height: 560px; grid-template-rows: minmax(0, 1fr); }
.bt > * { min-height: 0; }   /* het paneel schuift zelf, de pagina wordt niet langer dan het scherm */
.bt-links { position: relative; min-width: 0; background: #cbd5e1; }
.bt-doek { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.bt-doek.sleept { cursor: grabbing; }
.bt.slepen .bt-links { outline: 4px dashed var(--bt-accent); outline-offset: -8px; }
.bt-balk { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 4px; padding: 4px; background: rgba(255,255,255,.95); border: 1px solid var(--bt-lijn); border-radius: 10px; box-shadow: 0 4px 16px rgba(15,23,42,.12); }
.bt-wknop, .bt-zknop { border: 0; background: transparent; padding: 6px 10px; border-radius: 7px; font: inherit; font-weight: 600; color: var(--bt-ink); cursor: pointer; }
.bt-wknop:hover:not(:disabled), .bt-zknop:hover { background: var(--bt-achter); }
.bt-wknop.aan { background: var(--bt-accent); color: #fff; }
.bt-wknop:disabled { color: #cbd5e1; cursor: default; }
.bt-zknop { min-width: 32px; font-size: 16px; }
.bt-pct { min-width: 46px; text-align: center; color: var(--bt-stil); font-size: 12px; }
.bt-balk .bt-sp { width: 8px; }
.bt-melding { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; background: #0f172a; color: #fff; padding: 9px 16px; border-radius: 10px; pointer-events: none; max-width: 80%; }
.bt-melding.zicht { opacity: 1; transform: translate(-50%, 0); }
.bt-melding.fout { background: var(--bt-fout); }
.bt-paneel { background: var(--bt-vlak); border-inline-start: 1px solid var(--bt-lijn); overflow-y: auto; padding: 16px 16px 90px; /* onderaan ruimte: de BusiMatch-footer ligt over de onderkant */ display: flex; flex-direction: column; gap: 14px; }
.bt-kop h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.bt-kop p { margin: 2px 0 0; color: var(--bt-stil); }
.bt-blok { display: flex; flex-direction: column; gap: 10px; }
.bt-blok h2 { margin: 0; font-size: 17px; }
.bt-blok h3 { margin: 4px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--bt-stil); }
.bt-rij { flex-direction: row; display: flex; gap: 8px; }
.bt-klein { margin: 0; color: var(--bt-stil); font-size: 12.5px; }
.bt-ok { margin: 0; color: var(--bt-accent2); font-weight: 600; font-size: 13px; }
.bt-fout { margin: 0; color: var(--bt-fout); min-height: 1em; }
.bt-kiesvak { border: 2px dashed #94a3b8; border-radius: 14px; padding: 26px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; background: #f8fafc; }
.bt-kiesvak:hover { border-color: var(--bt-accent); }
.bt-kiesvak p { margin: 0; color: var(--bt-stil); }
.bt-kiesicoon { font-size: 30px; color: var(--bt-accent); }
.bt-hoofdknop { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 11px 18px; background: var(--bt-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.bt-hoofdknop:hover { background: var(--bt-accent2); }
.bt-hoofdknop:disabled { opacity: .6; cursor: progress; }
.bt-knop { border: 1px solid var(--bt-lijn); border-radius: 9px; padding: 8px 14px; background: #fff; font: inherit; font-weight: 600; color: var(--bt-ink); cursor: pointer; }
.bt-knop:hover:not(:disabled) { background: var(--bt-achter); }
.bt-knop:disabled { color: #94a3b8; cursor: default; }
.bt-modus { display: flex; align-items: center; gap: 12px; text-align: start; width: 100%; border: 1px solid var(--bt-lijn); border-radius: 12px; padding: 12px; background: #fff; font: inherit; color: var(--bt-ink); cursor: pointer; position: relative; }
.bt-modus:hover:not(:disabled) { border-color: var(--bt-accent); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.bt-modus:disabled { cursor: default; opacity: .65; }
.bt-mtekst { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.bt-mtekst small { color: var(--bt-stil); }
.bt-groen { flex: none; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #86efac, #16a34a 60%, #14532d); box-shadow: 0 3px 8px rgba(22,163,74,.45), inset 0 -3px 6px rgba(0,0,0,.25); }
.bt-auto { border-color: #bbf7d0; background: #f0fdf4; }
.bt-label { font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 99px; padding: 2px 8px; }
.bt-bezig { align-items: center; text-align: center; }
.bt-tandwiel { font-size: 46px; color: #3b82f6; animation: bt-draai 2.2s linear infinite; }
@keyframes bt-draai { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bt-tandwiel { animation: none; } }
.bt-voortgang { width: 100%; height: 10px; border-radius: 99px; background: var(--bt-achter); overflow: hidden; }
.bt-voortgang span { display: block; height: 100%; background: var(--bt-groen); transition: width .25s; }
.bt-stappen { margin: 0; padding: 0; list-style: none; width: 100%; text-align: start; display: flex; flex-direction: column; gap: 4px; color: #94a3b8; }
.bt-stappen li::before { content: '○ '; }
.bt-stappen li.klaar { color: var(--bt-accent2); }
.bt-stappen li.klaar::before { content: '✓ '; }
.bt-stappen li.nu { color: var(--bt-ink); font-weight: 700; }
.bt-stappen li.nu::before { content: '▸ '; }
.bt-veld { display: flex; flex-direction: column; gap: 5px; }
.bt-vlabel { font-size: 12.5px; color: var(--bt-stil); }
.bt-keuzes { display: flex; gap: 4px; flex-wrap: wrap; }
.bt-keuze { flex: 1; border: 1px solid var(--bt-lijn); background: #fff; border-radius: 8px; padding: 7px 8px; font: inherit; cursor: pointer; }
.bt-keuze.aan { border-color: var(--bt-accent); background: #ccfbf1; color: #134e4a; font-weight: 700; }
.bt-getal, .bt-dveld input, .bt-dveld select { border: 1px solid var(--bt-lijn); border-radius: 8px; padding: 8px 10px; font: inherit; background: #fff; color: var(--bt-ink); min-width: 0; }
.bt-vink { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.bt-vink input { width: 16px; height: 16px; accent-color: var(--bt-accent); }
.bt-palet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.bt-palet li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.bt-palet small { color: var(--bt-stil); margin-inline-start: auto; }
.bt-staal { width: 20px; height: 20px; border-radius: 5px; border: 1px solid rgba(15,23,42,.15); flex: none; }
.bt-scherm { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.bt-venster { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 60px rgba(15,23,42,.35); }
.bt-venster h2 { margin: 0; font-size: 19px; }
.bt-venster p { margin: 0; }
.bt-dveld { display: flex; flex-direction: column; gap: 4px; }
.bt-dveld > span { font-size: 12.5px; color: var(--bt-stil); }
.bt-twee { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bt-knoppen { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  .bt { grid-template-columns: 1fr; grid-template-rows: 55vh auto; height: auto; }
  .bt-links { min-height: 55vh; }
  .bt-paneel { border-inline-start: 0; border-top: 1px solid var(--bt-lijn); }
}
.bt-taal { position: relative; }
.bt-taal summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.bt-taal summary::-webkit-details-marker { display: none; }
.bt-taalmenu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--bt-lijn); border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.25); padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 300px; }
.bt-taalmenu a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--bt-ink) !important; font-size: 13px; }
.bt-taalmenu a:hover, .bt-taalmenu a.aan { background: var(--bt-achter); }
.bt-taalmenu img { border-radius: 2px; }

/* 1b: Basis, pipet, eigen kleuren */
.bt-doek.pipet { cursor: crosshair; }
.bt-icoon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #e0f2fe; }
.bt-kaarten { display: flex; flex-direction: column; gap: 6px; }
.bt-kaart { display: flex; flex-direction: column; gap: 2px; text-align: start; border: 1px solid var(--bt-lijn); border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit; color: var(--bt-ink); cursor: pointer; }
.bt-kaart small { color: var(--bt-stil); }
.bt-kaart:hover { border-color: var(--bt-accent); }
.bt-kaart.aan { border-color: var(--bt-accent); background: #f0fdfa; box-shadow: 0 0 0 2px rgba(13,148,136,.25); }
.bt-wizard h2 { font-size: 16px; }
.bt-paletblok { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--bt-lijn); padding-top: 10px; }
.bt-eigen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bt-eigen li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.bt-eigen input[type=color] { width: 30px; height: 26px; padding: 0; border: 1px solid var(--bt-lijn); border-radius: 6px; background: none; cursor: pointer; }
.bt-weg { margin-inline-start: auto; border: 0; background: none; color: var(--bt-stil); font-size: 16px; cursor: pointer; border-radius: 6px; padding: 0 6px; }
.bt-weg:hover { background: #fee2e2; color: var(--bt-fout); }
.bt-wrap { flex-wrap: wrap; }
.bt-midden { align-items: center; }
.bt-pipet.aan { background: #fff7ed; border-color: #f97316; color: #9a3412; }
.bt-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bt-link { border: 0; background: none; padding: 2px 0; color: #0369a1; text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; text-align: start; }
.bt-staalknop { position: relative; display: inline-flex; cursor: pointer; }
.bt-staalknop .bt-kleurin { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.bt-palet li.aan { outline: 2px solid #f97316; outline-offset: 2px; border-radius: 6px; }

/* 2a: Bewerken */
.bt-doek.bewerk { cursor: crosshair; }
.bt-doek[data-gereedschap="pan"] { cursor: grab; }
.bt-gereedschappen { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bt-gereedschap { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--bt-lijn); border-radius: 9px; background: #fff; padding: 6px 2px; font: inherit; font-size: 11px; cursor: pointer; color: var(--bt-ink); }
.bt-gereedschap span:first-child { font-size: 18px; }
.bt-gereedschap.aan { border-color: var(--bt-accent); background: #ccfbf1; color: #134e4a; font-weight: 700; }
.bt-guit { min-height: 2.6em; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-chip { position: relative; width: 34px; height: 34px; border: 1px solid var(--bt-lijn); border-radius: 8px; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; font: inherit; font-weight: 700; color: var(--bt-stil); }
.bt-chip .bt-staal { width: 24px; height: 24px; }
.bt-chip.aan { outline: 3px solid #f97316; outline-offset: 1px; }
.bt-chip.leeg .bt-staal { background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.bt-plus .bt-kleurin { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.bt-bijwerken { font-size: 12px; color: var(--bt-accent2); opacity: 0; transition: opacity .15s; }
.bt-bijwerken.zicht { opacity: 1; }
.bt-bewerk input[type=range] { flex: 1; accent-color: var(--bt-accent); }
.bt-bewerkknop { font-weight: 700; }

/* 3a: Geavanceerd */
.bt-groep { border: 1px solid var(--bt-lijn); border-radius: 10px; padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 10px; }
.bt-groep > summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.bt-groep[open] > summary { margin-bottom: 2px; }
.bt-schuif { display: flex; flex-direction: column; gap: 3px; }
.bt-schuifkop { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.bt-schuif input[type=range] { width: 100%; accent-color: var(--bt-accent); }
.bt-klein-getal { width: 78px; padding: 4px 6px; text-align: end; }
.bt-bewaard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bt-bewaard li { display: flex; align-items: center; gap: 6px; }
/* 3b-C: Opkuisen en hertekenen (AI) */
.bt-invoer { border: 1px solid var(--bt-lijn); border-radius: 8px; padding: 8px 10px; font: inherit; background: #fff; color: var(--bt-ink); min-width: 0; width: 100%; box-sizing: border-box; }
.bt-opkuis { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--bt-lijn); border-radius: 12px; padding: 12px; background: #fff; }
.bt-opkuis h3 { margin: 0; font-size: 15px; }
.bt-opkuis .bt-veld span { font-size: 12.5px; color: var(--bt-stil); }
.bt-prijs { background: #e0f2fe; color: #075985; }
.bt-fouttekst { margin: 0; color: #b91c1c; font-size: 13px; font-weight: 600; }
.bt-opkuismelding .bt-link { font-weight: 600; }
