.platform-update-panel{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.platform-update-panel progress[data-failed=true]::-moz-progress-bar,.platform-maintenance-panel progress[data-failed=true]::-moz-progress-bar{background:#f6818e}.platform-maintenance-panel progress[data-failed=true]::-webkit-progress-value{background:#f6818e}
.platform-update-heading,.platform-update-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between}.platform-update-heading h3{margin:0}.platform-update-heading .chip{white-space:nowrap}.platform-update-actions{justify-content:flex-start;margin-top:12px}.platform-update-actions button{min-height:36px;white-space:nowrap}.platform-update-panel progress,.platform-maintenance-panel progress{width:100%;height:7px;appearance:none;border:0;background:var(--line);border-radius:6px;overflow:hidden;margin:12px 0}.platform-update-panel progress::-webkit-progress-bar,.platform-maintenance-panel progress::-webkit-progress-bar{background:var(--line)}.platform-update-panel progress::-webkit-progress-value,.platform-maintenance-panel progress::-webkit-progress-value{background:var(--accent);border-radius:6px}.platform-update-panel progress::-moz-progress-bar,.platform-maintenance-panel progress::-moz-progress-bar{background:var(--accent)}.platform-update-panel progress[data-failed=true]::-webkit-progress-value{background:#f6818e}.platform-update-panel pre,.platform-maintenance-panel pre{max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.65 ui-monospace,monospace;padding:12px;background:var(--bg);border-radius:8px}.platform-update-confirm{max-width:520px;width:calc(100% - 32px);padding:24px;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:16px}.platform-update-confirm h2{margin-top:0}.platform-update-confirm label{display:flex;flex-direction:column;gap:8px;margin-top:18px}.platform-update-confirm input{width:100%;box-sizing:border-box}.platform-update-confirm::backdrop{background:#050a0db3;backdrop-filter:blur(4px)}.platform-maintenance-overlay{position:fixed;inset:0;background:var(--bg,#0c1012);z-index:14000;display:grid;place-items:center;padding:24px}.platform-maintenance-panel{width:min(680px,100%);max-height:85dvh;overflow:auto;background:var(--card);color:var(--text);padding:24px;border:1px solid var(--line);border-radius:16px}.platform-maintenance-panel p{overflow-wrap:anywhere}.platform-update-panel .form-help{margin-bottom:0}

/* Version summary above a real update record and a dedicated actions column. */
.settings-card.settings-updates{border:0;border-radius:0;background:transparent;padding:0;box-shadow:none;min-width:0}
.settings-updates .update-version-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 22px;border-bottom:1px solid var(--line)}
.update-version-heading h2{margin:0 0 14px;font-size:22px;line-height:1.4}
.update-version-heading>button{flex:none}
.update-version-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.update-version-line>strong{font-size:22px;font-weight:650}
.update-revision{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 0;color:var(--muted);font-size:12px}
.update-revision code{font-family:var(--font-mono);overflow-wrap:anywhere}
.update-checked{font-size:12px;margin:12px 0 0}
.settings-updates .platform-update-panel{border:0;border-radius:0;padding:28px 0 0;margin:0;background:transparent}
.update-workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:28px;align-items:start}
.update-history,.update-methods{min-width:0}
.update-methods{padding-left:28px;border-left:1px solid var(--line)}
.update-workspace h3{font-size:17px;line-height:1.4;margin:0 0 22px}
.update-record{padding:16px;border-radius:8px;background:var(--card)}
.update-record-heading,.update-channel-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.update-record-heading>strong{font-size:16px}
.update-record-heading [data-status=done],.update-channel-heading [data-connected=true]{color:var(--accent)}
.update-record-heading [data-status=failed]{color:var(--red)}
.update-record-revision{font:12px var(--font-mono);color:var(--muted);margin:10px 0 0}
.update-history-empty{margin:0;padding:20px 0;border-block:1px solid var(--line);font-size:13px}
.update-channel-heading{margin-bottom:14px}
.update-channel-heading strong{font-size:14px}
.settings-updates .platform-update-actions{justify-content:flex-start;gap:12px;margin:18px 0 0;padding:0}
.settings-updates .platform-update-actions .update-configure{padding:0;border:0;border-radius:0;white-space:normal}
.update-manual{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.update-manual h3{margin-bottom:16px}
.update-manual-actions{display:flex;flex-wrap:wrap;gap:10px}
.update-manual-actions a{flex:1;white-space:normal;text-align:center;min-width:0;font-size:13px;padding:9px 12px}
.update-restart-notice{margin:24px 0 0;color:var(--muted)}
.update-workspace .form-help{font-size:12px;line-height:1.8}
.settings-updates [data-update-settings]{padding-top:24px;margin-top:24px;border-top:1px solid var(--line)}
@media(max-width:1100px){.update-workspace{grid-template-columns:minmax(0,1fr);gap:28px}.update-methods{padding:24px 0 0;border-left:0;border-top:1px solid var(--line)}}
@media(max-width:600px){.settings-updates .update-version-heading{align-items:flex-start;flex-wrap:wrap;gap:16px}.update-version-line>strong{font-size:20px}.update-workspace h3{font-size:16px}.update-record{padding:14px}}

.settings-updates .update-version-heading h2{font-size:24px}
.settings-updates .update-workspace h3{font-size:20px}
.update-version-heading>.primary{min-height:40px;padding-inline:22px}
.update-record-time{display:block;font-weight:600;font-size:14px;margin:0 0 12px}
.update-workspace .form-help{font-size:13px;line-height:1.8}
.update-manual-actions{margin-top:14px}
.update-manual .form-help{margin-top:14px}
.update-version-line .chip.neutral{color:var(--muted)}
@media(max-width:600px){.settings-updates .update-workspace h3{font-size:18px}}
