/* Body-attached update prompt inherits the shared theme tokens. Reload behavior is unchanged. */
.tb-update-backdrop {
    position: fixed; inset: 0; z-index: 2147483647; display: flex;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(5,21,45,.78); font-family: var(--tb-font);
}
.tb-update-dialog {
    width: min(100%, 480px); max-height: calc(100dvh - 40px); overflow-y: auto;
    box-sizing: border-box; border: 1px solid var(--tb-border-strong); border-top: 3px solid var(--tb-accent);
    border-radius: var(--tb-radius-lg); background: var(--tb-surface); color: var(--tb-text);
    box-shadow: var(--tb-shadow); padding: clamp(24px, 5vw, 36px);
}
.tb-update-eyebrow { width: fit-content; margin-bottom: 15px; font-size: 11px; font-weight: 800; line-height: 1.5; color: var(--tb-text-dim); letter-spacing: .14em; }
.tb-update-title { margin: 0 0 8px; color: var(--tb-text); font-size: clamp(26px,5vw,32px); line-height: 1.2; font-weight: 750; }
.tb-update-description { margin: 0 0 24px; color: var(--tb-text-dim); font-size: 14px; line-height: 1.6; }
.tb-update-version { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-surface-soft); padding: 13px 16px; }
.tb-update-version-label, .tb-update-notes-label { color: var(--tb-text-dim); font-size: 12px; font-weight: 700; }
.tb-update-version-number { color: var(--tb-text); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tb-update-notes { margin: 17px 0 24px; border-left: 3px solid var(--tb-accent); padding: 3px 0 3px 14px; }
.tb-update-notes-text { margin: 8px 0 0; color: var(--tb-text); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.tb-update-confirm { width: 100%; min-height: 46px; border: 1px solid var(--tb-action); border-radius: var(--tb-radius-sm); background: var(--tb-action); color: var(--tb-on-action); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .15s ease; }
.tb-update-confirm:hover:not(:disabled) { background: var(--tb-action-hover); }
.tb-update-confirm:focus-visible { outline: 3px solid var(--tb-focus); outline-offset: 3px; }
.tb-update-confirm:disabled { cursor: wait; opacity: .65; }
.tb-update-status { min-height: 1.2em; margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--tb-text-dim); text-align: center; }
@media (max-width: 480px) { .tb-update-backdrop { padding: 12px; } .tb-update-dialog { max-height: calc(100dvh - 24px); padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { .tb-update-confirm { transition: none; } }
