/* Contact-sync layout only: do not inherit the settings section's 32px .desc indent. */
.contact-sync-panel {
  margin: 12px 0; padding: 12px; border: 1px solid var(--line, #e6e8eb);
  border-radius: 8px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere;
}
.contact-sync-panel .cs-header,
.contact-sync-panel .cs-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-sync-panel .cs-header { justify-content: space-between; margin-bottom: 8px; }
.contact-sync-panel p { margin: 0; }
.contact-sync-panel .cs-muted { color: var(--muted, #5f6368); font-size: 12.5px; line-height: 1.6; margin: 0; }
.contact-sync-panel .cs-status { margin-bottom: 8px; }
.contact-sync-panel .cs-section { border-top: 1px solid var(--line, #e6e8eb); padding: 4px 0; }
.contact-sync-panel .cs-section:last-child { padding-bottom: 0; }
.contact-sync-panel details { min-width: 0; }
.contact-sync-panel summary { display: list-item; list-style-position: inside; margin: 0; padding: 5px 0; cursor: pointer; line-height: 20px; color: var(--text, #202124); }
.contact-sync-panel .cs-section > summary { font-weight: 500; }
.contact-sync-panel summary:hover { color: var(--blue-dark, #1967d2); }
.contact-sync-panel :is(summary, button):focus-visible { outline: 2px solid var(--blue, #1a73e8); outline-offset: 2px; border-radius: 3px; }
.contact-sync-panel button:disabled { opacity: .55; cursor: not-allowed; }
.contact-sync-panel .cs-content { padding: 4px 0 8px; }
.contact-sync-panel .cs-meta { margin-bottom: 8px; }
.contact-sync-panel .cs-stats { display: flex; flex-wrap: wrap; gap: 2px 16px; font-variant-numeric: tabular-nums; }
.contact-sync-panel .cs-stats span { white-space: nowrap; }
.contact-sync-panel .cs-stats + .cs-stats { margin-top: 2px; }
.contact-sync-panel .cs-warning { color: #946200; }
.contact-sync-panel .cs-error { color: #b42318; }
.contact-sync-panel p.cs-warning, .contact-sync-panel p.cs-error { margin: 8px 0; }
.contact-sync-panel .cs-list { list-style: none; margin: 4px 0 8px; padding: 0; max-height: 180px; overflow: auto; scrollbar-gutter: stable; }
.contact-sync-panel .cs-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 12px; padding: 5px 0; border-bottom: 1px solid var(--line, #e6e8eb); }
.contact-sync-panel .cs-list li:last-child { border-bottom: 0; }
.contact-sync-panel .cs-list .cs-name-only { grid-template-columns: minmax(0, 1fr); }
.contact-sync-panel .cs-list.cs-missing { max-height: 240px; }
.contact-sync-panel .cs-missing li { grid-template-columns: minmax(0, 1fr) 128px; align-items: center; padding: 7px 0; }
.contact-sync-panel .cs-person { min-width: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.contact-sync-panel .cs-person strong { font-weight: 500; }
.contact-sync-panel .cs-account-action { justify-self: end; text-align: right; max-width: 128px; }
.contact-sync-panel .cs-history { max-height: 300px; overflow: auto; scrollbar-gutter: stable; }
.contact-sync-panel .cs-history-item + .cs-history-item { border-top: 1px solid var(--line, #e6e8eb); margin-top: 8px; padding-top: 8px; }
.contact-sync-panel .cs-missing-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-right: 15px; }
.contact-sync-panel .cs-batch-delete { margin-left: auto; min-height: 32px; white-space: nowrap; }
@media (max-width: 600px) {
  .contact-sync-panel { padding: 10px; }
  .contact-sync-panel summary { padding: 12px 0; }
  .contact-sync-panel .btn-mini, .contact-sync-panel .btn-link { min-height: 44px; }
  .contact-sync-panel .cs-person { display: block; }
  .contact-sync-panel .cs-person .cs-muted { display: block; margin-top: 2px; }
  .contact-sync-panel .cs-missing li { grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; }
  .contact-sync-panel .cs-account-action { max-width: 100px; }
  .contact-sync-panel .cs-list:not(.cs-missing) li { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
  .contact-sync-panel .cs-list:not(.cs-missing) .cs-name-only { grid-template-columns: minmax(0, 1fr); }
}
