/* Zigu DS 0.5.325 (2026-11-25) 에서 뽑음 — 손으로 고치지 말 것. 다시 만들기: python3 website/tools/zds-sync.py
   컴포넌트: ai-icon, message · 토큰 97개(테마 dark 값으로 풀어 적음) */
:root {
  --ai-icon-aqua: #7FD5DC;
  --ai-icon-core: #FFFFFF;
  --ai-icon-deep: #000B24;
  --ai-icon-duration: 9s;
  --ai-icon-freeze-duration: 0.9s;
  --ai-icon-frost: #C2E0FF;
  --ai-icon-frost-edge: #FFFFFF;
  --ai-icon-frost-line: #7FB2D6;
  --ai-icon-lilac: #B48BD3;
  --ai-icon-mid: #001B57;
  --ai-icon-ocean: #3399FF;
  --ai-icon-orbit-duration: 4.2s;
  --ai-icon-rose: #F97F90;
  --ai-icon-size: 20px;
  --ai-icon-size-2xl: 48px;
  --ai-icon-tail-lag: 0.24s;
  --ai-icon-think-duration: 3.2s;
  --ai-icon-violet: #6258BA;
  --bg-default: #282F33;
  --body-2xs-lh: 16px;
  --body-2xs-size: 11px;
  --body-3xs-lh: 14px;
  --body-3xs-size: 10px;
  --body-sm-lh: 20px;
  --body-sm-size: 14px;
  --body-xs-lh: 16px;
  --body-xs-size: 12px;
  --comment-text-tag-lh: 24px;
  --duration-fast: 120ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --focus-ring: 0 0 0 2px #3399FF;
  --font-medium: 500;
  --font-regular: 400;
  --font-sans: "Pretendard Variable", Pretendard, "Noto Color Emoji", -apple-system, BlinkMacSystemFont, system-ui,
               "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --icon-lg: 24px;
  --icon-sm: 16px;
  --icon-strong: #CCD2D9;
  --icon-subtle: #80909B;
  --icon-xl: 32px;
  --menu-bg: #282F33;
  --menu-border: #4C5357;
  --menu-z: 10;
  --message-actions-line: #4C5357;
  --message-actions-on: rgb(0 127 255 / 0.16);
  --message-actions-room: 60px;
  --message-balloon-bg: color-mix(in srgb, #282F33, #FFFFFF 10%);
  --message-balloon-fg: #F6F8F9;
  --message-balloon-max: 480px;
  --message-balloon-padding-x: 12px;
  --message-balloon-padding-y: 6px;
  --message-balloon-radius: 12px;
  --message-enter-duration: 200ms;
  --message-enter-scale: 0.96;
  --message-enter-shift: 8px;
  --message-fail: #F85A5E;
  --message-gap: 8px;
  --message-line: rgb(255 255 255 / 0.10);
  --message-name: #F6F8F9;
  --message-original-fg: #97A4AC;
  --message-plain-hover: rgb(255 255 255 / 0.05);
  --message-quote-fg: #CCD2D9;
  --message-run-gap: 16px;
  --message-sent-bg: #F6F8F9;
  --message-sent-fg: #2A3237;
  --message-sent-line: #E6E9ED;
  --message-sent-muted: #4D5A61;
  --message-sent-original-fg: #6A7C87;
  --message-sent-tag-bg: #E6E9ED;
  --message-sent-tag-bg-hover: #D3D7DC;
  --message-stack-gap: 6px;
  --message-stream-fade: 200ms;
  --message-tag-bg: rgb(255 255 255 / 0.10);
  --message-tag-bg-hover: rgb(255 255 255 / 0.20);
  --message-time: #80909B;
  --message-typing-dot: #80909B;
  --message-typing-duration: 1.2s;
  --message-whisper-line: #80909B;
  --message-whisper-sent-bg: #282F33;
  --radius-md: 8px;
  --radius-sm: 4px;
  --red-600: #EE4649;
  --shadow-md: 0 8px 24px 0 rgb(0 0 0 / 0.20);
  --shadow-xs: 0 1px 3px 0 rgb(0 0 0 / 0.15);
  --size-xs: 24px;
  --space-12: 12px;
  --space-16: 16px;
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --tag-bg: rgb(255 255 255 / 0.05);
  --tag-bg-hover: #4C5357;
  --text-primary: #F6F8F9;
  --text-secondary: #CCD2D9;
  --tracking: -0.0186em;
  --white: #FFFFFF;
  --white-a30: rgb(255 255 255 / 0.30);
  --white-a65: rgb(255 255 255 / 0.65);
}

/* ── components/ai-icon.css ── */
/* =============================================================================
   Zigu — AI icon  (components/ai-icon.css)  · Atom
   Zigu's AI, moving: a small night planet (navy sphere, a breathing core of light) with three light
   comets on tilted orbits and a slow aurora; an iridescent rim and a glass highlight. Idle it drifts.
   While the AI works (--thinking) it breathes in cycles: each comet, tail and all, spirals into the planet over one
   more lap — its orbit closing little by little — and merges with it (the core swells), then spirals back out (it
   shrinks) and orbits again like a satellite. The AI's only mark (it replaces Icon "ai").
   Requires tokens.css. Spec: components/ai-icon.md · no Figma page (motif from the product owner's sample).

   <span class="zg-ai-icon" role="img" aria-label="AI">                 ← aria-hidden="true" next to the word "AI"
     <span class="zg-ai-icon__aurora"></span>
     <span class="zg-ai-icon__orbit"><i class="zg-ai-icon__comet"></i></span>   ← ×3
     <span class="zg-ai-icon__core"></span>
   </span>

   size: (md 20) · --lg 24 · --xl 32 — the sizes of Icon's circle frame (zg-icon-box--circle md · lg · xl); the orb is
         the circle · --2xl 48 (user, v0.5.182: 1.5× xl, past the frame — a large spot such as the AI's welcome).
         More sizes only when a screen needs one (product owner) — add a class here, don't size it ad hoc.
         (--zg-ai-icon-size exists for the doc page's magnifier.)
   state: --thinking (the AI is working — say so in words too)
          --still (frozen: an AI that is here but not the live one — past answers, lists of AI things, many on a screen.
          It freezes where it is — every motion pauses mid-way — as frost grows in from the rim and its light cools;
          glints of light twinkle around it like a crystal (v0.5.325 — keep the icon's place with gap, never a margin);
          taking it off thaws it and it moves on from there. Drawn already frozen, it just is — no freeze plays.)
          Stopping thinking: let the running cycle end (the comets come back out) — ZDS.aiIconThinking(el, false);
          removing the class at once snaps them out of the core (CSS can't ease out of an animation).
   Motion: rotate · translate · scale · opacity only. Idle: 5 running animations (aurora + rim · 3 comets · core);
   thinking adds 10 (per comet: the faster lap · the head's and the tail's closing orbit; the core's swell). Each costs a style pass on every frame the page draws, so
   lists show --still and only the live one moves (a frozen one keeps only its glints' twinkle — SMIL inside one image, no
   style work). Reduced motion: still (thinking = a steady brighter core; the glints lit, not twinkling).
   ========================================================================== */
.zg-ai-icon {
  --_s: var(--zg-ai-icon-size, var(--ai-icon-size));
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--_s);
  height: var(--_s);
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  vertical-align: middle;
  --_orb: radial-gradient(circle at 50% 56%, var(--ai-icon-mid) 0%, var(--ai-icon-deep) 64%);
  background: var(--_orb);   /* + the frozen glints' folded layers — see “glints” below */
}
.zg-ai-icon--lg { --_s: var(--icon-lg); }    /* 24 */
.zg-ai-icon--xl { --_s: var(--icon-xl); }    /* 32 */
.zg-ai-icon--2xl { --_s: var(--ai-icon-size-2xl); }   /* 48 */

/* aurora: four soft lights drifting round the middle (screen-blended on the night). The rim rides on it (::after),
   so it turns too without an animation of its own — every running animation costs a style pass per frame. */
.zg-ai-icon__aurora {
  --_a: 55%;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 34%, color-mix(in srgb, var(--ai-icon-aqua) var(--_a), transparent) 0, transparent 36%),
    radial-gradient(circle at 70% 42%, color-mix(in srgb, var(--ai-icon-ocean) var(--_a), transparent) 0, transparent 40%),
    radial-gradient(circle at 62% 74%, color-mix(in srgb, var(--ai-icon-rose) var(--_a), transparent) 0, transparent 34%),
    radial-gradient(circle at 30% 68%, color-mix(in srgb, var(--ai-icon-violet) var(--_a), transparent) 0, transparent 42%);
  mix-blend-mode: screen;
  animation: zg-ai-turn var(--ai-icon-duration) linear infinite;
}
/* the iridescent rim, glowing inward */
.zg-ai-icon__aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--ai-icon-aqua), var(--ai-icon-ocean), var(--ai-icon-violet), var(--ai-icon-rose), var(--ai-icon-lilac), var(--ai-icon-aqua));
  -webkit-mask: radial-gradient(closest-side, transparent 80%, rgb(0 0 0 / 0.35) 90%, #000 100%);
          mask: radial-gradient(closest-side, transparent 80%, rgb(0 0 0 / 0.35) 90%, #000 100%);
}

/* comets: a light trail on a tilted, flattened orbit — the orbit is the box (tilt · flatten); the comet turns in it.
   The comet is two layers on one turning frame: ::before the long tail, ::after the head with a short streak — idle
   they read as one trail; spiralling in, the tail's orbit closes a moment after the head's, so the tail trails outside
   it like a spiral (v0.5.145). Each layer carries the ring mask, so it shrinks with it. */
.zg-ai-icon__orbit {
  position: absolute;
  inset: var(--_in, 12%);
  rotate: var(--_tilt, 0deg);
  scale: 1 var(--_flat, 0.4);
  mix-blend-mode: screen;
}
.zg-ai-icon__comet {
  position: absolute;
  inset: 0;
  rotate: var(--_from, 0deg);
  animation: zg-ai-orbit var(--_t, var(--ai-icon-orbit-duration)) linear infinite;
}
.zg-ai-icon__comet::before,
.zg-ai-icon__comet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, transparent 64%, #000 84%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 64%, #000 84%, transparent 100%);
}
.zg-ai-icon__comet::before { background: conic-gradient(transparent 0 42%, color-mix(in srgb, var(--_c) 30%, transparent) 68%, var(--_c) 84%, transparent 92%); }   /* tail */
.zg-ai-icon__comet::after { background: conic-gradient(transparent 0 76%, var(--_c) 85%, var(--ai-icon-core) 93%, color-mix(in srgb, var(--ai-icon-core) 40%, transparent) 96%, transparent 99%); }   /* head — it fades (no blade) */
.zg-ai-icon__orbit:nth-child(2) { --_tilt: -32deg; --_flat: 0.42; --_c: var(--ai-icon-aqua); --_from: 40deg; }
.zg-ai-icon__orbit:nth-child(3) { --_in: 17%; --_tilt: 38deg; --_flat: 0.5; --_c: var(--ai-icon-lilac); --_from: 210deg; --_t: calc(var(--ai-icon-orbit-duration) * 1.35); }
.zg-ai-icon__orbit:nth-child(4) { --_in: 7%; --_tilt: 84deg; --_flat: -0.28; --_c: var(--ai-icon-rose); --_from: 120deg; --_t: calc(var(--ai-icon-orbit-duration) * 1.7); }   /* flipped: it goes the other way round */

/* ---- thinking (user, v0.5.143 → v0.5.145): each comet spirals into the planet and back out — one cycle per
   --ai-icon-think-duration. The orbits stay; each comet, tail and all, goes round once more while its orbit closes
   little by little — slowly at first, then faster as it nears the middle, and it turns faster too (like anything
   falling in) — so it slides into the core instead of turning at it. Its tail's orbit closes 0.24s behind the head's,
   so the tail runs outside it, along the spiral. The three come from their own sides and leave their own ways.
   0 → 40%   one more lap (an extra turn on top of its own) as the orbit closes — into the core (0 · 0.1 · 0.2s apart)
   40 → 50%  merged — the core swells (below)
   50 → 70%  spiral back out, a little past the orbit — the core shrinks
   70 → 80%  settle onto the orbit
   80 → 100% orbit like a satellite, as when idle — then again (the extra turn is a whole one, so it's the same pose)
   It starts in the idle pose (no jump going in). Coming out: ZDS.aiIconThinking(el, false) waits for the first comet's
   cycle to end — the others are then in their quiet part — so nothing jumps either. */
.zg-ai-icon--thinking .zg-ai-icon__comet { animation: zg-ai-orbit var(--_t, var(--ai-icon-orbit-duration)) linear infinite, zg-ai-spiral var(--ai-icon-think-duration) var(--_d, 0s) infinite; }
.zg-ai-icon--thinking .zg-ai-icon__comet::after { animation: zg-ai-close var(--ai-icon-think-duration) var(--_d, 0s) infinite; }
.zg-ai-icon--thinking .zg-ai-icon__comet::before { animation: zg-ai-close var(--ai-icon-think-duration) calc(var(--_d, 0s) + var(--ai-icon-tail-lag)) infinite; }
.zg-ai-icon--thinking .zg-ai-icon__orbit:nth-child(3) { --_d: 100ms; }
.zg-ai-icon--thinking .zg-ai-icon__orbit:nth-child(4) { --_d: 200ms; }
/* the extra turn — inside the lap's rotate, so it adds to it */
@keyframes zg-ai-spiral {
  0%   { transform: none; animation-timing-function: cubic-bezier(0.45, 0, 0.8, 0.55); }
  40%, 100% { transform: rotate(1turn); }
}
/* the orbit closing (scale of the layer inside the flattened orbit — it stays an ellipse) */
@keyframes zg-ai-close {
  0%   { scale: 1; opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.85, 0.5); }
  40%  { scale: 0.04; opacity: 0.85; animation-timing-function: linear; }
  44%, 50% { scale: 0.04; opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1); }
  70%  { scale: 1.08; opacity: 1; animation-timing-function: var(--ease-standard); }
  80%, 100% { scale: 1; opacity: 1; }
}

/* the core: the planet's own light, breathing */
.zg-ai-icon__core {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--ai-icon-core) 0 16%, var(--white-a65) 34%, color-mix(in srgb, var(--ai-icon-ocean) 40%, transparent) 64%, transparent 100%);
  mix-blend-mode: screen;
  animation: zg-ai-breathe calc(var(--ai-icon-duration) / 3) ease-in-out infinite alternate;
}
/* thinking: the core swells as the comets fall in and shrinks as they leave — a glow round it, on the same cycle
   (it only animates while thinking — idle it costs nothing) */
.zg-ai-icon__core::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--ai-icon-core) 0 22%, var(--white-a65) 40%, color-mix(in srgb, var(--ai-icon-aqua) 35%, transparent) 66%, transparent 100%);
  opacity: 0;
  scale: 0.5;
}
.zg-ai-icon--thinking .zg-ai-icon__core::after { animation: zg-ai-swell var(--ai-icon-think-duration) infinite; }
@keyframes zg-ai-swell {
  0%, 18% { scale: 0.5; opacity: 0; animation-timing-function: ease-in; }
  34%  { scale: 0.7; opacity: 0.5; animation-timing-function: ease-out; }     /* they're closing in */
  46%  { scale: 1; opacity: 1; animation-timing-function: ease-in-out; }      /* all in — full */
  52%  { scale: 0.95; opacity: 1; animation-timing-function: ease-in; }
  66%  { scale: 0.64; opacity: 0.35; animation-timing-function: ease-out; }   /* they're out */
  76%, 100% { scale: 0.5; opacity: 0; }
}

/* glass: a soft highlight up-left */
.zg-ai-icon::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 6% 24% 56% 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--white-a30), transparent);
  pointer-events: none;
}

@keyframes zg-ai-turn { to { rotate: 1turn; } }   /* the aurora (and the rim on it) */
@keyframes zg-ai-orbit { from { rotate: var(--_from); } to { rotate: calc(var(--_from) + 1turn); } }
@keyframes zg-ai-breathe { from { scale: 0.84; opacity: 0.82; } to { scale: 1.06; opacity: 1; } }

/* ---- --still (user, v0.5.146): frozen — an AI that is here but not the live one (past answers, lists, many at once).
   Frozen in place: every animation pauses where it is (not reset — a paused animation also costs nothing per frame),
   so the comets hang mid-lap; frost grows in from the rim — needles of ice and a pale shell, the frost layer shrinks
   from 1.35 onto the orb — and the light inside cools (less colour). Thawing (class off) runs it backwards: the frost
   lets go outward and everything moves on from where it stopped. Transitions, not animations: an icon drawn already
   --still (a list on load) is simply frozen — no freeze plays for each row. */
.zg-ai-icon { transition: filter var(--ai-icon-freeze-duration) var(--ease-standard); }
.zg-ai-icon--still { filter: saturate(0.55) brightness(1.04); }
.zg-ai-icon--still :is(.zg-ai-icon__aurora, .zg-ai-icon__core, .zg-ai-icon__comet),
.zg-ai-icon--still :is(.zg-ai-icon__core, .zg-ai-icon__comet)::after,
.zg-ai-icon--still .zg-ai-icon__comet::before { animation-play-state: paused; }
.zg-ai-icon::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  /* frost (v0.5.147 · sized v0.5.324): a vector drawing whose lines keep their screen width (non-scaling strokes) — needles of
     uneven length (the long ones branched), a crust just inside the rim, a snowflake glint up-left; under it the ice shell
     (a pale band toward the rim) and an icy glaze; at the very edge an ice-blue line, the shell stopping short of white
     there — so the circle keeps its edge on a light page. Drawn once, no cost per frame.
     Sized (user, v0.5.324): a line of the same screen width is a far bigger share of a small icon — one drawing for every
     size made a thick white ring at 20 · 24 · 32. So the drawing, the shell and the line are picked by the icon's own
     width (the container queries below): small under 28 (md · lg), mid 28–80 (xl · 2xl), the full drawing from 80 (a
     large view). The drawings are generated: change tools/build-ai-frost.py and run it — never hand-edit a data URI. */
  --_f-art: /* frost-svg:start */url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='1.6' stroke-opacity='.6' d='M50 4.4L53 4.7L55.9 4.9L58.9 5.1L62 5.3L65.1 5.6L68.1 6.2L71.1 7.3L73.7 8.9L76.1 11L78.2 13.3L80.1 15.6L82.1 17.9L84.1 20.1L86.1 22.3L88 24.6L89.7 27.1L91.2 29.7L92.4 32.4L93.5 35.2L94.5 38.1L95.5 40.9L96.5 43.9L97.2 46.9L97.5 50L97.2 53.1L96.4 56.1L95.2 59L93.9 61.8L92.6 64.5L91.6 67.2L90.6 70L89.6 72.8L88.3 75.6L86.8 78.2L84.9 80.6L82.8 82.8L80.6 84.9L78.3 86.9L76 88.9L73.5 90.8L70.9 92.3L68 93.4L65 94.1L61.9 94.3L58.8 94.4L55.9 94.5L52.9 94.7L50 95.2L47 95.6L44 95.9L40.9 95.8L37.9 95.3L34.9 94.4L32.1 93.1L29.4 91.8L26.7 90.4L24.1 88.8L21.5 87.1L19.3 85.1L17.3 82.7L15.6 80.2L14.1 77.5L12.7 74.9L11.1 72.4L9.4 70L7.6 67.6L5.9 65L4.5 62.2L3.6 59.2L3.2 56.2L3.2 53.1L3.4 50L3.8 47L4.1 44L4.6 41L5.4 38L6.4 35.2L7.8 32.5L9.3 29.9L10.9 27.5L12.5 24.9L13.9 22.3L15.4 19.6L16.9 16.9L18.8 14.4L21.1 12.3L23.7 10.6L26.5 9.3L29.5 8.3L32.4 7.5L35.3 6.7L38.2 5.8L41.1 5.1L44 4.6L47 4.3Z'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='.9' stroke-opacity='.6' d='M48.8 3L47.6 14.7M48 10.8l1.4 2M90.9 26.8L79.9 33.1M85.3 30l-4.5 -0.7M84 30.8l-1.6 3.6M94.3 34.2L81 40.6M87.2 37.6l-2.9 -0.6M96.7 45L79.8 47.7M88.8 46.3l-3.3 -2.4M88.1 46.4l-4.9 -3.2M96.6 56L80.4 54.9M86.9 55.4l-4.4 -3.6M88.3 55.5l-2.5 2.1M95.3 62.7L84.6 58.1M90 60.4l-2.3 1.1M88.3 59.7l-0.7 -2.5M77.4 88.2L69.1 79.3M73.2 83.6l-0.1 -4.2M62.4 95.3L59.5 80M60.8 86.7l-2.3 -1.6M61.2 89.2l1.9 -2.8M32.4 93.6L38.7 77.6M36 84.4l-2.3 -4.5M36.4 83.4l-1.5 -5.3M22.4 88.1L30.7 78.1M26.6 83l4.7 0M26.4 83.3l-0.1 -2.7M3.3 55.2L13.8 53.4M7.6 54.4l2.2 -2.1M10.6 54l2 -2.5M9.7 25.9L20.5 31.4M14.7 28.4l0.9 3.2M22.7 11.7L32.4 22.7M28.5 18.2l-0.1 3.8M29.3 7.8L38.4 23.9M35.2 18.1l3.4 1.2'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='.7' stroke-opacity='.45' d='M56.9 3.5L58.1 8.1M69.9 7.4L69 14M75 10.2L71.3 16.7M85.2 18.9L79.8 22.9M90.1 74.6L85.9 70.7M86.1 80.1L82.5 75.1M69.8 92.6L67.5 87.2M50.2 97L50.2 87.1M50.2 93l2.2 -2.4M38.9 95.7L42.2 88M41 90.9l-0.7 -1.7M15.8 82.3L20.2 78.3M8.8 72.6L14.8 68M4.8 62.9L13 62.2M9 62.5l1.6 -2M8.2 62.6l1 -1.2M3.6 42.5L11.8 43.9M7.2 43.1l1.9 -0.9M8.6 43.3l1.6 2.5M6.2 33L14 34.9M13.3 20.6L18.2 24.5M39 4.3L42.3 13.4M41.2 10.5l-0.8 2.8'/%3E%3Cpath stroke-width='1.1' stroke-opacity='.5' d='M41 6.3h.01M39.2 15h.01M53.1 88.7h.01M10.1 27.3h.01M65 82.7h.01M84.1 71.3h.01M83 65.2h.01M55.2 7.7h.01M64.9 87.8h.01M79.8 66.8h.01M46.8 91.4h.01M46.7 15.4h.01M42.3 7.2h.01M85.1 53.4h.01M16.1 43.8h.01M77.1 24.4h.01M29.4 16.8h.01M93.8 52.4h.01M32.6 18.7h.01M11.1 62.5h.01M62.4 17.2h.01M69.1 87.7h.01M36.8 17.7h.01M10.6 36.7h.01M22.5 28.3h.01M23.6 27.4h.01M83.4 71h.01M31.9 13.6h.01M77 24.4h.01M90.2 47.1h.01M80 31.4h.01M83 39.7h.01M85.5 62.8h.01M91.8 60.7h.01M86 32.5h.01M54.3 12.1h.01M53.6 13.2h.01M36.5 90.6h.01M55.7 85.8h.01M78 14.5h.01'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='1.25' d='M31.5 16.5L31.5 42.5M42.8 23L20.2 36M42.8 36L20.2 23'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='.9' stroke-opacity='.9' d='M31.5 36.3l3.3 3M31.5 36.3l-3.3 3M25.6 32.9l-0.9 4.3M25.6 32.9l-4.2 -1.4M25.6 26.1l-4.2 1.4M25.6 26.1l-0.9 -4.3M31.5 22.7l-3.3 -3M31.5 22.7l3.3 -3M37.4 26.1l0.9 -4.3M37.4 26.1l4.2 1.4M37.4 32.9l4.2 -1.4M37.4 32.9l0.9 4.3'/%3E%3C/svg%3E")/* frost-svg:end */;
  --_f-glaze: 18%;            /* the shell at 72% of the radius */
  --_f-band: 55%;             /* the pale band toward the rim … */
  --_f-band-at: 88%;
  --_f-edge: 78%;             /* … its white edge, ending this far inside the rim */
  --_f-edge-at: 1.5px;
  --_f-edge-end: 1px;
  --_f-line: 100%;            /* the ice-blue line on the very edge, this wide */
  --_f-line-at: 1px;
  background:
    var(--_f-art),
    radial-gradient(closest-side, transparent calc(100% - var(--_f-line-at) - 0.25px), color-mix(in srgb, var(--ai-icon-frost-line) var(--_f-line), transparent) calc(100% - var(--_f-line-at))),
    radial-gradient(closest-side, color-mix(in srgb, var(--ai-icon-frost) 14%, transparent) 0, transparent 52%,
      color-mix(in srgb, var(--ai-icon-frost) var(--_f-glaze), transparent) 72%, color-mix(in srgb, var(--ai-icon-frost) var(--_f-band), transparent) var(--_f-band-at),
      color-mix(in srgb, var(--ai-icon-frost-edge) var(--_f-edge), transparent) calc(100% - var(--_f-edge-at)), transparent calc(100% - var(--_f-edge-end)));   /* the glowing shell, up to the line */
  opacity: 0;
  scale: 1.35;
  pointer-events: none;
  transition: opacity var(--ai-icon-freeze-duration) var(--ease-standard), scale var(--ai-icon-freeze-duration) cubic-bezier(0.2, 0.7, 0.2, 1);
}
.zg-ai-icon--still::after { opacity: 1; scale: 1; }
/* the frost by the icon's own width (v0.5.324) — small: a broken 0.6px crust, thin needles, a plain snowflake, a faint shell
   and a 0.75px line; mid: a broken 0.85px crust, a thin branched snowflake, a lighter shell. Without container queries
   (old browsers) the full drawing stays. */
.zg-ai-icon { container: zg-ai-icon / inline-size; }
@container zg-ai-icon (width < 28px) {
  .zg-ai-icon::after {
    --_f-art: /* frost-svg-small:start */url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.6' stroke-opacity='0.45' d='M50 2.6L51.6 2.6L53.1 2.8L54.6 3.1L56.1 3.6L57.6 4.1L59 4.7L60.4 5.4L61.8 6.1L63.1 6.7L64.5 7.4L65.8 8L67.2 8.5L68.6 9L70 9.5L71.4 10L72.8 10.5L74.2 11.1L75.6 11.7L76.9 12.4L78.2 13.2L79.5 14.1L80.7 15L81.8 16L82.9 17.1M92.9 30.6L93.4 32L93.8 33.5L94.1 35L94.3 36.6L94.4 38.1L94.5 39.6L94.5 41.2L94.5 42.7L94.5 44.1L94.6 45.6L94.7 47.1L94.9 48.5L95.1 50L95.3 51.5L95.6 53L95.8 54.5L95.9 56L95.9 57.6L95.9 59.1L95.7 60.7L95.4 62.2L95 63.6L94.5 65.1L93.9 66.5L93.2 67.9L92.5 69.3L91.8 70.6L91.1 72L90.3 73.3L89.5 74.6L88.7 75.9L87.9 77.2L87 78.4L86 79.6L85 80.7L83.9 81.8L82.7 82.7L81.5 83.6L80.2 84.5L78.9 85.2L77.6 86L76.3 86.7L75 87.4L73.7 88.1L72.4 88.9L71.2 89.7L70 90.5L68.8 91.4L67.5 92.3L66.3 93.2L64.9 94L63.6 94.8L62.2 95.5L60.7 96M45.5 96L44 95.7L42.5 95.5L41 95.2L39.5 94.9L38.1 94.5L36.6 94.1L35.2 93.6L33.8 93L32.5 92.3L31.2 91.5L29.9 90.8L28.6 90L27.4 89.1L26.2 88.3L24.9 87.5L23.6 86.8L22.3 86L21 85.3L19.7 84.6L18.3 83.8L17 83L15.7 82.1L14.5 81.2L13.3 80.1L12.3 78.9L11.3 77.7L10.5 76.4L9.8 75L9.2 73.5L8.7 72.1L8.3 70.6L7.9 69.1L7.5 67.6L7.1 66.1L6.7 64.7L6.3 63.2L5.9 61.8L5.5 60.4M4.8 44.1L5 42.6L5.1 41.1L5.2 39.6L5.4 38L5.5 36.5L5.7 35L5.9 33.4L6.3 31.9L6.7 30.4L7.3 29L8 27.6L8.9 26.3L9.9 25L10.9 23.9L12.1 22.8L13.2 21.8L14.4 20.8L15.6 19.9L16.8 18.9L18 18L19.1 17L20.2 16L21.3 15L22.4 14L23.5 13L24.6 12L25.8 11.1L27.1 10.3L28.3 9.5L29.6 8.7L31 8.1L32.4 7.5L33.8 6.9L35.2 6.4'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.55' stroke-opacity='0.6' d='M49.4 3L50.7 18.2M49.9 9.3l2.7 3.1M82.3 15.8L69.6 27.1M77.6 20l-0.2 3.5M97 50L83.5 51.7M88.9 51l-2 2.4M62.1 95.4L58.5 79.1M60.5 87.9l1.6 -2.3M17.8 84.3L25.9 76.7M21.3 81.1l0.6 -2.7M3.3 55.5L14.1 54.7M7.6 55.2l1.9 -2.5M7.8 55.2l1.3 -1.7M37.7 4.6L41.1 17.5M40 13.3l4 2.9'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.5' stroke-opacity='0.45' d='M65.6 5.7L64.5 9.9M94.7 35.4L89.8 37.6M95.4 62.2L88.1 59.8M78.8 87.1L74.4 81.2M54.9 96.7L55.4 89M31.3 93.1L33.9 87.9M8.5 72.1L15 69.2M5.4 35L10.2 35.8M15.8 17.8L18.8 23.3'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.8' stroke-opacity='0.95' d='M31.5 18L31.5 41M41.5 23.8L21.5 35.2M41.5 35.2L21.5 23.8'/%3E%3C/svg%3E")/* frost-svg-small:end */;
    --_f-glaze: 14%; --_f-band: 22%; --_f-band-at: 90%; --_f-edge: 30%; --_f-edge-at: 0.75px; --_f-edge-end: 0.5px; --_f-line: 70%; --_f-line-at: 0.75px;
  }
}
@container zg-ai-icon (28px <= width < 80px) {
  .zg-ai-icon::after {
    --_f-art: /* frost-svg-mid:start */url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.85' stroke-opacity='0.5' d='M50 2.6L51.6 2.6L53.1 2.8L54.6 3.1L56.1 3.6L57.6 4.1L59 4.7L60.4 5.4L61.8 6.1L63.1 6.7L64.5 7.4L65.8 8L67.2 8.5L68.6 9L70 9.5L71.4 10L72.8 10.5L74.2 11.1L75.6 11.7L76.9 12.4L78.2 13.2L79.5 14.1L80.7 15L81.8 16L82.9 17.1M92.9 30.6L93.4 32L93.8 33.5L94.1 35L94.3 36.6L94.4 38.1L94.5 39.6L94.5 41.2L94.5 42.7L94.5 44.1L94.6 45.6L94.7 47.1L94.9 48.5L95.1 50L95.3 51.5L95.6 53L95.8 54.5L95.9 56L95.9 57.6L95.9 59.1L95.7 60.7L95.4 62.2L95 63.6L94.5 65.1L93.9 66.5L93.2 67.9L92.5 69.3L91.8 70.6L91.1 72L90.3 73.3L89.5 74.6L88.7 75.9L87.9 77.2L87 78.4L86 79.6L85 80.7L83.9 81.8L82.7 82.7L81.5 83.6L80.2 84.5L78.9 85.2L77.6 86L76.3 86.7L75 87.4L73.7 88.1L72.4 88.9L71.2 89.7L70 90.5L68.8 91.4L67.5 92.3L66.3 93.2L64.9 94L63.6 94.8L62.2 95.5L60.7 96M45.5 96L44 95.7L42.5 95.5L41 95.2L39.5 94.9L38.1 94.5L36.6 94.1L35.2 93.6L33.8 93L32.5 92.3L31.2 91.5L29.9 90.8L28.6 90L27.4 89.1L26.2 88.3L24.9 87.5L23.6 86.8L22.3 86L21 85.3L19.7 84.6L18.3 83.8L17 83L15.7 82.1L14.5 81.2L13.3 80.1L12.3 78.9L11.3 77.7L10.5 76.4L9.8 75L9.2 73.5L8.7 72.1L8.3 70.6L7.9 69.1L7.5 67.6L7.1 66.1L6.7 64.7L6.3 63.2L5.9 61.8L5.5 60.4M4.8 44.1L5 42.6L5.1 41.1L5.2 39.6L5.4 38L5.5 36.5L5.7 35L5.9 33.4L6.3 31.9L6.7 30.4L7.3 29L8 27.6L8.9 26.3L9.9 25L10.9 23.9L12.1 22.8L13.2 21.8L14.4 20.8L15.6 19.9L16.8 18.9L18 18L19.1 17L20.2 16L21.3 15L22.4 14L23.5 13L24.6 12L25.8 11.1L27.1 10.3L28.3 9.5L29.6 8.7L31 8.1L32.4 7.5L33.8 6.9L35.2 6.4'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.65' stroke-opacity='0.6' d='M48.5 3L47.4 14.7M47.8 10.8l1.5 2M95.5 38.2L83.3 41.5M89.2 39.9l-4.1 -1.9M87.8 40.3l-2.5 3.1M97 48.3L82.4 50.4M89.3 49.4l-2.6 -1.4M95.4 62.1L78.6 58.5M87.6 60.4l-2.3 -3.4M86.9 60.3l-3.4 -4.8M90 74.7L75.7 67M81.4 70.1l-2.6 -5.1M82.7 70.8l-3.2 0.8M84.9 81.5L77.4 72.7M81.2 77.2l-2.6 -0M80 75.7l0.5 -2.5M49.7 97L48.2 84.9M48.9 90.9l2.3 -3.5M29.5 92.3L37.4 78.8M33.9 84.7l-0.7 -2.7M32.7 86.9l3.3 -0.9M5.2 64.1L21.5 58.9M14.5 61.1l2 -4.6M15.6 60.8l3.1 -4.6M3 50.1L15.9 50.9M9.6 50.5l2.7 3.8M9.2 50.4l2.1 -1.7M26.2 9.4L32.1 18.4M28.6 13.1l2.8 1.1M30.3 15.6l3.1 0.8'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.55' stroke-opacity='0.42' d='M58.6 3.8L59.6 8.5M74.5 9.9L72.8 16.3M80.4 14.1L75.8 20M91 27L84.8 29.8M72.1 91.5L70.5 86.1M64.4 94.8L63.9 88.6M38.7 95.6L40.4 89.9M16.9 83.4L24 76.4M19.7 80.6l3.2 -0.1M8.5 72.1L16.4 69.4M13.4 70.4l0.8 -1.7M4.3 39.2L10 40.6M10 25.4L17 28.4M18.3 15.3L22.6 22.3M20.5 18.9l2.5 0.5M20.1 18.2l1.5 0.4M41 3.9L42.5 12M41.7 7.5l1.5 1.4M41.9 8.8l-1.8 2.3'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.95' stroke-opacity='0.95' d='M31.5 16.5L31.5 42.5M42.8 23L20.2 36M42.8 36L20.2 23'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='0.65' stroke-opacity='0.855' d='M31.5 36.3l3.3 3M31.5 36.3l-3.3 3M25.6 32.9l-0.9 4.3M25.6 32.9l-4.2 -1.4M25.6 26.1l-4.2 1.4M25.6 26.1l-0.9 -4.3M31.5 22.7l-3.3 -3M31.5 22.7l3.3 -3M37.4 26.1l0.9 -4.3M37.4 26.1l4.2 1.4M37.4 32.9l4.2 -1.4M37.4 32.9l0.9 4.3'/%3E%3C/svg%3E")/* frost-svg-mid:end */;
    --_f-glaze: 14%; --_f-band: 34%; --_f-band-at: 90%; --_f-edge: 46%; --_f-edge-at: 1px; --_f-edge-end: 0.75px; --_f-line: 85%;
  }
}

/* glints (user, v0.5.325): light catching the ice around the frozen orb, twinkling like a crystal — a four-point glint up-right,
   a smaller one down-left and a small one right. Each rests as a faint point and flashes in its turn: it grows, turns a little,
   shows short diagonal rays at its peak and settles back, one after another round --ai-icon-glint-duration.
   Where: outside the orb, where the root's clip (its overflow, the orb's circle) would cut them — so they are the root's own
   background, drawn in a transparent ring: --still adds a border of 0.2 × the size (whole px) and gives it back — the icon keeps
   its place in the layout (space it with gap, never a margin of its own). The clip is the padding box, whose inner radius is the
   orb, so the comets and the frost stay inside as before; a box's own background is never cut by its overflow.
   How: one SVG (viewBox = the border box) whose motion is SMIL inside the image — the page does no style work for it, and its
   lines keep their screen width like the frost's (measured against the other ways: components/ai-icon.md › Performance notes).
   A moving icon carries a plain stand-in, folded, so it costs nothing. They come in as the frost settles (background-size
   0 → 100%, 0.55s in). Reduced motion: a still copy, lit. Colours (the frost's, with a light ice-blue middle so they show on a
   white page) and the round are baked from the tokens: tools/build-ai-frost.py — never hand-edit the data URIs. Never mirrored.
   A browser without round() keeps the frozen look without them. */
.zg-ai-icon {
  background:
    var(--_orb) 50% 50% / 100% 100% no-repeat padding-box,
    linear-gradient(transparent, transparent) 50% 50% / 0% 0% no-repeat border-box;   /* the glints' place, folded */
}
@supports (width: round(1.5px, 1px)) {
  .zg-ai-icon--still {
    /* a border snaps to device pixels and a margin doesn't — so the ring is whole px, and the box is sized with it: the
       margin gives back exactly the ring, and the orb (the padding box) stays the size */
    --_g-ring: round(var(--_s) * 0.2, 1px);
    box-sizing: border-box;
    width: calc(var(--_s) + 2 * var(--_g-ring));
    height: calc(var(--_s) + 2 * var(--_g-ring));
    border: var(--_g-ring) solid transparent;
    margin: calc(var(--_g-ring) * -1);
    background-image: var(--_orb),
      /* glint-svg:start */url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke-linecap='round'%3E%3Cdefs%3E%3CradialGradient id='c'%3E%3Cstop offset='0' stop-color='%23FFFFFF'/%3E%3Cstop offset='.35' stop-color='%23b9d5e8'/%3E%3Cstop offset='.7' stop-color='%237FB2D6' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='h0' gradientUnits='userSpaceOnUse' x1='-11.5' y1='0' x2='11.5' y2='0'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v0' href='%23h0' x1='0' y1='-11.5' x2='0' y2='11.5'/%3E%3ClinearGradient id='d0' gradientUnits='userSpaceOnUse' x1='-5' y1='-5' x2='5' y2='5'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='e0' href='%23d0' x1='-5' y1='5' x2='5' y2='-5'/%3E%3ClinearGradient id='h1' gradientUnits='userSpaceOnUse' x1='-8' y1='0' x2='8' y2='0'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v1' href='%23h1' x1='0' y1='-8' x2='0' y2='8'/%3E%3ClinearGradient id='d1' gradientUnits='userSpaceOnUse' x1='-3.6' y1='-3.6' x2='3.6' y2='3.6'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='e1' href='%23d1' x1='-3.6' y1='3.6' x2='3.6' y2='-3.6'/%3E%3ClinearGradient id='h2' gradientUnits='userSpaceOnUse' x1='-5' y1='0' x2='5' y2='0'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v2' href='%23h2' x1='0' y1='-5' x2='0' y2='5'/%3E%3ClinearGradient id='d2' gradientUnits='userSpaceOnUse' x1='-2.4' y1='-2.4' x2='2.4' y2='2.4'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='e2' href='%23d2' x1='-2.4' y1='2.4' x2='2.4' y2='-2.4'/%3E%3C/defs%3E%3Cg transform='translate(79 21)'%3E%3Cg%3E%3Canimate attributeName='opacity' values='.5;.5;1;.5;.5' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.0389;0.1111;0.2778;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3CanimateTransform attributeName='transform' type='scale' values='.28;.28;1;.28;.28' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.0389;0.1111;0.2778;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3CanimateTransform attributeName='transform' type='rotate' values='-14;-14;0;14;-14' additive='sum' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.0389;0.1111;0.2778;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23h0)' stroke-width='1.3' d='M-11.5 0H11.5'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23v0)' stroke-width='1.3' d='M0 -11.5V11.5'/%3E%3Ccircle r='2.6' fill='url(%23c)'/%3E%3Cg opacity='0'%3E%3Canimate attributeName='opacity' values='0;0;.85;0;0' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.0389;0.1111;0.2778;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23d0)' stroke-width='0.9' d='M-5 -5L5 5'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23e0)' stroke-width='0.9' d='M-5 5L5 -5'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(18 77)'%3E%3Cg%3E%3Canimate attributeName='opacity' values='.5;.5;1;.5;.5' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.4000;0.4694;0.6389;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3CanimateTransform attributeName='transform' type='scale' values='.28;.28;1;.28;.28' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.4000;0.4694;0.6389;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3CanimateTransform attributeName='transform' type='rotate' values='-14;-14;0;14;-14' additive='sum' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.4000;0.4694;0.6389;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23h1)' stroke-width='1.15' d='M-8 0H8'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23v1)' stroke-width='1.15' d='M0 -8V8'/%3E%3Ccircle r='1.9' fill='url(%23c)'/%3E%3Cg opacity='0'%3E%3Canimate attributeName='opacity' values='0;0;.85;0;0' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.4000;0.4694;0.6389;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23d1)' stroke-width='0.8' d='M-3.6 -3.6L3.6 3.6'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23e1)' stroke-width='0.8' d='M-3.6 3.6L3.6 -3.6'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(91 60)'%3E%3Cg%3E%3Canimate attributeName='opacity' values='.5;.5;1;.5;.5' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.7000;0.7611;0.9000;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3CanimateTransform attributeName='transform' type='scale' values='.28;.28;1;.28;.28' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.7000;0.7611;0.9000;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3CanimateTransform attributeName='transform' type='rotate' values='-14;-14;0;14;-14' additive='sum' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.7000;0.7611;0.9000;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23h2)' stroke-width='1' d='M-5 0H5'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23v2)' stroke-width='1' d='M0 -5V5'/%3E%3Ccircle r='1.35' fill='url(%23c)'/%3E%3Cg opacity='0'%3E%3Canimate attributeName='opacity' values='0;0;.85;0;0' dur='3.6s' repeatCount='indefinite' keyTimes='0;0.7000;0.7611;0.9000;1' calcMode='spline' keySplines='0 0 1 1;.3 0 .2 1;.4 0 .6 1;0 0 1 1'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23d2)' stroke-width='0.75' d='M-2.4 -2.4L2.4 2.4'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23e2)' stroke-width='0.75' d='M-2.4 2.4L2.4 -2.4'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")/* glint-svg:end */;
    background-size: 100% 100%, 100% 100%;
    transition: filter var(--ai-icon-freeze-duration) var(--ease-standard), background-size 0.3s var(--ease-standard) 0.55s;
  }
  @media (prefers-reduced-motion: reduce) {
    .zg-ai-icon--still {
      background-image: var(--_orb),
        /* glint-svg-still:start */url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke-linecap='round'%3E%3Cdefs%3E%3CradialGradient id='c'%3E%3Cstop offset='0' stop-color='%23FFFFFF'/%3E%3Cstop offset='.35' stop-color='%23b9d5e8'/%3E%3Cstop offset='.7' stop-color='%237FB2D6' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='h0' gradientUnits='userSpaceOnUse' x1='-11.5' y1='0' x2='11.5' y2='0'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v0' href='%23h0' x1='0' y1='-11.5' x2='0' y2='11.5'/%3E%3ClinearGradient id='d0' gradientUnits='userSpaceOnUse' x1='-5' y1='-5' x2='5' y2='5'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='e0' href='%23d0' x1='-5' y1='5' x2='5' y2='-5'/%3E%3ClinearGradient id='h1' gradientUnits='userSpaceOnUse' x1='-8' y1='0' x2='8' y2='0'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v1' href='%23h1' x1='0' y1='-8' x2='0' y2='8'/%3E%3ClinearGradient id='d1' gradientUnits='userSpaceOnUse' x1='-3.6' y1='-3.6' x2='3.6' y2='3.6'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='e1' href='%23d1' x1='-3.6' y1='3.6' x2='3.6' y2='-3.6'/%3E%3ClinearGradient id='h2' gradientUnits='userSpaceOnUse' x1='-5' y1='0' x2='5' y2='0'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v2' href='%23h2' x1='0' y1='-5' x2='0' y2='5'/%3E%3ClinearGradient id='d2' gradientUnits='userSpaceOnUse' x1='-2.4' y1='-2.4' x2='2.4' y2='2.4'%3E%3Cstop offset='0' stop-color='%237FB2D6' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%237FB2D6'/%3E%3Cstop offset='.5' stop-color='%23FFFFFF'/%3E%3Cstop offset='.64' stop-color='%237FB2D6'/%3E%3Cstop offset='1' stop-color='%237FB2D6' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='e2' href='%23d2' x1='-2.4' y1='2.4' x2='2.4' y2='-2.4'/%3E%3C/defs%3E%3Cg transform='translate(79 21)'%3E%3Cg opacity='.8' transform='scale(.55)'%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23h0)' stroke-width='1.3' d='M-11.5 0H11.5'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23v0)' stroke-width='1.3' d='M0 -11.5V11.5'/%3E%3Ccircle r='2.6' fill='url(%23c)'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(18 77)'%3E%3Cg opacity='.8' transform='scale(.55)'%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23h1)' stroke-width='1.15' d='M-8 0H8'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23v1)' stroke-width='1.15' d='M0 -8V8'/%3E%3Ccircle r='1.9' fill='url(%23c)'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(91 60)'%3E%3Cg opacity='.8' transform='scale(.55)'%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23h2)' stroke-width='1' d='M-5 0H5'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='url(%23v2)' stroke-width='1' d='M0 -5V5'/%3E%3Ccircle r='1.35' fill='url(%23c)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")/* glint-svg-still:end */;
    }
  }
}

/* reduced motion: no motion at all (the idle pose; thinking = a steady swollen core). --still still shows its frost, without the freeze. */
@media (prefers-reduced-motion: reduce) {
  .zg-ai-icon :is(.zg-ai-icon__aurora, .zg-ai-icon__core, .zg-ai-icon__comet),
  .zg-ai-icon :is(.zg-ai-icon__core, .zg-ai-icon__comet)::after,
  .zg-ai-icon .zg-ai-icon__comet::before { animation: none; }
  .zg-ai-icon--thinking .zg-ai-icon__core::after { opacity: 0.9; scale: 0.85; }
  .zg-ai-icon, .zg-ai-icon--still, .zg-ai-icon::after { transition: none; }
}

/* ── components/message.css ── */
/* =============================================================================
   Zigu — Message item  (components/message.css)  · Molecule (v0.5.185)
   One person's run of chat messages — the chat counterpart of Comment, with the same content: words (with @ mentions ·
   # card links as Tags), a reply's quote, pictures, files, places, an emoticon, reactions. Three looks:
     (balloon)  received: avatar 40 · name · gray balloons with a tail · info (unread · time) beside the last;
                sent (--sent): navy balloons on the right, no avatar or name. Whisper (__item--whisper): dashed.
     --plain    no balloons (Slack-like): avatar 36 · name + time · the words in full width — more text on a screen.
     translation (__original + __translation, in either look): the original words toned down, a line, the translation.
   Also: typing (__balloon--typing / .zg-message-typing), the way a new message eases in (.is-entering), a translation that
   writes itself in (__translation.is-streaming + __chunk), uploads that hold skeleton spots (Comment's pending parts) and
   a card under the words (Comment's zg-comment__card: a link's Open Graph preview, or a place with its map — v0.5.188).
   Requires tokens.css, avatar.css, badge.css, icon.css, comment.css (its media parts: zg-comment__photos ·
   __emoticon · __card · __reactions — the same pictures layout and reactions as Comment), file-item.css,
   tag.css. Spec: components/message.md · Figma: page "Message item" (1980:7703).

   <div class="zg-message-list" role="log" aria-label="메시지">
     <div class="zg-message">                                                     ← one person's run (received)
       <span class="zg-avatar zg-avatar--lg zg-message__avatar">…</span>
       <div class="zg-message__body">
         <span class="zg-message__name">지구인</span>
         <div class="zg-message__item">                                           ← one message
           <div class="zg-message__balloon"><p class="zg-message__text">회의 자료 올려 두었어요</p></div>
           <div class="zg-message__info"><span class="zg-message__meta"><span class="zg-badge">…2 + sr "2명이 읽지 않음"</span></span><time datetime="…">오후 12:22</time></div>
         </div>
       </div>
     </div>
     <div class="zg-message zg-message--sent">…</div>                            ← me: no avatar · name
   </div>
   ========================================================================== */
.zg-message-list { display: flex; flex-direction: column; gap: var(--message-run-gap); min-width: 0; }

.zg-message {
  /* the balloon's colours — received; --sent and whisper switch them */
  --_bg: var(--message-balloon-bg);
  --_fg: var(--message-balloon-fg);
  --_muted: var(--message-quote-fg);
  --_line: var(--message-line);
  --_original: var(--message-original-fg);
  --_tag: var(--message-tag-bg);
  --_tag-hover: var(--message-tag-bg-hover);
  display: flex;
  align-items: flex-start;
  gap: var(--message-gap);
  min-width: 0;
  color: var(--text-primary);
  font: var(--font-regular) var(--body-sm-size) / var(--body-sm-lh) var(--font-sans);
  letter-spacing: var(--tracking);
}
.zg-message__avatar { flex: none; }
.zg-message__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--message-stack-gap); }
.zg-message__name { margin-bottom: calc(var(--space-4) - var(--message-stack-gap)); color: var(--message-name); font-weight: var(--font-medium); }   /* 4 to the first balloon (Figma) */
.zg-message--sent { --_bg: var(--message-sent-bg); --_fg: var(--message-sent-fg); --_muted: var(--message-sent-muted); --_line: var(--message-sent-line); --_original: var(--message-sent-original-fg); --_tag: var(--message-sent-tag-bg); --_tag-hover: var(--message-sent-tag-bg-hover); justify-content: flex-end; padding-inline-end: 8px; }   /* room for the tail at the list's end edge */
.zg-message--sent > .zg-message__body { align-items: flex-end; }

/* one message: what was sent · its info beside it (the sender's other side), then its map (a place, opened) and its
   reactions; the hover options float. Words shrink and wrap to keep the info beside them; a picture grid · file · place
   can't shrink, so on a narrow screen the info goes under them instead of squeezing them. */
.zg-message__item { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: var(--space-4); max-width: calc(100% - var(--message-actions-room)); }   /* room beside it for the hover options */
@media (hover: none) { .zg-message__item { max-width: 100%; } }   /* a phone long-presses: no options beside */
.zg-message--sent .zg-message__item { flex-direction: row-reverse; }
.zg-message__item > * { flex: 0 1 auto; min-width: 0; }
.zg-message__item > :is(.zg-message__info, .zg-message__actions, .zg-comment__card, .zg-comment__photos, .zg-comment__emoticon) { flex: none; }
.zg-message__item > .zg-message__balloon { flex: 1 1 0; max-width: max-content; }   /* words never wrap the info away: as wide as its words, narrower beside the info when short of room */
.zg-message__item > .zg-comment__reactions { flex-basis: 100%; order: 1; }   /* under the line, whatever its place in the markup */
.zg-message__item > .zg-comment__reactions { padding-top: var(--space-4); }
.zg-message--sent .zg-message__item > .zg-comment__reactions { justify-content: flex-end; }

/* ---- the balloon ---- */
.zg-message__balloon {
  position: relative;
  box-sizing: border-box;
  max-width: min(var(--message-balloon-max), 100%);
  padding: var(--message-balloon-padding-y) var(--message-balloon-padding-x);
  border-radius: var(--message-balloon-radius);
  background: var(--_bg);
  color: var(--_fg);
  overflow-wrap: anywhere;
}
/* the tail (Figma Union 14 × 10): top 6, on the sender's side — a mask, so it takes the balloon's colour */
.zg-message__balloon::before {
  content: "";
  position: absolute;
  top: var(--message-balloon-padding-y);
  inset-inline-start: -6px;
  width: 14px;
  height: 10px;
  background: var(--_bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M10.058 0.003H0L4.349 6.741L6.123 8.741L10.057 10H14V0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M10.058 0.003H0L4.349 6.741L6.123 8.741L10.057 10H14V0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.zg-message--sent .zg-message__balloon::before { inset-inline: auto -8px; transform: scaleX(-1); }
.zg-message__balloon:dir(rtl)::before { transform: scaleX(-1); }
.zg-message--sent .zg-message__balloon:dir(rtl)::before { transform: none; }
.zg-message__balloon > * { max-width: calc(var(--message-balloon-max) - 2 * var(--message-balloon-padding-x)); }   /* the 480 cap, from inside (so max-content keeps it) */
.zg-message__text { margin: 0; white-space: pre-wrap; }
.zg-message__text:has(.zg-tag--inline) { line-height: var(--comment-text-tag-lh); }   /* a Tag in it: 24 lines, as in Comment */
.zg-message__text a:not(.zg-tag__part) { color: inherit; text-decoration: underline; }
/* a Tag (@ · #) in a balloon: the balloon's colour two steps on, its words in the balloon's — a Tag's own bg-subtle is the
   received balloon's gray (it vanished) and its own colours are the page's (on the dark theme's light sent balloon its
   words vanished) (user, v0.5.191). A split card's Detail and line follow too. */
.zg-message__balloon .zg-tag--inline { --_bg: var(--_tag); --_bg-hover: var(--_tag-hover); --_bg-press: var(--_tag-hover); --_fg: inherit; }
.zg-message__balloon .zg-tag--split > .zg-tag__detail { color: inherit; }
.zg-message__balloon .zg-tag__sep { background: var(--_tag-hover); }

/* reply: the quoted message (avatar 16 · its words, cut) over a line, then ↳ and the answer */
.zg-message__balloon:has(> .zg-message__quote) { padding-block: 10px; }
.zg-message__quote { display: flex; align-items: center; gap: var(--space-4); min-width: 0; margin-bottom: var(--space-8); padding-bottom: var(--space-8); border-bottom: 1px solid var(--_line); color: var(--_muted); font-size: var(--body-xs-size); line-height: var(--body-xs-lh); }
.zg-message__quote > .zg-avatar { flex: none; }
.zg-message__quote > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zg-message__answer { display: flex; gap: var(--space-2); }
.zg-message__answer > .zg-icon { --zg-icon-size: var(--icon-sm); flex: none; margin-top: var(--space-2); color: var(--_muted); }
.zg-message__answer > .zg-icon:dir(rtl) { transform: scaleX(-1); }

/* translation: the original toned down (the reader's own words stand out), a line, then the translation — no label on
   screen; "번역 · 한국어" is read out before it (__sr) */
.zg-message__original { color: var(--_original); transition: color var(--message-stream-fade) var(--ease-standard); }
.zg-message__translation { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--_line); }
/* … writing itself in, like an AI answer (v0.5.187): the original shows first; as the translation starts the original tones
   down and the line eases in, then the words come a piece at a time, each fading in (no caret, user). aria-busy until it
   ends; then the whole translation (with its Tags) replaces the pieces. */
.zg-message__translation.is-entering { animation: zg-message-fade var(--message-stream-fade) var(--ease-standard) both; }
.zg-message__chunk { animation: zg-message-fade var(--message-stream-fade) var(--ease-standard) both; }

/* whisper: dashed, open — "to 이름" beside it; a sent whisper isn't navy */
.zg-message__item--whisper > .zg-message__balloon {
  padding: calc(var(--message-balloon-padding-y) - 1px) calc(var(--message-balloon-padding-x) - 1px);
  border: 1px dashed var(--message-whisper-line);
}
.zg-message__item--whisper > .zg-message__balloon:has(> .zg-message__quote) { padding-block: 9px; }
.zg-message--sent .zg-message__item--whisper { --_bg: var(--message-whisper-sent-bg); --_fg: var(--message-balloon-fg); --_muted: var(--message-quote-fg); --_line: var(--message-line); --_original: var(--message-original-fg); --_tag: var(--tag-bg); --_tag-hover: var(--tag-bg-hover); }   /* open, on the page: a Tag as anywhere */
/* its tail: the fill over the balloon's dashed edge, and a dashed line along the tail's two outer edges */
.zg-message__item--whisper > .zg-message__balloon::before { top: calc(var(--message-balloon-padding-y) - 1px); inset-inline-start: -7px; width: 11px; }
.zg-message--sent .zg-message__item--whisper > .zg-message__balloon::before { inset-inline: auto -7px; }
.zg-message__item--whisper > .zg-message__balloon::after {
  content: "";
  position: absolute;
  top: calc(var(--message-balloon-padding-y) - 1px);
  inset-inline-start: -7px;
  width: 11px;
  height: 10px;
  background: var(--message-whisper-line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10'%3E%3Cpath d='M8 .5H.9L4.75 6.45L6.4 8.3L7.2 9.4' fill='none' stroke='%23000' stroke-dasharray='2 1.5'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10'%3E%3Cpath d='M8 .5H.9L4.75 6.45L6.4 8.3L7.2 9.4' fill='none' stroke='%23000' stroke-dasharray='2 1.5'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.zg-message--sent .zg-message__item--whisper > .zg-message__balloon::after { inset-inline: auto -7px; transform: scaleX(-1); }
.zg-message__item--whisper > .zg-message__balloon:dir(rtl)::after { transform: scaleX(-1); }
.zg-message--sent .zg-message__item--whisper > .zg-message__balloon:dir(rtl)::after { transform: none; }

/* ---- info: unread (a Badge) · time; "to 이름" for a whisper; failed: retry + its word ---- */
.zg-message__info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-bottom: 1px; white-space: nowrap; }
.zg-message--sent .zg-message__info { align-items: flex-end; }
:is(.zg-message__info, .zg-message__meta) > .zg-badge { translate: none; }
.zg-message__info > time { color: var(--message-time); font-size: var(--body-3xs-size); line-height: var(--body-3xs-lh); font-variant-numeric: tabular-nums; }
.zg-message__meta { display: flex; align-items: center; gap: var(--space-4); }
.zg-message__to { color: var(--text-secondary); font-size: var(--body-3xs-size); line-height: var(--body-3xs-lh); font-weight: var(--font-medium); }
.zg-message__retry {
  display: grid; place-items: center;
  width: var(--size-xs); height: var(--size-xs); margin: 0; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: var(--message-fail); color: var(--white); cursor: pointer;
}
.zg-message__retry > .zg-icon { --zg-icon-size: var(--icon-sm); color: currentColor; }
.zg-message__retry:hover { background: var(--red-600); }
.zg-message__retry:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.zg-message__failed { color: var(--message-fail); font-size: var(--body-3xs-size); line-height: var(--body-3xs-lh); font-weight: var(--font-medium); }

/* ---- the hover options [☺ │ ⋯] (Figma message: optionButton) — beside the balloon on its outer side (after the info), at
        the bottom of that line — also when reactions · a map sit under it (v0.5.187); shown on hover · keyboard focus; a
        phone long-presses. In the line but taking no room (a negative margin gives their width back): a message is never
        wider than its room less theirs, so they always fit beside it and never cover the info. (Plain: at the row's top
        end, as Slack.) ---- */
.zg-message__actions {
  position: relative; z-index: 1; align-self: flex-end;
  margin-inline-end: calc(var(--space-4) - var(--message-actions-room));   /* 56 wide, 0 in the line */
  display: inline-flex; align-items: center;
  height: 28px; border-radius: var(--radius-sm); background: var(--bg-default);
  box-shadow: inset 0 0 0 1px var(--message-actions-line), var(--shadow-xs);
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.zg-message--sent .zg-message__actions { margin-inline: calc(var(--space-4) - var(--message-actions-room)) 0; }   /* sent: on the left */
.zg-message__item:is(:hover, :focus-within) > .zg-message__actions,
.zg-message__actions:has([aria-expanded="true"]) { opacity: 1; pointer-events: auto; }
@media (hover: none) { .zg-message__actions:not(:has([aria-expanded="true"])) { display: none; } }
.zg-message__actions > button {
  display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; background: none;
  color: var(--icon-subtle); cursor: pointer;
}
.zg-message__actions > button:first-child { border-start-start-radius: var(--radius-sm); border-end-start-radius: var(--radius-sm); }
.zg-message__actions > button:last-child { border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm); }
.zg-message__actions > button + button { box-shadow: inset 1px 0 0 var(--message-actions-line); }
.zg-message__actions > button + button:dir(rtl) { box-shadow: inset -1px 0 0 var(--message-actions-line); }
.zg-message__actions > button > .zg-icon { --zg-icon-size: var(--icon-sm); color: currentColor; }
.zg-message__actions > button:hover { color: var(--icon-strong); }
.zg-message__actions > button[aria-expanded="true"] { background: var(--message-actions-on); color: var(--icon-strong); }
.zg-message__actions > button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* the quick reactions it opens (Figma message: emoji pop): six, a press adds or removes yours */
/* on the top layer (popover="manual", v0.5.292) — the browser's popover look goes first */
:where(.zg-message-react[popover]) { inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.zg-message-react { position: fixed; z-index: var(--menu-z); display: flex; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-md); background: var(--menu-bg); box-shadow: inset 0 0 0 1px var(--menu-border), var(--shadow-md); }
.zg-message-react > button { display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; font-size: 20px; line-height: 1; cursor: pointer; }
.zg-message-react > button:is(:hover, :focus-visible) { outline: none; background: var(--message-actions-on); }

/* ---- typing: three dots in a balloon (received), or a line under a plain list ---- */
.zg-message__balloon--typing { display: inline-flex; align-items: center; gap: var(--space-4); height: calc(var(--body-sm-lh) + var(--message-balloon-padding-y) * 2); padding-block: 0; }
.zg-message__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--message-typing-dot); animation: zg-message-dot var(--message-typing-duration) var(--ease-standard) infinite; }
.zg-message__dot:nth-child(2) { animation-delay: calc(var(--message-typing-duration) / 8); }
.zg-message__dot:nth-child(3) { animation-delay: calc(var(--message-typing-duration) / 4); }
@keyframes zg-message-dot { 0%, 60%, 100% { opacity: 0.35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }
.zg-message-typing { display: flex; align-items: center; gap: var(--space-8); min-height: var(--body-xs-lh); color: var(--message-time); font-size: var(--body-xs-size); line-height: var(--body-xs-lh); }
.zg-message-typing > .zg-message__dots { display: inline-flex; gap: 3px; }
.zg-message-typing .zg-message__dot { width: 4px; height: 4px; }

/* ---- a new message eases in: up from a little below and a touch smaller, out of its tail's corner (transform ·
        opacity only). A whole new run (avatar and all) or one more message in a run. Typing leaves the same way, quickly. ---- */
@keyframes zg-message-in { from { opacity: 0; translate: 0 var(--message-enter-shift); scale: var(--message-enter-scale); } }
@keyframes zg-message-out { to { opacity: 0; scale: var(--message-enter-scale); } }
:is(.zg-message, .zg-message__item).is-entering { animation: zg-message-in var(--message-enter-duration) var(--ease-standard) both; transform-origin: 0 100%; }
.zg-message--sent:is(.is-entering, :has(.is-entering)),
.zg-message--sent .zg-message__item.is-entering { transform-origin: 100% 100%; }
:is(.zg-message, .zg-message__item).is-entering:dir(rtl) { transform-origin: 100% 100%; }
.zg-message--sent:dir(rtl):is(.is-entering),
.zg-message--sent .zg-message__item.is-entering:dir(rtl) { transform-origin: 0 100%; }
:is(.zg-message, .zg-message__item, .zg-message-typing).is-leaving { animation: zg-message-out var(--duration-fast) var(--ease-standard) both; }

/* ---- --plain: no balloons (Slack-like) — avatar 36 · name + time, then the words in full width; the row under the
        pointer lights up, its options float at its top end, and a following message shows its time in the gutter ---- */
.zg-message-list--plain { gap: 0; }
.zg-message--plain { --_bg: transparent; --_fg: var(--text-primary); --_muted: var(--message-quote-fg); --_line: var(--message-line); --_original: var(--message-original-fg); --_tag: var(--tag-bg); --_tag-hover: var(--tag-bg-hover); position: relative; isolation: isolate; justify-content: flex-start; padding: var(--space-8) var(--space-16) var(--space-4); }
.zg-message--plain > .zg-message__body { align-items: stretch; gap: 0; }
.zg-message__head { display: flex; align-items: baseline; gap: var(--space-8); min-width: 0; }
.zg-message__head > .zg-message__name { margin: 0; }
.zg-message__head > time { flex: none; color: var(--message-time); font-size: var(--body-2xs-size); line-height: var(--body-2xs-lh); font-variant-numeric: tabular-nums; }
.zg-message--plain .zg-message__item { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: var(--space-8); max-width: none; padding-block: 2px; }
.zg-message--plain .zg-message__actions { position: absolute; margin: 0; inset: calc(-1 * var(--space-12)) 0 auto auto; inset-inline: auto 0; }
.zg-message--plain .zg-message__item::after { content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * var(--space-16)) 0 calc(-1 * (var(--zg-avatar-size, 36px) + var(--message-gap) + var(--space-16))); background: var(--message-plain-hover); opacity: 0; transition: opacity var(--duration-fast) var(--ease-standard); }
.zg-message--plain .zg-message__item:is(:hover, :focus-within)::after { opacity: 1; }
.zg-message--plain .zg-message__item:is(:hover, :focus-within) { --_tag: var(--message-tag-bg); --_tag-hover: var(--message-tag-bg-hover); }   /* the lit row is the balloon's gray: its Tags step on as in a balloon */
.zg-message--plain .zg-message__item > * { flex: none; }
.zg-message--plain .zg-message__item > .zg-message__balloon { flex: 1 1 0; min-width: 0; max-width: none; padding: 0; border-radius: 0; }
.zg-message--plain .zg-message__balloon > * { max-width: none; }
.zg-message--plain .zg-message__balloon::before,
.zg-message--plain .zg-message__balloon::after { display: none; }
.zg-message--plain .zg-message__item > .zg-comment__reactions { padding-top: var(--space-4); }
.zg-message--plain .zg-message__info > time { display: none; }   /* the time is in the head, or the gutter */
/* a following message's time, in the avatar's gutter, while it's hovered */
.zg-message__gutter { position: absolute; top: 2px; inset-inline-start: calc(-1 * (var(--zg-avatar-size, 36px) + var(--message-gap))); width: var(--zg-avatar-size, 36px); color: var(--message-time); font-size: var(--body-3xs-size); line-height: var(--body-sm-lh); text-align: center; font-variant-numeric: tabular-nums; opacity: 0; }
.zg-message--plain .zg-message__item:is(:hover, :focus-within) > .zg-message__gutter { opacity: 1; }
.zg-message--plain .zg-message__item--whisper > .zg-message__balloon { padding: var(--space-4) var(--space-8); border-radius: var(--radius-sm); }
.zg-message--plain .zg-message__balloon:has(> .zg-message__quote) { padding-block: 0; }
.zg-message--plain .zg-message__item--whisper > .zg-message__balloon:has(> .zg-message__quote) { padding-block: var(--space-4); }
.zg-message--plain .zg-message__quote { margin-bottom: var(--space-4); padding-bottom: 0; border-bottom: 0; }
.zg-message-list--plain > .zg-message-typing { padding: var(--space-4) var(--space-16); }

@media (prefers-reduced-motion: reduce) {
  .zg-message__dot { animation: none; opacity: 0.6; }
  :is(.zg-message, .zg-message__item).is-entering { animation-name: zg-message-fade; }
  :is(.zg-message, .zg-message__item, .zg-message-typing).is-leaving { animation: none; }
  .zg-message__chunk, .zg-message__translation.is-entering { animation: none; }
  .zg-message__original { transition: none; }
}
@keyframes zg-message-fade { from { opacity: 0; } }

/* screen-reader-only words (the sender of a sent run, the unread count, typing, "번역 · 언어") */
.zg-message__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
