/* /ledger/ai, the Folia Ledger and AI early-access page. Built from tokens.css.
   New for the brand project (raised in the PR, not tokens yet):
   - --lai-person: the people blue on a person's initials disc. Same value as .rec__av in ledger.css, pending the
     brand's people blue.
   - --lai-hl: the amber highlight, the same value as the in-app highlight on /ledger (.x3__m--hl), pending the
     in-app annotation colors (an open item in CLAUDE.md). Red ink is --firebrick.
   - The hero figure's geometry is in cqi inside its own container, like the scenes, so it scales as one drawing.
   Orange appears once: the drawn circle in the closer. */
.lai{--lai-person:#8CB3D5;--lai-hl:rgba(245,158,11,.6)}

/* Layout */
.lai-col-l{grid-column:1 / span 5}
.lai-col-r{grid-column:7 / span 6}
.lai-col-wide{grid-column:1 / span 8}
.lai h2{margin-top:var(--space-12)}
/* One short paragraph per section, in the site's lede style (as .sec__lede and .hero__sub). */
.lai-lede{margin:var(--space-20) 0 0;font:400 var(--t-lede)/1.38 var(--serif);color:var(--text);text-wrap:balance}
.lai-k{margin:0;font:400 var(--space-11)/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.lai-quiet{color:var(--text-muted)}

/* Spacing follows the site: one section gap between ground sections (the following section's top is
   cleared), and a Plate band keeps the full padding on both sides, as does the section after it, so the band
   is inset evenly. */
.lai-hero{padding-top:var(--page-top);padding-bottom:clamp(var(--space-64),7vw,var(--space-100))}
.lai .sec{padding-block:clamp(var(--space-64),7vw,var(--space-100))}
.lai-hero + .sec,.lai .sec + .sec:not(.lai-sec--plate){padding-top:0}
.lai .lai-sec--plate + .sec:not(.lai-sec--plate){padding-top:clamp(var(--space-64),7vw,var(--space-100))}
.lai-hero .grid{align-items:start}
.lai-hero__copy{grid-column:1 / span 8}
.lai-nb{white-space:nowrap}
.lai-hero__h{font-size:clamp(var(--space-40),4.2vw,var(--space-64));line-height:1.04;letter-spacing:-.022em;text-wrap:balance}
.lai-hero__copy .lai-lede{margin-top:clamp(var(--space-20),2vw,var(--space-28));max-width:30em}
.lai-hero .row{margin-top:var(--space-28)}
.lai-hero .lf-pin{margin-top:clamp(var(--space-48),5vw,var(--space-64))}

/* Hero figure: due diligence on a firm being bought. An AI review assistant and E. Morgan, a managing director,
   on top; the deal room they work from, below: the CIM, the quality-of-earnings model, the management deck and a
   site-visit photo. The AI annotates all four and concludes the price is 9.0x. She circles line 2 in the photo:
   the savings haven't happened, so it's 11.4x. The AI learns from her note and revises its first read.
   The QoE figures agree: 774 / 86.0 = 9.0x, and 774 / 68.0 = 11.4x.
   Who wrote what shows at a glance: a dark circle with a sparkle for the AI, her headshot for her. */
.lai{--lai-ai-mark:color-mix(in srgb,var(--ink-2) 11%,var(--paper))}
.lf{position:relative;width:100%;aspect-ratio:1000 / 540;container-type:inline-size;margin:0;color:var(--text)}
.lf p{margin:0}
.lf i{display:block;font-style:normal}
.lf-card{position:absolute;top:11cqi;width:24cqi;box-sizing:border-box;padding:1.2cqi 1.4cqi 1.2cqi 3.6cqi;background:var(--white);border-radius:.7cqi;box-shadow:0 0 0 var(--space-1) var(--rule),var(--scene-shadow-sheet);display:flex;flex-direction:column;gap:.5cqi}
.lf-c1,.lf-step--1{left:12cqi}.lf-c2,.lf-step--2{left:39cqi}.lf-c3,.lf-step--3{left:66cqi}
.lf-step{position:absolute;top:0;margin-left:-1.1cqi;width:27cqi;display:flex;align-items:flex-start;gap:max(.8cqi,var(--space-8));font:500 max(1.6cqi,var(--space-12))/1.2 var(--sans);color:var(--text-strong)}
.lf-step__n{display:grid;place-items:center;flex:none;width:max(2.4cqi,var(--space-24));height:max(2.4cqi,var(--space-24));border-radius:var(--radius-round);background:var(--raisin);color:var(--on-dark);font:500 max(1.2cqi,var(--space-12))/1 var(--mono);margin-top:-.4cqi}
.lf-step[role="button"]{cursor:pointer}
.lf-step[role="button"]:hover{text-decoration:underline;text-decoration-thickness:var(--space-1);text-underline-offset:.25em}
.lf-step__n--person{background:var(--lai-person);color:var(--ink)}
.lf-old{background:linear-gradient(currentColor,currentColor) 0 58% / 100% var(--space-1) no-repeat}
.lf-c1 .lf-card__t{color:var(--text-muted)}
.lf-badge{position:absolute;left:-2.2cqi;top:-1.4cqi;width:4.6cqi;height:4.6cqi;border-radius:var(--radius-round);overflow:hidden;box-shadow:0 0 0 .3cqi var(--ground)}
.lf-badge--ai{display:grid;place-items:center;background:var(--raisin)}
.lf-badge--ai svg{width:2.8cqi;height:2.8cqi;fill:var(--on-dark)}
.lf-badge--person{background:var(--plate)}
/* The headshot is 130 x 160; the circle shows its 90 x 90 face crop (x 20, y 30). */
.lf-badge--person img{display:block;width:144.4%;max-width:none;height:auto;margin:-33.3% 0 0 -22.2%}
.lf-card__by{display:flex;align-items:center;gap:.4cqi;font:600 .95cqi/1.3 var(--sans);color:var(--text-strong)}
.lf-card__by .tag{margin:0;padding:.1cqi .4cqi;font-size:.7cqi}
.lf-card__role{font-weight:400;color:var(--text-muted)}
.lf-card__t{font-size:1.15cqi;line-height:1.4;color:var(--text)}
.lf-card__t--serif{font:400 1.4cqi/1.3 var(--serif);color:var(--text-heading)}
.lf-src{position:absolute;top:28cqi;width:22.5cqi}
.lf-room{position:absolute;left:1.5cqi;top:24.6cqi;margin:0;font:500 1.15cqi/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text)}
.lf-room span{color:var(--text-muted);letter-spacing:.06em}
.lf-src--doc{left:1.5cqi}.lf-src--sheet{left:26cqi}.lf-src--deck{left:50.5cqi}.lf-src--photo{left:75cqi;width:23.5cqi}
.lf-src__tile{position:relative;height:23cqi;box-sizing:border-box;overflow:hidden;background:var(--paper);box-shadow:0 0 0 var(--space-1) var(--rule),var(--scene-shadow-sheet)}
.lf-src__n{margin-top:1cqi!important;font:500 1.15cqi/1.3 var(--sans);color:var(--text)}
.lf-src__n span{font-weight:400;color:var(--text-muted)}
/* Annotations are the subject of the figure, so they carry the color: the kinds people make in Folia, in a taste
   of in-app color. The AI highlights a clause, circles a cell, leaves a comment on a chart and drops a pin on the
   photo; she circles line 2 in red ink. Each carries its writer's pin, so no line runs from a card to a source. */
.lf-defs{position:absolute;width:0;height:0;overflow:hidden}
.lf-an{position:relative;z-index:1}
/* An annotation that sits on a line or a cell is an overlay on it, so the content stays when the mark is hidden. */
.lf-on{position:relative}
.lf-on > .lf-an{position:absolute;inset:0}
.lf-an--hl{background:var(--lai-hl);box-shadow:0 0 0 .45cqi var(--lai-hl)}
.lf-an svg:not(.lf-pt svg){position:absolute;overflow:visible}
/* The AI's circle is an even stroke. Hers below is a filled stroke whose width changes with the pen's speed. */
.lf-an--circ svg:not(.lf-pt svg){inset:-26% -12%;width:124%;height:152%}
.lf-an--circ .lf-pt{top:-1.6cqi;right:-2cqi}
.lf-an--circ path{fill:none;stroke:var(--ink-2);stroke-width:2.6;stroke-linecap:round}
.lf-an--ink{position:absolute;left:35%;top:29%;width:44%;height:41%}
.lf-an--ink svg:not(.lf-pt svg){inset:0;width:100%;height:100%}
.lf-ink-fill{fill:var(--firebrick)}
.lf-ink-wipe{fill:none;stroke:var(--white);stroke-width:10;stroke-linecap:round}
.lf i.lf-note{position:absolute;left:12%;top:28%;width:48%;padding:1.3cqi 1.3cqi 1.4cqi;box-sizing:border-box;display:flex;flex-direction:column;gap:.9cqi;background:color-mix(in srgb,var(--lai-person) 40%,var(--paper));border-radius:.4cqi;box-shadow:var(--scene-shadow-note)}
.lf-note > i{display:block;width:100%;height:.45cqi;background:color-mix(in srgb,var(--ink-2) 30%,transparent)}
.lf-note > i:nth-child(2){width:80%}
.lf-note > i:nth-child(3){width:55%}
.lf-note::after{content:"";position:absolute;right:-1cqi;top:1.2cqi;border:.6cqi solid transparent;border-left:1cqi solid color-mix(in srgb,var(--lai-person) 40%,var(--paper));border-right:0}
.lf-pt{position:absolute;top:-1.3cqi;right:-1.3cqi;z-index:2;display:grid;place-items:center;width:2.6cqi;height:2.6cqi;border-radius:var(--radius-round);overflow:hidden;box-shadow:0 0 0 .2cqi var(--paper)}
.lf-note .lf-pt{top:-1.1cqi;right:auto;left:-1.1cqi}
.lf-an--ink .lf-pt{top:-1.6cqi;right:-1.6cqi}
/* A point annotation: the pin is the mark, its tip on the machine. */
.lf-pt--point{top:30%;left:17%;right:auto;border-radius:50% 50% 50% 0;overflow:visible}
.lf-pt--ai{background:var(--raisin)}
.lf-pt--ai svg{width:1.6cqi;height:1.6cqi;fill:var(--on-dark)}
.lf-pt--person{background:var(--plate)}
.lf-pt--person img{display:block;width:144.4%;max-width:none;height:auto;margin:-33.3% 0 0 -22.2%}
.lf-src--doc .lf-src__tile{display:flex;flex-direction:column;gap:1.1cqi;padding:2.2cqi 2.4cqi}
.lf-src--doc i{height:.6cqi;background:var(--plate)}
.lf-src--doc i:nth-child(1){width:45%;height:.7cqi;background:var(--rule)}
.lf-src--doc i:nth-child(2){width:92%}.lf-src--doc i:nth-child(3){width:84%}.lf-src--doc i:nth-child(4){width:78%;height:1.2cqi}
.lf-src--doc i:nth-child(5){width:90%}.lf-src--doc i:nth-child(6){width:72%}.lf-src--doc i:nth-child(7){width:86%}.lf-src--doc i:nth-child(8){width:64%}
.lf-src--sheet .lf-src__tile{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr .45fr;grid-template-rows:repeat(6,1fr)}
/* A spreadsheet, not a calendar: periods across, line items down, figures right-aligned, and a column past LTM
   so the sheet runs on. */
.lf .lf-src--sheet i{display:flex;align-items:center;justify-content:flex-end;padding:0 .6cqi;border-right:var(--space-1) solid var(--plate);border-bottom:var(--space-1) solid var(--plate);font:400 .95cqi/1 var(--mono);color:var(--text-muted);white-space:nowrap}
.lf .lf-src--sheet i:nth-child(-n+5){justify-content:center;background:var(--plate);font:500 .95cqi/1 var(--sans)}
.lf .lf-src--sheet i:nth-child(5n+1){justify-content:flex-start;font:500 .95cqi/1 var(--sans);color:var(--text)}
.lf .lf-src--sheet i:nth-child(5n){border-right:0}
.lf .lf-src--sheet i.lf-on{color:var(--text-heading)}
.lf-src--deck .lf-src__tile{display:flex;flex-direction:column;gap:1.6cqi;padding:3cqi 2.6cqi 2.4cqi}
.lf-src__title{height:.8cqi;width:50%;background:var(--rule)}
.lf-src__bars{flex:1;display:flex;align-items:flex-end;gap:1.4cqi;border-bottom:var(--space-1) solid var(--rule)}
.lf-src__bars i{flex:1;background:var(--plate)}
.lf-src__bars i:nth-child(1){height:42%}.lf-src__bars i:nth-child(2){height:58%}.lf-src__bars i:nth-child(3){height:70%}.lf-src__bars i:nth-child(4){height:94%}
.lf-src--photo img{display:block;width:100%;height:100%;object-fit:cover}
.lf-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.lf-lines path{fill:none;vector-effect:non-scaling-stroke}
/* The flow between the three cards carries the story: her reply answers the AI's read, the AI's update answers
   her note, and the arc runs back to the first read it revises. */
.lf-flow path{stroke:var(--ink-2);stroke-width:2}
.lf-flow .lf-back{stroke-width:1.8;stroke-dasharray:5 4}
.lf-flow .lf-head{fill:var(--ink-2);stroke:none}
/* The arc is dashed, so it is drawn through a mask: a solid stroke along the same path that wipes on. */
.lf-wipe{fill:none;stroke:var(--white);stroke-width:8}
/* Lines that draw on scale with the figure: a non-scaling stroke measures dashes on screen, which breaks pathLength. */
.lf-lines .lf-arrow,.lf-lines .lf-wipe{vector-effect:none}
.lf-flow .lf-arrow{stroke-width:1.7}

/* Motion: on wide screens with motion allowed, the figure holds inside .lf-pin while scroll plays the
   exchange (ledger-ai.js sets .a1 to .a3): the AI's read lands and its lines reach the four sources; her reply
   lands and her line reaches the photo; the AI's update lands, reading her note, and its first read is struck. The labels and the sources and the writers' circles are there
   from the start. Reduced
   motion, no JS, and narrow screens: the final frame. */
@media (min-width:768px) and (prefers-reduced-motion:no-preference){
  /* Before its step a card is just its writer's circle: the people are on screen from the start, and
     what they say arrives with the scroll. */
  html.mark-hold .lf-card{background-color:transparent;box-shadow:none;transition:background-color var(--duration-ui) var(--ease-out),box-shadow var(--duration-ui) var(--ease-out)}
  html.mark-hold .lf-card > p{opacity:0;transform:translateY(var(--space-8));transition:opacity var(--duration-ui) var(--ease-out),transform var(--duration-ui) var(--ease-out)}
  /* The three labels are on screen from the start, faint; each darkens when its step plays. */
  html.mark-hold .lf-step{opacity:.32;transition:opacity var(--duration-color) var(--ease-out)}
  html.mark-hold .lf-step[role="button"]:hover,html.mark-hold .lf-step[role="button"]:focus-visible{opacity:.7}
  html.mark-hold .lf.a1 .lf-step--1,html.mark-hold .lf.a2 .lf-step--2,html.mark-hold .lf.a3 .lf-step--3{opacity:1}
  /* Card 1 reads as current until step 3 revises it. */
  html.mark-hold .lf-c1 .lf-card__t{color:var(--text);transition:color var(--duration-color) var(--ease-out)}
  html.mark-hold .lf-old{background-size:0 var(--space-1);transition:background-size var(--duration-color) var(--ease-out)}
  html.mark-hold .lf.a3 .lf-c1 .lf-card__t{color:var(--text-muted);transition:color var(--duration-color) var(--ease-out) 1.6s}
  html.mark-hold .lf.a3 .lf-old{background-size:100% var(--space-1);transition-delay:1.6s}
  html.mark-hold .lf-an{opacity:0;transition:opacity var(--duration-ui) var(--ease-out)}
  html.mark-hold .lf.a1 .lf-card.lf-s1,html.mark-hold .lf.a2 .lf-card.lf-s2,html.mark-hold .lf.a3 .lf-card.lf-s3{background-color:var(--white);box-shadow:0 0 0 var(--space-1) var(--rule),var(--scene-shadow-sheet);
    transition:background-color var(--duration-color) var(--ease-enter),box-shadow var(--duration-color) var(--ease-enter)}
  html.mark-hold .lf.a1 .lf-s1 > p,html.mark-hold .lf.a2 .lf-s2 > p,html.mark-hold .lf.a3 .lf-s3 > p,
  html.mark-hold .lf.a1 .lf-lines .lf-s1,html.mark-hold .lf.a2 .lf-lines .lf-s2,html.mark-hold .lf.a3 .lf-lines .lf-s3,
  html.mark-hold .lf.a1 .lf-an.lf-s1,html.mark-hold .lf.a2 .lf-an.lf-s2{opacity:1;transform:none;
    transition:opacity var(--duration-color) var(--ease-enter),transform var(--duration-color) var(--ease-enter)}
  /* Each step wipes in along its arrow. Step 2: the arrow from the AI's read draws to her card, then her card
     and her circle land. Step 3: the arrow from her note draws to the AI's update, the update lands, then the
     arc wipes back to the first read and strikes it. Heads appear as each line arrives. */
  html.mark-hold .lf-arrow,html.mark-hold .lf-wipe{stroke-dasharray:1 2;stroke-dashoffset:1;transition:stroke-dashoffset var(--duration-ui) var(--ease-out)}
  html.mark-hold .lf-head{opacity:0;transition:opacity var(--duration-fast) var(--ease-out)}
  html.mark-hold .lf.a2 .lf-s2 .lf-arrow,html.mark-hold .lf.a3 .lf-s3 .lf-arrow{stroke-dashoffset:0;transition:stroke-dashoffset .4s var(--ease-draw)}
  html.mark-hold .lf.a2 .lf-s2 .lf-head,html.mark-hold .lf.a3 .lf-s3 .lf-head{opacity:1;transition-delay:.36s}
  html.mark-hold .lf.a3 .lf-wipe{stroke-dashoffset:0;transition:stroke-dashoffset .8s var(--ease-draw) .8s}
  html.mark-hold .lf.a3 .lf-s3 .lf-head--back{transition-delay:1.55s}
  html.mark-hold .lf.a2 .lf-card.lf-s2,html.mark-hold .lf.a3 .lf-card.lf-s3,
  html.mark-hold .lf.a2 .lf-s2 > p,html.mark-hold .lf.a3 .lf-s3 > p{transition-delay:.4s}
  html.mark-hold .lf.a2 .lf-an.lf-s2{transition-delay:.6s}
  html.mark-hold .lf.a2 .lf-ink-wipe{transition-delay:.7s}
  /* Catch-up (ledger-ai.js): the reader has scrolled past the hold, so what is left plays in a beat. */
  html.mark-hold .lf.lf-fast,html.mark-hold .lf.lf-fast *{transition-duration:var(--duration-ui)!important;transition-delay:0s!important}
  /* The annotations land just after their card; the ink circles draw on. The arrows into a card come first. */
  html.mark-hold .lf.a1 .lf-an.lf-s1{transition-delay:.2s}
  html.mark-hold .lf-an--circ path,html.mark-hold .lf-ink-wipe{stroke-dasharray:1 2;stroke-dashoffset:1;transition:stroke-dashoffset var(--duration-reveal) var(--ease-draw)}
  html.mark-hold .lf.a1 .lf-an--circ.lf-s1 path{stroke-dashoffset:0;transition-delay:.3s}
  html.mark-hold .lf.a2 .lf-an--ink.lf-s2 .lf-ink-wipe{stroke-dashoffset:0}
}

/* Prove it: a worksheet, not a product picture. The section sits on a full-bleed Plate band, and the questions
   are set straight on it, each with a blank rule to write on and, in the blank, where the answer lives today. */
.lai-sec--plate{background:var(--plate)}
/* Prove it: three questions about a closed matter, and where the answers live today and on one record.
   Read, not filled in. */
.lai-where{align-self:center}
.lai-where table{width:100%;border-collapse:collapse}
.lai-where thead th{padding:0 var(--space-16) var(--space-12) 0;text-align:left;font:500 var(--space-12)/1.4 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.lai-where tbody tr{border-top:var(--space-1) solid var(--rule-plate)}
.lai-where tbody tr:last-child{border-bottom:var(--space-1) solid var(--rule-plate)}
.lai-where th[scope="row"]{width:34%;padding:var(--space-20) var(--space-16) var(--space-20) 0;text-align:left;vertical-align:top;font:400 var(--space-20)/1.3 var(--serif);color:var(--text-heading)}
.lai-where td{width:33%;padding:var(--space-20) var(--space-16) var(--space-20) 0;vertical-align:top;font:400 var(--space-16)/1.45 var(--sans)}
.lai-where td:nth-of-type(1){color:var(--text-muted)}
.lai-where td:nth-of-type(2){color:var(--text-strong)}

/* Why Folia */
.lai-stack{margin:0;align-self:center}
.lai-stack__pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-24)}
.lai-stack__box{padding:var(--space-20) var(--space-22);background:var(--paper);box-shadow:0 0 0 var(--space-1) var(--rule)}
.lai-stack__box p{margin:0}
.lai-stack__box--ai{background:var(--raisin);box-shadow:none}
.lai-stack__box--ai .lai-k,.lai-stack__box--ai .lai-quiet{color:var(--text-on-dark-muted)}
.lai-stack__n{margin:var(--space-10) 0 0!important;font:400 var(--space-21)/1.25 var(--serif);color:var(--text-heading)}
.lai-stack__box--ai .lai-stack__n{color:var(--white)}
.lai-stack__box .lai-quiet{margin-top:var(--space-8);font-size:var(--space-14);line-height:1.45}
.lai-stack__drops{height:var(--space-48)}
.lai-stack__drops span{position:relative;justify-self:center;width:var(--space-1);height:var(--space-36);margin-top:var(--space-4);background:var(--underline)}
.lai-stack__drops span::after{content:"";position:absolute;left:calc(-1 * var(--space-4));bottom:calc(-1 * var(--space-6));border-left:4.5px solid transparent;border-right:4.5px solid transparent;border-top:var(--space-6) solid var(--underline)}
.lai-stack__drops--one{display:flex;justify-content:center}
.lai-stack__ledger{display:flex;align-items:center;gap:var(--space-16);padding:var(--space-22) var(--space-24);background:var(--paper);box-shadow:0 0 0 var(--space-1-5) var(--ink-2)}
.lai-stack__ledger img{flex:none;width:var(--space-48);height:var(--space-48);border-radius:var(--space-11)}
.lai-stack__ledger p{margin:0}
.lai-stack__ledger .lai-stack__n{margin:0!important;font-size:var(--space-24);line-height:1.2;color:var(--text-strong)}
.lai-stack__ledger p:last-child:not(.lai-stack__n){margin-top:var(--space-4);font-size:var(--space-14);line-height:1.45}
.lai-stack__docs{padding:var(--space-20) var(--space-22);background:var(--plate)}
.lai-stack__docs p{margin:0}
.lai-stack__docs p:last-child{margin-top:var(--space-10);font-size:var(--t-ui);line-height:1.5}
.lai-stack__docs b{font-weight:600;color:var(--text-strong)}
.lai-stack__more{margin:var(--space-16) 0 0}
.lai-stack__more .link{font-size:var(--space-14)}

/* Closer */
.lai .closer__stakes{max-width:28ch}

@media (max-width:1040px){
  .lai-col-l,.lai-col-r,.lai-col-wide,.lai-hero__copy{grid-column:1 / -1}
  .lai-col-r{margin-top:var(--space-48)}
  /* A right column that is only a paragraph follows its heading closely. */
  .lai-col-r--text{margin-top:var(--space-16)}
}

/* Phones: the hero figure reflows: the three cards in order, then the four sources two by two. The lines
   can't be read at this width and drop out. The problem row and the diagram stack. */
@media (max-width:767px){
  .lf{aspect-ratio:auto;container-type:normal;display:grid;grid-template-columns:1fr 1fr;gap:var(--space-16)}
  .lf-card,.lf-src,.lf-step{position:relative;left:auto!important;top:auto;width:auto!important}
  .lf-step{grid-column:1 / -1;margin:var(--space-8) 0 0;font-size:var(--space-15)}
  .lf-step--1{order:1}.lf-c1{order:2}.lf-step--2{order:3}.lf-c2{order:4}.lf-step--3{order:5}.lf-c3{order:6}.lf-src{order:7}
  .lf-step + .lf-card{margin-top:var(--space-4)}
  .lf-card{grid-column:1 / -1;margin-left:var(--space-20);padding:var(--space-14) var(--space-16) var(--space-14) var(--space-36);gap:var(--space-6);border-radius:var(--space-8)}
  .lf-badge{left:calc(-1 * var(--space-20));top:var(--space-10);width:var(--space-44);height:var(--space-44);box-shadow:0 0 0 var(--space-4) var(--ground)}
  .lf-badge--ai svg{width:var(--space-24);height:var(--space-24)}
  .lf-card__by{gap:var(--space-6);font-size:var(--space-13)}
  .lf-card__by .tag{padding:var(--space-2) var(--space-6);font-size:var(--space-10)}
  .lf-card__t{font-size:var(--space-15)}
  .lf-card__t--serif{font-size:var(--space-17)}
  .lf-src__tile{height:auto;aspect-ratio:1 / 1}
  .lf-src--doc .lf-src__tile{gap:var(--space-8);padding:var(--space-14)}
  .lf-src--doc i{height:var(--space-4)}
  .lf-src--doc i:nth-child(4){height:var(--space-8)}
  .lf-src--deck .lf-src__tile{gap:var(--space-10);padding:var(--space-16) var(--space-14) var(--space-14)}
  .lf-src__title{height:var(--space-6)}
  .lf-src__bars{gap:var(--space-8)}
  .lf-an--hl{box-shadow:0 0 0 var(--space-3) var(--lai-hl)}
  .lf-pt{top:calc(-1 * var(--space-10));right:calc(-1 * var(--space-10));width:var(--space-20);height:var(--space-20);box-shadow:0 0 0 var(--space-2) var(--paper)}
  .lf-note .lf-pt{left:calc(-1 * var(--space-8));top:calc(-1 * var(--space-8))}
  .lf-pt--point{top:30%;left:17%}
  .lf-pt--ai svg{width:var(--space-12);height:var(--space-12)}
  .lf-note{padding:var(--space-6);gap:var(--space-4)}
  .lf-note > i{height:var(--space-3)}
  .lf-an--circ .lf-pt{top:calc(-1 * var(--space-12));right:auto;left:calc(-1 * var(--space-4))}
  .lf-room{position:relative;left:auto;top:auto;grid-column:1 / -1;order:7;margin-top:var(--space-12);font-size:var(--space-12)}
  .lf .lf-src--sheet i,.lf .lf-src--sheet i:nth-child(-n+4),.lf .lf-src--sheet i:nth-child(5n+1){font-size:var(--space-8);padding:0 var(--space-3)}
  .lf-src__n{margin-top:var(--space-6)!important;font-size:var(--space-13)}
  .lf-lines{display:none}
  .lai-stack__docs{margin-top:var(--space-16)}
  .lai-where thead{display:none}
  .lai-where tr{display:grid;grid-template-columns:1fr;row-gap:var(--space-6);padding:var(--space-16) 0}
  .lai-where th[scope="row"],.lai-where td{width:auto;padding:0}
  .lai-where td::before{display:block;margin-bottom:var(--space-2);font:500 var(--space-12)/1.4 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
  .lai-where td:nth-of-type(1)::before{content:"Today"}
  .lai-where td:nth-of-type(2)::before{content:"On one record"}
}
