/* ==========================================================================
   Today — B3.2 presentation (owner-approved visual direction, 16 Oct 2026).
   Scoped to #tm-shell.tm-b32 on app.html: it restyles Today's own content
   slot only, plus a compact shared page heading. It never reaches the Instrument Pill, the
   bottom navigation, the sidebar or any other route. Data, states, copy and
   actions are shared/today-meridian.js's; this layer is presentation.
   Loaded after styles/student-page-frame.css so its scoped rules win without
   touching the frame.
   ========================================================================== */

#tm-shell.tm-b32 {
  --b32-brand: #1f6fd6;
  --b32-brand-2: #1559b0;
  --b32-tint: #eaf2fd;
  --b32-navy: #081f47;
  --b32-navy-2: #12489e;
  --b32-ink: #16233f;
  --b32-slate: #5d6b84;
  --b32-mist: #8a97ad;
  --b32-rule: #dfe4ec;
  --b32-rule-strong: #16233f;
  --b32-open: #f6f8fb;
  --b32-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --b32-time-col: 64px;
  --b32-time-gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--b32-ink);
}
@media (min-width: 860px) {
  #tm-shell.tm-b32 { --b32-time-col: 96px; --b32-time-gap: 20px; }
}
/* Today's own section card: no side inset or clipping, so Today shares the
   page head's left edge (B3.2: one left edge) and the phone photograph can
   reach the screen edge. Today's section only; the frame is untouched. */
/* (style.css pins #section-dashboard.is-active's padding/overflow with
   !important, so this Today-only selector must too.) */
body.app-dashboard #section-dashboard.card-dashboard.is-active:has(#tm-shell.tm-b32) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
}
#tm-shell.tm-b32 ::selection { background: var(--b32-tint); color: var(--b32-navy); }
#tm-shell.tm-b32 a:focus-visible,
#tm-shell.tm-b32 button:focus-visible { outline: 2px solid var(--b32-brand); outline-offset: 3px; border-radius: 3px; }

/* Reuse the existing page-level heading. Keep the placement subtitle out of
   this compact head: the approved masthead already carries those details. */
body.pf-frame-v1 .app-inner.pf-page:not([data-pf-route-host]):has(#section-dashboard.is-active) > .today-header.pf-pagehead {
  display: flex !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
body.pf-frame-v1 .app-inner.pf-page:not([data-pf-route-host]):has(#section-dashboard.is-active) > .today-header.pf-pagehead :is(.pf-pagehead-sub, .pf-pagehead-actions) {
  display: none !important;
}

/* ---- masthead: greeting, the date, Today's case ---- */
#tm-shell.tm-b32 .tm-whisper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main" "case";
  gap: 2px 12px;
  align-items: start;
  margin: 0;
  padding: 0 0 16px;
}
#tm-shell.tm-b32 .tm-whisper-main { grid-area: main; min-width: 0; }
#tm-shell.tm-b32 .tm-whisper-side { display: none; }
#tm-shell.tm-b32 p#tm-greeting { margin: 0; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--b32-slate); }
#tm-shell.tm-b32 p#tm-greeting b { font-weight: 600; color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-b32-date {
  margin: 2px 0 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--b32-brand);
  text-wrap: balance;
}
#tm-shell.tm-b32 .tm-b32-date span { display: block; color: var(--b32-ink); }
#tm-shell.tm-b32 #daily-diagnosis-today-link {
  grid-area: case;
  justify-self: start;
  margin: 10px 0 0;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--b32-brand-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: #b9cdf0;
}
#tm-shell.tm-b32 #daily-diagnosis-today-link[hidden] { display: none; }
#tm-shell.tm-b32 #daily-diagnosis-today-link:hover { text-decoration-color: currentColor; }

/* ---- placement: photograph (a Site info link), credit, summary ---- */
#tm-shell.tm-b32 .tm-hero {
  position: static;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: none;
  isolation: auto;
  color: var(--b32-ink);
}
#tm-shell.tm-b32 .tm-hero-figure {
  display: block;
  margin: 0 calc(-1 * var(--pf-page-gutter, 16px));
  color: inherit;
  text-decoration: none;
}
#tm-shell.tm-b32 .tm-hero-figure[hidden] { display: none; }
#tm-shell.tm-b32 .tm-hero-photo {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  height: 224px;
  background-color: #eef2f8;
  background-size: cover;
  background-position: 50% 40%;
  transition: filter 0.15s;
}
#tm-shell.tm-b32 .tm-hero-figure:hover .tm-hero-photo { filter: brightness(0.96); }
#tm-shell.tm-b32 .tm-hero-credit {
  position: static;
  margin: 0;
  padding: 6px 0 0;
  font-size: 11px;
  color: var(--b32-slate);
  text-align: right;
  background: none;
  text-shadow: none;
}
#tm-shell.tm-b32 .tm-hero-credit[hidden] { display: none; }
#tm-shell.tm-b32 .tm-hero-credit a { color: inherit; }
#tm-shell.tm-b32 .tm-hero-ghost,
#tm-shell.tm-b32 .tm-hero-scrim,
#tm-shell.tm-b32 .tm-hero-hatch,
#tm-shell.tm-b32 .tm-hero-grain,
#tm-shell.tm-b32 .tm-ticker,
#tm-shell.tm-b32 .tm-hero-wk { display: none !important; }
#tm-shell.tm-b32 .tm-hero-cap { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
#tm-shell.tm-b32 .tm-hero-cap-main { min-width: 0; }
#tm-shell.tm-b32 .tm-hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b32-slate);
}
#tm-shell.tm-b32 .tm-hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--tm-site-accent, #b8c2d2); animation: none; }
#tm-shell.tm-b32 .tm-hero-kicker span:empty { display: none; }
#tm-shell.tm-b32 .tm-hero-title {
  margin: 4px 0 0;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--b32-ink);
  overflow-wrap: anywhere;
}
#tm-shell.tm-b32 .tm-hero-sub { margin: 4px 0 0; font-size: 14px; font-weight: 400; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-hero-sub b { color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-hero-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
#tm-shell.tm-b32 .tm-hero-links[hidden] { display: none; }
#tm-shell.tm-b32 .tm-hero-pill {
  position: static;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  padding: 0;
}
#tm-shell.tm-b32 .tm-b32-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--b32-brand-2);
  text-decoration: none;
}
#tm-shell.tm-b32 .tm-b32-link:hover { text-decoration: underline; text-underline-offset: 4px; }
#tm-shell.tm-b32 .tm-b32-link--quiet { font-weight: 500; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-link--quiet b { font-weight: 600; color: var(--b32-ink); margin: 0 2px; }
#tm-shell.tm-b32 .tm-b32-link--quiet:hover,
#tm-shell.tm-b32 .tm-b32-link--quiet:hover b { color: var(--b32-brand-2); }
#tm-shell.tm-b32 .tm-b32-link--sm { min-height: 36px; font-size: 13.5px; }
#tm-shell.tm-b32 .tm-b32-link[hidden] { display: none; }

/* programme phase: a quiet line, not a card */
#tm-shell.tm-b32 .tm-programme {
  margin: 14px 0 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--b32-rule);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
#tm-shell.tm-b32 .tm-programme[hidden] { display: none; }

/* ---- the middle: Now beside Coming up, under one strong rule ---- */
#tm-shell.tm-b32 .tm-b32-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 22px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--b32-rule-strong);
}
#tm-shell.tm-b32 .tm-b32-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b32-ink);
}
#tm-shell.tm-b32 .tm-b32-label .tm-num { margin-left: 8px; letter-spacing: 0.02em; text-transform: none; font-weight: 500; color: var(--b32-slate); }

#tm-shell.tm-b32 .tm-now {
  position: static;
  min-block-size: 0;
  margin: 0;
  padding: 0;
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  z-index: auto;
}
#tm-shell.tm-b32 .tm-b32-row { display: grid; grid-template-columns: var(--b32-time-col) minmax(0, 1fr); column-gap: var(--b32-time-gap); margin-top: 10px; }
#tm-shell.tm-b32 .tm-b32-row--notime { grid-template-columns: minmax(0, 1fr); }
#tm-shell.tm-b32 .tm-b32-time { margin: 0; }
#tm-shell.tm-b32 .tm-b32-time b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-b32-time span { display: block; font-size: 12.5px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-now .tm-b32-time b { color: var(--tm-now-color, var(--b32-ink)); }
#tm-shell.tm-b32 .tm-now--overdue .tm-b32-time b,
#tm-shell.tm-b32 .tm-now--overdue .tm-b32-label { color: #8a5208; }
#tm-shell.tm-b32 .tm-now--recap .tm-b32-time b,
#tm-shell.tm-b32 .tm-now--recap .tm-b32-label { color: #137a40; }
#tm-shell.tm-b32 .tm-b32-figure b { font-size: 20px; }
#tm-shell.tm-b32 .tm-b32-body { min-width: 0; }
#tm-shell.tm-b32 .tm-b32-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; max-width: 28ch; color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-b32-meta { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--b32-slate); max-width: 60ch; }
#tm-shell.tm-b32 .tm-b32-row--notime .tm-b32-title { max-width: 32ch; }
#tm-shell.tm-b32 .tm-now-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#tm-shell.tm-b32 .tm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 0; border-radius: 6px; background: #eef1f6; color: var(--b32-slate); font-size: 12.5px; font-weight: 600; }
#tm-shell.tm-b32 .tm-chip--mand { background: #fdf1df; color: #8a5208; }
#tm-shell.tm-b32 .tm-chip--done { background: #e4f5eb; color: #137a40; }
#tm-shell.tm-b32 .tm-chip svg { width: 14px; height: 14px; }
#tm-shell.tm-b32 .tm-b32-prog { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 14px; max-width: 520px; }
#tm-shell.tm-b32 .tm-b32-bar { position: relative; flex: 1; height: 2px; background: var(--b32-rule); }
#tm-shell.tm-b32 .tm-b32-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tm-now-color, var(--b32-brand)); }
#tm-shell.tm-b32 .tm-b32-prog > span:last-child { font-size: 12.5px; color: var(--b32-slate); white-space: nowrap; }
#tm-shell.tm-b32 .tm-b32-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
#tm-shell.tm-b32 .tm-b32-note { margin: 8px 0 0; font-size: 12.5px; color: var(--b32-slate); }

/* actions (Today's own buttons only) */
#tm-shell.tm-b32 .tm-btn-primary,
#tm-shell.tm-b32 .tm-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  filter: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.08s ease-out;
}
#tm-shell.tm-b32 .tm-btn-primary { border: 1px solid transparent; background: var(--b32-navy); color: #fff; }
#tm-shell.tm-b32 .tm-btn-primary:hover { background: var(--b32-navy-2); color: #fff; }
#tm-shell.tm-b32 .tm-btn-primary svg { width: 18px; height: 18px; stroke: currentColor; }
#tm-shell.tm-b32 .tm-btn-ghost { border: 1px solid var(--b32-rule); background: #fff; color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-btn-ghost:hover { background: var(--b32-open); }
#tm-shell.tm-b32 .tm-btn-primary:active,
#tm-shell.tm-b32 .tm-btn-ghost:active { transform: scale(0.98); }

/* the content-tier access card, in Today's own language */
#tm-shell.tm-b32 .tm-now--access .pfpac { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-now--access .pfpac__top { padding: 0; gap: 0; background: none; border: 0; }
#tm-shell.tm-b32 .tm-now--access .pfpac__ic { display: none; }
#tm-shell.tm-b32 .tm-now--access .pfpac__title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-now--access .pfpac__lead { margin: 6px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.5; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-now--access .pfpac__body { padding: 16px 0 0; gap: 10px; }
#tm-shell.tm-b32 .tm-now--access .pfpac__btns { flex-direction: row; flex-wrap: wrap; gap: 10px 12px; }
#tm-shell.tm-b32 .tm-now--access .pfpac__sent { flex: 1 0 100%; font-size: 15px; font-weight: 600; color: #137a40; }
#tm-shell.tm-b32 .tm-now--access .pfpac__btn {
  min-height: 44px; padding: 0 18px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.25; box-shadow: none; filter: none;
}
#tm-shell.tm-b32 .tm-now--access .pfpac__btn--pri { background: var(--b32-navy); color: #fff; border: 1px solid transparent; }
#tm-shell.tm-b32 .tm-now--access .pfpac__btn--pri:hover { background: var(--b32-navy-2); }
#tm-shell.tm-b32 .tm-now--access .pfpac__btn--sec { background: #fff; color: var(--b32-ink); border: 1px solid var(--b32-rule); }
#tm-shell.tm-b32 .tm-now--access .pfpac__btn--sec:hover { background: var(--b32-open); }

/* ---- Coming up ---- */
#tm-shell.tm-b32 .tm-glance {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--b32-rule);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
#tm-shell.tm-b32 .tm-glance[hidden] { display: none; }
#tm-shell.tm-b32 .tm-b32-up-list { margin: 8px 0 0; padding: 0; list-style: none; }
#tm-shell.tm-b32 .tm-b32-up-list > li + li { border-top: 1px solid var(--b32-rule); }
#tm-shell.tm-b32 .tm-b32-up {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  grid-template-areas: "when when" "main chev";
  column-gap: var(--b32-time-gap);
  align-items: start;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s, transform 0.08s ease-out;
}
#tm-shell.tm-b32 .tm-b32-up:hover { background: #f8fafd; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
#tm-shell.tm-b32 .tm-b32-up:active { transform: scale(0.992); }
#tm-shell.tm-b32 .tm-b32-up-when { grid-area: when; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin-bottom: 2px; line-height: 1.2; font-size: 12.5px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-up-when b { font-size: 13.5px; font-weight: 600; color: var(--b32-ink); letter-spacing: -0.01em; }
#tm-shell.tm-b32 .tm-b32-up-when > *:not(:last-child)::after { content: " ·"; color: var(--b32-mist); }
#tm-shell.tm-b32 .tm-b32-up-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#tm-shell.tm-b32 .tm-b32-up-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-b32-up-why { font-size: 12.5px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-up:not(.tm-b32-up--primary) .tm-b32-up-why { display: none; }
#tm-shell.tm-b32 .tm-b32-chev { grid-area: chev; align-self: center; width: 18px; height: 18px; color: var(--b32-mist); transition: transform 0.18s var(--b32-ease); }
#tm-shell.tm-b32 .tm-b32-up:hover .tm-b32-chev { color: var(--b32-ink); transform: translateX(2px); }
#tm-shell.tm-b32 .tm-b32-up--primary { padding: 12px 0; }
#tm-shell.tm-b32 .tm-b32-up--primary .tm-b32-up-title { font-size: 17px; letter-spacing: -0.012em; }
#tm-shell.tm-b32 .tm-b32-up.is-today .tm-b32-up-when b { color: var(--b32-brand-2); }
#tm-shell.tm-b32 .tm-b32-up:hover .tm-b32-up-title { color: var(--b32-brand-2); }
#tm-shell.tm-b32 .tm-b32-up-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 6px 0 0; padding-top: 6px; }
#tm-shell.tm-b32 .tm-b32-up-foot .tm-num { color: var(--b32-ink); }

/* ---- Your day ---- */
#tm-shell.tm-b32 .tm-spine {
  display: block;
  margin: 24px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--b32-rule-strong);
  background: none;
}
#tm-shell.tm-b32 .tm-spine[hidden] { display: none; }
#tm-shell.tm-b32 .tm-b32-day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
#tm-shell.tm-b32 .tm-b32-day-meta { margin: 0; font-size: 13px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-agenda { margin: 6px 0 0; padding: 0; list-style: none; }
#tm-shell.tm-b32 .tm-b32-slot { border-top: 1px solid var(--b32-rule); transition: background-color 0.15s; }
#tm-shell.tm-b32 .tm-b32-agenda > li:first-child { border-top: 0; }
#tm-shell.tm-b32 .tm-b32-slot-h {
  width: 100%;
  display: grid;
  grid-template-columns: var(--b32-time-col) minmax(0, 1fr) 18px;
  column-gap: var(--b32-time-gap);
  align-items: start;
  margin: 0;
  padding: 14px 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.08s ease-out, background-color 0.15s;
}
#tm-shell.tm-b32 .tm-b32-slot--preview .tm-b32-slot-h { grid-template-columns: var(--b32-time-col) minmax(0, 1fr); cursor: default; }
#tm-shell.tm-b32 .tm-b32-slot--preview .tm-b32-time b,
#tm-shell.tm-b32 .tm-b32-slot--preview .tm-b32-slot-title { color: var(--b32-slate); font-weight: 500; }
#tm-shell.tm-b32 .tm-b32-slot:not(.is-open):not(.tm-b32-slot--preview) .tm-b32-slot-h:hover { background: #f8fafd; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
#tm-shell.tm-b32 .tm-b32-slot-h:active { transform: scale(0.992); }
#tm-shell.tm-b32 .tm-b32-slot-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#tm-shell.tm-b32 .tm-b32-slot-title { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
#tm-shell.tm-b32 .tm-b32-slot-meta { font-size: 14px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-slot-status { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
#tm-shell.tm-b32 .tm-b32-slot-status:empty { display: none; }
#tm-shell.tm-b32 .tm-b32-slot-h > .tm-b32-chev { grid-column: 3; grid-row: 1; }
#tm-shell.tm-b32 .tm-b32-status { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
#tm-shell.tm-b32 .tm-b32-status svg { width: 14px; height: 14px; }
#tm-shell.tm-b32 .tm-b32-status--ok { color: #137a40; }
#tm-shell.tm-b32 .tm-b32-status--warn { color: #9b261c; }
#tm-shell.tm-b32 .tm-b32-status--mand { color: #8a5208; }
#tm-shell.tm-b32 .tm-b32-status--muted { color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-slot.is-open .tm-b32-chev { transform: rotate(90deg); color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-b32-slot--past .tm-b32-time b,
#tm-shell.tm-b32 .tm-b32-slot--past .tm-b32-slot-title,
#tm-shell.tm-b32 .tm-b32-slot--cancelled .tm-b32-time b,
#tm-shell.tm-b32 .tm-b32-slot--cancelled .tm-b32-slot-title { color: var(--b32-slate); font-weight: 500; }
#tm-shell.tm-b32 .tm-b32-slot--current .tm-b32-time b { color: var(--tm-slot, var(--b32-brand)); }
#tm-shell.tm-b32 .tm-b32-nowtag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--tm-slot, var(--b32-brand)); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
#tm-shell.tm-b32 .tm-b32-slot.is-open { margin: 0 -14px; padding: 0 14px; border-radius: 10px; background: var(--b32-open); border-top-color: transparent; }
#tm-shell.tm-b32 .tm-b32-slot.is-open + li { border-top-color: transparent; }
#tm-shell.tm-b32 .tm-b32-d[hidden] { display: none; }
#tm-shell.tm-b32 .tm-b32-d > div { padding-left: calc(var(--b32-time-col) + var(--b32-time-gap)); padding-bottom: 4px; }
#tm-shell.tm-b32 .tm-b32-d-meta { margin: 0; padding-top: 2px; font-size: 14px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-weave { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--b32-ink); }
#tm-shell.tm-b32 .tm-b32-d-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 16px; }
#tm-shell.tm-b32 .tm-b32-hint { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-hint--warn { color: #9b261c; font-weight: 600; }
#tm-shell.tm-b32 .tm-b32-d-act .tm-btn-primary,
#tm-shell.tm-b32 .tm-b32-d-act .tm-btn-ghost { min-height: 36px; padding: 0 14px; font-size: 14px; }
#tm-shell.tm-b32 .tm-b32-gap { padding: 8px 0 8px calc(var(--b32-time-col) + var(--b32-time-gap)); border-top: 1px solid var(--b32-rule); font-size: 13px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--b32-rule); font-size: 13.5px; color: var(--b32-slate); }
#tm-shell.tm-b32 .tm-b32-end p { margin: 0; }

/* ---- wider screens ---- */
@media (min-width: 860px) {
  #tm-shell.tm-b32 .tm-whisper { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main case"; align-items: end; padding: 14px 0 18px; }
  #tm-shell.tm-b32 #daily-diagnosis-today-link { justify-self: end; margin: 0 0 10px; }
  #tm-shell.tm-b32 p#tm-greeting { font-size: 16px; }
  #tm-shell.tm-b32 .tm-b32-date { font-size: 56px; }
  #tm-shell.tm-b32 .tm-b32-date span { display: inline; }
  #tm-shell.tm-b32 .tm-hero-figure { margin: 0; border-radius: 4px; overflow: hidden; }
  #tm-shell.tm-b32 .tm-hero-photo { height: 296px; }
  #tm-shell.tm-b32 .tm-hero-cap { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 0 32px; padding-top: 14px; }
  #tm-shell.tm-b32 .tm-hero-links { flex: none; flex-direction: column; align-items: flex-end; gap: 0; padding-bottom: 2px; }
  #tm-shell.tm-b32 .tm-hero-links .tm-b32-link { min-height: 32px; }
  #tm-shell.tm-b32 .tm-hero-title { font-size: 32px; }
  #tm-shell.tm-b32 .tm-b32-mid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 0; padding-top: 14px; }
  #tm-shell.tm-b32 .tm-now { padding-right: 36px; }
  #tm-shell.tm-b32 .tm-glance { padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--b32-rule); }
  #tm-shell.tm-b32 .tm-b32-up { grid-template-columns: 92px minmax(0, 1fr) 18px; grid-template-areas: "when main chev"; column-gap: 14px; }
  #tm-shell.tm-b32 .tm-b32-up-when { flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; }
  #tm-shell.tm-b32 .tm-b32-up-when > *:not(:last-child)::after { content: none; }
  #tm-shell.tm-b32 .tm-b32-up-when span { font-size: 12px; }
  #tm-shell.tm-b32 .tm-b32-up-kind { display: none; }
  #tm-shell.tm-b32 .tm-b32-up--primary .tm-b32-up-when b { font-size: 16px; }
  #tm-shell.tm-b32 .tm-b32-up:not(.tm-b32-up--primary) .tm-b32-up-why { display: block; }
  #tm-shell.tm-b32 .tm-b32-time b { font-size: 22px; }
  #tm-shell.tm-b32 .tm-b32-row { margin-top: 12px; }
  #tm-shell.tm-b32 .tm-b32-title,
  #tm-shell.tm-b32 .tm-now--access .pfpac__title { font-size: 28px; }
  #tm-shell.tm-b32 .tm-b32-day-head { justify-content: space-between; }
  #tm-shell.tm-b32 .tm-spine { margin-top: 26px; padding-top: 14px; }
  #tm-shell.tm-b32 .tm-b32-slot-h { padding: 16px 0; grid-template-columns: var(--b32-time-col) minmax(0, 1fr) auto 18px; }
  #tm-shell.tm-b32 .tm-b32-slot-status { grid-column: 3; grid-row: 1; align-self: center; margin: 0; }
  #tm-shell.tm-b32 .tm-b32-slot-h > .tm-b32-chev { grid-column: 4; }
  #tm-shell.tm-b32 .tm-b32-slot.is-open { margin: 0 -16px; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #tm-shell.tm-b32 .tm-b32-chev,
  #tm-shell.tm-b32 .tm-b32-up,
  #tm-shell.tm-b32 .tm-b32-slot-h,
  #tm-shell.tm-b32 .tm-btn-primary,
  #tm-shell.tm-b32 .tm-btn-ghost,
  #tm-shell.tm-b32 .tm-hero-photo { transition: none; }
}
