/* Tempo Sync, the utility. Calm, neutral, and clear. */
.sync { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; color: #1d2330; background: #fafbfc; }
.sync h1 { margin: 0; font-size: 19px; letter-spacing: -.01em; margin-right: auto; }
.sync h2 { margin: 0; font-size: 14px; }
.sync h3 { margin: 0 0 6px; font-size: 13px; }
.sync-top { display: flex; align-items: center; gap: 10px; }
.sync-kill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #4a5368; }
.sync-switch { width: 36px; height: 20px; padding: 0; border-radius: 999px; border: 1px solid #c9ced8; background: #e6e9ef;
  position: relative; cursor: pointer; }
.sync-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #8d97ab; transition: left .15s; }
.sync-switch.on { background: #fde2e1; border-color: #d64545; }
.sync-switch.on::after { left: 18px; background: #d64545; }
.sync-mode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #6b7385; margin-top: -4px; }
.sync-pill { padding: 3px 10px; border-radius: 999px; font-weight: 600; border: 1px solid; }
.m-read { color: #1f6fb2; background: #e8f1fb; border-color: #b9d4f0; }
.m-propose { color: #8a5a00; background: #fff4cc; border-color: #f2d27a; }
.m-idle { color: #22804a; background: #e2f6e8; border-color: #a9dcb9; }
.m-paused { color: #b03030; background: #fde2e1; border-color: #f0b0ae; }

.sync-srcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sync-src { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid #e1e4ea; border-radius: 8px;
  background: #fff; font-size: 12px; min-width: 0; }
.sync-src b { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.sync-live { width: 7px; height: 7px; border-radius: 50%; background: #2f9e57; }
.sync-access { color: #4a5368; }
.sync-access.warn { color: #8a5a00; background: #fff4cc; border-radius: 4px; padding: 1px 4px; margin-left: -4px; }
.sync-src small { color: #8d97ab; }

.sync-box { background: #fff; border: 1px solid #e1e4ea; border-radius: 10px; padding: 12px; }
.sync-boxhead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sync-boxhead small { color: #6b7385; font-size: 12px; }
.sync-tab { padding: 3px 10px; border-radius: 999px; border: 1px solid #d5d9e1; background: #fff; font-size: 12px; cursor: pointer; }
.sync-tab.on { background: #1b2130; border-color: #1b2130; color: #fff; }
.sync-famhead, .sync-fam { display: grid; grid-template-columns: 1fr 34px 34px 34px 96px; align-items: center; gap: 4px; }
.sync-famhead { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8d97ab; text-align: center; padding: 0 8px 4px; }
.sync-fams { max-height: 148px; }
.sync-fam { width: 100%; text-align: left; padding: 6px 8px; border: 0; border-top: 1px solid #eef0f3; background: none; cursor: pointer; }
.sync-fam:hover { background: #f5f7fa; }
.sync-fam.on { background: #eef3fb; }
.sync-fam b { display: block; font-size: 13px; }
.sync-fam small { color: #6b7385; font-size: 12px; }
.sync-mark { justify-self: center; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.k-ok { color: #22804a; background: #e2f6e8; }
.k-diff { color: #8a5a00; background: #ffeaa6; }
.sync-status { font-size: 12px; font-weight: 600; text-align: right; }
.s-look { color: #8a5a00; } .s-agree { color: #22804a; }
.sync-quiet { margin: 8px 0 2px; font-size: 12px; color: #6b7385; }

.sync-recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 2px; }
.sync-rec { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; border: 1px solid #e1e4ea;
  border-left: 4px solid; font-size: 13px; min-width: 0; }
.r-mms { border-left-color: #0A96D8; } .r-wave { border-left-color: #1c3d8f; } .r-quo { border-left-color: #7C5CFC; }
.sync-rec-app { font-size: 11px; font-weight: 600; color: #6b7385; }
.sync-rec small { color: #6b7385; font-size: 12px; }
.sync-phone { font-variant-numeric: tabular-nums; }
.sync-rec .warn { background: #ffeaa6; border-radius: 3px; padding: 0 3px; margin-left: -3px; align-self: flex-start; }
.sync-flag { align-self: flex-start; margin-top: 3px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px;
  font-weight: 700; color: #b03030; background: #fde2e1; padding: 1px 6px; border-radius: 999px; }
.sync-issues { margin: 10px 0 0; padding: 8px 10px 8px 26px; font-size: 13px; background: #fffaf0; border-radius: 8px; }
.sync-issues li { margin: 3px 0; }
.sync-fixes { margin-top: 10px; padding: 10px; border-radius: 8px; background: #f5f7fa; }
.sync-fix { display: grid; grid-template-columns: 112px 1fr; gap: 0 8px; padding: 5px 0; border-top: 1px solid #e6e9ef; font-size: 12.5px; }
.sync-fix:first-of-type { border-top: 0; }
.sync-fix-app { font-weight: 700; display: flex; align-items: center; gap: 4px; grid-row: span 2; }
.sync-fix.done .sync-fix-app { color: #22804a; }
.sync-fix-what { color: #4a5368; }
.sync-fix-val s, .sync-log-row s { color: #8d97ab; }
.sync-note { margin: 6px 0 0; font-size: 12px; color: #4a5368; }
.sync-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 2px; }
.sync-actions .sync-note { margin: 0; }
.sync-approve { padding: 7px 20px; border-radius: 8px; border: 0; background: #22804a; color: #fff; font-weight: 700; cursor: pointer; }
.sync-approve:hover:not(:disabled) { background: #1b6b3d; }
.sync-approve:disabled { background: #b9c0cc; cursor: not-allowed; }
.sync-done { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: 13px; color: #22804a; font-weight: 600; }
.sync-done .ico { margin-top: 2px; }
.sync-over p { margin: 0 0 10px; color: #4a5368; font-size: 13px; }
.sync-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sync-stats span { padding: 8px 10px; border-radius: 8px; background: #f5f7fa; font-size: 12px; color: #6b7385; }
.sync-stats b { display: block; font-size: 22px; color: #22804a; }
.sync-stats .k-look b { color: #8a5a00; }
.sync-stats span:last-child b { color: #1d2330; }

.sync-log-row { display: grid; grid-template-columns: 58px 92px 1fr 1.2fr; gap: 6px; padding: 5px 4px; font-size: 12px;
  border-top: 1px solid #eef0f3; align-items: baseline; }
.sync-log-th { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8d97ab; border-top: 0; }

@container (max-width: 470px) {
  .sync-srcs { grid-template-columns: 1fr; }
  .sync-src { flex-direction: row; flex-wrap: wrap; column-gap: 8px; align-items: baseline; }
  .sync-log-row { grid-template-columns: 56px 1fr; }
  .sync-log-row > span:nth-child(n+3) { grid-column: 2; }
  .sync-log-th { display: none; }
  .sync-fix { grid-template-columns: 1fr; }
  .sync-fix-app { grid-row: auto; }
}

/* Panel tabs and the Announcement panel */
.sync-ptabs { display: flex; gap: 4px; border-bottom: 1px solid #e1e4ea; margin-bottom: -4px; }
.sync-ptab { padding: 6px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 600; color: #6b7385; cursor: pointer; }
.sync-ptab.on { color: #1d2330; border-bottom-color: #1d2330; }
.sync-approve.hl { background-color: #22804a !important; box-shadow: 0 0 0 3px #f2b705 !important; border-radius: 8px; }
.ann-from { font-size: 12.5px; color: #4a5368; padding: 4px 6px; margin: 0 -6px; }
.ann-label { margin: 12px 0 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8d97ab; }
.ann-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 3px; margin: -3px; }
.ann-group { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #d5d9e1; border-radius: 8px; background: #fff;
  font-size: 12.5px; text-align: left; cursor: pointer; }
.ann-group i { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #b9c0cc; }
.ann-group.on { border-color: #1d2330; box-shadow: inset 0 0 0 1px #1d2330; }
.ann-group.on i { border-color: #1d2330; background: radial-gradient(#1d2330 45%, transparent 50%); }
.ann-group small { margin-left: auto; color: #6b7385; font-variant-numeric: tabular-nums; }
.ann-text { padding: 10px 12px; border: 1px solid #d5d9e1; border-radius: 10px; background: #fff; font-size: 13.5px; line-height: 1.45; }
.ann-text.sent { background: #7C5CFC; color: #fff; border-color: #7C5CFC; border-bottom-right-radius: 4px; margin-left: 15%; }
.ann-how { margin: 10px -6px 0; padding: 6px; font-size: 12.5px; color: #22804a; font-weight: 600; }
.ann-count { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 3px; }
.ann-count span { padding: 8px 12px; border-radius: 8px; background: #f5f7fa; font-size: 12px; color: #6b7385; }
.ann-count b { display: block; font-size: 24px; color: #22804a; }
.ann-meta { margin: 8px 0 10px; font-size: 12.5px; color: #4a5368; }
.ann-list { display: flex; flex-direction: column; }
.ann-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px; border-top: 1px solid #eef0f3; font-size: 12.5px; }
.ann-row b { display: block; }
.ann-row small { color: #6b7385; font-variant-numeric: tabular-nums; }
.ann-reply { color: #1d2330; text-align: right; }
.ann-ok { color: #22804a; font-size: 12px; font-weight: 600; }
