/* One compact update surface with stable control rows on every phone width. */
.app-update-dialog{box-sizing:border-box;width:min(28rem,calc(100vw - 32px));max-height:calc(100dvh - 32px - var(--grt-masthead-safe-top,0px) - var(--grt-masthead-safe-bottom,0px));margin:auto;padding:24px;border:1px solid var(--line,#d6dbce);border-radius:20px;background:var(--surface,#fffdf7);color:var(--ink,#283b34);font:15px/1.5 var(--font-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);overflow:auto;overscroll-behavior:contain;animation:app-update-in 180ms cubic-bezier(.16,1,.3,1)}
.app-update-dialog::backdrop{background:#203c3373}
.app-update-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px;min-width:0}
.app-update-symbol{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0;border-radius:12px;background:var(--grt-sage,#e4ebdd);color:var(--blue,#294b40)}
.app-update-symbol svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-update-dialog .app-update-heading h2{min-width:0;margin:0;font-size:21px;line-height:1.3;letter-spacing:-.025em}
.app-update-dialog p{margin:0 0 10px;overflow-wrap:anywhere}
.app-update-dialog .app-update-notes:empty,.app-update-dialog .app-update-status:empty{display:none}
.app-update-notes{white-space:pre-line}
.app-update-content,.app-update-status{color:var(--muted,#5f685d);font-size:14px;line-height:1.5}
.app-update-dialog button,.app-update-sharing a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--line,#d6dbce);border-radius:12px;background:var(--surface,#fffdf7);color:var(--blue,#294b40);font:inherit;font-size:14px;font-weight:600;line-height:1.35;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.app-update-dialog button.primary{background:var(--blue,#294b40);color:var(--surface,#fffdf7);border-color:var(--blue,#294b40)}
.app-update-dialog button:hover,.app-update-sharing a:hover{filter:brightness(.97)}
.app-update-dialog button:active,.app-update-sharing a:active{transform:translateY(1px)}
.app-update-dialog :is(button,a):focus-visible{outline:3px solid var(--focus,#596f44);outline-offset:3px}
.app-update-dialog button:disabled{opacity:.6;cursor:wait}
.app-update-dialog [hidden]{display:none!important}
.app-update-sharing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px;padding-top:20px;border-top:1px solid var(--line,#d6dbce)}
.app-update-sharing>*{width:100%}
.app-update-sharing [data-app-update-details]{grid-column:1/-1}
.app-update-dialog footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
.app-update-dialog footer button{width:100%;height:100%}
.app-update-progress{display:block;width:100%;height:6px;margin:16px 0;border:0;border-radius:3px;accent-color:var(--blue,#294b40)}
.app-update-progress::-webkit-progress-bar{background:var(--grt-sage,#e4ebdd);border-radius:3px}
.app-update-progress::-webkit-progress-value{background:var(--blue,#294b40);border-radius:3px}
.app-update-dialog .app-display-details{box-sizing:border-box;display:block;width:100%;min-height:160px;margin-top:12px;padding:12px;border:1px solid var(--line,#d6dbce);border-radius:8px;background:var(--canvas,#f6f3eb);color:var(--ink,#283b34);font:12px/1.5 ui-monospace,monospace;resize:vertical}
@keyframes app-update-in{from{opacity:.75;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:360px){.app-update-dialog{padding:20px}.app-update-heading{gap:10px}.app-update-dialog .app-update-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.app-update-dialog{animation:none}.app-update-dialog button:active,.app-update-sharing a:active{transform:none}}
