/* Aimee Guided Action (GitHub #157): mini-Aimee bar + highlight. Senior rules: 48 px buttons, high contrast, works at 200% text and 320 px. */
#gd-dock{position:fixed;left:50%;transform:translateX(-50%);width:calc(100% - 12px);max-width:508px;z-index:2147483002;background:#FFFBEA;border:3px solid #7C4DBA;border-radius:18px;box-shadow:0 6px 22px rgba(0,0,0,.28);padding:8px 10px;font-size:clamp(15px,var(--fs,19px),22px);color:#1b1b1b;max-height:60vh;overflow:auto}
#gd-dock[hidden]{display:none}
#gd-dock.gd-top{top:calc(66px + env(safe-area-inset-top,0px))}
#gd-dock.gd-bottom{bottom:calc(var(--nav-h,64px) + 10px + env(safe-area-inset-bottom,0px))}
.gd-row1{display:flex;align-items:flex-start;gap:8px}
.gd-face{flex:0 0 52px;width:52px;height:52px;border-radius:50%;border:3px solid #7C4DBA;background:#E9E1F5 url(aimee2w-closed.jpg) center/cover no-repeat}
.gd-txt{flex:1 1 auto;min-width:0}
.gd-step{font-size:.85em;font-weight:800;color:#5A2FA0;letter-spacing:.02em}
.gd-say{font-size:1.08em;line-height:1.35;font-weight:700;margin-top:2px;word-break:break-word}
.gd-done{color:#1b5e20}
.gd-rev{margin-top:6px;padding:6px 10px;background:#fff;border:2px solid #cfc3e6;border-radius:10px;line-height:1.5}
.gd-extra{margin-top:6px;line-height:1.45}
.gd-heard{color:#333}
.gd-err{color:#B71C1C;font-weight:800}
.gd-lnk{background:none;border:2px solid #7C4DBA;color:#5A2FA0;border-radius:12px;padding:6px 10px;min-height:40px;font:inherit;font-weight:800;cursor:pointer}
.gd-x{flex:0 0 auto;min-height:44px;min-width:44px;padding:0 10px;border:2px solid #7C4DBA;border-radius:12px;background:#fff;color:#5A2FA0;font:inherit;font-weight:800;cursor:pointer}
.gd-btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.gd-b{flex:1 1 auto;min-height:48px;padding:0 12px;border:0;border-radius:14px;background:#EDE7F6;color:#3A1F6E;font:inherit;font-weight:800;font-size:1.02em;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.gd-b:focus-visible,.gd-x:focus-visible,.gd-lnk:focus-visible{outline:3px solid #ffb300;outline-offset:2px}
.gd-next{background:#1a73e8;color:#fff}
.gd-stop{background:#C62828;color:#fff}
.gd-mic{background:#5A2FA0;color:#fff}
.gd-mic.on{background:#2e7d32;animation:gd-pulse 1s infinite alternate}
.gd-move{flex:0 0 48px;background:#fff;border:2px solid #cfc3e6}
@keyframes gd-pulse{from{opacity:1}to{opacity:.7}}
.gd-hl{outline:4px solid #1a73e8!important;outline-offset:3px;box-shadow:0 0 0 8px rgba(26,115,232,.25)!important;border-radius:12px;scroll-margin:170px;position:relative;z-index:5;animation:gd-glow 1.4s infinite alternate}
@keyframes gd-glow{from{box-shadow:0 0 0 6px rgba(26,115,232,.18)}to{box-shadow:0 0 0 12px rgba(26,115,232,.35)}}
.gd-entry{width:100%;margin-top:6px}
@media (prefers-reduced-motion:reduce){.gd-hl,.gd-mic.on{animation:none}}
@media (max-width:340px){#gd-dock{padding:6px}.gd-face{flex-basis:44px;width:44px;height:44px}.gd-b{padding:0 8px;font-size:.95em}}
.lc-doit{display:block;width:100%;min-height:56px;margin:0 0 10px;padding:10px 14px;border:0;border-radius:14px;background:#5A2FA0;color:#fff;font:inherit;font-weight:800;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.lc-doit:focus-visible{outline:3px solid #ffb300;outline-offset:2px}
#gd-dock.gd-mini{max-height:34vh}.gd-mini .gd-step{display:none}   /* BUILD-02: id selector so the compact height really applies */
/* #157 round 2: conversation mode */
.gd-face{background-image:url(aimee2w-awake.jpg)}            /* eyes open while she waits for you */
#gd-dock.gd-listening .gd-face{border-color:#2e7d32;box-shadow:0 0 0 4px rgba(46,125,50,.35)}
.gd-yes{background:#2e7d32;color:#fff;flex:1 1 45%;font-size:1.1em;min-height:56px}
.gd-no{background:#fff;color:#B71C1C;border:3px solid #B71C1C;flex:1 1 45%;font-size:1.1em;min-height:56px}
.gd-pick{background:#fff;color:#3A1F6E;border:2px solid #7C4DBA}
.gd-sl{line-height:1.45}.gd-k{display:inline-block;min-width:4.2em;color:#5A2FA0;font-weight:800}
.gd-sl small{color:#2e7d32;font-weight:700}
.gd-hint{font-size:.92em;color:#5A2FA0;margin-top:4px;font-weight:700}
.gd-hint:empty{display:none}
.gd-rev-w{margin:8px 0 0;display:grid;gap:2px}
.gd-rev-w .gd-sl{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline}
.gd-rev-w .gd-k{min-width:0;white-space:nowrap}
.gd-rev-w b{word-break:keep-all;overflow-wrap:anywhere}
.gd-main:empty{display:none}
@media (max-height:700px){#gd-dock{max-height:72vh}#gd-dock .gd-step{display:none}.gd-face{flex-basis:40px;width:40px;height:40px}.gd-yes,.gd-no{min-height:48px}.gd-btns{margin-top:6px}}
@media (max-height:460px){#gd-dock{max-height:86vh;width:calc(100% - 12px);max-width:760px}.gd-move{display:none}}

/* BUILD-02: the real Save button the resident must tap (Aimee never presses it) */
.gd-tap{outline:5px solid #e65100!important;outline-offset:4px;box-shadow:0 0 0 10px rgba(230,81,0,.28)!important;animation:gd-tap 1s infinite alternate;position:relative;z-index:6}
@keyframes gd-tap{from{box-shadow:0 0 0 6px rgba(230,81,0,.18)}to{box-shadow:0 0 0 14px rgba(230,81,0,.38)}}
.gd-tapnote{display:inline-flex;align-items:center;min-height:48px;padding:0 12px;border-radius:12px;background:#fff3e0;border:2px solid #e65100;color:#7a2e00;font-weight:800}
@media (prefers-reduced-motion:reduce){.gd-tap{animation:none}}
#al-dock .al-face{cursor:pointer}
