/* Het vrije gesprek (gesprek.js). Alle kleuren komen uit de variabelen van de
   gekozen stijl (--wg-*), zodat de vijf hun eigen gezicht houden. Raakvlakken
   minstens 44 pixels hoog (opdracht hoofdstuk 9). */
#woongpt-refined .wg .wgx-grid{display:block}
#woongpt-refined .wg .wgx-log{display:flex;flex-direction:column;min-width:0}
#woongpt-refined .wg .wgx-hulp{display:flex;gap:12px;align-items:flex-start;margin:6px 0 18px;color:var(--wg-ink);font-size:15px;line-height:1.6}
#woongpt-refined .wg .wgx-teken{flex:none;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;color:var(--wg-accent);margin-top:1px}
#woongpt-refined .wg .wgx-teken .woon-mark{width:24px!important;height:24px!important}
#woongpt-refined .wg .wgx-tekst{min-width:0;flex:1}
#woongpt-refined .wg .wgx-tekst p{margin:0 0 8px;overflow-wrap:anywhere}
#woongpt-refined .wg .wgx-tekst p:last-child{margin-bottom:0}
#woongpt-refined .wg .wgx-blok{margin:10px 0;padding:14px 16px;border:1px solid var(--wg-line);border-radius:14px;background:var(--wg-soft);font-size:14px;line-height:1.55}
#woongpt-refined .wg .wgx-blok p{white-space:pre-wrap}
#woongpt-refined .wg .wgx-blokkop{font-size:12px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--wg-muted);margin:0 0 6px!important}
#woongpt-refined .wg .wgx-blok strong{display:block;margin-bottom:4px}
#woongpt-refined .wg .wgx-verwijs ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
#woongpt-refined .wg .wgx-verwijs li{display:grid;gap:2px}
#woongpt-refined .wg .wgx-verwijs a{display:inline-flex;align-items:center;min-height:44px;color:var(--wg-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
#woongpt-refined .wg .wgx-verwijs span,#woongpt-refined .wg .wgx-verwijs small{color:var(--wg-muted)}
#woongpt-refined .wg .wgx-antwoorden{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px 38px}
#woongpt-refined .wg .wgx-letters,#woongpt-refined .wg .wgx-rijknoppen{display:flex;flex-wrap:wrap;gap:8px;width:100%;align-items:center}
#woongpt-refined .wg .wgx-chip{min-height:44px;padding:0 16px;border:1px solid color-mix(in srgb,var(--wg-ink) 28%,transparent);border-radius:999px;background:transparent;color:var(--wg-ink);font:inherit;font-size:14px;cursor:pointer}
#woongpt-refined .wg .wgx-chip[aria-pressed="true"]{background:var(--wg-soft);border-color:var(--wg-ink)}
#woongpt-refined .wg .wgx-letter{min-width:44px;padding:0}
#woongpt-refined .wg .wgx-verder{background:var(--wg-ink);color:var(--wg-bg);border-color:var(--wg-ink)}
#woongpt-refined .wg .wgx-link{min-height:44px;padding:0 6px;border:0;background:none;color:var(--wg-muted);font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#woongpt-refined .wg .wgx-chip:focus-visible,#woongpt-refined .wg .wgx-link:focus-visible,#woongpt-refined .wg .wgx-knop:focus-visible{outline:2px solid var(--wg-accent);outline-offset:2px}
#woongpt-refined .wg .wgx-knoprij{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin:4px 0 6px 38px}
#woongpt-refined .wg .wgx-knop{min-height:48px;padding:0 22px;border:0;border-radius:999px;background:var(--wg-accent);color:var(--wg-onaccent,#fff);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
#woongpt-refined .wg .wgx-onder{margin:0 0 20px 38px;color:var(--wg-muted);font-size:13px;text-align:right}
#woongpt-refined .wg .wgx-kaart{border:1px solid var(--wg-line);border-radius:14px;background:var(--wg-panel,var(--wg-bg));color:var(--wg-ink);font-size:14px;overflow:hidden}
#woongpt-refined .wg .wgx-kaart header{display:flex;justify-content:space-between;gap:8px;padding:12px 16px;border-bottom:1px solid var(--wg-line)}
#woongpt-refined .wg .wgx-kaart header span{color:var(--wg-muted);font-size:13px}
#woongpt-refined .wg .wgx-kaart dl{margin:0}
#woongpt-refined .wg .wgx-rij{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 16px;border-top:1px solid var(--wg-line)}
#woongpt-refined .wg .wgx-rij:first-child{border-top:0}
#woongpt-refined .wg .wgx-rij dt{color:var(--wg-muted)}
#woongpt-refined .wg .wgx-rij dd{margin:0;overflow-wrap:anywhere}
#woongpt-refined .wg .wgx-rij.is-nu{background:var(--wg-soft)}
#woongpt-refined .wg .wgx-rij.is-nu dt{color:var(--wg-ink);font-weight:600}
#woongpt-refined .wg .wgx-stand b{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--wg-ink);color:var(--wg-bg);font-size:11px;font-weight:600}
#woongpt-refined .wg .wgx-kaart-inline{margin:0 0 16px}
#woongpt-refined .wg .wgx-kaart-vast{display:none}
#woongpt-refined .wg .wgx-form{margin-top:8px}
#woongpt-refined .wg .wgx-form textarea{min-height:44px}
#woongpt-refined .wg .wgx-hint{color:var(--wg-muted);font-size:13px}
#woongpt-refined .wg .wgx-melding{margin:10px 0 0;color:var(--wg-muted);font-size:12px;text-align:center}
#woongpt-refined .wg .wgx-punten{display:inline-flex;gap:5px;align-items:center;height:26px}
#woongpt-refined .wg .wgx-punten i{width:6px;height:6px;border-radius:50%;background:var(--wg-muted);animation:wgx-punt 1.2s ease-in-out infinite}
#woongpt-refined .wg-studio .wgx-punten i{border-radius:0}
#woongpt-refined .wg .wgx-punten i:nth-child(2){animation-delay:.15s}
#woongpt-refined .wg .wgx-punten i:nth-child(3){animation-delay:.3s}
#woongpt-refined .wg .wgx-wacht .wgx-teken{animation:wgx-teken 1.6s ease-in-out infinite}
@keyframes wgx-punt{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes wgx-teken{0%,100%{transform:scale(1)}50%{transform:scale(.9)}}
@media(prefers-reduced-motion:reduce){#woongpt-refined .wg .wgx-punten i,#woongpt-refined .wg .wgx-wacht .wgx-teken{animation:none}}
@media(min-width:1024px){
 #woongpt-refined .wg.is-gesprek .wg-main{max-width:1080px}
 #woongpt-refined .wg .wgx-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}
 #woongpt-refined .wg .wgx-kaart-vast{display:block;position:sticky;top:24px}
 #woongpt-refined .wg .wgx-kaart-inline{display:none}
 #woongpt-refined .wg .wgx-form,#woongpt-refined .wg .wgx-melding{max-width:calc(100% - 352px)}
}
@media(max-width:540px){
 #woongpt-refined .wg .wgx-antwoorden,#woongpt-refined .wg .wgx-knoprij,#woongpt-refined .wg .wgx-onder{margin-left:0}
 #woongpt-refined .wg .wgx-knoprij{justify-content:flex-end}
 #woongpt-refined .wg .wgx-rij{grid-template-columns:64px minmax(0,1fr) auto;padding:9px 12px}
}
#woongpt-refined .wg .wgx-fout{margin:6px 0 18px}
#woongpt-refined .wg .wgx-melding-start{margin:8px 0 0;max-width:none}
#woongpt-refined .wgx-veld{position:absolute;left:-10000px;width:1px;height:1px;opacity:0}
#woongpt-refined .wg .wgx-teller{color:var(--wg-muted);font-size:12px;margin-left:auto;margin-right:8px}

/* Ronde 2 (20 november 2026, Jim: de laatste wijzigingen aan de AI-hulp en de vijf chatbots verder verbeteren en ook op
   woongpt.nl doorvoeren). De codes W1 tot en met W4 zijn die van de voorstellen. huisstijl.css blijft ongemoeid en er
   komt geen lettertype bij. */

/* W1. Elke chatbot zijn eigen gesprek: dezelfde vijf vormen als in het venster van de AI-hulp (public/hulp-venster.css
   van opensein). woonGPT licht en rond, Gezieni een kaart met een kleurlijn, woonPilot langs één lijn met een punt per
   vraag, Blok regels en strepen, Clouse een brief. */
#woongpt-refined .wg{--ai-focus:var(--ai-accent)}
#woongpt-refined .wg-warm{--ai-focus:light-dark(#bb5834,#e47b4d)}
#woongpt-refined .wg .wgx-vraag{display:flex;justify-content:flex-end}
#woongpt-refined .wg .wgx-vraag .wg-user{margin:10px 0 22px!important}

/* woonGPT: licht en rond. Geen vlak om het antwoord; de antwoorden om aan te tikken als ronde vlakjes. */
#woongpt-refined .wg-calm .wgx-chip:not(.wgx-verder){border-color:transparent;background:var(--ai-panel)}
#woongpt-refined .wg-calm .wgx-chip[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--ai-ink)}

/* Gezieni: het antwoord als kaart met een kleurlijn; de uitleg van OpenSein houdt daarin haar eigen vlak. */
#woongpt-refined .wg-fresh .wgx-hulp:not(.wgx-wacht){position:relative;padding:18px 16px 16px;border-radius:20px;background:var(--ai-panel)}
#woongpt-refined .wg-fresh .wgx-hulp:not(.wgx-wacht)::before{content:"";position:absolute;inset:0 20px auto;height:2.5px;border-radius:0 0 3px 3px;background:var(--ai-brand)}
#woongpt-refined .wg-fresh .wgx-blok{background:var(--ai-bg)}
#woongpt-refined .wg-fresh .wgx-chip:not(.wgx-verder){border-color:var(--ai-line)}
#woongpt-refined .wg-fresh :is(.wgx-antwoorden,.wgx-knoprij,.wgx-onder){margin-left:0}

/* woonPilot: het gesprek langs één lijn, een punt per vraag. Geen nummers: de lijn laat zien wat er besproken is. */
#woongpt-refined .wg-companion .wgx-log{position:relative;padding-inline-start:26px}
#woongpt-refined .wg-companion .wgx-log::before{content:"";position:absolute;inset-block:18px 8px;inset-inline-start:7px;width:2px;border-radius:2px;opacity:.55;background:linear-gradient(180deg,light-dark(#159fda,#71cff4),light-dark(#7759d4,#ac97ed) 45%,light-dark(#d875a0,#e9a1c0) 75%,light-dark(#eb9d5c,#efbd92))}
#woongpt-refined .wg-companion .wgx-vraag{position:relative}
#woongpt-refined .wg-companion .wgx-vraag::before{content:"";position:absolute;top:26px;inset-inline-start:-25px;width:10px;height:10px;border:2px solid var(--ai-accent);border-radius:50%;background:var(--ai-bg)}
#woongpt-refined .wg-companion .wgx-chip:not(.wgx-verder){border-color:transparent;background:var(--ai-panel)}
#woongpt-refined .wg-companion .wgx-chip[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--ai-accent)}
#woongpt-refined .wg-companion :is(.wgx-antwoorden,.wgx-knoprij,.wgx-onder){margin-left:0}
#woongpt-refined .wg-companion .wgx-form{box-shadow:0 6px 22px #0002}

/* Blok: geen ballonnen. Jouw regel, zijn regel, een streep; hoekig, zijn regels in de vaste-breedteletter van het toestel. */
#woongpt-refined .wg-studio.is-gesprek{--ai-fact-radius:3px;--ai-question-radius:3px;--ai-button-radius:4px;--wgx-vast:ui-monospace,"SF Mono",Menlo,Consolas,monospace}
#woongpt-refined .wg-studio .wgx-vraag{justify-content:flex-start;padding-block:14px 0;border-block-start:1px solid var(--ai-line)}
#woongpt-refined .wg-studio .wgx-vraag:first-child{border-block-start:0}
#woongpt-refined .wg-studio .wgx-vraag .wg-user{max-width:100%;margin:0 0 10px!important;padding:0;border-radius:0;background:none;color:var(--ai-muted);font:500 13px/1.5 var(--wgx-vast)}
#woongpt-refined .wg-studio .wgx-vraag .wg-user::before{content:"> ";color:var(--ai-ink)}
#woongpt-refined .wg-studio .wgx-hulp{margin-block:0 14px}
#woongpt-refined .wg-studio .wgx-blok{border:1px solid var(--ai-line);background:none}
#woongpt-refined .wg-studio :is(.wgx-chip,.wgx-knop){border-radius:4px}
#woongpt-refined .wg-studio.is-gesprek .wgx-form{border-radius:6px}
#woongpt-refined .wg-studio .wgx-form .wg-send{border-radius:3px}
#woongpt-refined .wg-studio .wgx-kaart{border-radius:4px}
#woongpt-refined .wg-studio .wgx-kaart header strong{font:600 11px/1.4 var(--wgx-vast);letter-spacing:.08em;text-transform:uppercase}

/* Clouse: een brief. Alleen jouw vraag staat achter een lijn; het antwoord in de schreefletter, met lucht. */
#woongpt-refined .wg-warm .wgx-vraag{justify-content:flex-start}
#woongpt-refined .wg-warm .wgx-vraag .wg-user{max-width:100%;margin:14px 0 20px!important;padding-block:1px;padding-inline:14px 0;border-inline-start:2px solid var(--ai-focus);border-radius:0;background:none;color:var(--ai-muted);font:450 17px/1.45 var(--ai-title-font)}
#woongpt-refined .wg-warm .wgx-hulp{margin-block-end:24px}
#woongpt-refined .wg-warm .wgx-chip{border-radius:8px}

/* W2. De schrijfbalk: laag, groeit mee tot vijf regels (gesprek.js) en blijft onderaan in beeld, met de melding dat het AI
   is eronder. */
#woongpt-refined .wg.is-gesprek .wgx-dok{position:sticky;bottom:0;z-index:3;margin-top:18px;padding:10px 0 calc(8px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,transparent,var(--ai-bg) 14px)}
#woongpt-refined .wg.is-gesprek .wgx-form{display:flex;align-items:flex-end;gap:6px;margin:0;padding:5px 5px 5px 16px}
#woongpt-refined .wg.is-gesprek .wgx-form textarea{flex:1;min-height:44px;max-height:132px;padding:10px 0;resize:none;overflow-y:auto;line-height:1.45}
#woongpt-refined .wg.is-gesprek .wgx-form .wg-formbar{flex:none;margin:0;padding:0;border:0;gap:4px}
#woongpt-refined .wg.is-gesprek .wgx-form .wgx-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#woongpt-refined .wg.is-gesprek .wgx-form .wg-send{width:44px;height:44px}
#woongpt-refined .wg.is-gesprek .wgx-melding{margin:6px 0 0}
/* het nieuwste antwoord schuift boven de schrijfbalk in beeld, met de knoppen eronder */
#woongpt-refined .wg.is-gesprek :is(.wgx-laatste,.wgx-wacht){scroll-margin-block:96px 280px}
@media(min-width:1024px){#woongpt-refined .wg.is-gesprek .wgx-dok{max-width:calc(100% - 352px)}#woongpt-refined .wg.is-gesprek .wgx-dok :is(.wgx-form,.wgx-melding){max-width:none}}

/* W3. Wachten in de vorm van de chatbot, met zijn naam erbij, en na vijf seconden eerlijk dat het langer duurt (gesprek.js).
   Met minder beweging staat de vorm stil. */
#woongpt-refined .wg .wgx-wacht{align-items:center}
#woongpt-refined .wg .wgx-wachtwoord{color:var(--ai-muted);font:400 12px/1.4 var(--ai-font)}
#woongpt-refined .wg .wgx-wachtlang{display:block}
#woongpt-refined .wg .wgx-wachtlang[hidden]{display:none}
#woongpt-refined .wg-calm .wgx-punten i:not(:first-child){display:none}
#woongpt-refined .wg-calm .wgx-punten i{width:11px;height:11px;background:var(--ai-ink);opacity:1;animation:wgx-adem 1.4s ease-in-out infinite}
#woongpt-refined .wg-fresh .wgx-wacht{flex-wrap:wrap}
#woongpt-refined .wg-fresh .wgx-punten{flex:1;display:grid;gap:7px;height:auto;max-width:220px}
#woongpt-refined .wg-fresh .wgx-punten i{width:100%;height:8px;border-radius:4px;opacity:1;background:linear-gradient(90deg,light-dark(#4285e626,#8ab4f826),light-dark(#805bca,#b295e7),light-dark(#c8528726,#e99abf26)) 0 0/200% 100%;animation:wgx-glim 1.5s linear infinite}
#woongpt-refined .wg-fresh .wgx-punten i:nth-child(2){width:82%;animation-delay:-.2s}
#woongpt-refined .wg-fresh .wgx-punten i:nth-child(3){width:58%;animation-delay:-.4s}
#woongpt-refined .wg-fresh .wgx-wacht .wgx-teken{animation:wgx-draai 2.6s linear infinite}
#woongpt-refined .wg-companion .wgx-punten i{width:7px;height:7px;opacity:1;animation:wgx-hup 1s cubic-bezier(.3,1.4,.5,1) infinite}
#woongpt-refined .wg-companion .wgx-punten i:nth-child(1){background:light-dark(#159fda,#71cff4)}
#woongpt-refined .wg-companion .wgx-punten i:nth-child(2){background:light-dark(#7759d4,#ac97ed);animation-delay:.12s}
#woongpt-refined .wg-companion .wgx-punten i:nth-child(3){background:light-dark(#d875a0,#e9a1c0);animation-delay:.24s}
#woongpt-refined .wg-studio .wgx-punten i{background:var(--ai-ink);opacity:.2;animation:wgx-blok 1.2s steps(1) infinite}
#woongpt-refined .wg-studio .wgx-punten i:first-child{opacity:1}
#woongpt-refined .wg-studio .wgx-punten i:nth-child(2){animation-delay:.4s}
#woongpt-refined .wg-studio .wgx-punten i:nth-child(3){animation-delay:.8s}
#woongpt-refined .wg-studio .wgx-wacht .wgx-teken{animation:none}
#woongpt-refined .wg-warm .wgx-punten{gap:6px}
#woongpt-refined .wg-warm .wgx-punten i{width:12px;height:2px;border-radius:1px;background:var(--ai-accent);opacity:1;animation-name:wgx-blok;animation-duration:1.8s}
#woongpt-refined .wg-warm .wgx-wacht .wgx-teken{animation:wgx-wieg 2.4s ease-in-out infinite}
@keyframes wgx-adem{50%{transform:scale(.6);opacity:.55}}
@keyframes wgx-glim{from{background-position:100% 0}to{background-position:-100% 0}}
@keyframes wgx-draai{to{transform:rotate(360deg)}}
@keyframes wgx-hup{0%,60%,100%{transform:none}30%{transform:translateY(-6px)}}
@keyframes wgx-blok{0%{opacity:1}33%{opacity:.2}}
@keyframes wgx-wieg{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}
@keyframes wgx-rijs{from{opacity:0;transform:translateY(8px)}}
@media(prefers-reduced-motion:no-preference){#woongpt-refined .wg .wgx-wachtlang{animation:wgx-rijs .4s ease both}}
@media(prefers-reduced-motion:reduce){#woongpt-refined .wg .wgx-punten i,#woongpt-refined .wg .wgx-wacht .wgx-teken{animation:none!important}}

/* W4. Aankomen: het antwoord dat net binnenkwam komt op de manier van zijn chatbot (gesprek.js: wgx-komt). Alleen voor wie
   beweging wil. */
@media(prefers-reduced-motion:no-preference){
 #woongpt-refined .wg-calm .wgx-komt .wgx-tekst>p{animation:wgx-vervaag .55s ease both}
 #woongpt-refined .wg-fresh .wgx-komt .wgx-tekst{-webkit-mask:linear-gradient(180deg,#000 40%,transparent 60%) 0 100%/100% 260% no-repeat;mask:linear-gradient(180deg,#000 40%,transparent 60%) 0 100%/100% 260% no-repeat;animation:wgx-onthul 1.1s ease .05s both}
 #woongpt-refined .wg-companion .wgx-hulp.wgx-komt{transform-origin:0 100%;animation:wgx-veer .6s cubic-bezier(.3,1.4,.5,1) both}
 #woongpt-refined .wg-studio .wgx-komt .wgx-tekst>p{animation:wgx-strook .42s steps(6,end) both}
 #woongpt-refined .wg-warm .wgx-komt .wgx-tekst>p{animation:wgx-opkomst .9s cubic-bezier(.2,.7,.2,1) both}
 #woongpt-refined .wg .wgx-komt .wgx-teken{animation:wgx-knik .6s cubic-bezier(.3,1.4,.5,1) 1}
}
@keyframes wgx-vervaag{from{opacity:0;filter:blur(4px)}}
@keyframes wgx-onthul{to{-webkit-mask-position:0 0;mask-position:0 0}}
@keyframes wgx-veer{from{opacity:0;transform:translateY(10px) scale(.94)}}
@keyframes wgx-strook{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@keyframes wgx-knik{40%{transform:rotate(-16deg)}}
@keyframes wgx-opkomst{from{opacity:0;transform:translateY(8px)}}

/* Meer native gevoel (21 november 2026, Jim). De code W5 is die van de voorstellen; W6 (van chatbot wisselen) staat in
   index.html, want die overgang is van de hele pagina en niet van het gesprek. */

/* W5. Je wens landt in het lijstje: de rij die door je antwoord veranderde licht in 160 ms op, de waarde schrijft zich
   erin (240 ms), het vinkje tekent zich (240 ms), de teller stapt en het woordje nu komt aan op de volgende rij
   (gesprek.js: wgx-landt, wgx-stap, wgx-nu-komt). Alleen de rij die veranderde beweegt, alleen bij het antwoord dat net
   binnenkwam en alleen voor wie beweging wil; anders staat het eindbeeld er meteen. */
@media(prefers-reduced-motion:no-preference){
 #woongpt-refined .wg .wgx-rij.wgx-landt{animation:wgx-licht .72s ease-out both}
 #woongpt-refined .wg .wgx-rij.wgx-landt dd{animation:wgx-schrijf .24s cubic-bezier(.22,1,.36,1) .08s both}
 #woongpt-refined .wg .wgx-rij.wgx-landt.is-ok .wgx-stand{animation:wgx-schrijf .24s cubic-bezier(.22,1,.36,1) .24s both}
 #woongpt-refined .wg .wgx-kaart header .wgx-stap{display:inline-block;animation:wgx-stap .24s cubic-bezier(.22,1,.36,1) .24s both}
 #woongpt-refined .wg .wgx-rij.wgx-nu-komt .wgx-stand b{animation:wgx-nu .24s cubic-bezier(.22,1,.36,1) .24s both}
}
@keyframes wgx-licht{22%,66%{background-color:color-mix(in srgb,var(--wg-accent) 18%,transparent)}}
@keyframes wgx-schrijf{from{opacity:0;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes wgx-stap{from{opacity:0;transform:translateY(6px)}}
@keyframes wgx-nu{from{opacity:0;transform:translateY(-10px)}}
