.update-overlay[hidden] { display: none; }
.update-overlay { position: fixed; inset: auto 0 0; z-index: 2147483647; display: block; box-sizing: border-box; width: 100%; max-width: 420px; height: 440px; min-height: 0; max-height: 88vh; max-height: min(88dvh, calc(100dvh - max(16px, env(safe-area-inset-top)))); margin: 0 auto; border: 1px solid #d5e1ef; overflow: auto; overscroll-behavior: contain; padding: 25px 24px max(22px, env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #f5f9ff; box-shadow: 0 16px 44px rgba(24, 53, 88, .24); color-scheme: light; color-scheme: only light; color: #19324c; font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: center; opacity: 1; }
.update-overlay:modal { animation: coco-update-slide-up 200ms ease-out; }
@keyframes coco-update-slide-up { from { transform: translateY(32px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .update-overlay:modal { animation: none; } }
/* The native dialog is the card. Its backdrop dims the page without another
   full-viewport content surface around the mounted workspace. */
.update-overlay::backdrop { background: rgba(33, 58, 70, .35); }
.update-dialog { box-sizing: border-box; min-width: 0; }
.update-dialog .eyebrow { display: block; margin-top: 14px; color: #637d9b; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.update-dialog h2 { margin: 8px 0 11px; color: #233e5d; font-size: 23px; line-height: 1.35; letter-spacing: -.04em; word-break: keep-all; overflow-wrap: anywhere; }
.update-dialog p { margin: 0 0 15px; color: #465e77; font-size: 14px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.update-dialog p.update-detail { margin: 12px 0 0; min-height: 1.6em; color: #697e96; font-size: 12px; line-height: 1.6; }
.update-dialog > small { display: block; margin-top: 7px; color: #7a8da3; font-size: 10px; overflow-wrap: anywhere; }
.update-character { display: grid; justify-items: center; gap: 6px; margin: 0 auto 2px; }
.update-coco { display: block; width: 108px; height: 108px; max-width: 100%; overflow: visible; filter: none; animation: none; }
.update-coco-level { display: inline-block; padding: 4px 10px; border-radius: 20px; background: #e3efff; box-shadow: inset 0 1px 0 #fff; color: #4274ac; font-size: 11px; line-height: 1.4; font-weight: 700; }
.update-progress { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 10px; min-width: 0; }
.update-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e0eaf6; box-shadow: inset 0 1px 2px #bfd0e440; }
.update-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #668add; }
.update-progress strong { color: #4e79ae; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.update-overlay.is-failed .update-track span { background: #b38976; }
.update-overlay[data-update-mode="preparing"] .update-progress,
.update-overlay[data-update-mode="preparing"] [data-update-detail],
.update-overlay[data-update-mode="preparing"] [data-update-version] { display: none; }
.update-overlay[data-update-mode="connection"] .update-progress,
.update-overlay[data-update-mode="connection"] [data-update-version] { display: none; }
.update-overlay[data-update-retry="true"] { height: 500px; }
.update-dialog [data-outage-retry-form] { margin-top: 18px; }
.update-retry { min-height: 44px; padding: 10px 20px; border: 1px solid #668add; border-radius: 12px; background: #668add; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.update-retry:focus-visible { outline: 3px solid #4274ac; outline-offset: 3px; }
.update-steps[hidden], .update-steps li[hidden], .update-deployment-confirm[hidden] { display: none; }
.update-steps { display: grid; gap: 7px; list-style: none; margin: 0 0 17px; padding: 0; text-align: left; }
.update-steps li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding: 9px 12px; border: 1px solid #dce6f3; border-radius: 10px; background: #eef4fc; color: #59718d; font-size: 13px; line-height: 1.4; }
.update-steps strong { flex-shrink: 0; font-size: 12px; font-weight: 700; }
.update-steps [data-update-step-state="building"], .update-steps [data-update-step-state="applying"] { border-color: #9fb9e9; background: #e3edff; color: #345e98; }
.update-steps [data-update-step-state="complete"] { background: #edf6f2; border-color: #d3e6dd; color: #397259; }
.update-steps [data-update-step-state="failed"] { background: #f9efeb; border-color: #e6cfc3; color: #95654d; }
.update-overlay[data-update-batch="true"] { height: 560px; }
.update-overlay[data-update-batch="true"] .update-coco { width: 80px; height: 80px; }
.update-overlay[data-update-batch="true"] .eyebrow { display: none; }
.update-overlay[data-update-batch="true"] .update-steps { margin-bottom: 14px; }
.update-overlay[data-update-batch="true"] [data-update-version] { display: none; }
.update-deployment-confirm { margin-top: 14px; min-width: 100px; }
@media (max-width: 640px) { .update-overlay { max-width: none; } }
@media (max-width: 360px) { .update-overlay { height: 420px; padding: 21px 18px max(19px, env(safe-area-inset-bottom)); } .update-dialog h2 { font-size: 21px; } .update-coco { width: 96px; height: 96px; } }
