:root {
  --sync-bg: #f5f3fb;
  --sync-paper: #fffdfc;
  --sync-ink: #29253d;
  --sync-muted: #716d85;
  --sync-line: #e5e2ef;
  --sync-primary: #7185be;
  --sync-primary-deep: #536aa9;
  --sync-lavender: #ebeafb;
  --sync-lavender-strong: #dfe2f7;
  --sync-pink: #d77fa9;
  --sync-orange: #e89562;
  --sync-green: #6e9d7b;
  --sync-green-bg: #e7f1e8;
  --sync-yellow: #b78330;
  --sync-yellow-bg: #fff4dc;
  --sync-red: #c76578;
  --sync-shadow: 0 26px 70px -42px #443c6c52;
  --sync-shadow-soft: 0 16px 40px -28px #443c6c3d;
  --sync-radius: 25px;
  --sync-radius-sm: 17px;
  --sync-motion: 220ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--sync-ink);
  background:
    radial-gradient(circle at 3% 0%, #fce5ed 0, transparent 30rem),
    radial-gradient(circle at 98% 18%, #e4eafa 0, transparent 33rem),
    var(--sync-bg);
  font: 15px/1.55 "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #536aa9; outline-offset: 3px; }
.sync-skip { position: fixed; z-index: 20; top: 8px; left: 10px; padding: 9px 13px; border-radius: 12px; color: #fff; background: var(--sync-primary-deep); transform: translateY(-160%); transition: transform var(--sync-motion) ease; }
.sync-skip:focus { transform: none; }

.sync-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1250px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 28px 14px;
  border-bottom: 1px solid #fff8;
  background: #f5f3fbd9;
  backdrop-filter: blur(18px);
}
.sync-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.sync-brand img { width: 38px; height: 38px; border-radius: 13px; box-shadow: 0 7px 17px -11px #536aa9b3; }
.sync-brand b { display: block; font-size: 19px; letter-spacing: -.55px; line-height: 1.05; }
.sync-brand b span { color: var(--sync-primary-deep); }
.sync-brand small { display: block; margin-top: 2px; color: var(--sync-muted); font-size: 9px; font-weight: 850; letter-spacing: 1.9px; }
.sync-nav { display: flex; align-items: center; gap: 5px; }
.sync-nav a, .sync-nav button { display: inline-flex; align-items: center; min-height: 43px; padding: 8px 12px; border: 1px solid transparent; border-radius: 13px; color: var(--sync-muted); font-size: 12px; font-weight: 750; text-decoration: none; transition: background var(--sync-motion) ease, color var(--sync-motion) ease, border-color var(--sync-motion) ease, transform var(--sync-motion) ease; }
.sync-nav a:hover, .sync-nav a:focus-visible { color: var(--sync-primary-deep); background: #fff9; border-color: #fff; }
.sync-nav .sync-nav-primary { color: #fff; background: var(--sync-primary-deep); box-shadow: 0 10px 22px -17px #536aa9; }
.sync-nav .sync-nav-primary:hover, .sync-nav .sync-nav-primary:focus-visible { color: #fff; background: #435994; transform: translateY(-1px); }
.sync-install-button { display: none; }
.sync-install-button:not([hidden]) { display: inline-flex; border-color: #d7d3e4; color: var(--sync-primary-deep); background: #fff; }
.sync-menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--sync-line); border-radius: 14px; background: #ffffffaa; }
.sync-menu-button span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 3px; background: var(--sync-primary-deep); transition: transform var(--sync-motion) ease, opacity var(--sync-motion) ease; }

.sync-shell { max-width: 1190px; margin: 0 auto; padding: 48px 30px 65px; }
.sync-reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms cubic-bezier(.2,.8,.2,1), transform 500ms cubic-bezier(.2,.8,.2,1); }
.sync-reveal.is-visible { opacity: 1; transform: none; }
.sync-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--sync-primary-deep); font-size: 10px; font-weight: 850; letter-spacing: 1.8px; line-height: 1.3; }
.sync-live-dot, .sync-status-pill i, .sync-status-indicator i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sync-green); box-shadow: 0 0 0 4px #6e9d7b1f; }
.sync-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 70px; align-items: center; min-height: 445px; }
.sync-hero h1 { max-width: 720px; margin: 18px 0 17px; font-size: clamp(36px, 5.2vw, 68px); font-weight: 770; letter-spacing: -3px; line-height: 1.03; }
.sync-lede { max-width: 650px; margin: 0; color: var(--sync-muted); font-size: 16px; line-height: 1.72; }
.sync-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.sync-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 15px; font-weight: 800; font-size: 13px; text-decoration: none; transition: transform var(--sync-motion) ease, box-shadow var(--sync-motion) ease, background var(--sync-motion) ease, border-color var(--sync-motion) ease; }
.sync-button:hover, .sync-button:focus-visible { transform: translateY(-2px); }
.sync-button:active { transform: translateY(0); }
.sync-button .sync-icon { width: 18px; height: 18px; }
.sync-button-primary { color: #fff; background: linear-gradient(135deg, var(--sync-primary-deep), #7d8fca); box-shadow: 0 15px 27px -19px #536aa9; }
.sync-button-primary:hover, .sync-button-primary:focus-visible { background: #435994; box-shadow: 0 18px 32px -18px #536aa9; }
.sync-button-secondary { color: var(--sync-primary-deep); border-color: #d5d8ed; background: #f7f8ff; }
.sync-button-secondary:hover, .sync-button-secondary:focus-visible { border-color: #aab6e1; background: #eef0ff; }
.sync-button-quiet { color: var(--sync-primary-deep); border-color: #dfe0eb; background: #ffffffaa; }
.sync-button-quiet:hover, .sync-button-quiet:focus-visible { border-color: #c5cae6; background: #fff; }
.sync-button-wide { width: 100%; }
.sync-microcopy { display: flex; align-items: center; gap: 6px; margin-top: 15px; color: var(--sync-muted); font-size: 11px; }
.sync-microcopy .sync-icon { width: 15px; height: 15px; color: var(--sync-green); }

.sync-hero-card { position: relative; min-height: 400px; padding: 24px; overflow: hidden; border: 1px solid #fff; border-radius: 31px; background: linear-gradient(155deg, #fefeffe6, #eef0fbce); box-shadow: var(--sync-shadow); }
.sync-hero-card::before { content: ""; position: absolute; width: 280px; height: 280px; right: -93px; top: -110px; border-radius: 50%; background: #ffe0eb80; }
.sync-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sync-card-kicker { color: var(--sync-muted); font-size: 10px; font-weight: 850; letter-spacing: 1.4px; }
.sync-status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.sync-status-pill.pending { color: #78561f; background: var(--sync-yellow-bg); }
.sync-status-pill.pending i { background: #c9943d; box-shadow: 0 0 0 4px #c9943d1e; }
.sync-orbit { position: relative; width: min(290px, 76vw); height: 280px; margin: 8px auto -6px; }
.sync-orbit-ring { position: absolute; left: 50%; top: 50%; border: 1px solid #aab4da80; border-radius: 50%; transform: translate(-50%, -50%); }
.sync-orbit-ring::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--sync-primary); box-shadow: 0 0 0 5px #7185be1e; }
.ring-one { width: 166px; height: 166px; transform: translate(-50%, -50%) rotate(-30deg); }
.ring-one::after { top: -4px; left: 50%; }
.ring-two { width: 238px; height: 238px; border-color: #d5a2b98a; transform: translate(-50%, -50%) rotate(32deg); }
.ring-two::after { right: 12px; bottom: 26px; background: var(--sync-pink); box-shadow: 0 0 0 5px #d77fa91e; }
.sync-orbit-core { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; height: 110px; border: 1px solid #fff; border-radius: 32px; background: #ffffffd9; box-shadow: 0 18px 38px -26px #536aa9; transform: translate(-50%, -50%); }
.sync-orbit-core img { width: 46px; height: 46px; border-radius: 15px; }
.sync-orbit-core span { margin-top: 5px; color: var(--sync-primary-deep); font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.sync-orbit-node { position: absolute; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #fff; border-radius: 15px; background: #fff; box-shadow: var(--sync-shadow-soft); }
.sync-orbit-node .sync-icon { width: 22px; height: 22px; }
.node-watch { top: 11%; left: 5%; color: #7c68ae; }
.node-health { right: 0; top: 40%; color: var(--sync-red); }
.node-app { bottom: 5%; left: 15%; color: var(--sync-green); }
.sync-hero-card-bottom { position: relative; z-index: 1; padding: 17px 15px 0; border-top: 1px solid #fff; }
.sync-hero-card-bottom strong { display: block; font-size: 15px; }
.sync-hero-card-bottom small { display: block; margin-top: 5px; color: var(--sync-muted); font-size: 12px; line-height: 1.6; }

.sync-section { margin-top: 70px; }
.sync-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.sync-section-heading h2, .sync-panel h2, .sync-bridge h2 { margin: 8px 0 0; font-size: clamp(24px, 3.1vw, 34px); font-weight: 760; letter-spacing: -1.15px; line-height: 1.15; }
.sync-section-note { padding: 7px 10px; border: 1px solid var(--sync-line); border-radius: 999px; color: var(--sync-muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.sync-flow { display: flex; align-items: stretch; gap: 10px; padding: 17px; border: 1px solid #fff; border-radius: var(--sync-radius); background: #ffffffb5; box-shadow: var(--sync-shadow-soft); }
.sync-flow-node { position: relative; display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; padding: 15px 12px 12px; border: 1px solid var(--sync-line); border-radius: var(--sync-radius-sm); background: #fff; transition: transform var(--sync-motion) ease, border-color var(--sync-motion) ease, box-shadow var(--sync-motion) ease; }
.sync-flow-node:hover { border-color: #c7cce6; box-shadow: 0 15px 25px -23px #536aa9; transform: translateY(-2px); }
.sync-node-icon, .sync-panel-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 15px; }
.sync-node-icon .sync-icon, .sync-panel-icon .sync-icon { width: 22px; height: 22px; }
.sync-node-icon.violet { color: #7766a8; background: #f0ecff; }
.sync-node-icon.orange { color: #b86737; background: #fff0df; }
.sync-node-icon.red { color: #ba5a6f; background: #ffe8ee; }
.sync-node-icon.blue { color: #536aa9; background: #eaf0ff; }
.sync-node-icon.green { color: #548361; background: #e9f4ea; }
.sync-flow-node strong { display: block; margin-top: 12px; font-size: 14px; line-height: 1.25; }
.sync-flow-node span { display: block; margin-top: 4px; color: var(--sync-muted); font-size: 11px; line-height: 1.4; }
.sync-node-tag { align-self: flex-start; margin-top: 14px; padding: 5px 7px; border-radius: 8px; color: var(--sync-primary-deep); background: var(--sync-lavender); font-size: 8px; letter-spacing: 1px; }
.sync-flow-line { align-self: center; position: relative; flex: 0 0 17px; height: 1px; background: #b9bfdc; }
.sync-flow-line::after { content: ""; position: absolute; right: -1px; top: -3px; width: 6px; height: 6px; border-top: 1px solid #8f9ac6; border-right: 1px solid #8f9ac6; transform: rotate(45deg); }
.sync-callout { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 15px 17px; border: 1px solid #e4d9e8; border-radius: 17px; background: #fff7fb; color: #67576d; }
.sync-callout-icon { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 9px; color: var(--sync-pink); background: #ffe3ee; }
.sync-callout-icon .sync-icon { width: 17px; height: 17px; }
.sync-callout p { margin: 0; font-size: 12px; line-height: 1.65; }
.sync-callout strong { color: var(--sync-ink); }

.sync-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.sync-panel { min-width: 0; padding: 23px; border: 1px solid #fff; border-radius: var(--sync-radius); background: #fffdfcf2; box-shadow: var(--sync-shadow-soft); }
.sync-panel-heading { display: flex; align-items: flex-start; gap: 12px; }
.sync-panel-heading h2 { font-size: 24px; }
.sync-panel-icon { flex: 0 0 46px; width: 46px; height: 46px; color: var(--sync-primary-deep); background: var(--sync-lavender); }
.sync-panel-icon.pink { color: #ad557e; background: #ffe8f1; }
.sync-panel-icon.gold { color: #a7752b; background: #fff2d4; }
.sync-panel-icon.green { color: #548361; background: #e6f2e8; }
.sync-panel p { color: var(--sync-muted); font-size: 13px; line-height: 1.65; }
.sync-status-main { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 15px; border-radius: 17px; background: var(--sync-yellow-bg); }
.sync-status-indicator { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 10px; background: #ffe7b5; }
.sync-status-indicator i { background: #c9943d; box-shadow: none; }
.sync-status-main strong { display: block; font-size: 14px; color: #6b4e1e; }
.sync-status-main p { margin: 5px 0 0; color: #7d6439; font-size: 12px; line-height: 1.6; }
.sync-status-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 14px 0 18px; }
.sync-status-metrics > div { padding: 11px; border: 1px solid var(--sync-line); border-radius: 13px; background: #fff; }
.sync-status-metrics span { display: block; color: var(--sync-muted); font-size: 10px; }
.sync-status-metrics b { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .7px; }
.sync-status-metrics .ok { color: var(--sync-green); }
.sync-status-metrics .pending-text { color: var(--sync-yellow); }
.sync-panel-status .sync-button { width: 100%; }
.sync-footnote { margin: 12px 0 0; color: var(--sync-muted); font-size: 11px !important; line-height: 1.55 !important; }
.sync-device-list { display: grid; gap: 10px; margin: 19px 0; }
.sync-device-list > div { display: flex; gap: 11px; align-items: flex-start; padding: 12px; border: 1px solid var(--sync-line); border-radius: 14px; background: #fff; }
.sync-device-list > div > .sync-icon { flex: 0 0 20px; margin-top: 1px; color: var(--sync-primary-deep); }
.sync-device-list b { display: block; font-size: 13px; }
.sync-device-list small { display: block; margin-top: 3px; color: var(--sync-muted); font-size: 11px; line-height: 1.5; }
.sync-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 7px 3px; color: var(--sync-primary-deep); font-size: 12px; font-weight: 800; text-decoration: none; }
.sync-text-button:hover { color: #3e5593; text-decoration: underline; text-underline-offset: 4px; }
.sync-text-button .sync-icon { width: 16px; height: 16px; }
.sync-panel-install .sync-text-button { margin: 8px auto 0; width: 100%; }

.sync-inline-link { display: inline-flex; align-items: center; gap: 5px; color: var(--sync-primary-deep); font-size: 12px; font-weight: 800; text-decoration: none; }
.sync-inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sync-inline-link .sync-icon { width: 15px; height: 15px; }
.sync-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sync-health-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 11px; align-items: center; min-width: 0; padding: 16px; border: 1px solid #fff; border-radius: 19px; background: #fffdfd; box-shadow: var(--sync-shadow-soft); transition: transform var(--sync-motion) ease, box-shadow var(--sync-motion) ease; }
.sync-health-card:hover { transform: translateY(-2px); box-shadow: 0 18px 31px -25px #443c6c69; }
.sync-health-icon { display: grid; place-items: center; grid-row: 1 / span 2; width: 39px; height: 39px; border-radius: 13px; }
.sync-health-icon .sync-icon { width: 19px; height: 19px; }
.sync-health-icon.rose { color: #bc5f74; background: #ffe7ee; }
.sync-health-icon.orange { color: #b96e38; background: #fff0df; }
.sync-health-icon.blue { color: #5571b3; background: #ebf0ff; }
.sync-health-icon.violet { color: #7766a8; background: #f0ecff; }
.sync-health-icon.indigo { color: #6372a8; background: #e8ebfb; }
.sync-health-icon.teal { color: #488d86; background: #e3f5f0; }
.sync-health-card strong { min-width: 0; overflow: hidden; color: var(--sync-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sync-health-card span { display: block; margin-top: 2px; color: var(--sync-muted); font-size: 10px; }
.sync-health-card > b { color: var(--sync-primary-deep); font-size: 22px; font-weight: 500; }
.sync-health-card > small { grid-column: 2 / span 2; margin-top: 9px; color: var(--sync-yellow); font-size: 10px; }
.sync-health-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 15px 17px; border: 1px solid #dfe4f3; border-radius: 16px; background: #f3f6ff; }
.sync-health-note > .sync-icon { flex: 0 0 20px; margin-top: 2px; color: var(--sync-primary-deep); }
.sync-health-note p { flex: 1; margin: 0; color: #626b87; font-size: 12px; line-height: 1.6; }
.sync-health-note strong { color: var(--sync-ink); }
.sync-health-note a { display: inline-flex; align-items: center; gap: 4px; color: var(--sync-primary-deep); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.sync-health-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sync-health-note a .sync-icon { width: 14px; height: 14px; }

.schedule-panel, .boundary-panel { margin-top: 0; }
.schedule-panel > p, .boundary-panel > p { margin: 17px 0 14px; }
.sync-reset-pill { align-self: center; margin-left: auto; padding: 6px 8px; border-radius: 8px; color: var(--sync-yellow); background: var(--sync-yellow-bg); font-size: 9px; font-weight: 850; white-space: nowrap; }
.schedule-list { display: grid; gap: 7px; }
.schedule-list label { display: grid; grid-template-columns: 22px 45px 25px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 55px; padding: 8px 10px; border: 1px solid var(--sync-line); border-radius: 14px; background: #fff; cursor: pointer; transition: background var(--sync-motion) ease, border-color var(--sync-motion) ease, transform var(--sync-motion) ease; }
.schedule-list label:hover { border-color: #cfd3e8; background: #fbfbff; transform: translateX(2px); }
.schedule-list label.is-done { border-color: #cce3d0; background: #f0f7f0; }
.schedule-list input { width: 18px; height: 18px; margin: 0; accent-color: var(--sync-green); }
.schedule-time { color: var(--sync-primary-deep); font-size: 12px; font-weight: 850; }
.schedule-icon { display: grid; place-items: center; width: 24px; height: 24px; color: var(--sync-orange); }
.schedule-icon .sync-icon { width: 19px; height: 19px; }
.schedule-list b { display: block; font-size: 12px; line-height: 1.25; }
.schedule-list small { display: block; margin-top: 2px; color: var(--sync-muted); font-size: 10px; }
.schedule-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.schedule-actions .sync-button { min-height: 43px; padding: 9px 12px; }
.schedule-actions .sync-text-button { min-height: 43px; }
.boundary-item { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--sync-line); }
.boundary-item:last-of-type { border-bottom: 0; }
.boundary-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; }
.boundary-icon.blue { color: #5571b3; background: #eaf0ff; }
.boundary-icon.rose { color: #bd5d75; background: #ffe7ee; }
.boundary-icon .sync-icon { width: 20px; height: 20px; }
.boundary-item strong { display: block; font-size: 13px; }
.boundary-item p { margin: 4px 0 7px; font-size: 12px; line-height: 1.6; }
.boundary-item a { display: inline-flex; align-items: center; gap: 4px; color: var(--sync-primary-deep); font-size: 11px; font-weight: 800; text-decoration: none; }
.boundary-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.boundary-item a .sync-icon { width: 14px; height: 14px; }
.boundary-safe { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 11px 12px; border-radius: 12px; color: #706045; background: #fff5df; font-size: 10px; line-height: 1.5; }
.boundary-safe .sync-icon { flex: 0 0 16px; width: 16px; height: 16px; }

.sync-bridge { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 17px; align-items: center; margin-top: 28px; padding: 24px; border: 1px solid #fff; border-radius: var(--sync-radius); background: linear-gradient(120deg, #eff1ff, #fff9fc); box-shadow: var(--sync-shadow-soft); }
.sync-bridge-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: var(--sync-primary-deep); background: #fff; box-shadow: 0 14px 25px -21px #536aa9; }
.sync-bridge-mark .sync-icon { width: 28px; height: 28px; }
.sync-bridge h2 { margin-top: 6px; font-size: 23px; }
.sync-bridge p { max-width: 730px; margin: 7px 0 0; color: var(--sync-muted); font-size: 12px; line-height: 1.65; }
.sync-bridge-actions { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 160px; }
.sync-bridge-actions .sync-text-button { min-height: 38px; }
.sync-footer { display: flex; justify-content: space-between; gap: 15px; max-width: 1190px; margin: 0 auto; padding: 21px 30px max(26px, env(safe-area-inset-bottom)); border-top: 1px solid #dedbea; color: var(--sync-muted); font-size: 11px; }
.sync-footer a { color: var(--sync-primary-deep); font-weight: 800; text-decoration: none; }
.sync-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sync-toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; max-width: min(370px, calc(100vw - 32px)); padding: 13px 16px; border: 1px solid #fff; border-radius: 14px; color: #fff; background: #35314a; box-shadow: 0 18px 36px -24px #201d2e; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity var(--sync-motion) ease, transform var(--sync-motion) ease; font-size: 12px; }
.sync-toast.show { opacity: 1; transform: none; }
.sync-dialog { width: min(500px, calc(100vw - 30px)); padding: 28px; border: 1px solid #fff; border-radius: 24px; color: var(--sync-ink); background: #fffdfd; box-shadow: 0 35px 90px -32px #201d2e80; }
.sync-dialog::backdrop { background: #28243b70; backdrop-filter: blur(8px); }
.sync-dialog:not([open]) { display: none; }
.sync-dialog-close { position: absolute; top: 13px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--sync-line); border-radius: 12px; color: var(--sync-muted); background: #fff; font-size: 24px; line-height: 1; }
.sync-dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--sync-primary-deep); background: var(--sync-lavender); }
.sync-dialog-icon .sync-icon { width: 25px; height: 25px; }
.sync-dialog h2 { margin: 16px 0 9px; font-size: 26px; letter-spacing: -.7px; }
.sync-dialog p { margin: 0; color: var(--sync-muted); font-size: 13px; line-height: 1.65; }
.sync-dialog ol { margin: 13px 0 0; padding-left: 21px; color: var(--sync-muted); font-size: 13px; line-height: 1.7; }
.sync-dialog-actions { display: flex; gap: 8px; margin-top: 20px; }
.sync-dialog-actions .sync-button { flex: 1; }

@media (max-width: 940px) {
  .sync-topbar { padding-left: 20px; padding-right: 20px; }
  .sync-shell { padding-top: 35px; }
  .sync-hero { gap: 35px; }
  .sync-flow { gap: 6px; padding: 12px; }
  .sync-flow-line { flex-basis: 10px; }
  .sync-flow-node { padding-left: 9px; padding-right: 9px; }
  .sync-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sync-topbar { flex-wrap: wrap; gap: 10px; }
  .sync-menu-button { display: block; margin-left: auto; }
  .sync-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 2px; }
  .sync-nav.is-open { display: flex; }
  .sync-nav a, .sync-nav button { justify-content: flex-start; width: 100%; }
  .sync-nav .sync-nav-primary { justify-content: center; }
  .sync-shell { padding: 30px 18px 50px; }
  .sync-hero { grid-template-columns: 1fr; gap: 26px; min-height: auto; }
  .sync-hero h1 { margin-top: 13px; font-size: clamp(34px, 10vw, 52px); letter-spacing: -2.1px; }
  .sync-lede { font-size: 14px; }
  .sync-hero-card { min-height: 365px; }
  .sync-section { margin-top: 52px; }
  .sync-section-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .sync-section-note { align-self: flex-start; }
  .sync-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .sync-flow-line { display: none; }
  .sync-flow-node:last-child { grid-column: 1 / span 2; }
  .sync-flow-node:last-child { flex-direction: row; align-items: center; gap: 10px; }
  .sync-flow-node:last-child strong { margin-top: 0; }
  .sync-flow-node:last-child span { margin-top: 2px; }
  .sync-flow-node:last-child .sync-node-tag { margin: 0 0 0 auto; }
  .sync-grid { grid-template-columns: 1fr; }
  .sync-health-note { flex-wrap: wrap; }
  .sync-health-note a { margin-left: 30px; }
  .sync-bridge { grid-template-columns: auto minmax(0, 1fr); }
  .sync-bridge-actions { grid-column: 1 / span 2; flex-direction: row; }
  .sync-bridge-actions .sync-button, .sync-bridge-actions .sync-text-button { flex: 1; }
  .sync-footer { flex-direction: column; padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 450px) {
  .sync-topbar { padding-left: 13px; padding-right: 13px; }
  .sync-shell { padding-left: 13px; padding-right: 13px; }
  .sync-hero-actions { flex-direction: column; align-items: stretch; }
  .sync-hero-actions .sync-button { width: 100%; }
  .sync-hero-card { padding: 18px; border-radius: 24px; }
  .sync-orbit { width: 270px; }
  .sync-panel { padding: 18px; }
  .sync-status-metrics { grid-template-columns: 1fr; }
  .sync-health-grid { grid-template-columns: 1fr; }
  .sync-health-card > b { font-size: 21px; }
  .sync-health-note a { margin-left: 29px; }
  .schedule-actions { align-items: stretch; flex-direction: column; }
  .schedule-actions .sync-button, .schedule-actions .sync-text-button { width: 100%; }
  .sync-bridge { padding: 18px; }
  .sync-bridge-actions { align-items: stretch; flex-direction: column; }
  .sync-bridge-actions .sync-button, .sync-bridge-actions .sync-text-button { width: 100%; }
  .sync-dialog { padding: 23px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sync-reveal { opacity: 1; transform: none; }
}
