/* Welcome modal (core/welcome.js). Minimal: one card, centred, over a dimmed shell. Skin variables and kit tokens only. */
.wl-overlay{position:fixed;inset:0;z-index:400;display:grid;place-items:center;padding:20px;background:var(--sk-dim,var(--wz-overlay));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);animation:wl-in .2s ease-out;transition:background .25s,backdrop-filter .25s}
@keyframes wl-in{from{opacity:0}to{opacity:1}}
.wl-card{width:min(440px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border-radius:22px;background:var(--sk-win,var(--wz-surface-raised));border:1px solid var(--line);color:var(--ink);box-shadow:0 30px 80px color-mix(in srgb,var(--bg) 70%,transparent);font:inherit}
.wl-card.wide{width:min(720px,100%)}
.wl-brand{display:flex;align-items:center;justify-content:center;gap:9px;margin:-4px 0 22px;font-size:var(--wz-font-size);font-weight:650;letter-spacing:.01em;color:var(--ink)}
.wl-brand img{height:26px;width:auto;display:block}
html[data-scheme="light"] .wl-brand img{filter:invert(1)}
.wl-dots{display:flex;justify-content:center;gap:6px;margin-bottom:20px}
.wl-dots i{width:22px;height:4px;border-radius:2px;background:var(--line-2)}
.wl-dots i.on{background:var(--violet)}
.wl-dots i.done{background:var(--ink-3)}
.wl-head h2{margin:0;font-size:var(--wz-text-title);font-weight:650;letter-spacing:-.01em;outline:none}
.wl-head p{margin:6px 0 0;color:var(--ink-2);font-size:var(--wz-font-size);line-height:1.45}
.wl-row{display:flex;align-items:center;gap:10px}
.wl-back{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:transparent;color:inherit;font-size:1.4em;line-height:1;cursor:pointer}
.wl-choices{display:grid;gap:10px;margin-top:22px}
.wl-choice{display:flex;align-items:center;gap:14px;width:100%;padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--glass,transparent);color:inherit;font:inherit;font-size:var(--wz-text-lg);text-align:left;cursor:pointer}
.wl-choice:hover,.wl-choice:focus-visible{border-color:var(--violet);outline:none}
.wl-choice:disabled{opacity:.7;cursor:default}
.wl-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:white;overflow:hidden}
.wl-mark img{width:26px;height:26px;display:block}
.wl-name{flex:1;font-weight:600}
.wl-tag{font-size:var(--wz-text-sm);padding:4px 9px;border-radius:999px;background:var(--violet);color:white}
.wl-tag.soft{background:transparent;border:1px solid var(--line-2);color:var(--ink-2)}
.wl-sub{font-size:var(--wz-text-sm);color:var(--ink-3)}
/* Private first (wizard-ux issue 1549): the lead choice's "Private" line and the optional second-agent extras. */
.wl-name .wl-sub{display:block;margin-top:2px;font-weight:400;line-height:1.35}
.wl-extras-h{margin:22px 0 0;color:var(--ink-2);font-size:var(--wz-text-md)}
.wl-choices.wl-extras{margin-top:10px}
.wl-choice.wl-extra{font-size:var(--wz-font-size)}
.wl-frame{margin-top:18px;height:min(460px,calc(100dvh - 300px));border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--bg)}
.wl-frame iframe{width:100%;height:100%;border:0;display:block}
.wl-status{margin:14px 0 0;color:var(--ink-3);font-size:var(--wz-text-md)}
.wl-status.ok{color:var(--wz-success)}
.wl-status.err{color:var(--wz-danger)}
.wl-overlay.wl-peek{background:color-mix(in srgb,var(--bg) 22%,transparent);-webkit-backdrop-filter:none;backdrop-filter:none}
.wl-overlay.wl-peek .wl-card{background:linear-gradient(var(--sk-win,var(--wz-surface-raised)),var(--sk-win,var(--wz-surface-raised))),var(--bg)}
.wl-card .st-root.wl-skp{container:none;overflow:visible;padding:0;min-height:0;margin-top:18px;color:var(--ink)}
.wl-card .st-root.wl-skp .skp{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:6px 4px}
@media (max-width:600px){.wl-card .st-root.wl-skp .skp{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.wl-card .st-root.wl-skp .skp-nm{font-size:var(--wz-text-sm)}}
/* Every skin the shell ships (11 and growing): three across on the narrowest phones; the card scrolls and Continue
 * stays pinned at its foot so it is always reachable. */
@media (max-width:340px){.wl-card .st-root.wl-skp .skp{grid-template-columns:repeat(3,minmax(0,1fr))}}
.wl-skp+.wl-primary{position:sticky;bottom:0}
.wl-primary{display:block;width:100%;margin-top:22px;min-height:48px;border:0;border-radius:14px;background:var(--violet);color:white;font:inherit;font-size:var(--wz-text-lg);font-weight:600;cursor:pointer}
.wl-primary:disabled{opacity:.6;cursor:default}
html[data-skin="obsidian"] .wl-primary,html[data-skin="obsidian"] .wl-tag{color:black}
.wl-hello textarea,.wl-naming input{display:block;width:100%;box-sizing:border-box;margin-top:22px;padding:14px;border-radius:14px;border:1px solid var(--line-2);background:var(--glass,transparent);color:inherit;font:inherit;font-size:var(--wz-text-lg);resize:none;outline:none}
.wl-hello textarea:focus,.wl-naming input:focus{border-color:var(--violet)}
.wl-naming input:disabled{opacity:.6}
.wl-skip{display:block;margin:12px auto 0;min-height:44px;padding:0 16px;border:0;background:transparent;color:var(--ink-3);font:inherit;font-size:var(--wz-text-md);cursor:pointer}
.wl-skip:hover,.wl-skip:focus-visible{color:inherit}
@media (max-width:600px){.wl-overlay{padding:0;align-items:end}.wl-card{width:100%;max-height:92dvh;border-radius:22px 22px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom))}.wl-frame{height:calc(92dvh - 230px)}}
/* Say hello's mic (issue 1730): beside the box, skin colours only; listening fills it with the accent. */
.wl-say{position:relative}
.wl-say textarea{padding-right:62px}
.wl-mic{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--line-2);background:var(--glass,transparent);color:var(--ink);cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.wl-mic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.wl-mic:hover,.wl-mic:focus-visible{border-color:var(--violet);outline:none}
.wl-mic.on{background:var(--violet);border-color:var(--violet);color:white;animation:wl-mic 1.4s ease-in-out infinite}
html[data-skin="obsidian"] .wl-mic.on{color:black}
.wl-mic.busy{opacity:.6;cursor:default}
.wl-mic:disabled{cursor:default}
@keyframes wl-mic{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--violet) 45%,transparent)}50%{box-shadow:0 0 0 8px color-mix(in srgb,var(--violet) 0%,transparent)}}
@media (prefers-reduced-motion:reduce){.wl-mic.on{animation:none}}
.wl-voice{margin:8px 2px 0;min-height:1.3em;color:var(--ink-2);font-size:var(--wz-text-md)}
.wl-voice:empty{display:none}
.wl-voice.err{color:var(--wz-danger)}
/* Standard first (wizard-ux issue 1800): the Private AI offer. Later and No thanks side by side under the primary. */
.wl-head p.wl-lead{color:var(--ink);font-weight:600}
.wl-offer-more{display:flex;justify-content:center;gap:8px;margin-top:6px}
.wl-offer-more .wl-skip{margin:0}
