/* Puck — landing page.

   The palette is the app's own, and deliberately so: the dock is cream in
   every condition, so the site that introduces it is too. There is no dark
   variant here for the same reason the app has none.

   Sections: tokens · reset · type · header · hero · dock · footer ·
             notebook demo · capture demo · the mascot · responsive. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  --cream: #fffaf0;         /* the ground, and the dock pill */
  --surface: #fffdf9;       /* fields and secondary buttons */
  --surface-hover: #fff6e8;
  --white: #ffffff;

  --ink: #3f352e;
  --ink-soft: #7a6f66;
  --ink-faint: #a89d93;

  --accent: #e73d5f;
  --accent-deep: #d02f50;
  --accent-tint: rgba(231, 61, 95, 0.09);
  --accent-tint-2: rgba(231, 61, 95, 0.16);
  --accent-ring: rgba(231, 61, 95, 0.22);

  --ok: #1f7a4d;
  --bad: #b02a3a;

  --line: rgba(63, 53, 46, 0.07);
  --line-2: rgba(63, 53, 46, 0.11);
  --line-3: rgba(63, 53, 46, 0.13);
  --wash: rgba(63, 53, 46, 0.07);
  --scrim: rgba(63, 53, 46, 0.34);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 130ms;

  --pad-x: 32px;
}

/* Inter, bundled (SIL OFL — see fonts/LICENSE-Inter.txt) rather than linked,
   so the page owns its own type: no third-party request, nothing to block
   first paint but our own file.

   The cut is the one carrying the **opsz** axis. `font-optical-sizing: auto`
   on the body is what turns it on — the same family then draws tighter,
   lower-contrast letterforms for the headline than for the captions. Without
   that line the larger download buys nothing. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Reset & base ───────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Every control here draws its own hover and pressed state, so the grey box
     a touch browser paints on tap is a second, uglier one. */
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: rgba(231, 61, 95, 0.14); }

/* The ring is a box-shadow so it follows each control's own corner radius.
   The transparent outline is not decoration: forced-colors mode discards the
   shadow and repaints the outline, so without it those users get nothing. */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.icon { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tnum { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 14px; border-radius: 9px;
  background: var(--accent); color: var(--cream);
  font-size: 12.5px; font-weight: 560;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 8px; color: var(--cream); }

/* ── Page frame ─────────────────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px var(--pad-x);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(231, 61, 95, 0.14);
}
.brand-mark .icon { stroke-width: 1.9; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.014em; }

.site-head-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; color: var(--ink-faint); letter-spacing: -0.002em;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

/* `flex: 1` + `align-content` lets the hero take the room the footer isn't
   using and sit in the middle of it. The 56px top padding stays a floor, so
   on a short window this is exactly the artboard: hero at the top, footer at
   the bottom. On a tall one it stops being a band of copy above a hole. */
.hero {
  flex: 1 1 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; align-content: center; justify-content: center;
  gap: 40px;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 56px var(--pad-x) 0;
}

.hero-copy {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 28px; text-align: left;
  flex: 1 1 400px; min-width: 320px; max-width: 520px;
}

.hero-lede { display: flex; flex-direction: column; gap: 14px; }

.eyebrow {
  font-size: 10.5px; font-weight: 620; text-transform: uppercase;
  letter-spacing: 0.075em; color: var(--ink-faint);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 620;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft); letter-spacing: -0.004em;
  max-width: 52ch; text-wrap: pretty;
}

.hero-actions {
  display: flex; flex-direction: column; gap: 9px;
  width: 100%; max-width: 440px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 15px;
  font-family: inherit; font-size: 12.5px; font-weight: 560;
  letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; border-radius: 9px;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  color: var(--white); background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(208, 47, 80, 0.28);
}
.btn-primary:hover { background: var(--accent-deep); color: var(--white); }

.btn-secondary {
  padding: 0 13px; font-weight: 540; letter-spacing: -0.004em;
  color: var(--ink); background: var(--surface); border-color: var(--line-3);
}
.btn-secondary:hover {
  color: var(--ink);
  background: var(--surface-hover);
  border-color: var(--ink-faint);
}

/* ── Signup ─────────────────────────────────────────────────────────────── */

.signup { display: flex; flex-direction: column; gap: 9px; }
.signup-row { display: flex; gap: 8px; }

.signup-input {
  flex: 1 1 0; min-width: 0; height: 34px; padding: 0 11px;
  font-family: inherit; font-size: 13px; letter-spacing: -0.004em;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 8px;
  transition: border-color var(--dur) var(--ease);
}
.signup-input::placeholder { color: var(--ink-faint); }
.signup-input:hover { border-color: var(--ink-faint); }
.signup-input:focus-visible { border-color: var(--accent); }

.signup-note {
  display: flex; align-items: flex-start; gap: 8px;
  min-height: 17px; margin: 0;
  font-size: 11.5px; letter-spacing: -0.002em; color: var(--ink-faint);
}
.signup-dot {
  flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px;
  border-radius: 50%; background: currentColor;
  transition: background var(--dur) var(--ease);
}
.signup.is-ok .signup-note { color: var(--ok); }
.signup.is-bad .signup-note { color: var(--bad); }
.signup.is-busy .signup-note { color: var(--ink-soft); }

.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; }
.downloads-soon { font-size: 11.5px; letter-spacing: -0.002em; color: var(--ink-faint); }

/* aria-disabled is a claim, not a state the browser enforces: unlike `disabled`
   it suppresses no hover, no press and no click. So every affordance the button
   normally grows has to be taken back by hand, or a control that does nothing
   still lights up under the cursor as though it will. */
.btn[aria-disabled="true"],
.btn[aria-disabled="true"]:hover {
  color: var(--ink-faint);
  background: var(--surface);
  border-color: var(--line-2);
  cursor: default;
}
.btn[aria-disabled="true"]:active { transform: none; }

/* ── The dock ───────────────────────────────────────────────────────────── */

.hero-dock {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; flex: 0 1 auto; min-width: 340px; padding: 8px 0;
}

.dock {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(63, 53, 46, 0.10);
  animation: puck-bob 5.5s ease-in-out infinite;
}

.dock-btn {
  position: relative;
  width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 11px;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.dock-btn:hover { background: var(--wash); }
.dock-btn:active { transform: scale(0.92); }

.dock-ghost { background: var(--accent-tint); color: var(--accent); }
.dock-ghost:hover { background: var(--accent-tint-2); }
.dock-ghost .icon { position: relative; }

.dock-ring {
  position: absolute; left: 50%; top: 50%;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--accent);
  transform: translate(-50%, -50%);
  animation: puck-listening 2.6s ease-in-out infinite;
}

.dock-divider {
  align-self: center; width: 1px; height: 20px; margin: 0 3px;
  background: rgba(0, 0, 0, 0.1); border-radius: 1px;
}

.dock-caption {
  margin: 0;
  font-size: 11.5px; color: var(--ink-faint); letter-spacing: -0.002em;
  text-align: center; max-width: 34ch; text-wrap: pretty;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 13px var(--pad-x) 15px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-faint); letter-spacing: -0.002em;
}
.site-foot span { white-space: nowrap; }

/* ── The notebook demo ──────────────────────────────────────────────────── */

.notebook {
  width: min(900px, 100%); height: min(580px, 100%);
  max-width: none; max-height: none;
  padding: 0; margin: auto;              /* restated: the reset above wipes the
                                            UA rule that centres a modal dialog */
  flex-direction: column;
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 26px 70px rgba(63, 53, 46, 0.32);
  overflow: hidden;
  font-family: inherit; font-size: 13px; line-height: 1.45;
}
.notebook[open] { display: flex; }
.notebook::backdrop { background: var(--scrim); }

.notebook-bar {
  flex: 0 0 44px; position: relative;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, #fffdf8, var(--cream));
}
.notebook-bar-title {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-soft);
}
.notebook-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-faint); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.notebook-close:hover { background: var(--accent-tint); color: var(--accent); }
.notebook-close .icon { stroke-width: 2.2; }

.notebook-body { flex: 1 1 auto; display: flex; min-height: 0; }

.notebook-side {
  flex: 0 0 216px;
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--line-2);
  background: var(--surface);
}
.notebook-side-head { padding: 16px 16px 10px; }
.notebook-side-head h2 { margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: -0.005em; }
.notebook-count { margin: 1px 0 0; font-size: 11.5px; color: var(--ink-faint); }

.notebook-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 0 8px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.notebook-page {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 8px 30px 8px 10px;
  border: 0; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.notebook-page:hover { background: rgba(63, 53, 46, 0.05); }
.notebook-page[aria-current="true"] { background: rgba(63, 53, 46, 0.085); }
.notebook-page b {
  display: block; font-size: 13px; font-weight: 550;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notebook-page i {
  display: block; font-style: normal; font-size: 11px; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.notebook-new {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  margin: 0 8px 8px; padding: 9px 10px;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 550;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.notebook-new:hover { background: var(--accent-tint); color: var(--accent); }

.notebook-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; }

.notebook-title {
  flex: 0 0 auto; width: min(720px, 100%); align-self: center;
  margin: 22px 0 10px; padding: 2px 6px;
  border: 0; border-radius: 8px; background: transparent; color: inherit;
  font: inherit; font-size: 22px; font-weight: 680;
  letter-spacing: -0.018em; line-height: 1.25;
  transition: background var(--dur) var(--ease);
}
.notebook-title::placeholder { color: var(--ink-faint); }
.notebook-title:hover { background: rgba(63, 53, 46, 0.04); }
.notebook-title:focus-visible { background: var(--white); }

.notebook-tools {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 3px;
  width: min(720px, 100%); align-self: center;
  padding: 5px 6px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white);
}
.notebook-select {
  appearance: none; height: 28px; padding: 0 22px 0 8px;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--ink-soft); font: inherit; font-size: 12.5px; font-weight: 550;
  cursor: pointer;
}
.notebook-tool {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--ink-soft); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.notebook-tool:hover { background: rgba(63, 53, 46, 0.06); color: var(--ink); }
.notebook-tools-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line-2); }
.notebook-tools-gap { flex: 1 1 auto; }
/* Never wraps: it is a one-line status, and letting it break turns the toolbar
   into a three-line block on a phone. Narrow screens scroll it instead. */
.notebook-save { padding-right: 6px; font-size: 11px; color: var(--ink-faint); white-space: nowrap; }

.notebook-doc {
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto;
  width: min(720px, 100%); align-self: center;
  padding: 18px 6px 60px;
  font-size: 14.5px; line-height: 1.65;
  outline: none; caret-color: var(--accent);
}
/* The one control that does not take the focus ring: boxing a whole page of
   text is noise, and an editing surface already shows focus — the caret is
   accent-coloured for exactly that reason. */
.notebook-doc:focus-visible { box-shadow: none; }

/* The editable document. These reach markup the caret creates, which is why
   they are rules rather than anything the demo sets on an element. */
[data-puck-doc] > * + * { margin-top: 2px; }
[data-puck-doc] > :first-child { margin-top: 0; }
[data-puck-doc] h1, [data-puck-doc] h2, [data-puck-doc] h3 { font-weight: 660; letter-spacing: -0.015em; line-height: 1.28; }
[data-puck-doc] h1 { margin: 24px 0 0; font-size: 26px; }
[data-puck-doc] h2 { margin: 20px 0 0; font-size: 19px; }
[data-puck-doc] h3 { margin: 16px 0 0; font-size: 15.5px; }
[data-puck-doc] p { margin: 0; }
[data-puck-doc] blockquote {
  margin: 10px 0 0; padding: 2px 0 2px 14px;
  border-left: 3px solid var(--accent); color: var(--ink-soft);
}
[data-puck-doc] pre {
  margin: 10px 0 0; padding: 10px 12px;
  border-radius: 8px; background: var(--white); border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.8px; line-height: 1.55; white-space: pre-wrap;
}
[data-puck-doc] code {
  padding: 1px 5px; border-radius: 5px; background: var(--wash);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.89em;
}
[data-puck-doc] pre code { padding: 0; background: none; font-size: 1em; }
[data-puck-doc] ul, [data-puck-doc] ol { margin: 6px 0 0; padding-left: 26px; }
[data-puck-doc] li { margin-top: 1px; }
[data-puck-doc] li::marker { color: var(--ink-faint); }

/* ── The capture demo ───────────────────────────────────────────────────── */

.capture {
  position: fixed; inset: 0; z-index: 55;
  cursor: crosshair;
  background: var(--scrim);
  backdrop-filter: saturate(0.6);
  -webkit-backdrop-filter: saturate(0.6);
}
.capture[hidden] { display: none; }
.capture.is-dragging { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.capture-sel {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border: 1.5px solid var(--accent);
  opacity: 0;
}
.capture.is-dragging .capture-sel {
  opacity: 1;
  box-shadow: 0 0 0 9999px var(--scrim);
}

.capture-hint {
  position: absolute; left: 50%; top: 26px; transform: translateX(-50%);
  margin: 0; padding: 7px 13px;
  font-size: 12px; letter-spacing: -0.004em;
  color: var(--cream); background: rgba(63, 53, 46, 0.9);
  border-radius: 999px; pointer-events: none;
}

/* ── Puck, following the cursor ─────────────────────────────────────────── */

.follow {
  position: fixed; left: 0; top: 0; z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms var(--ease);
  will-change: transform;
}
.follow.is-awake { opacity: 1; }

.follow-bubble {
  position: absolute; bottom: 34px; left: 16px;
  width: 272px; padding: 13px 15px;
  background: var(--accent); border-radius: 16px;
  box-shadow: 0 10px 26px rgba(208, 47, 80, 0.26);
  opacity: 0;
  transform: translate(-6px, 6px) scale(0.94);
  transform-origin: 0% 100%;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}
.follow.is-speaking .follow-bubble { opacity: 1; transform: translate(0, 0) scale(1); }

.follow-text {
  font-size: 12.5px; font-weight: 450; line-height: 1.5;
  color: var(--cream); letter-spacing: -0.004em; text-wrap: pretty;
}
.follow-bubble { min-height: 19px; }

.follow-caret {
  display: none;
  width: 2px; height: 11px; margin-left: 2px; vertical-align: -1px;
  background: var(--cream); border-radius: 1px;
  animation: puck-caret 900ms steps(1, end) infinite;
}
.follow.is-typing .follow-caret { display: inline-block; }

.follow-mascot { position: relative; width: 26px; height: 26px; transform-origin: 50% 100%; }
.follow-halo {
  position: absolute; left: 50%; top: 50%;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(231, 61, 95, 0.14);
  transform: translate(-50%, -50%);
  animation: puck-listening 2.4s ease-in-out infinite;
}
.follow-glyph {
  position: relative; display: block; width: 26px; height: 26px;
  transform-origin: 50% 85%;
  filter: drop-shadow(0 2px 4px rgba(208, 47, 80, 0.28));
}

/* ── Motion ─────────────────────────────────────────────────────────────── */

@keyframes puck-listening {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  50%      { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
}
@keyframes puck-caret {
  0%, 45%  { opacity: 1; }
  50%, 95% { opacity: 0.15; }
  100%     { opacity: 1; }
}
@keyframes puck-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2.5px); }
}

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

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { padding-top: 40px; gap: 32px; }
  .hero-dock { min-width: 0; width: 100%; }
}

@media (max-width: 620px) {
  :root { --pad-x: 20px; }
  .wide-break { display: none; }
  .hero { padding-top: 32px; }
  .hero-copy { min-width: 0; }
  .signup-row { flex-wrap: wrap; }
  .signup-input { flex-basis: 100%; }
  .signup-row .btn { flex: 1 1 auto; }
  .downloads .btn { flex: 1 1 auto; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dock { gap: 6px; padding: 9px 11px; }
}

/* The notebook is a document, so on a narrow screen the page list becomes a
   strip above it rather than disappearing — "New page" has to stay reachable. */
@media (max-width: 700px), (max-height: 520px) {
  .notebook { height: 100%; border-radius: 0; border: 0; }
  .notebook-body { flex-direction: column; }
  .notebook-side {
    flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px;
    padding: 8px; border-right: 0; border-bottom: 1px solid var(--line-2);
  }
  .notebook-side-head { display: none; }
  .notebook-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0; }
  .notebook-page { width: auto; min-width: 130px; padding: 6px 10px; }
  .notebook-new { margin: 0; }
  .notebook-new span { display: none; }
  .notebook-title { margin: 14px 0 8px; padding-inline: 14px; font-size: 19px; }
  .notebook-tools { width: calc(100% - 20px); overflow-x: auto; }
  .notebook-tools-gap { flex: 0 0 12px; }   /* no elastic gap: the row scrolls */
  .notebook-doc { padding-inline: 14px; }
}
