@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
.app-update-overlay {
  position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center;
  /* Fixed insets also center the dialog when the workspace uses CSS zoom. */
  padding: 24px; margin: 0; width: auto; height: auto; max-width: none; max-height: none;
  border: 0; box-sizing: border-box; background: transparent; outline: none;
}
.app-update-overlay::backdrop { background: rgb(20 22 24 / 42%); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.app-update-overlay:not([open]) { display: none; }
.app-update-notice {
  --update-red: #d9083c;
  position: fixed; z-index: 2147483000; right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom)); width: min(390px, calc(100vw - 40px));
  box-sizing: border-box; overflow: hidden; border: 1px solid #e5e3e0; border-radius: 16px;
  background: #fcfbf9; color: #242424;
  box-shadow: 0 12px 40px #15191d1c, 0 2px 6px #15191d08;
  font: 500 14px/1.7 "Montserrat", "Segoe UI", sans-serif;
}
.app-update-overlay .app-update-notice {
  position: relative; inset: auto; width: min(520px, 100%); max-height: 100%; overflow: auto;
  border-color: #ffffff30; border-radius: 20px;
  box-shadow: 0 32px 96px #12161c40, 0 8px 24px #12161c1a;
  animation: app-update-enter 200ms cubic-bezier(.2,.7,.2,1) both;
}
.app-update-brand { display: none; }
.app-update-overlay .app-update-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 32px; background: #202020; border-bottom: 1px solid #ffffff14;
}
.app-update-logo { display: block; width: 196px; max-width: 52%; height: auto; }
.app-update-eyebrow { max-width: 115px; color: #d7d3cf; text-align: right; font-size: 9px; font-weight: 600; line-height: 1.7; letter-spacing: .18em; }
.app-update-content { padding: 22px; }
.app-update-overlay .app-update-content { padding: 32px; }
.app-update-notice h2 { margin: 0 0 14px; color: #202020; font-family: inherit; font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.035em; text-wrap: balance; }
.app-update-overlay .app-update-notice h2 { font-size: 27px; }
.app-update-notice p { margin: 0; color: #626465; }
.app-update-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.app-update-actions button {
  flex: 1 1 auto; min-height: 46px; padding: 12px 16px;
  border: 1px solid #d6d7d6; border-radius: 8px; background: #fff; color: #303234;
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.5;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.app-update-actions .app-update-primary { color: #fff; border-color: var(--update-red); background: var(--update-red); box-shadow: 0 3px 8px #d9083c1a; }
.app-update-actions button:hover { background: #f3f3f1; border-color: #b4b9ba; }
.app-update-actions .app-update-primary:hover { background: #bd0734; border-color: #bd0734; }
.app-update-actions button:focus-visible { outline: 3px solid #267eb0; outline-offset: 3px; }
.app-update-actions button:disabled { cursor: not-allowed; background: #e8e8e5; border-color: #e0e0dd; color: #737776; box-shadow: none; }
.app-update-notice .app-update-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6e4e0; font-size: 11px; line-height: 1.6; color: #717474; }
.app-update-progress { margin-top: 28px; height: 4px; border-radius: 4px; overflow: hidden; background: #e7e5e2; }
.app-update-progress span { display: block; width: 100%; height: 100%; background: var(--update-red); transform-origin: left; animation: app-update-countdown var(--countdown-duration, 3s) linear var(--countdown-elapsed, 0ms) both; }
.app-update-notice[data-state="deferred"], .app-update-notice[data-state="ready"] { border-left: 3px solid var(--update-red); }
.app-update-notice[data-inline="true"] { position: static; width: 100%; margin: 0 0 16px; border-radius: 10px; box-shadow: none; flex: none; }
.app-update-notice[data-inline="true"] .app-update-content { padding: 16px; }
.app-update-notice[data-inline="true"] h2 { font-size: 17px; margin-bottom: 6px; }
.app-update-notice[data-inline="true"] p { font-size: 13px; }
.app-update-notice[data-inline="true"] .app-update-actions { margin-top: 14px; }
@keyframes app-update-countdown { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes app-update-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .app-update-notice { bottom: max(96px, calc(76px + env(safe-area-inset-bottom))); }
  .app-update-overlay { padding: 18px; }
  .app-update-overlay .app-update-brand { padding: 22px 24px; gap: 18px; }
  .app-update-logo { width: 178px; max-width: 58%; }
  .app-update-eyebrow { font-size: 8px; letter-spacing: .12em; }
  .app-update-overlay .app-update-content { padding: 26px 24px; }
  .app-update-overlay .app-update-notice h2 { font-size: 23px; }
  .app-update-actions { flex-direction: column; margin-top: 24px; }
  .app-update-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .app-update-overlay .app-update-notice, .app-update-progress span { animation: none; }
  .app-update-progress span { transform: scaleX(1); }
  .app-update-actions button { transition: none; }
}
