/* ob-today-day.css (V2-T6b): the 24 h day dial in #ob-your-day and the vital tiles
   in #ob-tiles. Tokens --ob3-* only; no colour literal. Loaded after ob-today.css.
   The grid, card surface, .ob-muted and .ob-tiles come from ob-today.css. */

/* ── The dial ────────────────────────────────────────────────────────────── */
.ob-dial-wrap { display: flex; align-items: center; gap: var(--ob3-space-4); margin-top: var(--ob3-space-3); }
.ob-dial { position: relative; width: 180px; height: 180px; flex: 0 0 auto; }
.ob-dial-svg { display: block; }
.ob-dial-track { fill: none; stroke: var(--ob3-sunk); stroke-width: 12; }
.ob-dial-arc { fill: none; stroke-width: 12; stroke-linecap: round; }
.ob-dial-arc.is-event { stroke: var(--ob3-accent); }
.ob-dial-arc.is-step { stroke: var(--ob3-ink); }
.ob-dial-arc.is-window { stroke: var(--ob3-attention-vivid); opacity: 0.45; }
.ob-dial-arc.is-avoid { stroke: var(--ob3-alert-vivid); opacity: 0.3; }
.ob-dial-arc.is-sleep { stroke: var(--ob3-sleep-deep); stroke-width: 5; opacity: 0.7; }
.ob-dial-arc.is-suggested { stroke: var(--ob3-saarthi-fill); stroke-width: 5; stroke-dasharray: 3 4; }
.ob-dial-arc.is-done { opacity: 0.4; }
.ob-dial-arc.is-past { opacity: 0.45; }
.ob-dial-hour { fill: var(--ob3-muted); font-size: 10px; font-family: var(--ob3-font-sans); }
.ob-dial-now { fill: var(--ob3-ink); stroke: var(--ob3-surface); stroke-width: 3; }
.ob-dial-centre {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.ob-dial-time {
  font-size: var(--ob3-text-numeric); line-height: 30px; font-weight: var(--ob3-weight-semibold);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ob3-ink);
}
.ob-dial-nowlabel {
  font-size: var(--ob3-text-label); line-height: var(--ob3-leading-label); font-weight: var(--ob3-weight-semibold);
  letter-spacing: var(--ob3-tracking-label); text-transform: uppercase; color: var(--ob3-muted);
}

.ob-dial-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ob3-space-1); min-width: 0; flex: 1 1 auto; }
.ob-dial-item { min-width: 0; }
body.obds-app .ob-today a.ob-dial-link {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 4px; margin: 0 -4px;
  border-radius: var(--ob3-radius-control); text-decoration: none; color: var(--ob3-ink) !important;
}
body.obds-app .ob-today a.ob-dial-link:hover { background: var(--ob3-sunk); }
.ob-dial-swatch { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 3px; box-sizing: border-box; background: var(--ob3-accent); }
.ob-dial-swatch.is-step { background: var(--ob3-ink); }
.ob-dial-swatch.is-window { background: var(--ob3-attention-vivid); }
.ob-dial-swatch.is-avoid { background: var(--ob3-alert-vivid); }
.ob-dial-swatch.is-allday { background: var(--ob3-accent-tint); border: 1px solid var(--ob3-accent); }
.ob-dial-swatch.is-suggested { background: transparent; border: 2px dashed var(--ob3-saarthi-fill); }
.ob-dial-text { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; overflow: hidden; }
.ob-dial-when {
  font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted);
  font-variant-numeric: tabular-nums;
}
.ob-dial-title {
  font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ob-dial-note { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.ob-dial-note.is-warn { color: var(--ob3-attention); font-weight: var(--ob3-weight-semibold); }
.ob-dial-free { margin: var(--ob3-space-2) 0 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }

@media (max-width: 899px) {
  body.obds-app .ob-today a.ob-dial-link { min-height: 44px; }
}

/* ── The vital tiles: STACKED beside the rhythm card (owner board 31 Oct 2026), each a row: the glyph, then the name over one line ── */
.ob-tile-slot { min-width: 0; display: flex; }
body.obds-app .ob-today a.ob-tile {
  flex: 1 1 auto; display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; min-height: 44px;
  padding: 8px 12px; box-sizing: border-box; border-radius: var(--ob3-today-group-radius); text-decoration: none;
  background: var(--ob3-surface); border: 1px solid transparent; color: var(--ob3-ink) !important;
}
body.obds-app .ob-today a.ob-tile:hover { border-color: var(--ob3-line-strong); }
.ob-tile-glyph { position: relative; width: 36px; height: 36px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.ob-tile-glyph svg { display: block; }
.ob-tile-glyph.is-ring svg { position: absolute; inset: 0; width: 36px; height: 36px; }
.ob-tile-glyph.is-icon svg { width: 20px; height: 20px; }
.ob-ring-track { fill: none; stroke: var(--ob3-good-tint); stroke-width: 7; }
.ob-ring-fill { fill: none; stroke: var(--ob3-good-vivid); stroke-width: 7; stroke-linecap: round; }
.ob-seg { fill: none; stroke: var(--ob3-accent-tint); stroke-width: 7; stroke-linecap: round; }
.ob-seg.is-done { stroke: var(--ob3-accent); }
.ob-ring-value {
  position: relative; font-size: 13px; font-weight: var(--ob3-weight-semibold); font-variant-numeric: tabular-nums;
  color: var(--ob3-ink);
}
.ob-ring-value.is-small { font-size: 11px; }
.ob-tile-glyph.is-icon { border-radius: 10px; }
.ob-tile-glyph.is-leaf { background: var(--ob3-attention-tint); color: var(--ob3-attention); }
.ob-tile-glyph.is-up { background: var(--ob3-good-tint); color: var(--ob3-good); }
.ob-tile-glyph.is-down { background: var(--ob3-alert-tint); color: var(--ob3-alert); }
.ob-tile-glyph.is-plan { background: var(--ob3-accent-tint); color: var(--ob3-on-accent-tint); }
.ob-tile-text { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.ob-tile-name, .ob-tile-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-tile-name { font-size: var(--ob3-text-body-sm); line-height: 18px; font-weight: var(--ob3-weight-semibold); }
.ob-tile-sub { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
/* The tail words ("protein", "overall") show only where the tile has the room. */
#ob-tiles { container-type: inline-size; }
@container (max-width: 520px) { .ob-tile-sub-more { display: none; } }
.ob-tile-sub.is-good { color: var(--ob3-good); }
.ob-tile-sub.is-alert { color: var(--ob3-alert); }

/* The masthead already carries the weather and the tithi, so the card does not repeat
   them as chips (the board's Your day has none). */
#ob-your-day .ob-day-chips { display: none; }

/* ═════════════════════════════════════════════════════════════════════════════
   R5-T9: Today to the boards (Main, TodayDark, TodayV2Phone*, TodayV2Tablet*).
   Tokens only; sizes are px, no colour literal. This sheet loads after ob-today.css and wins by order
   (and by `body.obds-app .ob-today` where the legacy button / anchor resets are !important).
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── Masthead: a line icon before the date, the weather and the focus ─────── */
.ob-masthead-date { display: flex; align-items: center; gap: 6px; }
.ob-mast-ico { display: inline-flex; flex: 0 0 auto; }
.ob-masthead-date .ob-mast-ico { color: var(--ob3-muted); }
body.obds-app .ob-today .ob-chip .ob-mast-ico { color: var(--ob3-muted); }
body.obds-app .ob-today a.ob-chip.is-focus .ob-mast-ico { color: var(--ob3-on-accent-tint); }
/* The greeting: 22 px on the phone, 24 on the tablet, 26 on the desktop (the boards). */
@media (max-width: 899.98px) {
  .ob-masthead-greeting { font-size: 22px; line-height: 28px; min-height: 28px; }
}
@media (min-width: 900px) { .ob-masthead-greeting { font-size: 24px; line-height: 30px; min-height: 30px; } }
@media (min-width: 1280px) { .ob-masthead-greeting { font-size: 26px; line-height: 32px; min-height: 32px; } .ob-masthead { margin-bottom: 32px; } }

/* ── Your day: the card head and the dial ─────────────────────────────────── */
#ob-your-day-h { font-size: 15px; }
body.obds-app .ob-today a.ob-day-open { display: inline-flex; align-items: center; gap: 2px; }
.ob-dial-track { stroke-width: 14; }
.ob-dial-arc { stroke-width: 14; }
.ob-dial-arc.is-sleep, .ob-dial-arc.is-suggested { stroke-width: 5; }
.ob-dial-time { font-size: 28px; line-height: 32px; font-weight: var(--ob3-weight-bold); }
.ob-dial-nowlabel { font-size: 10px; line-height: 14px; letter-spacing: 0.1em; }
.ob-dial { max-width: 100%; }
.ob-dial-svg { max-width: 100%; height: auto; }

/* ── Phone, scrolled: the compact date bar (TodayV2PhoneScrolled); never drawn from 900 px up ── */
.ob-mast-compact { display: none; }
@media (max-width: 899.98px) {
  .ob-mast-compact:not([hidden]) {
    display: flex; align-items: center; position: fixed; top: 0; left: 0; right: 0; z-index: 2; box-sizing: border-box; height: 64px;
    padding: 0 76px 0 var(--ob3-space-4); background: linear-gradient(180deg, var(--ob3-saarthi-tint), var(--ob3-paper)); border-bottom: 1px solid var(--ob3-line);
    font-size: 18px; line-height: 24px; font-weight: var(--ob3-weight-bold); color: var(--ob3-ink);
  }
}

/* ══ Owner board, 31 Oct 2026 (Main = cover, Inner = inner; pills option A for the weather, B for the life clock) ══ */

/* ── The masthead pills: ONE line of three: the weather ("14° Cloudy"), Focus (keeps its name, the widest, ellipsis) and the life
   clock ("33y"). Each is 44 px high; at very large text the condition word and the life-clock figure step back to icons, never a wrap. */
.ob-masthead-chips { display: flex; flex-wrap: nowrap; gap: 8px; min-height: 44px; }
.ob-masthead-chips > .ob-chip { flex: 0 1 auto; min-width: 0; height: 44px; min-height: 44px; padding: 0 12px; gap: 6px; justify-content: center; font-size: 13px; white-space: nowrap; }
.ob-masthead-chips > .ob-chip[hidden] { display: none; }
.ob-masthead-chips > .ob-chip.is-focus { flex: 1 1 0; }
.ob-masthead-chips > .ob-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ob-masthead-chips > .ob-chip > .ob-mast-ico { flex: 0 0 auto; overflow: visible; }
#ob-masthead-weather { font-size: 12px; }
.ob-masthead-chips .ob-lc-pill .ob-lc-chev { display: none; }
body.obds-app .ob-today .ob-masthead-chips .ob-lc-pill .ob-mast-ico { color: var(--ob3-muted); }
@media (max-width: 931.98px) {
  /* The avatar sits beside the date and greeting only, so the pill row takes the full width (the shell's 60 px inset is for the avatar). */
  .ob-masthead-chips { margin-right: -60px; }
}
/* The weather and life-clock pills never shrink (never blank); Focus takes the rest. ob-today-masthead.js fitChips() steps the row
   down (data-fit 1..4) only while the Focus name would be cut: 1 the weather word, 2 "Focus: ", 3 the Focus icon, 4 the other icons. */
.ob-masthead-chips > .ob-chip:not(.is-focus) { flex: 0 0 auto; }
.ob-masthead-chips[data-fit] .ob-chip-more { display: none; }
.ob-masthead-chips[data-fit="2"] .ob-focus-pre, .ob-masthead-chips[data-fit="3"] .ob-focus-pre, .ob-masthead-chips[data-fit="4"] .ob-focus-pre { display: none; }
.ob-masthead-chips[data-fit="3"] > .ob-chip.is-focus > .ob-mast-ico, .ob-masthead-chips[data-fit="4"] > .ob-chip > .ob-mast-ico { display: none; }
.ob-masthead-chips[data-fit="3"], .ob-masthead-chips[data-fit="4"] { gap: 4px; }
.ob-masthead-chips[data-fit="3"] > .ob-chip, .ob-masthead-chips[data-fit="4"] > .ob-chip { padding: 0 9px; gap: 4px; } .ob-masthead-chips[data-fit="4"] { gap: 2px; } .ob-masthead-chips[data-fit="4"] > .ob-chip { padding: 0 5px; }
/* ── The rhythm card on the LEFT, the three tiles STACKED on the right, tops and bottoms equal ── */
.ob-rhythm-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: stretch; min-width: 0; }
.ob-rhythm-row:not(:has(> .ob-tiles:not([hidden]):not(:empty))) { grid-template-columns: minmax(0, 1fr); }
.ob-rhythm-row > #ob-your-day { padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.ob-rhythm-row > .ob-tiles { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ob-rhythm-row > .ob-tiles > .ob-tile-slot { flex: 1 1 0; }
.ob-rhythm-row > .ob-tiles > .ob-tile-slot[hidden] { display: none; }
#ob-your-day-h { font-size: 13px; line-height: 18px; }
#ob-your-day > .ob-card-head { align-items: center; }
/* theme.css gives every h2 16/8 px margins with !important: the card title takes none. */
#ob-your-day > .ob-card-head > .ob-card-title { margin: 0 !important; }
/* The card shows the dial and ONE "Next" line (the board); the dial's group label speaks the rest of the day, and Plan opens it. */
#ob-your-day .ob-dial-wrap { flex-direction: column; align-items: center; gap: 0; margin-top: var(--ob3-space-2); }
#ob-your-day .ob-dial-list, #ob-your-day .ob-dial-free { display: none; }
#ob-your-day .ob-dial, #ob-your-day .ob-dial-svg { width: 140px; height: 140px; }
#ob-your-day .ob-dial-time { font-size: 22px; line-height: 26px; }
.ob-dial-next { margin: var(--ob3-space-2) 0 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); overflow-wrap: anywhere; }
.ob-dial-next > b { color: var(--ob3-ink); font-weight: var(--ob3-weight-semibold); }
#ob-your-day { container-type: inline-size; }
@container (max-width: 180px) { #ob-your-day .ob-dial, #ob-your-day .ob-dial-svg { width: 120px; height: 120px; } #ob-your-day .ob-dial-time { font-size: 20px; line-height: 24px; } }
/* A column under 300 px (font scale 2 on a phone): the rhythm card and the tiles stack. */
@container obcol (max-width: 300px) {
  .ob-rhythm-row { grid-template-columns: minmax(0, 1fr); }
}
/* T-VISUAL-TODAY review: the dial carries no hour numerals (the Next line and the centre time say the time). */
.ob-dial-hour { display: none; }
/* ── Option B (t6530, board Colour B Today): the rhythm card and the "Your day" Saarthi card take two-stop gradients; Readiness, Portfolio and Food are tinted tiles ── */
#ob-your-day { background: linear-gradient(160deg, var(--ob3-rhythm-a), var(--ob3-rhythm-b)); border: 1px solid var(--ob3-line); }
#obd-today .obd-today { background: linear-gradient(135deg, var(--ob3-hero-a), var(--ob3-hero-b)); }
body.obds-app .ob-today a.ob-tile { border-color: var(--ob3-line); }
body.obds-app .ob-today a.ob-tile[data-tile="readiness"] { background: var(--ob3-tile-read); }
body.obds-app .ob-today a.ob-tile[data-tile="portfolio"] { background: var(--ob3-tile-port); }
body.obds-app .ob-today a.ob-tile[data-tile="food"] { background: var(--ob3-tile-food); }
body.obds-app .ob-today a.ob-tile[data-tile="readiness"] .ob-tile-sub:not(.is-alert) { color: var(--ob3-tile-on-read); }
body.obds-app .ob-today a.ob-tile[data-tile="portfolio"] .ob-tile-sub:not(.is-alert) { color: var(--ob3-tile-on-port); }
body.obds-app .ob-today a.ob-tile[data-tile="food"] .ob-tile-sub:not(.is-alert) { color: var(--ob3-tile-on-food); }
.ob-tile[data-tile="readiness"] .ob-ring-track { stroke: var(--ob3-track); }
.ob-tile[data-tile="readiness"] .ob-tile-glyph { background: var(--ob3-tile-read-ic); border-radius: 50%; }
.ob-tile[data-tile="portfolio"] .ob-tile-glyph.is-icon { background: var(--ob3-tile-port-ic); color: var(--ob3-tile-on-port); }
.ob-tile[data-tile="food"] .ob-tile-glyph.is-icon { background: var(--ob3-tile-food-ic); color: var(--ob3-tile-on-food); }
#obd-today .obd-today .obd-today-eyebrow { color: var(--ob3-tile-on-mind); }
