/* ===== Ask AI page, redesigned (pass 117) =====
   Loaded last. Every rule is scoped to .ai-page, so the sheets (Chats, Memory, Plug-ins, Customize) and other screens keep their look.
   The look: a calm reading page (the AI answers on the page, you speak in a soft green pill), a one-row message box, and one
   memorable moment: while the AI works, a sprout grows beside a stem that adds a dot for every step. */

.ai-page {
  --ap-leaf: #1f7a52;
  --ap-leaf-soft: color-mix(in srgb, var(--ap-leaf) 11%, transparent);
  --ap-hair: color-mix(in srgb, var(--ink) 9%, transparent);
  --ap-mute: color-mix(in srgb, var(--ink) 5%, transparent);
}
:root[data-theme=dark] .ai-page { --ap-leaf: #4cc08c; --ap-hair: color-mix(in srgb, var(--ink) 13%, transparent); }
@media (prefers-color-scheme: dark) { :root[data-theme=system] .ai-page { --ap-leaf: #4cc08c; --ap-hair: color-mix(in srgb, var(--ink) 13%, transparent); } }

/* ---- Top row: Chats, who you are talking to and what it reads, Save and New chat ---- */
.ai-page .ai-head { display: flex; align-items: center; justify-content: space-between; gap: .25rem; min-height: 56px; margin: 0 0 .1rem; }
:root:root .ai-page .ai-head .ai-round { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); transition: background-color .15s, transform .12s; }
:root:root .ai-page .ai-head .ai-round:hover { background: var(--ap-mute); }
:root:root .ai-page .ai-head .ai-round:active { transform: scale(.92); background: var(--ap-mute); }
:root:root .ai-page .ai-head .ai-save.on { color: var(--ap-leaf); background: var(--ap-leaf-soft); }
.ai-page .ai-who { flex: 1; min-width: 0; justify-content: center; gap: .6rem; padding: .2rem .6rem; border-radius: 14px; }
.ai-page .ai-who-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.18; text-align: left; }
:root:root .ai-page .ai-who .ai-who-name { margin: 0; padding: 0; border: 0; background: none; font: 600 1rem var(--sans); letter-spacing: -.015em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-page .ai-who-sub { max-width: min(15rem, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 .72rem var(--sans); color: var(--soft); }
.ai-page .ai-av { background: color-mix(in srgb, var(--ap-leaf) 14%, var(--sheet)); color: var(--ap-leaf); }

/* ---- Empty state: who this is, then a plain list of things to try, then your recent chats ---- */
.ai-page .nc-empty { display: grid; justify-items: start; gap: .3rem; padding: 1rem 0 .25rem; text-align: left; }
.ai-page .nc-empty h2 { margin: .5rem 0 0; font: 600 1.6rem/1.15 var(--sans); letter-spacing: -.03em; }
.ai-page .nc-empty > p { max-width: 30rem; margin: 0; font-size: .95rem; line-height: 1.5; color: var(--soft); }
.ai-page .ap-try, .ai-page .nc-recent { display: grid; gap: 0; width: 100%; margin-top: 1.4rem; text-align: left; }
.ai-page .ap-cap, .ai-page .nc-recent .cs-group { margin: 0 0 .3rem; padding: 0 .1rem; font: 500 .78rem var(--sans); color: var(--soft); }
.ai-page .ap-q, .ai-page .nc-rc {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 52px; padding: .45rem .1rem; border: 0; border-top: 1px solid var(--ap-hair); border-radius: 0;
  background: none; color: var(--ink); font: 500 .95rem/1.3 var(--sans); text-align: left; transition: background-color .15s;
}
.ai-page .ap-q:active, .ai-page .nc-rc:active { background: var(--ap-mute); }
.ai-page .ap-q-i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ap-leaf-soft); color: var(--ap-leaf); }
.ai-page .ap-q-t { flex: 1; min-width: 0; }
.ai-page .nc-rc { min-height: 48px; font-weight: 400; }
.ai-page .nc-rc-i { color: var(--soft); }
.ai-page .nc-rc-s { font-size: .78rem; }
@media (max-width: 40rem) { .ai-page .ap-q:nth-of-type(n+5) { display: none; } }
@media (hover: hover) { .ai-page .ap-q:hover, .ai-page .nc-rc:hover { background: var(--ap-mute); } }

/* ---- The conversation ---- */
.ai-page .nc-list { display: grid; gap: 1.6rem; min-height: 0; margin: .6rem 0 1rem; }
.ai-page .nc-user { justify-self: end; max-width: 86%; padding: .6rem .95rem; border: 1px solid color-mix(in srgb, var(--ap-leaf) 16%, transparent); border-radius: 18px 18px 6px 18px; background: color-mix(in srgb, var(--ap-leaf) 11%, var(--sheet)); font: 400 1rem/1.5 var(--sans); }
.ai-page .nc-body { display: grid; gap: .7rem; font: 400 1rem/1.7 var(--sans); }
.ai-page .nc-body .ans > :first-child { margin-top: 0; }
.ai-page .nc-body .ans p { margin: .55rem 0; }
.ai-page .nc-body .ans :is(h1, h2, h3, h4) { margin: 1.2rem 0 .3rem; font: 600 1.05rem/1.35 var(--sans); letter-spacing: -.01em; }
.ai-page .nc-body .ans :is(ul, ol) { margin: .5rem 0; padding-left: 1.3rem; }
.ai-page .nc-body .ans li { margin: .3rem 0; padding-left: .15rem; }
.ai-page .nc-body .ans li::marker { color: var(--ap-leaf); font-weight: 600; }
.ai-page .nc-body .ans a { color: var(--ap-leaf); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ai-page .nc-body .ans :not(pre) > code { padding: .08em .38em; border-radius: 6px; background: var(--ap-mute); font: .88em var(--mono, ui-monospace, monospace); }
.ai-page .nc-body .ans pre { margin: .7rem 0; padding: .8rem .95rem; border-radius: 14px; background: var(--ap-mute); font: .86rem/1.55 var(--mono, ui-monospace, monospace); }
.ai-page .nc-body .ans blockquote { margin: .7rem 0; padding: .1rem 0 .1rem .9rem; border-left: 3px solid color-mix(in srgb, var(--ap-leaf) 45%, transparent); color: var(--soft); }
.ai-page .nc-body .ans table { border-collapse: collapse; font-size: .9rem; }
.ai-page .nc-body .ans :is(th, td) { padding: .45rem .7rem; border-bottom: 1px solid var(--ap-hair); text-align: left; }

/* ---- What the AI did: a small "Worked for 5s" button that opens a stem of steps ---- */
.ai-page .nc-steps { width: fit-content; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: none; font: 500 .8rem var(--sans); color: var(--soft); }
.ai-page .nc-steps summary { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; padding: 0 .75rem 0 .65rem; border-radius: 999px; background: var(--ap-mute); list-style: none; transition: background-color .15s; }
.ai-page .nc-steps summary::-webkit-details-marker { display: none; }
.ai-page .nc-steps summary::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 0 85% 0 85%; background: var(--ap-leaf); }
.ai-page .nc-steps summary::after { content: ""; flex: none; width: 6px; height: 6px; margin: -3px 0 0 .1rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease, ease); }
.ai-page .nc-steps[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.ai-page .nc-sum-t { color: var(--ink); }
.ai-page .nc-sum-n { opacity: .75; }
.ai-page .nc-steps[open] { width: auto; border-radius: 0; padding: 0; }
.ai-page .nc-steps .nc-tl { margin-top: .45rem; }

.ai-page .nc-tl { display: grid; margin: 0; padding: .1rem 0 .1rem .3rem; list-style: none; font: 400 .86rem/1.4 var(--sans); color: var(--soft); }
.ai-page .nc-tl li { position: relative; display: flex; gap: .7rem; min-width: 0; padding: .38rem 0; }
.ai-page .nc-tl li::before { display: none; }
.ai-page .nc-tl li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 1.55rem; bottom: -.2rem; width: 1.5px; margin: 0; border-radius: 1px; background: color-mix(in srgb, var(--ap-leaf) 32%, transparent); }
.ai-page .nc-tl-d { position: relative; flex: none; width: 13px; height: 13px; margin-top: .22rem; border-radius: 50%; background: var(--ap-leaf); }
.ai-page .nc-tl li.done .nc-tl-d::after { content: ""; position: absolute; left: 4.2px; top: 2.2px; width: 3px; height: 6px; border-right: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(45deg); }
.ai-page .nc-tl li.now { color: var(--ink); }
.ai-page .nc-tl li.now .nc-tl-d { background: var(--sheet); box-shadow: inset 0 0 0 2px var(--ap-leaf); animation: ap-ring 1.5s ease-out infinite; }
.ai-page .nc-tl-t { min-width: 0; overflow-wrap: anywhere; }

/* The live block: a sprout that grows and a "Working for 12s" line with a light moving across it */
.ai-page .nc-working .nc-body { gap: .55rem; }
.ai-page .nc-wh { display: flex; align-items: center; gap: .55rem; margin: 0; font: 500 .92rem var(--sans); }
.ai-page .nc-wh-t { background: linear-gradient(90deg, var(--soft) 0 38%, var(--ink) 50%, var(--soft) 62% 100%) 100% 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: ap-sheen 2.2s linear infinite; }
.ai-page .nc-sprout { position: relative; flex: none; width: 18px; height: 18px; }
.ai-page .nc-sprout::before { content: ""; position: absolute; left: 8px; bottom: 1px; width: 2px; height: 12px; border-radius: 2px; background: var(--ap-leaf); transform-origin: 50% 100%; animation: ap-stem 2.6s var(--ease, ease) infinite; }
.ai-page .nc-sprout::after { content: ""; position: absolute; left: 9px; top: 1px; width: 9px; height: 9px; border-radius: 0 100% 0 100%; background: var(--ap-leaf); transform-origin: 0 100%; animation: ap-leaf 2.6s var(--ease, ease) infinite; }
@keyframes ap-stem { 0% { transform: scaleY(0); opacity: 1; } 35%, 82% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes ap-leaf { 0%, 32% { transform: scale(0) rotate(-24deg); opacity: 0; } 58%, 82% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ap-sheen { to { background-position: 0 0; } }
@keyframes ap-ring { 0% { box-shadow: inset 0 0 0 2px var(--ap-leaf), 0 0 0 0 color-mix(in srgb, var(--ap-leaf) 45%, transparent); } 100% { box-shadow: inset 0 0 0 2px var(--ap-leaf), 0 0 0 7px transparent; } }

/* ---- Sources: a quiet label and one row of pills that scrolls sideways ---- */
.ai-page .chat-src { display: grid; gap: .35rem; margin: .35rem 0 0; font: 400 .8rem var(--sans); color: var(--soft); }
.ai-page .chat-src-l { font: 500 .74rem var(--sans); color: var(--soft); }
.ai-page .chat-src-row { display: flex; gap: .4rem; margin: 0 -.15rem; padding: .1rem .15rem .2rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.ai-page .chat-src-row::-webkit-scrollbar { display: none; }
.ai-page .chat-src a.chip { flex: none; display: inline-flex; align-items: center; max-width: 16rem; min-height: 32px; padding: 0 .8rem; border: 1px solid var(--ap-hair); border-radius: 999px; background: var(--sheet); color: var(--ink); font: 500 .8rem var(--sans); text-decoration: none; white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.ai-page .chat-src a.chip .il { min-width: 0; }
.ai-page .chat-src a.chip .il > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ai-page .chat-src a.chip:active { background: var(--ap-mute); }

/* Cards the AI proposes (actions, plans, drawings, memory) */
.ai-page :is(.nc-action, .studio) { border: 1px solid var(--ap-hair); border-radius: 16px; background: var(--sheet); padding: .8rem .95rem; }
.ai-page .nc-rem { padding: .5rem .65rem .5rem .8rem; border-radius: 14px; background: var(--ap-leaf-soft); color: var(--ink); }

/* ---- The notes at the bottom of the box (credits, sign in) ---- */
.ai-page .ai-bar .ai-note, .ai-page .ai-bar .write-note { margin: .1rem 0 0; padding: 0 .5rem; text-align: center; font: 400 .7rem/1.35 var(--sans); color: color-mix(in srgb, var(--soft) 90%, transparent); }
.ai-page .ai-bar .write-note { margin-top: .05rem; }
:root:root:root .ai-page .ai-bar.listening :is(.ai-note, .write-note) { display: none; }

/* ---- The message box: one soft glass card, the text on top and every control in one row below ---- */
:root:root:root .ai-page .ai-bar.ai-bar.nc-bar {
  display: grid; gap: .05rem; padding: .35rem .45rem .45rem; border: 1px solid var(--ap-hair); border-radius: 24px;
  background: color-mix(in srgb, var(--sheet) 94%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: 0 18px 38px -20px rgba(18, 44, 32, .4), 0 2px 6px -2px rgba(18, 44, 32, .08), inset 0 1px 0 var(--lg-spec, rgba(255, 255, 255, .7));
}
:root[data-gfx=off] .ai-page .ai-bar.nc-bar, :root[data-contrast=high] .ai-page .ai-bar.nc-bar { background: var(--sheet) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:root:root:root .ai-page .ai-bar textarea { min-height: 44px; max-height: min(9.5rem, 30dvh); padding: .55rem .6rem .2rem; font: 400 1rem/1.45 var(--sans); font-size: max(16px, 1rem); }
:root:root:root .ai-page .ai-bar textarea::placeholder { color: color-mix(in srgb, var(--soft) 80%, transparent); }
:root:root:root .ai-page .ai-bar .ai-tools { display: flex; flex-wrap: nowrap; align-items: center; gap: .2rem; min-width: 0; padding: 0; border: 0; }
:root:root:root .ai-page .ai-bar.listening .ai-tools { display: none; }
:root:root:root .ai-page .ai-bar .ai-tool, :root:root:root .ai-page .ai-bar .ai-tools .etb { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft); transition: background-color .15s, color .15s, transform .12s; }
:root:root:root .ai-page .ai-bar .ai-tool:hover, :root:root:root .ai-page .ai-bar .ai-tools .etb:hover, :root:root:root .ai-page .ai-bar .ai-tool[aria-expanded=true] { background: var(--ap-mute); color: var(--ink); }
:root:root:root .ai-page .ai-bar .ai-tool:active, :root:root:root .ai-page .ai-bar .ai-tools .etb:active { transform: scale(.92); }
:root:root:root .ai-page .ai-bar .ai-tool[aria-label^="Add"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ap-hair); }
:root:root:root .ai-page .ai-bar .ai-tool.warn { color: var(--margin); }
:root:root:root .ai-page .ai-bar .ai-chips { flex: 1 1 0; display: flex; flex-wrap: nowrap; align-items: center; gap: .3rem; min-width: 0; margin: 0 0 0 .1rem; padding: 0 1rem 0 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
:root:root:root .ai-page .ai-bar .ai-chips::-webkit-scrollbar { display: none; }
:root:root:root .ai-page .ai-bar .ai-chips .nc-chip { flex: none; display: inline-flex; align-items: center; gap: .3rem; min-height: 30px; padding: 0 .65rem 0 .5rem; border: 0; border-radius: 999px; background: var(--ap-mute); color: var(--soft); font: 500 .78rem var(--sans); white-space: nowrap; }
:root:root:root .ai-page .ai-bar .ai-chips .nc-chip svg { width: 15px; height: 15px; }
:root:root:root .ai-page .ai-bar .ai-chips .nc-chip.on { background: var(--ap-leaf-soft); color: var(--ap-leaf); }
:root:root:root .ai-page .ai-bar .ai-model { flex: 0 1 auto; min-width: 0; max-width: 5.6rem; min-height: 34px; padding: 0 .5rem; border-radius: 999px; background: none; color: var(--soft); font: 500 .8rem var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:root:root .ai-page .ai-bar .ai-model:hover, :root:root:root .ai-page .ai-bar .ai-model[aria-expanded=true] { background: var(--ap-mute); color: var(--ink); }
:root:root:root .ai-page .ai-bar .nc-send.nc-send.btn:not(.ghost) { flex: none; display: grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--ap-leaf); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 14px -8px color-mix(in srgb, var(--ap-leaf) 90%, transparent); transition: background-color .2s, color .2s, transform .15s, box-shadow .2s; }
:root:root:root .ai-page .ai-bar .nc-send.nc-send.btn:not(.ghost).idle { background: var(--ap-mute); color: color-mix(in srgb, var(--ink) 35%, transparent); box-shadow: none; }
:root:root:root .ai-page .ai-bar .nc-send.nc-send.btn:not(.ghost):active { transform: scale(.9); }
:root:root:root .ai-page .ai-bar .nc-send.nc-send.btn:not(.ghost):disabled { opacity: .55; }

/* Very narrow phones: the model name gives way so nothing is cut off */
@media (max-width: 22.5rem) { :root:root:root .ai-page .ai-bar .ai-model { display: none; } }

:root[data-motion=reduce] .ai-page :is(.nc-sprout, .nc-sprout::before, .nc-sprout::after, .nc-wh-t, .nc-tl-d) { animation: none !important; }
:root[data-motion=reduce] .ai-page .nc-wh-t { background: none; color: var(--soft); -webkit-text-fill-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .ai-page .nc-wh-t { background: none; color: var(--soft); -webkit-text-fill-color: currentColor; } }

/* Wide screens: a reading column, centred, so lines stay short */
:root:root .chat.ai-page { max-width: 46rem; margin-inline: auto; }


/* ---- Pass 118: the message box is docked at the bottom, like Claude and other chat apps ----
   The page is one screen-high column: header on top, the conversation scrolling in the middle, the message box at the bottom.
   The box no longer floats (sticky) over the suggestions; with the keyboard open it sits right on top of the keyboard. */
html:has(.chat.ai-page) { overflow: hidden; overscroll-behavior: none; }
:root:root .shell .work:has(> .chat.ai-page) { padding-top: 0; padding-bottom: 0; }
:root:root .chat.ai-page {
  display: flex; flex-direction: column; box-sizing: border-box; min-height: 0; overflow: hidden;
  height: calc(var(--vvh, 100dvh) - var(--chat-top, 61px));
  padding: .25rem 0 calc(var(--bb, 0px) + .5rem);
}
:root:root[data-kb=open] .chat.ai-page { padding-bottom: .5rem; }
:root:root .chat.ai-page > .ai-head { flex: none; }
:root:root .chat.ai-page > .nc-list {
  flex: 1 1 auto; min-height: 0; align-content: start; margin: 0; padding: .6rem 0 1rem;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
:root:root .chat.ai-page > .nc-list::-webkit-scrollbar { display: none; }
:root:root .chat.ai-page > .qc-err { flex: none; margin: 0; }
:root:root .chat.ai-page > .qc-err:empty { display: none; }
:root:root .chat.ai-page > .ai-bar.ai-bar.nc-bar { flex: none; position: static; inset: auto; margin: .35rem 0 0; }

/* ---- Pass 122: the message box owns the bottom of the screen ----
   On phones the floating dock (and its green button) steps aside on this page, so the box sits on the very bottom edge like Claude and other chat apps.
   The menu moves up into the top bar for this page. */
.top-menu { display: none; }
@media (max-width: 59.99rem) {
  :root:root .shell.shell:has(.chat.ai-page) .bottom-bar.bottom-bar { display: none; }
  :root:root .shell:has(.chat.ai-page) { --bb: 0px; }
  :root:root .shell .topbar .top-menu { display: none; }
  :root:root .shell:has(.chat.ai-page) .topbar .top-menu { display: inline-grid; place-items: center; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
  :root:root .shell:has(.chat.ai-page) .topbar .top-menu svg { width: 21px; height: 21px; }
  :root:root .shell:has(.chat.ai-page) .topbar .top-menu + .brand { margin-left: .5rem; }
}
/* Safe room under the box for gesture bars and rounded corners */
:root:root .chat.ai-page { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + .55rem); padding-inline: 0; }
:root:root[data-kb=open] .chat.ai-page { padding-bottom: .5rem; }
/* The conversation fades under the header and above the box instead of being cut with a hard edge */
:root:root .chat.ai-page > .nc-list {
  padding: 1rem 0 1.4rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 20px), transparent 100%);
}
/* One short credit line; the long explanation is its tooltip. Nothing shows when there is nothing to say. */
:root:root:root .ai-page .ai-bar .ai-note { margin: .15rem 0 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 .7rem/1.3 var(--sans); }
:root:root:root .ai-page .ai-bar .ai-note:has(> span:empty) { display: none; }
/* The model name looks tappable */
:root:root:root .ai-page .ai-bar .ai-model { display: inline-flex; align-items: center; gap: .3rem; max-width: 6.4rem; padding: 0 .55rem 0 .6rem; }
:root:root:root .ai-page .ai-bar .ai-model::after { content: ""; flex: none; width: 5px; height: 5px; margin-top: -2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
:root:root:root .ai-page .ai-bar.ai-bar.nc-bar { margin: .3rem 0 0; }

/* ---- Pass 123: the top bar, ChatGPT-style pills in the Idea Orchard look ----
   A round Chats button on the left, the AI's name in the middle, and one rounded pill on the right that holds New chat and More.
   The pills are soft glass with a leaf-green hairline, so they read on both the page and the answers fading under them. */
.ai-page .ai-head { gap: .5rem; min-height: 60px; padding: .3rem 0 .1rem; }
:root:root:root .ai-page .ai-head .ai-round {
  position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ap-hair); border-radius: 50%;
  background: color-mix(in srgb, var(--sheet) 82%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 8px 20px -14px rgba(18, 44, 32, .45), inset 0 1px 0 var(--lg-spec, rgba(255, 255, 255, .65));
}
:root:root:root .ai-page .ai-head .ai-round:active { transform: scale(.93); background: var(--ap-mute); }
.ai-page .ai-head .ai-right.ai-pill {
  display: inline-flex; align-items: center; flex: none; gap: 0; height: 44px; padding: 0 .15rem; border: 1px solid var(--ap-hair); border-radius: 999px;
  background: color-mix(in srgb, var(--sheet) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 8px 20px -14px rgba(18, 44, 32, .45), inset 0 1px 0 var(--lg-spec, rgba(255, 255, 255, .65));
}
:root:root:root .ai-page .ai-head .ai-pill .ai-round { width: 42px; height: 42px; border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root:root:root .ai-page .ai-head .ai-pill .ai-round:active { background: var(--ap-mute); }
.ai-page .ai-head .ai-more.saved::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-leaf); box-shadow: 0 0 0 2px var(--sheet); }
/* The name sits in the middle without a box: small leaf avatar, name, and what it reads underneath */
.ai-page .ai-who { flex: 1; justify-content: center; gap: .5rem; padding: .15rem .4rem; background: none; }
.ai-page .ai-who-av .ai-av { width: 28px !important; height: 28px !important; }
:root:root .ai-page .ai-who .ai-who-name { font: 600 .98rem var(--sans); }
.ai-page .ai-who-sub { max-width: min(11rem, 100%); }
@media (max-width: 22.5rem) { .ai-page .ai-who-av { display: none; } }
:root[data-gfx=off] .ai-page .ai-head .ai-round, :root[data-gfx=off] .ai-page .ai-head .ai-right.ai-pill, :root[data-contrast=high] .ai-page .ai-head .ai-round, :root[data-contrast=high] .ai-page .ai-head .ai-right.ai-pill { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ai-tools .ai-tool[hidden], .ai-tools .ai-model[hidden] { display: none !important; }
