/* Hunar app: zinc neutrals, black (light) or white (dark) for every action, and muted colour for meaning only:
   spruce green for done or live, ochre for "needs you" (lock-out required, a senior's tip, waiting for approval),
   brick for danger, slate blue for sources. Inter for text, JetBrains Mono for tags and numbers. */
:root {
  --bg: #0f0f11;
  --panel: #17171a;
  --panel-2: #1e1e22;
  --ink: #ededef;
  --ink-soft: #c8c8cc;
  --muted: #9b9ba3;
  --line: #2a2a2f;
  --line-strong: #3a3a40;
  --accent: #ededef;      /* the action colour: white on dark, black on light */
  --accent-ink: #111113;
  --shadow: rgb(0 0 0 / .45);
  --ok: #8cc4a6;
  --ok-soft: rgb(140 196 166 / .12);
  --ok-line: rgb(140 196 166 / .32);
  --on-ok: #0e1d15;
  --watch: #d6b46c;
  --watch-soft: rgb(214 180 108 / .11);
  --watch-line: rgb(214 180 108 / .32);
  --stop: #e3958b;
  --stop-soft: rgb(227 149 139 / .12);
  --stop-line: rgb(227 149 139 / .34);
  --on-stop: #2a0f0b;
  --info: #a3b4d4;
  --info-soft: rgb(163 180 212 / .11);
  --senior: #d6b46c;
  --senior-soft: rgb(214 180 108 / .09);
  --senior-line: rgb(214 180 108 / .3);
  --radius: 12px;
  --font: "Inter", "Noto Sans Devanagari", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fafafa; --panel: #ffffff; --panel-2: #f4f4f5; --ink: #18181b; --ink-soft: #3f3f46; --muted: #6b6b74;
    --line: #e4e4e7; --line-strong: #d4d4d8; --accent: #18181b; --accent-ink: #ffffff; --shadow: rgb(24 24 27 / .14);
    --ok: #2f6b4f; --ok-soft: #eef4f0; --ok-line: #cfe0d6; --on-ok: #ffffff;
    --watch: #8c6a1f; --watch-soft: #f8f3e7; --watch-line: #e6d7b1;
    --stop: #a33a2f; --stop-soft: #f9efed; --stop-line: #edcfca; --on-stop: #ffffff;
    --info: #4a5f86; --info-soft: #eff2f7; --senior: #7a5c1a; --senior-soft: #f8f3e7; --senior-line: #e6d7b1;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
    --bg: #fafafa; --panel: #ffffff; --panel-2: #f4f4f5; --ink: #18181b; --ink-soft: #3f3f46; --muted: #6b6b74;
    --line: #e4e4e7; --line-strong: #d4d4d8; --accent: #18181b; --accent-ink: #ffffff; --shadow: rgb(24 24 27 / .14);
    --ok: #2f6b4f; --ok-soft: #eef4f0; --ok-line: #cfe0d6; --on-ok: #ffffff;
    --watch: #8c6a1f; --watch-soft: #f8f3e7; --watch-line: #e6d7b1;
    --stop: #a33a2f; --stop-soft: #f9efed; --stop-line: #edcfca; --on-stop: #ffffff;
    --info: #4a5f86; --info-soft: #eff2f7; --senior: #7a5c1a; --senior-soft: #f8f3e7; --senior-line: #e6d7b1;
    color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15.5px/1.65 var(--font); font-optical-sizing: auto; font-feature-settings: "cv11", "ss03"; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-family: var(--display); letter-spacing: -.005em; }
small { color: var(--muted); font-weight: 400; }
code, .mono { font-family: var(--mono); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px clamp(16px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.mark { display: block; width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.top h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.tagline { margin: 0; color: var(--muted); font-size: 13px; }
.top-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plant { color: var(--muted); font-size: 13px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill.off { background: var(--panel-2); color: var(--muted); }
.pill.on { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.pill.wait { background: var(--watch-soft); color: var(--watch); box-shadow: inset 0 0 0 1px var(--watch-line); }
.pill.ghost { border: 1px solid var(--line); font-family: var(--mono); }

.tabs { display: flex; gap: 2px; padding: 0 clamp(8px, 3vw, 28px); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; border: 0; background: none; padding: 10px 16px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button small { display: block; font-size: 11px; color: inherit; opacity: .8; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.count { position: absolute; top: 6px; right: 4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--stop); color: var(--on-stop); font-size: 12px; line-height: 20px; text-align: center; }

main { padding: clamp(20px, 3.4vw, 40px); max-width: 1320px; margin: 0 auto; }
.screen { display: none; }
.screen.active { display: block; }
h2.sub { margin: 36px 0 14px; font-size: 17px; font-weight: 600; }

/* ---------- floor ---------- */
.floor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr); gap: 28px; align-items: start; }
.voice { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 8px 0 20px; }
.talk { position: relative; width: 176px; height: 176px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-content: center; justify-items: center; gap: 6px; font-weight: 600; letter-spacing: -.005em; box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 18px 40px -12px var(--shadow); transition: background .2s, color .2s; }
.talk svg { width: 44px; height: 44px; fill: currentColor; }
.talk .ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--line-strong); opacity: 0; }
.talk[aria-pressed="true"] { background: var(--ok); color: var(--on-ok); }
.talk[aria-pressed="true"] .ring { border-color: var(--ok); animation: ring 1.6s infinite; }
@keyframes ring { 0% { transform: scale(.92); opacity: .7; } 100% { transform: scale(1.18); opacity: 0; } }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.captions { width: 100%; max-width: 640px; min-height: 5em; }
.cap { margin: 6px 0; }
.cap.you { color: var(--muted); font-size: 17px; }
.cap.ai { font: 600 clamp(20px, 2.4vw, 25px)/1.45 var(--display); }
.loto { width: 100%; max-width: 640px; border-radius: 10px; padding: 10px 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: center; }
.loto.required { background: var(--watch-soft); color: var(--watch); border: 1px solid var(--watch-line); }
.loto.isolated { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.who { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.who select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.section-head .who { margin: 6px 0 2px; }
#danger.danger { width: 100%; max-width: 640px; border-radius: 10px; padding: 12px 16px; font-weight: 600; background: var(--stop); color: var(--on-stop); text-align: center; animation: flash 1s 3; }
@keyframes flash { 50% { opacity: .55; } }
.card.history { border-left-color: var(--muted); }
.card.dup, .card.perm { border-left-color: var(--watch); }
.card.alert { border-left-color: var(--stop); background: var(--stop-soft); }
.card.wo.pending_approval { border-left-color: var(--watch); }
.card.wo.cancelled, .card.wo.superseded, .card.wo.rejected { opacity: .6; }
.status.pending_approval { color: var(--watch); }
.status.cancelled, .status.superseded, .status.rejected { color: var(--muted); }
.kh.alert-item { border-left: 3px solid var(--stop); }
.kh.alert-item.acknowledged { border-left-color: var(--ok); opacity: .7; }
.uncited { color: var(--watch); background: var(--watch-soft); padding: 8px 14px; border-radius: 10px; margin: 0; font-weight: 500; }

.cards { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-height: 420px; }
.cards-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.cards-head h2 { font-size: 15px; }
.cards-head span { color: var(--muted); font-size: 12px; }
.card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 70vh; overflow-y: auto; }
.card-list .empty { color: var(--muted); font-size: 14px; }
.card { border: 1px solid var(--line); border-left: 3px solid var(--info); background: var(--panel-2); border-radius: 10px; padding: 12px 16px; animation: rise .3s ease-out; }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } }
.card .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.card p { margin: 4px 0 0; }
.card.sop { border-left-color: var(--info); }
.card.manual { border-left-color: var(--line-strong); border-left-style: dashed; }
.card.web { border-left-color: var(--watch); border-left-style: dashed; }
.card.web small, .card.manual small { color: var(--muted); }
.card.kh { border-left-color: var(--senior); background: var(--senior-soft); }
.card.kh .who { color: var(--senior); font-weight: 600; }
.card.loto-req { border-left-color: var(--watch); }
.card.loto-ok { border-left-color: var(--ok); }
.card.wo { border-left-color: var(--ink-soft); }
.card.wo.raised { border-left-color: var(--ok); }
.card.learn { border-left-color: var(--senior); border-style: dashed; }
.card.spare { border-left-color: var(--muted); }
.quote { font-style: italic; color: var(--muted); }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.tag.lock { color: var(--watch); border-color: var(--watch-line); }
.tag.ok { color: var(--ok); border-color: var(--ok-line); }
.tag.synthetic { color: var(--muted); border-color: var(--line-strong); }
.key { font-family: var(--mono); font-weight: 600; }
.play { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; border: 1px solid var(--senior-line); border-radius: 99px; background: var(--panel); color: var(--senior); padding: 6px 14px 6px 10px; font-weight: 500; font-size: 14px; }
.play svg { width: 16px; height: 16px; fill: currentColor; }
.play.playing { outline: 2px solid var(--senior-line); outline-offset: 2px; }

/* ---------- senior ---------- */
.section-head p { color: var(--muted); max-width: 52em; margin: 4px 0 16px; }
.kh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kh { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.kh textarea { width: 100%; font: 500 16px/1.5 var(--font); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 60px; resize: vertical; }
.kh .text { font: 600 16.5px/1.5 var(--display); margin: 0; }
.kh .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.kh-list.approved .kh { border-left: 3px solid var(--ok); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.approve { background: var(--accent); color: var(--accent-ink); border: 0; padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.reject { background: none; border: 1px solid var(--line-strong); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 500; }
.rec { background: none; border: 1px solid var(--senior-line); color: var(--senior); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; }
.rec.on { background: var(--stop); border-color: var(--stop); color: var(--on-stop); }
.clipbtn { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: none; border-radius: 99px; padding: 4px 12px 4px 8px; font-size: 13px; }
.clipbtn svg { width: 14px; height: 14px; fill: currentColor; }
.kh-list .empty { color: var(--muted); }

/* ---------- ops ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tile b { display: block; font: 600 28px/1.2 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 13px; }
.tile.hero { border-color: var(--line-strong); box-shadow: inset 0 2px 0 var(--ink); }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders th, .orders td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.orders tr:last-child td { border-bottom: 0; }
.status { font-weight: 600; }
.jira { color: var(--info); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.jira-line { margin: -4px 0 10px; color: var(--muted); font-size: 14px; }
.jira-line .ghost-btn { margin: 0 0 0 6px; padding: 4px 10px; }
.jira-failed { color: var(--stop); }
.status.raised { color: var(--ok); }
.status.draft { color: var(--muted); }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.asset { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.asset b { font-family: var(--mono); }
.asset ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.ghost-btn { margin-top: 18px; background: none; border: 1px solid var(--line); color: var(--muted); padding: 8px 14px; border-radius: 10px; }

/* ---------- embedded in the demo view (/demo) ---------- */
/* The demo page titles each frame itself, so the frames drop their own branding and long explanations. */
[data-embed] main { padding: 16px 18px 24px; }
[data-embed] .tagline, [data-embed] .plant { display: none; }
[data-embed="floor"] .top { justify-content: flex-end; padding: 8px 16px; }
[data-embed="floor"] .brand { display: none; }
[data-embed="floor"] .tabs { display: none; }
[data-embed="floor"] .talk { width: 156px; height: 156px; }
[data-embed="floor"] .cards { min-height: 0; }
[data-embed="floor"] .floor { grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr); }
@media (max-width: 680px) { [data-embed="floor"] .floor { grid-template-columns: minmax(0, 1fr); } }
[data-embed="phone"] .top { display: none; }
[data-embed="phone"] .tabs [data-tab="floor"] { display: none; }
[data-embed="phone"] .section-head > h2, [data-embed="phone"] .section-head > p { display: none; }
[data-embed="phone"] .section-head .who { margin: 0 0 4px; }
[data-embed="phone"] h2.sub { margin-top: 20px; font-size: 14px; }
[data-embed="phone"] .tiles { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .floor { grid-template-columns: 1fr; }
  .cards { min-height: 0; }
  .plant { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* 2026-12-01: what ran behind an answer, and where the work went */
.card.trace { border-left-color: var(--info); background: transparent; border-style: dashed; border-left-style: solid; }
.card.trace .kind { color: var(--info); }
.card.trace p { color: var(--muted); font-size: 13px; }
.pill.link { border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pill.link:hover { border-color: var(--line-strong); }
[data-embed] .pill.link { display: none; }
.ge-line { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--info-soft); color: var(--ink); font-size: 14px; }
.ge-line a { color: var(--info); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.jira-live h2 small { font-size: 13px; margin-left: 6px; }
.jira-live .done { color: var(--ok); }

/* ---------- Agent activity: every step Hunar takes, as it happens (web/activity.js) ---------- */
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.activity { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 14px 16px 6px; }
.act-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.act-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 14px/1.3 var(--display); }
.act-head span { color: var(--muted); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.act-list { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; }
.ai-empty { color: var(--muted); font-size: 13px; line-height: 1.55; padding: 4px 0 10px; }

.ai-group { padding: 6px 0 8px; border-top: 1px solid var(--line); animation: ai-in .35s ease-out; }
.ai-group:first-child { border-top: 0; }
.ai-group.past { opacity: .62; transition: opacity .3s; }
.ai-group.past:hover { opacity: 1; }
.ai-q { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; margin: 2px 0 6px; }
.ai-q-text { font-size: 13.5px; color: var(--ink-soft); font-style: italic; overflow-wrap: anywhere; }
.ai-q-meta { font: 500 11.5px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.ai-group.interrupted .ai-q-meta::after { content: " · interrupted"; color: var(--watch); }

.ai-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.ai-step { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 5px 0; animation: ai-in .28s ease-out; }
.ai-step:not(:last-child)::before { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: -4px; width: 1px; background: var(--line); }
.ai-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--ink-soft); }
.ai-ic { width: 14px; height: 14px; }
.ai-line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; min-height: 26px; padding-top: 3px; }
.ai-title { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ai-ms { font: 500 11.5px/1 var(--mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai-detail p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.ai-detail b { color: var(--ink-soft); font-weight: 600; }
.ai-sub { color: var(--muted); font-size: 11.5px; }
.ai-chip { display: inline-block; font: 500 11.5px/1.5 var(--mono); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin: 1px 0; background: var(--panel-2); }
a.ai-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.ai-gate { display: inline-block; font: 600 10px/1.6 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--info); border: 1px solid var(--info); border-radius: 4px; padding: 0 5px; margin-right: 2px; vertical-align: 1px; opacity: .9; }
.ai-jira { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; }
.ai-jira .ai-ic { width: 13px; height: 13px; }
.ai-jira a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ai-query { font-family: var(--mono); font-size: 11.5px !important; }
.ai-held { color: var(--watch); }

/* running: a spinning ring around the icon and a live timer */
.ai-step.running .ai-dot { border-color: transparent; position: relative; }
.ai-step.running .ai-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--ink); animation: ai-spin .8s linear infinite; }
.ai-step.running .ai-title { color: var(--ink-soft); }
.ai-ellipsis { display: inline-block; animation: ai-blink 1.2s ease-in-out infinite; }
/* outcomes */
.ai-step.gate .ai-dot, .ai-step.ok .ai-dot { color: var(--ok); border-color: var(--ok-line); background: var(--ok-soft); }
.ai-step.warn .ai-dot { color: var(--watch); border-color: var(--watch-line); background: var(--watch-soft); }
.ai-step.blocked .ai-dot { color: var(--stop); border-color: var(--stop-line); background: var(--stop-soft); }
.ai-step.blocked .ai-title { color: var(--stop); }
.ai-step.danger .ai-dot { color: var(--on-stop); border-color: var(--stop); background: var(--stop); }
.ai-step.danger .ai-title { color: var(--stop); }
.ai-step.alert .ai-dot { color: var(--senior); border-color: var(--senior-line); background: var(--senior-soft); }
.ai-step.web .ai-dot { color: var(--info); border-color: var(--info); background: var(--info-soft); }

/* "see the chunks" */
.ai-more-btn { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--ink-soft); font: 500 12px/1.6 var(--font); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ai-more-btn::after { content: " ↓"; }
.ai-more-btn[aria-expanded="true"]::after { content: " ↑"; }
.ai-more { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.ai-chunks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ai-chunks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; font-size: 12px; color: var(--muted); }
.ai-chunks li p { margin: 1px 0 0; font-size: 12px; }
.ai-rank { font: 600 11px/1.6 var(--mono); color: var(--muted); }
.ai-more blockquote { margin: 0 0 8px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.ai-more blockquote:last-child { margin-bottom: 0; }
.ai-more cite { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ai-gsearch { display: block; width: 100%; height: 64px; margin-top: 6px; border: 0; border-radius: 8px; background: transparent; }

@keyframes ai-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ai-step, .ai-group { animation: none; } .ai-step.running .ai-dot::after { animation-duration: 2.4s; } }
[data-embed="floor"] .act-list { max-height: 46vh; }
[data-embed="floor"] .side { gap: 12px; }
[data-embed="floor"] .activity { padding: 12px 14px 4px; }
