/* ob-plan-month.css (R6-T4): the Plan Month grid, the day panel and, below, the daily reading styles moved from calendar.html. Tokens only; Paper and Graphite both. */

  /* ============================================================
   * The daily reading (horoscope sprint, docs/ob-build-goal-horoscope.md
   * §7.7, the Web board). Tokens only. Violet (the Saarthi role) is the
   * reading's own mark: its soft block and its sun icon, nothing else.
   * Tones: 4 and 5 good, 3 ink, 1 and 2 amber; never the error rose.
   * ============================================================ */
  .obp-t-good { --horo-tone: var(--ob3-good); }
  .obp-t-ink { --horo-tone: var(--ob3-ink); }
  .obp-t-attn { --horo-tone: var(--ob3-attention); }

  /* The month cell's bar: five segments, filled for a made reading, outlined
   * (a stroke, never a fill) for a forecast day (HD-21). */
  .obp-reading-bar { display: flex; gap: 2px; margin-top: auto; padding-top: 2px; }
  .obp-goal-dots + .obp-reading-bar { margin-top: 3px; }
  .obp-reading-bar .seg { width: 10px; height: 3px; border-radius: 2px; box-sizing: border-box; background: var(--ob3-line); }
  .obp-reading-bar .seg.is-on { background: var(--horo-tone); }
  .obp-reading-bar.is-outlined .seg { background: transparent; border: 1px solid var(--ob3-line); }
  .obp-reading-bar.is-outlined .seg.is-on { background: transparent; border: 1px solid var(--horo-tone); }
  .obp-reading-foot { margin-top: 10px; font-size: 12px; color: var(--ob3-muted); line-height: 1.45; }

  /* The day panel's reading section */
  .obp-reading {
    background: var(--ob3-saarthi-tint); border-radius: var(--ob3-radius-card);
    padding: 16px; margin: 12px 0 4px; display: flex; flex-direction: column; gap: 12px;
  }
  .obp-reading-head { display: flex; align-items: center; gap: 8px; }
  .obp-reading-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ob3-ink); flex: 1; min-width: 0; }
  .obp-reading-mark {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ob3-surface); color: var(--ob3-saarthi);
  }
  .obp-reading-pill {
    font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--horo-tone);
    background: var(--ob3-surface); border-radius: var(--ob3-radius-full); padding: 4px 10px;
  }
  .obp-reading-tag {
    font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--ob3-muted);
    background: var(--ob3-sunk); border: 1px solid var(--ob3-line);
    border-radius: var(--ob3-radius-full); padding: 2px 8px;
  }
  .obp-reading-chartline { font-size: 12px; color: var(--ob3-muted); margin-top: -6px; }
  .obp-reading-summary { margin: 0; font-family: var(--ob3-font-serif); font-size: 16px; line-height: 1.45; color: var(--ob3-ink); }
  .obp-reading-rows { display: flex; flex-direction: column; gap: 6px; }
  .obp-reading-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ob3-ink); }
  .obp-reading-row .lbl { width: 56px; flex-shrink: 0; }
  .obp-reading-row .bars { display: flex; gap: 3px; flex: 1; min-width: 0; }
  .obp-reading-row .bars .seg { flex: 1; height: 6px; border-radius: 3px; background: var(--ob3-line); }
  .obp-reading-row .bars .seg.is-on { background: var(--horo-tone); }
  .obp-reading-row .word { width: 72px; flex-shrink: 0; text-align: right; font-weight: 600; color: var(--horo-tone); font-variant-numeric: tabular-nums; }
  .obp-reading-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .obp-reading-chip {
    font-size: 12px; padding: 3px 10px; border-radius: var(--ob3-radius-full);
    background: var(--ob3-surface); border: 1px solid var(--ob3-line); color: var(--ob3-muted);
  }
  button.obp-reading-open,
  button.obp-rf-back {
    background: transparent !important; border: 0 !important; color: var(--ob3-accent-text) !important;
    font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer;
    min-height: 44px; padding: 0; display: flex; align-items: center;
  }
  button.obp-reading-open:hover,
  button.obp-rf-back:hover { text-decoration: underline; }
  .obp-reading-invite {
    background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card);
    padding: 16px; margin: 12px 0 4px; display: flex; align-items: center; gap: 12px;
  }
  .obp-reading-invite .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .obp-reading-invite .ttl { font-size: 15px; font-weight: 600; color: var(--ob3-ink); }
  .obp-reading-invite .body { font-size: 13px; color: var(--ob3-muted); line-height: 1.4; }
  .obp-reading-invite .obds-btn { min-height: 44px; display: inline-flex; align-items: center; flex-shrink: 0; }
  .obp-reading-skel { min-height: 120px; margin: 12px 0 4px; border-radius: var(--ob3-radius-card); background: var(--ob3-sunk); }
  .obp-reading-skel.is-tall { min-height: 320px; }

  /* The full reading, expanded in place in the day panel (HD-15) */
  .obp-rf { display: flex; flex-direction: column; gap: 14px; }
  .obp-rf-eyebrow { font-size: 12px; color: var(--ob3-muted); }
  .obp-rf-titlerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .obp-rf-titlerow h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ob3-ink); }
  #obp-rf-title:focus:not(:focus-visible) { outline: none; }   /* focused on open for screen readers; keyboard focus keeps its ring */
  .obp-rf-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .obp-rf-tile { background: var(--ob3-sunk); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-control); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .obp-rf-tile .k { font-size: 11px; color: var(--ob3-muted); }
  .obp-rf-tile .v { font-size: 14px; font-weight: 600; color: var(--ob3-ink); overflow-wrap: anywhere; }
  .obp-rf-tile-note { font-size: 11px; line-height: 1.35; color: var(--ob3-attention); }   /* the About time's lagna caveat, attention tone */
  .obp-rf-summary { background: var(--ob3-saarthi-tint); border-radius: var(--ob3-radius-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
  .obp-rf-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .obp-rf-summary-head .lbl { font-size: 12px; font-weight: 600; color: var(--ob3-ink); display: inline-flex; align-items: center; gap: 6px; }
  .obp-rf-summary-head .lbl svg { color: var(--ob3-saarthi); }
  .obp-rf-summary p { margin: 0; font-family: var(--ob3-font-serif); font-size: 17px; line-height: 1.45; color: var(--ob3-ink); }
  .obp-rf h3 { margin: 4px 0 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ob3-muted); }
  .obp-rf-move { display: flex; gap: 10px; align-items: flex-start; }
  .obp-rf-abbr { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--ob3-sunk); border: 1px solid var(--ob3-line); color: var(--ob3-ink); }
  .obp-rf-move-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .obp-rf-move-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
  .obp-rf-move-title { font-size: 13px; font-weight: 600; color: var(--ob3-ink); }
  .obp-rf-move-tag { font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--horo-tone); }
  .obp-rf-move-tag.obp-t-neutral { color: var(--ob3-muted); }
  .obp-rf-detail, .obp-rf-why, .obp-rf-season, .obp-rf-note { font-size: 12px; line-height: 1.45; color: var(--ob3-muted); }
  .obp-rf-moves, .obp-rf-areas { display: flex; flex-direction: column; gap: 8px; }
  .obp-rf-area { background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-control); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
  .obp-rf-area .obp-reading-row .bars .seg { height: 6px; max-width: 14px; }
  .obp-rf-area-text { font-size: 13px; line-height: 1.45; color: var(--ob3-ink); }
  .obp-rf-season .sw { font-weight: 600; color: var(--horo-tone); }
  .obp-rf-windows { background: var(--ob3-attention-tint); border-radius: var(--ob3-radius-control); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
  .obp-rf-win { display: flex; gap: 10px; font-size: 13px; color: var(--ob3-ink); }
  .obp-rf-win .t { font-family: var(--ob3-font-mono); font-weight: 600; white-space: nowrap; }
  .obp-rf-win.is-muted { color: var(--ob3-muted); }
  .obp-rf-driver, .obp-rf-reason { font-size: 13px; line-height: 1.45; color: var(--ob3-ink); margin: 0; }
  .obp-rf-driver .k { font-weight: 700; color: var(--ob3-muted); margin-right: 4px; }
  .obp-rf-flow { background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-control); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
  .obp-rf-flowrow { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ob3-ink); }
  .obp-rf-flowk { flex: 0 0 76px; font-weight: 700; color: var(--ob3-muted); }
  .obp-rf-flowv { min-width: 0; overflow-wrap: anywhere; }
  .obp-knhost:empty { display: none; }
  .obp-kn { border-top: 1px solid var(--ob3-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
  .obp-kn-h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ob3-muted); font-weight: 600; margin: 0; }
  .obp-kn-label, .obp-kn-foot, .obp-kn-retry { font-size: 13px; color: var(--ob3-muted); margin: 0; }
  .obp-kn-areas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .obp-kn-area { font-size: 15px; line-height: 1.5; color: var(--ob3-ink); overflow-wrap: anywhere; }
  .obp-kn-text { font-size: 15px; line-height: 1.5; color: var(--ob3-ink); margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
  .obp-kn-retry { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
  .obp-kn-retrybtn, :root[data-theme] .obp-kn-retrybtn { font: inherit; font-weight: 700; min-height: 44px; padding: 0 4px; cursor: pointer; color: var(--ob3-ink) !important; background: transparent !important; border: 0 !important; text-decoration: underline; text-underline-offset: 3px; }
  .obp-rf-empty { font-size: 13px; color: var(--ob3-muted); padding: 6px 0; }

/* ======================================================================================================================
   The Plan Month view (R6-T4): the grid in #obp-month, the day panel in #obp-panel. Tokens --ob3-* only.
   Desktop: grid | panel. Tablet: grid | a narrower panel. Phone: the grid, then the day under it (Open the day).
   ====================================================================================================================== */
body[data-obp-view="month"] .obds-canvas-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--ob3-space-4); align-items: start; }
body[data-obp-view="month"] #obp-head, body[data-obp-view="month"] #obp-banner { grid-column: 1 / -1; }
@media (min-width: 600px) {
  body[data-obp-view="month"] .obds-canvas-body { grid-template-columns: minmax(0, 1fr) 320px; }
  body[data-obp-view="month"] #obp-month { grid-column: 1; grid-row: 3; }
  body[data-obp-view="month"] #obp-panel { grid-column: 2; grid-row: 3; }
  body[data-obp-view="month"] .obds-canvas-body:has(#obp-panel[data-closed="true"]) { grid-template-columns: minmax(0, 1fr); }
  body[data-obp-view="month"] .obds-canvas-body:has(#obp-panel[data-closed="true"]) #obp-month { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  body[data-obp-view="month"] .obds-canvas-body { grid-template-columns: minmax(0, 1fr) 380px; }
}
#obp-panel[data-closed="true"] { display: none; }

.obp-month-card { padding: var(--ob3-space-4); }
.obp-m-locs { display: flex; flex-wrap: wrap; gap: var(--ob3-space-2); margin-bottom: var(--ob3-space-3); }
.obp-m-loc { min-height: 44px; padding: 0 var(--ob3-space-3); 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; }
.obp-m-loc.is-on { background: var(--ob3-inverse-surface); color: var(--ob3-on-inverse); border-color: var(--ob3-inverse-surface); }
.obp-m-loc:focus-visible, .obp-m-citypick:focus-visible { outline: var(--ob3-focus-ring); }
.obp-m-city { margin-bottom: var(--ob3-space-3); }
.obp-m-cityin { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 var(--ob3-space-3); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-control); background: var(--ob3-paper); color: var(--ob3-ink); font: inherit; }
.obp-m-cityres { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.obp-m-citypick { min-height: 44px; text-align: left; 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; cursor: pointer; }

.obp-m-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); padding-bottom: 6px; }
.obp-m-grid { display: flex; flex-direction: column; }
.obp-m-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ob3-line); }
.obp-m-cell { position: relative; box-sizing: border-box; min-width: 0; min-height: 64px; padding: 4px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; border-radius: var(--ob3-radius-control); color: var(--ob3-ink); }
.obp-m-cell:focus-visible { outline: var(--ob3-focus-ring); outline-offset: -2px; }
.obp-m-head { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.obp-m-num { min-width: 28px; height: 28px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ob3-radius-full); font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-medium); font-variant-numeric: tabular-nums; }
.obp-m-cell.is-out .obp-m-num { color: var(--ob3-faint); }
.obp-m-cell.is-today .obp-m-num { background: var(--ob3-accent); color: var(--ob3-on-accent); font-weight: var(--ob3-weight-bold); }
.obp-m-cell.is-selected { background: var(--ob3-accent-tint); }
.obp-m-obs { display: none; font-size: 11px; line-height: 13px; font-weight: var(--ob3-weight-semibold); color: var(--ob3-attention); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obp-m-chips { display: none; flex-direction: column; gap: 2px; width: 100%; min-width: 0; padding: 0 3px; box-sizing: border-box; }
.obp-m-chip { display: block; font-size: 11px; line-height: 15px; padding: 1px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: var(--ob3-weight-medium); text-align: left; }
.obp-m-chip.is-event { background: var(--ob3-accent-tint); color: var(--ob3-on-accent-tint); }
.obp-m-chip.is-step { background: var(--ob3-good-tint); color: var(--ob3-good); }
.obp-m-chip.is-emergency { background: var(--ob3-alert-tint); color: var(--ob3-alert); }
.obp-m-more { font-size: 11px; line-height: 14px; color: var(--ob3-muted); text-align: left; padding: 0 5px; }
.obp-m-dots { display: flex; gap: 3px; min-height: 6px; justify-content: center; }
.obp-m-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.obp-m-dot.is-event { background: var(--ob3-accent); }
.obp-m-dot.is-step { background: var(--ob3-good-vivid); }
.obp-m-dot.is-emergency { background: var(--ob3-alert); }
.obp-m-dot.is-obs { background: var(--ob3-attention-vivid); }
.obp-m-cell .obp-reading-bar { margin-top: 0; padding-top: 0; }
@media (min-width: 600px) {
  .obp-m-cell { min-height: 112px; align-items: stretch; padding: 4px 2px 6px; gap: 3px; }
  .obp-m-head { flex-direction: column; align-items: flex-start; gap: 1px; padding: 0 3px; width: 100%; box-sizing: border-box; }
  .obp-m-obs { font-size: 12px; line-height: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; overflow: hidden; text-overflow: clip; max-width: 100%; }
  .obp-m-chips { display: flex; }
  .obp-m-dots { display: none; }
  .obp-m-cell .obp-reading-bar { padding: 0 5px; }
}
.obp-m-foot { margin: var(--ob3-space-3) 0 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.obp-m-foot:empty { display: none; }

/* ---- the day panel ---- */
.obp-m-panel { box-sizing: border-box; background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); padding: var(--ob3-space-4); color: var(--ob3-ink); min-width: 0; margin-top: var(--ob3-space-4); }
@media (min-width: 600px) { .obp-m-panel { margin-top: 0; } }
.obp-m-phead { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ob3-space-3); }
.obp-m-ptitle { margin: 0; font-size: var(--ob3-text-section); line-height: var(--ob3-leading-section); font-weight: var(--ob3-weight-semibold); }
.obp-m-psub { margin: 2px 0 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.obp-m-pclose { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--ob3-radius-full); background: none; color: var(--ob3-ink); font: inherit; font-size: 16px; cursor: pointer; }
.obp-m-pclose:focus-visible, .obp-m-addev:focus-visible, .obp-m-evrow:focus-visible { outline: var(--ob3-focus-ring); }
.obp-m-obslist { list-style: none; margin: var(--ob3-space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.obp-m-obslist li { display: inline-flex; flex-direction: column; padding: 4px 10px; border-radius: var(--ob3-radius-control); background: var(--ob3-attention-tint); color: var(--ob3-attention); font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-semibold); }
.obp-m-obslist .in { font-size: 11px; font-weight: var(--ob3-weight-regular); }
.obp-m-approx { margin: var(--ob3-space-3) 0 0; font-size: var(--ob3-text-meta); color: var(--ob3-attention); }
.obp-m-figs { display: flex; gap: var(--ob3-space-4); flex-wrap: wrap; margin-top: var(--ob3-space-3); padding: var(--ob3-space-3); border-radius: var(--ob3-radius-control); background: var(--ob3-attention-tint); }
.obp-m-figs .fig { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.obp-m-figs .k { font-size: 11px; line-height: 14px; color: var(--ob3-attention); }
.obp-m-figs .v { font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-bold); font-variant-numeric: tabular-nums; }
.obp-m-sec { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-3); margin-top: var(--ob3-space-4); }
.obp-m-sech { margin: 0; font-size: 11px; line-height: 16px; letter-spacing: var(--ob3-tracking-label); text-transform: uppercase; color: var(--ob3-muted); font-weight: var(--ob3-weight-bold); }
.obp-m-addev { 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-semibold); cursor: pointer; }
.obp-m-evnote { margin-top: var(--ob3-space-2); }
.obp-m-evlist { display: flex; flex-direction: column; gap: var(--ob3-space-2); margin-top: var(--ob3-space-2); }
.obp-m-evrow { min-height: 44px; display: flex; align-items: center; gap: var(--ob3-space-3); width: 100%; box-sizing: border-box; padding: 6px 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; text-align: left; cursor: pointer; }
.obp-m-evrow .tm { width: 48px; flex-shrink: 0; font-size: var(--ob3-text-body-sm); color: var(--ob3-muted); font-variant-numeric: tabular-nums; }
.obp-m-evrow .ic { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--ob3-accent-tint); color: var(--ob3-accent-text); display: inline-flex; align-items: center; justify-content: center; }
.obp-m-evrow .main { display: flex; flex-direction: column; min-width: 0; }
.obp-m-evrow .ttl { font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-semibold); overflow-wrap: anywhere; }
.obp-m-evrow .sub { font-size: var(--ob3-text-meta); color: var(--ob3-muted); }
.obp-m-pan { margin-top: var(--ob3-space-2); padding: var(--ob3-space-3); border-radius: var(--ob3-radius-control); background: var(--ob3-sunk); display: flex; flex-direction: column; gap: 6px; font-size: var(--ob3-text-body-sm); }
.obp-m-kv { display: flex; justify-content: space-between; gap: var(--ob3-space-3); }
.obp-m-kv span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.obp-m-goals { display: flex; flex-direction: column; gap: var(--ob3-space-2); margin-top: var(--ob3-space-2); }
.obp-m-goal { min-height: 44px; display: flex; align-items: center; gap: var(--ob3-space-3); }
.obp-m-goal .dot { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--ob3-line-strong); box-sizing: border-box; }
.obp-m-goal.is-emergency .dot { border-color: var(--ob3-alert); }
.obp-m-goal .ttl { flex: 1; min-width: 0; font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-medium); overflow-wrap: anywhere; }
.obp-m-goal .pill { font-size: 11px; padding: 2px 10px; border-radius: var(--ob3-radius-full); background: var(--ob3-sunk); color: var(--ob3-muted); }

/* theme.css forces `:root[data-theme] button { background, color, border-color !important }`; these outrank it. */
:root[data-theme] .obp-m-loc, :root[data-theme] .obp-m-citypick, :root[data-theme] .obp-m-addev, :root[data-theme] .obp-m-evrow { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; }
:root[data-theme] .obp-m-loc.is-on { background: var(--ob3-inverse-surface) !important; color: var(--ob3-on-inverse) !important; border-color: var(--ob3-inverse-surface) !important; }
:root[data-theme] .obp-m-pclose { background: transparent !important; color: var(--ob3-ink) !important; border-color: transparent !important; }

/* the day's reading: a collapsed disclosure row; expanding shows the card in place */
.obp-m-readrow { margin-top: var(--ob3-space-3); width: 100%; box-sizing: border-box; min-height: 44px; display: flex; align-items: center; gap: var(--ob3-space-3); 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; text-align: left; cursor: pointer; }
.obp-m-readrow .mark { color: var(--ob3-saarthi); display: inline-flex; }
.obp-m-readrow .lbl { flex: 1; min-width: 0; font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-semibold); }
.obp-m-readrow .pill { font-size: 12px; font-weight: 600; color: var(--horo-tone); white-space: nowrap; }
.obp-m-readrow .chev { transition: transform var(--ob3-dur-short) var(--ob3-ease); }
.obp-m-readrow[aria-expanded="true"] .chev { transform: rotate(180deg); }
.obp-m-readrow:focus-visible { outline: var(--ob3-focus-ring); }
#obp-reading[hidden] { display: none; }
:root[data-theme] .obp-m-readrow { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; }
:root[data-theme] button.obp-reading-open, :root[data-theme] button.obp-rf-back { background: transparent !important; color: var(--ob3-accent-text) !important; border-color: transparent !important; }

/* R6.2: day marks (major festival star, full and new moon) sit in the cell corners so the date number stays centred; the phone festival list. */
.obp-m-mark { position: absolute; top: 4px; display: block; font-style: normal; pointer-events: none; }
.obp-m-mark.is-star { left: 4px; font-size: 11px; line-height: 12px; color: var(--ob3-attention); }
.obp-m-mark.is-full, .obp-m-mark.is-new { right: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--ob3-attention); }
.obp-m-mark.is-full { background: var(--ob3-attention-vivid); }
.obp-m-mark.is-new { background: var(--ob3-ink); border-color: var(--ob3-ink); }
.obp-m-obs { font-weight: var(--ob3-weight-semibold); color: var(--ob3-attention); }
.obp-m-chip.is-event.has-color { border-left: 3px solid var(--obp-ev); background: color-mix(in srgb, var(--obp-ev) 14%, var(--ob3-surface)); color: var(--ob3-ink); }
.obp-m-chip.is-step.is-completed, .obp-m-chip.is-emergency.is-completed { color: var(--ob3-muted); text-decoration: line-through; }
.obp-m-chip.is-paused { color: var(--ob3-muted); background: var(--ob3-sunk); }
.obp-m-tick { text-decoration: none; display: inline-block; }
.obp-m-fest { margin-top: var(--ob3-space-3); }
.obp-m-festh { margin: 0 0 var(--ob3-space-2); font-size: 11px; line-height: 16px; letter-spacing: var(--ob3-tracking-label); text-transform: uppercase; color: var(--ob3-muted); font-weight: var(--ob3-weight-bold); }
.obp-m-festlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.obp-m-festrow { width: 100%; box-sizing: border-box; min-height: 45px; display: flex; align-items: center; gap: var(--ob3-space-3); padding: 6px var(--ob3-space-2); border: 0; border-top: 1px solid var(--ob3-line); border-radius: 0; background: transparent; color: var(--ob3-ink); font: inherit; font-size: var(--ob3-text-body-sm); text-align: left; cursor: pointer; }
.obp-m-festrow .d { flex-shrink: 0; min-width: 84px; color: var(--ob3-muted); font-variant-numeric: tabular-nums; }
.obp-m-festrow .n { flex: 1; min-width: 0; font-weight: var(--ob3-weight-semibold); color: var(--ob3-attention); overflow-wrap: anywhere; }
.obp-m-festrow:focus-visible { outline: var(--ob3-focus-ring); }
:root[data-theme] .obp-m-festrow { background: transparent !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; border-top-width: 1px; }
@media (min-width: 600px) { .obp-m-fest { display: none; } }
@media (min-width: 600px) { .obp-m-mark.is-star { display: none; } }   /* the label carries the star from 600 px up (R6.2 review minor 2) */

/* ===== T-VISUAL-PLAN: the Month grid is the fixed calendar pane (owner rule, 30 Oct 2026). From 900 px (core fit(): data-obp-fit and
   --obp-avail on the root) the page does not scroll: the card is the viewport's height under the header and its rows share that
   height evenly (fitCells() trims chips a short cell cannot hold); the day panel beside it scrolls on its own with its head kept.
   Below 900 px a festival name takes one line, so every row of the month is the same height. */
.obp-m-chip[hidden] { display: none; }
@media (min-width: 600px) { .obp-m-obs { -webkit-line-clamp: 1; } }
:root[data-obp-fit] body[data-obp-view="month"] .obds-canvas-body { align-items: stretch; align-content: start; }
/* the calendar first: the place chips share the foot row with the legend (they were a row above the grid) */
.obp-m-footrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ob3-space-2) var(--ob3-space-4); margin-top: var(--ob3-space-3); }
.obp-m-footrow > [data-m-legend] { min-width: 0; }
.obp-m-footrow > [data-m-legend] .obp-wm-legend { margin-top: 0; }
.obp-m-footrow .obp-m-locs { margin-bottom: 0; }
.obp-m-footrow > [data-m-locwrap] { margin-left: auto; }
.obp-m-footrow > [data-m-locwrap] .obp-m-city { margin: var(--ob3-space-2) 0 0; }
:root[data-obp-fit] #obp-month .obp-m-num { height: 24px; min-width: 24px; }
:root[data-obp-fit] #obp-month .obp-m-cell { padding-top: 2px; gap: 2px; }
:root[data-obp-fit] #obp-month .obp-m-foot { margin-top: var(--ob3-space-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) and (max-width: 1339px) { :root[data-obp-fit] body[data-obp-view="month"] .obds-canvas-body { grid-template-columns: minmax(0, 1fr) 320px; } }
:root[data-obp-fit] #obp-month { height: var(--obp-avail, auto); min-height: 0; }
:root[data-obp-fit] #obp-month > .obp-month-card { height: 100%; display: flex; flex-direction: column; }
:root[data-obp-fit] #obp-month .obp-m-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); }
:root[data-obp-fit] #obp-month .obp-m-row { min-height: 0; }
:root[data-obp-fit] #obp-month .obp-m-cell { min-height: 0; overflow: hidden; }
:root[data-obp-fit] #obp-panel { height: var(--obp-avail, auto); min-height: 0; }
:root[data-obp-fit] #obp-panel > .obp-m-panel { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
:root[data-obp-fit] #obp-panel .obp-m-phead { position: sticky; top: calc(-1 * var(--ob3-space-4)); z-index: 2; margin: calc(-1 * var(--ob3-space-4)) calc(-1 * var(--ob3-space-4)) 0; padding: var(--ob3-space-4); background: var(--ob3-surface); border-radius: var(--ob3-radius-card) var(--ob3-radius-card) 0 0; }
:root[data-obp-fit] #obp-month .obp-m-cell { padding-bottom: 2px; }
:root[data-obp-fit] #obp-month .obp-m-chip { line-height: 14px; }
:root[data-obp-fit] #obp-month .obp-m-more { line-height: 13px; }

/* ===== T-VISUAL-PLAN review round ===== */
/* a month chip is one quiet line: a 6 px dot in its kind's colour, then the title (ellipsis); "+N" is a plain count */
.obp-m-chip, :root[data-theme] .obp-m-chip { position: relative; padding: 0 2px 0 11px !important; background: transparent !important; color: var(--ob3-ink) !important; border: 0 !important; font-weight: var(--ob3-weight-regular); }
.obp-m-chip::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ob3-accent); }
.obp-m-chip.is-step::before { background: var(--ob3-good-vivid); }
.obp-m-chip.is-emergency::before { background: var(--ob3-alert); }
.obp-m-chip.has-color::before { background: var(--obp-ev, var(--ob3-accent)); }
.obp-m-more { color: var(--ob3-muted); font-variant-numeric: tabular-nums; }
/* the Panchang note wraps (no ellipsis) */
:root[data-obp-fit] #obp-month .obp-m-foot { white-space: normal; overflow: visible; }
/* one style per role: New event (the card) is the filled main action; Add event in the panel is tonal */
.obp-m-addev, :root[data-theme] .obp-m-addev { background: var(--ob3-accent-tint) !important; color: var(--ob3-on-accent-tint) !important; border-color: transparent !important; }
/* the place chips: a quiet segmented control, the chosen place tonal */
.obp-m-locs { gap: 2px; padding: 2px; border-radius: var(--ob3-radius-full); background: var(--ob3-sunk); }
.obp-m-loc, :root[data-theme] .obp-m-loc { background: transparent !important; color: var(--ob3-muted) !important; border-color: transparent !important; }
.obp-m-loc.is-on, :root[data-theme] .obp-m-loc.is-on { background: var(--ob3-accent-tint) !important; color: var(--ob3-on-accent-tint) !important; border-color: transparent !important; }

.obp-m-more[hidden] { display: none; }

/* ===== Month cap (31 Oct 2026, parity with Android): on the cover the month block (header, switcher, nav, weekdays, weeks) stays near
   half the screen: 44-48 px week rows with coloured dots, the selected day names its count, the legend / festivals / place / Panchang note
   behind the "i" button; the day panel takes the rest of the screen and scrolls on its own with its head kept. Wider screens unchanged. */
.obp-m-info { display: none; font-family: var(--ob3-font-serif, Georgia, serif); font-style: italic; font-weight: var(--ob3-weight-bold); font-size: 17px; }
.obp-m-selcount { display: none; }
@media (max-width: 599px) {
  .obp-month-card { position: relative; padding: 0; }
  .obp-month-card .obp-wm-head { flex-wrap: nowrap; margin-bottom: var(--ob3-space-1); }
  .obp-month-card .obp-wm-title { font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .obp-month-card .obp-wm-nav { gap: var(--ob3-space-1); }
  .obp-m-info { display: inline-flex; }
  .obp-m-dow { padding-bottom: 2px; line-height: 16px; }
  .obp-m-cell { min-height: 45px; padding: 3px 0 2px; gap: 2px; }
  .obp-m-num { height: 26px; min-width: 26px; font-size: 15px; }
  .obp-m-cell.is-selected .obp-m-dots { display: none; }
  .obp-m-cell.is-selected .obp-m-selcount { display: block; font-size: 11px; line-height: 12px; font-weight: var(--ob3-weight-semibold); color: var(--ob3-accent-text); font-variant-numeric: tabular-nums; }
  .obp-m-extra { display: none; }
  .obp-m-extra.is-open { display: block; position: absolute; z-index: 20; left: 0; right: 0; top: 52px; max-height: 60vh; overflow-y: auto; padding: var(--ob3-space-4); background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); box-shadow: 0 8px 24px var(--ob3-shadow); }
  .obp-m-extra.is-open .obp-m-fest { display: block; margin-top: 0; }
  .obp-m-extra.is-open .obp-m-footrow { flex-direction: column; align-items: flex-start; }
  .obp-m-extra.is-open .obp-m-footrow > [data-m-locwrap] { margin-left: 0; }
  :root[data-obp-mcap] #obp-panel { height: var(--obp-panel-h, auto); min-height: 0; margin-top: var(--ob3-space-2); }
  :root[data-obp-mcap] #obp-panel > .obp-m-panel { height: 100%; max-height: 100%; margin-top: 0; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding-bottom: calc(var(--obp-dock, 0px) + var(--ob3-space-4)); }
  :root[data-obp-mcap] .obds-canvas, :root[data-obp-mcap] #main.obds-canvas-body { padding-bottom: 0 !important; }
  :root[data-obp-mcap] #obp-head { margin-bottom: var(--ob3-space-1); }
  :root[data-obp-mcap] body[data-obp-view="month"] .obds-canvas-body { align-content: start; }   /* rows keep their heights: the block never shifts when the panel changes */
  :root[data-obp-mcap] #obp-panel .obp-m-phead { position: sticky; top: calc(-1 * var(--ob3-space-4)); z-index: 2; margin: calc(-1 * var(--ob3-space-4)) calc(-1 * var(--ob3-space-4)) 0; padding: var(--ob3-space-4); background: var(--ob3-surface); border-radius: var(--ob3-radius-card) var(--ob3-radius-card) 0 0; }
}
:root[data-theme] .obp-m-info { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; }
