/* In the main layout flow: never cover a message, input box or modal. */
#app-update-notice {
  box-sizing: border-box; flex: 0 0 auto; align-self: center;
  width: calc(100% - 48px); max-width: var(--content-w, 860px);
  display: flex; align-items: center; gap: 14px;
  margin: 54px auto 0; padding: 15px 18px;
  border: 1px solid #dfd4bb; border-radius: 14px;
  background: #fbf8f1; color: #332e27;
  box-shadow: 0 3px 14px rgba(74, 58, 24, 0.035);
}
#app-update-notice[hidden], #app-update-notice [hidden] { display: none !important; }
.update-icon {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: #eee4d0; color: #886a32;
  font-size: 22px; line-height: 1;
}
.update-copy { flex: 1; min-width: 0; }
.update-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.update-heading strong { font-size: 14px; font-weight: 600; }
.update-preview-tag { padding: 2px 6px; border: 1px solid #dfd4bb; border-radius: 4px; color: #806c47; font-size: 10px; }
#update-description { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: #786d5b; }
.update-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.update-actions button { padding: 8px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; cursor: pointer; }
#update-refresh { background: #806436; border: 1px solid #806436; color: #fff; }
#update-refresh:hover:not(:disabled) { background: #69502b; }
#update-refresh:disabled { background: #e8e2d6; border-color: #e8e2d6; color: #8a8274; cursor: not-allowed; }
#update-later { background: transparent; border: 1px solid transparent; color: #786d5b; }
#update-later:hover { background: #f0e9dc; }
#app-update-notice button:focus-visible { outline: 2px solid #947542; outline-offset: 3px; }
#main.welcome-mode #app-update-notice { margin-top: 0; margin-bottom: 18px; }
@media (max-width: 640px) {
  #app-update-notice { width: calc(100% - 28px); margin-top: 52px; padding: 12px; gap: 10px; flex-wrap: wrap; }
  .update-copy { flex-basis: calc(100% - 44px); }
  .update-actions { margin-left: 42px; }
}
