.rail-bottom>.desktop-update-button{color:#d64545;position:relative;flex-direction:column;gap:1px;height:52px;min-height:0;padding:3px 0;line-height:1;flex-shrink:0}
.rail-bottom>.desktop-update-button:hover{color:#b82e2e;background:#fbeaea}
.rail-bottom>.desktop-update-button[hidden],.desktop-update-progress[hidden]{display:none!important}
.desktop-update-icon{flex:none;width:21px;height:21px;mask:none;background:none}
.desktop-update-label{font-size:10px;font-weight:500;line-height:12px;white-space:nowrap}
.desktop-update-progress{font-size:10px;font-variant-numeric:tabular-nums;line-height:11px}
.rail-bottom>.desktop-update-button:disabled{opacity:1;cursor:progress;color:#a74a42;background:transparent}
.rail-bottom>.desktop-update-button[data-update-status="failed"]{color:#c23d36}
.rail-bottom>.desktop-update-button[data-update-status="failed"]:disabled{cursor:not-allowed}
.desktop-update-choices{display:flex;flex-direction:column;width:44px;gap:3px;max-height:120px;overflow:auto}
.desktop-update-choices button{padding:5px 1px;border:1px solid #ddd;border-radius:5px;background:#fff;color:#333;cursor:pointer;font:inherit;font-size:10px;line-height:13px;overflow-wrap:anywhere}
.desktop-update-choices button:hover{background:#ededed}
.desktop-update-button:focus-visible,.desktop-update-choices button:focus-visible{outline:2px solid #168b69;outline-offset:1px}
html[data-theme="dark"] .rail-bottom>.desktop-update-button{color:#ff9690}html[data-theme="dark"] .rail-bottom>.desktop-update-button:hover{background:#4b2e2e}html[data-theme="dark"] .rail-bottom>.desktop-update-button:disabled{color:#e3a49c}html[data-theme="dark"] .desktop-update-choices button{background:#292929;color:#eee;border-color:#555}
@media(max-height:520px){.rail-bottom>.desktop-update-button{height:36px;padding:0;gap:0}.desktop-update-icon{width:14px;height:14px}.desktop-update-label,.desktop-update-progress{font-size:9px;line-height:10px}}
@media(max-height:360px){.rail-bottom>.desktop-update-button{height:30px}.desktop-update-button[data-update-status="downloading"] .desktop-update-icon{display:none}.desktop-update-icon{width:12px;height:12px}.desktop-update-choices{max-height:76px}}

.desktop-update-notes{position:fixed;z-index:10010;display:flex;flex-direction:column;box-sizing:border-box;width:min(384px,calc(100vw - 16px));max-height:min(400px,calc(100vh - 16px));padding:14px 16px 10px;border:1px solid #e5e7e8;border-radius:12px;background:#fff;color:#242629;box-shadow:0 4px 18px #18202a17;font-size:13px;line-height:1.65;white-space:normal;user-select:text;overflow:hidden;overflow-wrap:anywhere}
.desktop-update-notes[hidden]{display:none!important}.desktop-update-notes header{position:relative;flex:none;padding:0 28px 8px 0;border-bottom:1px solid #e8e9ea}.desktop-update-notes strong{display:block;font-size:13px;font-weight:600}.desktop-update-notes time{display:block;color:#85898d;font-size:12px}.desktop-update-notes-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:8px 2px 4px 0}.desktop-update-notes h3{font-size:13px;margin:0 0 8px;font-weight:600}.desktop-update-notes ul{margin:0;padding-left:20px}.desktop-update-notes li{padding-left:3px;margin:6px 0}.desktop-update-notes li::marker{color:#a9adb1}.desktop-update-notes p{margin:4px 0;color:#74797e}.desktop-update-notes-close{position:absolute;top:-4px;right:-6px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:#7a7f84;cursor:pointer;font:20px/1 sans-serif}.desktop-update-notes-close:hover{background:#f0f1f2}.desktop-update-notes:focus-visible,.desktop-update-notes button:focus-visible,.desktop-update-notes-content:focus-visible{outline:2px solid #168b69;outline-offset:-2px}html[data-theme="dark"] .desktop-update-notes{background:#25282b;color:#edf0f2;border-color:#474c50}html[data-theme="dark"] .desktop-update-notes header{border-color:#474c50}html[data-theme="dark"] .desktop-update-notes-close:hover{background:#383d41}

.desktop-update-notes .desktop-update-notes-feedback{color:#b34037;margin:0 0 10px}html[data-theme="dark"] .desktop-update-notes .desktop-update-notes-feedback{color:#ffaca4}

/* 更新可用时收起为图标+圆点徽标，hover/focus 才显示文字，去掉常驻红字 */
.rail-bottom>.desktop-update-button[data-update-status="available"]{height:40px;color:#5f6670;background:transparent}
.rail-bottom>.desktop-update-button[data-update-status="available"]:hover{color:#b82e2e;background:#fbeaea}
.rail-bottom>.desktop-update-button[data-update-status="available"]::after{content:'';position:absolute;top:5px;right:7px;width:8px;height:8px;border-radius:50%;background:#d64545;pointer-events:none}
.rail-bottom>.desktop-update-button[data-update-status="available"] .desktop-update-label{display:none}
.rail-bottom>.desktop-update-button[data-update-status="available"]:hover .desktop-update-label,.rail-bottom>.desktop-update-button[data-update-status="available"]:focus-visible .desktop-update-label{display:block;font-size:10px;font-weight:500;line-height:12px;white-space:nowrap}
html[data-theme="dark"] .rail-bottom>.desktop-update-button[data-update-status="available"]{color:#aeb4ba}
html[data-theme="dark"] .rail-bottom>.desktop-update-button[data-update-status="available"]:hover{color:#ff9690;background:#4b2e2e}
html[data-theme="dark"] .rail-bottom>.desktop-update-button[data-update-status="available"]::after{background:#ff6b64}
@media(max-height:520px){.rail-bottom>.desktop-update-button[data-update-status="available"]{height:32px}}
