.sync-header{position:relative}.sync-header::before{content:'';position:absolute;left:2px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:50%;background:#739572}.sync-header[data-state=pending]::before{background:#c08c55}.sync-header[data-state=attention]::before{background:var(--accent)}.sync-header[data-state=offline]::before{background:var(--muted)}
#sync-root:empty{display:none}#sync-root{position:relative;z-index:150}body[data-sync-panel=true]{overflow:hidden}.sync-overlay{z-index:150}.sync-dialog{width:min(760px,calc(100vw - 32px));max-height:88dvh;display:flex;flex-direction:column}.sync-body{padding:0 22px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.sync-summary{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);font-size:13px;line-height:1.8}.sync-summary p{margin:7px 0 0;color:var(--muted)}.sync-buttons{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}.sync-buttons button{flex:1;min-height:44px;min-width:140px}.sync-conflict{padding:18px 0;border-top:1px solid var(--line)}.sync-conflict h3{font-size:16px;margin:0 0 10px;overflow-wrap:anywhere}.sync-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sync-comparison>div{min-width:0}.sync-comparison h4{font-size:12px;color:var(--muted);font-weight:500}.sync-comparison pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 var(--font-sans,sans-serif);border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:14px;max-height:230px;overflow:auto}.sync-body :focus-visible{outline:2px solid var(--accent);outline-offset:3px}#sync-message{font-size:13px;color:var(--accent);line-height:1.8}
@media(max-width:599px){.sync-dialog{width:100%;max-height:90dvh}.sync-body{padding:0 18px 24px}.sync-comparison{grid-template-columns:1fr}.sync-comparison pre{max-height:180px}.sync-buttons{gap:8px}.sync-buttons button{min-width:120px;font-size:12px}}

body[data-account-lock=true] #sync-root{display:none!important}
/* Error messages remain below the iPhone status bar on normal and setup screens. */
@media(max-width:759px){#save-status.error,body[data-setup=true] #save-status.error{padding:calc(var(--top) + 12px) 18px 12px}}
