/* generated by build.py from Zen app.css + src/shell.css */
:root{
  --ease-out:cubic-bezier(.2,.75,.2,1); --ease-in:cubic-bezier(.45,0,.85,.35);
  --sp-pop:cubic-bezier(.2,1.2,.3,1); --sp-pop-d:.5s; --sp-bouncy:cubic-bezier(.2,1.35,.3,1); --sp-bouncy-d:.65s;
  --sp-page:var(--ease-out); --sp-page-d:.5s; --sp-snap:var(--ease-out); --sp-snap-d:.35s; --sp-drawer:var(--ease-out); --sp-drawer-d:.4s;
  --bg:#0d0d0c; --bg2:#121210; --surf:#181816; --surf2:#201f1c; --line:#2a2925; --line2:#383631;
  --text:#ece8df; --text2:#bdb8ad; --muted:#857f74; --brand:#3a57f1; --accent:#3a57f1; --on-accent:#fff;
  --sage:#7891fc; --warn:#d9a35b; --red:#d97a6c; --code:#151513;
  --side:280px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Noto Sans Arabic", "Geeza Pro", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}
[data-theme=light]{
  --bg:#f6f4ef; --bg2:#efece5; --surf:#ffffff; --surf2:#ebe8e0; --line:#e2ded4; --line2:#d3cec2;
  --text:#1b1a17; --text2:#4a4740; --muted:#8a857a; --brand:#3a57f1; --accent:#3a57f1; --on-accent:#fff;
  --sage:#3a57f1; --code:#f0ede6; color-scheme: light;
}
*{box-sizing:border-box}
html{margin:0;height:100%;background:var(--bg);color:var(--text);font:15px/1.6 var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
input{font:inherit;color:inherit}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
[hidden]{display:none!important}
.muted{color:var(--muted)}
.small{font-size:12.5px}
::selection{background:color-mix(in srgb,var(--text) 22%,transparent)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--line);border-radius:10px;border:3px solid transparent;background-clip:padding-box}
.icon-btn{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:10px;color:var(--text2);transition:background .15s,color .15s}
.icon-btn:hover{background:var(--surf2);color:var(--text)}
.icon-btn.on{color:var(--text);background:var(--surf2)}
.primary,.ghost,.danger{border-radius:11px;padding:10px 16px;font-weight:550;transition:opacity .15s,background .15s}
.primary{background:var(--accent);color:var(--on-accent)}
.primary:hover{opacity:.88}
.ghost{border:1px solid var(--line2);color:var(--text)}
.ghost:hover{background:var(--surf2)}
.danger{border:1px solid color-mix(in srgb,var(--red) 50%,transparent);color:var(--red)}
@keyframes spin{to{transform:rotate(360deg)}}
svg.i{width:20px;height:20px;fill:none;stroke:none;flex:none}
.icon-btn svg.i{width:20px;height:20px}
.tool .st svg.i{width:14px;height:14px}
.tab svg.i{width:16px;height:16px}
.av svg.i{width:18px;height:18px}
.chev svg.i{width:16px;height:16px}
.tp-ico svg.i{width:15px;height:15px}
.crumb svg.i{width:13px;height:13px;color:#2aabee}
.pill svg.i{width:15px;height:15px}
.robar svg.i{width:17px;height:17px}
.fold svg.i{width:15px;height:15px;color:var(--muted)}
@media (pointer: coarse), (hover: none){input{ font-size: 16px !important; }}
@supports (-webkit-touch-callout: none){input{ font-size: 16px !important; }}
.hermes-badge svg.i{width:14px;height:14px}
.sys-title svg.i{width:14px;height:14px;flex:none}
.proc-st svg.i{width:12px;height:12px}
.proc-cwd svg.i{width:13px;height:13px}
.proc-more svg.i{width:14px;height:14px;transition:transform .2s}
.proc-more.open svg.i{transform:rotate(180deg)}
.vplay svg.i{width:46px;height:46px;filter:drop-shadow(0 4px 14px rgba(0,0,0,.5));transition:transform .2s}
.vplay:hover svg.i{transform:scale(1.08)}
.vexp svg.i{width:16px;height:16px}
.vw-top .icon-btn{color:#e8e8e8}
.vw-top .icon-btn:hover{background:rgba(255,255,255,.1);color:#fff}
.gone svg.i{width:18px;height:18px;flex:none}
.rec-x svg.i{width:19px;height:19px}
.vn-btn svg.i{width:17px;height:17px}
.rb-ico svg.i{width:18px;height:18px}
.reply-bar .icon-btn{width:30px;height:30px}
.reply-bar .icon-btn svg.i{width:16px;height:16px}
.gw-btn svg.i{width:16px;height:16px}
.gw-btn.spinning svg.i{animation:spin 1s linear infinite}
.sl-ico svg.i{width:16px;height:16px}
.ops-cmd svg.i{width:16px;height:16px;color:var(--muted)}
.upd-btn svg.i,#keysBtn svg.i{width:16px;height:16px;flex:none}
html{background:var(--bg)}
.sk-page{padding:4px 0 40px;animation:pageT var(--sp-page-d) var(--sp-page) both,pageF .26s var(--ease-out) both}
.sk-chip svg.i{width:14px;height:14px}
.sk-h svg.i{width:15px;height:15px}
.sk-ico svg.i{width:17px;height:17px}
.sk-ico.lg svg.i{width:26px;height:26px}
.sk-foot svg.i{width:13px;height:13px}
.sk-back svg.i{width:16px;height:16px}
[dir=rtl] .sk-back svg.i{transform:scaleX(-1)}
.sk-acts svg.i{width:16px;height:16px}
.sk-file svg.i{width:14px;height:14px}
@media (max-width:820px){.sk-ico svg.i{width:15px;height:15px}}
.vcplay svg.i{width:14px;height:14px}
html{overflow:hidden;overscroll-behavior:none}
html.kb,html.kb body{height:var(--vvh);}
html.kb .hint{display:none}
html.kb .empty{inset:56px 0 96px}
ui-toast-region.toasts{position:fixed;left:50%;bottom:110px;translate:-50% 0;z-index:80;width:min(360px,calc(100vw - 32px));
  height:var(--toast-front-height,0px);transition:bottom var(--sp-snap-d) var(--sp-snap),height .3s var(--ease-out);pointer-events:none}
ui-toast-region.toasts[data-expanded]{height:calc(var(--toast-stack-height) + (var(--toast-count) - 1) * 8px)}
ui-toast.toast{--y:calc(var(--toast-index) * -7px);position:absolute;inset-inline:0;bottom:0;margin-inline:auto;width:max-content;max-width:100%;box-sizing:border-box;
  z-index:calc(100 - var(--toast-index));pointer-events:auto;overflow:hidden;text-align:center;cursor:pointer;user-select:none;-webkit-user-select:none;
  height:var(--toast-height);translate:var(--toast-swipe-x,0px) calc(var(--y) + var(--toast-swipe-y,0px));scale:calc(1 - var(--toast-index) * .05);
  background:color-mix(in srgb,var(--text) 92%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  transition:translate var(--sp-bouncy-d) var(--sp-bouncy),scale .4s var(--ease-out),opacity .26s var(--ease-out),filter .26s,height .3s var(--ease-out)}
ui-toast.toast:not([data-front]):not([data-expanded]){height:var(--toast-front-height)}
ui-toast.toast[data-expanded]{--y:calc(-1 * (var(--toast-offset) + var(--toast-index) * 8px));scale:1}
ui-toast.toast[data-starting-style]{transition:none;opacity:0;filter:blur(6px);--y:14px;scale:.92}
ui-toast.toast[data-ending-style]{opacity:0;filter:blur(4px);scale:.96;transition:opacity .2s var(--ease-in),filter .2s,scale .2s var(--ease-in),translate .2s var(--ease-in)}
ui-toast.toast[data-swiping]{transition:none}
ui-toast.toast ui-toast-title{display:block;white-space:normal}
@media (prefers-reduced-motion:reduce){ui-toast.toast{transition-property:opacity}}
.add-av svg.i{width:18px;height:18px}
.bots-intro{max-width:640px;margin:6px 0 18px;color:var(--text2);font-size:14px;line-height:1.55}
.bot-handle svg.i{width:13px;height:13px;color:#2AABEE}
.bot-stats svg.i{width:13px;height:13px}
.bot-acts svg.i{width:15px;height:15px}
.danger-t{color:#ef6b6b !important}
.bot-soul summary svg.i{width:16px;height:16px;color:var(--muted)}
.bot-switch .cv svg.i{width:16px;height:16px;color:var(--muted)}
.bs-item .ck svg.i{width:16px;height:16px;color:var(--brand)}
.main-badge svg.i{width:14px;height:14px}
.st-card{border:1px solid var(--line);background:var(--surf);border-radius:16px;padding:14px 16px;min-width:0}
.st-lab svg.i{width:15px;height:15px}
svg.st-svg{display:block;width:100%;height:100%;overflow:visible;stroke:none;fill:none}
.st-chips svg.i{width:14px;height:14px}
.st-wi svg.i{width:14px;height:14px}
@media (max-width:820px){.st-card{padding:12px 13px;border-radius:14px}}
.icon-btn,.primary,.ghost,.danger{
  transition:transform var(--sp-snap-d) var(--sp-snap),background-color .15s,color .15s,border-color .15s,opacity .15s,box-shadow .2s}
.icon-btn:active{transform:scale(.92);transition-duration:.08s}
.primary:active,.ghost:active,.danger:active{transform:scale(.97);transition-duration:.08s}
@media (prefers-reduced-motion: reduce){.sk-page{animation:popF .15s linear both!important}
.icon-btn:active,.primary:active,.ghost:active{transform:none}}
@media (max-width:820px){.art-head .icon-btn{width:44px;height:44px}}
.ap-ico svg.i{width:24px;height:24px}
.ap-go svg.i{width:18px;height:18px;color:var(--muted)}
[dir=rtl] .ap-go svg.i{transform:scaleX(-1)}
.ap-page{max-width:720px}
.sp-drop{width:100%;display:flex;flex-direction:column;align-items:center;gap:4px;margin:0 0 12px;padding:34px 16px;border:1.5px dashed var(--line2);border-radius:18px;background:var(--surf);color:var(--text);text-align:center;transition:border-color .15s,background .15s}
.sp-drop:hover,.sp-drop.over{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 7%,var(--surf))}
.sp-drop b{font-size:15px}
.sp-plus{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#fff;margin-bottom:6px}
.sp-plus svg.i{width:24px;height:24px}
.sp-drop.small{flex-direction:row;gap:12px;padding:10px 12px;border-style:solid;border-width:1px;border-color:var(--line);text-align:start}
.sp-thumb{width:44px;height:44px;flex:none;border-radius:9px;object-fit:cover;background:#000}
.sp-dtx{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.sp-dtx b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-card{margin-bottom:12px}
.sp-prev{position:relative;max-width:100%;margin:0 auto;border-radius:10px;overflow:hidden;background:#000}
.sp-prev img{position:absolute;inset:0;width:100%;height:100%;display:block}
.sp-grid{position:absolute;inset:0;display:grid}
.sp-grid i{position:relative;border:1px solid color-mix(in srgb,var(--brand) 85%,#fff);box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}
.sp-grid em,.sp-tile em{position:absolute;top:5px;inset-inline-start:5px;font-style:normal;font-size:10.5px;font-weight:700;background:rgba(0,0,0,.62);color:#fff;border-radius:8px;padding:1px 6px}
.sp-info{margin-top:8px;text-align:center}
.sp-lab{display:block;margin:12px 0 6px;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sp-ctl>.sp-lab:first-child{margin-top:0}
.sp-steps{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sp-step{padding:8px 10px;border-radius:12px;background:var(--bg2);border:1px solid var(--line)}
.sp-step .sp-lab{margin:0 0 4px}
.sp-srow{display:flex;align-items:center;justify-content:space-between}
.sp-srow .icon-btn{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--surf2)}
.sp-val{font-size:19px;font-variant-numeric:tabular-nums}
.sp-bgrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.sp-bgrow[hidden]{display:none}
.sp-colors{display:flex;align-items:center;gap:7px}
.sp-sw{width:26px;height:26px;border-radius:50%;border:1px solid var(--line2)}
.sp-sw.on{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--brand)}
.sp-pickc{width:30px;height:30px;padding:0;border:0;background:none;cursor:pointer}
.sp-go{width:100%;padding:13px 0;border-radius:14px;font-weight:650;font-size:15px}
.ghost.sp-go{border:1px solid var(--line2)}
.sp-status{margin:10px 0;text-align:center;font-family:var(--mono)}
.sp-tiles{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.sp-tile{flex:none;width:min(38%,170px);position:relative;scroll-snap-align:start;padding:0;border-radius:10px}
.sp-tile img{width:100%;display:block;border-radius:10px;border:1px solid var(--line)}
.sp-acts{display:flex;flex-direction:column;gap:8px}
.sp-tip{margin-top:8px;text-align:center}
@media (min-width:821px){.sp-acts{flex-direction:row}
.sp-tile{width:150px}}
.sel-reply svg.i{width:16px;height:16px}
.pp-note{margin-top:8px;line-height:1.45}
.pp-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pp-head .sp-lab{margin:0}
.pp-guide{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text2);cursor:pointer}
.pp-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:10px}
.pp-slot{display:block;min-width:0}
.pp-slot>*+*{margin-top:6px}
.pp-stop{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.pp-stop b{font-size:13.5px}
.pp-frame{position:relative;height:0;padding-top:128.5714%;border-radius:8px;overflow:hidden;background:#fff;border:1px solid var(--line2);touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.pp-frame:active{cursor:grabbing}
.pp-frame.pp-empty{background:var(--bg2);border-style:dashed;cursor:default;touch-action:auto}
.pp-frame.over{border-color:var(--brand)}
.pp-crop{position:absolute;inset:0;width:100%;height:100%;display:block}
.pp-add{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--text2);font-size:13px;font-weight:600;cursor:pointer}
.pp-plus{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:#fff}
.pp-plus svg.i{width:22px;height:22px}
.pp-guideov{position:absolute;inset:0;pointer-events:none}
.noguide .pp-guideov{display:none}
.pp-oval{position:absolute;left:18%;right:18%;top:8.9%;bottom:15.6%;border:1.5px dashed rgba(58,87,241,.9);border-radius:50%}
.pp-l{position:absolute;left:0;right:0;height:0;border-top:1.5px solid rgba(239,80,80,.85)}
.pp-l.top{top:8.9%}
.pp-l.chin{top:84.4%}
.pp-zoom{display:flex;align-items:center;gap:6px}
.pp-zoom .z-slider{flex:1;min-width:0}
.pp-zoom .icon-btn{width:30px;height:30px}
.pp-zoom .icon-btn svg.i{width:15px;height:15px}
.pp-sacts{display:flex;gap:6px}
.pp-btn{flex:1;display:block;text-align:center;padding:6px 0;border:1px solid var(--line2);border-radius:9px;font-size:12.5px;color:var(--text);cursor:pointer;background:none}
.pp-btn:hover{background:var(--surf2)}
.pp-hint{margin-top:10px;line-height:1.45}
.pp-pv{display:flex;justify-content:center;background:var(--bg2)}
.pp-sheet{display:block;border-radius:3px;box-shadow:0 6px 24px rgba(0,0,0,.35)}
.sp-go:disabled{opacity:.45}
@media (max-width:820px){.pp-slots{grid-template-columns:1fr 1fr}}
.vh{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;opacity:0}
.sp-drop{cursor:pointer;position:relative}
.pr-tabs{margin:0 0 12px}
.pr-seg{display:flex}
.sc-addrow{display:flex;gap:8px}
.sc-addbtn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 0;border-radius:14px;font-weight:650;font-size:15px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sc-addbtn.ghost{border:1px solid var(--line2)}
.sc-addico{display:inline-grid;place-items:center}
.sc-addico svg.i{width:19px;height:19px}
.sc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px;margin-top:10px}
@media (max-width:820px){.sc-grid{grid-template-columns:1fr 1fr}}
.sc-none{grid-column:1/-1;padding:18px 0;text-align:center}
.sc-page{min-width:0}
.sc-thumb{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:3/4;border-radius:10px;background:var(--bg2);border:1px solid var(--line);overflow:hidden;padding:6px}
.sc-thumb .sc-tcv{max-width:100%;max-height:100%;width:auto;height:auto;display:block;box-shadow:0 2px 10px rgba(0,0,0,.25);background:#fff}
.sc-no{position:absolute;left:6px;top:6px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:rgba(0,0,0,.55);color:#fff;font-size:11.5px;font-weight:650;display:grid;place-items:center}
.sc-warn{position:absolute;right:6px;top:6px;width:24px;height:24px;border-radius:50%;background:var(--warn);color:#000;display:grid;place-items:center}
.sc-warn svg.i{width:14px;height:14px}
.sc-spin{width:22px;height:22px;border-radius:50%;border:2.5px solid var(--line2);border-top-color:var(--brand);animation:spin .8s linear infinite}
.sc-pacts{display:flex;justify-content:space-between;margin-top:4px}
.sc-pacts .icon-btn{width:30px;height:30px}
.sc-pacts .icon-btn svg.i{width:16px;height:16px}
.sc-pacts .icon-btn:disabled{opacity:.3}
[dir=rtl] .sc-dir svg.i{transform:scaleX(-1)}
.sc-opts .z-seg{display:flex}
.sc-opts .z-seg.inline{display:inline-flex}
.sc-seg [data-slot="segmented-control-item"]{padding-inline:6px;font-size:12.5px}
.sc-pv{background:var(--bg2)}
.sc-sheets{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:thin}
.sc-sheet{flex:none;display:block;border-radius:2px;box-shadow:0 4px 16px rgba(0,0,0,.3)}
.sc-pvinfo{margin-top:6px}
.sc-msg{margin:2px 0 10px}
.sc-stage{position:relative;display:flex;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none}
.sc-box{position:relative}
.sc-img{display:block;width:100%;height:100%;border-radius:4px}
.sc-ov{position:absolute;inset:0;width:100%;height:100%;overflow:visible;stroke:none;fill:none}
.sc-shade{fill:rgba(0,0,0,.45)}
.sc-poly{fill:rgba(58,87,241,.12);stroke:#3a57f1;stroke-width:2;stroke-linejoin:round}
.sc-h{fill:rgba(58,87,241,.25);stroke:#fff;stroke-width:2.5;cursor:grab}
.sc-hd{fill:#fff;pointer-events:none}
.sc-loupe{position:absolute;border-radius:50%;border:3px solid #fff;box-shadow:0 4px 18px rgba(0,0,0,.45);pointer-events:none;z-index:2}
.sc-tools{display:flex;gap:8px;margin-top:12px}
.sc-tools .pp-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.sc-tico{display:inline-grid}
.sc-tico svg.i{width:15px;height:15px}
.sc-edacts{margin-top:12px}
/* Standalone page chrome (the rest of app.css is generated from Zen's) */
/* Zen locks html/body (it scrolls an inner panel); this app scrolls the page itself */
html{height:auto;overflow:visible auto;overscroll-behavior-y:auto}
body{overflow:visible;min-height:100%;height:auto}
.ps-head{position:relative;display:flex;align-items:center;gap:12px;max-width:760px;margin:0 auto;
  padding:calc(env(safe-area-inset-top) + 12px) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  background:color-mix(in srgb,var(--bg) 92%,transparent)}
.ps-logo{width:34px;height:34px;border-radius:9px;flex:none}
.ps-ttl{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.ps-ttl b{font-size:16.5px;font-weight:650}
.ps-ttl span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-lang{font-size:13px;font-weight:650}
.ps-main{max-width:760px;margin:0 auto;padding:4px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left))}
.ps-foot{max-width:760px;margin:0 auto;text-align:center;padding:8px 18px calc(env(safe-area-inset-bottom) + 86px)}
.ps-tabs{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:center;gap:4px;
  padding:6px max(12px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 6px) max(12px, env(safe-area-inset-left));
  background:var(--bg2);border-top:1px solid var(--line);
}
.ps-tab{flex:1;max-width:180px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 4px 4px;border-radius:12px;
  color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.01em;-webkit-tap-highlight-color:transparent;transition:color .15s}
.ps-tab svg.i{width:25px;height:25px;transition:transform .25s var(--sp-pop)}
.ps-tab.on{color:var(--brand)}
[data-theme=dark] .ps-tab.on{color:#7891fc}
.ps-tab:active svg.i{transform:scale(.88)}
.ps-tab:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
ui-toast-region.toasts{bottom:calc(env(safe-area-inset-bottom) + 84px)}
@media (pointer:coarse){.ps-head .icon-btn{width:40px;height:40px}}
