:root {
  --level: 0;                 /* live audio amplitude 0..1, set from JS */
  --glow: #6f86c9;            /* calm technical orb colour */

  --paper: #f5f4f0;           /* warm grey page (sauna dashboard) — pale */
  --panel: #ffffff;           /* cards */
  --ink: #1a1a18;
  --muted: #76756e;
  --line: #e7e5dd;
  --field: #f7f6f2;

  /* Sauna mint CTA */
  --mint: #9ee7ac;
  --mint-dk: #8adb9a;
  --mint-ink: #0f3b21;

  --green: #1f9d5b;           /* small accents (transcript label) */

  --shadow-card: 0 1px 2px rgba(26, 26, 24, 0.04), 0 10px 30px rgba(26, 26, 24, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  color: var(--ink);
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  min-height: 100dvh;
  /* warm grey base with a soft sauna-green ambiance */
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(118, 196, 146, 0.13), transparent 58%),
    radial-gradient(820px 520px at 108% 116%, rgba(118, 196, 146, 0.09), transparent 55%),
    var(--paper);
  background-attachment: fixed;
}

/* ── App shell: full-bleed three columns ─────────────────── */
.app {
  display: grid;
  grid-template-columns: 384px minmax(0, 1fr) 384px;
  gap: 10px;
  height: 100dvh;
  width: 100%;
  padding: 10px;
}
/* every column is full-height; side rails are rounded white cards, middle is transparent */
.sidebar, .center, .readout { min-height: 0; height: 100%; }

/* ── Left rail: brand + controls + CTA (rounded white card) ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 70px; --fill-0: var(--ink); }
.brand__logo svg { display: block; width: 100%; height: auto; }
.brand__tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* Mobile-only chrome — styled in the phone media query at the bottom */
.mobilebar { display: none; }
.sidebar__close { display: none; }

/* ── Controls (stacked) — generous gaps so each section reads as its own ── */
.controls { display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.field select, .field input[type="text"], .controls textarea {
  font-family: "Roboto", sans-serif;
  font-size: 14px; color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  width: 100%;
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376756e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.controls textarea {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 13px; line-height: 1.5; resize: vertical; min-height: 132px;
}
.field select:focus, .field input:focus, .controls textarea:focus {
  outline: none; border-color: var(--glow);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 22%, transparent);
}
.props__hint { font-size: 12px; color: var(--muted); min-height: 16px; margin-top: 8px; }

/* dice-shuffle input */
.input-dice { display: flex; gap: 8px; }
.input-dice input { flex: 1 1 auto; }
.dice {
  flex: 0 0 auto; cursor: pointer;
  width: 40px; display: grid; place-items: center;
  background: var(--field); color: var(--muted);
  border: 1px solid var(--line); border-radius: 11px;
  transition: color 0.14s ease, border-color 0.14s ease, transform 0.3s ease, background 0.14s ease;
}
.dice svg { width: 18px; height: 18px; }
.dice:hover { color: var(--ink); border-color: #cfcdc4; background: #efeee9; }
.dice:active { transform: rotate(180deg); }

/* voice avatar grid (character select, rounded squares, avatars only) */
.voices { display: grid; grid-template-columns: repeat(6, 42px); gap: 9px; }
.voice {
  cursor: pointer; font-family: inherit;
  display: block; background: none; border: none; padding: 0; border-radius: 10px;
}
.voice__av {
  display: block; width: 42px; height: 42px; border-radius: 10px;
  background: var(--field);
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.14s ease, transform 0.14s ease;
}
.voice:hover .voice__av { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,26,24,0.16); }
.voice.is-active .voice__av { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--green); }

/* system-prompt "edited" badge (sits next to the field label) */
.sysprompt__edited {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent);
  padding: 2px 7px; border-radius: 999px; margin-left: 6px; text-transform: none;
}

/* mode cards (selectable list with leading icon) */
.cards { display: flex; flex-direction: column; gap: 7px; }
.card {
  font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  text-align: left; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px;
  display: flex; align-items: center; gap: 11px;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.card__icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.card:hover { border-color: #cfcdc4; background: #efeee9; }
.card.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.is-active .card__icon { color: #fff; }

/* custom mode/tone free-text input */
.custom-input {
  margin-top: 8px;
  font-family: "Roboto", sans-serif; font-size: 14px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px; width: 100%;
}
.custom-input:focus {
  outline: none; border-color: var(--glow);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 22%, transparent);
}

/* chip groups (used in the Advanced tuning panel) */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
  color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.chip:hover { border-color: #cfcdc4; background: #efeee9; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* collapsible disclosure (Advanced tuning panel) */
.sysprompt { border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.sysprompt__summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.sysprompt__summary::-webkit-details-marker { display: none; }
.sysprompt__summary::after {
  content: "▸"; margin-left: auto; font-size: 11px; color: var(--muted);
  transition: transform 0.15s ease;
}
.sysprompt[open] .sysprompt__summary::after { transform: rotate(90deg); }

/* ── Advanced tuning panel ───────────────────────────────── */
.tune__body { display: flex; flex-direction: column; padding: 4px 14px 14px; }
/* each setting is its own divided block, with room to breathe */
.tune__body > .field, .tune__body > .toggle {
  padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line);
}
.tune__body > .field:first-child, .tune__body > .toggle:first-child {
  padding-top: 6px; margin-top: 0; border-top: none;
}
.field__note {
  font-size: 10px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted); text-transform: none; font-family: "Roboto Mono", monospace;
}
/* sentence-case labels — the uppercase + wide tracking made these wrap */
.tune__body .field > label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600;
  color: var(--ink);
}
/* extra labels inside one field (the Server-VAD sliders) get their own spacing */
.tune__body .field > label ~ label { margin-top: 14px; }
.tune__body output {
  font-family: "Roboto Mono", monospace; font-size: 11.5px;
  color: var(--muted); text-transform: none; letter-spacing: 0; white-space: nowrap;
}
/* tighter chips so the option rows read as neat groups */
.tune__body .chip { font-size: 12px; padding: 6px 11px; }
/* range sliders */
.tune__body input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--line); border-radius: 999px; cursor: pointer; margin: 2px 0;
}
.tune__body input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--glow); border: 2px solid var(--panel);
  box-shadow: 0 1px 3px rgba(26, 26, 24, 0.25);
}
.tune__body input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--glow); border: 2px solid var(--panel);
  box-shadow: 0 1px 3px rgba(26, 26, 24, 0.25);
}
.tune__body input[type="number"] { width: 100%; }
/* toggle switch */
.toggle {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 12.5px; color: var(--ink);
}
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle__track {
  flex: 0 0 auto; position: relative; width: 36px; height: 20px;
  background: var(--line); border-radius: 999px;
  transition: background 0.15s ease;
}
.toggle__dot {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--panel); border-radius: 50%;
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.25);
  transition: transform 0.15s ease;
}
.toggle input:checked + .toggle__track { background: var(--glow); }
.toggle input:checked + .toggle__track .toggle__dot { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__track {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 22%, transparent);
}
.toggle__label { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }

/* ── Sauna pitch + CTA ───────────────────────────────────── */
/* Sauna pitch + CTA — a rounded card inset at the bottom of the right column */
.pitch {
  flex: 0 0 auto;
  margin: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--mint) 12%, var(--panel));
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pitch__copy { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.pitch__copy strong { color: var(--ink); font-weight: 700; }
.cta {
  display: flex; align-items: center; justify-content: center;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 59, 33, 0.12), 0 8px 22px rgba(118, 196, 146, 0.32);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
  background: var(--mint-dk);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 59, 33, 0.14), 0 12px 28px rgba(118, 196, 146, 0.4);
}
/* CTA row: full-width CTA on desktop (share button is mobile-only) */
.cta-row { display: flex; gap: 10px; align-items: stretch; }
.cta-row .cta { flex: 1 1 auto; }
.share-btn { display: none; }
.share-backdrop { display: none; }

/* ── Middle: orb stage + share sheet (transparent) ───────── */
.center {
  position: relative;             /* anchor the pinned share sheet */
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 40px);
  overflow-y: auto;
}

/* stage fills the whole column so the orb is dead-centered; the share sheet is
   taken out of flow and pinned to the bottom, so it doesn't shift the centre. */
.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: transparent;
  min-height: 0;
}

/* ── Orb ──────────────────────────────────────────────────
   The orb (geometry, morph/float, audio-reactivity, label, hover) is the shared
   component at /orb.css (packages/orb/orb.css). This is the deliberately
   "technical" fork: a bigger frame nudged up-left, a smaller blob, a calm
   single-tint glow, no drifting sheens, a frozen (non-pulsing) halo, and a
   steady (non-breathing) label. We set those via the orb's variables, then the
   always-listening speaker choreography below. */
:root {
  /* Geometry */
  --orb-float-size: 230px;
  --orb-float-margin: 0 44px 72px 0;   /* nudge the orb up and a little left */
  --orb-bob: -12px;
  --orb-size: 156px;
  --orb-glow-size: 300px;
  --orb-glow-blur: 34px;

  /* Audio reactivity — most subdued of the three */
  --orb-level-scale: 0.5;
  --orb-glow-level: 0.45;
  --orb-glow-op-base: 0.72;
  --orb-glow-op-gain: 0.28;

  /* Starts full; per-speaker sizes set --birth below */
  --orb-birth: 1;

  /* Calm single-tint surface/halo derived from --glow (#6f86c9, set above) */
  --orb-surface: radial-gradient(circle at 34% 28%, #ffffff 0%,
    color-mix(in srgb, var(--glow) 10%, #ffffff) 24%,
    color-mix(in srgb, var(--glow) 48%, #ffffff) 52%,
    var(--glow) 84%,
    color-mix(in srgb, var(--glow) 78%, #000) 100%);
  --orb-shadow:
    inset 0 0 36px rgba(255, 255, 255, 0.6),
    inset -12px -16px 44px color-mix(in srgb, var(--glow) 42%, #000),
    0 0 calc(30px + var(--level) * 80px) color-mix(in srgb, var(--glow) 45%, transparent);
  --orb-glow-bg: radial-gradient(circle,
    color-mix(in srgb, var(--glow) 60%, transparent),
    color-mix(in srgb, var(--glow) 26%, transparent) 42%, transparent 70%);
  --orb-glow-anim: none;               /* technical: no breathing halo */
  --orb-sheen-1: none;                 /* no drifting surface sheens */
  --orb-sheen-2: none;

  /* Steady label (no breathe) */
  --orb-label-color: var(--ink);
  --orb-label-size: 19px;
  --orb-label-weight: 700;
  --orb-label-line: 1.1;
  --orb-label-spacing: 0.02em;
  --orb-label-shadow: 0 1px 10px rgba(255, 255, 255, 0.9), 0 0 2px rgba(255, 255, 255, 0.9);
  --orb-label-anim: none;
}
/* ── Orb states: distinct size + colour per speaker ──────── */
/* First tap → drop small + desaturated to "thinking" until the model's first
   word (data-state connecting, then call before is-open). Snap fast and shrink
   hard, matching the sibling apps; higher specificity than the speaker rules so
   it holds through the pre-first-word window. */
body[data-state="connecting"] .orb-core,
body[data-state="call"]:not(.is-open) .orb-core {
  --birth: 0.42;
  filter: saturate(0.3) brightness(1.04);
  transition: transform 0.28s ease-out, filter 0.28s ease-out;
}
/* listening (in call, no one speaking): calm, near full size */
body[data-speaker="listening"] .orb-core { --birth: 0.98; filter: saturate(0.8); }
/* thinking: small + desaturated */
body[data-speaker="thinking"]  .orb-core { --birth: 0.74; filter: saturate(0.22) brightness(1.08); }
/* model talking: big + vibrant (pulses with the voice via --level) */
body[data-speaker="model"]     .orb-core { --birth: 1.2;  filter: saturate(1.25) brightness(1.05); }
/* user talking: big + shifted to a distinct (green) hue */
body[data-speaker="user"]      .orb-core { --birth: 1.1;  filter: hue-rotate(-105deg) saturate(1.2); }
/* paused: shrunk + greyed */
body.is-paused .orb-core { --birth: 0.88; filter: saturate(0.35) brightness(0.98); }
body.is-paused .orb-label { opacity: 1; }
body[data-state="error"] .orb-core { filter: grayscale(0.55); }

.status { font-size: 13.5px; color: var(--muted); text-align: center; min-height: 0; }
.status:empty { display: none; }

/* ── Share sheet (transparent, pinned to the column's bottom edge) ─ */
.sharesheet {
  position: absolute; left: 0; right: 0; bottom: 48px;
  background: transparent;
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.sharesheet__title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}
.sharesheet__targets { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.target {
  flex: 0 0 auto; cursor: pointer;
  background: none; border: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: inherit;
}
.target__icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(26, 26, 24, 0.12);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.target__icon svg { width: 15px; height: 15px; }
.target:hover .target__icon { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(26, 26, 24, 0.2); }
.target__label { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ── Right column: transcript (rounded white card) ───────── */
.readout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 0;
}
.readout__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.readout__title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.readout__model { font-family: "Roboto Mono", monospace; font-size: 11px; color: var(--muted); }
.transcript {
  flex: 1 1 auto; overflow-y: auto;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
}
.transcript__empty {
  margin: auto;                 /* centers in the flex column when it's the only child */
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; color: #a8a69d;
}
.transcript__icon { width: 40px; height: 40px; color: #c8c6bd; }
.transcript__empty p { font-size: 13.5px; line-height: 1.55; }
.turn { display: flex; flex-direction: column; gap: 3px; }
.turn__who {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.turn--user .turn__who { color: var(--glow); }
.turn--model .turn__who { color: var(--green); }
.turn__text { font-size: 14.5px; line-height: 1.55; color: #2c2b27; white-space: pre-wrap; }

/* ── Responsive ──────────────────────────────────────────── */
/* Tablet (769–1080px): two columns — rail + orb side by side, transcript below */
@media (max-width: 1080px) and (min-width: 769px) {
  .app { display: flex; flex-direction: row; flex-wrap: wrap; height: auto; min-height: 100dvh; }
  .sidebar { flex: 1 1 320px; height: auto; overflow: visible; }
  .center { flex: 2 1 360px; }
  .readout { flex: 1 1 100%; height: auto; min-height: 320px; max-height: 60vh; }
}
/* Phone (≤768px): the orb IS the screen. Share sheet + CTA pin to the bottom;
   all controls live in a full-screen Setup slide-over; no transcript. */
@media (max-width: 768px) {
  .app { display: flex; flex-direction: column; height: 100dvh; width: 100%; overflow: hidden; padding: 0; gap: 0; }

  /* top bar: wordmark + Setup trigger */
  .mobilebar {
    display: flex; align-items: center; justify-content: space-between;
    flex: 0 0 auto; padding: 14px 16px;
    background: var(--panel); border-bottom: 1px solid var(--line);
  }
  .brand--mobile .brand__tag { font-size: 13px; color: var(--ink); font-weight: 700; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
    background: var(--field); border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 14px 8px 12px; cursor: pointer;
  }
  .menu-btn svg { width: 17px; height: 17px; }

  /* controls become a full-screen off-canvas panel */
  .sidebar {
    position: fixed; inset: 0; z-index: 60;
    width: 100%; height: 100dvh; max-width: none;
    transform: translateX(100%); transition: transform 0.28s ease;
    border: none; border-radius: 0;
    padding: 20px 20px calc(env(safe-area-inset-bottom) + 24px);
    overflow-y: auto;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar__close {
    display: inline-flex; position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 38px; height: 38px; align-items: center; justify-content: center;
    border-radius: 999px; background: var(--field); border: 1px solid var(--line);
    color: var(--ink); cursor: pointer;
  }
  .sidebar__close svg { width: 18px; height: 18px; }

  /* orb hero fills the space (the inline share row becomes a popup, below) */
  .center { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 10px 16px; overflow-y: auto; }
  .stage { flex: 1 1 auto; min-height: 200px; }
  .orb-float { width: 188px; height: 188px; margin: 0; }  /* reset desktop nudge → centered */
  .orb { width: 128px; height: 128px; }
  .orb-glow { width: 188px; height: 188px; }

  /* transcript hidden; readout keeps the FULL CTA card (text + button) */
  .readout { flex: 0 0 auto; height: auto; min-height: 0; max-height: none; border: none; background: transparent; box-shadow: none; overflow: visible; }
  .readout__head, .transcript { display: none; }
  .pitch { border-top: 1px solid var(--line); padding: 14px 16px calc(env(safe-area-inset-bottom) + 14px); gap: 10px; }
  .pitch__copy { display: block; font-size: 12.5px; line-height: 1.5; }

  /* share icon sits next to the CTA; taps open the sheet */
  .share-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 50px; border-radius: 999px; cursor: pointer;
    background: var(--field); border: 1px solid var(--line); color: var(--ink);
  }
  .share-btn svg { width: 20px; height: 20px; }

  /* the share sheet becomes a bottom-sheet popup */
  .sharesheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    transform: translateY(110%); transition: transform 0.28s ease;
    background: var(--panel); border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(26, 26, 24, 0.18);
    padding: 18px 18px calc(env(safe-area-inset-bottom) + 20px); gap: 16px;
  }
  body.share-open .sharesheet { transform: translateY(0); }
  .sharesheet__targets { gap: 10px; justify-content: space-between; }
  .target__icon { width: 44px; height: 44px; }

  .share-backdrop {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(26, 26, 24, 0.42); opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
  }
  body.share-open .share-backdrop { opacity: 1; pointer-events: auto; }
  body.share-open, body.menu-open { overflow: hidden; }
}
