#folio-companion[hidden],body:has(#namaste-opening:not([hidden])) #folio-companion,body:has(dialog[open]) #folio-companion{display:none}
#folio-companion{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:calc(82px + env(safe-area-inset-bottom));z-index:21}
#guide-launch{display:grid;position:relative;justify-items:center;padding:2px 5px 5px;min-width:54px;color:#ffe1dc;border:1px solid #916372;border-radius:18px 18px 9px 9px;background:linear-gradient(160deg,#39222c,#151218 76%);box-shadow:0 5px 20px #0007}
.guide-face{width:50px;height:50px;display:block;overflow:visible}.guide-tag{font:11px/1.1 var(--mono,monospace);letter-spacing:.03em}
.guide-shell{transform-origin:50% 54%}.guide-eyes{transform-box:fill-box;transform-origin:center}
@media(prefers-reduced-motion:no-preference){html:not(.paused) .guide-eyes{animation:visor-blink 7.4s infinite}html:not(.paused) #guide-launch:hover .guide-shell{transform:rotate(-7deg)}html:not(.paused) .guide-shell,html:not(.paused) .guide-gaze{transition:transform 180ms ease-out}html:not(.paused) #guide-launch .guide-shell{animation:visor-wake .65s ease-out 1}}
@keyframes visor-blink{0%,39%,42%,96%,99%,100%{transform:scaleY(1)}40%,97%{transform:scaleY(.14)}}
@keyframes visor-wake{0%{transform:translateY(5px) rotate(10deg)}62%{transform:translateY(-1px) rotate(-4deg)}}
#guide-dialog{position:fixed;inset:auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) auto;margin:0;padding:0;width:min(385px,calc(100vw - 24px));max-width:none;max-height:min(600px,85dvh);color:#fbede9;background:#181417;border:1px solid #9c6d7c;box-shadow:0 18px 70px #0008;border-radius:12px;overflow:hidden}
#guide-dialog[open]{display:flex;flex-direction:column}
#guide-dialog::backdrop{background:#100b104f}
.guide-head{position:static;display:flex;gap:11px;align-items:center;padding:14px 16px;border-bottom:1px solid #544049;background:linear-gradient(110deg,#33232c,#1c171c)}
.guide-head h2{margin:0;font:600 22px/1.15 var(--display,sans-serif);letter-spacing:-.025em}.guide-head p{margin:3px 0 0;font:12px/1.3 var(--font,sans-serif);color:#d3b4bf}
.guide-portrait .guide-face{width:46px;height:46px}.guide-close{font-size:26px;line-height:1;margin-left:auto;min-width:44px;min-height:44px;color:#ebcbd4}
.guide-log{overflow:auto;overscroll-behavior:contain;min-height:0;padding:15px 16px;max-height:330px;scrollbar-color:#785665 #181417}
.guide-log p{font:15px/1.5 var(--font,sans-serif);margin:0;color:#f7e4e4}
.guide-log .question{color:#e9becb;text-align:right;font-size:13px;margin:13px 0 7px}
.guide-log .answer{border-left:2px solid #a46879;padding:2px 0 3px 10px}
.guide-log a{display:inline-flex;align-items:center;min-height:40px;margin-right:12px;color:#ffcede;text-underline-offset:4px;text-decoration:underline;font-size:14px}
.guide-choices,.guide-form{display:flex;gap:6px;padding:7px 14px;flex-wrap:wrap}
.guide-choices button{color:#edd7df;border:1px solid #70535f;padding:4px 9px;min-height:40px;font:13px var(--font,sans-serif)}
.guide-form{flex-wrap:nowrap;padding:10px 14px 14px;border-top:1px solid #493641;margin-top:5px}
.guide-form input{min-width:0;flex:1;border:1px solid #795b67;background:#211c20;color:#fff4ef;padding:9px;font:16px var(--font,sans-serif)}
.guide-form button{width:44px;min-height:44px;background:#e5b2bf;color:#24171f;font-size:22px}.guide-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#guide-dialog :focus-visible,#guide-launch:focus-visible{outline:2px solid #ffd2da;outline-offset:-2px}
@media(max-width:800px){#folio-companion{right:10px;bottom:calc(12px + env(safe-area-inset-bottom))}.guide-face{width:42px;height:42px}#guide-dialog{inset:auto 10px max(10px,env(safe-area-inset-bottom)) auto}}
@media(max-height:500px){#guide-dialog{max-height:96dvh}.guide-head{padding:5px 12px}.guide-log{padding:8px 12px}.guide-choices,.guide-form{padding-block:4px}}
.folio-signal{position:absolute;inset:0;width:100%;height:100%;z-index:4;overflow:hidden;pointer-events:none;opacity:0;fill:none}
.folio-signal path{stroke:var(--signal-ink,#e8b1bb);stroke-width:1.2;vector-effect:non-scaling-stroke;stroke-dasharray:.10 .90;stroke-linecap:round}
.folio-signal .afterglow{stroke-width:4;opacity:.26;stroke-dasharray:.035 .965}
@media(prefers-reduced-motion:no-preference){html:not(.paused) .folio-signal.signal-pass{animation:signal-window 1.5s ease-out both}html:not(.paused) .signal-pass path{animation:signal-travel 1.45s cubic-bezier(.26,.53,.43,1) both}html:not(.paused) .signal-pass .afterglow{animation-delay:65ms}html:not(.paused) .guide-log .answer:last-child{animation:guide-answer .24s ease-out}}
@keyframes signal-window{0%,100%{opacity:0}17%,75%{opacity:.9}}
@keyframes signal-travel{from{stroke-dashoffset:.10}to{stroke-dashoffset:-1}}
@keyframes guide-answer{from{opacity:.35;transform:translateY(4px)}}
@media(prefers-reduced-motion:no-preference){html:not(.paused) #guide-dialog[open]{animation:guide-open .28s cubic-bezier(.2,.78,.25,1) both;transform-origin:bottom right}}
@keyframes guide-open{from{transform:translateY(12px) scale(.97);opacity:0}to{transform:none;opacity:1}}
