/* styles/brief.css -- THE SESSION BRIEF (2026-10-26, the owner's session
   brief handoff v1, `docs design/session-brief/`: BR1 / BR1b the brief,
   BR2 a changed day, BR3 "How much, and why", BR4 one exercise). Rebuilt
   in the app's own parts -- calm.css's cards, rows, sheet and Back, the
   kernel's bar -- never the references' markup. Served at
   `/styles/brief.css`. 2026-11-03 (in-session v1 §6, SC2-SC4): the brief
   trimmed -- "Works: …" for the chips, IN ORDER's cards with a thumbnail
   a row (calm.css's `.px-thumb`), SC4 with the picture panel (`.px-panel`)
   -- sizes from the handoff's reference pages.

   NO NEW TOKEN. The session's colour is today.css's `tp-c-*` class on the
   page root (`--sc`); every surface is calm.css's. One stylesheet is one
   namespace: every class here is `br-`. */

.br { --br-sc: var(--sc, var(--accent));
      --br-eye: color-mix(in srgb, var(--br-sc) 55%, #fff);
      /* the parts other screens draw on it read the session's colour as
         `--focal` (sprint.css, aerobic.css, run.css's `rv-eye`) */
      --focal: var(--br-sc);
      --rv-eye: color-mix(in srgb, var(--br-sc) 45%, #fff);
      display: flex; flex-direction: column; gap: 14px;
      padding-bottom: 28px; font-variant-numeric: tabular-nums; }
.br > * { margin-top: 0; margin-bottom: 0; }

/* ---- the header: the kicker, the name, the goal, the day's reason ------ */
.br-head { display: flex; flex-direction: column; gap: 8px; }
.br-kick { margin: 0; display: flex; flex-wrap: wrap; align-items: center;
           gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em;
           text-transform: uppercase; color: var(--br-eye); line-height: 1.3; }
.br-kick .tp-sample { letter-spacing: .06em; }
h2.br-name { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.08;
             letter-spacing: -.015em; overflow-wrap: anywhere; }
.br-goal { margin: 0; font-size: 17px; line-height: 1.45; color: var(--c-ink-2); }
.br-also { margin: 0; font-size: 15px; line-height: 1.4; color: var(--quiet); }
.br-head .tp-why { margin-top: 4px; }
/* SC2: "Works: …", one quiet line under Builds (WAS the chips) */
.br-works { margin: 0; font-size: 13.5px; line-height: 1.4;
            color: var(--quiet); }

/* ---- a section's label ------------------------------------------------- */
.br-label { margin: 10px 0 0; font-size: 13px; font-weight: 800;
            letter-spacing: .12em; text-transform: uppercase;
            color: var(--quiet); }
.br-line { margin: -6px 0 0; font-size: 14.5px; line-height: 1.4;
           color: var(--quiet); }

/* ---- how much: the card (a button to BR3) ------------------------------ */
button.br-how { display: flex; flex-direction: row; align-items: center;
                gap: 12px; width: 100%;
                margin: 0; padding: 14px 16px; border-radius: 18px;
                box-sizing: border-box; text-align: left; color: var(--ink);
                border: 1px solid var(--line); font: inherit; }
.br-howm { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
           gap: 4px; }
/* its eyebrow, "HOW MUCH · MOST EXERCISES" */
.br-howeye { display: flex; flex-wrap: wrap; align-items: baseline;
             font-size: 12px; font-weight: 800; letter-spacing: .12em;
             text-transform: uppercase; color: var(--quiet); }
.br-most::before { content: "·"; margin: 0 .5em; }
.br-howv { margin-top: 2px; font-size: 17px; font-weight: 800;
           line-height: 1.3; }
.br-howe, .br-howp { font-size: 13.5px; line-height: 1.4;
                     color: var(--c-ink-2); }
s.br-was, .br-was { color: var(--quiet); font-weight: 600;
                    text-decoration: line-through; margin-right: 4px; }

/* ---- IN ORDER: the warm-up's card, then a card a part, a row an
        exercise (SC2/SC3) ----------------------------------------------- */
.br-part { display: flex; flex-direction: column; gap: 0;
           padding: 14px 16px 4px; border-radius: 20px; }
.br-part.br-wu { padding-bottom: 14px; }
.br-parthead { display: flex; align-items: center; gap: 10px; }
.br-parthead .nm { flex: 1 1 auto; min-width: 0; font-size: 18px;
                   font-weight: 800; }
.br-parthead .rt { flex: none; display: inline-flex; align-items: center;
                   gap: 6px; font-size: 13.5px; font-weight: 700;
                   color: var(--c-ink-2); }
.br-parthead .rt svg { width: 16px; height: 16px; fill: none;
                       stroke: var(--accent-soft); stroke-width: 2;
                       stroke-linecap: round; stroke-linejoin: round; }
.br-partsays { margin: 3px 0 6px; font-size: 13.5px; line-height: 1.4;
               color: var(--quiet); }
.br-wu .br-partsays { margin-bottom: 0; }
button.br-row, .br-row { display: flex; align-items: center; gap: 12px;
                         width: 100%; min-height: 64px; margin: 0;
                         padding: 10px 0; box-sizing: border-box; border: 0;
                         border-top: 1px solid var(--grid); border-radius: 0;
                         background: none; box-shadow: none;
                         color: var(--ink); text-align: left; font: inherit; }
.br-part > .br-row:first-child, .br-parthead + .br-row,
.br-partsays + .br-row { border-top: 0; }
.br-rm { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
         gap: 4px; }
/* line 1 the name; line 2 the dose, and the owner's tag where sent */
.br-rn { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.br-rt { display: flex; flex-wrap: wrap; align-items: center;
         column-gap: 10px; row-gap: 4px; }
.br-rd { font-size: 14px; font-weight: 700; color: var(--ink);
         white-space: nowrap; }
.br-rl { font-size: 12.5px; line-height: 1.35; color: var(--quiet); }
.br-rs { font-size: 14px; line-height: 1.35; color: var(--accent-soft); }
.br-row .lchev { flex: none; align-self: center; }
.br-row.br-out .br-rn { color: var(--quiet); text-decoration: line-through;
                        font-weight: 700; }
.br-row.br-out .br-rd { color: var(--quiet); font-weight: 600; }
.br-row.br-out .br-gap { visibility: hidden; }
.br-row .tp-tagrow { display: flex; align-items: center; gap: 6px; }

/* A why-tag: a reason, never a rating -- all four one soft blue (SC2: the
   glyph and the words, no box). */
.br-tag { display: inline-flex; align-items: center; gap: 5px;
          font-size: 12.5px; font-weight: 700; color: var(--accent-soft); }
.br-tag svg { width: 13px; height: 13px; flex: none; fill: none;
              stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
              stroke-linejoin: round; }

/* ---- the bar: Let's go, fixed at the bottom over a fade ---------------- */
body.runmode .bar:has(> .br-bar) {
  border-top: 0;
  background: linear-gradient(to bottom, rgba(5, 6, 7, 0), var(--bg) 38%); }
.br-bar { display: flex; flex-direction: column; gap: 8px; }
.br-bar button.c-btn, .br-bar button.br-look { min-height: 58px;
                                               border-radius: 18px; }
.br-bar button.br-look { background: var(--accent-fill); color: #fff;
                         border: 0; pointer-events: none; }
.br-bar button svg.play { width: 16px; height: 16px; fill: currentColor;
                          flex: none; }
.br-bar button.c-btn-outline { width: 100%; min-height: 52px;
                                border-radius: 18px; }
.br-bar p { margin: 0; font-size: 14px; line-height: 1.4;
            color: var(--quiet); text-align: center; }

/* ---- BR3: how much, and why -------------------------------------------- */
.br-sheett { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; }
.br-sheets { margin: -10px 0 0; font-size: 14.5px; color: var(--quiet); }
.br-why { display: flex; gap: 14px; padding: 14px 0;
          border-top: 1px solid var(--grid); }
.br-why:first-of-type { border-top: 0; }
.br-whyi { flex: none; width: 34px; height: 34px; border-radius: 11px;
           display: flex; align-items: center; justify-content: center;
           background: rgba(140, 196, 245, .10); color: var(--accent-soft); }
.br-whyi svg { width: 18px; height: 18px; fill: none; stroke: currentColor;
               stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.br-whym { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
           gap: 4px; }
.br-whyh { display: flex; align-items: baseline; gap: 10px; }
.br-whyh b { flex: 1 1 auto; font-size: 13px; font-weight: 800;
             letter-spacing: .1em; text-transform: uppercase;
             color: var(--c-ink-2); }
.br-whyh span { flex: none; font-size: 17px; font-weight: 800;
                color: var(--ink); }
.br-whyr { margin: 0; font-size: 14.5px; line-height: 1.45;
           color: var(--c-ink-2); }

/* ---- SC4: one exercise (WAS BR4) --------------------------------------- */
.br-ex { gap: 8px; }
.br-ex > .px-panel { margin-bottom: 8px; }
.br-exeye { margin: 0; font-size: 12.5px; font-weight: 800;
            letter-spacing: .13em; text-transform: uppercase;
            color: var(--quiet); }
.br-ex h2.br-name { font-size: 28px; line-height: 1.1; }
.br-ex > .br-tag { align-self: flex-start; }
.br-detail { margin: 0; font-size: 15px; line-height: 1.45;
             color: var(--c-ink-2); }
.br-ex > .br-today { margin-top: 6px; }
.br-ex > .br-label { margin-top: 8px; }
.br-today { display: flex; flex-direction: column; gap: 0;
            padding: 2px 16px; border-radius: 18px; }
.br-trow { display: flex; justify-content: space-between; gap: 10px;
           padding: 11px 0; border-top: 1px solid var(--grid); }
.br-trow:first-child { border-top: 0; }
.br-trow > span:first-child { flex: none; font-size: 14.5px;
                              color: var(--quiet); }
.br-trow > b { font-size: 15px; font-weight: 800; text-align: right; }
.br-sure { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px;
           border-radius: 18px; }
.br-lvl { display: flex; align-items: center; gap: 10px; min-height: 32px;
          font-size: 14.5px; font-weight: 600; color: var(--ink);
          opacity: .45; }
.br-lvl.on { opacity: 1; }
.br-lvl i { flex: none; width: 18px; height: 18px; border-radius: 9px;
            box-sizing: border-box; border: 2px solid #3d5068;
            display: flex; align-items: center; justify-content: center; }
.br-lvl.on { color: var(--ink); font-weight: 800; }
.br-lvl.on i { border: 0; background: var(--ok); color: #06150e; }
.br-lvl.on i svg { width: 11px; height: 11px; fill: none; stroke: currentColor;
                   stroke-width: 3.2; stroke-linecap: round;
                   stroke-linejoin: round; }
.br-surel { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--grid);
            font-size: 14px; line-height: 1.4; color: var(--c-ink-2); }
.br-sure > .br-surel:first-child { margin: 0; padding: 4px 0; border-top: 0; }
.br-swap { display: flex; flex-direction: column; align-items: stretch;
           gap: 8px; margin-top: 6px; }
.br-swap button.c-btn-outline { min-height: 52px; border-radius: 18px; }
.br-swap p { margin: 0; font-size: 14px; color: var(--quiet);
             text-align: center; }
