/* ob-plan-day.css (R6-T3): the Plan Day view inside #obp-day. Tokens --ob3-* only (Paper and Graphite through the themed
   roles). Desktop: mini month + Panchang | day grid | steps rail. Tablet: grid | rail + Panchang. Phone: strip, grid, rail. */

.obpd { min-width: 0; }
/* T-VISUAL-PLAN: the columns stretch to one height; the left and the list keep their content height, the right column's timeline
   fills the rest (capped at its own 24 hours), so the three columns end together. Desktop starts at 1340 (design-system xl). */
.obpd-cols { display: grid; gap: var(--ob3-space-4); align-items: stretch; min-width: 0; }
.obpd-cols.is-desk { grid-template-columns: 264px minmax(0, 1.1fr) minmax(0, 1fr); }
.obpd-cols.is-tablet { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.obpd-cols.is-phone { grid-template-columns: minmax(0, 1fr); gap: var(--ob3-space-3); }
.obpd-left, .obpd-right { display: flex; flex-direction: column; gap: var(--ob3-space-4); min-width: 0; }
.obpd-left > *, .obpd-right > * { flex: 0 0 auto; }
/* From 900 px (core fit(): data-obp-fit and --obp-avail on the root) the page does not scroll: the columns are panes of the viewport's
   height. The left column and the list scroll on their own (the date row stays at the list's top); the timeline is the fixed pane and
   its hour grid scrolls inside it to now. */
:root[data-obp-fit] .obpd-cols.is-desk, :root[data-obp-fit] .obpd-cols.is-tablet { height: var(--obp-avail, auto); }
:root[data-obp-fit] .obpd-left, :root[data-obp-fit] .obpd-main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: var(--ob3-space-4); box-sizing: border-box; }
:root[data-obp-fit] .obpd-main > .obpd-top { position: sticky; top: 0; z-index: 3; background: var(--ob3-paper); }
:root[data-obp-fit] .obpd-right { min-height: 0; }

.obpd-card { background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); padding: var(--ob3-space-4); box-sizing: border-box; min-width: 0; color: var(--ob3-ink); }
.obpd h2 { margin: 0; }

/* Controls */
.obpd-ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--ob3-radius-full); background: none; color: var(--ob3-ink); cursor: pointer; }
.obpd-pill { min-height: 44px; padding: 0 var(--ob3-space-4); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-full); background: var(--ob3-surface); color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-medium); cursor: pointer; }
.obpd-primary { min-height: 44px; padding: 0 var(--ob3-space-4); border: 0; border-radius: var(--ob3-radius-full); background: var(--ob3-accent); color: var(--ob3-on-accent); font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); cursor: pointer; }
.obpd-pill[disabled], .obpd-primary[disabled] { opacity: 0.5; cursor: default; }

/* The day head */
.obpd-top { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-3); flex-wrap: wrap; }
.obpd-top-l, .obpd-top-r { display: flex; align-items: center; gap: var(--ob3-space-2); min-width: 0; }
.obpd-title { font-size: var(--ob3-text-title); line-height: var(--ob3-leading-title); font-weight: var(--ob3-weight-semibold); letter-spacing: var(--ob3-tracking-title); }
.is-desk .obpd-top-l .obpd-ico, .is-tablet .obpd-top-l .obpd-ico { width: 44px; }

/* Mini month (desktop) */
.obpd-mini-head { display: flex; align-items: center; gap: var(--ob3-space-1); }
.obpd-mini-head [data-obpd-mini] { flex: 0 0 44px; width: 44px; }   /* T-VISUAL-PLAN: 44 px in the 264 px column */
/* T-VISUAL-PLAN: the title has its own line (one line, an ellipsis if it must), Today and the arrows sit on the row below, right aligned:
   in the 264 px column they collided with a wrapped title */
.obpd-mini-head { flex-wrap: wrap; justify-content: flex-end; row-gap: var(--ob3-space-1); }
.obpd-mini-head h2 { min-width: 0; flex: 1 0 100% !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obpd-mini-head .obpd-pill { flex: 0 0 auto; padding: 0 var(--ob3-space-3); margin-right: auto; }
.obpd-mini-head h2 { flex: 1 1 auto; font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-semibold); }
.obpd-mm { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: var(--ob3-space-2); text-align: center; }
.obpd-mm-h { font-size: var(--ob3-text-label); color: var(--ob3-muted); min-height: 28px; display: flex; align-items: center; justify-content: center; }
.obpd-mm-d { min-height: 44px; border: 0; background: none; border-radius: var(--ob3-radius-control); color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); cursor: pointer; position: relative; }
.obpd-mm-d.is-today { font-weight: var(--ob3-weight-bold); }
.obpd-mm-d.is-sel { background: var(--ob3-accent); color: var(--ob3-on-accent); font-weight: var(--ob3-weight-bold); }
.obpd-mm-d.has-obs::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ob3-attention-vivid); }
.obpd-mini-legend { display: flex; align-items: center; gap: 6px; margin-top: var(--ob3-space-2); font-size: var(--ob3-text-meta); color: var(--ob3-muted); }

/* The hour grid */
/* 6.5.8.1: the 24 hour grid scrolls inside its own box (never the page, never sideways); the padding keeps the 00:00 and 24:00 labels whole. */
.obpd-gridwrap { position: relative; margin-top: var(--ob3-space-2); max-height: min(70vh, 640px); overflow-y: auto; overflow-x: hidden; padding: 12px 0; box-sizing: border-box; overscroll-behavior: contain; }
.is-phone .obpd-gridwrap { max-height: min(60vh, 480px); }
.obpd-gridwrap:focus-visible { outline: var(--ob3-focus-ring); }
.obpd-grid { position: relative; margin-left: 52px; border-top: 0; min-width: 0; }
.is-phone .obpd-grid { margin-left: 44px; }
.obpd-hr { position: absolute; left: -52px; right: 0; height: 0; border-top: 1px solid var(--ob3-line); pointer-events: none; }
.obpd-hr span { position: absolute; left: 0; top: -9px; width: 44px; font-size: var(--ob3-text-meta); line-height: 16px; color: var(--ob3-muted); font-variant-numeric: tabular-nums; background: var(--ob3-surface); }
.is-phone .obpd-hr { left: -44px; }
.is-phone .obpd-hr span { background: var(--ob3-paper); width: 40px; }
.obpd-hr::after { content: ""; position: absolute; left: 52px; right: 0; top: 0; }

.obpd-band { position: absolute; left: 0; right: 0; min-width: 0; overflow: hidden; box-sizing: border-box; border-radius: var(--ob3-radius-control); padding: 4px var(--ob3-space-3); display: flex; align-items: flex-start; pointer-events: none; z-index: 0; }
.obpd-band-l { margin-top: var(--obpd-lab, 0px); min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--ob3-text-body-sm); color: var(--ob3-attention); }
.obpd-band-l span { color: var(--ob3-muted); font-size: var(--ob3-text-meta); margin-left: 6px; }
.obpd-band.is-avoid { border: 1px dashed var(--ob3-attention-vivid); background: var(--ob3-attention-tint) repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--ob3-attention-vivid) 28%, transparent) 8px 10px); }
.obpd-band.is-amrit { background: var(--ob3-attention-tint); justify-content: flex-end; }
.obpd-band.is-amrit .obpd-band-l { font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); }
.obpd-band.is-abhijit { background: var(--ob3-good-tint); }
.obpd-band.is-abhijit .obpd-band-l { color: var(--ob3-good); font-size: var(--ob3-text-meta); }

/* t6121: a merged band whose label has no free stretch carries a short tag at its bottom right edge, above the blocks */
.obpd-bandtag { position: absolute; right: 6px; z-index: 2; max-width: 60%; pointer-events: none; display: flex; align-items: center; padding: 0 var(--ob3-space-2); border-radius: var(--ob3-radius-full); background: var(--ob3-attention-tint); color: var(--ob3-attention); font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); line-height: 18px; }
.obpd-bandtag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Items: columns for overlaps, the long title never widens its column */
.obpd-item {
  position: absolute; z-index: 1; box-sizing: border-box; overflow: hidden; min-width: 0;
  left: calc(var(--obpd-col, 0) * 100% / var(--obpd-cols, 1)); width: calc(100% / var(--obpd-cols, 1) - 4px);
  display: flex; align-items: center; gap: var(--ob3-space-2); padding: 0 var(--ob3-space-3);
  border-radius: var(--ob3-radius-control); font-size: var(--ob3-text-body-sm); line-height: 18px; color: var(--ob3-ink);
}
.obpd-item .obpd-t { font-weight: var(--ob3-weight-semibold); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.obpd-item .obpd-m { color: var(--ob3-muted); font-size: var(--ob3-text-meta); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.obpd-item.is-event { background: var(--ob3-sunk); border: 1px solid transparent; cursor: pointer; }
.obpd-item.is-event.has-guests { background: var(--ob3-surface); border-color: var(--ob3-line-strong); }
.obpd-item.is-event.is-goal { background: var(--ob3-accent-tint); }
.obpd-item.is-event.is-zero { min-height: 22px; }
.obpd-gi { display: inline-flex; width: 28px; height: 28px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: var(--ob3-radius-control); background: var(--ob3-surface); color: var(--ob3-accent); }
.obpd-avs { margin-left: auto; display: inline-flex; flex: 0 0 auto; }
.obpd-av { width: 22px; height: 22px; margin-left: -4px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 9px; font-weight: var(--ob3-weight-bold); background: var(--ob3-accent-tint); color: var(--ob3-on-accent-tint); border: 1px solid var(--ob3-surface); box-sizing: border-box; }
.obpd-av.is-more { background: var(--ob3-sunk-deep); color: var(--ob3-muted); }
.obpd-item.is-step { background: var(--ob3-surface); border: 1px solid var(--ob3-line-strong); }
.obpd-item.is-step.is-done .obpd-t { text-decoration: line-through; color: var(--ob3-muted); }
.obpd-tick { position: relative; flex: 0 0 auto; width: 20px; height: 20px; padding: 0; border: 2px solid var(--ob3-ink); border-radius: 50%; background: none; cursor: pointer; }
.obpd-tick::after { content: ""; position: absolute; inset: -14px; } /* a 48 px hit area around the 20 px circle */
.obpd-item.is-step.is-done .obpd-tick { background: var(--ob3-good); border-color: var(--ob3-good); }
.obpd-item.is-suggested { background: transparent; border: 1px dashed var(--ob3-saarthi); color: var(--ob3-saarthi); z-index: 2; left: 4px; width: auto; max-width: calc(100% - 8px); right: auto; }
.obpd-item.is-suggested .obpd-t { color: var(--ob3-saarthi); }
.obpd-sg-i { display: inline-flex; }
.obpd-add { margin-left: auto; min-height: 44px; min-width: 56px; border: 0; border-radius: var(--ob3-radius-full); background: var(--ob3-saarthi-fill); color: var(--ob3-on-saarthi); font: inherit; font-weight: var(--ob3-weight-semibold); cursor: pointer; }
.obpd-item.is-suggested { overflow: visible; }

.obpd-now { position: absolute; left: -52px; right: 0; height: 0; border-top: 2px solid var(--ob3-alert-vivid); z-index: 3; pointer-events: none; }
.obpd-now span { position: absolute; left: 0; top: -10px; padding: 0 2px; font-size: var(--ob3-text-meta); line-height: 18px; font-weight: var(--ob3-weight-bold); color: var(--ob3-alert); background: var(--ob3-surface); font-variant-numeric: tabular-nums; }
.is-phone .obpd-now { left: -44px; }
.obpd-now::after { content: ""; position: absolute; left: 52px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ob3-alert-vivid); }

.obpd-allday { display: flex; flex-wrap: wrap; gap: var(--ob3-space-2); align-items: center; padding: var(--ob3-space-2) 0 var(--ob3-space-2) 52px; position: relative; }
.obpd-allday-l { position: absolute; left: 0; font-size: var(--ob3-text-meta); color: var(--ob3-muted); width: 48px; }
.obpd-chip { display: inline-block; padding: 4px var(--ob3-space-3); border-radius: var(--ob3-radius-full); background: var(--ob3-accent-tint); color: var(--ob3-on-accent-tint); font-size: var(--ob3-text-body-sm); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.obpd-skel-bar { position: absolute; left: 0; width: 70%; background: var(--ob3-sunk); border-radius: var(--ob3-radius-control); }
.obpd-skel-bar.is-short { width: 45%; }
.obpd-note:empty { display: none; }
.obpd-note { margin-top: var(--ob3-space-2); }
.obpd-fine { font-size: var(--ob3-text-meta); color: var(--ob3-muted); margin: var(--ob3-space-2) 0 0; }
.obpd-after:empty { display: none; }

/* The rail */
.obpd-rail-head h2 { font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-semibold); margin-bottom: var(--ob3-space-2); }
.obpd-addstep { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--ob3-space-2); margin-top: var(--ob3-space-3); border: 1px dashed var(--ob3-line-strong); border-radius: var(--ob3-radius-control); background: none; color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); cursor: pointer; }
.obpd-hint { display: flex; align-items: center; gap: var(--ob3-space-3); padding: var(--ob3-space-3) var(--ob3-space-4); border-radius: var(--ob3-radius-card); background: var(--ob3-saarthi-tint); color: var(--ob3-ink); font-size: var(--ob3-text-body-sm); }
.obpd-orb { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--ob3-orb); }
.obpd-shutdown { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ob3-accent-text); font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); cursor: pointer; }

/* The rail is T1's markup: keep it from overflowing the 340 px column. */
.obpd-rail-list { min-width: 0; overflow-wrap: anywhere; }
.obpd-rail-list .obds-btn, .obpd-rail-list button { min-height: 44px; }

.obpd-pstrip, .obpd-pcard { min-width: 0; }
@media (prefers-reduced-motion: no-preference) { .obpd-skel-bar { animation: obpd-pulse 1.4s ease-in-out infinite; } }
@keyframes obpd-pulse { 50% { opacity: 0.55; } }

/* theme.css forces `:root[data-theme] button { background, color, border-color ... !important }` on every button; these
   rules outrank it (higher specificity, also !important) for the Day view's own controls. Tokens only. */
:root[data-theme] .obpd-ico { background: transparent !important; color: var(--ob3-ink) !important; border-color: transparent !important; }
:root[data-theme] .obpd-pill { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; }
:root[data-theme] .obpd-mm-d { background: transparent !important; color: var(--ob3-ink) !important; border-color: transparent !important; }
:root[data-theme] .obpd-mm-d.is-sel { background: var(--ob3-accent) !important; color: var(--ob3-on-accent) !important; }
:root[data-theme] .obpd-add { background: var(--ob3-saarthi-fill) !important; color: var(--ob3-on-saarthi) !important; border-color: transparent !important; }
:root[data-theme] .obpd-tick { background: transparent !important; border-color: var(--ob3-ink) !important; }
:root[data-theme] .obpd-item.is-step.is-done .obpd-tick { background: var(--ob3-good) !important; border-color: var(--ob3-good) !important; }
:root[data-theme] .obpd-addstep { background: transparent !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line-strong) !important; }
:root[data-theme] .obpd-shutdown { background: transparent !important; color: var(--ob3-accent-text) !important; border-color: transparent !important; }
.obpd-band.is-abhijit { background: color-mix(in srgb, var(--ob3-good-tint) 55%, transparent); }


/* The Day card's view control slot, and the phone summary cards. */
.obpd-vb-slot { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.obpd-vb-slot > * { max-width: 100%; }
.obpd-sum { display: flex; flex-direction: column; gap: var(--ob3-space-2); margin: var(--ob3-space-2) 0; }
.obpd-sumcard { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-3); min-height: 56px; padding: var(--ob3-space-2) var(--ob3-space-4); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); background: var(--ob3-surface); color: var(--ob3-ink); font: inherit; text-align: left; box-sizing: border-box; width: 100%; }
.obpd-sumcard-t { display: flex; flex-direction: column; min-width: 0; font-size: var(--ob3-text-body-sm); }
.obpd-sumcard-t i { font-style: normal; font-size: var(--ob3-text-meta); color: var(--ob3-muted); }
.obpd-sumcard.is-move { background: var(--ob3-saarthi-tint); border-color: transparent; justify-content: flex-start; }
:root[data-theme] button.obpd-sumcard { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; }

/* Cell 4: the complete, empty read, centred like the board. */
#obpd-note[data-obp-note-kind="empty"] { display: flex; flex-direction: column; align-items: center; gap: var(--ob3-space-3); padding: var(--ob3-space-6) var(--ob3-space-4); text-align: center; background: none; border: 0; }
#obpd-note[data-obp-note-kind="empty"] > span { font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-semibold); max-width: 28ch; }
@media (max-width: 639px) { .obpd-vb-slot { flex: 1 0 100%; margin-left: 0; } .obpd-vb-slot > .obp-viewbar { width: 100%; } }

/* R6.2: festivals and the moon in the Day head, the one-line reading row, and the event's own colour. */
.obpd-fest { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ob3-space-2) var(--ob3-space-3); margin-top: var(--ob3-space-2); font-size: var(--ob3-text-body-sm); color: var(--ob3-ink); min-width: 0; }
.obpd-fest-i { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; max-width: 100%; }
.obpd-fest-n { font-weight: var(--ob3-weight-semibold); overflow-wrap: anywhere; }
.obpd-fest-in { font-size: var(--ob3-text-meta); color: var(--ob3-muted); }
.obpd-star { color: var(--ob3-attention); }
.obpd-moon { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ob3-text-meta); color: var(--ob3-muted); }
.obpd-reading[hidden] { display: none; }
.obpd-reading { margin-top: var(--ob3-space-2); }
.obpd-readrow { width: 100%; min-height: 44px; display: flex; align-items: center; gap: var(--ob3-space-2); padding: 0 var(--ob3-space-3); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-control); background: var(--ob3-surface); color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); text-align: left; cursor: pointer; box-sizing: border-box; }
.obpd-readrow-i { display: inline-flex; color: var(--ob3-accent-text); }
.obpd-readrow-l { font-weight: var(--ob3-weight-semibold); }
.obpd-readrow-c { margin-left: auto; display: inline-flex; color: var(--ob3-muted); }
.obpd-readrow:focus-visible { outline: var(--ob3-focus-ring); }
:root[data-theme] .obpd-readrow { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; }

/* A Google colour (checked as a 6 digit hex before it reaches --ev-c): a left edge and a tint; the text stays on tokens. */
.obpd-item.is-event.has-color { background: color-mix(in srgb, var(--ev-c) 16%, var(--ob3-surface)); border: 1px solid transparent; border-left: 4px solid var(--ev-c); color: var(--ob3-ink); }
.obpd-item.is-event.has-color.has-guests { border-color: var(--ob3-line-strong); border-left: 4px solid var(--ev-c); }
.obpd-chip.has-color { background: color-mix(in srgb, var(--ev-c) 16%, var(--ob3-surface)); border-left: 4px solid var(--ev-c); color: var(--ob3-ink); }

/* R6.2 review minor 1: the moon is the Month view's circle, not an emoji (same tokens as .obp-m-mark) */
.obp-moon-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--ob3-attention); vertical-align: middle; }
.obp-moon-dot.is-full { background: var(--ob3-attention-vivid); }
.obp-moon-dot.is-new { background: var(--ob3-ink); border-color: var(--ob3-ink); }

/* 6.5.8.1: on another day the rail's list is replaced by one line back to the server's today. */
.obpd-back { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--ob3-accent-text); font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); cursor: pointer; text-decoration: underline; }
:root[data-theme] .obpd-back { background: transparent !important; color: var(--ob3-accent-text) !important; border-color: transparent !important; }

.obpd-gd { flex: 0 0 auto; margin-left: auto; font-size: var(--ob3-text-meta); color: var(--ob3-muted); white-space: nowrap; }

/* T-CAL1: a declined event stays reachable but is dimmed, struck through and out of the overlap columns (it sits behind live items). */
.obpd-item.is-event.is-declined { opacity: .72; z-index: 0; border: 1px dashed var(--ob3-line-strong); }
.obpd-item.is-event.is-declined .obpd-t { text-decoration: line-through; }
.obpd-chip.is-declined { opacity: .72; text-decoration: line-through; }
.obpd-item.is-event.is-declined.is-tab { left: auto; right: 0; width: 22px; z-index: 3; overflow: hidden; padding-inline: 0; }
.obpd-item.is-event.is-declined.is-tab > * { display: none; }
.obpd-item.is-slot { background: var(--ob3-surface); border: 1px dashed var(--ob3-line-strong); }


/* ===== T-PLAN-WEB: the streamlined Plan Day (boards PlanDayStreamPhone, PlanDayStreamTablet; v17-proposed) =====
   Today-scoped row and group pattern (T-TODAY-HIG): one inset group on the canvas, 16 px insets, hairlines inset to the text, no borders on rows,
   weights 400/600/700, concentric radii (group 16 inside the 20 px Your day card), motion <= 200 ms. Tokens only. */
.obpd { --obpd-group-radius: 16px; --obpd-inset: var(--ob3-space-4); --obpd-inset-r: var(--ob3-space-3); --obpd-hairline: var(--ob3-line); --obpd-when: 60px; --obpd-lead: 44px; --obpd-chev: 20px; }
.obpd-cols.is-phone { --obpd-when: 52px; }
.obpd-main { display: flex; flex-direction: column; gap: var(--ob3-space-3); min-width: 0; padding: 0; border: 0; background: none; }
.obpd-main > * { min-width: 0; }
.obpd-main .obd-slot { margin: 0; }
.obpd-right { display: flex; flex-direction: column; gap: var(--ob3-space-4); min-width: 0; }
.obpd-right .obd-slot { margin: 0; }
.obpd-card { border: 0; }
.obpd-card h2 { font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-semibold); }

/* The date row: previous, the date, next, then a muted Today (drawn muted when today is shown; owner-confirmed). */
.obpd-top { flex-wrap: nowrap; }
.obpd-top-l { flex: 1 1 auto; justify-content: space-between; gap: var(--ob3-space-1); }
.obpd-title { flex: 1 1 auto; text-align: center; font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-semibold); letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.obpd-today { flex: 0 0 auto; min-height: 44px; min-width: 64px; padding: 0 var(--ob3-space-3); border: 0; background: none; color: var(--ob3-muted); font: inherit; font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-semibold); cursor: pointer; }
.obpd-today:focus-visible, .obpd-ico:focus-visible, .obpd-cal:focus-visible, .obpd-readchip:focus-visible, .obpd-shutdown:focus-visible { outline: var(--ob3-focus-ring); }
:root[data-theme] .obpd-today { background: transparent !important; color: var(--ob3-muted) !important; border-color: transparent !important; }
.obpd-vb-slot { display: none; }

/* The ONE Panchang line with the reading chip. */
.obpd-pline { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-3); min-width: 0; padding: 0 var(--ob3-space-1); }
.obpd-pl-main { flex: 1 1 auto; min-width: 0; }
.obpd-reading { flex: 0 0 auto; margin: 0; }
.obpd-readchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--ob3-space-3); border: 0; border-radius: var(--ob3-radius-full); background: transparent; color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); cursor: pointer; position: relative; }
.obpd-readchip::before { content: ""; position: absolute; inset: 8px 0; border-radius: var(--ob3-radius-full); background: var(--ob3-sunk); z-index: 0; }
.obpd-readchip-t { position: relative; z-index: 1; padding: 0 var(--ob3-space-1); }
:root[data-theme] .obpd-readchip { background: transparent !important; color: var(--ob3-ink) !important; border-color: transparent !important; }
.obpd-pcard .obpp-card { border: 0; }

/* All day (T-VISUAL-PLAN): a muted group with the list's anatomy: "All day" sits in the time column, each item is one 44 px line
   on the titles' left edge, cut with an ellipsis (the full title is the button's name and opens the event). */
.obpd-allday { display: grid; grid-template-columns: var(--obpd-when) minmax(0, 1fr); column-gap: var(--obpd-lead); row-gap: 0; align-items: center; padding: var(--ob3-space-1) var(--obpd-inset-r) var(--ob3-space-1) var(--obpd-inset); border-radius: var(--obpd-group-radius); background: var(--ob3-sunk); }
.obpd-allday-l { position: static; grid-column: 1; grid-row: 1 / span 20; align-self: center; width: auto; font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-muted); white-space: nowrap; }
.obpd-allday .obpd-chip { grid-column: 2; display: block; min-height: 44px; line-height: 44px; max-width: 100%; padding: 0; border-radius: 0; background: none; color: var(--ob3-ink); font-size: var(--ob3-text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.obpd-allday .obpd-chip + .obpd-chip { box-shadow: inset 0 1px 0 var(--obpd-hairline); }
.obpd-allday .obpd-chip.has-color { padding-left: var(--ob3-space-2); background: none; }
.obpd-allday .obpd-chip:focus-visible { outline: var(--ob3-focus-ring); }

/* Your day and Later (the card is already board-styled; Later joins it as one row). */
.obpd .obd-card { box-shadow: 0 1px 2px var(--ob3-shadow); }
.obpd .obd-later { margin-top: var(--ob3-space-2); border: 0; border-radius: var(--obpd-group-radius); }
.obpd .obd-later-head { min-height: 56px; }
.obpd .obd-later-t { font-weight: var(--ob3-weight-regular); font-size: var(--ob3-text-body); font-variant-numeric: tabular-nums; }
.obpd .obd-later-n { font-size: var(--ob3-text-body); }
.obpd .obd-later-h { margin: var(--ob3-space-2) 0 0; padding-top: var(--ob3-space-2); border-top: 1px solid var(--obpd-hairline); font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); color: var(--ob3-muted); }

/* The day list: ONE inset group (T-VISUAL-PLAN: one grid for every row, so the time, the tick or glyph, the title, the minutes and
   the chevron sit at the same x on every row; the chevron column is kept on rows without one).
   Row = time | tick or glyph | title (2 lines at most) + tags and meta (1 line) | minutes | chevron. Phone: the minutes sit under the time. */
.obpd .obpr-list.is-stream { margin: 0; padding: 0; list-style: none; background: var(--ob3-surface); border-radius: var(--obpd-group-radius); overflow: hidden; }
.obpd .obpr-srow { position: relative; display: grid; grid-template-columns: var(--obpd-when) var(--obpd-lead) minmax(0, 1fr) auto var(--obpd-chev); grid-template-areas: "when lead text end chev"; align-items: center; gap: 0; min-height: 56px; padding: var(--ob3-space-2) var(--obpd-inset-r) var(--ob3-space-2) var(--obpd-inset); border: 0; box-sizing: border-box; }
.obpd .obpr-srow[hidden], .obpd .obpr-fold[hidden] { display: none; }
.obpd .obpr-list.is-stream > li + li::before { content: ""; position: absolute; top: 0; right: 0; left: calc(var(--obpd-inset) + var(--obpd-when) + var(--obpd-lead)); height: 1px; background: var(--obpd-hairline); }
.obpd .obpr-when { grid-area: when; font-size: var(--ob3-text-body); line-height: var(--ob3-leading-body); color: var(--ob3-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.obpd .obpr-srow[data-when="any"] .obpr-when { font-size: var(--ob3-text-body-sm); }
.obpd .obpr-glyph { grid-area: lead; width: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ob3-muted); }
.obpd .obpr-tick { grid-area: lead; }
.obpd .obpr-dot { grid-area: lead; width: 44px; height: 10px; margin: 0; border: 0; position: relative; }
.obpd .obpr-dot::after { content: ""; position: absolute; left: 17px; top: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ob3-muted); box-sizing: border-box; }
.obpd .obpr-text { grid-area: text; min-width: 0; }
.obpd .obpr-hit { cursor: pointer; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.obpd .obpr-hit:focus-visible { outline: var(--ob3-focus-ring); border-radius: var(--ob3-radius-xs); }
.obpd .obpr-title { font-size: var(--ob3-text-numeric); line-height: 20px; font-weight: var(--ob3-weight-regular); color: var(--ob3-ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.obpd .obpr-meta { font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obpd .obpr-end { grid-area: end; margin-left: var(--ob3-space-3); font-size: var(--ob3-text-body); line-height: var(--ob3-leading-body); color: var(--ob3-muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.obpd .obpr-sev { grid-area: end; justify-self: end; margin-left: var(--ob3-space-3); }
.obpd .obpr-srow:has(.obpr-sev):has(.obpr-end) .obpr-sev { align-self: start; }
.obpd .obpr-srow:has(.obpr-sev):has(.obpr-end) .obpr-end { align-self: end; }
.obpd .obpr-chev { grid-area: chev; display: inline-flex; justify-content: flex-end; color: var(--ob3-muted); }
.obpd .obpr-row.is-focus { box-shadow: none; padding-left: var(--obpd-inset); }
/* Phone: the minutes move under the time, which gives the title the width the trailing minutes took. */
.is-phone .obpr-srow { grid-template-columns: var(--obpd-when) var(--obpd-lead) minmax(0, 1fr) auto var(--obpd-chev); grid-template-areas: "when lead text sev chev" "dur lead text sev chev"; grid-template-rows: auto auto; }
.is-phone .obpr-srow .obpr-when { grid-area: when; align-self: end; }
.is-phone .obpr-srow .obpr-end { grid-area: dur; align-self: start; margin: 0; text-align: left; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); }
.is-phone .obpr-srow:not(:has(.obpr-end)) .obpr-when { grid-row: 1 / span 2; align-self: center; }
.is-phone .obpr-srow .obpr-glyph, .is-phone .obpr-srow .obpr-tick, .is-phone .obpr-srow .obpr-dot { grid-row: 1 / span 2; }
.is-phone .obpr-srow .obpr-text { grid-row: 1 / span 2; }
.is-phone .obpr-srow .obpr-sev { grid-area: sev; grid-row: 1 / span 2; align-self: center; }
.is-phone .obpr-srow .obpr-chev { grid-row: 1 / span 2; }
/* The two folds ("Earlier today", "Show N more"): the whole row is one button; its text starts on the titles' edge. */
.obpd .obpr-fold { position: relative; display: block; min-height: 0; padding: 0; border: 0; }
.obpd .obpr-foldbtn { display: grid; grid-template-columns: minmax(0, 1fr) var(--obpd-chev); align-items: center; width: 100%; min-height: 52px; padding: var(--ob3-space-2) var(--obpd-inset-r) var(--ob3-space-2) calc(var(--obpd-inset) + var(--obpd-when) + var(--obpd-lead)); border: 0; background: none; color: var(--ob3-ink); font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; }
.obpd .obpr-foldbtn .obpr-text { grid-area: auto; display: flex; flex-direction: column; }
.obpd .obpr-foldbtn .obpr-title { color: var(--ob3-accent-text); font-weight: var(--ob3-weight-semibold); }
.obpd .obpr-foldbtn .obpr-chev { grid-area: auto; color: var(--ob3-accent-text); transition: transform 160ms ease; }
.obpd .obpr-fold.is-open .obpr-chev { transform: rotate(180deg); }
.obpd .obpr-foldbtn:focus-visible { outline: var(--ob3-focus-ring); outline-offset: -2px; border-radius: var(--obpd-group-radius); }
:root[data-theme] .obpd .obpr-foldbtn { background: transparent !important; color: var(--ob3-ink) !important; border-color: transparent !important; }
.obpd .obpr-row.is-done .obpr-title { text-decoration: none; color: var(--ob3-muted); }
.obpd .obpr-row.is-declined .obpr-title, .obpd .obpr-row.is-declined .obpr-when, .obpd .obpr-row.is-declined .obpr-glyph { color: var(--ob3-muted); }
.obpd .obpr-chip2 { padding: 0 var(--ob3-space-2); margin-right: var(--ob3-space-2); border-radius: var(--ob3-radius-xs); background: var(--ob3-sunk); color: var(--ob3-ink); font-size: var(--ob3-text-meta); line-height: 18px; font-weight: var(--ob3-weight-semibold); }
.obpd .obpr-chip2.is-focus, .obpd .obpr-chip2.is-carried { background: var(--ob3-sunk); color: var(--ob3-ink); }
.obpd .obpr-msg { padding: var(--ob3-space-3) var(--obpd-inset); background: var(--ob3-surface); border-radius: var(--obpd-group-radius); margin-top: var(--ob3-space-2); }
.obpd .obpr-list.is-stream + .obpr-msg { margin-top: var(--ob3-space-2); }
.obpd .obd-from { margin-top: 0; }
.obpd-skelb { display: block; width: 60%; height: 16px; margin-left: 100px; border-radius: var(--ob3-radius-xs); background: var(--ob3-sunk); }
.obpd-skelb.is-short { width: 40%; }
@media (prefers-reduced-motion: no-preference) { .obpd-skelb { animation: obpd-pulse 1.4s ease-in-out infinite; } }

/* Close the day: one row after work hours. */
.obpd-shutdown { align-self: stretch; width: 100%; min-height: 56px; justify-content: space-between; padding: 0 var(--obpd-inset); border-radius: var(--obpd-group-radius); background: var(--ob3-surface); color: var(--ob3-ink); font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-regular); box-sizing: border-box; }
:root[data-theme] .obpd-shutdown { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; }

/* The timeline (secondary view): a card in the right column, or below the list on a phone when the switch is on. */
.obpd-tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ob3-space-3); }
.obpd-tl-sub { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.obpd-tl .obpd-gridwrap { max-height: min(60vh, 560px); }
/* T-VISUAL-PLAN: beside the list (tablet, desktop) the timeline card fills its column down to the list's end; the grid scrolls inside
   it. Its own content adds no height (height 0), so the list decides the row; it is capped at its own hours (--obpd-tl-max, set by
   the view) so it never runs on empty. */
.is-desk .obpd-right .obpd-tl, .is-tablet .obpd-right .obpd-tl { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 440px; max-height: var(--obpd-tl-max, none); }
:root[data-obp-fit] .is-desk .obpd-right .obpd-tl, :root[data-obp-fit] .is-tablet .obpd-right .obpd-tl { min-height: 0; max-height: none; }
.is-desk .obpd-right .obpd-tl .obpd-gridwrap, .is-tablet .obpd-right .obpd-tl .obpd-gridwrap { flex: 1 1 auto; height: 0; max-height: none; }
.is-phone .obpd-tl { padding: var(--ob3-space-4); }
.obpd-grid { margin-left: 44px; }
.obpd-hr { left: -44px; }
.obpd-hr span { width: 40px; }
.obpd-now { left: -44px; }
.obpd-now::after { left: 44px; }
.obpd-hr span, .obpd-now span, .is-phone .obpd-hr span { background: var(--ob3-surface); }

/* Focus goals */
.obpd-fg-sub { margin: 2px 0 var(--ob3-space-2); font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.obpd-fg-list { list-style: none; margin: 0; padding: 0; }
.obpd-fg-row { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-3); min-height: 48px; border-top: 1px solid var(--obpd-hairline); font-size: var(--ob3-text-body); }
.obpd-fg-t { min-width: 0; overflow-wrap: anywhere; }
.obpd-fg-p { flex: 0 0 auto; color: var(--ob3-muted); font-variant-numeric: tabular-nums; }
.obpd-right .obd-focus { border: 0; }

/* The header's calendar icon (beside the +). */
.obpd-cal { box-sizing: border-box; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--ob3-radius-full); background: var(--ob3-sunk); color: var(--ob3-ink); cursor: pointer; }
:root[data-theme] .obpd-cal { background: var(--ob3-sunk) !important; color: var(--ob3-ink) !important; border-color: transparent !important; }
.obpd-mi-state { margin-left: auto; color: var(--ob3-muted); font-size: var(--ob3-text-body-sm); }
.obpd-calmenu { width: 280px; }

@media (prefers-reduced-motion: reduce) { .obpd-skelb, .obpd-skel-bar { animation: none; } }
:root[data-theme] .obpd .obpr-tick { color: transparent !important; }
:root[data-theme] .obpd .obpr-row.is-done .obpr-tick { color: var(--ob3-on-accent) !important; }
/* an event row's open target is the whole row height (56), not just its text (40) */
.obpd .obpr-srow .obpr-hit { margin-block: calc(-1 * var(--ob3-space-2)); padding-block: var(--ob3-space-2); }

/* ===== T-VISUAL-PLAN review round (30 Oct 2026) ===== */
/* (1) The Day opens on now. Your day (built) is one line: the headline, Undo as a link, a toggle for the rest. */
.obpd #obpd-yd:not(.is-open) .obd-card.is-built { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 44px; align-items: center; column-gap: var(--ob3-space-2); min-height: 56px; padding: var(--ob3-space-1) var(--ob3-space-1) var(--ob3-space-1) var(--ob3-space-4); }
.obpd #obpd-yd:not(.is-open) .obd-card.is-built .obd-head { display: contents; }
.obpd #obpd-yd:not(.is-open) .obd-card.is-built .obd-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.obpd #obpd-yd:not(.is-open) .obd-card.is-built .obd-at, .obpd #obpd-yd:not(.is-open) .obd-card.is-built .obd-body { display: none; }
.obpd #obpd-yd:not(.is-open) .obd-card.is-built .obd-title { margin: 0; min-width: 0; font-size: var(--ob3-text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obpd #obpd-yd:not(.is-open) .obd-card.is-built .obd-undo { margin: 0; min-height: 44px; padding: 0 var(--ob3-space-2); font-size: var(--ob3-text-body-sm); }
.obpd #obpd-yd .obd-card.is-built { position: relative; }
/* a phone gives the headline two lines rather than cutting it */
.is-phone #obpd-yd:not(.is-open) .obd-card.is-built .obd-title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.obpd .obpd-yd-more { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--ob3-radius-full); background: transparent; color: var(--ob3-muted); cursor: pointer; }
.obpd #obpd-yd.is-open .obpd-yd-more { position: absolute; top: var(--ob3-space-2); right: var(--ob3-space-2); transform: rotate(180deg); }
.obpd #obpd-yd.is-open .obd-at { margin-right: 44px; }
.obpd .obpd-yd-more:focus-visible { outline: var(--ob3-focus-ring); }
:root[data-theme] .obpd .obpd-yd-more { background: transparent !important; color: var(--ob3-muted) !important; border-color: transparent !important; }
/* Later and the Panchang line share one compact meta row (the main column is a grid; the Your day host lends it its two children). */
.obpd-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--ob3-space-2); align-content: start; }
.obpd-main > * { grid-column: 1 / -1; }
.obpd #obpd-yd:not([hidden]) { display: contents; }
.obpd #obpd-yd > * { grid-column: 1 / -1; }
.obpd #obpd-yd > .obd-later { grid-column: 1 / -1; margin-top: 0; }   /* parity: its own row (board v17, Android) */
.obpd-main > .obpd-pline { grid-column: 1 / -1; padding: 0 var(--ob3-space-1); }
.obpd-main:not(:has(.obd-later)) > .obpd-pline { grid-column: 1 / -1; }
.obpd .obd-later-head { min-height: 44px; padding: 0 var(--ob3-space-3); gap: var(--ob3-space-2); }
.obpd .obd-later-t { min-width: 0; font-size: var(--ob3-text-body-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obpd .obd-later-n { font-size: var(--ob3-text-body-sm); white-space: nowrap; }
.obpd .obd-later-head > svg { flex: 0 0 auto; }
.obpd-pl-main { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.obpd-main > .obpd-pline { gap: var(--ob3-space-1); }
/* (4) The timeline: the now line runs behind the items (thin), its time sits in the gutter and the hour label beside it steps aside;
   overlapping items share equal lanes (three at most, then "+N"); a title may take two lines. */
.obpd-now { z-index: 0; border-top-width: 1.5px; }
.obpd-now span { z-index: 4; }
.obpd-hr.is-near-now span { visibility: hidden; }
.obpd-item.is-event { align-items: flex-start; padding-top: 3px; }
.obpd-item.is-tall .obpd-t { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 16px; }
.obpd-item:not(.is-tall) { align-items: center; padding-top: 0; }
/* a narrow lane keeps the title: the guests' initials and the place step aside */
.obpd-item:is([data-cols="2"], [data-cols="3"]) .obpd-avs, .obpd-item:is([data-cols="2"], [data-cols="3"]) .obpd-m { display: none; }
.obpd-lanemore { position: absolute; right: 0; z-index: 2; min-width: 28px; height: 22px; padding: 0 4px; border: 0; border-radius: var(--ob3-radius-xs); background: var(--ob3-sunk-deep); color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); cursor: pointer; }
.obpd-lanemore::after { content: ""; position: absolute; inset: -11px -8px; }
:root[data-theme] .obpd-lanemore { background: var(--ob3-sunk-deep) !important; color: var(--ob3-ink) !important; border-color: transparent !important; }
/* muhurat bands: a faint tint, no hatching, so the events lead */
.obpd-band.is-avoid { border: 0; background: color-mix(in srgb, var(--ob3-attention-vivid) 7%, transparent); }
.obpd-band.is-amrit, .obpd-band.is-abhijit { background: color-mix(in srgb, var(--ob3-good-vivid) 7%, transparent); }
.obpd-band .obpd-band-l { color: var(--ob3-muted); }

/* ===== closeout 31 Oct ===== */
/* Today on the date row is a button (a quiet outline, muted words), like Today on Week and Month */
.obpd-today { border: 1px solid var(--ob3-line) !important; border-radius: var(--ob3-radius-full); }
/* very narrow (a phone at 200 % text lays out near 240 px): the time and minutes go on a line above the title, the title takes the width */
@media (max-width: 360px) {
  .is-phone .obpr-srow { grid-template-columns: var(--obpd-lead) minmax(0, 1fr) auto var(--obpd-chev); grid-template-areas: "lead when sev chev" "lead text sev chev"; padding-left: var(--ob3-space-2); }
  .is-phone .obpr-srow .obpr-when, .is-phone .obpr-srow:not(:has(.obpr-end)) .obpr-when { grid-area: when; grid-row: 1; align-self: end; font-size: var(--ob3-text-body-sm); }
  .is-phone .obpr-srow .obpr-end { grid-area: when; grid-row: 1; justify-self: end; align-self: end; margin: 0; }
  .is-phone .obpr-srow .obpr-text { grid-area: text; grid-row: 2; }
  .is-phone .obpr-srow .obpr-glyph, .is-phone .obpr-srow .obpr-tick, .is-phone .obpr-srow .obpr-dot { grid-area: lead; grid-row: 1 / span 2; }
  .is-phone .obpr-srow .obpr-chev, .is-phone .obpr-srow .obpr-sev { grid-row: 1 / span 2; }
  .is-phone .obpr-list.is-stream > li + li::before { left: calc(var(--ob3-space-2) + var(--obpd-lead)); }
  .is-phone .obpr-foldbtn { padding-left: calc(var(--ob3-space-2) + var(--obpd-lead)); }
  .is-phone .obpd-allday { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .is-phone .obpd-allday .obpd-allday-l { grid-row: auto; }
  .is-phone .obpd-allday .obpd-chip { grid-column: 1; }
  .is-phone #obpd-yd:not(.is-open) .obd-card.is-built { grid-template-columns: auto minmax(0, 1fr) 44px; }
  .is-phone #obpd-yd:not(.is-open) .obd-card.is-built .obd-undo { grid-column: 2; grid-row: 2; justify-self: start; padding: 0; }
  .obpd-top-l { flex-wrap: wrap; justify-content: center; }
}

/* t6511: the Mail chip on a plan row that came from mail */
.obpd .obpr-chip2.is-mail { display: inline-flex; align-items: center; gap: 0.25rem; }
