/* The update indicator occupies the same compact slot in every state. */
#linked-chat .chat-update-button{position:relative;display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:11px;background:transparent;color:var(--muted);transition:color 140ms,background-color 140ms,scale 140ms}
#linked-chat .chat-update-button svg{width:20px;height:20px;transform-box:view-box;transform-origin:50% 50%}
#linked-chat .chat-update-button[data-update=available]{color:var(--accent);background:transparent}
#linked-chat .chat-update-button[aria-busy=true] svg{opacity:.55}
#linked-chat .chat-update-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#linked-chat .chat-update-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 18px 60px #0005}
#linked-chat .chat-update-dialog::backdrop{background:#04131c88;backdrop-filter:blur(4px)}
#linked-chat .chat-update-dialog h2{font:650 16px/1.4 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;margin:0 0 8px}
#linked-chat .chat-update-dialog p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 20px}
#linked-chat .chat-update-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
#linked-chat .chat-update-actions button{font:inherit;font-size:12px;padding:9px 12px;border:0;border-radius:12px;background:var(--panel);color:var(--ink)}
#linked-chat .chat-update-actions .chat-update-apply{background:var(--accent);color:var(--on-accent,#062a25);font-weight:600}
@media(hover:hover) and (pointer:fine){#linked-chat .chat-update-button:hover{scale:1.05;background:color-mix(in srgb,var(--accent) 10%,transparent)}}
@media(prefers-reduced-motion:reduce){#linked-chat .chat-update-button{transition:none;scale:none}}

:root[data-theme=light] #linked-chat .chat-update-apply{color:#fff}

/* One clockwise turn in the first second of every five-second cycle. */
#linked-chat .chat-update-button[data-update=available] svg{animation:update-download-turn 5s infinite}
@keyframes update-download-turn{0%{transform:rotate(0turn);animation-timing-function:cubic-bezier(.4,0,.2,1)}20%,100%{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){#linked-chat .chat-update-button[data-update=available] svg{animation:none}}
