/* Synced from app/src/styles/ui.css by web/build.py: the component library, the one source of UI parts for the app
   and the site (design/app/SYSTEM.md). Edit it there; this copy is rewritten on every build. */
/* The app's component library (design/app/SYSTEM.md, drawn on the design canvas). Colours come from tokens.css (the
   site's palette); ui/roles.css names the app's roles on top of it and sets the scale, and the other parts style every
   bw- part. The React side of each part is in components/ui/. The parts load in this order, which is the cascade's;
   web/build.py inlines them into one file for the site. Tokens only: raw colours appear in ui/roles.css and nowhere
   else. */

/* The component library (ui.css), part: the roles every part is coloured by, named on top of tokens.css, and the scale.
 */

/* ---------- roles and scale ---------- */
:root {
  --sans: var(--font-sans), "Helvetica Neue", Arial, sans-serif;
  --mono: var(--font-mono), ui-monospace, Menlo, monospace;

  /* colour roles (§2) */
  --ground: var(--paper);
  --sheet: var(--surface);
  --wash: #F1F3EF;
  --field: #EAECE7;
  --line: #EEF0EC;
  --edge: #DADFD8;
  --edge-hover: #C2C9C3;
  --text-2: #3D4943;
  --text-3: #66716A;
  --faint: #9AA59E;
  --leaf: var(--g-mid);
  --leaf-pale: #DCEBE1;
  --moss: var(--g-mist);
  --held: #C9D0CA;
  --rust-tint: #FBEFEA;
  --pill: #E3E7E1;
  --track: #E9ECE7;
  --wash-hover: #E7EAE4;
  /* buttons (§7): primary is the forest's green; on-* is the label on a solid fill; outline is the line kind's edge */
  --primary: #0E5236;
  --on-primary: #F6F9F7;
  --primary-hover: #0B4530;
  --secondary: #E6EAE4;
  --secondary-hover: #EBEEE9;
  --outline: #C9CFC8;
  --gold-hover: #EBB234;
  --gold-ink-solid: #1E1503;
  --on-rust: #FFFFFF;
  /* the switch's knob, white in every theme, and the shadow that lifts it off the track */
  --knob: #FFFFFF;
  --knob-shadow: 0 1px 2px rgba(16, 34, 26, .25);
  /* charts (§7, Analytics charts): the grey a comparison is drawn against, a range's and a gap's wash, pale rust, a
     whole's second part and the text on a strong fill, and two ramps of five steps, pale where little happens. Dark
     has its own steps (more is lighter), and the text inside a cell flips with them */
  --compare: #A9B3AC;
  --range: #C6E1D0;
  --gap-wash: #C6E1D0;
  --rust-pale: #EBC3B4;
  --part-2: #5E6A63;
  --on-strong: #FFFFFF;
  --heat-1: #E3EFE7; --heat-2: #C6E1D0; --heat-3: #8BC3A0; --heat-4: #2E9A64; --heat-5: #0E5236;
  --heat-ink-4: #10221A; --heat-ink-5: #FFFFFF;
  --leak-1: #F4F5F2; --leak-2: #E3E7E1; --leak-3: #C2C9C3; --leak-4: #5E6A63; --leak-5: #10221A;
  --leak-ink-4: #FFFFFF; --leak-ink-5: #FFFFFF;

  /* elevation: only four (§4) */
  --sh-sheet: 0 0 0 1px rgba(16, 34, 26, .06), 0 2px 8px rgba(16, 34, 26, .04);
  --sh-raised: 0 0 0 1px rgba(16, 34, 26, .07), 0 8px 20px -12px rgba(16, 34, 26, .22);
  --sh-overlay: 0 0 0 1px rgba(16, 34, 26, .07), 0 24px 60px -20px rgba(16, 34, 26, .35);
  --sh-sel: 0 0 0 1px rgba(16, 34, 26, .05), 0 1px 2px rgba(16, 34, 26, .08);
  --scrim: rgba(16, 34, 26, .08);
  /* every button is glass (§7): its kind's fill under a sheen, the glass bevel, and a 1 px rim with two glints turning
     round it. The solid kinds take the solid sheen and the light rim; frosted glass (bw-glass) is the tint */
  --glass-sheen: linear-gradient(-75deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
  --glass-tint: rgba(16, 34, 26, .05);
  --glass-tint-hover: rgba(16, 34, 26, .09);
  --glass-bevel: inset 0 2px 2px rgba(16, 34, 26, .05), inset 0 -2px 2px rgba(255, 255, 255, .5), 0 4px 2px -2px rgba(16, 34, 26, .2), inset 0 0 1.5px 4px rgba(255, 255, 255, .2);
  --glass-rim: rgba(16, 34, 26, .12);
  --glass-glint: rgba(16, 34, 26, .55);
  --solid-sheen: linear-gradient(-75deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
  --solid-rim: rgba(255, 255, 255, .16);
  --solid-glint: rgba(255, 255, 255, .8);

  /* the pasture's dither, for empty space in data */
  --dither: repeating-conic-gradient(var(--track) 0 25%, var(--sheet) 0 50%) 0 0 / 4px 4px;
  --dither-held: repeating-conic-gradient(var(--held) 0 25%, var(--sheet) 0 50%) 0 0 / 4px 4px;

  /* type (§3): one family, seven sizes, never 700 */
  --t-display: 52px; --t-title: 28px; --t-figure: 22px; --t-heading: 15px; --t-body: 13.5px; --t-small: 12.5px; --t-micro: 11.5px;
  /* space, 4px base */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-14: 56px;
  /* radius by nesting: inner = outer − padding */
  --r-sheet: 16px; --r-pop: 14px; --r-tile: 12px; --r-l: 10px; --r-m: 9px; --r-s: 8px; --r-item: 7px; --r-badge: 6px; --r-key: 5px;
  --fast: .15s;
  --ease: cubic-bezier(.3, .7, .2, 1);
  /* engraving (.bw-eng): the forest's ink cut in lines on paper; polished nickel in the dark */
  --engrave: linear-gradient(180deg, #3E6553 0%, #1B392B 48%, #0A1912 100%);
}
/* Dark is graphite, not the site's forest night: the light theme's faint green, inverted. The ground and sheet are the
   app's own here, and --bg (the cut-out in the mark) follows the ground. Green stays for meaning. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111312; --sheet: #181B19; --bg: var(--ground);
    --wash: #212522; --field: #1C1F1D; --line: #232725; --edge: #2D322F; --edge-hover: #3B413D; --text-2: #C4CAC6; --text-3: #959D98;
    --faint: #6A726D; --leaf-pale: #1C3328; --held: #3A403C; --rust-tint: #33201A; --pill: #262A27; --track: #2A2E2B;
    --wash-hover: #292D2A; --primary: #2E9A64; --on-primary: #04110A; --primary-hover: #38AA70;
    --secondary: #242826; --secondary-hover: #2D322F; --outline: #3B413D; --on-rust: #1D0C05;
    --sh-sheet: 0 0 0 1px rgba(255, 255, 255, .05), 0 2px 8px rgba(0, 0, 0, .3);
    --sh-raised: 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 20px -12px rgba(0, 0, 0, .6);
    --sh-overlay: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px -20px rgba(0, 0, 0, .7);
    --sh-sel: 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .4);
    --scrim: rgba(0, 0, 0, .5);
    --engrave: linear-gradient(180deg, #F7FAF8 0%, #C9D8CF 44%, #728A7D 100%);
    --glass-sheen: linear-gradient(-75deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    --glass-tint: rgba(255, 255, 255, .045);
    --glass-tint-hover: rgba(255, 255, 255, .1);
    --glass-bevel: inset 0 2px 2px rgba(0, 0, 0, .05), inset 0 -2px 2px rgba(255, 255, 255, .18), 0 4px 2px -2px rgba(0, 0, 0, .5), inset 0 0 1.5px 4px rgba(255, 255, 255, .07);
    --glass-rim: rgba(255, 255, 255, .12);
    --glass-glint: rgba(255, 255, 255, .6);
    --compare: #59635D; --range: #24503A; --gap-wash: #1F4030; --rust-pale: #5A3326; --part-2: #8C968F; --on-strong: #111312;
    --heat-1: #1C3328; --heat-2: #24503A; --heat-3: #2E7550; --heat-4: #3FA36F; --heat-5: #8FDDB5;
    --heat-ink-4: #111312; --heat-ink-5: #111312;
    --leak-1: #1C1F1D; --leak-2: #262A27; --leak-3: #3B413D; --leak-4: #8C968F; --leak-5: #E8EEEA;
    --leak-ink-4: #111312; --leak-ink-5: #111312;
  }
}
:root[data-theme="dark"] {
  --ground: #111312; --sheet: #181B19; --bg: var(--ground);
  --wash: #212522; --field: #1C1F1D; --line: #232725; --edge: #2D322F; --edge-hover: #3B413D; --text-2: #C4CAC6; --text-3: #959D98;
  --faint: #6A726D; --leaf-pale: #1C3328; --held: #3A403C; --rust-tint: #33201A; --pill: #262A27; --track: #2A2E2B;
  --wash-hover: #292D2A; --primary: #2E9A64; --on-primary: #04110A; --primary-hover: #38AA70;
  --secondary: #242826; --secondary-hover: #2D322F; --outline: #3B413D; --on-rust: #1D0C05;
  --sh-sheet: 0 0 0 1px rgba(255, 255, 255, .05), 0 2px 8px rgba(0, 0, 0, .3);
  --sh-raised: 0 0 0 1px rgba(255, 255, 255, .07), 0 8px 20px -12px rgba(0, 0, 0, .6);
  --sh-overlay: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px -20px rgba(0, 0, 0, .7);
  --sh-sel: 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .4);
  --scrim: rgba(0, 0, 0, .5);
  --engrave: linear-gradient(180deg, #F7FAF8 0%, #C9D8CF 44%, #728A7D 100%);
  --glass-sheen: linear-gradient(-75deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  --glass-tint: rgba(255, 255, 255, .045);
  --glass-tint-hover: rgba(255, 255, 255, .1);
  --glass-bevel: inset 0 2px 2px rgba(0, 0, 0, .05), inset 0 -2px 2px rgba(255, 255, 255, .18), 0 4px 2px -2px rgba(0, 0, 0, .5), inset 0 0 1.5px 4px rgba(255, 255, 255, .07);
  --glass-rim: rgba(255, 255, 255, .12);
  --glass-glint: rgba(255, 255, 255, .6);
  --compare: #59635D; --range: #24503A; --gap-wash: #1F4030; --rust-pale: #5A3326; --part-2: #8C968F; --on-strong: #111312;
  --heat-1: #1C3328; --heat-2: #24503A; --heat-3: #2E7550; --heat-4: #3FA36F; --heat-5: #8FDDB5;
  --heat-ink-4: #111312; --heat-ink-5: #111312;
  --leak-1: #1C1F1D; --leak-2: #262A27; --leak-3: #3B413D; --leak-4: #8C968F; --leak-5: #E8EEEA;
  --leak-ink-4: #111312; --leak-ink-5: #111312;
}

/* The component library (ui.css), part: the base, type, icons, the mark and wordmark, the scene and a page that isn't
   there. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
/* no scrollbars anywhere, and no bounce past a page's top or foot, in the app and on the site (SYSTEM.md §8): a bounce
   paints only a flat colour in the gap, never the page, so the frame or the art would end on a hard line. Only the
   vertical bounce goes, since the horizontal one is a trackpad's swipe back */
html { overscroll-behavior-y: none; }
* { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
body { min-height: 100dvh; background: var(--ground); color: var(--ink); font: 400 var(--t-body)/1.5 var(--sans); letter-spacing: -.008em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; border-radius: var(--r-s); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
code { font: 400 12px/1.4 var(--mono); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bw-skip { position: absolute; left: var(--sp-4); top: -100px; z-index: 50; padding: 10px 16px; border-radius: var(--r-m); background: var(--ink); color: var(--sheet); font-weight: 500; text-decoration: none; }
.bw-skip:focus { top: var(--sp-4); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.bw-display { font: 600 var(--t-display)/1 var(--sans); letter-spacing: -.045em; }
.bw-title { font: 600 var(--t-title)/1.1 var(--sans); letter-spacing: -.032em; }
.bw-figure { font: 600 var(--t-figure)/1.15 var(--sans); letter-spacing: -.025em; }
.bw-heading { font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
.bw-small { font-size: var(--t-small); line-height: 1.45; letter-spacing: 0; }
.bw-micro { font: 500 var(--t-micro)/1.3 var(--sans); letter-spacing: 0; }
.bw-meta { font-size: var(--t-small); line-height: 1.45; letter-spacing: 0; color: var(--text-3); }
.bw-body2 { color: var(--text-2); }
.bw-good { color: var(--own); }
.bw-bad { color: var(--rust); }
.bw-wait { color: var(--gold-ink); }

/* ---------- icons: one line set, 1.75 stroke ---------- */
.bw-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bw-i.s { width: 12px; height: 12px; stroke-width: 2; }
.bw-i.m { width: 14px; height: 14px; }
.bw-i.l { width: 18px; height: 18px; }

/* ---------- the mark and the wordmark ---------- */
.bw-brand { display: inline-flex; align-items: center; gap: 9px; padding: 4px 8px; color: var(--ink); font: 600 var(--t-body)/1 var(--sans); text-decoration: none; border-radius: var(--r-s); }
.bw-brand.lg { font: 700 19px/1 var(--sans); letter-spacing: -.03em; }
.bw-brand-mark { width: 20px; height: 20px; flex: none; overflow: visible; }
.bw-brand.lg .bw-brand-mark { width: 32px; height: 32px; margin-block: -3px; }   /* the engraving needs the room; the bar's height stays */
/* XL: the wordmark as a specimen (the brand kit), sized by its words, the mark at 1.5 of them */
.bw-brand.xl { gap: .32em; padding: 0; font: 700 clamp(40px, 4.6vw, 64px)/1 var(--sans); letter-spacing: -.03em; }
.bw-brand.xl .bw-brand-mark { width: 1.5em; height: 1.5em; margin-block: -.1em; }
.bw-brand-mark .bell-body { transform-box: view-box; transform-origin: 24px 6px; }
@media (hover: hover) {
  .bw-brand:hover .bell-body { animation: bw-swing 1s ease-in-out; }
}
@keyframes bw-swing { 20% { transform: rotate(-10deg); } 45% { transform: rotate(8deg); } 70% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }

/* ---------- scene (§7): the engraved bell in its pasture, the landing page's art. The pages before the product and a
   page that isn't there are set in it: paper by day; in the dark the site's forest, not the app's graphite (the app
   takes those roles from site.css through tokens.css; the site has them already). Each theme draws its own files
   (--bell-art, --pasture-art). Where the bell and the field sit is the layout's ---------- */
.bw-scene { position: relative; isolation: isolate; overflow: hidden; background: var(--ground); color: var(--ink); }
.bw-bell { display: block; aspect-ratio: 820 / 846; background: var(--bell-art) center / contain no-repeat; }
/* the field: the hills with the ring cut for the bell (61.3% across, 51.8% down), fading out at its foot */
.bw-pasture { display: block; aspect-ratio: 8 / 3; background: var(--pasture-art) center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 98%); mask-image: linear-gradient(180deg, #000 78%, transparent 98%); pointer-events: none; }

/* ---------- lost (§7): a page that isn't there, in the app or on the site. 4, the bell, 4, engraved over the field;
   then where it's taking you and in how long, a brass line filling as it counts, the way there and Stay here ---------- */
.bw-lost { min-height: 100dvh; display: grid; align-content: start; justify-items: center; }
.bw-lost > .bw-brand { position: absolute; z-index: 1; top: 18px; left: 24px; }
.bw-lost-art { --w: 2000px; position: relative; width: 100%; height: 700px; box-sizing: border-box; padding-top: 38px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.bw-lost-art > .bw-pasture { position: absolute; z-index: -1; top: -20px; left: calc(50% - var(--w) * .613); width: var(--w); }
.bw-lost-art > .bw-eng { font-size: 340px; line-height: 1; --ln: 3px; --pd: 4.6px; }
.bw-lost-art > .bw-bell { flex: none; width: 460px; margin-top: 40px; }
.bw-lost-main { width: min(100%, 640px); box-sizing: border-box; padding: 0 24px 96px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.bw-lost-main :is(h1, h2) { margin: 0; font: 400 var(--t-display)/1.05 var(--sans); letter-spacing: -.045em; }
.bw-lost-line { margin: 0; color: var(--text-3); font-size: var(--t-heading); font-variant-numeric: tabular-nums; }
/* the time left: a brass line that fills over --wait, the countdown's own length */
.bw-lost-time { width: 240px; height: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
.bw-lost-time::before { content: ""; display: block; height: 100%; background: var(--brass); transform-origin: left; animation: bw-fill var(--wait, 8s) linear both; }
.bw-lost-act { margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@keyframes bw-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .bw-lost-art { --w: 1000px; height: 440px; padding-top: 24px; gap: 6px; }
  .bw-lost-art > .bw-pasture { top: 30px; }
  .bw-lost-art > .bw-eng { font-size: 130px; --ln: 1.4px; --pd: 2.2px; }
  .bw-lost-art > .bw-bell { width: 190px; margin-top: 16px; }
  .bw-lost-main { padding: 0 20px 32px; }
  .bw-lost-main :is(h1, h2) { font-size: 36px; }
  .bw-lost-act { width: 100%; flex-direction: column; gap: 4px; }
}

/* The component library (ui.css), part: buttons, tabs and segments. */

/* ---------- buttons (§7): S 28 · M 32 · L 40 · XL 44, the design canvas's buttons at the app's density ---------- */
.bw-btn {
  --btn-sheen: var(--glass-sheen); --btn-rim: var(--glass-rim); --btn-glint: var(--glass-glint);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-m); background: var(--btn-sheen), var(--btn-fill);
  box-shadow: var(--glass-bevel); color: var(--ink); font: 500 var(--t-body)/1 var(--sans); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: --btn-fill var(--fast), color var(--fast), box-shadow var(--fast);
}
/* every kind is a pane of glass: its fill (--btn-fill) under a sheen, the glass bevel, and a 1 px rim (a mask cuts the
   middle out of ::after) with two glints turning round it once every 9 s. Pointing at it adds a second turn, which
   stops where it is when you leave, so the glints never jump. The working spinner takes ::after's place; Needs you's
   bell is its ::before */
@property --btn-fill { syntax: '<color>'; inherits: false; initial-value: transparent; }
@property --bw-glint-turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --bw-glint-rush { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bw-btn::after {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from calc(var(--bw-glint-turn) + var(--bw-glint-rush)), var(--btn-glint), transparent 5% 40%, var(--btn-glint) 50%, transparent 60% 95%, var(--btn-glint)), var(--btn-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: bw-glint 9s linear infinite, bw-glint-rush 9s linear infinite paused; transition: opacity var(--fast);
}
@keyframes bw-glint { to { --bw-glint-turn: 360deg; } }
@keyframes bw-glint-rush { to { --bw-glint-rush: 360deg; } }
.bw-btn.s { height: 28px; padding: 0 10px; border-radius: var(--r-s); font-size: var(--t-small); }
.bw-btn.l { height: 40px; padding: 0 18px; border-radius: var(--r-l); font-size: 14px; }
.bw-btn.xl { height: 44px; padding: 0 20px; border-radius: var(--r-l); font-size: var(--t-heading); }
.bw-btn.full { width: 100%; }
/* row: one place to go in a list of them, as a phone menu's links: full width, left-aligned, 52 high, phone-sized type */
.bw-btn.row { width: 100%; height: 52px; justify-content: flex-start; padding: 0 16px; border-radius: var(--r-tile); font-size: 17px; }
/* the kinds. Solid (Primary, Needs you, Danger filled): the solid sheen and the light rim. Glass: frosted, so what's
   behind it shows through blurred; a page's ask, like every Request access. Line: clear, its edge the rim. Secondary:
   the light fill. Quiet and Danger are bare until you point at them, then glass */
.bw-primary { --btn-fill: var(--primary); --btn-sheen: var(--solid-sheen); --btn-rim: var(--solid-rim); --btn-glint: var(--solid-glint); color: var(--on-primary); }
.bw-glass { --btn-fill: var(--glass-tint); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
.bw-line { --btn-rim: var(--outline); }
.bw-secondary { --btn-fill: var(--secondary); }
.bw-gold { --btn-fill: var(--gold); --btn-sheen: var(--solid-sheen); --btn-rim: var(--solid-rim); --btn-glint: var(--solid-glint); color: var(--gold-ink-solid); font-weight: 600; }
.bw-gold::before { content: ""; width: 1.3em; height: 1.3em; flex: none; background: url(/assets/mark-black.webp) center / contain no-repeat; }   /* the mark in black: brass would sink into the gold */
.bw-danger-fill { --btn-fill: var(--rust); --btn-sheen: var(--solid-sheen); --btn-rim: var(--solid-rim); --btn-glint: var(--solid-glint); color: var(--on-rust); }
.bw-quiet, .bw-danger { background: none; box-shadow: none; }
.bw-quiet::after, .bw-danger::after { opacity: 0; }
.bw-quiet { color: var(--text-2); }
.bw-danger { color: var(--rust); }
/* a quiet button that marks where you are (the site header's links) or what's picked (a tab: Connectors' tools) stays
   glass */
.bw-quiet:is([aria-current="page"], [aria-selected="true"]) { --btn-fill: var(--glass-tint); background: var(--btn-sheen), var(--btn-fill); box-shadow: var(--glass-bevel); color: var(--ink); }
.bw-quiet:is([aria-current="page"], [aria-selected="true"])::after { opacity: 1; }
@media (hover: hover) {
  .bw-btn:not(:disabled):not([aria-disabled="true"]):hover::after { animation-play-state: running; }
  .bw-primary:not(:disabled):not([aria-busy="true"]):hover { --btn-fill: var(--primary-hover); }
  .bw-glass:not(:disabled):hover { --btn-fill: var(--glass-tint-hover); }
  .bw-line:not(:disabled):hover { --btn-rim: var(--text-3); }
  .bw-secondary:not(:disabled):hover { --btn-fill: var(--secondary-hover); }
  .bw-quiet:not(:disabled):hover, .bw-danger:not(:disabled):hover { background: var(--btn-sheen), var(--btn-fill); box-shadow: var(--glass-bevel); }
  .bw-quiet:not(:disabled):hover { --btn-fill: var(--glass-tint); color: var(--ink); }
  .bw-danger:not(:disabled):hover { --btn-fill: var(--rust-tint); }
  .bw-quiet:not(:disabled):hover::after, .bw-danger:not(:disabled):hover::after { opacity: 1; }
  .bw-gold:not(:disabled):hover { --btn-fill: var(--gold-hover); }
  .bw-danger-fill:not(:disabled):not([aria-busy="true"]):hover { --btn-fill: color-mix(in srgb, var(--rust) 88%, var(--ink)); }
}
.bw-btn:not(:disabled):not([aria-busy="true"]):active { transform: translateY(.5px); }
.bw-btn:disabled, .bw-btn[aria-disabled="true"] { --btn-fill: var(--line); background: var(--btn-fill); box-shadow: none; color: var(--faint); cursor: not-allowed; }
.bw-btn:disabled::after, .bw-btn[aria-disabled="true"]::after { animation: none; opacity: 0; }
.bw-quiet:disabled, .bw-danger:disabled, .bw-line:disabled { background: none; }
.bw-line:disabled { --btn-rim: var(--line); --btn-glint: var(--line); }
.bw-line:disabled::after { opacity: 1; }
/* still: a picture of a button in a screen of the product shown on a page (the site's walkthrough). Its look at rest,
   glints and all, but nothing answers the pointer: no hand, no hover, no press */
.bw-btn.still { cursor: default; pointer-events: none; }
.bw-iconbtn { width: 32px; padding: 0; }
.bw-iconbtn.s { width: 28px; padding: 0; }
.bw-iconbtn.l { width: 40px; padding: 0; }
.bw-iconbtn.xl { width: 44px; padding: 0; }
/* working: both labels share one cell, so the button keeps the width of the longer one */
.bw-lb { display: grid; }
.bw-lb > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }   /* an icon and its words, spaced as the button spaces them */
.bw-lb > span + span, .bw-btn[aria-busy="true"] .bw-lb > span:first-child { visibility: hidden; }
.bw-btn[aria-busy="true"] .bw-lb > span + span { visibility: visible; }
.bw-btn[aria-busy="true"] { cursor: progress; }
.bw-btn[aria-busy="true"]::after { position: static; inset: auto; width: 12px; height: 12px; padding: 0; opacity: 1; border-radius: 50%; border: 1.75px solid color-mix(in srgb, currentColor 35%, transparent); border-top-color: currentColor; background: none; -webkit-mask: none; mask: none; animation: bw-spin .8s linear infinite; }
@keyframes bw-spin { to { transform: rotate(360deg); } }
/* destructive: confirmed in place. The wrap holds a control over its error line, at the end of a row (.start: at the
   start, for a control that leads its row) */
.bw-confirm-wrap { display: inline-grid; gap: var(--sp-2); justify-items: end; }
.bw-confirm-wrap.start { justify-items: start; }
.bw-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 4px 4px 12px; border-radius: var(--r-l); background: var(--rust-tint); font-size: var(--t-small); }
.bw-confirm > span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- tabs change what you see; a segment changes the scope ---------- */
.bw-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.bw-tabs > :is(a, button) { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: none; color: var(--text-3); font: 500 var(--t-body)/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .bw-tabs > :is(a, button):hover { color: var(--ink); } }
.bw-tabs > [aria-current="page"], .bw-tabs > [aria-selected="true"], .bw-tabs > [aria-pressed="true"] { background: var(--wash); color: var(--ink); }
.bw-tabs .n { font-size: var(--t-small); color: var(--text-3); font-variant-numeric: tabular-nums; }
.bw-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: var(--r-m); background: var(--wash); }
.bw-seg > :is(label, a, button) { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: var(--r-item); background: transparent; color: var(--text-3); font: 500 var(--t-small)/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--fast), color var(--fast); }
.bw-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
@media (hover: hover) { .bw-seg > :is(label, a, button):hover { color: var(--ink); } }
.bw-seg > label:has(input:checked), .bw-seg > [aria-current="page"], .bw-seg > [aria-pressed="true"], .bw-seg > [aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: var(--sh-sel); }
.bw-seg > label:has(input:focus-visible) { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.bw-seg > label:has(input:disabled) { cursor: not-allowed; }
.bw-seg.full { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.bw-seg.full > * { justify-content: center; }
.bw-seg .n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.bw-seg.l { padding: 3px; border-radius: var(--r-l); }
.bw-seg.l > :is(label, a, button) { height: 38px; padding: 0 14px; border-radius: var(--r-s); font-size: var(--t-heading); }
@media (max-width: 900px) { .bw-seg.full.l { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bw-seg.full.l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bw-seg:has(input:disabled) { opacity: .5; }
/* a segment that saves as you pick: "Saved" for two seconds after it, a failed save's reason under it */
.bw-segsave { display: inline-grid; gap: 6px; min-width: 0; }
.bw-segsave-r { display: inline-flex; align-items: center; gap: 10px; }
.bw-segsave .bw-okline { font-weight: 500; }
/* what a segment's choices mean, said once under the rows that offer them */
.bw-legend-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--t-small); letter-spacing: 0; }
.bw-legend-dl > div { display: contents; }
.bw-legend-dl dt { font-weight: 600; }
.bw-legend-dl + :is(.bw-help, .bw-iconline) { margin-top: 12px; }
.bw-legend-dl dd { margin: 0; color: var(--text-3); }

/* The component library (ui.css), part: fields: inputs, choices and the forms they sit in. */

/* ---------- fields ---------- */
.bw-form { display: grid; gap: var(--sp-4); align-content: start; }
/* a row of tags or buttons that wraps */
.bw-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bw-field { display: grid; gap: 6px; min-width: 0; }
.bw-label { font: 500 var(--t-small)/1.3 var(--sans); letter-spacing: 0; color: var(--text-2); }
.bw-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.bw-label-row a { font-size: var(--t-small); color: var(--text-3); }
.bw-help, .bw-err { margin: 0; font: 400 var(--t-small)/1.45 var(--sans); letter-spacing: 0; color: var(--text-3); }
.bw-err { display: flex; align-items: flex-start; gap: 6px; color: var(--rust); }
.bw-err .bw-i { margin-top: 2px; width: 14px; height: 14px; }
.bw-input { width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-m); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font: 400 var(--t-body)/1 var(--sans); transition: box-shadow var(--fast); }
.bw-input::placeholder { color: var(--text-3); opacity: 1; }
/* XL: beside an XL button, for a page's one ask (the site's Request access) */
.bw-input.xl { height: 44px; padding: 0 14px; border-radius: var(--r-l); font-size: var(--t-heading); }
/* the ask: a page's one ask, a work email and its button on one line (the XL field and button); on a phone the
   button drops under the field */
.bw-ask { display: grid; gap: 8px; max-width: 460px; }
.bw-ask-row { display: flex; gap: 8px; }
.bw-ask-row > .bw-input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .bw-ask-row { flex-direction: column; } .bw-ask-row > .bw-input { flex: none; } }   /* in a column, flex: 1 would size the field's height from 0 */
@media (hover: hover) { .bw-input:hover:not(:focus-visible):not(:disabled) { box-shadow: inset 0 0 0 1px var(--edge-hover); } }
.bw-input:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px color-mix(in srgb, var(--ink) 7%, transparent); }
.bw-input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--rust); }
.bw-input:disabled { background: var(--ground); box-shadow: none; color: var(--faint); cursor: not-allowed; }
textarea.bw-input { height: auto; min-height: 64px; padding: 10px 12px; line-height: 1.45; resize: none; }
select.bw-input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366716A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; cursor: pointer; }
.bw-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 10px; border-radius: var(--r-m); background: var(--field); color: var(--text-3); }
.bw-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); }
.bw-search input:focus-visible { outline: none; }   /* the box around it shows the focus */
.bw-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-search input::placeholder { color: var(--text-3); }/* the large search at the top of a directory, on the sheet */
.bw-search.l { gap: 10px; height: 40px; padding: 0 14px; border-radius: var(--r-l); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow var(--fast); }
@media (hover: hover) { .bw-search.l:hover:not(:focus-within) { box-shadow: inset 0 0 0 1px var(--edge-hover); } }
.bw-search.l:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px color-mix(in srgb, var(--ink) 7%, transparent); }
.bw-search.l input { height: 100%; }
.bw-key { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-key); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge), 0 1px 0 var(--edge); color: var(--text-3); font: 500 var(--t-micro)/1 var(--sans); }
.bw-live { margin: 0; min-height: 1.4em; font-size: var(--t-small); }
.bw-live:empty { display: none; }
.bw-okline { display: inline-flex; align-items: center; gap: 6px; color: var(--own); font-size: var(--t-small); }
code.bw-code { padding: 2px 6px; border-radius: var(--r-badge); background: var(--wash); color: var(--ink); }
.bw-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3); }
.bw-inline-form .bw-field { flex: 1 1 260px; }

/* a switch for one setting that's on or off */
.bw-switch { position: relative; width: 30px; height: 18px; flex: none; padding: 2px; border: 0; border-radius: 9px; background: var(--edge); cursor: pointer; transition: background-color var(--fast); }
.bw-switch > span { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--knob); box-shadow: var(--knob-shadow); transition: transform var(--fast) var(--ease); }
.bw-switch[aria-checked="true"] { background: var(--own); }
.bw-switch[aria-checked="true"] > span { transform: translateX(12px); }
.bw-switch:disabled { opacity: .5; cursor: not-allowed; }
.bw-switch[aria-busy="true"] { opacity: .55; }
/* checkbox and radio, drawn on the real input */
.bw-check, .bw-radio { appearance: none; width: 16px; height: 16px; flex: none; margin: 0; border-radius: 4.5px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--faint); cursor: pointer; display: inline-grid; place-items: center; }
.bw-radio { border-radius: 50%; }
.bw-check:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: none; }
.bw-radio:checked { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-radio:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.bw-check:disabled, .bw-radio:disabled { opacity: .5; cursor: not-allowed; }
/* choice rows: a big radio, its title and one line */
.bw-choices { display: grid; gap: 8px; }
.bw-choice { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 16px; border-radius: var(--r-tile); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; transition: box-shadow var(--fast); }
.bw-choice > .bw-radio, .bw-choice > .bw-check { margin-top: 1.5px; }
.bw-choice b { display: block; font-weight: 600; }
.bw-choice small { display: block; margin-top: 2px; font-size: var(--t-small); line-height: 1.45; color: var(--text-3); letter-spacing: 0; }
.bw-choice .aside { font-size: var(--t-small); color: var(--text-3); white-space: nowrap; letter-spacing: 0; }
.bw-choice .aside.good { color: var(--own); font-weight: 600; }
@media (hover: hover) { .bw-choice:hover { box-shadow: inset 0 0 0 1px var(--edge-hover); } }
.bw-choice:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-choice:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.bw-choice:has(input:focus-visible) { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.bw-choice input:focus-visible { outline: none; }
/* say it: a large field that holds its own button */
.bw-prompt { margin-top: 24px; border-radius: var(--r-pop); background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-raised); }
.bw-prompt textarea { display: block; width: 100%; min-height: 84px; padding: 18px 20px 4px; border: 0; border-radius: var(--r-pop); outline: none; background: none; font: 500 19px/1.4 var(--sans); letter-spacing: -.015em; color: var(--ink); resize: none; }
.bw-prompt textarea::placeholder { color: var(--text-3); opacity: 1; }
.bw-prompt textarea:focus-visible { outline: none; }
.bw-prompt > div { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 12px 12px 20px; }
/* at the start of its box it sits at the top; a note in its foot (what happens next) sits at the left, by the words */
.bw-prompt:first-child { margin-top: 0; }
.bw-prompt > div > p { flex: 1; min-width: 0; }
/* docked: once a conversation starts, the prompt sits at the foot of the page on one line, its button beside it */
.bw-prompt.dock { display: flex; align-items: flex-end; gap: 8px; margin-top: 0; padding: 8px 8px 8px 18px; }
.bw-prompt.dock textarea { flex: 1; min-height: 40px; max-height: 160px; padding: 9px 0; font-size: var(--t-heading); line-height: 1.45; letter-spacing: -.012em; field-sizing: content; }
.bw-prompt.dock > div { padding: 0; }

/* a conversation on a focus page (the new loop): the thread fills in down the column, the docked prompt stays at the
   foot of the window; before the first message, the large prompt sits in the middle on its own */
.bw-focus-sheet:has(> .bw-chat) { display: flex; flex-direction: column; padding-bottom: 0; }
.bw-chat { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 720px; margin: 0 auto; }
.bw-chat-thread { flex: 1; display: flex; flex-direction: column; gap: 20px; padding-bottom: 24px; }
.bw-chat.start .bw-chat-thread { justify-content: center; padding-bottom: 12vh; }
.bw-chat.start h1 { text-align: center; font: 600 var(--t-title)/1.1 var(--sans); letter-spacing: -.032em; }
.bw-chat.start .bw-bells-next { justify-content: center; margin-top: 16px; }
.bw-chat-dock { position: sticky; bottom: 0; padding: 12px 0 20px; background: var(--sheet); }
.bw-chat-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
/* numbers to choose, as cards: the name, its value and tools, a sparkline; the chosen one has an ink ring */
.bw-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; }
.bw-options.list { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 24px; }
.bw-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-tile); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); text-align: left; cursor: pointer; transition: box-shadow var(--fast); }
.bw-options.list .bw-option { align-items: center; }
@media (hover: hover) { .bw-option:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--edge-hover); } }
.bw-option[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-option:disabled { cursor: not-allowed; color: var(--text-3); }
.bw-option > span:first-child { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.bw-option b { display: block; font-weight: 600; }
.bw-option .v { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.bw-option .num { font: 600 var(--t-heading)/1.2 var(--sans); letter-spacing: -.012em; }
.bw-option .none { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-option .bw-spark { width: 112px; }
.bw-group-h + .bw-options { margin-top: 10px; }
/* a field with its own Add button, beside quick picks */
.bw-addfield { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: var(--r-m); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); }
.bw-addfield:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-addfield input { width: 190px; min-width: 0; border: 0; outline: none; background: none; }
.bw-addfield input::placeholder { color: var(--text-3); opacity: 1; }
.bw-addfield input:focus-visible { outline: none; }

/* The component library (ui.css), part: marks, badges, numbers and the data parts. */

/* ---------- marks (§5): round is a state now, square is a result ---------- */
.bw-mk { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--leaf); vertical-align: middle; }
.bw-mk.sm { width: 6px; height: 6px; }
.bw-mk.live { background: var(--leaf); }
.bw-mk.first { background: var(--gold); }
.bw-mk.need { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-mk.test { background: conic-gradient(var(--own) 0 calc(var(--p, 50) * 1%), var(--sheet) 0); box-shadow: inset 0 0 0 1.5px var(--own); }
.bw-mk.sm.test { box-shadow: inset 0 0 0 1.25px var(--own); }
.bw-mk.setup { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.bw-mk.sm.setup, .bw-mk.sm.need { box-shadow: inset 0 0 0 1.25px var(--faint); }
.bw-mk.sm.need { box-shadow: inset 0 0 0 1.25px var(--ink); }
.bw-mk.paused { background: var(--held); }
.bw-mk.broken { background: var(--rust); }
.bw-mk.sq { border-radius: 2px; }
.bw-mk.helped { background: var(--own); }
.bw-mk.flat { background: var(--moss); }
.bw-mk.undone { background: var(--rust); }
.bw-mk.waiting { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-mk.waiting.first { background: var(--gold); box-shadow: none; }
.bw-mk.moved { border-radius: 2px; background: var(--ink); }
/* a state in words, with its mark: "● Live"; gold when it's the thing that needs you */
.bw-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--text-2); }
.bw-status.gold { color: var(--gold-ink); }

/* ---------- badges ---------- */
.bw-delta { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: var(--r-badge); background: var(--wash); color: var(--text-2); font: 600 var(--t-small)/1 var(--sans); letter-spacing: 0; white-space: nowrap; }
.bw-delta.good { background: var(--g-tint); color: var(--own); }
.bw-delta.bad { background: var(--rust-tint); color: var(--rust); }
.bw-delta.wait { background: var(--gold-tint); color: var(--gold-ink); }
.bw-delta.ink { background: var(--ink); color: var(--sheet); }
.bw-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: var(--r-badge); background: var(--wash); color: var(--text-2); font: 500 var(--t-small)/1 var(--sans); letter-spacing: 0; white-space: nowrap; text-decoration: none; }
a.bw-tag { color: var(--ink); transition: background-color var(--fast); }
.bw-tag .bw-i { color: var(--text-3); }
/* something you added: forest, with its own remove button */
.bw-tag.added { gap: 2px; height: 28px; padding: 0 2px 0 10px; border-radius: var(--r-s); background: var(--g-tint); color: var(--own); font-size: var(--t-body); }
.bw-tag.added button { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--r-item); background: none; color: inherit; cursor: pointer; }
.bw-tag.added .bw-i { color: inherit; }
@media (hover: hover) { .bw-tag.added button:hover { background: color-mix(in srgb, var(--own) 12%, transparent); } }
@media (hover: hover) { a.bw-tag:hover { background: var(--wash-hover); } }
.bw-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-badge); background: var(--pill); color: var(--ink); font: 600 var(--t-micro)/1 var(--sans); letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* ---------- numbers ---------- */
.bw-number > .k { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-number > .bw-display { margin-top: 4px; }
.bw-number > .d { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.bw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-6); }
/* four: always four across (a month's four results), two by two on a phone */
.bw-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .bw-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bw-stats + .bw-stack { margin-top: 14px; }
.bw-stat dt { display: flex; align-items: center; gap: 7px; font-size: var(--t-small); color: var(--text-2); letter-spacing: 0; }
.bw-stat dd:nth-of-type(1) { margin-top: 4px; font: 600 var(--t-title)/1.1 var(--sans); letter-spacing: -.032em; }
.bw-stat dd:nth-of-type(2) { margin-top: 2px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--sp-3); }
.bw-figures dt { font-size: 12px; color: var(--text-3); letter-spacing: 0; }
.bw-figures dd { margin-top: 2px; font: 600 var(--t-figure)/1.15 var(--sans); letter-spacing: -.025em; }
.bw-figures dd.good { color: var(--own); }
.bw-figures dd.bad { color: var(--rust); }
/* engraved: a number cut in metal as fine horizontal lines, the way the bell is drawn. --gap is the colour behind
   it (the ground, or the sheet in a screen); --ln and --pd set the line and its pitch for the size */
.bw-eng { --gap: var(--ground); display: inline-block; padding-right: .05em; background: repeating-linear-gradient(180deg, transparent 0 var(--ln, 2px), var(--gap) var(--ln, 2px) var(--pd, 3.1px)), var(--engrave); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 300; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bw-screen .bw-eng { --gap: var(--sheet); }
/* how many: a count engraved, and what it counts beside it, their feet on one line (the site's Tools: "21 tools only
   read, …") */
.bw-howmany { display: flex; align-items: flex-end; gap: 14px; }
.bw-howmany > .bw-eng { flex: none; font-size: 92px; line-height: .78; --ln: 1.8px; --pd: 2.8px; }
.bw-howmany > span:last-child { max-width: 16em; padding-bottom: 3px; color: var(--text-2); font-size: var(--t-heading); line-height: 1.35; letter-spacing: -.012em; }
/* a month in one number: the count engraved, what it counts under it, then the month beside it */
.bw-tally { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: end; }
.bw-tally > p > .bw-eng { display: block; font-size: clamp(104px, 11.5vw, 160px); line-height: .78; --ln: 2px; --pd: 3.1px; }
.bw-tally > p > small { display: block; margin-top: 12px; font-size: 14px; color: var(--text-3); }
@media (max-width: 760px) { .bw-tally { grid-template-columns: minmax(0, 1fr); } }

/* ---------- data parts ---------- */
/* how sure: three rising bars and the word */
.bw-sure { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--t-small)/1 var(--sans); letter-spacing: 0; }
.bw-sure > i { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bw-sure > i > b { width: 4px; border-radius: 1.5px; background: var(--edge); }
.bw-sure > i > b:nth-child(1) { height: 6px; }
.bw-sure > i > b:nth-child(2) { height: 9px; }
.bw-sure > i > b:nth-child(3) { height: 12px; }
.bw-sure > i > b.on { background: var(--own); }
/* with and without: the core of every test */
.bw-ww { display: grid; grid-template-columns: 124px minmax(0, 1fr) 60px; gap: 10px 12px; align-items: center; }
.bw-ww > .t { position: relative; height: 10px; border-radius: 5px; background: var(--dither); overflow: hidden; }
.bw-ww > .t > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--faint); }
.bw-ww > .t > i.helped { background: var(--own); }
.bw-ww > .t > i.worse { background: var(--rust); }
.bw-ww > .v { text-align: right; font: 600 var(--t-heading)/1 var(--sans); }
/* a test's days */
.bw-days { display: flex; gap: 2px; height: 6px; }
.bw-days > i { flex: 1; border-radius: 3px; background: var(--track); }
.bw-days > i.done { background: var(--own); }
.bw-days > i.today { background: var(--dither-held); }
/* a flow's steps, tracked or not: leaf when counted, dither until then */
.bw-segs { display: flex; gap: 3px; }
.bw-segs > i { width: 28px; height: 6px; border-radius: 3px; background: var(--dither); box-shadow: inset 0 0 0 1px var(--edge); }
.bw-segs > i.on { background: var(--leaf); box-shadow: none; }
.bw-segs + p { margin-top: 6px; font-size: var(--t-small); font-weight: 500; color: var(--text-2); letter-spacing: 0; }
/* the numbers watched, one cell each */
.bw-cells { display: flex; flex-wrap: wrap; gap: 2px; margin: 3px 0 8px; }
.bw-cells > i { width: 5px; height: 14px; border-radius: 1.5px; background: var(--moss); }
/* a week still to count, a dithered cell a day */
.bw-week { display: flex; gap: 3px; margin-top: 8px; }
.bw-week > i { flex: 1; max-width: 30px; height: 18px; border-radius: 4px; background: repeating-conic-gradient(var(--edge) 0 25%, var(--sheet) 0 50%) 0 0 / 4px 4px; }
/* who sees it */
.bw-who { display: flex; gap: 2px; height: 6px; }
.bw-who > i { border-radius: 3px; }
.bw-who > i.on { background: var(--ink); }
.bw-who > i.off { background: var(--track); }
.bw-who > i.held { background: var(--dither-held); }
/* the watched strip: nothing else got worse */
/* a tool, as its logo and its name: the bare mark inline, on a hairline tile when large. Without a logo, a two-letter
   chip. A dark mark swaps for its white one on dark grounds. */
.bw-tool { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; white-space: nowrap; }
.bw-tool > i { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: var(--r-key); background: var(--wash); color: var(--text-2); font: 600 9.5px/1 var(--sans); font-style: normal; letter-spacing: 0; }
.bw-tool.lg > i { width: 28px; height: 28px; border-radius: var(--r-s); font-size: 11px; }
.bw-tool > i.logo { background: var(--logo-light) center / 15px 15px no-repeat; }
.bw-tool.lg > i.logo { background-color: var(--sheet); background-size: 17px 17px; box-shadow: inset 0 0 0 1px var(--edge); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bw-tool > i.logo { background-image: var(--logo-dark); }
}
:root[data-theme="dark"] .bw-tool > i.logo { background-image: var(--logo-dark); }
.bw-tools { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
/* who saw a change, under with and without: the label, the bar, what the test was */
.bw-whorow { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bw-whorow > .bw-who { max-width: 280px; }
.bw-whorow > :last-child { grid-column: 2; }
/* a loop setting itself up: its stages, from the plan to the first test, as bars that fill */
.bw-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 12px; }
.bw-stages > li { min-width: 0; }
.bw-stages p { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bw-stages b { font-weight: 600; }
.bw-stages p > span { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; white-space: nowrap; }
.bw-stages .done p > span { font-weight: 600; color: var(--own); }
.bw-stages .now p > span { font-weight: 600; color: var(--ink); }
.bw-stages .next b { color: var(--text-3); }
.bw-stages .bar { position: relative; display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--dither); overflow: hidden; }
.bw-stages .bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--leaf); }
.bw-stages .done .bar > i { background: var(--own); }
.bw-stages small { display: block; margin-top: 8px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; overflow-wrap: anywhere; }
/* a tool's logo on its own tile: 40 in directory rows and cards, 60 at the top of the tool's page */
.bw-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-l); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text-2); font: 600 13px/1 var(--sans); letter-spacing: 0; }
.bw-tile.lg { width: 60px; height: 60px; border-radius: var(--r-sheet); font-size: 18px; }
.bw-tile > i.logo { width: 22px; height: 22px; background: var(--logo-light) center / contain no-repeat; }
.bw-tile.lg > i.logo { width: 34px; height: 34px; }
.bw-tile.sm { width: 26px; height: 26px; border-radius: var(--r-item); font-size: 10px; }
.bw-tile.sm > i.logo { width: 15px; height: 15px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bw-tile > i.logo { background-image: var(--logo-dark); }
}
:root[data-theme="dark"] .bw-tile > i.logo { background-image: var(--logo-dark); }
.bw-tile > .bw-mk { width: 12px; height: 12px; }
/* a wall of tools: their tiles side by side, 6 apart, wrapping (the site's Tools: every tool that only reads) */
.bw-logos { display: flex; flex-wrap: wrap; gap: 6px; }
/* what someone wrote, as it arrived: a message on the wash */
.bw-said { padding: 9px 13px; border-radius: 4px var(--r-tile) var(--r-tile) var(--r-tile); background: var(--wash); color: var(--ink); font-size: var(--t-heading); line-height: 1.45; letter-spacing: -.012em; }
/* tied together: tools in a row, their lines meeting in the mark under them */
.bw-tie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; width: 100%; max-width: 460px; margin-inline: auto; }
.bw-tie > svg { grid-column: 1 / -1; display: block; width: 100%; height: 28px; overflow: visible; fill: none; stroke: var(--faint); stroke-width: 1.25; }
.bw-tie > .bw-brand-mark { width: 26px; height: 26px; margin-bottom: 4px; color: var(--ink); fill: currentColor; stroke: none; }

/* The component library (ui.css), part: charts. */

/* ---------- charts ---------- */
.bw-spark { display: block; width: 120px; height: 26px; overflow: visible; }
.bw-spark .band { fill: var(--g-tint); }
.bw-spark .line { fill: none; stroke: var(--leaf); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bw-spark-empty { display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--dither); }
/* the funnel: a column per step, its people over it and its tool under it; a ribbon between columns carries the people
   who go on, with the share that does; where most people leave is in ink */
.bw-funnel-box { overflow-x: auto; }
.bw-funnel { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); min-width: 560px; }
.bw-funnel > svg { position: absolute; top: 22px; left: 0; width: 100%; height: 176px; fill: var(--leaf-pale); }
.bw-funnel .step { position: relative; min-width: 0; text-align: center; }
.bw-funnel .step > .n { height: 22px; font: 600 var(--t-body)/22px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bw-funnel .step > .n.pending { font: 600 var(--t-small)/22px var(--sans); letter-spacing: 0; }
.bw-funnel .bar { position: relative; display: flex; align-items: flex-end; width: 42%; height: 176px; margin: 0 auto; border-radius: 5px 5px 0 0; background: var(--dither); }
.bw-funnel .bar > i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--leaf); }
.bw-funnel .bar:is(.adds, .adding) { width: auto; margin: 0 6px; border-radius: var(--r-badge); box-shadow: inset 0 0 0 1px var(--edge); }
.bw-funnel .bar > .pill, .bw-steplist .pill { display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: var(--r-s); background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); font: 600 var(--t-small)/1 var(--sans); letter-spacing: 0; white-space: nowrap; }
.bw-funnel .bar > .pill { position: absolute; left: 8px; right: 8px; bottom: 8px; }
.bw-funnel .bar > .pill > .live { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.bw-funnel .name { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; padding: 0 4px; }
.bw-funnel .name b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.bw-funnel .note { padding: 0 4px; overflow: hidden; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.bw-funnel .rate { position: absolute; transform: translateX(-50%); font: 500 var(--t-small)/1.3 var(--sans); letter-spacing: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bw-funnel .rate.leak { font-weight: 600; color: var(--ink); }
.bw-funnel-rows .pending { font-weight: 500; font-size: var(--t-small); color: var(--text-3); white-space: nowrap; }
/* the funnel on a phone: a row per step */
/* the step list: a loop's steps as rows, each a bar of its share of the first step (StepList) */
.bw-steplist { display: grid; }
.bw-steplist > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 14px; align-items: center; padding: 9px 0 10px; border-top: 1px solid var(--line); }
.bw-steplist > li:first-child { border-top: 0; }
.bw-steplist .n { min-width: 0; line-height: 1.35; }
.bw-steplist .n > b { display: block; font-weight: 600; }
.bw-steplist .n > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-steplist code { font: 400 12px/1.35 var(--mono); }
.bw-steplist .v { display: flex; align-items: center; gap: 10px; }
.bw-steplist .v > b { min-width: 44px; text-align: right; font: 600 var(--t-heading)/1 var(--sans); letter-spacing: -.012em; font-variant-numeric: tabular-nums; }
.bw-steplist .pill { padding: 0 10px; }
.bw-steplist .x { display: flex; }
.bw-steplist .t { grid-column: 1 / 3; position: relative; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--dither); overflow: hidden; }
.bw-steplist .t > i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--leaf); }
.bw-steplist > li.adds .t { box-shadow: inset 0 0 0 1px var(--edge); }
.bw-steplist > li.new { margin: 0 -8px; padding-inline: 8px; border-radius: var(--r-s); background: var(--g-tint); }
.bw-steplist > li.new + li { border-top-color: transparent; }

.bw-funnel-rows { display: none; }
.bw-funnel-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(44px, auto); gap: 6px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.bw-funnel-rows li > b { text-align: right; }
.bw-funnel-rows li:first-child { border-top: 0; }
.bw-funnel-rows .t { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 4px; background: var(--dither); overflow: hidden; }
.bw-funnel-rows .t > i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--leaf); }
@media (max-width: 720px) {
  .bw-funnel-box { display: none; }
  .bw-funnel-rows { display: block; }
}
/* a trend: the line on its usual range, with the changes on a lane below */
.bw-trend { position: relative; padding-right: 48px; }
.bw-trend .plot { position: relative; }
/* room above the plot for the tag that names a day */
.bw-trend.tagged { padding-top: 30px; }
.bw-trend svg { display: block; width: 100%; height: var(--h, 180px); overflow: visible; }
.bw-trend .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bw-trend .band { fill: var(--g-tint); }
.bw-trend .window { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.bw-trend .line { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bw-trend .guide { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; vector-effect: non-scaling-stroke; }
.bw-trend .mark { stroke: var(--rust); stroke-width: 1.25; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
/* the scale's values, in the gutter at the right, each on its gridline */
.bw-trend .y { position: absolute; left: calc(100% + 10px); transform: translateY(-50%); font: 500 var(--t-micro)/1 var(--sans); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* a change, on the line on its day: a square with a ring of the sheet, so the line doesn't run through it */
.bw-trend .pt { position: absolute; display: grid; transform: translate(-50%, -50%); }
.bw-trend .pt .bw-mk { width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--sheet); }
.bw-trend .pt.on .bw-mk { width: 11px; height: 11px; }
.bw-trend .pt.off { opacity: .4; }
.bw-trend .tag { position: absolute; top: -28px; padding: 2px 8px; border-radius: var(--r-badge); background: var(--wash); color: var(--ink); font: 600 12px/1.4 var(--sans); white-space: nowrap; }
.bw-trend .tag.bad { background: var(--rust-tint); color: var(--rust); }
.bw-trend .axis { display: flex; justify-content: space-between; margin-top: 6px; font: 500 var(--t-micro)/1.3 var(--sans); color: var(--text-3); }
.bw-trend .bw-legend { margin-top: 10px; }
.bw-legend .sw { flex: none; width: 14px; height: 10px; border-radius: 2px; }
.bw-legend .sw.band { background: var(--g-tint); }
.bw-legend .sw.usual { background: var(--leaf-pale); }
.bw-legend .sw.line { height: 2px; border-radius: 1px; background: var(--ink); }
.bw-legend .sw.window { background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1px var(--edge); }
/* the month in one bar */
.bw-stack { display: flex; gap: 2px; height: 6px; }
.bw-stack > i { border-radius: 3px; min-width: 3px; }
.bw-stack > i.helped { background: var(--own); }
.bw-stack > i.flat { background: var(--moss); }
.bw-stack > i.undone { background: var(--rust); }
.bw-stack > i.need { background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-stack > i.open { background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--own); }
.bw-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-legend > span { display: inline-flex; align-items: center; gap: 7px; }
/* a split: the same number for two groups, on one scale */
.bw-splitbars { display: grid; grid-template-columns: 104px minmax(0, 1fr) 64px; gap: 10px 12px; align-items: center; }
.bw-splitbars > .t { position: relative; height: 10px; border-radius: 5px; background: var(--dither); overflow: hidden; }
.bw-splitbars > .t > i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--faint); }
.bw-splitbars > .t > i.worse { background: var(--rust); }
.bw-splitbars > .t > i.good { background: var(--own); }
.bw-splitbars > .v { text-align: right; font: 600 var(--t-heading)/1 var(--sans); }
/* errors a minute: a column a minute (its height inline, from the data), rust once they start */
.bw-hits { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.bw-hits > i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--track); }
.bw-hits > i.on { background: var(--rust); }
/* a switched-off flag: the switch, its name and key, and the minutes it was on, on a time line (.bw-onfor: the span
   and its labels placed inline from the data) */
.bw-flagged { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 220px); gap: 14px; align-items: center; }
.bw-flagged > div > b { font-weight: 600; color: var(--ink); }
.bw-flagged > .bw-switch { cursor: default; }
.bw-onfor { position: relative; height: 36px; }
.bw-onfor::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; border-radius: 1px; background: var(--track); }
.bw-onfor > i { position: absolute; top: 11px; height: 10px; border-radius: 3px; background: var(--rust); }
.bw-onfor > span { position: absolute; top: 25px; transform: translateX(-50%); font: 500 var(--t-micro)/1.3 var(--sans); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bw-onfor > b { position: absolute; top: -5px; transform: translateX(-50%); font: 600 var(--t-micro)/1.3 var(--sans); color: var(--rust); white-space: nowrap; }
@media (max-width: 760px) { .bw-flagged { grid-template-columns: auto minmax(0, 1fr); } .bw-onfor { grid-column: 1 / -1; } }

/* The component library (ui.css), part: rows, and the sections they sit in. */

/* ---------- rows ---------- */
/* what needs you: the only rows that float */
.bw-needs { display: grid; gap: 8px; }
.bw-need { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 10px 10px 10px 16px; border-radius: var(--r-tile); background: var(--sheet); box-shadow: var(--sh-raised); }
.bw-need > .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-need > .t b { font-weight: 600; }
.bw-need > .t span { margin-left: 10px; color: var(--text-3); }
.bw-need > .c { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.bw-need > .c b { font-weight: 600; color: var(--ink); }
.bw-need > .c b.good { color: var(--own); }
.bw-need > .c b.bad { color: var(--rust); }
.bw-need > .a { display: flex; gap: 4px; }
.bw-need.flat { box-shadow: none; padding-block: 6px; }
@media (max-width: 900px) {
  .bw-need { grid-template-columns: 8px minmax(0, 1fr); row-gap: 8px; }
  .bw-need > .t { white-space: normal; }
  .bw-need > .t span { display: block; margin: 2px 0 0; }
  .bw-need > .c, .bw-need > .a { grid-column: 2; }
}
/* a table drawn as rows of a grid; headers in 12px sage */
.bw-rows { min-width: 0; }
.bw-rows-box { overflow-x: auto; }
.bw-rows .h, .bw-rows .r { display: grid; grid-template-columns: var(--cols); gap: 16px; align-items: center; }
.bw-rows .h { height: 30px; font-size: 12px; color: var(--text-3); letter-spacing: 0; }
.bw-rows .r { min-height: 52px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; }
.bw-rows .r.tall { min-height: 64px; }
.bw-rows .r.tall .name { align-items: flex-start; }
.bw-rows .r.tall .name > .bw-mk { margin-top: 6px; }
/* right now, in a two-line row: the mark and what's happening over a small line; a running test shows its days */
.bw-rows .right-now { display: grid; gap: 4px; min-width: 0; }
.bw-rows .right-now b { font-weight: 500; }
.bw-rows .right-now small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-rows .right-now > .bw-days { width: 140px; margin-top: 2px; }
.bw-rows .right-now .mk { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; }
.bw-rows .right-now .mk > .bw-mk { margin-top: 6px; }
.bw-rows .right-now .mk > span { min-width: 0; }
@media (hover: hover) { .bw-rows a.r:hover { background: linear-gradient(90deg, transparent, var(--ground) 2%, var(--ground) 98%, transparent); } }
.bw-rows .right { text-align: right; justify-self: end; }
.bw-rows .name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.bw-rows .name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-rows .two { display: grid; gap: 1px; min-width: 0; }
.bw-rows .two > small { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-rows .val { font: 600 var(--t-heading)/1 var(--sans); letter-spacing: -.015em; }
.bw-rows .dim { color: var(--text-3); }
.bw-rows .now { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text-2); }
.bw-rows .now > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-rows .res { display: flex; align-items: center; gap: 9px; }
.bw-rows .res.helped { color: var(--own); font-weight: 500; }
.bw-rows .res.undone { color: var(--rust); font-weight: 500; }
.bw-rows .res.waiting { color: var(--gold-ink); font-weight: 600; }
.bw-rows .res.testing, .bw-rows .res.flat { color: var(--text-2); }
/* a running test: its mark, the change and its loop, then its days and when the result lands */
.bw-testrow { display: grid; gap: 8px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.bw-testrow + .bw-testrow { border-top: 1px solid var(--line); }
.bw-testrow > .t { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bw-testrow > .t b { font-weight: 600; }
.bw-testrow > .bw-days, .bw-testrow > .bw-meta { margin-left: 18px; }
@media (hover: hover) { .bw-testrow:hover > .t b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--edge); } }
/* results, newest first: a square mark, the change and what happened, and when */
.bw-results { display: grid; }
.bw-results a { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--ink); text-decoration: none; }
.bw-results .bw-mk { transform: translateY(-1px); }
.bw-results b { display: block; font-weight: 500; }
.bw-results small { display: block; font-size: var(--t-small); line-height: 1.45; letter-spacing: 0; }
@media (hover: hover) { .bw-results a:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--edge); } }
/* numbers to pick from, as cards: the name over its plain line */
.bw-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bw-pick { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border-radius: var(--r-tile); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); text-decoration: none; transition: box-shadow var(--fast); }
.bw-pick b { font-weight: 600; }
.bw-pick span { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
@media (hover: hover) { .bw-pick:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
/* a call-out on ground: a sentence and its one action, side by side */
.bw-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 14px 14px 18px; border-radius: var(--r-tile); background: var(--ground); }
.bw-callout > span { flex: 1 1 320px; color: var(--text-2); }
.bw-callout b { font-weight: 600; color: var(--ink); }
/* raised: on the page's own ground, where ground wouldn't show, it's a sheet (the site's Connectors) */
.bw-callout.raised { background: var(--sheet); box-shadow: var(--sh-sheet); }
.bw-group-h { margin: var(--sp-8) 0 2px; font: 500 12px/1 var(--sans); letter-spacing: 0; color: var(--text-3); }
.bw-group-h:first-child { margin-top: 0; }
/* evidence: a tool and what it showed */
.bw-ev { display: grid; }
.bw-ev > li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; }
/* steps: a real sequence, so numbered */
.bw-steps { display: grid; }
.bw-steps > li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 5px 0; color: var(--text-2); }
.bw-steps > li > b { font: 400 12px/1 var(--sans); color: var(--text-3); font-variant-numeric: tabular-nums; }
/* a timeline: done, now, to come */
.bw-timeline { display: grid; }
.bw-timeline > li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.bw-timeline > li:last-child { padding-bottom: 0; }
.bw-timeline > li::before { content: ""; position: absolute; left: 7.25px; top: 18px; bottom: 0; width: 1.5px; background: var(--edge); }
.bw-timeline > li:last-child::before { display: none; }
.bw-timeline .node { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--edge); color: var(--sheet); }
.bw-timeline .node .bw-i { stroke-width: 3; }   /* the done tick, heavy enough to read at 12 */
.bw-timeline .done .node { background: var(--own); box-shadow: none; }
.bw-timeline .now .node { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-timeline .now .node::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.bw-timeline b { display: block; font-weight: 600; }
.bw-timeline .next b { font-weight: 500; color: var(--text-3); }
.bw-timeline small { display: block; margin-top: 1px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
/* a short list on hairlines: each line holds its content and its actions, and wraps on a phone */
.bw-lines { display: grid; }
.bw-lines > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.bw-lines > li:first-child { border-top: 0; padding-top: 0; }
.bw-lines + .bw-inline-form { margin-top: 14px; }
.bw-lines.spread > li { justify-content: space-between; }
/* a caption under a chart or a bar */
.bw-caption { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
/* a line led by its icon: what always asks first */
.bw-iconline { display: flex; align-items: center; gap: 8px; font-size: var(--t-small); letter-spacing: 0; color: var(--text-2); }
.bw-iconline .bw-i { flex: none; color: var(--text-3); }
/* tags and tools in a line, after a small label */
.bw-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; }
.bw-tags:first-child { margin-top: 0; }
.bw-tags > .k { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
/* buttons in a row, under what they act on */
.bw-buttons { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 14px; }
/* a title over its line */
.bw-two { display: grid; gap: 2px; }
.bw-two b { font-weight: 600; }
/* a line led by a mark: a number that moved, and why */
.bw-marked { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; align-items: baseline; margin-top: 12px; color: var(--text-2); }
.bw-marked > .bw-mk { transform: translateY(-1px); }
.bw-marked b { font-weight: 600; color: var(--ink); }
/* a flow's steps: the number, the step, its tool and whether it's tracked */
.bw-flowsteps { display: grid; margin-top: 12px; }
.bw-flowsteps > li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 150px; gap: 12px; align-items: center; min-height: 44px; border-top: 1px solid var(--line); }
.bw-flowsteps > li:first-child { border-top: 0; }
.bw-flowsteps .n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bw-flowsteps b { font-weight: 600; }
.bw-flowsteps .state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-flowsteps .state.tracked { color: var(--own); }
@media (max-width: 720px) {
  .bw-flowsteps > li { grid-template-columns: 18px minmax(0, 1fr); padding: 8px 0; }
  .bw-flowsteps > li > :nth-child(n + 3) { grid-column: 2; }
}
.bw-flowsteps + :is(.bw-okline, .bw-err) { margin-top: 12px; }
/* what Bellwether remembers: each thing it learned, over where it learned it */
.bw-memory { display: grid; gap: 12px; }
.bw-memory p { font-weight: 500; }
.bw-memory small { display: block; margin-top: 1px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
/* named points side by side, each on a hairline: what always waits for you */
.bw-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 24px; margin-top: 12px; }
.bw-points > li { padding-top: 10px; border-top: 1px solid var(--line); }
.bw-points b { display: block; font-weight: 600; }
.bw-points small { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
/* a link to copy: its icon, the address cut short, and Copy */
.bw-copyfield { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 32px; padding-left: 10px; border-radius: var(--r-m); background: var(--wash); }
.bw-copyfield > .bw-i { color: var(--text-3); }
.bw-copyfield code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); }
.bw-copyfield .bw-btn { margin-right: 2px; }

/* Snippet: code to paste into a project, in mono on wash, its label above and Copy at its top right */
.bw-snippet { position: relative; display: grid; gap: 6px; margin: 0; min-width: 0; }
.bw-snippet figcaption { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-snippet pre { margin: 0; padding: 12px 84px 12px 14px; border-radius: var(--r-m); background: var(--wash); overflow-x: auto; font: 400 12px/1.7 var(--mono); letter-spacing: 0; color: var(--ink); white-space: pre; }
.bw-snippet > .bw-btn { position: absolute; top: 30px; right: 6px; }
/* a gap: what's missing for this to work, and the way to fill it, on wash */
.bw-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 24px; padding: 16px 16px 16px 18px; border-radius: var(--r-tile); background: var(--wash); }
.bw-gap > .bw-i { flex: none; align-self: flex-start; margin-top: 3px; }
.bw-gap > div:first-of-type { flex: 1 1 320px; min-width: 0; }
.bw-gap h2 { font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
.bw-gap p { margin-top: 2px; color: var(--text-2); }
.bw-gap > .bw-tags { margin-top: 0; }
/* anything else? A question on a hairline, with quick picks and a field to add your own */
.bw-addmore { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.bw-addmore h2 { font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
.bw-addmore h2 + p { margin-top: 2px; color: var(--text-3); }
.bw-addmore > .bw-tags { margin-top: 0; }
.bw-addmore > ul.bw-tags { flex-basis: 100%; }
/* a brief: what something is, as labelled lines between hairlines */
.bw-brief > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 6px 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.bw-brief > div.mid { align-items: center; padding: 10px 0; }
.bw-brief > div:last-child { border-bottom: 1px solid var(--line); }
.bw-brief dt { font-size: var(--t-small); line-height: 1.6; color: var(--text-3); letter-spacing: 0; }
.bw-brief dd { margin: 0; min-width: 0; color: var(--text-2); }
.bw-brief dd > b { display: block; font-weight: 600; color: var(--ink); }
.bw-brief dd > small { display: block; margin-top: 1px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-brief dd.quote { font: 600 var(--t-heading)/1.35 var(--sans); letter-spacing: -.012em; color: var(--ink); }
.bw-brief .bw-segs { margin: 6px 0 8px; }
.bw-brief select { width: auto; max-width: 100%; }
.bw-brief .bw-tech { margin-top: 4px; }
@media (max-width: 560px) { .bw-brief > div { grid-template-columns: minmax(0, 1fr); } }
/* checks: what's included, each line led by a forest tick; the words take the size around them */
.bw-checks { display: grid; gap: 7px; }
.bw-checks > li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; line-height: 1.45; }
.bw-checks .bw-i { margin-top: 2px; color: var(--own); stroke-width: 2.2; }
.bw-checks a { color: inherit; }
/* questions: each a real details whose summary is the question, opening in place under it, between hairlines; the
   chevron turns. The words take the size around them */
.bw-qs { border-top: 1px solid var(--line); }
.bw-qs > details { border-bottom: 1px solid var(--line); }
.bw-qs summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; list-style: none; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; cursor: pointer; }
.bw-qs summary::-webkit-details-marker { display: none; }
.bw-qs summary .bw-i { color: var(--text-3); transition: transform .25s var(--ease), color var(--fast); }
@media (hover: hover) { .bw-qs summary:hover .bw-i { color: var(--ink); } }
.bw-qs details[open] summary .bw-i { transform: rotate(180deg); }
.bw-qs details > p { max-width: 60ch; padding-bottom: 18px; line-height: 1.55; color: var(--text-2); }
.bw-qs a { color: var(--ink); }
/* notes: a few short notes side by side in one box, hairlines between, each an icon in forest, a heading and its
   line; four across, two by two under 1000, one under a line under 640. .two: two notes, side by side until 640 */
.bw-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bw-notes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bw-notes > li { padding: 22px 24px 24px; }
.bw-notes > li + li { border-left: 1px solid var(--line); }
.bw-notes .bw-i { width: 22px; height: 22px; color: var(--own); }
.bw-notes h3 { margin-top: 12px; font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; color: var(--ink); }
.bw-notes p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
@media (max-width: 1000px) {
  .bw-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-notes > li:nth-child(3) { border-left: 0; }
  .bw-notes > li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .bw-notes, .bw-notes.two { grid-template-columns: minmax(0, 1fr); }
  .bw-notes > li { padding: 20px; }
  .bw-notes > li + li { border-left: 0; border-top: 1px solid var(--line); }
}
/* a plan: its name and a badge, who it's for, its price and what it's per, its one action, then what it includes
   (.bw-checks) under a hairline. Plans side by side in one box (.bw-plans) have a hairline between; stacked under 700 */
.bw-plan { display: flex; flex-direction: column; padding: 24px; font-size: 14.5px; line-height: 1.45; }
.bw-plan > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 25px; }
.bw-plan h2, .bw-plan h3 { font: 600 18px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.bw-plan .for { margin-top: 2px; color: var(--text-3); }
.bw-plan .price { margin-top: 18px; font: 600 30px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.bw-plan .per { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--text-3); }
.bw-plan > .bw-btn { margin-top: 18px; }
.bw-plan > .bw-checks { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.bw-plans { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.bw-plans > .bw-plan + .bw-plan { border-left: 1px solid var(--line); }
@media (max-width: 700px) {
  .bw-plans { grid-auto-flow: row; }
  .bw-plans > .bw-plan + .bw-plan { border-left: 0; border-top: 1px solid var(--line); }
}
/* a dial: one setting shown on its own, on ground: its name, its segment across, and what the pick means (Autonomy
   beside a loop's number) */
.bw-dial { padding: 12px 12px 13px; border-radius: var(--r-tile); background: var(--ground); }
.bw-dial > b { display: block; margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.bw-dial > p { margin-top: 10px; font-size: var(--t-small); line-height: 1.45; color: var(--text-3); letter-spacing: 0; }
/* what to do, in order, as cards: a number (a tick when done), the ask, its line, and the way to do it */
.bw-tasks { display: grid; gap: 8px; }
.bw-tasks > li { padding: 16px 18px; border-radius: var(--r-tile); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); }
.bw-tasks > li.now { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-tasks > li.done, .bw-tasks > li.opt { box-shadow: inset 0 0 0 1px var(--line); }
.bw-tasks .h { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bw-tasks .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--edge); font: 600 var(--t-micro)/1 var(--sans); color: var(--text-3); letter-spacing: 0; }
.bw-tasks .now .n { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.bw-tasks .done .n { background: var(--own); box-shadow: none; color: var(--sheet); }
.bw-tasks b { display: block; font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
.bw-tasks small { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-tasks small.inline { display: inline; margin: 0 0 0 4px; font-weight: 400; }
.bw-tasks .bw-tags { margin: 12px 0 0 34px; }
.bw-tasks .bw-btn .bw-tool { color: inherit; }
/* what's waiting on it: a title and how far, a bar, ghost columns where the result will be, a line */
.bw-pending { padding: 22px 24px; border-radius: var(--r-tile); background: var(--ground); }
.bw-pending .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bw-pending .top b { font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
.bw-pending .top span { font-size: var(--t-small); font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.bw-pending .track { display: block; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--sheet); overflow: hidden; }
.bw-pending .track > i { display: block; height: 100%; border-radius: 2px; background: var(--leaf); }
.bw-pending .ghosts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; height: 150px; margin-top: 22px; }
.bw-pending .ghosts > i { display: block; border-radius: var(--r-badge); background: repeating-conic-gradient(var(--edge) 0 25%, var(--sheet) 0 50%) 0 0 / 4px 4px; }
.bw-pending > p:last-child { margin-top: 14px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
/* the last word on a page: one small line on a hairline */
.bw-footnote { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-small); line-height: 1.45; letter-spacing: 0; color: var(--text-3); }
.bw-footnote.tight { margin-top: 8px; padding-top: 12px; }
/* empty: one sentence of state and one action */
.bw-empty { display: grid; gap: 6px; justify-items: start; padding: var(--sp-6) 0; }
.bw-empty > p:first-child { font-weight: 600; }
.bw-empty > p + p { color: var(--text-2); max-width: 60ch; }
.bw-empty > .bw-btn { margin-top: 8px; }
/* loading: the row's own shape in dither, no shimmer */
.bw-skel { display: grid; gap: var(--sp-3); padding-block: var(--sp-2); }
.bw-skel i { display: block; width: var(--w, 100%); height: 12px; border-radius: var(--r-badge); background: var(--dither); }
.bw-skel i.t { height: 22px; }
/* a problem, and the one way to fix it */
.bw-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 10px 10px 14px; border-radius: var(--r-tile); background: var(--rust-tint); }
.bw-banner > p { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; }
.bw-banner .bw-secondary { --btn-fill: var(--sheet); }
/* a note at the top of a page: the sample, an email to verify */
.bw-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 8px 8px 14px; border-radius: var(--r-tile); background: var(--wash); }
.bw-notice > p { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: var(--t-small); line-height: 1.45; letter-spacing: 0; color: var(--text-2); }
.bw-notice > p .bw-i { color: var(--text-3); }
.bw-notice b { font-weight: 600; color: var(--ink); }

/* ---------- sections: a heading (15/600, its count in small sage) with what it holds under it, 40 apart on a page
   (Section). The head alone (.bw-sec-h) heads a column that sits beside another ---------- */
.bw-sec { margin-top: 40px; min-width: 0; }
.bw-sec.first { margin-top: 32px; }
.bw-sec.tight { margin-top: 22px; }
.bw-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.bw-sec-h :is(h2, h3, h4) { display: flex; align-items: baseline; gap: 10px; font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
.bw-sec-h :is(h2, h3, h4) small { font-size: var(--t-small); font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.bw-sec-h > a, .bw-sec-h > span { font-size: var(--t-small); color: var(--text-3); text-decoration: none; letter-spacing: 0; }
@media (hover: hover) { .bw-sec-h > a:hover { color: var(--ink); } }
.bw-sec-h + p { margin-top: -6px; margin-bottom: 12px; color: var(--text-2); }
.bw-sec-h > .a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* The component library (ui.css), part: the directory (things to pick from, one thing's page) and surfaces: screens,
   boxes, columns, page heads. */

/* ---------- directory: things to pick from, two to a line ---------- */
/* at the top: the large search and its tabs, both filtering in place */
.bw-finder { display: grid; gap: 14px; margin-top: 22px; }
.bw-finder > .bw-tabs { justify-self: start; }
/* rows under a section, grouped by what they're for: the group's name, then its line */
.bw-group + .bw-group { margin-top: 20px; }
.bw-group > h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 6px; font-weight: 600; }
.bw-group > h3 span { font-size: var(--t-small); font-weight: 400; letter-spacing: 0; color: var(--text-3); }
/* every group at a glance: each a card on its sheet (its name, its line, its tools down a column), four across, two by
   two under 1000, one to a line under 560 (the site's Connectors) */
.bw-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bw-groups > li { padding: 16px 16px 18px; border-radius: var(--r-tile); background: var(--sheet); box-shadow: var(--sh-sheet); }
.bw-groups b { display: block; font-weight: 600; color: var(--ink); }
.bw-groups small { display: block; margin-top: 2px; font-size: var(--t-small); line-height: 1.4; color: var(--text-3); letter-spacing: 0; }
.bw-groups .bw-tools { display: grid; gap: 7px; margin-top: 14px; }
@media (max-width: 1000px) { .bw-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bw-groups { grid-template-columns: minmax(0, 1fr); } }
/* each row is a link; it lights on hover instead of sitting between lines. The grid's negative margin lines the tiles
   up with the text above. */
.bw-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2px 16px; margin: 0 -12px; }
.bw-item { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bw-item-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-tile); color: var(--ink); text-decoration: none; transition: background-color var(--fast); }
@media (hover: hover) { a.bw-item-a:hover { background: var(--ground); } }
.bw-item-a .t { flex: 1; min-width: 0; display: grid; }
.bw-item-a b { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; }
.bw-item-a b > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-item-a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-item-a small.gold { color: var(--gold-ink); font-weight: 500; }
div.bw-item-a small { white-space: normal; line-height: 1.45; }
.bw-item-a .e { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-item > .bw-btn { margin-right: 12px; }
.bw-add { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: var(--r-s); background: var(--wash); color: var(--ink); }
/* suggestions: soft cards on ground, each saying why */
.bw-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.bw-feature { display: flex; flex-direction: column; align-items: flex-start; height: 100%; min-height: 216px; padding: 16px; border-radius: var(--r-pop); background: var(--ground); color: var(--ink); text-decoration: none; transition: background-color var(--fast); }
@media (hover: hover) { .bw-feature:hover { background: var(--field); } }
.bw-feature .top { display: flex; align-items: center; justify-content: space-between; align-self: stretch; }
.bw-feature .bw-add { background: var(--sheet); }
.bw-feature b { margin-top: 14px; font-weight: 600; }
.bw-feature small { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-feature .why { margin-top: 10px; font-size: var(--t-small); line-height: 1.5; color: var(--text-2); letter-spacing: 0; }
.bw-feature .foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 14px; font: 500 var(--t-small)/1.3 var(--sans); color: var(--text-2); letter-spacing: 0; }
/* one thing's page: the large tile on its own line, then name and line with the actions at the right */
.bw-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px 20px; }
.bw-detail-head > .bw-tile { grid-column: 1 / -1; }
.bw-detail-head :is(h1, h2, h3) { font: 600 var(--t-figure)/1.2 var(--sans); letter-spacing: -.025em; }
.bw-detail-head p { margin-top: 4px; color: var(--text-3); }
.bw-detail-head .a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bw-detail-head .a > .bw-status { height: 32px; padding: 0 6px; }
/* about: what the thing is, in a paragraph of its own */
.bw-about { color: var(--text-2); line-height: 1.6; }
@media (max-width: 767px) {
  .bw-detail-head { grid-template-columns: minmax(0, 1fr); }
}
/* ideas: what it helps with, as cards on a soft band of the pasture's green and gold; each card starts one */
.bw-ideas { display: grid; justify-items: center; gap: 12px; padding: 44px 20px; border-radius: var(--r-sheet); background: radial-gradient(90% 130% at 0% 0%, var(--leaf-pale), transparent 62%), radial-gradient(80% 120% at 100% 100%, var(--gold-tint), transparent 58%), var(--wash); }
.bw-ideas > li { width: min(100%, 520px); }
.bw-idea { display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 16px; border-radius: var(--r-pop); background: color-mix(in srgb, var(--sheet) 84%, transparent); box-shadow: var(--sh-sel); color: var(--ink); text-decoration: none; transition: background-color var(--fast), box-shadow var(--fast); }
@media (hover: hover) { .bw-idea:hover { background: var(--sheet); box-shadow: var(--sh-raised); } }
.bw-idea .t { flex: 1; min-width: 0; line-height: 1.5; }
.bw-idea .t > .bw-tool { margin-right: 2px; vertical-align: -4px; font-size: inherit; font-weight: 600; color: var(--ink); letter-spacing: inherit; }
.bw-idea .go { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--wash); color: var(--ink); transition: background-color var(--fast); }
@media (hover: hover) { .bw-idea:hover .go { background: var(--field); } }
/* facts: label and value, one to a line */
.bw-facts { display: grid; gap: 12px; margin: 0; }
.bw-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.bw-facts dt { color: var(--text-3); }
.bw-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; min-width: 0; margin: 0; }
.bw-facts dd a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.bw-facts dd a .bw-i { color: var(--text-3); }
@media (max-width: 767px) {
  .bw-facts > div { grid-template-columns: 112px minmax(0, 1fr); }
}

/* ---------- surfaces ---------- */
/* a screen: one screen of the product shown on a page, on the sheet, its edge engraved twice (a hairline, and a
   finer one 6px inside). .bw-screen-h is its top line: what it is at the left, a time or a state at the right */
.bw-screen { min-width: 0; padding: 14px 16px; border-radius: var(--r-sheet); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge), inset 0 0 0 5px var(--sheet), inset 0 0 0 6px var(--line); color: var(--text-2); font-size: var(--t-body); line-height: 1.5; letter-spacing: -.008em; }
.bw-screen-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.bw-screen-h > b { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
/* a plate: an engraved frame, a hairline 7px out from what it holds */
.bw-plate { padding: 7px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--edge); }
/* a box: one object set on a page (a plan, the connectors, a form, a swatch), on the sheet with the sheet's shadow.
   It clips what it holds, so a part can run to its edges; .bw-box-b is a padded body (its parts 24 apart; a second
   body runs on from the first), .bw-box-f its foot: the one line everything above it shares, on the wash, led by an
   icon in forest, or a name with its action at the right */
.bw-box { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r-sheet); background: var(--sheet); box-shadow: var(--sh-sheet); }
.bw-box-b { display: grid; gap: 24px; align-content: start; padding: 24px; }
.bw-box-b > * { margin-block: 0; }
.bw-box-b + .bw-box-b { padding-top: 0; }
.bw-box-f { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--wash); font-size: var(--t-body); line-height: 1.45; color: var(--text-2); }
.bw-box-f > :is(span, b) { flex: 1; min-width: 0; }
.bw-box-f > b { align-self: center; font-weight: 600; color: var(--ink); }
.bw-box-f > .bw-i { color: var(--own); }
.bw-box-f a:not(.bw-btn) { color: var(--ink); white-space: nowrap; }
@media (max-width: 700px) { .bw-box-b { padding: 20px; } .bw-box-f { align-items: flex-start; padding: 14px 20px; } }
/* side by side: two, three (.three) or four (.four, two by two under 1000); stacked below 760px (four, below 560).
   .bw-vstack: one under another, 12px apart */
.bw-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bw-cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bw-cols.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .bw-cols.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bw-cols, .bw-cols.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .bw-cols.four { grid-template-columns: minmax(0, 1fr); } }
.bw-vstack { display: grid; gap: 12px; align-content: start; }
.bw-vstack > * { margin-block: 0; }   /* the stack sets the space: a part's own margin (a caption's, a row of buttons') doesn't add to it */
/* a labelled row: the label at the left (an engraved number, a name, its one line), the matter at the right, on a
   hairline; stacked below 1000px. .step has more air, for a walkthrough */
.bw-labelled { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 16px clamp(28px, 6vw, 84px); padding-block: 26px 30px; border-top: 1px solid var(--line); }
.bw-labelled.step { padding-block: 46px 52px; }
.bw-labelled > header > :is(h2, h3) { font: 400 clamp(21px, 2.1vw, 30px)/1.05 var(--sans); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.bw-labelled > header > p { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.bw-labelled > header > .bw-eng { display: block; width: max-content; margin-bottom: 10px; font-size: 40px; line-height: .8; --ln: 1.3px; --pd: 2.1px; }
.bw-labelled > div { min-width: 0; }
@media (max-width: 1000px) { .bw-labelled { grid-template-columns: minmax(0, 1fr); } .bw-labelled.step { padding-block: 32px 36px; } }
/* a page's head: a small line (the date), the title, a line under it, and its actions at the right */
.bw-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.bw-pagehead > div:first-child { min-width: 0; max-width: 720px; }
.bw-pagehead .k { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-pagehead h1 { margin-top: 3px; font: 600 var(--t-title)/1.1 var(--sans); letter-spacing: -.032em; }
.bw-pagehead h1 small { margin-left: 8px; font-size: var(--t-title); font-weight: 500; color: var(--text-3); }
.bw-pagehead h1 + p { margin-top: 8px; color: var(--text-2); }
.bw-pagehead .a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bw-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
.bw-drawer { position: fixed; z-index: 41; top: 8px; right: 8px; bottom: 8px; width: min(420px, calc(100vw - 16px)); display: flex; flex-direction: column; border-radius: var(--r-pop); background: var(--sheet); box-shadow: var(--sh-overlay); }
.bw-drawer-b { flex: 1; overflow-y: auto; padding: 18px 22px 12px; }
.bw-drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bw-drawer-st { display: inline-flex; align-items: center; gap: 7px; font: 600 var(--t-small)/1 var(--sans); letter-spacing: 0; }
.bw-drawer-st.first { color: var(--gold-ink); }
.bw-drawer-st span { font-weight: 400; color: var(--text-3); }
.bw-drawer h2 { margin-top: 12px; font: 600 var(--t-figure)/1.15 var(--sans); letter-spacing: -.025em; }
.bw-drawer h2 + p { margin-top: 6px; color: var(--text-2); }
.bw-drawer .bw-figures { margin-top: 18px; }
.bw-drawer h3 { margin: 22px 0 4px; font: 500 var(--t-small)/1.3 var(--sans); letter-spacing: 0; color: var(--text-3); }
/* in a drawer: a chart under its label sits 10 below it, the switched-off flag keeps its line under the name, and what
   was decided sits 16 under the summary */
.bw-drawer h3 + :is(.bw-flagged, .bw-hits) { margin-top: 10px; }
.bw-drawer .bw-flagged { grid-template-columns: auto minmax(0, 1fr); }
.bw-drawer .bw-onfor { grid-column: 1 / -1; }
.bw-drawer-b > .bw-trend { margin-top: 18px; }
.bw-drawer-b > .bw-okline { margin-top: 16px; }
/* a question in a drawer: the question, its hint, the choice rows, your own words, and what happens to the answer */
.bw-question { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.bw-question > legend { padding: 0; font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
.bw-question > legend + .bw-meta { margin-top: 2px; }
.bw-question > .bw-choices { margin-top: 12px; }
.bw-question > .bw-field { margin-top: 14px; }
.bw-question > .bw-help { margin-top: 10px; }
.bw-drawer-f { display: grid; gap: 6px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.bw-drawer-f > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bw-tech { margin-top: 12px; }
.bw-tech > button { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: var(--r-s); background: none; color: var(--text-3); font: 500 var(--t-small)/1 var(--sans); letter-spacing: 0; cursor: pointer; }
.bw-tech > button[aria-expanded="true"] .bw-i { transform: rotate(180deg); }
.bw-tech-b { margin-top: 6px; display: grid; gap: 8px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-tech-b ul { display: grid; gap: 4px; }
.bw-diff { border-radius: var(--r-m); overflow: hidden; font: 400 12px/1.7 var(--mono); letter-spacing: 0; }
.bw-diff p { padding: 2px 12px; color: var(--text-2); white-space: pre-wrap; }
/* its file, when it shows one: the name at the left, what it touches (+1 −1, a line) at the right, on the ground */
.bw-diff > header { display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px; background: var(--ground); color: var(--text-3); }
.bw-diff .del { background: var(--rust-tint); }
.bw-diff .add { background: var(--g-tint); }
.bw-diff .del span { color: var(--rust); }
.bw-diff .add span { color: var(--own); }
@media (max-width: 767px) {
  .bw-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100dvh - 56px); border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
  .bw-drawer::before { content: ""; align-self: center; width: 36px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--edge); }
  .bw-drawer-f .bw-btn { height: 44px; border-radius: var(--r-l); font-size: var(--t-heading); }   /* the XL size, for a thumb */
}
.bw-dialog { width: min(400px, calc(100vw - 32px)); padding: 22px; border: 0; border-radius: var(--r-pop); background: var(--sheet); color: var(--ink); box-shadow: var(--sh-overlay); }
.bw-dialog::backdrop { background: var(--scrim); }
.bw-dialog h2 { font: 600 17px/1.3 var(--sans); letter-spacing: -.015em; }
.bw-dialog p { margin-top: 6px; color: var(--text-2); }
.bw-dialog footer { display: flex; justify-content: flex-end; gap: 6px; margin-top: 18px; }
.bw-dialog .bw-form { margin-top: 0; }
.bw-dialog .bw-form footer { margin-top: 2px; }
.bw-input.bw-area { height: auto; padding: 9px 12px; line-height: 1.45; resize: vertical; }
.bw-input.bw-area.xl { padding: 11px 14px; }   /* lines its words up with the XL fields beside it */
.bw-ask-ok { display: flex; align-items: flex-start; gap: 8px; }
.bw-ask-ok .bw-i { flex: none; margin-top: 2px; color: var(--leaf); }
.bw-ask-ok b { font-weight: 600; color: var(--ink); }
/* XL: in an XL ask's place once it's sent (the site's Request access), 44 tall like the ask, so nothing under it moves */
.bw-ask-ok.xl { align-items: center; gap: 10px; min-height: 44px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.bw-ask-ok.xl .bw-i { width: 20px; height: 20px; margin-top: 0; }
.bw-menu { margin: 6px 0 0; padding: 5px; border-radius: var(--r-tile); background: var(--sheet); box-shadow: var(--sh-overlay); }
.bw-menu li > a, .bw-menu li > button { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 9px; border: 0; border-radius: var(--r-item); background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.bw-menu li > a > span, .bw-menu li > button > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .bw-menu li > :is(a, button):hover { background: var(--ground); } }
.bw-menu .bw-i { color: var(--text-3); }
.bw-menu hr { margin: 4px -5px; border: 0; border-top: 1px solid var(--line); }
.bw-menu .danger { color: var(--rust); }
.bw-menu .bw-key { flex: none; }
@media (hover: none) { .bw-menu-keys { display: none; } }   /* no keyboard on a phone */
/* the keyboard shortcuts card: holding ⌘ shows it in the middle of the window, over everything, and lets every press
   through (data-peek); ⌘/ or your menu keep it up */
.bw-shortcuts { position: fixed; z-index: 70; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(300px, calc(100vw - 32px)); padding: 5px; border-radius: var(--r-pop); background: var(--sheet); box-shadow: var(--sh-overlay); animation: bw-shortcuts-in var(--fast) ease-out; }
.bw-shortcuts[data-peek] { pointer-events: none; }
.bw-shortcuts > p { padding: 7px 9px 4px; font: 500 var(--t-micro)/1.3 var(--sans); color: var(--text-3); }
.bw-shortcuts ul { list-style: none; }
.bw-shortcuts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 32px; padding: 0 9px; color: var(--ink); }
@keyframes bw-shortcuts-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.97); } }
.bw-toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: var(--r-tile); background: var(--ink); color: var(--sheet); box-shadow: var(--sh-overlay); }
.bw-toast .bw-btn { --btn-fill: color-mix(in srgb, var(--sheet) 12%, transparent); background: var(--btn-sheen), var(--btn-fill); color: var(--sheet); }

/* The component library (ui.css), part: the sidebar's parts and people. */

/* ---------- the sidebar's parts (§8): its name with Search and Bells, New loop and the pages, the loops, you. The
   app's frame (.bw-side, app.css) holds them; the site's product demo draws the same sidebar from them. Icons, loop
   marks and your avatar centre on one line, 18 in; every label starts 36 in ---------- */
.bw-side-top { display: flex; align-items: center; gap: 2px; height: 36px; margin-bottom: 10px; padding-left: 10px; }
.bw-side-word { flex: 1; min-width: 0; font: 600 16px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }   /* opens Home */
:is(.bw-side-top, .bw-side-foot) > .bw-iconbtn { color: var(--text-3); }
.bw-nav { display: grid; gap: 2px; }
.bw-nav a, .bw-loops a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px 0 10px; border-radius: var(--r-m); color: var(--text-2); font-weight: 500; text-decoration: none; }
.bw-nav a > span, .bw-loops a > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-nav a .bw-i { color: var(--text-3); }
.bw-nav a > .bw-count { flex: none; }
.bw-nav a > .bw-key { flex: none; opacity: 0; transition: opacity var(--fast); }   /* a page's shortcut, on hover */
@media (hover: hover) { .bw-nav a:is(:hover, :focus-visible) > .bw-key { opacity: 1; } }
@media (hover: hover) { .bw-nav a:hover, .bw-loops a:hover { background: var(--field); color: var(--ink); } }
/* where you are is glass, like a current quiet button (ui.css): the glass sheen and tint, the glass bevel */
.bw-nav a[aria-current="page"], .bw-loops a[aria-current="page"] { background: var(--glass-sheen), var(--glass-tint); box-shadow: var(--glass-bevel); color: var(--ink); }
.bw-nav a[aria-current="page"] .bw-i { color: var(--ink); }
.bw-nav a[aria-current="page"] .bw-count { background: var(--wash); }
/* the loops' heading opens the Loops page */
.bw-nav-h { display: block; margin: 22px 10px 6px; font: 500 var(--t-micro)/1.3 var(--sans); color: var(--text-3); text-decoration: none; }
@media (hover: hover) { a.bw-nav-h:hover { color: var(--ink); } }
a.bw-nav-h[aria-current="page"] { color: var(--ink); }
.bw-loops { display: grid; gap: 2px; }
.bw-loops a { height: 30px; font-weight: 400; color: var(--ink); }
.bw-loops a > .bw-mk.sm { margin-inline: 5px; }   /* the 6 mark centred where the pages' 16 icons sit */
.bw-loops a[aria-current="page"] { font-weight: 600; }
.bw-loops a small { font-size: 12px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
/* you, with the company you're in under your name; you open your companies, Settings and Profile, above you */
.bw-side-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 2px; }
.bw-me-box { position: relative; flex: 1; min-width: 0; }
.bw-me { display: flex; align-items: center; gap: 7px; width: 100%; height: 44px; padding: 0 6px 0 7px; border: 0; border-radius: var(--r-m); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.bw-me .bw-avatar { --av: 22px; }
.bw-me-who { flex: 1; min-width: 0; display: grid; }
.bw-me-who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-me-who b { font-weight: 500; }
.bw-me-who small { font-size: 12px; line-height: 16px; color: var(--text-3); letter-spacing: 0; }
@media (hover: hover) { .bw-me:hover { background: var(--field); } }
.bw-me[aria-expanded="true"] { background: var(--field); }
.bw-me-box .bw-menu { position: absolute; z-index: 20; left: 0; right: 0; bottom: 100%; margin: 0 0 6px; }
.bw-menu-h { padding: 7px 9px 4px; font: 500 var(--t-micro)/1.3 var(--sans); color: var(--text-3); }

/* folded (⌘\, data-side="rail" on <html>): a 52 rail of the same parts. The name and the loops go; Search and Bells
   stack over a rule, the pages keep their icons and Home's count turns into a gold dot, you sit over the button that
   opens it again, and your menu opens to the right */
[data-side="rail"] .bw-side :is(.bw-side-word, .bw-nav-h, .bw-loops) { display: none; }
[data-side="rail"] .bw-side .bw-side-top { flex-direction: column; height: auto; margin: 0; padding: 0; }
[data-side="rail"] .bw-side .bw-side-top::after { content: ""; width: 20px; height: 1px; margin: 8px 0; background: var(--edge); }
[data-side="rail"] .bw-side :is(.bw-nav a > span:not(.bw-count), .bw-me-who) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-side="rail"] .bw-side .bw-nav a { position: relative; justify-content: center; padding: 0; }
[data-side="rail"] .bw-side .bw-nav a > .bw-count { position: absolute; top: 6px; right: 6px; min-width: 0; width: 7px; height: 7px; padding: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--ground); font-size: 0; }
[data-side="rail"] .bw-side .bw-nav a > .bw-key { display: none; }
[data-side="rail"] .bw-side .bw-side-foot { flex-direction: column; gap: 4px; }
[data-side="rail"] .bw-side .bw-me-box { flex: none; }
[data-side="rail"] .bw-side .bw-me { width: 32px; height: 32px; justify-content: center; padding: 0; }
[data-side="rail"] .bw-side .bw-me-box .bw-menu { left: calc(100% + 8px); right: auto; bottom: 0; width: 220px; margin: 0; }

/* the phone's top bar names the company: the mark and its name */
.bw-ws { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 8px; color: var(--ink); font-weight: 600; }
.bw-ws > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-ws .bw-brand-mark { width: 20px; height: 20px; }

/* ---------- people ---------- */
.bw-avatar { display: inline-grid; place-items: center; width: var(--av, 24px); height: var(--av, 24px); flex: none; overflow: hidden; border-radius: 50%; background: var(--ink); color: var(--sheet); font: 600 calc(var(--av, 24px) * .45)/1 var(--sans); letter-spacing: 0; }
.bw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bw-person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.bw-person > span { display: grid; gap: 1px; min-width: 0; }
.bw-person b { font-weight: 500; }
.bw-person small { color: var(--text-3); font-size: var(--t-small); overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.bw-person.lg { gap: 14px; }
.bw-person.lg b { font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
/* people named on the right of a setting: each one's avatar and name */
.bw-people { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 14px; }
.bw-people > span { display: inline-flex; align-items: center; gap: 8px; }
.bw-you { margin-left: 8px; padding: 2px 6px; border-radius: var(--r-badge); background: var(--wash); color: var(--text-3); font: 600 var(--t-micro)/1.4 var(--sans); letter-spacing: 0; vertical-align: middle; }

/* The component library (ui.css), part: Bells: the bell that calls it, its pill and panel, and what you and it said. */

/* ---------- Bells (§7, Bells): the bell that calls it, the pill, the panel's head, what you and it said, places,
   cards of the company's own data, where you ask, the first open, and a spot it rings on the page ---------- */
@keyframes bw-bells-swing { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes bw-bells-ring { 0%, 100% { outline-color: var(--leaf); outline-offset: 4px; } 50% { outline-color: color-mix(in srgb, var(--leaf) 45%, transparent); outline-offset: 7px; } }
.bw-bells-bell { position: relative; display: inline-grid; flex: none; width: 18px; height: 18px; transform-origin: 50% 12%; transition: transform var(--fast) var(--ease); }
.bw-bells-bell > svg { width: 100%; height: 100%; }
.bw-bells-dot { position: absolute; top: -2px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 2px var(--ground); }
:is(.bw-bells-btn, .bw-bells-pill, .bw-bells-said).thinking .bw-bells-bell { animation: bw-bells-swing 1.1s ease-in-out infinite; }
@media (hover: hover) { .bw-bells-btn:hover .bw-bells-bell { transform: rotate(-12deg); } }
.bw-bells-btn .bw-bells-bell { width: 20px; height: 20px; }
.bw-bells-btn[aria-expanded="true"] { --btn-fill: var(--wash); background: var(--btn-fill); color: var(--ink); }

.bw-bells-pill { position: fixed; z-index: 42; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 2px; width: min(380px, calc(100vw - 32px)); height: 52px; padding: 0 6px 0 4px; border-radius: var(--r-pop); background: color-mix(in srgb, var(--sheet) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--sh-overlay); }
.bw-bells-pill-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border: 0; border-radius: var(--r-l); background: none; color: var(--ink); text-align: left; cursor: pointer; }
.bw-bells-pill-open .bw-bells-bell { width: 24px; height: 24px; }
.bw-bells-pill-open > span:last-child { display: grid; min-width: 0; line-height: 1.3; }
.bw-bells-pill-open b { font-weight: 600; }
.bw-bells-pill-open small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-bells-pill.busy b { color: var(--rust); }

/* the panel: its sheet, the chats beside the thread when maximized, the thread, kept scrolled to its foot */
.bw-dock-sheet { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-sheet); background: var(--sheet); box-shadow: var(--sh-sheet); }
.bw-bells-body { flex: 1; min-height: 0; display: flex; }
.bw-bells-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bw-bells-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bw-bells-col { display: flex; flex-direction: column; gap: 18px; padding: 8px 16px 16px; }
.bw-bells-chats { flex: 0 0 248px; overflow-y: auto; padding: 14px 10px; border-right: 1px solid var(--line); }
.bw-bells-chats ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 14px; list-style: none; }   /* the column holds its width and a long title trims, instead of the list growing to fit it */
.bw-bells-chats li { position: relative; }
.bw-bells-chats li > .bw-iconbtn { position: absolute; top: 2px; right: 2px; opacity: 0; }
.bw-bells-chats li:is(:hover, :focus-within) > .bw-iconbtn { opacity: 1; }
.bw-bells-chats li > button:first-child { display: block; width: 100%; height: 32px; padding: 0 34px 0 10px; overflow: hidden; border: 0; border-radius: var(--r-m); background: none; color: var(--text-2); font: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .bw-bells-chats li > button:first-child:hover { background: var(--ground); color: var(--ink); } }
.bw-bells-chats li > button[aria-current="true"] { background: var(--glass-sheen), var(--glass-tint); box-shadow: var(--glass-bevel); color: var(--ink); }

.bw-bells-head { flex: none; display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 10px 0 16px; }
.bw-bells-head > .bw-bells-bell { width: 22px; height: 22px; margin-right: 8px; }
.bw-bells-head h2 { flex: 1; font: 600 var(--t-heading)/1.3 var(--sans); letter-spacing: -.012em; }
.bw-bells-head .bw-iconbtn:where(:not(:hover)) { color: var(--text-3); }
/* the name opens your past chats: a light menu under the head, newest first, five rows tall and scrolling past that,
   each a title over a one-line peek at Bells' last words */
.bw-bells-title { position: relative; flex: 1; min-width: 0; }
.bw-bells-title h2 button { display: inline-flex; align-items: center; gap: 4px; height: 30px; margin-left: -6px; padding: 0 6px; border: 0; border-radius: var(--r-m); background: none; color: var(--ink); font: inherit; letter-spacing: inherit; cursor: pointer; }
.bw-bells-title h2 .bw-i { width: 14px; height: 14px; color: var(--text-3); transition: transform var(--fast); }
.bw-bells-title h2 button[aria-expanded="true"] .bw-i { transform: rotate(180deg); }
@media (hover: hover) { .bw-bells-title h2 button:hover { background: var(--field); } }
.bw-bells-past { position: absolute; z-index: 20; top: 100%; left: -36px; width: min(320px, calc(100vw - 32px)); max-height: 214px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; list-style: none; }
.bw-menu.bw-bells-past li > button { height: 41px; align-items: center; gap: 10px; padding: 0 8px; }
.bw-bells-past li > button > span { display: grid; line-height: 1.3; }
.bw-bells-past li > button > span > :is(b, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-bells-past b { font-weight: 400; }
.bw-bells-past small, .bw-bells-past time { font-size: var(--t-micro); color: var(--text-3); letter-spacing: 0; }
.bw-bells-past time { flex: none; align-self: flex-start; margin-top: 5px; font-variant-numeric: tabular-nums; }
.bw-bells-past li > button[aria-current="true"] { background: var(--ground); }
.bw-bells-past .none { padding: 8px; color: var(--text-3); }

.bw-you-said { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--wash); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.bw-you-said-files { align-self: flex-end; display: grid; justify-items: end; gap: 6px; max-width: 85%; }
.bw-you-said-files > .bw-you-said { max-width: 100%; }
.bw-bells-said { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.bw-bells-said > .bw-bells-bell { width: 20px; height: 20px; margin-top: 1px; }
.bw-bells-said > div { display: grid; gap: 12px; min-width: 0; }
.bw-bells-said > div > * { min-width: 0; }   /* a long place name trims instead of widening the column */
.bw-bells-said p { color: var(--text-2); overflow-wrap: anywhere; }
.bw-bells-said p b { font-weight: 600; color: var(--ink); }
.bw-bells-said.thinking p { color: var(--text-3); }
.bw-bells-said.failed p { color: var(--rust); }
.bw-bells-said.failed > .bw-bells-bell { opacity: .5; }

.bw-place { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--r-tile); background: var(--sheet); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); font-weight: 500; text-decoration: none; }
.bw-place > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-place > small { flex: none; font-size: var(--t-small); font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.bw-place .bw-i { color: var(--text-3); }
.bw-place .chev { width: 14px; height: 14px; color: var(--faint); }
@media (hover: hover) { a.bw-place:hover { background: var(--ground); } }
.bw-place.opened { background: var(--g-tint); box-shadow: none; color: var(--own); }
.bw-place.opened .bw-i { color: var(--own); }
.bw-place.foot { border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 55%, var(--sheet)); }

.bw-bcard { overflow: hidden; border-radius: var(--r-tile); background: var(--sheet); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent); }
.bw-bcard-h { padding: 10px 12px 2px; font: 500 var(--t-small)/1.4 var(--sans); color: var(--text-3); letter-spacing: 0; }
.bw-bcard > .bw-steplist { padding: 0 12px; }
.bw-bcard-body { display: grid; gap: 14px; padding: 14px 16px; }
.bw-bcard-body > .bw-spark { width: 100%; height: 40px; }
.bw-bcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 12px; border-top: 1px solid var(--line); }
.bw-bcard-foot > .bw-meta { flex: 1 1 180px; }
.bw-bcard-foot > .bw-err { flex-basis: 100%; }
.bw-bcard-foot > .bw-ask-row { flex: 1; }
form.bw-bcard-foot { padding: 12px 16px; }
.bw-bcard-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 44px; padding: 6px 10px 6px 12px; color: inherit; text-decoration: none; }
.bw-bcard-row + .bw-bcard-row { border-top: 1px solid var(--line); }
@media (hover: hover) { a.bw-bcard-row:hover { background: var(--ground); } }
.bw-bcard-row > .t { display: grid; min-width: 0; line-height: 1.3; }
.bw-bcard-row > .t > :is(b, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-bcard-row > .t > b { font-weight: 500; }
.bw-bcard-row small { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-bcard-n { font: 600 var(--t-heading)/1 var(--sans); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.bw-bcard-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }
.bw-bcard-steps { display: grid; padding: 4px 12px 6px; list-style: none; }
.bw-bcard-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; }
.bw-bcard-steps li + li { border-top: 1px solid var(--line); }
.bw-bcard-steps li > span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--held); color: var(--text-2); font: 600 var(--t-micro)/1 var(--sans); }
.bw-bcard-steps li:first-child > span { background: var(--own); box-shadow: none; color: var(--on-primary); }
.bw-bells-next { display: flex; flex-wrap: wrap; gap: 6px; }
.bw-bcard-month { display: grid; gap: 14px; padding: 14px 12px 12px; }
.bw-bcard-month .bw-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.bw-bcard-month .bw-stat dd { font-size: var(--t-figure); }
.bw-bells-said > div > p + p { margin-top: -4px; }

.bw-bells-ask { flex: none; padding: 8px 12px 12px; }
.bw-bells-ask > div { padding: 10px 8px 8px 14px; border-radius: var(--r-pop); background: var(--sheet); box-shadow: 0 0 0 1px var(--edge), var(--sh-raised); transition: box-shadow var(--fast); }
.bw-bells-ask > div:focus-within { box-shadow: 0 0 0 1.5px var(--ink), var(--sh-raised); }
.bw-bells-ask textarea { display: block; width: 100%; resize: none; padding: 0; border: 0; outline: none; background: none; color: var(--ink); font: inherit; }
.bw-bells-ask textarea::placeholder { color: var(--text-3); }
.bw-bells-ask textarea:focus-visible { outline: none; }   /* the box around it shows the focus */
.bw-bells-ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.bw-bells-ask .bw-btn[aria-busy="true"] .bw-i { display: none; }
.bw-bells-ask-foot > .bw-iconbtn:first-child { margin-left: -6px; color: var(--text-3); }
.bw-bells-ask-foot > .bw-sees { margin-right: auto; }
.bw-bells-ask .bw-bells-files { justify-content: flex-start; margin: 0 0 8px -4px; }
.bw-bells-note { padding: 6px 4px 0; font-size: var(--t-small); color: var(--rust); letter-spacing: 0; }

/* Files you attached: an image as a 64 tile, anything else as a chip with its name. */
.bw-bells-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; list-style: none; }
.bw-bells-files li { position: relative; display: flex; align-items: center; gap: 6px; max-width: 220px; height: 36px; padding: 0 10px; border-radius: var(--r-l); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font-size: var(--t-small); letter-spacing: 0; }
.bw-bells-files li > a { display: contents; color: inherit; text-decoration: none; }
.bw-bells-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-bells-files li .bw-i { flex: none; color: var(--text-3); }
.bw-bells-files li.image { width: 64px; height: 64px; padding: 0; overflow: hidden; }
.bw-bells-files li.image img { width: 100%; height: 100%; object-fit: cover; }
.bw-bells-files .off { position: absolute; top: -6px; right: -6px; width: 20px; min-width: 0; height: 20px; padding: 0; border-radius: 50%; background: var(--ink); color: var(--sheet); }
.bw-bells-files .off .bw-i { width: 12px; height: 12px; color: var(--sheet); }
.bw-bells-files li.image .off { top: 3px; right: 3px; }
.bw-bells-files li:not(.image):has(.off) { padding-right: 18px; }

/* Dragging files over Bells covers it with where they'll go. */
.bw-bells-drop { position: absolute; inset: 8px; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 4px; border-radius: var(--r-pop); background: color-mix(in srgb, var(--sheet) 92%, transparent); outline: 1.5px dashed var(--ink); outline-offset: -1.5px; color: var(--ink); pointer-events: none; }
.bw-bells-drop .bw-i { width: 22px; height: 22px; margin-bottom: 4px; }
.bw-bells-drop small { font-size: var(--t-small); color: var(--text-3); letter-spacing: 0; }

.bw-sees { display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 22px; padding: 0 8px; border-radius: var(--r-badge); background: var(--wash); color: var(--text-3); font: 500 var(--t-micro)/1 var(--sans); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-sees .bw-i { width: 12px; height: 12px; }

.bw-bells-empty { display: grid; justify-items: center; padding: 28px 8px 8px; text-align: center; }
.bw-bells-empty > .bw-bells-bell { width: 64px; height: 64px; }
.bw-bells-empty h3 { margin-top: 14px; font: 600 var(--t-figure)/1.15 var(--sans); letter-spacing: -.025em; }
.bw-bells-empty p { margin-top: 6px; color: var(--text-3); }
.bw-bells-empty .bw-bells-next { justify-content: center; margin-top: 18px; }

/* a spot Bells points at: a green ring that breathes, and its line in an ink tag above (placed by components/bells) */
.bw-spot-wrap { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-l); }
[data-spotlit] { outline: 2px solid var(--leaf); outline-offset: 4px; border-radius: var(--r-tile); animation: bw-bells-ring 2s ease-in-out 3; }
.bw-spot-tag { position: absolute; z-index: 43; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-s); background: var(--ink); color: var(--sheet); font: 500 var(--t-small)/1 var(--sans); letter-spacing: 0; box-shadow: var(--sh-raised); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
