/* Pronoia overhaul mockup: shared styles. Tokens copied from packages/ui/styles/tokens.css (origin/main). */
@property --spin{syntax:'<angle>';inherits:false;initial-value:0deg}
*{box-sizing:border-box}
.p{
  --bg:#ffffff;--bg-hover:#f5f5f5;--bg-press:#e9e9e9;--bg-subtle:#f7f7f7;--bg-field:#ffffff;--bg-hi:#eef4ff;--bg-user:#0562ef;--fg-user:#ffffff;--wash:linear-gradient(135deg,#f7f3ff,#fff6ee);--wash-line:linear-gradient(100deg,#d9cdf3,#f0d6c2);--font-d:Geist,Inter,-apple-system,sans-serif;
  --fg:#111111;--fg-2:#5c5c5c;--fg-3:#737373;--link:#0562ef;--link-h:#074db7;--err:#d63c2f;
  --line:#ececec;--line-2:#d1d1d1;--ink:#151515;--ink-h:#000000;
  --screen-a:#e8eef7;--screen-b:#dde3ec;--green:#16a34a;
  --tag-n:#f4f4f5;--tag-green-bg:#d1fae5;--tag-green:#065f46;--tag-orange-bg:#ffedd5;--tag-orange:#9a3412;--tag-orange-ic:#f97316;
  --tag-blue-bg:#dbeafe;--tag-blue:#1e40af;--tag-purple-bg:#ede9fe;--tag-purple:#5b21b6;--tag-red-bg:#ffe4e6;--tag-red:#9f1239;
  --sh-card:0 0 0 1px #ececec,0 1px 2px rgba(0,0,0,.035);
  --sh-card-h:0 0 0 1px #e2e2e2,0 6px 18px rgba(0,0,0,.065),0 1px 3px rgba(0,0,0,.035);
  --sh-fly:0 0 0 1px #ececec,0 20px 48px rgba(0,0,0,.105),0 3px 10px rgba(0,0,0,.045);
  --sh-btn:inset 0 0 0 1px #e3e3e3,0 1px 2px rgba(0,0,0,.035);
  --sh-inv:0 1px 2px rgba(0,0,0,.18);
  --sh-active:0 0 0 4px rgba(5,98,239,.12),0 0 0 1px #0562ef;
  --scrim:rgba(24,24,27,.4);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:20px;letter-spacing:-.01em;
  color:var(--fg);background:var(--bg);-webkit-font-smoothing:antialiased;min-height:100vh;
}
.p.dark{
  --bg:#1a1a1a;--bg-hover:#262626;--bg-press:#333333;--bg-subtle:#141414;--bg-field:#1f1f1f;--bg-hi:#14233d;--bg-user:#3b82f6;--wash:linear-gradient(135deg,#221f2b,#2a231d);
  --fg:#f5f5f5;--fg-2:#bdbdbd;--fg-3:#9a9a9a;--link:#6ba3ff;--link-h:#a4c7ff;
  --line:#2e2e2e;--line-2:#454545;--ink:#ededed;--ink-h:#ffffff;
  --screen-a:#1c2533;--screen-b:#10151d;
  --tag-n:#27272a;--tag-green-bg:#022c22;--tag-green:#34d399;--tag-orange-bg:#431407;--tag-orange:#fdba74;--tag-orange-ic:#fb923c;
  --tag-blue-bg:#172554;--tag-blue:#93c5fd;--tag-purple-bg:#2e1065;--tag-purple:#c4b5fd;--tag-red-bg:#4c0519;--tag-red:#fda4af;
  --sh-card:0 0 0 1px #2e2e2e,0 1px 2px rgba(0,0,0,.18);
  --sh-card-h:0 0 0 1px rgba(255,255,255,.12),0 2px 8px 0 rgba(0,0,0,.5);
  --sh-fly:0 0 0 1px rgba(255,255,255,.1),0 8px 24px 0 rgba(0,0,0,.6);
  --sh-btn:inset 0 0 0 1px #3a3a3a;
  --scrim:rgba(0,0,0,.6);
}
.p a{color:inherit;text-decoration:none}
.p button{font:inherit;color:inherit}
.p h1,.p h2,.p h3,.p p{margin:0}
.ic{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ic.s12{width:12px;height:12px}.ic.s14{width:14px;height:14px}.ic.s18{width:18px;height:18px}.ic.s20{width:20px;height:20px}.ic.s24{width:24px;height:24px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}

/* type */
.t11{font-size:11px;line-height:15px}.t12{font-size:12px;line-height:16px}.t13{font-size:13px;line-height:20px}.t14{font-size:14px;line-height:22px}
.t16{font-size:16px;line-height:24px}.t18{font-family:var(--font-d);font-size:19px;line-height:26px;font-weight:600;letter-spacing:-.02em}
.t24{font-family:var(--font-d);font-size:28px;line-height:32px;font-weight:600;letter-spacing:-.03em}.t28{font-family:var(--font-d);font-size:36px;line-height:40px;font-weight:600;letter-spacing:-.035em}
.t36{font-family:var(--font-d);font-size:44px;line-height:48px;font-weight:600;letter-spacing:-.035em}
.w5{font-weight:500}.w6{font-weight:600}.w7{font-weight:700}
.fg2{color:var(--fg-2)}.fg3{color:var(--fg-3)}.lnk{color:var(--link)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.caps{font-size:11px;line-height:15px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-3)}

/* layout */
.row{display:flex;align-items:center;gap:8px}.col{display:flex;flex-direction:column}.grow{flex:1 1 auto;min-width:0}
.wrap{flex-wrap:wrap}.between{justify-content:space-between}.center{justify-content:center}.start{align-items:flex-start}
.g4{gap:4px}.g6{gap:6px}.g10{gap:10px}.g12{gap:12px}.g16{gap:16px}.g20{gap:20px}.g24{gap:24px}.g32{gap:32px}
.divider{height:1px;background:var(--line);width:100%}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--bg);box-shadow:var(--sh-btn);font-size:13px;line-height:20px;font-weight:500;color:var(--fg);cursor:pointer;white-space:nowrap;text-decoration:none}
.btn:hover{background:var(--bg-hover)}
.btn.ink{background:var(--ink);color:#fff;box-shadow:var(--sh-inv)}.btn.ink:hover{background:var(--ink-h)}
.btn.ghost{background:transparent;box-shadow:none;color:var(--fg-2)}.btn.ghost:hover{background:var(--bg-hover);color:var(--fg)}
.btn.lg{height:44px;padding:0 20px;font-size:14px;border-radius:999px}
.btn.full{width:100%}.btn.round{border-radius:999px}
.btn.done{background:var(--bg-hover);box-shadow:none;color:var(--fg-3);cursor:default}
.ibtn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:999px;background:transparent;color:var(--fg-3);cursor:pointer;position:relative;flex:none}
.ibtn:hover{background:var(--bg-hover);color:var(--fg)}
.ibtn .dot{position:absolute;top:6px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 2px var(--bg)}
.ibtn .dot.orange{background:var(--tag-orange-ic)}
.pill{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;border-radius:999px;background:var(--bg);box-shadow:var(--sh-btn);font-size:13px;font-weight:500;color:var(--fg);white-space:nowrap;cursor:pointer;text-decoration:none}
.pill:hover{background:var(--bg-hover)}
.pill.dashed{box-shadow:none;border:1px dashed var(--line-2);color:var(--fg-2)}
.pill.on{background:var(--ink);color:#fff;box-shadow:var(--sh-inv)}

/* bits */
.card{background:var(--bg);border-radius:22px;box-shadow:var(--sh-card)}
.card.hov:hover{box-shadow:var(--sh-card-h)}
.tag{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 9px;border-radius:999px;font-size:11px;line-height:15px;font-weight:500;background:var(--tag-n);color:var(--fg-2);white-space:nowrap}
.tag.green{background:var(--tag-green-bg);color:var(--tag-green)}.tag.blue{background:var(--tag-blue-bg);color:var(--tag-blue)}
.tag.orange{background:var(--tag-orange-bg);color:var(--tag-orange)}.tag.purple{background:var(--tag-purple-bg);color:var(--tag-purple)}
.tag.red{background:var(--tag-red-bg);color:var(--tag-red)}
.app{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:7px;font-size:10px;font-weight:700;color:#fff;flex:none;letter-spacing:-.02em}
.app.lg{width:34px;height:34px;border-radius:10px;font-size:13px}
.app.xl{width:42px;height:42px;border-radius:13px;font-size:15px}
.app .ic{width:12px;height:12px}.app.lg .ic{width:16px;height:16px}
.acct{width:32px;height:32px;border-radius:50%;background:var(--ink);color:#fff;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;border:0;cursor:pointer;flex:none}
.kbd{font-size:11px;color:var(--fg-3);box-shadow:0 0 0 1px var(--line);border-radius:4px;padding:0 4px}
.live{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px var(--tag-green-bg);flex:none;display:inline-block}
.sw{width:32px;height:18px;border-radius:999px;background:var(--line-2);position:relative;flex:none;border:0;cursor:pointer;padding:0}
.sw::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
.sw.on{background:var(--green)}.sw.on::after{left:16px}
.field{display:flex;align-items:center;gap:8px;height:44px;width:100%;border:0;border-radius:14px;background:var(--bg-field);box-shadow:0 0 0 1px var(--line);padding:0 12px;font:inherit;font-size:14px;color:var(--fg);outline:none}
.field:focus,.field:focus-within{box-shadow:var(--sh-active)}
.field::placeholder{color:var(--fg-3)}
textarea.field{height:auto;padding:10px 12px;resize:none;line-height:22px}
.lbl{font-size:12px;line-height:16px;font-weight:500;color:var(--fg-2)}

/* faces: our agent looks, drawn in CSS. font-size sets the size, --c the color */
.face{--c:#f4b740;--f:#1b1b1f;position:relative;display:inline-block;flex:none;width:1em;height:1em;font-size:32px;border-radius:50%;background:var(--c);box-shadow:inset 0 -.07em 0 rgba(0,0,0,.08)}
.face::before{content:"";position:absolute;left:.31em;top:.37em;width:.085em;height:.13em;border-radius:.05em;background:var(--f);box-shadow:.3em 0 0 var(--f)}
.face::after{content:"";position:absolute;left:.355em;top:.56em;width:.29em;height:.13em;border:.045em solid var(--f);border-top:0;border-radius:0 0 .2em .2em}
.face.noia{--c:#111111;--f:#f2f2f2}.face.noia::after{border-color:#16a34a}
.face.ring{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--green)}
.face.ring-o{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--tag-orange-ic)}
.ava{--c:#f4b740}.rex{--c:#8fa8f7}.milo{--c:#f49a8f}.juno{--c:#72c9a6}.pip{--c:#c7aef3}

/* brand mark */
.mark{width:28px;height:28px;border-radius:8px;background:#111;display:inline-flex;align-items:center;justify-content:center;flex:none}
.mark svg{width:22px;height:22px}
.logo{display:inline-flex;align-items:center;gap:9px;font-size:15px;font-weight:600;letter-spacing:-.01em}

/* home + top bar */
.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:16px}
.crew{display:flex;gap:20px;justify-content:center;flex-wrap:wrap}
.crew-i{display:flex;flex-direction:column;align-items:center;gap:6px;width:68px;font-size:12px;line-height:16px;color:var(--fg-2);position:relative;text-align:center}
.crew-c{width:56px;height:56px;border-radius:50%;background:var(--bg-hover);display:flex;align-items:center;justify-content:center;color:var(--fg-2)}
.new-b{position:absolute;top:-3px;right:2px;background:var(--link);color:#fff;font-size:9px;line-height:13px;font-weight:700;padding:0 5px;border-radius:999px;letter-spacing:.03em;box-shadow:0 0 0 2px var(--bg)}
.menu{position:absolute;z-index:20;background:var(--bg);border-radius:18px;box-shadow:var(--sh-fly);padding:6px;min-width:220px}
.mi{display:flex;align-items:center;gap:10px;height:38px;padding:0 12px;border-radius:12px;font-size:13px;color:var(--fg);cursor:pointer;border:0;background:transparent;width:100%;text-align:left;text-decoration:none}
.mi:hover{background:var(--bg-hover)}.mi .ic{color:var(--fg-3)}
.mi-h{padding:8px 10px 4px}

/* shell with sidebar */
.shell{display:flex;flex-wrap:wrap;min-height:100vh;background:var(--bg)}
.side{flex:0 0 272px;background:var(--bg);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:12px 8px;gap:2px;min-height:100vh}
.side-top{display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px 6px}
.nav{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:12px;font-size:13px;color:var(--fg-2);cursor:pointer;border:0;background:transparent;width:100%;text-align:left;text-decoration:none}
.nav:hover{background:var(--bg-hover);color:var(--fg)}.nav.on{background:var(--bg-subtle);color:var(--fg);font-weight:500}
.side-h{font-size:11px;line-height:15px;font-weight:500;color:var(--fg-3);padding:14px 8px 6px}
.crow{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;cursor:pointer;border:0;background:transparent;width:100%;text-align:left;text-decoration:none;color:var(--fg)}
.crow:hover{background:var(--bg-hover)}.crow.on{background:var(--bg-subtle)}
.main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;background:var(--bg);min-height:100vh}

/* chat */
.chat-h{height:60px;flex:none;display:flex;align-items:center;gap:10px;padding:0 12px 0 16px;border-bottom:1px solid var(--line);position:relative}
.thread{flex:1 1 auto;padding:24px 24px 8px}
.thread-in{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.u-msg{align-self:flex-end;max-width:80%;background:var(--bg-user);color:var(--fg-user,#fff);border-radius:20px;padding:10px 16px;font-size:14px;line-height:22px}
.u-msg .fg3{color:rgba(255,255,255,.75)}
.turn{display:flex;gap:10px;align-items:flex-start}
.turn-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:22px}
.steps-h{display:inline-flex;align-items:center;gap:4px;color:var(--fg-3);font-size:13px;border:0;background:none;padding:0;cursor:pointer;width:max-content}
.steps-h:hover{color:var(--fg)}
.steps{display:flex;flex-direction:column;gap:10px;padding:2px 0 2px 2px}
.step{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:20px;color:var(--fg-2)}
.step>.ic{margin-top:2px;color:var(--fg-3)}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:18px;background:var(--bg-subtle);border-radius:8px;padding:8px 10px;box-shadow:0 0 0 1px var(--line);color:var(--fg);white-space:pre-wrap}
.xcard{background:var(--bg);border-radius:18px;box-shadow:var(--sh-card);padding:14px 16px;display:flex;align-items:center;gap:12px;font-size:13px;line-height:20px}
.xcard.col{flex-direction:column;align-items:stretch}
.xic{width:38px;height:38px;border-radius:12px;background:var(--bg-hover);display:flex;align-items:center;justify-content:center;color:var(--fg-2);flex:none}
.bound{background:var(--wash);border-radius:26px;box-shadow:var(--sh-card);padding:22px 24px;display:flex;flex-direction:column;gap:12px}
.dock{padding:8px 24px 20px;flex:none}
.dock-in{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.composer{border-radius:24px;background:var(--bg);box-shadow:0 0 0 1px var(--line),0 6px 18px rgba(0,0,0,.05);padding:10px}
.composer:focus-within{box-shadow:var(--sh-active)}
.composer textarea{display:block;width:100%;border:0;resize:none;outline:none;font:inherit;font-size:14px;line-height:22px;background:transparent;color:var(--fg);padding:6px 8px;min-height:48px}
.composer textarea::placeholder{color:var(--fg-3)}
.cbar{display:flex;align-items:center;gap:2px}
.chipbtn{height:30px;border-radius:999px;padding:0 10px;font-size:13px;color:var(--fg-2);border:0;background:transparent;display:inline-flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap}
.chipbtn:hover{background:var(--bg-hover);color:var(--fg)}
.send{width:36px;height:36px;border-radius:50%;background:var(--ink);color:#fff;border:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.chan{display:inline-flex;align-items:center;gap:2px;height:32px;padding:0 8px;border-radius:999px;background:var(--bg);box-shadow:var(--sh-btn);border:0;cursor:pointer}

/* Computer rail (matches computer-sidebar.tsx on main) */
.rail{flex:0 0 380px;border-left:1px solid var(--line);background:var(--bg-subtle);display:flex;flex-direction:column;min-height:100vh}
.rail-h{height:48px;flex:none;display:flex;align-items:center;gap:8px;padding:0 8px 0 16px;border-bottom:1px solid var(--line);font-size:14px;font-weight:500}
.rail-b{padding:12px 12px 20px;display:flex;flex-direction:column;gap:18px}
.glass{border-radius:16px;padding:6px;background:linear-gradient(to bottom,var(--screen-a),transparent);box-shadow:0 0 0 1px var(--line)}
.ring{position:relative;border-radius:11px;padding:3px}
.ring::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;background:conic-gradient(from var(--spin),var(--link),rgba(59,130,246,.15) 35%,var(--link) 55%,rgba(59,130,246,.15) 85%,var(--link));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:pspin 6s linear infinite;pointer-events:none}
.ring.wait::before{background:var(--tag-orange-ic);animation:none}
.ring{box-shadow:0 0 0 1px rgba(59,130,246,.3),0 0 20px 2px rgba(59,130,246,.28)}
@keyframes pspin{to{--spin:360deg}}
@media (prefers-reduced-motion:reduce){.ring::before{animation:none}}
.ring-lbl{position:absolute;top:-10px;left:50%;transform:translateX(-50%);z-index:3;background:var(--link);color:#fff;font-size:12px;line-height:18px;font-weight:500;padding:1px 10px;border-radius:999px;display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.ring-lbl i{width:6px;height:6px;border-radius:50%;background:#fff;display:inline-block}
.screen{position:relative;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:var(--bg);box-shadow:var(--sh-card);display:block;width:100%;border:0;padding:0;cursor:pointer;text-align:left}
.age{position:absolute;right:8px;bottom:8px;font-size:11px;line-height:15px;background:rgba(255,255,255,.92);padding:2px 8px;border-radius:999px;color:#52525b}
.st-pill{position:absolute;left:8px;top:8px;font-size:12px;line-height:16px;font-weight:500;background:rgba(255,255,255,.92);color:#18181b;border-radius:999px;padding:2px 8px;display:inline-flex;gap:6px;align-items:center}
.sec-h{font-size:12px;line-height:16px;font-weight:500;color:var(--fg-2);display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tile{border-radius:8px;aspect-ratio:16/10;background:var(--bg);box-shadow:var(--sh-card);position:relative;overflow:hidden}
.tile .tag{position:absolute;left:6px;top:6px}
.files{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.ftile{aspect-ratio:1;border-radius:14px;background:var(--bg);box-shadow:var(--sh-card);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;line-height:12px;color:var(--fg-3);text-align:center;padding:4px}
.rt{background:var(--bg);border-radius:18px;box-shadow:var(--sh-card);overflow:hidden}
.rt-row{display:flex;align-items:center;gap:10px;padding:10px 12px}
.rt-row+.rt-row{border-top:1px solid var(--line)}

/* tiny fake web page inside a Computer screen (light only, like a real site) */
.mini{position:absolute;inset:0;background:#fff;color:#18181b;font-size:8px;line-height:11px;display:flex;flex-direction:column}
.mini-bar{height:18px;flex:none;background:#f4f4f5;display:flex;align-items:center;gap:6px;padding:0 6px;border-bottom:1px solid #e4e4e7}
.mini-url{flex:1;height:11px;border-radius:6px;background:#fff;box-shadow:0 0 0 1px #e4e4e7;font-size:7px;line-height:11px;padding:0 6px;color:#52525b}
.mini-nav{height:18px;flex:none;background:#1e5aa8;color:#fff;display:flex;align-items:center;padding:0 8px;font-weight:700;font-size:8px;gap:10px}
.mini-b{padding:8px;display:flex;flex-direction:column;gap:4px}
.mini-tr{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:4px;padding:2px 0;border-bottom:1px solid #f0f0f2}
.mini-tr.h{font-weight:700;color:#52525b}
.cursor{position:absolute;width:18px;height:18px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 2px 6px rgba(0,0,0,.3)}

/* dialogs */
.stage{position:relative;min-height:100vh;background:var(--bg-subtle);overflow:hidden}
.scrim{position:absolute;inset:0;background:var(--scrim);display:flex;align-items:center;justify-content:center;padding:24px;z-index:5}
.dialog{position:relative;background:var(--bg);border-radius:30px;box-shadow:var(--sh-fly);width:min(920px,100%);overflow:hidden}
.ghost-page{position:absolute;inset:0;padding:20px 24px;display:flex;flex-direction:column;gap:28px;opacity:.9}
.gp-bar{height:12px;border-radius:6px;background:var(--line)}
.gp-dot{width:56px;height:56px;border-radius:50%;background:var(--bg-hover)}
.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line)}
.tab{height:44px;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:var(--fg-3);border:0;background:transparent;cursor:pointer;padding:0;box-shadow:inset 0 -2px 0 transparent}
.tab:hover{color:var(--fg)}.tab.on{color:var(--fg);box-shadow:inset 0 -2px 0 var(--fg)}
.seg{display:inline-flex;background:var(--bg-subtle);border-radius:999px;padding:3px;gap:2px;box-shadow:inset 0 0 0 1px var(--line)}
.seg button{height:30px;padding:0 14px;border:0;border-radius:999px;background:transparent;font-size:13px;color:var(--fg-2);cursor:pointer}
.seg button.on{background:var(--bg);box-shadow:var(--sh-card);color:var(--fg)}
.setrow{display:flex;align-items:center;gap:12px;padding:16px 18px}
.setrow+.setrow{border-top:1px solid var(--line)}
.box{background:var(--bg);border-radius:22px;box-shadow:var(--sh-card);overflow:hidden}
.bar{height:6px;border-radius:999px;background:var(--bg-hover);overflow:hidden}.bar>i{display:block;height:100%;border-radius:inherit;background:var(--link)}
.qr{width:168px;height:168px;display:grid;grid-template-columns:repeat(21,1fr);gap:0;padding:10px;background:#fff;border-radius:12px;box-shadow:var(--sh-card)}
.qr i{background:#111;display:block}.qr b{display:block}

/* phone frame for the mobile artboard */
.phone{width:390px;min-height:844px;background:var(--bg);display:flex;flex-direction:column;position:relative;overflow:hidden}

/* Arc additions */
.p h1,.p h2,.p h3{font-family:var(--font-d)}
.wash{background:var(--wash)}
.nest{border-radius:34px;padding:12px;background:var(--wash);box-shadow:0 0 0 1px var(--line)}
.nest>.card,.nest>.composer{border-radius:26px}
.topbar{height:68px}
.crew-c{background:var(--bg-subtle);box-shadow:inset 0 0 0 1px var(--line)}
.sw{width:36px;height:22px}.sw::after{top:3px;left:3px;width:16px;height:16px}.sw.on{background:#151515}.sw.on::after{left:17px}
.p.dark .sw.on{background:#ededed}.p.dark .sw.on::after{background:#151515}
.p.dark .btn.ink{color:#111}
.kbd{border-radius:6px}
.p.dark .send,.p.dark .acct,.p.dark .pill.on{color:#111}

/* Normals: the fuzzy characters from pronoia.sh replace the flat smiley faces */
.face{background:center/contain no-repeat url(chars/circle-teal.webp)!important;border-radius:0}
.face:not(.ring):not(.ring-o){box-shadow:none!important}
.face::before,.face::after{display:none!important}
.face[style*="#f4b740"]{background-image:url(chars/circle-honey.webp)!important}
.face[style*="#8fa8f7"]{background-image:url(chars/square-sapphire.webp)!important}
.face[style*="#f49a8f"]{background-image:url(chars/triangle-coral.webp)!important}
.face[style*="#72c9a6"]{background-image:url(chars/circle-sage.webp)!important}
.face[style*="#111111"]{background-image:url(chars/square-teal.webp)!important}
.face[style*="#c7aef3"]{background-image:url(chars/triangle-purple.webp)!important}
.face[style*="#7cc4ec"]{background-image:url(chars/circle-sapphire.webp)!important}
.face[style*="#e2c08d"]{background-image:url(chars/square-honey.webp)!important}
.face[style*="#f2a5c4"]{background-image:url(chars/circle-coral.webp)!important}
.face[style*="#8fd0f7"]{background-image:url(chars/triangle-sapphire.webp)!important}
.face.ava{background-image:url(chars/circle-honey.webp)!important}
.face.rex{background-image:url(chars/square-sapphire.webp)!important}
.face.milo{background-image:url(chars/triangle-coral.webp)!important}
.face.juno{background-image:url(chars/circle-sage.webp)!important}
.face.noia{background-image:url(chars/square-teal.webp)!important}
/* Agent banners: the homepage wallpaper, rotating per visit */
.p .banner,.dark .banner{background:#0b1224 var(--wall) center/cover no-repeat!important}
.face{border:0!important;border-radius:26%}
/* glyphs inside a coloured app tile stay white, in menus too */
.app .ic,.mi .app .ic{color:#fff!important;stroke-width:2}
/* more agents mapped to characters (Theo the Engineer, Pip, Kip) */
.theo{--c:#5fd3c6}
.face.theo,.face[style*="#5fd3c6"]{background-image:url(chars/triangle-teal.webp)!important}
.face.pip{background-image:url(chars/triangle-purple.webp)!important}
.face.kip{background-image:url(chars/circle-sapphire.webp)!important}
/* send arrow and account button: white on ink in light mode, dark on light ink in dark mode */
.p .send,.p .acct{color:#fff}
.p.dark .send,.p.dark .acct{color:#111}
/* Studio, the media agent in every workspace (K-23): one purple character everywhere */
.face.pip,.face.iris,.face.studio{background-image:url(chars/circle-purple.webp)!important}
/* K-22 main sidebar, the same on every desktop app screen */
.k22{gap:1px!important;padding:12px 8px!important;overflow-y:auto;overflow-x:hidden}
.k22-fixed{position:fixed;left:0;top:0;bottom:0;width:256px;min-height:0!important;z-index:4;background:var(--bg);border-right:1px solid var(--line);display:flex;flex-direction:column}
.k22-pad{padding-left:256px;box-sizing:border-box}
.k22-pad .topbar{justify-content:flex-end}.k22-pad .topbar>.logo{display:none}
.stage>.k22-fixed{position:absolute;z-index:1}.stage>.k22-fixed~.ghost-page{left:256px}
.k22-top{display:flex;align-items:center;gap:2px;padding:0 2px 8px 6px}
.k22-ib{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:999px;background:transparent;color:var(--fg-3);cursor:pointer;flex:none}
.k22-ib:hover{background:var(--bg-hover);color:var(--fg)}
.k22-search{display:flex;align-items:center;gap:8px;height:34px;margin:0 0 6px;padding:0 10px;border:0;border-radius:12px;background:var(--bg-subtle);box-shadow:0 0 0 1px var(--line);color:var(--fg-3);font:inherit;font-size:13px;cursor:pointer;flex:none}
.k22-n,.k22-a,.k22-t,.k22-me{display:flex;align-items:center;gap:10px;border-radius:10px;color:var(--fg-2);text-decoration:none;font-size:13px;flex:none;min-width:0}
.k22-n{height:32px;padding:0 10px}
.k22-n:hover,.k22-a:hover,.k22-t:hover,.k22-me:hover{background:var(--bg-hover);color:var(--fg)}
.k22-n.on,.k22-a.on,.k22-t.on,.k22-me.on{background:var(--bg-subtle);color:var(--fg);font-weight:600;box-shadow:inset 0 0 0 1px var(--line)}
.k22-c{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--fg);color:var(--bg);font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.k22-c.soft{background:transparent;color:var(--fg-3);font-weight:500}
.k22-sub{height:28px;padding:0 10px 0 36px;font-size:12.5px}
.k22-sub .n{font-size:11px;color:var(--fg-3);font-weight:500}
.k22-h{font-size:11px;line-height:15px;font-weight:500;color:var(--fg-3);padding:12px 10px 4px;flex:none}
.k22-a{height:32px;padding:0 8px;color:var(--fg)}
.k22-a .face{font-size:22px}
.k22-a .chev{width:12px;height:12px;color:var(--fg-3);transition:transform .15s}
.k22-a.open .chev{transform:rotate(90deg)}
.k22-t{height:28px;padding:0 8px 0 40px;font-size:12.5px}
.k22-t .tag{height:18px;padding:0 7px;font-size:10.5px}
.k22-sp{flex:1 1 auto;min-height:10px}
.k22-me{height:44px;padding:0 8px;margin-top:4px;color:var(--fg)}
.k22-av{width:28px;height:28px;border-radius:999px;background:#151515;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex:none}
.k22 .ic,.k22s .ic{width:16px;height:16px;margin:0;color:inherit}
.k22-fixed.k22s{width:232px;padding:16px 10px;gap:2px}
.k22-pad.k22-ps{padding-left:232px}
.k22:not(.k22-fixed){position:sticky;top:0;height:100vh;min-height:0!important;align-self:flex-start;box-sizing:border-box}
/* K-31 avatars: every face is a circle with a soft tint behind the figure; the figure sits inside, head never clipped */
.kip{--c:#7cc4ec}.studio{--c:#c7aef3}
.face{border-radius:50%!important;background-color:color-mix(in srgb,var(--c) 32%,#fff)!important;background-size:80% auto!important;background-position:center 58%!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)!important;overflow:hidden}
.face.noia{background-color:#d9f2ef!important}.face.theo{background-color:#d7f3f0!important}
.p.dark .face{background-color:color-mix(in srgb,var(--c) 30%,#1c1c1f)!important}
.face.ring{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--green)!important}
.face.ring-o{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--tag-orange-ic)!important}
.face.agent-cur{box-shadow:0 0 0 2px #fff,0 4px 10px rgba(0,0,0,.3)!important}

/* K-32: the agent's Computer is monitor-shaped (about 16:10) with a menu-bar header, the wallpaper desktop,
   a floating browser window and a small dock. Screen / Crew / Files / Terminal are tabs of the same monitor. */
.p .cpane{min-height:0!important;align-self:flex-start;position:sticky;top:0;display:flex;flex-direction:column;gap:0}
.p .desk{height:auto!important;min-height:0!important;aspect-ratio:16/10;border-radius:14px!important;box-shadow:0 0 0 6px #18181b,0 0 0 7px #3f3f46,0 18px 40px rgba(0,0,0,.22);margin:7px 7px 0}
.p .desk-h{flex:none;height:30px;padding:0 6px 0 12px!important;gap:8px!important;font-size:12px!important;font-weight:600;background:rgba(8,12,24,.42);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.p .desk-h .desk-t{font-size:11.5px;font-weight:500;opacity:.92}
.p .desk-h .dib{width:24px;height:24px;border-radius:6px}.p .desk-h .dib .ic{width:14px;height:14px}
.p .desk-h .using{height:20px;padding:0 8px;font-size:11px;gap:5px}
.p .desk .ctabs{padding:7px 12px 0!important;gap:4px}
.p .desk .ctab{height:22px;padding:0 9px;font-size:11px}
.p .desk .win{margin:8px 26px 0!important;border-radius:9px!important;flex:1;min-height:0}
.p .desk .wtabs{height:28px;padding:4px 6px 0}
.p .desk .wtab{height:24px;padding:0 9px;font-size:11px;gap:5px;max-width:150px}.p .desk .wtab .ic{width:12px;height:12px}
.p .desk .wbar{height:30px;padding:0 6px;gap:2px}
.p .desk .waddr{height:22px;font-size:11px;padding:0 10px}
.p .desk .wib{width:22px;height:22px}.p .desk .wib .ic{width:13px;height:13px}
.p .desk .pg-nav{height:28px;font-size:11px;gap:12px}
.p .desk .pg{padding:10px 12px;font-size:11px;gap:2px}
.p .desk .pg-tr{padding:3px 0}
.p .desk .dockbar{margin:7px auto 7px!important;padding:4px!important;gap:5px!important;border-radius:12px!important}
.p .desk .dk{width:30px!important;height:30px!important;border-radius:8px!important}.p .desk .dk .ic{width:15px!important;height:15px!important}
.p .desk .dk.on::after{bottom:-4px;width:4px;height:4px}
.p .desk .crew-g{margin:8px 12px 10px!important;gap:6px!important}
.p .desk .cterm{font-size:9.5px;line-height:14px;padding:6px 8px}
.p .desk .cterm.big{margin:8px 12px 10px!important;font-size:11.5px;line-height:18px}
.p .desk .cfiles{margin:8px 12px 10px!important;padding:10px;grid-template-columns:repeat(6,minmax(0,1fr))}
.p .desk .desk-c{font-size:14px}
.p .desk .power{width:56px;height:56px}.p .desk .power .ic{width:22px;height:22px}
/* the stand under the monitor */
.mon-stand{align-self:center;width:84px;height:16px;margin-top:6px;background:linear-gradient(#3f3f46,#27272a);clip-path:polygon(22% 0,78% 0,100% 100%,0 100%);border-radius:0 0 4px 4px;flex:none}
.mon-now{margin:14px 6px 0;display:flex;flex-direction:column;gap:2px}
.mon-row{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 10px;border-radius:10px;font-size:13px;color:var(--fg)}
.mon-row:hover{background:var(--bg-hover)}
/* K-27: no "Take over?" pop-up. Idle: hover and use it. Mid-run: one line, one tap; the agent pauses at a safe step. */
.wheel{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 4px 0 12px;border-radius:999px;background:rgba(24,24,27,.86);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;font-size:12px;font-weight:500;white-space:nowrap;z-index:3;box-shadow:0 6px 18px rgba(0,0,0,.28);transition:opacity .15s}
.wheel .live{width:6px;height:6px;box-shadow:none;background:#34d399}
.wheel button,.wheel a{height:22px;padding:0 10px;border-radius:999px;border:0;background:#fff;color:#18181b;font:inherit;font-size:12px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center}
.wheel.hov{opacity:0}
.wpage:hover .wheel.hov,.mscreen:hover .wheel.hov{opacity:1}
/* Long lists: the first few rows, then one "See all (N)" link, the same everywhere */
.see-all{display:flex;align-items:center;gap:4px;min-height:34px;padding:0 16px;font-size:12.5px;font-weight:500;color:var(--fg-2);text-decoration:none;border:0;background:transparent;cursor:pointer;font-family:inherit}
.see-all:hover{color:var(--fg)}
.see-all::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-top:1.5px solid currentColor;transform:rotate(45deg);margin-left:2px}
/* browser tab strip for any monitor that doesn't define its own */
.wtabs{display:flex;align-items:flex-end;gap:2px;background:#f1f1f3;flex:none}
.wtab{display:inline-flex;align-items:center;border-radius:8px 8px 0 0;color:#52525b;background:transparent;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wtab.on{background:#fff;color:#18181b;font-weight:500}
/* the phone's full-screen Computer sheet stays full screen */
.p .desk.ph{aspect-ratio:auto;height:100%!important;margin:0;box-shadow:none;border-radius:0!important}
/* monitor dock for any screen that doesn't define its own */
.dockbar{align-self:center;display:flex;background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 6px 20px rgba(0,0,0,.25),inset 0 0 0 1px rgba(255,255,255,.55);flex:none}
.dk{background:#fff;color:#18181b;display:flex;align-items:center;justify-content:center;position:relative;border:0;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.dk .ic{stroke:#18181b}
/* a chat with the monitor beside it: the chat column yields so the monitor never wraps below */
.shell:has(.cpane)>.main{flex-basis:440px;min-width:0}
/* the Computer's wallpaper picker: six homepage wallpapers + rotate daily */
.wps{display:inline-flex;align-items:center;gap:6px;flex:none}
.wp{width:36px;height:24px;border-radius:6px;border:0;padding:0;background:#0b1224 center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--fg-2);font-size:13px}
.wp.on{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--fg)}
.wp.rot{background:var(--bg-subtle);box-shadow:inset 0 0 0 1px var(--line-2)}
.dib{display:inline-flex;align-items:center;justify-content:center;flex:none;border:0;background:transparent;color:#fff;cursor:pointer}
.dib:hover{background:rgba(255,255,255,.14)}
.desk-t{white-space:nowrap}
/* K-39 top tabs: one strip above the page (and the Computer), the same open tabs on every screen */
.tstrip{display:flex;align-items:center;gap:4px;height:48px;padding:6px 10px 6px 12px;background:#f3f3f5;border-bottom:1px solid var(--line);box-sizing:border-box;min-width:0;overflow:hidden}
.p.dark .tstrip{background:#17191a}
.tpin{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--fg-3);flex:none}
.tpin:hover{background:color-mix(in srgb,var(--fg) 7%,transparent)}
.tpin.on{background:var(--bg);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.035),0 6px 18px rgba(0,0,0,.065)}
.tpin .face{font-size:18px}
.tsep{width:1px;height:20px;background:var(--line);margin:0 4px;flex:none}
.ttab{position:relative;display:flex;align-items:center;gap:8px;height:34px;padding:0 10px 0 9px;border-radius:10px;font:500 13px/1 Geist,Inter,sans-serif;letter-spacing:-.01em;color:var(--fg-2);max-width:200px;min-width:96px;flex:0 1 auto;text-decoration:none}
.ttab:hover{background:color-mix(in srgb,var(--fg) 7%,transparent)}
.ttab .face{font-size:18px;flex:none}
.ttab .tic{width:16px;height:16px;flex:none;color:var(--fg-3);fill:none;stroke:currentColor;stroke-width:1.75}
.ttab .tl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ttab .tx{width:18px;height:18px;border-radius:6px;display:grid;place-items:center;color:var(--fg-3);opacity:0;flex:none;margin-left:auto}
.ttab:hover .tx,.ttab.on .tx{opacity:1}
.ttab.on{background:var(--bg);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.035),0 6px 18px rgba(0,0,0,.065)}
.ttab .live{width:7px;height:7px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 3px color-mix(in srgb,#16a34a 22%,transparent);flex:none}
.ttab .unread{width:6px;height:6px;border-radius:50%;background:#0562ef;flex:none}
.tplus,.tpanel{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--fg-2);flex:none;border:0;background:transparent;cursor:pointer}
.tplus:hover{background:color-mix(in srgb,var(--fg) 7%,transparent)}
.tmore{height:30px;padding:0 10px;border-radius:999px;border:0;font:500 12px/1 Geist,Inter,sans-serif;color:var(--fg-2);display:flex;align-items:center;gap:4px;background:rgba(0,0,0,.05);flex:none;cursor:pointer}
.tsp{flex:1;min-width:8px}
.tpanel{color:var(--fg);background:var(--bg);box-shadow:0 1px 2px rgba(0,0,0,.035),0 6px 18px rgba(0,0,0,.065)}
.tstrip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.tstrip .tx svg{width:12px;height:12px}
.shell:has(>.tstrip){display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto 1fr;align-items:stretch}
.shell:has(>.tstrip)>.k22{grid-column:1;grid-row:1/span 2}
.shell:has(>.tstrip)>.tstrip{grid-column:2/-1;grid-row:1;position:sticky;top:0;z-index:5}
.shell:has(>.tstrip)>:not(.k22):not(.tstrip):not(.cpane){grid-column:2;grid-row:2;min-width:0}
.shell:has(>.tstrip)>.cpane{grid-column:3;grid-row:2;width:min(44vw,680px);top:48px}
.shell:has(>.tstrip)>.cpane.big{width:62vw}
.k22-pad>.tstrip{position:sticky;top:0;z-index:3}
.shell:has(>.tstrip){min-height:100vh}
.shell:has(>.tstrip)>.main{min-height:calc(100vh - 48px)}
.shell:has(>.tstrip)>section.main:has(.dock){height:calc(100vh - 48px);min-height:0}
