/* TechStone Field — modules/home.css — Home, Layout A "Next Up", Brand Light (Will, 24 Sep 2026).
 * Sizes are the artboard's (project/Main.dc.html). Home never scrolls: modules/home.js measures the stage
 * and applies .c1, .c2 then .c3 (tighter, never below the 44px target floor) before it folds Later rows into
 * the "+n" link. Same rulings as app.css: no horizontal scroll, nowrap only on short pills and times.
 */
.homeA { gap: 10px; }
.homeA > * { flex: 0 0 auto; }

/* day bar */
.daybar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.kick { font: 700 10.5px/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink); }
.head { font: 700 21px/1.2 var(--f-head); letter-spacing: -.01em; margin-top: 4px; }
.daybar .chip { height: 26px; padding: 0 10px; }
.daybar .chip-wrap { height: auto; min-height: 26px; flex: 0 1 auto; max-width: 45%; }
.home-states { display: flex; flex-direction: column; gap: 6px; }
.home-states:empty { display: none; }

/* week strip */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.d {
  height: 58px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink, var(--basalt));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer;
}
.d .dl { font: 600 10px/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.d .dn { font: 700 16px/1 var(--f-head); }
.d .dots { display: flex; gap: 2px; height: 4px; }
.d .dots i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--copper); }
.d.we { background: transparent; border-color: transparent; }
.d.on { background: var(--copper-solid, var(--basalt)); border-color: var(--copper-solid, var(--basalt)); color: var(--offwhite); }
.d.on .dl { color: var(--gold); }
.d.on .dots i { background: var(--gold); }

/* NEXT card */
.next {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 1px 2px rgba(30, 31, 34, .06);
}
.nrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nrow .chip { height: 26px; padding: 0 10px; }
.nrow .chip-wrap { height: auto; min-height: 26px; max-width: 60%; }
.nlab { font: 700 10.5px/1.2 var(--f-head); letter-spacing: .14em; color: var(--copper-ink); }
.ntime { font: 700 28px/1 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nmain { display: flex; flex-direction: column; gap: 9px; color: inherit; text-decoration: none; min-height: 44px; }
.homeA.c1 .nmain { gap: 7px; }
.nbody { display: flex; flex-direction: column; }
.ntitle {
  font: 600 16px/1.3 var(--f-body);
  color: var(--ink, var(--basalt));
  text-decoration: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.nsub { display: flex; align-items: center; gap: 5px; margin-top: 2px; font: 400 13.5px/1.3 var(--f-body); color: var(--ink-soft); }
.nsub .ic { width: 17px; height: 17px; flex: 0 0 auto; }
.nsub span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.nempty { font: 500 15px/1.4 var(--f-body); color: var(--ink-soft); }
.acts { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 8px; }
.acts .btn { height: 44px; padding: 0 10px; gap: 6px; }
.skel-next { height: 120px; }
.skel-row { height: 50px; margin: 0 14px 12px; }

/* Later today */
.later {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.lh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px 6px; }
.lh h2 { font: 700 10.5px/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.lh .chip { height: 26px; padding: 0 10px; }
.lrow {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  border-top: 1px solid var(--rule-soft);
  color: inherit;
  text-decoration: none;
}
.lrow .tm { font: 700 14px/1 var(--f-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lrow .lt { display: flex; flex-direction: column; }
.lrow .tt, .lrow .ts { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.lrow .tt { font: 600 14px/1.3 var(--f-body); }
.lrow .ts { font: 400 12.5px/1.3 var(--f-body); color: var(--ink-soft); }
.more {
  min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 14px;
  border-top: 1px solid var(--rule-soft);
  font: 600 12.5px/1.2 var(--f-head);
  color: var(--copper-ink);
  text-decoration: none;
  text-align: center;
}
.later-solo .more { display: block; border-top: 0; padding: 13px 14px; text-align: left; line-height: 1.4; }
.more-k { font: 700 10.5px/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-right: 6px; }

/* quick select */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.q {
  height: 72px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink, var(--basalt));
  text-decoration: none;
  font: 600 12.5px/1.15 var(--f-head);
  text-align: center;
}
.qi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.qi .ic { width: 22px; height: 22px; }
.q-off { opacity: .6; }
.qs { font: 500 10.5px/1.1 var(--f-body); color: var(--ink-soft); }

/* c1: tighter, when the artboard's sizes do not leave room for one Later row */
.homeA.c1 { gap: 8px; padding-top: 10px; }
.homeA.c1 .d { height: 48px; gap: 2px; }
.homeA.c1 .next { padding: 12px; gap: 7px; }
.homeA.c1 .q { height: 60px; gap: 4px; }
.homeA.c1 .qi { width: 28px; height: 28px; }
.homeA.c1 .qi .ic { width: 20px; height: 20px; }
.homeA.c1 .lh { padding: 8px 14px 4px; }
.homeA.c1 .lh .chip { height: 22px; }
/* c2: tightest — every target still ≥ 44px */
.homeA.c2 .head { font-size: 18px; margin-top: 2px; }
.homeA.c2 .d { height: 44px; }
.homeA.c2 .ntime { font-size: 22px; }
.homeA.c2 .nrow .chip { height: 22px; }
.homeA.c2 .q { height: 52px; gap: 3px; }
.homeA.c2 .qi { width: 24px; height: 24px; }
.homeA.c2 .qi .ic { width: 18px; height: 18px; }
.homeA.c2 .lrow { height: 46px; }
/* c3: small phones (320 x 568 class). The greeting goes (the date stays in the kicker) and the tile icons
   go (the labels stay); nothing the rep needs is hidden. */
.homeA.c3 { gap: 6px; padding-top: 8px; padding-bottom: 6px; }
.homeA.c3 .head { display: none; }
.homeA.c3 .next { padding: 10px; gap: 5px; }
.homeA.c3 .nmain { gap: 5px; }
.homeA.c3 .q { height: 44px; }
.homeA.c3 .qi { display: none; }

/* Fix Wave E2 (staged launch): fewer tiles when a module is switched off for this person (home.js qn-<n>), and
   the NEXT card's two remaining buttons (acts-2) when Start meeting is not drawn */
.quick.qn-1 { grid-template-columns: minmax(0, 1fr); }
.quick.qn-2, .quick.qn-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acts.acts-2 { grid-template-columns: 1fr 1fr; }

/* the one breakpoint */
@media (min-width: 768px) {
  .quick { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .quick.qn-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick.qn-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick.qn-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick.qn-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .quick.qn-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* update #7: with the Rates tile, admins see 7 (4+3) */
  .d { height: 64px; }
  .ntime { font-size: 32px; }
}
