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

/* The Windows desktop shell paints --dsw-specific-sidebar-fill on its
   whole-window frame element. This skin defines that token as a scrim-tracking
   rgba(), so at the default scrim 0 its alpha is 1 and the frame painted the
   entire window flat #1d2539; because the frame is an ancestor of the
   conversation column, it covered the z-index: -2 whale illustration even
   though the web host (which uses the token on the sidebar only) rendered it
   fine (issue #1803). Clear the frame's background: the illustration layer
   stays visible and the scrim keeps driving the panels and the sidebar.
   Suffix matching on _frame handles the shell's CSS-module hash (e.g.
   BynINW_frame) without being neutralized by the skin patch prefix pipeline;
   maid-atelier and cyber-night ship the identical rule (issue #1763). */
[class*="_frame"] {
  background: transparent !important;
}

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;
}

/* Since 0.1.7 the shell's turn-process row is a non-interactive info bar -- it
   is always disabled and shows only the elapsed time -- and the shell gives it
   `cursor: default` itself. A blanket `button:disabled` outranks that on
   specificity (the skin's rules are prefixed with the skin scope), so the bar
   was repainted as a greyed-out control with a not-allowed cursor (issue
   #1714). Excluding it by the semantic attribute the shell stamps keeps the
   disabled styling for real controls while leaving each shell component's own
   disabled appearance intact. */
button:disabled:not([data-turn-process]), .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-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 ----------------- */

/* Host 0.2.0-rc.1 renders the running status row under data-chat-running with
   a divider span and a content span holding the icon and data-shimmer text.
   Plate the content span using stable semantic attributes (issue #20 / dsh-web#1756).
   padding: 1px 8px paired with margin-left: -8px extends the plate leftwards
   without shifting the icon from the content column. */
[data-chat-running] > span:has([data-shimmer]) {
  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%;
  margin-left: -8px;
}

body[data-ds-dark-theme] [data-chat-running] > span:has([data-shimmer]) {
  background: rgb(16 22 42 / calc(var(--dsh-skin-bubble-alpha, .5) * .8));
}

/* --- 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);
}

/* --- step-process row: the same plate ------------------------------------ */

/* 0.1.7 split "process" into a per-step row, and it did not inherit the
   readability layer the sibling turn-process row and the tool rows carry: the
   new title line rendered as bare text straight over the illustration (issue
   #1714). Give it the same plate.

   The plate must land on the title BUTTON, not on the row and not on the label
   span. The row root holds the expanded body, so a background there stacks a
   second plate behind every member row; the shimmer label uses
   `background-clip: text`, so a background there paints over the glyphs and the
   text disappears. The button is the one box that is exactly the title line, and
   `data-process-activity` is the stable semantic attribute the seat stamps on
   it, so the -icon / -chevron / -body / -content siblings stay untouched.

   The negative left margin cancels the new padding so the activity icon keeps
   the same x as the member rows below it: the plate grows leftwards and the
   text column does not shift. */
[data-slot="main.conversation"] [data-step-process] [data-process-activity] {
  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%;
  margin-left: -8px;
}

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

/* --- 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.

   Since dsh 0.1.7 the right panel shell is an always-mounted, always-visible
   positioning box (only its inner dockkit surfaces hide while closed), so an
   ungated paint covers the conversation area with a phantom plate whenever the
   panel is closed. Gate every right-panel paint on [data-sidebar-right-open];
   the attribute exists on the open panel in both the old and the new shell. */
[data-slot="main.conversation"] header,
[data-slot="rightbar.session"] > [data-sidebar-right-open],
[class*="rightbarCol"] [class*="panel"][data-sidebar-right-open]: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"] > [data-sidebar-right-open],
body[data-ds-dark-theme] [class*="rightbarCol"] [class*="panel"][data-sidebar-right-open]: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"][data-sidebar-right-open]: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));
}
