/* Verified against the real screens 2026-11-21: web EventRow (no event colour = translucent tile, the viewer's own part = bold title and a 2px border in their colour; a place is its own line), web hero = translucent veil, Android hero = afternoon tint #F6F0DC at 60%, Android progress = the holder's colour, event pane = the calendar's event details (Going, place, Responsible / Drop-off by / Pick-up by).
   Hero preview: Amity's My day (web wide layout + Android phone), drop-in for the LIVE home page and for v3 (2026-11-21).
   Copies the real screens: web My day (coparent-web DayHero, LeftToday, EventRow; screenshot reviews/CP-649-wording-slice/myday-blake-after.png)
   and Android My day (reviews/android-rail-slice/folded-cover-light--myday-1080x2424.png). Strings are the apps' own (myDay.json, time.json, calendar.json).
   Self-contained: scoped to .myd, works inside the shared .preview rule (inert, unselectable). No script, no inline style. Light and dark. ~6 KB. */
.myd { --m-bg: #f7f8fa; --m-surface: #fff; --m-ink: #16181d; --m-muted: #5b616e; --m-line: #e2e4e9; --m-primary: #0a64a8; --m-primary-c: #dcebf7;
  --m-alex: #ff6b5e; --m-alex-mark: #c9433a; --m-veil: rgba(255,255,255,.55); --m-tile: rgba(255,255,255,.70); --m-tint: rgba(246,240,220,.6); --m-ok: #2f7350; --m-blake: #2f8fd6; --m-kai: #ffd23f; --m-event: #8b5cf6;  --m-now: #0a64a8;
  position: relative; font-family: var(--font-text, "Source Sans 3", system-ui, sans-serif); color: var(--m-ink); font-size: 13px; line-height: 1.35; text-align: left; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .myd { --m-bg: #121417; --m-surface: #1b1e23; --m-ink: #eceef2; --m-muted: #9aa1ad; --m-line: #2c3038; --m-primary: #8cc2e6; --m-primary-c: #1f3a50; --m-veil: rgba(38,42,49,.50); --m-tile: rgba(38,42,49,.62); --m-tint: rgba(56,52,31,.6); --m-ok: #7fcf9f; --m-now: #8cc2e6; } }
:root[data-theme="dark"] .myd { --m-bg: #121417; --m-surface: #1b1e23; --m-ink: #eceef2; --m-muted: #9aa1ad; --m-line: #2c3038; --m-primary: #8cc2e6; --m-primary-c: #1f3a50; --m-veil: rgba(38,42,49,.50); --m-tile: rgba(38,42,49,.62); --m-tint: rgba(56,52,31,.6); --m-ok: #7fcf9f; --m-now: #8cc2e6; }
.myd b { font-weight: 600; }
.myd svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.myd .h { font-family: var(--font-display, "Nunito", system-ui, sans-serif); font-weight: 800; }
/* people circles: initials on the person's colour, never "?" */
.myd .pc { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 10.5px/1 var(--font-text, system-ui); color: #14161a; box-shadow: 0 0 0 2px var(--m-surface); flex: none; }
.myd .pc--a { background: var(--m-alex); } .myd .pc--b { background: var(--m-blake); color: #fff; } .myd .pc--k { background: var(--m-kai); }

/* web window: sidebar + My day column + the right pane */
.myd-web { margin-right: 20%; display: grid; grid-template-columns: 172px minmax(0, 1fr) minmax(0, .9fr); background: var(--m-bg); border: 1px solid var(--m-line); border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(22,24,29,.35);
  background-image: linear-gradient(125deg, color-mix(in srgb, #17b5f0 8%, transparent), color-mix(in srgb, #12b8a6 8%, transparent), color-mix(in srgb, #a3d92b 8%, transparent)); }
.myd-side { padding: 14px 10px; display: grid; align-content: start; gap: 2px; border-right: 1px solid var(--m-line); }
.myd-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; font-size: 13px; }
.myd-brand img { width: 22px; height: 22px; }
.myd-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--m-ink); }
.myd-nav.is-on { background: var(--m-primary-c); color: var(--m-primary); font-weight: 600; }
.myd-col { padding: 16px 18px 0; display: grid; align-content: start; gap: 12px; min-width: 0; }
.myd-title { display: flex; align-items: center; gap: 8px; font-size: 24px; }
.myd-title svg { width: 20px; height: 20px; color: var(--m-primary); }
.myd-date { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--m-muted); }
.myd-date i { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); font-style: normal; color: var(--m-ink); }
.myd-date .today { padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--m-ink) 7%, transparent); }
/* the hero card: phase, who has the children, children, progress, next handover with its countdown */
.myd-hero { border: 1px solid var(--m-line); border-radius: 16px; padding: 14px; display: grid; gap: 9px; background: var(--m-veil); border-color: transparent; }
.myd-phase { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted); }
.myd-line { font-size: 17px; }
.myd-kids { display: flex; }
.myd-prog { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--m-ink) 10%, transparent); overflow: hidden; }
.myd-prog span { display: block; width: 86%; height: 100%; background: var(--m-primary); border-radius: 99px; }
.myd-phone .myd-prog span { background: var(--m-alex-mark); }
.myd-next { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.myd-next .arr { color: var(--m-muted); width: 13px; height: 13px; }
/* Left today: heading, rows, the finished line */
.myd-left { display: grid; gap: 6px; }
.myd-lh { font-size: 14px; padding: 0 6px; }
.myd-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--m-tile); border: 2px solid transparent; }
.myd-row--ev { border-color: var(--m-alex-mark); }
.myd-row--ev .myd-rt { grid-column: 2 / 4; }
.myd-row--ev .myd-rt > span:first-child { font-weight: 700; }
.myd-row > svg { margin-top: 1px; color: var(--m-muted); }
.myd-line2 { grid-column: 2 / 4; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--m-muted); }
.myd-rt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; font-weight: 600; }
.myd-rt > span:first-child { flex: 1 1 12ch; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myd-time { text-align: right; font-weight: 700; font-size: 12px; white-space: nowrap; }
.myd-nowtag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--m-now); white-space: nowrap; }
.myd-nowtag svg { width: 12px; height: 12px; }
.myd-handover { display: inline-flex; align-items: center; gap: 3px; }
.myd-handover .arr { width: 12px; height: 12px; color: var(--m-muted); }
.myd-fin { display: flex; align-items: center; gap: 8px; padding: 8px 6px; color: var(--m-ink); }
.myd-fin .chev { margin-left: auto; }
/* right pane: the selected event */
.myd-pane { margin: 16px 16px 0 0; padding: 18px; border-radius: 16px 16px 0 0; background: var(--m-surface); border: 1px solid var(--m-line); border-bottom: 0; display: grid; align-content: start; gap: 12px; }
.myd-pane .ttl { font-size: 18px; }
.myd-when { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.myd-when i { width: 10px; height: 10px; border-radius: 50%; background: var(--m-ok); flex: none; }
.myd-going { display: grid; gap: 4px; padding-left: 18px; font-size: 12.5px; }
.myd-going small { color: var(--m-muted); font-size: 11px; font-weight: 600; }
.myd-going span { display: flex; align-items: center; gap: 6px; }
.myd-loc { padding-left: 18px; font-size: 12.5px; color: var(--m-muted); }
.myd-kv { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); gap: 8px 12px; padding-left: 18px; font-size: 12.5px; }
.myd-kv dt { color: var(--m-muted); } .myd-kv dd { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 600; } .myd-kv dd.q { font-weight: 400; color: var(--m-muted); }
.myd-open { justify-self: start; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--m-line); font-weight: 600; font-size: 12px; }

/* Android phone in front, lower right: Material top bar "My day / Today, Sun, Nov 15", the same hero and rows, the navigation bar */
.myd-phone { position: absolute; right: 0; bottom: -40px; width: 236px; aspect-ratio: 9 / 19; border-radius: 30px; background: #111317; padding: 7px; box-shadow: 0 30px 60px -20px rgba(22,24,29,.55); }
.myd-ps { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: var(--m-bg); display: flex; flex-direction: column; }
.myd-ps::before { content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #111317; }
.myd-pbar { display: flex; justify-content: space-between; padding: 8px 16px 0; font-size: 10px; font-weight: 600; }
.myd-ptop { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px 8px; }
.myd-ptop .h { font-size: 21px; line-height: 1.1; }
.myd-ptop small { display: block; color: var(--m-muted); font-size: 11px; }
.myd-pbody { padding: 0 8px; display: grid; gap: 8px; align-content: start; flex: 1; }
.myd-phone .myd-hero { padding: 10px; gap: 6px; border-radius: 14px; background: var(--m-tint); }
.myd-phone .myd-line { font-size: 14px; }
.myd-phone .myd-row { padding: 8px 9px; gap: 2px 7px; grid-template-columns: 16px minmax(0, 1fr) auto; }
.myd-phone .myd-rt { font-size: 12px; } .myd-phone .myd-line2 { font-size: 10.5px; }
.myd-pnav { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px 10px; font-size: 9px; text-align: center; color: var(--m-muted); border-top: 1px solid var(--m-line); background: var(--m-surface); }
.myd-pnav span { display: grid; justify-items: center; gap: 2px; }
.myd-pnav i { width: 34px; height: 18px; border-radius: 99px; }
.myd-pnav .is-on { color: var(--m-ink); font-weight: 700; } .myd-pnav .is-on i { background: var(--m-primary-c); }

/* widths: under 1024 the web pane goes; under 640 only the phone shows, standing whole */
@media (max-width: 1139px) { .myd-web { margin-right: 26%; grid-template-columns: 150px minmax(0, 1fr); } .myd-pane { display: none; } }
@media (max-width: 639px) { .myd-web { display: none; margin: 0; } .myd-phone { position: relative; right: auto; bottom: auto; margin: 0 auto -48px; width: min(260px, 76vw); } }
