/* App shell "Update" button (web/updates.mjs). Separate file so the shared stylesheets stay untouched.
   Sidebar slot on tablets/desktops (and in the phone drawer); icon-only header slot on phones and when the sidebar is collapsed. Empty when there is no update. */
[data-app-update]:empty{display:none}
.app-update--sidebar{margin:14px 0 0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2)}
.app-update-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:38px;padding:8px 12px;border:0;border-radius:7px;background:var(--brand);color:var(--on-brand);font-size:12px;font-weight:600;text-decoration:none;cursor:pointer}
.app-update-button:hover{background:var(--brand-d)}
.app-update-button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.app-update-button:disabled{cursor:progress;opacity:.85}
.app-update[data-update-state="busy"] .app-update-icon{display:inline-block;animation:app-update-spin 1s linear infinite}
.app-update[data-update-state="clicked"] .app-update-button,.app-update[data-update-state="clicked"] .app-update-button:hover{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.app-update-icon{font-size:15px;line-height:1}
.app-update-detail{display:block;margin-top:8px;color:var(--muted);font-size:11px;line-height:1.5}
[data-app-update="header"]{display:none}
/* Header slot: phones (sidebar is a drawer, which still carries the full card) and the collapsed desktop sidebar
   (web/sidebar.mjs hides the sidebar entirely). Icon-only there so the header never overflows; the label stays
   readable to screen readers and the detail is the button's tooltip. */
@media(max-width:600px){[data-app-update="header"]:not(:empty){display:block}}
@media(min-width:601px){:root[data-sidebar=collapsed] [data-app-update="header"]:not(:empty){display:block}:root[data-sidebar=collapsed] .app-update-detail{display:none}}
.app-update--header .app-update-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.app-update--header .app-update-button{width:36px;min-height:36px;padding:0;border-radius:8px}
@media(prefers-reduced-motion:reduce){.app-update[data-update-state="busy"] .app-update-icon{animation:none}}
@keyframes app-update-spin{to{transform:rotate(360deg)}}
