/* The entry, workspace and reference use the palette declared in access-theme.css. */
html.chat-edition {
  --shadow:0 12px 38px color-mix(in srgb,var(--ed-ink) 9%,transparent);
}
.chat-edition body.relay-react {font-family:var(--ed-sans)}
.chat-edition #sidebar .side-brand .wordmark,
.chat-edition #topbar .header-brand>span {
  font:600 30px/1 var(--ed-serif);letter-spacing:-.055em;color:var(--ed-ink);
}
.chat-edition #topbar .header-brand>span {font-size:24px}
.chat-edition :is(.side-brand .relay-monogram,.msg.ai img.claudex-avatar) {filter:none}
.chat-edition #app #sidebar {background:var(--ed-paper);border-color:var(--ed-line)}
.chat-edition #sidebar .newchat {
  min-height:44px;border:1px solid var(--ed-brand);border-radius:15px;
  color:var(--ed-paper);background:var(--ed-brand);box-shadow:none;
}
.chat-edition #sidebar .newchat:hover {background:var(--ed-accent);color:var(--ed-on);border-color:var(--ed-accent)}
.chat-edition #sidebar .session-search {border:1px solid var(--ed-line);border-radius:14px;background:var(--ed-page)}
.chat-edition #sidebar .session-search:focus-within {outline:2px solid var(--ed-accent);outline-offset:1px}
.chat-edition #sesslist .ui-session {border-radius:13px}
.chat-edition #sesslist .ui-session.selected {box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ed-accent) 14%,transparent);background:color-mix(in srgb,var(--ed-tint) 68%,var(--ed-paper))}
.chat-edition #app #topbar {background:var(--ed-page);border-bottom:1px solid var(--ed-line)}
.chat-edition #app.on #main:has(#msgs:empty) {
  position:relative;isolation:isolate;background:var(--ed-page);
}
.chat-edition #app.on #main:has(#msgs:empty) .conversation-area {z-index:0}
.chat-edition #main #welcome {padding:0 34px 24px;overflow:visible}
.chat-edition #welcome .workspace-welcome {
  position:relative;isolation:isolate;width:min(100%,800px);
  padding:12px 0 0;background:transparent;color:var(--ed-ink);
}
/* Anchor the still life to the heading, with its light falling across the canvas. */
.chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:clamp(410px,57vw,820px);aspect-ratio:1.5;bottom:-60%;right:clamp(-170px,-9vw,-36px);
  background:url('/vendor/workspace/paper-loop.webp') center/contain no-repeat;
  mask-image:linear-gradient(90deg,#000 82%,transparent 100%),radial-gradient(ellipse 55% 52% at 62% 47%,#000 25%,#000c 47%,transparent 90%);
  mask-composite:intersect;
}
.chat-edition[data-theme=dark] #app.on #main:has(#msgs:empty) .workspace-welcome::before {
  filter:sepia(.35) brightness(.60) saturate(1.15);opacity:.75;
}
.chat-edition #welcome .workspace-context {color:var(--ed-accent);font-size:12px;line-height:1.5;letter-spacing:.025em}
.chat-edition #welcome .workspace-context svg {color:inherit}
.chat-edition #welcome .workspace-welcome h1 {
  margin:10px 0;color:var(--ed-ink);font:550 clamp(38px,4.3vw,64px)/1.15 var(--ed-serif);letter-spacing:-.05em;
}
.chat-edition #welcome .workspace-welcome p {margin:0;color:var(--ed-muted);font:400 14px/1.65 var(--ed-sans)}
@media(prefers-reduced-motion:no-preference) {
  .chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome::before {animation:unfold-light 1.5s cubic-bezier(.18,.72,.19,1) backwards;transform-origin:72% 65%}
  .chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome> :is(h1,p) {animation:welcome-ink .55s ease-out backwards}
  .chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome p {animation-delay:80ms}
  @keyframes unfold-light {from{opacity:0;transform:translate3d(2.5%,2%,0) rotate(1.4deg) scale(.97)}}
  @keyframes welcome-ink {from{opacity:0;transform:translateY(6px)}}
}
.chat-edition #app #main #composer-zone .composer-surface {
  border:1px solid color-mix(in srgb,var(--ed-stroke) 62%,var(--ed-paper));border-radius:24px;background:var(--ed-paper);
  box-shadow:0 12px 38px -20px #3d251733,0 2px 8px #35201209,inset 0 1px 0 #ffffff36;
}
.chat-edition #app #main #composer-zone .composer-surface:focus-within {
  border-color:var(--ed-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--ed-accent) 12%,transparent);
}
.chat-edition #app #main #composer-zone #composer {border-radius:inherit}
.chat-edition #app #main #composer-zone #input {border-radius:23px 23px 0 0}
.chat-edition #app #main #composer-zone #input::placeholder {color:var(--ed-muted);opacity:1}
.chat-edition #app #main #composer-zone #composer #btn-send {
  border-radius:50%;background:var(--ed-brand);color:var(--ed-paper);
}
.chat-edition #app #main #composer-zone #composer #btn-send:enabled:hover {
  background:var(--ed-accent);color:var(--ed-on);
}
.chat-edition #app #main .composer-settings :is(.provider-picker,#opt-effort),.chat-edition .starter-trigger {border-radius:11px}
.chat-edition #msgs .msg.user .bubble {
  background:var(--ed-tint);color:var(--ed-ink);border-radius:18px 18px 6px 18px;box-shadow:none;
}
.chat-edition #msgs .msg.ai .bubble :is(h1,h2,h3) {font-family:var(--ed-serif);letter-spacing:-.025em;line-height:1.45}
.chat-edition #msgs .bubble a {color:var(--ed-accent);text-underline-offset:.16em}
.chat-edition #msgs .bubble blockquote {border-inline-start-color:var(--ed-accent)}
.chat-edition #msgs .run-body {border-color:var(--ed-line)}
.chat-edition #msgs .msg .mchip {border-radius:3px;color:var(--ed-muted);background:var(--ed-inset)}
.chat-edition :is(.ui-menu,.ui-popover,.quick-search,.usage-popover) {
  border-color:var(--ed-line);border-radius:17px;background:var(--ed-paper);box-shadow:var(--shadow);
}
.chat-edition .recent-heading h2 {font:550 18px/1.4 var(--ed-serif);color:var(--ed-ink)}
.chat-edition .recent-threads li button {min-height:44px}
.chat-edition #app :is(button,a):focus-visible {outline:2px solid var(--ed-accent);outline-offset:2px}
@media(max-width:767px) {
  .chat-edition #app #main #welcome {padding:0 max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))}
  .chat-edition #app #main #welcome {overflow:visible}
  .chat-edition #welcome .workspace-welcome {padding:12px 5px 0}
  .chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome::before {
    width:clamp(295px,85vw,460px);bottom:10px;right:-35px;
    background-image:url('/vendor/workspace/paper-loop-mobile.webp');
    mask-image:radial-gradient(ellipse 48% 49% at 69% 45%,#000 24%,#000b 51%,transparent 94%);
  }
  .chat-edition #welcome .workspace-welcome h1 {font-size:clamp(32px,8.4vw,42px);margin:6px 0}
  .chat-edition #welcome .workspace-welcome p {font-size:13px}
  .chat-edition #topbar .header-brand>span {font-size:23px}
  .chat-edition #app #main #composer-zone #input {font-size:16px}
}
@media(max-height:540px) {
  .chat-edition #welcome .workspace-welcome {padding:0;background:transparent}
  .chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome::before {content:none}
  .chat-edition #welcome .workspace-welcome h1 {margin:3px 0;font-size:26px;color:var(--ed-ink)}
  .chat-edition #welcome .workspace-welcome :is(p,.workspace-context) {color:var(--ed-muted)}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) {
  .chat-edition #app #btn-send svg {transition:transform .16s ease-out}
  .chat-edition #app #btn-send:enabled:hover svg {transform:translateY(-1px)}
}
.chat-edition #app #me-avatar {color:var(--ed-accent);background:var(--ed-inset);border-color:var(--ed-line)}
.chat-edition .release-new {color:var(--ed-accent);background:var(--ed-tint);border-color:var(--ed-line)}
.chat-edition #app #main #composer-zone #composer #btn-voice svg {color:var(--ed-muted)}
.chat-edition :is(.model-menu,.composer-settings) .engine-mark.codex {color:var(--ed-muted)}
.chat-edition #sesslist .ui-session .session-more {color:var(--ed-muted)}
.chat-edition #toast {background:var(--ed-brand);color:var(--ed-paper);border-color:var(--ed-stroke)}
.chat-edition #msgs .bubble .code-shell {
  border:1px solid var(--relay-code-line);border-radius:8px;background:var(--relay-code);
}
.chat-edition #msgs .bubble .code-toolbar {
  background:var(--relay-code-head);color:var(--relay-code-muted);border-color:var(--relay-code-line);
}
.chat-edition #msgs .bubble .code-toolbar button {
  color:var(--relay-code-text);background:transparent;border-color:var(--relay-code-line);border-radius:4px;
}
.chat-edition #msgs .bubble .code-toolbar button:hover {background:var(--relay-code-line)}
.chat-edition #msgs .bubble .code-shell pre,.chat-edition #msgs .bubble pre code.hljs {
  color:var(--relay-code-text);background:var(--relay-code);
}
.chat-edition #msgs .bubble table {background:var(--ed-paper);border-color:var(--ed-line);border-radius:6px}
.chat-edition #msgs .bubble th {color:var(--ed-text);background:var(--ed-inset)}
.chat-edition #msgs .bubble :is(th,td) {border-color:var(--ed-line)}

@media(max-width:359px){.chat-edition #topbar .header-brand>span{font-size:19px}.chat-edition #topbar .header-brand{gap:0}}

.chat-edition .support-entry svg {display:block;flex:none;stroke-width:1.8}
.chat-edition .support-entry svg:last-child {margin-inline-start:auto}
.sc-overlay {position:fixed;inset:0;background:#23180f31;z-index:1100;animation:sc-fade .16s ease-out}
.sc-dialog {
  position:fixed;z-index:1101;right:max(14px,env(safe-area-inset-right));bottom:calc(var(--sc-lift,0px) + 12px);
  width:min(420px,calc(100vw - 28px));height:min(820px,calc(var(--sc-height,100dvh) - 24px - env(safe-area-inset-top)));
  box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;
  border-radius:26px;border:1px solid var(--ed-line);background:var(--ed-paper);color:var(--ed-ink);
  box-shadow:0 26px 90px #281c1330,0 4px 14px #281c1312;font:14px/1.5 var(--ed-sans);
}

.sc-dialog button,.sc-dialog select,.sc-dialog textarea {font:inherit;color:inherit}
.sc-dialog button {cursor:pointer}
.sc-dialog button:disabled {cursor:default;opacity:.5}
.sc-dialog :is(button,textarea,select):focus-visible {outline:2px solid var(--ed-accent);outline-offset:2px}
.sc-dialog svg {display:block;flex:none;width:20px;height:20px;stroke-width:1.75}
.sc-head {flex:none;display:flex;align-items:center;gap:8px;padding:12px 12px 12px 16px;border-bottom:1px solid var(--ed-line)}
.sc-heading {flex:1;min-width:0}
.sc-heading h2 {font:650 17px/1.35 var(--ed-sans);color:var(--ed-ink);margin:0}
.sc-heading p {margin:3px 0 0;color:var(--ed-muted);font-size:12px}
.sc-avatar,.sc-small-avatar,.sc-welcome-icon {display:grid;place-items:center;flex:none;background:var(--ed-inset);color:var(--ed-accent)}
.sc-avatar {width:40px;height:40px;border-radius:14px}
.sc-icon,.sc-send {width:44px;height:44px;display:grid;place-items:center;padding:0;flex:none;border:0;border-radius:50%;background:transparent}
.sc-icon:hover,.sc-row:hover {background:var(--ed-inset)}
.sc-tabs {display:flex;gap:4px;padding:8px 15px;border-bottom:1px solid var(--ed-line)}
.sc-tabs button,.sc-state button,.sc-link,.sc-error button {border:0;background:transparent;color:var(--ed-accent);min-height:44px}
.sc-tabs button {padding:0 12px;border-radius:12px;color:var(--ed-muted)}
.sc-tabs button[aria-pressed=true] {background:var(--ed-inset);color:var(--ed-ink)}
.sc-scroll {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sc-welcome,.sc-empty {min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;box-sizing:border-box}
.sc-welcome-icon {width:60px;height:60px;border-radius:21px}
.sc-welcome-icon svg {width:28px;height:28px}
.sc-welcome h3,.sc-empty h3 {margin:14px 0 5px;font:600 21px/1.4 var(--ed-serif);color:var(--ed-ink)}
.sc-welcome p,.sc-hint {margin:0;color:var(--ed-muted);font-size:13px}
.sc-hint {padding:16px}
.sc-inbox {padding:6px 10px;min-height:100%;box-sizing:border-box}
.sc-row {display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:13px 7px;border:0;border-bottom:1px solid var(--ed-line);background:transparent}
.sc-small-avatar {width:35px;height:35px;border-radius:12px}
.sc-row>span:nth-child(2) {flex:1;min-width:0}
.sc-row strong,.sc-row>span span {display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.sc-row>span span,.sc-meta {font-size:12px;color:var(--ed-muted)}
.sc-meta {display:grid;text-align:right;gap:2px}.sc-meta small{font-size:11px}
.sc-row>svg {width:14px;color:var(--ed-muted)}
.sc-transcript {display:grid;gap:13px;padding:12px 18px 18px}
.sc-day {text-align:center;color:var(--ed-muted);font-size:11px;margin:4px 0 15px}
.sc-message {display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.sc-message p {margin:0;width:fit-content;max-width:85%;padding:10px 14px;border-radius:16px 16px 16px 5px;background:var(--ed-inset);color:var(--ed-ink);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.sc-message small {font-size:11px;color:var(--ed-muted);padding:0 3px}
.sc-own {align-items:flex-end}.sc-own p {background:var(--ed-brand);color:var(--ed-paper);border-radius:16px 16px 5px 16px}
.sc-footer {flex:none;padding:9px 14px 14px;border-top:1px solid var(--ed-line)}
.sc-topic,.sc-state {display:flex;align-items:center;gap:8px;color:var(--ed-muted);font-size:12px}
.sc-topic select {border:0;background:var(--ed-paper);min-height:44px;font-size:14px;color:var(--ed-ink)}
.sc-compose {display:flex;align-items:flex-end;gap:8px;background:var(--ed-page);border:1px solid var(--ed-line);border-radius:18px;padding:5px}
.sc-compose:focus-within {border-color:var(--ed-accent)}
.sc-compose textarea {box-sizing:border-box;flex:1;min-width:0;resize:none;background:transparent;border:0;margin:0;padding:8px;color:var(--ed-ink);font-size:16px;line-height:1.45;outline:none!important}
.sc-send {background:var(--ed-brand);color:var(--ed-paper)!important}
.sc-state {padding:0 16px 3px;justify-content:space-between}.sc-state button,.sc-error button {text-decoration:underline;text-underline-offset:3px}
.sc-error {padding:4px 16px;color:var(--ed-accent)}
@keyframes sc-in {from{opacity:.55;transform:translateX(30px)}to{opacity:1;transform:none}}
@keyframes sc-out {to{opacity:0;transform:translateX(24px)}}
@keyframes sc-fade {from{opacity:0}to{opacity:1}}
.sc-head {min-height:74px;box-sizing:border-box}
.sc-head,.sc-footer {background:color-mix(in srgb,var(--ed-paper) 88%,var(--ed-inset))}
.sc-avatar,.sc-welcome-icon {border:1px solid color-mix(in srgb,var(--ed-accent) 15%,transparent);background:linear-gradient(150deg,var(--ed-paper),var(--ed-tint))}
@media(max-width:600px){
  .sc-dialog {bottom:var(--sc-lift,0px);right:0;width:min(420px,100vw);height:calc(var(--sc-height,100dvh) - env(safe-area-inset-top));border-radius:22px 0 0 22px;border-right:0;padding-bottom:env(safe-area-inset-bottom)}
  .sc-head {min-height:65px;padding:10px;gap:6px}
}
@media(prefers-reduced-motion:no-preference){
  .sc-dialog[data-state=open] {animation:sc-in .22s cubic-bezier(.2,.75,.25,1)}
  .sc-dialog[data-state=closed] {animation:sc-out .14s ease-in both}
}
@media(prefers-reduced-motion:reduce){.sc-dialog,.sc-overlay{animation:none}}

.chat-edition .side-account {display:flex;gap:9px;align-items:center;min-width:0;flex:1}
.chat-edition .side-account .who {min-width:0}
.chat-edition #sidebar .side-brand {gap:10px}
.chat-edition #sidebar .side-brand .relay-mark {width:34px;height:34px;border-radius:10px;background:transparent}
.chat-edition #app #topbar {background:var(--ed-page);border-color:color-mix(in srgb,var(--ed-line) 70%,transparent);gap:10px}
.chat-edition .rail-glyph {display:grid;place-items:center}
.chat-edition #app #topbar #btn-side .rail-glyph img,.chat-edition #app:has(#sidebar.hide) #topbar #btn-side .rail-glyph svg {display:none}
.chat-edition #app:has(#sidebar.hide) #topbar #btn-side .rail-glyph img {display:block;width:28px;height:28px;background:transparent;border-radius:8px}
.chat-edition #topbar .header-tools {align-items:center;gap:2px}
.chat-edition #topbar .header-tools :is(.ui-icon,#btn-files) {border-radius:50%}
.chat-edition #topbar .account-trigger {
  display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;cursor:pointer;margin-left:6px;padding:3px 7px 3px 4px;
  min-height:40px;border-radius:24px;border:1px solid var(--ed-line);background:var(--ed-paper);color:var(--ed-muted);
}
.account-initial {width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:50%;color:var(--ed-accent);font:650 14px/1 var(--ed-sans);background:linear-gradient(145deg,var(--ed-tint),var(--ed-inset))}
.chat-edition #topbar .account-trigger:hover,.chat-edition #topbar .account-trigger[data-state=open]{border-color:var(--ed-stroke);background:var(--ed-inset)}
.service-menu {
  box-sizing:border-box;z-index:310;width:min(272px,calc(100vw - 20px));max-height:var(--radix-dropdown-menu-content-available-height);overflow-y:auto;
  padding:7px;border:1px solid var(--ed-line);border-radius:21px;outline:0;background:var(--ed-paper);color:var(--ed-ink);
  box-shadow:0 22px 55px -13px #33231738,0 3px 10px #34211612;font:500 14px/1.45 var(--ed-sans);transform-origin:var(--radix-dropdown-menu-content-transform-origin)
}
.service-owner {display:flex;align-items:center;gap:12px;padding:9px 11px 10px}
.service-owner .account-initial{width:39px;height:39px;font-size:17px}
.service-owner>span:last-child {display:grid;min-width:0}
.service-owner strong {font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.service-owner small {color:var(--ed-muted);font-size:12px;margin-top:2px}
.service-divider {height:1px;background:var(--ed-line);margin:4px 9px}
.service-menu [role=menuitem] {box-sizing:border-box;cursor:pointer;display:grid;align-items:center;grid-template-columns:21px minmax(0,1fr) 14px;gap:12px;width:100%;min-height:44px;padding:8px 11px;border-radius:12px;color:inherit;outline:none;text-decoration:none}
.service-menu [role=menuitem][data-highlighted] {background:var(--ed-inset)}
.service-menu [role=menuitem] svg {width:18px;height:18px;display:block;justify-self:center;stroke-width:1.7}
.service-menu [role=menuitem] svg:last-child {width:14px;color:var(--ed-muted)}
@supports (backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px)){
  .service-menu,.chat-edition :is(.reading-settings,.model-menu,.effort-menu) {background:color-mix(in srgb,var(--ed-paper) 91%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
}
@media(prefers-reduced-transparency:reduce){.service-menu,.chat-edition :is(.reading-settings,.model-menu,.effort-menu){background:var(--ed-paper);-webkit-backdrop-filter:none;backdrop-filter:none}}
@media(prefers-reduced-motion:no-preference){
  .service-menu[data-state=open]{animation:service-in .15s cubic-bezier(.2,.72,.2,1)}
  @keyframes service-in{from{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:none}}
}
@media(max-width:767px){
  .chat-edition #app #topbar{gap:4px}
  .chat-edition #app #topbar #btn-side .rail-glyph img {display:block;width:27px;height:27px;border-radius:8px}
  .chat-edition #app #topbar #btn-side .rail-glyph svg {display:none}
  .chat-edition #app #topbar .header-tools {gap:0}
  .chat-edition #app #topbar .account-trigger {margin-left:2px;min-width:44px;min-height:44px;padding:0;border:0;background:none}
  .chat-edition #app #topbar .account-trigger>svg{display:none}
  .chat-edition #app #topbar .account-initial{width:32px;height:32px;border:1px solid var(--ed-line)}
}

@media(min-width:768px){
  .chat-edition #app:has(#sidebar:not(.hide)) #topbar .header-brand {display:none}
  .chat-edition #app:has(#sidebar:not(.hide)) #main #topbar .topbar-heading {display:flex;flex:1}
  .chat-edition #app #main #topbar #sess-title {font-size:15px;font-weight:580}
}
.chat-edition #sidebar .history-filters {
  display:flex;gap:2px;align-items:center;padding:3px;margin:4px 13px 12px;border:1px solid color-mix(in srgb,var(--ed-line) 65%,transparent);
  border-radius:13px;background:var(--ed-inset)
}
.chat-edition #sidebar .history-filters button {
  min-width:0;min-height:32px;flex:1;padding:4px;border:0;border-radius:10px;background:transparent;color:var(--ed-muted);font-size:12px
}
.chat-edition #sidebar .history-filters button[aria-pressed=true] {color:var(--ed-ink);background:var(--ed-paper);box-shadow:0 1px 4px #291c121c}
@media(pointer:coarse){.chat-edition #sidebar .history-filters button {min-height:44px}}
.chat-edition .recent-threads ul {overflow:hidden;border:1px solid var(--ed-line);border-radius:16px;background:var(--ed-paper)}
.chat-edition .recent-threads li {border:0}
.chat-edition .recent-threads li+li {border-top:1px solid var(--ed-line)}
.chat-edition .recent-threads li button {min-height:46px;padding-inline:14px}

/* Phone workspace: scroll the welcome and history independently of the writing dock. */
@media (max-width:767px), (max-width:960px) and (max-height:500px) and (pointer:coarse) {
  .chat-edition #app.on #main:has(#msgs:empty) {
    display:grid;grid-template-rows:var(--mobile-header-height,56px) minmax(0,1fr) auto;
  }
  .chat-edition #app.on #main:has(#msgs:empty) .conversation-area {
    grid-row:2;align-self:stretch;display:block;min-height:0;overflow:auto;overscroll-behavior:contain;
  }
  .chat-edition #app.on #main:has(#msgs:empty) #welcome {
    box-sizing:border-box;display:block;height:auto;min-height:0;margin:0;overflow:hidden;
    padding:clamp(28px,9.5svh,84px) max(20px,env(safe-area-inset-right)) 24px max(20px,env(safe-area-inset-left));
  }
  .chat-edition #welcome .workspace-welcome {padding:10px 0;max-width:600px}
  .chat-edition #welcome .workspace-context {color:var(--ed-muted);font:500 12px/1.5 var(--ed-sans)}
  .chat-edition #welcome .workspace-welcome h1 {font-size:clamp(29px,7.6vw,38px);margin:7px 0}
  .chat-edition #welcome .workspace-welcome p {font-size:13px;max-width:25em}
  .chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome::before {
    right:-17px;bottom:10px;width:clamp(170px,53vw,280px);opacity:.84;
    mask-image:radial-gradient(ellipse 55% 48% at 65% 45%,#000 20%,#000a 58%,transparent 98%);
  }
  .chat-edition #app.on #main:has(#msgs:empty) .conversation-area:not(:has(.recent-threads)) {display:grid;align-content:center}
  .chat-edition #app.on #main:has(#msgs:empty) .recent-threads {
    display:block;width:auto;max-width:600px;margin:4px max(18px,env(safe-area-inset-right)) 22px max(18px,env(safe-area-inset-left));
  }
  .chat-edition .recent-heading {border:0;padding:0 2px}
  .chat-edition .recent-heading h2 {font:600 15px/1.4 var(--ed-sans)}
  .chat-edition .recent-heading button {min-height:44px}
  .chat-edition #app .recent-threads ul {background:transparent;border:0;border-radius:0}
  .chat-edition #app .recent-threads li {border:0}
  .chat-edition #app .recent-threads li+li {border-top:1px solid color-mix(in srgb,var(--ed-line) 58%,transparent)}
  .chat-edition #app .recent-threads li button {min-height:50px;padding:4px 2px;gap:11px}
  .chat-edition #app .recent-threads .engine-mark {width:30px;height:30px;border-radius:10px}
  @media (hover:none) {
    .chat-edition #app .recent-threads li button:not(:active) {background:transparent}
  }
  .chat-edition #app .recent-threads li button>svg:last-child {width:14px;opacity:.65}
  .chat-edition #app.on #main #composer-zone {
    box-sizing:border-box;padding:6px max(12px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:var(--ed-page);
  }
  .chat-edition #app.on #main:has(#msgs:empty) #composer-zone {grid-row:3;align-self:end;margin:0}
  .chat-edition #app #main #composer-zone .composer-surface {
    border-radius:23px;border-color:color-mix(in srgb,var(--ed-stroke) 72%,transparent);
    box-shadow:0 3px 16px -5px color-mix(in srgb,var(--ed-ink) 14%,transparent);
  }
  .chat-edition #app.on #main #composer-zone #composer #input {height:auto;min-height:46px;padding:12px 15px 4px;line-height:1.45}
  .chat-edition #app #main #composer-zone .composer-actions {
    display:flex;align-items:center;justify-content:space-between;gap:4px;height:auto;min-height:49px;padding:0 6px 5px;
  }
  .chat-edition #app #main #composer-zone .send-tools {margin-inline-start:auto;gap:3px}
  .chat-edition #app #main #composer-zone .composer-utilities {
    display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 4px;margin:0;min-height:44px;
  }
  .chat-edition #app #main #composer-zone .composer-settings {display:flex;align-items:center;gap:0;min-width:0;max-width:100%}
  .chat-edition #app #main #composer-zone .composer-settings :is(#opt-model,#opt-effort) {
    height:44px;min-height:44px;min-width:44px;margin:0;border:0;border-radius:12px;
    background:transparent;box-shadow:none;color:var(--ed-text);gap:5px;padding:0 6px;
  }
  .chat-edition #app #main #composer-zone .composer-settings #opt-model {max-width:min(48vw,230px)}
  .chat-edition #composer-zone .composer-settings .provider-name {display:none}
  .chat-edition #composer-zone .composer-settings #model-label {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600}
  .chat-edition #app #main #composer-zone .composer-utilities .composer-note {display:none}
  .chat-edition #app #composer-zone #provider-usage {margin-inline-start:auto;max-width:100%}
  .chat-edition #app #composer-zone .usage-trigger {padding-inline:5px;min-height:44px}
  .chat-edition #app #main #composer-zone .composer-settings button[aria-expanded=true] {background:var(--ed-inset)}

  .phone-choice-overlay {position:fixed;inset:0;background:rgb(32 24 18 / .32);z-index:1100}
  .phone-choice-sheet {
    position:fixed;z-index:1101;inset:auto 0 0;margin-inline:auto;width:min(100%,560px);
    box-sizing:border-box;max-height:calc(88dvh - env(safe-area-inset-top));display:flex;flex-direction:column;
    overflow:hidden;padding:6px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    border:1px solid var(--ed-line);border-bottom:0;border-radius:25px 25px 0 0;
    background:var(--ed-paper);color:var(--ed-ink);box-shadow:0 -8px 42px #21170c18;font:400 15px/1.45 var(--ed-sans);
  }
  .phone-choice-head {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 1px 4px 8px}
  .phone-choice-head h2 {margin:0;font:650 19px/1.35 var(--ed-sans);letter-spacing:-.025em}
  .phone-choice-sheet button {font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
  .phone-choice-sheet button:focus-visible {outline:2px solid var(--ed-accent);outline-offset:-2px}
  .phone-choice-close {display:grid;place-items:center;height:44px;width:44px;border:0;border-radius:50%;background:transparent}
  .phone-providers {position:relative;isolation:isolate;display:flex;align-items:stretch;gap:3px;flex:none;border-radius:16px;padding:3px;margin:0 2px 8px;background:var(--ed-inset)}
  .phone-providers button {display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-height:44px;border:0;background:transparent;border-radius:13px;color:var(--ed-muted)}
  .phone-providers::before {content:"";position:absolute;z-index:-1;inset:3px auto 3px 3px;width:calc((100% - 9px)/2);border-radius:13px;background:var(--ed-paper);box-shadow:0 1px 4px #241a1018}
  .phone-providers:has(button:only-child)::before {width:calc(100% - 6px)}
  .phone-providers:has(button:nth-child(2)[aria-pressed=true])::before {transform:translateX(calc(100% + 3px))}
  .phone-providers button[aria-pressed=true] {background:transparent;color:var(--ed-ink);font-weight:600}
  .phone-providers svg {width:17px;height:17px}
  .phone-choice-list {min-height:0;overflow:auto;overscroll-behavior:contain;max-height:min(50dvh,430px);scroll-padding:8px}
  .phone-choice-sheet:has(.phone-providers) .phone-choice-list {height:min(50dvh,272px)}
  .phone-choice-row {display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:8px 12px;text-align:start;border:0;border-radius:12px;background:transparent}
  .phone-choice-row>span {overflow-wrap:anywhere}
  .phone-choice-row small {color:var(--ed-muted);font-size:12px}
  .phone-choice-row[aria-pressed=true] {background:color-mix(in srgb,var(--ed-tint) 54%,var(--ed-paper))}
  .phone-choice-row>svg {flex:none;margin-inline-start:auto;color:var(--ed-accent)}
  .phone-choice-row:disabled {opacity:.5}

  .sc-dialog {right:0;left:0;bottom:var(--sc-lift,0px);width:min(100%,560px);margin-inline:auto;
    height:min(82dvh,calc(var(--sc-height,100dvh) - 12px - env(safe-area-inset-top)));max-height:calc(var(--sc-height,100dvh) - 12px - env(safe-area-inset-top));
    padding-bottom:env(safe-area-inset-bottom);border-radius:24px 24px 0 0;border-bottom:0}
  .sc-dialog:has(.sc-welcome) {height:auto}
  .sc-dialog .sc-head {min-height:64px;padding:7px 8px;border-bottom-color:var(--ed-line)}
  .sc-dialog .sc-head,.sc-dialog .sc-footer {background:var(--ed-paper)}
  .sc-dialog .sc-welcome {min-height:0;align-items:flex-start;text-align:start;padding:19px 18px 14px}
  .sc-dialog .sc-welcome-icon {display:none}
  .sc-dialog .sc-welcome h3 {font:600 18px/1.45 var(--ed-sans);margin:0 0 4px}
  .sc-dialog .sc-footer {padding:5px 14px 10px}
  .sc-dialog .sc-compose {background:var(--ed-page);border-radius:20px}
}
@media (max-width:359px) {
  .chat-edition #app #composer-zone .usage-trigger>svg:last-child {display:none}
}
@media (max-width:767px) and (max-height:530px), (max-width:960px) and (max-height:500px) and (pointer:coarse) {
  .chat-edition #app.on #main:has(#msgs:empty) #welcome {padding-block:10px}
  .chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome::before {content:none}
}
@media (prefers-reduced-motion:no-preference) {
  @keyframes phone-sheet-up {from{transform:translateY(28px);opacity:.3}}
  @keyframes phone-sheet-down {to{transform:translateY(22px);opacity:0}}
  @media (max-width:767px), (max-width:960px) and (max-height:500px) and (pointer:coarse) {
    .phone-choice-overlay[data-state=open] {animation:sc-fade .17s ease-out}
    :is(.phone-choice-sheet,.sc-dialog)[data-state=open] {animation:phone-sheet-up .23s cubic-bezier(.2,.75,.3,1)}
    :is(.phone-choice-sheet,.sc-dialog)[data-state=closed] {animation:phone-sheet-down .15s ease-in both}
    .phone-providers::before {transition:transform .18s cubic-bezier(.2,.75,.25,1)}
    .phone-choice-row:active,.phone-providers button:active {background:var(--ed-inset)}
    .chat-edition #app.on #main:has(#msgs:empty) .workspace-welcome::before {animation-duration:.55s}
    .chat-edition #composer-zone .send-tools button {transition:scale .13s ease-out}
    .chat-edition #composer-zone .send-tools button:enabled:active {scale:.94}
  }
}

/* The latest-message action shares the attachment toolbar's hit area and baseline. */
.chat-edition #composer .attachment-tools #jump-latest {
  position:static;transform:none;box-shadow:none;
}

/* Keep a turn's live status within reach while reading a long streaming answer. */
.chat-edition #turn-activity[hidden],.chat-edition .turn-outcome[hidden] {display:none}
.chat-edition #turn-activity {display:flex;align-items:center;gap:9px;min-height:36px;margin:0 4px 5px;padding:0 8px;color:var(--ed-ink);font-size:13px;line-height:1.4}
.chat-edition .turn-live-label {flex:1;min-width:0}
.chat-edition #turn-show-progress {display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:0 8px;background:transparent;color:inherit;border:0;border-radius:8px;cursor:pointer;font:inherit}
.chat-edition #turn-show-progress:hover {background:var(--ed-tint)}
.chat-edition #turn-show-progress:focus-visible {outline:2px solid currentColor}
.turn-wave {display:inline-flex;align-items:center;justify-content:center;gap:2px;width:18px;height:16px;color:var(--ed-accent,currentColor)}
.turn-wave i {display:block;width:3px;height:8px;background:currentColor;border-radius:4px}
.turn-wave i:nth-child(2) {height:13px}
.chat-edition .run-request {padding:0 0 6px;font-size:13px;font-weight:550;overflow-wrap:anywhere;color:var(--ed-ink)}
.chat-edition #msgs .msg.ai[data-turn-state="running"] .msg-actions {display:none}
.chat-edition .turn-outcome {display:none}
.chat-edition #msgwrap>.msg.ai:last-child .turn-outcome:not([hidden]) {display:inline-flex;align-items:center;gap:6px;align-self:center;color:var(--ed-ink);font-size:12px}
.turn-outcome::before {content:'';width:6px;height:6px;background:currentColor;border-radius:50%}
[data-turn-state="completed"] .turn-outcome::before {background:#44846a}
@media (max-width:640px) {.chat-edition #turn-activity{margin:0 1px 2px;padding-inline:4px}.chat-edition #turn-show-progress{min-height:44px}}
@media (prefers-reduced-motion:no-preference) {
 .turn-wave i {animation:turn-wave 1.35s ease-in-out infinite alternate}
 .turn-wave i:nth-child(2){animation-delay:-.6s}.turn-wave i:nth-child(3){animation-delay:-.3s}
 @keyframes turn-wave {from{transform:scaleY(.5)}to{transform:scaleY(1)}}
}

.run-progress .run-step-label{overflow-wrap:anywhere}
.run-progress-slot .turn-failure{font-size:.88rem;line-height:1.55;margin:.5rem 0;color:var(--text-muted,currentColor);overflow-wrap:anywhere}
