/* ---------- cloud sync (settings) ---------- */
/* one status line, two equal actions, and the rarely-used restore
   form folded away behind a disclosure (progressive disclosure) */
.sync-note{font-size:13px; color:var(--muted); font-weight:700; line-height:1.5; margin:8px 0 10px}
.sync-actions{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.sync-actions button{
  min-height:48px; border:1.5px solid var(--line); background:var(--bg); color:var(--ink);
  border-radius:14px; padding:10px 8px; font-size:14.5px; font-weight:900;
}
.sync-actions button:disabled{opacity:.5}
.sync-code{
  font-family:ui-monospace, Menlo, Consolas, monospace; font-size:15px;
  background:var(--bg); border:1.5px dashed var(--line); border-radius:10px;
  padding:10px 12px; margin:10px 0 0; line-height:1.7; word-break:break-all;
}
.sync-restore-wrap{margin-top:12px}
.sync-restore-wrap summary{
  min-height:44px; display:flex; align-items:center; cursor:pointer;
  font-size:14px; font-weight:800; color:var(--muted); list-style:none;
}
.sync-restore-wrap summary::-webkit-details-marker{display:none}
.sync-restore-wrap summary::after{content:"›"; margin-left:auto; font-size:20px; line-height:1; transition:transform .2s}
.sync-restore-wrap[open] summary::after{transform:rotate(90deg)}
.sync-restore{display:flex; flex-wrap:wrap; gap:8px; padding:2px 0 4px}
.sync-restore input{
  flex:1 1 120px; min-height:48px; border:1.5px solid var(--line);
  border-radius:12px; padding:10px 12px; font-size:14px;
  background:var(--panel); color:var(--ink); min-width:0;
}
.sync-restore button{
  flex:1 1 100%; min-height:48px; border-radius:14px; border:2px solid #A92436;
  background:var(--shu); color:#FFF; font-weight:900; font-size:15px;
}
