/* Small, non-blocking update notices. Diagnostic details are optional. */
.sd-update-banner[hidden],.sd-update-dialog [hidden]{display:none!important}
.sd-update-banner{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px;background:var(--soft);color:var(--ink);border-bottom:1px solid var(--line);font-size:12px}
.sd-update-dialog{width:min(550px,calc(100vw - 24px));max-height:85dvh;padding:26px;overflow:auto;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink)}
.sd-update-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.sd-update-heading h2{font-size:21px!important;line-height:1.2;margin:0}
.sd-update-dialog .sd-update-status{font-size:26px;font-weight:680;line-height:1.18;letter-spacing:-.6px;margin:0 0 10px;background:none;padding:0}
.sd-update-dialog .sd-update-explanation{font-size:14px;line-height:1.65;margin:0 0 10px;color:var(--muted)}
.sd-update-dialog .sd-update-version{font-size:12px;color:var(--muted);margin:0 0 20px}
.sd-update-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:15px}.sd-update-actions button{flex:1;min-height:46px}
.sd-update-note{font-size:12px!important;line-height:1.6!important;color:var(--muted)!important;margin:13px 0!important}
.sd-release-notes{border-top:1px solid var(--line);margin-top:22px;padding-top:19px}.sd-release-notes h3{font-size:15px;margin:0 0 9px}.sd-release-notes p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 10px}
.sd-update-details{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}.sd-update-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:12px;font-weight:600;gap:8px}.sd-update-details summary:before{content:'+';font-size:17px}.sd-update-details[open] summary:before{content:'−'}
.sd-update-facts{display:grid;gap:10px;margin:10px 0 16px}.sd-update-facts div{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.sd-update-facts dt{font-size:12px;color:var(--muted)}.sd-update-facts dd{font-size:12px;font-weight:600;margin:0;overflow-wrap:anywhere}
.top-actions .sd-version-button.has-update{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.top-actions .sd-version-button{min-height:44px!important;font-size:12px!important}
@media(max-width:800px){.sd-update-banner{justify-content:flex-start;flex-wrap:wrap;gap:5px 9px}.sd-update-banner>span{flex-basis:100%}.sd-update-dialog{padding:23px 20px}.sd-update-facts div{grid-template-columns:1fr;gap:3px}.sd-update-dialog .sd-update-status{font-size:25px}.top-actions .sd-version-button{font-size:11px!important;min-height:44px!important}}
/* The footer and banner text buttons come from this script. Standalone pages have no .text-btn style, so give them one; Home keeps its own, in the accent-text token. */
body:not([data-module]) :is(.footer,.sd-update-banner,.sd-update-details)>.text-btn{background:transparent;border:0;color:var(--muted);cursor:pointer}
body[data-module] :is(.footer,.sd-update-banner,.sd-update-details)>.text-btn{color:var(--accent-ink)}
@media (prefers-color-scheme:dark){html.sd-dark :is(.sd-update-dialog,.sd-update-banner) .btn:not(.primary){background:var(--paper);color:var(--ink);border-color:var(--line-strong)}}
