/* Phone shell (<=800px) — ChatGPT-style layout in Any K-i? colours. Only active under body.ps (added by phone-shell.js). */
body.ps{--ps-bg:#06090f;--ps-card:#121a26;--ps-card2:#0e151f;--ps-line:rgba(255,255,255,.09);--ps-text:#e8eef6;--ps-dim:#8fa1b6;--ps-accent:#7ee8d4;--ps-hot:#ff8a6b;--ps-comp-h:150px}
body.ps svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.ps .masthead{display:none!important}
body.ps .app-shell{padding-top:68px!important}

/* top bar */
#ps-top{display:none}
body.ps #ps-top{display:flex;position:fixed;inset:0 0 auto 0;z-index:1500;align-items:center;justify-content:space-between;padding:max(10px,env(safe-area-inset-top)) 14px 8px;background:linear-gradient(#06090fcc,#06090f00);pointer-events:none}
body.ps #ps-top>*{pointer-events:auto}
.ps-circle{width:46px;height:46px;border-radius:50%;border:1px solid var(--ps-line);background:rgba(22,30,42,.86);color:var(--ps-text);display:inline-flex;align-items:center;justify-content:center;padding:0;touch-action:manipulation;backdrop-filter:blur(8px)}
.ps-circle.is-on{background:rgba(126,232,212,.2);border-color:var(--ps-accent);color:var(--ps-accent)}
.ps-pill{display:flex;padding:4px;border-radius:999px;background:rgba(22,30,42,.86);border:1px solid var(--ps-line);backdrop-filter:blur(8px)}
.ps-pill button{border:0;background:transparent;color:var(--ps-dim);font:600 17px/1 system-ui,sans-serif;padding:12px 20px;border-radius:999px;min-height:44px;touch-action:manipulation}
.ps-pill button.is-on{background:#05080d;color:var(--ps-text)}

/* hide the old composer clutter (kept in DOM so the app's own code still works) */
body.ps #anyki-sleek-repo-wrap,body.ps #anyki-online-tick,body.ps #network-toggle,body.ps .consent-checkbox,body.ps .composer-context,body.ps #simple-chat-option,body.ps #anyki-sleek-bot-wrap,body.ps #composer-hint,body.ps .composer-footnote{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important}
body.ps .horse-avatar-availability,body.ps .horse-avatar-label{display:none!important}

/* slim composer */
body.ps .composer{display:flex!important;flex-direction:column!important;position:fixed!important;left:10px!important;right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;padding:14px 16px 10px!important;border-radius:28px!important;background:#171d27!important;border:1px solid var(--ps-line)!important;box-shadow:0 8px 30px #0008!important;gap:6px!important}
body.ps .composer textarea{order:0;min-height:44px!important;max-height:30vh!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:var(--ps-text)!important;font-size:18px!important;resize:none}
body.ps .composer-toolbar{order:1;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:0!important;margin:0!important;min-height:48px}
body.ps .composer-toolbar>.attachment-picker{order:0!important;display:flex}
body.ps #attach-images-button{width:44px;height:44px;min-width:44px;border-radius:50%;background:transparent!important;border:0!important;color:var(--ps-text)!important;font-size:30px;padding:0}
body.ps .composer-actions{order:1!important;margin:0!important;display:flex!important;align-items:center;gap:6px;flex:0 0 auto}
body.ps .ps-dial{width:44px;height:44px;border-radius:50%;border:0;background:transparent;color:var(--ps-accent);display:inline-flex;align-items:center;justify-content:center;padding:0;touch-action:manipulation}
body.ps .ps-dial svg{width:26px;height:26px}
body.ps #dictation-button{width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;background:transparent!important;border:0!important;padding:0!important;color:var(--ps-text)!important}
body.ps #dictation-button span{display:none}
body.ps .ps-daniel{width:46px;height:46px;border-radius:50%;border:2px solid var(--ps-accent);background:#0b2a28;padding:0;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation}
body.ps .ps-daniel img{width:100%;height:100%;object-fit:cover}
body.ps #run-button{width:46px!important;height:46px!important;min-width:46px!important;border-radius:50%!important;padding:0!important;display:none!important;align-items:center;justify-content:center}
body.ps #run-button span{display:none}
body.ps.ps-has-text #run-button{display:inline-flex!important}
body.ps.ps-has-text .ps-daniel{display:none}
body.ps.ps-private .composer{border-color:var(--ps-accent)!important}

/* suggestion chips */
.ps-chips{display:none}
body.ps.ps-welcome .ps-chips{display:flex;position:fixed;left:14px;right:14px;bottom:calc(var(--ps-comp-h) + 22px + env(safe-area-inset-bottom));z-index:900;flex-direction:column;gap:6px}
.ps-chip{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;color:var(--ps-text);font:17px/1.35 system-ui,sans-serif;padding:11px 6px;border-radius:14px;touch-action:manipulation}
.ps-chip:active{background:rgba(255,255,255,.07)}
.ps-chip-dot{flex:0 0 22px;height:22px;border-radius:7px;background:linear-gradient(135deg,#7ee8d4,#4aa7ff)}

/* sheets + dim */
.ps-dim{position:fixed;inset:0;background:#000a;opacity:0;pointer-events:none;transition:opacity .2s;z-index:2400}
.ps-dim.is-open{opacity:1;pointer-events:auto}
.ps-drawer{position:fixed;inset:0 auto 0 0;width:min(86vw,380px);background:var(--ps-bg);z-index:2500;transform:translateX(-102%);transition:transform .25s ease;display:flex;flex-direction:column;border-radius:0 28px 28px 0;box-shadow:12px 0 40px #000a;color:var(--ps-text);padding-top:env(safe-area-inset-top)}
.ps-drawer.is-open{transform:none}
.ps-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 8px}
.ps-drawer-head h2{margin:0;font:700 24px/1 system-ui,sans-serif}
.ps-drawer-body{flex:1;overflow-y:auto;padding:4px 10px 100px;-webkit-overflow-scrolling:touch}
.ps-row{display:flex;align-items:center;gap:14px;width:100%;border:0;background:transparent;color:var(--ps-text);font:18px/1.2 system-ui,sans-serif;text-align:left;padding:13px 10px;border-radius:14px;min-height:48px;touch-action:manipulation}
.ps-row:active{background:rgba(255,255,255,.07)}
.ps-ico{flex:0 0 28px;display:inline-flex;justify-content:center;color:var(--ps-text)}
.ps-ico img{width:28px;height:28px;border-radius:8px;object-fit:cover}
.ps-lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ps-row.ps-plain{padding-left:12px;color:#d6dfeb}
.ps-row.ps-plain .ps-ico{display:none}
.ps-sec{margin:18px 10px 4px;font:600 16px/1 system-ui,sans-serif;color:var(--ps-dim)}
.ps-empty{color:var(--ps-dim);padding:6px 12px;margin:0;font-size:15px}
.ps-count{min-width:22px;text-align:right;color:var(--ps-dim);font-size:15px}
.ps-count.is-hot{color:#06090f;background:var(--ps-hot);border-radius:999px;padding:2px 8px;font-weight:700}
.ps-sub{color:var(--ps-dim);font-size:14px}
.ps-chev svg{width:18px;height:18px;color:var(--ps-dim);transition:transform .2s}
.ps-explore.is-open .ps-chev svg{transform:rotate(90deg)}
.ps-explore-body{display:none;padding-left:14px}
.ps-explore.is-open .ps-explore-body{display:block}
.ps-drawer-foot{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;padding:12px 18px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(#06090f00,#06090f 40%)}
.ps-newchat{display:inline-flex;align-items:center;gap:10px;border:0;border-radius:999px;background:var(--ps-accent);color:#04201b;font:700 18px/1 system-ui,sans-serif;padding:15px 24px;touch-action:manipulation}
.ps-newchat svg{width:20px;height:20px}

/* model dial sheet */
.ps-sheet{position:fixed;left:0;right:0;bottom:0;background:#101620;z-index:2600;border-radius:28px 28px 0 0;padding:10px 24px calc(34px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .25s ease;color:var(--ps-text);text-align:center}
.ps-sheet.is-open{transform:none}
.ps-grab{width:44px;height:5px;border-radius:3px;background:#ffffff33;margin:0 auto 22px}
.ps-dial-title{font:700 22px/1.2 system-ui,sans-serif;margin-bottom:4px}
.ps-dial-sub{color:var(--ps-dim);font-size:15px;min-height:20px;margin-bottom:22px}
.ps-track{position:relative;height:64px;border-radius:999px;background:#262c36;border:1px solid var(--ps-line);overflow:hidden}
.ps-track::before{content:"";position:absolute;left:5px;top:5px;bottom:5px;width:calc(5px + (100% - 10px) * var(--p,0));border-radius:999px;background:var(--ps-accent);opacity:.9}
.ps-track::after{content:"";position:absolute;top:50%;width:46px;height:46px;border-radius:50%;background:#fff;box-shadow:0 2px 8px #0006;left:calc(9px + (100% - 64px) * var(--p,0));transform:translateY(-50%);pointer-events:none}
.ps-dots{position:absolute;inset:0 30px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
.ps-dots i{width:9px;height:9px;border-radius:50%;background:#0006}
.ps-track input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;touch-action:pan-x}
.ps-dial-hint{display:flex;justify-content:space-between;margin-top:12px;color:var(--ps-dim);font-size:13px}

/* settings / task list sheet */
.ps-settings{position:fixed;inset:0;background:var(--ps-bg);z-index:2700;overflow-y:auto;transform:translateY(102%);transition:transform .25s ease;color:var(--ps-text);padding:0 14px calc(40px + env(safe-area-inset-bottom))}
.ps-settings.is-open{transform:none}
.ps-set-top{display:flex;align-items:center;gap:14px;padding:max(14px,env(safe-area-inset-top)) 0 10px;position:sticky;top:0;background:var(--ps-bg);z-index:2}
.ps-set-top h2{margin:0;font:700 22px/1 system-ui,sans-serif}
.ps-group{background:var(--ps-card);border-radius:22px;padding:4px 6px;margin:0 0 6px}
.ps-group .ps-row+.ps-row{border-top:1px solid var(--ps-line);border-radius:0}
body.ps .ps-settings .ps-sec{margin-top:22px}

/* keep content clear of the fixed composer */
body.ps .conversation-content,body.ps #messages{padding-bottom:calc(var(--ps-comp-h) + 20px)!important}

/* activity row (Claude-style) */
#ps-activity{display:none}
body.ps.ps-working #ps-activity{display:block;position:fixed;left:18px;right:18px;bottom:calc(var(--ps-comp-h) + 18px + env(safe-area-inset-bottom));z-index:950}
body.ps.ps-working.ps-welcome .ps-chips{display:none}
.ps-act-line{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:var(--ps-dim);font:19px/1.2 system-ui,sans-serif;padding:8px 2px;touch-action:manipulation;max-width:100%}
.ps-act-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ps-act-line .ps-chev svg{width:20px;height:20px}
.ps-act-dots{display:inline-flex;gap:4px}
.ps-act-dots i{width:6px;height:6px;border-radius:50%;background:var(--ps-hot);animation:psdot 1.2s infinite ease-in-out}
.ps-act-dots i:nth-child(2){animation-delay:.2s}.ps-act-dots i:nth-child(3){animation-delay:.4s}
@keyframes psdot{0%,80%,100%{opacity:.25}40%{opacity:1}}
.ps-act-sub{color:var(--ps-dim);font:16px/1.3 system-ui,sans-serif;padding:14px 0 0 30px;opacity:.85}
.ps-act-sheet{text-align:left}
.ps-act-sheet .ps-dial-title{text-align:center;margin-bottom:14px}
.ps-act-row{display:flex;flex-direction:column;gap:3px;padding:11px 4px;border-top:1px solid var(--ps-line)}
.ps-act-row span{color:var(--ps-dim);font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.ps-act-row b{font-weight:500;font-size:16px;line-height:1.35;word-break:break-word}

.ps-act-sheet{max-height:78vh;display:flex;flex-direction:column}
.ps-act-body{overflow-y:auto;flex:1;-webkit-overflow-scrolling:touch;position:relative}
.ps-step{display:flex;align-items:center;gap:14px;width:100%;border:0;background:transparent;color:var(--ps-text);font:17px/1.3 system-ui,sans-serif;text-align:left;padding:15px 4px;min-height:52px;touch-action:manipulation;position:relative}
.ps-step:not(:last-child)::after{content:"";position:absolute;left:17px;top:48px;height:18px;width:1px;background:var(--ps-line)}
.ps-step-ico{flex:0 0 28px;display:inline-flex;justify-content:center;color:var(--ps-dim)}
.ps-step-lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ps-live{width:10px;height:10px;border-radius:50%;background:var(--ps-hot);animation:psdot 1.2s infinite}
.ps-act-back{border:0;background:#262c36;color:var(--ps-text);width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin-bottom:6px}
.ps-act-back svg{transform:rotate(180deg)}
.ps-act-row b{white-space:pre-wrap}

/* ---- batch 2 ---- */
/* top bar: menu | title | temp chat */
.ps-title{border:0;background:rgba(22,30,42,.86);color:var(--ps-text);font:700 19px/1 system-ui,sans-serif;padding:13px 22px;border-radius:999px;backdrop-filter:blur(8px);min-height:46px;touch-action:manipulation}
.ps-seg{display:flex;margin:6px 18px 4px;padding:4px;border-radius:999px;background:#121a26;border:1px solid var(--ps-line)}
.ps-seg button{flex:1;border:0;background:transparent;color:var(--ps-dim);font:600 17px/1 system-ui,sans-serif;padding:12px 0;border-radius:999px;min-height:44px;touch-action:manipulation}
.ps-seg button.is-on{background:var(--ps-accent);color:#04201b}
/* old top activity strip + right dock + stage routes are gone on phone */
body.ps .task-work,body.ps .execution-route,body.ps .agent-activity,body.ps #task-work,body.ps #anyki-right-dock-slider,body.ps .dock,body.ps #dock,body.ps #browser-nav,body.ps .dock-resize{display:none!important}
/* browser: pops up over the screen, tap it to take control (no side panel) */
body.ps .browser-live-panel:not([hidden]){position:fixed!important;inset:auto 8px calc(var(--ps-comp-h) + 24px) 8px!important;top:auto!important;width:auto!important;height:54vh!important;z-index:2650!important;border-radius:22px!important;box-shadow:0 18px 60px #000c!important}
/* smaller, ChatGPT-sized voice button */
body.ps .ps-daniel{width:38px;height:38px;border-width:1.5px}
body.ps .ps-dial{width:40px;height:40px}
body.ps #dictation-button{width:40px!important;height:40px!important;min-width:40px!important}
body.ps #run-button{width:40px!important;height:40px!important;min-width:40px!important}
body.ps .composer{padding:10px 14px 6px!important;border-radius:26px!important}
body.ps .composer textarea{min-height:36px!important;font-size:17px!important}
body.ps .composer-toolbar{min-height:44px}
/* fibre optics follow the mode: on in Chat, off only for the squad in Code */
body.ps:not(.coding-chats) #anyki-connected-fibre-canvas{display:block!important}
/* Escodebars: no Daniel, no squad strip - just Don Pablo talking to you */
.ps-pablo{display:none}
body.ps.ps-squad .ps-pablo{display:flex;position:fixed;left:18px;right:18px;top:96px;z-index:700;flex-direction:column;align-items:center;gap:12px;text-align:center;pointer-events:none}
.ps-pablo-name{font:800 24px/1 Georgia,serif;letter-spacing:.04em;color:#f1d99a;text-shadow:0 2px 12px #000}
.ps-pablo-say{max-width:88%;padding:14px 18px;border-radius:20px;background:rgba(10,8,6,.72);border:1px solid rgba(241,217,154,.3);color:#f4ead2;font:17px/1.4 system-ui,sans-serif;backdrop-filter:blur(6px)}
body.ps.ps-squad #horse-welcome-slot,body.ps.ps-squad #horse-conversation-slot,body.ps.ps-squad .syndicate-scene,body.ps.ps-squad .esco-stage,body.ps.ps-squad .syndicate-tags{display:none!important}
body.ps.ps-squad #anyki-clean-center-daniel-wrap,body.ps.ps-squad #anyki-single-clean-daniel,body.ps.ps-squad .horse-avatar-stage,body.ps.ps-squad .horse-welcome *{display:none!important}

/* ---- steer / queue ---- */
body.ps #run-button{display:none!important}
.ps-send,.ps-queuebtn{display:none}
body.ps.ps-has-text .ps-send:not(.ps-stopbtn){display:inline-flex;width:40px;height:40px;border-radius:50%;border:0;background:var(--ps-accent);color:#04201b;align-items:center;justify-content:center;padding:0;touch-action:manipulation}
body.ps.ps-busy:not(.ps-has-text) .ps-stopbtn{display:inline-flex;width:40px;height:40px;border-radius:50%;border:0;background:var(--ps-text);color:#06090f;align-items:center;justify-content:center;padding:0;touch-action:manipulation}
body.ps.ps-busy.ps-has-text .ps-queuebtn{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--ps-line);background:transparent;color:var(--ps-text);font:600 15px/1 system-ui,sans-serif;touch-action:manipulation}
body.ps.ps-busy .ps-daniel,body.ps.ps-has-text .ps-daniel{display:none}
.ps-note{position:fixed;left:18px;right:18px;bottom:calc(var(--ps-comp-h) + 14px + env(safe-area-inset-bottom));z-index:960;background:#101620;border:1px solid var(--ps-line);color:var(--ps-text);border-radius:14px;padding:10px 14px;font:15px/1.35 system-ui,sans-serif}
.ps-queued{position:fixed;left:18px;right:18px;bottom:calc(var(--ps-comp-h) + 64px + env(safe-area-inset-bottom));z-index:960;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#101620;border:1px solid var(--ps-accent);color:var(--ps-text);border-radius:999px;padding:6px 8px 6px 16px;font:15px/1.2 system-ui,sans-serif}
.ps-queued button{border:0;background:transparent;color:var(--ps-dim);width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0}
.ps-queued[hidden],.ps-note[hidden]{display:none}
body.ps.ps-has-text #run-button{display:none!important}

/* Bump = send now, even while the engine is working */
.ps-bump-lbl{display:none}
body.ps.ps-busy.ps-has-text .ps-send:not(.ps-stopbtn){width:auto;padding:0 16px 0 12px;gap:6px;border-radius:999px;height:40px}
body.ps.ps-busy.ps-has-text .ps-send:not(.ps-stopbtn) .ps-bump-lbl{display:inline;font:700 16px/1 system-ui,sans-serif}
/* Escodebars on phone: Medellin hacienda instead of the poker room */
/* 3 Nov: the flat SVG arches-and-hills drawing is gone; character-voice.css puts assets/medellin-bg.png behind Don Pablo. */
.ps-pablo-face{width:150px;height:150px;border-radius:50%;border:3px solid #f1d99a;box-shadow:0 8px 30px #000a;background:#120d0a url('/assets/syndicate-poker.png') no-repeat;background-size:1000px auto;background-position:-425px -175px}

/* ---- chat menu, plus menu, drag to pin, steps panel, repo pill ---- */
.ps-menu-sheet{z-index:2800;text-align:left;max-height:58vh;overflow-y:auto}
.ps-menu-sheet .ps-dial-title{text-align:center;font-size:20px;margin:6px 0 12px}
.ps-menu-list .ps-row{font-size:15px}
.ps-danger{color:#ff8a80!important}
.ps-input{width:100%;box-sizing:border-box;background:#0b1118;border:1px solid var(--ps-line);border-radius:14px;color:var(--ps-text);font:18px system-ui,sans-serif;padding:14px;margin-bottom:12px}
.ps-primary{width:100%;border:0;border-radius:999px;background:var(--ps-accent);color:#04201b;font:700 17px system-ui,sans-serif;padding:14px}
.ps-grip{margin-left:auto;color:var(--ps-dim);padding:10px 4px 10px 14px;touch-action:none;letter-spacing:-2px;font-size:18px;cursor:grab}
.ps-drop.is-over{outline:2px dashed var(--ps-accent);border-radius:12px;background:rgba(40,200,170,.12)}
.ps-drop-hint{font-size:14px;opacity:.6}
.ps-ghost{position:fixed;left:0;top:0;z-index:3000;pointer-events:none;background:#101620;border:1px solid var(--ps-accent);color:var(--ps-text);padding:8px 14px;border-radius:999px;font:15px system-ui,sans-serif;max-width:220px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ps-shelf summary{cursor:pointer;list-style:none}
body.ps .ps-plus{display:inline-flex;width:40px;height:40px;border-radius:50%;border:1px solid var(--ps-line);background:transparent;color:var(--ps-text);align-items:center;justify-content:center;padding:0;touch-action:manipulation}
body.ps .ps-plus svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
body.ps .attachment-picker{display:none!important}
.ps-act-globe{position:absolute;right:0;top:2px;width:40px;height:40px;border-radius:50%;border:1px solid var(--ps-line);background:#101620;color:var(--ps-text);display:inline-flex;align-items:center;justify-content:center;padding:0}
.ps-act-globe svg,.ps-act-browse svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}
.ps-act-sect{text-align:left;margin:14px 0 4px}.ps-act-sect b{display:block;color:var(--ps-dim);font:600 14px system-ui,sans-serif;margin-bottom:6px}
.ps-act-sect span{display:inline-block;background:#0b1118;border:1px solid var(--ps-line);border-radius:999px;padding:5px 12px;margin:0 6px 6px 0;font:14px system-ui,sans-serif;color:var(--ps-text)}
.ps-act-foot{display:flex;gap:10px;align-items:center;margin-top:16px}
.ps-act-browse{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--ps-line);background:transparent;color:var(--ps-text);border-radius:999px;padding:10px 16px;font:600 15px system-ui,sans-serif}
.ps-act-done{margin-left:auto;border:0;background:var(--ps-text);color:#06090f;border-radius:999px;padding:11px 20px;font:700 15px system-ui,sans-serif}
.ps-repo{display:none}
body.ps.coding-chats .ps-repo:not([hidden]){display:inline-flex;align-items:center;gap:6px;position:fixed;left:50%;transform:translateX(-50%);top:calc(60px + env(safe-area-inset-top));z-index:940;max-width:70vw;background:#101620;border:1px solid var(--ps-line);color:var(--ps-text);border-radius:999px;padding:7px 12px;font:14px system-ui,sans-serif}
.ps-repo span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ps-repo svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;transform:rotate(90deg)}

/* ---- match the app's own look: glass panels, cyan/violet accents, Segoe UI ---- */
body.ps{--ps-bg:#05070d;--ps-card:rgba(13,18,29,.74);--ps-card2:rgba(13,18,29,.6);--ps-line:rgba(122,156,184,.25);--ps-text:#e7eaf1;--ps-dim:#a1adc0;--ps-accent:#7de9df;--ps-violet:#bc9cf7;font-family:"Segoe UI",Arial,sans-serif}
body.ps .ps-drawer,body.ps .ps-sheet,body.ps .ps-settings,body.ps .ps-queued,body.ps .ps-note,body.ps .ps-repo,body.ps .ps-ghost{font-family:"Segoe UI",Arial,sans-serif}
.ps-drawer{background:linear-gradient(160deg,rgba(13,18,29,.96),rgba(18,14,34,.96) 70%)!important;backdrop-filter:blur(18px);border-right:1px solid var(--ps-line)!important}
.ps-sheet,.ps-queued,.ps-note,.ps-repo,.ps-ghost{background:rgba(13,18,29,.96)!important;backdrop-filter:blur(18px);border:1px solid var(--ps-line)}
.ps-settings{background:#05070d!important}
.ps-seg{background:rgba(13,18,29,.74)!important;border-color:var(--ps-line)!important}
.ps-seg .is-on{background:linear-gradient(135deg,#7de9df,#bc9cf7)!important;color:#05070d!important}
.ps-row:active{background:rgba(125,233,223,.1)!important}
.ps-sec{color:var(--ps-dim)!important}
.ps-ico{color:var(--ps-accent)}
.ps-primary,body.ps.ps-has-text .ps-send:not(.ps-stopbtn){background:linear-gradient(135deg,#7de9df,#bc9cf7)!important;color:#05070d!important}
.ps-newchat{background:linear-gradient(135deg,#7de9df,#bc9cf7)!important;color:#05070d!important}
.ps-input{background:rgba(5,7,13,.8)!important}

/* ---- dedicated settings screens ---- */
.ps-page{z-index:2750}.ps-pagebody{padding:6px 4px 30px}
.ps-pagebody .ps-input{display:block;margin-bottom:10px}
.ps-msg{margin:14px 4px 0;color:var(--ps-accent);font:16px/1.4 "Segoe UI",Arial,sans-serif}.ps-msg.is-bad{color:var(--ps-hot)}
.ps-bar{height:12px;border-radius:999px;background:rgba(122,156,184,.2);overflow:hidden;margin:8px 4px}.ps-bar i{display:block;height:100%;background:linear-gradient(90deg,#7de9df,#bc9cf7)}
.ps-barlbl{margin:0 4px 16px;color:var(--ps-dim);font-size:15px}
.ps-sub{margin-left:auto;color:var(--ps-dim);font-size:15px}
.ps-switch{margin-left:auto;width:46px;height:28px;border-radius:999px;background:rgba(122,156,184,.3);position:relative;flex:0 0 auto}.ps-switch i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#e7eaf1;transition:transform .15s}.ps-switch.is-on{background:linear-gradient(135deg,#7de9df,#bc9cf7)}.ps-switch.is-on i{transform:translateX(18px);background:#05070d}
.ps-voicetrain{color:var(--ps-text);font-size:16px}.ps-voicetrain button{border-radius:999px}
.ps-voicetrain *{max-width:100%}

/* ---- wide screens (laptop/desktop): same design, centred column ---- */
body.ps .syndicate-stage,body.ps #syndicate-stage{display:none!important}
body.ps.syn-code-mode #horse-avatar-mount,body.ps.syn-code-mode .horse-avatar-fibres{display:revert!important}
body.ps.ps-wide .composer{left:50%!important;right:auto!important;transform:translateX(-50%);width:min(760px,calc(100vw - 24px))!important}
body.ps.ps-wide .ps-chips,body.ps.ps-wide #ps-chips{max-width:760px;margin-left:auto;margin-right:auto}
body.ps.ps-wide .ps-drawer{width:340px;max-width:340px}
body.ps.ps-wide .ps-sheet{left:50%;right:auto;transform:translate(-50%,105%);width:min(560px,100vw)}
body.ps.ps-wide .ps-sheet.is-open{transform:translate(-50%,0)}
body.ps.ps-wide .ps-settings{left:50%;right:auto;width:min(680px,100vw);transform:translate(-50%,102%)}
body.ps.ps-wide .ps-settings.is-open{transform:translate(-50%,0)}
body.ps.ps-wide #ps-activity,body.ps.ps-wide .ps-queued,body.ps.ps-wide .ps-note{left:50%;right:auto;transform:translateX(-50%);width:min(724px,calc(100vw - 48px))}
body.ps.ps-wide .ps-repo{left:50%}
body.ps.ps-wide .ps-pablo{left:50%!important;right:auto!important;transform:translateX(-50%);width:min(560px,100vw)}
body.ps.ps-wide .app-shell{max-width:none!important}
body.ps.ps-wide .left-column,body.ps.ps-wide .right-column,body.ps.ps-wide #workspace-sidebar,body.ps.ps-wide aside.sidebar,body.ps.ps-wide #anyki-left-rail{display:none!important}
body.ps.ps-wide .conversation-panel{max-width:none!important;width:100%!important}
body.ps.ps-wide #task-form.composer{width:min(760px,calc(100vw - 24px))!important;max-width:760px!important}
body.ps.ps-wide .app-shell{display:block!important;padding:0!important;margin:0!important}
body.ps.ps-wide .conversation-panel{position:fixed!important;inset:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;width:100%!important;height:100%!important;max-width:none!important;background:transparent!important}
body.ps.ps-wide #ps-chips{width:min(760px,calc(100vw - 24px));margin-left:auto!important;margin-right:auto!important}
body.ps.ps-wide #anyki-clean-center-daniel-wrap{left:50%!important}
body.ps.ps-wide #ps-chips{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--ps-comp-h) + 26px);z-index:900;margin:0!important}
body.ps .task-pulse,body.ps #task-pulse,body.ps .task-metrics,body.ps .engine-readout,body.ps .conversation-status{display:none!important}

body.ps.ps-wide.ps-squad,body.ps.ps-wide.escodebars-squad.coding-chats{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='xMidYMid slice'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f7b267'/><stop offset='.45' stop-color='%23d9693a'/><stop offset='1' stop-color='%23802f1a'/></linearGradient><linearGradient id='f' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23e8cf9e'/><stop offset='1' stop-color='%23b5864f'/></linearGradient></defs><rect width='1440' height='900' fill='url(%23s)'/><circle cx='1130' cy='250' r='95' fill='%23ffe3a3' opacity='.9'/><path d='M0 430 L170 300 L300 380 L470 250 L650 400 L820 290 L1010 410 L1200 300 L1440 420 V520 H0Z' fill='%23542318' opacity='.75'/><path d='M0 480 L220 380 L400 460 L640 360 L900 470 L1150 380 L1440 470 V560 H0Z' fill='%233a1a12'/><rect x='0' y='520' width='1440' height='380' fill='url(%23f)'/><rect x='0' y='500' width='1440' height='40' fill='%23a7462a'/><g fill='%23b5502a'><path d='M80 500 L720 420 L1360 500Z' opacity='.0'/></g><g fill='%234a2412'><path d='M110 900V690q0-110 100-110t100 110v210z'/><path d='M390 900V690q0-110 100-110t100 110v210z'/><path d='M670 900V690q0-110 100-110t100 110v210z'/><path d='M950 900V690q0-110 100-110t100 110v210z'/><path d='M1230 900V690q0-110 100-110t100 110v210z'/></g><g fill='%23f4b14a'><circle cx='210' cy='560' r='14'/><circle cx='490' cy='560' r='14'/><circle cx='770' cy='560' r='14'/><circle cx='1050' cy='560' r='14'/><circle cx='1330' cy='560' r='14'/></g><g fill='%23233a1c' opacity='.9'><path d='M60 520c20-120 6-230-10-330 40 30 70 80 80 150 14-80 46-140 96-180-18 110-12 230 14 360z'/><path d='M1340 540c-10-110-2-210 14-300 30 28 44 70 46 120 20-60 52-100 90-120-24 90-30 190-12 300z'/></g></svg>")!important;background-size:cover!important}
body.ps #footer-status,body.ps .footer-status,body.ps footer{display:none!important}
body.ps.ps-wide #ps-chips.ps-chips{position:fixed!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:calc(var(--ps-comp-h) + 28px)!important;width:min(560px,calc(100vw - 24px))!important;margin:0!important;z-index:900}
body.ps.ps-squad .ps-chips,body.ps .ps-chips{background:rgba(13,18,29,.72);backdrop-filter:blur(12px);border:1px solid var(--ps-line);border-radius:18px;padding:8px 10px}

/* 1 Nov: compact, ChatGPT-sized menus */
.ps-drawer{width:min(78vw,300px)}
body.ps.ps-wide .ps-drawer{width:300px;max-width:300px}
.ps-drawer-head{padding:12px 14px 4px}
.ps-drawer-head h2{font-size:19px}
.ps-drawer-body{padding:2px 8px 84px}
.ps-row{font-size:15px;gap:11px;padding:8px 8px;min-height:38px;border-radius:10px}
.ps-ico{flex-basis:22px}
.ps-ico svg{width:20px;height:20px}
.ps-ico img{width:22px;height:22px;border-radius:6px}
.ps-menu-list .ps-row{font-size:15px}
.ps-chip{font-size:15px;padding:8px 6px;gap:10px}
.ps-chip-dot{flex-basis:18px;height:18px;border-radius:6px}
.ps-track{height:48px}
.ps-track::after{width:36px;height:36px;left:calc(6px + (100% - 48px) * var(--p,0))}

/* 1 Nov: keep the greeting visible above the chips (3 chips max) */
.ps-chip:nth-child(n+4){display:none}

/* 1 Nov: small, clear suggestion chips like ChatGPT */
.ps-chip{font-size:14px!important;padding:6px 6px!important;gap:9px!important;line-height:1.3}
.ps-chip-dot{flex-basis:14px!important;height:14px!important;border-radius:5px!important}
body.ps .ps-chips{padding:6px 10px!important;gap:2px!important;border-radius:14px!important}
.ps-sheet .ps-dial-title{font-size:17px}
.ps-sheet .ps-dial-sub,.ps-dial-hint{font-size:12px}
.ps-pablo-name{font-size:22px}

/* ---- UI fixes (31 Oct): compact, ChatGPT-sized ---- */
/* No Online/Offline pill anywhere in the phone shell: the app runs on local/gateway models, the badge meant nothing here. */
body.ps #network-toggle,body.ps #anyki-online-tick,body.ps .local-badge,body.ps .header-status,body.ps #enable-online-button,body.ps #privacy-status,body.ps .local-footnote{display:none!important}
/* Attachments: one slim row of small chips inside the composer, so the composer stays short and never climbs over the suggestion chips. */
body.ps .composer .attachment-tray{order:0;display:flex!important;flex-direction:row;flex-wrap:nowrap;gap:6px;padding:0!important;margin:0!important;max-height:44px;overflow-x:auto;overflow-y:hidden;grid-template-columns:none}
body.ps .composer .attachment-tray[hidden]{display:none!important}
body.ps .composer .attachment-card{flex:0 0 auto;display:flex;align-items:center;gap:6px;max-width:190px;min-height:0!important;padding:3px 6px 3px 3px!important;border-radius:10px;background:rgba(255,255,255,.06);border:1px solid var(--ps-line)}
body.ps .composer .attachment-preview{width:34px;height:34px;min-width:34px;padding:0;border-radius:8px;overflow:hidden}
body.ps .composer .attachment-preview img{width:100%;height:100%;object-fit:cover}
body.ps .composer .attachment-description{min-width:0;display:flex;flex-direction:column;gap:0}
body.ps .composer .attachment-description strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ps .composer .attachment-description small{font-size:10.5px;color:var(--ps-dim);white-space:nowrap}
body.ps .composer .attachment-card .icon-button{width:22px;height:22px;min-width:22px;padding:0;font-size:14px}
body.ps .composer #attachment-note,body.ps .composer .attachment-note{display:none!important}
body.ps .composer textarea{max-height:22vh!important}
/* Suggestion chips sit above the composer by its measured height (updated live), and never under it. */
body.ps.ps-welcome .ps-chips{max-height:calc(100vh - var(--ps-comp-h) - 150px);overflow:hidden}
/* Bottom + sheet: no layout jump while it opens. */
.ps-menu-sheet{overscroll-behavior:contain;will-change:transform}
.ps-dim{will-change:opacity}
/* Drawer recents: tight rows. */
body.ps .ps-drawer .ps-row{padding-top:6px!important;padding-bottom:6px!important;min-height:0!important;font-size:14px!important;gap:10px}
body.ps .ps-drawer .ps-sec{margin:10px 10px 2px!important;font-size:12px!important}
body.ps .ps-drawer .ps-empty{padding:4px 12px;font-size:13px}
body.ps .ps-drawer .ps-grip{padding:2px 4px 2px 10px!important;font-size:15px}

/* Voice dialog on the cloud app: phone voice instead of laptop voice */
dialog#voice-dialog.ps-voice-phone > #voice-horse-slot,
dialog#voice-dialog.ps-voice-phone > label[for="voice-select"],
dialog#voice-dialog.ps-voice-phone > #voice-select,
dialog#voice-dialog.ps-voice-phone > #voice-detail,
dialog#voice-dialog.ps-voice-phone > .consent-checkbox,
dialog#voice-dialog.ps-voice-phone > .service-actions,
dialog#voice-dialog.ps-voice-phone > p.input-note{display:none!important}
dialog#voice-dialog.ps-voice-phone .ps-voice-cloud{display:grid;gap:10px;margin-top:6px}
dialog#voice-dialog:not(.ps-voice-phone) .ps-voice-cloud{display:none}
dialog#voice-dialog .ps-voice-cloud select{width:100%;font-size:15px}
dialog#voice-dialog .ps-voice-cloud .service-actions{display:flex;flex-wrap:wrap;gap:8px}
dialog#voice-dialog .ps-voice-cloud .ps-voice-close{margin-top:4px}
dialog#voice-dialog.ps-voice-phone .daniel-chat-voice [role="status"]{display:none}

/* ===== 1 Nov (2): docked sidebar, composer right, send always, animated art, ghost, folds ===== */
body.ps{--ps-dockw:0px}
body.ps.ps-wide.ps-dock{--ps-dockw:300px}
body.ps.ps-wide .ps-drawer{border-radius:0;box-shadow:none;transition:transform .2s ease}
body.ps.ps-wide.ps-dock #ps-top{left:var(--ps-dockw)!important}
body.ps.ps-wide.ps-dock .conversation-panel{left:var(--ps-dockw)!important;width:calc(100% - var(--ps-dockw))!important}
body.ps.ps-wide .composer,body.ps.ps-wide #task-form.composer{left:calc(50% + var(--ps-dockw)/2)!important}
body.ps.ps-wide #ps-chips,body.ps.ps-wide #ps-chips.ps-chips,body.ps.ps-wide .ps-pablo,body.ps.ps-wide #anyki-clean-center-daniel-wrap{left:calc(50% + var(--ps-dockw)/2)!important}
body.ps.ps-wide #ps-activity,body.ps.ps-wide .ps-queued,body.ps.ps-wide .ps-note{left:calc(50% + var(--ps-dockw)/2)}
body.ps.ps-wide .ps-repo{left:calc(50% + var(--ps-dockw)/2)}
body.ps.ps-wide .ps-dim{display:none!important}
body.ps .composer-actions{margin-left:auto!important}
body.ps.ps-wide .ps-send:not(.ps-stopbtn){display:inline-flex!important;width:40px;height:40px;border-radius:50%;border:0;align-items:center;justify-content:center;padding:0;background:linear-gradient(135deg,#7de9df,#bc9cf7);color:#05070d;opacity:.5;transition:opacity .15s}
body.ps.ps-wide.ps-has-text .ps-send:not(.ps-stopbtn){opacity:1}
body.ps.ps-wide.ps-has-text .ps-daniel,body.ps.ps-wide.ps-busy .ps-daniel{display:inline-flex!important}
body.ps.ps-wide #run-button{display:none!important}
body.ps .ps-send svg{width:22px;height:22px}

/* fold sections */
.ps-fold{display:flex;align-items:center;cursor:pointer;user-select:none;gap:6px}
.ps-fold .ps-chev{margin-left:auto;display:inline-flex}
.ps-fold .ps-chev svg{transform:rotate(90deg);width:16px;height:16px}
.ps-fold.is-closed .ps-chev svg{transform:none}
.ps-secbody[hidden]{display:none!important}
/* ghost: one blue ghost, flashes when something needs you */
.ps-ghostbtn{color:#5cc8ff}
.ps-ghostbtn[hidden]{display:none!important}
.ps-ghostbtn svg{width:22px;height:22px;filter:drop-shadow(0 0 6px #5cc8ff);animation:ps-flash 1.1s ease-in-out infinite}
.ps-ghostmini{margin-left:auto;display:inline-flex}
@keyframes ps-flash{0%,100%{opacity:1;transform:translateY(0)}50%{opacity:.25;transform:translateY(-2px)}}
.ps-count{display:none!important}
/* right-click menu */
.ps-ctx{position:fixed;z-index:9000;min-width:150px;background:rgba(13,18,29,.97);border:1px solid var(--ps-line);border-radius:12px;padding:6px;box-shadow:0 12px 30px #000a}
.ps-ctx button{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--ps-text);font:15px system-ui,sans-serif;padding:9px 12px;border-radius:8px}
.ps-ctx button:hover:not(:disabled){background:rgba(125,233,223,.14)}
.ps-ctx button:disabled{opacity:.35}
/* Browser as its own sheet on wide screens */
body.ps.ps-wide aside#dock:not([hidden]){display:block!important;position:static!important;width:0!important;height:0!important;min-height:0!important;overflow:visible!important;border:0!important;background:none!important;box-shadow:none!important;padding:0!important}
body.ps.ps-wide #dock>*:not(.dock-body){display:none!important}
body.ps.ps-wide #dock .dock-body{display:block!important;height:0!important;overflow:visible!important;padding:0!important}
body.ps.ps-wide #dock .dock-body>*:not(#browser-live-panel){display:none!important}
body.ps.ps-wide #dock #browser-live-panel:not([hidden]){display:flex!important;flex-direction:column;position:fixed!important;top:64px!important;right:16px!important;bottom:16px!important;left:auto!important;inset:64px 16px 16px auto!important;width:min(640px,calc(100vw - var(--ps-dockw) - 48px))!important;height:auto!important;max-height:none!important;z-index:2600;background:rgba(10,14,22,.97)!important;border:1px solid var(--ps-line);border-radius:18px;box-shadow:0 20px 60px #000b;padding:14px;transform:none!important}
body.ps.ps-wide .dock[hidden]{display:none!important}
body.ps.ps-wide .workspace{display:block!important;height:0!important;min-height:0!important;overflow:visible!important}
/* animated hacienda art (Code) + living layer (Chat) — transform/opacity only */
#ps-anim{position:fixed;inset:0;pointer-events:none;z-index:1;overflow:hidden;display:none}
body.ps.ps-wide #ps-anim,body.ps.ps-squad.coding-chats #ps-anim{display:block}
#ps-anim i{position:absolute;display:block;will-change:transform,opacity}
#ps-anim .sun{right:14%;top:9%;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(255,206,120,.55),rgba(255,150,90,.18) 55%,transparent 70%);animation:ps-glow 6s ease-in-out infinite}
#ps-anim .cl{height:46px;border-radius:40px;background:rgba(255,255,255,.12);filter:blur(1px)}
#ps-anim .cl:before,#ps-anim .cl:after{content:"";position:absolute;background:inherit;border-radius:50%}
#ps-anim .cl:before{width:50px;height:50px;left:22px;top:-22px}#ps-anim .cl:after{width:38px;height:38px;left:80px;top:-14px}
#ps-anim .c1{width:150px;top:14%;left:-200px;animation:ps-drift 70s linear infinite}
#ps-anim .c2{width:110px;top:24%;left:-200px;animation:ps-drift 95s linear -40s infinite;opacity:.8}
#ps-anim .c3{width:180px;top:7%;left:-220px;animation:ps-drift 120s linear -80s infinite;opacity:.6}
#ps-anim .lan{width:14px;height:20px;border-radius:5px 5px 7px 7px;background:#ffb347;box-shadow:0 0 18px 8px rgba(255,170,70,.55);top:30%;animation:ps-sway 3.4s ease-in-out infinite;transform-origin:50% -30px}
#ps-anim .l1{left:12%}#ps-anim .l2{left:32%;animation-delay:-1s}#ps-anim .l3{left:68%;animation-delay:-2s}#ps-anim .l4{left:88%;animation-delay:-.5s}
#ps-anim .fibre{left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,rgba(125,233,223,.7),rgba(188,156,247,.7),transparent);opacity:.0;animation:ps-fibre 7s linear infinite}
#ps-anim .f1{top:62%}#ps-anim .f2{top:70%;animation-delay:-3s}#ps-anim .f3{top:78%;animation-delay:-5s}
body.ps:not(.coding-chats) #ps-anim .sun,body.ps:not(.coding-chats) #ps-anim .cl,body.ps:not(.coding-chats) #ps-anim .lan{display:none}
body.ps.coding-chats #ps-anim .fibre{display:none}
body.ps.coding-chats #horse-avatar-mount{animation:ps-breathe 4.2s ease-in-out infinite;transform-origin:50% 100%}
@keyframes ps-glow{0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.12)}}
@keyframes ps-drift{to{transform:translateX(calc(100vw + 450px))}}
@keyframes ps-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@keyframes ps-fibre{0%{opacity:0;transform:translateX(-30%)}20%,80%{opacity:.75}100%{opacity:0;transform:translateX(30%)}}
@keyframes ps-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025,1.04)}}
/* smooth on resize/hidden, calm for reduced motion */
body.ps-resizing *,body.ps-resizing *:before,body.ps-resizing *:after{animation-play-state:paused!important;transition:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.ps.ps-wide .ps-drawer,body.ps.ps-wide .composer,body.ps.ps-wide #ps-chips{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.ps.ps-wide #horse-avatar-mount,body.ps.ps-wide .horse-avatar-fibres{transform:translateZ(0);backface-visibility:hidden;contain:layout paint}
@media (prefers-reduced-motion:reduce){#ps-anim *,body.ps #horse-avatar-mount{animation:none!important}}

/* 1 Nov (3): calmer, ChatGPT-clean sidebar — same colours, less noise */
body.ps.ps-wide .ps-drawer{background:#0a0e17!important;backdrop-filter:none!important;border-right:1px solid rgba(122,156,184,.14)!important}
body.ps .ps-drawer .ps-row{border-radius:9px;color:#dfe6f0;font-size:14.5px;min-height:36px;transition:background .12s}
body.ps .ps-drawer .ps-row:hover{background:rgba(125,233,223,.08)}
body.ps .ps-drawer .ps-ico svg{width:19px;height:19px;stroke-width:1.6;color:#9fb0c6}
body.ps .ps-drawer .ps-sec{font:600 12px/1 "Segoe UI",system-ui,sans-serif;letter-spacing:.04em;color:#7f90a6!important;margin:16px 10px 4px;padding:6px 0;text-transform:none}
body.ps .ps-drawer .ps-fold:hover{color:#cfe}
body.ps .ps-drawer .ps-drawer-head h2{font-size:17px;font-weight:650;background:linear-gradient(135deg,#7de9df,#bc9cf7);-webkit-background-clip:text;background-clip:text;color:transparent}
body.ps .ps-drawer .ps-newchat{background:rgba(125,233,223,.1)!important;color:#7de9df!important;border:1px solid rgba(125,233,223,.3);box-shadow:none}
body.ps .ps-drawer .ps-newchat:hover{background:rgba(125,233,223,.18)!important}
body.ps .ps-drawer .ps-seg{background:rgba(255,255,255,.04);border:0}
body.ps.ps-wide .ps-send:not(.ps-stopbtn){box-shadow:none}
body.ps.ps-wide .composer{background:rgba(14,19,30,.92)!important;border:1px solid rgba(122,156,184,.22)!important;border-radius:22px!important}

/* 1 Nov (4): ChatGPT structure — workspace dropdown, bell/search, sections with chevron beside label, profile foot, 768px column */
.ps-drawer-head{position:relative;display:flex;align-items:center;gap:6px;padding:12px 12px 6px}
.ps-ws{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:#eaf0f8;font:600 18px "Segoe UI",system-ui,sans-serif;padding:6px 8px;border-radius:10px;margin-right:auto}
.ps-ws:hover{background:rgba(255,255,255,.06)}
.ps-ws svg{width:14px;height:14px;transform:rotate(90deg);color:#8fa1b6}
.ps-drawer-head .ps-circle{width:32px;height:32px;min-width:32px;background:transparent;border:0}
.ps-drawer-head .ps-circle svg{width:18px;height:18px}
.ps-wsmenu{position:absolute;left:10px;top:50px;width:240px;background:#141b27;border:1px solid rgba(122,156,184,.2);border-radius:14px;padding:6px;z-index:5;box-shadow:0 14px 34px #000b}
.ps-wsmenu[hidden]{display:none}
.ps-wsmenu button{position:relative;display:block;width:100%;text-align:left;border:0;background:transparent;color:#eaf0f8;padding:9px 12px;border-radius:9px}
.ps-wsmenu button:hover{background:rgba(255,255,255,.06)}
.ps-wsmenu b{display:block;font:600 14.5px system-ui,sans-serif}.ps-wsmenu small{color:#8fa1b6;font-size:12px}
.ps-wsmenu i{position:absolute;right:12px;top:14px;font-style:normal;color:#7de9df}
body.ps .ps-seg{display:none!important}
/* section header: label then chevron right beside it */
.ps-fold{justify-content:flex-start!important}
.ps-fold .ps-chev{margin-left:2px!important}
.ps-fold .ps-chev svg{width:13px!important;height:13px!important}
.ps-fold .ps-ghostmini{margin-left:auto}
/* footer: profile row */
.ps-drawer-foot{padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;border-top:1px solid rgba(122,156,184,.12);background:#0a0e17!important}
.ps-prof{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#eaf0f8;padding:6px 8px;border-radius:10px;font:600 14.5px system-ui,sans-serif;flex:1;text-align:left}
.ps-prof:hover{background:rgba(255,255,255,.06)}
.ps-av{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#7de9df,#bc9cf7);color:#05070d;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.ps-drawer-foot .ps-circle{width:32px;height:32px;min-width:32px;background:transparent;border:0}
/* centred 768 column like ChatGPT */
body.ps.ps-wide .composer,body.ps.ps-wide #task-form.composer{width:min(768px,calc(100vw - var(--ps-dockw) - 48px))!important;max-width:768px!important}
body.ps.ps-wide #ps-chips,body.ps.ps-wide #ps-chips.ps-chips{width:min(768px,calc(100vw - var(--ps-dockw) - 48px))!important}
body.ps.ps-wide #messages,body.ps.ps-wide .conversation-content{max-width:768px;margin-left:auto!important;margin-right:auto!important}
body.ps.ps-wide #ps-top{background:transparent}

/* 1 Nov (5): ChatGPT icon rail + 244px sidebar, left-aligned title */
#ps-rail{display:none}
body.ps.ps-wide #ps-rail{display:flex;flex-direction:column;align-items:center;gap:4px;position:fixed;left:0;top:0;bottom:0;width:44px;padding:10px 0;background:#070a11;border-right:1px solid rgba(122,156,184,.12);z-index:2550}
#ps-rail button{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#9fb0c6;display:inline-flex;align-items:center;justify-content:center;padding:0}
#ps-rail button:hover{background:rgba(125,233,223,.1);color:#7de9df}
#ps-rail svg{width:19px;height:19px}
body.ps.ps-wide{--ps-railw:44px}
body.ps.ps-wide.ps-dock{--ps-dockw:288px}
body.ps.ps-wide:not(.ps-dock){--ps-dockw:44px}
body.ps.ps-wide .ps-drawer{left:44px!important;width:244px!important;max-width:244px!important}
body.ps.ps-wide #ps-top{left:var(--ps-dockw)!important}
body.ps.ps-wide #ps-top .ps-title{background:transparent!important;border:0!important;font:600 15px "Segoe UI",system-ui,sans-serif;margin-right:auto;padding:6px 10px}
body.ps.ps-wide #ps-top .ps-circle:first-child{display:none}
body.ps.ps-wide .conversation-panel{left:var(--ps-dockw)!important;width:calc(100% - var(--ps-dockw))!important}
#ps-anim .fibre{display:none!important}

/* 1 Nov (6): small, compact controls on desktop (Claude/ChatGPT scale) */
body.ps.ps-wide .ps-circle{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}
body.ps.ps-wide .ps-circle svg{width:16px!important;height:16px!important}
body.ps.ps-wide #ps-rail button{width:30px;height:30px}
body.ps.ps-wide #ps-rail svg{width:17px;height:17px}
body.ps.ps-wide #ps-rail{width:42px;gap:2px}
body.ps.ps-wide .composer{padding:10px 12px 8px!important;border-radius:20px!important}
body.ps.ps-wide .composer textarea{min-height:34px!important;font-size:15px!important}
body.ps.ps-wide .composer-toolbar{min-height:34px!important;gap:4px!important}
body.ps.ps-wide #attach-images-button,body.ps.ps-wide .ps-dial,body.ps.ps-wide #dictation-button{width:32px!important;height:32px!important;min-width:32px!important;font-size:22px!important}
body.ps.ps-wide .ps-dial svg{width:19px;height:19px}
body.ps.ps-wide #dictation-button svg{width:18px;height:18px}
body.ps.ps-wide .ps-daniel{width:30px!important;height:30px!important;border-width:1.5px}
body.ps.ps-wide .ps-send:not(.ps-stopbtn){width:32px!important;height:32px!important}
body.ps.ps-wide .ps-send svg{width:17px;height:17px}
body.ps.ps-wide .ps-chips,body.ps.ps-wide #ps-chips{font-size:13px;padding:6px 8px}
body.ps.ps-wide .ps-chips button,body.ps.ps-wide #ps-chips button{font-size:13.5px;padding:5px 8px;min-height:0}
body.ps.ps-wide .ps-drawer .ps-row{font-size:13.5px;min-height:30px;padding:5px 8px;gap:9px}
body.ps.ps-wide .ps-drawer .ps-ico svg{width:17px;height:17px}
body.ps.ps-wide .ps-drawer .ps-ico{flex-basis:20px}
body.ps.ps-wide .ps-ws{font-size:16px}
body.ps.ps-wide .ps-drawer .ps-sec{font-size:11.5px;margin:12px 10px 2px}
body.ps.ps-wide .ps-prof{font-size:13.5px}
body.ps.ps-wide .ps-av{width:24px;height:24px;font-size:12px}
body.ps.ps-wide #ps-top .ps-title{font-size:14px}
body.ps.ps-wide .ps-settings .ps-row,body.ps.ps-wide .ps-page .ps-row{font-size:14px;min-height:36px}
body.ps.ps-wide .ps-set-top h2{font-size:17px}
body.ps.ps-wide .ps-repo,body.ps.ps-wide .ps-pill button{font-size:13px;padding:6px 12px;min-height:0}

/* Don Pablo Escodebar card (Code welcome, desktop) */
#ps-pablocard{display:none}
body.ps.ps-wide.coding-chats.ps-welcome #ps-pablocard{display:block;position:fixed;z-index:3;top:56px;left:calc(50% + var(--ps-dockw)/2);transform:translateX(-50%);height:calc(100vh - 56px - var(--ps-comp-h) - 70px);max-height:600px;aspect-ratio:707/1168;pointer-events:none}
#ps-pablocard img{height:100%;width:100%;object-fit:cover;border-radius:18px;box-shadow:0 18px 50px #000a}
body.ps.ps-wide.coding-chats.ps-welcome #horse-avatar-mount,body.ps.ps-wide.coding-chats.ps-welcome .ps-pablo{display:none!important}
body.ps.ps-wide.coding-chats.ps-welcome #ps-chips{display:none!important}

/* settings dialog polish: system font selects, never cut off */
#settings-dialog select,#settings-dialog input,#settings-dialog textarea{font-family:"Segoe UI",system-ui,sans-serif!important;font-size:14px;min-width:0;max-width:100%;text-overflow:ellipsis}
#settings-dialog select option{white-space:normal}
#settings-dialog .settings-row select,#settings-dialog label select{width:100%}

/* 1 Nov (7): phone composer = plus on the left, Send always on the right (dim until you type) */
body.ps .composer-toolbar>.ps-plus{order:-1!important;margin-right:auto}
body.ps .ps-send:not(.ps-stopbtn){display:inline-flex;width:40px;height:40px;border-radius:50%;border:0;align-items:center;justify-content:center;padding:0;background:linear-gradient(135deg,#7de9df,#bc9cf7);color:#05070d;opacity:.45;touch-action:manipulation;transition:opacity .15s}
body.ps.ps-has-text .ps-send:not(.ps-stopbtn){opacity:1}
body.ps.ps-busy:not(.ps-has-text) .ps-send:not(.ps-stopbtn){display:none}
body.ps.ps-has-text:not(.ps-busy) .ps-daniel{display:inline-flex}

/* 1 Nov (8): model dial lists every model with Free / Paid */
.ps-mlist{display:flex;flex-direction:column;gap:2px;margin:12px 0 4px;max-height:34vh;overflow:auto;-webkit-overflow-scrolling:touch}
.ps-mrow{display:flex;align-items:center;gap:8px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--ps-text);font:inherit;font-size:14px;text-align:left;touch-action:manipulation}
.ps-mrow.is-sel{background:rgba(125,233,223,.12)}
.ps-mrow.is-off{opacity:.5}
.ps-mname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ps-mstate{font-size:12px;color:var(--ps-dim);min-width:72px;text-align:right}
.ps-mtag{display:inline-block;font:700 11px/1 system-ui,sans-serif;padding:3px 7px;border-radius:999px;border:1px solid}
.ps-mtag.is-free{color:#7de9df;border-color:rgba(125,233,223,.5)}
.ps-mtag.is-paid{color:#f5c26b;border-color:rgba(245,194,107,.5)}
.ps-dots i.is-off{opacity:.3}
/* 2 Nov: phone at ChatGPT density (440x956). First Settings screen uses the inner Settings pages' numbers; composer buttons 32px like desktop. */
body.ps:not(.ps-wide) .ps-set-top{gap:8px;padding:max(8px,env(safe-area-inset-top)) 0 6px}
body.ps:not(.ps-wide) .ps-set-top h2{font-size:17px;line-height:1.2}
body.ps:not(.ps-wide) .ps-set-top .ps-circle{width:44px;height:44px;min-width:44px;border:0;border-radius:9px;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--ps-dim)}
body.ps:not(.ps-wide) .ps-settings .ps-sec{font-size:11px;font-weight:650;line-height:1.3;letter-spacing:.04em;margin:14px 12px 4px}
body.ps:not(.ps-wide) .ps-settings .ps-group{border-radius:10px;padding:2px 4px}
body.ps:not(.ps-wide) .ps-settings .ps-row{font-size:13px;line-height:1.3;min-height:0;padding:8px;gap:10px}
body.ps:not(.ps-wide) .ps-settings .ps-ico{flex-basis:18px}
body.ps:not(.ps-wide) .ps-settings .ps-ico svg{width:16px;height:16px}
body.ps:not(.ps-wide) .ps-settings .ps-ico img{width:18px;height:18px;border-radius:5px}
body.ps:not(.ps-wide) .ps-settings .ps-chev svg{width:14px;height:14px}
body.ps:not(.ps-wide) .composer-toolbar{min-height:34px}
body.ps:not(.ps-wide) .composer .ps-plus,body.ps:not(.ps-wide) .composer .ps-dial,body.ps:not(.ps-wide) .composer #dictation-button,body.ps:not(.ps-wide) .composer .ps-daniel,body.ps:not(.ps-wide):not(.ps-busy) .composer .ps-send:not(.ps-stopbtn),body.ps:not(.ps-wide) .composer .ps-stopbtn{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
body.ps.ps-busy:not(.ps-wide) .composer .ps-send:not(.ps-stopbtn){height:32px!important}
body.ps:not(.ps-wide) .composer .ps-plus svg,body.ps:not(.ps-wide) .composer #dictation-button svg,body.ps:not(.ps-wide) .composer .ps-send svg,body.ps:not(.ps-wide) .composer .ps-stopbtn svg{width:18px;height:18px}
body.ps:not(.ps-wide) .composer .ps-dial svg{width:20px;height:20px}
body.ps:not(.ps-wide) .composer .ps-daniel{border-width:1.5px}
/* 2 Nov: desktop (1440x900) leftovers. + button 32px like the other composer buttons; Settings tab icons 16px; first Settings screen headings 11.5px like the sidebar labels. */
body.ps.ps-wide .composer .ps-plus{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
body.ps.ps-wide .composer .ps-plus svg{width:18px;height:18px}
body.ps.ps-wide .sp-dialog .sp-tab svg{width:16px;height:16px}
body.ps.ps-wide .ps-settings .ps-sec{font-size:11.5px;font-weight:650;line-height:1.3;letter-spacing:.04em;margin:14px 10px 4px}
/* 2 Nov: model dial. Blue Ghost picture beside its name, real model ID as a small muted tag, needle on the speedometer. */
.model-row-icon{width:18px;height:18px;border-radius:5px;object-fit:cover;vertical-align:-4px;margin-right:6px;flex:none}
.ps-sheet .ps-dial-title .model-row-icon{width:20px;height:20px;vertical-align:-3px}
.ps-mid{flex:0 1 auto;max-width:42%;font:500 11px/1.3 system-ui,sans-serif;color:var(--ps-dim);opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1px 6px;border:1px solid var(--ps-line);border-radius:999px}
.ps-dial-title .ps-mid{vertical-align:2px}
#ps-dial .ps-needle{transform-box:view-box;transform-origin:12px 15px;transform:rotate(var(--ps-needle,0deg));transition:transform .6s cubic-bezier(.34,1.56,.64,1)}
body.ps.ps-busy #ps-dial .ps-needle{animation:ps-needle-sweep .9s ease-in-out infinite alternate}
@keyframes ps-needle-sweep{from{transform:rotate(-20deg)}to{transform:rotate(70deg)}}
.ps-ghost-top img{width:22px;height:22px;border-radius:6px;object-fit:cover;display:block}
.ps-ghost-top.is-alert img{filter:drop-shadow(0 0 6px #7de9df);animation:ps-flash 1.1s ease-in-out infinite}
body.ps .message-meta .reply-routing{display:inline-block;max-width:60%;font:500 11px/1.3 system-ui,sans-serif;color:var(--ps-dim);padding:1px 6px;border:1px solid var(--ps-line);border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
@media (prefers-reduced-motion:reduce){body.ps.ps-busy #ps-dial .ps-needle{animation:none}.ps-ghost-top.is-alert img{animation:none}}
/* 2 Nov: RunPod GPU row (sidebar above Jamie, and in the dial sheet). Off unless tapped; Selected shows a pulsing dot. */
.ps-drawer-foot{flex-wrap:wrap;row-gap:6px}
.ps-runpod{flex:1 0 100%;display:flex;align-items:center;gap:9px;min-height:30px;padding:5px 8px;border:0;border-radius:9px;background:rgba(255,255,255,.04);color:var(--ps-text);font:13.5px/1.2 system-ui,sans-serif;text-align:left;touch-action:manipulation}
.ps-runpod .ps-rp-name{flex:1;min-width:0}
.ps-rp-dot{width:8px;height:8px;border-radius:50%;background:#56657a;flex:none}
.ps-rp-badge{font:600 11px/1 system-ui,sans-serif;color:var(--ps-dim);padding:3px 7px;border:1px solid var(--ps-line);border-radius:999px;white-space:nowrap}
.ps-runpod.is-on .ps-rp-dot{background:#3ee6a8;box-shadow:0 0 0 0 rgba(62,230,168,.7);animation:ps-rp-pulse 1.4s ease-out infinite}
.ps-runpod.is-on .ps-rp-badge{color:#062018;background:linear-gradient(135deg,#3ee6a8,#7de9df);border-color:transparent}
@keyframes ps-rp-pulse{0%{box-shadow:0 0 0 0 rgba(62,230,168,.7)}70%{box-shadow:0 0 0 7px rgba(62,230,168,0)}100%{box-shadow:0 0 0 0 rgba(62,230,168,0)}}
.ps-sheet .ps-runpod.ps-rp-dial{margin-top:8px;width:100%}
@media (prefers-reduced-motion:reduce){.ps-runpod.is-on .ps-rp-dot{animation:none}}
/* 2 Nov (2): unread Blue Ghost. Strictly visual, no layout shift: it patrols the row edge like Pac-Man and circles the menu button. */
.ps-row.is-unread{position:relative}
.unread-blue-ghost{position:absolute;left:0;top:0;width:16px;height:16px;pointer-events:none;border-radius:4px;filter:drop-shadow(0 0 4px #7de9df);will-change:transform;z-index:2}
.ps-row.is-unread .unread-blue-ghost{animation:ps-ghost-patrol 6s linear infinite}
@keyframes ps-ghost-patrol{0%{transform:translate3d(2px,-6px,0)}45%{transform:translate3d(calc(var(--ps-row-w,240px) - 18px),-6px,0)}50%{transform:translate3d(calc(var(--ps-row-w,240px) - 18px),calc(100% + 8px),0) scaleX(-1)}95%{transform:translate3d(2px,calc(100% + 8px),0) scaleX(-1)}100%{transform:translate3d(2px,-6px,0)}}
.ps-row.is-unread{--ps-row-w:260px}
.ps-menu-btn{position:relative;overflow:visible}
.ps-menu-btn .unread-blue-ghost{display:none;left:50%;top:50%;margin:-8px 0 0 -8px}
.ps-menu-btn.has-unread .unread-blue-ghost{display:block;animation:ps-ghost-orbit 2.4s linear infinite}
@keyframes ps-ghost-orbit{from{transform:rotate(0deg) translate3d(20px,0,0) rotate(0deg)}to{transform:rotate(360deg) translate3d(20px,0,0) rotate(-360deg)}}
/* Cookhouse (RunPod) section in the sidebar */
.ps-cook-head .ps-cook-state{margin-left:auto;margin-right:6px;display:inline-flex;align-items:center;gap:6px;font:600 11px/1 system-ui,sans-serif;color:var(--ps-dim);text-transform:none;letter-spacing:0}
.ps-cook-head.is-on .ps-cook-state{color:#3ee6a8}
.ps-cook{margin:2px 10px 8px;padding:9px 10px;border:1px solid var(--ps-line);border-radius:10px;background:rgba(255,255,255,.03)}
.ps-cook-title{margin:0 0 4px;font:600 13.5px/1.3 system-ui,sans-serif;color:var(--ps-text)}
.ps-cook-title span{font-weight:400;color:var(--ps-dim)}
.ps-cook-text{margin:0 0 8px;font:12px/1.45 system-ui,sans-serif;color:var(--ps-dim)}
.ps-cook-btns{display:flex;flex-wrap:wrap;gap:6px}
.ps-cook-btn{min-height:30px;padding:5px 10px;border:1px solid var(--ps-line);border-radius:8px;background:transparent;color:var(--ps-text);font:13.5px/1 system-ui,sans-serif;touch-action:manipulation}
.ps-cook-btn.is-sel{border-color:#7de9df;background:rgba(125,233,223,.12)}
.ps-cook-btn.is-gpu.is-sel{border-color:#3ee6a8;background:rgba(62,230,168,.14)}
.ps-cook-prompt{position:fixed;left:12px;right:12px;bottom:calc(var(--ps-comp-h) + 18px + env(safe-area-inset-bottom));z-index:965;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:9px 11px;border:1px solid rgba(62,230,168,.35);border-radius:12px;background:#0d1520;color:var(--ps-text);font:13px/1.35 system-ui,sans-serif;box-shadow:0 10px 30px #0008}
.ps-cook-prompt span{flex:1 1 100%}
.ps-cook-prompt button{min-height:30px;padding:5px 12px;border-radius:8px;border:1px solid var(--ps-line);background:transparent;color:var(--ps-text);font:600 13px/1 system-ui,sans-serif}
.ps-cook-prompt .ps-cook-stop{border-color:transparent;background:linear-gradient(135deg,#7de9df,#bc9cf7);color:#05070d}
body.ps.ps-wide .ps-cook-prompt{left:auto;right:24px;width:360px}
/* Sidebar: close X on phone; keyboard never crushes the drawer */
.ps-drawer-x{margin-left:auto}
body.ps.ps-wide .ps-drawer-x{display:none}
body.ps:not(.ps-wide) .ps-drawer{top:var(--phone-viewport-top,0px)!important;bottom:auto!important;height:var(--phone-viewport-height,100dvh)!important}
body.phone-keyboard-open .ps-drawer-foot{display:none!important}
/* Skills page: the repo pill never covers the page head */
body.ps-inline-open .ps-repo{display:none!important}
/* Browser: opaque backdrop behind the panel on phone */
body.ps:not(.ps-wide):has(#browser-live-panel:not([hidden]))::after{content:"";position:fixed;inset:0;background:#05070d;z-index:2640}
body.ps:not(.ps-wide) .browser-live-panel:not([hidden]){background:#0b1018!important}
/* Code home: Don Pablo full-bleed, comic speech bubble (Spanish then English), talking and turnaround */
body.ps.ps-squad,body.ps.escodebars-squad.coding-chats{background:#120b07 url('/assets/don-pablo-escodebar-clean.jpg?v=5') center top/cover no-repeat fixed!important}
body.ps.ps-squad::before{content:"";position:fixed;inset:0;background:linear-gradient(180deg,#000d 0%,#000b 30%,#0000 52%,#000a 88%);pointer-events:none;z-index:0}
.ps-pablo-say{position:relative;background:#fffdf3!important;color:#141010!important;border:3px solid #141010!important;border-radius:18px!important;box-shadow:4px 4px 0 #141010;font:700 16px/1.3 "Comic Sans MS","Chalkboard SE","Comic Neue",system-ui,sans-serif!important;backdrop-filter:none!important;display:flex;flex-direction:column;gap:4px}
.ps-pablo-say::before{content:"";position:absolute;top:-14px;left:50%;margin-left:-10px;border:10px solid transparent;border-bottom:14px solid #141010;border-top:0}
.ps-pablo-say::after{content:"";position:absolute;top:-8px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:10px solid #fffdf3;border-top:0}
.ps-say-en{font-weight:400;font-size:13px;color:#4a3d30}
.ps-say-en:empty{display:none}
.ps-pablo-say.is-pop{animation:ps-pop .38s cubic-bezier(.34,1.56,.64,1)}
@keyframes ps-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.ps-pablo-say.is-pop,.ps-row.is-unread .unread-blue-ghost,.ps-menu-btn.has-unread .unread-blue-ghost{animation:none!important}}
/* Cookhouse live session cost (2 Nov) */
.ps-cook-cost{margin:0 0 8px;padding:5px 8px;border-radius:8px;background:rgba(62,230,168,.1);border:1px solid rgba(62,230,168,.3);font:600 12.5px/1.2 ui-monospace,"SF Mono",Consolas,monospace;color:#bff5e0;font-variant-numeric:tabular-nums}
.ps-cook-cost[hidden]{display:none}
body.ps .unread-blue-ghost{width:16px!important;height:16px!important;max-width:none!important;min-width:0!important}
body.ps .model-row-icon{width:18px!important;height:18px!important}
body.ps .ps-sheet .ps-dial-title .model-row-icon{width:20px!important;height:20px!important}
body.ps .ps-ghost-top img{width:22px!important;height:22px!important}
/* Don Pablo sprite-sheet turnaround (4 frames side by side, 360x640 each) and loop video, only when those files exist */
.ps-pablo-sprite{position:absolute;top:0;bottom:0;left:50%;height:100%;aspect-ratio:360/640;transform:translateX(-50%);background:#120d0a url('/assets/don-pablo-turnaround.png?v=1') 0 0/400% 100% no-repeat;opacity:0;pointer-events:none}
.ps-pablo-face.is-sprite-turn .ps-pablo-sprite{opacity:1;animation:ps-sprite-turn 1.2s steps(4,jump-none) 1 both}
@keyframes ps-sprite-turn{from{background-position:0 0}to{background-position:100% 0}}
.ps-pablo-loop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.ps-pablo-face.is-sprite-turn .ps-pablo-loop{opacity:0}
@media (prefers-reduced-motion:reduce){.ps-pablo-face.is-sprite-turn .ps-pablo-sprite{animation:none;opacity:0}}
/* 2 Nov: Jamie's clips (see phone-shell.js). Full-screen, muted, never catch taps. */
.ps-home-loop{display:none}
body.ps.ps-home-video .ps-home-loop{display:block;position:fixed;inset:0;width:100vw;height:100dvh;object-fit:cover;pointer-events:none;background:#05070d}
body.ps.ps-home-video #anyki-clean-center-daniel-wrap,body.ps.ps-home-video #horse-avatar-mount,body.ps.ps-home-video #anyki-single-clean-daniel,body.ps.ps-home-video #anyki-daniel-live-bubble,body.ps.ps-home-video #anyki-svg-moon,body.ps.ps-home-video #anyki-connected-fibre-canvas,body.ps.ps-home-video #fibre-canvas,body.ps.ps-home-video .horse-avatar-fibres{visibility:hidden!important}
.ps-clip{position:fixed;inset:0;width:100vw;height:100dvh;object-fit:cover;z-index:2600;pointer-events:none;background:#05070d;animation:ps-clip-in .25s ease-out;transition:opacity .28s ease}
.ps-clip.is-out{opacity:0}
@keyframes ps-clip-in{from{opacity:0}to{opacity:1}}
.ps-daniel-turn{display:none}
body.ps.ps-daniel-turning .ps-daniel-turn{display:block;position:fixed;inset:0;pointer-events:none;background:#05070d url('/assets/daniel-turnaround.png?v=1') 0 0/400% 100% no-repeat;animation:ps-sprite-turn 1.2s steps(4,jump-none) 1 both}
@media (prefers-reduced-motion:reduce){.ps-clip{display:none}body.ps.ps-daniel-turning .ps-daniel-turn{display:none}}
/* Live greeting over the Daniel loop on phone chat home (the clip no longer has a caption) */
.ps-home-greet{display:none}
body.ps.ps-home-video .ps-home-greet{display:block;position:fixed;left:16px;right:16px;top:calc(68px + env(safe-area-inset-top));z-index:640;text-align:center;font:600 15px/1.35 system-ui,sans-serif;color:#e8eef6;text-shadow:0 1px 10px #000,0 0 2px #000;pointer-events:none}
/* 3 Nov: Code stage is plain dark like Mecha Dan's: no sun glow, clouds or lanterns behind Don Pablo. */
body.ps.coding-chats #ps-anim .sun,body.ps.coding-chats #ps-anim .cl,body.ps.coding-chats #ps-anim .lan{display:none!important}
/* Gemini-style live dictation bar, phone + desktop shell: keep + far left, hide everything else in the bar */
body.ps .composer.is-dictating .composer-toolbar>*:not(.ps-plus):not(.attachment-picker):not(.dictation-live){display:none!important}
body.ps .composer.is-dictating .dictation-live{display:flex!important}
body.ps .composer.is-dictating .dictation-live[hidden]{display:none!important}
body.ps .composer.is-dictating .ps-plus{width:32px!important;height:32px!important;min-width:32px!important;flex:none}
body.ps .composer.is-dictating .dictation-live-btn{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}

/* 5 Nov 2026 (Jamie, phone 440x956): one clean "Working on it..." at the bottom, nothing on top of it.
   - no top task banner (only kept when an approval is waiting) and no floating centre status text;
   - while a reply is being made the in-turn step list is hidden (the bottom row and its sheet show it),
     and the thread keeps room under the last message so nothing scrolls behind the fixed row. */
body.ps #mobile-task-button:not(.needs-approval){display:none!important}
body.ps #work-focus-label{display:none!important}
body.ps.ps-working #turn-status{display:none!important}
body.ps.ps-working .conversation-content,body.ps.ps-working #messages{padding-bottom:calc(var(--ps-comp-h) + 92px)!important}
body.ps.ps-working #ps-activity{background:transparent;pointer-events:none}
body.ps.ps-working #ps-activity>*{pointer-events:auto}
.ps-act-line{font-size:15px;gap:9px;padding:4px 2px}
.ps-act-line .ps-chev svg{width:16px;height:16px}
.ps-act-dots i{width:5px;height:5px}
.ps-act-sub{display:block;font-size:13px;line-height:1.3;padding:2px 0 0 26px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 5 Nov 2026 (Jamie): Code mode readability. Don Pablo's intro stage (name + speech bubble) only on the empty screen;
   once the thread has a message or a turn status, every thread item sits on a dark glass card above the artwork. */
body.ps.ps-wide.ps-squad:not(.ps-welcome) .ps-pablo{display:none!important}
body.ps.ps-squad:not(.ps-welcome) #messages,body.ps.ps-squad:not(.ps-welcome) #turn-status{position:relative;z-index:5}
body.ps.ps-squad #messages article.message,body.ps.ps-squad #turn-status:not([hidden]){background:rgba(12,16,26,.88)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.08);border-radius:16px!important;padding:10px 14px!important;color:#eef2f7}
body.ps.ps-squad #messages article.message+article.message{margin-top:10px}
body.ps.ps-squad #turn-status:not([hidden]){margin-top:10px}

/* 5 Nov 2026 (Jamie): phone Code mode, Don Pablo's speech bubble sits in the dark sky left of his head, its tail pointing
   at his mouth, and fades out 10 s after each line (phone-shell.js adds .is-gone). */
body.ps.ps-squad:not(.ps-wide) .ps-pablo{top:104px!important;left:12px!important;right:auto!important;width:200px;align-items:flex-start;gap:0}
body.ps.ps-squad:not(.ps-wide) .ps-pablo-name,body.ps.ps-squad:not(.ps-wide) .ps-pablo-face{display:none!important}
body.ps.ps-squad:not(.ps-wide) .ps-pablo-say{max-width:200px!important;padding:9px 12px!important;font-size:13.5px!important;line-height:1.25!important;text-align:left;border-radius:16px!important}
body.ps.ps-squad:not(.ps-wide) .ps-pablo-say .ps-say-en{font-size:11.5px}
body.ps.ps-squad:not(.ps-wide) .ps-pablo-say::before{top:auto;bottom:16px;left:auto;right:-16px;margin:0;border:9px solid transparent;border-left:15px solid #141010;border-right:0}
body.ps.ps-squad:not(.ps-wide) .ps-pablo-say::after{top:auto;bottom:19px;left:auto;right:-9px;margin:0;border:6px solid transparent;border-left:10px solid #fffdf3;border-right:0}
.ps-pablo-say{transition:opacity .6s ease,visibility 0s linear 0s}
.ps-pablo-say.is-gone{opacity:0;visibility:hidden;transition:opacity .6s ease,visibility 0s linear .6s}

/* 5 Nov 2026 (Jamie): one Daniel bubble at a time on the phone. The centre bubble carries his lines; the avatar's own
   greeting / idle-comment bubble (and its tail) stays hidden so the two never overlap. Spoken-words captions still show. */
body.ps:not(.ps-wide) .horse-avatar-stage:has(.horse-avatar-bubble.is-ambient) .horse-avatar-bubble,
body.ps:not(.ps-wide) .horse-avatar-stage:has(.horse-avatar-bubble.is-ambient) .horse-avatar-bubble-tail{display:none!important}

/* 5 Nov 2026 (Jamie): the browser opened to a black screen with no way out. The page-level ::after backdrop
   (z 2640, root layer) covered the whole app layer (z 1) that holds the browser panel and its x button.
   The backdrop now comes from the panel itself, inside the same layer, so the panel and Close always show on top. */
body.ps:not(.ps-wide):has(#browser-live-panel:not([hidden]))::after{content:none!important;display:none!important}
body.ps:not(.ps-wide) .browser-live-panel:not([hidden]){box-shadow:0 0 0 100vmax #05070d!important}

.ps-wal-val{margin-left:auto;font-size:13px;color:var(--ps-dim);font-variant-numeric:tabular-nums}
.ps-wal-val.is-low{color:#ff9f7a}
