/* Tip 008: the Lumno help center's layout, scrolled through in a browser window. */

.tip-stage {
  --ink: #1f2328;
  --text: #3d434a;
  --muted: #626870;
  --soft: #89919a;
  --line: #e2e6e9;
  --accent: #0a78c2;
  --accent-bright: #16a0fd;
  --row-current: rgba(29, 32, 36, 0.06);
  padding: 0;
  background: #eeeeec url('./media/backdrop-brush.jpg') left center / cover;
}

/* The credit's wordmark is white; darkened here for the light stage. */
.tip-credit { color: rgba(20, 20, 22, 0.62); }
.tip-credit img { opacity: 0.62; filter: brightness(0); }

/* ---------- Desktop / Mobile ---------- */

/* Tip 007's tab: two equal halves and a white pill that slides between them. */
.devices {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 340px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px -14px rgba(20, 24, 30, 0.35);
  translate: -50% 0;
}

.devices-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(20, 24, 30, 0.08), 0 4px 12px -4px rgba(20, 24, 30, 0.16);
}

.device {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 0;
  color: rgba(40, 44, 52, 0.5);
  font: 600 22px/1 var(--tip-font-sans);
}

.device svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ---------- Browser window ---------- */

.browser {
  /* 0 as a plain window, 1 with the layers pulled apart (set by wiki.js). */
  --open: 0;
  position: absolute;
  top: 104px;
  left: 36px;
  width: 1008px;
  height: 1202px;
  overflow: clip;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: rgba(255, 255, 255, calc(1 - var(--open) * 2));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, calc(0.08 * (1 - var(--open)))),
    0 30px 70px -30px rgba(20, 24, 30, calc(0.5 * (1 - var(--open))));
  transform-origin: 0 0;
}

.browser.is-open { overflow: visible; }

.browser-bar {
  position: relative;
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ececec;
  background: #f6f6f6;
  border-radius: 22px 22px 0 0;
  opacity: calc(1 - var(--open) * 2);
}

.lights {
  position: absolute;
  left: 20px;
  display: flex;
  gap: 8px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dcdcdc;
}

.address {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e6e6e6;
  color: #6b7076;
  font: 500 14px/1.2 var(--tip-font-sans);
}

.address i { font-size: 14px; }

/*
 * The window's content: three layers in one 3D space. Flat, they read as an
 * ordinary page; pulled apart, the sheet slides under the columns and the bar.
 */
.viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: clip;
  /* Overflow alone lets layers in a 3D context escape; this clips them too. */
  clip-path: inset(0);
  perspective: 2400px;
  color: var(--text);
  font-family: var(--tip-font-sans);
}

.is-open .viewport { overflow: visible; clip-path: none; }

.stack {
  position: absolute;
  inset: 0;
}

/* Only while pulled apart: a 3D context turns off the bar's backdrop blur. */
.is-open :is(.stack, .layer.is-fixed) { transform-style: preserve-3d; }

.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layer > * { pointer-events: auto; }
.layer.is-scroll { bottom: auto; }

.sheet {
  position: relative;
  background: #ffffff;
  box-shadow: 0 50px 90px -40px rgba(20, 24, 30, calc(0.45 * var(--open)));
}

/* Where the window is, on the sheet. */
.screen {
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent-bright);
  border-radius: 4px;
  opacity: var(--open);
  pointer-events: none;
}

/* Pulled apart, the columns and the bar sit on white cards of their own. */
.guide-side,
.guide__toc {
  border-radius: 14px;
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, calc(0.95 * var(--open))),
    0 40px 60px -24px rgba(20, 24, 30, calc(0.4 * var(--open)));
  background: rgba(255, 255, 255, calc(0.95 * var(--open)));
}

/* A point on each layer's right edge for its label. */
.anchor {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
}

/* ---------- Site bar ---------- */

.top-nav {
  position: absolute;
  top: 14px;
  left: 36px;
  right: 36px;
  z-index: 2;
  height: 58px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
}

/* Fixed to the window, in glass. */
.top-nav.is-pill {
  top: 8px;
  border-color: rgba(211, 217, 226, 0.78);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 32px rgba(35, 43, 52, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* A 3D context has no backdrop to blur: frost the pill instead. */
.is-open .top-nav.is-pill {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.top-nav.is-entering { animation: nav-enter 320ms ease-out both; }
.top-nav.is-exiting { animation: nav-exit 120ms cubic-bezier(0.4, 0, 1, 1) both; }

@keyframes nav-enter {
  from { opacity: 0; transform: translateY(-24px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes nav-exit {
  from { opacity: 1; transform: none; filter: blur(0); }
  to { opacity: 0; transform: translateY(-28px); filter: blur(8px); }
}

.top-nav-brand { width: 70px; height: 17px; margin-left: 14px; }

.top-nav-links {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 4px;
  translate: -50% 0;
}

.top-nav-links > span {
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #68717c;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.top-nav-links i { margin-left: 2px; font-size: 16px; }

.top-nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav-tools > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #3d434a;
  font-size: 18px;
}

.top-nav-install {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 14px 0 18px;
  border-radius: 999px;
  background: #1d2024;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px -6px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.top-nav-install i { font-size: 16px; opacity: 0.8; }

/* ---------- Help center ---------- */

.guide {
  display: grid;
  grid-template-columns: 196px 520px 148px;
  grid-template-areas:
    "nav banner banner"
    "nav article toc";
  gap: 0 36px;
  padding: 92px 36px 80px;
}

/* Sticks exactly where it starts, so scrolling never nudges it (wiki.js). */
.guide-side {
  position: absolute;
  top: 0;
  left: 36px;
  width: 196px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(1150px - 112px);
}

.guide-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8f9;
  color: var(--soft);
  font-size: 14px;
}

.guide-search span { flex: 1; }

.guide-search kbd {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  font: 500 11px/1 var(--tip-font-mono);
}

.guide-nav-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@property --clear-top { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fade-top { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --clear-bottom { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fade-bottom { syntax: '<length>'; inherits: false; initial-value: 0px; }

/*
 * Edges fade only where more of the list waits beyond them. A clear strip at
 * the very edge and an eased ramp keep a half-cut row from showing as a faint line.
 */
.guide-nav {
  --edge: linear-gradient(
    to bottom,
    transparent var(--clear-top),
    rgb(0 0 0 / 0.3) calc((var(--clear-top) + var(--fade-top)) / 2),
    #000 var(--fade-top),
    #000 calc(100% - var(--fade-bottom)),
    rgb(0 0 0 / 0.3) calc(100% - (var(--clear-bottom) + var(--fade-bottom)) / 2),
    transparent calc(100% - var(--clear-bottom))
  );
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -webkit-mask-image: var(--edge);
  mask-image: var(--edge);
  transition: --clear-top 200ms ease, --fade-top 200ms ease, --clear-bottom 200ms ease, --fade-bottom 200ms ease;
}

.guide-nav::-webkit-scrollbar { display: none; }
.guide-nav[data-more-above] { --clear-top: 8px; --fade-top: 40px; }
.guide-nav[data-more-below] { --clear-bottom: 12px; --fade-bottom: 56px; }

/* No scrollbar: a small round arrow at each edge that has more beyond it. */
.guide-nav-step {
  position: absolute;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(29, 32, 36, 0.08);
  color: var(--soft);
  font-size: 19px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, color 160ms ease, background-color 160ms ease;
}

.guide-nav-step.is-up { top: 0; }
.guide-nav-step.is-down { bottom: 6px; }

.guide-nav-frame[data-above] .is-up,
.guide-nav-frame[data-below] .is-down {
  opacity: 1;
  pointer-events: auto;
}

.guide-nav-step:hover,
.guide-nav-step[data-state] { color: var(--ink); }
.guide-nav-step[data-state="pressed"] { background: #f1f3f5; }

.guide-nav__group + .guide-nav__group {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.guide-nav__group-title {
  margin: 0 0 4px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 24px;
}

.guide-nav__section-title {
  margin: 18px 0 4px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.guide-nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
}

.guide-nav a[aria-current] {
  background: var(--row-current);
  color: var(--ink);
  font-weight: 600;
}

.guide__banner {
  grid-area: banner;
  margin-bottom: 36px;
  overflow: hidden;
  aspect-ratio: 5 / 1;
  border-radius: 12px;
  background: #f8f8e8;
}

.guide__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide__article { grid-area: article; min-width: 0; }

.guide__article h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
}

.guide__meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.guide__body {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.75;
}

.guide__body h2 {
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.guide__body h3 {
  margin: 22px 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.guide__body p,
.guide__body ul { margin: 0 0 16px; }

.guide__body ul { padding-left: 1.4em; }
.guide__body li + li { margin-top: 4px; }
.guide__body li::marker { color: var(--soft); }
.guide__body a { color: var(--accent); }

.guide__body kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 0 #e2e6e9;
  color: var(--ink);
  font: 500 12px/1 var(--tip-font-sans);
  vertical-align: 1px;
}

.guide-shot { margin: 24px 0; }

.guide-shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide__stuck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.guide__stuck p { margin: 0; font-size: 14px; }
.guide__stuck-actions { display: flex; flex: none; gap: 8px; }

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.pill-button i { font-size: 15px; }
.pill-button[data-state] { background: rgba(29, 32, 36, 0.05); }

.guide__pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.guide__pager-link {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.guide__pager-link.is-next { text-align: right; }
.guide__pager-link small { color: var(--muted); font-size: 13px; }
.guide__pager-link b { color: var(--ink); font-size: 15px; font-weight: 600; }

/* Outline: small grey links on a hairline; the section being read takes the accent. */
.guide__toc {
  position: absolute;
  top: 0;
  left: 824px;
  width: 148px;
  font-size: 13.5px;
  line-height: 1.5;
}

.guide__toc-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}

.guide__toc ol {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.guide__toc a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease;
}

.guide__toc a[aria-current] {
  border-left-color: var(--accent-bright);
  color: var(--accent);
}

/* ---------- Footer ---------- */

/*
 * The painting's sea is 45% of its height. The footer grows by that much
 * under the last row, so the sea lies in that strip, not behind the links.
 */
.site-footer {
  --art-height: calc(1008px * 569 / 2048);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer::after {
  content: "";
  display: block;
  height: calc(var(--art-height) * 0.45);
}

.site-footer__art {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: var(--art-height);
}

.site-footer__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent),
    linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent),
    linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
  mask-composite: intersect;
}

/* A near-solid white veil behind the links that thins over the sea. */
.site-footer__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 50%,
    rgba(255, 255, 255, 0.55) 60%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

.site-footer__main,
.site-footer__meta {
  margin-inline: 68px;
}

.site-footer__main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0 44px;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__icon { width: 34px; height: 34px; }
.site-footer__word { width: 82px; }

.site-footer__brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Stores, then a rule, then socials: plain icons in one quiet row. */
.site-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 20px;
}

.site-footer__sep {
  width: 1px;
  height: 16px;
  background: rgba(29, 32, 36, 0.14);
}

.site-footer__columns {
  display: flex;
  gap: 64px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #2f2a22;
  font-size: 13px;
  font-weight: 700;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

.site-footer__meta p { display: flex; margin: 0; }
.site-footer__meta p > * + *::before { content: "·"; margin-inline: 8px; }

.site-footer__meta ul {
  display: flex;
  gap: 14px;
  color: var(--soft);
  font-size: 13px;
}

.site-footer__meta .is-current { color: var(--ink); font-weight: 600; }

/* ---------- The window narrowing into the phone ---------- */

.morph {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: 0 solid #0b0b0c;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 30px 70px -30px rgba(20, 24, 30, 0.5);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Phone ---------- */

/*
 * An iPhone 18 Pro frame over a 402 x 874 screen drawn at 1.33x. The frame
 * image is 1350 x 2760; its screen opening starts 72 x 69 pixels in.
 */
.phone {
  --screen-scale: 1.33;
  position: absolute;
  top: 100px;
  left: 240.7px;
  z-index: 2;
  width: 598.5px;
  height: 1223.6px;
  opacity: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 36px 40px rgba(20, 24, 30, 0.28));
}

.phone-screen {
  position: absolute;
  top: 30.6px;
  left: 31.9px;
  width: 402px;
  height: 874px;
  overflow: hidden;
  border-radius: 62px;
  background: #ffffff;
  color: var(--text);
  font-family: var(--tip-font-sans);
  transform: scale(var(--screen-scale));
  transform-origin: 0 0;
}

.m-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 34px 0 54px;
  box-sizing: border-box;
  background: #ffffff;
  color: #000000;
}

.m-status b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.m-status svg { width: 78px; height: 14px; fill: currentColor; }

.m-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 5;
  width: 136px;
  height: 5px;
  border-radius: 999px;
  background: #111111;
  translate: -50% 0;
}

/* Everything under the status bar: the page, its bar, the dock and the sheets. */
.m-view {
  position: absolute;
  inset: 62px 0 0;
  overflow: hidden;
}

.m-page { position: relative; }

.m-guide {
  width: 370px;
  margin: 0 auto;
  padding: 80px 0 140px;
}

.m-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-bottom: 20px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8f9;
  color: var(--soft);
  font-size: 16px;
}

.m-search i { font-size: 18px; }

.m-guide .guide__banner {
  margin-bottom: 28px;
  aspect-ratio: 3 / 1;
  border-radius: 10px;
}

.m-guide .guide__article h1 { font-size: 26px; }
.m-guide .guide__body h2 { font-size: 20px; scroll-margin-top: 96px; }
.m-guide .guide-shot { margin: 20px 0; }

/* The site bar, as on the desktop: clear at the top, then the glass pill. */
.m-nav {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  z-index: 2;
  height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 7px 6px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.m-nav.is-pill {
  border-color: rgba(211, 217, 226, 0.78);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 32px rgba(35, 43, 52, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.m-nav.is-entering { animation: nav-enter 320ms ease-out both; }
.m-nav.is-exiting { animation: nav-exit 120ms cubic-bezier(0.4, 0, 1, 1) both; }

.m-nav-brand { width: 64px; height: 16px; }

.m-nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-nav-tools > i,
.m-sheet-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: #3d434a;
  font-size: 18px;
  font-style: normal;
}

.m-nav-install {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  background: #1d2024;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px -6px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.m-nav-install i { font-size: 16px; opacity: 0.8; }

/* One quiet bar for both lists, the section being read on its right half. */
.m-dock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 34px;
  z-index: 3;
  height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 14px;
  white-space: nowrap;
}

.m-dock > span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-radius: 999px;
  color: var(--muted);
}

.m-dock > span[data-state] { background: rgba(29, 32, 36, 0.06); }
.m-dock i { flex: none; font-size: 16px; }
.m-dock-pages { flex: none; padding: 0 14px 0 16px; }

.m-dock-outline {
  flex: 1;
  padding: 0 14px;
}

/* A hairline between the two halves. */
.m-dock-outline::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.m-dock-current {
  overflow: hidden;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
}

.m-dock-outline > .ri-arrow-up-s-line { margin-left: auto; }

/* Sheets rise from the bottom edge, with no dimming behind them. */
.m-sheet {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  max-height: 78%;
  padding: 6px 0 34px;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  color: var(--ink);
}

.m-sheet.is-open {
  display: flex;
  animation: sheet-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes sheet-in {
  from { transform: translateY(24px); opacity: 0; }
}

.m-sheet-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 6px 24px;
}

.m-sheet-head p { margin: 0; font-size: 15px; font-weight: 600; }
.m-sheet-close[data-state] { background: #f1f3f5; }

.m-outline {
  margin: 0;
  padding: 4px 12px 8px;
  list-style: none;
}

.m-outline a {
  display: block;
  padding: 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.m-outline a[aria-current],
.m-outline a[data-state] {
  background: var(--row-current);
}

.m-outline a[aria-current] {
  color: var(--accent);
  font-weight: 600;
}

/* The page list in its sheet: no fade, tap targets one size up. */
.m-sheet .guide-nav {
  overflow: hidden;
  padding: 0 12px 8px;
  -webkit-mask-image: none;
  mask-image: none;
}

.m-sheet .guide-nav__group:first-of-type { padding-top: 12px; }
.m-sheet .guide-nav a { padding: 8px 10px; font-size: 14px; }

/* A fingertip on the glass. */
.touch {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 11;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  box-sizing: border-box;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(60, 64, 72, 0.32);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: scale 120ms ease;
}

.touch[data-down] { scale: 0.82; }

/* ---------- Notes ---------- */

/* Above the phone, which sits over the window. */
.notes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.tag,
.note {
  position: absolute;
  margin: 0;
  border-radius: 999px;
  background: #151515;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  opacity: 0;
}

/* On the outline: just what happens, in a few words. */
.tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 12px 12px;
  color: #ffffff;
  font: 600 30px/1.2 var(--tip-font-sans);
  white-space: nowrap;
}

/* On the real page: what does it, in one line. */
.note {
  padding: 22px 30px 24px;
  border-radius: 28px;
}

.note-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #ffffff;
  font: 600 30px/1.3 var(--tip-font-sans);
  white-space: nowrap;
}

.tag > i {
  width: 14px;
  height: 14px;
  margin: 0 2px 0 10px;
  border-radius: 50%;
  background: var(--dot);
}

.tag[data-tag="fixed"] { --dot: #16a0fd; }
.tag[data-tag="sticky"] { --dot: #13c27a; }
.tag[data-tag="scroll"] { --dot: #fcd116; }

.note-title > i {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #13a663;
  color: #ffffff;
  font: 600 19px/1 var(--tip-font-mono);
  font-style: normal;
}

.note pre {
  margin: 14px 0 0 50px;
  color: #d4d4d4;
  font: 500 23px/1.4 var(--tip-font-mono);
  white-space: pre;
}

.note .sel { color: #e0a3ff; }
.note .prop { color: #9ecbff; }
.note .val { color: #fcd116; }

/* ---------- Scrollbar ---------- */

/* Like the system's overlay scrollbar: a thin thumb at the window's right edge. */
.scrollbar {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  width: 9px;
  opacity: 0;
  transform: translateZ(1px);
  pointer-events: none;
}

.scrollbar i {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 9px;
  background: rgba(29, 32, 36, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}
