/* Scoped to the independent vocabulary-update card. */
.vocab-update-card {
  margin: 0 0 22px;
  padding: 16px 18px 12px;
  border: 1px solid var(--line, #293239);
  border-radius: 8px;
  background: #111b20;
  color: var(--text, #e9eef0);
}
.vocab-update-card [hidden] { display: none !important; }
.vocab-update-top, .vocab-update-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.vocab-update-title { min-width: 0; }
.vocab-update-title h3 { color: var(--text, #e9eef0); font-size: 15px; font-weight: 650; text-transform: none; }
.vocab-update-profile { margin: 5px 0 0; color: #abbac2; font-size: 12px; line-height: 1.5; }
.vocab-update-separator { padding: 0 8px; color: #61737e; }
.vocab-update-actions { justify-content: flex-end; flex-shrink: 0; }
.vocab-update-actions .button { min-height: 34px; font-size: 12px; white-space: nowrap; }
.vocab-update-badge { color: var(--muted, #8d9ba3); font-size: 12px; white-space: nowrap; }
.vocab-update-status { margin-top: 13px; }
.vocab-update-status p { margin: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.65; }
.vocab-update-status .vocab-update-time { margin-top: 3px; color: var(--muted, #8d9ba3); font-size: 11px; }
.vocab-update-card[data-state="checking"] .vocab-update-badge,
.vocab-update-card[data-state="diff_unavailable"] .vocab-update-badge { color: var(--amber, #f3b34c); }
.vocab-update-card[data-state="update_available"] { border-color: #367c70; }
.vocab-update-card[data-state="update_available"] .vocab-update-badge,
.vocab-update-card[data-state="latest"] .vocab-update-badge { color: var(--green, #63db8b); }
.vocab-update-card[data-state="error"] .vocab-update-badge,
.vocab-update-card[data-state="interrupted"] .vocab-update-badge { color: #ffb0a7; }
.vocab-update-available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #326a61;
  border-radius: 5px;
  background: #132e2a;
}
.vocab-update-available strong { display: block; color: #97f1d3; font-size: 13px; overflow-wrap: anywhere; }
.vocab-update-available p { margin: 5px 0 0; color: #aacdc2; font-size: 11px; line-height: 1.6; }
.vocab-update-download { flex-shrink: 0; color: #9ef7dd; font-size: 12px; font-weight: 650; text-underline-offset: 4px; }
.vocab-update-download:focus-visible,
.vocab-update-card summary:focus-visible { outline: 2px solid var(--cyan, #4dd6c5); outline-offset: 4px; border-radius: 2px; }
.vocab-update-feedback { margin: 10px 0 0; padding-left: 9px; border-left: 2px solid var(--amber, #f3b34c); color: #f3c686; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.vocab-update-rule { margin: 11px 0 0; color: #93a7b1; font-size: 11px; line-height: 1.6; }
.vocab-update-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr); gap: 10px 24px; margin-top: 7px; }
.vocab-update-card details { min-width: 0; }
.vocab-update-card summary { width: fit-content; padding: 5px 0; color: #b1c2c9; cursor: pointer; font-size: 11px; line-height: 1.6; }
.vocab-update-card summary:hover { color: var(--cyan, #4dd6c5); }
.vocab-update-phone-settings summary span { margin-left: 6px; color: #7f949f; font-size: 10px; }
.vocab-update-details-body { margin-top: 5px; }
.vocab-update-details-body pre {
  max-height: 270px;
  overflow: auto;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--line, #293239);
  border-radius: 4px;
  background: #0c1418;
  color: #bfced5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.vocab-update-phone-body { padding: 5px 0 0; }
.vocab-update-phone-body > p { margin: 0 0 8px; color: #8da2ad; font-size: 11px; line-height: 1.6; }
.vocab-update-phone-row { display: flex; align-items: flex-end; gap: 8px; }
.vocab-update-phone-row label { display: block; flex: 1; min-width: 0; color: #a2b5be; font-size: 11px; }
.vocab-update-phone-row input { display: block; width: 100%; height: 34px; margin-top: 5px; font-size: 12px; }
.vocab-update-phone-row .button { min-height: 34px; font-size: 12px; }
.vocab-update-phone-body .vocab-update-phone-saved { margin: 7px 0 0; color: #9bbcaf; min-height: 1em; }
.vocab-update-scope { margin: 6px 0 0; color: #788e9a; font-size: 10px; line-height: 1.6; }
@media (max-width: 650px) {
  .vocab-update-card { padding: 14px 13px 11px; }
  .vocab-update-top { flex-wrap: wrap; gap: 10px; }
  .vocab-update-actions { flex: 1; gap: 12px; }
  .vocab-update-more { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vocab-update-available { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vocab-update-card * { scroll-behavior: auto; }
}
