/* One unframed status line, shared by all views and inherited by every theme. */
.app-save-status { display:flex; align-items:center; justify-content:flex-end; gap:7px; min-height:24px; margin:0 0 8px; color:var(--muted); font-size:11px; line-height:1.5; }
.save-status-dot { flex:0 0 5px; width:5px; height:5px; border-radius:50%; background:var(--muted); }
#saveState[data-feedback-duplicate="true"] { display:none; }
.planner-save-actions:has(#saveState[data-feedback-duplicate="true"]) { justify-content:flex-end; }
.app-save-status[data-state="synced"] .save-status-dot { background:var(--good); }
.app-save-status:is([data-state="pending"],[data-state="waiting"],[data-state="offline"],[data-state="draft"]) .save-status-dot { background:var(--warn); }
.app-save-status:is([data-state="failed"],[data-state="conflict"]) { color:var(--danger); }
.app-save-status:is([data-state="failed"],[data-state="conflict"]) .save-status-dot { background:currentColor; }
.save-retry { padding:4px 8px; min-height:30px; background:var(--soft); color:var(--ink); border:1px solid var(--line); border-radius:6px; box-shadow:none; font:inherit; font-weight:600; }
.action-feedback { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:150; display:flex; align-items:center; gap:12px; width:max-content; max-width:calc(100vw - 28px); padding:10px 12px; box-sizing:border-box; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--panel-solid); box-shadow:0 6px 24px #0002; font-size:13px; line-height:1.5; }
.action-feedback > span { overflow-wrap:anywhere; min-width:0; max-height:32dvh; overflow-y:auto; overscroll-behavior:contain; }
.action-feedback[data-failure="true"] { border-color:var(--danger); }
.action-feedback button { flex-shrink:0; min-height:34px; padding:5px 8px; border:0; border-radius:6px; background:var(--soft); color:var(--ink); box-shadow:none; font:inherit; }
.action-feedback [data-feedback-dismiss] { width:34px; padding:0; font-size:20px; background:transparent; }
#discardChangesDialog { width:min(420px,calc(100vw - 28px)); }
#discardChangesDialog p { color:var(--muted); margin:0; line-height:1.6; }
#discardChangesDialog footer { display:flex; justify-content:flex-end; gap:8px; }
body:not(.native-app) .haptic-setting { display:none; }
@media screen and (max-width:900px) {
 .app-save-status { justify-content:flex-start; font-size:11px; }
 .save-retry { min-height:44px; padding-inline:12px; }
 .action-feedback { bottom:calc(var(--mobile-dock-height,64px) + env(safe-area-inset-bottom) + 12px); gap:8px; }
 .action-feedback button { min-height:44px; }
 body.mobile-keyboard-open .action-feedback { display:none; }
 #discardChangesDialog footer { display:grid; grid-template-columns:1fr 1fr; }
}
@media print { .app-save-status, .action-feedback, #discardChangesDialog { display:none !important; } }
