/* ==========================================================================
   SmallWorld Data Sync Prototype — Page Styles
   Layered on top of ../../settings/shared/styles.css (shared tokens, header,
   footer, buttons). This file owns the guided "connect your relationships"
   flow: the sync hub, the per-source sub-flows, the CSV mapper, and the
   success / progress / empty states.
   ========================================================================== */

:root {
  --sw-blue: #3f84e5;
  --sw-blue-dark: #2e6ec5;
  --sw-blue-tint: #f1f7ff;
  --sw-ink: #222;
  --sw-ink-2: #57595B;
  --sw-ink-3: #77797B;
  --sw-ink-4: #9DA1A5;
  --sw-line: #e8ebef;
  --sw-line-soft: #eef1f5;
  --sw-bg: #FBFCFE;
  --sw-green: #1f9d63;
  --sw-green-tint: #eafaf1;
  --sw-amber: #cf8a3a;
  --sw-amber-tint: #fff7ec;
  --sw-radius: 14px;
  --sw-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
}

body { background: #F6F8FC; }

/* ===================== Page shell ===================== */
.sync-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}
.sync-page.wide { max-width: 1040px; }

/* Back link (sub-flow steps) */
.sync-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--sw-ink-3);
  text-decoration: none; padding: 4px 0; margin-bottom: 14px;
  transition: color .15s;
}
.sync-back:hover { color: var(--sw-blue); }
.sync-back svg { width: 15px; height: 15px; }

/* ===================== Hero ===================== */
.sync-hero { text-align: center; margin-bottom: 26px; }
.sync-hero .eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--sw-blue); margin-bottom: 10px;
}
.sync-hero h1 {
  font-size: 30px; font-weight: 700; letter-spacing: -0.4px; color: var(--sw-ink);
  margin-bottom: 12px;
}
.sync-hero p {
  font-size: 14px; line-height: 1.6; color: var(--sw-ink-2);
  max-width: 600px; margin: 0 auto;
}
.sync-hero p strong { color: var(--sw-ink); font-weight: 600; }

/* Trust line */
.sync-trust {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px auto 0; padding: 7px 14px;
  background: #fff; border: 1px solid var(--sw-line);
  border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--sw-ink-2);
}
.sync-trust svg { width: 14px; height: 14px; color: var(--sw-green); }

/* ===================== Progress summary (hub) ===================== */
.sync-progress {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, #eef5ff 0%, #f7fbff 100%);
  border: 1px solid #dbe8fb; border-radius: var(--sw-radius);
  padding: 18px 22px; margin-bottom: 22px;
}
.sync-progress-ring { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.sync-progress-ring svg { transform: rotate(-90deg); }
.sync-progress-ring .pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--sw-blue);
}
.sync-progress-text .t {
  font-size: 14px; font-weight: 700; color: var(--sw-ink);
}
.sync-progress-text .s {
  font-size: 12.5px; color: var(--sw-ink-2); margin-top: 3px;
}
.sync-progress-count {
  margin-left: auto; text-align: right; padding-left: 18px;
  border-left: 1px solid #dbe8fb;
}
.sync-progress-count .n { font-size: 22px; font-weight: 700; color: var(--sw-ink); }
.sync-progress-count .l { font-size: 11px; font-weight: 600; color: var(--sw-ink-3); text-transform: uppercase; letter-spacing: .4px; }

/* ===================== Source cards (hub) ===================== */
.sync-sources { display: flex; flex-direction: column; gap: 16px; }

.source-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius); padding: 20px 22px;
  box-shadow: var(--sw-shadow); transition: border-color .15s, box-shadow .15s, transform .12s;
}
.source-card:hover { border-color: #cfe0fb; transform: translateY(-1px); }

.source-logo {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f4f7fb; border: 1px solid var(--sw-line-soft);
}
.source-logo img, .source-logo svg { width: 30px; height: 30px; }
.source-logo.li { background: #eaf1fb; }
.source-logo.crm { background: #f3effb; }

.source-body { flex: 1; min-width: 0; }
.source-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.source-title { font-size: 16px; font-weight: 700; color: var(--sw-ink); }
.source-desc { font-size: 12.5px; line-height: 1.5; color: var(--sw-ink-2); margin-top: 5px; max-width: 460px; }

.source-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--sw-ink-3); margin-top: 9px;
}
.source-meta svg { width: 13px; height: 13px; }

.source-cta { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.source-cta .sub { font-size: 11px; color: var(--sw-ink-4); }
.source-cta .sub a { color: var(--sw-blue); font-weight: 600; text-decoration: none; }
.source-cta .sub a:hover { text-decoration: underline; }

/* ===================== Status pill ===================== */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.status-pill.connected { background: var(--sw-green-tint); color: #14794a; }
.status-pill.connected .dot { background: var(--sw-green); }
.status-pill.syncing { background: var(--sw-blue-tint); color: var(--sw-blue-dark); }
.status-pill.syncing .dot { background: var(--sw-blue); animation: pulse 1.4s infinite; }
.status-pill.notconnected { background: #f1f3f6; color: var(--sw-ink-3); }
.status-pill.notconnected .dot { background: var(--sw-ink-4); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ===================== Generic card / panel ===================== */
.sync-card {
  background: #fff; border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius); box-shadow: var(--sw-shadow);
  padding: 26px;
}
.sync-card + .sync-card { margin-top: 16px; }
.sync-card-lead {
  display: flex; align-items: flex-start; gap: 16px;
}
.sync-card-lead .ic {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-blue-tint); color: var(--sw-blue);
}
.sync-card-lead .ic svg { width: 24px; height: 24px; }
.sync-card-title { font-size: 16px; font-weight: 700; color: var(--sw-ink); }
.sync-card-sub { font-size: 13px; line-height: 1.55; color: var(--sw-ink-2); margin-top: 6px; }

/* Route cards (choose a path) */
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.route-card {
  position: relative; text-align: left;
  background: #fff; border: 1.5px solid var(--sw-line);
  border-radius: var(--sw-radius); padding: 22px; cursor: pointer;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .12s; box-shadow: var(--sw-shadow);
}
.route-card:hover { border-color: var(--sw-blue); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(63,132,229,.12); }
.route-card.recommended { border-color: #bcd6fb; }
.route-card .badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  background: var(--sw-blue); color: #fff; padding: 3px 9px; border-radius: 999px;
}
.route-card .ic {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-blue-tint); color: var(--sw-blue);
}
.route-card .ic svg { width: 23px; height: 23px; }
.route-card .t { font-size: 15px; font-weight: 700; color: var(--sw-ink); }
.route-card .d { font-size: 12.5px; line-height: 1.5; color: var(--sw-ink-2); margin-top: 6px; flex: 1; }
.route-card .go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 12.5px; font-weight: 700; color: var(--sw-blue);
}
.route-card .go svg { width: 15px; height: 15px; transition: transform .15s; }
.route-card:hover .go svg { transform: translateX(3px); }

/* Escape-hatch banner */
.sync-hatch {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--sw-amber-tint); border: 1px solid #f1e0c4;
  border-radius: 10px; padding: 13px 18px; margin-top: 18px;
  font-size: 13px; color: #7a5a25; text-align: center;
}
.sync-hatch a { color: var(--sw-blue); font-weight: 700; text-decoration: none; }
.sync-hatch a:hover { text-decoration: underline; }

/* ===================== Step indicator ===================== */
.step-indicator {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 0 auto 26px; max-width: 560px;
}
.step-node { display: flex; align-items: center; gap: 9px; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: #fff; border: 2px solid var(--sw-line); color: var(--sw-ink-4);
}
.step-node.active .step-dot { background: var(--sw-blue); border-color: var(--sw-blue); color: #fff; }
.step-node.done .step-dot { background: var(--sw-green); border-color: var(--sw-green); color: #fff; }
.step-node.done .step-dot svg { width: 13px; height: 13px; }
.step-label { font-size: 12px; font-weight: 600; color: var(--sw-ink-3); white-space: nowrap; }
.step-node.active .step-label { color: var(--sw-ink); }
.step-line { flex: 1; height: 2px; background: var(--sw-line); margin: 0 12px; min-width: 28px; }
.step-line.done { background: var(--sw-green); }

/* ===================== Instruction list ===================== */
.instr-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.instr-list li { display: flex; gap: 14px; }
.instr-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-blue); color: #fff; font-size: 12px; font-weight: 700;
}
.instr-body { font-size: 13px; line-height: 1.55; color: var(--sw-ink-2); padding-top: 2px; }
.instr-body strong { color: var(--sw-ink); font-weight: 600; }
.instr-body a { color: var(--sw-blue); font-weight: 600; text-decoration: none; }
.instr-body a:hover { text-decoration: underline; }

/* Helper image (the "see below" LinkedIn export screenshot mock) */
.helper-frame {
  margin-top: 18px; border: 1px solid var(--sw-line); border-radius: 12px;
  overflow: hidden; background: #fff;
}
.helper-frame-bar {
  display: flex; align-items: center; gap: 7px; padding: 9px 12px;
  background: #f4f6f9; border-bottom: 1px solid var(--sw-line);
}
.helper-frame-bar .dots { display: flex; gap: 5px; }
.helper-frame-bar .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.helper-frame-bar .url {
  flex: 1; text-align: center; font-size: 11px; color: var(--sw-ink-3);
  background: #fff; border-radius: 5px; padding: 3px 8px; border: 1px solid var(--sw-line);
}
.helper-shot {
  display: block; width: 100%; padding: 18px;
  background: repeating-linear-gradient(45deg,#fafbfc,#fafbfc 12px,#f4f6f9 12px,#f4f6f9 24px);
}
.helper-mock {
  background: #fff; border: 1px solid var(--sw-line); border-radius: 8px;
  padding: 16px; display: grid; grid-template-columns: 150px 1fr; gap: 16px;
}
.helper-mock .nav { display: flex; flex-direction: column; gap: 7px; }
.helper-mock .nav span { height: 9px; border-radius: 3px; background: #eef1f5; }
.helper-mock .nav span.hot { background: #cfe0fb; }
.helper-mock .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; align-content: start; }
.helper-mock .grid label { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--sw-ink-3); }
.helper-mock .grid label i { width: 11px; height: 11px; border: 1.5px solid #c7cdd5; border-radius: 3px; display: block; }
.helper-mock .grid label.on i { background: var(--sw-blue); border-color: var(--sw-blue); }
.helper-mock .cta { grid-column: 1 / -1; margin-top: 6px; }
.helper-mock .cta span { display: inline-block; height: 22px; width: 110px; border-radius: 5px; background: var(--sw-blue); }
.helper-caption { text-align: center; font-size: 12px; font-style: italic; color: var(--sw-ink-3); margin-bottom: 12px; }

/* ===================== Upload dropzone ===================== */
.dropzone {
  border: 2px dashed #c7d3e3; border-radius: 12px;
  background: #fafcff; padding: 38px 24px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--sw-blue); background: var(--sw-blue-tint); }
.dropzone .dz-ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-blue-tint); color: var(--sw-blue);
}
.dropzone .dz-ic svg { width: 26px; height: 26px; }
.dropzone .dz-title { font-size: 14px; font-weight: 700; color: var(--sw-ink); }
.dropzone .dz-title b { color: var(--sw-blue); }
.dropzone .dz-sub { font-size: 12px; color: var(--sw-ink-3); margin-top: 5px; }

/* Chosen-file row */
.file-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--sw-line); border-radius: 12px; padding: 16px 18px;
  background: #fff;
}
.file-row .fic {
  width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-green-tint); color: var(--sw-green);
}
.file-row .fic svg { width: 22px; height: 22px; }
.file-row .fmeta { flex: 1; min-width: 0; }
.file-row .fname { font-size: 13.5px; font-weight: 600; color: var(--sw-ink); }
.file-row .fsize { font-size: 11.5px; color: var(--sw-ink-3); margin-top: 2px; }
.file-row .fx {
  border: none; background: #f1f3f6; color: var(--sw-ink-3);
  width: 28px; height: 28px; border-radius: 7px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.file-row .fx:hover { background: #e6e9ee; color: var(--sw-ink); }
.file-row .fx svg { width: 15px; height: 15px; }

/* Upload progress bar */
.upload-bar { height: 7px; border-radius: 4px; background: #eef1f5; overflow: hidden; margin-top: 14px; }
.upload-bar > span { display: block; height: 100%; background: var(--sw-blue); border-radius: 4px; width: 0; transition: width .25s ease; }

/* ===================== CSV mapping table ===================== */
.map-table-wrap { border: 1px solid var(--sw-line); border-radius: 12px; overflow: hidden; }
.map-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.map-table thead th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--sw-ink-3);
  background: #f7f9fc; padding: 11px 16px; border-bottom: 1px solid var(--sw-line);
}
.map-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--sw-line-soft); vertical-align: middle; }
.map-table tbody tr:last-child td { border-bottom: none; }
.map-field { font-weight: 700; color: var(--sw-ink); display: flex; align-items: center; gap: 7px; }
.map-field .req { color: #d24b4b; font-weight: 700; }
.map-field .opt { font-size: 10px; font-weight: 600; color: var(--sw-ink-4); text-transform: uppercase; letter-spacing: .3px; }
.map-arrow { color: var(--sw-ink-4); }
.map-arrow svg { width: 16px; height: 16px; }
.map-sample { color: var(--sw-ink-3); font-size: 12px; }
.map-sample .chip {
  display: inline-block; background: #f1f5fb; color: var(--sw-ink-2);
  border-radius: 5px; padding: 2px 8px; font-size: 11.5px; font-weight: 500;
}
.map-status svg { width: 17px; height: 17px; color: var(--sw-green); }
.map-status.unmapped svg { color: var(--sw-ink-4); }

.map-select {
  width: 100%; font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--sw-ink); background: #fff; border: 1px solid #d3dae3; border-radius: 8px;
  padding: 8px 30px 8px 11px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377797B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.map-select:focus { outline: none; border-color: var(--sw-blue); box-shadow: 0 0 0 3px var(--sw-blue-tint); }
.map-select.unmapped { color: var(--sw-ink-4); border-style: dashed; }

/* Preview rows (sample of imported data) */
.preview-table-wrap { border: 1px solid var(--sw-line); border-radius: 12px; overflow: auto; margin-top: 8px; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.preview-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--sw-blue); background: #f4f8fe; padding: 10px 14px; border-bottom: 1px solid var(--sw-line); white-space: nowrap;
}
.preview-table td { padding: 11px 14px; border-bottom: 1px solid var(--sw-line-soft); color: var(--sw-ink-2); white-space: nowrap; }
.preview-table tbody tr:last-child td { border-bottom: none; }
.preview-table .pname { font-weight: 600; color: var(--sw-ink); }

/* ===================== Avatars (success preview) ===================== */
.sync-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}

/* ===================== Success state ===================== */
.success-wrap { text-align: center; padding: 8px 0; }
.success-burst {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-green-tint); color: var(--sw-green);
  box-shadow: 0 0 0 10px rgba(31,157,99,.08);
  animation: pop .4s cubic-bezier(.2,.9,.3,1.3);
}
.success-burst svg { width: 42px; height: 42px; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-wrap h1 { font-size: 26px; font-weight: 700; color: var(--sw-ink); margin-bottom: 10px; }
.success-wrap .lede { font-size: 14px; line-height: 1.6; color: var(--sw-ink-2); max-width: 480px; margin: 0 auto 24px; }
.success-wrap .lede strong { color: var(--sw-ink); }

.success-stats { display: flex; gap: 14px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.success-stat {
  background: #fff; border: 1px solid var(--sw-line); border-radius: 12px;
  padding: 16px 24px; min-width: 130px; box-shadow: var(--sw-shadow);
}
.success-stat .n { font-size: 26px; font-weight: 700; color: var(--sw-blue); }
.success-stat .l { font-size: 11.5px; font-weight: 600; color: var(--sw-ink-3); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Preview list of imported contacts */
.import-preview {
  background: #fff; border: 1px solid var(--sw-line); border-radius: 12px;
  margin: 0 auto 26px; max-width: 460px; text-align: left; overflow: hidden;
}
.import-preview .ip-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--sw-line-soft);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--sw-ink-3);
}
.import-preview .ip-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-bottom: 1px solid var(--sw-line-soft);
}
.import-preview .ip-row:last-child { border-bottom: none; }
.import-preview .ip-meta { flex: 1; min-width: 0; }
.import-preview .ip-name { font-size: 13px; font-weight: 600; color: var(--sw-ink); }
.import-preview .ip-sub { font-size: 11.5px; color: var(--sw-ink-3); margin-top: 1px; }
.import-preview .ip-more { padding: 11px 18px; text-align: center; font-size: 12px; color: var(--sw-ink-3); background: #fafbfc; }

/* In-progress / syncing card */
.sync-inprogress { display: flex; align-items: center; gap: 16px; }
.spinner {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid var(--sw-blue-tint); border-top-color: var(--sw-blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== Buttons (local additions) ===================== */
/* Anchors styled as buttons must not inherit the default link underline. */
a.btn, a.btn:hover { text-decoration: none; }
.btn-lg { font-size: 13px; padding: 11px 26px; }
.btn-block { width: 100%; justify-content: center; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px;
  background: #fff; color: #3c4043; border: 1px solid #dadce0; border-radius: 8px;
  padding: 12px 22px; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.btn-google:hover { background: #f8faff; box-shadow: 0 1px 4px rgba(60,64,67,.15); }
.btn-google svg { width: 19px; height: 19px; }
.btn-disabled { opacity: .5; pointer-events: none; }

/* ===================== Inline OAuth scope list ===================== */
.scope-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.scope-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--sw-ink-2); line-height: 1.5; }
.scope-list .sc-ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-blue-tint); color: var(--sw-blue);
}
.scope-list .sc-ic svg { width: 16px; height: 16px; }
.scope-list strong { display: block; color: var(--sw-ink); font-weight: 600; font-size: 13px; margin-bottom: 2px; }

/* ===================== Toast ===================== */
.sync-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
  display: flex; align-items: center; gap: 11px;
  background: #1e2430; color: #fff; padding: 13px 18px; border-radius: 11px;
  box-shadow: 0 12px 32px rgba(16,24,40,.28); font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1200;
}
.sync-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sync-toast .check {
  width: 22px; height: 22px; border-radius: 50%; background: var(--sw-green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sync-toast .check svg { width: 13px; height: 13px; }

/* ===================== Misc ===================== */
.is-hidden { display: none !important; }
.divider { height: 1px; background: var(--sw-line-soft); margin: 22px 0; }
.card-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; align-items: center; }
.card-actions.center { justify-content: center; }
.card-actions .grow { margin-right: auto; }
.muted { color: var(--sw-ink-3); font-size: 12px; }
.muted a { color: var(--sw-blue); font-weight: 600; text-decoration: none; }

/* ===================== Responsive ===================== */
@media (max-width: 720px) {
  .source-card { flex-wrap: wrap; }
  .source-cta { width: 100%; align-items: stretch; }
  .source-cta .btn { width: 100%; }
  .route-grid { grid-template-columns: 1fr; }
  .sync-progress { flex-wrap: wrap; }
  .sync-progress-count { margin-left: 0; border-left: none; padding-left: 0; }
  .step-label { display: none; }
}
