/* R7.7 W1: the Goals home. Tokens only (--ob3-*, Paper and Graphite through the themed roles); no raw hex.
   Frame sizes from the v3.8 baseline: row pills 104 x 44, section actions 184 x 44, a pill never grows (copy shortens,
   the box does not), every tap is at least 44 px. Boards: GoalsHomePhone, GoalsHomeShelfPhone, GoalsHomeDesktop and the
   four state boards (Loading, Offline, Empty, Already). Phone <= 599, tablet 600 to 899 (one centred column), wide >= 900
   (master and detail). */

/* The home replaces the R7 Goals view only while it is on; with the release off none of this applies. Parity (30 Oct 2026): the Plan
   header stays (title, the ONE Day . Week . Month . Goals switcher, the round "+" that adds), as on Android and every other Plan view;
   the home's own head keeps only its sub line and menu. */
body.r77-home-on[data-obp-view="goals"] #obp-goals { display: none !important; }
body.r77-home-on[data-obp-view="goals"] #r77-slot-home .ogh-head .ogh-title,
body.r77-home-on[data-obp-view="goals"] #r77-slot-home .ogh-head .ogh-add { display: none; }
body.r77-home-on[data-obp-view="goals"] #r77-slot-home .ogh-head { min-height: 44px; }

#r77-slot-home { min-width: 0; color: var(--ob3-ink); font-family: var(--ob3-font-sans); }
#r77-slot-home[hidden] { display: none; }
.ogh-root { display: flex; flex-direction: column; gap: var(--ob3-space-3); min-width: 0; padding-bottom: calc(var(--ob3-space-5) * 4); box-sizing: border-box; }
@media (min-width: 600px) and (max-width: 899.98px) { .ogh-root { max-width: 640px; margin-inline: auto; width: 100%; } }
.ogh-root *, .ogh-root *::before, .ogh-root *::after { box-sizing: border-box; }
.ogh-root button { font: inherit; }

/* ---- header */
.ogh-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-3); min-height: 56px; }
.ogh-headtext { min-width: 0; flex: 1; }
.ogh-title { margin: 0; font-size: var(--ob3-text-title); line-height: var(--ob3-leading-title); font-weight: var(--ob3-weight-bold); letter-spacing: var(--ob3-tracking-title); color: var(--ob3-ink); }
.ogh-sub { margin: 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.ogh-sub:empty { display: none; }
.ogh-headact { position: relative; display: flex; align-items: center; gap: var(--ob3-space-1); flex-shrink: 0; }
.ogh-add {
  width: 104px; min-width: 104px; max-width: 104px; height: 44px; padding: 0 var(--ob3-space-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--ob3-radius-full); background: var(--ob3-accent); color: var(--ob3-on-accent); font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-bold);
  white-space: nowrap; overflow: hidden; cursor: pointer;
}
.ogh-add.is-wide { width: 184px; min-width: 184px; max-width: 184px; }
.ogh-add:disabled { background: var(--ob3-sunk); color: var(--ob3-muted); border: 1px solid var(--ob3-line); cursor: not-allowed; }
.ogh-more { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: var(--ob3-radius-full); color: var(--ob3-ink); cursor: pointer; }
.ogh-more:hover { background: var(--ob3-sunk); }
.ogh-menu { position: absolute; z-index: 5; top: 48px; right: 0; min-width: 220px; background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-control); box-shadow: 0 8px 24px var(--ob3-shadow); padding: var(--ob3-space-1); display: flex; flex-direction: column; }
.ogh-menu-item { display: flex; align-items: center; min-height: 44px; padding: 0 var(--ob3-space-3); border-radius: var(--ob3-radius-xs); color: var(--ob3-ink); font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-semibold); text-decoration: none; }
.ogh-menu-item:hover { background: var(--ob3-sunk); }
button.ogh-menu-item { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.ogh-add:focus-visible, .ogh-more:focus-visible, .ogh-menu-item:focus-visible, .ogh-pill:focus-visible, .ogh-section-action:focus-visible, .ogh-goal:focus-visible,
.ogh-fold:focus-visible, .ogh-tick:focus-visible, .ogh-pane-open:focus-visible { outline: var(--ob3-focus-ring); outline-offset: var(--ob3-focus-offset); }

/* ---- section heads */
.ogh-sechead { display: flex; align-items: center; gap: var(--ob3-space-3); margin-top: var(--ob3-space-1); min-height: 24px; }
.ogh-seclabel { font-size: var(--ob3-text-label); line-height: var(--ob3-leading-label); letter-spacing: var(--ob3-tracking-label); text-transform: uppercase; font-weight: var(--ob3-weight-semibold); color: var(--ob3-muted); white-space: nowrap; }
.ogh-secrule { flex: 1; height: 1px; background: var(--ob3-line); min-width: 8px; }
.ogh-secright { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); white-space: nowrap; }

/* ---- the list column */
.ogh-body { display: block; min-width: 0; }
.ogh-col { display: flex; flex-direction: column; gap: var(--ob3-space-3); min-width: 0; }
.ogh-caption { margin: 0; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); overflow-wrap: anywhere; }
.ogh-empty-line { margin: 0; font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-muted); }
.ogh-sr { margin: 0; font-size: var(--ob3-text-meta); color: var(--ob3-muted); }
.ogh-sr:empty { display: none; }

/* urgent rows */
.ogh-urgent { display: flex; align-items: center; gap: var(--ob3-space-3); min-height: 54px; padding: var(--ob3-space-1) var(--ob3-space-1) var(--ob3-space-1) var(--ob3-space-3); background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); min-width: 0; }
.ogh-pchip { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 26px; padding: 0 var(--ob3-space-2); border-radius: var(--ob3-radius-xs); font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-bold); }
.ogh-pchip.is-p0 { background: var(--ob3-alert-tint); color: var(--ob3-alert); }
.ogh-pchip.is-p1 { background: var(--ob3-attention-tint); color: var(--ob3-attention); }
.ogh-urgent-open { border: 0; background: transparent; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 44px; justify-content: center; }
.ogh-urgent-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ogh-urgent-title { font-size: var(--ob3-text-body); line-height: var(--ob3-leading-body); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); overflow-wrap: anywhere; }
.ogh-urgent-goal { display: inline-flex; align-items: center; gap: 4px; font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); font-weight: var(--ob3-weight-semibold); color: var(--ob3-accent-text); }
.ogh-urgent-goal.is-upkeep { color: var(--ob3-muted); }
.ogh-tick { flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: var(--ob3-radius-full); }
.ogh-tick-c { width: 24px; height: 24px; border-radius: var(--ob3-radius-full); border: 2px solid var(--ob3-muted); display: block; }
.ogh-tick:hover .ogh-tick-c { border-color: var(--ob3-accent); }
.ogh-tick:disabled { cursor: not-allowed; }

/* goal rows */
.ogh-goal { width: 100%; display: flex; align-items: center; gap: var(--ob3-space-3); min-height: 84px; padding: var(--ob3-space-3) var(--ob3-space-3) var(--ob3-space-3) var(--ob3-space-3); text-align: left; background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); cursor: pointer; min-width: 0; }
.ogh-goal:hover { border-color: var(--ob3-line-strong); }
.ogh-goal.is-selected { border-color: var(--ob3-accent); box-shadow: 0 0 0 1px var(--ob3-accent); background: var(--ob3-accent-tint); }
.ogh-goal.is-dim { opacity: 0.6; }
.ogh-ico { flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ob3-radius-control); background: var(--ob3-accent-tint); color: var(--ob3-accent-text); align-self: center; }
.ogh-ico.is-money { background: var(--ob3-money-tint); color: var(--ob3-money); }
.ogh-goal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ogh-goal-title { font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); overflow-wrap: anywhere; }
.ogh-goal-prog { display: flex; align-items: center; gap: var(--ob3-space-3); min-width: 0; }
.ogh-segs { flex: 1; display: flex; gap: 4px; min-width: 40px; max-width: 320px; }
.ogh-seg { flex: 1; height: 5px; border-radius: var(--ob3-radius-full); background: var(--ob3-sunk-deep); }
.ogh-seg.is-on { background: var(--ob3-accent); }
.ogh-goal-progtext { margin-left: auto; font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-muted); white-space: nowrap; }
.ogh-move { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); font-weight: var(--ob3-weight-semibold); min-width: 0; }
.ogh-move.is-ok { color: var(--ob3-good); }
.ogh-move.is-amber { color: var(--ob3-attention); }
.ogh-move.is-muted { color: var(--ob3-muted); font-weight: var(--ob3-weight-regular); }
.ogh-dot { width: 7px; height: 7px; border-radius: var(--ob3-radius-full); flex-shrink: 0; background: currentColor; }
.ogh-move.is-ok .ogh-dot { background: var(--ob3-good-vivid); }
.ogh-move.is-amber .ogh-dot { background: var(--ob3-attention-vivid); }
.ogh-move.is-muted .ogh-dot { background: var(--ob3-faint); }
.ogh-chev { flex-shrink: 0; color: var(--ob3-muted); display: inline-flex; }

/* the shelves */
.ogh-shelves { display: flex; flex-direction: column; gap: var(--ob3-space-3); margin-top: var(--ob3-space-1); }
.ogh-shelves.is-wide { flex-direction: row; align-items: flex-start; }
.ogh-shelves.is-wide .ogh-shelf { flex: 1; min-width: 0; }
.ogh-shelf { display: flex; flex-direction: column; gap: var(--ob3-space-2); min-width: 0; }
.ogh-fold { width: 100%; display: flex; align-items: center; gap: var(--ob3-space-3); min-height: 64px; padding: var(--ob3-space-3); text-align: left; background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); cursor: pointer; min-width: 0; }
.ogh-fold:hover { border-color: var(--ob3-line-strong); }
.ogh-fold-ico { flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ob3-radius-control); background: var(--ob3-sunk); color: var(--ob3-muted); }
.ogh-fold-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ogh-fold-title { font-size: var(--ob3-text-body); line-height: var(--ob3-leading-body); font-weight: var(--ob3-weight-bold); color: var(--ob3-ink); }
.ogh-fold-sub { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.ogh-fold-chev { flex-shrink: 0; color: var(--ob3-muted); display: inline-flex; transition: transform var(--ob3-dur-short, 120ms) var(--ob3-ease, ease); }
.ogh-fold-chev.is-open { transform: rotate(180deg); }
.ogh-shelf-body { display: flex; flex-direction: column; gap: var(--ob3-space-2); }
.ogh-later { display: flex; align-items: center; gap: var(--ob3-space-3); min-height: 60px; padding: var(--ob3-space-2) var(--ob3-space-3); background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); min-width: 0; }
.ogh-later-t { flex: 1; min-width: 0; }
.ogh-later-title { font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); overflow-wrap: anywhere; }
.ogh-later-sub { font-size: var(--ob3-text-meta); line-height: var(--ob3-leading-meta); color: var(--ob3-muted); }
.ogh-pill, .ogh-section-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  border: 1px solid var(--ob3-line-strong); border-radius: var(--ob3-radius-full); background: var(--ob3-surface); color: var(--ob3-ink);
  font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-bold); cursor: pointer; height: 44px; padding: 0 var(--ob3-space-2);
}
.ogh-pill { width: 104px; min-width: 104px; max-width: 104px; }
.ogh-section-action { width: 184px; min-width: 184px; max-width: 184px; }
.ogh-pill:disabled, .ogh-section-action:disabled { opacity: 0.55; cursor: not-allowed; }

/* notes */
.ogh-note { display: flex; align-items: flex-start; gap: var(--ob3-space-2); padding: var(--ob3-space-3); border-radius: var(--ob3-radius-control); font-size: var(--ob3-text-body-sm); line-height: var(--ob3-leading-body-sm); color: var(--ob3-ink); }
.ogh-note svg { flex-shrink: 0; margin-top: 1px; }
.ogh-note.is-amber { background: var(--ob3-attention-tint); }
.ogh-note.is-amber svg { color: var(--ob3-attention); }
.ogh-note.is-mint { background: var(--ob3-good-tint); }
.ogh-note.is-mint svg { color: var(--ob3-good); }
.ogh-note-t { min-width: 0; overflow-wrap: anywhere; }

/* the one-time Saarthi offer */
.ogh-offer { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ob3-space-2); padding: var(--ob3-space-4); background: var(--ob3-saarthi-tint); border-radius: var(--ob3-radius-card); }
.ogh-offer-top { display: flex; align-items: center; gap: var(--ob3-space-2); }
.ogh-orb { width: 22px; height: 22px; border-radius: var(--ob3-radius-full); background: var(--ob3-orb); flex-shrink: 0; }
.ogh-offer-label { font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); color: var(--ob3-saarthi); }
.ogh-offer-body { margin: 0; font-family: var(--ob3-font-serif); font-size: var(--ob3-text-saarthi); line-height: var(--ob3-leading-saarthi); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); }
.ogh-offer .ogh-section-action { border-color: var(--ob3-saarthi); color: var(--ob3-saarthi); background: transparent; }

/* empty */
.ogh-empty { display: flex; flex-direction: column; align-items: center; gap: var(--ob3-space-2); text-align: center; padding: var(--ob3-space-5) var(--ob3-space-2) 0; }
.ogh-empty-ico { width: 64px; height: 64px; border-radius: var(--ob3-radius-card); background: var(--ob3-accent-tint); color: var(--ob3-accent-text); display: inline-flex; align-items: center; justify-content: center; }
.ogh-empty-title { margin: var(--ob3-space-2) 0 0; font-family: var(--ob3-font-serif); font-size: var(--ob3-text-hero); line-height: var(--ob3-leading-hero); font-weight: var(--ob3-weight-bold); color: var(--ob3-ink); }
.ogh-empty-body { margin: 0; max-width: 420px; font-size: var(--ob3-text-body); line-height: var(--ob3-leading-body); color: var(--ob3-muted); }
.ogh-empty-act { display: flex; justify-content: center; }

/* failed read */
.ogh-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ob3-space-2); padding: var(--ob3-space-4); background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); }
.ogh-card-title { margin: 0; font-size: var(--ob3-text-card-title); line-height: var(--ob3-leading-card-title); font-weight: var(--ob3-weight-bold); color: var(--ob3-ink); }

/* loading skeleton */
.ogh-skel { display: flex; align-items: center; gap: var(--ob3-space-3); min-height: 60px; padding: var(--ob3-space-3); background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); }
.ogh-skel.has-ico { min-height: 92px; }
.ogh-skel-ico { width: 40px; height: 40px; border-radius: var(--ob3-radius-control); background: var(--ob3-sunk); flex-shrink: 0; }
.ogh-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ogh-skel-lines > span { height: 12px; border-radius: var(--ob3-radius-full); background: var(--ob3-sunk); display: block; }
.ogh-skel-l1 { width: 82%; } .ogh-skel-l2 { width: 55%; height: 8px !important; } .ogh-skel-l3 { width: 36%; height: 8px !important; }
@media (prefers-reduced-motion: no-preference) {
  .ogh-skel-ico, .ogh-skel-lines > span { animation: ogh-pulse 1.4s ease-in-out infinite; }
  @keyframes ogh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
}

/* wide: master and detail */
.ogh-body.is-wide { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(360px, 1.05fr); gap: var(--ob3-space-4); align-items: start; }
.ogh-pane { position: sticky; top: var(--ob3-space-3); max-height: calc(100vh - 2 * var(--ob3-space-3)); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--ob3-space-3); padding: var(--ob3-space-5); background: var(--ob3-surface); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-card); min-width: 0; }
.ogh-pane-top { display: flex; align-items: center; justify-content: space-between; gap: var(--ob3-space-2); }
.ogh-pane-lead { display: flex; align-items: center; gap: var(--ob3-space-2); min-width: 0; }
.ogh-pane-chips { display: flex; flex-wrap: wrap; gap: var(--ob3-space-2); }
.ogh-pane-pill { display: inline-flex; align-items: center; min-height: 26px; 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-muted); font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); }
.ogh-pane-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--ob3-space-2); border-radius: var(--ob3-radius-full); background: var(--ob3-sunk); color: var(--ob3-muted); font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); }
.ogh-pane-open { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 var(--ob3-space-2); border: 0; background: transparent; color: var(--ob3-accent-text); font-size: var(--ob3-text-body-sm); font-weight: var(--ob3-weight-bold); cursor: pointer; border-radius: var(--ob3-radius-full); }
.ogh-pane-title { margin: 0; font-size: var(--ob3-text-section); line-height: var(--ob3-leading-section); font-weight: var(--ob3-weight-bold); color: var(--ob3-ink); overflow-wrap: anywhere; }
.ogh-next { display: flex; flex-direction: column; gap: 2px; padding: var(--ob3-space-3); border: 1px solid var(--ob3-accent); background: var(--ob3-accent-tint); border-radius: var(--ob3-radius-control); }
.ogh-next-l { font-size: var(--ob3-text-meta); font-weight: var(--ob3-weight-semibold); color: var(--ob3-accent-text); }
.ogh-next-t { font-size: var(--ob3-text-body); font-weight: var(--ob3-weight-bold); color: var(--ob3-ink); overflow-wrap: anywhere; }
.ogh-next-s { font-size: var(--ob3-text-meta); color: var(--ob3-muted); }
.ogh-ms { display: flex; align-items: center; gap: var(--ob3-space-3); min-height: 48px; padding: var(--ob3-space-2) var(--ob3-space-3); border: 1px solid var(--ob3-line); border-radius: var(--ob3-radius-control); background: var(--ob3-surface); min-width: 0; }
.ogh-ms-c { width: 22px; height: 22px; flex-shrink: 0; border-radius: var(--ob3-radius-full); border: 2px solid var(--ob3-muted); display: block; }
.ogh-ms-c.is-on { background: var(--ob3-accent); border-color: var(--ob3-accent); }
.ogh-ms-t { display: flex; flex-direction: column; min-width: 0; }
.ogh-ms-title { font-size: var(--ob3-text-body); line-height: var(--ob3-leading-body); font-weight: var(--ob3-weight-semibold); color: var(--ob3-ink); overflow-wrap: anywhere; }
.ogh-ms.is-done .ogh-ms-title { text-decoration: line-through; color: var(--ob3-muted); font-weight: var(--ob3-weight-regular); }
.ogh-ms-sub { font-size: var(--ob3-text-meta); color: var(--ob3-muted); }

/* The legacy theme.css paints every button (:root[data-theme] button { background ... !important }); these roles win by id and !important,
   the same way the R7 list does (ob-plan-goals-list.css). */
:root[data-theme] #r77-slot-home .ogh-add { background: var(--ob3-accent) !important; color: var(--ob3-on-accent) !important; border-color: transparent !important; }
:root[data-theme] #r77-slot-home .ogh-add:disabled { background: var(--ob3-sunk) !important; color: var(--ob3-muted) !important; border: 1px solid var(--ob3-line) !important; }
:root[data-theme] #r77-slot-home :is(.ogh-more, .ogh-tick, .ogh-urgent-open) { background: transparent !important; color: var(--ob3-ink) !important; border-color: transparent !important; }
:root[data-theme] #r77-slot-home .ogh-more:hover { background: var(--ob3-sunk) !important; }
:root[data-theme] #r77-slot-home :is(.ogh-goal, .ogh-fold) { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line) !important; }
:root[data-theme] #r77-slot-home :is(.ogh-goal, .ogh-fold):hover { border-color: var(--ob3-line-strong) !important; }
:root[data-theme] #r77-slot-home .ogh-goal.is-selected { background: var(--ob3-accent-tint) !important; border-color: var(--ob3-accent) !important; }
:root[data-theme] #r77-slot-home :is(.ogh-pill, .ogh-section-action) { background: var(--ob3-surface) !important; color: var(--ob3-ink) !important; border-color: var(--ob3-line-strong) !important; }
:root[data-theme] #r77-slot-home .ogh-offer .ogh-section-action { background: transparent !important; color: var(--ob3-saarthi) !important; border-color: var(--ob3-saarthi) !important; }
:root[data-theme] #r77-slot-home :is(.ogh-pill, .ogh-section-action):disabled { background: var(--ob3-sunk) !important; color: var(--ob3-muted) !important; border-color: var(--ob3-line) !important; }
:root[data-theme] #r77-slot-home .ogh-pane-open { background: transparent !important; color: var(--ob3-accent-text) !important; border-color: transparent !important; }
:root[data-theme] #r77-slot-home .ogh-menu-item { background: transparent !important; color: var(--ob3-ink) !important; }
:root[data-theme] #r77-slot-home .ogh-menu-item:hover { background: var(--ob3-sunk) !important; }

/* wide: the title and its actions sit together on the left column, as the desktop board draws them */
.ogh-root.is-wide .ogh-head { justify-content: flex-start; }
.ogh-root.is-wide .ogh-headtext { flex: 0 0 auto; }

/* T-VISUAL-PLAN (owner rule, 30 Oct 2026): from 900 px the page does not scroll on Goals either. Core fit() sets --obp-avail from the
   wide body's top; the list and the selected goal are two panes of that height, each scrolling on its own. */
:root[data-obp-fit] #r77-slot-home .ogh-root { padding-bottom: 0; }
:root[data-obp-fit] #r77-slot-home .ogh-body.is-wide { height: var(--obp-avail, auto); align-items: stretch; }
:root[data-obp-fit] #r77-slot-home .ogh-body.is-wide > .ogh-col { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 var(--ob3-space-1) var(--ob3-space-4) 0; }
:root[data-obp-fit] #r77-slot-home .ogh-body.is-wide > .ogh-pane { position: static; align-self: start; max-height: 100%; min-height: 0; }
:root[data-obp-fit] #r77-slot-home .ogh-body.is-wide > .ogh-col > * { flex-shrink: 0; }

/* T-VISUAL-PLAN (expert review): ONE checkbox side on every list: the circle leads the urgent row (the menu stays last) */
.ogh-urgent .ogh-tick { order: -1; }
.ogh-urgent { padding-left: var(--ob3-space-1); }
