/* Only the acknowledged row changes size; the list and tabs never fade. */
#moplano-app #page .task-completion-feedback { overflow:hidden; min-height:0; }
#moplano-app #page .task-completion-feedback .task-title { transition:color 140ms ease; }
#moplano-app #page .task-completion-feedback .task.done .task-title { color:var(--ui-text); text-decoration:none; }
#moplano-app #page .task-completion-feedback .task:not(.done) .task-title { color:var(--ui-text); text-decoration:none; }
#moplano-app #page .task-completion-feedback .task .check { opacity:1 !important; }
/* Retain the shared full-screen geometry and keyboard layout, without navigation motion. */
html #moplano-app .entity-static-screen,
html #moplano-app .entity-static-screen.visible,
html #moplano-app .entity-static-screen .entity-form-panel,
html #moplano-app .entity-static-screen .entity-value-panel {
  transform:none !important; transition:none !important; animation:none !important;
  opacity:1 !important; will-change:auto !important; box-shadow:none !important;
}
@media(prefers-reduced-motion:reduce) {
  #moplano-app #page .task-completion-feedback .task-title { transition:none; }
}

/* No orphan divider above the first visible row during collapse/arrival. */
#moplano-app #page :is(.task-completion-leaving,.task-completion-arriving)::before,
#moplano-app #page :is(.task-completion-leaving,.task-completion-arriving) + .task-swipe::before {
  visibility:hidden !important;
}
/* Normal confirmations are silent throughout the app. Problems stay below content. */
#moplano-app .app-toast:not(.error):not(.info) { display:none !important; }
#moplano-app .app-toast {
  top:auto !important; bottom:calc(82px + env(safe-area-inset-bottom,0px)) !important;
  z-index:1600; max-width:calc(100vw - 32px); box-sizing:border-box;
  padding:11px 15px; border-radius:12px; font-size:13px; font-weight:450;
  line-height:1.4; text-align:center; box-shadow:none;
  backdrop-filter:none; -webkit-backdrop-filter:none;
  transform:translate(-50%,6px); transition:opacity 140ms ease,transform 140ms ease;
}
#moplano-app .app-toast.visible { transform:translate(-50%,0); }
@media(prefers-reduced-motion:reduce) { #moplano-app .app-toast { transition:none; } }

#moplano-app #page .task-completion-feedback > .task { background:var(--surface-solid,#fafaf7) !important; opacity:1 !important; }

/* Clip the complete paint tree, including WebKit's former swipe layer. */
#moplano-app #page :is(.task-completion-leaving,.task-completion-arriving) {
  min-height:0 !important; overflow:hidden !important; clip-path:inset(0);
  background:transparent !important; box-shadow:none !important; box-sizing:border-box;
}
#moplano-app #page [data-task-completed-group].task-completion-leaving { border-top:0 !important; }
#moplano-app #page :is(.task-completion-leaving,.task-completion-arriving) > .task,
#moplano-app #page [data-task-completed-group].task-completion-leaving .task {
  transform:none !important; transition:none !important; box-shadow:none !important;
}
/* Home mixes goals and tasks in one list; either kind can own the next divider. */
#moplano-app #page :is(.task-completion-leaving,.task-completion-arriving) + .home-daily-action::before {
  visibility:hidden !important;
}

/* These solid white cards need no legacy glass-filter compositing during resize. */
#moplano-app #page :is(.tw-card,.home-day-card) {
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
}

/* Completion shares the olive palette; no white flash or card-wide fade. */
#moplano-app #page .task-completion-feedback .check {color:var(--ui-accent);}
#moplano-app #page .task-completion-feedback .check[aria-pressed="true"] circle {fill:var(--ui-soft);}
#moplano-app #page .task-completion-feedback .check svg {transform-origin:center;}
