/* ── Sync UI Components ─────────────────────────────────────────────── */

/* Save success notice (replaces bare toast for setup saves) */
.save-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  padding: 16px 20px;
  background: #0d1f0d;
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 12px;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.save-notice.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.save-notice-title {
  font-size: 14px;
  font-weight: 600;
  color: #86efac;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.save-notice-title svg {
  width: 16px;
  height: 16px;
  stroke: #4ade80;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.save-notice-body {
  font-size: 13px;
  color: #a7f3d0;
  line-height: 1.5;
}
.save-notice-tip {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(34,197,94,.12);
  font-size: 12px;
  color: #6ee7b7;
  line-height: 1.4;
}

/* Sync matrix table */
.sync-matrix {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.sync-matrix th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.sync-matrix td {
  padding: 10px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,.03);
  line-height: 1.4;
}
.sync-matrix tr:last-child td { border-bottom: none; }
.sync-matrix .data-name {
  color: var(--text);
  font-weight: 500;
}
.sync-yes {
  color: #4ade80;
  font-weight: 600;
}
.sync-no {
  color: #71717a;
}
.sync-partial {
  color: var(--accent);
  font-weight: 500;
}

/* TV sync helper card */
.tv-helper {
  background: linear-gradient(135deg, rgba(200,164,78,.05), rgba(8,8,14,.98));
  border: 1px solid rgba(200,164,78,.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 680px;
  margin: 16px 0;
}
.tv-helper-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tv-helper-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(200,164,78,.1);
  border: 1px solid rgba(200,164,78,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tv-helper-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}
.tv-helper-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.tv-helper p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.tv-helper ol {
  margin: 0 0 10px 20px;
  padding: 0;
}
.tv-helper li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 2px 0;
}
.tv-helper li strong {
  color: var(--text);
}
.tv-helper .note {
  font-size: 12px;
  color: #52525b;
  margin-top: 8px;
  line-height: 1.4;
}

/* Sync info panel (compact version for inline use) */
.sync-info-inline {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  max-width: 680px;
  margin: 16px 0;
}
.sync-info-inline h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sync-info-inline p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}
.sync-info-inline p:last-child { margin-bottom: 0; }
.sync-info-inline a { color: var(--accent); text-decoration: underline; }
