.update-activity {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 55;
  transform: translate(-50%, -50%);
  max-width: min(92vw, 420px);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--theme-border-e7a9b9, #e7a9b9);
  background: var(--theme-bg-f8dce4, #f8dce4);
  color: var(--theme-fg-702d42, #702d42);
  box-shadow: 0 6px 18px var(--theme-bg-rgba-91-35-53-0-16, rgba(91, 35, 53, 0.16));
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.update-notice {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 56;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  border: 1px solid var(--theme-border-e7a9b9, #e7a9b9);
  border-radius: 10px;
  background: var(--theme-bg-f8dce4, #f8dce4);
  color: var(--theme-fg-702d42, #702d42);
  box-shadow: 0 6px 18px var(--theme-bg-rgba-91-35-53-0-16, rgba(91, 35, 53, 0.16));
  font-size: 13px;
  font-weight: 650;
}

.update-notice button,
.update-more-notes {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--theme-border-b75c79, #b75c79);
  border-radius: 8px;
  background: var(--theme-bg-fff, #fff);
  color: var(--theme-fg-702d42, #702d42);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  pointer-events: auto;
}

.update-status,
.update-note {
  display: block;
}

.update-note {
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 500;
  line-height: 1.45;
}


.update-summary {
  pointer-events: auto;
  width: min(92vw, 520px);
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 48px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 16px;
  font-size: 14px;
}

.update-summary h2 { margin: 0 0 12px; font-size: 18px; }
.update-summary-notes { overflow-y: auto; min-height: 0; max-height: 50dvh; overscroll-behavior: contain; pointer-events: auto; }
.update-more-notes { margin-top: 10px; }
.update-more-notes[hidden] { display: none; }
.update-summary-notes section + section { margin-top: 16px; }
.update-summary h3 { margin: 0; font-size: 14px; }
.update-summary .update-note { margin: 6px 0 0; }
.update-summary button {
  align-self: flex-end;
  flex-shrink: 0;
  margin-top: 14px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--theme-border-b75c79, #b75c79);
  border-radius: 8px;
  background: var(--theme-bg-fff, #fff);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media print {
  .update-activity, .update-notice { display: none; }
}
