/* The Floor shell and the GM onboarding screens (11/8, the GM Hub wireframe
   Jacobo approved, forest-springs/team/gm-hub-wireframe in the HQ repo).
   The visual language is the Floor Overview's: the kit card (.yw-card), its
   head (.yw-card-head / -title 19px 500), the striped track with its dark
   target tick (.yw-track), the Needs you list. This file adds only what the
   wireframe has that the Overview did not: the flat tab row, the gear, the
   onboarding grid, the step rail, the step tiles and the sign-off.
   Every colour has a [data-theme-root].dark twin at the bottom (the
   Overview's dark mapping: navy #0d1527 cards, #1c2843 lines). */

/* ---------------------------------------------------------- the shell -- */
/* PageHeader's title group and this root step aside (display: contents), so
   the title, the header's controls, the gear and the tab row are one flex
   row that wraps: title + controls + gear, then the tabs on their own line. */
.yw-page-title-group:has(> .yw-floor-shell), [data-tour="page.title"]:has(> .yw-floor-shell), .yw-floor-shell { display: contents; }
.yw-floor-shell-head { display: flex; flex-direction: column; min-width: 0; }
.yw-floor-shell-title { margin: 0; }
.yw-floor-shell-crumb { margin: 2px 0 0 3px; color: #71717a; font-size: 13px; }
/* The gear sits at the right end of the title row on every Floor page,
   whatever the page's own controls are: pinned to the row, never wrapped
   under the title (QC 11/8 row 16). */
header:has(.yw-floor-shell-gear) > div:first-of-type { position: relative; padding-right: 49px; }
.yw-floor-shell-gear { position: absolute; top: 0; right: 0; display: flex; }
.yw-floor-shell-gear-button { width: 39px; justify-content: center; padding: 0; }
.yw-floor-tabs { order: 3; flex: 1 0 100%; min-width: 0; margin-top: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.yw-floor-tabs::-webkit-scrollbar { display: none; }
.yw-floor-tabs-rail { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #e9e9e7; }
.yw-floor-tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 0; border-radius: 10px; background: transparent; color: #52525b; font: inherit; font-size: 14px; line-height: 1.2; letter-spacing: -.25px; white-space: nowrap; cursor: pointer; transition: background .16s, color .16s; }
.yw-floor-tab:hover { color: #202024; background: rgba(255, 255, 255, .55); }
.yw-floor-tab:focus-visible { outline: 3px solid #b993ff; outline-offset: 1px; }
.yw-floor-tab[aria-current="page"], .yw-floor-tab.is-on { background: #fff; color: #202024; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.yw-floor-tab[data-pending] { opacity: .75; }
.yw-floor-shell-menu { position: relative; display: inline-flex; }
/* The More and gear menus hang outside the scrolling rail: position fixed
   would detach them from the chip, so the rail lets them overflow on wide
   screens and the menu opens leftward from the gear. On a phone the rail
   scrolls sideways and would clip the More panel, so floor-tabs.tsx draws
   the open panel outside the row, pinned to the screen under its button
   (data-pinned; top, left, width and height come from the button's place).
   It sits above the pinned header (z 65) and the phone bar (z 70). */
.yw-floor-shell-options { top: calc(100% + 8px); }
.yw-floor-shell-options[data-pinned] { position: fixed; z-index: 90; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
.yw-floor-shell-menu[data-align="end"] .yw-floor-shell-options { left: auto; right: 0; transform-origin: top right; }
@media (min-width: 640px) { .yw-floor-tabs { overflow: visible; } }
.yw-floor-subtabs { order: 4; flex: 1 0 100%; display: flex; gap: 18px; margin: 2px 0 0 8px; }
.yw-floor-subtab { padding: 6px 0; border-bottom: 2px solid transparent; color: #71717a; font-size: 13.5px; }
.yw-floor-subtab:hover { color: #202024; }
.yw-floor-subtab[aria-current="page"] { border-bottom-color: #7c3aed; color: #202024; font-weight: 500; }
/* The header stays at the top while the page scrolls, as the section menu's
   did (header.css, 10/13). */
header[data-title-menu]:where(:has(.yw-floor-shell)) { position: sticky; top: 0; z-index: 65; padding: 7px 0 8px; border-bottom: 0; background: rgba(244, 244, 243, .82); -webkit-backdrop-filter: saturate(125%) blur(8px); backdrop-filter: saturate(125%) blur(8px); }
@media (max-width: 1023px) { header[data-title-menu]:where(:has(.yw-floor-shell)) { top: 49px; } }
@media (max-width: 639px) {
  .yw-floor-tabs { margin-right: -16px; padding-right: 16px; }
  .yw-floor-tab { padding: 8px 14px; font-size: 13.5px; }
  /* 44px tap targets on a phone (audit 11/14 today-17): the chip and the
     second-row views. align-items centres the label; the rail's own padding
     drops to 2px so the grey rail grows to 48px, not 52px. */
  .yw-floor-tab { min-height: 44px; }
  .yw-floor-tabs-rail { padding: 2px; }
  .yw-floor-subtab { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
}

/* ------------------------------------------------- onboarding: shared -- */
.yw-gm { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; color: #202024; }
.yw-gm .yw-card { display: flex; flex-direction: column; gap: 14px; border-radius: 28px; padding: 28px 30px; }
.yw-gm .yw-card-head { align-items: baseline; }
.yw-gm .yw-card-sub { font-size: 13.5px; color: #71717a; }
.yw-gm .yw-text-link { font-size: 13.5px; color: #6d28d9; }
.yw-gm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.yw-gm-grid > .s2 { grid-column: span 2; }
.yw-gm-grid > .s3 { grid-column: 1 / -1; }
.yw-gm-sub { color: #71717a; font-size: 13.5px; }
.yw-gm-big { margin: 0; font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: -2.3px; }
.yw-gm-hello { font-size: 52px; }
.yw-gm-v { font-size: 17px; font-weight: 500; }
.yw-gm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #ececea; font-size: 15px; }
.yw-gm-row > :last-child { text-align: right; }
.yw-gm-row > .yw-gm-v { white-space: nowrap; }
.yw-gm-good { color: #047857; }
.yw-gm-watch { color: #b45309; }
.yw-gm-bad { color: #be123c; }
.yw-gm-chip { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 4px 10px; border-radius: 999px; background: #e7f5ee; color: #047857; font-size: 12.5px; white-space: nowrap; }
.yw-gm-chip[data-tone="amber"] { background: #fef3c7; color: #92400e; }
.yw-gm-chip[data-tone="red"] { background: #ffe4e6; color: #be123c; }
.yw-gm-chip[data-tone="grey"] { background: #eeeeec; color: #52525b; }
.yw-gm-chip[data-tone="purple"] { background: #ede9fe; color: #5b21b6; }
.yw-gm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 14px; background: #7c3aed; color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.yw-gm-btn:hover { background: #6d28d9; color: #fff; }
.yw-gm-btn:disabled, .yw-gm-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.yw-gm-btn2 { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid #e4e4e2; border-radius: 14px; background: #fff; color: #202024; font: inherit; font-size: 14.5px; cursor: pointer; }
.yw-gm-btn2:hover { background: #faf8fc; }
.yw-gm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.yw-gm-preview { align-self: flex-start; }
.yw-gm .yw-track { height: 12px; }
.yw-gm .yw-track-marker { top: -6px; height: 24px; width: 2px; background: #3f3f46; border-radius: 1px; }

/* Today's list: the Needs you row anatomy with a tick box in the icon's place. */
.yw-gm-need { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #ececea; font-size: 15px; }
.yw-gm-need-copy { flex: 1; min-width: 0; }
.yw-gm a.yw-gm-need, .yw-gm-need-copy a, .yw-gm a.yw-gm-step { color: inherit; }
.yw-gm-need-copy small { display: block; color: #71717a; font-size: 13.5px; }
.yw-gm-need[data-done] .yw-gm-need-copy { color: #a1a1aa; text-decoration: line-through; }
.yw-gm-box { display: flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; border: 2px solid #cfcfcb; border-radius: 8px; background: #fff; box-sizing: border-box; padding: 0; cursor: pointer; }
.yw-gm-box[aria-checked="true"] { border-color: #059669; background: #059669; }
.yw-gm-box:disabled { cursor: default; }
.yw-gm-date { display: flex; flex: none; flex-direction: column; align-items: center; width: 58px; padding: 8px 12px; border: 1px solid #ececea; border-radius: 18px; background: #fff; box-sizing: border-box; }
.yw-gm-date span:first-child { color: #71717a; font-size: 12.5px; }
.yw-gm-date span:last-child { font-size: 17px; font-weight: 500; }

/* The 15-step path. */
.yw-gm-path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.yw-gm-step { display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 14px 16px; border: 1px solid #ececea; border-radius: 18px; background: #fff; box-sizing: border-box; color: #202024; }
.yw-gm-step[data-status="current"] { border: 2px solid #7c3aed; padding: 13px 15px; }
.yw-gm-step[data-status="locked"] { cursor: default; }
.yw-gm-step-t { font-size: 15px; font-weight: 500; }

/* Find anything and the Wizard. */
.yw-gm-src { display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 6px; background: #eeeeec; color: #3f3f46; font-size: 12px; }
.yw-gm-search { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid #e4e4e2; border-radius: 14px; background: #fff; color: #71717a; font-size: 15px; }
.yw-gm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #202024; font: inherit; }
.yw-gm-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ----------------------------------------------- onboarding: one step -- */
.yw-gm-stepwrap { display: flex; align-items: flex-start; gap: 20px; }
.yw-gm .yw-gm-rail { flex: none; width: 300px; gap: 4px; padding: 22px 18px; position: sticky; top: 132px; }
.yw-gm-rail-head { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 10px; }
.yw-gm-rail .yw-track { height: 10px; }
.yw-gm-rail-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: #3f3f46; font-size: 14px; }
.yw-gm-rail-link:hover { background: #f4f4f3; }
.yw-gm-rail-link[aria-current="step"] { background: #ede9fe; color: #4c1d95; font-weight: 500; }
.yw-gm-rail-link[data-status="locked"] { color: #a1a1aa; }
.yw-gm-dot { display: flex; flex: none; align-items: center; justify-content: center; width: 20px; height: 20px; border: 2px solid #d4d4d0; border-radius: 999px; box-sizing: border-box; }
.yw-gm-dot[data-done] { border: 0; background: #059669; }
.yw-gm-rail-link[aria-current="step"] .yw-gm-dot:not([data-done]) { border-color: #7c3aed; }
.yw-gm-stepmain { display: flex; flex: 1; flex-direction: column; gap: 20px; min-width: 0; }
.yw-gm .yw-gm-read { gap: 18px; padding: 36px 40px; }
.yw-gm-steptitle { margin: 0; font-size: 36px; font-weight: 500; letter-spacing: -1.2px; line-height: 1.1; }
.yw-gm-p { margin: 0; color: #27272a; font-size: 16.5px; line-height: 1.6; }
.yw-gm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.yw-gm-fact { padding: 16px; border: 1px solid #ececea; border-radius: 18px; background: #fff; }
.yw-gm-fact-t { margin-top: 6px; font-size: 15.5px; line-height: 1.45; }
.yw-gm-check { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.yw-gm-check input { width: 22px; height: 22px; flex: none; accent-color: #7c3aed; }
.yw-gm-nav { display: flex; justify-content: space-between; gap: 10px; }
/* The page's own words and live parts sit inside the Read card: their kit
   cards lose their own chrome so the step reads as one page. */
.yw-gm-read .yw-card { border: 1px solid #ececea; border-radius: 18px; background: #fff; padding: 18px; box-shadow: none; }

/* ------------------------------------------------- onboarding: sign-off -- */
.yw-gm-ok { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.yw-gm-dd { width: 18px; height: 18px; flex: none; border-radius: 999px; background: #059669; }
.yw-gm-t { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid #ececea; font-size: 15px; }
.yw-gm-t[data-head] { padding-top: 0; border-top: 0; color: #71717a; font-size: 12.5px; }
.yw-gm-in { padding: 13px 14px; border: 1px solid #e4e4e2; border-radius: 12px; background: #fff; color: #202024; font: inherit; font-size: 15px; box-sizing: border-box; width: 100%; }
.yw-gm-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.yw-gm-signrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.yw-gm-textarea { min-height: 160px; resize: vertical; }

/* ------------------------------------------------------ the phone home -- */
.yw-gm-phonebar { display: none; }
@media (max-width: 1023px) {
  .yw-gm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-gm-grid > .s2 { grid-column: 1 / -1; }
  .yw-gm-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yw-gm-stepwrap { flex-direction: column; }
  .yw-gm .yw-gm-rail { position: static; width: auto; }
}
@media (max-width: 767px) {
  .yw-gm-phonebar { position: fixed; inset: auto 0 0 0; z-index: 70; display: flex; height: 66px; align-items: center; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #e7e7e5; background: #fff; }
  .yw-gm-nv { display: flex; min-width: 58px; flex-direction: column; align-items: center; gap: 3px; color: #71717a; font-size: 11px; }
  .yw-gm-nv[aria-current="page"] { color: #6d28d9; }
  /* Phone.dc.html has one nav: the bottom bar. The top row steps aside
     on the GM pages that show it, never two navs at once. */
  body:has(.yw-gm-phonebar) .yw-floor-tabs, body:has(.yw-gm-phonebar) .yw-floor-subtabs { display: none; }
  .yw-gm { padding-bottom: 84px; }
  .yw-gm-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .yw-gm { gap: 12px; padding-bottom: 84px; }
  .yw-gm-grid { display: flex; flex-direction: column; gap: 12px; }
  .yw-gm .yw-card { gap: 10px; border-radius: 24px; padding: 18px; }
  .yw-gm .yw-gm-read { padding: 20px 18px; }
  .yw-gm .yw-card-title { font-size: 17px; }
  .yw-gm-sub, .yw-gm .yw-card-sub { font-size: 12.5px; }
  .yw-gm-hello { font-size: 28px; letter-spacing: -1px; line-height: 1.1; }
  .yw-gm-steptitle { font-size: 26px; }
  .yw-gm-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .yw-gm-step { padding: 10px 12px; gap: 4px; }
  .yw-gm-step[data-status="current"] { padding: 9px 11px; }
  .yw-gm-step-t { font-size: 13.5px; }
  [data-surface="floor.gm.hub.path"] .yw-card-head > :last-child, [data-surface="floor.gm.guide.files"] .yw-card-head > :last-child { display: none; }
  /* Phone.dc.html: the three numbers that matter most; the rest are a tap away on the Scorecard. */
  [data-surface="floor.gm.flow.numbers"] .yw-gm-row:nth-child(n+4) { display: none; }
  .yw-gm-step { min-height: 0; }
  .yw-gm-need { min-height: 44px; padding: 11px 0; }
  .yw-gm .yw-gm-rail { display: none; }
  .yw-gm-actions > * { flex: 1 1 100%; }
  .yw-gm-t { grid-template-columns: 1.1fr 1fr 1fr; }
  .yw-gm-t > :nth-child(4) { display: none; }
  .yw-gm-types, .yw-gm-signrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-gm-signrow > :last-child { grid-column: 1 / -1; }
  .yw-gm-p { font-size: 15.5px; }
  /* The phone home's order (Phone.dc.html): hello, today's list, numbers. */
  .yw-gm [data-surface="floor.gm.hub.walk"] { display: none; }
  .yw-gm-grid > [data-order="1"] { order: 1; }
  .yw-gm-grid > [data-order="2"] { order: 2; }
  .yw-gm-grid > [data-order="3"] { order: 3; }
  .yw-gm-grid > [data-order="4"] { order: 4; }
  .yw-gm-grid > [data-order="5"] { order: 5; }
  .yw-gm-grid > [data-order="6"] { order: 6; }
}

/* ---------------------------------------------------------------- dark -- */
[data-theme-root].dark header[data-title-menu]:where(:has(.yw-floor-shell)) { background: rgba(11, 16, 33, .82); }
[data-theme-root].dark .yw-floor-shell-crumb { color: #a297ab; }
[data-theme-root].dark .yw-floor-tabs-rail { background: #111a2e; }
[data-theme-root].dark .yw-floor-tab { color: #a297ab; }
[data-theme-root].dark .yw-floor-tab:hover { background: rgba(28, 40, 67, .6); color: #f3eef8; }
[data-theme-root].dark .yw-floor-tab[aria-current="page"], [data-theme-root].dark .yw-floor-tab.is-on { background: #1c2843; color: #f3eef8; box-shadow: none; }
[data-theme-root].dark .yw-floor-subtab { color: #a297ab; }
[data-theme-root].dark .yw-floor-subtab[aria-current="page"], [data-theme-root].dark .yw-floor-subtab:hover { color: #f3eef8; border-bottom-color: #a883ee; }
[data-theme-root].dark .yw-gm { color: #f3eef8; }
[data-theme-root].dark .yw-gm-sub, [data-theme-root].dark .yw-gm .yw-card-sub, [data-theme-root].dark .yw-gm-need-copy small, [data-theme-root].dark .yw-gm-date span:first-child, [data-theme-root].dark .yw-gm-t[data-head] { color: #a297ab; }
[data-theme-root].dark .yw-gm .yw-text-link { color: #c5a8ff; }
[data-theme-root].dark :is(.yw-gm-row, .yw-gm-need, .yw-gm-t) { border-top-color: #1c2843; }
[data-theme-root].dark .yw-gm-good { color: #7fd3b4; }
[data-theme-root].dark .yw-gm-watch { color: #e6bd7f; }
[data-theme-root].dark .yw-gm-bad { color: #f1a1b5; }
[data-theme-root].dark .yw-gm-chip { background: #12352b; color: #7fd3b4; }
[data-theme-root].dark .yw-gm-chip[data-tone="amber"] { background: #493c2c; color: #e6bd7f; }
[data-theme-root].dark .yw-gm-chip[data-tone="red"] { background: #4a3040; color: #f1a1b5; }
[data-theme-root].dark .yw-gm-chip[data-tone="grey"] { background: #16223a; color: #c3b9cc; }
[data-theme-root].dark .yw-gm-chip[data-tone="purple"] { background: #3d3150; color: #c5a8ff; }
[data-theme-root].dark :is(.yw-gm-btn2, .yw-gm-step, .yw-gm-date, .yw-gm-search, .yw-gm-in, .yw-gm-box) { border-color: #1c2843; background: #111a2e; color: #f3eef8; }
[data-theme-root].dark .yw-gm-btn2:hover { background: #16223a; }
[data-theme-root].dark .yw-gm-step[data-status="current"] { border-color: #a883ee; }
[data-theme-root].dark .yw-gm-box[aria-checked="true"] { border-color: #059669; background: #059669; }
[data-theme-root].dark .yw-gm-need[data-done] .yw-gm-need-copy { color: #6f6876; }
[data-theme-root].dark :is(.yw-gm-src) { background: #16223a; color: #d9cfe3; }
[data-theme-root].dark .yw-gm-search input { color: #f3eef8; }
[data-theme-root].dark .yw-gm .yw-track-marker { background: #e6dff0; }
[data-theme-root].dark .yw-gm-rail-link { color: #d9cfe3; }
[data-theme-root].dark .yw-gm-rail-link:hover { background: #16223a; }
[data-theme-root].dark .yw-gm-rail-link[aria-current="step"] { background: #3d3150; color: #e9dcff; }
[data-theme-root].dark .yw-gm-rail-link[data-status="locked"] { color: #6f6876; }
[data-theme-root].dark .yw-gm-dot { border-color: #3b4a68; }
[data-theme-root].dark .yw-gm-p, [data-theme-root].dark .yw-gm-fact-t { color: #d9cfe3; }
[data-theme-root].dark .yw-gm-fact { border-color: #1c2843; background: #111a2e; }
[data-theme-root].dark .yw-gm-read .yw-card { border-color: #1c2843; background: #111a2e; }
[data-theme-root].dark .yw-gm-phonebar { border-top-color: #1c2843; background: #0d1527; }
[data-theme-root].dark .yw-gm-nv { color: #a297ab; }
[data-theme-root].dark .yw-gm-nv[aria-current="page"] { color: #c5a8ff; }

/* ------------------------------------------------------- tap in flight --
   11/8 speed pass (floor-tabs.tsx useFloorNavPending): the moment an in-app
   link inside the page is tapped, the page under the tab row dims and a thin
   bar runs under the tabs until the new page lands. The dim waits 80 ms so a
   page the browser already holds swaps without a flicker; the tapped link and
   the bar answer at once. */
[data-floor-nav] > :not(header) { opacity: .5; pointer-events: none; transition: opacity .18s ease 80ms; }
[data-floor-nav] .yw-floor-tabs-rail { position: relative; }
[data-floor-nav] .yw-floor-tabs-rail::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 30%;
  border-radius: 2px; background: #7c3aed; animation: yw-floor-nav-bar 1.1s ease-in-out infinite;
}
@keyframes yw-floor-nav-bar { 0% { left: 0; width: 12%; } 50% { width: 38%; } 100% { left: 88%; width: 12%; } }
[data-nav-pending] { opacity: .7; cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  [data-floor-nav] .yw-floor-tabs-rail::after { animation: none; left: 0; width: 100%; opacity: .5; }
}
[data-theme-root].dark [data-floor-nav] .yw-floor-tabs-rail::after { background: #b993ff; }

/* A GM Guide page (11/8, GuidePage.dc.html in the HQ repo's
   forest-springs/team/gm-hub-wireframe, the wireframe Jacobo approved):
   the owner's words as item cards, a step track, three columns, a tinted
   callout and link buttons, on the Overview kit's palette (page #F4F4F3,
   cards #FAFAFA, inner tiles #FFF with a #ECECEA line, purple links).
   Laid out by lib/gm-hub/page-layout.ts, drawn by floor/gm-guide-page.tsx.
   Every colour has a [data-theme-root].dark twin at the bottom, the same
   mapping skin/floor-shell.css uses (navy #111a2e tiles, #1c2843 lines). */

.yw-gp { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.yw-gp-section, .yw-gp-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.yw-gp-sechead { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.yw-gp-section > .yw-gp-sechead { justify-content: flex-start; }
.yw-gp-h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.55px; line-height: 1.25; color: #202024; }
.yw-gp-h4 { margin: 4px 0 0; font-size: 15.5px; font-weight: 500; color: #202024; }
.yw-gp-count { display: inline-flex; align-items: center; min-width: 22px; justify-content: center; padding: 2px 8px; border-radius: 999px; background: #eeeeec; color: #52525b; font-size: 12.5px; }
.yw-gp-p { margin: 0; max-width: 70ch; color: #27272a; font-size: 16px; line-height: 1.6; }
.yw-gp-summary { margin: 0; color: #71717a; font-size: 15.5px; line-height: 1.5; }
.yw-gp-b { font-weight: 600; color: #202024; }
.yw-gp-a { color: #6d28d9; font-weight: 500; }
.yw-gp-a:hover { color: #4c1d95; }
.yw-gp-raw { max-width: 75ch; }

/* The header of a step with a key action: title left, side card right. */
.yw-gp-readhead { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.yw-gp-readtitle { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.yw-gp-aside { padding: 18px; border: 1px solid #ececea; border-radius: 20px; background: #fff; }
.yw-gp-key { display: flex; flex-direction: column; gap: 12px; }
.yw-gp-keylink { display: flex; flex-direction: column; gap: 6px; color: #202024; }
.yw-gp-keylink:hover .yw-gp-btn { background: #faf8fc; }
.yw-gp-keytitle { font-size: 16px; font-weight: 500; line-height: 1.35; }
.yw-gp-keylink .yw-gp-btn { margin-top: 6px; }
.yw-gp-head .yw-gm-steptitle { margin-top: 2px; }

/* Item cards: systems, people, ClickUp lists, ways of talking. */
.yw-gp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 12px; }
.yw-gp-cards[data-variant="person"] { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.yw-gp-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; border: 1px solid #ececea; border-radius: 20px; background: #fff; box-sizing: border-box; }
.yw-gp-cardhead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yw-gp-badge { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #ede9fe; color: #5b21b6; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.yw-gp-av { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: #e9e9e7; color: #202024; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.yw-gp-name { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; color: #202024; overflow-wrap: anywhere; }
.yw-gp-role { display: block; margin-top: 1px; color: #71717a; font-size: 13.5px; line-height: 1.35; }
.yw-gp-purpose { margin: 0; color: #52525b; font-size: 14px; line-height: 1.45; }
.yw-gp-kv { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 5px 10px; margin: 2px 0 0; padding-top: 10px; border-top: 1px solid #f0f0ee; font-size: 13.5px; line-height: 1.35; }
.yw-gp-kv dt { color: #71717a; }
.yw-gp-kv dd { margin: 0; color: #202024; overflow-wrap: anywhere; }
.yw-gp-reach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.yw-gp-card > .yw-gp-btn { margin-top: auto; }
.yw-gp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 14px; border: 1px solid #e4e4e2; border-radius: 12px; background: #fff; color: #202024; font-size: 13.5px; font-weight: 500; box-sizing: border-box; white-space: nowrap; }
.yw-gp-btn:hover { background: #faf8fc; color: #4c1d95; }
.yw-gp-btn-wide { justify-content: space-between; width: 100%; white-space: normal; text-align: left; }

/* Steps: a row of numbered tiles (2 to 4 named steps) or a track. */
.yw-gp-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.yw-gp-steps > li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.yw-gp-steps > li:last-child { padding-bottom: 0; }
.yw-gp-steps[data-layout="track"] > li:not(:last-child)::before { content: ""; position: absolute; top: 34px; bottom: 2px; left: 15px; width: 2px; border-radius: 1px; background: #e4e1f5; }
.yw-gp-num { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.yw-gp-stepbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 5px; }
.yw-gp-steptitle { font-size: 16px; font-weight: 500; line-height: 1.35; color: #202024; }
.yw-gp-steptext { color: #52525b; font-size: 15px; line-height: 1.5; }
.yw-gp-stepbody > .yw-gp-steptext:only-child { color: #27272a; font-size: 15.5px; }
.yw-gp-steps[data-layout="row"] { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.yw-gp-steps[data-layout="row"] > li { flex-direction: column; gap: 12px; padding: 18px; border: 1px solid #ececea; border-radius: 20px; background: #fff; }
.yw-gp-steps[data-layout="row"] .yw-gp-stepbody { padding-top: 0; }

/* Lists: a purple dot, a bold lead on its own line when there is one. */
.yw-gp-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; max-width: 78ch; }
.yw-gp-list > li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 0 10px 22px; border-top: 1px solid #ececea; color: #27272a; font-size: 15.5px; line-height: 1.5; }
.yw-gp-list > li:first-child { border-top: 0; padding-top: 2px; }
.yw-gp-list > li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 7px; height: 7px; border-radius: 999px; background: #a78bfa; }
.yw-gp-list > li:first-child::before { top: 11px; }
.yw-gp-list[data-check] > li::before { width: 12px; height: 12px; left: 0; top: 16px; border: 2px solid #cfcfcb; border-radius: 4px; background: transparent; }
.yw-gp-list[data-check] > li:first-child::before { top: 8px; }
.yw-gp-list[data-check] > li[data-checked]::before { border-color: #059669; background: #059669; }
.yw-gp-lead { color: #202024; font-size: 14.5px; font-weight: 600; }

/* Every day / Every week / Every month: three columns. */
.yw-gp-cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.yw-gp-col { padding: 20px; border: 1px solid #ececea; border-radius: 20px; background: #fff; }
.yw-gp-col .yw-gp-list > li { font-size: 14.5px; padding-left: 18px; }
.yw-gp-col .yw-gp-list > li::before { left: 1px; }
.yw-gp-col .yw-gp-lead { font-size: 13.5px; }

/* Callouts: Never and Watch out amber, Tip and Note purple. */
.yw-gp-callout { padding: 14px 18px; border: 1px solid #fed7aa; border-radius: 18px; background: #fff7ed; color: #9a3412; font-size: 15px; line-height: 1.5; }
.yw-gp-callout p { margin: 0; }
.yw-gp-callout strong { font-weight: 600; }
.yw-gp-callout[data-tone="tip"] { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }

/* Links: a button per link, its source chip and its note. */
.yw-gp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.yw-gp-link { display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 16px 18px; border: 1px solid #ececea; border-radius: 18px; background: #fff; color: #202024; box-sizing: border-box; transition: border-color .15s, background .15s; }
.yw-gp-link:hover { border-color: #c4b5fd; background: #fdfcff; }
.yw-gp-linktop { display: flex; align-items: center; justify-content: space-between; min-height: 22px; color: #6d28d9; font-size: 16px; }
.yw-gp-linklabel { font-size: 15px; font-weight: 500; line-height: 1.35; }
.yw-gp-linknote { color: #71717a; font-size: 13px; line-height: 1.4; }
.yw-gp-src { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #eeeeec; color: #3f3f46; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.yw-gp-src[data-src="Notion"] { background: #f1f0ec; color: #37352f; }
.yw-gp-src[data-src="Drive"] { background: #e7f0fd; color: #1e4fa3; }
.yw-gp-src[data-src="ClickUp"] { background: #f3e8ff; color: #6b21a8; }
.yw-gp-src[data-src="YieldWizard"] { background: #ede9fe; color: #5b21b6; }

/* --------------------------------------------------------------- sizes -- */
@media (max-width: 1279px) {
  .yw-gp-readhead { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .yw-gp-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .yw-gp { gap: 22px; }
  .yw-gp-cards, .yw-gp-cards[data-variant="person"], .yw-gp-links { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .yw-gp-steps[data-layout="row"] { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .yw-gp-steps[data-layout="row"] > li { flex-direction: row; padding: 14px 16px; }
  .yw-gp-steps[data-layout="row"] .yw-gp-stepbody { padding-top: 4px; }
  .yw-gp-card { padding: 16px; }
  .yw-gp-h3 { font-size: 17px; }
  .yw-gp-p { font-size: 15.5px; }
  .yw-gp-btn { min-height: 44px; }
  .yw-gp-reach > .yw-gp-btn { flex: 1 1 auto; }
  .yw-gp-card > .yw-gp-btn { width: 100%; }
  .yw-gp-col { padding: 16px; }
  .yw-gp-aside { padding: 16px; }
}

/* ---------------------------------------------------------------- dark -- */
[data-theme-root].dark :is(.yw-gp-h3, .yw-gp-h4, .yw-gp-b, .yw-gp-name, .yw-gp-steptitle, .yw-gp-lead, .yw-gp-keylink, .yw-gp-link, .yw-gp-kv dd) { color: #f3eef8; }
[data-theme-root].dark :is(.yw-gp-p, .yw-gp-list > li, .yw-gp-stepbody > .yw-gp-steptext:only-child) { color: #d9cfe3; }
[data-theme-root].dark :is(.yw-gp-summary, .yw-gp-role, .yw-gp-kv dt, .yw-gp-linknote) { color: #a297ab; }
[data-theme-root].dark :is(.yw-gp-purpose, .yw-gp-steptext) { color: #c3b9cc; }
[data-theme-root].dark :is(.yw-gp-a, .yw-gp-linktop) { color: #c5a8ff; }
[data-theme-root].dark :is(.yw-gp-card, .yw-gp-col, .yw-gp-aside, .yw-gp-link, .yw-gp-steps[data-layout="row"] > li) { border-color: #1c2843; background: #111a2e; }
[data-theme-root].dark .yw-gp-link:hover { border-color: #5b4a8a; background: #16223a; }
[data-theme-root].dark .yw-gp-btn { border-color: #1c2843; background: #16223a; color: #f3eef8; }
[data-theme-root].dark .yw-gp-btn:hover { background: #1c2843; color: #e9dcff; }
[data-theme-root].dark :is(.yw-gp-badge, .yw-gp-num) { background: #3d3150; color: #c5a8ff; }
[data-theme-root].dark .yw-gp-av { background: #1c2843; color: #f3eef8; }
[data-theme-root].dark .yw-gp-count { background: #16223a; color: #c3b9cc; }
[data-theme-root].dark .yw-gp-kv { border-top-color: #1c2843; }
[data-theme-root].dark .yw-gp-list > li { border-top-color: #1c2843; }
[data-theme-root].dark .yw-gp-list > li::before { background: #8b6fd6; }
[data-theme-root].dark .yw-gp-list[data-check] > li::before { border-color: #3b4a68; background: transparent; }
[data-theme-root].dark .yw-gp-list[data-check] > li[data-checked]::before { border-color: #059669; background: #059669; }
[data-theme-root].dark .yw-gp-steps[data-layout="track"] > li:not(:last-child)::before { background: #2a2f4a; }
[data-theme-root].dark .yw-gp-callout { border-color: #5a3d22; background: #2c2117; color: #f2c08f; }
[data-theme-root].dark .yw-gp-callout[data-tone="tip"] { border-color: #3d3150; background: #1f1a33; color: #c5a8ff; }
[data-theme-root].dark .yw-gp-src { background: #16223a; color: #d9cfe3; }
[data-theme-root].dark .yw-gp-src[data-src="Drive"] { background: #13284a; color: #9cc0f5; }
[data-theme-root].dark .yw-gp-src[data-src="ClickUp"], [data-theme-root].dark .yw-gp-src[data-src="YieldWizard"] { background: #3d3150; color: #c5a8ff; }

/* GM onboarding v2 (approved 11/9: OnboardingV2, StartHereV2, StepV2 and
   the two phone boards). Builds on floor-shell.css (.yw-gm cards, chips,
   rows, rail) and adds the hero rings, the number tiles with their target
   pills, the path tiles, the two weeks grid and its pop-up, and the one
   reading column of a step. Every colour has a [data-theme-root].dark twin
   at the bottom. Greys are #71717a or darker on light (AA); targets are at
   least 44px on a phone. */

.yw-ob a:focus-visible, .yw-ob button:focus-visible, .yw-ob input:focus-visible, .yw-ob-pop :is(a, button):focus-visible,
.yw-gm-stepwrap :is(a, button, input):focus-visible { outline: 3px solid #7c3aed; outline-offset: 2px; border-radius: 10px; }
.yw-ob-block { display: block; }
.yw-gm-chip[data-tone="solid"] { background: #7c3aed; color: #fff; }

/* ---------------------------------------------------------------- hero -- */
.yw-gm .yw-ob-hero { flex-direction: row; align-items: center; gap: 36px; padding: 32px 36px; }
.yw-ob-ring { position: relative; flex: none; width: 180px; height: 180px; }
.yw-ob-ring svg { width: 100%; height: 100%; }
.yw-ob-ring-bg { stroke: #ededeb; }
.yw-ob-ring-steps { stroke: #7c3aed; }
.yw-ob-ring-days { stroke: #3f3f46; }
.yw-ob-ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.yw-ob-ring-n { font-size: 38px; font-weight: 500; letter-spacing: -1.5px; line-height: 1; }
.yw-ob-ring-n span { color: #71717a; font-size: 20px; }
.yw-ob-hero-main { display: flex; flex: 1; flex-direction: column; gap: 14px; min-width: 0; }
.yw-ob-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.yw-ob-line { margin: 0; color: #3f3f46; font-size: 16.5px; }
.yw-ob-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.yw-ob-cta .yw-gm-btn { padding: 15px 24px; font-size: 16px; min-height: 48px; }
.yw-ob-textlink { padding: 12px 4px; color: #6d28d9; font-size: 15px; }
.yw-ob-legend { display: flex; flex-wrap: wrap; gap: 18px; }
.yw-ob-legend span { display: inline-flex; align-items: center; gap: 6px; }
.yw-ob-legend i { width: 12px; height: 12px; border-radius: 999px; background: #7c3aed; }
.yw-ob-legend i[data-k="days"] { background: #3f3f46; }
.yw-ob-side { display: grid; flex: none; grid-template-columns: 1fr 1fr; gap: 10px; width: 300px; }
.yw-ob-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid #ececea; border-radius: 18px; background: #fff; color: #202024; }
.yw-ob-stat-row { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; min-height: 48px; font-size: 15px; }
.yw-ob-stat-r { display: flex; align-items: center; gap: 8px; color: #71717a; }
a.yw-ob-stat:hover { border-color: #c4b5fd; color: #202024; }
.yw-ob-sv { font-size: 22px; font-weight: 500; letter-spacing: -.6px; white-space: nowrap; }
.yw-ob-sticky { display: none; }

/* --------------------------------------------------------------- today -- */
.yw-ob .yw-gm-need { min-height: 44px; }
.yw-ob-go { display: inline-flex; flex: none; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px; color: #6d28d9; font-size: 15px; }
.yw-ob-tomorrow { margin-top: auto; border-top: 1px dashed #dcdae8 !important; color: #202024; }
.yw-ob-arrow { width: 26px; flex: none; color: #71717a; text-align: center; }
.yw-gm-box[data-on] { border-color: #059669; background: #059669; }

/* ------------------------------------------------------------- numbers -- */
.yw-ob-kpi { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid #ececea; border-radius: 20px; background: #fff; }
.yw-ob-kpi-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; font-size: 15px; }
.yw-ob-result { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.yw-ob-v { font-size: 17px; font-weight: 500; white-space: nowrap; }
.yw-ob-v-big { font-size: 24px; }
.yw-ob-v[data-state="provisional"] { color: #52525b; }
.yw-ob-na { color: #71717a; font-size: 17px; font-weight: 500; white-space: nowrap; }
.yw-ob-tgt { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 3px 9px; border: 1px dashed #c9c9c5; border-radius: 8px; color: #52525b; font-size: 12.5px; }
.yw-ob-bar { position: relative; height: 12px; border-radius: 999px; background: #ededeb; }
.yw-ob-bar-thin { height: 8px; margin-bottom: 4px; }
.yw-ob-bar-fill { height: 100%; border-radius: 999px; background: repeating-linear-gradient(-45deg, #8b5cf6 0 3px, #c4b5fd 3px 6px); }
.yw-ob-bar-fill[data-state="provisional"] { background: repeating-linear-gradient(-45deg, #3f3f46 0 3px, #a1a1aa 3px 6px); }
.yw-ob-bar-tick { position: absolute; top: -6px; width: 2px; height: 24px; border-radius: 1px; background: #3f3f46; }
.yw-ob-rowl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.yw-ob-rowr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.yw-gm-date[data-mark] { border-color: #c4b5fd; background: #f5f3ff; }

/* ---------------------------------------------------------------- path -- */
.yw-ob-pathhead { flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.yw-ob-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.yw-ob-segb { min-height: 36px; padding: 4px 12px; border: 1px solid #e4e4e2; border-radius: 999px; background: #fff; color: #3f3f46; font: inherit; font-size: 13px; cursor: pointer; }
.yw-ob-segb[aria-pressed="true"] { border-color: #7c3aed; background: #7c3aed; color: #fff; }
.yw-ob .yw-gm-path { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yw-ob .yw-gm-step { gap: 8px; min-height: 112px; }
.yw-ob .yw-gm-step[data-status="now"] { border: 2px solid #7c3aed; padding: 13px 15px; background: #fdfcff; }
.yw-ob .yw-gm-step[data-status="next"] { border-color: #c4b5fd; }
.yw-ob .yw-gm-step[data-status="locked"] { border-color: #eeeeec; background: #f7f7f6; color: #71717a; }
.yw-ob .yw-gm-step[data-last] { border-style: dashed; }
a.yw-gm-step:hover { border-color: #c4b5fd; }
.yw-ob-sh { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.yw-ob-n { display: flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: #f1f1ef; color: #52525b; font-size: 13px; }
.yw-ob-n[data-state="done"] { background: #059669; color: #fff; }
.yw-ob-n[data-state="now"] { background: #7c3aed; color: #fff; }
.yw-ob-meta { margin-top: auto; color: #71717a; font-size: 12.5px; }

/* ----------------------------------------------------------- two weeks -- */
.yw-ob-weekhead { color: #3f3f46; font-size: 13.5px; font-weight: 500; }
.yw-ob-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.yw-ob-day { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 96px; padding: 12px; border: 1px solid #ececea; border-radius: 16px; background: #fff; color: #202024; font: inherit; text-align: left; cursor: pointer; }
.yw-ob-day:hover { border-color: #c4b5fd; }
.yw-ob-day[data-state="done"] { border-color: #bbe5cf; background: #f2fbf6; }
.yw-ob-day[data-state="today"] { border: 2px solid #7c3aed; padding: 11px; }
.yw-ob-day[data-last] { border-color: #c4b5fd; background: #f5f3ff; }
.yw-ob-dn { color: #71717a; font-size: 12px; }
.yw-ob-dt { font-size: 14px; font-weight: 500; line-height: 1.25; }
.yw-ob-dchip { margin-top: auto; }
.yw-ob-pop { width: min(92vw, 480px); max-height: 85vh; margin: auto; padding: 0; border: 1px solid #c4b5fd; border-radius: 28px; background: #fafafa; color: #202024; box-shadow: 0 12px 32px rgba(76, 29, 149, .1); }
.yw-ob-pop::backdrop { background: rgba(0, 0, 0, .45); }
.yw-ob-popin { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; }
.yw-ob-poptitle { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.8px; }
.yw-ob-x { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #52525b; font-size: 22px; cursor: pointer; }
.yw-ob-popgo { justify-content: space-between; min-height: 48px; border-color: #7c3aed; color: #5b21b6; font-weight: 500; }

/* --------------------------------------------------- a step (StepV2) -- */
.yw-gm .yw-ob-read { padding: 44px 40px 48px; }
.yw-ob-col { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 720px; margin: 0 auto; }
.yw-ob-stephead { display: flex; flex-direction: column; gap: 10px; }
.yw-ob-stephead .yw-gm-steptitle { font-size: 44px; letter-spacing: -1.6px; line-height: 1.05; }
.yw-ob-why { color: #52525b; }
.yw-ob-sn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: 13.5px; }
.yw-ob-letter { display: flex; flex-direction: column; gap: 12px; padding: 28px 30px; border: 1px solid #ececea; border-radius: 20px; background: #fff; font-size: 17px; line-height: 1.65; }
.yw-ob-sig { margin: 4px 0 0; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 30px; line-height: 1.1; }
.yw-ob-sec { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid #ececea; }
.yw-ob-st { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.yw-ob-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 0; border-top: 1px solid #ececea; color: #202024; font-size: 15.5px; }
.yw-ob-next:first-child { border-top: 0; }
.yw-ob-next:hover { color: #6d28d9; }
.yw-ob-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yw-ob-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #ececea; border-radius: 16px; background: #fff; font-size: 15px; }
.yw-ob-av { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; background: #f1f1ef; color: #3f3f46; font-size: 13px; font-weight: 500; }
.yw-ob-ack { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid #ececea; }
.yw-ob-ackrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.yw-ob-ackbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.yw-ob-ackbtns .yw-gm-btn, .yw-ob-ackbtns .yw-gm-btn2 { min-height: 48px; }
.yw-gm-btn:disabled { background: #ede9fe; color: #5b21b6; opacity: 1; }
.yw-ob-raild { color: #71717a; font-size: 12px; white-space: nowrap; }
.yw-ob-raill { font-size: 12px; }
.yw-gm-rail-link[data-status="locked"] { color: #71717a; }

/* --------------------------------------------------------------- sizes -- */
@media (max-width: 1279px) {
  .yw-gm .yw-ob-hero { flex-wrap: wrap; }
  .yw-ob-side { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yw-ob-stat-row { grid-column: span 2; }
  .yw-ob .yw-gm-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .yw-ob .yw-gm-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yw-ob-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* OnboardingV2Phone: one column, the primary action sticky above the
     bottom bar, the hero's ring small beside the hello. */
  .yw-ob .yw-ob-hero { flex-wrap: nowrap; gap: 14px; padding: 18px; }
  .yw-ob-ring { width: 92px; height: 92px; }
  .yw-ob-ring-n { font-size: 22px; }
  .yw-ob-ring-n span { font-size: 13px; }
  .yw-ob-ring-mid .yw-gm-sub { font-size: 10.5px; }
  .yw-ob-hero-main { gap: 6px; }
  .yw-ob .yw-gm-hello { font-size: 25px; letter-spacing: -.9px; line-height: 1.1; }
  .yw-ob-line { font-size: 13.5px; color: #71717a; }
  .yw-ob-cta, .yw-ob-legend, .yw-ob-side, .yw-ob-hero-top .yw-gm-sub { display: none; }
  .yw-ob-sticky { position: fixed; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); left: 0; z-index: 69; display: flex; padding: 10px 14px; border-top: 1px solid #e7e7e5; background: #f4f4f3; }
  .yw-ob-sticky .yw-gm-btn { width: 100%; min-height: 48px; }
  .yw-ob { padding-bottom: 150px; }
  [data-surface="floor.gm.flow.numbers"] .yw-ob-rows { display: none; }
  .yw-ob .yw-gm-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-ob-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-ob-seg { width: 100%; }
  .yw-ob-segb { min-height: 44px; }
  .yw-gm-nv { min-height: 48px; justify-content: center; }
  /* StartHereV2Phone / a step: no rail, a back link, the button sticky. */
  .yw-gm .yw-ob-read { padding: 20px 16px 24px; }
  .yw-ob-stephead .yw-gm-steptitle { font-size: 30px; letter-spacing: -1px; }
  .yw-ob-team { grid-template-columns: minmax(0, 1fr); }
  .yw-ob-letter { padding: 18px; font-size: 16px; }
  .yw-ob-ack { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 5; margin: 0 -16px -24px; padding: 12px 16px; border-top: 1px solid #e7e7e5; background: #fafafa; }
  .yw-ob-ackrow { flex-direction: column-reverse; align-items: stretch; }
  .yw-ob-ackbtns > * { flex: 1 1 100%; }
  .yw-gm-stepwrap .yw-gm-p { font-size: 15.5px; }
}

/* ---------------------------------------------------------------- dark -- */
[data-theme-root].dark .yw-ob-ring-bg { stroke: #1c2843; }
[data-theme-root].dark .yw-ob-ring-steps { stroke: #a883ee; }
[data-theme-root].dark .yw-ob-ring-days { stroke: #c3b9cc; }
[data-theme-root].dark .yw-ob-legend i { background: #a883ee; }
[data-theme-root].dark .yw-ob-legend i[data-k="days"] { background: #c3b9cc; }
[data-theme-root].dark :is(.yw-ob-ring-n span, .yw-ob-na, .yw-ob-meta, .yw-ob-dn, .yw-ob-raild, .yw-ob-arrow, .yw-ob-stat-r) { color: #a297ab; }
[data-theme-root].dark :is(.yw-ob-line, .yw-ob-why, .yw-ob-weekhead, .yw-ob-v[data-state="provisional"]) { color: #d9cfe3; }
[data-theme-root].dark :is(.yw-ob-textlink, .yw-ob-go) { color: #c5a8ff; }
[data-theme-root].dark :is(.yw-ob-stat, .yw-ob-kpi, .yw-ob-day, .yw-ob-letter, .yw-ob-person, .yw-ob-segb) { border-color: #1c2843; background: #111a2e; color: #f3eef8; }
[data-theme-root].dark .yw-ob-tgt { border-color: #3b4a68; color: #c3b9cc; }
[data-theme-root].dark .yw-ob-bar { background: #1c2843; }
[data-theme-root].dark .yw-ob-bar-fill[data-state="provisional"] { background: repeating-linear-gradient(-45deg, #c3b9cc 0 3px, #6f6876 3px 6px); }
[data-theme-root].dark .yw-ob-bar-tick { background: #e6dff0; }
[data-theme-root].dark .yw-gm-date[data-mark] { border-color: #a883ee; background: #231c38; }
[data-theme-root].dark .yw-ob-segb[aria-pressed="true"], [data-theme-root].dark .yw-gm-chip[data-tone="solid"] { border-color: #a883ee; background: #7c3aed; color: #fff; }
[data-theme-root].dark .yw-ob .yw-gm-step[data-status="now"] { border-color: #a883ee; background: #16223a; }
[data-theme-root].dark .yw-ob .yw-gm-step[data-status="next"] { border-color: #3d3150; }
[data-theme-root].dark .yw-ob .yw-gm-step[data-status="locked"] { border-color: #1c2843; background: #0d1527; color: #a297ab; }
[data-theme-root].dark .yw-ob-n { background: #16223a; color: #c3b9cc; }
[data-theme-root].dark .yw-ob-n[data-state="done"] { background: #059669; color: #fff; }
[data-theme-root].dark .yw-ob-n[data-state="now"] { background: #7c3aed; color: #fff; }
[data-theme-root].dark .yw-ob-day[data-state="done"] { border-color: #1f5a46; background: #12352b; }
[data-theme-root].dark .yw-ob-day[data-state="today"] { border-color: #a883ee; }
[data-theme-root].dark .yw-ob-day[data-last] { border-color: #3d3150; background: #231c38; }
[data-theme-root].dark .yw-ob-pop { border-color: #3d3150; background: #0d1527; color: #f3eef8; }
[data-theme-root].dark .yw-ob-x { color: #c3b9cc; }
[data-theme-root].dark .yw-ob-popgo { border-color: #a883ee; color: #e9dcff; }
[data-theme-root].dark .yw-ob-tomorrow { border-top-color: #3d3150 !important; color: #f3eef8; }
[data-theme-root].dark :is(.yw-ob-sec, .yw-ob-ack, .yw-ob-next) { border-top-color: #1c2843; }
[data-theme-root].dark .yw-ob-next { color: #f3eef8; }
[data-theme-root].dark .yw-ob-sn { background: #3d3150; color: #c5a8ff; }
[data-theme-root].dark .yw-ob-av { background: #16223a; color: #d9cfe3; }
[data-theme-root].dark .yw-gm-rail-link[data-status="locked"] { color: #a297ab; }
[data-theme-root].dark .yw-gm-btn:disabled { background: #4c3a78; color: #e9dcff; }
@media (max-width: 767px) {
  [data-theme-root].dark .yw-ob-sticky { border-top-color: #1c2843; background: #0b1021; }
  [data-theme-root].dark .yw-ob-ack { border-top-color: #1c2843; background: #0d1527; }
  [data-theme-root].dark .yw-ob-line { color: #a297ab; }
}

/* ---------------------------------------- v3 journey (11/9): proven steps -- */
.yw-jr-checks { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid #ececea; border-radius: 18px; background: #fafaf9; }
.yw-jr-checks-head { font-weight: 600; font-size: 15px; }
.yw-jr-check { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 15px; }
.yw-jr-check[data-done] { color: #047857; }
.yw-jr-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.yw-jr-phone { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.yw-jr-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.yw-jr-qr-img { width: 168px; height: 168px; padding: 8px; border: 1px solid #ececea; border-radius: 16px; background: #fff; }
.yw-jr-qr-img svg { width: 100%; height: 100%; }
.yw-jr-steps { flex: 1; min-width: 220px; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.yw-jr-wiz-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.yw-jr-wiz-thread { border: 1px solid #ececea; border-radius: 18px; padding: 12px; background: #fff; }
.yw-jr-wiz-greet { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.yw-jr-bubble { margin: 0; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #f5f3ff; color: #2e1065; font-size: 15px; line-height: 1.45; max-width: 640px; }
.yw-jr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.yw-jr-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #ececea; border-radius: 16px; background: #fff; }
.yw-jr-card[data-done] { border-color: #a7f3d0; background: #f0fdf4; }
.yw-jr-badge { display: flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #f4f4f5; color: #3f3f46; font-size: 12px; font-weight: 600; }
.yw-jr-card-name { font-weight: 600; }
.yw-jr-card-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.yw-jr-card-acts .yw-gm-btn2 { min-height: 44px; }
.yw-jr-note { padding: 14px 16px; border-radius: 16px; background: #fafaf9; border: 1px solid #ececea; }
.yw-jr-field { display: flex; flex-direction: column; gap: 6px; }
.yw-jr-area { min-height: 140px; resize: vertical; font-family: inherit; line-height: 1.45; }
.yw-gm-btn[disabled] { opacity: .55; cursor: not-allowed; }

[data-theme-root].dark .yw-jr-checks, [data-theme-root].dark .yw-jr-note { background: #26262b; border-color: #34343a; }
[data-theme-root].dark .yw-jr-check[data-done] { color: #34d399; }
[data-theme-root].dark .yw-jr-qr-img { border-color: #34343a; }
[data-theme-root].dark .yw-jr-wiz-thread, [data-theme-root].dark .yw-jr-card { background: #202024; border-color: #34343a; }
[data-theme-root].dark .yw-jr-card[data-done] { background: #052e1f; border-color: #065f46; }
[data-theme-root].dark .yw-jr-bubble { background: #2e1065; color: #ede9fe; }
[data-theme-root].dark .yw-jr-badge { background: #2a2a30; color: #d4d4d8; }

/* ---------------------------------------------------------------------------
   GM REPORTS v2 (11/9, the approved GM Hub v2 wireframe: ReportsV2, WeeklyV2,
   WeeklyV2Phone, MonthlyV2). Floor > Reports, the weekly GM report and the
   monthly GM report. Card radius 28 (20 inner), Geist scale 44/28/19/15/13.5.
   Chips: green on or above target, amber watch, red below target, grey
   provisional / not available, purple practice. Targets are dashed pills.
   Grey text is #71717a (4.6:1 on the card). Dark mode under
   [data-theme-root].dark; one column on a phone with a sticky footer.
   --------------------------------------------------------------------------- */
.yw-gmr { --gmr-ink: #202024; --gmr-ink2: #52525b; --gmr-grey: #71717a; --gmr-line: #ececea; --gmr-card: #fafafa; --gmr-field: #fff; --gmr-border: #e7e7e5;
  display: flex; flex-direction: column; gap: 20px; color: var(--gmr-ink); font-variant-numeric: tabular-nums; letter-spacing: -.25px; }
.yw-gmr-stack { display: flex; flex-direction: column; gap: 28px; }
.yw-gmr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.yw-gmr-grid > [data-span="2"] { grid-column: span 2; }
.yw-gmr-grid > [data-span="3"] { grid-column: 1 / -1; }
.yw-gmr-card { display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; min-width: 0; padding: 26px 30px; border: 1px solid var(--gmr-border); border-radius: 28px; background: var(--gmr-card); }
.yw-gmr-card[data-dashed] { border-style: dashed; background: #f7f7f6; }
.yw-gmr-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.yw-gmr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yw-gmr-h2 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.55px; }
.yw-gmr-h2 .yw-gmr-sub { margin-left: 6px; font-weight: 400; letter-spacing: -.2px; }
.yw-gmr-sub { margin: 0; color: var(--gmr-grey); font-size: 13.5px; line-height: 1.45; }
.yw-gmr-sub[data-size="lg"] { font-size: 14.5px; }
.yw-gmr-sub b, .yw-gmr-record b { color: var(--gmr-ink); font-weight: 500; }
.yw-gmr-sub[data-tone="bad"] { color: #be123c; }
.yw-gmr-tiny { color: var(--gmr-grey); font-size: 12px; }
.yw-gmr-sec { color: var(--gmr-grey); font-size: 12px; letter-spacing: .2px; text-transform: uppercase; }
.yw-gmr-verdict { max-width: 920px; margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.18; }
.yw-gmr-verdict[data-size="md"] { font-size: 28px; }
.yw-gmr-verdict[data-muted] { color: var(--gmr-ink2); }
.yw-gmr [data-tone="bad"]:not(.yw-gmr-chip):not(.yw-gmr-dot):not(.yw-gmr-fill) { color: #be123c; }
.yw-gmr [data-tone="good"]:not(.yw-gmr-chip):not(.yw-gmr-dot):not(.yw-gmr-fill) { color: #047857; }
.yw-gmr-big { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -1.6px; line-height: 1.05; }
.yw-gmr-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.yw-gmr-nav-arrows { display: flex; gap: 16px; }
.yw-gmr-back { color: var(--gmr-grey); font-size: 13.5px; }
.yw-gmr-back:hover { color: #6d28d9; }

/* chips, pills, dots */
.yw-gmr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e7f5ee; color: #047857; font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.yw-gmr-chip[data-tone="watch"] { background: #fef3c7; color: #92400e; }
.yw-gmr-chip[data-tone="bad"] { background: #ffe4e6; color: #be123c; }
.yw-gmr-chip[data-tone="none"] { background: #eeeeec; color: #52525b; }
.yw-gmr-chip[data-tone="practice"] { background: #ede9fe; color: #5b21b6; }
.yw-gmr-tgt { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 3px 9px; border: 1px dashed #c9c9c5; border-radius: 8px; color: var(--gmr-ink2); font-size: 12.5px; }
.yw-gmr-minis { display: flex; flex-wrap: wrap; gap: 8px; }
.yw-gmr-mini { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 1px solid var(--gmr-border); border-radius: 12px; background: var(--gmr-field); color: var(--gmr-ink2); font-size: 13.5px; }
.yw-gmr-mini b { color: var(--gmr-ink); font-size: 14.5px; font-weight: 500; }
.yw-gmr-dot { flex: none; align-self: center; width: 8px; height: 8px; border-radius: 999px; background: #a1a1aa; }
.yw-gmr-dot[data-tone="good"] { background: #059669; }
.yw-gmr-dot[data-tone="watch"] { background: #d97706; }
.yw-gmr-dot[data-tone="bad"] { background: #e11d48; }
.yw-gmr-dot[data-tone="practice"] { background: #8b5cf6; }

/* the hatched bar with its target tick */
.yw-gmr-bar { position: relative; display: block; flex: 0 0 auto; height: 10px; border-radius: 999px; background: #ededeb; }
.yw-gmr-bar[data-size="sm"] { height: 6px; }
.yw-gmr-fill { display: block; height: 100%; border-radius: 999px; background: repeating-linear-gradient(-45deg, #8b5cf6 0 3px, #c4b5fd 3px 6px); }
.yw-gmr-fill[data-tone="good"] { background: repeating-linear-gradient(-45deg, #059669 0 3px, #6ee7b7 3px 6px); }
.yw-gmr-fill[data-tone="watch"] { background: repeating-linear-gradient(-45deg, #d97706 0 3px, #fcd34d 3px 6px); }
.yw-gmr-fill[data-tone="bad"] { background: repeating-linear-gradient(-45deg, #e11d48 0 3px, #fda4af 3px 6px); }
.yw-gmr-fill[data-tone="none"] { background: repeating-linear-gradient(-45deg, #71717a 0 3px, #d4d4d8 3px 6px); }
.yw-gmr-tick { position: absolute; top: -5px; width: 2px; height: 20px; background: #3f3f46; }
.yw-gmr-bar[data-size="sm"] .yw-gmr-tick { top: -4px; height: 14px; }
.yw-gmr-progress { display: flex; align-items: center; gap: 18px; }
.yw-gmr-progress > .yw-gmr-bar, .yw-gmr-cost-share > .yw-gmr-bar { flex: 1 1 auto; }
.yw-gmr-progress > .yw-gmr-sub { white-space: nowrap; }

/* KPI tiles */
.yw-gmr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.yw-gmr-kpi { min-width: 0; }
.yw-gmr-kpi > * { height: 100%; }
.yw-gmr-kn { display: block; color: var(--gmr-ink); font-size: 40px; font-weight: 500; letter-spacing: -1.8px; line-height: 1; }
.yw-gmr-kn small { color: var(--gmr-grey); font-size: 18px; font-weight: 400; letter-spacing: -.4px; }
.yw-gmr-kn[data-muted] { color: var(--gmr-ink2); }
.yw-gmr-kn[data-small] { padding: 4px 0; color: var(--gmr-grey); font-size: 24px; letter-spacing: -.8px; }
.yw-gmr-kt { display: flex; flex-direction: column; gap: 8px; color: var(--gmr-grey); font-size: 13px; line-height: 1.4; }
.yw-gmr-kpi .yw-gmr-bar { margin-top: 10px; }

/* Needs your note: one row per line, notes on the same row */
.yw-gmr-need { display: grid; grid-template-columns: 1.25fr .7fr .7fr 1.25fr 1.25fr .7fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--gmr-line); }
.yw-gmr-need[data-head] { padding: 0 0 8px; border-top: 0; color: var(--gmr-grey); font-size: 12px; }
.yw-gmr-need-name { display: block; font-size: 15px; }
.yw-gmr-need-line .yw-gmr-chip { margin-top: 4px; }
.yw-gmr-need .num b { font-size: 17px; font-weight: 500; }

/* inputs and fields */
.yw-gmr-in { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #e4e4e2; border-radius: 12px; background: var(--gmr-field); color: var(--gmr-ink); font: inherit; font-size: 14.5px; }
.yw-gmr-in::placeholder { color: var(--gmr-grey); }
.yw-gmr-in:focus { border-color: #8b5cf6; outline: 2px solid #ddd0fb; outline-offset: 0; }
textarea.yw-gmr-in { resize: vertical; }
.yw-gmr-in:disabled { opacity: .75; }
.yw-gmr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; color: var(--gmr-grey); font-size: 13.5px; }
.yw-gmr-field legend { margin-bottom: 6px; padding: 0; }
.yw-gmr-words { display: grid; grid-template-columns: .7fr 1.15fr 1.15fr; gap: 16px; }
.yw-gmr-words[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yw-gmr-typed { display: flex; flex-direction: column; gap: 10px; }

/* On target and For the record */
.yw-gmr-on { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.yw-gmr-on-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.yw-gmr-record { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding-top: 12px; border-top: 1px solid var(--gmr-line); }
.yw-gmr-sep { margin-right: 10px; }

/* the monthly cost lines */
.yw-gmr-cost { display: grid; grid-template-columns: 1.6fr .8fr 1.4fr .7fr .8fr; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--gmr-line); font-size: 15px; }
.yw-gmr-cost[data-head] { padding: 0 0 8px; border-top: 0; color: var(--gmr-grey); font-size: 12px; }
.yw-gmr-cost > :nth-child(2), .yw-gmr-cost > :nth-child(4), .yw-gmr-cost > :nth-child(5) { text-align: right; }
.yw-gmr-cost-share { display: flex; align-items: center; gap: 10px; }
.yw-gmr-cost-share .num { width: 52px; }
.yw-gmr-lbl { display: none; }

/* Reports tab: stats, month rows, the period table */
.yw-gmr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.yw-gmr-stats dt { color: var(--gmr-grey); font-size: 13.5px; }
.yw-gmr-stats dd { margin: 2px 0 0; font-size: 34px; font-weight: 500; letter-spacing: -1.6px; line-height: 1.05; }
.yw-gmr-stats dd small { color: var(--gmr-grey); font-size: 16px; font-weight: 400; letter-spacing: -.3px; }
.yw-gmr-rows { display: flex; flex-direction: column; margin: 0; }
.yw-gmr-rows > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--gmr-line); }
.yw-gmr-rows dt { color: var(--gmr-grey); font-size: 13.5px; }
.yw-gmr-rows dd { margin: 0; font-size: 17px; font-weight: 500; text-align: right; }
.yw-gmr [data-muted]:not(.yw-gmr-kn):not(.yw-gmr-verdict) { color: var(--gmr-grey); }
.yw-gmr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.yw-gmr-table th, .yw-gmr-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--gmr-line); font-weight: 400; text-align: left; vertical-align: middle; }
.yw-gmr-table thead th { padding-top: 0; border-top: 0; color: var(--gmr-grey); font-size: 12px; }
.yw-gmr-table tbody th { font-weight: 400; }
.yw-gmr-table td:last-child { padding-right: 0; text-align: right; }
.yw-gmr-table tfoot th, .yw-gmr-table tfoot td { color: var(--gmr-grey); font-size: 13px; }
.yw-gmr-table .yw-text-link { display: inline-block; padding: 8px 0; }

/* buttons and the sticky footer */
.yw-gmr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: #7c3aed; color: #fff; font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; }
.yw-gmr-btn:hover, .yw-gmr-btn:focus-visible { background: #6d28d9; color: #fff; }
.yw-gmr-btn[data-quiet] { border: 1px solid #e4e4e2; background: #fff; color: var(--gmr-ink); font-weight: 400; }
.yw-gmr-btn[data-quiet]:hover { border-color: #c4b5fd; background: #fff; color: var(--gmr-ink); }
.yw-gmr-btn:disabled { background: #ede9fe; color: #5b21b6; cursor: not-allowed; }
.yw-gmr-btn[data-quiet]:disabled { background: #f4f4f3; color: var(--gmr-grey); }
.yw-gmr-btn-left { font-weight: 400; }
.yw-gmr-foot { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 -8px; padding: 14px 20px; border: 1px solid var(--gmr-border); border-radius: 20px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); }
.yw-gmr-foot-say { display: flex; flex: 1 1 360px; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.yw-gmr-foot-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.yw-gmr :is(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid #7c3aed; outline-offset: 2px; }

@media (max-width: 1100px) {
  .yw-gmr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-gmr-grid > [data-span="2"] { grid-column: 1 / -1; }
  .yw-gmr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-gmr-need { grid-template-columns: 1.2fr .7fr .8fr; }
  .yw-gmr-need[data-head] { display: none; }
  .yw-gmr-need > textarea, .yw-gmr-need > input { grid-column: span 1; }
}
@media (max-width: 760px) {
  .yw-gmr { gap: 12px; }
  .yw-gmr-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .yw-gmr-grid > [data-span] { grid-column: auto; }
  .yw-gmr-card { padding: 16px; border-radius: 20px; gap: 10px; }
  .yw-gmr-verdict, .yw-gmr-verdict[data-size="md"] { font-size: 23px; letter-spacing: -.8px; line-height: 1.2; }
  .yw-gmr-tiles { gap: 10px; }
  .yw-gmr-kn { font-size: 26px; letter-spacing: -1px; }
  .yw-gmr-kn[data-small] { padding: 4px 0; font-size: 17px; letter-spacing: -.3px; line-height: 1.2; }
  .yw-gmr-tgt { padding: 2px 7px; font-size: 11.5px; }
  .yw-gmr-progress { flex-wrap: wrap; gap: 6px; }
  .yw-gmr-progress > .yw-gmr-bar { flex-basis: 100%; }
  .yw-gmr-progress > .yw-gmr-sub { white-space: normal; }
  .yw-gmr-need { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px 0; }
  .yw-gmr-need > .yw-gmr-need-line { grid-column: 1; }
  .yw-gmr-need > div:nth-child(3) { grid-column: 1 / -1; }
  .yw-gmr-need > textarea, .yw-gmr-need > input { grid-column: 1 / -1; }
  .yw-gmr-on, .yw-gmr-words, .yw-gmr-words[data-cols="3"] { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .yw-gmr-mini { white-space: normal; }
  .yw-gmr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-gmr-stats dd { font-size: 28px; }
  .yw-gmr-cost { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .yw-gmr-cost[data-head] { display: none; }
  .yw-gmr-cost > :first-child { font-weight: 500; }
  .yw-gmr-cost > .yw-gmr-cost-share { grid-column: 1 / -1; }
  .yw-gmr-cost > :nth-child(4) { text-align: left; }
  .yw-gmr-lbl { display: inline; }
  .yw-gmr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .yw-gmr-table, .yw-gmr-table tbody, .yw-gmr-table tfoot, .yw-gmr-table tr { display: block; }
  .yw-gmr-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--gmr-line); }
  .yw-gmr-table th, .yw-gmr-table td { display: block; padding: 0; border: 0; text-align: left; }
  .yw-gmr-table tbody th { grid-column: 1 / -1; font-weight: 500; }
  .yw-gmr-table td[data-label]::before { content: attr(data-label) " "; color: var(--gmr-grey); font-size: 12.5px; }
  .yw-gmr-table td:last-child { text-align: left; }
  .yw-gmr-table .yw-text-link { min-height: 44px; padding: 12px 0; }
  .yw-gmr-foot { margin: 0 -16px -8px; padding: 10px 16px 14px; border-width: 1px 0 0; border-radius: 0; }
  .yw-gmr-foot-say > .yw-gmr-sub:not([aria-live]):not([role="alert"]) { display: none; }
  .yw-gmr-foot-acts { flex: 1 1 100%; flex-wrap: nowrap; }
  .yw-gmr-foot-acts .yw-gmr-btn { min-height: 44px; padding: 0 14px; }
  .yw-gmr-foot-acts .yw-gmr-btn:last-child { flex: 1; }
  .yw-gmr-nav { font-size: 14px; }
}

/* dark mode */
[data-theme-root].dark .yw-gmr { --gmr-ink: #f3eef8; --gmr-ink2: #d9cfe3; --gmr-grey: #a297ab; --gmr-line: #1c2843; --gmr-card: #0f1729; --gmr-field: #0b1122; --gmr-border: #1c2843; }
[data-theme-root].dark .yw-gmr-card[data-dashed] { background: #0b1122; }
[data-theme-root].dark .yw-gmr-chip { background: #12392f; color: #7fd3b4; }
[data-theme-root].dark .yw-gmr-chip[data-tone="watch"] { background: #3a3020; color: #f4c56a; }
[data-theme-root].dark .yw-gmr-chip[data-tone="bad"] { background: #3d2032; color: #f59bb3; }
[data-theme-root].dark .yw-gmr-chip[data-tone="none"] { background: #1c2843; color: #c9c1d4; }
[data-theme-root].dark .yw-gmr-chip[data-tone="practice"] { background: #2b2350; color: #c5a8ff; }
[data-theme-root].dark .yw-gmr-tgt { border-color: #3a4560; }
[data-theme-root].dark .yw-gmr-bar { background: #1c2843; }
[data-theme-root].dark .yw-gmr-tick { background: #e6dff0; }
[data-theme-root].dark .yw-gmr-fill[data-tone="none"] { background: repeating-linear-gradient(-45deg, #6f6880 0 3px, #202d4a 3px 6px); }
[data-theme-root].dark .yw-gmr-in, [data-theme-root].dark .yw-gmr-btn[data-quiet] { border-color: #1c2843; background: #0b1122; color: var(--gmr-ink); }
[data-theme-root].dark .yw-gmr-btn:disabled { background: #2b2350; color: #c5a8ff; }
[data-theme-root].dark .yw-gmr-foot { background: rgba(11, 17, 34, .95); }
[data-theme-root].dark .yw-gmr [data-tone="bad"]:not(.yw-gmr-chip):not(.yw-gmr-dot):not(.yw-gmr-fill) { color: #f59bb3; }
[data-theme-root].dark .yw-gmr [data-tone="good"]:not(.yw-gmr-chip):not(.yw-gmr-dot):not(.yw-gmr-fill) { color: #7fd3b4; }

/* ---------------------------------------------------------------------------
   GM REPORTS v4 (11/9, Jacobo's weekly and monthly templates; wireframes
   WeeklyV4 / MonthlyV4). Numbered sections in the template's order, compact
   prefilled rows (label, figure, target, status), GM boxes only where the
   template asks. Phone: rows stack label over figure, target and status.
   --------------------------------------------------------------------------- */
.yw-gr4 .yw-gmr-verdict { margin: 0; }
.yw-gr4-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; font-size: 13.5px; }
.yw-gr4-meta div { display: flex; gap: 6px; }
.yw-gr4-meta dt { color: var(--gmr-grey); }
.yw-gr4-meta dd { margin: 0; font-weight: 500; }
.yw-gr4-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 8px; background: #ede9fe; color: #5b21b6; font-size: 12.5px; vertical-align: 1px; }
.yw-gr4-gm { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px dashed #c4b5fd; border-radius: 8px; background: #f5f3ff; color: #5b21b6; font-size: 12px; font-weight: 400; white-space: nowrap; }
.yw-gr4-rows { display: flex; flex-direction: column; }
.yw-gr4-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) 128px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--gmr-line); font-size: 14.5px; }
.yw-gr4-row[data-head] { padding-top: 0; border-top: 0; color: var(--gmr-grey); font-size: 12px; }
.yw-gr4-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yw-gr4-val { font-weight: 500; min-width: 0; }
.yw-gr4-val[data-muted] { color: var(--gmr-grey); font-weight: 400; }
.yw-gr4-tgt { color: var(--gmr-ink2); font-size: 13.5px; }
.yw-gr4-typed { display: inline-flex; align-items: center; gap: 8px; }
.yw-gr4-typed .yw-gmr-in { width: 76px; min-height: 36px; padding: 6px 10px; }
.yw-gr4-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.yw-gr4-pri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.yw-gr4-pri[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.yw-gr4-none { margin: 0; font-size: 17px; font-weight: 500; color: #047857; }
.yw-gr4-ot { display: flex; flex-direction: column; }
.yw-gr4-ot-row { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) 150px; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--gmr-line); }
.yw-gr4-ot-row[data-head] { padding-top: 0; border-top: 0; color: var(--gmr-grey); font-size: 12px; }
.yw-gr4-ot-name { margin-top: 6px; font-size: 14px; }
.yw-gr4-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.yw-gr4-picker > [data-span="3"] { grid-column: 1 / -1; }
.yw-gr4-pick-title { font-size: 19px; font-weight: 500; letter-spacing: -.55px; color: var(--gmr-ink); text-decoration: none; }
.yw-gr4-pick-title:hover .yw-gmr-sub { color: #6d28d9; }
.yw-gr4-pick .yw-gmr-big { font-size: 24px; letter-spacing: -.8px; }
.yw-gr4-missing { display: flex; flex-direction: column; gap: 8px; }
.yw-gr4-missing ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.yw-gr4-missing li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--gmr-line); font-size: 14.5px; }
.yw-gr4-missing li .yw-gmr-tiny { display: block; }
@media (max-width: 1100px) {
  .yw-gr4-pri[data-count="5"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-gr4-ot-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .yw-gr4-ot-row > div:first-child { grid-column: 1 / -1; }
  .yw-gr4-ot-row[data-head] { display: none; }
}
@media (max-width: 760px) {
  .yw-gr4-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .yw-gr4-row[data-head] { display: none; }
  .yw-gr4-label { grid-column: 1 / -1; }
  .yw-gr4-label .yw-gmr-tiny { display: none; }
  .yw-gr4-tgt { grid-column: 1; font-size: 12.5px; }
  .yw-gr4-row > span:last-child { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .yw-gr4-pri, .yw-gr4-pri[data-count="5"], .yw-gr4-picker { grid-template-columns: minmax(0, 1fr); }
  .yw-gr4-ot-row { grid-template-columns: minmax(0, 1fr); }
  .yw-gr4-missing li { grid-template-columns: minmax(0, 1fr) auto; }
  .yw-gr4-missing li .yw-gmr-btn { grid-column: 1 / -1; }
}
[data-theme-root].dark .yw-gr4-no, [data-theme-root].dark .yw-gr4-gm { background: #2b2350; color: #c5a8ff; border-color: #4c3d86; }
[data-theme-root].dark .yw-gr4-none { color: #7fd3b4; }

/* ---------------------------------------------------------------------------
   GM REPORT, STEP MODE (11/15, Jacobo: "type form mode... extremely easy and
   intuitive"). One question per screen: a slim head with the progress bar and
   the step row, one big card with the question, a sticky footer with Back,
   Save and finish later, Save and continue. Phone first: one column at 375px,
   the step row scrolls sideways, the footer buttons share the width.
   --------------------------------------------------------------------------- */
.yw-gms { max-width: 920px; margin: 0 auto; width: 100%; scroll-margin-top: 16px; }
.yw-gms-head { display: flex; flex-direction: column; gap: 12px; }
.yw-gms-progress { display: flex; align-items: center; gap: 14px; }
.yw-gms-progress > .yw-gmr-bar { flex: 1 1 auto; }
.yw-gms-progress > .yw-gmr-sub { white-space: nowrap; }
.yw-gms-dots { display: flex; gap: 6px; margin: 0; padding: 0 0 2px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.yw-gms-dot { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 4px; border: 1px solid var(--gmr-border); border-radius: 999px; background: var(--gmr-field); color: var(--gmr-ink2); font: inherit; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.yw-gms-dot:disabled { cursor: default; opacity: .6; }
.yw-gms-dot[data-here] { border-color: #8b5cf6; color: var(--gmr-ink); opacity: 1; }
.yw-gms-dot-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: #eeeeec; font-size: 12px; }
.yw-gms-dot[data-done] .yw-gms-dot-n { background: #e7f5ee; color: #047857; }
.yw-gms-dot[data-here] .yw-gms-dot-n { background: #7c3aed; color: #fff; }
.yw-gms-card { gap: 16px; }
.yw-gms-q { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -1px; line-height: 1.18; }
.yw-gms-h3 { margin: 0; font-size: 16.5px; font-weight: 500; letter-spacing: -.3px; }
.yw-gms-list { display: flex; flex-direction: column; gap: 14px; }
.yw-gms-item { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--gmr-border); border-left-width: 4px; border-radius: 18px; background: var(--gmr-field); }
.yw-gms-item[data-accent="bad"] { border-left-color: #e11d48; }
.yw-gms-item[data-accent="watch"] { border-left-color: #d97706; }
.yw-gms-item[data-accent="good"] { border-left-color: #059669; }
.yw-gms-item-head, .yw-gms-item-foot, .yw-gms-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.yw-gms-sec-head { margin-top: 6px; }
.yw-gms-said { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin: 0; font-size: 14px; }
.yw-gms-said dt { color: var(--gmr-grey); font-size: 12px; }
.yw-gms-said dd { margin: 2px 0 0; }
.yw-gms-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.yw-gms-now b { font-size: 19px; font-weight: 500; }
.yw-gms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.yw-gms-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.yw-gms-req { color: var(--gmr-grey); font-size: 11.5px; }
.yw-gms-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.yw-gms-choice legend { width: 100%; margin-bottom: 6px; padding: 0; }
.yw-gms-opt { min-height: 48px; min-width: 128px; padding: 0 18px; border: 1px solid #e4e4e2; border-radius: 14px; background: var(--gmr-field); color: var(--gmr-ink); font: inherit; font-size: 15px; cursor: pointer; }
.yw-gms-opt[data-on] { border-color: #7c3aed; background: #ede9fe; color: #5b21b6; font-weight: 500; }
.yw-gms-opt[data-on][data-kind="good"] { border-color: #059669; background: #e7f5ee; color: #047857; }
.yw-gms-opt[data-on][data-kind="bad"] { border-color: #e11d48; background: #ffe4e6; color: #be123c; }
.yw-gms-later ul, .yw-gms-rows, .yw-gms-quotes, .yw-gms-flags { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.yw-gms-later li, .yw-gms-rows > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--gmr-line); font-size: 14.5px; }
.yw-gms-rows > li > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.yw-gms-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.yw-gms-quotes li { padding: 6px 0 6px 12px; border-left: 3px solid var(--gmr-line); font-size: 14.5px; line-height: 1.45; }
.yw-gms-quotes li .yw-gmr-tiny { display: block; }
.yw-gms-flags li { padding: 6px 0; color: #92400e; font-size: 14px; }
.yw-gms-score { display: flex; flex-direction: column; }
.yw-gms-srow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.1fr) 150px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--gmr-line); font-size: 14.5px; }
.yw-gms-srow[data-head] { padding-top: 0; border-top: 0; color: var(--gmr-grey); font-size: 12px; }
.yw-gms-srow[data-eos="off"] .yw-gr4-label { font-weight: 500; }
.yw-gms-sgname { padding: 14px 0 4px; }
.yw-gms-scell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.yw-gms-lbl { display: none; }
.yw-gms-tally { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; color: var(--gmr-ink2); font-size: 15px; }
.yw-gms-tally b { color: var(--gmr-ink); font-size: 24px; font-weight: 500; letter-spacing: -.6px; }
.yw-gms-total { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--gmr-border); border-radius: 18px; background: var(--gmr-field); }
.yw-gms-total-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 22px; }
.yw-gms-total-row > div { display: flex; flex-direction: column; gap: 2px; }
.yw-gms-total-row b { font-size: 26px; font-weight: 500; letter-spacing: -.8px; line-height: 1.1; }
.yw-gms-total-row[data-sub] b { font-size: 19px; letter-spacing: -.3px; }
.yw-gms-op { padding-bottom: 4px; color: var(--gmr-grey); font-size: 20px; }
.yw-gms-lgrid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.yw-gms-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.yw-gms-check input { width: 20px; height: 20px; accent-color: #7c3aed; }
.yw-gms-more-h { margin: 12px 0 6px; color: var(--gmr-ink); font-size: 14px; font-weight: 600; }
.yw-gms-goods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yw-gms-good { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--gmr-border); border-radius: 16px; background: var(--gmr-field); color: var(--gmr-ink); font: inherit; font-size: 14px; line-height: 1.45; text-align: left; cursor: pointer; }
.yw-gms-good[data-on] { border-color: #7c3aed; outline: 2px solid #ddd0fb; }
.yw-gms-ops { display: flex; flex-direction: column; gap: 8px; }
.yw-gms-pri { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.yw-gms-sum { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--gmr-line); }
.yw-gms-missing { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid #fecdd3; border-radius: 18px; background: #fff1f2; }
.yw-gms-missing ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.yw-gms-missing li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0; border-top: 1px solid #fecdd3; }
.yw-gms-missing li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.yw-gms-olist { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.yw-gms-block ul { margin: 4px 0 0; padding-left: 18px; color: #be123c; font-size: 13.5px; }
.yw-gms-foot .yw-gmr-foot-say { flex-direction: column; align-items: flex-start; }
.yw-gms-short { display: none; }
@media (max-width: 760px) {
  .yw-gms-q { font-size: 23px; letter-spacing: -.6px; }
  .yw-gms-dot-t { display: none; }
  .yw-gms-dot { padding: 0 4px; min-height: 44px; }
  .yw-gms-dot[data-here] .yw-gms-dot-t { display: inline; padding-right: 6px; }
  .yw-gms-progress { flex-wrap: wrap; gap: 6px; }
  .yw-gms-progress > .yw-gmr-bar { flex-basis: 100%; }
  .yw-gms-progress > .yw-gmr-sub { white-space: normal; }
  .yw-gms-grid, .yw-gms-grid[data-cols="3"], .yw-gms-said, .yw-gms-goods { grid-template-columns: minmax(0, 1fr); }
  .yw-gms-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-gms-lgrid > :first-child { grid-column: 1 / -1; }
  .yw-gms-item { padding: 14px; }
  .yw-gms-srow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .yw-gms-srow[data-head] { display: none; }
  .yw-gms-srow > .yw-gr4-label { grid-column: 1 / -1; }
  .yw-gms-srow > .yw-gr4-tgt { grid-column: 1; grid-row: 3; font-size: 12.5px; }
  .yw-gms-srow > .yw-gr4-val { grid-column: 1; grid-row: 2; }
  .yw-gms-srow > .yw-gms-scell { grid-column: 2; grid-row: 2 / span 2; align-items: flex-end; text-align: right; }
  .yw-gms-lbl { display: inline; }
  .yw-gms-total-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .yw-gms-total-row b { font-size: 19px; }
  .yw-gms-op { display: none; }
  .yw-gms-opt { flex: 1 1 0; min-width: 0; }
  .yw-gms-foot .yw-gmr-foot-say > .yw-gmr-tiny { display: none; }
  .yw-gms-long { display: none; }
  .yw-gms-short { display: inline; }
}
[data-theme-root].dark .yw-gms-dot-n { background: #1c2843; }
[data-theme-root].dark .yw-gms-dot[data-done] .yw-gms-dot-n { background: #12392f; color: #7fd3b4; }
[data-theme-root].dark .yw-gms-opt[data-on] { background: #2b2350; color: #c5a8ff; }
[data-theme-root].dark .yw-gms-opt[data-on][data-kind="good"] { background: #12392f; color: #7fd3b4; }
[data-theme-root].dark .yw-gms-opt[data-on][data-kind="bad"] { background: #3d2032; color: #f59bb3; }
[data-theme-root].dark .yw-gms-opt { border-color: #1c2843; }
[data-theme-root].dark .yw-gms-missing { border-color: #5b2236; background: #2a1520; }
[data-theme-root].dark .yw-gms-missing li { border-color: #5b2236; }
[data-theme-root].dark .yw-gms-flags li { color: #f4c56a; }
[data-theme-root].dark .yw-gms-block ul { color: #f59bb3; }
[data-theme-root].dark .yw-gms-good[data-on] { outline-color: #4c3d86; }

/* The owner's commitments panel (11/15): the EOS issues list across reports. */
.yw-gmc-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; }
.yw-gmc-counts button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--gmr-border); border-radius: 14px; background: var(--gmr-field); color: var(--gmr-ink); font: inherit; text-align: left; cursor: pointer; }
.yw-gmc-counts button[aria-pressed="true"] { border-color: #7c3aed; outline: 2px solid #ddd0fb; }
.yw-gmc-counts b { font-size: 24px; font-weight: 500; letter-spacing: -.6px; }
.yw-gmc-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 110px 150px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--gmr-line); font-size: 14px; }
.yw-gmc-row[data-head] { padding-top: 0; border-top: 0; color: var(--gmr-grey); font-size: 12px; }
.yw-gmc-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yw-gmc-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.yw-gmc-acts form { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
@media (max-width: 760px) {
  .yw-gmc-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yw-gmc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .yw-gmc-row[data-head] { display: none; }
  .yw-gmc-row > span:first-child, .yw-gmc-row > .yw-gmc-acts { grid-column: 1 / -1; }
}
[data-theme-root].dark .yw-gmc-counts button[aria-pressed="true"] { border-color: #8b5cf6; outline-color: #4c3d86; }

