/* Standalone-shell additions: offline pill, loading progress, error panels, update toast, footer button. Theme tokens only. */
.pill { align-self: center; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.offline { color: var(--down); border-color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); }
.pill[hidden] { display: none; }

.loading { max-width: 560px; margin: 8vh auto 0; text-align: left; }
.loading .msg { padding: 0 0 12px; text-align: left; font-weight: 600; color: var(--text); }
.progress { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text2); font-size: 14px; font-variant-numeric: tabular-nums; }
.progress li { padding-left: 22px; position: relative; }
.progress li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--axis); }
.progress li.done::before { background: var(--up); }
.progress li.cur { color: var(--text); }
.progress li.cur::before { background: var(--accent); animation: se-pulse 1s ease-in-out infinite; }
@keyframes se-pulse { 50% { transform: scale(1.5); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .progress li.cur::before { animation: none; } }

.errpanel { max-width: 640px; margin: 8vh auto 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent-fill, var(--accent)); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.errpanel.offline { border-left-color: var(--down); }
.errpanel h2 { font-size: 19px; margin: 0; }
.errpanel p { margin: 0; color: var(--text2); line-height: 1.5; }
.errpanel .detail { font-size: 12px; overflow-wrap: anywhere; }
.errpanel-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.errpanel .btn.primary { padding: 9px 14px; font-weight: 700; background: var(--accent-fill); color: var(--accent-ink); border-color: transparent; }
.errpanel .chips { margin-top: 6px; justify-content: flex-start; }
.errpanel .recent { margin-top: 8px; font-size: 13px; }

.statusline .sesshint { color: var(--muted); }
.statusline .linkbtn { margin-left: 4px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--text); }
.home .fine { font-size: 13px; max-width: 560px; margin-left: auto; margin-right: auto; }

.toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--accent-fill, var(--accent)); border-radius: 10px; box-shadow: var(--shadow, 0 8px 24px rgba(0, 0, 0, .3)); font-size: 14px; }
.toast[hidden] { display: none; }
.toast .btn.primary { background: var(--accent-fill); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.toast .x { background: none; border: 0; color: var(--text2); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }

@media (max-width: 720px) { .pill { font-size: 11px; padding: 3px 8px; } .errpanel, .loading { margin-top: 4vh; } }
