/* Next-Pit source migration: semantic frontend tokens; decorative colors only. */
/* Next-Pit – Hilfesystem 2.0. Isolated styles, responsive overlays and keyboard navigation. */
.vguide-host,.vguide-menu,.vguide-inspect-bar,.vguide-help-toggle{font-family:inherit;color:var(--vb-color-text);box-sizing:border-box;}
.vguide-host *,.vguide-menu *,.vguide-inspect-bar *{box-sizing:border-box}
.vguide-help-toggle{position:fixed;left:16px;bottom:calc(var(--vb-bottom-ui-offset,90px) + 14px + env(safe-area-inset-bottom));z-index:2147483500!important;display:grid!important;place-items:center!important;width:46px!important;height:46px!important;padding:0!important;border:2px solid var(--vb-color-accent,#ef4444)!important;border-radius:50%!important;background:var(--vb-color-accent-strong,#991b1b)!important;color:var(--vb-color-text)!important;box-shadow:0 5px 18px #0009!important;font:700 24px Georgia,serif!important;cursor:pointer!important;line-height:1!important;}
.vguide-help-toggle:hover{background:var(--vb-color-accent-strong,#991b1b)!important;}
.vguide-shade{position:fixed;background:rgba(0,0,0,.70);z-index:2147483550;pointer-events:auto;}
.vguide-ring{position:fixed;z-index:2147483552;pointer-events:none;border:2px solid var(--vb-color-accent,#ef4444);border-radius:12px;box-shadow:0 0 0 4px color-mix(in srgb,var(--vb-color-accent,#ef4444) 10%,transparent),0 0 24px color-mix(in srgb,var(--vb-color-accent,#ef4444) 10%,transparent);}
.vguide-card{position:fixed!important;z-index:2147483560!important;right:auto!important;bottom:auto!important;overflow:auto!important;overscroll-behavior:contain;background:var(--vb-color-surface-1)!important;border:1px solid var(--vb-color-accent,#ef4444)!important;border-radius:16px!important;padding:18px!important;box-shadow:0 16px 55px #000c!important;color:var(--vb-color-text)!important;line-height:1.5!important;text-align:left!important;}
.vguide-card-title{font-size:18px!important;display:block!important;color:var(--vb-color-text)!important;font-weight:800!important;overflow-wrap:anywhere;}
.vguide-card-text{margin:10px 0 18px!important;color:var(--vb-color-text-secondary)!important;font-size:14px!important;line-height:1.65!important;overflow-wrap:anywhere;}
.vguide-progress{margin:0 0 9px;color:var(--vb-color-accent-text,#fca5a5);font-size:12px;font-weight:700;letter-spacing:.03em;}
.vguide-actions{display:flex;gap:8px;flex-wrap:wrap;}
.vguide-card button,.vguide-menu button,.vguide-inspect-bar button{appearance:none!important;border:1px solid var(--vb-color-accent,#ef4444)!important;background:var(--vb-color-surface-2)!important;border-radius:10px!important;color:#fff!important;padding:10px 13px!important;min-height:42px!important;cursor:pointer!important;font:inherit!important;font-size:14px!important;line-height:1.35!important;text-align:center!important;box-shadow:none!important;text-transform:none!important;white-space:normal!important;}
.vguide-card button:hover,.vguide-menu button:hover,.vguide-inspect-bar button:hover{border-color:var(--vb-color-accent,#ef4444)!important;background:var(--vb-color-accent-strong,#991b1b)!important;}
.vguide-card button.vguide-action-primary,.vguide-menu button.vguide-action-primary{background:var(--vb-color-accent,#ef4444)!important;border-color:var(--vb-color-accent,#ef4444)!important;}
.vguide-host button:focus-visible,.vguide-menu button:focus-visible,.vguide-inspect-bar button:focus-visible,.vguide-search:focus-visible,.vguide-help-toggle:focus-visible,.vguide-group summary:focus-visible{outline:2px solid #ffd28e!important;outline-offset:3px!important;}
.vguide-menu{position:fixed!important;inset:0!important;z-index:2147483565!important;background:rgba(3,3,8,.72)!important;display:flex!important;justify-content:center!important;align-items:center!important;padding:14px!important;}
.vguide-panel{width:min(540px,100%)!important;max-height:min(760px,calc(100dvh - 28px))!important;overflow:auto!important;overscroll-behavior:contain!important;background:var(--vb-color-surface-1)!important;border:1px solid var(--vb-color-accent,#ef4444)!important;border-radius:20px!important;box-shadow:0 20px 70px #000c!important;padding:22px!important;color:var(--vb-color-text)!important;}
.vguide-panel-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;}
.vguide-panel-header h2{font-size:24px!important;line-height:1.25!important;font-weight:800!important;color:var(--vb-color-text)!important;margin:0!important;flex:1;}
.vguide-panel .vguide-panel-close{display:grid!important;place-items:center!important;flex-shrink:0;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;font-size:26px!important;line-height:1!important;}
.vguide-intro{font-size:14px!important;line-height:1.6!important;color:var(--vb-color-text-secondary)!important;margin:0 0 15px!important;}
.vguide-panel button.vguide-choice{width:100%!important;display:flex!important;gap:13px!important;align-items:center!important;text-align:left!important;min-height:80px!important;margin:0 0 10px!important;padding:13px!important;background:var(--vb-color-surface-2)!important;border:1px solid var(--vb-color-accent,#ef4444)!important;border-radius:14px!important;}
.vguide-choice-icon{display:grid;place-items:center;flex:0 0 40px;font-size:23px;color:var(--vb-color-accent-text,#fca5a5);background:var(--vb-color-accent-strong,#991b1b);border-radius:11px;width:40px;height:40px;}
.vguide-choice-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;}.vguide-choice-text strong{font-size:15px;color:var(--vb-color-text);line-height:1.3;}.vguide-choice-text small{font-size:12px;line-height:1.5;color:var(--vb-color-text-secondary);}
.vguide-choice-arrow{font-size:22px;color:var(--vb-color-accent-text,#fca5a5);}
.vguide-panel button.vguide-subtle,.vguide-panel button.vguide-resume{margin:10px 0 0!important;padding:10px 12px!important;width:100%!important;background:transparent!important;border:1px solid #55404d!important;font-size:13px!important;}
.vguide-panel button.vguide-resume{border-color:var(--vb-color-accent,#ef4444)!important;color:#ffe1e8!important;}
.vguide-search{display:block!important;width:100%!important;max-width:none!important;margin:0 0 15px!important;min-height:46px!important;padding:10px 13px!important;background:var(--vb-color-surface-2)!important;border:1px solid var(--vb-color-accent,#ef4444)!important;border-radius:12px!important;color:var(--vb-color-text)!important;font:inherit!important;font-size:14px!important;}
.vguide-search::placeholder{color:var(--vb-color-muted)!important;}
.vguide-catalogue{display:grid;gap:8px;}.vguide-group{border:1px solid #4b3543;border-radius:13px;background:var(--vb-color-surface-2);overflow:hidden;}
.vguide-group summary{padding:13px 14px;cursor:pointer;font-size:14px;font-weight:800;line-height:1.45;color:var(--vb-color-text-secondary);}.vguide-group summary:hover{background:var(--vb-color-surface-2);}
.vguide-entry{padding:12px 14px 14px;border-top:1px solid #4b3543;background:var(--vb-color-surface-2);}.vguide-entry h3{color:var(--vb-color-text)!important;margin:0 0 6px!important;font-size:15px!important;font-weight:800!important;line-height:1.35!important;}.vguide-entry p{color:var(--vb-color-text-secondary)!important;font-size:13px!important;line-height:1.6!important;margin:0 0 10px!important;}
.vguide-entry-actions{display:flex;flex-wrap:wrap;gap:8px;}.vguide-entry-actions button{font-size:12px!important;min-height:36px!important;padding:8px 10px!important;}.vguide-empty{font-size:14px;color:var(--vb-color-text-secondary);}
.vguide-inspecting{cursor:help!important;}.vguide-inspecting::after{content:"";position:fixed;inset:0;z-index:2147483545;pointer-events:none;box-shadow:inset 0 0 55px 12px color-mix(in srgb,var(--vb-color-accent,#ef4444) 10%,transparent);border:2px solid var(--vb-color-accent,#ef4444);box-sizing:border-box;}
.vguide-inspect-host .vguide-shade{pointer-events:none!important;background:rgba(10,5,8,.12)!important;}
.vguide-inspect-bar{position:fixed!important;z-index:2147483570!important;top:calc(var(--vb-top-ui-offset,76px) + 8px)!important;left:50%!important;transform:translateX(-50%)!important;display:flex!important;align-items:center!important;gap:12px!important;max-width:calc(100% - 24px)!important;width:max-content!important;padding:10px 13px!important;border:1px solid var(--vb-color-accent,#ef4444)!important;border-radius:13px!important;background:var(--vb-color-accent-strong,#991b1b)!important;box-shadow:0 8px 27px #0009!important;color:var(--vb-color-text)!important;}
.vguide-inspect-bar span{font-size:13px!important;line-height:1.4!important;}.vguide-inspect-bar button{flex-shrink:0!important;background:var(--vb-color-accent-strong,#991b1b)!important;}
@media(max-width:650px){
 .vguide-menu{padding:0!important;align-items:flex-end!important}
 .vguide-panel{width:100%!important;max-height:min(88dvh,760px)!important;border-radius:22px 22px 0 0!important;border-bottom:0!important;padding:19px 15px calc(20px + env(safe-area-inset-bottom))!important}
 .vguide-card{padding:15px!important;border-radius:15px!important}
 .vguide-card-title{font-size:16px!important}.vguide-card-text{font-size:13px!important;margin:7px 0 12px!important}
 .vguide-inspect-bar{top:calc(var(--vb-top-ui-offset,76px) + 5px)!important;gap:8px!important;flex-wrap:wrap!important;justify-content:center!important;text-align:center!important;padding:7px 10px!important}
 .vguide-inspect-bar span{font-size:12px!important}
 .vguide-inspect-bar button{min-height:36px!important;padding:7px 10px!important;font-size:12px!important}
 .vguide-help-toggle{left:12px;width:42px!important;height:42px!important}
}
@media(prefers-reduced-motion:reduce){.vguide-host *,.vguide-menu *,.vguide-inspect-bar *{animation:none!important;transition:none!important}}
/* Explain-mode description must not trap the pointer when the user moves to
   another control behind the floating card. Its action buttons remain usable. */
.vguide-inspect-host .vguide-card{pointer-events:none!important;}
.vguide-inspect-host .vguide-card button{pointer-events:auto!important;}

/* Help overlays must never appear in printed pages. */
@media print{.vguide-host,.vguide-menu,.vguide-help-toggle,.vguide-inspect-bar{display:none!important}}
/* Mobile landscape: use the available visual viewport height without clipping actions. */
@media(max-height:420px){.vguide-panel{max-height:calc(100dvh - 12px)!important;padding:12px!important}.vguide-card{padding:10px!important}.vguide-card-text{margin:5px 0 8px!important;line-height:1.4!important}.vguide-card button{min-height:34px!important;padding:6px 10px!important}}

/* Nested, searchable catalogue of all documented individual controls. */
.vguide-control-group{border-top:1px solid #58404c;background:var(--vb-color-surface-2);}
.vguide-control-group>summary{padding:12px 14px;color:var(--vb-color-accent-text,#fca5a5);font-size:13px;font-weight:800;cursor:pointer;}
.vguide-control-entry{border-top:1px solid #3c303c;background:var(--vb-color-surface-1);}
.vguide-control-entry>summary{padding:10px 15px 10px 23px;cursor:pointer;font-size:13px;line-height:1.5;color:var(--vb-color-text-secondary);font-weight:600;overflow-wrap:anywhere;}
.vguide-control-entry>summary:hover,.vguide-control-group>summary:hover{background:var(--vb-color-accent-strong,#991b1b);}
.vguide-control-content{padding:0 15px 13px 23px;}
.vguide-control-content p{margin:0 0 10px!important;font-size:13px!important;line-height:1.6!important;color:var(--vb-color-text-secondary)!important;}
.vguide-control-content button{min-height:36px!important;font-size:12px!important;padding:8px 12px!important;}
.vguide-control-entry summary:focus-visible,.vguide-control-group summary:focus-visible{outline:2px solid #ffd28e!important;outline-offset:-2px!important;}

/* Guided tour: actions for leaving the tour should read as quiet choices,
   not compete visually with Back / Next. Keep touch targets >= 40px. */
.vguide-card .vguide-actions button.vguide-action-quiet{background:transparent!important;border-color:transparent!important;color:#d5bbc5!important;font-size:13px!important;padding:8px 11px!important;}
.vguide-card .vguide-actions button.vguide-action-quiet:hover{background:var(--vb-color-surface-2)!important;border-color:var(--vb-color-accent,#ef4444)!important;color:#fff!important;}
@media(max-width:440px){.vguide-card .vguide-actions{gap:5px}.vguide-card .vguide-actions button{padding:9px 11px!important;min-height:40px!important}.vguide-card .vguide-actions button.vguide-action-quiet{font-size:12px!important}}
/* Explanation banner is only an indicator; don't make the site behind it uninspectable. */
.vguide-inspect-bar{pointer-events:none!important;}
.vguide-inspect-bar button{pointer-events:auto!important;}

/* 3.36.25: compact explain-mode indicator at the very top. The page
   remains usable beneath the bar, and Escape already exits the mode. */
.vguide-inspect-bar{
 top:calc(env(safe-area-inset-top, 0px) + 5px)!important;
 gap:7px!important;padding:4px 7px 4px 11px!important;
 border-radius:999px!important;
 background:rgba(41,17,27,.92)!important;
 box-shadow:0 4px 16px #000a!important;
 backdrop-filter:blur(8px)!important;
 max-width:calc(100vw - 16px)!important;
 flex-wrap:nowrap!important;
}
.vguide-inspect-bar span{font-size:12px!important;line-height:1.25!important;white-space:nowrap!important;}
.vguide-inspect-bar button{min-height:32px!important;padding:4px 9px!important;font-size:12px!important;border-radius:999px!important;white-space:nowrap!important;}
@media(max-width:420px){
 .vguide-inspect-bar{width:auto!important;gap:5px!important;padding:4px 6px!important}
 .vguide-inspect-bar span{font-size:12px!important}
 .vguide-inspect-bar button{font-size:12px!important;min-height:30px!important;padding:3px 7px!important}
}

/* 3.36.26 – A real mobile exit, always available without a keyboard. */
.vguide-instruction-mobile{display:none!important;}
.vguide-inspect-exit{display:none!important;position:fixed!important;z-index:2147483579!important;box-sizing:border-box!important;
  left:50%!important;transform:translateX(-50%)!important;
  bottom:calc(var(--vb-bottom-ui-offset,90px) + 12px + env(safe-area-inset-bottom))!important;
  max-width:calc(100vw - 28px)!important;min-height:48px!important;padding:10px 17px!important;
  border:2px solid var(--vb-color-accent,#ef4444)!important;border-radius:999px!important;background:var(--vb-color-accent,#ef4444)!important;color:var(--vb-color-text)!important;
  font-family:inherit!important;font-weight:700!important;font-size:14px!important;line-height:1.25!important;white-space:nowrap!important;box-shadow:0 5px 23px #000d!important;
  cursor:pointer!important;touch-action:manipulation!important;pointer-events:auto!important;}
.vguide-inspect-exit:hover{background:var(--vb-color-accent-strong,#991b1b)!important;}
.vguide-inspect-exit:focus-visible{outline:3px solid #ffe19e!important;outline-offset:4px!important;}
@media(max-width:650px), (hover:none) and (pointer:coarse){
 .vguide-instruction-desktop,.vguide-inspect-bar .vguide-desktop-exit{display:none!important}
 .vguide-instruction-mobile{display:inline!important}
 .vguide-inspect-exit{display:block!important}
 .vguide-inspect-bar{pointer-events:none!important}
}
@media(max-width:650px){
 .vguide-inspect-exit{font-size:13px!important;min-height:46px!important;padding:9px 17px!important}
 .vguide-inspect-bar{max-width:calc(100vw - 28px)!important}
 .vguide-inspect-host .vguide-card{overscroll-behavior:contain!important}
}
@media(max-height:450px) and (max-width:900px){
 .vguide-inspect-exit{bottom:calc(8px + env(safe-area-inset-bottom))!important;min-height:40px!important;padding:6px 13px!important}
 .vguide-inspect-bar{top:calc(3px + env(safe-area-inset-top))!important}
}
@media print{.vguide-inspect-exit{display:none!important}}

/* Same i-button also exits when explain mode is active; mobile cards only close their description. */
.vguide-help-toggle.is-inspecting{background:var(--vb-color-accent-strong,#991b1b)!important;border-color:var(--vb-color-accent,#ef4444)!important;}
@media(max-width:650px), (hover:none) and (pointer:coarse){
 .vguide-inspect-host .vguide-card-end-mode{display:none!important}
}

/* 3.36.27: concise, task-based help directory. The 200+ low-level control
   selectors belong to Explain Mode, not a 91-item public-facing accordion. */
.vguide-panel.vguide-panel-directory{width:min(740px,100%)!important;max-height:min(86dvh,870px)!important;}
.vguide-panel-directory .vguide-intro{font-size:14px!important;max-width:64ch;}
.vguide-group-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}
.vguide-group-label{flex:1;min-width:0;}
.vguide-group-count{flex-shrink:0;color:var(--vb-color-text-secondary);font-size:12px;font-weight:600;white-space:nowrap;}
.vguide-group-intro{padding:0 15px 12px!important;margin:0!important;color:var(--vb-color-text-secondary)!important;font-size:12px!important;line-height:1.45!important;}
.vguide-guide-entry{border-top:1px solid #433541;background:var(--vb-color-surface-2);}
.vguide-guide-entry>summary{cursor:pointer;padding:13px 17px!important;color:var(--vb-color-text);font-weight:700;font-size:14px!important;line-height:1.45!important;}
.vguide-guide-entry>summary:hover{background:var(--vb-color-surface-2);}
.vguide-guide-content{padding:0 17px 15px!important;}
.vguide-guide-summary{font-size:13px!important;line-height:1.65!important;color:var(--vb-color-text-secondary)!important;margin:0 0 10px!important;}
.vguide-guide-steps{margin:0 0 14px!important;padding:0 0 0 22px!important;color:var(--vb-color-text-secondary)!important;font-size:13px!important;line-height:1.65!important;list-style:disc!important;}
.vguide-guide-steps li{margin:0 0 5px!important;padding:0!important;}
.vguide-guide-content button{font-size:12px!important;min-height:38px!important;padding:8px 12px!important;}
.vguide-search-results{padding:14px;border:1px solid #654557;border-radius:13px;background:var(--vb-color-surface-2);}
.vguide-search-results h3{color:var(--vb-color-text)!important;font-weight:800!important;font-size:15px!important;margin:0 0 4px!important;}
.vguide-search-help{font-size:12px!important;color:var(--vb-color-text-secondary)!important;margin:0 0 10px!important;}
.vguide-search-results .vguide-control-entry{background:var(--vb-color-surface-1);}
.vguide-panel button.vguide-more-results{display:block;width:100%;margin-top:8px!important;font-size:12px!important;background:var(--vb-color-surface-2)!important;}
.vguide-inspect-hint{border:1px solid var(--vb-color-accent,#ef4444);border-radius:14px;padding:14px;margin:16px 0 4px;background:var(--vb-color-surface-2);}
.vguide-inspect-hint p{font-size:13px!important;line-height:1.55!important;color:var(--vb-color-text-secondary)!important;margin:0 0 10px!important;}
.vguide-inspect-hint button{font-size:13px!important;}
.vguide-guide-entry summary:focus-visible,.vguide-search-results summary:focus-visible{outline:2px solid #ffd28e!important;outline-offset:-3px!important;}
@media(max-width:650px){
 .vguide-panel.vguide-panel-directory{width:100%!important;max-height:88dvh!important}
 .vguide-group-heading{gap:6px!important}
 .vguide-group-count{font-size:12px}
 .vguide-guide-entry>summary{padding:12px 13px!important}
 .vguide-guide-content{padding:0 13px 13px!important}
}

.vguide-search-status{margin:0!important;color:var(--vb-color-text-secondary)!important;font-size:12px!important;line-height:1.4!important;}
.vguide-search-status:empty{display:none!important;}

/* 3.36.31 – guided steps recover after slow widgets mount. */
.vguide-card .vguide-retry{border-color:var(--vb-color-accent,#ef4444)!important;background:var(--vb-color-surface-2)!important;color:var(--vb-color-text-secondary)!important;}
.vguide-card .vguide-retry:focus-visible{outline:3px solid #ffd38d!important;outline-offset:2px!important;}
@media(max-width:420px){.vguide-card .vguide-retry{max-width:100%;white-space:normal!important;overflow-wrap:anywhere!important}}

/* 3.36.34: Safe touch-only selection layer. Underlying controls receive no
   pointer/touch/click events while Explain mode is enabled. */
.vguide-inspect-shield{position:fixed!important;inset:0!important;z-index:2147483548!important;pointer-events:auto!important;background:transparent!important;touch-action:none!important;cursor:help!important;-webkit-user-select:none!important;user-select:none!important;}
.vguide-touch-inspecting .vguide-help-toggle.is-inspecting{z-index:2147483578!important;}
.vguide-touch-inspecting .vguide-inspect-host .vguide-card{pointer-events:auto!important;}
.vguide-touch-inspecting .vguide-inspect-host .vguide-card button{pointer-events:auto!important;}
@media(max-width:650px),(hover:none) and (pointer:coarse){
 .vguide-touch-inspecting .vguide-inspect-bar{top:calc(3px + env(safe-area-inset-top))!important;max-width:calc(100vw - 16px)!important;}
 .vguide-touch-inspecting .vguide-inspect-exit{z-index:2147483579!important;}
 .vguide-touch-inspecting .vguide-inspect-host .vguide-card{max-width:calc(100vw - 20px)!important;}
}
@media print{.vguide-inspect-shield{display:none!important;}}

/* VB-SOURCE-DESIGN-1.0:feature-guide */
html[data-vb-mode] .vguide-help-toggle{background:var(--vb-color-surface-2)!important;color:var(--vb-color-text)!important;border-color:var(--vb-color-accent,#ef4444)!important}
html[data-vb-mode] :is(.vguide-menu,.vguide-host,.vguide-inspect-bar){color:var(--vb-color-text);border-color:var(--vb-color-border)}
html[data-vb-mode] .vguide-shade{background:var(--vb-color-overlay)}
html[data-vb-mode] :is(.vguide-menu,.vguide-inspect-bar) :is(button,a):focus-visible{outline:2px solid var(--vb-color-accent,#ef4444);outline-offset:2px}


/* VB Design Polish RC4: owned component rules, frontend-scoped. */
html[data-vb-mode] .vguide-ring{border-color:var(--vb-color-accent,#ef4444);box-shadow:0 0 0 4px color-mix(in srgb,var(--vb-color-accent,#ef4444) 23%,transparent),0 0 24px color-mix(in srgb,var(--vb-color-accent,#ef4444) 35%,transparent)}
html[data-vb-mode] :is(.vguide-panel,.vguide-card,.vguide-host){background:var(--vb-color-surface-1)!important;color:var(--vb-color-text)!important;border-color:var(--vb-color-border)!important}
html[data-vb-mode] :is(.vguide-menu,.vguide-shade){--vb-color-overlay:color-mix(in srgb,var(--vb-color-bg) 79%,transparent)}
html[data-vb-mode] .vguide-menu{background:var(--vb-color-overlay)!important}
html[data-vb-mode] .vguide-panel :is(input,textarea,select){background:var(--vb-color-field)!important;color:var(--vb-color-text)!important;border-color:var(--vb-color-border)!important}
html[data-vb-mode] :is(.vguide-card,.vguide-menu,.vguide-panel) :where(button:not(.vguide-action-primary)):hover{background:var(--vb-control-hover)!important;color:var(--vb-color-text)!important}


/* C48.1 · Help button is the bottom member of the shared left tools stack. */
/* The help button sits in the shared helper dock (platform.css, floating-helpers.js) above the chat
 * button. The fixed position at the top of this file is only the fallback for a page without the dock. */
html body .vb-floating-helpers[data-vb-floating-helpers] > .vguide-help-toggle {
  position: static;
  order: 1;
  flex: none;
  margin: 0;
  pointer-events: auto;
}
/* While "explain an element" is active the button must stay above the shield that covers the page. */
html body .vb-floating-helpers[data-vb-floating-helpers]:has(> .vguide-help-toggle.is-inspecting) {
  z-index: 2147483578;
}
