/* ==========================================================================
   CALENDAR ON HOME (home-today.js, 9 Nov 2026), the top row it shares with the brief (#homeTop), and Home's right
   column (#homeSide, H11). Kit parts only: the panel card, the week strip and day agenda (ui/components/week), the
   link button; tokens only.
   ========================================================================== */

/* The top row: the brief and the calendar. On a phone plain flow (the calendar under the brief); on a desktop side by
   side, about 1.35 : 1, the same height; the calendar alone takes the row when the person has no agent of their own. */
.home-top{min-inline-size:0}
@container deskhome (width >= 640px){
  body.desk #homeTop{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);column-gap:var(--verser-stat-gap);
    align-items:stretch}
  body.desk #homeTop:not(:has(>#homeBrief:not(.hidden))){grid-template-columns:minmax(0,1fr)}
  body.desk #homeTop>.home-panel{margin-block-start:0;min-inline-size:0}
  /* The row's own 12px over it, as a card's on a phone, so the greeting is 16px over it (the head's 4px + 12px). */
  body.desk #homeTop{margin-block-start:var(--vx-sp-3)}
}

/* The right column on a desktop: My tasks and Getting started stacked in the slot My tasks had alone
   (desktop.css places it by its own selector before; #homeSide takes that place now). On a phone it is plain flow. */
.home-side{min-inline-size:0}
.home-side>.home-panel:last-child{margin-block-end:0}
@container deskhome (width >= 640px){
  body.desk #homeScreen>#homeSide{grid-column:2;grid-row:-4/-1;align-self:stretch;display:flex;flex-direction:column}
  /* The column reaches the foot of the page (B5): its last card shown takes the room left under it. */
  body.desk #homeSide>:nth-last-child(1 of .home-panel:not(.hidden)){flex:1 1 auto}
}

/* The card (the kit's panel): the date as its title, the count of today's meetings beside it, the week (the week strip
   of ui/components/week, kept: the kit has a month calendar, not a week strip), today's rows. */
.home-cal-count{flex:none;font-variant-numeric:tabular-nums}
.home-cal-count:empty{display:none}
#homeCalList:empty{display:none}
.home-cal-time{flex:none;min-inline-size:3.2em;font-variant-numeric:tabular-nums}
.home-cal-open{min-block-size:var(--tap-min)}
.home-cal-actions{flex:none}

/* The honest lines: nothing left today, a failed read, and Connect calendar as one quiet button. */
.home-cal-note{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vx-sp-1) var(--vx-sp-3);margin:0}
.home-cal-note.hidden{display:none}
