[id="root"] {
  background: none;
}

a {
  color: #3c4e92;
}

a:visited {
  color: #6a5fa8;
}

body[data-ds-dark-theme] a {
  color: #94a8dc;
}

body[data-ds-dark-theme] a:visited {
  color: #a58fdc;
}

:focus-visible {
  outline: 2px solid var(--dsw-alias-state-business-primary);
  outline-offset: 2px;
}

[data-pane="sidebar"] {
  color: var(--dsw-alias-label-primary);
}

[role="tooltip"] {
  background: var(--dsw-alias-tooltip-bg);
  color: var(--dsw-alias-tooltip-fg);
}

[role="dialog"], [role="dialog"] [class*="navCell"]:not([aria-current="true"]) {
  color: var(--dsw-alias-label-primary);
}

button[role="tab"], button[role="tab"]:hover, button[role="tab"]:active, button[role="tab"]:disabled, button[role="tab"]:hover:not(:disabled), button[role="tab"]:active:not(:disabled) {
  box-shadow: none;
  text-shadow: none;
  color: var(--dsw-alias-label-primary);
  filter: none;
  opacity: 1;
  background-color: #0000;
  background-image: none;
  border: 0;
  transform: none;
}

[data-aionui-explorer-col], [data-aionui-preview-col] {
  backdrop-filter: blur(12px);
  contain: paint;
}

.aionui-dialog, .aionui-menu, .aionui-toast {
  backdrop-filter: blur(14px);
}

.aionui-overlay {
  background: #1c254666;
}

body[data-ds-dark-theme] .aionui-overlay {
  background: #0000008c;
}

button, a, .aionui-btn, .aionui-menu-item, .aionui-explorer-handle, .aionui-preview-handle {
  transition: background-color .13s, border-color .13s, box-shadow .13s, color .13s, opacity .13s;
}

::-webkit-scrollbar-thumb {
  transition: background-color .13s;
}

a:hover {
  color: #2c3765;
  text-decoration: underline;
}

a:active {
  color: #222b4d;
}

body[data-ds-dark-theme] a:hover {
  color: #b4c3e8;
}

body[data-ds-dark-theme] a:active {
  color: #c9d4ef;
}

button:disabled, .aionui-btn:disabled, .aionui-menu-item-disabled {
  opacity: .55;
  cursor: not-allowed;
}

.aionui-btn:disabled:hover, .aionui-menu-item-disabled:hover {
  box-shadow: none;
  background-color: #0000;
}

.aionui-explorer-handle, .aionui-preview-handle {
  background: #d8dfec;
}

.aionui-explorer-handle:hover, .aionui-preview-handle:hover {
  background: #7f96d2;
  box-shadow: 0 0 6px #4a5fa866;
}

body[data-ds-dark-theme] .aionui-explorer-handle, body[data-ds-dark-theme] .aionui-preview-handle {
  background: #33406a;
}

body[data-ds-dark-theme] .aionui-explorer-handle:hover, body[data-ds-dark-theme] .aionui-preview-handle:hover {
  background: #6276a5;
  box-shadow: 0 0 6px #7f96d266;
}

.aionui-floating-expand:hover {
  background: #e4eaf7;
  border-color: #647ebf;
}

.aionui-floating-expand:active {
  background: #dce3f7;
}

body[data-ds-dark-theme] .aionui-floating-expand:hover {
  background: #2c3765;
  border-color: #647ebf;
}

body[data-ds-dark-theme] .aionui-floating-expand:active {
  background: #33417a;
}

.aionui-collapse-chevron:hover {
  color: #647ebf;
}

body[data-ds-dark-theme] .aionui-collapse-chevron:hover {
  color: #a5b7e2;
}

.aionui-menu-item:not(.aionui-menu-item-disabled):hover {
  background: #4a5fa81f;
}

body[data-ds-dark-theme] .aionui-menu-item:not(.aionui-menu-item-disabled):hover {
  background: #a0b9eb29;
}

@media (prefers-reduced-motion: reduce) {
  button, a, .aionui-btn, .aionui-menu-item, .aionui-explorer-handle, .aionui-preview-handle, ::-webkit-scrollbar-thumb {
    transition: none;
  }
}

[data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+1), [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+1) {
  color: #4a5fa8;
}

[data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+2), [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+2) {
  color: #2e8e52;
}

[data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+3), [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+3) {
  color: #c08a33;
}

[data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+4), [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+4) {
  color: #647ebf;
}

[data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+5), [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+5) {
  color: #3c4e92;
}

[data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n), [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n) {
  color: #58b058;
}

body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+1), body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+1) {
  color: #7f96d2;
}

body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+2), body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+2) {
  color: #58b058;
}

body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+3), body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+3) {
  color: #d9a94f;
}

body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+4), body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+4) {
  color: #94a8dc;
}

body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n+5), body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n+5) {
  color: #647ebf;
}

body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="node"]:nth-child(6n), body[data-ds-dark-theme] [data-gitgraph-lanes] > [data-gitgraph-glyph="merge"]:nth-child(6n) {
  color: #7cc97c;
}

[data-gitgraph-ref]:not([data-gitgraph-ref-current]) {
  background: #4a5fa81f;
  border: 1px solid #2c3a7333;
}

body[data-ds-dark-theme] [data-gitgraph-ref]:not([data-gitgraph-ref-current]) {
  background: #a0b9eb24;
  border-color: #a0b4e633;
}

div:has( > div > [data-gitgraph-chip]) {
  --dsw-alias-button-tool-bar-fill: #4a5fa814;
  --dsw-alias-border-l2: #4a5fa861;
  --dsw-alias-label-secondary: #2c3765;
  --dsw-alias-label-tertiary: #647ebf;
  --dsw-alias-interactive-bg-hover: #4a5fa824;
  --dsw-alias-interactive-bg-active: #4a5fa833;
}

body[data-ds-dark-theme] div:has( > div > [data-gitgraph-chip]) {
  --dsw-alias-button-tool-bar-fill: #a0b9eb14;
  --dsw-alias-border-l2: #a0b4e661;
  --dsw-alias-label-secondary: #c9d4ef;
  --dsw-alias-label-tertiary: #8b9cbc;
  --dsw-alias-interactive-bg-hover: #a0b9eb24;
  --dsw-alias-interactive-bg-active: #a0b9eb38;
}

div:has( > div > [data-gitgraph-chip]) > button[aria-expanded="true"], [data-gitgraph-chip][aria-expanded="true"] {
  background-color: #4a5fa829;
}

body[data-ds-dark-theme] div:has( > div > [data-gitgraph-chip]) > button[aria-expanded="true"], body[data-ds-dark-theme] [data-gitgraph-chip][aria-expanded="true"] {
  background-color: #a0b9eb2e;
}

[data-phase="active"] [class*="composerSeat"] {
  background: none !important;
}

[data-phase="active"] [class*="composerSeat"]:before {
  content: "";
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(6px);
  background: linear-gradient(#0000 0, #e8ecf5db 36px);
  position: absolute;
  inset: 0;
}

body[data-ds-dark-theme] [data-phase="active"] [class*="composerSeat"]:before {
  backdrop-filter: blur(6px);
  background: linear-gradient(#0000 0, #101624d1 36px);
}

/**
 * Blue Fantasy — text readability layer (L3).
 *
 * The whale illustration sits directly behind the conversation, so body text,
 * tool output and the turn-tail controls lose contrast against the art. This
 * layer paints a translucent frosted plate *behind the text only* (shrink to
 * fit on block elements), leaving the illustration visible everywhere else.
 *
 *  - Markdown blocks, lists, code and tables: one plate per block.
 *  - Disclosure rows (think / bash / context injection / system prompt):
 *    one plate per row, clipped to the content width.
 *  - The shimmering turn-status line keeps its gradient — the plate is painted
 *    by a ::before layer instead of the element's own background.
 *  - Expanded bodies (command output / reasoning / injected context) stay
 *    full-width so long output keeps its measure.
 *  - Turn-tail controls (copy / feedback / regenerate) sit on a plate so the
 *    icons stay legible where the art is busy.
 *  - Tool-call rows (bash / custom renderers) plate their outermost wrapper and
 *    reset the two layers nested inside it, so a row is one plate and not three.
 *  - The user's own message bubble keeps its accent colour and gains a
 *    translucent frosted body whose density rides the same slider.
 *
 * Both knobs come from the skin-center Background card and are read as optional
 * variables with fallbacks: the blur is var(--dsh-skin-bubble-blur, 10px), and
 * every text plate alpha rides var(--dsh-skin-bubble-alpha, .5). Each plate keeps
 * its own ratio so the default reproduces the values this layer first shipped
 * with -- the user's own bubble runs at 120% on both knobs, which is what its
 * hand-tuned 12px / 60% used to be. The "Bubble opacity" slider therefore drives
 * everything painted *behind text* -- markdown blocks, tool output, the
 * turn-process row -- and nothing else.
 * The window chrome (header, right sidebar) is deliberately not on that slider:
 * it is frame, not bubble. It does follow the Wallpaper scrim like the left
 * pane does -- the three columns share one token so they stay one surface at
 * every scrim value (issue #1579).
 *
 * The light base is the left pane's measured rgb(242 245 250) (dark:
 * rgb(16 22 42)) instead of pure white, so the plates sit in the same colour
 * family as the panels around them.
 */

/* --- markdown: one plate per block ---------------------------------------- */

[class*="markdown"] > p,
[class*="markdown"] > :where(h1, h2, h3, h4, h5, h6),
[class*="markdown"] > blockquote {
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 6px;
  padding: 2px 7px;
  width: fit-content;
  max-width: 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: 0 1px 3px rgba(28, 37, 70, 0.08);
}

/* One plate for the whole list: the markers sit outside the ul/ol box, and a
   plate per item would leave the markers on the bare illustration. */
[class*="markdown"] > :where(ul, ol) {
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 8px;
  padding: 6px 12px 6px 26px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(28, 37, 70, 0.08);
}

[class*="markdown"] > pre {
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 6px;
  padding: 3px 7px;
  box-shadow: 0 1px 3px rgba(28, 37, 70, 0.08);
}

/* A table renders inside a scroll wrapper, so it is not a direct child of the
   markdown box; plate the wrapper to frost the table as a whole.

   The wrapper is a block and stretches to the column by default, so a table
   narrower than the column leaves the plate hanging ~300px past the last cell --
   a slab of empty glass next to prose plates that all hug their text. Shrink the
   plate to its table (still capped at the column) and centre it. Wide tables are
   unaffected: max-width keeps the plate inside the column and the wrapper's own
   overflow-x:auto still scrolls the table itself. */
[class*="markdown"] [class*="tableScroll"] {
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1.1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 1px 4px rgba(28, 37, 70, 0.08);
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* The shell ships two table shapes: the default hugs its content
   (`.tableScroll table { width: max-content }`) and a fill variant stretches to
   the column (`.tableFill table { width: 100% }`). Tables here were landing on
   the fill variant, so a four-column table spanned the whole column while every
   prose plate above it hugged its text -- the layer contradicted itself, and a
   short table read as a slab of empty plate.

   Put the fill variant back on the content-hugging shape. Wide tables still
   behave: the wrapper keeps max-width:100% and overflow-x:auto, so an
   over-long table scrolls instead of overflowing. */
[class*="markdown"] [class*="tableFill"] table {
  width: max-content;
  max-width: 100%;
}

body[data-ds-dark-theme] [class*="markdown"] > p,
body[data-ds-dark-theme] [class*="markdown"] > :where(h1, h2, h3, h4, h5, h6),
body[data-ds-dark-theme] [class*="markdown"] > blockquote,
body[data-ds-dark-theme] [class*="markdown"] > :where(ul, ol),
body[data-ds-dark-theme] [class*="markdown"] > pre {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .8));
}

body[data-ds-dark-theme] [class*="markdown"] [class*="tableScroll"] {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .9));
}

/* --- disclosure rows: one plate per row, clipped to the text -------------- */

[data-slot="conversation.session"] [data-disclosure-row] {
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 8px;
  padding: 1px 8px;
  width: fit-content;
  max-width: 100%;
}

body[data-ds-dark-theme] [data-slot="conversation.session"] [data-disclosure-row] {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .8));
}

/* --- turn status: keep the shimmer, plate behind the text ----------------- */

/* The status line paints its own background with background-clip: text, so it
   cannot take a plate directly; a ::before layer frosts the art underneath
   while the gradient stays on the text. The turn-status clock chip embeds the
   same substring, hence the explicit exclusion. */
[class*="turnStatus"]:not([class*="turnStatusClock"]) {
  position: relative;
  border-radius: 8px;
}

[class*="turnStatus"]:not([class*="turnStatusClock"])::before {
  content: "";
  position: absolute;
  inset: -5px -10px;
  z-index: -1;
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1.1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 8px;
}

body[data-ds-dark-theme] [class*="turnStatus"]:not([class*="turnStatusClock"])::before {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
}

/* --- turn-tail controls: copy / feedback / regenerate --------------------- */

/* The plate is painted by a ::before layer rather than by the row itself.

   The shell renders each icon's hover tooltip as a `position: fixed` span
   inside this row (ui-primitives Tooltip deliberately drops the portal), and
   `backdrop-filter` — like `filter` or `transform` — makes the element the
   containing block for its fixed-position descendants. A plate on the row
   therefore re-anchored every bubble to the row's own box and threw it
   hundreds of pixels away, sometimes off the viewport entirely (issue #1571).
   `inset: 0` reproduces exactly the padding box the background used to fill,
   so the plate, the row geometry and the icon positions are unchanged. */
[data-turn-tail] [class*="actions"],
[data-chat-flow-kind="user"] [class*="actions"],
[data-chat-flow-kind="steering"] [class*="actions"] {
  position: relative;
  border-radius: 10px;
  padding: 0 8px;
  width: fit-content;
}

[data-turn-tail] [class*="actions"]::before,
[data-chat-flow-kind="user"] [class*="actions"]::before,
[data-chat-flow-kind="steering"] [class*="actions"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 10px;
}

body[data-ds-dark-theme] [data-turn-tail] [class*="actions"]::before,
body[data-ds-dark-theme] [data-chat-flow-kind="user"] [class*="actions"]::before,
body[data-ds-dark-theme] [data-chat-flow-kind="steering"] [class*="actions"]::before {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .8));
}

/* --- expanded bodies: full width, plate only ----------------------------- */

[class*="_5OnbHa_body"],
[class*="lcKema_thinkBody"],
[class*="XrJvXW_body"],
[data-context-injection-body],
[data-system-prompt-body] {
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 8px;
}

body[data-ds-dark-theme] [class*="_5OnbHa_body"],
body[data-ds-dark-theme] [class*="lcKema_thinkBody"],
body[data-ds-dark-theme] [class*="XrJvXW_body"],
body[data-ds-dark-theme] [data-context-injection-body],
body[data-ds-dark-theme] [data-system-prompt-body] {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .8));
}

/* --- fenced code: the shell paints a plate but no frosting ---------------- */

/* A fenced block renders through the shell as a <div class="md-code-block">, not
   a <pre>, so the markdown block rule above never reached it. It already carries
   the shell's own plate (rgba(243 245 251 / .58) light, and its banner + <pre>
   rows repeat it), but with no backdrop-filter the art stays sharp underneath
   and the block reads flatter than the prose around it. Frost it and leave the
   shell's fill alone. */
[class*="markdown"] [class*="md-code-block"] {
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
}


/* --- turn-process row: one plate, and only one ---------------------------- */

/* The "N tool calls . M messages" row is one module whose three slots share a
   single class prefix: the button, its label span and its chevron. Painting the
   prefix lands on all three, the .5 plates stack, and the row reads as a double
   background. The button carries a stable semantic attribute (data-turn-process,
   stamped by TurnProcessNodeView with its turn number), so target that: an
   attribute selector matches the name exactly and leaves the -member / -hidden /
   -answer / -inline siblings alone.

   Upstream that row is a separator (height 33px, padding 0 0 8px, a .5px bottom
   border). Inside a plate the 8px reads as dead space with a stray line across
   the rounded corner, so square it up with the tool rows and hand the separator
   back only while expanded. */
[data-slot="main.conversation"] [data-turn-process] {
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 8px;
  height: auto;
  padding: 1px 8px;
  border-bottom: none;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body[data-ds-dark-theme] [data-slot="main.conversation"] [data-turn-process] {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .8));
}

[data-slot="main.conversation"] [data-turn-process][data-open] {
  border-bottom: .5px solid var(--dsw-alias-border-l2);
}

/* --- chrome: the top bar and the right sidebar ---------------------------- */

/* The three columns only read as one surface if they share a base AND a
   density, so the conversation header and the right sidebar reuse the left
   pane's own token (--dsw-specific-sidebar-fill) instead of a pinned fill. That
   token already tracks the Wallpaper scrim, so all three columns now breathe
   together at every scrim value (issue #1579): with a fixed 0.75 the columns
   only matched at scrim 0.5, reading 0.25 too solid at scrim 0 and 0.25 too
   faint at scrim 1.

   What stays excluded is --dsh-skin-bubble-alpha: this is window chrome, and
   dragging the Bubble opacity slider must fade bubbles, not the frame. The
   sidebar-fill token is a scrim-only function, so that boundary is unchanged.

   The right sidebar renders as [class*="rightbarCol"] > [data-slot="rightbar"]
   > [data-slot="rightbar.session"] > [class*="panel"]. The two slot hosts are
   display:contents and measure 0x0, so a background on them paints nothing --
   the plate has to land on .panel.

   The items inside the header (session name, mode picker, the tabs) stay
   background-free on purpose: plates under those labels read as smudges and
   fight the official underline indicator. */
/* The panel class is matched as a substring, and the shell's panel *body* is a
   nested element whose class carries the same substring (`X_panelBody`). A
   bare `[class*="panel"]` therefore plated the panel and its body, and two
   0.75 fills stack to an effective 0.94 (issue #1573). Exclude the body; the
   slot host above is display:contents, so the panel itself still matches. */
[data-slot="main.conversation"] header,
[data-slot="rightbar.session"] > *,
[class*="rightbarCol"] [class*="panel"]:not([class*="panelBody"]) {
  background: var(--dsw-specific-sidebar-fill);
}

[data-slot="main.conversation"] header {
  border-bottom: 1px solid rgba(28, 37, 70, 0.08);
}

body[data-ds-dark-theme] [data-slot="main.conversation"] header,
body[data-ds-dark-theme] [data-slot="rightbar.session"] > *,
body[data-ds-dark-theme] [class*="rightbarCol"] [class*="panel"]:not([class*="panelBody"]) {
  background: var(--dsw-specific-sidebar-fill);
}

/* The right panel and the left pane are one frame, but the shell paints the
   left spine with --dsw-alias-border-l3 and this panel's border-left with
   --dsw-alias-border-l4, so the two vertical rules sat one rung apart
   (issue #1573). Match the left spine here instead of remapping l4, which
   every other l4 consumer shares. */
[class*="rightbarCol"] [class*="panel"]:not([class*="panelBody"]) {
  border-left-color: var(--dsw-alias-border-l3);
}

body[data-ds-dark-theme] [data-slot="main.conversation"] header {
  border-bottom-color: rgba(160, 180, 230, 0.12);
}


/* --- tool-call rows: one plate per row ------------------------------------ */

/* A tool call renders as a wrapper with two near-identical layers inside it
   (the row body and its disclosure header). Plating all three stacks the same
   translucent fill three times and the row reads as a doubled background, so
   plate the wrapper only and reset what is nested inside it. The wrapper
   carries a stable callRow suffix; the inner reset is scoped to the row and
   repeats the dark-theme prefix so it outranks the dark disclosure rule. */
[data-slot="main.conversation"] [class*="callRow"] {
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 8px;
  padding: 1px 8px;
  width: fit-content;
  max-width: 100%;
}

body[data-ds-dark-theme] [data-slot="main.conversation"] [class*="callRow"] {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .8));
}

[data-slot="conversation.session"] [class*="callRow"] [class*="o3BgMG_root"],
[data-slot="conversation.session"] [class*="callRow"] [class*="o3BgMG_summary"],
[data-slot="conversation.session"] [class*="callRow"] [data-disclosure-row],
body[data-ds-dark-theme] [data-slot="conversation.session"] [class*="callRow"] [class*="o3BgMG_root"],
body[data-ds-dark-theme] [data-slot="conversation.session"] [class*="callRow"] [class*="o3BgMG_summary"],
body[data-ds-dark-theme] [data-slot="conversation.session"] [class*="callRow"] [data-disclosure-row] {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: auto;
  max-width: none;
}

/* --- the user's own message bubble ---------------------------------------- */

/* Keep the accent fill the skin already assigns, add translucency to it and
   frost what shows through. The compound selector matters: a bare
   [class*="bubble"] would also catch unrelated bubbles elsewhere in the shell.

   The user's own bubble has always been the frosted one of the two -- deeper
   than the plates around it -- so it rides the same slider at 120%: the default
   10px reproduces the 12px this rule carried before the variable existed, and
   the knob scales it in step with everything else. The alpha above uses the
   same ratio for the same reason. */
[data-slot="main.conversation"] [class*="userStack"] [class*="bubble"] {
  /* 120% of the slider reproduces the 60% body this layer shipped with. */
  background: color-mix(in srgb, var(--dsw-specific-bubble) calc(var(--dsh-skin-bubble-alpha, .5) * 120%), transparent);
  -webkit-backdrop-filter: blur(calc(var(--dsh-skin-bubble-blur, 10px) * 1.2)) saturate(1.3);
  backdrop-filter: blur(calc(var(--dsh-skin-bubble-blur, 10px) * 1.2)) saturate(1.3);
}

/* --- deliverables row (this turn's produced files) ------------------------ */

/* Sits in the turn tail and had no plate at all.

   The width cannot come from a bare fit-content: the row's parent is a
   display:contents slot host that measures 0, and fit-content plus max-width
   then crushes the file chips onto three lines. Making the row an inline-level
   shrink-to-fit box keeps it independent of the parent's width, and align-self
   stops a flex parent from stretching it. */
[data-slot="main.conversation"] [class*="producedRow"] {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  background: rgb(242 245 250 / calc(var(--dsh-skin-bubble-alpha, .5) * 1));
  -webkit-backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  backdrop-filter: blur(var(--dsh-skin-bubble-blur, 10px)) saturate(1.3);
  border-radius: 8px;
  padding: 4px 10px;
}

body[data-ds-dark-theme] [data-slot="main.conversation"] [class*="producedRow"] {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .8));
}
