/* ============ The walk (aanvragen.html): the request as a conversation ============
   Loaded after site.css and shell.css (the sidebar, the panel, the tokens) on this one page; every rule is scoped
   under .wk-page. Inside the panel: the conversation, ink buttons and answers, teal only for accents (the light
   behind the composer, the dot on the road, the guide's tag). Below 720 px the road below the composer gets shorter.
   The house beside the chat (while building) sits to the right when the stage is wide, above the chat otherwise. */

.wk-page{
  --wk-col:720px; --wk-road-h:clamp(96px, 24vh, 221px);
}
.wk-page :where(textarea, select):focus-visible{outline:none; box-shadow:0 0 0 3px rgb(18 177 194 / .4)}

/* ---------- buttons ---------- */
.wk-page .wk-link{border:0; background:none; padding:4px 0; color:var(--wk-teal-deep); font:500 13px/1.3 var(--ui); cursor:pointer; text-align:left}
.wk-page .wk-link:hover{text-decoration:underline; text-underline-offset:3px}
.wk-page .wk-x{flex:none; width:32px; height:32px; border:0; border-radius:50%; background:transparent; color:var(--wk-muted); font:400 20px/1 var(--ui); cursor:pointer}
.wk-page .wk-x:hover{background:rgb(31 29 26 / .06); color:var(--wk-ink)}
.wk-page .wk-acts{display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.wk-page .wk-small{font-size:12.5px; line-height:1.5; color:var(--wk-quiet)}
.wk-page .wk-small a{color:var(--wk-teal-deep)}

/* ---------- the panel's header button, the stage ---------- */
.wk-page .wk-quiet{display:inline-flex; align-items:center; min-height:34px; padding:0 12px; border:1px solid var(--wk-edge); border-radius:999px; background:transparent; color:var(--wk-ink); font:500 12.5px/1 var(--ui); text-decoration:none; white-space:nowrap}
.wk-page .wk-quiet:hover{background:var(--wk-well)}
.wk-page .wk-stage{position:relative; flex:1; min-height:0; display:flex; flex-direction:column; container:stage / inline-size}

/* the conversation */
.wk-page .wk-log{position:relative; z-index:2; flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:28px 24px 8px; display:flex; flex-direction:column; gap:18px; scroll-padding-bottom:24px}
.wk-page .wk-log > *{width:100%; max-width:var(--wk-col); margin-inline:auto}
.wk-page .wk-msg{animation:wk-in .35s var(--ease) both}
@keyframes wk-in{from{opacity:0; transform:translateY(6px)}to{opacity:1; transform:none}}
.wk-page .wk-bird{display:flex; gap:12px; align-items:flex-start}
.wk-page .wk-av{flex:none; display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--wk-ground); overflow:hidden}
.wk-page .wk-av canvas{width:40px; height:40px}
.wk-page .wk-bird.is-now .wk-av{box-shadow:0 0 0 3px rgb(18 177 194 / .2)}
.wk-page .wk-body{display:flex; flex-direction:column; gap:8px; min-width:0; flex:1; padding-top:6px}
.wk-page .wk-tag{display:inline-flex; align-items:center; gap:7px; font:600 11.5px/1 var(--ui); letter-spacing:.06em; text-transform:uppercase; color:var(--wk-teal-deep)}
.wk-page .wk-tag i{width:7px; height:7px; border-radius:50%; background:var(--wk-teal)}
.wk-page .wk-tag.is-done{color:var(--wk-muted)}
.wk-page .wk-tag.is-done i{background:var(--wk-ink)}
.wk-page .wk-text{margin:0; font-size:15px; line-height:1.6; color:var(--wk-ink); overflow-wrap:anywhere}
.wk-page .wk-text.is-big{font:400 17px/1.55 var(--serif)}
.wk-page .wk-hint{margin:0; padding:10px 14px; border-radius:12px; background:var(--wk-well); font-size:13.5px; line-height:1.55; color:var(--wk-muted)}
.wk-page .wk-err{margin:0; font-size:13px; line-height:1.5; color:#9A3B23}
.wk-page .wk-err:empty{display:none}
/* a card taller than the conversation keeps its Done button in reach, pinned above the composer */
.wk-page .is-live .wk-acts{position:sticky; bottom:-8px; z-index:1; margin-inline:-4px; padding:14px 4px 16px; background:linear-gradient(rgb(249 247 243 / 0), var(--wk-panel) 24%)}
.wk-page .wk-me{display:flex; flex-direction:column; align-items:flex-end; gap:4px}
.wk-page .wk-bubble{max-width:80%; padding:10px 14px; border-radius:16px 16px 4px 16px; background:var(--wk-ink); color:var(--wk-paper); font-size:14px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.wk-page .wk-change{border:0; background:none; padding:4px 2px; font:500 12px/1 var(--ui); color:var(--wk-quiet); cursor:pointer}
.wk-page .wk-change:hover{color:var(--wk-ink); text-decoration:underline; text-underline-offset:3px}
.wk-page .wk-bubble.is-open{cursor:pointer}
.wk-page .wk-bubble.is-open:hover{background:var(--wk-ink-hi)}
.wk-page .wk-bubble.is-editing{cursor:text; background:var(--wk-ink); box-shadow:0 0 0 2px var(--wk-paper), 0 0 0 4px var(--wk-teal)}
.wk-page .wk-inline{display:block; width:min(60ch, 100%); min-width:12ch; margin:0; padding:0; border:0; background:transparent; color:inherit; font:inherit; line-height:inherit; resize:none; outline:none; overflow:hidden}
.wk-page .wk-bubble .wk-inline:focus, .wk-page .wk-bubble .wk-inline:focus-visible{outline:none; box-shadow:none}
.wk-page .wk-me .wk-err{margin:0; font-size:12px}
.wk-page .wk-thumbs{display:flex; gap:4px}
.wk-page .wk-thumbs img{width:36px; height:36px; border-radius:6px; object-fit:cover; background:#3E3A33}
.wk-page .wk-dots{display:flex; gap:4px}
.wk-page .wk-dots i{width:16px; height:16px; border-radius:50%; box-shadow:0 0 0 1px rgb(250 248 243 / .5)}
.wk-page .wk-recap{display:flex; flex-direction:column; gap:6px; width:min(340px, 100%); padding:14px 16px; border-radius:16px 16px 4px 16px; background:var(--wk-ink); color:#E7E2D6; font-size:13px; line-height:1.6}
.wk-page .wk-recap .wk-small{color:#C9C2B3}
.wk-page .wk-recap b{font:500 18px/1.3 var(--serif); color:var(--wk-paper)}
.wk-page .wk-recap.is-card{width:100%; border-radius:16px; background:var(--wk-well); color:var(--wk-body)}
.wk-page .wk-recap.is-card b{color:var(--wk-ink)}

/* chips: one choice answers at once; a list with descriptions shows as small cards */
.wk-page .wk-chips{display:flex; flex-wrap:wrap; gap:8px}
.wk-page .wk-chip{min-height:38px; padding:0 16px; border:1px solid var(--wk-chip); border-radius:999px; background:var(--wk-card); color:var(--wk-ink); font:500 13.5px/1.2 var(--ui); cursor:pointer; transition:border-color .2s, background .2s, color .2s}
.wk-page .wk-chip:hover{border-color:var(--wk-chip-hi)}
.wk-page .wk-chip[aria-pressed="true"]{background:var(--wk-ink); border-color:var(--wk-ink); color:var(--wk-paper)}
.wk-page .wk-chips.is-cards{display:grid; grid-template-columns:repeat(2, minmax(0,1fr))}
.wk-page .wk-chips.is-cards .wk-chip{display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:12px 14px; border-radius:14px; text-align:left; line-height:1.35}
.wk-page .wk-chip b{font-weight:600; font-size:14px}
.wk-page .wk-chip small{font-size:12.5px; font-weight:400; color:var(--wk-muted)}
.wk-page .wk-chips.is-cards .wk-chip{position:relative; padding-right:36px}
.wk-page .wk-chips.is-cards .wk-chip[aria-pressed="true"]{background:#fff; color:var(--wk-ink); box-shadow:inset 0 0 0 1px var(--wk-ink)}
.wk-page .wk-chips.is-cards .wk-chip[aria-pressed="true"]::after{content:""; position:absolute; top:14px; right:14px; width:10px; height:10px; border-radius:50%; background:var(--wk-ink); box-shadow:0 0 0 3px rgb(18 177 194 / .25)}
.wk-page .wk-chip.has-d{min-height:64px}

/* cards inside a message */
.wk-page .wk-card{display:flex; flex-direction:column; gap:12px; padding:14px; border:1px solid #E9E4D9; border-radius:16px; background:var(--wk-card)}
.wk-page .wk-sub{position:relative; display:flex; flex-direction:column; gap:10px; margin:0; padding:0 0 12px; border:0; border-bottom:1px solid var(--wk-line); min-width:0}
.wk-page .wk-sub legend{padding:0 0 8px; font:600 12px/1.3 var(--ui); letter-spacing:.04em; text-transform:uppercase; color:var(--wk-quiet)}
.wk-page .wk-sub > .wk-x{position:absolute; top:-6px; right:-4px}
.wk-page .wk-row{display:flex; align-items:flex-end; gap:10px}
.wk-page .wk-row > .wk-field{flex:1}
.wk-page .wk-two{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px}
.wk-page .wk-num{flex:none; display:grid; place-items:center; width:26px; height:26px; margin-bottom:8px; border-radius:50%; background:var(--wk-well); font:600 12px/1 var(--ui)}
.wk-page .wk-field{display:flex; flex-direction:column; gap:5px; min-width:0}
.wk-page .wk-field > span{font:600 12px/1.3 var(--ui); color:var(--wk-muted)}
.wk-page .wk-in{width:100%; min-height:40px; padding:8px 12px; border:1px solid var(--wk-edge); border-radius:10px; background:var(--wk-field); color:var(--wk-ink); font:400 14px/1.4 var(--ui)}
.wk-page textarea.wk-in{resize:vertical; min-height:84px}
.wk-page .wk-in:focus{border-color:var(--wk-teal)}
.wk-page .wk-plates{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px}
.wk-page .wk-plate{position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; aspect-ratio:4/5; padding:10px; border:1px dashed #D9D4C7; border-radius:14px; background:var(--wk-card); text-align:center}
.wk-page .wk-plate.has{border-style:solid; padding:0; overflow:hidden; justify-content:flex-end}
.wk-page .wk-plate.has img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.wk-page .wk-plate.has .wk-small{position:relative; width:100%; padding:6px 8px; background:rgb(250 248 243 / .9)}
.wk-page .wk-plate.has .wk-x{position:absolute; top:6px; right:6px; background:rgb(250 248 243 / .9)}
.wk-page .wk-plate .wk-ghost{min-height:36px; padding:0 12px; font-size:12.5px}
.wk-page .wk-wait{width:100%; height:100%; background:var(--wk-well)}
.wk-page .wk-pics{flex-direction:row; flex-wrap:wrap; align-items:center}
.wk-page .wk-thumb{position:relative; width:76px; height:76px; border-radius:10px; overflow:hidden; background:var(--wk-well)}
.wk-page .wk-thumb img{width:100%; height:100%; object-fit:cover}
.wk-page .wk-thumb.is-logo{width:120px; background:#fff}
.wk-page .wk-thumb.is-logo img{object-fit:contain; padding:8px}
.wk-page .wk-thumb .wk-x{position:absolute; top:2px; right:2px; width:26px; height:26px; font-size:16px; background:rgb(250 248 243 / .9)}
.wk-page .wk-swatches{flex-direction:row; gap:18px}
.wk-page .wk-swatch{display:flex; align-items:center; gap:10px; font-size:13.5px}
.wk-page .wk-swatch input{width:44px; height:44px; padding:0; border:1px solid var(--wk-edge); border-radius:12px; background:none; cursor:pointer}

/* the composer, with the soft teal light behind it, and the road below */
.wk-page .wk-foot{position:relative; z-index:2; width:100%; max-width:var(--wk-col); margin-inline:auto; padding:12px 24px calc(var(--wk-road-h) * .68)}
.wk-page .wk-composer{position:relative}
.wk-page .wk-glow{position:absolute; left:4%; right:4%; top:10%; bottom:-18px; border-radius:44px; background:radial-gradient(58% 85% at 50% 62%, rgb(18 177 194 / .45), rgb(18 177 194 / 0) 72%); filter:blur(20px); opacity:.7; animation:wk-glow 5s ease-in-out infinite; pointer-events:none}
@keyframes wk-glow{0%,100%{opacity:.55}50%{opacity:.9}}
.wk-page .wk-box{position:relative; display:flex; flex-direction:column; gap:10px; padding:14px 16px 12px 18px; border:1px solid var(--wk-glass); border-radius:22px; background:var(--wk-field); box-shadow:0 10px 30px rgb(31 29 26 / .07)}
.wk-page .wk-box:focus-within{border-color:#A9DCE2}
.wk-page #wk-input{display:block; width:100%; min-height:52px; max-height:200px; padding:0; border:0; background:transparent; resize:none; color:var(--wk-ink); font:400 15px/1.55 var(--ui); box-shadow:none}
.wk-page #wk-input::placeholder{color:#8A8478}
.wk-page .wk-tools{display:flex; align-items:center; justify-content:space-between; gap:10px}
.wk-page .wk-tools-r{display:flex; align-items:center; gap:12px}
.wk-page .wk-icon{display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:0; border-radius:10px; background:transparent; color:#4F4B43; cursor:pointer}
.wk-page .wk-icon:hover{background:rgb(31 29 26 / .05)}
.wk-page .wk-icon:disabled{opacity:.35; cursor:default; background:none}
.wk-page .wk-icon svg, .wk-page .wk-go svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.wk-page .wk-count{font-size:12px; color:var(--wk-quiet); font-variant-numeric:tabular-nums}
.wk-page .wk-go{display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:0; border-radius:50%; background:var(--wk-ink); color:var(--wk-paper); cursor:pointer; transition:background .2s}
.wk-page .wk-go:hover{background:var(--wk-ink-hi)}
.wk-page .wk-go:disabled{background:#C9C2B3; cursor:default}
.wk-page .wk-go svg{stroke-width:2.2}
.wk-page .wk-steps{display:flex; align-items:center; justify-content:center; gap:6px; margin:8px 0 0}
.wk-page .wk-step{position:relative; margin:0; min-width:0; text-align:center; font-size:12px; color:var(--wk-quiet)}
.wk-page .wk-arrow{display:inline-flex; align-items:center; justify-content:center; flex:none; width:28px; height:28px; border:0; border-radius:8px; background:transparent; color:var(--wk-quiet); cursor:pointer}
.wk-page .wk-arrow svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.wk-page .wk-arrow:hover:not(:disabled){background:rgb(31 29 26 / .05); color:var(--wk-ink)}
.wk-page .wk-arrow:disabled{opacity:.3; cursor:default}
.wk-page .wk-human{display:flex; justify-content:center; margin-top:10px}
.wk-page .wk-hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}
.wk-page .wk-locked{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border:1px solid #E9E4D9; border-radius:18px; background:rgb(251 250 246 / .92); font-size:13px; color:var(--wk-muted)}
.wk-page .wk-locked span:last-child{white-space:nowrap; font-weight:500; color:var(--wk-ink)}
.wk-page .wk-locked span:empty{display:none}
.wk-page .wk-road{position:absolute; left:50%; bottom:0; z-index:1; width:min(1060px, 100%); height:var(--wk-road-h); transform:translateX(-50%); pointer-events:none}
.wk-page .wk-road canvas{width:100%; height:100%}
.wk-page .wk-dot{position:absolute; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%; background:var(--wk-teal)}
.wk-page .wk-dot::after{content:""; position:absolute; inset:-6px; border:1.2px solid rgb(18 177 194 / .5); border-radius:50%; animation:wk-glow 5s ease-in-out infinite}
.wk-page .wk-noscript{margin:24px; font-size:15px}

/* while building: the house instead of the road */
.wk-page .wk-main:not([data-mode="walk"]) .wk-foot{padding-bottom:24px}
.wk-page .wk-main.is-building .wk-road{display:none}
.wk-page .wk-house{position:relative; z-index:1; flex:none; width:min(260px, 70%); margin:16px auto 0; pointer-events:none}
.wk-page .wk-house svg{display:block; width:100%; height:auto}
.wk-page .wk-house-ink path{stroke:var(--wk-ink)}
.wk-page .wk-house-ink .wk-ground{stroke-width:1.2; opacity:.5}
.wk-page .wk-house-ink .wk-pencil{stroke-width:1.2; stroke-dasharray:3 5; opacity:.28}
.wk-page .wk-house-ink .wk-step{stroke-width:1; opacity:0}
.wk-page .wk-house-ink .wk-step.is-done{stroke-width:2.4; opacity:.9}
.wk-page .wk-house-ink .wk-step.is-now{stroke:var(--wk-teal); stroke-width:2.4; opacity:1}
.wk-page .wk-house-labels text{font:500 10.5px var(--ui); letter-spacing:.5px; fill:var(--wk-faint)}
.wk-page .wk-house-labels .is-done{fill:var(--wk-ink)}
.wk-page .wk-house-labels .is-now{fill:var(--wk-teal-deep); font-weight:600}
.wk-page .wk-drawing{stroke-dasharray:90; animation:wk-draw 3.2s ease-in-out infinite alternate}
@keyframes wk-draw{from{stroke-dashoffset:90}to{stroke-dashoffset:0}}
@container stage (min-width: 1040px){
  .wk-page .wk-house{position:absolute; right:40px; top:60px; width:320px; margin:0}
  .wk-page .wk-main.is-building :is(.wk-log, .wk-foot){padding-right:360px}
  .wk-page .wk-main.is-building .wk-log > *{margin-inline:auto 0}
  .wk-page .wk-main.is-building .wk-foot{max-width:calc(var(--wk-col) + 360px); margin-inline:auto}
}

/* ---------- dialogs ---------- */
.wk-page .wk-dialog{width:min(540px, calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:28px 32px 26px; border:0; border-radius:22px; background:var(--wk-paper); color:var(--wk-ink); box-shadow:0 30px 80px rgb(31 29 26 / .25); overflow-y:auto}
.wk-page .wk-dialog[open]{display:flex; flex-direction:column; gap:14px}
.wk-page .wk-dialog > *{flex:none}   /* a tall dialog scrolls; its parts never squeeze into each other */
.wk-page .wk-dialog::backdrop{background:rgb(31 29 26 / .26)}
.wk-page .wk-dialog h2{margin:0; font:400 28px/1.2 var(--serif); letter-spacing:-.01em}
.wk-page .wk-dialog p{margin:0; font-size:15px; line-height:1.6; color:var(--wk-body)}
.wk-page .wk-av.is-big{width:96px; height:96px; box-shadow:0 0 0 6px rgb(18 177 194 / .12)}
.wk-page .wk-av.is-big canvas{width:92px; height:92px}
.wk-page .wk-note{display:flex; gap:12px; padding:14px 16px; border-radius:14px; background:var(--wk-well)}
.wk-page .wk-note svg{flex:none; width:18px; height:18px; margin-top:2px; fill:none; stroke:var(--wk-teal-deep); stroke-width:1.8; stroke-linecap:round}
.wk-page .wk-note p{font-size:14px; color:var(--wk-ink)}
.wk-page .wk-handy{display:flex; flex-direction:column; gap:8px; padding:12px 16px; border:1px solid #E6E1D6; border-radius:14px}
.wk-page .wk-handy b{font-size:13px; font-weight:600}
.wk-page .wk-handy ul{display:flex; flex-direction:column; gap:8px; margin:0; padding:0; list-style:none}
.wk-page .wk-handy li{display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--wk-body)}
.wk-page .wk-handy li::before{content:""; flex:none; width:6px; height:6px; border-radius:2px; background:var(--wk-teal)}
.wk-page .wk-dialog-foot{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:4px}
.wk-page .wk-library{width:min(780px, calc(100vw - 24px))}
.wk-page .wk-lib-head{display:flex; align-items:center; justify-content:space-between; gap:12px}
.wk-page .wk-lib-head form{margin:0}
.wk-page .wk-lib-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:10px; min-height:200px}
.wk-page .wk-lib-item{padding:0; border:1px solid var(--wk-line); border-radius:12px; background:var(--wk-card); overflow:hidden; aspect-ratio:3/4; cursor:pointer}
.wk-page .wk-lib-item img{width:100%; height:100%; object-fit:cover}
.wk-page .wk-lib-item:hover{border-color:var(--wk-chip-hi)}
.wk-page .wk-lib-item:disabled{opacity:.35; cursor:default}
.wk-page .wk-lib-foot{position:sticky; bottom:-26px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:-26px; padding:10px 0 26px; background:var(--wk-paper)}

/* ---------- smaller screens ---------- */
@media (max-width:1099px){
}
@media (max-width:719px){
  .wk-page{--wk-road-h:clamp(80px, 16vh, 130px)}
  .wk-page .wk-saved{display:none}
  .wk-page .wk-log{padding:20px 14px 8px; gap:16px}
  .wk-page .wk-foot{padding:8px 12px calc(var(--wk-road-h) * .5 + env(safe-area-inset-bottom))}
  .wk-page .wk-box{padding:12px 12px 10px 14px; border-radius:18px}
  .wk-page #wk-input{min-height:44px; font-size:16px}
  .wk-page .wk-bird{gap:10px}
  .wk-page .wk-av{width:34px; height:34px}
  .wk-page .wk-av canvas{width:34px; height:34px}
  .wk-page .wk-bubble{max-width:88%}
  .wk-page .wk-chips.is-cards, .wk-page .wk-two{grid-template-columns:minmax(0,1fr)}
  .wk-page .wk-plates{gap:8px}
  .wk-page .wk-plate{padding:8px 6px}
  .wk-page .wk-dialog{padding:22px 20px 20px}
  .wk-page .wk-dialog h2{font-size:24px}
}
@media (max-height:620px) and (min-width:720px){
  .wk-page{--wk-road-h:clamp(70px, 14vh, 110px)}
}
@media (prefers-reduced-motion: reduce){
  .wk-page .wk-msg, .wk-page .wk-glow, .wk-page .wk-dot::after, .wk-page .wk-drawing{animation:none}
}
