/* Instagram-style mobile mockup. Internal preview only — not affiliated with Instagram. */
:root {
  --bg: #fff;
  --bg-dim: #fafafa;
  --text: #000;
  --text-2: #737373;
  --text-3: #8e8e8e;
  --border: #dbdbdb;
  --hairline: #efefef;
  --link: #00376b;
  --blue: #0095f6;
  --blue-tick: #0095f6;
  --heart: #ff3040;
  --btn: #000;
  --btn-text: #fff;
  --btn-2: #efefef;
  --btn-2-text: #000;
  --overlay: rgba(0, 0, 0, 0.55);
  --pill: rgba(0, 0, 0, 0.7);
  --nav-h: 49px;
  --status-h: 47px;
  --header-h: 44px;
  --safe-b: 18px;
  --phone-w: 390px;
  --phone-h: 844px;
  --radius-phone: 44px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #000;
  --bg-dim: #000;
  --text: #f5f5f5;
  --text-2: #a8a8a8;
  --text-3: #737373;
  --border: #363636;
  --hairline: #262626;
  --link: #e0f1ff;
  --btn: #f5f5f5;
  --btn-text: #000;
  --btn-2: #363636;
  --btn-2-text: #f5f5f5;
  --pill: rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #d6d6d6;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  gap: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }

.page-footer {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #666;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-footer button {
  font-size: 11px;
  color: #444;
  border: 1px solid #bbb;
  border-radius: 999px;
  padding: 3px 10px;
  background: #eee;
}
html[data-theme="dark"] body { background: #111; }
html[data-theme="dark"] .page-footer,
html[data-theme="dark"] .page-footer button { color: #aaa; border-color: #444; background: #1a1a1a; }

.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius-phone);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 11px #1c1c1c,
    0 0 0 13px #3a3a3a,
    0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

@media (max-width: 430px) {
  body { background: var(--bg); display: block; gap: 0; }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .page-footer {
    display: none;
  }
}

/* Status bar */
.status-bar {
  height: var(--status-h);
  padding: 14px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  background: var(--bg);
}
.status-bar.is-overlay {
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  color: #fff;
}
.status-time { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; width: 54px; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons svg { display: block; }

/* Headers */
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  flex-shrink: 0;
  background: var(--bg);
  position: relative;
  z-index: 15;
}
.app-header .left, .app-header .right, .app-header .center {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-header .center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 600;
}
.handle-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.handle {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1;
}
.chevron-down { display: block; opacity: 0.9; }
.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--text);
}
.icon-btn svg { display: block; }
.wordmark {
  font-family: "Snell Roundhand", "Segoe Script", "Apple Chancery", "Brush Script MT", cursive;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.4px;
  padding-top: 4px;
  line-height: 1;
}

.verified {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -2px;
}
.verified-lg { width: 16px; height: 16px; }

/* App body + nav */
.app-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  background: var(--bg);
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.app-body.no-scroll { overflow: hidden; }

.bottom-nav {
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  border-top: 0.5px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}
.bottom-nav.is-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.18) 70%, transparent);
  border-top: 0;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  color: #fff;
}
.bottom-nav.is-overlay,
.bottom-nav.is-overlay .nav-btn,
.bottom-nav.is-overlay .icon-btn {
  color: #fff !important;
}
.bottom-nav.is-overlay svg {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}
.nav-btn {
  flex: 1;
  display: grid;
  place-items: center;
  color: inherit;
  position: relative;
}
.nav-btn .nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px transparent;
}
.nav-btn.is-active .nav-avatar { box-shadow: 0 0 0 1.5px currentColor; }
.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  border-radius: 100px;
  background: var(--text);
  opacity: 0.9;
  pointer-events: none;
}
.bottom-nav.is-overlay .home-indicator { background: #fff; }

.in-phone-note {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
  font-size: 8px;
  line-height: 1;
  color: var(--text-3);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.bottom-nav.is-overlay .in-phone-note { color: rgba(255,255,255,0.72); }

/* Profile — compact 2026 header: name + condensed stats beside the avatar */
.profile-top {
  display: flex;
  align-items: flex-start;
  padding: 8px 16px 10px 16px;
  gap: 16px;
}
.avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  margin-right: 0;
  margin-top: 2px;
}
.story-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 180deg, #f9ce34, #ee2a7b, #6228d7, #ee2a7b, #f9ce34);
}
.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: var(--bg);
}
.story-ring-inner img,
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-id {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 10px;
  gap: 8px;
}
.stat { display: flex; flex-direction: column; gap: 0; flex: 1; }
.stat-num { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.stat-label { font-size: 12px; }
.stat-mock {
  font-size: 9px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-meta { padding: 0 16px 12px; }
.profile-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}
.profile-category { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.profile-bio { font-size: 14px; line-height: 1.3; margin-top: 2px; white-space: pre-wrap; }
.profile-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.profile-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}
.ig-btn {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.ig-btn.primary { background: var(--btn); color: var(--btn-text); }
.ig-btn.secondary { background: var(--btn-2); color: var(--btn-2-text); }
.ig-btn.following { background: var(--btn-2); color: var(--btn-2-text); }
.ig-btn.icon {
  flex: 0 0 32px;
  width: 32px;
  padding: 0;
}

/* Highlights */
.highlights {
  display: flex;
  gap: 16px;
  padding: 8px 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.highlights::-webkit-scrollbar { display: none; }
.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  width: 64px;
}
.highlight-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.highlight-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.highlight span {
  font-size: 12px;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tabs + grid */
.profile-tabs {
  display: flex;
  border-top: 0.5px solid var(--border);
  height: 48px;
}
.profile-tab {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--text-3);
  position: relative;
}
.profile-tab.is-active { color: var(--text); }
.profile-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--bg);
}
.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #222;
  overflow: hidden;
  padding: 0;
  color: inherit;
  display: block;
}
.tile img, .tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile.is-placeholder {
  background: #c8c8c8;
  cursor: default;
}
html[data-theme="dark"] .tile.is-placeholder { background: #1a1a1a; }
.tile-icon {
  position: absolute;
  top: 7px;
  right: 7px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
  z-index: 2;
}
.grid.reels-grid .tile { aspect-ratio: 9 / 16; }
.empty-tab {
  padding: 48px 32px;
  text-align: center;
  color: var(--text-2);
}
.empty-tab h3 { margin: 12px 0 6px; font-size: 22px; color: var(--text); font-weight: 700; }
.empty-tab p { margin: 0; font-size: 14px; line-height: 1.4; }

/* Post view */
.post-view { display: flex; flex-direction: column; min-height: 100%; }
.post-header-row {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 10px;
  gap: 10px;
}
.post-header-row .who {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.post-header-row .header-spacer { flex: 1; }
.post-header-row .who .name-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.post-header-row .who .sub {
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow-text {
  flex-shrink: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  padding: 0 4px 0 8px;
  line-height: 1;
}
.follow-text.is-following { color: var(--text-2); font-weight: 600; }
.follow-dot {
  color: var(--text-2);
  font-weight: 600;
  margin: 0 2px 0 6px;
}
.avatar-32, .avatar-24 {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-32 { width: 32px; height: 32px; }
.avatar-24 { width: 24px; height: 24px; }

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #000;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.32, 1);
  will-change: transform;
}
.carousel.is-dragging .carousel-track { transition: none; }
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}
.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: var(--pill);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.mute-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pill);
  color: #fff;
  display: grid;
  place-items: center;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #111;
  display: none;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
@media (hover: hover) and (pointer: fine) {
  .carousel:hover .carousel-arrow { display: grid; }
  .carousel-arrow.is-hidden { display: none !important; }
}
.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 10px;
  margin-top: -2px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dbdbdb;
}
html[data-theme="dark"] .dot { background: #363636; }
.dot.is-on { background: var(--blue); }

.actions.has-dots {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
}
.actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}
.actions-right {
  display: flex;
  justify-content: flex-end;
}
.actions.has-dots .dots {
  margin: 0;
  height: auto;
  pointer-events: none;
}

.heart-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 5;
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  pointer-events: none;
  opacity: 0;
}
.heart-burst.is-pop {
  animation: heartPop 0.85s ease-out forwards;
}
@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}

.actions {
  display: flex;
  align-items: center;
  padding: 2px 10px 0 10px;
  gap: 14px;
  min-height: 44px;
}
.actions .spacer { flex: 1; }
.action-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--text);
}
.action-btn.is-liked { color: var(--heart); }
.action-btn.is-saved { color: var(--text); }

.likes-line {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
}
.likes-line .stat-mock { margin-left: 6px; }
.caption-block { padding: 4px 16px 0; font-size: 14px; line-height: 1.35; }
.caption-block .who { display: inline; font-weight: 600; margin-right: 4px; white-space: nowrap; }
.caption-block .who .verified { margin: 0 2px 0 1px; }
.caption-block .who { font-weight: 600; margin-right: 4px; }
.caption-block .more, .view-comments, .timestamp {
  color: var(--text-2);
  font-weight: 400;
}
.caption-block.is-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.view-comments {
  display: block;
  padding: 4px 16px 0;
  font-size: 14px;
  text-align: left;
}
.timestamp {
  display: block;
  padding: 4px 16px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* Feed (home) */
.feed-post { border-bottom: 0.5px solid var(--hairline); padding-bottom: 4px; }
.feed-end { padding: 28px 16px 40px; text-align: center; color: var(--text-3); font-size: 12px; }

/* Search */
.search-head { padding: 8px 16px 10px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--btn-2);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 16px;
}
.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--text);
}
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }

/* Create placeholder */
.create-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  gap: 8px;
  color: var(--text-2);
}
.create-screen h2 { margin: 0; color: var(--text); font-size: 22px; }
.create-screen p { margin: 0; font-size: 14px; line-height: 1.4; max-width: 260px; }

/* Reels */
.reels-stage {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.reels-track {
  height: 100%;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.32, 1);
}
.reels-track.is-drag { transition: none; }
.reel {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.reel video, .reel .reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.reel-shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.2) 45%, transparent);
  pointer-events: none;
}
.reel-side {
  position: absolute;
  right: 8px;
  bottom: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 4;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.reel-side .side-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; }
.reel-side .side-btn span { font-size: 12px; font-weight: 500; }
.reel-side .side-btn.is-liked { color: var(--heart); }
.reel-avatar-btn { position: relative; }
.reel-avatar-btn img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #fff;
  object-fit: cover;
}
.reel-follow-plus {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff3040;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 0 0 1px #000;
}
.audio-disc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px #111, 0 0 0 3px #555;
  animation: spin 5s linear infinite;
  animation-play-state: paused;
}
.audio-disc.is-on { animation-play-state: running; }
.audio-disc img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }

.reel-meta {
  position: absolute;
  left: 14px;
  right: 64px;
  bottom: 86px;
  z-index: 4;
}
.reel-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.reel-user .nm {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.reel-follow {
  margin-left: 6px;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.reel-caption { font-size: 14px; line-height: 1.35; max-width: 100%; }
.reel-audio {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.95;
  min-width: 0;
}
.ticker {
  overflow: hidden;
  white-space: nowrap;
  max-width: 180px;
  mask-image: linear-gradient(to right, #000 80%, transparent);
}
.ticker span {
  display: inline-block;
  padding-right: 24px;
  animation: ticker 12s linear infinite;
}
@keyframes ticker {
  0%, 18% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Story */
.story-stage {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 40;
}
.story-progress {
  position: absolute;
  top: calc(var(--status-h) + 4px);
  left: 8px; right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.story-progress i {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
}
.story-progress i b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.story-progress i.is-done b { width: 100%; }
.story-progress i.is-on b { width: 100%; animation: storyFill 4s linear forwards; }
@keyframes storyFill { from { width: 0; } to { width: 100%; } }
.story-stage img.story-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.story-user {
  position: absolute;
  top: calc(var(--status-h) + 16px);
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  font-size: 14px;
  font-weight: 600;
}
.story-close {
  position: absolute;
  top: calc(var(--status-h) + 12px);
  right: 10px;
  z-index: 3;
  color: #fff;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

/* Menu sheet */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 50;
  display: flex;
  align-items: flex-end;
}
.sheet {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border-radius: 16px 16px 0 0;
  padding: 8px 0 calc(var(--safe-b) + 8px);
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin: 6px auto 10px;
}
.sheet-item {
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-item.muted { color: var(--text-3); font-size: 12px; }

/* Comments sheet (simple) */
.comment-list { padding: 8px 16px 16px; font-size: 14px; color: var(--text-2); }
