/* Home-only refinement. Existing creation controls retain their 44px hit areas. */
.page[data-page="today"] {
  --home-space: 12px;
  --home-inset: 16px;
}
.page[data-page="today"] .today-hero,
.page[data-page="today"] .today-tasks-card,
.page[data-page="today"] .today-finance-card,
.page[data-page="today"] .today-goals-card {
  border-radius: 18px !important;
  box-shadow: none !important;
}
.page[data-page="today"] .today-hero { padding: 12px var(--home-inset) !important; }
.page[data-page="today"] .today-hero .today-hero-greeting > h1 {
  font-size: clamp(21px, 5.3vw, 24px) !important;
  font-weight: 550 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em;
}
.page[data-page="today"] .today-section-header { margin-bottom: 3px !important; }
.page[data-page="today"] .today-section-header h2,
.page[data-page="today"] .today-section-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em;
}
.page[data-page="today"] .today-tasks-card,
.page[data-page="today"] .today-finance-card,
.page[data-page="today"] .today-goals-card { padding: 10px var(--home-inset) 14px !important; }
.page[data-page="today"] .today-tasks-card.is-empty,
.page[data-page="today"] .today-finance-card.is-empty { padding-bottom: 13px !important; }
.page[data-page="today"] .today-task-empty {
  display: block !important;
  padding: 0 !important;
}
.page[data-page="today"] .today-task-empty .empty-title,
.page[data-page="today"] .today-finance-empty {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: #78736c !important;
}
.page[data-page="today"] .home-tasks-completed-note {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #526b55;
}
.page[data-page="today"] .today-section-add .moplano-plus-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  stroke-width: 1.6;
}
.page[data-page="today"] .home-pro-chip {
  min-width: 64px;
  height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  border-color: #bdcbb6;
  background: #dfe7d9;
  color: #496044;
  gap: 5px;
  font-weight: 650;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.page[data-page="today"] .home-pro-name { letter-spacing: .06em; }
.page[data-page="today"] .home-pro-chip .home-pro-tail { font-size: 13px; color: #607457; }
.page[data-page="today"] .home-pro-chip::after { inset: -8px -4px; }
.page[data-page="today"] .home-pro-chip.is-active {
  background: #d8e4d2;
  border-color: #aabda3;
  color: #3f6045;
}
/* One 64px row rhythm for Money, Daily, and Result goals. */
.page[data-page="today"] .today-goals-card { padding-bottom: 8px !important; }
.page[data-page="today"] .goals-simple-home-row {
  gap: 12px;
  align-items: center;
  height: 64px;
  min-height: 64px;
  padding: 0 !important;
  border-bottom-color: #f0eee9;
}
.page[data-page="today"] .goals-simple-home-leading {
  display: grid;
  place-items: center;
  width: 32px;
  flex: 0 0 32px;
  padding: 0;
}
.page[data-page="today"] .goals-simple-home-body { flex: 1; min-width: 0; }
.page[data-page="today"] .goals-simple-home-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 20px 17px 3px;
  column-gap: 8px;
  row-gap: 3px;
  align-content: center;
  width: 100%;
  height: 64px;
  min-height: 64px;
  padding: 9px 0 !important;
}
.page[data-page="today"] .goals-simple-home-copy { display: contents; }
.page[data-page="today"] .goals-simple-home-copy > b {
  grid-area: 1 / 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 550;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page[data-page="today"] .goals-simple-home-copy > small {
  grid-area: 2 / 1 / 3 / -1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 17px;
  font-variant-numeric: tabular-nums;
  color: #78736c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page[data-page="today"] .goals-simple-home-copy > .progress-track,
.page[data-page="today"] .home-goal-progress-placeholder {
  display: block;
  grid-area: 3 / 1 / 4 / -1;
  height: 3px;
  margin: 0;
}
.page[data-page="today"] .home-goal-progress-placeholder { visibility: hidden; }
.page[data-page="today"] .goals-simple-home-side { grid-area: 1 / 2; align-self: center; }
.page[data-page="today"] .goals-simple-home-icon,
.page[data-page="today"] .goals-simple-home-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f3f4f0;
  color: #7b8475;
  box-shadow: none;
}
.page[data-page="today"] .goals-simple-home-check {
  position: relative;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.page[data-page="today"] .goals-simple-home-check::after {
  content: "";
  position: absolute;
  inset: -6px;
}
.page[data-page="today"] .goals-simple-home-check.is-pending {
  background: #e7eee3;
  color: #4f6b48;
  box-shadow: inset 0 0 0 1px #a4b49a;
}
.page[data-page="today"] .goals-simple-home-check svg,
.page[data-page="today"] .goals-simple-home-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.page[data-page="today"] .home-goal-today-status.is-pending { color: #4f6b48; font-weight: 550; }
.page[data-page="today"] .goals-simple-home-check.is-done { background: #eaf0e9; color: #526b55; box-shadow: inset 0 0 0 1px #a4b49a; }
.page[data-page="today"] .goals-simple-home-check:disabled { cursor: default; opacity: .55; }
.page[data-page="today"] .goals-simple-home-check[aria-busy="true"] { opacity: .6; }
.page[data-page="today"] .home-goal-today-status.is-done { color: #526b55; }
.page[data-page="today"] .goals-simple-home-check:active:not(:disabled) { background: #e4ecdf; }
@media (max-width: 360px) {
  .page[data-page="today"] { --home-inset: 14px; }
  .page[data-page="today"] .goals-simple-home-row { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .page[data-page="today"] .goals-simple-home-check { transition: none; }
}

.page[data-page="today"] .today-finance-card.is-empty .today-section-header { margin-bottom: 3px !important; }
.page[data-page="today"] .today-finance-card.is-empty .today-money-tile b.is-zero { color: #555950 !important; }
.page[data-page="today"] .today-finance-card.is-empty .today-finance-empty { margin-top: 4px !important; }
.page[data-page="today"] .today-hero .today-hero-summary { margin-top: 4px !important; }

/* 0.9.221: useful day context and compact empty states, scoped to Home. */
#moplano-app #page[data-page="today"] .today-hero-meta-line {
  display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:baseline; gap:0 8px;
}
#moplano-app #page[data-page="today"] .today-hero-meta-line .today-hero-summary { flex:0 0 auto; }
#moplano-app #page[data-page="today"] .home-day-status {
  flex:1 1 170px; min-width:0; margin:4px 0 0; color:var(--ui-muted);
  font-size:12px; line-height:1.4; font-weight:400; overflow-wrap:anywhere;
}
#moplano-app #page[data-page="today"] .home-day-status[hidden] { display:none !important; }
#moplano-app #page[data-page="today"] .home-section-period { color:var(--ui-muted); font-size:12px; font-weight:400; letter-spacing:0; white-space:nowrap; }
#moplano-app #page[data-page="today"] :is(.today-tasks-card,.today-finance-card).is-empty { padding:8px var(--home-inset) 10px !important; }
#moplano-app #page[data-page="today"] :is(.today-tasks-card,.today-finance-card).is-empty .today-section-header { min-height:32px !important; margin-bottom:2px !important; }
#moplano-app #page[data-page="today"] :is(.today-tasks-card,.today-finance-card).is-empty .today-section-add {
  width:32px !important; min-width:32px !important; height:32px !important; min-height:32px !important; flex-basis:32px !important;
}
#moplano-app #page[data-page="today"] :is(.today-tasks-card,.today-finance-card).is-empty .today-section-add::after { inset:-6px !important; }
#moplano-app #page[data-page="today"] .today-finance-card.is-empty .today-money-tile { padding-top:4px !important; padding-bottom:4px !important; }
#moplano-app #page[data-page="today"] .goals-simple-home-row { height:auto; min-height:64px; }
#moplano-app #page[data-page="today"] .goals-simple-home-main { height:auto; min-height:64px; grid-template-rows:20px auto 3px; }
#moplano-app #page[data-page="today"] .goals-simple-home-copy > small {
  white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  line-height:17px; overflow:hidden; overflow-wrap:anywhere;
}
