/* Explicit custom controls prevent iOS WebKit from painting native gray buttons. */
#moplano-app #page[data-page="today"] :where(.home-overview button:not(.task-swipe-delete):not(.task-swipe-move)) {
  appearance:none; -webkit-appearance:none; box-sizing:border-box;
  margin:0; padding:0; border:0; border-radius:0;
  background:transparent; box-shadow:none; color:var(--ui-text);
  font:inherit; line-height:inherit; text-decoration:none;
  cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
#moplano-app #home-focus-form :where(button) {
  appearance:none; -webkit-appearance:none; box-sizing:border-box;
  margin:0; border:0; border-radius:0; background:transparent; box-shadow:none;
  color:var(--ui-accent); font:inherit; line-height:inherit; text-decoration:none;
  cursor:pointer; touch-action:manipulation;
}
/* Home overview uses the shared palette and navigation, with contextual actions. */
#moplano-app #page[data-page="today"] .home-overview { display:grid; gap:12px; min-width:0; align-content:start; }
#moplano-app #page[data-page="today"] .home-overview > * { min-width:0; margin:0; }
#moplano-app #page[data-page="today"] .home-overview-header { padding:10px 2px 7px; background:transparent; }
#moplano-app #page[data-page="today"] .home-overview-header h1 { margin:0; color:var(--ui-text); font-size:clamp(21px,5.3vw,24px); font-weight:550; line-height:1.25; letter-spacing:-.025em; overflow-wrap:anywhere; }
#moplano-app #page[data-page="today"] .home-overview-header p { margin:5px 0 0; color:var(--ui-muted); font-size:12px; line-height:1.5; }
#moplano-app #page[data-page="today"] .home-overview > .card { padding:4px 16px !important; border-radius:18px !important; background:#fff !important; border:0 !important; box-shadow:none !important; }
#moplano-app #page[data-page="today"] .home-section-header { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:48px; }
#moplano-app #page[data-page="today"] .home-section-header h2 { flex:1; min-width:0; margin:0 !important; color:var(--ui-text); font-size:17px !important; line-height:1.35; font-weight:550 !important; }
#moplano-app #page[data-page="today"] .home-section-header h2 button { min-height:44px; padding:0; font:inherit; color:inherit; text-align:left; }
#moplano-app #page[data-page="today"] .home-section-header h2 small { color:var(--ui-muted); font-size:12px; font-weight:400; white-space:nowrap; }
#moplano-app #page[data-page="today"] .home-context-add { display:flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; padding:8px; color:var(--ui-text); border:0; background:none; }
#moplano-app #page[data-page="today"] .home-context-add svg { width:23px; height:23px; }
#moplano-app #page[data-page="today"] .home-text-action { min-height:44px; padding:8px 0 8px 6px; color:var(--ui-accent); font:inherit; font-size:12px; white-space:nowrap; }
#moplano-app #page[data-page="today"] .home-day-summary { margin:0 0 3px; padding:0 0 6px; color:var(--ui-muted); font-size:12px; line-height:1.5; }
#moplano-app #page[data-page="today"] .home-day-list { margin:0; padding:0; gap:0; }
#moplano-app #page[data-page="today"] .home-day-list .home-task-row { display:flex; align-items:center; min-height:64px; gap:8px !important; padding:8px 0 !important; background:var(--surface-solid,#fff) !important; border:0; box-shadow:none; }
#moplano-app #page[data-page="today"] .home-day-list .task-main { min-width:0; flex:1; padding:0; text-align:left; background:none; box-shadow:none; }
#moplano-app #page[data-page="today"] .home-day-list .home-task-copy .task-title { font-size:15px !important; line-height:1.35 !important; font-weight:550; white-space:normal !important; overflow-wrap:anywhere; }
#moplano-app #page[data-page="today"] .home-day-list .home-task-copy .task-meta { font-size:12px !important; line-height:1.5 !important; color:var(--ui-muted); }
#moplano-app #page[data-page="today"] .home-day-list .home-task-chevron { color:var(--ui-muted); font-size:21px; font-weight:400; }
#moplano-app #page[data-page="today"] .home-daily-action { position:relative; box-sizing:border-box; display:flex; align-items:center; min-height:64px; gap:8px; padding:8px 0; border:0; }
#moplano-app #page[data-page="today"] .home-daily-check { display:flex; align-items:center; justify-content:center; min-width:44px; width:44px; height:44px; padding:0; margin:0; flex:0 0 44px; color:var(--ui-muted); }
#moplano-app #page[data-page="today"] .home-daily-check svg { display:block; width:36px; min-width:36px; height:36px; flex:0 0 36px; stroke-width:1.1; }
#moplano-app #page[data-page="today"] .home-daily-check[aria-pressed="true"] { color:var(--ui-accent); }
#moplano-app #page[data-page="today"] .home-daily-check[aria-busy="true"] { opacity:.5; }
#moplano-app #page[data-page="today"] .home-daily-main { display:grid; grid-template-columns:minmax(0,1fr) 16px; align-items:center; gap:10px; flex:1; min-width:0; min-height:44px; padding:0; text-align:left; }
#moplano-app #page[data-page="today"] .home-daily-main b { display:block; font-size:15px; font-weight:550; line-height:1.35; overflow-wrap:anywhere; }
#moplano-app #page[data-page="today"] .home-daily-main small { display:block; margin-top:3px; font-size:12px; line-height:1.5; color:var(--ui-muted); }
#moplano-app #page[data-page="today"] .home-daily-action.done b { color:var(--ui-text); text-decoration:none; }
#moplano-app #page[data-page="today"] :is(.home-disclosure,.home-past-row) { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:44px; padding:10px 0; color:var(--ui-muted); font:inherit; font-size:12px; text-align:left; }
#moplano-app #page[data-page="today"] .home-past-row { border-top:1px solid var(--ui-line); }
#moplano-app #page[data-page="today"] .home-past-row span:last-child { color:var(--ui-accent); white-space:nowrap; }
#moplano-app #page[data-page="today"] .home-state { padding:1px 0 12px; font-size:13px; line-height:1.5; color:var(--ui-muted); }
#moplano-app #page[data-page="today"] .home-state p { margin:0 0 3px; }
#moplano-app #page[data-page="today"] .home-state button { min-height:44px; padding:8px 0; color:var(--ui-accent); font:inherit; }
#moplano-app #page[data-page="today"] .home-money-summary { display:block; width:100%; padding:2px 0 14px; text-align:left; }
#moplano-app #page[data-page="today"] .home-money-summary > span:first-child { color:var(--ui-muted); font-size:12px; }
#moplano-app #page[data-page="today"] .home-money-summary > b { display:block; margin:5px 0 7px; color:var(--ui-text); font-size:27px; font-weight:550; line-height:1.2; letter-spacing:-.025em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#moplano-app #page[data-page="today"] .home-money-summary > b.is-over-budget { color:#a85c43; }
#moplano-app #page[data-page="today"] .home-money-summary > small { display:block; margin-top:8px; color:var(--ui-muted); font-size:12px; line-height:1.4; }
#moplano-app #page[data-page="today"] .home-budget-track { display:block; height:3px; border-radius:3px; background:var(--ui-line); overflow:hidden; }
#moplano-app #page[data-page="today"] .home-budget-track > span { display:block; height:100%; background:var(--ui-accent); opacity:.7; }
#moplano-app #page[data-page="today"] .home-payment-row { display:flex; align-items:center; gap:8px; width:100%; min-height:62px; padding:8px 0 10px; border:0; text-align:left; }
#moplano-app #page[data-page="today"] .home-payment-row > span { flex:1; min-width:0; }
#moplano-app #page[data-page="today"] .home-payment-row b { display:block; font-size:13px; font-weight:500; line-height:1.4; overflow-wrap:anywhere; }
#moplano-app #page[data-page="today"] .home-payment-row small { display:block; color:var(--ui-muted); font-size:12px; margin-top:3px; }
#moplano-app #page[data-page="today"] .home-payment-row strong { font-weight:550; font-size:13px; font-variant-numeric:tabular-nums; }
#moplano-app #page[data-page="today"] .home-payment-row i { font-style:normal; color:var(--ui-muted); }
#moplano-app #page[data-page="today"] .home-section-link { width:100%; min-height:44px; padding:10px 0; border-top:1px solid var(--ui-line); color:var(--ui-accent); text-align:left; font:inherit; font-size:12px; }
#moplano-app #page[data-page="today"] .home-overview button:focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
#moplano-app #home-focus-form { display:flex; flex-direction:column; gap:12px; }
#moplano-app .home-focus-count { color:var(--ui-muted); font-size:13px; margin:0; }
#moplano-app .home-focus-choice { display:flex; align-items:center; gap:12px; min-height:64px; padding:12px 0; border-bottom:1px solid var(--ui-line); }
#moplano-app .home-focus-choice input { appearance:auto; -webkit-appearance:checkbox; width:22px; height:22px; min-width:22px; margin:0; accent-color:var(--ui-accent); }
#moplano-app .home-focus-choice span { min-width:0; }
#moplano-app .home-focus-choice b { display:block; font-size:15px; font-weight:550; overflow-wrap:anywhere; }
#moplano-app .home-focus-choice small { display:block; color:var(--ui-muted); font-size:12px; margin-top:3px; }
#moplano-app #home-focus-form .home-focus-save { min-height:48px; padding:12px; border:0; border-radius:12px; background:var(--ui-accent); color:#fff; font:inherit; font-weight:550; }
#moplano-app #home-focus-form .home-focus-save:disabled { opacity:.5; }
#moplano-app .home-focus-missing { font-size:13px; color:var(--ui-muted); }
#moplano-app #home-focus-form .home-focus-missing button { min-height:44px; padding:8px 0; color:var(--ui-accent); text-align:left; }
#moplano-app .home-focus-screen [hidden] { display:none !important; }
@media(max-width:360px) { #moplano-app #page[data-page="today"] .home-overview > .card { padding-inline:14px !important; } #moplano-app #page[data-page="today"] .home-section-header h2 { font-size:16px !important; } }
/* Equal 44px buttons with distinct circular/square 24px completion marks. */
#moplano-app #page[data-page="today"] .home-day-list .home-day-task-check { display:flex !important; align-items:center !important; justify-content:center !important; position:static; width:44px !important; min-width:44px !important; height:44px !important; flex:0 0 44px !important; padding:0 !important; margin:0 !important; border:0 !important; border-radius:0 !important; background:none !important; color:var(--ui-muted) !important; }
#moplano-app #page[data-page="today"] .home-day-list .home-day-task-check::after { display:none; }
#moplano-app #page[data-page="today"] .home-day-list .home-day-task-check svg { display:block; width:36px; min-width:36px; height:36px; flex:0 0 36px; }
#moplano-app #page[data-page="today"] .home-day-list .home-day-task-check[aria-pressed="true"] { color:var(--ui-accent) !important; }
#moplano-app #page[data-page="today"] .home-day-list .home-day-task-check[aria-pressed="true"] circle { fill:var(--ui-soft); }
#moplano-app #page[data-page="today"] .home-task-priority { display:inline-block; width:5px; height:5px; border-radius:50%; background:#b9785f; margin:0 0 2px 6px; vertical-align:middle; }

/* Selected Graphite design. The 32px badge retains a 44px tap area. */
#moplano-app #page[data-page="today"] .home-overview-header {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; column-gap:12px;
}
#moplano-app #page[data-page="today"] .home-greeting-copy { min-width:0; }
#moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip {
  appearance:none; -webkit-appearance:none; box-sizing:border-box; position:relative;
  display:inline-flex; align-items:center; justify-content:center; flex:none; gap:4px;
  width:56px; min-width:56px; height:32px; min-height:32px; margin:0; padding:0 8px;
  border:0; border-radius:10px; background:#303c32; box-shadow:none;
  color:#faf9f2; font:500 11px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:0; white-space:nowrap; text-decoration:none; cursor:pointer;
  transition:background-color .15s ease;
}
#moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip::after {
  content:""; position:absolute; inset:-6px 0;
}
#moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip .home-pro-tail {
  display:none; color:inherit; font-size:10px; font-weight:500; line-height:1; margin:0; letter-spacing:0;
}
#moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip.is-active {
  background:#303c32; color:#faf9f2;
}
#moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip:active {
  background:#253027; transform:none;
}
#moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip:focus-visible {
  outline:2px solid var(--ui-accent); outline-offset:3px;
}
@media (prefers-reduced-motion:reduce) {
  #moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip { transition:none; }
}

#moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip .home-pro-name { letter-spacing:.12em; }
#moplano-app #page[data-page="today"] .home-overview-header .home-pro-chip.is-active .home-pro-tail { display:inline-block; }

/* Home audit: common row rhythm and clear, unclipped actions. */
#moplano-app #page[data-page="today"] .home-day-summary.is-complete { color:var(--ui-accent); }
#moplano-app #page[data-page="today"] .home-daily-copy { min-width:0; }
#moplano-app #page[data-page="today"] .home-day-list > :is(.home-daily-action,.task-swipe) + :is(.home-daily-action,.task-swipe)::before {
  content:""; position:absolute; inset:0 0 auto 52px; height:1px; background:var(--ui-line); pointer-events:none; z-index:2;
}
#moplano-app #page[data-page="today"] .home-chevron { display:block; width:16px; min-width:16px; height:16px; flex:0 0 16px; color:#a29d94; }
#moplano-app #page[data-page="today"] .home-chevron.is-down { transform:rotate(90deg); }
#moplano-app #page[data-page="today"] .home-chevron.is-up { transform:rotate(-90deg); }
#moplano-app #page[data-page="today"] .home-task-chevron { display:grid; place-items:center; }
#moplano-app #page[data-page="today"] .home-completed-toggle { margin-top:2px; }
#moplano-app #page[data-page="today"] .home-day-list[hidden] { display:none !important; }
#moplano-app #page[data-page="today"] .home-past-row { flex-wrap:wrap; }
#moplano-app #page[data-page="today"] .home-past-row span:last-child { display:inline-flex; align-items:center; gap:4px; }
#moplano-app #page[data-page="today"] .home-payment { border-top:1px solid var(--ui-line); padding-top:10px; }
#moplano-app #page[data-page="today"] .home-payment-label { margin:0; color:var(--ui-muted); font-size:11px; line-height:1.45; }
#moplano-app #page[data-page="today"] .home-payment-row strong { max-width:58%; text-align:right; overflow-wrap:anywhere; }
#moplano-app #page[data-page="today"] .home-payment-row:disabled { opacity:.55; }
#moplano-app #page[data-page="today"] .home-focus-row {
  display:grid; grid-template-columns:44px minmax(0,1fr) 16px; align-items:center; column-gap:8px;
  box-sizing:border-box; width:100%; min-height:68px; padding:10px 0; text-align:left; position:relative;
}
#moplano-app #page[data-page="today"] .home-focus-row + .home-focus-row::before { content:""; position:absolute; inset:0 0 auto 52px; height:1px; background:var(--ui-line); }
#moplano-app #page[data-page="today"] .home-focus-leading { display:grid; place-items:center; width:44px; }
#moplano-app #page[data-page="today"] .home-focus-leading > span { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; color:#7b8475; background:#f3f4f0; }
#moplano-app #page[data-page="today"] .home-focus-leading svg { display:block; width:20px; height:20px; }
#moplano-app #page[data-page="today"] .home-focus-copy { min-width:0; }
#moplano-app #page[data-page="today"] .home-focus-title { display:flex; align-items:baseline; gap:8px; }
#moplano-app #page[data-page="today"] .home-focus-title b { min-width:0; flex:1; font-size:15px; font-weight:550; line-height:1.35; overflow-wrap:anywhere; }
#moplano-app #page[data-page="today"] .home-focus-title > span { flex:none; color:var(--ui-muted); font-size:12px; font-variant-numeric:tabular-nums; }
#moplano-app #page[data-page="today"] .home-focus-copy > small { display:block; color:var(--ui-muted); font-size:12px; line-height:1.45; margin-top:3px; white-space:normal; overflow-wrap:anywhere; }
#moplano-app #page[data-page="today"] .home-focus-progress { display:block; height:3px; border-radius:3px; background:var(--ui-line); overflow:hidden; margin-top:7px; }
#moplano-app #page[data-page="today"] .home-focus-progress > span { display:block; height:100%; background:var(--ui-accent); opacity:.7; }
