/* 大锤同步 · 100% 现行新大锤官网设计语言（纯白 + 48px 珠光微网格 + 钴蓝 #2350dc + 曜石黑 + 深色星夜模式 · 零 Emoji） */

:root {
  --sync-bg: #ffffff;
  --sync-surface: #ffffff;
  --sync-tint: #f5f7fb;
  --sync-stage: #f3f5f9;
  --sync-ink: #0f172a;
  --sync-ink-2: #475569;
  --sync-muted: #64748b;
  --sync-faint: #94a3b8;
  --sync-rule: rgba(15, 23, 42, 0.08);
  --sync-rule-strong: rgba(15, 23, 42, 0.14);
  --cobalt: #2350dc;
  --cobalt-hover: #1a3fb8;
  --cobalt-soft: #eef3ff;
  --obsidian: #111827;
  --obsidian-hover: #1f2937;
  --ok-green: #0f766e;
  --ok-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --sync-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 34px -16px rgba(15, 23, 42, 0.09);
  --sync-grid-line: rgba(15, 23, 42, 0.032);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --sync-bg: #0b0f19;
  --sync-surface: #111827;
  --sync-tint: #161f32;
  --sync-stage: #0f172a;
  --sync-ink: #f1f5f9;
  --sync-ink-2: #cbd5e1;
  --sync-muted: #94a3b8;
  --sync-faint: #64748b;
  --sync-rule: rgba(148, 163, 184, 0.14);
  --sync-rule-strong: rgba(148, 163, 184, 0.24);
  --cobalt: #5c8aff;
  --cobalt-hover: #7aa0ff;
  --cobalt-soft: rgba(92, 138, 255, 0.15);
  --obsidian: #f8fafc;
  --obsidian-hover: #e2e8f0;
  --ok-green: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --sync-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 16px 36px -14px rgba(0, 0, 0, 0.5);
  --sync-grid-line: rgba(148, 163, 184, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }

body.sync-page {
  margin: 0;
  background: var(--sync-bg);
  color: var(--sync-ink);
  font-family: "XinHammer Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sync-page .wrap {
  width: min(74rem, calc(100% - 2.25rem));
  margin-inline: auto;
}

/* ---------- 60px 磨砂顶栏 ---------- */
.sync-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sync-rule);
}

html[data-theme="dark"] .sync-header-wrap {
  background: rgba(11, 15, 25, 0.86);
}

.site-header.studio-nav.sync-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  border-bottom: 0;
  padding-block: 6px;
}

.sync-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-width: 0;
}

.site-header.studio-nav.sync-header .sync-brand-group .identity {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
}

.sync-brand-group .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex: none;
}

.sync-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}

.site-header.studio-nav.sync-header .sync-brand-text .wordmark {
  font-family: "XinHammer Logo EN", var(--sans);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.03em;
  color: var(--cobalt);
  line-height: 1.05;
}

.site-header.studio-nav.sync-header .sync-brand-text .brand-name {
  padding-left: 0;
  border-left: 0;
  font-family: "XinHammer Logo CN", var(--sans);
  font-size: 1.06rem;
  font-weight: 840;
  letter-spacing: 0.015em;
  color: var(--sync-ink);
  white-space: nowrap;
}

.sync-back-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sync-muted);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--sync-rule-strong);
  transition: color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}

.sync-back-link:hover {
  color: var(--cobalt);
  border-color: var(--cobalt);
}

.sync-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sync-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-ink);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease;
}

.sync-live-pill:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.sync-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sync-faint);
  flex: none;
}

.sync-live-dot.is-online {
  background: var(--ok-green);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.sync-live-dot.is-connecting {
  background: var(--warn);
}

.sync-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-ink-2);
  flex: none;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.sync-icon-btn:hover {
  color: var(--cobalt);
  border-color: var(--cobalt);
}

.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

/* site-account-bar.js pill harmonizing */
.sync-header .site-account-pill {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-ink);
}

/* ---------- 按钮原子体系 ---------- */
.sync-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--obsidian);
  border-radius: 999px;
  background: var(--obsidian);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 140ms ease, opacity 140ms ease, transform 120ms ease;
}

html[data-theme="dark"] .sync-btn-primary {
  color: #0b0f19;
}

.sync-btn-primary:hover { background: var(--obsidian-hover); }
.sync-btn-primary:active { transform: scale(0.985); }
.sync-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.sync-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sync-rule-strong);
  border-radius: 999px;
  background: var(--sync-surface);
  color: var(--sync-ink);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.sync-btn-outline:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.sync-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--sync-ink-2);
  font-size: 0.84rem;
  font-weight: 560;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.sync-btn-ghost:hover {
  background: var(--sync-tint);
  color: var(--sync-ink);
}

.sync-btn-danger-text:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.sync-btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.84rem; }
.sync-btn-xs { min-height: 32px; padding: 0 12px; font-size: 0.78rem; }

.sync-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sync-muted);
  font-size: 0.8rem;
  font-weight: 560;
  white-space: nowrap;
}

.sync-ghost-link:hover {
  color: var(--cobalt);
  background: var(--cobalt-soft);
}

/* ---------- 48px 珠光微网格首屏 + 右上同位锁定折叠 ---------- */
.sync-hero-band {
  position: relative;
  border-bottom: 1px solid var(--sync-rule);
  background-color: var(--sync-bg);
  background-image:
    linear-gradient(to right, var(--sync-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--sync-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.sync-hero-compact {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}

.sync-hero-full {
  padding-block: 10px 28px;
}

html[data-hero-collapsed="true"] .sync-hero-compact { display: flex; }
html[data-hero-collapsed="true"] .sync-hero-full { display: none; }

.sync-compact-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sync-compact-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: none;
}

.sync-compact-title {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.sync-compact-sep {
  width: 1px;
  height: 13px;
  background: var(--sync-rule-strong);
  flex: none;
}

.sync-compact-meta {
  font-size: 0.82rem;
  color: var(--sync-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-compact-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.sync-hero-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 16px;
}

.sync-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cobalt);
  letter-spacing: 0.02em;
}

.sync-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.sync-hero-copy h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--sync-ink);
  margin-bottom: 14px;
}

.sync-hero-copy h1 span {
  color: var(--cobalt);
}

.sync-hero-lead {
  font-size: 0.96rem;
  color: var(--sync-ink-2);
  max-width: 36rem;
  margin-bottom: 20px;
}

.sync-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sync-hero-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--sync-rule);
  background: var(--sync-stage);
  box-shadow: var(--sync-shadow);
}

.sync-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ---------- 工作台容器 ---------- */
.sync-workspace {
  padding-block: 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- 空间与在线设备总控条 ---------- */
.sync-space-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--sync-rule);
  background: var(--sync-surface);
  box-shadow: var(--sync-shadow);
}

.sync-space-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sync-space-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--sync-tint);
  color: var(--sync-muted);
}

.sync-mode-badge.is-account {
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.sync-mode-badge.is-room {
  background: var(--ok-soft);
  color: var(--ok-green);
}

.sync-space-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--sync-ink);
}

.sync-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px dashed var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sync-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(180, 83, 9, 0.24);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 140ms ease, transform 120ms ease;
}

.sync-coin-pill:hover {
  border-color: var(--warn);
}

.sync-coin-pill strong {
  font-weight: 760;
}

html[data-theme="dark"] .sync-coin-pill {
  border-color: rgba(251, 191, 36, 0.3);
}

.sync-devices-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sync-device-muted {
  font-size: 0.8rem;
  color: var(--sync-muted);
}

.sync-device-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--sync-tint);
  border: 1px solid var(--sync-rule);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sync-ink-2);
}

.sync-device-pill.is-self {
  border-color: rgba(35, 80, 220, 0.28);
  color: var(--cobalt);
  background: var(--cobalt-soft);
}

.sync-device-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok-green);
  display: inline-block;
}

.sync-space-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.sync-quota-box {
  width: 156px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sync-quota-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--sync-muted);
  font-variant-numeric: tabular-nums;
}

.sync-quota-track {
  height: 5px;
  border-radius: 999px;
  background: var(--sync-tint);
  overflow: hidden;
}

.sync-quota-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--cobalt);
  transition: width 260ms ease;
}

.sync-space-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- 未连接双通道选择引导 ---------- */
.sync-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sync-gate-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--sync-rule);
  background: var(--sync-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--sync-shadow);
}

.sync-gate-card.is-primary {
  border-color: rgba(35, 80, 220, 0.24);
  background: linear-gradient(180deg, var(--cobalt-soft) 0%, var(--sync-surface) 44%);
}

.sync-gate-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: 0.02em;
}

.sync-gate-card h2 {
  font-size: 1.18rem;
  font-weight: 740;
  color: var(--sync-ink);
}

.sync-gate-card p {
  font-size: 0.88rem;
  color: var(--sync-ink-2);
  flex: 1;
}

.sync-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* ---------- 全能投递器 ---------- */
.sync-active-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sync-composer {
  border-radius: 20px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  box-shadow: var(--sync-shadow);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sync-composer:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft), var(--sync-shadow);
}

.sync-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--sync-rule);
  background: var(--sync-tint);
}

.sync-composer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sync-ink);
  min-width: 0;
}

.sync-composer-title svg { color: var(--cobalt); flex: none; }

.sync-composer-hint {
  font-size: 0.76rem;
  font-weight: 450;
  color: var(--sync-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-composer-opts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.sync-opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--sync-ink-2);
  cursor: pointer;
  white-space: nowrap;
}

.sync-opt-chip input { accent-color: var(--cobalt); }

.sync-ttl-pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
}

.sync-ttl-btn {
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sync-muted);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.sync-ttl-btn.is-active {
  background: var(--cobalt);
  color: #ffffff;
}

.sync-ttl-btn.is-paid {
  color: var(--warn);
}

.sync-ttl-btn.is-paid.is-active {
  background: var(--warn);
  color: #ffffff;
}

html[data-theme="dark"] .sync-ttl-btn.is-paid.is-active {
  color: #0b0f19;
}

.sync-ttl-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 18px;
  border-bottom: 1px solid var(--sync-rule);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 560;
}

.sync-ttl-notice.is-warn {
  background: var(--danger-soft);
  color: var(--danger);
}

.sync-ttl-notice a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* 端到端加密口令条 */
.sync-enc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 18px;
  border-bottom: 1px solid var(--sync-rule);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-size: 0.78rem;
  font-weight: 600;
}

.sync-enc-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sync-enc-input {
  flex: 1;
  min-width: 180px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(35, 80, 220, 0.28);
  background: var(--sync-surface);
  color: var(--sync-ink);
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
}

.sync-enc-input:focus { border-color: var(--cobalt); }

.sync-opt-chip.is-burn-opt input { accent-color: var(--danger); }
.sync-opt-chip.is-enc-opt input { accent-color: var(--cobalt); }

/* 待发队列包装条 */
.sync-pending-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--sync-tint);
  border: 1px solid var(--sync-rule);
}

.sync-pending-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--sync-rule);
}

.sync-pending-summary {
  font-size: 0.76rem;
  color: var(--sync-ink-2);
  font-weight: 560;
}

.sync-pending-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.68rem;
  font-weight: 700;
}

/* 局域网 P2P 直传条 */
.sync-p2p-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sync-p2p-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(35, 80, 220, 0.28);
  background: var(--cobalt-soft);
  color: var(--sync-ink);
}

.sync-p2p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.sync-p2p-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sync-tool-btn.is-p2p-tool {
  border-color: rgba(35, 80, 220, 0.24);
  color: var(--cobalt);
}

/* 多选批量工具条 */
.sync-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(35, 80, 220, 0.3);
  background: var(--cobalt-soft);
}

.sync-batch-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--sync-ink);
}

.sync-batch-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sync-btn-outline.is-gold-outline {
  border-color: rgba(180, 83, 9, 0.35);
  color: var(--warn);
}

.sync-btn-outline.is-gold-outline:hover {
  border-color: var(--warn);
  background: var(--warn-soft);
}

/* 卡片安全状态微标与护盾 */
.sync-select-check {
  width: 17px;
  height: 17px;
  accent-color: var(--cobalt);
  cursor: pointer;
  flex: none;
}

.sync-card.is-selected {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 2px var(--cobalt-soft);
}

.sync-burn-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.71rem;
  font-weight: 700;
}

.sync-enc-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-size: 0.71rem;
  font-weight: 700;
}

.sync-pickup-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px dashed var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
}

.sync-shield-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--sync-tint);
  border: 1px dashed var(--sync-rule-strong);
}

.sync-shield-box.is-burn {
  border-color: rgba(220, 38, 38, 0.32);
  background: var(--danger-soft);
}

.sync-shield-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sync-ink);
}

.sync-shield-desc {
  font-size: 0.8rem;
  color: var(--sync-ink-2);
}

.sync-decrypt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sync-decrypt-input {
  flex: 1;
  min-width: 160px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-ink);
  font-family: inherit;
  font-size: 16px;
}

/* 设备会话管理列表 & 局域网设备选择 */
.sync-session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sync-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--sync-rule);
  background: var(--sync-tint);
}

.sync-session-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sync-session-meta strong {
  font-size: 0.88rem;
  color: var(--sync-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sync-session-meta span {
  font-size: 0.75rem;
  color: var(--sync-muted);
}

.sync-p2p-peer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}

.sync-p2p-peer-btn:hover, .sync-p2p-peer-btn.is-active {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.sync-composer-body {
  padding: 12px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sync-title-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--sync-rule);
  padding: 4px 0 8px;
  background: transparent;
  color: var(--sync-ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
}

.sync-title-input::placeholder { color: var(--sync-faint); font-weight: 450; }

.sync-textarea {
  width: 100%;
  min-height: 82px;
  max-height: 300px;
  resize: vertical;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--sync-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  outline: none;
}

.sync-textarea::placeholder { color: var(--sync-faint); }

/* 待发附件预览队列 */
.sync-pending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.sync-pending-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-tint);
  font-size: 0.8rem;
}

.sync-pending-thumb {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  flex: none;
}

.sync-pending-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sync-pending-meta strong {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-pending-meta span {
  font-size: 0.7rem;
  color: var(--sync-muted);
}

.sync-pending-rm {
  border: 0;
  background: transparent;
  color: var(--sync-muted);
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
}

.sync-pending-rm:hover { background: var(--danger-soft); color: var(--danger); }

/* 实时上传进度 */
.sync-upload-queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.sync-up-row {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--sync-tint);
  border: 1px solid var(--sync-rule);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sync-up-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.sync-up-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-up-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt);
  font-weight: 600;
  flex: none;
}

.sync-up-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--sync-rule);
  overflow: hidden;
}

.sync-up-fill {
  height: 100%;
  background: var(--cobalt);
  transition: width 100ms linear;
}

.sync-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--sync-rule);
}

.sync-composer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sync-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-ink-2);
  font-size: 0.83rem;
  font-weight: 600;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.sync-tool-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background: var(--cobalt-soft);
}

.sync-composer-submit {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.sync-kbd-hint {
  font-size: 0.74rem;
  color: var(--sync-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 筛选与搜索栏 ---------- */
.sync-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sync-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sync-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--sync-rule);
  background: var(--sync-surface);
  color: var(--sync-ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 140ms ease;
}

.sync-tab em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

.sync-tab:hover { border-color: var(--cobalt); color: var(--cobalt); }

.sync-tab.is-active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ffffff;
}

html[data-theme="dark"] .sync-tab.is-active { color: #0b0f19; }

.sync-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sync-search-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-muted);
}

.sync-search-box input {
  border: 0;
  background: transparent;
  color: var(--sync-ink);
  font-family: inherit;
  font-size: 0.86rem;
  width: 190px;
  outline: none;
}

/* ---------- 实时同步卡片流 ---------- */
.sync-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sync-empty {
  padding: 52px 24px;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed var(--sync-rule-strong);
  background: var(--sync-tint);
}

.sync-empty strong {
  display: block;
  font-size: 1rem;
  color: var(--sync-ink);
  margin-bottom: 6px;
}

.sync-empty p {
  font-size: 0.86rem;
  color: var(--sync-muted);
}

.sync-card {
  border-radius: 18px;
  border: 1px solid var(--sync-rule);
  background: var(--sync-surface);
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, transform 160ms ease;
}

.sync-card:hover { border-color: var(--sync-rule-strong); }
.sync-card.is-pinned {
  border-color: rgba(35, 80, 220, 0.34);
  background: linear-gradient(180deg, var(--cobalt-soft) 0%, var(--sync-surface) 54px);
}

.sync-card.is-new {
  animation: syncCardIn 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes syncCardIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sync-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sync-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sync-kind-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--sync-tint);
  color: var(--sync-ink-2);
}

.sync-kind-tag.is-text { background: var(--cobalt-soft); color: var(--cobalt); }
.sync-kind-tag.is-image { background: var(--ok-soft); color: var(--ok-green); }
.sync-kind-tag.is-file { background: var(--warn-soft); color: var(--warn); }

.sync-origin-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--sync-muted);
}

.sync-pin-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cobalt);
}

.sync-ttl-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.71rem;
  font-weight: 700;
}

.sync-time-tag {
  font-size: 0.75rem;
  color: var(--sync-faint);
  font-variant-numeric: tabular-nums;
}

.sync-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--sync-ink);
}

/* 文字卡片内容 */
.sync-text-body {
  font-size: 0.94rem;
  color: var(--sync-ink);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--sync-tint);
  border: 1px solid var(--sync-rule);
}

.sync-text-body.is-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.sync-text-body.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sync-text-body a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 图片卡片内容 */
.sync-image-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.sync-image-thumb-btn {
  border: 1px solid var(--sync-rule);
  border-radius: 12px;
  padding: 0;
  background: var(--sync-stage);
  overflow: hidden;
  max-width: min(100%, 420px);
  cursor: zoom-in;
}

.sync-image-thumb-btn img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sync-image-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.82rem;
  color: var(--sync-muted);
}

.sync-image-info strong {
  color: var(--sync-ink);
  font-size: 0.88rem;
  word-break: break-all;
}

/* 文件卡片内容 */
.sync-file-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sync-tint);
  border: 1px solid var(--sync-rule);
}

.sync-file-ext {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
  text-transform: uppercase;
}

.sync-file-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sync-file-meta strong {
  font-size: 0.92rem;
  color: var(--sync-ink);
  word-break: break-all;
}

.sync-file-meta span {
  font-size: 0.78rem;
  color: var(--sync-muted);
  font-variant-numeric: tabular-nums;
}

/* 卡片底部动作行 */
.sync-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--sync-rule);
}

.sync-card-act-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sync-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--sync-rule);
  background: var(--sync-surface);
  color: var(--sync-ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.sync-act-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background: var(--cobalt-soft);
}

.sync-act-btn.is-primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

.sync-act-btn.is-primary:hover { background: var(--cobalt-hover); color: #ffffff; }

.sync-act-btn.is-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.sync-act-btn.is-gold {
  border-color: rgba(180, 83, 9, 0.24);
  color: var(--warn);
}

.sync-act-btn.is-gold:hover {
  border-color: var(--warn);
  color: var(--warn);
  background: var(--warn-soft);
}

.sync-act-btn.is-armed {
  background: var(--warn);
  border-color: var(--warn);
  color: #ffffff;
}

html[data-theme="dark"] .sync-act-btn.is-gold {
  border-color: rgba(251, 191, 36, 0.28);
}

html[data-theme="dark"] .sync-act-btn.is-armed {
  color: #0b0f19;
}

/* ---------- 拖放全屏遮罩 ---------- */
.sync-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(35, 80, 220, 0.14);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.sync-drop-card {
  width: min(460px, 100%);
  padding: 40px 28px;
  border-radius: 24px;
  border: 2px dashed var(--cobalt);
  background: var(--sync-surface);
  color: var(--cobalt);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--sync-shadow);
}

.sync-drop-card strong { font-size: 1.15rem; color: var(--sync-ink); }
.sync-drop-card span { font-size: 0.85rem; color: var(--sync-muted); }

/* ---------- 弹窗体系 ---------- */
.sync-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: min(88vh, 820px);
  padding: 0;
  border: 1px solid var(--sync-rule-strong);
  border-radius: 22px;
  background: var(--sync-surface);
  color: var(--sync-ink);
  box-shadow: 0 24px 64px -16px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.sync-dialog--wide {
  width: min(920px, calc(100% - 24px));
}

.sync-dialog::backdrop {
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(4px);
}

.sync-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sync-rule);
}

.sync-dialog-head h3 {
  font-size: 1.04rem;
  font-weight: 740;
  margin: 0;
}

.sync-dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 2px;
}

.sync-dialog-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: calc(88vh - 76px);
}

.sync-dialog-desc {
  font-size: 0.86rem;
  color: var(--sync-ink-2);
}

.sync-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}

.sync-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--sync-tint);
  border: 1px solid var(--sync-rule);
  text-align: center;
}

.sync-qr-box {
  width: 204px;
  height: 204px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sync-qr-box svg { width: 100%; height: 100%; display: block; }

.sync-big-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--cobalt);
  padding-left: 0.22em;
}

.sync-seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--sync-tint);
  border: 1px solid var(--sync-rule);
}

.sync-seg-btn {
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--sync-ink-2);
  font-size: 0.8rem;
  font-weight: 600;
}

.sync-seg-btn.is-active {
  background: var(--sync-surface);
  color: var(--cobalt);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.sync-join-form {
  display: flex;
  gap: 8px;
}

.sync-code-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sync-field-label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--sync-ink-2);
}

.sync-field-input, .sync-field-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--sync-rule-strong);
  background: var(--sync-surface);
  color: var(--sync-ink);
  font-family: inherit;
  font-size: 16px;
}

.sync-preview-stage {
  padding: 16px 20px 20px;
  background: var(--sync-stage);
  max-height: calc(88vh - 80px);
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sync-preview-stage img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 10px;
  object-fit: contain;
}

.sync-preview-stage video, .sync-preview-stage audio {
  width: 100%;
  max-height: 72vh;
  border-radius: 10px;
}

.sync-preview-stage iframe {
  width: 100%;
  height: 72vh;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
}

.sync-preview-code {
  width: 100%;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--sync-surface);
  border: 1px solid var(--sync-rule);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Toast 与页脚 ---------- */
.sync-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom, 22px));
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(92vw, 440px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--obsidian);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  text-align: center;
}

html[data-theme="dark"] .sync-toast { color: #0b0f19; }

.sync-footer {
  border-top: 1px solid var(--sync-rule);
  padding-block: 22px;
  background: var(--sync-tint);
}

.sync-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sync-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.sync-footer-brand span { color: var(--sync-muted); font-size: 0.78rem; }

.sync-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--sync-muted);
}

.sync-footer-links a:hover { color: var(--cobalt); }

/* ---------- 响应式（平板 + 手机 320px-430px 严格 0px 溢出） ---------- */
@media (max-width: 56rem) {
  .sync-hero-grid { grid-template-columns: 1fr; }
  .sync-gate-grid { grid-template-columns: 1fr; }
  .sync-space-bar { flex-direction: column; align-items: stretch; }
  .sync-space-right { justify-content: space-between; flex-wrap: wrap; }
  .sync-composer-head { flex-wrap: wrap; }
  .sync-composer-opts { flex: 1 1 auto; max-width: 100%; flex-wrap: wrap; }
}

@media (max-width: 40rem) {
  .sync-page .wrap { width: calc(100% - 1.5rem); }
  .sync-back-link { display: none; }
  .sync-brand-text .wordmark { display: none; }
  .sync-brand-text .brand-name { font-size: 1rem; }
  .sync-composer-hint { display: none; }
  .sync-kbd-hint { display: none; }
  .sync-compact-meta, .sync-compact-sep { display: none; }
  .sync-composer-head { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .sync-composer-opts { flex: 1 1 100%; width: 100%; max-width: 100%; flex-wrap: wrap; gap: 8px; }
  .sync-enc-bar { padding: 8px 14px; }
  .sync-ttl-notice { padding: 8px 14px; }
  .sync-batch-bar { padding: 10px 12px; }
  .sync-composer-body { padding: 10px 14px 6px; }
  .sync-composer-foot { padding: 10px 14px; flex-wrap: wrap; }
  .sync-composer-submit { width: 100%; justify-content: flex-end; }
  .sync-composer-submit .sync-btn-primary { width: 100%; }
  .sync-toolbar-right { width: 100%; }
  .sync-search-box { flex: 1; min-width: 0; }
  .sync-search-box input { width: 100%; font-size: 16px; }
  .sync-quota-box { width: 100%; }
  .sync-card { padding: 13px 14px; }
  .sync-header .site-account-pill { padding: 0 9px; font-size: 0.76rem; flex: none; }
  .sync-live-pill { padding: 0 9px; font-size: 0.76rem; }
  .sync-header-actions #btn-device-cfg { display: none; }
  .site-header.studio-nav.sync-header { gap: 0.45rem; }
  .sync-header-actions { gap: 5px; }
}

@media (max-width: 24rem) {
  .sync-page .wrap { width: calc(100% - 1rem); }
  .sync-brand-group .brand-icon { width: 28px; height: 28px; }
  .site-header.studio-nav.sync-header .sync-brand-text .brand-name { font-size: 0.9rem; }
  .sync-icon-btn { width: 32px; height: 32px; }
  .sync-live-pill { min-height: 32px; padding: 0 7px; font-size: 0.71rem; }
  .sync-header .site-account-pill { min-height: 32px; padding: 0 7px; font-size: 0.71rem; }
  .sync-compact-icon { width: 20px; height: 20px; }
  .sync-compact-title { font-size: 0.82rem; }
  .sync-compact-right .sync-btn-sm { padding: 0 10px; font-size: 0.74rem; }
  .sync-ttl-btn { padding: 0 7px; font-size: 0.71rem; }
}
