/* ─────────────────────────────────────────────────────────────────
   SMS · Paroles — Cyan pastel
   ───────────────────────────────────────────────────────────────── */
:root {
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(26,35,50,.04), 0 8px 24px -10px rgba(26,35,50,.15);
  --hairline: rgba(26,35,50,.08);

  /* Cyan pastel palette */
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-side: #f0f7f9;
  --bg-section: #f5f5f3;
  --ink: #1a2332;
  --ink-soft: #5a6a7a;
  --ink-mute: #8b97a8;
  --teal: #87d4e0;
  --teal-mid: #4fa8ba;
  --teal-deep: #2c7a8a;
  --link: #4fa8ba;
  --link-decoration: rgba(79,168,186,0.5);
  --pill-bg: #2c7a8a;
  --pill-fg: #ffffff;
  --ann-circle-bg: #87d4e0;
  --ann-circle-fg: #1a2332;
  --quote-bg: #f0f7f9;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; padding: 0; }

/* ─── Layout ─── */
.page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}
/* When an annotation is active, reveal the 3rd column */
.page.has-annotation {
  grid-template-columns: 280px minmax(0, 1fr) 340px;
}
@media (max-width: 1100px) {
  .page.has-annotation { grid-template-columns: 240px minmax(0, 1fr) 300px; }
}
@media (max-width: 768px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ─── Sidebar ─── */
.sidebar {
  background: var(--bg-side);
  border-right: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar__top {
  flex-shrink: 0;
  padding: 28px 22px 0;
}
.sidebar__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px 40px;
}
.sidebar__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color .15s ease;
}
.sidebar__back:hover { color: var(--ink-soft); }
.sidebar__back svg { width: 12px; height: 12px; flex: 0 0 12px; }

.sidebar__head {
  margin-bottom: 4px;
}
.sidebar__brand {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 6px;
}
.sidebar__brand em { font-style: italic; }
.sidebar__brand .dot { color: var(--teal-deep); }
.sidebar__brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  margin: 0 0 24px;
}
.sidebar__brand-sub strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* ─── Search ─── */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 14px;
  margin-bottom: 28px;
  color: var(--ink-mute);
  transition: border-color .15s ease;
}
.search:focus-within { border-color: var(--teal-mid); }
.search input {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
  width: 100%;
  font-size: 12px;
}
.search input::placeholder { color: var(--ink-mute); }
.search > svg { width: 13px; height: 13px; flex: 0 0 13px; }
.search button {
  place-items: center;
  width: 16px; height: 16px;
  flex: 0 0 16px;
  opacity: 0.5;
  transition: opacity .15s ease;
}
.search button:hover { opacity: 1; }
.search button svg { width: 13px; height: 13px; }

/* ─── Album groups ─── */
.album-group { margin-bottom: 26px; }
.album-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 10px;
}
.album-glyph {
  width: 38px; height: 38px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  flex: 0 0 38px;
}
.album-glyph img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.album-glyph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.18));
  mix-blend-mode: overlay;
  z-index: 1;
}
.album-group__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  margin: 0;
  line-height: 1.15;
}
.album-group__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 3px;
}

/* ─── Track list ─── */
.track-list { list-style: none; margin: 0; padding: 0; }
.track-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px 6px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.track-list li > span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-list li:hover { background: var(--bg-card); color: var(--ink); }
.track-list li.is-current {
  background: var(--bg-card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 0 var(--hairline) inset, 0 -1px 0 var(--hairline) inset;
}
.track-list li.is-current::before {
  content: "•";
  position: absolute; left: 6px;
  color: var(--teal-deep);
  font-size: 16px; line-height: 1; top: 9px;
}
.track-list li.is-hidden { display: none; }
.track-list .dur {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ─── Main ─── */
.main {
  padding: 38px 56px 80px;
  background: var(--bg);
  min-width: 0;
}
@media (max-width: 1100px) {
  .main { padding: 32px 32px 60px; }
}

/* ─── Song header ─── */
.song-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}
.cover {
  width: 96px; height: 96px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 22px -10px rgba(26,35,50,.4);
  flex: 0 0 96px;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cover::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid #fff;
  transform: rotate(45deg);
  background: var(--ink);
  border-radius: 1px;
  pointer-events: none;
  z-index: 1;
}
.cover--has-img::after { display: none; }
.cover__letter {
  position: absolute;
  top: 8px; left: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  z-index: 1;
}

.song-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.song-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.song-title em { font-style: italic; }
.song-title .dot { color: var(--teal-deep); }

.song-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.song-meta .sep { color: var(--ink-mute); }
.song-meta strong { color: var(--ink); font-weight: 500; }

.song-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.song-info__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 2px;
}
.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform .18s ease;
  box-shadow: 0 6px 18px -8px rgba(26,35,50,.4);
  text-decoration: none;
}
.listen-btn:hover { transform: translateY(-1px); }
.listen-btn svg { width: 16px; height: 16px; }
.listen-btn--spotify {
  background: #1DB954;
  box-shadow: 0 6px 18px -8px rgba(29,185,84,.5);
}

/* ─── Lyrics ─── */
.lyrics {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 620px;
}
.lyrics .stanza { margin-bottom: 26px; }
.lyrics p {
  margin: 0 0 2px;
  position: relative;
  transition: opacity .2s ease;
}
.lyrics p.is-dimmed { opacity: 0.25; }
.lyrics p.is-match {
  background: color-mix(in oklab, var(--teal) 18%, transparent);
  border-radius: 4px;
  padding: 0 6px;
  margin-left: -6px;
}

/* ─── Annotated lines ─── */
.line-ann {
  display: inline;
  color: var(--link);
  background-image: linear-gradient(transparent calc(100% - 1.5px), var(--link-decoration) 1.5px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 1px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.line-ann:hover {
  background-color: color-mix(in oklab, var(--link) 12%, transparent);
}
.line-ann.is-active {
  background-color: color-mix(in oklab, var(--link) 18%, transparent);
}
.ann-sup {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ann-circle-bg);
  color: var(--ann-circle-fg);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: 0.35em;
  line-height: 1;
  border: 1px solid var(--hairline);
  cursor: pointer;
}

/* ─── Annotation panel ─── */
.annot {
  display: none;
}
.page.has-annotation .annot {
  display: block;
  background: var(--bg-side);
  border-left: 1px solid var(--hairline);
  padding: 38px 28px 60px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.annot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  gap: 16px;
  padding: 0 16px;
  line-height: 1.6;
}
.annot__placeholder svg {
  width: 36px; height: 36px;
  opacity: 0.25;
  flex: 0 0 36px;
}

.annot__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.annot__num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ann-circle-bg);
  color: var(--ann-circle-fg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid var(--ann-circle-fg);
  flex: 0 0 32px;
}
.annot__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}
.annot__label strong {
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.22em;
}

.annot__quote {
  background: var(--quote-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 24px;
}

.annot__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ann-circle-bg);
  color: var(--ann-circle-fg);
  border: 1px solid var(--hairline);
}

.annot__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.annot__body strong { color: var(--ink); }

/* ─── Sidebar annotations label ─── */
.sidebar__annotations-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

/* ─── Annotation panel close button (hidden on desktop, visible on tablet) ─── */
.annot__close {
  display: none;
}

/* ─── Annotation label detail (line + song name — hidden on desktop) ─── */
.annot__label-detail {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   TABLET (769px – 1200px)
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1200px) {

  /* ─── Layout : 2 colonnes fixes, pas de 3e colonne ─── */
  .page,
  .page.has-annotation {
    grid-template-columns: 220px 1fr;
  }

  /* ─── Sidebar ─── */
  .sidebar__top    { padding: 20px 16px 0; }
  .sidebar__scroll { padding: 8px 16px 40px; }
  .sidebar__brand  { font-size: 34px; }
  .sidebar__brand-sub { margin-bottom: 18px; }

  /* ─── Main ─── */
  .main { padding: 28px 32px 60px; }

  /* ─── Annotation panel : overlay flottant depuis la droite ─── */
  /* Shared properties — same specificity (0,3,0) as desktop .page.has-annotation .annot,
     but declared later so they win the cascade at this viewport width.              */
  .annot,
  .page.has-annotation .annot {
    display: block !important;
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(44%, 400px);
    background: var(--bg-side);
    border-left: 1px solid var(--hairline);
    border-radius: 16px 0 0 16px;
    box-shadow: -12px 0 48px rgba(26,35,50,.14);
    padding: 32px 24px 60px;
    overflow-y: auto;
    z-index: 50;
  }
  /* Closed state */
  .annot {
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(.4,0,.2,1), visibility 0s 300ms;
  }
  /* Open state */
  .page.has-annotation .annot {
    visibility: visible;
    transform: translateX(0);
    transition: transform 300ms cubic-bezier(.4,0,.2,1), visibility 0s;
  }

  /* ─── Close button ─── */
  .annot__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 20px; right: 20px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-section);
    border: 1px solid var(--hairline);
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-soft);
    transition: background .15s;
    z-index: 1;
    flex-shrink: 0;
  }
  .annot__close:hover { background: var(--hairline); }

  /* ─── Annotation header detail (ligne + chanson) ─── */
  .annot__label-detail { display: inline; }

  /* Padding-right on head to not overlap close button */
  .annot__head { padding-right: 44px; }

  /* ─── Backdrop : assombrit la zone paroles quand annotation ouverte ─── */
  .main::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(26,35,50,.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    z-index: 40;
  }
  .page.has-annotation .main::after {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════════════ */

/* Hidden by default on all screen sizes; shown in media query below */
.mobile-nav    { display: none; }
.mobile-drawer { display: none; }
.mobile-sheet  { display: none; }
.mobile-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,35,50,.45);
  z-index: 200;
  opacity: 0;
  transition: opacity 250ms ease;
}
@media (max-width: 768px) {
  .mobile-backdrop.is-visible {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 768px) {

  /* ─── Layout overrides ─── */
  .sidebar,
  #annot-panel { display: none !important; }
  .page {
    grid-template-columns: 1fr !important;
    padding-top: 56px;
  }
  .main { padding: 20px 16px 100px; }

  /* ─── Song header ─── */
  .song-head {
    grid-template-columns: 60px 1fr;
    gap: 12px;
    margin-bottom: 18px;
    align-items: start;
  }
  .cover { width: 60px; height: 60px; font-size: 18px; }

  /* Flatten song-info__top so its children become direct grid items of song-info */
  .song-info       { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 2px; align-items: center; }
  .song-info__top  { display: contents; }

  .song-eyebrow { grid-row: 1; grid-column: 1 / -1; }
  .song-title   { grid-row: 2; grid-column: 1; font-size: clamp(22px, 8vw, 36px); align-self: center; min-width: 0; }
  .listen-btn   {
    grid-row: 2; grid-column: 2;
    width: auto;
    font-size: 11px;
    padding: 7px 10px;
    gap: 6px;
    white-space: nowrap;
    align-self: center;
  }
  .listen-btn svg { width: 13px; height: 13px; }
  .song-meta    { grid-row: 3; grid-column: 1 / -1; margin-top: 6px; font-size: 10px; }

  /* ─── Lyrics ─── */
  .lyrics { font-size: 15px; line-height: 1.75; max-width: 100%; }
  .ann-sup { width: 18px; height: 18px; font-size: 10px; }
  .lyrics p.is-sheet-active {
    background: color-mix(in oklab, var(--teal) 18%, transparent);
    border-radius: 4px;
    padding: 0 6px;
    margin-left: -6px;
  }

  /* ─── Mobile nav ─── */
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    z-index: 100;
  }
  .mobile-nav__brand {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--ink);
  }
  .mobile-nav__brand em  { font-style: italic; }
  .mobile-nav__brand .dot { color: var(--teal-deep); }
  .mobile-nav__btn {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer;
    color: var(--ink);
    border-radius: 8px;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav__btn:active { background: var(--bg-side); }
  .mobile-nav__btn svg { width: 20px; height: 20px; }

  /* ─── Catalogue drawer ─── */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(85vw, 320px);
    background: var(--bg-side);
    border-right: 1px solid var(--hairline);
    transform: translateX(-100%);
    transition: transform 300ms cubic-bezier(.4,0,.2,1);
    z-index: 300;
    overflow: hidden;
  }
  .mobile-drawer.is-open { transform: translateX(0); }

  .mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 0;
    flex-shrink: 0;
  }
  .mobile-drawer__back {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    text-decoration: none;
    transition: color .15s;
  }
  .mobile-drawer__back:hover { color: var(--ink-soft); }
  .mobile-drawer__close {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    background: none; border: none;
    cursor: pointer; padding: 4px 0;
    transition: color .15s;
  }
  .mobile-drawer__close:hover { color: var(--ink); }

  .mobile-drawer__title-block {
    padding: 18px 16px 0;
    flex-shrink: 0;
  }
  .mobile-drawer__brand {
    display: block;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
  }
  .mobile-drawer__brand em  { font-style: italic; }
  .mobile-drawer__brand .dot { color: var(--teal-deep); }
  .mobile-drawer__catalogue-label {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: var(--ink);
  }
  .mobile-drawer__sub {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    margin: 6px 0 0;
  }

  .mobile-drawer__search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 9px 14px;
    margin: 14px 16px 6px;
    color: var(--ink-mute);
    transition: border-color .15s;
    flex-shrink: 0;
  }
  .mobile-drawer__search-wrap:focus-within { border-color: var(--teal-mid); }
  .mobile-drawer__search-wrap svg { width: 13px; height: 13px; flex: 0 0 13px; }
  .mobile-drawer__search-input {
    border: 0; background: transparent;
    font: inherit; color: var(--ink); outline: none;
    width: 100%; font-size: 12px;
  }
  .mobile-drawer__search-input::placeholder { color: var(--ink-mute); }

  .mobile-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px 40px;
  }

  /* ─── Bottom sheet ─── */
  .mobile-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(26,35,50,.18);
    transform: translateY(100%);
    transition: transform 300ms cubic-bezier(.4,0,.2,1);
    z-index: 400;
    max-height: 85svh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-sheet.is-open { transform: translateY(0); }

  .mobile-sheet__handle {
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--hairline);
    margin: 12px auto 8px;
    flex-shrink: 0;
    cursor: grab;
  }
  .mobile-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px 14px;
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
  }
  .mobile-sheet__badge {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-sheet__num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--ann-circle-bg);
    color: var(--ann-circle-fg);
    display: grid; place-items: center;
    font-family: var(--font-mono);
    font-weight: 600; font-size: 12px;
    border: 1.5px solid var(--ann-circle-fg);
    flex: 0 0 28px;
  }
  .mobile-sheet__label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--ink-mute);
    text-transform: uppercase;
  }
  .mobile-sheet__close {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--bg-section);
    border: none; cursor: pointer;
    font-size: 14px; color: var(--ink-soft);
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-sheet__close:active { background: var(--hairline); }

  .mobile-sheet__body {
    padding: 20px 20px 32px;
    overflow-y: auto;
    flex: 1;
  }
  .mobile-sheet__quote {
    background: var(--quote-bg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 14px; line-height: 1.55;
    color: var(--ink-soft);
    font-style: italic;
    margin: 0 0 20px;
  }
  .mobile-sheet__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0 0 12px;
  }
  .mobile-sheet__tags {
    display: flex; flex-wrap: wrap;
    gap: 6px; margin-bottom: 14px;
  }
  .mobile-sheet__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
  }
  .mobile-sheet__text strong { color: var(--ink); }
}
