#poke-assistant{position:fixed;left:18px;bottom:18px;z-index:80}#poke-launch{border-radius:30px;background:var(--orange);color:#171819;box-shadow:0 5px 20px #0004}#poke-panel{position:absolute;bottom:54px;left:0;width:min(370px,calc(100vw - 36px));max-height:72dvh;overflow:auto;padding:18px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 16px 55px #0006}#poke-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}#poke-panel label{font-size:13px;margin-top:12px}#poke-panel input,#poke-panel select{max-width:100%}.poke-response{display:flex;align-items:start;gap:14px;margin:18px 0}.poke-response img{image-rendering:pixelated;border-radius:10px;flex-shrink:0}.poke-response p{font-size:14px;line-height:1.5;margin:0}.poke-shortcuts{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.poke-shortcuts button{font-size:12px;padding:9px}.poke-results{display:grid;gap:6px}.poke-results button{text-align:left;white-space:normal;font-size:13px}#poke-panel details{font-size:12px;line-height:1.5;margin-top:15px}#poke-panel a{color:var(--orange)}.poke-walk-option{display:flex!important;gap:10px;align-items:center}.poke-walk-option input{width:auto}#poke-walker{position:fixed;bottom:72px;pointer-events:none;z-index:60;image-rendering:pixelated;width:96px;height:112px}.companion-parade{flex-wrap:wrap;max-width:380px}.companion-parade img{width:56px;height:56px}@media(max-width:900px){#poke-assistant{bottom:90px;left:12px}#poke-walker{bottom:145px}#poke-panel{max-height:62dvh;width:min(350px,calc(100vw - 24px))}}@media(prefers-reduced-motion:reduce){#poke-walker{display:none}}
/* Personal PMD-inspired dialogue, using original credited portraits. */
#poke-panel{width:min(650px,calc(100vw - 36px));background:linear-gradient(145deg,#16273b,#091524);color:#f5f1dc;border:3px solid #cfbb83;border-radius:10px;box-shadow:0 0 0 3px #152333,0 18px 65px #0009;padding:20px;isolation:isolate}
#poke-panel header{color:#f6dda0;font-family:monospace;letter-spacing:.04em;font-size:16px;border-bottom:1px solid #c4b17d55;padding-bottom:12px}
#poke-panel button{color:#f7eed3;background:#20394c;border:1px solid #8b9d9b;border-radius:5px;min-height:40px}
#poke-panel button:hover{background:#304e61;border-color:#f4d182}#poke-panel button:focus-visible,#poke-panel input:focus-visible,#poke-panel select:focus-visible{outline:3px solid #ffe28c;outline-offset:3px}
#poke-panel button:disabled{opacity:.55;cursor:default}#poke-panel input,#poke-panel select{background:#0b1a2a;color:#f7eed3;border-color:#849995}
.poke-response{align-items:stretch;gap:16px;margin:22px 0}.poke-portrait{flex:0 0 96px;text-align:center;align-self:flex-start}.poke-portrait img{box-sizing:border-box;width:96px;height:96px;padding:5px;background:#0d1a2b;border:3px double #d2bc7f;border-radius:3px;box-shadow:4px 4px #0005}.poke-portrait span{display:block;color:#f4d182;font:700 14px monospace;margin-top:8px}
.poke-dialogue{min-width:0;flex:1;border:3px double #d2bc7f;background:#071320;padding:16px 18px;box-shadow:inset 0 0 0 2px #263f51;position:relative;border-radius:4px}.poke-dialogue #poke-text{font:16px/1.65 ui-monospace,Consolas,monospace;min-height:132px;white-space:pre-wrap;overflow-wrap:anywhere;color:#fffae8}.poke-pages{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.poke-pages span{font-size:11px;color:#b6cfdb}.poke-pages button{font-size:12px;padding:4px 8px;min-width:38px}.poke-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#poke-panel .poke-draft{width:100%;background:#375344;color:#fff4ca;border-color:#e1c981;text-align:left}.poke-privacy{padding:10px 12px;background:#ffffff08;border:1px solid #728990;border-radius:6px;margin:12px 0}.poke-privacy label,.poke-context label{display:flex;gap:8px;align-items:start}.poke-privacy input[type=checkbox]{width:18px;min-width:18px;margin-top:2px}.poke-privacy p,#poke-panel .note-hint{font-size:12px;line-height:1.5;color:#c1d0d8}.poke-context{max-height:170px;overflow:auto}#poke-panel summary{cursor:pointer;color:#e8d6a5}#poke-panel details a{color:#ffe19c}#poke-question{display:flex;gap:10px;align-items:end}#poke-question label{flex:1;min-width:0}#poke-question button{margin-bottom:0;flex-shrink:0}.poke-results{margin-top:12px}#poke-panel .poke-shortcuts button::before{content:'▸ ';color:#f4d182}
@media(max-width:600px){#poke-panel{width:calc(100vw - 24px);padding:12px;max-height:calc(100dvh - 185px)}.poke-response{gap:9px;margin:16px 0}.poke-portrait{flex-basis:64px}.poke-portrait img{width:64px;height:64px;padding:2px}.poke-portrait span{font-size:12px}.poke-dialogue{padding:10px}.poke-dialogue #poke-text{font-size:14px;min-height:145px}.poke-pages{flex-wrap:wrap}#poke-question{flex-wrap:wrap}#poke-question label{flex-basis:100%}#poke-question button{width:100%}}

.poke-change{margin:12px 0;padding:14px;background:#132f38;border:1px solid #cbb47a;border-radius:5px}.poke-change p{font-size:13px;overflow-wrap:anywhere}.poke-change del{color:#c3c3c3}.poke-change b{color:#ecdfa4}

/* Interactive companion: only its small button captures pointer input. */
#poke-walker{bottom:auto;padding:0;border:0;border-radius:22px;background:transparent;box-shadow:none;pointer-events:auto;touch-action:none;cursor:grab;user-select:none;overflow:visible}#poke-walker[hidden]{display:none}#poke-walker canvas{display:block;width:96px;height:112px;pointer-events:none}#poke-walker:hover,#poke-walker:active{background:transparent}#poke-walker:focus-visible{outline:3px solid #f4d182;outline-offset:2px}#poke-walker.is-dragging{cursor:grabbing}.poke-walker-hint{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);max-width:120px;padding:6px 9px;border-radius:10px;background:#152333;color:#fff4ca;border:1px solid #cfbb83;font:12px/1.3 sans-serif;white-space:nowrap;opacity:0;pointer-events:none}#poke-walker:hover .poke-walker-hint,#poke-walker:focus-visible .poke-walker-hint,#poke-walker.is-dragging .poke-walker-hint{opacity:1}


#poke-walker canvas[hidden]{display:none}.poke-walker-gif{width:96px;height:112px;object-fit:contain;image-rendering:pixelated;pointer-events:none}.poke-portrait img{object-fit:contain}


#poke-question textarea{width:100%;resize:vertical;background:#0b1a2a;color:#f7eed3;border:1px solid #849995;border-radius:6px;padding:10px;box-sizing:border-box;font:inherit}#poke-voice-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow:auto}#poke-voice-dialog textarea{width:100%;box-sizing:border-box}#poke-voice{width:100%;margin-top:10px}

#poke-walker.is-reacting .poke-walker-hint{opacity:1}
#poke-launch{display:flex;align-items:center;gap:8px}#poke-launch img{image-rendering:pixelated;object-fit:contain;border-radius:4px}
/* Keep writing and dictation visible; only the conversation/settings scroll. */
#poke-panel{display:flex;flex-direction:column;height:min(720px,calc(100dvh - 110px));max-height:calc(100dvh - 110px);overflow:hidden;padding:14px;box-sizing:border-box}
#poke-panel>header{flex-shrink:0}.poke-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:0 5px 8px 0}.poke-compose{flex-shrink:0;border-top:1px solid #c4b17d66;background:#102133;padding-top:8px}.poke-send-consent label{display:flex;align-items:flex-start;gap:8px;font-size:11px!important;line-height:1.35;margin:0!important;color:#dce5ea}.poke-send-consent input{width:18px;min-width:18px;height:18px;margin:0}#poke-panel #poke-question{margin:0;gap:8px;align-items:end}#poke-panel #poke-question label{margin-top:4px}#poke-panel #poke-question textarea{min-height:58px;max-height:120px;resize:vertical}#poke-panel #poke-voice{margin:5px 0 0;min-height:34px;padding:6px;font-size:12px}.poke-settings{padding:10px;background:#ffffff06;border-radius:6px}.poke-settings>summary{padding:5px}.poke-response{margin:14px 0}.poke-dialogue #poke-text{min-height:70px}
@media(max-width:600px){#poke-panel{height:calc(100dvh - 155px);max-height:calc(100dvh - 155px);padding:10px}.poke-portrait{flex-basis:52px}.poke-portrait img{width:52px;height:52px}.poke-dialogue #poke-text{min-height:50px;font-size:13px}#poke-question{flex-wrap:nowrap}#poke-question label{flex:1}#poke-question button{width:auto;font-size:12px;padding:8px}.poke-send-consent label{font-size:10px!important}}
/* Small companion action button; the rest of the page stays usable. */
#poke-pet-controls{position:fixed;z-index:65;width:36px;height:36px}
#poke-pet-controls[hidden],#poke-pet-actions[hidden]{display:none}
#poke-pet-controls>button{width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;background:var(--panel);color:var(--ink);border:1px solid var(--line);box-shadow:0 3px 12px #0004}
#poke-pet-actions{width:min(280px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;box-sizing:border-box;padding:14px;display:grid;gap:7px;background:var(--panel);color:var(--ink);border:2px solid var(--orange);border-radius:16px;box-shadow:0 12px 40px #0006}
#poke-pet-actions p{font-size:12px;line-height:1.4;margin:0 0 5px;color:var(--muted)}
#poke-pet-actions button{font:inherit;font-size:13px;min-height:38px;text-align:left;white-space:normal;background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:8px 10px}
#poke-pet-destination{position:fixed;inset:0;z-index:150;width:100%;height:100dvh;background:#09152466;color:white;border:3px dashed #ffdf86;border-radius:0;cursor:crosshair;display:flex;align-items:flex-start;justify-content:center;padding:24px;font-size:16px;text-shadow:0 2px 4px #000}
#poke-walker.is-loved .poke-walker-hint,#poke-walker.is-sleeping .poke-walker-hint{opacity:1}
#poke-walker.is-loved canvas{filter:drop-shadow(0 0 8px #ffb8d8)}
@media(prefers-reduced-motion:reduce){#poke-pet-controls{display:none}}
