/* Copied from hud-kit/web/banner/banner.css by hud-kit bin/sync-into. Edit it there, then run it again. */
/* hud-kit web/banner (see banner.js): ResultBanner and ConnectionMark. Geometry and motion only; colours and fonts
   come from --banner-* and --conn-* variables, falling back to the role tokens. Sizes come from knobs. */
.hk-banner{box-sizing:border-box;display:flex;align-items:center;gap:var(--banner-gap,12px);padding:var(--banner-pad-y,14px) var(--banner-pad-x,18px);
  border-radius:var(--banner-radius,16px);font-family:var(--banner-family, var(--t-body, inherit));line-height:1.3;text-align:left;
  background:var(--banner-bg, var(--c-surface, color-mix(in srgb, currentColor 8%, transparent)));color:var(--banner-ink, var(--c-surface-ink, var(--c-ink, currentColor)))}
.hk-banner[hidden]{display:none}
.hk-banner{--bn-fill:var(--banner-bg, var(--c-surface, Canvas))}
.hk-banner.right{--bn-fill:var(--banner-right, var(--c-accent, Canvas));background:var(--banner-right, var(--c-accent, currentColor));color:var(--banner-right-ink, var(--c-accent-ink, Canvas))}
.hk-banner.wrong{--bn-w:var(--banner-wrong, var(--c-danger, var(--c-ink, currentColor)));background:color-mix(in srgb, var(--bn-w) 5%, var(--c-bg, Canvas));
  color:var(--banner-wrong-ink, var(--c-ink, currentColor));box-shadow:inset 0 0 0 2px var(--bn-w);--bn-fill:color-mix(in srgb, var(--bn-w) 5%, var(--c-bg, Canvas))}
.hk-banner.wrong .bn-mark{background:var(--bn-w);color:var(--c-bg, Canvas)}
.hk-banner .bn-mark{flex:none;display:grid;place-items:center;width:var(--banner-icon,26px);height:var(--banner-icon,26px);border-radius:50%;
  background:color-mix(in srgb, currentColor 18%, transparent)}
.hk-banner .bn-mark svg{width:72%;height:72%;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.hk-banner .bn-mark .dot{fill:currentColor;stroke-width:2.2}
.hk-banner.info .bn-mark{background:var(--banner-ink, var(--c-surface-ink, var(--c-ink, CanvasText)));color:var(--bn-fill)}
.hk-banner .bn-words{flex:1;min-width:0;text-wrap:pretty}
.hk-banner .bn-title{font-weight:800}
.hk-banner .bn-text{font-weight:600}
.hk-banner .bn-act{all:unset;position:relative;flex:none;display:inline-grid;place-items:center;min-width:72px;height:36px;padding:0 16px;box-sizing:border-box;border-radius:18px;cursor:pointer;
  box-shadow:inset 0 0 0 2px currentColor;font-weight:800;font-size:.92em;white-space:nowrap;transition:background-color .1s,transform .08s}
.hk-banner .bn-act>*{grid-area:1/1}
.hk-banner .bn-act:hover,.hk-banner .bn-act.hover{background:color-mix(in srgb, currentColor 14%, transparent)}
.hk-banner .bn-act:active,.hk-banner .bn-act.pressed{transform:scale(.95);background:currentColor}
.hk-banner .bn-act:active>span,.hk-banner .bn-act.pressed>span{color:var(--bn-fill, var(--c-bg, Canvas))}
.hk-banner .bn-act:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.hk-banner .bn-act:disabled{opacity:.4;cursor:default}
.hk-banner .bn-spin{display:none;width:16px;height:16px;box-sizing:border-box;border-radius:50%;border:3px solid color-mix(in srgb, currentColor 30%, transparent);border-top-color:currentColor;border-right-color:currentColor;animation:bn-spin .8s linear infinite}
.hk-banner .bn-act.busy{cursor:progress}
.hk-banner .bn-act.busy span{visibility:hidden}
.hk-banner .bn-act.busy .bn-spin{display:block}
.hk-banner.pop{animation:bn-pop .26s cubic-bezier(.3,1.4,.5,1)}
.hk-banner.wrong.pop{animation:bn-shake .38s cubic-bezier(.36,.07,.19,.97)}
@keyframes bn-pop{from{transform:scale(.96);opacity:0}}
@keyframes bn-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@keyframes bn-spin{to{transform:rotate(1turn)}}

/* ConnectionMark: small, in a corner, never over the middle; fades once the link is back. */
.hk-conn{position:fixed;z-index:2147482500;display:flex;align-items:center;gap:7px;padding:5px 10px 5px 8px;border-radius:99px;pointer-events:none;
  background:var(--conn-bg, color-mix(in srgb, var(--c-bg, Canvas) 88%, transparent));color:var(--conn-ink, var(--c-ink, CanvasText));
  font-family:var(--banner-family, var(--t-body, inherit));font-size:13px;font-weight:700;line-height:1;transition:opacity var(--conn-fade,1s) ease}
.hk-conn.top-right{top:max(var(--conn-inset,10px),env(safe-area-inset-top));right:var(--conn-inset,10px)}
.hk-conn.top-left{top:max(var(--conn-inset,10px),env(safe-area-inset-top));left:var(--conn-inset,10px)}
.hk-conn.bottom-right{bottom:max(var(--conn-inset,10px),env(safe-area-inset-bottom));right:var(--conn-inset,10px)}
.hk-conn.bottom-left{bottom:max(var(--conn-inset,10px),env(safe-area-inset-bottom));left:var(--conn-inset,10px)}
.hk-conn i{flex:none;width:10px;height:10px;border-radius:50%;background:currentColor;animation:cn-breathe 1.8s ease-in-out infinite}
.hk-conn span{display:block;line-height:10px;padding-top:1px}
.hk-conn.offline i{animation:none;background:transparent;box-shadow:inset 0 0 0 2px currentColor}
.hk-conn.ok i{animation:none;background:var(--conn-ok, var(--c-accent, currentColor))}
.hk-conn.gone{opacity:0}
@keyframes cn-breathe{50%{opacity:.55;transform:scale(.82)}}
@media (prefers-reduced-motion:reduce){.hk-banner.pop,.hk-banner.wrong.pop,.hk-conn i{animation:none}.hk-conn{transition:none}}
