/* ViceDeck guide layer: setup wizard, guided tour, Guide tab extras, Messages mesh panel (see guide.js). */

/* ---------- Setup wizard ---------- */
.gw-card { width: 760px; max-width: 95vw; max-height: 92vh; display: flex; flex-direction: column; }
.gw-card .modal-body { overflow-y: auto; min-height: 0; }
.gw-steps { list-style: none; margin-bottom: 4px; }
.gw-steps li { display: contents; }
.gw-steps .wizard-step-pill { width: 100%; cursor: default; font-family: inherit; }
.gw-steps .wizard-step-pill.done { cursor: pointer; }
.gw-steps .wizard-step-pill:focus-visible, .vd-tour-pop button:focus-visible, .gw-card button:focus-visible { outline: 2px solid var(--vice-accent-1, #e85d99); outline-offset: 2px; }
.gw-progress { height: 3px; border-radius: 2px; background: var(--bg-input); overflow: hidden; margin-bottom: 4px; }
.gw-progress > div { height: 100%; width: 0; background: var(--vice-gradient); transition: width 0.25s ease; }
.gw-pane { display: flex; flex-direction: column; gap: 8px; }
.gw-pane.hidden { display: none; }
.gw-pane h3 { font-size: 15px; color: var(--text-main); font-family: var(--font-display); }
.gw-pane label { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.gw-explain { font-size: 12.5px; line-height: 1.5; color: #dbe1ee; margin: 0; }
.gw-hint { font-size: 11.5px; color: var(--text-subtle); margin: 0; }
.gw-hint code, .gw-explain code { background: var(--bg-input); padding: 1px 5px; border-radius: 4px; font-size: 11px; color: #f3c6df; }
.gw-status { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; padding: 7px 10px; border-radius: 6px; background: var(--bg-input); border: 1px solid var(--border-subtle); color: var(--text-muted); min-height: 0; }
.gw-status:empty { display: none; }
.gw-status .gw-ico { font-weight: 800; width: 16px; text-align: center; flex: none; }
.gw-ok { border-color: rgba(56, 217, 107, 0.45); color: #b7f5cb; }
.gw-ok .gw-ico { color: var(--accent-green); }
.gw-warn { border-color: rgba(245, 166, 66, 0.45); color: #fcdba8; }
.gw-warn .gw-ico { color: var(--accent-amber); }
.gw-error { border-color: rgba(207, 70, 70, 0.55); color: #f6b4b4; }
.gw-error .gw-ico { color: var(--accent-red); }
.gw-sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-sugs.hidden { display: none; }
.gw-gpu { padding: 10px 12px; border-radius: 6px; background: var(--bg-input); border: 1px solid var(--border-subtle); font-size: 12px; }
.gw-gpu-name { font-weight: 800; color: var(--text-main); font-size: 13.5px; }
.gw-why { font-size: 12.5px; line-height: 1.5; color: #dbe1ee; padding: 8px 10px; border-left: 3px solid var(--vice-accent-1, #e85d99); background: rgba(232, 93, 153, 0.07); border-radius: 0 6px 6px 0; }
.gw-why:empty { display: none; }
.gw-tools { font-size: 11.5px; }
.gw-okc { color: var(--accent-green); }
.gw-warnc { color: var(--accent-amber); }
.gw-badc { color: var(--accent-red); }
.gw-runtimes { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.gw-family { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.gw-family legend { font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-subtle); padding: 0 4px; }
.gw-rt { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 7px 8px; border-radius: 6px; background: var(--bg-input); border: 1px solid transparent; }
.gw-rt.selected { border-color: rgba(232, 93, 153, 0.55); }
.gw-rt.for-you { box-shadow: inset 3px 0 0 var(--accent-green); }
.gw-rt-main { display: flex; gap: 8px; align-items: flex-start; flex: 1; min-width: 0; cursor: pointer; font-weight: 400 !important; color: var(--text-main) !important; }
.gw-rt-main input { margin-top: 3px; }
.gw-rt-meta { display: block; font-size: 10.5px; margin-top: 2px; word-break: break-word; }
.gw-rt-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.gw-chip { display: inline-block; font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); margin-left: 3px; white-space: nowrap; }
.gw-chip-ok { background: rgba(56, 217, 107, 0.16); color: #86efac; }
.gw-chip-warn { background: rgba(255, 170, 60, 0.16); color: #ffb35c; }
.gw-chip-rec { background: rgba(123, 92, 246, 0.2); color: #c4b5fd; }
.gw-chip-you { background: rgba(232, 93, 153, 0.18); color: #f9a8d4; }
.gw-chip-dim { opacity: 0.75; }
.gw-job { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: rgba(0, 0, 0, 0.18); }
.gw-job.hidden { display: none; }
.gw-cancel { border-color: rgba(207, 70, 70, 0.6) !important; color: #f6b4b4 !important; }
.gw-job-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.gw-job-head [data-state="ok"] { color: #86efac; }
.gw-job-head [data-state="error"] { color: #f6b4b4; }
.gw-job-track { height: 5px; border-radius: 3px; background: var(--bg-input); overflow: hidden; position: relative; }
.gw-job-bar { height: 100%; width: 0; background: var(--vice-gradient); transition: width 0.2s ease; }
.gw-job-bar.indeterminate { width: 35%; position: absolute; animation: gw-slide 1.2s ease-in-out infinite; }
@keyframes gw-slide { 0% { left: -35%; } 100% { left: 100%; } }
.gw-job-log { max-height: 140px; overflow-y: auto; font-family: Consolas, monospace; font-size: 10.5px; color: #c9d1e0; white-space: pre-wrap; word-break: break-all; margin: 0; }
.gw-extra summary { cursor: pointer; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.gw-extra[open] { display: flex; flex-direction: column; gap: 4px; }
.gw-skip-link { align-self: flex-start; }
.gw-preflight { display: flex; flex-direction: column; gap: 5px; max-height: 300px; overflow-y: auto; }
.gw-pf-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--bg-input); font-size: 12px; }
.gw-pf-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--accent-green); }
.gw-pf-row.warn .gw-pf-dot { background: var(--accent-amber); }
.gw-pf-row.bad .gw-pf-dot { background: var(--accent-red); }
.gw-pf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gw-pf-text .muted { font-size: 10.5px; word-break: break-all; }
.gw-pf-text code { font-size: 10px; color: #f3c6df; word-break: break-all; }
.gw-pf-state { font-size: 9.5px; font-weight: 800; letter-spacing: 0.4px; color: var(--text-subtle); flex: none; }
.gw-pf-row.bad .gw-pf-state { color: #f6b4b4; }
.gw-pf-row a.raised-btn { text-decoration: none; display: inline-flex; align-items: center; }
.gw-final { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gw-final button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Guided tour ---------- */
.vd-tour { position: fixed; inset: 0; z-index: 130; pointer-events: auto; }
.vd-tour-spot { position: fixed; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(8, 9, 13, 0.72); border: 2px solid var(--vice-accent-1, #e85d99); transition: all 0.22s ease; pointer-events: none; }
.vd-tour-pop { position: fixed; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); border: 1px solid rgba(232, 93, 153, 0.45); transition: left 0.22s ease, top 0.22s ease; }
.vd-tour-pop h3 { font-size: 14px; font-family: var(--font-display); color: var(--text-main); }
.vd-tour-pop p { font-size: 12.5px; line-height: 1.5; color: #dbe1ee; margin: 0; }
.vd-tour-count { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-subtle); }
.vd-tour-actions { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .vd-tour-spot, .vd-tour-pop, .gw-progress > div { transition: none; } .gw-job-bar.indeterminate { animation: none; width: 100%; left: 0; opacity: 0.5; } }

/* ---------- Guide tab ---------- */
.gd-search-wrap { padding: 8px 8px 0; }
.gd-search-wrap input { width: 100%; }
.gd-nav-foot { padding: 4px 12px 10px; font-size: 10.5px; }
.gd-ol { list-style: decimal; }
.gd-dl { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.gd-dl-row { padding: 7px 10px; border-radius: 6px; background: var(--bg-input); border: 1px solid var(--border-subtle); }
.gd-dl dt { font-weight: 800; color: var(--text-main); font-size: 12.5px; }
.gd-dl dd { margin: 2px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.guide-card.hidden { display: none; }

/* ---------- Messages: mesh panel, peers, delivery ---------- */
.gd-mesh { padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 5px; }
.gd-mesh:empty { display: none; }
.gd-addr { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.gd-addr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gd-addr code { word-break: break-all; background: var(--bg-input); padding: 2px 5px; border-radius: 4px; color: #f3c6df; }
.gd-addr .muted { font-size: 9.5px; }
.gd-mesh-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.gd-flag { font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.gd-flag.on { background: rgba(56, 217, 107, 0.15); color: #86efac; }
.gd-flag.warn { background: rgba(245, 166, 66, 0.16); color: #fcd34d; }
.gd-flag.off { background: rgba(207, 70, 70, 0.14); color: #f6b4b4; }
.gd-mesh-note { font-size: 10.5px; line-height: 1.4; }
.gd-peer-head { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; color: var(--text-subtle); padding: 8px 10px 3px; }
.gd-peer-head .muted { font-weight: 400; letter-spacing: 0; text-transform: none; }
.gd-empty { padding: 4px 10px 8px; font-size: 11px; line-height: 1.45; }
.gd-peer-actions { display: flex; gap: 4px; margin-top: 4px; }
.gd-peer-err { font-size: 10.5px; color: #f6b4b4; margin-top: 2px; }
.gd-delivery { font-size: 10px; margin-top: 3px; color: var(--text-subtle); }
.gd-delivery.gd-sent { color: #86efac; }
.gd-delivery.gd-failed { color: #f6b4b4; }
.gd-delivery.gd-partial { color: #fcd34d; }
.gd-delivery.gd-local { color: var(--text-subtle); font-style: italic; }
.gw-gpu-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.gw-gpu-ask .raised-btn.active { outline: 2px solid var(--accent, #c86bff); }
.gw-gpu-ask label { display: flex; align-items: center; gap: 6px; font-size: 12px; }

/* Phase 11: one simple path. Big primary action per step; everything technical folds away. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gw-card { width: 640px; }
.gw-pane h3 { font-size: 20px; margin: 4px 0 0; }
.gw-explain { font-size: 13.5px; color: var(--text-muted); margin: 0 0 6px; line-height: 1.45; }
.gw-big-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.gw-big-actions .raised-btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
.gw-adv { border-top: 1px solid var(--border-subtle); padding-top: 8px; margin-top: 6px; }
.gw-adv > summary { cursor: pointer; font-size: 12.5px; color: var(--text-subtle); list-style: revert; }
.gw-adv[open] > summary { margin-bottom: 8px; color: var(--text-muted); }
.gw-adv > *:not(summary) + * { margin-top: 6px; }
.gw-pick-card { border: 1px solid var(--border-highlight); border-radius: 14px; padding: 16px 18px; background: var(--bg-elev); display: flex; flex-direction: column; gap: 6px; }
.gw-pick-card.ready { border-color: color-mix(in srgb, var(--accent-green) 55%, transparent); }
.gw-pick-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--vice-accent-1); }
.gw-pick-name { font-size: 18px; font-weight: 800; color: var(--text-main); font-family: var(--font-display); }
.gw-pick-meta { font-size: 12px; }
.gw-pick-btn { align-self: flex-start; min-height: 42px; padding: 0 22px; font-size: 14px; margin-top: 6px; }
.gw-pick-note { font-size: 12px; }
.gw-pick-state { font-weight: 700; margin-top: 4px; }
.gw-pick-state.ok { color: var(--accent-green); }
.gw-pick-state.warn { color: var(--accent-amber); font-weight: 600; font-size: 13px; }
.gw-play-big { min-height: 48px; padding: 0 34px; font-size: 16px; }
#gwPreflightMust:empty { display: none; }
#gwPane2 { display: flex; flex-direction: column; gap: 8px; }
.gw-skip-link { align-self: flex-start; opacity: 0.8; }
