/* Task workspace and shopping surfaces use the same tokens as Home. */
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .tasks-heading h1 {
  font-size:27px !important; font-weight:600 !important; line-height:1.15 !important;
}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .collection-header-count {
  background:var(--mono-strong); color:var(--mono-on-strong);
}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .tw-content {gap:12px;}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .tw-day-summary {
  display:grid; gap:10px; padding:14px 16px; border-radius:12px;
  background:var(--mono-strong); color:var(--mono-on-strong);
}
.tw-day-summary h2 {
  margin:0; color:inherit; font-size:13px; font-weight:550;
  line-height:1.2; text-transform:uppercase; letter-spacing:.08em;
}
.tw-summary-main {display:flex; align-items:center; gap:12px; min-height:52px;}
.tw-summary-main > svg,.tw-ring {width:48px; height:48px; flex:none; color:var(--mono-mark);}
.tw-summary-main > div {display:grid; gap:3px; min-width:0;}
.tw-summary-main b {font-size:16px; font-weight:600;}
.tw-summary-main small,.tw-day-summary > p {color:inherit; font-size:13px; line-height:1.3;}
.tw-day-summary > p {
  display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0;
  padding-top:8px; border-top:1px solid color-mix(in srgb,var(--mono-on-strong) 26%,transparent);
}
.tw-ring {position:relative;display:grid;place-items:center;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;}
.tw-ring svg {position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.5;transform:rotate(-90deg);}
.tw-ring circle:first-child {opacity:.25;}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .tw-section-heading h2 {
  font-size:16px !important; font-weight:550 !important;
}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .tw-agenda-day .tw-section-heading h2 {
  font-size:14px !important; font-weight:550 !important;
}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .task-workspace .plan-task-list .task {
  display:grid; grid-template-columns:44px minmax(0,1fr) 44px !important; min-height:54px !important;
}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .task-workspace .plan-task-list .task-title {
  white-space:normal; overflow:visible; overflow-wrap:anywhere; font-size:15px !important; font-weight:550 !important;
}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .task-workspace .plan-task-list .task-meta {font-size:12px !important;}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .plan-task-list :is(.task-toggle,.task-date-action,.task-main) {
  min-height:44px; min-width:0;
}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .task-workspace .plan-task-list .task-toggle {
  width:44px !important;height:44px !important;min-width:44px !important;
}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .task-date-action {
  display:grid;place-items:center;width:44px;border:0;padding:0;background:transparent;color:var(--ui-accent);border-radius:var(--ui-control-radius);
}
.task-date-action svg,.task-priority-flag svg {width:18px;height:18px;}
.task-priority-flag {display:inline-flex;margin-inline-start:5px;color:var(--ui-accent);vertical-align:middle;}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .tw-calendar [data-action="task-pick-day"] {
  display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:0;padding-inline:8px;
}
.tw-calendar [data-action="task-pick-day"] svg {width:18px;height:18px;flex:none;}
html #moplano-app[data-design="monolith"] #page[data-page="plan"] .task-workspace .plan-task-list .task-toggle svg {width:32px!important;height:32px!important;stroke-width:1.2!important;}
html #moplano-app[data-design="monolith"] .task-form-refined-screen #task-form .item-reminder-toggle {min-height:54px !important;}
html #moplano-app[data-design="monolith"] .task-form-refined-screen #task-form .task-quiet-row {min-height:48px !important;}
html #moplano-app[data-design="monolith"] .task-form-refined-screen #task-form .task-quiet-title-field input {min-height:48px !important;}

html #moplano-app .task-refinement-sheet {
  display:flex !important;align-items:flex-end;justify-content:center;
  background:var(--ui-bg)!important;padding-bottom:var(--pwa-form-keyboard-overlap,0px)!important;
}
html #moplano-app .task-refinement-sheet > .entity-form-panel {
  width:min(100%,520px)!important;height:auto!important;max-height:100%;
  border-radius:16px 16px 0 0;background:var(--surface)!important;
}
html body#moplano-app .task-refinement-sheet .entity-form-topbar {
  padding:4px 16px !important;background:var(--surface)!important;
}
html body#moplano-app .task-refinement-sheet .entity-form-top-title {font-size:17px;font-weight:600;}
html body#moplano-app .task-refinement-sheet .entity-form-scroll {
  padding:10px 16px max(12px,env(safe-area-inset-bottom)) !important;background:var(--surface)!important;
}
html body#moplano-app .task-refinement-sheet.pwa-form-keyboard .entity-form-scroll {padding-bottom:8px!important;}
html body#moplano-app .task-refinement-sheet .entity-form-intro:empty {display:none;}
html body#moplano-app .task-refinement-sheet .entity-form-scroll::after {display:none!important;}
.task-refinement-sheet [hidden] {display:none!important;}
html #moplano-app .task-refinement-sheet :is(button,input):focus-visible,
html #moplano-app .tr-quick button:focus-visible {outline:2px solid var(--ui-accent);outline-offset:1px;}
html #moplano-app .task-refinement-sheet [data-entity-form-body] button,
html #moplano-app .task-review-screen [data-tr-quick] {
  min-height:44px; border:0; background:transparent; color:var(--ui-accent); font:inherit;
  line-height:1.25; border-radius:var(--ui-control-radius);
}
.task-refinement-sheet svg {width:20px;height:20px;flex:none;}
.tm-presets {display:grid;}
html #moplano-app .tm-presets button {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;text-align:start;}
.tm-presets button + button {border-top:1px solid var(--ui-line)!important;}
.tm-presets small {font-size:13px;color:var(--ui-muted);text-align:end;}
.tm-calendar-head {display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center;gap:4px;}
.tm-calendar-head strong {font-size:16px;font-weight:550;}
.tm-calendar-head button {padding:0;}
.tm-calendar-head button:first-child svg {transform:rotate(180deg);}
.tm-calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;margin-inline:-12px;}
.tm-calendar-grid > span {font-size:12px;color:var(--ui-muted);padding-block:4px;}
html #moplano-app .tm-calendar-grid button {position:relative;min-width:0;padding:0;display:grid;place-items:center;font-size:14px;}
.tm-calendar-grid button[aria-current="date"] {background:var(--ui-soft)!important;font-weight:650!important;}
.tm-calendar-grid button[aria-pressed="true"] {box-shadow:inset 0 0 0 1px var(--ui-accent);}
.tm-calendar-grid button > i {position:absolute;bottom:4px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--ui-accent);}
html #moplano-app .task-quick-overlay {
  padding:0;z-index:480;background:transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
.task-quick-shade {position:absolute;inset:0;background:rgb(35 37 30 / 26%);}
.task-quick-stage {
  position:absolute;inset-inline:0;top:var(--tm-visible-top,0px);height:var(--tm-visible-height,100dvh);
  display:flex;align-items:flex-end;justify-content:center;
  padding-top:max(8px,env(safe-area-inset-top));box-sizing:border-box;
}
html #moplano-app .task-quick-overlay .task-quick-panel {
  width:min(100%,520px);max-height:100%;padding:8px 16px max(14px,env(safe-area-inset-bottom));
  box-sizing:border-box;border-radius:18px 18px 0 0;opacity:1;background:var(--surface);
  color:var(--ui-text);box-shadow:none;scrollbar-gutter:auto;
}
html #moplano-app .task-quick-overlay.tm-keyboard .task-quick-panel {padding-bottom:12px;}
.task-quick-panel .modal-handle {width:30px;height:4px;margin:0 auto 2px;background:var(--ui-line);}
.task-quick-panel header {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;margin-bottom:6px;}
.task-quick-panel h2 {grid-column:2;margin:0;text-align:center;font-size:17px;font-weight:600;}
.task-quick-panel svg {width:19px;height:19px;flex:none;}
html #moplano-app .task-quick-panel button {
  min-height:44px;padding:0 8px;border:0;border-radius:var(--ui-control-radius);background:transparent;
  color:var(--ui-accent);font:inherit;font-size:14px;
}
html #moplano-app .task-quick-panel header button {display:grid;place-items:center;}
.task-quick-panel :is(button,input):focus-visible {outline:2px solid var(--ui-accent);outline-offset:1px;}
.task-quick-panel [hidden] {display:none!important;}
.tm-quick-form {display:grid;gap:8px;}
html #moplano-app .tm-quick-form input[name="title"] {
  width:100%;min-width:0;min-height:46px;padding:8px 10px;box-sizing:border-box;
  border:1px solid var(--ui-line);border-radius:var(--ui-control-radius);background:var(--surface);
  color:var(--ui-text);font:inherit;font-size:16px;
}
.tm-quick-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) 44px 44px;gap:8px;}
html #moplano-app .tm-quick-fields button {display:flex;align-items:center;justify-content:center;gap:8px;padding-inline:8px;background:var(--ui-bg);}
html #moplano-app .tm-quick-fields [aria-pressed="true"] {background:var(--ui-soft);}
.tm-quick-date {margin:0;color:var(--ui-muted);font-size:13px;}
html #moplano-app .task-quick-panel .tm-primary {width:100%;background:var(--ui-accent);color:#fff;font-weight:600;}
html #moplano-app .tm-primary:disabled {opacity:.55;}
.tr-quick {display:flex;flex-wrap:wrap;gap:0 7px;margin-inline-start:32px;}
html #moplano-app .task-review-screen .tr-quick button {padding-inline:4px;font-size:12px;}
html #moplano-app .task-review-screen .tr-row [data-tr-quick="edit"] {padding:0;text-align:left;overflow-wrap:anywhere;font-size:15px;color:var(--ui-text);}

html #moplano-app .shopping-screen :is(.shop-list-card,.shop-items,.shop-bought,.shop-empty,.shop-form-card) {border:0;}
html #moplano-app .shopping-screen :is(.shop-list-text strong,.shop-item-name strong) {
  white-space:normal;text-overflow:clip;overflow-wrap:anywhere;font-weight:550;
}
html #moplano-app .shopping-screen .shop-item.is-bought strong {
  text-decoration-thickness:1px; text-decoration-color:color-mix(in srgb,var(--ui-muted) 55%,transparent);
}
html #moplano-app .shopping-screen .shop-check svg {width:32px;height:32px;stroke-width:1.2;}
.shop-check[aria-pressed="true"] circle {fill:var(--ui-soft);}
html #moplano-app .shopping-screen .shop-list-metric [data-shop-percent] {color:var(--mono-mark);}
html #moplano-app .shopping-screen .shop-unknown-cost > span {color:color-mix(in srgb,var(--mono-on-strong) 76%,transparent);font-size:12px;font-weight:400;}
html #moplano-app .shopping-screen .shop-item {grid-template-columns:44px minmax(0,1fr);}
html #moplano-app .shopping-screen .shop-item-name {
  grid-template-columns:minmax(0,1fr) minmax(0,auto) 16px;align-items:center;gap:6px;padding-inline-end:0;
}
.shop-item-copy {display:grid;gap:2px;min-width:0;}
.shop-item-chevron {display:grid;place-items:center;color:var(--ui-muted);}
.shop-item-chevron svg {width:16px;height:16px;}
.shop-category h3 {display:flex;align-items:center;gap:6px;}
.shop-category h3 svg {width:16px;height:16px;flex:none;}
html #moplano-app .shopping-screen .shop-bought summary,
html #moplano-app .shopping-screen .shop-bought [data-shop-done-count] {
  color:var(--ui-muted);font-size:13px;font-weight:400;
}
html #moplano-app .shopping-screen .shop-bought [data-shop-done-count] {margin:0;}
html #moplano-app .shopping-screen .shop-composer {
  padding:4px;gap:4px;border-radius:24px;background:var(--surface);box-sizing:border-box;
}
html #moplano-app .shopping-screen .shop-composer input[name="quick"] {padding-inline:12px;border:0;background:transparent;}
html #moplano-app .shopping-screen .shop-composer:has(input:focus-visible) {outline:1px solid var(--ui-accent);outline-offset:2px;}
html #moplano-app .shopping-screen .shop-composer input[name="quick"]:focus-visible {outline:none;}
html #moplano-app .shopping-screen .shop-composer .shop-add {border-radius:50%;}
html #moplano-app .shopping-screen .shop-composer .shop-add:disabled {background:var(--ui-line);color:var(--ui-muted);opacity:1;}
.shop-category-suggestion {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.shop-category-suggestion small {color:var(--ui-muted);font-size:13px;}
html #moplano-app .shopping-screen .shop-icon-picker {padding:0;gap:8px;}
html #moplano-app .shopping-screen .shop-icon-picker legend {margin-bottom:6px;color:var(--ui-text);font-size:15px;font-weight:550;}
html #moplano-app .shopping-screen .shop-icon-choice > span {min-height:58px;border:0;border-radius:var(--ui-control-radius);}
html #moplano-app .shopping-screen .shop-icon-choice input:checked + span {color:var(--ui-accent);background:var(--ui-soft);box-shadow:inset 0 0 0 1px var(--ui-accent);}
