/* ============================================================
   ANAVECT landing v18. One consolidated sheet.

   Order matters and is fixed:
     1 tokens         2 base + mark        3 nav + menu
     4 hero, beats, sections, reveals, .flow, buttons
     5 basics cards   6 pinned stages      7 the board shell
     8 rules          9 history + This visit   10 (empty; was the Claude stage
    until 2026-10-19)  11 finale, faq, band, footer, toasts
    12 dated chips and the theme crossfade
    13 responsive    14 reduced motion     15 no scripts
    16 phones: no glow on the mark, LAST

   Palettes, never mixed:
     UI    = the five logo hues (--logo-1..5) and neutral greys.
     DATA  = the twelve chip colours (--d-green ... --d-grey).
   Motion: one curve (--ease) and six durations (--d-0 .. --d-5).
   No loop runs on its own (hueFlow stopped, phase-374, MORNING item 1;
   was "hueFlow is the only linear loop"). Only the hero's field leans a little
   toward a mouse (field.js PTR_YAW, spent before the first cue); nothing
   else follows the pointer. (Was "Nothing follows the pointer", phase-369 D17.)
   ============================================================ */

@font-face{font-family:"Anavect";font-style:normal;font-weight:400 900;font-display:swap;
  src:url("/fonts/schibsted-grotesk-normal-latin.woff2") format("woff2");}
@font-face{font-family:"Anavect";font-style:italic;font-weight:400 900;font-display:swap;
  src:url("/fonts/schibsted-grotesk-italic-latin.woff2") format("woff2");}
@font-face{font-family:"Anavect Num";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("/fonts/geist-mono-normal-latin.woff2") format("woff2");}

/* ============================================================
   1  TOKENS
   ============================================================ */
:root{
  /* the page ground: field.js mixes its tiles toward this exact value */
  --bg:#08090b;

  /* t1 is the app's dark ink, not white (phase-374, MORNING item 2; was #f6f7f8) */
  --t1:#e3e3e5; --t2:#b3b8bf; --t3:#9ca2ab;

  --line:rgba(255,255,255,.085);
  --line-2:rgba(255,255,255,.05);
  --hair:rgba(255,255,255,.16);
  --fill-hover:rgba(255,255,255,.06);
  --fill-on:rgba(255,255,255,.09);

  --logo-1:#ff3229; --logo-2:#ffa00a; --logo-3:#ffcc00; --logo-4:#00b842; --logo-5:#0089eb;
  --focus:var(--logo-5);

  --d-green:#00c875; --d-teal:#00d2d2; --d-orange:#fdab3d; --d-blue:#579bfc;
  --d-lavender:#a25ddc; --d-red:#e2445c; --d-yellow:#ffcb00; --d-lime:#9cd326;
  --d-coral:#ff642e; --d-pink:#ff158a; --d-navy:#225091; --d-grey:#c4c4c4;

  --scrim-a:rgba(8,9,11,.90); --scrim-b:rgba(8,9,11,.52);

  --r-xl:26px; --r-lg:20px; --r-md:14px; --r-sm:9px; --r-xs:7px; --r-pill:999px;

  /* motion: one gentle in-out curve and the six durations. Nothing pops, snaps
     or bounces; only --d-1 (press feedback) stays quick. */
  --ease:cubic-bezier(.4,.02,.2,1);
  --d-0:90ms; --d-1:180ms; --d-2:280ms; --d-3:460ms; --d-4:760ms; --d-5:1150ms;

  --fs-micro:11px; --fs-xs:12px; --fs-sm:13px; --fs-body:15px; --fs-lg:19px;
  --fs-h3:28px; --fs-h2:46px; --fs-h1:82px;

  /* the page's panels wear the app's opaque dock recipe: a still gradient, a hairline, a
     soft stack of shadows; the primary button is the app's lit rim (phase-374; was clear glass) */
  --panel:linear-gradient(180deg,#28282a,#1d1d1f);
  --panel-sh:inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.2), 0 8px 16px -4px rgba(0,0,0,.2), 0 18px 36px -12px rgba(0,0,0,.24), 0 32px 64px -24px rgba(0,0,0,.24);
  --pic-bg:#1d1d1f;
  --prim-bg:rgba(255,255,255,.10); --prim-bg-h:rgba(255,255,255,.14); --prim-ink:#f2f3f5;
  --prim-sh:inset 0 0 0 1px rgba(255,255,255,.50), inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px -6px rgba(0,0,0,.5);
  --prim-sh-h:inset 0 0 0 1px rgba(255,255,255,.64), inset 0 1px 0 rgba(255,255,255,.22), 0 4px 12px -6px rgba(0,0,0,.5);
  --quiet-bg:rgba(255,255,255,.05); --quiet-bg-h:rgba(255,255,255,.09); --quiet-rim:inset 0 0 0 1px rgba(255,255,255,.12);

  --beat-top:max(168px, 20svh);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#fcfcfd;
  --t1:#0d0f13; --t2:#4d535e; --t3:#5b616c;
  --line:rgba(0,0,0,.10); --line-2:rgba(0,0,0,.055); --hair:rgba(0,0,0,.2);
  --fill-hover:rgba(0,0,0,.05); --fill-on:rgba(0,0,0,.08);
  --scrim-a:rgba(252,252,253,.92); --scrim-b:rgba(252,252,253,.60);
  --panel:linear-gradient(180deg,#fff,#fafafb);
  --panel-sh:inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px rgba(13,15,19,.05), 0 1px 2px rgba(13,15,19,.05), 0 2px 4px rgba(13,15,19,.03), 0 8px 16px -4px rgba(13,15,19,.06), 0 18px 36px -12px rgba(13,15,19,.09), 0 32px 64px -24px rgba(13,15,19,.10);
  --pic-bg:#f3f3f4;
  --prim-bg:#fff; --prim-bg-h:#fff; --prim-ink:#141a2b;
  --prim-sh:inset 0 0 0 1px rgba(13,15,19,.30), 0 1px 2px rgba(13,15,19,.07), 0 3px 10px -4px rgba(13,15,19,.12);
  --prim-sh-h:inset 0 0 0 1px rgba(13,15,19,.36), 0 1px 2px rgba(13,15,19,.07), 0 3px 10px -4px rgba(13,15,19,.12);
  --quiet-bg:rgba(13,15,19,.035); --quiet-bg-h:rgba(13,15,19,.065); --quiet-rim:inset 0 0 0 1px rgba(13,15,19,.11);
  color-scheme:light;
}

/* ============================================================
   2  BASE, THE FIELD, THE MARK
   ============================================================ */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--t1);
  font-family:"Anavect",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:var(--fs-body); line-height:1.5;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:clip;
}
h1,h2,h3,h4,h5,p{margin:0;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0;}
.num{font-family:"Anavect Num",ui-monospace,Menlo,monospace;font-feature-settings:"tnum";}
/* a comma inside a date or an amount: the text face, proportional, so no gap opens before it */
.dc{font-family:"Anavect",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-feature-settings:normal;font-variant-numeric:normal;}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.ic{flex:none;display:block;}
.ii{display:inline-flex;flex:none;font-style:normal;}

/* one focus treatment: logo blue, drawn at once */
:focus-visible{outline:2px solid var(--focus);outline-offset:2px;transition:none;}
:focus:not(:focus-visible){outline:none;}
[aria-disabled="true"]{cursor:default;}
[aria-disabled="true"]{opacity:.45;transition:opacity var(--d-2) var(--ease);}

#field{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;
  opacity:0;transition:opacity 900ms var(--ease);}
#field.lit{opacity:1;}

/* the mark */
.logo{display:inline-flex;align-items:center;flex:none;border-radius:var(--r-xs);text-decoration:none;}
.logo-mark{width:24px;height:26px;flex:none;overflow:visible;display:block;
  filter:drop-shadow(0 0 7px rgba(140,190,255,.38));}
:root[data-theme="light"] .logo-mark{filter:drop-shadow(0 1px 4px rgba(0,137,235,.22));}
.logo-mark.tiny{width:15px;height:17px;filter:none;}
.logo-mark circle{transform-box:fill-box;transform-origin:center;animation:logoIn 560ms var(--ease) backwards;}
.logo-mark circle:nth-child(n+6){animation-delay:70ms;}
.logo-mark circle:nth-child(n+11){animation-delay:140ms;}
.logo-mark circle:nth-child(n+16){animation-delay:210ms;}
.logo-mark circle:nth-child(n+21){animation-delay:280ms;}
/* the mark answers a load and a pointer only; it never drifts on its own */
.logo:focus-visible .logo-mark circle{animation:logoWave 840ms var(--ease) backwards;}
@media (hover:hover){
  .logo:hover .logo-mark circle{animation:logoWave 840ms var(--ease) backwards;}
}
.logo:is(:hover,:focus-visible) .logo-mark circle:nth-child(n+6){animation-delay:90ms;}
.logo:is(:hover,:focus-visible) .logo-mark circle:nth-child(n+11){animation-delay:180ms;}
.logo:is(:hover,:focus-visible) .logo-mark circle:nth-child(n+16){animation-delay:270ms;}
.logo:is(:hover,:focus-visible) .logo-mark circle:nth-child(n+21){animation-delay:360ms;}
@keyframes logoIn{from{transform:scale(.4);opacity:0;}to{transform:scale(1);opacity:1;}}
@keyframes logoWave{0%{transform:scale(1);}45%{transform:scale(1.32);}100%{transform:scale(1);}}

/* ============================================================
   3  NAV AND THE MENU PANEL
   The bar never changes size, position or shadow. Its opaque bar sits on
   .asc-nav-bg and only that layer's opacity changes. No transforms.
   ============================================================ */
.asc-nav{
  position:fixed;top:16px;left:0;right:0;margin:0 auto;z-index:100;
  width:max-content;max-width:calc(100vw - 24px);height:48px;
  display:flex;align-items:center;gap:2px;white-space:nowrap;
  padding:6px 6px 6px 12px;border-radius:var(--r-pill);isolation:isolate;
}
.asc-nav-bg{position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;
  background:var(--panel);box-shadow:var(--panel-sh);opacity:0;transition:opacity var(--d-2) var(--ease);}
.asc-nav.filled .asc-nav-bg{opacity:1;}
.asc-brand{margin-right:6px;padding:2px 3px;}
.asc-brand .logo-mark{width:24px;height:27px;}
.asc-nav-links{display:flex;align-items:center;gap:2px;}

.asc-nav-link,.asc-nav-login{position:relative;color:var(--t2);font-weight:600;font-size:var(--fs-sm);text-decoration:none;
  padding:7px 11px;border-radius:var(--r-pill);
  transition:color var(--d-1) var(--ease), background-color var(--d-1) var(--ease);}
.asc-nav-link::after{content:"";position:absolute;left:50%;bottom:-1px;width:4px;height:4px;margin-left:-2px;
  border-radius:50%;background:var(--t1);opacity:0;transition:opacity var(--d-2) var(--ease);}
.asc-nav-link[aria-current="location"]{color:var(--t1);}
.asc-nav-link[aria-current="location"]::after{opacity:1;}
.asc-nav-login{margin-left:2px;}

.asc-nav-theme{width:34px;height:34px;border-radius:var(--r-pill);display:grid;place-items:center;margin-left:4px;
  color:var(--t2);transition:color var(--d-1) var(--ease), background-color var(--d-1) var(--ease);}
.th-ic{grid-area:1/1;display:grid;place-items:center;
  transition:transform var(--d-3) var(--ease), opacity var(--d-2) var(--ease);}
/* the icon for the current theme shows; the other waits rotated and small */
.th-sun{opacity:0;transform:rotate(-90deg) scale(.6);}
.th-moon{opacity:1;transform:none;}
:root[data-theme="light"] .th-sun{opacity:1;transform:none;}
:root[data-theme="light"] .th-moon{opacity:0;transform:rotate(90deg) scale(.6);}

.asc-nav-cta{display:inline-flex;align-items:center;text-decoration:none;height:36px;
  font-weight:600;font-size:var(--fs-sm);
  padding:0 15px;border-radius:var(--r-pill);margin-left:4px;
  color:var(--prim-ink);background:var(--prim-bg);box-shadow:var(--prim-sh);
  transition:background-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);}
.asc-nav-cta:focus-visible{outline-offset:3px;}
@media (hover:hover){ .asc-nav-cta:hover{background:var(--prim-bg-h);box-shadow:var(--prim-sh-h);} }

.asc-nav-menu{display:none;align-items:center;gap:7px;height:40px;min-width:86px;padding:0 14px 0 12px;margin-left:2px;
  border-radius:var(--r-pill);color:var(--t1);font-size:var(--fs-sm);font-weight:600;
  box-shadow:inset 0 0 0 1px var(--line);transition:background-color var(--d-1) var(--ease);}
.mb-ic{display:grid;}
.mb-ic .ii{grid-area:1/1;transition:opacity var(--d-2) var(--ease);}
.mb-close{opacity:0;}
.asc-nav-menu[aria-expanded="true"]{background:var(--fill-on);}
.asc-nav-menu[aria-expanded="true"] .mb-open{opacity:0;}
.asc-nav-menu[aria-expanded="true"] .mb-close{opacity:1;}

@media (hover:hover){
  .asc-nav-link:hover,.asc-nav-login:hover,.asc-nav-theme:hover{color:var(--t1);background:var(--fill-hover);}
  .asc-nav-menu:hover{background:var(--fill-hover);}
  .asc-menu-item:hover{background:var(--fill-hover);}
}
/* press states sit after hover at the same specificity */
.asc-nav-link:active,.asc-nav-login:active,.asc-nav-theme:active,.asc-nav-menu:active,.asc-menu-item:active{
  background:var(--fill-on);transition-duration:var(--d-0);}

.asc-menu{position:fixed;top:72px;left:0;right:0;margin:0 auto;z-index:110;
  width:min(420px, calc(100vw - 20px));padding:8px;border-radius:var(--r-lg);
  background:var(--panel);box-shadow:var(--panel-sh);opacity:0;transition:opacity var(--d-2) var(--ease);}
.asc-menu.open{opacity:1;transition-duration:var(--d-2);}
.asc-menu[hidden]{display:none;}
.asc-menu nav{display:flex;flex-direction:column;}
.asc-menu-item{position:relative;display:flex;align-items:center;height:44px;padding:0 16px 0 28px;border-radius:var(--r-sm);
  color:var(--t1);font-size:17px;font-weight:600;text-decoration:none;
  transition:background-color var(--d-1) var(--ease);}
.asc-menu-item:focus-visible{outline-offset:-2px;}
.asc-menu-item[aria-current="location"]::before{content:"";position:absolute;left:14px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--t1);}

/* ============================================================
   4  LAYOUT, HERO, BEATS, SECTIONS, REVEALS, .flow, BUTTONS
   ============================================================ */
.wrap{max-width:1180px;margin:0 auto;padding:0 40px;position:relative;z-index:5;}
section{position:relative;z-index:5;}

.hero{min-height:100svh;display:grid;place-items:center;text-align:center;padding:88px 0 48px;}
.hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(58% 44% at 50% 50%,var(--scrim-a) 0%,var(--scrim-b) 46%,transparent 76%);}
.hero-in{z-index:5;}
h1{text-wrap:balance;font-size:clamp(42px,7vw,var(--fs-h1));line-height:.98;letter-spacing:-.04em;
  font-weight:600;margin:26px 0 0;}
h1 .l1,h1 .l2{display:block;}
.lede{text-wrap:pretty;margin:28px auto 0;max-width:560px;color:var(--t2);font-size:var(--fs-lg);
  line-height:1.5;letter-spacing:-.011em;}
.cta{display:flex;gap:12px;justify-content:center;margin-top:38px;}

/* hero entrance (scripts on): words rise, blocks rise */
html.js .rise{opacity:0;transform:translateY(16px);}
html.js .rise.in{opacity:1;transform:none;transition:opacity 950ms var(--ease),transform var(--d-5) var(--ease);}
/* once the entrance is over, the scroll fade must not lag behind a transition */
html.js .hero .rise.settled{transition:none;}
html.js .w{display:inline-block;opacity:0;transform:translateY(.35em);}
html.js .w.in{opacity:1;transform:none;transition:opacity 800ms var(--ease),transform 1000ms var(--ease);}

/* the beats: a problem line on a solid scrim, the field performs below it */
.beat{height:calc(var(--bh) * 1svh);position:relative;z-index:5;}
.beat-line{position:sticky;top:var(--beat-top);z-index:6;margin:0 auto;
  width:min(760px, calc(100vw - 40px));padding:28px 32px;border-radius:var(--r-lg);
  background:var(--panel);box-shadow:var(--panel-sh);}
.beat-line p{font-size:clamp(22px,2.6vw,34px);line-height:1.22;font-weight:500;color:var(--t1);
  letter-spacing:-.02em;text-wrap:balance;}

.asc-sec{padding:min(13vh,115px) 0;position:relative;z-index:5;}
.sect-head{display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:end;}
.asc-h2{text-wrap:balance;font-size:clamp(30px,4.3vw,var(--fs-h2));line-height:1.04;
  letter-spacing:-.033em;font-weight:600;}
.sect-head p{color:var(--t2);font-size:var(--fs-lg);line-height:1.52;letter-spacing:-.008em;text-wrap:pretty;}

/* scroll reveal */
html.js .rv{opacity:0;transform:translateY(20px);}
html.js .rv.in{opacity:1;transform:none;
  transition:opacity var(--d-4) var(--ease) var(--rv-delay,0ms),transform var(--d-5) var(--ease) var(--rv-delay,0ms);}
.rv[data-d="1"]{--rv-delay:120ms;} .rv[data-d="2"]{--rv-delay:240ms;} .rv[data-d="3"]{--rv-delay:360ms;}

/* .flow: one rule for the hero line and the band. The phrase carries the five
   hues once, red to blue, and holds still: blue never meets red (a blue-red blend
   is purple, phase-154). (Was a 200% out-and-back tile drifting in a 16s loop,
   hueFlow; stopped phase-374, MORNING item 1, no idle loops.) */
.flow{
  display:inline-block;
  padding:0 .06em .14em;margin:0 -.06em -.14em;
  background-image:linear-gradient(90deg,var(--logo-1),var(--logo-2) 25%,var(--logo-3) 50%,var(--logo-4) 75%,var(--logo-5));
  background-size:100% 100%;background-repeat:no-repeat;background-position:0 0;
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
html.js .flow{clip-path:inset(0 100% 0 0);}
html.js .flow.in,html.js .in .flow{
  clip-path:inset(0 0 0 0);
  transition:clip-path var(--d-5) var(--ease) var(--flow-delay,0ms);
}
.band-in .flow{--flow-delay:320ms;}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--r-pill);
  font-size:var(--fs-sm);font-weight:600;letter-spacing:-.005em;text-decoration:none;
  padding:10px 18px;min-height:40px;white-space:nowrap;
  transition:background-color var(--d-1) var(--ease), color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);}
.btn.lg{padding:0 22px 0 24px;height:50px;font-size:var(--fs-body);}
.btn.lg:focus-visible{outline-offset:3px;}
.btn.ghost{min-height:32px;padding:0 10px;border-radius:var(--r-sm);color:var(--t2);font-weight:500;gap:5px;}
.btn.sm{min-height:32px;padding:0 10px;border-radius:var(--r-sm);font-size:var(--fs-sm);gap:4px;}
a[aria-disabled="true"]{pointer-events:auto;}
/* the primary is the app's lit rim (button system A, phase-180): a rim, never a solid fill;
   the quiet buttons take a faint plate and a hairline (phase-374; both were clear glass) */
.btn.ink{color:var(--prim-ink);background:var(--prim-bg);box-shadow:var(--prim-sh);font-weight:700;}
.btn.plain,.btn.tour-btn{color:var(--t1);background:var(--quiet-bg);box-shadow:var(--quiet-rim);}
@media (hover:hover){
  .btn.ink:not([aria-disabled="true"]):hover{background:var(--prim-bg-h);box-shadow:var(--prim-sh-h);}
  .btn.plain:not([aria-disabled="true"]):hover,.btn.tour-btn:hover{background:var(--quiet-bg-h);}
}
.btn.ink:not([aria-disabled="true"]):active,.asc-nav-cta:active,.btn.plain:not([aria-disabled="true"]):active,.btn.tour-btn:active{
  background:var(--fill-on);transition-duration:var(--d-0);}

/* ============================================================
   5  BASICS: three cards, each with a small product picture
   ============================================================ */
.deck{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:64px;}
.card{position:relative;padding:28px;border-radius:var(--r-lg);background:var(--panel);box-shadow:var(--panel-sh);}
.card h3{font-size:var(--fs-h3);letter-spacing:-.028em;font-weight:600;line-height:1.1;text-wrap:balance;}
.card p{margin-top:12px;color:var(--t2);font-size:var(--fs-sm);line-height:1.55;text-wrap:pretty;}
.bx-card{display:flex;flex-direction:column;}
.bx-ill{margin-top:20px;height:104px;border-radius:var(--r-md);background:var(--pic-bg);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;gap:14px;padding:0 16px;overflow:hidden;}
.bx-data{flex-direction:column;gap:10px;}
.bx-glyphs{display:flex;gap:18px;color:var(--t2);}
.bx-g{display:inline-flex;}
.bx-label{font-size:var(--fs-xs);color:var(--t2);}
.bx-row{display:flex;align-items:center;gap:10px;width:100%;}
.bx-name{flex:1;min-width:0;font-size:var(--fs-sm);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bx-cell{position:relative;display:grid;padding:4px;border-radius:var(--r-xs);}
.bx-chips{display:grid;}
.bx-chips .status-pill{grid-area:1/1;}
.bx-a{opacity:0;}
.bx-line{display:flex;align-items:center;gap:9px;font-size:var(--fs-xs);color:var(--t2);min-width:0;}
.bx-line .avatar{width:24px;height:24px;font-size:10px;}
.bx-text b{color:var(--t1);font-weight:600;}
.bx-now{color:var(--t1);font-weight:650;}
.bx-was{position:relative;color:var(--t3);}
.bx-was::after{content:"";position:absolute;left:0;right:0;top:55%;height:1px;background:var(--t3);transform-origin:0 50%;}

/* ============================================================
   6  PINNED STAGES
   p = clamp01((scrollY - sceneTop) / (sceneHeight - innerHeight))
   ============================================================ */
.scene{position:relative;z-index:5;height:calc(var(--len) * 1svh);}
.scene-stage{position:sticky;top:0;height:100svh;}
.stage-wrap{height:100%;display:flex;flex-direction:column;padding-top:88px;padding-bottom:24px;}
.stage-head{flex:none;display:flex;justify-content:space-between;align-items:flex-end;gap:40px;min-height:48px;}
.stage-h2{font-size:clamp(24px, calc(2.4vw + 10px), 34px);line-height:1.2;letter-spacing:-.03em;font-weight:600;white-space:nowrap;}
.stage-head p{max-width:520px;font-size:var(--fs-body);line-height:1.55;text-wrap:pretty;color:var(--t2);}
/* the views stage is wider than the page's measure, so the board draws at the app's own size */
#sec-views .wrap{max-width:1440px;}
.stage-frame{flex:1 1 0;min-height:240px;max-height:738px;margin-top:20px;display:flex;flex-direction:column;}
.stage-foot{flex:none;margin-top:16px;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:6px 6px 6px 18px;border-radius:var(--r-lg);background:var(--panel);box-shadow:var(--panel-sh);}
.sf-text{display:flex;align-items:baseline;gap:14px;min-width:0;}
.sf-cap{display:grid;flex:none;font-size:var(--fs-body);font-weight:600;color:var(--t1);}
.sf-cap > span{grid-area:1/1;white-space:nowrap;}
.sf-cap > .sf-sz{visibility:hidden;pointer-events:none;}
.sf-note{font-size:var(--fs-sm);color:var(--t3);min-width:0;}
/* a phone says Tap, a mouse says Click (phase-374, MORNING item 4) */
.sf-tap{display:none;}
@media (max-width:700px),(pointer:coarse){ .sf-click{display:none;} .sf-tap{display:inline;} }
.btn.tour-btn{flex:none;min-width:146px;justify-content:flex-start;border-radius:var(--r-pill);padding:0 14px 0 12px;}
.tb-ic{display:grid;}
.tb-ic .ii{grid-area:1/1;transition:opacity var(--d-2) var(--ease), transform var(--d-3) var(--ease);}
.tb-play{opacity:0;transform:scale(.8);}
.tour-btn.is-off .tb-pause{opacity:0;transform:scale(.8);}
.tour-btn.is-off .tb-play{opacity:1;transform:none;}

/* ============================================================
   7  THE BOARD SHELL: the app as it draws itself today, sidebar,
   board head, six views and the bottom board bar (phase-374; was a
   rail, top view tabs and a glass lozenge). Only the tabs, the board
   switcher, the group carets, the sidebar and the phone bars answer;
   the rest is a picture (.deco): no hover, no focus. Values are the
   app's own (app-01 tokens, the dock recipe), scoped to .shell.
   ============================================================ */
.shell{position:relative;display:flex;gap:10px;padding:10px;border-radius:var(--r-lg);overflow:hidden;
  flex:1 1 auto;min-height:0;
  --a-s0:#171718; --a-s1:#222224; --a-s2:#2a2a2c; --a-s3:#323234; --a-card:#222224;
  --a-t1:#dcdcde; --a-t2:#c2c2c4; --a-t3:#ababad;
  --a-brand:#59b2f2; --a-brand-soft:rgba(89,178,242,.15);
  --a-rule:rgba(255,255,255,.06); --a-line:rgba(255,255,255,.09);
  --a-hover:rgba(255,255,255,.05); --a-plate:rgba(255,255,255,.05);
  --a-row-on:rgba(255,255,255,.07);
  --a-row-on-sh:inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 .5px rgba(255,255,255,.08);
  --a-e1:inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.4);
  --a-lift:0 2px 4px rgba(0,0,0,.2), 0 8px 16px -4px rgba(0,0,0,.2), 0 18px 36px -12px rgba(0,0,0,.24), 0 32px 64px -24px rgba(0,0,0,.24);
  --a-float:linear-gradient(180deg,#28282a,#1d1d1f); --a-dock:linear-gradient(180deg,#28282a,#1d1d1f);
  --a-float-sh:var(--a-e1),var(--a-lift);
  --a-side:linear-gradient(rgba(255,255,255,.075),rgba(255,255,255,.024) 56px),#171718;
  --a-well:#222224; --a-well-bd:rgba(0,0,0,.34);
  --a-well-sh:inset 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.06);
  --a-tab:linear-gradient(rgba(255,255,255,.05),rgba(255,255,255,0)),#2a2a2c; --a-tab-sh:var(--a-e1);
  --a-new-bg:rgba(255,255,255,.10); --a-new-ink:#f2f3f5;
  --a-new-sh:inset 0 0 0 1px rgba(255,255,255,.50), inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px -6px rgba(0,0,0,.5);
  --a-card-sh:var(--a-e1);
  --a-soon:#ffad2c; --a-late:#ff7a73;
  --t1:var(--a-t1); --t2:var(--a-t2); --t3:var(--a-t3); --line:var(--a-line); --line-2:var(--a-rule);
  --fill-hover:var(--a-hover); --fill-on:var(--a-plate);
  color:var(--a-t1);background:var(--a-s0);box-shadow:var(--a-e1),var(--a-lift);}
:root[data-theme="light"] .shell{
  --a-s0:#ededee; --a-s1:#f3f3f4; --a-s2:#e3e3e5; --a-s3:#dadadc; --a-card:#fbfbfc;
  --a-t1:#303033; --a-t2:#434346; --a-t3:#5a5a5d;
  --a-brand:#0067b0; --a-brand-soft:rgba(0,103,176,.10);
  --a-rule:rgba(13,15,19,.055); --a-line:rgba(13,15,19,.1);
  --a-hover:rgba(13,15,19,.04); --a-plate:rgba(13,15,19,.045);
  --a-row-on:rgba(13,15,19,.07);
  --a-row-on-sh:inset 0 1px 0 #fff, 0 0 0 .5px rgba(13,15,19,.1), 0 1px 2px rgba(13,15,19,.08);
  --a-e1:inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px rgba(13,15,19,.05), 0 1px 2px rgba(13,15,19,.05);
  --a-lift:0 2px 4px rgba(13,15,19,.03), 0 8px 16px -4px rgba(13,15,19,.06), 0 18px 36px -12px rgba(13,15,19,.09), 0 32px 64px -24px rgba(13,15,19,.10);
  --a-float:linear-gradient(180deg,#fff,#fafafb);
  --a-side:linear-gradient(rgba(255,255,255,.34),rgba(255,255,255,.22) 56px),#ededee;
  --a-dock:linear-gradient(rgba(255,255,255,.65),rgba(255,255,255,.45)),#ededee;
  --a-well:#e3e3e4; --a-well-bd:rgba(13,15,19,.12);
  --a-well-sh:inset 0 1px 2px rgba(13,15,19,.10), 0 1px 0 rgba(255,255,255,.9);
  --a-tab:linear-gradient(#fff,#f7f7f8);
  --a-tab-sh:inset 0 1px 0 #fff, 0 0 0 1px rgba(13,15,19,.06), 0 1px 2px rgba(13,15,19,.10);
  --a-new-bg:rgb(251,251,252); --a-new-ink:rgb(42,42,44);
  --a-new-sh:inset 0 0 0 1px rgba(13,15,19,.26), inset 0 1px 0 rgba(255,255,255,.9), 0 4px 12px -6px rgba(13,15,19,.22);
  --a-card-sh:inset 0 1px 0 #fff, 0 0 0 1px rgba(13,15,19,.06), 0 1px 2px rgba(13,15,19,.08);
  --a-soon:#eb9309; --a-late:#b81f19;}
.shell .fglyph{--fg-fill:#e3e3e5;}
:root[data-theme="light"] .shell .fglyph{--fg-fill:#fff;}
.deco{cursor:default;pointer-events:none;}

/* the sidebar: brand, search well, the six places, the board tree, archive, trash, you */
.side{flex:none;width:232px;display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:16px;overflow:hidden;
  background:var(--a-side);box-shadow:var(--a-e1),var(--a-lift);}
.side-brand{display:flex;align-items:center;gap:10px;height:40px;padding:0 8px 0 12px;flex:none;}
.side-brand .logo-mark{width:20px;height:22px;}
.side-dom{font-size:15px;color:var(--t2);white-space:nowrap;}
.side-dom b{font-weight:600;color:var(--t1);}
.side-search{display:flex;align-items:center;gap:10px;height:32px;margin:4px 0 6px;padding:0 8px 0 15px;border-radius:12px;flex:none;
  background:var(--a-well);border:1px solid var(--a-well-bd);box-shadow:var(--a-well-sh);font-size:13px;font-weight:600;color:var(--t3);}
.side-search span{flex:1;}
.side-search kbd,.side-btn kbd{font:500 11px/1 "Anavect",sans-serif;color:var(--t3);padding:3px 6px;border-radius:6px;box-shadow:inset 0 0 0 1px var(--a-line);}
.side-nav{display:flex;flex-direction:column;gap:2px;flex:none;}
.side-btn{display:flex;align-items:center;gap:12px;width:100%;height:32px;padding:0 12px 0 16px;border-radius:10px;
  font-size:13px;font-weight:450;color:var(--t1);text-align:left;
  transition:background-color var(--d-1) var(--ease), color var(--d-1) var(--ease);}
.side-btn .ii{color:var(--t2);}
.side-btn span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.side-btn.on{background:var(--a-row-on);box-shadow:var(--a-row-on-sh);}
.side-btn:focus-visible,.tree-b:focus-visible{outline-offset:-2px;}
.side-sec{display:flex;align-items:center;gap:6px;height:32px;margin-top:8px;padding:0 4px 0 12px;font-size:12px;font-weight:600;color:var(--t3);flex:none;}
.side-sec b{font-size:11px;font-weight:450;}
.side-add{margin-left:auto;display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 10px 0 8px;border-radius:9px;
  font-size:12px;font-weight:500;color:var(--t2);box-shadow:inset 0 0 0 1px var(--a-line);}
.side-tree{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-height:0;overflow:hidden;}
.tree-ws{display:flex;align-items:center;gap:8px;height:32px;padding-left:12px;font-size:13px;color:var(--t2);flex:none;}
.ws-ic{color:var(--t3);}
.tree-b{display:flex;align-items:center;width:100%;height:32px;padding:0 10px 0 44px;border-radius:10px;
  font-size:13px;font-weight:450;color:var(--t1);text-align:left;flex:none;transition:background-color var(--d-1) var(--ease);}
.tree-b span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tree-b.on{background:var(--a-row-on);}
.side-foot{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:none;padding-top:6px;border-top:1px solid var(--a-rule);}
.side-foot .side-btn{padding:0 10px 0 12px;gap:8px;}
.side-me{grid-column:1/-1;display:flex;align-items:center;gap:10px;height:44px;padding:0 6px 0 8px;border-radius:10px;}
.side-me .avatar{width:28px;height:28px;font-size:11px;}
.me-t{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.25;}
.me-t b{font-size:13px;font-weight:500;color:var(--t1);}
.me-t em{font-style:normal;font-size:11.5px;color:var(--t3);}
.me-th{width:28px;height:28px;border-radius:8px;align-items:center;justify-content:center;color:var(--t2);}
@media (max-height:760px){.sb-qa,.sb-pp{display:none;}}

/* the pane: board head, the views, the bottom board bar floating over them */
.pane{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;container:pane / inline-size;}
.board-head{position:relative;z-index:6;padding:6px 12px 12px;flex:none;}
.crumb{display:flex;align-items:center;gap:4px;margin:0;font-size:12px;line-height:16px;font-weight:400;color:var(--t3);}
.board-title-row{position:relative;display:flex;align-items:center;gap:4px;margin-top:6px;min-width:0;}
.board-name{display:grid;font-size:32px;font-weight:600;line-height:36px;letter-spacing:-.03em;color:var(--t1);min-width:0;}
.bn-t{grid-area:1/1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.icon-btn{width:32px;height:32px;border-radius:12px;display:grid;place-items:center;color:var(--t3);flex:none;
  transition:color var(--d-1) var(--ease), background-color var(--d-1) var(--ease);}
.bsw-btn{color:var(--t2);}
.icon-btn.star.on{color:var(--logo-3);}
.icon-btn.star.on svg{fill:currentColor;}
.bsw-btn .ii{transition:transform var(--d-3) var(--ease);}
.bsw-btn[aria-expanded="true"]{color:var(--t1);background:var(--fill-on);}
.bsw-btn[aria-expanded="true"] .ii{transform:rotate(180deg);}
.pill-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 6px;
  border-radius:var(--r-pill);font-size:var(--fs-micro);font-weight:700;color:var(--t1);background:var(--fill-on);}
.board-meta{display:flex;align-items:center;gap:8px;margin-left:12px;min-width:0;}
.bcount{font-size:13px;font-weight:450;color:var(--t2);white-space:nowrap;}
.tools-btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px 0 8px;border-radius:12px;font-size:13px;color:var(--t2);white-space:nowrap;}
/* who is on the board now: the app's overlapping faces, each cut out of the ground */
.br-online{display:inline-flex;align-items:center;margin-left:auto;flex:none;}
.br-online .avatar{width:24px;height:24px;font-size:10px;box-shadow:0 0 0 2px var(--a-s0);}
.br-online .avatar + .avatar{margin-left:-6px;}

.bsw-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:20;width:240px;padding:6px;
  background:var(--a-float);border-radius:16px;box-shadow:var(--a-float-sh);
  opacity:0;transform:translateY(-4px);
  transition:opacity var(--d-2) var(--ease), transform var(--d-3) var(--ease);}
.bsw-pop.open{opacity:1;transform:none;transition-duration:var(--d-2),var(--d-3);}
.bsw-pop[hidden]{display:none;}
.bsw-item{display:flex;align-items:center;gap:8px;width:100%;height:36px;padding:0 10px;border-radius:var(--r-sm);
  font-size:var(--fs-sm);font-weight:500;color:var(--t1);text-align:left;transition:background-color var(--d-1) var(--ease);}
.bsw-item:focus-visible{outline-offset:-2px;}
.bsw-item .bsw-check{width:15px;display:inline-flex;color:var(--t1);}

/* the six views crossfade; .views clips the slide */
.views{position:relative;flex:1;min-height:0;overflow:hidden;}
.view{position:absolute;inset:0;opacity:0;pointer-events:none;overflow:hidden;}
.view.on{opacity:1;pointer-events:auto;}

/* protagonist: the app's quiet selected plate in every view, no colour of its own */
.board-table tr.hero-row td,.rcard.hero-row,.kb-c.hero-row,.fv-card.hero-row,.tl-row.hero-row{
  background-image:linear-gradient(var(--a-plate),var(--a-plate));}

/* the table: group line with its 3px spine, one ruled sheet, no column rules */
.board-body{height:100%;overflow:hidden;padding:0 12px 80px;}
.group{position:relative;margin-bottom:16px;}
.group-head{position:relative;display:flex;align-items:center;height:54px;padding:0 8px 0 4px;border-bottom:1px solid var(--a-line);min-width:0;}
.group-head::before{content:"";flex:none;width:3px;height:16px;border-radius:2px;background:var(--gcolor);margin:0 8px 0 4px;}
.group-caret{order:-1;width:16px;height:20px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:var(--t3);flex:none;
  transition:background-color var(--d-1) var(--ease), color var(--d-1) var(--ease);}
.group-caret .ic{transition:transform var(--d-3) var(--ease);}
.group-caret[aria-expanded="false"] .ic{transform:rotate(-90deg);}
.group-title{margin:0;font-size:15px;font-weight:600;color:var(--t1);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.group-count{flex:none;margin-left:8px;font-size:12px;font-weight:400;color:var(--t3);white-space:nowrap;}
.group-count b{font-weight:400;}
.grp-body{overflow:hidden;}

.table-wrap{overflow-x:auto;scrollbar-width:none;}
.table-wrap::-webkit-scrollbar{display:none;}
.board-table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:100%;}
.board-table th{height:32px;padding:0 6px;font-size:12px;font-weight:500;color:var(--t3);text-align:center;white-space:nowrap;
  border-bottom:1px solid var(--a-line);}
.board-table th.col-name{text-align:left;padding-left:26px;}
.col-head{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;padding:0 4px;}
.board-table th[data-type="text"],.board-table th[data-type="dropdown"]{text-align:left;}
.board-table th[data-type="date"],.board-table th[data-type="num"]{text-align:right;}
.board-table td{height:40px;padding:0;background:var(--a-s0);border-bottom:1px solid var(--a-rule);text-align:center;position:relative;
  font-size:13px;color:var(--t2);white-space:nowrap;}
/* no overflow clip on a cell, as in the app: the spans inside clip themselves */
.board-table td[data-type="text"],.board-table td[data-type="dropdown"]{text-align:left;}
.board-table td[data-type="date"],.board-table td[data-type="num"]{text-align:right;}
.board-table td.col-name{text-align:left;padding:0 6px 0 30px;}
html.js .item-row{opacity:0;transform:translateY(6px);}
html.js .item-row.in{opacity:1;transform:none;transition:opacity var(--d-4) var(--ease),transform var(--d-4) var(--ease);}
.item-name{display:block;padding:3px 0;font-weight:400;font-size:13.5px;color:var(--t1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* the status capsule, as the app draws it: a 16% tint, ink mixed from the label, a 20% rim */
.status-pill{--labq:color-mix(in oklch, var(--lab, #8a8a8d) 86%, #b4b4b6);
  display:inline-block;height:24px;line-height:24px;padding:0 10px;border-radius:8px;
  font-size:12px;font-weight:500;text-align:center;vertical-align:middle;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:color-mix(in srgb, var(--labq) 58%, #fff);
  background:color-mix(in srgb, var(--lab, #8a8a8d) 16%, transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--labq) 20%, transparent);}
:root[data-theme="light"] .status-pill{color:color-mix(in srgb, var(--lab, #8a8a8d) 47%, #000);
  background:color-mix(in srgb, var(--lab, #8a8a8d) 20%, transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--lab, #8a8a8d) 60%, transparent);}
.board-table .status-pill{width:calc(var(--cw, 140px) - 20px);}
.status-pill.sm{height:22px;line-height:22px;padding:0 8px;font-size:11.5px;}
.cell-text{display:inline-block;max-width:calc(var(--cw, 200px) - 12px);padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--t2);vertical-align:middle;}
.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-weight:600;letter-spacing:.02em;flex:none;
  width:30px;height:30px;font-size:12px;}
.cell-date{display:inline-block;max-width:calc(var(--cw, 200px) - 12px);overflow:hidden;
  font-size:12.5px;font-variant-numeric:tabular-nums;padding:0 10px;white-space:nowrap;vertical-align:middle;}
.cell-date.overdue{--dcol:var(--d-red);}
.cell-files{display:inline-flex;align-items:center;gap:0;padding:4px 6px;--fan-w:22px;--fan-h:28px;
  max-width:calc(var(--cw, 200px) - 12px);overflow:hidden;}
.file-mini{position:relative;display:inline-block;width:var(--fan-w);height:var(--fan-h);flex:none;margin-left:calc(var(--fan-w) * -.55);}
.file-mini:first-child{margin-left:0;}
.file-mini:nth-child(2){transform:translateY(-2px);}
.file-mini:nth-child(3){transform:translateY(-3px);}
.file-more{margin-left:6px;font-family:"Anavect Num",ui-monospace,Menlo,monospace;font-size:10.5px;color:var(--t3);}
.cell-empty{color:var(--t3);opacity:.5;display:inline-flex;}
.fglyph{--fg-fill:#fff;width:100%;height:100%;overflow:visible;display:block;}
.fglyph .fg-band{fill:var(--fb);}
.fglyph .fg-body{fill:var(--fg-fill);stroke:var(--fb);}
.fglyph .fg-fold{fill:color-mix(in srgb, var(--fb) 22%, #fff);stroke:var(--fb);}
.fglyph .fg-line{stroke:color-mix(in srgb, var(--fb) 45%, transparent);}
.fglyph text{fill:#fff;font-family:"Anavect",sans-serif;font-weight:800;}
.summary-row td{height:36px;border-bottom:0;}
.dist-bar{display:flex;height:18px;border-radius:4px;overflow:hidden;margin:0 8px;}
.dist-seg{min-width:4px;}
.timeline-pill{display:inline-block;padding:0 10px;font-size:12.5px;color:var(--t1);font-variant-numeric:tabular-nums;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:calc(var(--cw,200px) - 12px);vertical-align:middle;}

/* phone register: cards */
.rcards{display:none;}
.rcard{position:relative;padding:12px 14px 12px 18px;border-bottom:1px solid var(--a-rule);}
.rcard-h{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.rcard-h b{font-weight:500;font-size:13.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rcard-h .status-pill{flex:none;}
.rcard-m{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:var(--fs-xs);color:var(--t3);}
.rcard-m .avatar{width:22px;height:22px;font-size:9.5px;}
.rcard-m .cell-date{padding:0;margin-left:auto;}

/* kanban: the app's lanes, a 3px spine in the head and on each card */
/* the Board view, as the app draws it (views.js kanban; app-06 p113/p119, app-11 rows 3 and 17):
   lanes in a row from the left edge, 240 to 360px each, sideways when they run past the pane,
   whose hidden side fades as the table's does; a lane is its status capsule and count over a
   hairline, its cards, and "Add file" outside the list (phase-374; was a four-column grid,
   two by two on a phone, where one long name broke the row of shapes) */
.kb{display:flex;flex-direction:column;height:100%;min-height:0;}
.kb-pg{display:none;}
.kb-track{display:flex;align-items:flex-start;gap:16px;flex:1;min-height:0;padding:16px 16px 80px;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);
          mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);}
.kb.at-end .kb-track{-webkit-mask-image:none;mask-image:none;}
.kb-col{display:flex;flex-direction:column;flex:1 0 240px;min-width:240px;max-width:360px;max-height:100%;min-height:0;}
.kb-h{display:flex;align-items:center;gap:8px;flex:none;margin:0 0 12px;padding:0 4px 12px;border-bottom:1px solid var(--a-rule);}
.kb-h .kb-cap{height:auto;min-height:24px;line-height:20px;padding:2px 10px;font-size:13.5px;font-weight:600;flex:0 1 auto;}
.kb-n{flex:none;font-size:12px;line-height:16px;color:var(--t3);font-variant-numeric:tabular-nums;white-space:nowrap;}
.kb-list{display:flex;flex-direction:column;gap:8px;flex:0 1 auto;min-height:0;overflow-y:auto;scrollbar-width:none;
  padding:0 2px 40px 0;
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 40px),transparent);
          mask-image:linear-gradient(to bottom,#000 calc(100% - 40px),transparent);}
.kb-c{position:relative;flex:none;display:flex;flex-direction:column;gap:2px;padding:14px 16px 14px 24px;border-radius:16px;
  background:var(--a-card);box-shadow:var(--a-card-sh);}
.kb-sp{position:absolute;left:10px;top:14px;bottom:14px;width:3px;border-radius:2px;background:var(--gc);}
.kb-name{font-size:13.5px;line-height:20px;font-weight:500;color:var(--t1);overflow-wrap:anywhere;}
.kb-sub{font-size:12px;line-height:16px;color:var(--t3);overflow-wrap:anywhere;}
.kb-ft{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;margin-top:10px;}
.kb-key{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:2px;min-width:0;}
.kb-fig{font-size:13.5px;line-height:20px;font-weight:500;color:var(--t2);font-variant-numeric:tabular-nums;white-space:nowrap;}
.kb-fig em{font-style:normal;font-size:12px;font-weight:400;color:var(--t3);}
.kb-d{font-size:12px;line-height:16px;color:var(--t2);white-space:nowrap;}
.kb-d.overdue{color:var(--a-late);}
.kb-ft .avatar{width:24px;height:24px;font-size:10px;}
.kb-add{flex:none;display:flex;align-items:center;gap:6px;width:100%;min-height:36px;margin:8px 0 0;padding:0 12px;border-radius:12px;
  box-shadow:inset 0 0 0 1px var(--a-rule);font-size:13px;line-height:20px;font-weight:500;color:var(--t2);}
.kb-add > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.kb-add .ic{flex:none;}
@media (pointer:coarse){ .kb-add{min-height:44px;} }

/* calendar: the month grid, today in the app's blue square, items as capsules */
.cal{padding:12px 16px 80px;height:100%;display:flex;flex-direction:column;}
.cal-top{display:flex;align-items:center;gap:12px;margin-bottom:10px;}
.cal-m{font-size:15px;font-weight:600;color:var(--t1);}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:6px;}
.cal-dow span{font-size:12px;font-weight:500;color:var(--t3);text-align:center;}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:1fr;gap:1px;flex:1;min-height:0;
  background:var(--a-line);border:1px solid var(--a-line);border-radius:16px;overflow:hidden;}
.cal-d{position:relative;background:var(--a-s1);padding:6px;min-height:0;display:flex;flex-direction:column;gap:3px;overflow:hidden;}
.cal-d.off{opacity:.34;}
.cal-d .n{display:inline-grid;place-items:center;align-self:flex-start;min-width:24px;height:24px;padding:0 4px;border-radius:8px;font-size:12px;color:var(--t3);}
/* today, as the app marks it above 700px: a brand tint with the day in brand ink (app-06 p113-dn);
   the phone keeps the solid plate below (phase-374) */
.cal-d.today .n{background:color-mix(in srgb, var(--a-brand) 14%, transparent);color:var(--a-brand);font-weight:600;}
.cal-e{--lab:var(--c);--labq:color-mix(in oklch, var(--c) 86%, #b4b4b6);
  display:flex;align-items:center;padding:4px 8px;border-radius:8px;font-size:12px;font-weight:500;line-height:16px;
  white-space:nowrap;overflow:hidden;min-width:0;
  color:color-mix(in srgb, var(--labq) 58%, #fff);
  background:color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--labq) 20%, transparent);}
:root[data-theme="light"] .cal-e{color:color-mix(in srgb, var(--c) 47%, #000);
  background:color-mix(in srgb, var(--c) 20%, transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent);}
.cal-e.hero-row,:root[data-theme="light"] .cal-e.hero-row{box-shadow:inset 0 0 0 1px var(--c);}
.cal-e span{overflow:hidden;text-overflow:ellipsis;}
.strip-nav{display:inline-flex;align-items:center;gap:4px;}
.strip-b{display:inline-grid;place-items:center;height:32px;min-width:32px;border-radius:12px;color:var(--t2);font-size:13px;}
.strip-b.strip-today{padding:0 12px;box-shadow:inset 0 0 0 1px var(--a-line);color:var(--t1);}

/* timeline: the app's Gantt, a label column, months over weeks, bars in the label colour */
.tl{height:100%;padding:12px 16px 80px;display:flex;flex-direction:column;gap:10px;}
.tl-top{display:flex;align-items:center;gap:12px;min-width:0;}
.tl-win{margin:0;font-size:15px;font-weight:600;line-height:20px;color:var(--t1);white-space:nowrap;}
.tl-fr{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:12px;font-size:13px;color:var(--t2);}
.tl-note{margin-left:auto;font-size:12px;color:var(--t3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.tl-pane{--lw:220px;position:relative;flex:1;min-height:0;overflow:hidden;background:var(--a-s1);border:1px solid var(--a-line);border-radius:16px;padding:0 14px 20px;}
@container pane (max-width:900px){.tl-pane{--lw:130px;}}
.tl-head{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:var(--lw) 1fr;height:52px;background:var(--a-s1);border-bottom:1px solid var(--a-line);}
.tl-corner{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;padding:0 12px 8px 0;font-size:12px;color:var(--t3);}
.tl-yr{font-size:11px;color:var(--t3);}
.tl-axis{position:relative;}
.tl-months{position:absolute;left:0;right:0;top:0;height:26px;}
.tl-mo{position:absolute;top:0;height:26px;display:flex;align-items:center;gap:4px;padding-left:8px;border-left:1px solid var(--a-line);
  font-size:12px;color:var(--t3);white-space:nowrap;overflow:hidden;}
.tl-mo b{font-weight:600;color:var(--t1);font-size:13px;}
.tl-days{position:absolute;left:0;right:0;bottom:0;height:24px;}
.tl-wk{position:absolute;bottom:0;height:24px;display:flex;align-items:center;padding-left:6px;font-size:11px;color:var(--t3);white-space:nowrap;overflow:hidden;}
.tl-wk.today{color:var(--a-brand);font-weight:600;border-left:1px solid var(--a-brand);}
.tl-body{position:relative;}
.tl-row{display:grid;grid-template-columns:var(--lw) 1fr;align-items:center;min-height:40px;border-bottom:1px solid var(--a-rule);}
.tl-l{font-size:13.5px;line-height:20px;color:var(--t1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:12px;}
.tl-tr{position:relative;height:28px;background:repeating-linear-gradient(90deg,var(--line-2) 0 1px,transparent 1px var(--wk));}
.tl-bar{container:bar / inline-size;position:absolute;top:3px;height:22px;border-radius:8px;display:flex;align-items:center;gap:8px;
  padding:0 8px 0 11px;overflow:hidden;background:color-mix(in srgb, var(--lab) 18%, var(--a-s1));
  box-shadow:inset 3px 0 0 var(--lab), inset 0 0 0 1px color-mix(in srgb, var(--lab) 35%, transparent);}
.tl-n{font-size:12px;font-weight:500;color:var(--t1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.tl-d{font-family:"Anavect Num",ui-monospace,Menlo,monospace;font-size:10.5px;color:var(--t3);white-space:nowrap;margin-left:auto;}
@container bar (max-width:199px){.tl-d{display:none;}}
@container bar (max-width:89px){.tl-n,.tl-d{display:none;}}
.tl-now{position:absolute;top:0;bottom:0;left:calc(var(--lw) + (100% - var(--lw)) * var(--x) / 100);width:1px;
  background:color-mix(in srgb, var(--a-brand) 55%, transparent);pointer-events:none;}

/* files: the board's file library, a search well, kind chips, cards */
.fv{height:100%;padding:12px 16px 80px;display:flex;flex-direction:column;gap:12px;}
.fv-bar{display:flex;align-items:center;gap:12px;min-width:0;}
.fv-search{display:inline-flex;align-items:center;gap:8px;flex:none;width:220px;height:32px;padding:0 12px;border-radius:12px;
  background:var(--a-well);border:1px solid var(--a-well-bd);box-shadow:var(--a-well-sh);font-size:13px;color:var(--t3);}
.fv-kindrow{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;}
.fv-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:10px;background:var(--a-s2);
  border:1px solid transparent;font-size:12.5px;color:var(--t2);white-space:nowrap;flex:none;}
.fv-chip b{font-family:"Anavect Num",ui-monospace,Menlo,monospace;font-size:10.5px;font-weight:400;color:var(--t3);}
.fv-chip.on{background:var(--a-brand-soft);border-color:color-mix(in srgb, var(--a-brand) 55%, transparent);color:var(--a-brand);}
.fv-chip.on b{color:var(--a-brand);}
.fv-cg{width:12px;height:14px;flex:none;display:inline-block;}
.fv-sum{font-family:"Anavect Num",ui-monospace,Menlo,monospace;font-size:11.5px;color:var(--t3);}
.fv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;align-content:start;min-height:0;overflow:hidden;}
.fv-card{display:flex;align-items:center;gap:11px;padding:12px 12px 11px;border-radius:16px;background:var(--a-card);box-shadow:var(--a-card-sh);min-width:0;}
.fv-th{width:44px;height:56px;flex:none;display:inline-block;}
.fv-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;}
.fv-name{font-size:13px;font-weight:600;color:var(--t1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fv-doc{font-size:12px;line-height:16px;color:var(--t3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fv-meta{font-size:11.5px;color:var(--t3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fv-dl{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none;background:var(--a-brand-soft);color:var(--a-brand);}

/* overview: the app's own dashboard (app-02 .kpi, the status ring, group bars):
   three tiles with a 3px spine in the signal hue, data colour on a swatch with its
   own 1px ink edge, numbers in text colour. phase-369
   (was four uppercase tiles, a bar chart and a due list the app does not draw) */
.dash{padding:18px 20px 80px;height:100%;display:flex;flex-direction:column;gap:14px;overflow:hidden;}
.dash-top{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.dash-k{--kc:var(--logo-5);position:relative;display:flex;flex-direction:column;padding:12px 14px 12px 17px;border-radius:16px;
  background:var(--a-card);box-shadow:var(--a-card-sh);min-width:0;}
.dash-k::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:2px;background:var(--kc);}
.dash-k.ok{--kc:var(--logo-4);}
.dash-k.warn{--kc:var(--logo-2);}
.dash-k .v{font-size:25px;font-weight:600;letter-spacing:-.03em;line-height:1.1;color:var(--t1);}
.dash-k .k{font-size:var(--fs-xs);font-weight:500;color:var(--t2);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dash-k .s{font-size:var(--fs-micro);color:var(--t3);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dash i.sw{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none;background:var(--c);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, var(--t1));}
.dash-mid{display:grid;grid-template-columns:1.25fr 1fr;gap:14px;min-height:0;flex:1;}
.dash-card{border-radius:16px;background:var(--a-card);box-shadow:var(--a-card-sh);padding:14px 16px;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;}
.dash-card .k{font-size:var(--fs-xs);font-weight:600;color:var(--t2);margin-bottom:10px;}
.ov-ring-wrap{display:flex;align-items:center;gap:18px;flex:1;min-height:0;}
.ov-ring{position:relative;flex:none;width:124px;aspect-ratio:1;}
.ov-ring svg{display:block;width:100%;height:100%;}
.ov-track,.ov-seg{fill:none;stroke-width:11;}
.ov-track{stroke:var(--a-s3);}
.ov-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15;}
.ov-center b{font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--t1);}
.ov-center span{font-size:var(--fs-micro);color:var(--t3);}
.ov-legend{display:flex;flex-direction:column;flex:1;min-width:0;}
.ov-lr{display:grid;grid-template-columns:8px minmax(0,1fr) auto 34px;align-items:center;column-gap:8px;padding:6px 0;
  font-size:var(--fs-sm);border-bottom:1px solid var(--line-2);}
.ov-lr:last-child{border-bottom:0;}
.ov-ln{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--t1);}
.ov-lr b,.ov-gr b{font-weight:600;color:var(--t1);text-align:right;}
.ov-pct{text-align:right;font-size:var(--fs-micro);color:var(--t3);}
.ov-gr{display:grid;grid-template-columns:8px minmax(0,1fr) auto;grid-template-areas:"sw n c" "bar bar bar";align-items:center;
  column-gap:8px;row-gap:6px;padding:6px 0;font-size:var(--fs-sm);}
.ov-gr > .sw{grid-area:sw;}
.ov-gn{grid-area:n;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--t1);}
.ov-gr > b{grid-area:c;}
.ov-bar{grid-area:bar;height:8px;border-radius:var(--r-pill);background:var(--a-s3);overflow:hidden;}
.ov-fill{display:block;height:100%;border-radius:inherit;background:var(--c);transform-origin:0 50%;
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, var(--t1));}

/* the bottom board bar, the app's dock: the view well with its sliding tab, search,
   Filter, Select, + New. The one rainbow line along its top is still and 1px */
.dock{position:absolute;left:0;right:0;bottom:12px;z-index:5;margin-inline:auto;width:max-content;max-width:calc(100% - 24px);
  display:flex;align-items:center;gap:8px;height:56px;padding:8px;border-radius:24px;
  background:var(--a-dock);box-shadow:var(--a-e1),var(--a-lift);}
.dock::before{content:"";position:absolute;left:6%;right:6%;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,#ff3229 16%,#ffa00a,#ffcc00,#00b842,#0089eb 84%,transparent);}
.dock-views{position:relative;display:flex;align-items:center;gap:2px;height:40px;padding:0 3px;border-radius:16px;flex:none;
  background:var(--a-well);border:1px solid var(--a-well-bd);box-shadow:var(--a-well-sh);}
.view-tab{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:32px;padding:0 12px;
  border-radius:12px;font-size:13.5px;font-weight:400;color:var(--t2);white-space:nowrap;user-select:none;
  transition:color var(--d-1) var(--ease), background-color var(--d-1) var(--ease);}
.view-tab:not(.on){width:40px;padding:0;}
.view-tab:not(.on) .vt-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.view-tab.on{color:var(--t1);}
.view-tab:focus-visible{outline-offset:-2px;}
.vt-add{display:inline-grid;place-items:center;width:32px;height:32px;color:var(--t3);flex:none;}
.vt-ind{position:absolute;left:0;top:calc(50% - 16px);height:32px;width:0;border-radius:12px;pointer-events:none;
  background:var(--a-tab);box-shadow:var(--a-tab-sh);
  transform:translateX(0);transition:transform var(--d-3) var(--ease), width var(--d-3) var(--ease);}
.dock-rule{width:1px;height:24px;background:var(--a-line);flex:none;}
.dock-search{display:inline-flex;align-items:center;gap:8px;width:220px;height:40px;padding:0 14px;border-radius:16px;flex:none;
  background:var(--a-well);border:1px solid var(--a-well-bd);box-shadow:var(--a-well-sh);
  font-size:13.5px;color:var(--t3);white-space:nowrap;overflow:hidden;}
.bs-ph{overflow:hidden;text-overflow:ellipsis;min-width:0;}
.dock-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:12px;font-size:14px;font-weight:500;color:var(--t2);white-space:nowrap;flex:none;}
.dock-new{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px 0 12px;border-radius:12px;font-size:14px;font-weight:600;
  color:var(--a-new-ink);background:var(--a-new-bg);box-shadow:var(--a-new-sh);white-space:nowrap;flex:none;}
@container pane (max-width:960px){.db-s{display:none;}}
@container pane (max-width:820px){.dock-search{width:140px;}}
@container pane (max-width:780px){.dock-btn .act-label{display:none;}.dock-btn{width:36px;padding:0;justify-content:center;}}
@container pane (max-width:740px){.vt-add{display:none;}.dock-search{width:120px;}}

/* phones: the app's two bottom bars (the board bar above the five places) and the
   views sheet; shown from 700px down (section 13) */
.pbar,.ptabs,.msheet{display:none;}
.pv-chip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border-radius:12px;
  background:var(--a-tab);box-shadow:var(--a-tab-sh);font-size:14px;font-weight:500;color:var(--t1);}
.pv-ic{display:inline-flex;}
.pv-more{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 10px;border-radius:12px;font-size:13px;color:var(--t2);}
.pv-tool{display:inline-grid;place-items:center;width:36px;height:36px;color:var(--t2);flex:none;}
.pv-more + .pv-tool{margin-left:auto;}
.pv-new{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 12px 0 10px;border-radius:12px;
  background:var(--a-new-bg);color:var(--a-new-ink);box-shadow:var(--a-new-sh);font-size:14px;font-weight:600;}
.pt-btn{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  font-size:10.5px;color:var(--t3);border-radius:16px;}
.pt-btn.on{color:var(--t1);}
.pt-btn.on::before{content:"";position:absolute;left:18%;right:18%;bottom:6px;height:1px;
  background:linear-gradient(90deg,transparent,#ff3229 16%,#ffa00a,#ffcc00,#00b842,#0089eb 84%,transparent);}
.pt-btn .avatar{width:22px;height:22px;font-size:9px;}
.msheet{position:absolute;left:8px;right:8px;bottom:8px;z-index:8;padding:8px 8px 10px;border-radius:24px;
  background:var(--a-float);box-shadow:var(--a-float-sh);opacity:0;transform:translateY(16px);
  transition:opacity var(--d-2) var(--ease), transform var(--d-3) var(--ease);}
.msheet.open{opacity:1;transform:none;}
.ms-h{margin:4px 8px 6px;font-size:12px;font-weight:600;color:var(--t3);}
.ms-list{display:flex;flex-direction:column;gap:2px;}
.ms-item{display:flex;align-items:center;gap:12px;width:100%;height:44px;padding:0 12px;border-radius:12px;font-size:15px;color:var(--t1);text-align:left;}
.ms-item span{flex:1;}
.ms-item[aria-current="true"]{background:var(--a-row-on);}

/* hover, as in the app: a row and a calendar day take the quiet hover plate, a
   sidebar row, tab or menu row its plate; nothing moves, no ring. Pointer devices only */
@media (hover:hover){
  .board-table tr.item-row:not(.hero-row):hover td,
  .cal-d:not(.off):hover{background-image:linear-gradient(var(--a-hover),var(--a-hover));}
  .side-btn:not(.on):hover,.tree-b:not(.on):hover,.view-tab:not(.on):hover,.group-caret:hover,.bsw-btn:hover,
  .bsw-item:hover,.pt-btn:hover,.ms-item:hover,.pv-chip:hover,.pv-more:hover,.kb-pb:not(:disabled):hover{background-color:var(--a-hover);color:var(--t1);}
}

/* ============================================================
   8  RULES: WHEN / THEN cards, each with a row that plays its rule
   ============================================================ */
.rl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:64px;}
.rl-ill{height:112px;border-radius:var(--r-md);background:var(--pic-bg);border:1px solid var(--line);
  display:flex;flex-direction:column;justify-content:center;gap:10px;padding:0 14px;overflow:hidden;}
.rl-name{min-width:0;font-size:var(--fs-sm);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rl-row{display:flex;align-items:center;min-width:0;}
.rl-trig{flex:none;display:grid;justify-items:start;}
.rl-trig > *{grid-area:1/1;}
.rl-trig .cell-date{padding:0;font-size:var(--fs-xs);}
.rl-a{opacity:0;}
.rl-run{position:relative;flex:1;min-width:24px;height:6px;margin:0 10px;}
.rl-line{position:absolute;left:0;right:0;top:2px;height:2px;border-radius:2px;background:var(--logo-5);
  transform-origin:0 50%;opacity:0;}
.rl-dot{position:absolute;left:0;top:0;width:6px;height:6px;border-radius:50%;background:var(--logo-5);opacity:0;}
.rl-targ{position:relative;flex:none;display:inline-flex;align-items:center;gap:5px;padding:3px;border-radius:var(--r-pill);}
.rl-targ .avatar{width:26px;height:26px;font-size:10.5px;}
.rl-tring{position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--logo-5);opacity:0;pointer-events:none;}
/* the bell sits beside the avatar, never over its initials */
.rl-bell{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  background:var(--fill-on);color:var(--t1);box-shadow:inset 0 0 0 1px var(--line);}
/* rule 1: the row leaves its place (dashed) and lands in the Done group */
.rl-mv{justify-content:flex-start;gap:6px;padding:9px 12px;}
.rl-src{flex:none;height:30px;border:1px dashed var(--hair);border-radius:var(--r-sm);}
.rl-dest{position:relative;display:flex;flex-direction:column;gap:3px;padding-left:10px;}
.rl-dest::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:2px;background:var(--gcolor);}
.rl-grp{font-size:var(--fs-micro);font-weight:700;line-height:16px;}
.rl-slot{position:relative;height:30px;border-radius:var(--r-sm);}
.rl-mrow{display:flex;align-items:center;justify-content:space-between;gap:8px;height:30px;padding:0 6px 0 10px;
  border-radius:var(--r-sm);background:var(--fill-on);box-shadow:inset 0 0 0 1px var(--line);}
.rl-sent{margin-top:20px;font-size:var(--fs-lg);font-weight:500;line-height:1.35;letter-spacing:-.012em;color:var(--t1);text-wrap:balance;}
.rl-half{display:block;}
.rl-half + .rl-half{margin-top:10px;}
.rl-lab{display:block;margin-bottom:3px;font-size:var(--fs-micro);font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);}
.rl-foot{margin-top:20px;font-size:var(--fs-sm);color:var(--t3);}

/* ============================================================
   9  HISTORY: the record card, side notes, This visit
   ============================================================ */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:38px;align-items:start;margin-top:58px;}
.rec{border-radius:var(--r-lg);background:var(--panel);box-shadow:var(--panel-sh);}
.rec-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid var(--line-2);background:var(--fill-hover);border-radius:var(--r-lg) var(--r-lg) 0 0;}
.rec-title{min-width:0;}
.rec-title b{display:block;font-size:var(--fs-body);font-weight:600;letter-spacing:-.014em;}
.rec-meta{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:var(--fs-micro);color:var(--t3);}
.rec-ver{flex:none;font-size:var(--fs-xs);color:var(--t2);}
.rec-sec{padding:14px 20px 8px;}
.rec-sec + .rec-sec{border-top:1px solid var(--line-2);}
.ic-sec-t{display:flex;align-items:center;gap:6px;margin:0 0 4px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--t2);}
.ic-sec-t > .ii{color:var(--t3);}
.act-row{position:relative;display:flex;align-items:center;gap:10px;padding:8px 8px;margin:0 -8px;border-radius:var(--r-xs);
  font-size:var(--fs-sm);color:var(--t2);transition:background-color var(--d-2) var(--ease);}
.act-row + .act-row{border-top:1px solid var(--line-2);}
.act-row::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:2px;border-radius:2px;background:var(--logo-5);
  opacity:0;transition:opacity var(--d-2) var(--ease);}
.act-row.lit{background:var(--fill-on);}
.act-row.lit::before{opacity:1;}
.act-row .avatar{width:26px;height:26px;font-size:11px;}
.act-row > span:nth-child(2){flex:1;min-width:0;}
.act-row b{color:var(--t1);font-weight:600;}
.act-was{color:var(--t2);}
.act-now{color:var(--t1);font-weight:650;}
.act-when{flex:none;font-size:var(--fs-micro);color:var(--t2);}
.act-auto{display:inline-flex;align-items:center;gap:3px;vertical-align:1px;margin-left:4px;padding:1px 6px 1px 4px;border-radius:var(--r-pill);
  font-size:var(--fs-micro);font-weight:500;color:var(--t2);background:var(--fill-on);white-space:nowrap;}
.docrev-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;}
.docrev-row{display:grid;align-items:center;column-gap:8px;row-gap:2px;
  grid-template-columns:14px auto minmax(0,1fr) auto;grid-template-areas:"line ver when tag" "line file file file";
  padding:6px;border-radius:var(--r-sm);}
.docrev-line{grid-area:line;position:relative;align-self:stretch;}
.docrev-line::before{content:"";position:absolute;left:6px;top:0;bottom:0;width:1px;background:var(--line);}
.docrev-line::after{content:"";position:absolute;left:2px;top:50%;margin-top:-4px;width:9px;height:9px;border-radius:50%;
  background:var(--pic-bg);box-shadow:inset 0 0 0 2px var(--hair);}
.docrev-row:first-child .docrev-line::before{top:50%;}
.docrev-row:last-child .docrev-line::before{bottom:50%;}
.docrev-latest .docrev-line::after{box-shadow:inset 0 0 0 3px var(--t1);}
.docrev-ver{grid-area:ver;font-size:var(--fs-micro);font-weight:600;color:var(--t1);white-space:nowrap;}
.docrev-when{grid-area:when;display:inline-flex;align-items:baseline;gap:5px;min-width:0;font-size:10.5px;color:var(--t2);white-space:nowrap;}
.docrev-dk{text-transform:uppercase;letter-spacing:.06em;font-size:9.5px;color:var(--t2);}
.docrev-file{grid-area:file;justify-self:start;max-width:100%;font-size:var(--fs-xs);color:var(--t2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.docrev-tag{grid-area:tag;justify-self:end;font-family:"Anavect Num",ui-monospace,Menlo,monospace;font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;
  color:var(--t1);background:var(--fill-on);border-radius:var(--r-pill);padding:2px 7px;white-space:nowrap;}
.rec-side{display:flex;flex-direction:column;gap:28px;min-width:0;}
.pts{display:flex;flex-direction:column;gap:18px;padding-top:6px;}
.pts p{font-size:var(--fs-body);color:var(--t2);line-height:1.55;text-wrap:pretty;}
.pts p:first-child{color:var(--t1);}

.tv-card{position:relative;padding:20px;border-radius:var(--r-lg);background:var(--panel);box-shadow:var(--panel-sh);}
.tv-title{font-size:var(--fs-body);font-weight:600;}
.tv-list{--tv-row:36px;list-style:none;margin:12px 0 0;padding:0;height:calc(var(--tv-row) * 7);overflow:hidden;}
.tv-list > li{overflow:hidden;}
.tv-e{display:flex;align-items:center;gap:10px;width:100%;height:var(--tv-row);padding:0 8px;border-radius:var(--r-sm);text-align:left;
  transition:background-color var(--d-1) var(--ease);}
.tv-e:focus-visible{outline-offset:-2px;}
.tv-av{width:22px;height:22px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--fill-on);color:var(--t1);}
.tv-text{flex:1;min-width:0;font-size:var(--fs-sm);color:var(--t1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tv-time{flex:none;font-size:var(--fs-xs);color:var(--t2);}
.tv-foot{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:var(--fs-xs);color:var(--t3);}
.tv-ring{position:fixed;z-index:95;pointer-events:none;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--logo-5) 90%, transparent);}

/* ============================================================
   11  FINALE, FAQ, BAND, FOOTER, TOASTS
   ============================================================ */
.fn-stage{display:flex;flex-direction:column;justify-content:flex-end;padding:88px 20px max(56px, 8svh);text-align:center;}
.fn-copy{display:flex;flex-direction:column;align-items:center;}
.fn-l1{font-size:clamp(28px,3.1vw,44px);line-height:1.06;letter-spacing:-.03em;font-weight:600;text-wrap:balance;max-width:760px;}
.fn-l2{margin-top:12px;font-size:var(--fs-lg);line-height:1.5;color:var(--t2);text-wrap:balance;}
html.js .fn-l{opacity:0;}
html.js .fn-on .fn-l{opacity:1;}

.faq{margin-top:52px;max-width:860px;padding:4px 28px;border-radius:var(--r-xl);background:var(--panel);box-shadow:var(--panel-sh);}
.faq details + details{border-top:1px solid var(--line);}
.faq summary{list-style:none;cursor:pointer;padding:22px 42px 22px 0;position:relative;
  font-size:var(--fs-lg);font-weight:500;letter-spacing:-.014em;border-radius:var(--r-xs);color:var(--t1);}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"";position:absolute;right:8px;top:50%;width:11px;height:11px;
  margin-top:-7px;border-right:1.8px solid var(--t3);border-bottom:1.8px solid var(--t3);
  transform:rotate(45deg);transition:transform var(--d-3) var(--ease), border-color var(--d-1) var(--ease);}
.faq details[open] summary::after{transform:translate(0,4px) rotate(-135deg);}
.faq-a{overflow:hidden;}
.faq-a p{padding:0 40px 24px 0;color:var(--t2);font-size:var(--fs-body);line-height:1.6;max-width:720px;text-wrap:pretty;}
@media (hover:hover){
  .faq summary:hover::after{border-color:var(--t1);}
  .tv-e:hover{background:var(--fill-hover);}
  .asc-foot-col a:not([aria-disabled="true"]):hover,.asc-foot-col a:not([aria-disabled="true"]):hover .ii{color:var(--t1);}
  .asc-foot-col a:not([aria-disabled="true"]):hover{background:var(--fill-hover);}
}
.group-caret:active,.bsw-btn:active,.bsw-item:active,.tv-e:active,.kb-pb:not(:disabled):active{
  background:var(--fill-on);transition-duration:var(--d-0);}
.faq summary:active{color:var(--t2);}
.asc-foot-col a:not([aria-disabled="true"]):active,.asc-foot-col a:not([aria-disabled="true"]):active .ii{color:var(--t3);transform:none;}

.asc-band{padding:min(15vh,130px) 0;position:relative;z-index:5;}
.band-in{text-align:center;border-radius:var(--r-xl);padding:clamp(44px,7vw,84px) 28px;background:var(--panel);box-shadow:var(--panel-sh);}
.band-in h2{text-wrap:balance;font-size:clamp(28px,4.4vw,48px);line-height:1.06;letter-spacing:-.034em;font-weight:600;}
.band-in .cta{margin-top:32px;}

.asc-foot{position:relative;z-index:5;margin:0 16px;border-radius:var(--r-xl) var(--r-xl) 0 0;padding:88px 0 40px;background:var(--panel);box-shadow:var(--panel-sh);}
.asc-foot-hair{position:absolute;top:0;left:6%;right:6%;height:1px;z-index:2;
  background:linear-gradient(90deg,transparent,var(--logo-1) 18%,var(--logo-2) 36%,var(--logo-3) 50%,var(--logo-4) 66%,var(--logo-5) 84%,transparent);}
.asc-foot-grid{max-width:1180px;margin:0 auto;padding:0 40px;position:relative;z-index:1;
  display:grid;grid-template-columns:minmax(260px,1.6fr) repeat(2,minmax(150px,1fr));gap:44px 32px;}
.asc-foot-brand .logo-mark{width:30px;height:33px;}
/* phase-151: the name beside the mark, footer only (the header keeps the mark
   alone). Display face at the board-name weight, quieter than any headline; the
   trademark sign rides at the cap line without opening the line box, so the
   word stays centred on the mark */
.asc-foot-brand{gap:11px;}
.asc-foot-name{font-size:22px;font-weight:600;letter-spacing:-.026em;line-height:1;color:var(--t1);white-space:nowrap;}
.asc-tm{font-size:.5em;font-weight:500;letter-spacing:0;line-height:0;vertical-align:baseline;position:relative;top:-.7em;
  margin-left:.18em;color:var(--t2);}
.asc-foot-tag{margin-top:22px;color:var(--t2);font-size:var(--fs-body);line-height:1.6;max-width:360px;}
.asc-foot-col h3{font-size:var(--fs-micro);letter-spacing:.15em;text-transform:uppercase;color:var(--t2);margin-bottom:14px;font-weight:600;}
.asc-foot-col a{display:flex;align-items:center;gap:9px;width:fit-content;color:var(--t2);text-decoration:none;font-size:var(--fs-sm);font-weight:500;
  padding:7px 12px;margin-left:-12px;border-radius:var(--r-pill);cursor:pointer;
  transition:color var(--d-1) var(--ease), background-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);}
.asc-foot-col a .ii{color:var(--t3);transition:color var(--d-1) var(--ease), transform var(--d-2) var(--ease);}
.asc-foot-col a[aria-disabled="true"]{color:var(--t3);opacity:.6;cursor:default;}
.asc-foot-bar{max-width:1180px;margin:72px auto 0;padding:26px 40px 0;position:relative;z-index:1;
  border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:18px;
  flex-wrap:wrap;color:var(--t3);font-size:var(--fs-xs);}
.asc-foot-bar b{color:var(--t2);font-weight:500;}

.toast-tray{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;flex-direction:column;gap:9px;align-items:flex-end;
  max-width:min(360px, calc(100vw - 24px));}
.toast{display:flex;align-items:center;gap:11px;padding:12px 16px;border-radius:var(--r-pill);
  font-size:var(--fs-sm);text-align:left;color:var(--t1);background:var(--panel);box-shadow:var(--panel-sh);
  opacity:0;transform:translateY(8px);
  transition:opacity var(--d-2) var(--ease), transform var(--d-3) var(--ease);}
.toast.in{opacity:1;transform:none;}
.toast.out{opacity:0;transform:translateY(4px);transition-duration:var(--d-2);}
.toast .dot{width:7px;height:7px;border-radius:var(--r-pill);flex:none;background:var(--logo-4);}

/* ============================================================
   11b  MEASURE: no line left holding one or two words.
   Left-aligned multi-line body copy fills its measure (justified,
   word spacing first, hyphenation as the last resort). Centred copy
   and headings balance instead, which keeps the centring true.
   Nothing inside the board picture is touched.
   ============================================================ */
.sect-head p,.stage-head p,.card p,.faq-a p,.pts p,.rl-foot,.tv-foot,.sf-note,.asc-foot-tag{
  text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;text-wrap:pretty;}
/* the problem lines are display type at 22 to 34px: justification opens word gaps
   at that size and hyphenation breaks the voice, so they balance instead */
.lede,.fn-l1,.fn-l2,.band-in h2,h1,.asc-h2,.stage-h2,.card h3,.rl-sent,.faq summary,
.beat-line p{text-wrap:balance;}
/* a phone measure holds five or six words: justifying it opens gaps wider than
   the orphan it would close, so every block stays ragged under 700px */
@media (max-width:700px){
  .sect-head p,.stage-head p,.card p,.faq-a p,.pts p,.rl-foot,.tv-foot,.sf-note,
  .asc-foot-tag{text-align:left;hyphens:manual;-webkit-hyphens:manual;text-wrap:pretty;}
}

/* ============================================================
   12  DATED CHIPS AND THE THEME CROSSFADE
   (was THE MATERIAL: clear Liquid Glass; removed phase-374 at the
   owner's word, the app dropped glass for the opaque dock recipe)
   ============================================================ */
/* dates with a state, as the app draws them on a board: the text takes the colour, weight 400,
   no chip (phase-374; was a tinted chip with a dot on every board date). The rule card's
   trigger date keeps its chip and dot: it is the rule's picture, outside the demo board. */
.shell .cell-date.soon{color:var(--a-soon);}
.shell .cell-date.overdue{color:var(--a-late);}
.rl-trig span.cell-date{display:inline-block;padding:1px 7px 1px 6px;border-radius:var(--r-xs);
  color:var(--t1);font-weight:600;background:color-mix(in srgb, var(--dcol, transparent) 20%, transparent);}
.rl-trig span.cell-date::before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;
  vertical-align:1px;border-radius:50%;background:var(--dcol, transparent);}

/* the theme crossfade (View Transitions, where the browser has them) */
::view-transition-old(root),::view-transition-new(root){animation-duration:460ms;animation-timing-function:cubic-bezier(.4,.02,.2,1);}

/* ============================================================
   13  RESPONSIVE
   ============================================================ */
@media (max-width:1200px){
  .tools-btn .act-label{display:none;}
}
@media (max-width:980px){
  .split{grid-template-columns:1fr;gap:28px;}
}
@media (min-width:901px){
  .stage-h2{white-space:nowrap;}
  .stage-head p{flex:0 1 520px;min-width:0;}
}
@media (max-width:900px){
  .sect-head{grid-template-columns:1fr;gap:22px;align-items:start;}
  .deck,.rl-grid{grid-template-columns:1fr;}
  .stage-head{flex-direction:column;align-items:flex-start;gap:8px;min-height:84px;}
  .stage-h2{white-space:normal;}
  .stage-foot{min-height:56px;}
  .sf-text{flex-direction:column;gap:2px;}
}
/* below 1101 the sidebar steps aside and the table scrolls sideways, its hidden side fading
   (phase-374; was "to 1100, not 900: from 901 the rail takes 56px") */
@media (max-width:1100px){
  .side{display:none;}
  .table-wrap{overflow-x:auto;scrollbar-width:thin;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);
            mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);}
  .table-wrap.at-end{-webkit-mask-image:none;mask-image:none;}
}
@media (max-width:879px){
  .asc-nav-links{display:none;}
  .asc-nav-menu{display:inline-flex;}
  .asc-foot-grid{grid-template-columns:1fr 1fr;}
  .asc-foot-grid > div:first-child{grid-column:1 / -1;}
}
@media (min-width:880px){
  .asc-menu{display:none;}
}
/* short viewports: the pinned stages give up the note and some shell height */
@media (max-height:640px){
  .stage-wrap{padding-top:76px;padding-bottom:12px;}
  .stage-head p{display:none;}
  .stage-head{min-height:0;}
  .sf-note{display:none;}
  .stage-foot{min-height:40px;margin-top:10px;}
}
@media (max-width:700px){
  .wrap{padding:0 20px;}
  .asc-nav{top:10px;height:52px;max-width:calc(100vw - 20px);padding:6px 6px 6px 10px;}
  .asc-menu{top:70px;}
  .asc-nav-theme{width:38px;height:38px;}
  .asc-nav-cta{height:40px;padding:0 14px;}
  .btn.lg{width:100%;}
  .cta{flex-direction:column;width:100%;}
  .btn.ghost,.btn.sm{min-height:40px;}
  .beat{height:calc(var(--bhp) * 1svh);}
  .beat-line{padding:20px 22px;}
  .scene{height:calc(var(--len-p) * 1svh);}
  .card{padding:20px;}
  .stage-wrap{padding-top:86px;padding-bottom:16px;}
  .stage-head{min-height:91px;gap:6px;}
  .stage-head p{font-size:14px;}
  .stage-frame{margin-top:12px;min-height:200px;}
  .stage-head p{padding:8px 12px;border-radius:var(--r-md);background:var(--panel);box-shadow:var(--panel-sh);}
  .stage-foot{margin-top:12px;min-height:0;padding:8px 8px 10px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
    grid-template-areas:"cap btn" "note note";gap:4px 12px;}
  .sf-text{display:contents;}
  .sf-cap{grid-area:cap;font-size:14px;min-width:0;}
  .sf-cap > span{white-space:normal;line-height:1.25;}
  .btn.tour-btn{min-width:0;}
  .sf-note{grid-area:note;}
  .btn.tour-btn{grid-area:btn;}
  .board-head{padding:8px 10px 10px;}
  .crumb,.tools-btn,.br-online{display:none;}
  .board-title-row{margin-top:0;}
  .board-name{font-size:28px;line-height:32px;}
  .bsw-btn{width:40px;height:40px;}
  .bsw-item{height:44px;}
  .asc-foot-col a{min-height:40px;}
  .asc-brand,.asc-foot-brand{min-height:40px;min-width:40px;justify-content:center;}
  .table-wrap{display:none;}
  .rcards{display:block;}
  .group-caret{width:40px;height:40px;margin-left:0;}
  /* the Board view on a phone, as the app's: one lane fills the width, the Previous / Next
     pager above it (p127-kpager), lanes snap sideways (phase-374). The lane is as tall as its
     cards and runs into the same fade above the bars as the table's rows, so no card is ever
     cut by a box edge (was: the list scrolled inside its lane and cut its card mid-face at
     360x780, where the frame has 257px above the bars) */
  .kb-pg{display:flex;align-items:center;gap:8px;flex:none;margin:12px 12px 8px;}
  .kb-pb{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;min-width:44px;min-height:44px;padding:0 12px;
    border-radius:12px;background:var(--a-s2);color:var(--t1);font-size:13.5px;line-height:20px;font-weight:500;}
  .kb-pb:disabled{opacity:.4;}
  /* the lane and its place wrap to a second line inside the 44px row, as the app's do (an
     ellipsis cut "Under review, 2 of 4" to "Under revie..." at 360) */
  .kb-at{flex:1;min-width:0;text-align:center;font-size:13.5px;line-height:18px;font-weight:500;color:var(--t2);
    overflow-wrap:anywhere;}
  /* 24px between lanes: at 12 the next lane began on the scroll edge and its card's 1px ring
     showed as a line down the frame's right side */
  .kb-track{gap:24px;padding:0 12px 140px;scroll-snap-type:x mandatory;scroll-padding-inline:12px;scrollbar-width:none;
    -webkit-mask-image:none;mask-image:none;}
  .kb-track::-webkit-scrollbar{display:none;}
  .kb-col{flex:0 0 100%;min-width:0;max-width:none;max-height:none;scroll-snap-align:start;scroll-snap-stop:always;}
  .kb-list{flex:none;overflow:visible;padding:0 2px 2px 0;-webkit-mask-image:none;mask-image:none;}
  .kb-c{padding-left:20px;}
  .kb-sp{left:8px;top:12px;bottom:12px;}
  .kb-add{min-height:44px;}
  .cal{padding:10px 10px 140px;}
  .cal-e{height:6px;padding:0;}
  .cal-e span{display:none;}
  /* the Overview on a phone: three tiles on one row, the ring beside its legend, the
     group bars under it; nothing is cut at the real Safari height (phase-369) */
  .dash{padding:10px 10px 140px;gap:8px;}
  .dash-top{gap:6px;}
  .dash-k{padding:7px 8px 7px 11px;}
  .dash-k::before{top:7px;bottom:7px;}
  .dash-k .v{font-size:17px;}
  .dash-k .k{font-size:var(--fs-micro);margin-top:1px;}
  .dash-k .s{display:none;}
  .dash-mid{grid-template-columns:1fr;grid-auto-rows:min-content;align-content:start;gap:8px;}
  .dash-card{padding:9px 12px;}
  .dash-card .k{margin-bottom:6px;}
  .ov-ring-wrap{gap:14px;}
  .ov-ring{width:84px;}
  .ov-center b{font-size:17px;}
  .ov-lr{padding:3px 0;font-size:var(--fs-xs);}
  .ov-gr{padding:3px 0;row-gap:4px;font-size:var(--fs-xs);}
  .ov-bar{height:6px;}
  /* rule names take the room the row has (phase-369; was a fixed 88px that cut them) */
  .rl-name{width:auto;flex:1 1 auto;}
  .rl-sent{font-size:17px;}
  .rec-sec{padding:12px 14px 6px;}
  .rec-head{padding:14px;}
  /* the date drops under the sentence instead of going: the history card has to show when
     each edit happened, with its year (phase-369, accuracy C4; was display:none) */
  .act-row{flex-wrap:wrap;row-gap:2px;}
  .act-when{flex:0 0 100%;padding-left:36px;}
  .docrev-row{grid-template-columns:14px minmax(0,1fr) auto;grid-template-areas:"line ver tag" "line when when" "line file file";}
  .tv-list{--tv-row:50px;}
  .tv-text{white-space:normal;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
  .fn-stage{padding:86px 20px 40px;}
  .fn-l2{font-size:17px;}
  .faq{padding:2px 18px;}
  .faq summary{font-size:17px;padding-right:34px;}
  .asc-foot{margin:0 10px;padding:56px 0 28px;}
  .asc-foot-hair{left:10%;right:10%;}
  .asc-foot-grid{grid-template-columns:1fr;padding:0 20px;gap:34px;}
  .asc-foot-bar{margin-top:48px;padding:22px 20px 0;}
  .toast-tray{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:none;align-items:center;}
  /* the phone board, as the app draws it under 700px: the dock gives way to the view bar
     above the five-tab bar, and the board runs on under both (phase-374) */
  .dock{display:none;}
  .pbar{position:absolute;left:12px;right:12px;bottom:76px;z-index:5;display:flex;align-items:center;gap:4px;height:48px;padding:6px 4px;
    border-radius:24px;background:var(--a-dock);box-shadow:var(--a-e1),var(--a-lift);}
  .ptabs{position:absolute;left:12px;right:12px;bottom:12px;z-index:5;display:flex;align-items:stretch;height:56px;
    border-radius:24px;background:var(--a-dock);box-shadow:var(--a-e1),var(--a-lift);}
  .msheet{display:block;}
  .msheet[hidden]{display:none;}
  .board-body,.tl,.fv{padding-bottom:140px;}
  /* the views end at the view bar's top edge, fading over the 20px above it, so no row shows
     around, between or under the two bars; the bars sit 124px up from the frame's foot (76 + 48)
     (phase-374, designer item 3; the app's bars rest on the screen's bottom edge, here they float) */
  .views{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 144px),transparent calc(100% - 124px));
          mask-image:linear-gradient(to bottom,#000 calc(100% - 144px),transparent calc(100% - 124px));}
  .group-head{padding-left:0;}
  /* the bar holds one line on every phone: nothing in it wraps, and the chip and "more" take
     the phone's tighter padding (phase-374; at 375 "5 more" wrapped and New ran past the edge) */
  .pv-chip,.pv-more,.pv-new{white-space:nowrap;flex:none;}
  .pv-chip{gap:4px;padding:0 8px;}
  .pv-more{gap:3px;padding:0 8px;}
  .pv-tool{width:32px;}
  .cal-d.today .n{background:#0070c1;color:#fff;}
}
/* the narrowest phones: the bar keeps the app's folded set, the view, its "more", Search and
   a bare "+" (the app folds New to a plus when its bar is tight, board-02 dockOverflows) */
@media (max-width:420px){
  .pv-tool + .pv-tool{display:none;}
  .pv-new{width:36px;padding:0;justify-content:center;}
  .pv-new-w{display:none;}
}
/* short phones: the stage heads compact so each stage keeps its room */
@media (max-width:700px) and (max-height:760px){
  .stage-head p{font-size:13px;line-height:1.45;}
  .stage-head p{padding:6px 10px;}
}
/* a phone on its side, or any window under 440px tall (phase-369, iPhone audit items 1, 2, 6
   and 16): the hero's buttons and every pinned stage's foot land inside the screen, and a
   finger gets the phone's control sizes */
@media (max-height:440px){
  .hero{padding:68px 0 14px;}
  h1{font-size:40px;margin-top:6px;}
  .lede{margin-top:12px;font-size:var(--fs-body);}
  .cta{margin-top:18px;}
  .stage-wrap{padding-top:72px;padding-bottom:8px;}
  .stage-head{min-height:0;}
  .stage-frame{min-height:0;margin-top:8px;}
  .stage-foot{margin-top:8px;min-height:40px;}
  /* the views board's head folds to its title, as the app's scrolled head does on a phone,
     so the board keeps the height (phase-374; was the title, switch and top view tabs) */
  .crumb,.tools-btn,.br-online{display:none;}
  .board-head{padding:4px 10px 6px;}
  .board-title-row{margin-top:0;}
  .board-name{font-size:20px;line-height:26px;}
  /* the calendar keeps whole days: each is tall enough for its number and an entry, and the month
     runs on under the bottom edge as a short screen's calendar does (five weeks had 13px each and
     every day number was cut) */
  .cal{padding:8px 12px;}
  .cal-top{margin-bottom:4px;}
  .cal-grid{flex:none;grid-auto-rows:minmax(46px,auto);}
  /* every view runs on under the board's bottom edge here, so each fades out there as the table
     view always has (the overview showed a 5px sliver of its next row of cards, cut hard) */
  .view{-webkit-mask-image:linear-gradient(#000 84%,transparent 100%);mask-image:linear-gradient(#000 84%,transparent 100%);}
}
@media (max-height:440px) and (pointer:coarse){
  .asc-nav{height:52px;}
  .asc-nav-theme{width:38px;height:38px;}
  .asc-nav-cta{height:40px;padding:0 14px;}
  .btn.ghost,.btn.sm{min-height:40px;}
  .bsw-btn{width:40px;height:40px;}
  .group-caret{width:40px;height:40px;}
  .bsw-item{height:44px;}
  .tv-list{--tv-row:44px;}
  .asc-foot-col a{min-height:40px;}
  .asc-brand,.asc-foot-brand{min-height:40px;min-width:40px;justify-content:center;}
}
/* touch: the small controls answer a 44px tap, the floor phones expect, and look the same; the
   hit box is an empty ::after on each control whose ::after is free (brand, Menu and theme meet
   halfway across their 6px gaps), and the footer's stacked links grow to 44 (phase-369, iPhone
   audit item 17; Log In and the tour button keep 40; phase-374: the dock's view tabs reach the
   dock's 40 and the phone bar's view chip and "more" reach the bar's 48) */
@media (max-width:700px), (max-height:440px) and (pointer:coarse){
  .asc-brand,.asc-nav-menu,.asc-nav-theme,.bsw-btn,.group-caret,.pv-chip,.pv-more{position:relative;}
  .asc-brand::after,.asc-nav-menu::after,.asc-nav-theme::after,.bsw-btn::after,.group-caret::after,
  .view-tab::after,.pv-chip::after,.pv-more::after{content:"";position:absolute;inset:-2px -3px;}
  .asc-nav-theme::after,.bsw-btn::after,.group-caret::after{inset:-3px;}
  .view-tab::after{inset:-4px -1px;}
  .pv-chip::after,.pv-more::after{inset:-6px -2px;}
  .asc-foot-col a,.asc-foot-brand{min-height:44px;}
}
/* the notch and the home bar (iPhone audit item 15): a phone on its side keeps the page out of
   the notch, and a page opened from the Home Screen keeps the bar under the status bar */
@supports (padding:max(0px)){
  .wrap{padding-left:max(40px, env(safe-area-inset-left));padding-right:max(40px, env(safe-area-inset-right));}
  .asc-nav{top:calc(16px + env(safe-area-inset-top));}
  .asc-foot{padding-bottom:calc(40px + env(safe-area-inset-bottom));}
  @media (max-width:700px){
    .wrap{padding-left:max(20px, env(safe-area-inset-left));padding-right:max(20px, env(safe-area-inset-right));}
    .asc-nav{top:calc(10px + env(safe-area-inset-top));}
    .asc-menu{top:calc(70px + env(safe-area-inset-top));}
    .asc-foot{padding-bottom:calc(28px + env(safe-area-inset-bottom));}
  }
}
@media (max-width:419px){
  .asc-brand{margin-right:2px;}
}
/* the narrowest phones (360 to 392): the demo's rows, cards and tiles give up a few pixels of
   padding and gap so every name, date and label reads whole at the same text size (phase-369;
   at 360 Car insurance policy had 96px for 116, "due in 30 days" 71px for 74 and Contracts and
   insurance 199px for 212; the kanban card's lines left in phase-374, one lane fills the width) */
@media (max-width:392px){
  .dash{padding:10px 8px;}
  .dash-top{gap:5px;}
  .dash-k{padding:7px 6px 7px 10px;}
  .group-head{gap:4px;padding-right:6px;}
}

/* ============================================================
   14  REDUCED MOTION AND REDUCED TRANSPARENCY
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:1ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;
    transition-duration:0ms!important;transition-delay:0ms!important;}
  html{scroll-behavior:auto;}
  html.js .rv,html.js .w,html.js .rise,html.js .item-row{opacity:1!important;transform:none!important;}
      html.js .flow{clip-path:none;}
  .logo-mark circle{animation:none!important;}
  }
/* ============================================================
   15  NO SCRIPTS: render everything.
   html.js is set in <head>; without it nothing is hidden and the
   pinned scenes are ordinary sections. The board and the visit log
   are drawn by script, so without it they are left out, and so are
   the controls that need script.
   ============================================================ */
html:not(.js) #field,
html:not(.js) .tv-card,
html:not(.js) .stage-frame,
html:not(.js) .stage-foot,
html:not(.js) .asc-nav-menu,
html:not(.js) .asc-nav-theme,
html:not(.js) [data-link="install"]{display:none;}
html:not(.js) .scene{height:auto;}
html:not(.js) .scene-stage{position:relative;height:auto;padding:min(12vh,110px) 0;}
html:not(.js) .stage-wrap{height:auto;padding-top:0;padding-bottom:0;}
html:not(.js) .beat{height:auto;padding:14svh 0;}
html:not(.js) .beat-line{position:relative;top:auto;}
html:not(.js) .asc-nav-bg{opacity:1;}
html:not(.js) .rv,html:not(.js) .w,html:not(.js) .rise,html:not(.js) .item-row,
html:not(.js) .fn-l,html:not(.js) .beat-line{opacity:1!important;transform:none!important;}
html:not(.js) .flow{clip-path:none!important;}
@media (min-width:880px){
  html:not(.js) .asc-nav-links{display:flex;}
}

/* ============================================================
   15b SIGNED IN: one action instead of two.
   Both sets are in the markup and CSS picks one, so the swap is
   done before first paint rather than by script. Only hiding is
   written here: each control keeps its own display value, which is
   why .asc-nav-cta stays an inline-flex pill and the footer links
   stay flex rows. html.authed is set in <head> from the app's
   sd_authed key; without it (scripts off, private window) the page
   shows the signed-out pair, which is the safe side of the guess.
   ============================================================ */
html:not(.authed) .au-in,
html.authed .au-out{display:none;}

/* ============================================================
   16  PHONES: no glow on the mark. This block stays LAST.
   ============================================================ */
@media (max-width:700px){
  .logo-mark,:root[data-theme="light"] .logo-mark{filter:none;}
}
