@charset "UTF-8";
:root{color-scheme:dark;--bg:#0a0e1c;--panel:#111727;--raised:#192238;--line:#283045;--ink:#f2f4ff;--sub:#a2afc9;--lilac:#b3a4ff;--mint:#59dfbc;--aqua:#69d9ff;--accent:#7763ee;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a,select{touch-action:manipulation}button,select{cursor:pointer}button{border:none;background:none}a{color:inherit;text-decoration:none}small{font-size:.78rem;color:var(--sub)}h1,h2,h3,p{margin:0}h2{font-size:1.08rem;letter-spacing:-.025em}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--aqua);outline-offset:2px}button:hover,a:hover{filter:brightness(1.16)}
.sr,.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;z-index:5;padding:.65rem;background:var(--raised)}[hidden]{display:none!important}
.app{display:grid;grid-template-columns:198px minmax(0,1fr);min-height:100dvh;background:radial-gradient(ellipse 90% 560px at 65% -140px,#29254a 0%,transparent 100%),var(--bg)}.rail{display:flex;flex-direction:column;padding:27px 13px 18px;background:linear-gradient(165deg,#101428,#080d18 78%);border-right:1px solid var(--line)}.brand{padding:0 6px 34px;display:inline-flex;align-items:center;gap:11px;font-weight:760;letter-spacing:-.04em;font-size:1.32rem;line-height:1}.brand-lockup{display:block;flex:none;width:116px;height:38px;background:url("baton-logo.webp?v=2") left center/contain no-repeat;filter:drop-shadow(0 0 12px rgba(102,148,255,.22));transition:filter .18s ease}.brand>span:not(.sr):not(.brand-lockup){background:linear-gradient(108deg,#d7c3ff 0%,#9f8eff 34%,#6cb2ff 68%,#5beeff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 12px rgba(102,148,255,.26));transition:filter .18s ease}.brand:hover{filter:none}.brand:hover .brand-lockup{filter:drop-shadow(0 0 16px rgba(102,178,255,.42))}.brand:hover .gem{box-shadow:0 0 0 1px rgba(132,198,255,.52),0 0 22px rgba(102,162,255,.44)}.brand:hover>span:not(.sr):not(.brand-lockup){filter:drop-shadow(0 0 15px rgba(102,178,255,.42))}.gem{display:inline-block;flex:none;width:34px;height:34px;border-radius:50%;background:url("baton-mark.png?v=6") center/cover no-repeat;box-shadow:0 0 0 1px rgba(132,162,255,.28),0 0 18px rgba(102,134,255,.28);transition:box-shadow .18s ease}.gem.little{display:none;border-radius:50%}.railtitle,.overline,.sectiontitle{text-transform:uppercase;color:var(--sub);letter-spacing:.13em;font-weight:650;font-size:.65rem}.railtitle{padding:8px 12px}.rail nav{display:grid;gap:4px}.rail nav :is(a,button),.railfoot>a{display:flex;gap:10px;align-items:center;padding:11px 12px;min-height:44px;border-radius:9px;color:var(--sub);font-size:.89rem;text-align:left}.rail nav .active{color:#e8e3ff;background:linear-gradient(95deg,#302848,#221f39);box-shadow:inset 2px 0 #9b83ff}.railfoot{margin-top:auto}.owner{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:15px;padding:16px 8px 0}.owner small,.person small{display:block}.rail nav b,.count,.sectiontitle b{border-radius:7px;background:#242c40;color:var(--sub);padding:1px 6px;font:600 .73rem/1.6 system-ui}.rail nav b{margin-left:auto}svg.ico{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:none}
main{width:100%;max-width:2000px;min-width:0;margin:auto;padding:0 clamp(16px,2.2vw,42px) 22px;align-self:start}.top{height:60px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.top>span{display:flex;align-items:center;gap:12px;color:var(--sub);font-size:.83rem}.top em{font-style:normal;color:#57607a}.top strong{color:#d7def2;font-weight:550}.top select,dialog select{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:8px 10px;max-width:210px}.heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:27px 0 24px}.heading h1{font-size:clamp(2rem,3.05vw,3.2rem);font-weight:640;letter-spacing:-.055em;line-height:1.12;margin-top:7px}.overline{display:flex;align-items:center;gap:8px}.signal,.status i,.dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:var(--mint)}.signal{background:#9c82ff;box-shadow:0 0 9px #8a74ff}.primary{background:linear-gradient(108deg,#4d66d6,#7150d8);box-shadow:inset 0 0 0 1px #bdb4ff45,0 5px 16px #3e38ad26;color:white;font-weight:600;border-radius:10px;padding:10px 16px;min-height:44px;display:inline-flex;gap:8px;align-items:center;justify-content:center}
.workspace{display:grid;grid-template-columns:minmax(215px,.85fr) minmax(325px,1.85fr) minmax(175px,.65fr);gap:12px;align-items:stretch;height:calc(100dvh - 196px);min-height:520px}.panel{border:1px solid var(--line);border-radius:16px;background:linear-gradient(160deg,#151b2c 0,#101624 70%);min-width:0}.inbox{display:flex;flex-direction:column;overflow:hidden}.inboxhead,.threadhead,.dialoghead,.sectiontitle{display:flex;align-items:center;justify-content:space-between}.inboxhead{margin:17px 16px 12px}.search{display:flex;align-items:center;gap:8px;background:#0b111f;border:1px solid var(--line);border-radius:8px;margin:0 12px;padding:6px 9px;color:var(--sub)}.search input{border:0;background:none;min-width:0;width:100%;font-size:.82rem;outline:none}.search:focus-within{border-color:#7976a6}.chips{display:flex;gap:4px;padding:10px 12px}.chips :is(a,button){padding:5px 10px;border-radius:7px;color:var(--sub);font-size:.76rem;font-weight:600}.chips .chosen{background:#312b4d;color:#ded6ff}.roomlist,.timeline,.inspect,.directory,.checks{overflow:auto;scrollbar-width:thin;scrollbar-color:#37425b transparent}.roomlist{border-top:1px solid var(--line);padding:6px;flex:1}.roomrow{display:flex;align-items:center;gap:10px;padding:12px 9px;border:1px solid transparent;border-radius:10px;margin:2px 0}.roomrow:hover{background:#192134}.roomrow.current{background:linear-gradient(110deg,#282641,#1e2337);border-color:#53476f}.rowtext{min-width:0;display:grid;gap:2px}.rowtext :is(strong,small){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.rowtext strong{font-size:.87rem;font-weight:610}.dot{width:5px;height:5px;background:#e7b779;margin-right:4px}.avatar,.groupicon,.iconbutton,.core{display:inline-grid;place-items:center;vertical-align:middle}.avatar{width:33px;height:33px;border-radius:11px;background:#333754;color:#dbd6ff;overflow:hidden;flex:none;font-weight:700}.avatar img{width:100%;height:100%;object-fit:cover}.a-ceo,.a-codex{background:#d2c8ff}.avatar > img[src*="codex.svg"]{padding:2.5px}.avatar.mini{width:27px;height:27px;border-radius:8px}.groupicon,.rowicon>.ico{width:34px;height:34px;color:#c9b5ff;background:#3b3058;border-radius:10px;padding:7px}.thread{display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(160deg,#161d30 0%,#101524 50%)}.threadbar{display:contents}.threadhead{padding:16px 19px 10px;gap:10px}.threadlabel{font-size:.72rem;color:var(--sub)}.threadlabel h2{font-size:1.36rem;color:var(--ink);font-weight:620;margin-top:1px}.iconbutton,.outline{border:1px solid var(--line);border-radius:9px;color:#cad2e9;min-height:40px}.iconbutton{width:40px}.statebar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:0 19px 13px;border-bottom:1px solid var(--line);font-size:.72rem;color:var(--sub)}.status{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:20px;background:#16302f;color:#90e4c9}.status.held{color:#f2c185;background:#372d29}.status.held i{background:#edae65}.timeline{flex:1;min-height:0;padding:18px}.message{display:flex;gap:10px;margin-bottom:19px}.message>div{flex:1;min-width:0}.by{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}.by b{font-size:.86rem}.by time{font-size:.66rem;color:var(--sub)}.message p,.historical p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.91rem;line-height:1.52;color:#d7dff2;margin:4px 0 0}.event{display:flex;gap:8px;padding:8px 0;font-size:.77rem;color:var(--sub);align-items:start}.event svg{width:14px}.intervention{margin:0 14px 10px;padding:10px 12px;display:flex;align-items:center;gap:10px;border-radius:10px;border:1px solid #66533e;background:linear-gradient(105deg,#332c28,#252330)}.intervention>svg{color:#f1bc7a}.intervention b{font-size:.84rem}.intervention small{display:block;font-size:.73rem;color:#c4b8aa}.intervention button{margin-left:auto;background:#4b3b34;border:1px solid #766044;border-radius:8px;color:#ffe1b4;font-size:.78rem;padding:6px 10px;min-height:36px;white-space:nowrap}.compose{margin:0 13px 14px;padding:9px 11px;border-radius:12px;background:#192033;border:1px solid #343e58}.compose textarea{border:0;resize:vertical;min-height:36px;max-height:18vh;font-size:.9rem;width:100%;background:none;padding:0}.compose footer{display:flex;align-items:center;justify-content:space-between}.send{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:#7965df;color:white}.inspect{padding:20px 15px;align-self:start}.inspect h2{margin-top:6px}.orbmap{height:98px;position:relative;overflow:hidden;margin:10px -6px 14px;background:radial-gradient(ellipse,#5e48ae44,transparent 68%)}.orbit{position:absolute;border:1px solid #6861bf88;width:80%;height:35px;border-radius:50%;left:10%;top:30px;transform:rotate(-14deg)}.o2{border-color:#478dbe80;transform:rotate(17deg)}.core,.bead{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.core{width:35px;height:35px;background:linear-gradient(150deg,#8875e6,#312f56);border-radius:10px;box-shadow:0 0 20px #9172f04d}.bead{width:7px;height:7px;border-radius:100%;background:#84c9ff;top:39%;left:17%}.b2{background:#bb96ff;left:84%;top:30%}.person{display:flex;align-items:center;gap:9px;font-size:.84rem;margin:12px 0}.sectiontitle{margin-bottom:13px}.inspect hr,dialog hr{border:0;border-top:1px solid var(--line);margin:16px 0}.projectname{display:block;font-size:.86rem;margin:3px 0 14px}.outline{padding:8px 10px;font-size:.8rem;width:100%}.empty,.blank,.history{padding:15px;color:var(--sub)}.empty h3,.blank h2{margin:8px 0}.history{padding:10px;background:#1a2235;border-radius:8px;margin-bottom:16px;font-size:.86rem}.history summary{cursor:pointer}.historical{padding:10px 0;border-bottom:1px solid var(--line)}.history a,.blank a,.past,dialog a:not(.directory a){color:var(--lilac)}.history a{display:block;margin-top:10px}
dialog{background:#171e31;color:var(--ink);border:1px solid #414a64;border-radius:17px;padding:20px;width:min(440px,94vw);max-height:85dvh;overflow:auto;box-shadow:0 25px 90px #0009}dialog::backdrop{background:#070a16be;backdrop-filter:blur(5px)}.dialoghead{margin-bottom:12px}.dialoghead button{font-size:1.55rem;width:44px}.dialoghead h2{font-size:1.25rem}dialog form>label{display:grid;gap:7px;font-weight:550;font-size:.88rem;margin:14px 0}dialog :is(input:not([type=checkbox]),textarea,select){width:100%;max-width:none;padding:10px;background:#0e1423;border:1px solid var(--line);border-radius:8px}dialog fieldset{margin:16px 0;border:0;padding:0}dialog legend,dialog p{font-size:.85rem;color:var(--sub);margin-bottom:12px}.checks,.directory{display:grid;grid-template-columns:1fr 1fr;gap:4px;max-height:35vh}.checks label,.directory a{display:flex;align-items:center;gap:7px;min-height:44px;font-size:.82rem}.directory a span{margin-left:auto}.checks input{accent-color:var(--accent)}.directory{margin-bottom:16px}.directory a{background:var(--raised);border-radius:8px;padding:6px}.back,.mobilebar{display:none}
@media(min-width:1650px){.message p{font-size:1rem}}
@media(max-width:820px){:root{--safe-top:max(0px,calc(env(safe-area-inset-top,0px) - 10px))}html{min-height:calc(100% + env(safe-area-inset-top,0px))}body.baton-conversations{min-height:calc(100dvh + env(safe-area-inset-top,0px));overflow-x:clip;background:radial-gradient(ellipse 90% 560px at 65% -140px,#29254a 0%,transparent 100%),var(--bg)}html[data-theme="light"] body.baton-conversations{background:radial-gradient(ellipse 85% 420px at 75% 0px,var(--baton-wash),transparent 100%),var(--baton-bg)}body.baton-conversations::before{content:"";position:fixed;top:0;left:0;right:0;height:var(--safe-top);background:radial-gradient(ellipse 90% 560px at 65% -140px,#29254a 0%,transparent 100%),var(--bg);z-index:35;pointer-events:none}html[data-theme="light"] body.baton-conversations::before{background:radial-gradient(ellipse 85% 420px at 75% 0px,var(--baton-wash),transparent 100%),var(--baton-bg)}.app{display:block;min-height:calc(100dvh + env(safe-area-inset-top,0px))}.rail,.rail-toggle,.inspect-toggle-link,.inspect-hide-btn,html[data-inspect] .inspect,.inspect{display:none}main{padding:var(--safe-top) max(14px,env(safe-area-inset-right,0px)) calc(80px + max(0px,env(safe-area-inset-bottom,0px) - 11px)) max(14px,env(safe-area-inset-left,0px))}.top{position:sticky;top:var(--safe-top);z-index:30;height:44px;margin-inline:calc(max(14px,env(safe-area-inset-left,0px)) * -1);padding-inline:max(14px,env(safe-area-inset-left,0px));background:radial-gradient(ellipse 90% 560px at 65% calc(-140px - var(--safe-top)),#29254a 0%,transparent 100%),var(--bg)}.top .gem.little{display:inline-block;width:24px;height:24px;border-radius:50%}.top span{gap:7px}.top strong,.top em{display:none}.top select{font-size:16px;max-width:48vw}.heading{padding:14px 0 14px}.heading h1{font-size:2.1rem}.workspace{display:block;height:auto;min-height:0}.inbox{min-height:50vh}.roomlist{overflow:visible}.thread,.blank{display:none}body.has-room{overscroll-behavior-y:none}.has-room .app{position:fixed;inset:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}.has-room main{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;margin:0;padding:var(--safe-top) max(10px,env(safe-area-inset-right,0px)) calc(59px + max(10px,env(safe-area-inset-bottom,0px) - 11px)) max(10px,env(safe-area-inset-left,0px))}.has-room .top{position:relative;top:auto;flex:none;margin-inline:calc(max(10px,env(safe-area-inset-left,0px)) * -1);padding-inline:max(10px,env(safe-area-inset-left,0px));touch-action:none}.has-room .workspace{flex:1;min-height:0;display:flex;flex-direction:column}.has-room .thread{display:flex;flex-direction:column;flex:1;height:auto;min-height:0;margin-top:6px;overflow:hidden}.has-room .heading,.has-room .inbox{display:none}.has-room .threadbar{flex:none;display:flex;align-items:center;gap:6px;padding:5px 8px 5px 4px;border-bottom:1px solid var(--line);min-height:42px}.has-room .threadhead,.has-room .statebar{display:contents}.has-room .threadbar .back{order:1;flex:none;width:30px;min-height:32px;font-size:1.45rem;border-radius:8px}.has-room .threadbar .threadlabel{order:2;flex:1;min-width:0}.has-room .threadbar .threadlabel .threadkind{display:none}.has-room .threadbar .threadlabel h2{font-size:.96rem;line-height:1.2;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.has-room .threadbar .status{order:3;flex:none;padding:2px 7px;font-size:.67rem;line-height:1.2;white-space:nowrap}.has-room .threadbar .participants{order:4;flex:none;font-size:.68rem;color:var(--sub);white-space:nowrap}.has-room .threadbar .next-speaker{display:none}.has-room .threadbar .iconbutton{order:5;flex:none;width:32px;min-width:32px;height:32px;min-height:32px;border-radius:8px}.has-room .turnstate{flex:none;padding:5px 10px;font-size:.74rem}.back{display:grid;place-items:center;font-size:1.55rem;width:34px;min-height:34px;border-radius:9px}.timeline{padding:10px 12px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}.message{gap:8px}.compose textarea,.search input,dialog input,dialog textarea,dialog select{font-size:16px}.compose textarea{max-height:72px}.send,.iconbutton,.intervention button,.chips :is(a,button){min-height:44px}.send,.iconbutton{min-width:44px}.chips{padding:4px 12px;align-items:center}.chips a{display:grid;align-items:center}.mobilebar{display:flex;justify-content:space-around;align-items:center;position:fixed;z-index:20;bottom:0;left:0;right:0;background:rgba(13,18,34,.95);border-top:1px solid var(--line);padding:8px max(8px,env(safe-area-inset-right,0px)) max(10px,calc(env(safe-area-inset-bottom,0px) - 11px)) max(8px,env(safe-area-inset-left,0px));-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);-webkit-transform:translateZ(0);transform:translateZ(0)}.mobilebar :is(a,button){display:grid;justify-items:center;align-content:center;gap:4px;font-size:.7rem;font-weight:540;line-height:1.1;color:#c8cde3;min-height:44px;min-width:58px;padding:3px 4px}.mobilebar svg.ico{width:22px;height:22px}.mobilebar :is(a,button).active{color:#bdadff}.intervention{margin:0 9px 7px;padding:7px}.compose{margin:6px 8px 8px}.primary{font-size:.85rem}dialog{max-height:82dvh}.search input{min-height:33px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.updates{background:#302a4f;color:#e4d9ff;padding:7px;font-size:.84rem;min-height:42px}

@media(min-width:1100px){.rail nav :is(a,button){gap:8px;padding-inline:9px}}

.turnstate{padding:8px 14px;color:var(--muted,#bdc5da);font-size:13px;border-bottom:1px solid #343a50}.turnstate form{margin-top:4px}.toagent{display:flex;gap:8px;align-items:center;font-size:13px}.toagent select{background:#20263a;color:inherit;border:1px solid #515b76;border-radius:9px;padding:6px;max-width:55vw}
.handoff-card{margin:.6rem 0;padding:.6rem .85rem;border:1px solid #434d6b;border-radius:12px}.handoff-card legend{font-weight:650}.handoff-card label{display:flex;align-items:flex-start;gap:.65rem;padding:.5rem 0;cursor:pointer}.handoff-card input{width:18px;height:18px;accent-color:#9283ff;flex:none}.handoff-card small{display:block;color:#b9c2d8;margin-top:.2rem}.handoff-card+details{font-size:.85rem;color:#c0c9de}.handoff-card+details summary{cursor:pointer}

.orbit-chats{border-radius:8px;background:var(--raised)}.orbit-chats summary{display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 10px;font-size:.82rem;cursor:pointer}.orbit-chats summary::after{content:'⌄';margin-inline-start:auto}.orbit-chats[open]{grid-column:1/-1}.orbit-chats nav{padding:0 8px 6px}.orbit-chats nav a{padding-inline-start:20px}.orbit-destination code,.orbit-destination a{display:block;margin-top:5px}.orbit-destination code{font-size:.8rem;overflow-wrap:anywhere}

/* Room composer */
.baton-conversations .compose {position:relative;flex:none;padding:10px 12px 6px;border-radius:17px}
.baton-conversations .compose textarea {
  display:block;box-sizing:border-box;width:100%;min-height:26px;max-height:min(32dvh,220px);
  height:26px;padding:2px 3px;background:transparent;color:var(--ink);border:0;border-radius:0;
  outline:none;box-shadow:none;resize:none;font:inherit;font-size:16px;line-height:22px;caret-color:currentColor;
}
.baton-conversations .compose textarea:focus-visible {outline:none;box-shadow:none}
.compose footer {justify-content:flex-start;gap:7px;margin-top:4px}
.compose footer .send {margin-inline-start:auto}
.compose .attach-control {position:relative;display:grid;place-items:center;width:44px;height:44px;cursor:pointer;color:var(--sub)}
.compose .attach-control span {display:grid;place-items:center;width:32px;height:32px;border-radius:9px}
.compose .attach-control:hover span,.compose .attach-control input:focus-visible+span {background:var(--panel);color:var(--ink)}
.compose .attach-control input:focus-visible+span,.compose :is(button,select):focus-visible,.room-file:focus-visible {
  outline:1px solid var(--sub);outline-offset:1px
}
.compose .send:disabled {opacity:.45;cursor:default}
.compose .send {position:relative}
.compose .send::after {content:"";position:absolute;inset:-6px}
.compose .compose-error {color:var(--ink);font-size:.82rem;margin:6px 3px}
.compose-files,.room-files {display:flex;gap:7px;max-width:100%;min-width:0}
.room-files {flex-wrap:wrap;margin-block:4px 6px}
.message > div,.historical {min-width:0}
.compose-files {
  align-items:center;padding:2px;margin-block:2px 6px;overflow-x:auto;
  scrollbar-width:thin;scrollbar-color:var(--line) transparent;
}
.room-file,.compose-files .attachment-tile {
  display:grid;place-items:center;padding:0;position:relative;flex:none;overflow:hidden;
  border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--sub);
}
.room-file {width:57px;height:57px}
.room-file img {width:100%;height:100%;object-fit:cover}
.room-file[data-kind="image"],.compose-files [data-kind="image"] {border:0}
.compose-file {position:relative;isolation:isolate;flex:none}
.compose-files .attachment-art {width:64px;height:64px;background:transparent;border-radius:inherit}
.compose-files [data-kind="image"] .attachment-art {
  width:var(--attachment-draft-size,120px);height:var(--attachment-draft-size,120px)
}
.compose-files .attachment-label,.compose-files [data-kind="image"] .attachment-art .symbol {display:none}
.compose-files .attachment-remove {
  position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;
  width:44px;height:44px;padding:0;border:0;background:none;
}
.compose-files .attachment-remove .symbol {
  position:absolute;inset-block-start:8px;inset-inline-end:8px;
  width:22px;height:22px;padding:3px;border-radius:50%;background:#1d1d1f99;color:#fff
}
.compose-files .attachment-remove:focus-visible {outline:none}
.compose-files .attachment-remove:focus-visible .symbol {outline:2px solid var(--ink);outline-offset:2px}
.mention-options {
  position:absolute;z-index:4;inset-inline-start:8px;bottom:calc(100% + 5px);
  width:min(17rem,calc(100% - 16px));max-height:min(14rem,35dvh);overflow:auto;
  padding:4px;border:1px solid var(--line);border-radius:12px;
  background:var(--panel);box-shadow:0 4px 16px #0003;overscroll-behavior:contain;
}
.mention-options button {
  display:flex;align-items:center;gap:.55rem;width:100%;min-height:44px;
  padding:4px 8px;border-radius:8px;text-align:start
}
.mention-options button[aria-selected="true"],.mention-options button:hover {background:var(--raised)}
.chat-mention {color:var(--lilac);font-weight:650}
.message:target .by {color:var(--lilac)}

@media (max-width:820px) {
  .baton-conversations .compose {
    display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0 .2rem;
    align-items:end;padding:.1rem .24rem;border-radius:24px;box-shadow:0 2px 10px #0002;
  }
  .compose > :is(.compose-files,.compose-error,footer) {grid-column:1/-1}
  .baton-conversations .compose textarea {
    grid-column:1/-1;min-height:44px;max-height:min(11rem,calc(var(--chat-viewport-height,100dvh) * .36));
    padding:.7rem .62rem .45rem;overscroll-behavior:contain;
  }
  .compose footer {margin:0;align-items:center}
  .baton-conversations .compose.single-recipient footer {display:contents}
  .compose.single-recipient:not(.is-multiline) :is(.attach-control,textarea,.send) {grid-row:2}
  .compose.single-recipient:not(.is-multiline) .attach-control {grid-column:1}
  .baton-conversations .compose.single-recipient:not(.is-multiline) textarea {grid-column:2;padding:.64rem .2rem}
  .compose.single-recipient:not(.is-multiline) .send {grid-column:3}
  .baton-conversations .compose.single-recipient.is-multiline textarea {grid-column:1/-1;grid-row:2;min-height:28px;padding:.42rem .62rem 0;margin-bottom:-4px}
  .compose.single-recipient.is-multiline :is(.attach-control,.send) {grid-row:3}
  .compose.single-recipient.is-multiline .attach-control {grid-column:1}
  .compose.single-recipient.is-multiline .send {grid-column:3}
  .compose .attach-control span {border-radius:50%}
  .compose .send {
    width:44px;height:44px;border-radius:50%;background:radial-gradient(circle,#7965df 16px,transparent 17px);
  }
  .compose .send::after {inset:0}
  html[data-theme="light"] .baton-conversations .compose textarea {background:transparent}
  .chat-keyboard-open .mobilebar {display:none}
  .chat-keyboard-open .threadbar,.chat-keyboard-open .threadhead,.chat-keyboard-open .statebar,.chat-keyboard-open .turnstate {display:none}
  body.chat-keyboard-open {overscroll-behavior:none}
  .chat-keyboard-open .app {
    position:fixed;inset-inline:0;top:var(--chat-viewport-top);bottom:auto;
    height:var(--chat-viewport-height);min-height:0;overflow:hidden;
  }
  .chat-keyboard-open main {
    display:flex;flex-direction:column;height:100%;min-height:0;padding-bottom:4px;
  }
  .chat-keyboard-open .top {flex:none}
  .chat-keyboard-open .workspace {flex:1;min-height:0;display:flex;flex-direction:column}
  .baton-conversations.chat-keyboard-open .thread {flex:1;height:auto;min-height:0;margin-top:4px}
  .chat-keyboard-open .compose {margin:4px 8px 6px}
  .chat-keyboard-open .compose-files {
    --attachment-draft-size:clamp(52px,calc(var(--chat-viewport-height,100dvh) * .27),120px);
  }
  .chat-keyboard-open .mention-options {max-height:min(12rem,calc(var(--chat-viewport-height,100dvh) * .33))}
}

@media (min-width:821px) {
  .compose.single-recipient {
    display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;gap:0 4px;padding:4px 8px;
  }
  .compose.single-recipient > :is(.compose-files,.compose-error) {grid-column:1/-1}
  .compose.single-recipient footer {display:contents}
  .compose.single-recipient:not(.is-multiline) .attach-control {grid-column:1;grid-row:2}
  .baton-conversations .compose.single-recipient:not(.is-multiline) textarea {grid-column:2;grid-row:2;min-height:44px;padding:11px 4px}
  .compose.single-recipient:not(.is-multiline) .send {grid-column:3;grid-row:2;justify-self:center;margin:0 0 5px}
  .baton-conversations .compose.single-recipient.is-multiline textarea {grid-column:1/-1;grid-row:2;min-height:32px;padding:8px 6px 0;margin-bottom:-4px}
  .compose.single-recipient.is-multiline .attach-control {grid-column:1;grid-row:3}
  .compose.single-recipient.is-multiline .send {grid-column:3;grid-row:3;justify-self:center;margin:0 0 5px}
}

.top-controls {display:flex;align-items:center;gap:.35rem;min-width:0}
.top-controls form {min-width:0}
.top .theme-toggle {display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;color:var(--ink)}
.top .theme-toggle:hover {background:var(--raised)}
.top .theme-toggle .ico {width:19px;height:19px}
html[data-theme="dark"] .theme-toggle .moon-icon,html[data-theme="light"] .theme-toggle .sun-icon {display:none}
.top > .sr {position:absolute}
.intervention {flex-wrap:wrap}
.intervention-actions,.delete-actions {display:flex;align-items:center;gap:.5rem;margin-inline-start:auto}
.intervention-actions button {margin:0;min-height:44px}
.delete-actions {justify-content:flex-end;flex-wrap:wrap;margin-top:1rem}
.delete-room {padding:.4rem .75rem;min-height:44px;border-radius:8px;color:#ffabb8;background:#722e40}
.intervention .delete-room {background:transparent;color:#ffc0ca;border-color:#95606b}
#details > .delete-room {margin-inline-start:.5rem}
#delete-conversation p {line-height:1.5}
html[data-theme="light"] .intervention .delete-room {color:#872235;border-color:#b16b78}
@media(max-width:400px) {
  .top-controls .theme-toggle {width:44px}
  .top-controls #project {max-width:42vw}
}

.model-effort {
  display:inline;font-size:.72rem;font-weight:500;color:var(--sub);margin-inline-start:.35em;
  white-space:nowrap;vertical-align:baseline;letter-spacing:normal
}
.by .model-effort {margin-inline-start:0}

.person .model-effort {display:inline}
.directory a .directory-name {margin-inline-start:0;min-width:0}

.message-body {min-width:0}
.message-toggle {
  display:inline-flex;align-items:center;gap:.35em;margin-block-start:.25rem;padding:.25rem 0;
  min-height:32px;color:var(--lilac);font-size:.8rem;font-weight:600
}
.message-toggle:hover {text-decoration:underline;text-underline-offset:.18em}
@media(max-width:820px){.message-toggle{min-height:44px}}

.image-order {margin-block-start:8px;font-size:.8rem;}
.image-order a {color:var(--lilac);text-decoration:underline;}
.image-order form {display:flex;flex-wrap:wrap;gap:8px;margin-block-start:8px;}
.image-order form .outline {width:auto;}

.railtitle-gap {margin-top:10px}
@media(min-width:821px){
  .app {grid-template-columns:212px minmax(0,1fr)}
  .rail {position:sticky;top:0;height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(110,126,165,.35) transparent;padding:18px 12px 14px;display:flex;flex-direction:column}
  .rail .brand {padding:2px 6px 18px;font-size:1.32rem}
  .rail .railtitle {padding:6px 10px 4px;font-size:.63rem}
  .rail nav {gap:2px}
  .rail nav :is(a,button) {min-height:36px;padding:7px 10px;font-size:.855rem;border:1px solid transparent;gap:10px}
  .railfoot {margin-top:auto;padding-top:10px;display:grid;gap:6px}
  .railfoot .owner {margin-top:4px;padding:12px 6px 2px}
}
.rail nav .active {color:#f3f0ff;background:linear-gradient(95deg,rgba(96,80,214,.34),rgba(50,44,98,.28));border:1px solid rgba(154,134,255,.32);box-shadow:0 4px 16px rgba(48,38,128,.2)}
.rail nav :is(a,button):hover {background:rgba(145,132,255,.1);color:var(--ink);filter:none}
.rail-foot-link,.railfoot>a {display:flex;gap:10px;align-items:center;padding:8px 10px;min-height:36px;border-radius:9px;color:var(--sub);font-size:.84rem;font-weight:520}
.rail-foot-link:hover,.railfoot>a:hover {background:rgba(145,132,255,.1);color:var(--ink);filter:none}
.owner-signout {margin-left:auto;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:var(--sub);font-size:.88rem}
.owner-signout:hover {background:var(--raised);color:var(--ink);filter:none}
.rail-status-card {padding:10px 11px;border-radius:12px;border:1px solid var(--line);background:linear-gradient(160deg,rgba(24,33,56,.88),rgba(14,19,34,.92));display:grid;gap:3px}
.rail-status-head {display:flex;align-items:center;justify-content:space-between;font-size:.75rem;font-weight:620;color:var(--ink)}
.rail-status-dot {width:7px;height:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 9px rgba(89,223,188,.75)}
.rail-status-card.is-warn .rail-status-dot {background:#f5b659;box-shadow:0 0 9px rgba(245,182,89,.75)}
.rail-status-copy {font-size:.73rem;color:#90e4c9;margin:0;line-height:1.3}
.rail-status-card.is-warn .rail-status-copy {color:#f6c982}
.rail-status-sub {font-size:.68rem;color:var(--sub);font-variant-numeric:tabular-nums}
.rail-status-link {margin-top:2px;font-size:.73rem;font-weight:600;color:var(--aqua);display:inline-flex;align-items:center;gap:4px}
.rail-status-link:hover {text-decoration:underline;text-underline-offset:2px;filter:none}
html[data-theme="light"] .rail {background:#ffffff;border-right-color:#dce2f0}
html[data-theme="light"] .gem {box-shadow:0 0 0 1px rgba(90,74,206,.22),0 3px 10px rgba(48,56,128,.18)}
html[data-theme="light"] .brand-lockup {filter:none}
html[data-theme="light"] .brand:hover .brand-lockup {filter:brightness(1.06)}
html[data-theme="light"] .brand>span:not(.sr):not(.brand-lockup) {background:linear-gradient(108deg,#6235d9 0%,#3f5ce2 52%,#0c94b8 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:none}
html[data-theme="light"] .brand:hover>span:not(.sr):not(.brand-lockup) {filter:brightness(1.08)}
html[data-theme="light"] .rail nav :is(a,button) {color:#475573}
html[data-theme="light"] .rail nav :is(a,button):hover {background:#f2f4fc;color:#162038}
html[data-theme="light"] .rail nav .active {background:#edeafd;color:#4230a3;border-color:#cfc6fa;box-shadow:none}
html[data-theme="light"] .rail-status-card {background:#f6f8fd;border-color:#dce2f0}
html[data-theme="light"] .rail-status-copy {color:#0a7b61}
html[data-theme="light"] .rail-status-link {color:#4c3ab0}
html[data-theme="light"] .rail-foot-link,html[data-theme="light"] .railfoot>a {color:#475573}
html[data-theme="light"] .rail-foot-link:hover,html[data-theme="light"] .railfoot>a:hover {background:#f2f4fc;color:#162038}

/* Collapsible left rail, hideable right details, and desktop chat area maximization */
.top-start {display:flex;align-items:center;gap:10px;min-width:0}
.rail-toggle {
  display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;
  color:var(--sub);border:1px solid transparent;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .1s ease
}
.rail-toggle:hover {background:var(--raised);border-color:var(--line);color:var(--ink);filter:none}
.rail-toggle:active {transform:scale(.96)}
.rail-toggle .ico {width:18px;height:18px}
.heading-actions {display:flex;flex-direction:column;align-items:flex-end;position:relative;flex:none}
.inspect-toggle-link {
  display:none;align-items:center;gap:5px;position:absolute;top:calc(100% + 4px);right:0;
  padding:3px 2px;border-radius:6px;font-size:.8rem;font-weight:560;line-height:1.2;
  color:var(--lilac);white-space:nowrap
}
.inspect-toggle-link:hover {text-decoration:underline;text-underline-offset:3px;filter:brightness(1.14)}
.inspect-toggle-link:active {transform:scale(.98)}
.inspect-head {display:flex;align-items:center;justify-content:space-between;gap:8px}
.inspect-hide-btn {
  display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;color:var(--sub);
  transition:background .15s ease,color .15s ease,transform .1s ease
}
.inspect-hide-btn:hover {background:var(--raised);color:var(--ink);filter:none}
.inspect-hide-btn:active {transform:scale(.94)}
.inspect-hide-btn .ico {width:15px;height:15px}

@media (min-width:821px) {
  html[data-w="full"] main {max-width:none}
  html[data-rail="collapsed"] .app {grid-template-columns:minmax(0,1fr)}
  html[data-rail="collapsed"] .rail {display:none}
  html[data-rail="collapsed"] .top .gem.little {display:inline-block;width:22px;height:22px;border-radius:50%}

  body.baton-conversations:not(.baton-page) .app {height:100dvh;min-height:100dvh}
  body.baton-conversations:not(.baton-page) main {
    display:flex;flex-direction:column;height:100dvh;min-height:0;align-self:stretch;
    padding:0 clamp(14px,1.5vw,26px) 14px
  }
  body.baton-conversations:not(.baton-page) .top {height:52px;flex:none}
  body.baton-conversations:not(.baton-page) .heading {flex:none;padding:14px 0 24px}
  body.baton-conversations:not(.baton-page) .heading h1 {font-size:clamp(1.6rem,2.2vw,2.25rem);margin-top:3px}
  body.baton-conversations:not(.baton-page) .workspace {flex:1 1 0;height:auto;min-height:360px}
  body.baton-conversations:not(.baton-page) .inspect {align-self:start;max-height:100%}
  body.baton-conversations:not(.baton-page) .timeline {padding:18px clamp(16px,2vw,28px)}

  body.baton-conversations:not(.baton-projects):not(.baton-usage) .workspace {
    grid-template-columns:clamp(235px,18vw,295px) minmax(320px,1fr) clamp(205px,16vw,255px)
  }
  html[data-inspect="hidden"] body.baton-conversations:not(.baton-projects):not(.baton-usage) .inspect,
  body.baton-conversations:not(.has-room):not(.baton-projects):not(.baton-usage) .inspect {display:none}
  html[data-inspect="hidden"] body.baton-conversations:not(.baton-projects):not(.baton-usage) .workspace,
  body.baton-conversations:not(.has-room):not(.baton-projects):not(.baton-usage) .workspace {
    grid-template-columns:clamp(235px,18vw,305px) minmax(320px,1fr)
  }
  html[data-inspect="hidden"] .inspect-toggle-link {display:inline-flex}
}

@media (min-width:1650px) {
  body.baton-conversations:not(.baton-projects):not(.baton-usage) .workspace {
    grid-template-columns:clamp(260px,16vw,320px) minmax(420px,1fr) clamp(230px,14vw,280px)
  }
  html[data-inspect="hidden"] body.baton-conversations:not(.baton-projects):not(.baton-usage) .workspace,
  body.baton-conversations:not(.has-room):not(.baton-projects):not(.baton-usage) .workspace {
    grid-template-columns:clamp(260px,16vw,330px) minmax(420px,1fr)
  }
}

@media (min-width:821px) and (max-width:1250px) {
  .app {grid-template-columns:175px minmax(0,1fr)}
  html[data-rail="collapsed"] .app {grid-template-columns:minmax(0,1fr)}
  html:not([data-inspect="shown"]) .inspect {display:none}
  html:not([data-inspect="shown"]) body.baton-conversations:not(.baton-projects):not(.baton-usage) .workspace {
    grid-template-columns:clamp(205px,21vw,255px) minmax(300px,1fr)
  }
  html:not([data-inspect="shown"]) .inspect-toggle-link {display:inline-flex}
  html[data-inspect="shown"] body.baton-conversations.has-room:not(.baton-projects):not(.baton-usage) .inspect {display:block}
  html[data-inspect="shown"] body.baton-conversations.has-room:not(.baton-projects):not(.baton-usage) .workspace {
    grid-template-columns:clamp(195px,19vw,240px) minmax(290px,1fr) clamp(185px,17vw,225px)
  }
  html[data-inspect="shown"] .inspect-toggle-link {display:none}
}
