/* ThatcherHQ — app-specific styles. Everything shared lives in kit/kit.css. */
:root { --tk-tint-light: #007AFF; --tk-tint-dark: #0A84FF; }

.hq-signin-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 32px 28px; }
.hq-signin-head img { border-radius: 18px; margin-bottom: 10px; }
.hq-signin-head h1, .hq-signin-head p { margin: 0; }
.hq-signin-error { color: var(--tk-red); min-height: 1.2rem; }

.hq-offline {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  top: calc(var(--tk-safe-t) + 6px);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 0.765rem; font-weight: 600; color: var(--tk-label-2);
}
.hq-offline[hidden] { display: none; }

/* Colour swatches (Reminders' list-colour picker) */
.hq-swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 0; }
.hq-swatch { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--c); }
.hq-swatch::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.hq-swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--tk-bg-cell), 0 0 0 5px var(--c); }
.tk-sheet .hq-swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--tk-bg-elevated-cell), 0 0 0 5px var(--c); }

/* Wi-Fi QR */
.hq-qr { display: grid; place-items: center; margin: 4px auto 24px; }
.hq-qr svg { width: 200px; height: 200px; background: #fff; padding: 14px; border-radius: 24px; }

/* Poll result bar */
.hq-bar { display: block; height: 4px; border-radius: 2px; background: var(--tk-fill-3); margin-top: 6px; overflow: hidden; }
.hq-bar span { display: block; height: 100%; border-radius: 2px; background: var(--tk-orange); transition: width .4s var(--tk-ease); }

/* Calendar list view: time column + calendar colour bar, like Calendar's List */
.hq-ev { gap: 10px; }
.hq-ev-time { flex: none; width: 3.4rem; font-size: 0.882rem; color: var(--tk-label); }
.hq-ev-bar { flex: none; width: 4px; align-self: stretch; min-height: 32px; border-radius: 2px; }
.hq-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 0; margin-right: 4px; }

/* Kid › Today: Fitness-style Activity card */
.hq-rings-card { flex-direction: row; align-items: center; gap: 20px; padding: 16px 20px; margin: 0 var(--tk-margin); }
.hq-ring-legend { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hq-ring-legend > div { display: flex; flex-direction: column; line-height: 1.15; }
.hq-say { flex: none; color: var(--tk-tint); }
.hq-new { display: inline-block; font-size: 0.706rem; font-weight: 600; color: #fff; background: var(--tk-tint); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.hq-points-card { margin: 0 var(--tk-margin); padding: 16px 20px; }
.hq-points { font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--tk-label); margin: 4px 0; }
/* Mood check-in: five big choices */
.hq-moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 var(--tk-margin) 32px; }
.hq-mood { flex: 0 0 calc((100% - 16px) / 3); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; min-height: 88px; border-radius: 16px; background: var(--tk-bg-cell); font-size: 0.882rem; font-weight: 500; transition: transform .2s var(--tk-ease), box-shadow .2s; }
.hq-mood span { font-size: 2rem; line-height: 1; }
.hq-mood[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--tk-tint); color: var(--tk-tint); }
@media (prefers-reduced-motion: no-preference) { .hq-mood:active { transform: scale(.96); } }

.tk-button:disabled { opacity: .45; }

/* ================= Wall Display (kiosk) — from shared/thatcher-kit/preview/kiosk.html ================= */
  

  /* Wall display — modelled on the iPad Home Screen widget grid (layout) and StandBy (night clock). */
  .kiosk {
    position: fixed; inset: 0; overflow: auto;
    padding: calc(var(--tk-safe-t) + 20px) calc(var(--tk-safe-r) + 20px) calc(var(--tk-safe-b) + 20px) calc(var(--tk-safe-l) + 20px);
    background: var(--tk-bg-grouped);
  }
  .k-grid {
    display: grid; gap: 14px; height: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    /* Landscape: everything on one screen — rows share the height, nothing scrolls */
    grid-template-rows: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.45fr) minmax(0, 0.62fr);
    grid-template-areas:
      "clock clock weather notes notes parcels"
      "rings rings rings   rings next  next"
      "dinner dinner points points next next"
      "count count lunch bins sos wifi";
  }
  @media (max-width: 1000px), (orientation: portrait) {
    .k-grid {
      height: auto;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-template-rows: none; grid-auto-rows: minmax(110px, auto);
      grid-template-areas:
        "clock clock weather weather"
        "notes notes notes notes"
        "rings rings rings rings"
        "next next dinner dinner"
        "next next points points"
        "count count lunch bins"
        "parcels parcels sos wifi";
    }
  }
  /* Widgets: solid, like Home Screen widgets — glass is kept for the things that float */
  .w {
    position: relative; min-width: 0; overflow: hidden;
    background: var(--tk-bg-cell); border-radius: 24px; padding: 14px 18px;
    display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--tk-label);
    transition: transform 0.2s var(--tk-ease);
  }
  button.w:active { transform: scale(0.98); }
  .w-head { display: flex; align-items: center; gap: 6px; font-size: 0.765rem; line-height: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--c, var(--tk-label-2)); }
  .w-head .tk-icon { width: 0.95rem; height: 0.95rem; }
  .w-big { font-family: var(--tk-font-round); font-weight: 600; letter-spacing: 0; }

  .w-clock { grid-area: clock; justify-content: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
  .w-clock .time { font-size: clamp(56px, 7.2vw, 96px); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
  .w-clock .date { font-size: 1.176rem; font-weight: 600; color: var(--tk-label-2); }
  .w-clock .bday { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--tk-pink); margin-top: 4px; }
  .w-weather { grid-area: weather; background: var(--tk-blue); color: #fff; }
  .w-weather .w-head { color: rgba(255,255,255,0.9); }
  .w-weather .temp { font-size: 3rem; line-height: 1; }
  .w-notes { grid-area: notes; --c: #C99A00; }
  .w-notes .note { font-size: 1.176rem; line-height: 1.5rem; font-weight: 600; flex: 1; transition: opacity 0.3s linear; }
  .w-notes .dots { display: flex; gap: 5px; }
  .w-notes .dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--tk-fill); }
  .w-notes .dots span.on { background: var(--tk-label-2); }
  .w-bins { grid-area: bins; }
  .w-parcels { grid-area: parcels; cursor: pointer; }
  .w-parcels .num { font-size: 2.6rem; line-height: 1; }
  .w-parcels-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .w-rings { grid-area: rings; }
  .w-next { grid-area: next; }
  .w-dinner { grid-area: dinner; }
  .w-points { grid-area: points; }
  .w-count { grid-area: count; }
  .w-lunch { grid-area: lunch; }
  .w-sos { grid-area: sos; }
  .w-wifi { grid-area: wifi; }

  .kids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; align-items: center; }
  .kid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; border-radius: 18px; padding: 6px 0; }
  .kid:active { background: var(--tk-fill-3); }
  .kid .name { font-weight: 600; }
  .kid .count { font-size: 0.882rem; color: var(--tk-label-2); font-variant-numeric: tabular-nums; }
  .legend { display: flex; gap: 14px; font-size: 0.765rem; color: var(--tk-label-2); }
  .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; }

  .cal-day { font-size: 0.765rem; font-weight: 700; color: var(--tk-red); text-transform: uppercase; letter-spacing: 0.02em; }
  .cal-date { font-size: 2.2rem; line-height: 1; margin-bottom: 4px; }
  .ev { display: flex; gap: 10px; padding: 6px 0; }
  .ev .bar { width: 4px; border-radius: 2px; flex: none; }
  .ev .t { font-weight: 600; }
  .ev .s { font-size: 0.882rem; color: var(--tk-label-2); }
  .ev-sep { font-size: 0.765rem; font-weight: 700; color: var(--tk-label-2); text-transform: uppercase; margin-top: 6px; }

  .poll { display: flex; flex-direction: column; gap: 6px; }
  .poll-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
  .poll-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--tk-fill-3); overflow: hidden; }
  .poll-bar span { display: block; height: 100%; border-radius: 3px; background: var(--tk-orange); }

  .lb { display: flex; flex-direction: column; gap: 2px; flex: 1; justify-content: space-around; }
  .lb-row { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 2px 6px; margin: 0 -6px; width: calc(100% + 12px); border-radius: 12px; }
  .lb-row:active { background: var(--tk-fill-3); }
  .lb-rank { width: 1.2rem; text-align: center; font-weight: 700; color: var(--tk-label-3); }
  .lb-pts { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
  .lb-today { font-size: 0.765rem; color: var(--tk-label-2); }

  .strike-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
  .strike-row .dots { margin-left: auto; display: flex; gap: 5px; }
  .strike-row .dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--tk-fill-2); }
  .strike-row .dots span.on { background: var(--tk-red); }

  .w-count .num { font-size: 2.4rem; line-height: 1; }
  .w-small { justify-content: space-between; gap: 4px; }
  .w-clock .time { font-size: clamp(56px, min(7vw, 12vh), 104px); }
  .lb-row .dots { display: flex; gap: 4px; margin-left: auto; }
  .lb-row .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--tk-fill-2); }
  .lb-row .dots span.on { background: var(--tk-red); }
  .lb-pts { margin-left: 12px; min-width: 2.4rem; text-align: right; }

  /* Night mode: dark appearance + a dimming layer (web pages can't change the iPad's backlight) */
  .k-dim { position: fixed; inset: 0; z-index: 90; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.2s linear; }
  body.is-night .w-weather { background: #0A3D7A; }
  .qr { display: grid; place-items: center; padding: 8px 0 4px; }
  .qr svg, .qr img { width: 200px; height: 200px; background: #fff; padding: 12px; border-radius: 20px; }

  .w-dinner, .w-lunch, .w-bins, .w-sos, .w-wifi { cursor: pointer; }
  .w-notes .note { transition: opacity 0.3s linear; }

/* Planners: status pill (tinted like Reminders' flag/priority chips) and the budget grid */
.hq-status { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; margin: -6px 0; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); position: relative; }
.hq-status::after { content: ""; position: absolute; inset: -6px -4px; } /* 44pt hit area */
.hq-money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 var(--tk-margin) 32px; }
/* Rings scale with the screen height so 4 kids always fit (iPad mini → iPad Pro, landscape) */
.kiosk .kid .tk-activity-rings { width: clamp(64px, 11.5vh, 104px); height: auto; }
.kiosk .kid { gap: 4px; padding: 4px 0; }
.kiosk .lb-row .tk-avatar { width: clamp(24px, 3.6vh, 32px); height: clamp(24px, 3.6vh, 32px); }
/* Shorter landscape iPads (mini, 10.2"): tighter widget padding so everything still fits */
@media (orientation: landscape) and (max-height: 820px) {
  .kiosk { padding: calc(var(--tk-safe-t) + 14px) calc(var(--tk-safe-r) + 14px) calc(var(--tk-safe-b) + 14px) calc(var(--tk-safe-l) + 14px); }
  .k-grid { gap: 10px; }
  .w { padding: 10px 14px; gap: 4px; }
  .w-weather .temp { font-size: clamp(1.8rem, 5.5vh, 3rem); }
  .kiosk .kid .tk-activity-rings { width: clamp(60px, 10.5vh, 96px); }
  .w-small .tk-subhead { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
}
.w-count .cd-line, .w-parcels .cd-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.w-count .cd-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w-count .num { font-size: clamp(1.7rem, 5.2vh, 2.4rem); flex: none; }

/* Edit Today: drag handle (Fitness › Edit Summary) */
.hq-handle { flex: none; width: 44px; height: 44px; margin: -10px -12px -10px 0; font-size: 1.3rem; color: var(--tk-label-3); touch-action: none; cursor: grab; }
.hq-sortable li.is-dragging { position: relative; z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,.18); background: var(--tk-bg-cell); }

/* ---------- Celebrations (Fitness award reveal; see CELEBRATIONS.md) ---------- */
.hq-award {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; background: var(--tk-bg-grouped); color: var(--tk-label);
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  opacity: 0; transition: opacity 0.25s linear;
}
.hq-award.is-in { opacity: 1; }
.hq-award.is-out { opacity: 0; transition-duration: 0.2s; }
.hq-award-stage { position: relative; width: 244px; height: 244px; display: grid; place-items: center; margin-bottom: 20px; }
.hq-award-rings { position: absolute; inset: 0; }
/* The medal. Fitness awards are physical objects, so this one has depth: a face lit from top-left,
   a ridged rim, an engraved glyph and one shine as it lands. All tones come from the child's colour.
   (Deliberate exception to the kit's no-gradients rule: it's an object, not UI chrome.) */
.hq-medal {
  position: relative; display: grid; place-items: center; flex: none; width: var(--m); height: var(--m); border-radius: 50%; color: #fff; overflow: hidden;
  background: color-mix(in srgb, var(--c) 78%, #000);
  box-shadow: 0 calc(var(--m) * 0.07) calc(var(--m) * 0.16) color-mix(in srgb, var(--c) 38%, transparent), 0 1px 2px rgb(0 0 0 / 0.22);
}
.hq-medal-rim {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg,
    color-mix(in srgb, var(--c) 45%, #fff), color-mix(in srgb, var(--c) 85%, #000) 12%, var(--c) 25%, color-mix(in srgb, var(--c) 55%, #fff) 38%,
    color-mix(in srgb, var(--c) 75%, #000) 52%, var(--c) 64%, color-mix(in srgb, var(--c) 45%, #fff) 78%, color-mix(in srgb, var(--c) 80%, #000) 90%,
    color-mix(in srgb, var(--c) 45%, #fff));
}
.hq-medal-face {
  position: absolute; inset: calc(var(--m) * 0.085); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c) 58%, #fff) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 74%, #000) 100%);
  box-shadow: inset 0 calc(var(--m) * 0.012) calc(var(--m) * 0.02) rgb(255 255 255 / 0.45), inset 0 calc(var(--m) * -0.02) calc(var(--m) * 0.04) rgb(0 0 0 / 0.28), 0 0 0 1px rgb(0 0 0 / 0.12);
}
.hq-medal-face .tk-icon { width: 50%; height: 50%; }
.hq-medal-face .tk-icon, .hq-medal-age { filter: drop-shadow(0 calc(var(--m) * 0.01) calc(var(--m) * 0.01) rgb(0 0 0 / 0.28)); }
.hq-medal-sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 32%, rgb(255 255 255 / 0.55) 48%, rgb(255 255 255 / 0.1) 56%, transparent 66%);
}
.hq-award:not(.is-still).is-in .hq-medal-sheen { animation: hq-sheen 0.9s ease-out 1.05s both; }
@keyframes hq-sheen { from { opacity: 1; transform: translateX(-110%); } 85% { opacity: 1; } to { opacity: 0; transform: translateX(110%); } }

/* Wall Display birthday: room-sized, with a wash of the birthday child's colour and two still halos. */
.hq-award.is-wall { background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--c) 24%, var(--tk-bg-grouped)) 0%, var(--tk-bg-grouped) 64%); gap: 10px; }
.hq-award.is-wall .hq-award-stage { width: 340px; height: 340px; transform: none; margin: 0 0 72px; }
.hq-award.is-wall h2 { font-size: clamp(2.6rem, 6.4vh, 4.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.hq-award.is-wall .hq-award-message { font-size: clamp(1.2rem, 2.8vh, 1.6rem); max-width: none; }
.hq-award.is-wall .hq-award-eyebrow { font-size: clamp(1rem, 2.2vh, 1.25rem); }
.hq-award.is-wall .hq-award-done { margin-top: 36px; }
.hq-award-halo { position: absolute; inset: -5%; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--c) 35%, transparent); pointer-events: none; }
.hq-award-halo.is-outer { inset: -14%; border-width: 2px; border-color: color-mix(in srgb, var(--c) 18%, transparent); }
.hq-award.is-wall:not(.is-still).is-in .hq-award-halo { animation: hq-breathe 4s ease-in-out 1.2s infinite; }
.hq-award.is-wall:not(.is-still).is-in .hq-award-halo.is-outer { animation-delay: 1.6s; }
@keyframes hq-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: 0.6; } }
@media (orientation: landscape) and (max-height: 820px) { .hq-award.is-wall .hq-award-stage { width: 280px; height: 280px; margin-bottom: 56px; } .hq-award.is-wall { --m: 250px !important; } }
.hq-medal-age { font-family: var(--tk-font-round); font-weight: 700; font-size: calc(var(--m) * 0.5); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hq-award-eyebrow { color: var(--c); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.hq-award h2 { margin: 0; }
.hq-award-message { margin: 0; max-width: 30ch; }
.hq-award-done { margin-top: 28px; min-width: min(280px, 100%); }
/* iPad and the wall display: a bigger medal, read from across the room. */
@media (min-width: 900px) and (min-height: 700px) {
  .hq-award-stage { transform: scale(1.35); margin: 40px 0 56px; }
  .hq-award h2 { font-size: 2.4rem; line-height: 1.15; }
}
.hq-award:not(.is-still).is-in .hq-medal { animation: hq-medal-in 1.15s var(--tk-ease) both; }
.hq-award:not(.is-still).is-in h2, .hq-award:not(.is-still).is-in .hq-award-message, .hq-award:not(.is-still).is-in .hq-award-eyebrow { animation: hq-rise 0.5s var(--tk-ease) 0.45s both; }
.hq-award:not(.is-still).is-in .hq-award-stage::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 3px solid var(--c); pointer-events: none;
  animation: hq-pulse 0.9s ease-out 0.45s both;
}
@keyframes hq-medal-in {
  0% { transform: perspective(700px) scale(0.35) rotateY(-200deg); opacity: 0; }
  45% { opacity: 1; }
  70% { transform: perspective(700px) scale(1.07) rotateY(12deg); }
  100% { transform: perspective(700px) scale(1) rotateY(0deg); }
}
@keyframes hq-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hq-pulse { from { opacity: 0.55; transform: scale(0.7); } to { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .hq-award *, .hq-award *::after, .hq-bday-hero * { animation: none !important; } }

/* The kid's symbol in the middle of their rings */
.hq-ring-wrap { position: relative; display: inline-grid; place-items: center; flex: none; }
.hq-ring-centre { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hq-ring-centre .tk-icon { width: var(--ci, 26px); height: var(--ci, 26px); }

/* Birthday card on the kid's own Today */
.tk-card.hq-bday-hero { flex-direction: row; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 var(--tk-margin) 24px; }
.hq-bday-hero .hq-medal { --m: 76px; flex: none; }
.hq-bday-hero.is-new .hq-medal { animation: hq-medal-in 1.15s var(--tk-ease) both; }
.hq-bday-hero .tk-title2 { margin: 0; }

/* Icon picker (Reminders' list-icon grid) */
.hq-symbols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 16px; margin: 0 var(--tk-margin); background: var(--tk-bg-cell); border-radius: 26px; }
.hq-symbol { aspect-ratio: 1; min-width: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tk-fill-2); color: var(--tk-label-2); position: relative; }
.hq-symbol .tk-icon { width: 52%; height: 52%; }
.hq-symbol[aria-checked="true"] { background: var(--c); color: #fff; }
.hq-symbol[aria-checked="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid var(--c); }
.hq-symbol.is-initial { font-family: var(--tk-font-round); font-weight: 600; font-size: 1.1rem; }
.hq-symbol-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0 20px; }

/* Wall display birthday line */
.kiosk .w-clock .bday .tk-avatar { --size: 26px; font-size: 12px; }

/* Day label in the This Week list (Calendar list style: weekday over date) */
.hq-day { flex: none; width: 2.8rem; display: flex; flex-direction: column; line-height: 1.1; font-size: 0.8rem; color: var(--tk-label-2); font-variant-numeric: tabular-nums; }
.hq-day b { font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.02em; }
.hq-day.is-today { color: var(--tk-red); }
.hq-day.is-past { opacity: 0.6; }

/* Shared shopping list: where an item was added (HQ or ThatcherFood) */
.hq-origin { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; }
.hq-origin .tk-icon { width: 13px; height: 13px; }
.hq-origin.is-hq { background: #007AFF; }
.hq-origin.is-food { background: #2F6936; }
.hq-origin-inline { width: 1em; height: 1em; vertical-align: -0.12em; border-radius: 3px; padding: 1px; color: #fff; }
.hq-origin-inline.is-hq { background: #007AFF; } .hq-origin-inline.is-food { background: #2F6936; }

/* ================= Little mode (pre-readers) — modelled on Assistive Access ================= */
.hq-little-hello { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin: 8px var(--tk-margin) 24px; }
.hq-little-hello h1 { margin: 0; }
.hq-little-me { border-radius: 50%; transition: transform .2s var(--tk-ease); }
.hq-little-me .tk-avatar { width: 96px; height: 96px; font-size: 2.6rem; }
.hq-little-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hq-little-dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--tk-fill-3); transition: background .3s; }
.hq-little-dots span.is-on { background: var(--tk-green); }
.hq-little-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 var(--tk-margin) 32px; }
@media (min-width: 700px) { .hq-little-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.hq-little-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 168px; padding: 18px 10px 14px; border-radius: 28px; background: var(--tk-bg-cell); color: var(--tk-label);
  box-shadow: 0 0 0 3px transparent; transition: transform .2s var(--tk-ease), background .3s, box-shadow .3s;
}
.hq-little-pic { font-size: 4.2rem; line-height: 1; }
.hq-little-label { font-size: 1.06rem; font-weight: 600; line-height: 1.2; text-align: center; }
.hq-little-card.is-done { background: color-mix(in srgb, var(--tk-green) 16%, var(--tk-bg-cell)); box-shadow: 0 0 0 3px var(--tk-green); }
.hq-little-card.is-done .hq-little-pic { opacity: .55; }
.hq-little-sticker { position: absolute; top: -10px; right: -6px; font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .2)); }
.hq-little-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 40px var(--tk-margin); text-align: center; }
.hq-little-empty > span { font-size: 4.5rem; }
.hq-little-empty h2, .hq-little-empty p { margin: 0; }
.hq-little-total { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px auto 24px; font-size: 3.4rem; font-weight: 700; font-family: var(--tk-font-round); color: var(--tk-label); }
.hq-little-day { gap: 12px; min-height: 60px; }
.hq-little-day.is-today .hq-little-dayname { color: var(--tk-tint); }
.hq-little-dayname { flex: none; width: 3rem; font-weight: 600; }
.hq-little-stickers { flex: 1; font-size: 1.9rem; line-height: 1.2; letter-spacing: 2px; word-break: break-all; }
@media (prefers-reduced-motion: no-preference) {
  .hq-little-card:active, .hq-little-me:active { transform: scale(.95); }
  .hq-little-card.is-popping .hq-little-sticker { animation: hq-sticker-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes hq-sticker-pop { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
}

/* Family › Rewards: points available per day (a compact Numbers-style grid) */
.hq-pts-table { margin: 0 var(--tk-margin); padding: 6px 14px; border-radius: var(--tk-r-card); background: var(--tk-bg-cell); }
.hq-pts-row { display: grid; grid-template-columns: minmax(4.5rem, 1.6fr) repeat(7, minmax(0, 1fr)) minmax(2.6rem, 1fr); align-items: center; gap: 4px; min-height: 40px; text-align: center; }
.hq-pts-row + .hq-pts-row { border-top: 0.5px solid var(--tk-separator); }
.hq-pts-row > span:first-child { text-align: left; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-pts-row.is-head { min-height: 30px; font-size: 0.765rem; font-weight: 600; color: var(--tk-label-2); }

/* Wall display: tap-to-hear button on each row of a child's list */
.hq-say { flex: none; width: 44px; height: 44px; margin: -8px -8px -8px 8px; display: grid; place-items: center; border: 0; border-radius: 22px; background: none; color: var(--tk-tint); font-size: 22px; }
.hq-say:active { background: var(--tk-fill-2); }

/* Wardrobe rows on Today use Wardrobe's own tint (burgundy). */
:root { --hq-wardrobe: #8E2A45; }
@media (prefers-color-scheme: dark) { :root { --hq-wardrobe: #B5476A; } }
a.tk-header-action { text-decoration: none; }
