/* Loop's link page on the website (prototypes/loop-track-fit-2026-10-12/round7): Sam on the left in three cards,
   Opens, Read Depth and Pages on the right as three equal cards. One accent, Loop blue. Cards build in once. */
/* Same width as the hero box: the site's content column (--wrap less its gutters) */
.lx-holder { max-width: var(--wrap); margin: var(--s8, 48px) auto 0; padding: 0 var(--gutter); }
.lx {
  --ground: rgb(245,245,247); --card: #fff; --edge: rgba(20,20,26,.06); --shadow: rgba(20,20,26,.05);
  --t1: #18181B; --t2: #6B6B75; --t3: #8E8E96;
  --accent: #4B7BE3; --track: rgba(20,20,26,.07); --monoA: #A9A9B1; --monoB: #8C8C95;
  --sidebar: #fff; --selection: rgba(0,0,0,.05); --seg: rgba(0,0,0,.065); --segShadow: rgba(0,0,0,.08);
  --tip: #1B1B1F; --tipInk: #B7B7BE;
  --fig: 34px; --m: 15px; --s: 12.5px;
  position: relative; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; color: var(--t1);
  -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: 0;
}
:root[data-theme="dark"] .lx {
  --ground: rgb(30,30,33); --card: rgb(43,43,47); --edge: rgba(255,255,255,.06); --shadow: rgba(0,0,0,.3);
  --t1: #F2F2F4; --t2: #A1A1AA; --t3: #85858D;
  --accent: #7EA2F0; --track: rgba(255,255,255,.09); --monoA: #6E6E77; --monoB: #55555D;
  --sidebar: rgb(38,38,42); --selection: rgba(255,255,255,.08); --seg: rgba(0,0,0,.28); --segShadow: rgba(0,0,0,.30);
  --tip: rgba(0,0,0,.88);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lx {
  --ground: rgb(30,30,33); --card: rgb(43,43,47); --edge: rgba(255,255,255,.06); --shadow: rgba(0,0,0,.3);
  --t1: #F2F2F4; --t2: #A1A1AA; --t3: #85858D;
  --accent: #7EA2F0; --track: rgba(255,255,255,.09); --monoA: #6E6E77; --monoB: #55555D;
  --sidebar: rgb(38,38,42); --selection: rgba(255,255,255,.08); --seg: rgba(0,0,0,.28); --segShadow: rgba(0,0,0,.30);
  --tip: rgba(0,0,0,.88);
} }
.lx * { box-sizing: border-box; margin: 0; }
.lx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.lx svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* The window: the app's 1180 x 760, drawn at 0.9 zoom, scaled to fit */
.lx .fitbox { position: relative; width: 100%; aspect-ratio: 1100 / 748; }
.lx .win { position: absolute; left: 0; top: 0; width: 1180px; height: 760px; transform-origin: 0 0; border-radius: 12px; overflow: hidden; background: var(--ground);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 30px 70px -26px rgba(0,0,0,.35), 0 8px 20px -10px rgba(0,0,0,.15); display: flex; }
:root[data-theme="dark"] .lx .win { box-shadow: 0 0 0 .5px rgba(255,255,255,.12), 0 30px 70px -26px rgba(0,0,0,.7); }
.lx .lights { position: absolute; left: 21px; top: 19px; display: flex; gap: 8px; z-index: 3; }
/* Grey window buttons, the same as the hero and Customise windows */
.lx .lights i { width: 12px; height: 12px; border-radius: 50%; background: #DADADF; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
:root[data-theme="dark"] .lx .lights i { background: #4A4A50; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lx .lights i { background: #4A4A50; box-shadow: none; } }

/* Sidebar: four links, nothing else */
.lx .side { width: 224px; flex: none; margin: 10px 0 10px 10px; border-radius: 12px; background: var(--sidebar); box-shadow: 0 0 0 .5px var(--edge); padding: 52px 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.lx .shead { font-size: 11px; font-weight: 600; color: var(--t3); padding: 0 10px 6px; }
.lx .srow { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; font-size: var(--s); color: var(--t2); white-space: nowrap; cursor: default; }
.lx .srow svg.i { width: 18px; height: 12.5px; color: var(--t3); }
.lx .srow.on { background: var(--selection); color: var(--t1); font-weight: 600; }
.lx .srow.on svg.i { color: var(--accent); }

/* Main column */
.lx .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lx .band { display: flex; align-items: center; gap: 10px; padding: 34px 32px 26px; }
.lx .band .kind { width: 24px; height: 24px; display: grid; place-items: center; color: var(--accent); }
.lx .band .kind svg.i { width: 19px; height: 19px; stroke-width: 1.9; }
.lx .band .title { font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.lx .band .sp { flex: 1; }
.lx .seg { display: flex; padding: 2px; border-radius: 9px; background: var(--seg); }
.lx .seg button { width: 84px; height: 26px; border-radius: 7px; font-size: var(--s); font-weight: 500; color: var(--t2); transition: background 200ms cubic-bezier(.22,1,.36,1), color 150ms; }
.lx .seg button[aria-selected="true"] { background: var(--card); color: var(--t1); font-weight: 600; box-shadow: 0 0 0 .5px var(--edge), 0 1px 1.5px var(--segShadow); }
.lx .canvas { flex: 1; min-height: 0; overflow: hidden; padding: 0 32px 32px; display: flex; flex-direction: column; }

/* ===== Activity: Sam on the left, the board on the right ===== */
.lx .two { flex: 1; min-height: 0; display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 44px; }

/* The reader, sitting on the window itself; its top lines up with the board's first label */
@font-face { font-family: "Homemade Apple"; font-style: normal; font-weight: 400; font-display: block; src: url(../fonts/homemade-apple-latin.woff2) format("woff2"); }
.lx { --hand: #1F3E8C; --wash: rgba(75,123,227,.08); }
:root[data-theme="dark"] .lx { --hand: #C9D8FB; --wash: rgba(126,162,240,.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lx { --hand: #C9D8FB; --wash: rgba(126,162,240,.12); } }
.lx .reader { padding-top: 34px; display: flex; flex-direction: column; min-width: 0; }
.lx .who { display: flex; align-items: center; gap: 14px; }
.lx .mono { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--monoA), var(--monoB));
  color: #fff; font-size: var(--m); font-weight: 600; letter-spacing: .3px; }
.lx .who .id b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.lx .who .id span { display: block; font-size: var(--s); color: var(--t2); margin-top: 3px; }
.lx .facts { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--s); color: var(--t2); }
.lx .reader .h5 { margin-top: 34px; margin-bottom: 10px; font-size: var(--s); font-weight: 600; color: var(--t2); }

/* Signature: the name in his hand, then when, then the two actions */
.lx .sigcard { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--edge), 0 1px 2px var(--shadow); padding: 18px 18px 14px; }
.lx .hand { font-family: "Homemade Apple", cursive; font-size: 24px; line-height: 1.5; color: var(--hand); white-space: nowrap; padding-left: 8px; }
.lx .sigfoot { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.lx .sigwhen { display: flex; align-items: center; gap: 5px; font-size: var(--s); color: var(--t2); white-space: nowrap; }
.lx .sigwhen svg.i { width: 13px; height: 13px; stroke-width: 2.2; color: var(--accent); }
.lx .sigwhen b { font-weight: 600; color: var(--accent); }
.lx .sigbtns { display: flex; gap: 16px; }
.lx .lnk { font-size: var(--s); font-weight: 600; color: var(--accent); }
.lx .lnk:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Notes: the page it is on, then the words */
.lx .noterow { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.lx .thumb { width: 48px; aspect-ratio: 210 / 297; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--edge), 0 2px 6px var(--shadow); }
.lx .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx .nmeta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--s); color: var(--t2); }
.lx .nmeta b { font-weight: 600; color: var(--t1); }
.lx .noterow q, .lx .tl q { display: block; margin-top: 6px; font-size: var(--m); line-height: 1.45; color: var(--t1); text-wrap: balance; quotes: "\201C" "\201D"; }

/* Variant 2: a timeline of what Sam did, newest last */
.lx .tl { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lx .tl li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.lx .tl .dot-i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--track); color: var(--t2); }
.lx .tl .dot-i svg.i { width: 13px; height: 13px; stroke-width: 1.9; }
.lx .tl li.key .dot-i { background: var(--wash); color: var(--accent); }
.lx .tlh { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--s); color: var(--t2); }
.lx .tlh b { font-weight: 600; color: var(--t1); }
.lx .tlh span { white-space: nowrap; }
.lx .tl q { margin-top: 2px; }
.lx .hand.sm { font-size: 20px; margin-top: 2px; }
.lx .tl .sigbtns { margin-top: 4px; }

/* A page shown large inside the window */
.lx .lbox { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(10,10,14,.42); opacity: 0; transition: opacity 200ms cubic-bezier(.22,1,.36,1); cursor: zoom-out; }
.lx .lbox.on { opacity: 1; }
.lx .lbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; transform: scale(.97); transition: transform 250ms cubic-bezier(.22,1,.36,1); }
.lx .lbox.on figure { transform: none; }
.lx .lbox img { height: 640px; aspect-ratio: 210 / 297; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.35); background: #fff; }
.lx .lbox figcaption { font-size: var(--s); font-weight: 600; color: #fff; }

/* The board: one surface, three sections separated by space only */
.lx .board { min-height: 0; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--edge), 0 1px 2px var(--shadow);
  padding: 34px 40px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.lx .sec .h4 { font-size: var(--s); font-weight: 600; color: var(--t2); letter-spacing: 0; }
.lx .fig { margin-top: 4px; font-family: ui-rounded, -apple-system, sans-serif; font-size: var(--fig); font-weight: 600; line-height: 1.1; letter-spacing: -.4px; font-variant-numeric: tabular-nums; color: var(--t1); }
.lx .fig small { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: var(--m); font-weight: 600; color: var(--t2); letter-spacing: 0; }

/* Opens: takes the spare height */
.lx .s-opens { display: flex; flex-direction: column; }
.lx .opens { position: relative; height: 196px; display: flex; flex-direction: column; margin-top: 18px; cursor: crosshair; }
.lx .opens svg { flex: 1 1 0; min-height: 0; height: 0; width: 100%; display: block; overflow: visible; }
.lx .opens .dates { flex: none; position: relative; height: 26px; font-size: var(--s); color: var(--t3); }
.lx .opens .dates span { position: absolute; top: 10px; transform: translateX(-50%); white-space: nowrap; }
.lx .opens .dates span:first-child { transform: translateX(-6px); } .lx .opens .dates span:last-child { transform: translateX(calc(-100% + 6px)); color: var(--t2); }
.lx .tipbox { position: absolute; top: 0; pointer-events: none; background: var(--tip); color: #fff; border-radius: 10px; padding: 8px 11px; box-shadow: 0 6px 14px rgba(0,0,0,.2);
  font-size: var(--s); white-space: nowrap; opacity: 0; transform: translateY(2px); transition: opacity 120ms ease-out, transform 120ms ease-out; z-index: 5; }
.lx .tipbox.on { opacity: 1; transform: none; }
.lx .tipbox b { display: block; font-weight: 600; } .lx .tipbox span { display: block; color: var(--tipInk); margin-top: 2px; }

/* Read Depth: one bar, three segments */
.lx .segbar { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lx .segbar i { height: 10px; background: var(--track); transform-origin: left center; }
.lx .segbar i.on { background: var(--accent); }
.lx .segbar i:first-child { border-radius: 5px 2px 2px 5px; } .lx .segbar i:last-child { border-radius: 2px 5px 5px 2px; }

/* Pages: time on each page */
.lx .plist { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.lx .prow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 16px; }
.lx .prow .pn { font-size: var(--s); color: var(--t2); white-space: nowrap; }
.lx .prow .tr { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.lx .prow .tr i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.lx .prow .tm { text-align: right; font-size: var(--m); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== Settings: two columns of grouped rows, no separators ===== */
.lx .sets { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.lx .scol { display: flex; flex-direction: column; gap: 26px; }
.lx .grp .h5 { font-size: var(--s); font-weight: 600; color: var(--t2); padding-left: 4px; margin-bottom: 8px; }
.lx .scard { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--edge), 0 1px 2px var(--shadow); padding: 6px 0; }
.lx .setrow { display: flex; align-items: center; gap: 16px; padding: 12px 18px; }
.lx .setrow .lb { flex: 1; min-width: 0; }
.lx .setrow .lb b { display: block; font-size: 13.5px; font-weight: 500; }
.lx .setrow .lb small { display: block; font-size: 12px; color: var(--t2); margin-top: 2px; text-wrap: balance; }
.lx .tg { width: 34px; height: 20px; border-radius: 10px; background: rgba(120,120,128,.24); position: relative; flex: none; transition: background 200ms; }
.lx .tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform 250ms cubic-bezier(.22,1,.36,1); }
.lx .tg[aria-checked="true"] { background: var(--accent); }
.lx .tg[aria-checked="true"]::after { transform: translateX(14px); }
.lx .tg:focus-visible, .lx .mbtn:focus-visible, .lx .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lx .mbtn { height: 24px; padding: 0 12px; border-radius: 7px; background: var(--card); box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 1px 1px rgba(0,0,0,.06); font-size: 12px; flex: none; }
:root[data-theme="dark"] .lx .mbtn { background: rgba(255,255,255,.14); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lx .mbtn { background: rgba(255,255,255,.14); box-shadow: none; } }

/* Phones: one column, no scaling */
.lx.phone .fitbox { aspect-ratio: auto; }
.lx.phone .win { position: relative; width: 100%; height: auto; transform: none !important; flex-direction: column; }
.lx.phone .side { display: none; }
.lx.phone .lights { left: 16px; top: 16px; }
.lx.phone .band { flex-wrap: wrap; padding: 44px 16px 16px; }
.lx.phone .canvas { overflow: visible; padding: 0 16px 16px; }
.lx.phone .two, .lx.phone .sets { grid-template-columns: 1fr; gap: 24px; }
.lx.phone .reader { padding-top: 0; }
.lx.phone .reader .h5 { margin-top: 22px; }
.lx.phone .board { padding: 24px 20px; gap: 32px; }
.lx.phone .opens { flex: none; height: 150px; }
.lx.phone .seg button { height: 36px; }

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

/* ===== Round 4: the left column as three cards, and a stat line on each section ===== */
.lx .two { gap: 28px; grid-template-columns: 268px minmax(0, 1fr); }
.lx .reader.r1 { padding-top: 0; gap: 12px; }
.lx .pcard { background: var(--card); border-radius: 16px; box-shadow: 0 0 0 1px var(--edge), 0 1px 2px var(--shadow); padding: 18px 18px 16px; }
.lx .pcard.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lx .ph { display: flex; align-items: center; gap: 7px; color: var(--t2); margin-bottom: 12px; }
.lx .ph svg.i { width: 14px; height: 14px; }
.lx .reader .ph .h5 { margin: 0; font-size: var(--s); font-weight: 600; color: var(--t2); }
.lx .ph .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--wash); color: var(--accent); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.lx .r1 .mono { width: 44px; height: 44px; font-size: 14px; }
.lx .kv { margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.lx .kv dt { font-size: 11.5px; color: var(--t3); }
.lx .kv dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--t1); white-space: nowrap; }
.lx .sigin .hand { font-size: 22px; padding-left: 4px; }
.lx .sigin .sigfoot { margin-top: 6px; flex-direction: row; align-items: center; justify-content: space-between; }
.lx .nlist { display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 12px; }
.lx .r1 .noterow { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.lx .r1 .thumb { width: 34px; }
.lx .r1 .noterow q { font-size: 13px; line-height: 1.4; margin-top: 3px; }
.lx .r1 .nmeta span { font-size: 11.5px; color: var(--t3); }

.lx .sec .sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lx .side-stat { display: flex; align-items: baseline; gap: 6px; padding-bottom: 4px; white-space: nowrap; }
.lx .side-stat b { font-size: 17px; font-weight: 600; color: var(--t1); font-variant-numeric: tabular-nums; }
.lx .side-stat span { font-size: var(--s); color: var(--t2); }
.lx .sline { margin-top: 4px; font-size: var(--s); color: var(--t2); }
.lx .seglabels { margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11.5px; color: var(--t3); }
.lx .board { gap: 28px; }
.lx .opens { height: 168px; margin-top: 12px; }
.lx .ph .sigbtns { margin-left: auto; gap: 14px; }
.lx .sigin .sigfoot { margin-top: 4px; }
.lx .nlist { justify-content: flex-start; gap: 8px; }
.lx .r1 .noterow { background: var(--ground); border-radius: 12px; padding: 12px; grid-template-columns: 40px minmax(0, 1fr); flex: 1; align-content: center; }
.lx .r1 .thumb { width: 40px; }
.lx .sigin .hand { padding-left: 10px; }

/* ===== Round 5: three equal cards on the right, a photo, a cleaner signature, lighter note tiles ===== */
.lx .board { background: none; box-shadow: none; border-radius: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: 12px; }
.lx .sec { min-height: 0; background: var(--card); border-radius: 16px; box-shadow: 0 0 0 1px var(--edge), 0 1px 2px var(--shadow); padding: 20px 24px 20px; display: flex; flex-direction: column; }
.lx .sec .h4 { display: flex; align-items: center; gap: 8px; }
.lx .sicon { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--wash); color: var(--accent); }
.lx .sicon svg.i { width: 13px; height: 13px; stroke-width: 1.9; }
.lx .fig { margin-top: 6px; font-size: 30px; }
.lx .sec .sh { align-items: center; }
.lx .s-opens .opens { flex: 1; height: auto; min-height: 0; margin-top: 8px; }
.lx .s-depth .segbar { margin-top: auto; }
.lx .s-pages .plist { margin-top: auto; gap: 8px; }
.lx .s-depth .sline, .lx .s-pages .sline { margin-top: 2px; }

.lx .face { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--edge); }

.lx .pill { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px 0 7px; border-radius: 11px; background: var(--wash); color: var(--accent); font-size: 11.5px; font-weight: 600; }
.lx .pill svg.i { width: 11px; height: 11px; stroke-width: 2.4; }
.lx .sigpad { position: relative; border-radius: 12px; background: var(--wash); height: 76px; display: grid; place-items: center; }
.lx .sigpad .hand { font-size: 24px; padding: 0; line-height: 1; transform: translateY(2px); }
.lx .sigpage { position: absolute; right: 10px; bottom: 7px; font-size: 10.5px; font-weight: 600; color: var(--accent); opacity: .7; }
.lx .sigfoot { margin-top: 12px; flex-direction: row; align-items: center; justify-content: space-between; }
.lx .sigwhen { font-size: var(--s); color: var(--t2); }
.lx .sigbtns { gap: 6px; }
.lx .pbtn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--track); color: var(--t1); font-size: 12px; font-weight: 600; transition: background 150ms ease-out; }
.lx .pbtn:hover { background: var(--wash); color: var(--accent); }
.lx .pbtn svg.i { width: 12px; height: 12px; stroke-width: 1.9; }

.lx .r1 .noterow { background: rgba(20,20,26,.028); }
:root[data-theme="dark"] .lx .r1 .noterow { background: rgba(255,255,255,.045); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lx .r1 .noterow { background: rgba(255,255,255,.045); } }
.lx .sicon svg.i { display: block; }
.lx .sigpad { height: 84px; }
.lx .sigpad .sigwhen { position: absolute; left: 12px; bottom: 8px; font-size: 10.5px; color: var(--t2); }
.lx .sigpage { right: 12px; bottom: 8px; }
.lx .sigfoot { margin-top: 10px; }
.lx .sigfoot .sigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.lx .pbtn { justify-content: center; height: 30px; }
.lx .s-depth .segbar { margin-top: auto; }
.lx .s-depth .seglabels { margin-bottom: auto; }

/* ===== Round 6 ===== */
.lx .kv { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.lx .reader.r1 { gap: 14px; }
.lx .pcard { padding: 20px 20px 18px; }
.lx .sigpad { height: 104px; }
.lx .sigpad .hand { font-size: 27px; transform: translateY(-4px); }
.lx .sigfoot { margin-top: 12px; }
.lx .nlist { gap: 10px; }
.lx .r1 .noterow { padding: 14px; }

/* Read Depth: the pages themselves, each ticked once read, ending at the signature */
.lx .dpages { margin-top: auto; margin-bottom: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 10px; }
.lx .dp { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.lx .dthumb { position: relative; height: 92px; aspect-ratio: 210 / 297; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--edge), 0 4px 12px var(--shadow); }
.lx .dthumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.lx .dthumb .tick { position: absolute; right: -7px; bottom: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--card); }
.lx .dthumb .tick svg.i { display: block; width: 12px; height: 12px; stroke-width: 2.6; }
.lx .dp.end .dthumb { background: var(--wash); box-shadow: none; display: grid; place-items: center; color: var(--accent); }
.lx .dp.end .dthumb svg.i { display: block; width: 26px; height: 26px; stroke-width: 1.8; }
.lx .dl { font-size: 11.5px; color: var(--t2); }
:root[data-theme="dark"] .lx .dthumb img { filter: brightness(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lx .dthumb img { filter: brightness(.92); } }
.lx .sigpad { height: 94px; }
.lx .reader.r1 { gap: 12px; }
.lx .r1 .noterow { padding: 12px; }
.lx .r1 .nmeta { gap: 6px; white-space: nowrap; }
.lx .r1 .nmeta span { font-size: 11px; }
.lx .s-pages .plist { margin-top: auto; margin-bottom: auto; padding-top: 6px; }

/* ===== Round 7: cards build in on arrival (transitions.dev Texts reveal, per card) ===== */
.lx.rv .pcard, .lx.rv .sec {
  opacity: 0; transform: translateY(12px); filter: blur(3px);
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1), transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: transform, opacity, filter;
}
.lx.rv.is-shown .pcard, .lx.rv.is-shown .sec { opacity: 1; transform: none; filter: none; }
.lx.rv.is-shown .canvas.is-settings .scard { transition: none; }
@media (prefers-reduced-motion: reduce) { .lx.rv .pcard, .lx.rv .sec { opacity: 1; transform: none; filter: none; transition: none !important; } }

/* Phones: the right-hand cards stack, so tighten them to the narrow width */
.lx.phone .board { gap: 12px; }
.lx.phone .sec { padding: 18px; }
.lx.phone .sec .sh { flex-wrap: wrap; align-items: flex-end; row-gap: 4px; }
.lx.phone .s-opens .opens { flex: none; height: 150px; }
.lx.phone .opens .dates span:nth-child(even) { display: none; }
.lx.phone .dpages { gap: 6px; margin: 14px 0 0; }
.lx.phone .dthumb { height: 66px; }
.lx.phone .dp.end .dthumb svg.i { width: 20px; height: 20px; }
.lx.phone .s-pages .plist { margin: 14px 0 0; }
.lx.phone .dp { min-width: 0; }
.lx.phone .dthumb { height: auto; width: min(100%, 47px); }
.lx.phone .board { padding: 0; }
.lx.phone .prow { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
.lx.phone .board { grid-template-rows: none; }
