.context-guide{--guide-paper:#e8defb;--guide-ink:#271d26;position:relative;margin:12px 0;padding:16px;background:var(--guide-paper);color:var(--guide-ink);border:1px solid #b8a5d4;border-radius:20px 20px 20px 7px;min-width:0;overflow-wrap:anywhere}
.context-guide[hidden]{display:none!important}.context-guide h3{font-size:1.1rem;line-height:1.4;margin:12px 0 6px}.context-guide p{font-size:.95rem;line-height:1.5;margin:0 0 14px}.guide-heading,.guide-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.guide-heading{justify-content:space-between}.guide-heading span{font-size:.75rem;font-weight:700}.context-guide button{min-height:44px;border:1px solid var(--border,#e5e0ea);background:var(--surface,#fff);color:var(--ink,#271d26);border-radius:24px;padding:10px 14px;font:inherit;font-size:.9rem;line-height:1.4;white-space:normal;cursor:pointer}.guide-actions button{flex:1;min-width:100px}.context-guide #guide-next{background:#ff8174;color:#271d26;border-color:#ff8174;font-weight:700}.guide-target{outline:2px solid #ff8174!important;outline-offset:3px;scroll-margin-top:20px}.context-guide button:focus-visible{outline:3px solid var(--accent,#7950b8);outline-offset:3px}.context-guide h3:focus{outline:none}
.guide-target.primary{outline-color:var(--ink,#271d26)!important}
.context-guide{position:fixed;z-index:2002;bottom:16px;margin:0;box-sizing:border-box;max-height:46vh;overflow:auto;box-shadow:0 12px 40px #0004}
#context-guide-spotlight{position:fixed;z-index:2001;border:3px solid #ff8174;box-sizing:border-box;border-radius:22px;box-shadow:0 0 0 200vmax #09070eb9;pointer-events:none;transition:left .3s ease,top .3s ease,width .3s ease,height .3s ease}
#context-guide-spotlight[hidden]{display:none!important}.tour-pointer{position:absolute;right:12px;top:calc(50% - 12px);width:36px;height:42px;filter:drop-shadow(0 2px 3px #0004)}
@media(prefers-reduced-motion:reduce){#context-guide-spotlight{transition:none}}
html[data-motion=reduced] #context-guide-spotlight{transition:none}
#context-guide h3,#context-guide p,#context-guide .guide-heading span{color:var(--guide-ink);opacity:1}
#context-guide button{background:#fbf7ee;color:var(--guide-ink);border-color:#b8a5d4}
#context-guide #guide-next{background:#ff8174;color:#271d26;border-color:#ff8174}

/* Leave room for home indicators and focus outlines on a short viewport. */
.context-guide{bottom:max(16px,env(safe-area-inset-bottom,0px));max-height:55vh;max-height:55dvh;padding-bottom:20px;scroll-padding-block:16px;overscroll-behavior:contain}

/* Allow the last real control to scroll above the guide on short forms. */
body.guide-open{padding-bottom:55vh;padding-bottom:55dvh}
