.secondary-update-banner {
  --update-accent: #2f5d50;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--update-accent) 28%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--update-accent) 7%, var(--surface, #fff));
  color: var(--update-accent);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.secondary-update-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.secondary-update-summary {
  width: 100%;
  min-height: 38px;
  padding: 7px 8px 7px 11px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.secondary-update-summary:active {
  opacity: .72;
}

.secondary-update-summary:focus {
  outline: none;
}

.secondary-update-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.secondary-update-text {
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-update-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.secondary-update-close:active {
  background: color-mix(in srgb, var(--update-accent) 10%, transparent);
}

.secondary-update-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 240ms ease-out, opacity 200ms ease-out;
}

.secondary-update-banner.is-expanded .secondary-update-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.secondary-update-details-inner {
  min-height: 0;
  overflow: hidden;
}

.secondary-update-list {
  margin: 0 10px 10px;
  padding: 8px 10px;
  border-top: 1px solid color-mix(in srgb, var(--update-accent) 18%, transparent);
  display: grid;
  gap: 7px;
  list-style: none;
}

.secondary-update-item {
  display: grid;
  gap: 2px;
}

.secondary-update-item strong {
  overflow: hidden;
  color: var(--ink, #26312f);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-update-item small {
  color: var(--muted, #8aa5a1);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

:root[data-zh-theme="dark"] .secondary-update-banner {
  --update-accent: #a8c4bc;
  border-color: var(--zh-border, #3a4542);
  background: color-mix(in srgb, var(--surface, #242b29) 92%, var(--update-accent));
}

:root[data-zh-theme="dark"] .secondary-update-list {
  border-top-color: var(--zh-border, #3a4542);
}

@media (prefers-reduced-motion: reduce) {
  .secondary-update-banner,
  .secondary-update-details {
    transition-duration: 1ms;
  }
}
