/* Tasks use the same roles as Home; shell controls never enter the replaced panel. */
#moplano-app #page[data-page="plan"] { overflow-anchor:none; }
#moplano-app #page[data-page="plan"] .tasks-header-v093 {
  min-height:44px !important; margin:0 !important; padding:0 !important;
  grid-template-columns:minmax(0,1fr) 44px !important; align-items:center !important;
}
#moplano-app #page[data-page="plan"] .tasks-header-add {
  width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important;
  display:grid !important; place-items:center; padding:0 !important;
  appearance:none; -webkit-appearance:none; border:0 !important; background:transparent !important; box-shadow:none !important;
}
#moplano-app #page[data-page="plan"] .tasks-header-add::after { display:none; }
#moplano-app #page .task-workspace :where(button:not(.task-swipe-delete):not(.task-swipe-move)) {
  appearance:none; -webkit-appearance:none; box-sizing:border-box; margin:0;
  border:0; background:transparent; box-shadow:none; font:inherit; text-decoration:none;
  cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
#moplano-app #page .task-workspace .tw-tabs {
  position:relative; isolation:isolate; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0 !important; padding:3px !important; min-height:44px; height:44px; border-radius:12px !important;
}
#moplano-app #page .task-workspace .tw-tabs::before {
  content:""; position:absolute; top:3px; bottom:3px; left:3px;
  width:calc((100% - 6px)/3); border-radius:9px; background:#fff; z-index:-1;
  transform:translateX(calc(var(--tw-index,0) * 100%));
  transition:transform 180ms cubic-bezier(.2,.7,.2,1);
}
#moplano-app #page .task-workspace .tw-tab {
  position:relative; display:flex; align-items:center; justify-content:center; gap:6px;
  min-width:0; min-height:38px; padding:6px !important; border-radius:9px !important;
  background:transparent !important; color:var(--ui-muted); font-size:13px !important; font-weight:500 !important;
  transition:color 140ms ease;
}
#moplano-app #page .task-workspace .tw-tab[aria-pressed="true"] { color:var(--ui-accent); background:transparent !important; }
#moplano-app #page .task-workspace [data-task-later-count] { display:inline-block; min-width:1.4ch; text-align:left; }
#moplano-app #page .task-workspace .tw-calendar {
  display:grid; grid-template-columns:minmax(86px,.8fr) minmax(0,1.4fr); align-items:center;
  gap:12px; height:44px; min-height:44px;
}
#moplano-app #page .task-workspace .tw-calendar > :is(button,label) {
  height:44px; min-height:44px; margin:0; padding:0; font-size:13px; font-weight:500; line-height:18px;
}
#moplano-app #page .task-workspace .tw-calendar > label { justify-content:flex-end; }
#moplano-app #page .task-workspace .tw-calendar > label span { text-align:right; }
#moplano-app #page .task-workspace [hidden] { display:none !important; }
#moplano-app #page .task-workspace .tw-panel { position:relative; min-width:0; }
#moplano-app #page .task-workspace .tw-content { display:grid; gap:var(--ui-gap,12px); min-width:0; }
/* Data refresh does not change opacity, height, pointer access or list geometry. */
#moplano-app #page .task-workspace .tw-initial { min-height:104px; padding:24px 16px !important; }
#moplano-app #page .task-workspace .tw-placeholder { display:block; width:58%; height:12px; border-radius:6px; background:var(--ui-soft); }
#moplano-app #page .task-workspace .tw-placeholder-short { width:38%; margin-top:18px; }
#moplano-app #page .task-workspace .tw-calendar > label { width:100%; overflow:hidden; }
#moplano-app #page .task-workspace .tw-calendar > label > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#moplano-app #page .task-workspace .tw-calendar input { box-sizing:border-box; margin:0; padding:0; min-width:0; min-height:0; font-size:16px; border-radius:0; }
#moplano-app #page .task-workspace .tw-card {
  margin:0; padding:8px var(--ui-inset,16px) !important; border:0 !important;
  border-radius:var(--ui-radius,18px) !important; background:#fff !important; box-shadow:none !important;
}
#moplano-app #page .task-workspace .tw-section-heading { min-height:44px; padding:6px 0; }
#moplano-app #page .task-workspace .tw-section-heading h2 {
  color:var(--ui-text); font-size:18px !important; font-weight:600 !important; letter-spacing:-.02em !important;
}
#moplano-app #page .task-workspace :is(.tw-agenda-day,.tw-overdue) .tw-section-heading h2 {
  font-size:13px !important; font-weight:500 !important; letter-spacing:normal !important; color:var(--ui-muted);
}
#moplano-app #page .task-workspace :is(.tw-empty-copy,.tw-progress,.tw-empty-note) {
  margin:0; color:var(--ui-muted); font-size:13px; line-height:1.5; overflow-wrap:anywhere;
}
#moplano-app #page .task-workspace .tw-empty-copy { padding:4px 0 12px; }
#moplano-app #page .task-workspace .tw-empty-note { padding:0 0 12px; font-size:12px; }
#moplano-app #page .task-workspace .tw-progress { font-size:12px; padding:0 0 6px; }
#moplano-app #page .task-workspace .tw-completed { border-top:1px solid var(--ui-line); }
#moplano-app #page .task-workspace .tw-completed-card .tw-completed { border:0; }
#moplano-app #page .task-workspace .tw-completed-toggle { font-size:12px; font-weight:400; min-height:44px; }
#moplano-app #page .task-workspace .tw-chevron { transition:transform 160ms ease; }
#moplano-app #page .task-workspace .plan-task-list .task {
  display:grid; grid-template-columns:44px minmax(0,1fr) 16px !important; gap:8px !important;
  min-height:64px !important; padding:8px 0 !important; border-radius:0 !important;
}
#moplano-app #page .task-workspace .plan-task-list .task-main {
  min-width:0; min-height:44px; padding:0 !important; text-align:left; color:var(--ui-text); background:transparent !important;
}
#moplano-app #page .task-workspace .plan-task-list .task-title {
  display:block; -webkit-line-clamp:unset; white-space:normal; overflow-wrap:anywhere;
  font-size:16px !important; font-weight:550 !important; line-height:1.4 !important;
}
#moplano-app #page .task-workspace .plan-task-list .task-meta { margin-top:3px; font-size:12px !important; line-height:1.4 !important; }
#moplano-app #page .task-workspace .plan-task-list .check {
  display:flex !important; align-items:center; justify-content:center; justify-self:start;
  width:44px !important; min-width:44px !important; height:44px !important; padding:0 !important;
  border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important;
  color:var(--ui-muted) !important;
}
#moplano-app #page .task-workspace .plan-task-list .check::after { display:none !important; }
#moplano-app #page .task-workspace .plan-task-list .check svg { width:36px !important; height:36px !important; display:block; }
#moplano-app #page .task-workspace .plan-task-list .check[aria-pressed="true"] { color:var(--ui-accent) !important; }
#moplano-app #page .task-workspace .plan-task-list .check[aria-pressed="true"] circle { fill:var(--ui-soft); }
#moplano-app #page .task-workspace .plan-task-list .task-chevron { display:grid; place-items:center; width:16px !important; height:44px !important; color:#a29d94 !important; }
#moplano-app #page .task-workspace .task-chevron svg { display:block; width:16px; height:16px; }
#moplano-app #page .task-workspace .task-swipe + .task-swipe::before { left:52px; }
#moplano-app #page .task-workspace .tw-card > .tw-more { padding-left:52px; }
#moplano-app #page .task-workspace .task[aria-busy="true"] { pointer-events:none; }
#moplano-app #page .task-workspace .task[aria-busy="true"] .check { opacity:.5; }
@media(prefers-reduced-motion:reduce) {
  #moplano-app #page .task-workspace .tw-tabs::before,
  #moplano-app #page .task-workspace .tw-tab,
  #moplano-app #page .task-workspace .tw-chevron { transition:none !important; }
}
