/* Journey + My Plan redesign (JOURNEY_V2_ENABLED). Loaded by /journey-v2.js only while the flag is on.
   Glass cards, flat bronze primary, Bebas Neue / Russo One / Times, Pearl by day and Smoke by night (the approved
   Train v2 tokens and the theme glow; the page is transparent so the one app background shows through).
   Lab colors run bronze / charcoal / sand / red only. 44 px targets; details in fixed popups.
   While a .j2-page is in the view, the app's own content stays in the DOM (its handlers are used) but is hidden;
   on My Plan "Files and calendar" shows it in place (its own protocol section stays hidden: no duplicate). */
.app[data-route="journey"] main#view:has(> .j2-page) > :not(.j2-page),
#jr-view:has(> .j2-page) > :not(.j2-page),
.app[data-route="plan"] main#view:has(> .j2-page):not(.j2-showapp) > :not(.j2-page),
.app[data-route="plan"] main#view.j2-showapp:has(> .j2-page) #published-protocols75,
/* r4b (Jake, Nov 16: "My Plan repeats itself"): with "Files and calendar" open, the app's own My Plan header and its
   "To-do · today" list duplicated the new page's title and today's checklist. One of each (CLAUDE.md rule 5): only the
   calendar (its own add / browse / other days) and the plan files show below. */
.app[data-route="plan"] main#view.j2-showapp:has(> .j2-page) > section.hero,
.app[data-route="plan"] main#view.j2-showapp:has(> .j2-page) #calSection:has(.cal-ws-day.sel.today) > div:has(> .row > .eyebrow.sand) { display: none !important; }
body.j2-sheet-open #tabs, body.j2-sheet-open #atlas-member-entry, body.j2-sheet-open #atlas-fab { visibility: hidden !important; pointer-events: none !important; }

.j2-theme {
  --j2-glass: rgba(255,253,248,.66); --j2-glass-strong: rgba(255,255,255,.94); --j2-hair: rgba(166,136,110,.26);
  --j2-ink: #252525; --j2-ink-2: rgba(37,37,37,.68); --j2-ink-3: #666666; --j2-line: rgba(37,37,37,.10);
  --j2-sand: #A6886E; --j2-sand-text: #786450; --j2-primary: #7A6247; --j2-on-primary: #FAF8F4; --j2-soft: #EFE8E0; --j2-paper: #FFFFFF;
  --j2-sa: #7A6247; --j2-sb: #2f2a25; --j2-mark: #A6886E; --j2-span: rgba(166,136,110,.14); --j2-grid: rgba(37,37,37,.08); --j2-warn: #a3402b;
  --j2-scrim: rgba(30,24,18,.35);
  --j2-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 44px -22px rgba(96,66,38,.26);
  --j2-display: "Bebas Neue","Russo One",Impact,"Arial Narrow",sans-serif;
  --j2-label: "Russo One","Arial Black",Arial,sans-serif;
  color: var(--j2-ink);
}
html[data-theme="sunrise"] .j2-theme { --j2-ink-2: rgba(37,37,37,.70); --j2-ink-3: #626262; --j2-sand-text: #735f49; --j2-primary: #765e44; --j2-sa: #765e44; }
html[data-theme="sunset"] .j2-theme { --j2-ink-2: rgba(37,37,37,.72); --j2-ink-3: #645b51; --j2-sand-text: #6e5b46; --j2-primary: #715a41; --j2-sa: #715a41; }
html[data-theme="night"] .j2-theme, html[data-theme="dark"] .j2-theme {
  --j2-glass: linear-gradient(135deg, rgba(64,56,48,.82), rgba(42,37,32,.86)); --j2-glass-strong: rgba(48,46,41,.97); --j2-hair: rgba(200,168,135,.30);
  --j2-ink: #f4efe8; --j2-ink-2: rgba(244,239,232,.76); --j2-ink-3: #c9bdad; --j2-line: rgba(231,210,183,.16);
  --j2-sand: #c8a887; --j2-sand-text: #d6b994; --j2-primary: #d8bb9a; --j2-on-primary: #25211c; --j2-soft: #332f28; --j2-paper: #3a372f;
  --j2-sa: #e0c19d; --j2-sb: #f4efe8; --j2-mark: #c8a887; --j2-span: rgba(200,168,135,.14); --j2-grid: rgba(244,239,232,.10); --j2-warn: #e8876f;
  --j2-scrim: rgba(0,0,0,.55);
  --j2-shadow: inset 0 1px 0 rgba(255,236,214,.11), 0 16px 36px -20px rgba(0,0,0,.65);
}

.j2-page { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 0; /* the view's shared bottom inset ends the page (app.css, docs/design/bottom-gap.md) */ font: 17px/1.45 var(--font-body); background: transparent; }
.j2-page *, .j2-scrim * { box-sizing: border-box; }
.j2-page h1, .j2-page h2, .j2-page h3, .j2-scrim h2, .j2-scrim h3 { font-family: var(--j2-display); font-weight: 400; letter-spacing: .02em; margin: 0; color: var(--j2-ink); }
.j2-page h1 { font-size: 40px; line-height: .95; }
.j2-page h2 { font-size: 26px; line-height: 1; }
.j2-page h3, .j2-scrim h3 { font-size: 21px; line-height: 1.05; }
.j2-page p, .j2-scrim p { margin: 0; }
.j2-eye { font: 11px/1.2 var(--j2-label); letter-spacing: .14em; text-transform: uppercase; color: var(--j2-sand-text); }
.j2-muted { color: var(--j2-ink-2); font-size: 15px; }
.j2-small { font-size: 14px; }
.j2-tiny { font-size: 12.5px; line-height: 1.35; color: var(--j2-ink-3); }
.j2-foot { padding: 0 4px; }
.j2-hdr { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 2px 0; min-height: 64px; }
.j2-hdr > div { display: flex; flex-direction: column; gap: 6px; }
.j2-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.j2-row.j2-start { justify-content: flex-start; }
.j2-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.j2-card { background: var(--j2-glass); border: 1px solid var(--j2-hair); border-radius: 24px; padding: 16px; box-shadow: var(--j2-shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.j2-sample { font-size: 13px; color: var(--j2-ink-2); border: 1px dashed var(--j2-hair); border-radius: 14px; padding: 8px 12px; }
.j2-btn { min-height: 48px; border-radius: 999px; border: 0; background: var(--j2-primary); color: var(--j2-on-primary); font: 13px/1 var(--j2-label); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: 0 18px; }
.j2-btn.j2-ghost { background: transparent; color: var(--j2-ink); border: 1px solid var(--j2-line); }
.j2-btn.j2-sm { min-height: 44px; font-size: 11px; padding: 0 16px; flex: 0 0 auto; }
.j2-btn:disabled { opacity: .55; }
.j2-link { background: none; border: 0; color: var(--j2-sand-text); font: 15px var(--font-body); cursor: pointer; padding: 0 2px; min-height: 44px; min-width: 44px; text-align: left; flex: 0 0 auto; }
:where(.j2-page, .j2-scrim) button { -webkit-tap-highlight-color: transparent; font-family: inherit; color: inherit; }
.j2-page button:focus-visible, .j2-scrim button:focus-visible, .j2-scrim input:focus-visible { outline: 3px solid var(--j2-primary); outline-offset: 2px; }
.j2-sk { display: block; border-radius: 18px; background: var(--j2-soft); opacity: .7; }

/* Hero: this week */
.j2-hero { position: relative; border-radius: 26px; overflow: hidden; padding: 18px 16px; color: #FAF8F4; display: flex; flex-direction: column; gap: 12px; min-height: 196px;
  background: radial-gradient(90% 70% at 85% 10%, rgba(216,187,154,.42), transparent 60%), linear-gradient(160deg, #4a3c2f, #171310); box-shadow: var(--j2-shadow); }
.j2-hero .j2-eye { color: #d8bb9a; }
.j2-hero p { font-size: 15px; line-height: 1.35; color: rgba(250,248,244,.86); }
.j2-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.j2-tile { background: rgba(250,248,244,.08); border: 1px solid rgba(216,187,154,.25); border-radius: 16px; padding: 10px 9px; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 96px; text-align: left; cursor: pointer; color: #FAF8F4 !important; }
.j2-tile small { font: 9.5px/1.25 var(--j2-label); letter-spacing: .1em; text-transform: uppercase; color: #d8bb9a; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.5em; } /* two lines so "Sleep score (device)" is never cut (art review journey2a L1) */
.j2-tile b { font: 30px/1 var(--j2-display); letter-spacing: .02em; font-weight: 400; }
.j2-tile b i { font: 13px var(--font-body); font-style: normal; color: rgba(250,248,244,.75); margin-left: 3px; }
.j2-tile span { font-size: 12px; line-height: 1.25; color: rgba(250,248,244,.84); }

/* Compare */
.j2-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; overscroll-behavior-x: contain; }
.j2-chips::-webkit-scrollbar { display: none; }
.j2-chip { flex: 0 0 auto; min-height: 44px; border-radius: 999px; border: 1px solid var(--j2-line); background: transparent; font: 12px var(--j2-label); letter-spacing: .03em; padding: 0 14px; cursor: pointer; white-space: nowrap; color: var(--j2-ink-2) !important; }
.j2-chip[aria-pressed="true"] { border-color: var(--j2-primary); color: var(--j2-ink) !important; background: var(--j2-glass-strong); }
.j2-seg { display: flex; background: var(--j2-soft); border-radius: 999px; padding: 3px; gap: 3px; }
.j2-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; font: 11px var(--j2-label); letter-spacing: .06em; cursor: pointer; padding: 0 6px; white-space: nowrap; color: var(--j2-ink-2) !important; }
.j2-seg button[aria-pressed="true"] { background: var(--j2-paper); color: var(--j2-ink) !important; box-shadow: 0 4px 14px -8px rgba(0,0,0,.35); }
/* Night: the selected pill also gets a bronze edge so 7D/30D/90D/1Y and Same day/Next day read clearly (art review journey2a L2). */
html[data-theme="night"] .j2-seg button[aria-pressed="true"], html[data-theme="dark"] .j2-seg button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--j2-primary), 0 4px 14px -8px rgba(0,0,0,.5); }
/* Charts v3 (Jake, Nov 15: the charts-v3 mockup). Every chart box's HEIGHT is a CSS constant (.j2-strip, .j2-plot), the
   SVG is drawn at the box's measured width (journey-v2.js fitChart), so chart text is a fixed CSS size at every width and
   a draw, redraw, toggle, scrub or resize never shifts layout. The readout floats in the reserved strip. */
.j2-theme { --j2-num: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --j2-fill: #A6886E; --j2-fill-o: .30; --j2-bar: #3b332b; --j2-band-edge: rgba(122,98,71,.32); --j2-cursor: rgba(37,37,37,.38); --j2-halo: rgba(122,98,71,.18); }
html[data-theme="night"] .j2-theme, html[data-theme="dark"] .j2-theme { --j2-fill: #c8a887; --j2-fill-o: .34; --j2-bar: #cbbca9; --j2-band-edge: rgba(224,193,157,.34); --j2-cursor: rgba(244,239,232,.45); --j2-halo: rgba(224,193,157,.22); }
.j2-ctl { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.j2-ctl .j2-range { flex: 1 1 220px; max-width: 320px; }
.j2-ctl .j2-lag { flex: 0 1 auto; }
.j2-cv { position: relative; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.j2-cv:focus-visible { box-shadow: 0 0 0 2px var(--j2-paper), 0 0 0 4px var(--j2-primary); border-radius: 12px; }
.j2-strip { height: 40px; }
.j2-cv-lab .j2-strip { height: 54px; }
.j2-plot { position: relative; height: 104px; }
.j2-plot.j2-pbar { height: 84px; }
.j2-plot.j2-psolo { height: 156px; }
.j2-plot.j2-plab { height: 160px; }
.j2-plot.j2-pshort { height: 64px; }
@media (min-width: 900px) { .j2-plot { height: 140px; } .j2-plot.j2-pbar { height: 110px; } .j2-plot.j2-psolo { height: 190px; } .j2-plot.j2-plab { height: 180px; } .j2-plot.j2-pshort { height: 80px; } }
/* Compare (r3d): no reserved strip. The readout floats over the first header row, directly above the chart, and that
   row's chip and average hide while it shows (visibility only, so nothing moves). */
.j2-cv-cmp .j2-strip { height: 0; }
.j2-cv-cmp .j2-pill { top: 4px; min-height: 36px; }
.j2-cv-cmp.j2-on .j2-ph0 { visibility: hidden; }
.j2-chart { width: 100%; height: 100%; display: block; overflow: visible; }
.j2-chart .j2-grid { stroke: var(--j2-grid); stroke-width: 1; }
.j2-chart .j2-ax { font: 11px var(--j2-num); font-weight: 500; fill: var(--j2-ink-3); font-variant-numeric: tabular-nums; }
.j2-chart .j2-vlab { fill: var(--j2-ink-2); }
.j2-chart .j2-vlab.j2-out { fill: var(--j2-warn); }
.j2-chart .j2-band { fill: var(--j2-span); }
.j2-chart .j2-bande { stroke: var(--j2-band-edge); stroke-width: 1; stroke-dasharray: 2 3; }
.j2-chart .j2-line { fill: none; stroke: var(--j2-sa); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.j2-chart .j2-line.j2-thin { stroke-width: 1.75; }
.j2-chart .j2-line.j2-pend { stroke: var(--j2-ink-3); stroke-width: 2; stroke-dasharray: 1 5; }
.j2-chart .j2-gs0 { stop-color: var(--j2-fill); stop-opacity: var(--j2-fill-o); }
.j2-chart .j2-gs1 { stop-color: var(--j2-fill); stop-opacity: 0; }
.j2-chart .j2-bar { fill: var(--j2-bar); }
.j2-chart .j2-avgl { stroke: var(--j2-bar); stroke-width: 1; stroke-dasharray: 3 4; opacity: .45; }
.j2-chart .j2-dot { fill: var(--j2-sa); stroke: var(--j2-paper); stroke-width: 2; }
.j2-chart .j2-dot.j2-out { fill: var(--j2-warn); }
.j2-chart .j2-halo { fill: var(--j2-halo); }
.j2-chart .j2-halo.j2-out { fill: var(--j2-warn); opacity: .16; }
.j2-chart .j2-labdot { fill: var(--j2-sa); stroke: var(--j2-paper); stroke-width: 2; }
.j2-chart .j2-labdot.j2-out { fill: var(--j2-warn); }
.j2-chart .j2-labdot.j2-pending, .j2-chart .j2-labdot.j2-none { fill: var(--j2-paper); stroke: var(--j2-ink-3); stroke-width: 1.75; }
.j2-chart .j2-empty { stroke: var(--j2-grid); stroke-width: 1.5; stroke-dasharray: 2 5; }
.j2-chart .j2-evl { stroke: var(--j2-mark); stroke-width: 1; stroke-dasharray: 2 4; opacity: .8; }
.j2-chart .j2-evl.j2-hot { stroke-width: 2; stroke-dasharray: none; opacity: 1; }
/* Draw-in: the line draws, the fill and dots fade in, bars grow; reduced motion renders the final state at once. */
@media (prefers-reduced-motion: no-preference) {
  .j2-chart.j2-anim .j2-line:not(.j2-pend) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: j2draw .9s cubic-bezier(.22,.7,.2,1) forwards; }
  .j2-chart.j2-anim .j2-area, .j2-chart.j2-anim .j2-dot, .j2-chart.j2-anim .j2-halo, .j2-chart.j2-anim .j2-labdot, .j2-chart.j2-anim .j2-vlab, .j2-chart.j2-anim .j2-line.j2-pend { animation: j2fade .5s .45s both; }
  .j2-chart.j2-anim .j2-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: j2grow .6s cubic-bezier(.22,.7,.2,1) both; }
}
@keyframes j2draw { to { stroke-dashoffset: 0; } }
@keyframes j2fade { from { opacity: 0; } }
@keyframes j2grow { from { transform: scaleY(0); } }
/* Panel header: the legend chip (also the picker) and the panel's hero average. */
.j2-ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 44px; }
.j2-ph + .j2-ph, .j2-plot + .j2-ph { margin-top: 10px; }
.j2-legchip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 66%; height: 36px; border: 1px solid var(--j2-hair); background: var(--j2-glass-strong); border-radius: 999px; padding: 0 12px 0 10px; font: 500 13px var(--j2-num); color: var(--j2-ink) !important; cursor: pointer; position: relative; }
.j2-legchip::before { content: ""; position: absolute; inset: -4px 0; }
.j2-legchip::after { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-right: 1.5px solid var(--j2-ink-3); border-bottom: 1.5px solid var(--j2-ink-3); transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.j2-legchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j2-sw { flex: 0 0 auto; display: inline-block; width: 14px; height: 4px; border-radius: 2px; background: var(--j2-sa); }
.j2-sw.j2-swbar { width: 6px; height: 12px; border-radius: 3px; background: var(--j2-bar); }
.j2-sw.j2-swev { width: 4px; height: 14px; background: var(--j2-mark); }
.j2-mv { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; height: 32px; overflow: hidden; }
.j2-mv b { font: 28px/1 var(--j2-display); font-variant-numeric: tabular-nums; color: var(--j2-ink); }
.j2-mv i { font: 500 12px var(--j2-num); font-style: normal; color: var(--j2-ink-3); }
.j2-xaxis { position: relative; height: 24px; margin-top: 6px; }
.j2-pins + .j2-xaxis { margin-top: 12px; }
.j2-xaxis span { position: absolute; top: 2px; font: 500 11px var(--j2-num); color: var(--j2-ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Event pins sit on the axis at the foot of their dashed line (r3d), the same in every panel layout. */
.j2-pins { position: relative; height: 0; z-index: 1; }
.j2-pins b { position: absolute; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--j2-mark); color: var(--j2-on-primary); font: 500 10.5px/18px var(--j2-num); text-align: center; }
.j2-pins i.tri { position: absolute; top: -4px; margin-left: -5px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--j2-mark); }
.j2-pins i.dia { position: absolute; top: -4px; margin-left: -4px; width: 7px; height: 7px; border: 1.4px solid var(--j2-mark); transform: rotate(45deg); }
/* Scrub overlay: cursor, snapped dots and the floating readout. Absolutely positioned and moved by transform only, so a
   scrub is never a layout shift. */
.j2-cur { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--j2-cursor); pointer-events: none; display: none; }
.j2-cdot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--j2-sa); box-shadow: 0 0 0 3px var(--j2-paper), 0 0 0 9px var(--j2-halo); pointer-events: none; }
.j2-cdot.j2-cbar { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--j2-bar); box-shadow: 0 0 0 3px var(--j2-paper); }
.j2-cdot.j2-cout { background: var(--j2-warn); }
.j2-cdot.j2-cpend { background: var(--j2-paper); box-shadow: inset 0 0 0 2px var(--j2-ink-3), 0 0 0 3px var(--j2-paper); }
.j2-pill { position: absolute; top: 0; left: 0; z-index: 2; display: none; align-items: center; gap: 10px; pointer-events: none; white-space: nowrap; background: var(--j2-glass-strong); border: 1px solid var(--j2-hair); border-radius: 14px; box-shadow: 0 10px 26px -10px rgba(60,40,20,.30); padding: 6px 11px; }
.j2-cv.j2-on .j2-pill { display: flex; }
.j2-cv-lab.j2-on .j2-pill { display: block; }
.j2-cv.j2-on .j2-cur { display: block; }
.j2-pd { font: 500 10.5px/1.2 var(--j2-num); letter-spacing: .04em; text-transform: uppercase; color: var(--j2-ink-3); }
.j2-pvs { display: flex; gap: 12px; }
.j2-cv-lab .j2-pvs { margin-top: 2px; }
.j2-pv { display: flex; align-items: baseline; gap: 4px; }
.j2-pv .j2-sw { align-self: center; margin-right: 3px; }
.j2-pv b { font: 22px/1 var(--j2-display); font-variant-numeric: tabular-nums; color: var(--j2-ink); }
.j2-pv em { font: 500 11.5px var(--j2-num); font-style: normal; color: var(--j2-ink-2); }
.j2-pv.j2-out b { color: var(--j2-warn); }
.j2-pst { margin-left: 8px; align-self: center; font: 9.5px var(--j2-label); letter-spacing: .1em; text-transform: uppercase; color: var(--j2-sand-text); }
.j2-pst.j2-out { color: var(--j2-warn); }
.j2-cv-lab .j2-pv .j2-sw { display: none; }
.j2-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.j2-emptyact { position: absolute; left: 0; right: 34px; top: 40px; height: 120px; display: flex; align-items: center; justify-content: center; }
/* Single-metric headline (metric sheet): one hero value, the change against the previous period, the period line. */
.j2-dhero { min-height: 118px; }
.j2-hv { display: flex; align-items: baseline; gap: 6px; }
.j2-hv .j2-pre { font: 500 13px var(--j2-num); color: var(--j2-ink-3); align-self: flex-start; margin-top: 10px; }
.j2-hv b { font: 64px/.9 var(--j2-display); font-variant-numeric: tabular-nums; color: var(--j2-ink); }
.j2-hv b.none { font: 48px/1 var(--j2-num); color: var(--j2-ink-3); }
.j2-hv i { font: 500 15px var(--j2-num); font-style: normal; color: var(--j2-ink-2); }
.j2-delta { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font: 500 13.5px/1.3 var(--j2-num); color: var(--j2-ink); }
.j2-period { margin: 3px 0 0; font: 12.5px/1.35 var(--j2-num); color: var(--j2-ink-3); }
.j2-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 12.5px/18px var(--j2-num); color: var(--j2-ink-3); }
#j2-compare .j2-cv + .j2-legend { min-height: 42px; align-content: flex-start; }
@media (min-width: 600px) { #j2-compare .j2-cv + .j2-legend { min-height: 18px; } }
.j2-legend > span { display: inline-flex; align-items: center; white-space: nowrap; }
.j2-legend b { font: 500 10px var(--j2-num); display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--j2-mark); color: var(--j2-on-primary); margin-right: 6px; flex: 0 0 auto; }
.j2-legend i.tri { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--j2-mark); margin-right: 5px; }
.j2-legend i.dia { display: inline-block; width: 7px; height: 7px; border: 1.4px solid var(--j2-mark); transform: rotate(45deg); margin-right: 6px; }
.j2-legend i.j2-kband { display: inline-block; width: 14px; height: 9px; border-radius: 3px; background: var(--j2-span); box-shadow: inset 0 0 0 1px var(--j2-band-edge); margin-right: 7px; }
.j2-legend i.j2-kd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--j2-sa); margin-right: 7px; }
.j2-legend i.j2-kd.j2-kd-red { background: var(--j2-warn); }
.j2-legend i.j2-kd.j2-kd-wait { background: transparent; box-shadow: inset 0 0 0 1.6px var(--j2-ink-3); }
.j2-readout { border-radius: 16px; background: var(--j2-soft); padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.4; }
.j2-rh { font: 19px/1.1 var(--j2-display); letter-spacing: .03em; font-weight: 400; }
.j2-chips-static { display: flex; flex-wrap: wrap; gap: 6px; }
.j2-chips-static span { font: 11px var(--j2-label); letter-spacing: .04em; border: 1px solid var(--j2-line); border-radius: 999px; padding: 5px 8px; color: var(--j2-ink-2); background: var(--j2-glass-strong); }
.j2-page details summary, .j2-scrim details summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; color: var(--j2-sand-text); font-size: 14px; }
.j2-page details summary::-webkit-details-marker { display: none; }
.j2-page details summary::after { content: "+"; font: 16px var(--j2-label); }
.j2-page details[open] summary::after { content: "–"; }
.j2-how p { font-size: 12.5px; color: var(--j2-ink-3); }
.j2-how-rho { margin-top: 8px; }

/* Patterns, lists, labs */
.j2-pat { border-top: 1px solid var(--j2-line); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.j2-pat:first-of-type { border-top: 0; padding-top: 0; }
.j2-pat b { font-weight: 400; font-size: 16px; line-height: 1.3; }
.j2-pat span { font-size: 12.5px; color: var(--j2-ink-3); }
.j2-list { display: flex; flex-direction: column; }
.j2-li { display: flex; align-items: center; gap: 10px; min-height: 56px; border: 0; border-top: 1px solid var(--j2-line); padding: 8px 0; background: none; text-align: left; cursor: pointer; width: 100%; }
.j2-list > .j2-li:first-child { border-top: 0; }
.j2-li.j2-static { cursor: default; }
.j2-li .j2-grow b { font-weight: 400; font-size: 16px; }
.j2-li .j2-grow span { font-size: 12.5px; color: var(--j2-ink-3); }
.j2-val { text-align: right; font: 22px/1 var(--j2-display); white-space: nowrap; }
.j2-val i { font: 12px var(--font-body); font-style: normal; color: var(--j2-ink-3); }
.j2-val.out { color: var(--j2-warn); }
.j2-spark { flex: 0 0 72px; width: 72px; height: 24px; color: var(--j2-sa); }
.j2-labline { stroke: var(--j2-line); stroke-width: 1.5; }
.j2-labdot { fill: var(--j2-sa); }
.j2-labdot.out { fill: var(--j2-warn); }
/* Labs section (Function Health / Superpower bar, VISION palette): a ring hero, markers outside their range first,
   draws newest first, systems to expand, rows with a range bar and a direction chevron. Bronze in range, red outside,
   sand / hollow when not rated or awaiting care-team review. Theme tokens only. */
.j2-labs { gap: 14px; }
.j2-labhead { display: flex; align-items: center; gap: 16px; padding: 4px 0 2px; }
.j2-labring { flex: 0 0 96px; }
.j2-labring .j2-ring-bg { stroke: var(--j2-line); }
.j2-labring .j2-ring-in { stroke: var(--j2-sa); }
.j2-labring .j2-ring-out { stroke: var(--j2-warn); }
.j2-ring-n { font: 34px var(--j2-display); fill: var(--j2-ink); }
.j2-ring-of { font: 11px var(--j2-label); letter-spacing: .06em; fill: var(--j2-ink-3); }
.j2-labsum { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.j2-labtop { margin: 0; font: 23px/1.05 var(--j2-display); letter-spacing: .02em; color: var(--j2-ink); }
.j2-labline2 { margin: 0; font-size: 14px; line-height: 1.3; color: var(--j2-ink-2); }
.j2-page .j2-pend, .j2-scrim .j2-pend, .j2-draw > span.j2-pend, .j2-li .j2-grow span.j2-pend { font: 9.5px/1.2 var(--j2-label); }
.j2-pend { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font: 9.5px/1.2 var(--j2-label); letter-spacing: .08em; text-transform: uppercase; color: var(--j2-sand-text) !important; border: 1px dashed var(--j2-sand); border-radius: 999px; padding: 3px 8px; margin-top: 3px; white-space: nowrap; }
.j2-pend::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--j2-sand); }
.j2-attn { border: 1px solid var(--j2-hair); border-radius: 18px; padding: 0 12px; background: var(--j2-span); }
.j2-page details.j2-attn > summary { min-height: 48px; }
.j2-page details.j2-attn > summary::after { color: var(--j2-warn); }
.j2-page details.j2-attn[open] > .j2-list { padding-bottom: 2px; }
.j2-page details > summary:focus-visible, .j2-scrim details > summary:focus-visible { outline: 3px solid var(--j2-primary); outline-offset: 2px; border-radius: 10px; }
.j2-eye-out { color: var(--j2-warn); }
.j2-labdot.none, .j2-labdot.pending { fill: var(--j2-paper); stroke: var(--j2-sand); stroke-width: 1.5; }
.j2-draws { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin: -4px -2px 0; padding: 2px; }
.j2-draws::-webkit-scrollbar { display: none; }
.j2-draw { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 64px; min-width: 132px; border-radius: 16px; border: 1px solid var(--j2-line); background: var(--j2-glass-strong); padding: 8px 12px; cursor: pointer; text-align: left; color: var(--j2-ink); }
html[data-theme="night"] .j2-draw, html[data-theme="dark"] .j2-draw { background: rgba(255,236,214,.05); }
.j2-draw:first-child { border-color: var(--j2-primary); }
.j2-draw b { font: 18px/1.1 var(--j2-display); font-weight: 400; letter-spacing: .02em; }
.j2-draw > span { font-size: 12px; line-height: 1.25; color: var(--j2-ink-3); white-space: nowrap; }
.j2-page details.j2-sys { border-top: 1px solid var(--j2-line); }
.j2-page details.j2-sys summary { min-height: 56px; gap: 10px; color: var(--j2-ink); font-size: 16px; }
.j2-sys summary .j2-grow b { font-weight: 400; font-size: 16px; }
.j2-sys summary .j2-grow > span { font-size: 12.5px; color: var(--j2-ink-3); }
.j2-outn { font-style: normal; color: var(--j2-warn); }
.j2-sysdots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 96px; margin-left: auto; }
.j2-sysdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--j2-sa); }
.j2-sysdots i.out { background: var(--j2-warn); }
.j2-sysdots i.none { background: transparent; box-shadow: inset 0 0 0 1.2px var(--j2-sand); }
.j2-sys .j2-list { padding-bottom: 6px; }
.j2-mrow { min-height: 62px; gap: 12px; }
.j2-mrow .j2-grow b { font-size: 16.5px; }
.j2-mcol { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.j2-page .j2-flagline, .j2-scrim .j2-flagline { font: 10.5px/1.2 var(--font-body); color: var(--j2-warn); text-align: right; max-width: 104px; text-wrap: balance; }
/* Wider screens have room: the flag line stays on one line (art review N3). */
@media (min-width: 600px) { .j2-page .j2-flagline, .j2-scrim .j2-flagline { max-width: none; white-space: nowrap; } }
.j2-mval { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 84px; }
.j2-mval .j2-val { font-size: 23px; }
.j2-val.pending { color: var(--j2-ink-2); }
/* Trend: a small drawn arrow (shaft + head), never a chevron, which would read as "expand" (art review N1). */
.j2-trend { flex: 0 0 12px; width: 12px; height: 12px; color: var(--j2-ink-3); position: relative; display: inline-block; }
.j2-trend.up::before, .j2-trend.down::before { content: ""; position: absolute; left: 5.2px; top: 1.5px; width: 1.6px; height: 9px; border-radius: 1px; background: currentColor; }
.j2-trend.up::after, .j2-trend.down::after { content: ""; position: absolute; left: 3px; width: 6px; height: 6px; box-sizing: border-box; border: solid currentColor; border-width: 1.6px 0 0 1.6px; border-radius: 1px 0 0 0; }
.j2-trend.up::after { top: 1.2px; transform: rotate(45deg); }
.j2-trend.down::after { bottom: 1.2px; transform: rotate(225deg); }
.j2-trend.same::before { content: ""; position: absolute; left: 1.5px; top: 5.2px; width: 9px; height: 1.6px; border-radius: 1px; background: currentColor; }
.j2-rbar { flex: 0 0 auto; display: block; }
.j2-rb-track { fill: var(--j2-line); }
.j2-rb-band { fill: var(--j2-sand); opacity: .55; }
.j2-rb-dot { stroke: var(--j2-paper); stroke-width: 1.5; }
.j2-rb-dot.in { fill: var(--j2-sa); }
.j2-rb-dot.out { fill: var(--j2-warn); }
.j2-rb-dot.none { fill: var(--j2-paper); stroke: var(--j2-sand); }
.j2-li .j2-file { min-height: 36px; font-size: 14px; align-self: flex-start; padding: 0; }
.j2-labhero { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-bottom: 4px; }
.j2-labhero-v { display: flex; align-items: center; gap: 8px; }
.j2-val.j2-big { font-size: 52px; text-align: left; }
.j2-val.j2-big i { font-size: 15px; }
.j2-labst { font: 12px var(--j2-label); letter-spacing: .08em; text-transform: uppercase; color: var(--j2-sa); }
.j2-labst.out { color: var(--j2-warn); }
.j2-labst.none { color: var(--j2-ink-3); }
.j2-bigbar { width: 100%; padding: 8px 0 2px; }
.j2-bigbar .j2-rbar { width: 100%; height: auto; }
/* Metric knowledge (METRIC_KNOWLEDGE_ENABLED): the collapsed "What it is" tap in a device metric sheet. */
.j2-scrim details.j2-know { margin: 12px 0; }
.j2-scrim .j2-know-body { padding: 4px 0 14px; color: var(--j2-ink-2); font-size: 15px; line-height: 1.45; }
.j2-scrim .j2-know-body p { margin: 0 0 10px; }
.j2-scrim .j2-know-body ul, .j2-scrim .j2-know-body ol { margin: 0 0 10px; padding-left: 18px; }
.j2-scrim .j2-know-body li { margin: 0 0 6px; }
.j2-scrim .j2-know-h { margin: 14px 0 6px; font: 12px var(--j2-label); letter-spacing: .1em; text-transform: uppercase; color: var(--j2-ink); }
.j2-scrim .j2-know-src { font-size: 12.5px; color: var(--j2-ink-3); }
.j2-scrim .j2-know-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.j2-invite { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--j2-ink-2); border: 1px dashed var(--j2-hair); border-radius: 16px; padding: 6px 12px; min-height: 56px; }
.j2-invite span { flex: 1; }

/* My Plan */
.j2-ring { flex: 0 0 64px; }
.j2-ring-bg { stroke: var(--j2-soft); }
.j2-ring-fg { stroke: var(--j2-primary); }
.j2-ring-t { font: 20px var(--j2-display); fill: var(--j2-ink); }
.j2-check { display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%; background: none; border: 0; border-top: 1px solid var(--j2-line); text-align: left; cursor: pointer; padding: 8px 0; }
.j2-list > .j2-check:first-child { border-top: 0; }
.j2-check b { font-weight: 400; font-size: 16px; }
.j2-check .j2-grow span { font-size: 12.5px; color: var(--j2-ink-3); }
.j2-box { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--j2-sand); flex: 0 0 auto; display: grid; place-items: center; }
.j2-check.on .j2-box { background: var(--j2-primary); border-color: var(--j2-primary); }
.j2-box.j2-box-none { visibility: hidden; } /* hotfix r4hw: no water target, nothing to tick; the row keeps its alignment */
.j2-wset .j2-act { color: var(--j2-sand-text); }
.j2-check.on .j2-box::after { content: ""; width: 8px; height: 13px; border: solid var(--j2-on-primary); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.j2-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.j2-week div { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 10px var(--j2-label); letter-spacing: .06em; color: var(--j2-ink-3); }
.j2-week i { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--j2-sand); display: grid; place-items: center; font: 14px var(--j2-display); font-style: normal; color: var(--j2-ink); }
.j2-week i.full { background: var(--j2-primary); border-color: var(--j2-primary); color: var(--j2-on-primary); }
.j2-week i.part { background: var(--j2-span); }
.j2-week i.future { opacity: .55; }
.j2-week i.today { outline: 2px solid var(--j2-primary); outline-offset: 2px; }
.j2-files { flex-direction: row; min-height: 56px; padding: 0 16px; }
.j2-chev { font: 18px var(--j2-label); color: var(--j2-sand-text); }

/* Popups */
.j2-scrim { position: fixed; inset: 0; background: var(--j2-scrim); z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; font: 17px/1.45 var(--font-body); }
.j2-sheet { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; background: var(--j2-glass-strong); border-top: 1px solid var(--j2-hair); border-radius: 28px 28px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: var(--j2-ink); }
html[data-theme="night"] .j2-sheet, html[data-theme="dark"] .j2-sheet { background: linear-gradient(165deg, #2f2a25, #1f1c19 70%); }
.j2-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--j2-line); margin: 0 auto 2px; }
.j2-scrim .j2-x .j2-close:focus:not(:focus-visible) { outline: none; box-shadow: none; } /* sheets focus Close on open: no heavy ring for touch/mouse */
.j2-scrim .j2-x .j2-close:focus-visible { outline: 2px solid var(--j2-primary); outline-offset: 2px; border-radius: 50%; box-shadow: none; }
.j2-x { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.j2-grp { font: 10px var(--j2-label); letter-spacing: .14em; text-transform: uppercase; color: var(--j2-sand-text); margin-top: 6px; }
.j2-opt { display: flex; align-items: center; gap: 10px; min-height: 52px; width: 100%; border-radius: 14px; border: 1px solid var(--j2-line); background: var(--j2-glass-strong); padding: 8px 12px; cursor: pointer; text-align: left; }
html[data-theme="night"] .j2-opt, html[data-theme="dark"] .j2-opt { background: rgba(255,236,214,.04); }
.j2-opt[aria-pressed="true"] { border: 2px solid var(--j2-primary); }
.j2-opt b { font-weight: 400; font-size: 16px; }
.j2-opt .j2-grow span { font-size: 12px; color: var(--j2-ink-3); }
.j2-opt[disabled] { opacity: .45; cursor: default; }
.j2-form { display: flex; flex-direction: column; gap: 12px; }
.j2-field { display: flex; flex-direction: column; gap: 6px; font: 11px var(--j2-label); letter-spacing: .1em; text-transform: uppercase; color: var(--j2-ink-3); }
.j2-in { display: flex; align-items: center; gap: 8px; border: 1px solid var(--j2-line); border-radius: 14px; background: var(--j2-paper); padding: 0 12px; min-height: 52px; }
.j2-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--j2-ink); font: 22px var(--j2-display); letter-spacing: .03em; min-height: 48px; outline: none; }
.j2-in i { font: 13px var(--font-body); font-style: normal; color: var(--j2-ink-3); text-transform: none; letter-spacing: 0; }
.j2-err { min-height: 18px; font-size: 13px; color: var(--j2-warn); }
.j2-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--j2-ink); color: var(--j2-paper); font: 14px var(--font-body); padding: 10px 14px; border-radius: 12px; z-index: 2147483001; }
@media (prefers-reduced-motion: reduce) { .j2-page *, .j2-scrim * { transition: none !important; animation: none !important; } }

.j2-um { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--j2-grid); flex: 0 0 auto; }
.j2-umb { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--j2-fill); opacity: .45; }
.j2-umd { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--j2-ink); box-shadow: 0 0 0 1.5px var(--j2-glass-strong); }
/* Sleep stages: deep, REM, light, awake. Bronze / charcoal / sand only; night swaps to light-on-dark. */
.j2-theme { --j2-s0: #2f2a25; --j2-s1: #7A6247; --j2-s2: #c4aa8e; --j2-s3: #e7dccf; }
html[data-theme="night"] .j2-theme, html[data-theme="dark"] .j2-theme { --j2-s0: #f4efe8; --j2-s1: #d8bb9a; --j2-s2: #9b8269; --j2-s3: #5b4f43; }
.j2-stages { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--j2-line); }
.j2-stbar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; }
.j2-stbar i { display: block; height: 100%; min-width: 2px; }
i.j2-st0 { background: var(--j2-s0); } i.j2-st1 { background: var(--j2-s1); } i.j2-st2 { background: var(--j2-s2); } i.j2-st3 { background: var(--j2-s3); }
.j2-chart rect.j2-st0 { fill: var(--j2-s0); } .j2-chart rect.j2-st1 { fill: var(--j2-s1); } .j2-chart rect.j2-st2 { fill: var(--j2-s2); } .j2-chart rect.j2-st3 { fill: var(--j2-s3); }
.j2-stleg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
@media (min-width: 600px) { .j2-stleg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.j2-stleg span { display: grid; grid-template-columns: 10px 1fr; column-gap: 7px; align-items: center; min-width: 0; }
.j2-stleg span > i { width: 10px; height: 10px; border-radius: 3px; grid-row: span 2; }
.j2-stleg em { font: 10px/1.2 var(--j2-label); letter-spacing: .06em; text-transform: uppercase; font-style: normal; color: var(--j2-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j2-stleg b { font: 20px/1.05 var(--j2-display); font-weight: 400; color: var(--j2-ink); }
.j2-stleg b small { font: 11px var(--font-body); color: var(--j2-ink-3); margin-left: 3px; }
.j2-plot.j2-pstage { height: 96px; }
@media (min-width: 900px) { .j2-plot.j2-pstage { height: 120px; } }
.j2-sw.j2-st0, .j2-sw.j2-st1, .j2-sw.j2-st2, .j2-sw.j2-st3 { width: 8px; height: 8px; border-radius: 2px; }
.j2-sw.j2-st0 { background: var(--j2-s0); } .j2-sw.j2-st1 { background: var(--j2-s1); } .j2-sw.j2-st2 { background: var(--j2-s2); } .j2-sw.j2-st3 { background: var(--j2-s3); }
/* ---- r3e Journey tabs (Jake, Nov 16; DECISIONS.md): Overview · Labs · Trends with Train's segmented menu (train-v2.css
   .tv2-seg), LOG on the same row. The row's height is reserved here, so it never moves while train-v2.css loads. */
.j2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.j2-tabs { display: flex; align-items: stretch; gap: 8px; min-height: 52px; background: none; }
.j2-tabs .tv2-seg { flex: 1 1 auto; min-width: 0; min-height: 52px; box-sizing: border-box; }
.j2-tabs .j2-logbtn { flex: 0 0 auto; min-height: 52px; min-width: 76px; }
.j2-tabpanel { display: flex; flex-direction: column; gap: inherit; min-width: 0; }
.j2-wkstrip { display: flex; gap: 6px; margin-left: auto; }
.j2-wkstrip span { display: flex; flex-direction: column; align-items: center; gap: 3px; font: 10px var(--j2-label); color: var(--j2-ink-3); }
.j2-wkstrip i { width: 22px; height: 22px; border-radius: 7px; box-sizing: border-box; border: 1.5px solid var(--j2-hair); }
.j2-wkstrip i.on { background: var(--j2-primary); border-color: var(--j2-primary); }
.j2-wkstrip i.today { box-shadow: 0 0 0 2px var(--j2-paper), 0 0 0 3.5px var(--j2-primary); }
.j2-wkstrip i.up { opacity: .55; }
@media (max-width: 899px) { .j2-wkstrip { margin-left: 0; width: 100%; justify-content: space-between; } }
/* ASPN Aware (ASPN_AWARE_ENABLED): option A on desktop (the figure between the four cards), the body card on phone.
   Status colours only: red outside the range, green inside (Jake, Nov 16: status, never a theme). */
.j2-theme { --j2-ok: #3f7d4e; }
html[data-theme="night"] .j2-theme, html[data-theme="dark"] .j2-theme { --j2-ok: #7fc08d; }
.j2-aware { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 24px; background: var(--j2-glass); border: 1px solid var(--j2-hair); box-shadow: var(--j2-shadow); min-width: 0; }
/* "ASPN Aware" stands alone, no subtitle (Jake, Nov 16). */
.j2-aware-fig { position: relative; height: 380px; border-radius: 18px; background: radial-gradient(ellipse at 50% 42%, var(--j2-span), transparent 68%), var(--j2-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; contain: strict; }
.j2-aware-labs .j2-aware-fig { height: 520px; }
.j2-aware-full { height: min(62vh, 560px); }
.j2-figleg { display: flex; justify-content: center; gap: 16px; font: 500 12px var(--j2-num); color: var(--j2-ink-2); }
.j2-figleg span { display: inline-flex; align-items: center; gap: 6px; }
.j2-figleg i { width: 9px; height: 9px; border-radius: 50%; }
.j2-figleg i.out { background: var(--j2-warn); } .j2-figleg i.in { background: var(--j2-ok); }
.j2-aware-note { margin: 0; text-align: center; font: 13.5px/1.45 var(--j2-num); color: var(--j2-ink-2); }
.j2-bodycard { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; padding: 12px 16px 12px 12px; border-radius: 22px; background: var(--j2-glass); border: 1px solid var(--j2-hair); box-shadow: var(--j2-shadow); color: var(--j2-ink); font: inherit; min-height: 112px; box-sizing: border-box; }
.j2-bodycard .j2-grow > span:last-child { display: block; margin-top: 6px; font: 13px/1.35 var(--j2-num); color: var(--j2-ink-2); }
.j2-thumb { flex: 0 0 auto; width: 64px; height: 88px; border-radius: 14px; background: var(--j2-soft); display: flex; align-items: center; justify-content: center; padding: 4px; box-sizing: border-box; }
.j2-labsgrid { display: flex; flex-direction: column; gap: inherit; }
.j2-labscol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.j2-guide { width: 100%; }
/* Phone: the figure is never in-line; the body card opens it full screen. Desktop: the slot, never the card. */
@media (max-width: 1023px) { .j2-labsgrid > .j2-aware { display: none; } }
@media (min-width: 1024px) { .j2-phone { display: none !important; } .j2-labsgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; } }
.j2-scrim.j2-pop-full .j2-sheet { height: 100%; max-height: 100%; border-radius: 0; }
/* r4c: the full ASPN Aware view, opened from the Overview card (expand button or the figure) or the phone card. */
.j2-aware-hd { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.j2-aware-exp { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; color: var(--j2-ink-2); background: transparent; border: 1px solid var(--j2-hair); padding: 0; }
.j2-aware-exp:hover { color: var(--j2-ink); border-color: var(--j2-ink-2); }
.j2-aware-exp:focus-visible { outline: 2px solid var(--j2-bronze, #b08a5a); outline-offset: 2px; }
@media (min-width: 1024px) { .j2-scrim.j2-pop-aware .j2-sheet { max-width: min(1080px, 94vw); } .j2-pop-aware .j2-aware-full { height: min(72vh, 760px); } }
/* The metric picker's group headings; the phone body card (Labs) leads its tab. */
.j2-grp { margin: 4px 2px -4px; }
.j2-tabpanel > .j2-bodycard.j2-phone { order: -1; }
/* Join ASPN Aware (r3e): the upload entry under the empty figure and beside the marker guide; fixed in the markup. */
.j2-aware-add { align-self: center; }
.j2-addpdf { align-self: flex-start; }
.j2-devempty .j2-invite { margin: 0; }
/* Unverified uploads (r3e, Jake Nov 16): the app's warning treatment, prominent and never dismissible. */
.j2-unv { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--j2-warn); background: color-mix(in srgb, var(--j2-warn) 12%, var(--j2-paper)); color: var(--j2-ink); }
.j2-unv-ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--j2-warn); color: var(--j2-paper); font: 16px/1 var(--j2-label); margin-top: 1px; }
.j2-unv b { display: block; font: 15px/1.25 var(--j2-label); letter-spacing: .02em; color: var(--j2-warn); }
.j2-unv p { margin: 6px 0 0; font: 14px/1.45 var(--j2-num); color: var(--j2-ink); }
.j2-unv-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.j2-unv-compact { padding: 12px 14px; }
.j2-unv-compact p { font-size: 13px; }
/* r4 (art review r4): on Overview the notice is a slim warning strip (same words, same actions, never dismissible):
   a red edge and tint, small type, the actions inline, so it qualifies the figure without dominating the screen. */
.j2-ovunv .j2-unv, .j2-ovaw .j2-unv { gap: 10px; padding: 10px 12px; border-radius: 14px; border-width: 1px; border-left-width: 4px; }
.j2-ovunv .j2-unv .j2-unv-ic, .j2-ovaw .j2-unv .j2-unv-ic { width: 20px; height: 20px; font-size: 13px; }
.j2-ovunv .j2-unv b, .j2-ovaw .j2-unv b { font-size: 13px; }
.j2-ovunv .j2-unv p, .j2-ovaw .j2-unv p { margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--j2-ink-2); }
.j2-ovunv .j2-unv-act, .j2-ovaw .j2-unv-act { margin-top: 8px; gap: 6px; }
.j2-ovunv .j2-unv-act .j2-btn, .j2-ovaw .j2-unv-act .j2-btn { padding: 0 14px; }
@media (min-width: 1024px) { .j2-ovunv .j2-unv-act .j2-btn, .j2-ovaw .j2-unv-act .j2-btn { min-height: 36px; } } /* pointer; phone keeps the 44 px target */
/* Phone: one row of actions; the secondary action reads as a link (same 44 px target). */
.j2-unvtag { color: var(--j2-warn) !important; border-color: var(--j2-warn) !important; }
.j2-figleg i.unv { background: none; border: 1.5px dashed var(--j2-ink-3); box-sizing: border-box; }
.j2-cmppdf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.j2-pdfpane { min-height: 60vh; border-radius: 14px; overflow: hidden; background: var(--j2-soft); }
.j2-pdf { width: 100%; height: 100%; min-height: 60vh; border: 0; display: block; }
@media (min-width: 900px) { .j2-cmppdf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; } .j2-scrim.j2-pop-cmp .j2-sheet { max-width: 1200px; } }
.j2-note { width: 100%; min-height: 96px; margin-bottom: 10px; }
.j2-note { box-sizing: border-box; border: 1px solid var(--j2-hair); border-radius: 14px; padding: 10px 12px; background: var(--j2-paper); color: var(--j2-ink); font: 15px/1.4 var(--j2-num); resize: vertical; }
/* Manual lab entry (r3e): one fieldset per result; the marker search is a keyboard-first combobox. */
.j2-addrow { display: flex; flex-wrap: wrap; gap: 8px; }
.j2-manual .j2-mrows { display: flex; flex-direction: column; gap: 12px; }
.j2-mrow-in { border: 1px solid var(--j2-hair); border-radius: 18px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.j2-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.j2-mrange .j2-tiny { display: block; margin: 2px 0 4px; }
.j2-combo { position: relative; }
.j2-mlist { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; margin-top: 4px; max-height: 260px; overflow: auto; border-radius: 14px; border: 1px solid var(--j2-hair); background: var(--j2-paper); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }
.j2-mlist [role="option"] { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; min-height: 44px; box-sizing: border-box; cursor: pointer; font: 15px var(--j2-num); color: var(--j2-ink); }
.j2-mlist [role="option"] small { color: var(--j2-ink-3); font-size: 12px; }
.j2-mlist [role="option"][aria-selected="true"] { background: var(--j2-soft); }
.j2-mrm { align-self: flex-start; }
.j2-manual select { width: 100%; min-height: 44px; border: 0; background: transparent; color: var(--j2-ink); font: inherit; }
.j2-unread .j2-grow > p:first-child { margin-top: 2px; font-weight: 500; }
.j2-manual [data-f="search"] { font: 17px var(--j2-num) !important; letter-spacing: 0 !important; }
/* r3f desktop planner on My Plan (Jake approved the concept, Nov 16): from 1024 px the week shows as 7 day columns with
   each day's planned sessions and calls; the phone keeps the day circles. */
.j2-planner { display: none; }
@media (min-width: 1024px) {
  .j2-theme .j2-card .j2-week { display: none; }
  .j2-theme .j2-planner { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .j2-pl-day { min-height: 116px; border: 1px solid var(--j2-hair, var(--hair)); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .j2-pl-day.today { border-color: var(--j2-sand, var(--sand)); background: var(--sand-soft); }
  .j2-pl-day.future .j2-pl-hd { opacity: .75; }
  .j2-pl-hd { font: 10px/1.2 var(--j2-label); letter-spacing: .08em; text-transform: uppercase; color: var(--j2-ink-3, var(--ink-3)); }
  .j2-pl-it { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; box-sizing: border-box; overflow: hidden; font-size: 12.5px; line-height: 1.25; padding: 6px 8px; border-radius: 9px; background: var(--glass); border: 1px solid var(--j2-hair, var(--hair)); }
  .j2-pl-it > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; hyphens: none; }
  /* r4b (Jake, Nov 16: "suboptimal"): the week card fills its height (no void), the days stretch, Plan my week is a
     normal secondary button at the card's foot, the zero ring keeps a visible track, the ticks note is a quiet footnote,
     and Ask Atlas is one compact row (label, chips, a short field) with the disclaimer as one footnote line. */
  .app[data-route=plan] main#view .j2-page > section.j2-card:has(.j2-planner) { display: flex; flex-direction: column; }
  .j2-theme .j2-card .j2-planner { flex: 1 1 auto; align-items: stretch; }
  .j2-pl-day { min-height: 140px; min-width: 0; overflow: hidden; }
  /* The week gets the wider half of the top row so each day column is wide enough for a session name and a call time. */
  .app[data-route=plan] main#view .j2-page { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr) !important; }
  .j2-theme .j2-card .j2-planner { gap: 6px; }
  .j2-pl-day { padding: 8px 6px; }
  .j2-pl-it { padding: 5px 6px; gap: 4px; }
  .j2-pl-it svg { width: 13px; height: 13px; flex: 0 0 auto; }
  .j2-theme .j2-card:has(.j2-planner) .pw-entry { align-self: flex-end; width: auto !important; min-height: 40px; padding: 0 16px; margin-top: 10px; font-size: 12px; }
  .j2-theme .j2-ring-bg { stroke: var(--j2-hair, var(--hair)); opacity: 1; }
  .j2-theme .j2-card > .j2-tiny { font-size: 12px; color: var(--j2-ink-3, var(--ink-3)); margin-top: 12px; }
  .app[data-route=plan] main#view .j2-page > .ask-card { display: grid; grid-template-columns: auto 1fr minmax(220px, 300px); align-items: center; gap: 10px 16px; padding: 14px 20px; }
  .app[data-route=plan] main#view .j2-page > .ask-card .ask-chips { margin: 0; flex-wrap: wrap; }
  .app[data-route=plan] main#view .j2-page > .ask-card .ask-own { margin: 0; }
  .app[data-route=plan] main#view .j2-page > .ask-card .ask-note { grid-column: 1 / -1; margin: 0; font-size: 12px; }
  .j2-pl-it svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
  /* r4b3 (Jake's r4b2 shot: "Low...", "Upp..." and a tall empty today box): a session name is never cut; it wraps at a
     space to a second line only when the column is genuinely too narrow. Day columns and today's outline hug their
     content; the card keeps the Today card's height with Plan my week at its foot. */
  .j2-pl-day { padding: 8px 4px; }
  .j2-pl-it { align-items: flex-start; overflow: visible; padding: 5px 4px; gap: 3px; }
  .j2-pl-it svg { margin-top: 1px; }
  .j2-pl-it > span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
  .j2-theme .j2-card .j2-planner { flex: 0 0 auto; align-items: start; }
  .j2-pl-day { min-height: 0; overflow: visible; }
  .j2-theme .j2-card:has(.j2-planner) .pw-entry { margin-top: auto; }
  .j2-theme .j2-card:has(.j2-planner) > .j2-muted { margin-bottom: 10px; }
}
/* r4c: the ASPN Aware panel (the prototype's panel): tiles, chips, region cards, Beyond the body, Draws. Status colours only. */
.j2-apanel { display: flex; flex-direction: column; gap: 14px; }
.j2-aphead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.j2-aptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.j2-aptile { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--j2-hair); background: var(--j2-soft); min-width: 0; }
.j2-aptile b { display: block; font: 28px/1 var(--j2-display); letter-spacing: .02em; color: var(--j2-ink); font-variant-numeric: tabular-nums; }
.j2-aptile span { display: flex; align-items: center; gap: 6px; margin-top: 5px; font: 12px/1.2 var(--j2-num); color: var(--j2-ink-2); }
.j2-apdot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; background: var(--j2-ok); }
.j2-apdot.out { background: var(--j2-warn); } .j2-apdot.none { background: transparent; box-shadow: inset 0 0 0 1.2px var(--j2-sand); }
.j2-apchips { display: flex; flex-wrap: wrap; gap: 6px; }
.j2-apchip { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; }
.j2-apchip[aria-pressed="true"] { border-color: var(--j2-primary); box-shadow: inset 0 0 0 1px var(--j2-primary); }
.j2-apgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.j2-apcard { display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--j2-hair); background: var(--j2-soft); color: var(--j2-ink); min-width: 0; font: inherit; }
.j2-apcard:hover, .j2-apcard.linked, .j2-apchip.linked { border-color: var(--j2-sand); }
.j2-aptop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.j2-aptop b { font: 19px/1 var(--j2-display); letter-spacing: .04em; text-transform: uppercase; }
.j2-apn { font: 12px var(--j2-num); color: var(--j2-ink-3); }
.j2-apst { display: flex; align-items: center; gap: 8px; font: 12.5px/1.3 var(--j2-num); color: var(--j2-ink-2); min-width: 0; }
.j2-apst .j2-sysdots { margin-left: 0; justify-content: flex-start; max-width: 90px; }
.j2-apbeyond { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.j2-apbeyond::after { content: ""; flex: 1; height: 1px; background: var(--j2-hair); }
.j2-aprow { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.j2-apback { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; border: 1px solid var(--j2-hair); background: transparent; color: var(--j2-ink); padding: 0; }
.j2-aptitle { display: block; font: 26px/1 var(--j2-display); letter-spacing: .04em; text-transform: uppercase; color: var(--j2-ink); margin-bottom: 4px; }
.j2-apspark { flex: none; margin: 0 8px; }
.j2-apspark .j2-mline { fill: none; stroke: var(--j2-sand); stroke-width: 1.3; }
.j2-apdraws summary { cursor: pointer; list-style: none; padding: 6px 0; }
.j2-apdraws summary::-webkit-details-marker { display: none; }
.j2-apdraws[open] summary { margin-bottom: 8px; }
.j2-apanel .j2-apchip:focus-visible, .j2-apcard:focus-visible, .j2-apback:focus-visible { outline: 2px solid var(--j2-primary); outline-offset: 2px; }
.j2-apsheet { margin-top: 4px; }
.j2-awgrid { display: flex; flex-direction: column; gap: 14px; } .j2-awcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 1024px) { .j2-awgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; } .j2-awgrid > .j2-awcol:first-child { position: sticky; top: 0; } .j2-pop-aware .j2-aware-full { height: min(72vh, 760px); } .j2-pop-aware .j2-apsheet { margin-top: 0; } }
.j2-apanel .j2-sysdots i { background: var(--j2-ok); } .j2-apanel .j2-sysdots i.out { background: var(--j2-warn); } .j2-apanel .j2-sysdots i.none { background: transparent; box-shadow: inset 0 0 0 1.2px var(--j2-sand); }
/* r4c: the phone body card holds the shared still (aspn-aware-still.js, size md: 84x126) */
.j2-bodycard .j2-thumb { width: 84px; height: 126px; padding: 0; background: none; }
/* r4b Labs page grid (Jake, Nov 16): the figure column is sticky at viewport height under the header and the
   panel column scrolls beside it, so there is never a void beside a long panel. The figure and panel content
   belong to aspn-aware.js; this sets only the columns around the journey-v2.js mount. */
@media (min-width: 1024px) {
  .j2-labsgrid { align-items: start; }
  .j2-labsgrid > .j2-aware { position: sticky; top: var(--j2-stick, 88px); height: var(--j2-stick-h, calc(100vh - 112px)); box-sizing: border-box; }
  .j2-labsgrid > .j2-aware > .j2-aware-fig, .j2-aware-labs .j2-aware-fig { flex: 1 1 auto; height: auto; min-height: 420px; }
}
/* r4b (Jake, Nov 16, phone marker sheet "too flat and hard to differentiate each section"): every marker and device
   metric sheet is the same stack of quiet surfaces: hero, where you sit, trend, what this marker is, all draws. */
.j2-sheet { gap: 12px; }
.j2-ssec { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--j2-soft); border: 1px solid var(--j2-hair); min-width: 0; }
html[data-theme="night"] .j2-ssec, html[data-theme="dark"] .j2-ssec { background: rgba(255,248,238,.045); }
.j2-ssec > .j2-eye { margin: 0; }
.j2-ssec-hero .j2-labhero { padding-bottom: 0; }
.j2-ssec-edu { padding: 0 16px; }
.j2-sheet .j2-ssec .j2-cv-lab .j2-strip { height: 0; } /* the scrub readout floats over the plot's top (the Trends rule) */
.j2-sheet .j2-ssec .j2-plot.j2-plab { height: 216px; }
@media (min-width: 900px) { .j2-sheet .j2-ssec .j2-plot.j2-plab { height: 236px; } }
/* r4b: the standard sheet close, an icon button: a 44 px target around a quiet 36 px circle. */
.j2-close { flex: 0 0 auto; width: 44px; height: 44px; margin: -4px -6px -4px 0; padding: 0; display: inline-grid; place-items: center; border: 0; background: none; color: var(--j2-ink-2); cursor: pointer; font: 22px/1 var(--j2-num); -webkit-tap-highlight-color: transparent; }
.j2-close::before { content: ""; grid-area: 1 / 1; width: 36px; height: 36px; border-radius: 50%; background: var(--j2-soft); }
.j2-close > * { grid-area: 1 / 1; position: relative; }
.j2-close:hover { color: var(--j2-ink); }
/* r4b (Jake, Nov 16, with the approved "Green is inside the report range" footnote): lab values inside their report
   range use the green status token (the Aware figure's): chart points, the legend key, the status line, the range
   bars, the ring and the system dots. Red stays outside; hollow stays no range or awaiting review. */
.j2-chart .j2-labdot.j2-in, .j2-labdot.in { fill: var(--j2-ok); }
.j2-legend i.j2-kd.j2-kd-in { background: var(--j2-ok); }
.j2-labst.in { color: var(--j2-ok); }
.j2-rb-dot.in { fill: var(--j2-ok); }
.j2-labring .j2-ring-in { stroke: var(--j2-ok); }
.j2-sysdots i.in { background: var(--j2-ok); }
.j2-sheet:focus { outline: none; } /* the sheet takes focus on open (r4b); its controls keep their own rings */

/* r4b density (Jake approved): no borders on rows inside cards; status as a dot and text, not a dashed pill. */
.j2-card .j2-li, .j2-card .j2-check, .j2-apanel .j2-li { border-top-color: transparent !important; }
.j2-pend, .j2-page .j2-pend { border: 0 !important; padding: 0 !important; background: none !important; }
/* No bordered calendar cells (r4b density): the week planner's days sit on the card; today keeps its tint. */
.j2-pl-day:not(.today) { border-color: transparent !important; }
/* r4b density (Jake approved): the Ask card's care note is part of the page's one footnote on Journey and My Plan. */
.j2-page .ask-card .ask-note { display: none !important; }
/* r4b phone compact (Jake picked direction A, Nov 16 "Too crammed"). Phones only (under 1024 px): LOG is a "+" button
   named "Log". (Overview's rows are Journey A's, below.) */
.j2-log-i { display: none; }
@media (max-width: 1023px) {
  .j2-tabs .j2-logbtn { min-width: 52px; width: 52px; min-height: 52px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
  .j2-tabs .j2-logbtn .j2-log-t { display: none; }
  .j2-tabs .j2-logbtn .j2-log-i { display: block; }
}
/* r4b-aware-proto: the ASPN Aware view and panel at the prototype's standard (Jake, Nov 16: the prototype is the minimum bar). */
.j2-aphead { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.j2-aptitlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.j2-apbig { margin: 0; font: 30px/1 var(--j2-display); letter-spacing: .04em; text-transform: uppercase; color: var(--j2-ink); }
.j2-apdate { font: 12.5px var(--j2-num); color: var(--j2-ink-2); }
.j2-aptile b { font-size: 26px; }
.j2-apchip { min-height: 32px; padding: 0 11px; font: 500 12.5px var(--j2-num); letter-spacing: 0; text-transform: none; color: var(--j2-ink-2); }
.j2-apchip[aria-pressed="true"] { background: var(--j2-primary); border-color: var(--j2-primary); color: var(--j2-on-primary); box-shadow: none; }
.j2-apchip[aria-pressed="true"] .j2-apdot.in { box-shadow: 0 0 0 1.5px rgba(27, 22, 18, .45); }
.j2-aptitle { margin: 2px 0 0; font: 30px/1 var(--j2-display); letter-spacing: .05em; text-transform: uppercase; color: var(--j2-ink); }
.j2-apsub { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font: 12.5px var(--j2-num); color: var(--j2-ink-2); }
.j2-aprow { align-items: flex-start; }
.j2-aplist { display: flex; flex-direction: column; gap: 6px; }
.j2-apmk { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(84px, auto); align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--j2-hair); background: var(--j2-soft); color: var(--j2-ink); font: inherit; }
.j2-apmk:hover, .j2-apmk.linked { border-color: var(--j2-sand); }
.j2-apmk:focus-visible { outline: 2px solid var(--j2-primary); outline-offset: 2px; }
.j2-apmk.j2-nodata { grid-template-columns: minmax(0, 1fr) auto; }
.j2-apmk-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.j2-apmk-l b { font: 500 14px/1.25 var(--j2-num); color: var(--j2-ink); }
.j2-apmk-l span { font: 11.5px/1.3 var(--j2-num); color: var(--j2-ink-3); font-variant-numeric: tabular-nums; }
.j2-apmk-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.j2-apmk-v { font: 600 18px/1 var(--j2-num); color: var(--j2-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.j2-apmk-v i { font: 400 11px var(--j2-num); color: var(--j2-ink-3); margin-left: 4px; font-style: normal; }
.j2-appill { display: inline-flex; align-items: center; font: 500 11px var(--j2-num); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.j2-appill.in { color: var(--j2-ok); background: color-mix(in srgb, var(--j2-ok) 12%, transparent); }
.j2-appill.out { color: var(--j2-warn); background: color-mix(in srgb, var(--j2-warn) 14%, transparent); }
.j2-apmk-r .j2-pend { margin: 0; }
.j2-apspark { display: block; width: 92px; height: 30px; margin: 0; }
.j2-spband { fill: color-mix(in srgb, var(--j2-sand) 12%, transparent); }
.j2-spline { fill: none; stroke: color-mix(in srgb, var(--j2-ink) 45%, transparent); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.j2-spd.in { fill: var(--j2-ok); } .j2-spd.out { fill: var(--j2-warn); } .j2-spd.none { fill: var(--j2-sand); } .j2-spd.wait { fill: none; stroke: var(--j2-sand); stroke-width: 1.2; }
.j2-spd:not(.last) { opacity: .75; } .j2-spd.last { stroke: var(--j2-paper); stroke-width: 1.5; }
.j2-apfoot { margin: 0; padding-top: 12px; border-top: 1px solid var(--j2-hair); font: 11.5px/1.45 var(--j2-num); color: var(--j2-ink-3); }
.j2-apbody { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.j2-apmarker .j2-ssec, .j2-apmarker .j2-labhero { margin-top: 10px; }

/* The full view: the prototype's stage (brand, figure large on its lit plinth, hint and Reset view) beside the panel. */
.j2-scrim.j2-pop-aware .j2-sheet { max-width: none; width: 100%; height: 100%; max-height: 100%; border-radius: 0; padding: 6px 24px 20px; overflow-y: auto;
  background: radial-gradient(ellipse 46% 60% at 34% 52%, rgba(176, 138, 90, .20), transparent 70%), radial-gradient(ellipse 60% 50% at 90% 0%, rgba(196, 152, 104, .10), transparent 70%), linear-gradient(160deg, #201b17 0%, #1a1714 55%, #15120f 100%); }
html:not([data-theme="night"]):not([data-theme="dark"]) .j2-scrim.j2-pop-aware .j2-sheet { background: radial-gradient(ellipse 46% 60% at 34% 52%, rgba(200, 160, 110, .20), transparent 70%), linear-gradient(160deg, #f6f0e7 0%, #efe6da 60%, #e9dfd1 100%); }
.j2-pop-aware .j2-x h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.j2-pop-aware .j2-x { justify-content: flex-end; }
.j2-pop-aware .j2-grab { display: none; }
.j2-awview { display: flex; flex-direction: column; gap: 16px; }
.j2-awstage { position: relative; display: flex; flex-direction: column; min-width: 0; }
.j2-awbrand { margin: 0 0 4px; font: 400 40px/0.9 var(--j2-display); letter-spacing: .04em; color: var(--j2-ink); text-transform: uppercase; pointer-events: none; }
.j2-awbrand span { color: var(--j2-sand-text, #d2ad7c); }
.j2-pop-aware .j2-aware-full { height: 62vh; min-height: 420px; background: transparent; border-radius: 24px; }
.j2-awfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 2px 0; }
.j2-awhint { font: 12px var(--j2-num); color: var(--j2-ink-3); }
.j2-awreset { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: 500 12.5px var(--j2-num); color: var(--j2-ink); background: var(--j2-glass); border: 1px solid var(--j2-hair); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.j2-awreset:focus-visible { outline: 2px solid var(--j2-primary); outline-offset: 2px; }
.j2-pop-aware .j2-apsheet { border-radius: 18px; }
@media (min-width: 1024px) {
  .j2-awview { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 20px; height: calc(100vh - 64px); }
  .j2-awstage { height: 100%; }
  .j2-awbrand { position: absolute; left: 8px; top: 4px; z-index: 2; font-size: 52px; }
  .j2-pop-aware .j2-aware-full { flex: 1 1 auto; height: auto; min-height: 0; }
  .j2-awfoot { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 2; padding: 0; }
  .j2-pop-aware .j2-apsheet { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
  .j2-pop-aware .j2-apsheet > .j2-aphead, .j2-pop-aware .j2-apsheet > .j2-aptiles, .j2-pop-aware .j2-apsheet > .j2-pend, .j2-pop-aware .j2-apsheet > .j2-unv, .j2-pop-aware .j2-apsheet > .j2-apchips, .j2-pop-aware .j2-apsheet > .j2-muted, .j2-pop-aware .j2-apsheet > .j2-addrow { margin-left: 24px; margin-right: 24px; }
  .j2-pop-aware .j2-apsheet > .j2-aphead { padding-top: 22px; }
  .j2-pop-aware .j2-apsheet > .j2-apchips { padding-bottom: 14px; border-bottom: 1px solid var(--j2-hair); margin-left: 0; margin-right: 0; padding-left: 24px; padding-right: 24px; }
  .j2-pop-aware .j2-apbody { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 0 24px; scrollbar-gutter: stable; }
  .j2-pop-aware .j2-apfoot { padding: 12px 24px 14px; }
}
.j2-apanel .j2-apbig { font: 30px/1 var(--j2-display); letter-spacing: .04em; }
.j2-apanel h4.j2-aptitle { font: 30px/1 var(--j2-display); letter-spacing: .05em; }
.j2-awreset { white-space: nowrap; flex: none; }
/* The prototype's overview grid and frame: the panel scrolls inside with a slim scrollbar; the stage has a thin gold frame. */
.j2-apbody { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--j2-sand) 35%, transparent) transparent; }
.j2-apbody::-webkit-scrollbar { width: 6px; } .j2-apbody::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--j2-sand) 35%, transparent); border-radius: 6px; }
/* r4b3 (Jake: "the prototype was much better"): the stage is full-bleed, as in the prototype: no inner card or frame
   around the figure, only the prototype's warm radial light behind it. The figure, plinth and markers fill it. */
.j2-pop-aware .j2-aware-full { border: 0; border-radius: 0; overflow: visible; background: radial-gradient(ellipse 42% 58% at 50% 46%, rgba(222, 190, 146, 0.11), rgba(222, 190, 146, 0.03) 55%, transparent 78%); }
html:not([data-theme="night"]):not([data-theme="dark"]) .j2-pop-aware .j2-aware-full, .j2-theme[data-theme="day"] .j2-pop-aware .j2-aware-full, .j2-pop-aware.j2-day .j2-aware-full { background: radial-gradient(ellipse 42% 58% at 50% 46%, rgba(176, 138, 90, 0.10), transparent 78%); }
.j2-apcard .j2-aptop b { font: 20px/1 var(--j2-display); letter-spacing: .05em; }
/* r4b-aware-proto polish (Nov 16): the prototype's status lines are neutral text; red and green live on dots and pills only. */
.j2-apanel .j2-outn { color: inherit; }
.j2-apst .j2-sysdots { flex: none; flex-wrap: nowrap; max-width: none; }
.j2-aptop b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j2-aptop .j2-apn { flex: none; }
.j2-aptile span { white-space: nowrap; }
@media (max-width: 520px) {
  /* Phone: the range stays on one line (a narrower sparkline gives the name column the room), titles fit beside their count, tiles fit one line. */
  .j2-apmk { grid-template-columns: minmax(0, 1fr) 60px auto; gap: 10px; padding: 12px; }
  .j2-apmk .j2-apspark { width: 60px; height: 26px; }
  .j2-apmk-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .j2-apcard { padding: 12px; }
  .j2-apcard .j2-aptop b { font-size: 17px; letter-spacing: .03em; }
  .j2-aptiles { gap: 8px; }
  .j2-aptile { padding: 10px; }
  .j2-aptile span { font-size: 11px; gap: 5px; }
}
/* r4b-aware-dismiss: the unverified notice's X (44px target, top right) and its fold-away. */
.j2-unv.j2-unv-x { position: relative; }
.j2-unv.j2-unv-x > .j2-grow { padding-right: 30px; }
.j2-unvx { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--j2-ink-2); cursor: pointer; }
.j2-unvx svg { width: 18px; height: 18px; }
.j2-unvx:hover { color: var(--j2-ink); }
.j2-unvx:focus-visible { outline: 2px solid var(--j2-primary); outline-offset: -4px; }
.j2-unv-going { transition: height .26s ease, padding .26s ease, margin .26s ease, border-width .26s ease, opacity .18s ease; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .j2-unv-going { transition: none; } }
/* r4b-aware-dismiss: an unverified value's sheet always carries Compare with my PDF and Report a problem, in its hero. */
.j2-labunvact { margin-top: 12px; align-self: stretch; gap: 6px; }

/* r4b home fixes: the phone Aware "Your devices" card keeps its status on one line (tighter dots and gap, a smaller
   line on that card only), at 390 and 360. */
.j2-apcard[data-r="devices"] { padding-left: 10px; padding-right: 10px; }
.j2-apcard[data-r="devices"] .j2-apst { gap: 4px; font-size: 10.5px; letter-spacing: -.01em; white-space: nowrap; }
.j2-apcard[data-r="devices"] .j2-apst .j2-sysdots { gap: 1px; }
.j2-apcard[data-r="devices"] .j2-apst .j2-sysdots i, .j2-apcard[data-r="devices"] .j2-apdot { width: 4px; height: 4px; }
/* r4b-fix-aware: Draws expands like every other collapsible section (the "+" / "–" of details.j2-edu), in the full view too. */
.j2-apdraws > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.j2-apdraws > summary::after { content: "+"; font: 16px var(--j2-label); color: var(--j2-ink-2); }
.j2-apdraws[open] > summary::after { content: "–"; }
/* r4b3: the full ASPN Aware view is the stage itself: no sheet edge or shadow around it (the prototype's full-bleed page). */
.j2-scrim.j2-pop-aware .j2-sheet { border: 0; box-shadow: none; }
@media (max-width: 1023px) { .j2-pop-aware .j2-aware-full { margin: 0 -16px; } } /* phone: the figure on top, full width (the sheet's 16px gutter) */


/* hotfix-trends (Jake, Nov 17): stage legend labels wrap to their full approved text instead of an ellipsis; each day's dot
   on a daily chart is small. */
.j2-stleg em { white-space: normal; overflow: visible; text-overflow: clip; }
.j2-chart .j2-dot.j2-pt { stroke-width: 1; }

/* ---- Journey A (Jake, Nov 17: direction A, "Sections"; DECISIONS.md). Overview, Trends and the metric sheets as one
   system: the j2 tokens and glass only, Russo One labels, Bebas figures, the body face for the one read line (no serif, Nov 16); every chart is the
   one component (.j2-cv + panel()). Every box below has a fixed or content height known at first paint (rule 3). */
.j2-shd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.j2-shd > .j2-eye, .j2-shd > h3 { flex: 0 0 auto; }
.j2-per { font: 13px/1.3 var(--j2-num); color: var(--j2-ink-2); text-align: right; min-width: 0; }
.j2-shr { display: inline-flex; align-items: center; gap: 10px; }
.j2-ic { flex: 0 0 auto; }
/* Overview headline */
.j2-ovhero { gap: 14px; padding: 18px 20px; }
.j2-ovtop { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.j2-ovhero-wk .j2-wkin { background: none; border: 0; padding: 0; }
.j2-read { margin: 10px 0 0; font: 400 26px/1.3 var(--font-body); color: var(--j2-ink); max-width: 46ch; letter-spacing: -.005em; text-wrap: pretty; }
.j2-wkin { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--j2-line); background: var(--j2-glass-strong); min-width: 0; }
.j2-wkin .j2-wkstrip { margin: 0; width: 100%; justify-content: space-between; }
.j2-wkstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.j2-wkstats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.j2-wkstats b { font: 28px/1 var(--j2-display); font-weight: 400; color: var(--j2-ink); }
.j2-wkstats span { font: 12px/1.3 var(--j2-num); color: var(--j2-ink-2); }
.j2-wkcalm { margin: 0; font: 14px/1.4 var(--j2-num); color: var(--j2-ink-2); }
.j2-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.j2-score { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border-radius: 18px; border: 1px solid var(--j2-line); background: var(--j2-glass-strong); text-align: left; cursor: pointer; color: inherit; font: inherit; }
.j2-score small, .j2-row small { font: 11px/1.2 var(--j2-label); letter-spacing: .12em; text-transform: uppercase; color: var(--j2-sand-text); }
.j2-score > b { font: 48px/1 var(--j2-display); font-weight: 400; color: var(--j2-ink); white-space: nowrap; }
.j2-score > b i, .j2-rtx b i, .j2-slatest b i, .j2-sdir b i { font: 13px var(--j2-num); font-style: normal; color: var(--j2-ink-3); margin-left: 4px; letter-spacing: 0; }
.j2-score > span { font: 13px/1.3 var(--j2-num); color: var(--j2-ink-2); }
.j2-score .j2-um, .j2-sband .j2-um { height: 8px; border-radius: 4px; margin: 4px 0 2px; }
.j2-score .j2-umb, .j2-sband .j2-umb { border-radius: 4px; box-shadow: inset 0 0 0 1px var(--j2-hair); }
.j2-score .j2-umd, .j2-sband .j2-umd { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--j2-sa); box-shadow: 0 0 0 2px var(--j2-paper); }
/* Overview panels: ASPN Aware beside the device rows; equal heights, so no hole under either (art review) */
.j2-ovrow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.j2-ovrow-1 { grid-template-columns: minmax(0, 1fr); }
/* r4c MF1: the unverified notice spans the pair, under it (desktop); phones order Aware, notice, device. */
.j2-ovunv { grid-column: 1 / -1; min-width: 0; }
.j2-ovunv > .j2-unv { margin: 0; }
@media (max-width: 1023px) { .j2-ovrow > .j2-ovaw { order: 1; } .j2-ovrow > .j2-ovunv { order: 2; } .j2-ovrow > .j2-ovpanel:not(.j2-ovaw) { order: 3; } }
.j2-ovpanel { gap: 4px; padding: 14px 16px 8px; }
.j2-ovpanel > .j2-shd { padding-bottom: 6px; min-height: 32px; align-items: center; }
.j2-ovawb { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; }
.j2-ovfig { position: relative; height: 220px; min-width: 0; }
.j2-ovfig .j2-aware-fig { height: 100%; border-radius: 16px; }
.j2-ovstill { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 16px; background: var(--j2-soft); cursor: pointer; }
.j2-ovawtx { display: flex; flex-direction: column; min-width: 0; }
.j2-ovout { display: flex; align-items: baseline; gap: 8px; padding: 0 0 8px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; min-height: 44px; }
.j2-ovout b { font: 44px/1 var(--j2-display); font-weight: 400; color: var(--j2-ink); }
.j2-ovout span { font: 14px var(--j2-num); color: var(--j2-ink-2); }
.j2-ovmk { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; border-top: 1px solid var(--j2-line); background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.j2-ovmk > span { font: 14px/1.3 var(--j2-num); color: var(--j2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j2-ovmk .j2-val { font: 20px/1 var(--j2-display); white-space: nowrap; }
.j2-ovmk .j2-val i { font: 11px var(--j2-num); }
.j2-ovlink { align-self: flex-start; margin-top: auto; font: 11px var(--j2-label); letter-spacing: .1em; text-transform: uppercase; }
/* Rows: label and the period's figure, then the line (the one chart component, static) */
.j2-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 150px); align-items: center; gap: 12px; min-height: 62px; width: 100%; padding: 6px 0; border: 0; border-top: 1px solid var(--j2-line); background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.j2-rtx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.j2-row small { font: 13px/1.25 var(--j2-num); letter-spacing: 0; text-transform: none; color: var(--j2-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j2-rtx b { font: 28px/1 var(--j2-display); font-weight: 400; color: var(--j2-ink); white-space: nowrap; }
.j2-rtx b.none { font: 20px/1 var(--j2-num); color: var(--j2-ink-3); }
.j2-rtx em { font: 14px/1.3 var(--j2-num); font-style: normal; color: var(--j2-ink-2); }
.j2-cv.j2-cv-row { display: block; margin: 0; }
.j2-cv-row .j2-prow { display: block; position: relative; width: 100%; height: 34px; }
.j2-cv-row .j2-chart { display: block; overflow: visible; }
.j2-chart .j2-dot.j2-last { stroke-width: 1.5; }
.j2-li .j2-cv-row, .j2-apmk .j2-cv-row { flex: 0 0 72px; width: 72px; }
.j2-li .j2-cv-row .j2-prow, .j2-apmk .j2-cv-row .j2-prow { height: 24px; }
/* Trends sections */
.j2-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.j2-sec { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px 4px; border-radius: 18px; border: 1px solid var(--j2-line); background: var(--j2-glass-strong); }
.j2-sec > .j2-shd { padding-bottom: 6px; }
.j2-sec h3 { margin: 0; font: 11px/1.2 var(--j2-label); letter-spacing: .12em; text-transform: uppercase; color: var(--j2-sand-text); }
.j2-sec .j2-per { font-size: 12px; color: var(--j2-ink-3); }
.j2-page details.j2-more, .j2-scrim details.j2-more { border-top: 1px solid var(--j2-line); }
.j2-page details.j2-more > summary, .j2-scrim details.j2-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font: 11px var(--j2-label); letter-spacing: .1em; text-transform: uppercase; color: var(--j2-sand-text); }
.j2-page details.j2-more > summary::-webkit-details-marker, .j2-scrim details.j2-more > summary::-webkit-details-marker { display: none; }
.j2-page details.j2-more > summary::after, .j2-scrim details.j2-more > summary::after { content: none; }
.j2-more > summary em { font: 12px var(--j2-num); font-style: normal; letter-spacing: 0; color: var(--j2-ink-3); }
.j2-more > summary .j2-ic { margin-left: auto; color: var(--j2-ink-3); transition: transform .2s ease; }
.j2-more[open] > summary .j2-ic { transform: rotate(180deg); }
.j2-lastnight { margin: 4px 0 12px; padding-top: 12px; }
.j2-lastnight .j2-stleg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Metric sheet */
.j2-ssec-hero .j2-shero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: end; }
.j2-slatest { display: flex; flex-direction: column; gap: 4px; }
.j2-slatest b { font: 64px/.95 var(--j2-display); font-weight: 400; color: var(--j2-ink); white-space: nowrap; }
.j2-slatest b i { font-size: 15px; }
.j2-sstate { font: 14px/1.3 var(--j2-num); color: var(--j2-ink-2); }
.j2-sctx { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-bottom: 2px; }
.j2-sbandl { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font: 12px var(--j2-num); color: var(--j2-ink-3); }
.j2-sbandl em { font-style: normal; } .j2-sbandl b { font-weight: 500; color: var(--j2-ink-2); }
.j2-sdir { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 10px; border-top: 1px solid var(--j2-line); font: 13px/1.35 var(--j2-num); color: var(--j2-ink-2); }
.j2-sdir b { font: 24px/1 var(--j2-display); font-weight: 400; color: var(--j2-ink); }
.j2-sdir em { font-style: normal; }
.j2-ssec-edu.j2-ssec { padding: 16px 16px 0; gap: 8px; }
.j2-know-lead { min-height: 4.65em; font: 15px/1.55 var(--j2-num); color: var(--j2-ink); }
.j2-know-lead p { margin: 0; }
.j2-scrim .j2-more .j2-know-body { padding: 4px 0 14px; }
.j2-sfoot { margin: 0; }
/* Phone: one column, the same parts in the same order */
@media (max-width: 1023px) {
  .j2-ovtop, .j2-ovrow, .j2-secs { grid-template-columns: minmax(0, 1fr); }
  .j2-ovhero { padding: 16px; }
  .j2-read { font-size: 22px; margin-top: 8px; }
  .j2-ovread > .j2-shd { flex-direction: column; align-items: flex-start; gap: 4px; } .j2-ovread > .j2-shd .j2-per { text-align: left; }
  .j2-scores { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .j2-score { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "u u" "s s"; gap: 4px 10px; padding: 12px; }
  .j2-score small { grid-area: l; align-self: center; } .j2-score > b { grid-area: v; font-size: 34px; } .j2-score .j2-um { grid-area: u; } .j2-score > span { grid-area: s; }
  .j2-ovawb { grid-template-columns: 96px minmax(0, 1fr); }
  .j2-ovfig { height: 150px; }
  .j2-ovfig .j2-aware-fig.j2-desk { display: none; } /* phones: the still opens the full view; the 3D slot mounts from 1024 px */
  .j2-row { grid-template-columns: minmax(0, 1fr) 120px; }
}
@media (max-width: 599px) { .j2-ssec-hero .j2-shero { grid-template-columns: minmax(0, 1fr); gap: 12px; } .j2-slatest b { font-size: 56px; } }

/* hb2 (Jake's phone, Nov 18): the systems grid never overflows. The status dots wrap onto as many lines as they need,
   inside the card; the status line always sits on its own line below them (never beside them when space is short) and
   wraps if it must. Cards in a row share one height (the grid stretches them). "Your devices" uses the same dot size,
   gap and status-line layout as every other card. Colours and the footnote are unchanged. */
.j2-apcard .j2-apst { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; width: 100%; white-space: normal; }
.j2-apcard .j2-apst .j2-sysdots { flex: none; flex-wrap: wrap; justify-content: flex-start; max-width: 100%; margin-left: 0; gap: 3px; }
.j2-apcard .j2-apst > span:not(.j2-sysdots) { display: block; max-width: 100%; overflow-wrap: anywhere; }
.j2-apcard[data-r="devices"] { padding-left: 14px; padding-right: 14px; }
.j2-apcard[data-r="devices"] .j2-apst { gap: 6px; font-size: 12.5px; letter-spacing: normal; white-space: normal; }
.j2-apcard[data-r="devices"] .j2-apst .j2-sysdots { gap: 3px; }
.j2-apcard[data-r="devices"] .j2-apst .j2-sysdots i, .j2-apcard[data-r="devices"] .j2-apdot { width: 7px; height: 7px; }
.j2-apgrid { align-items: stretch; }
@media (max-width: 520px) { .j2-apcard[data-r="devices"] { padding-left: 12px; padding-right: 12px; } }

/* hb2 (Jake's desktop): the full view follows the member's local-time theme: Pearl for every daytime theme (day, sunrise,
   sunset), Smoke by night (the sheet backdrop above); the wordmark keeps the brand treatment on both (ink, then sand).
   Close sits fully inside the viewport with a safe margin at every width. */
.j2-scrim.j2-pop-aware .j2-x { position: relative; z-index: 5; padding-top: 10px; }
.j2-scrim.j2-pop-aware .j2-x .j2-close { margin: 0 max(6px, env(safe-area-inset-right)) 0 0; }
/* aw5d (art should-fix): the Aware sheet close is a full 44 px glass disc with a 1 px line, a 14 px glyph in ink; it holds on Pearl. */
.j2-scrim.j2-pop-aware .j2-x .j2-close { color: var(--j2-ink); } .j2-scrim.j2-pop-aware .j2-x .j2-close::before { width: 44px; height: 44px; background: var(--j2-glass-strong); box-shadow: inset 0 0 0 1px var(--j2-line), 0 4px 14px -10px rgba(0,0,0,.35); } .j2-scrim.j2-pop-aware .j2-x .j2-close svg { width: 14px; height: 14px; }
@media (min-width: 1024px) { .j2-scrim.j2-pop-aware .j2-x { padding-right: 16px; } }
/* hb2: "Beyond the body" and its cards are one block (the heading never stands alone); in the full view's scrolling
   panel body the bottom edge fades, so content past the fold reads as more to scroll, never as empty space. */
.j2-apbeyondgrp { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1024px) {
  .j2-pop-aware .j2-apbody { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); padding-bottom: 36px; }
}
/* hb2: at 360 the longest system name ("Cardiovascular") reads in full beside its count. */
@media (max-width: 380px) { .j2-apcard .j2-aptop b { font-size: 14px; letter-spacing: .02em; } }

/* ---- mk1: the marker detail, direction B (Jake chose it Nov 17; DECISIONS.md). One layout in the marker sheet, the
   ASPN Aware panel and the no-result sheet. Lab colours as approved: green inside, red outside, the footnote says so. */
.j2-labhero-b { gap: 10px; width: 100%; }
.j2-lhrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; width: 100%; }
.j2-labhero-b .j2-val.j2-big { font-size: 64px; line-height: .86; }
.j2-lhsub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.j2-lpill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; font-size: 10.5px; letter-spacing: .1em; white-space: nowrap; }
.j2-lpill.in { background: color-mix(in srgb, var(--j2-ok) 12%, transparent); }
.j2-lpill.out { background: color-mix(in srgb, var(--j2-warn) 12%, transparent); }
.j2-kchip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; margin-bottom: 6px; border-radius: 999px; background: color-mix(in srgb, var(--j2-ink) 6%, transparent); font: 600 15px var(--j2-num); color: var(--j2-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.j2-kchip.out { color: var(--j2-warn); }
.j2-chart .j2-lg0 { stop-color: var(--j2-sand); stop-opacity: .07; } .j2-chart .j2-lg1 { stop-color: var(--j2-sand); stop-opacity: .24; }
.j2-chart .j2-lbande { stroke: var(--j2-band-edge); stroke-width: 1; }
.j2-chart .j2-lbandl { fill: var(--j2-sand-text); font-weight: 600; }
.j2-chart .j2-lgrid { stroke: var(--j2-grid); stroke-width: 1; }
.j2-chart .j2-ltick { opacity: .6; }
.j2-chart .j2-lline { fill: none; stroke: var(--j2-sb); stroke-opacity: .5; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.j2-chart .j2-ldate { font-size: 10.5px; }
.j2-chart .j2-ldate.j2-lnow { fill: var(--j2-ink); font-weight: 600; }
.j2-chart .j2-lcall { fill: var(--j2-sb); } .j2-chart .j2-lcall.j2-out { fill: var(--j2-warn); }
.j2-chart .j2-lcallt { font: 600 12px var(--j2-num); fill: var(--j2-paper); font-variant-numeric: tabular-nums; }
.j2-ssec > .j2-eye.j2-leye { margin-top: 6px; }
.j2-lstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px 2px; }
.j2-lstrip::-webkit-scrollbar { display: none; }
.j2-ldraw { flex: 0 0 auto; min-width: 78px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--j2-hair); }
.j2-ldraw:first-child { background: color-mix(in srgb, var(--j2-paper) 60%, transparent); }
.j2-ldraw b { font: 24px/1 var(--j2-display); color: var(--j2-ink); }
.j2-ldraw b.out { color: var(--j2-warn); } .j2-ldraw b.pending { color: var(--j2-ink-2); }
.j2-ldraw > span:not(.j2-pend) { font: 12px var(--j2-num); color: var(--j2-ink-3); }
.j2-ldraw .j2-file { min-height: 28px; font-size: 12px; }
.j2-ssec-edu.j2-ssec { padding: 16px; gap: 12px; }
.j2-know2 { display: flex; flex-direction: column; gap: 10px; }
.j2-klead { margin: 0; font: 15px/1.5 var(--font-body); color: var(--j2-ink); }
.j2-ktiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.j2-ktile { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 10px 12px 10px 14px; box-sizing: border-box; border-radius: 14px; border: 1px solid var(--j2-hair); background: color-mix(in srgb, var(--j2-paper) 60%, transparent); font: 14px/1.3 var(--font-body); color: var(--j2-ink); text-align: left; cursor: pointer; }
.j2-ktile.j2-kwide { min-height: 50px; }
.j2-ktile > span:not(.j2-trend) { flex: 1; }
.j2-ktile .j2-ic { flex: none; transform: rotate(-90deg); color: var(--j2-ink-3); }
.j2-scrim details.j2-ksrc { border-top: 1px solid var(--j2-hair); }
.j2-scrim details.j2-ksrc > summary span { flex: 0 1 auto; }
.j2-ksrcl { margin: 0 0 12px; padding-left: 20px; font: 13px/1.45 var(--font-body); color: var(--j2-ink-3); }
.j2-ksrcl li { margin: 0 0 8px; }
.j2-ksrcl a { color: var(--j2-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.j2-ksrcl span { display: block; overflow-wrap: anywhere; }
.j2-kpop { position: absolute; z-index: 6; display: flex; align-items: flex-end; padding: 10px; box-sizing: border-box; background: var(--j2-scrim); overscroll-behavior: contain; }
.j2-kcard { position: relative; width: 100%; max-height: 86%; overflow: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 18px 18px 10px; border-radius: 18px; background: var(--j2-glass-strong); box-shadow: var(--j2-shadow); outline: none; font: 15px/1.5 var(--font-body); color: var(--j2-ink-2); }
.j2-kcard h4 { margin: 4px 44px 12px 0; font: 12px var(--j2-label); letter-spacing: .1em; text-transform: uppercase; color: var(--j2-sand-text); }
.j2-kcard p, .j2-kcard li { font-size: inherit; line-height: inherit; }
.j2-kcard p { margin: 0 0 8px; } .j2-kcard ul { margin: 0 0 8px; padding-left: 18px; } .j2-kcard li { margin: 0 0 5px; }
.j2-kcard .j2-knote { font-size: 13px; color: var(--j2-ink-3); }
.j2-kx { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--j2-ink); cursor: pointer; }
.j2-kx::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: color-mix(in srgb, var(--j2-ink) 7%, transparent); }
.j2-kx svg { position: relative; }
/* The Ask chips in "What this marker is" keep the app's one chip row (a single scrolling line, 40 px reserved, so chips
   loading in never move anything) and gain the edge fade the app uses for scrolling rows: a chip past the edge fades
   out (more to scroll), never cut mid-word; the padding lets the last chip scroll fully clear of the fade. */
.j2-scrim .j2-ssec-edu .ask-chips { padding-right: 32px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.j2-lfoot { margin: 2px 2px 0; font: 11.5px/1.45 var(--j2-num); color: var(--j2-ink-3); }
/* ap1: the "All draws" tile strip gets the same edge fade and end padding as the Ask chip row above: at 360 the last
   draw ("131 Mar 2...") fades out at the edge (more to scroll) instead of being cut mid-text. Right padding only; the
   strip's height is unchanged. */
.j2-lstrip { padding-right: 32px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
/* A marker open in the ASPN Aware view (Jake approved Nov 17): the stat tiles step aside so the marker gets the panel's
   height, the pinned footnote steps aside for the marker's own (last, in the flow, never clipping), and the all-markers
   Draws list stays on the overview. */
.j2-apsheet:has(.j2-apmarker) > .j2-aptiles, .j2-apsheet:has(.j2-apmarker) > .j2-apfoot, .j2-apsheet:has(.j2-apmarker) .j2-apdraws { display: none; }
/* The existing education card (a marker without approved knowledge) inside a Journey sheet: sources as a plain list, not
   multi-line pills; list text the size of the body. Scoped to Journey's sheets; the card elsewhere is unchanged. */
.j2-scrim .edu-card-sections li { font-size: 14.5px; line-height: 1.55; }
.j2-scrim .edu-srcs { display: block; margin-top: 8px; }
.j2-scrim .edu-srcs a { display: block; min-height: 0; padding: 3px 0; border: 0; border-radius: 0; font-size: 13px; line-height: 1.45; text-decoration: underline; text-underline-offset: 2px; opacity: .85; }

/* hf2: the Aware placeholder is the real figure's still, centred and sized to the stage (no outline, no dots); the 3D
   figure crossfades in over it (aspn-aware.js). With no still, a quiet empty stage. */
/* hf2 art: the stills are the 3D canvas itself rendered at 2:3 with the same camera (scripts/aspn-aware-stills.cjs), and
   the full view's canvas fills its stage (.aw-root[data-ext] .aw-canvas: height 100%), so the placeholder box is the
   stage's height at 2:3, centred, x1.04 (the still renders reserved a chip row under the canvas: measured 3D 460 px vs
   still 443 px figure height at 390, same centre): the same figure height, feet, plinth line and centre as the 3D. No backdrop; the
   baked floor fades out so no edge shows. No glows on the loading placeholder: the 3D glows fade in with the figure. */
.j2-aware-fig > .aw-still { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.j2-aware-fig > .aw-still .aws.lg { width: auto; height: 104%; max-width: none; aspect-ratio: 2 / 3; background: none; border-radius: 0; overflow: visible; }
.j2-aware-fig > .aw-still .aws.lg img { -webkit-mask-image: radial-gradient(ellipse 60% 56% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 60% 56% at 50% 50%, #000 72%, transparent 100%); }
/* My Plan direction A (Jake, Nov 18: "Timeline"). Today in time-of-day order, tiles for protein, water and the session,
   the week as seven rings, the protocol as written. Fixed heights per row so a tick never moves anything. */
/* The Trends row rule (.j2-row as a 2-column grid, below) also matched these header rows: the date eyebrow was squeezed
   into a 150 px column and wrapped at 390 ("TODAY · TUE, / NOV 17"). My Plan's header rows are plain flex rows. */
.j2-today .j2-row, .j2-weekr .j2-row, .j2-protocard .j2-row, .j2-scrim .j2-row.j2-start { display: flex; min-height: 0; padding: 0; border-top: 0; cursor: default; width: auto; }
.j2-today .j2-row.j2-start { gap: 14px; }
.j2-today-h { min-width: 0; }
.j2-today-h .j2-eye { white-space: nowrap; } /* "TODAY · TUE, NOV 17" on one line at 390 (it wrapped) */
.j2-tl { display: flex; flex-direction: column; }
.j2-tl-g { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 0 8px; border-top: 1px solid var(--j2-line); }
.j2-tl-g:first-child { border-top: 0; }
.j2-tl-h { font: 11px/1.2 var(--j2-label); letter-spacing: .14em; text-transform: uppercase; color: var(--j2-sand-text); padding-top: 21px; }
.j2-tl-items { display: flex; flex-direction: column; min-width: 0; }
.j2-tl-items .j2-check { border-top: 0; min-height: 54px; }
.j2-tl-items .j2-check + .j2-check { border-top: 1px solid var(--j2-line); }
.j2-check.on b { color: var(--j2-ink-3); }
.j2-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.j2-check.j2-ptile { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 74px; padding: 10px 12px; border: 1px solid var(--j2-hair); border-radius: 16px; background: var(--j2-glass-strong); }
.j2-check.j2-ptile .j2-box-none { display: none; }
.j2-check.j2-ptile b { font-size: 14.5px; }
.j2-wset .j2-act { text-decoration: underline; text-underline-offset: 3px; }
.j2-tbar { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--j2-soft); margin-top: auto; overflow: hidden; }
.j2-tbar em { display: block; height: 100%; border-radius: 2px; background: var(--j2-primary); }
.j2-rings { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.j2-dring { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 16px; border: 1px solid transparent; background: none; cursor: pointer; color: inherit; min-height: 92px; }
.j2-dring.today { background: var(--j2-glass-strong); border-color: var(--j2-hair); }
.j2-dring .j2-ring { flex: 0 0 40px; }
.j2-dring .j2-ring-t { font-size: 14px; }
.j2-dring.future .j2-ring-t { fill: var(--j2-ink-3); }
.j2-dring.today .j2-ring-t { fill: var(--j2-primary); }
.j2-dl { font: 10px var(--j2-label); letter-spacing: .1em; color: var(--j2-ink-3); }
.j2-dmark { height: 14px; color: var(--j2-sand-text); }
.j2-dmark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.j2-pmw { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--j2-line); padding-top: 12px; margin-top: 6px; }
.j2-pmw .j2-muted { margin: 0; font-size: 14px; max-width: 420px; }
.j2-pmw .j2-btn { white-space: nowrap; flex: none; }
.j2-protocard h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.j2-adh { font-size: 13px; color: var(--j2-ink-2); }
.j2-weekr .j2-link, .j2-protocard .j2-link { text-decoration: underline; text-underline-offset: 3px; font-size: 14px; align-self: flex-start; }
.j2-plside { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.j2-wform { display: flex; flex-direction: column; gap: 8px; }
.j2-wform .j2-input { height: 48px; border-radius: 14px; border: 1px solid var(--j2-hair); background: var(--j2-glass-strong); padding: 0 14px; font: 17px var(--font-body); color: var(--j2-ink); }
.j2-wform .j2-btn { align-self: flex-start; }
@media (max-width: 1023px) { .j2-pmw { flex-direction: column; align-items: stretch; } }
@media (min-width: 1024px) {
  .app[data-route=plan] main#view .j2-page > .j2-plside.j2-plside { grid-column: 2 / 3; }
  .app[data-route=plan] main#view .j2-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
}
@media (min-width: 1024px) {
  .j2-protocard .j2-list .j2-li { min-height: 46px; padding: 4px 0; }
}
.j2-tiles .j2-check.j2-ptile { border-top: 1px solid var(--j2-hair); margin-top: 0; } .j2-tiles { margin-top: 12px; }
/* Desktop: two columns (Today with Ask under it | the week and the protocol), each top-aligned. */
.j2-plmain { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 1024px) {
  .app[data-route=plan] main#view .j2-page > .j2-plmain.j2-plmain { grid-column: 1 / 2; align-self: start; }
  .app[data-route=plan] main#view .j2-page > .j2-plside.j2-plside { align-self: start; }
  .j2-plmain > .ask-card { padding: 14px 18px; }
}

/* pl1 My Plan polish (Jake's phone, Nov 19). */
/* 1. One or two timed items: a compact list, the time as a small eyebrow on the title's line; no label column, no gap. */
.j2-tl.j2-tl-c { display: block; }
.j2-tl-compact .j2-check { min-height: 52px; }
.j2-tl-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.j2-tl-line b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j2-tl-in { flex: none; font: normal 10.5px/1 var(--j2-label); letter-spacing: .14em; text-transform: uppercase; color: var(--j2-sand-text); }
.j2-tl-c + .j2-tiles { margin-top: 6px; }
/* 2. The tiles' top border and corners: the card-wide "no hairline above a row" rule (.j2-card .j2-check) also took the
   tiles' top edge, so they read as cut. A tile is a bordered box on all four sides. */
.j2-card .j2-tiles .j2-check.j2-ptile { border-top-color: var(--j2-hair) !important; }
/* 3. My Plan's rings use Home's day-ring track (home-v2.css .hb-rt: a faint bronze track, never grey), in both themes. */
.j2-theme .j2-today .j2-ring-bg, .j2-theme .j2-dring .j2-ring-bg, .j2-scrim .j2-row.j2-start .j2-ring-bg { stroke: rgba(216,187,154,.34); opacity: 1; }
/* 4. The Ask chip row on My Plan gets mk1's edge fade (the marker sheet's chip row): one scrolling row, its reserved
   height unchanged; a chip past the edge fades out instead of being cut mid-word. */
.j2-plmain > .ask-card .ask-chips { padding-right: 32px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
/* The Appointments row at the foot of My Plan: one line, the chevron at the end. */
.app[data-route=plan] main#view .j2-page > a.j2-li.j2-card { flex-direction: row; align-items: center; justify-content: space-between; text-decoration: none; min-height: 56px; padding: 0 16px; }

/* pf1 "Your files" on My Plan (Jake, Nov 19): the newest 3 shared files, then Show all; each opens in a popup. */
.j2-files-card .j2-list { display: flex; flex-direction: column; }
.j2-pfrow { display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%; padding: 6px 0; background: none; border: 0; border-top: 1px solid var(--j2-line); text-align: left; cursor: pointer; color: inherit; font: inherit; }
.j2-files-card .j2-list .j2-pfrow:first-child { border-top: 0; }
.j2-card .j2-files-card .j2-pfrow + .j2-pfrow, .j2-files-card .j2-pfrow + .j2-pfrow { border-top-color: var(--j2-line) !important; }
.j2-pfrow .j2-grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.j2-pfrow .j2-grow b { font-weight: 400; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j2-pfrow .j2-grow span { font-size: 12.5px; color: var(--j2-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j2-fic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font: 9.5px var(--j2-label); letter-spacing: .08em; color: var(--j2-sand-text); background: var(--j2-soft); border: 1px solid var(--j2-hair); }
.j2-fnew { flex: none; font: 10px var(--j2-label); letter-spacing: .12em; text-transform: uppercase; color: var(--j2-primary); border: 1px solid var(--j2-hair); border-radius: 999px; padding: 4px 9px; }
.j2-scrim .j2-fimg { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 14px; background: var(--j2-soft); margin: 4px 0 10px; }
.j2-scrim .j2-fopen { align-self: flex-start; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; margin-top: 6px; }
.j2-files-card .j2-row { display: flex; min-height: 0; padding: 0; border-top: 0; cursor: default; width: auto; } /* the plain header row (not the Trends grid row) */
/* pf1 in-app PDF (Jake, Nov 19): the frame's height is reserved up front (the popup's height less its title, line and
   Open button), so nothing in the popup moves as the PDF draws and Open stays in view. */
.j2-scrim.j2-pop-pdf .j2-sheet { max-width: 880px; }
.j2-scrim .j2-fframe { height: clamp(280px, calc(86vh - 230px), 780px); border-radius: 14px; overflow: hidden; background: var(--j2-soft); border: 1px solid var(--j2-hair); flex: none; }
.j2-scrim .j2-fframe iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }

/* ASPN Aware v4 (aw5; AWARE_V3_ENABLED; aspn-aware-v4.js/.css load on demand): from 1024 px the v3 view takes Overview's
   place in a box of its final height (rule 3: nothing shifts while its scripts load); below 1024 px, today's Overview. */
.j2-awv3-slot { display: none; }
@media (min-width: 1024px) { .j2-awv3-slot { display: block; min-height: clamp(700px, calc(100vh - 96px), 1180px); } .j2-awv3-old { display: none !important; } }

/* aw3e: the full view on desktop with v3 on: the v3 experience fills the full-screen sheet (the sheet's own Close stays). */
.j2-pop-awv3 .j2-awv3-full { position: relative; height: calc(100vh - 96px); min-height: 700px; padding: 0 20px; box-sizing: border-box; }
/* aw5: v4 fills the full-screen sheet edge to edge (the approved 1440 x 900 geometry); the sheet's own Close stays on top.
   In Journey's desktop slot it takes a full viewport height of its own. */
.j2-pop-awv3 .j2-awv3-full:has(> .awv4) { position: fixed; inset: 0; height: auto; min-height: 0; padding: 0; }
.j2-pop-awv3 .j2-awv3-full .awv4 { height: 100%; }
.j2-pop-awv3 [data-pop="close"] { position: relative; z-index: 2; }
@media (min-width: 1024px) { .j2-awv3-slot .awv4 { height: clamp(760px, calc(100vh - 40px), 1180px); } }
/* aw5e: the narrow and stacked ASPN Aware layouts scroll inside the full sheet (the in-page view scrolls with the page). */
.j2-pop-awv3 .j2-awv3-full:has(> .awv4[data-w="narrow"]), .j2-pop-awv3 .j2-awv3-full:has(> .awv4[data-w="stack"]) { overflow-y: auto; overscroll-behavior: contain; }
/* aw5g: a sheet over another (Journey's marker card over the ASPN Aware full view) sits one layer up; the view stays put. */
.j2-scrim.j2-pop-over { z-index: 2147483001; }
/* aw5i2 (Jake): marker knowledge opens IN the card, one row at a time (no bottom pop-up); the card scrolls on its own. */
.j2-ktiles.j2-kaccs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.j2-kacc .j2-ktile[aria-expanded="true"] { border-color: var(--j2-primary); } .j2-kacc .j2-ktile[aria-expanded="true"] .j2-ic { transform: rotate(0deg); }
.j2-kpanel { padding: 10px 14px 4px; font-size: 15px; line-height: 1.5; } .j2-kpanel[hidden] { display: none; }
.j2-kpanel p { margin: 0 0 8px; } .j2-kpanel ul { margin: 0 0 8px; padding-left: 18px; } .j2-kpanel li { margin: 0 0 5px; } .j2-kpanel .j2-knote { font-size: 13px; color: var(--j2-ink-3); }
@media (prefers-reduced-motion: no-preference) { .j2-kpanel:not([hidden]) { animation: kacc-open .18s ease-out; } @keyframes kacc-open { from { opacity: 0; transform: translateY(-4px); } } }
/* aw5i2: the Ask chips under a marker wrap instead of running off the card edge. */
.j2-sheet .j2-ssec-edu .ask-chips, .j2-ssec-edu .ask-chips { flex-wrap: wrap; height: auto; overflow: visible; margin: 0; padding: 0; }
/* aw5i3 (art): the marker card (Journey and over Aware) keeps its header (name, close) pinned while the body scrolls,
   with 16 px fades top and bottom; an open knowledge row is one bordered block, title and body together. */
.j2-pop-lab .j2-sheet > .j2-x { position: sticky; top: -10px; z-index: 3; margin: -10px -16px 0; padding: 10px 16px 0; background: var(--j2-glass-strong); box-shadow: 0 -16px 0 0 var(--j2-glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.j2-pop-lab .j2-sheet > .j2-x::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; pointer-events: none; background: linear-gradient(var(--j2-glass-strong), transparent); }
.j2-pop-lab .j2-sheet::after { content: ""; flex: none; position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); height: 16px; margin-top: -16px; pointer-events: none; background: linear-gradient(transparent, var(--j2-glass-strong)); }
.j2-kacc { border: 1px solid var(--j2-hair); border-radius: 14px; background: color-mix(in srgb, var(--j2-paper) 60%, transparent); overflow: hidden; }
.j2-kacc > .j2-ktile { border: 0; border-radius: 0; background: transparent; }
.j2-kacc:has(> .j2-ktile[aria-expanded="true"]) { border-color: var(--j2-primary); } .j2-kacc .j2-ktile[aria-expanded="true"] { border-color: transparent; }
.j2-kacc > .j2-kpanel { padding: 0 14px 12px; }
/* aw5k (Jake, DECISIONS.md "One Aware"): where Aware v4 is on, desktop. The first tab reads "Aware" (both labels are in
   the button; one shows), and Labs is the records view; phone keeps "Overview" and today's Labs (.j2-awv3-old). */
.j2-tabs .j2-desk { display: none; }
@media (min-width: 1024px) { .j2-tabs .j2-desk { display: inline; } .j2-tabs .j2-phone { display: none !important; } }
.j2-labrec { display: none; }
@media (min-width: 1024px) {
  .j2-labrec { display: flex; flex-direction: column; gap: inherit; }
  .j2-labrecgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
}
.j2-labfind { display: flex; flex-direction: column; gap: 10px; }
.j2-labq { box-sizing: border-box; width: 100%; height: 44px; border-radius: 14px; border: 1px solid var(--j2-line); background: var(--j2-paper); padding: 0 14px; font: 15px var(--font-body); color: var(--j2-ink); outline: none; }
.j2-labq::placeholder { color: var(--j2-ink-3); }
.j2-labq:focus-visible { border-color: var(--j2-bronze, #b08a5a); box-shadow: 0 0 0 2px rgba(176, 138, 90, .25); }
.j2-labhits:empty { display: none; }
.j2-labhits { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
/* The records view's card head is the plain eyebrow row (the Trends row rule further up shares the class name), and the
   marker guide is one row: name and count, then the chevron. */
.j2-labrec .j2-labs > .j2-row:first-child { display: flex; min-height: 0; padding: 0; border-top: 0; }
.j2-labrec .j2-guide { flex-direction: row; align-items: center; min-height: 64px; padding: 12px 16px; }
.j2-kchip.j2-kchip-sm { margin: 0 0 0 8px; min-height: 22px; padding: 0 8px; gap: 5px; font-size: 11.5px; flex: none; } /* aw5n (art): the records rows' change pill, the marker card's */
/* aw5m2 (art, 1024): in the full sheet the view scrolls under the floating close disc; at the narrow tier the cards keep
   a 12 px gutter clear of it (the disc's 44 px, its 22 px inset and 12 px), so it never sits over tile content. */
.j2-pop-awv3 .j2-awv3-full > .awv4[data-w="narrow"] { padding-right: 104px; }
.j2-pop-awv3 .j2-awv3-full > .awv4[data-w="narrow"] .awv4-tele { margin-right: 0; }

/* labs-view-2. Checklist rule 17: every lab number that is compared (values, report ranges, draw dates, the in-range
   count) uses tabular figures, so columns of results line up and nothing reflows when a value changes. */
.j2-val, .j2-ldraw b, .j2-ldraw > span, .j2-draw b, .j2-mrow .j2-grow > span, .j2-li .j2-grow > span, .j2-labtop, .j2-labline2, .j2-ring-n, .j2-ring-of, .j2-labhero .j2-tiny { font-variant-numeric: tabular-nums; }
/* Rule 22: the lab rows and draw chips are buttons and already ring on :focus-visible (.j2-page button / .j2-scrim
   button); the report link inside a draw tile gets the same ring. */
.j2-ldraw .j2-file:focus-visible { outline: 3px solid var(--j2-primary); outline-offset: 2px; border-radius: 8px; }
/* Provider note on a draw (LAB_PROVIDER_NOTE_ENABLED): the top of the draw sheet, the sheet's own quiet surface. */
.j2-lnote { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; margin: 0 0 12px; border-radius: 18px; background: var(--j2-glass-strong); box-shadow: inset 0 0 0 1px var(--j2-hair); }
.j2-lnote-t { margin: 0; font-size: 16px; line-height: 1.45; color: var(--j2-ink); white-space: pre-line; overflow-wrap: anywhere; max-width: 65ch; }
.j2-lnote-by { margin: 0; font-size: 12px; line-height: 1.3; color: var(--j2-ink-3); font-variant-numeric: tabular-nums; }
/* The draw chip's note tag sits in the chip's bottom-right corner, so a chip with a note is the same size as one
   without (rule 3: no row of chips changes height). */
.j2-draw:has(> .j2-notetag) { position: relative; }
.j2-draw > span.j2-notetag { position: absolute; right: 12px; bottom: 9px; font: 9.5px/1.2 var(--j2-label); letter-spacing: .08em; text-transform: uppercase; color: var(--j2-sand-text); }
/* My Plan cleanup (myplan-cleanup-1): fold buttons, the ended-plan row, the files count, one compact primary. */
.j2-fold { flex: 0 0 auto; width: 44px; height: 44px; margin: -10px -10px -10px 0; display: grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; }
.j2-fold:focus-visible { outline: 2px solid var(--j2-sand-text); outline-offset: -4px; }
.j2-files-card .j2-row, .j2-protocard.j2-ended .j2-row { align-items: center; gap: 8px; }
.j2-files-card .j2-row .j2-grow { flex: 1 1 auto; }
.j2-files-card .j2-count { opacity: .7; margin-left: 4px; }
.j2-protocard.j2-ended .j2-row .j2-grow { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.j2-protocard.j2-ended .j2-ended-t { font: 18px/1.1 var(--j2-display, inherit); text-transform: uppercase; letter-spacing: .04em; }
.j2-protocard.j2-ended .j2-small { margin: 0; }
.j2-theme .j2-pmw .j2-btn.pw-entry { width: auto; min-height: 44px; padding: 0 18px; font-size: 12px; }
