/* Navstar Flows — werkvlak (v0.2): editor met modules als cirkels op een canvas. */
body.werkvlak { height: 100vh; overflow: hidden; }
main.werkvlak-main { max-width: none; padding: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
body.werkvlak > main > .melding:not(.wv-fouten) { position: fixed; top: 108px; left: 50%; transform: translateX(-50%); z-index: 70;
  box-shadow: var(--schaduw-zwaar); animation: weg 4s forwards; }
@keyframes weg { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.wv-fouten { position: fixed; top: 160px; left: 24px; z-index: 65; max-width: 520px; box-shadow: var(--schaduw-zwaar); }

.wv-kop { display: flex; align-items: center; gap: .8rem; height: 58px; padding: 0 1.25rem; background: var(--wit); border-bottom: 1px solid var(--rand-zacht); flex: none; z-index: 5; }
.wv-terug { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--inkt-zacht); }
.wv-terug:hover { background: var(--kopgrijs); color: var(--blauw-donker); }
input.wv-naam { border: 1px solid transparent; font-family: var(--kop); font-weight: 700; font-size: 1.3rem; color: var(--navy);
                width: min(560px, 50vw); height: 40px; padding: 0 .5rem; background: transparent; }
input.wv-naam:hover { border-color: var(--rand); }
input.wv-naam:focus { border-color: var(--blauw); background: var(--wit); }
.wv-gewijzigd { color: var(--let-op); font-weight: 600; font-size: .88rem; }

.canvas { flex: 1; position: relative; overflow: hidden; cursor: grab; touch-action: none; min-height: 0;
          background-color: #f6f9fc; background-image: radial-gradient(#c9d6e2 1.2px, transparent 1.2px); background-size: 22px 22px; }
.canvas.pakt { cursor: grabbing; }
.wereld { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lijnen { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.lijnen .lijn { stroke: #9fb4c6; stroke-width: 3; stroke-dasharray: 1 9; stroke-linecap: round; fill: none; }
.lijnen .lijn.leeg { stroke: #c9d6e2; }

.module { position: absolute; width: 140px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.module-cirkel { width: 92px; height: 92px; border-radius: 50%; border: 0; color: var(--wit); cursor: pointer; display: flex; align-items: center;
                 justify-content: center; box-shadow: 0 8px 22px rgba(11, 39, 64, .18), inset 0 -4px 0 rgba(0, 0, 0, .08); transition: transform .12s, box-shadow .12s; }
.module-cirkel svg { width: 40px; height: 40px; stroke-width: 1.8; }
.module-cirkel:hover { transform: scale(1.05); box-shadow: 0 12px 28px rgba(11, 39, 64, .24); }
.module.gekozen .module-cirkel { box-shadow: 0 0 0 5px var(--wit), 0 0 0 8px var(--blauw), 0 12px 28px rgba(11, 39, 64, .24); }
.module.fout .module-cirkel { box-shadow: 0 0 0 5px var(--wit), 0 0 0 8px var(--fout); }
.module-naam { margin-top: .7rem; font-weight: 600; font-size: .92rem; color: var(--navy); line-height: 1.25; }
.module-soort { font-size: .8rem; color: var(--inkt-mist); margin-top: .1rem; }
.module-klok { position: absolute; left: 14px; top: 58px; width: 34px; height: 34px; border-radius: 50%; background: var(--wit); color: var(--goed);
               display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(11, 39, 64, .18); }
.module-klok svg { width: 20px; height: 20px; }
.bel { position: absolute; top: -6px; left: 92px; min-width: 30px; height: 30px; padding: 0 .45rem; border-radius: 999px; border: 2px solid var(--wit);
       background: var(--navy); color: var(--wit); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; box-shadow: 0 3px 10px rgba(11, 39, 64, .25); }
.bel.fout { background: var(--fout); }

.plus-knop { position: absolute; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.plus-knop.eind { width: 92px; height: 92px; border: 2px dashed #b4c6d6; background: rgba(255, 255, 255, .7); color: #8aa3b8; }
.plus-knop.eind svg { width: 34px; height: 34px; }
.plus-knop.eind:hover { border-color: var(--blauw); color: var(--blauw); background: var(--wit); }
.plus-knop.tussen { width: 26px; height: 26px; border: 1px solid var(--rand); background: var(--wit); color: var(--blauw); opacity: 0; transition: opacity .12s; }
.plus-knop.tussen svg { width: 14px; height: 14px; }
.canvas:hover .plus-knop.tussen { opacity: .9; }
.plus-knop.tussen:hover { opacity: 1; background: var(--blauw); color: var(--wit); border-color: var(--blauw); }

.zoom { position: absolute; right: 18px; bottom: 18px; display: flex; flex-direction: column; background: var(--wit); border-radius: 12px; box-shadow: var(--schaduw-zwaar); overflow: hidden; }
.zoom button { width: 40px; height: 38px; border: 0; background: none; color: var(--inkt-zacht); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zoom button + button { border-top: 1px solid var(--rand-zacht); }
.zoom button:hover { color: var(--blauw); background: var(--blauw-zacht); }

.onderbalk { flex: none; height: 78px; background: var(--wit); border-top: 1px solid var(--rand-zacht); display: flex; align-items: center; gap: 1rem;
             padding: 0 1.25rem; box-shadow: 0 -6px 20px rgba(0, 60, 100, .05); z-index: 5; }
.speel { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--verloop); color: var(--wit); cursor: pointer; display: flex;
         align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 136, 202, .35); flex: none; }
.speel svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.speel:hover { filter: brightness(1.08); }
.ob-tekst { display: flex; flex-direction: column; line-height: 1.2; }
.ob-tekst strong { font-family: var(--kop); color: var(--navy); }
.ob-tekst span { font-size: .8rem; color: var(--inkt-mist); }
.ob-scheiding { width: 1px; height: 38px; background: var(--rand-zacht); }
.ob-stand { display: flex; align-items: center; gap: .5rem; }
.ob-start { color: var(--inkt-zacht); font-size: .9rem; font-weight: 600; }
.ob-rechts { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.ob-knop { display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 .9rem; border-radius: 999px; border: 0; background: none;
           font: inherit; font-weight: 600; color: var(--inkt-zacht); cursor: pointer; }
.ob-knop:hover { background: var(--kopgrijs); color: var(--blauw-donker); }

.lade { position: fixed; right: 0; top: 150px; bottom: 78px; width: 430px; max-width: 100vw; background: var(--wit); border-left: 1px solid var(--rand-zacht);
        box-shadow: -14px 0 40px rgba(0, 60, 100, .1); z-index: 40; display: flex; flex-direction: column; }
.lade-kop { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--rand-zacht); }
.lade-kop h2 { font-size: 1.15rem; flex: 1; }
.lade-titel { flex: 1; min-width: 0; }
.lade-titel h2 { font-size: 1.1rem; }
.lade-titel span { font-size: .82rem; }
.lade-rond { width: 44px; height: 44px; border-radius: 50%; color: var(--wit); display: flex; align-items: center; justify-content: center; flex: none; }
.lade-rond svg { width: 22px; height: 22px; }
.lade-inhoud { flex: 1; overflow-y: auto; padding: 1.1rem 1.2rem; }
.lade-uitleg { color: var(--inkt-zacht); font-size: .9rem; margin-bottom: 1rem; }
.lade-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--inkt-mist); margin: 1.2rem 0 .5rem; }
.lade-voet { display: flex; gap: .4rem; align-items: center; padding: .8rem 1.2rem; border-top: 1px solid var(--rand-zacht); }
.lade-voet .rechts { margin-left: auto; min-width: 72px; }
.lade .paar { grid-template-columns: 120px 1fr 32px; }
.uitvoer .meldingen { list-style: none; padding: 0; margin: .5rem 0; }
.uitvoer .meldingen li { padding: .15rem 0; color: var(--inkt-zacht); font-size: .9rem; }
.uitvoer details { margin: .5rem 0; }
.uitvoer .foutregel { color: #a8262b; font-weight: 600; }
table.lijst.klein td { padding: .35rem .5rem; font-size: .85rem; word-break: break-word; }
.lade-inhoud > .knop { margin-top: 1rem; }

.kiezer-pop { position: fixed; z-index: 80; width: 380px; max-height: min(520px, calc(100vh - 270px)); overflow-y: auto; background: var(--wit); border: 1px solid var(--rand);
              border-radius: var(--r); box-shadow: var(--schaduw-zwaar); padding: .8rem; }
.kiezer-pop h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--inkt-mist); margin: .7rem .3rem .3rem; }
.kiezer-pop button { display: flex; gap: .7rem; align-items: center; width: 100%; text-align: left; border: 0; background: none; border-radius: 10px;
                     padding: .5rem; font: inherit; cursor: pointer; color: var(--inkt); }
.kiezer-pop button:hover { background: var(--blauw-zacht); }
.kiezer-pop strong { display: block; font-size: .93rem; }
.kiezer-pop small { display: block; color: var(--inkt-mist); font-size: .8rem; line-height: 1.3; }
.kiezer-rond { width: 38px; height: 38px; border-radius: 50%; color: var(--wit); display: flex; align-items: center; justify-content: center; flex: none; }
.kiezer-rond svg { width: 19px; height: 19px; }
