:root {
  --bg: #eef2f6;
  --bg-accent: #e7edf5;
  --sidebar: #0f172a;
  --sidebar-2: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-text-strong: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe3ee;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --success: #047857;
  --warning: #b45309;
  --danger: #b91c1c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(15, 118, 110, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-accent), var(--bg));
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--sidebar), #111827 55%, var(--sidebar-2));
  color: var(--sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  margin-bottom: 16px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(245, 196, 0, 0.28);
}

img.brand-mark {
  background: transparent;
}

.brand strong {
  display: block;
  color: var(--sidebar-text-strong);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: var(--sidebar-text);
  font-weight: 560;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}

.sidebar nav a:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #fff;
  text-decoration: none;
}

.sidebar nav a.active {
  background: rgba(20, 184, 166, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.22);
}

.nav-group { margin-top: 2px; }
.nav-group-parent { width: 100%; }
.nav-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 6px 12px;
  margin: 0 0 4px 20px;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}
.nav-group.open .nav-sub { display: flex; }
.nav-sub a {
  padding: 8px 12px !important;
  font-size: 13px;
  font-weight: 520;
  color: #94a3b8 !important;
  box-shadow: none !important;
}
.nav-sub a:hover {
  color: #fff !important;
  background: rgba(148, 163, 184, 0.08) !important;
}
.nav-sub a.active {
  color: #5eead4 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 700;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  color: inherit;
  opacity: 0.9;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.sidebar-meta { font-size: 12px; color: #94a3b8; }
.sidebar-version { font-size: 11px; color: #64748b; margin-top: 4px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 10px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.topbar .user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.content { padding: 18px 28px 36px; flex: 1; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .content, .topbar { padding-left: 18px; padding-right: 18px; }
}

.stat-card .value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-card .label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
}

table { width: 100%; border-collapse: collapse; }
table th, table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: top;
}
table th {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .05em;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #f8fafc; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: #f8fafc; text-decoration: none; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-danger { color: var(--danger); border-color: #fecaca; background: #fff; }
.btn-danger:hover { background: #fef2f2; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(15, 23, 42, 0.04); color: var(--text); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
}
.badge-success { background: #ecfdf5; color: var(--success); }
.badge-warning { background: #fffbeb; color: var(--warning); }
.badge-danger  { background: #fef2f2; color: var(--danger); }
.badge-muted   { background: #f1f5f9; color: var(--muted); }
.badge-info    { background: #eff6ff; color: #1d4ed8; }

.loc-img-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.loc-img-mark--ok {
  background: #ecfdf5;
  color: var(--success);
}
.loc-img-mark--missing {
  background: #fef2f2;
  color: var(--danger);
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.form-group .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="file"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

.flash {
  padding: 13px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13.5px;
  border: 1px solid transparent;
}
.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(20, 184, 166, 0.22), transparent 50%),
    linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #0f766e 140%);
}

.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 36px 34px;
  width: min(400px, 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.5);
}

.login-card .login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-card h1 { font-size: 22px; margin: 0; letter-spacing: -0.03em; }
.login-card p.subtitle { color: var(--muted); margin: 0 0 22px; font-size: 13.5px; }

.login-card-wide { width: min(520px, 100%); }

.totp-steps {
  margin: 0 0 20px;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.totp-steps li { margin-bottom: 6px; }
.totp-steps strong { color: var(--text); }

.totp-setup-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 560px) {
  .totp-setup-grid { grid-template-columns: 1fr; justify-items: center; }
  .totp-setup-grid > div:last-child { width: 100%; }
}

.totp-qr-panel { text-align: center; }
.totp-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}
.totp-qr img { display: block; }

.totp-secret {
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  word-break: break-all;
  font-weight: 700;
}

.totp-input {
  font-size: 22px !important;
  letter-spacing: 0.35em;
  text-align: center;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Consolas, monospace !important;
  padding: 14px 12px !important;
}

.totp-recovery-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.totp-recovery-list li {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
@media (max-width: 480px) {
  .totp-recovery-list { grid-template-columns: 1fr; }
}

.badge-2fa {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-2fa.off {
  background: #fff7ed;
  color: #c2410c;
}

.admin-manage-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .admin-manage-grid { grid-template-columns: 1fr; }
}

.admin-subhead {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-create-panel,
.admin-edit-panel {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-creds-once {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.admin-creds-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.admin-creds-dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: center;
}
.admin-creds-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-creds-dl dd { margin: 0; }
.admin-creds-password {
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  word-break: break-all;
}

.admin-table .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 200px;
}
.admin-table .admin-actions form { display: inline; margin: 0; }
.admin-row-inactive td { opacity: 0.72; }

.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 4px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.settings-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
}
.settings-subnav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
  text-decoration: none;
}
.settings-subnav-link.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.logs-shell {
  padding: 0;
  overflow: hidden;
}
.logs-shell-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px 0;
  flex-wrap: wrap;
}
.logs-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logs-lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 42rem;
}
.logs-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}

.logs-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.logs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.logs-chip {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.logs-chip:hover {
  border-color: #cbd5e1;
  color: var(--text);
  background: #fff;
  text-decoration: none;
}
.logs-chip.is-active,
.logs-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.logs-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.logs-search input[type="search"] {
  min-width: min(260px, 70vw);
  margin: 0;
  border-radius: 10px;
}

.logs-empty {
  text-align: center;
  padding: 56px 24px;
}
.logs-empty p { margin: 8px 0 0; }

.logs-feed {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.logs-item {
  display: flex;
  gap: 14px;
  padding: 14px 22px;
  align-items: flex-start;
  position: relative;
}
.logs-item:hover { background: #f8fafc; }
.logs-item + .logs-item::before {
  content: "";
  position: absolute;
  left: 39px;
  top: -8px;
  width: 2px;
  height: 8px;
  background: #e2e8f0;
}

.logs-rail {
  position: relative;
  flex-shrink: 0;
  padding-top: 2px;
}
.logs-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 0 0 3px #fff;
}
.logs-avatar--system {
  background: #f1f5f9;
  color: #64748b;
}
.logs-tone-warn .logs-avatar {
  background: #fff7ed;
  color: #c2410c;
}
.logs-tone-ok .logs-avatar {
  background: #ecfdf5;
  color: #047857;
}

.logs-body { min-width: 0; flex: 1; }
.logs-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.logs-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.logs-action {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.logs-when {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.logs-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.logs-pill--ok {
  background: #ecfdf5;
  color: #047857;
}
.logs-pill--warn {
  background: #fff7ed;
  color: #c2410c;
}

.logs-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.logs-actor {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text);
  margin-right: 2px;
}
.logs-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logs-tag--soft {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 550;
}
.logs-tag--mono {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11.5px;
  font-weight: 550;
  color: #64748b;
}

.logs-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.logs-pager > :last-child { justify-self: end; }

.text-muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; }
.empty-state { text-align: center; padding: 40px 10px; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.logo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.logo-preview img { height: 40px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.logo-preview--light {
  background-color: #f3f4f6;
  background-image:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.logo-preview--dark {
  background: #1a1a1a;
}
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

/* Site sync status panel */
.sync-panel { padding: 0; overflow: hidden; }
.sync-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.sync-hero--success { border-top: 3px solid var(--success); }
.sync-hero--warning { border-top: 3px solid var(--warning); }
.sync-hero--danger { border-top: 3px solid var(--danger); }
.sync-hero-kicker {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.sync-hero h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sync-hero-detail {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  font-size: 13.5px;
}
.sync-hero-meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.sync-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.sync-body { padding: 18px 24px 22px; }
.sync-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
}
.sync-alert--warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.sync-alert--error {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.sync-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .sync-modules { grid-template-columns: 1fr; }
}
.sync-module {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafbfc;
}
.sync-module h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sync-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sync-metric {
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}
.sync-metric strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.sync-metric span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.sync-metric--hot strong { color: var(--danger); }
.sync-metric--warm strong { color: var(--warning); }
.sync-metric--ok strong { color: var(--success); }
.sync-module-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.sync-module-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.sync-changes { margin-top: 14px; }
.sync-changes h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.sync-changes table { background: #fff; border-radius: 10px; overflow: hidden; }
.sync-changes table th,
.sync-changes table td { padding: 8px 10px; }
.action-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--muted);
}
.action-pill--create,
.action-pill--link { background: #ecfdf5; color: var(--success); }
.action-pill--update { background: #eff6ff; color: #1d4ed8; }
.action-pill--deactivate,
.action-pill--delete { background: #fef2f2; color: var(--danger); }
