/* Home (plan 60, home.js): the first screen, like the Square Dashboard's home. A grid of cards: two or three
   columns on a computer, one on a phone. The cards use the app's own tokens (app.css), never a second look. */
.view-home .home-head { align-items: flex-end; }
.view-home .home-head .page-where { margin: 0 0 2px; font-size: var(--t-footnote); color: var(--fade); }
.view-home .home-custom { flex: none; margin-left: auto; }
.home { display: grid; gap: 16px; min-width: 0; max-width: 72rem; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 16px; align-items: start; }
.home-card { display: grid; gap: 12px; min-width: 0; padding: 16px; background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04); }
.home-card > h2 { margin: 0; font-size: var(--t-headline); font-weight: 600; color: var(--ink); letter-spacing: 0; }
.home-in { display: grid; gap: 10px; min-width: 0; }
.home-empty { justify-items: start; }
/* Quick actions: big round icons with their word, four in a row at most. */
.home-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); gap: 8px; }
.home-action { display: grid; justify-items: center; gap: 6px; min-height: 88px; padding: 10px 4px; border-radius: 12px; background: var(--fill); color: var(--ink); font-size: var(--t-subhead); font-weight: 600; text-align: center; line-height: 1.2; }
.home-action-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: #fff; }
.home-action-icon svg { width: 20px; height: 20px; }
@media (hover: hover) { .home-action:hover { background: var(--fill-2); } }
.home-action:active { opacity: .7; }
/* Lists inside a card: the app's rows, no second background. */
.home-list.list { background: none; }
.home-list .item { min-height: 52px; }
.home-booking { display: flex; align-items: center; gap: 10px; }
.home-open { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.home-open .grow { display: grid; gap: 2px; min-width: 0; }
.home-open b, .home-open .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-time { flex: none; min-width: 4.5em; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-more { justify-self: start; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; }
.home-more svg { width: 14px; height: 14px; }
.home-calm { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--fade); }
.home-calm svg { width: 18px; height: 18px; color: var(--green, #1a7f57); }
/* Money in: two big numbers side by side. */
.home-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-kpi { display: grid; gap: 2px; }
.home-kpi b { font-size: var(--t-title2); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
/* The Setup checklist (guide.js LB.guideCard). */
.home-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
/* Customize: one row per card, a tick to show it, up and down to order it. */
.home-edit .home-edit-row { display: flex; align-items: center; gap: 6px; min-height: 52px; }
.home-edit-name { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.home-edit-name input { width: 20px; height: 20px; }
.home-edit .icon-btn:disabled { opacity: .3; }
@media (max-width: 767px) {
  .home-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-kpi b { font-size: var(--t-title2); }
}

/* Home's cards on the Dashboard (2026-10-19): Customize sits at the right, over the cards; a gap before the numbers. */
.home-tools { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.home + .rtop, .home ~ .rtop { margin-top: 24px; }
