/* hnaconsole/hna-mark.css — the animated HNA lettermark, shared by every HNA console (Unity, config), 2026-10-10.
   Ported from hna-analytics-reference (app/web/src/components/ask/HnaThinking.tsx + ask.css, spec in
   docs/case-study-tsa/design/bedrock-assistant.md §10.4): CSS only, compositor properties (opacity, transform).
   Markup (one class per letter; colours come from the theme, so it works in light and dark):
     <svg class="hna-mark-anim thinking" viewBox="30 60 1092 480" aria-hidden="true" focusable="false">
       <g class="hna-h"><rect x="41.5" y="76" width="76" height="443" rx="20"/><path d="M79.5 380 C79.5 290 140 230 222 230 C290 230 315.5 280 315.5 360 V400"/><rect x="277.5" y="360" width="76" height="159" rx="20"/></g>
       <g class="hna-n"><rect x="419" y="197" width="76" height="321" rx="20"/><path d="M457 380 C457 290 520 232 596 232 C665 232 693.5 285 693.5 360 V400"/><rect x="655.5" y="362" width="76" height="156" rx="20"/></g>
       <g class="hna-a"><circle class="hna-ring" cx="942" cy="358" r="128" pathLength="100"/><rect x="1034.5" y="196" width="76" height="322" rx="20"/></g>
     </svg>
   States: .thinking (letters breathe h -> n -> a), .tool (the ring of the "a" spins), .writing / no state (at rest).
   The text beside it carries the meaning (role="status"); the mark is decorative. */
.hna-mark-anim { display: inline-block; flex: none; overflow: visible; height: 1em; width: 2.275em; vertical-align: -.15em; }
.hna-mark-anim rect, .hna-mark-anim path { stroke: none; }
.hna-mark-anim path, .hna-mark-anim circle { fill: none; stroke-width: 76; }
.hna-mark-anim .hna-h, .hna-mark-anim .hna-a { fill: var(--brand-ink); stroke: var(--brand-ink); }
.hna-mark-anim .hna-n { fill: var(--brand-teal); stroke: var(--brand-teal); }
.hna-mark-anim .hna-h path, .hna-mark-anim .hna-a circle { stroke: var(--brand-ink); }
.hna-mark-anim .hna-n path { stroke: var(--brand-teal); }
.hna-mark-anim .hna-h, .hna-mark-anim .hna-n, .hna-mark-anim .hna-a { transform-box: fill-box; transform-origin: center; will-change: opacity, transform; }
.hna-mark-anim.thinking .hna-h { animation: hna-breathe 1.5s ease-in-out infinite; }
.hna-mark-anim.thinking .hna-n { animation: hna-breathe 1.5s ease-in-out .22s infinite; }
.hna-mark-anim.thinking .hna-a { animation: hna-breathe 1.5s ease-in-out .44s infinite; }
@keyframes hna-breathe { 0%, 100% { opacity: .32; transform: scale(.94); } 40% { opacity: 1; transform: scale(1); } }
.hna-mark-anim.tool .hna-h, .hna-mark-anim.tool .hna-n, .hna-mark-anim.tool .hna-a rect { opacity: .45; }
.hna-mark-anim.tool .hna-ring { stroke-dasharray: 78 22; stroke-linecap: round; transform-box: view-box; transform-origin: 942px 358px; animation: hna-spin 1.1s linear infinite; }
@keyframes hna-spin { to { transform: rotate(360deg); } }
.hna-mark-anim.writing .hna-h, .hna-mark-anim.writing .hna-n, .hna-mark-anim.writing .hna-a { opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  .hna-mark-anim .hna-h, .hna-mark-anim .hna-n, .hna-mark-anim .hna-a, .hna-mark-anim .hna-ring { animation: none !important; transform: none !important; }
  .hna-mark-anim.thinking, .hna-mark-anim.tool { animation: hna-fade 2.4s ease-in-out infinite; }
  .hna-mark-anim.tool .hna-ring { stroke-dasharray: none; }
}
@keyframes hna-fade { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
/* the loading state: the mark + one line saying what is loading, centred in the space the content will take */
.hna-loading { display: flex; align-items: center; justify-content: center; gap: .625rem; min-height: 8.75rem; color: var(--ink-3); font-size: var(--fs-small); }
.hna-loading .hna-mark-anim { height: 1.25rem; width: 2.84rem; }
