/* Local sync lives below the existing masthead; account controls are unchanged. */
#syncStatusBar{margin:0 0 14px!important;padding:0!important;background:transparent!important}
#syncStatusBar[hidden]{display:none!important}
#syncStatusBar #offlineDetails{box-sizing:border-box;width:100%;height:58px;min-height:58px;display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #cbded4;border-radius:10px;background:#edf7f2;color:#205f43;text-decoration:none;text-align:left}
#syncStatusBar #offlineDetails:focus-visible{outline:3px solid #278577;outline-offset:3px}
#syncStatusBar .sync-dot{width:10px;height:10px;flex:0 0 10px;background:currentColor;border-radius:50%}
#syncStatusBar .sync-status-copy{min-width:0;flex:1;display:grid;gap:3px}
#syncStatusBar #offlineStatus{display:block!important;font-size:14px;font-weight:650;white-space:nowrap}
#syncStatusBar #syncStatusHint{font-size:12px;font-weight:400;white-space:nowrap}
#syncStatusBar .sync-chevron{font-size:22px;flex:0 0 12px;text-align:right}
#syncStatusBar[data-state=offline] #offlineDetails,#syncStatusBar[data-state=pending] #offlineDetails{background:#fff6e7;border-color:#ead4ad;color:#80520b}
#syncStatusBar[data-state=syncing] #offlineDetails{background:#eaf3ff;border-color:#c1d7ed;color:#225a91}
#syncStatusBar[data-state=error] #offlineDetails{background:#fff0ee;border-color:#edc7c2;color:#9d342e}
#syncStatusBar[data-state=preparing] #offlineDetails{background:#f2f5f3;border-color:#d5ded9;color:#50665b}
body.master-dashboard-view main>#syncStatusBar{display:block!important}
body.master-dashboard-view main>#syncStatusBar[hidden]{display:none!important}
.sync-queue-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-width:680px;max-height:calc(100dvh - 32px);padding:24px;border:1px solid #d4e0d9;border-radius:16px;color:#203d31;background:#eaf5ed;overflow:auto}
.sync-queue-dialog::backdrop{background:#102d2466}
.sync-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sync-dialog-heading h2{margin:4px 0 6px;font-size:24px}.sync-eyebrow{margin:0;color:#287465;font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:700}.sync-owner{margin:0;color:#52685e;font-size:13px;overflow-wrap:anywhere}
.sync-queue-dialog button{box-sizing:border-box;white-space:nowrap;height:42px;min-height:42px;width:174px;min-width:174px;max-width:174px;padding:8px 12px;border:1px solid #bfcfc6;border-radius:8px;background:#d5ebdc;color:#254537;font-size:13px;font-weight:600}
.sync-queue-dialog #syncQueueClose{width:76px;min-width:76px;max-width:76px}.sync-queue-dialog button.primary{background:#1d7252;border-color:#1d7252;color:white}.sync-queue-dialog button:disabled{opacity:.5;cursor:default}.sync-queue-dialog button:focus-visible{outline:3px solid #278577;outline-offset:2px}
.sync-summary{margin:20px 0 6px;padding:12px 14px;border-radius:9px;background:#edf7f2;color:#205f43;font-weight:650;font-size:14px}.sync-queue-dialog[data-state=offline] .sync-summary,.sync-queue-dialog[data-state=pending] .sync-summary{background:#fff6e7;color:#80520b}.sync-queue-dialog[data-state=error] .sync-summary{background:#fff0ee;color:#9d342e}.sync-queue-dialog[data-state=syncing] .sync-summary{background:#eaf3ff;color:#225a91}
.sync-snapshot{font-size:12px;color:#52685e;margin:10px 0 16px}.sync-warning{padding:10px 12px;background:#fff0ee;color:#9d342e;overflow-wrap:anywhere;font-size:13px}
.sync-queue-items{margin:0;padding:0;list-style:none;display:grid;gap:10px}.sync-queue-item{border:1px solid #a9cfb7;border-left:4px solid #66a67d;border-radius:10px;padding:14px;background:#d9eee0}.sync-queue-error{border-color:#e1b6b0}.sync-item-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:14px}.sync-item-top strong{overflow-wrap:anywhere}.sync-action{flex-shrink:0;color:#365d4e;font-size:12px;font-weight:650}.sync-item-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#52685e;font-size:12px;margin-top:8px;overflow-wrap:anywhere}.sync-item-state{margin:9px 0 0;font-size:12px;color:#80520b}.sync-queue-error .sync-item-state,.sync-item-reason{color:#9d342e}.sync-item-reason{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.sync-empty{padding:28px 12px;text-align:center;color:#52685e;font-size:14px}.sync-help{color:#52685e;font-size:12px;line-height:1.55;margin:18px 0}.sync-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.sync-login-note{padding:12px;background:#fff6e7;border:1px solid #ead4ad;border-radius:8px;color:#80520b;font-size:13px;line-height:1.5}
.sync-dialog-heading{margin:-24px -24px 0;padding:22px 24px;background:#226549;border-radius:15px 15px 0 0;color:#fff}
.sync-dialog-heading .sync-eyebrow{color:#c0ebce}.sync-dialog-heading .sync-owner{color:#d2ebdc}
.sync-dialog-heading #syncQueueClose{background:#347b59;border-color:#68a382;color:#fff}
.sync-action{padding:4px 8px;border-radius:6px;background:#bce0c8;color:#245236}
.sync-help{padding:12px 14px;border-radius:9px;background:#c9e5d3;color:#345b44}
.sync-queue-error{border-color:#c46d65}
@media(max-width:480px){.sync-queue-dialog{padding:16px}.sync-dialog-heading{gap:10px;margin:-16px -16px 0;padding:18px 16px;flex-wrap:wrap}.sync-dialog-heading h2{font-size:21px}.sync-item-top{display:grid;gap:6px}.sync-action{justify-self:start}.sync-dialog-actions{display:grid;grid-template-columns:1fr}.sync-dialog-actions button{justify-self:end}}
