  /* ---------- Post cards ---------- */
  .post-feed { display: flex; flex-direction: column; gap: 2.1rem; padding-bottom: 1rem; }
  .post-card-large {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-card);
  }
  .post-media {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 0.9rem; color: rgba(255,255,255,0.95);
  }
  .post-media .type-chip {
    position: absolute; top: 0.75rem; left: 0.75rem;
    background: rgba(var(--scrim-rgb), 0.5); color: #fff; font-size: 0.66rem; font-weight: 600;
    padding: 0.2rem 0.55rem; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
  }
  .post-media .media-cap { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-shadow: 0 1px 6px rgba(var(--scrim-rgb), 0.45); }
  .post-video, .pd-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .post-media.locked::after {
    content: ''; position: absolute; inset: 0; backdrop-filter: blur(16px);
    background: rgba(var(--scrim-rgb), 0.55);
  }
  .lock-badge {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
    color: #fff; width: 100%; margin: auto;
  }
  .lock-badge .lock-icon { font-size: 1.6rem; }
  .icon-svg { vertical-align: -0.15em; display: inline-block; }
  .post-body { padding: 1.2rem 1.3rem 1.35rem; }
  .post-byline { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.85rem; cursor: pointer; }
  .avatar {
    flex-shrink: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.95rem;
  }
  .avatar.sm { width: 2.05rem; height: 2.05rem; font-size: 0.95rem; }
  .avatar.md { width: 2.9rem; height: 2.9rem; font-size: 1.3rem; }
  .avatar.lg { width: 5.2rem; height: 5.2rem; font-size: 2.1rem; border: 3px solid var(--bg-deep); }
  .byline-name { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.3rem; }
  .verified-tick { color: var(--accent); font-size: 0.82rem; }
  .byline-cat { font-size: 0.76rem; color: var(--muted); }
  .post-title { font-size: 1.28rem; margin: 0 0 0.4rem; line-height: 1.32; }
  .post-excerpt { margin: 0 0 1.05rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
  .post-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
  .engagement { display: flex; gap: 0.85rem; color: var(--muted); font-size: 0.78rem; }
  .engagement span { display: inline-flex; align-items: center; gap: 0.28rem; }

  .btn {
    border: none; border-radius: 999px; padding: 0.55rem 1.05rem; font-weight: 600; font-size: 0.84rem;
    cursor: pointer; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }
  .btn-primary { background: var(--ink); color: var(--bg-deep); box-shadow: 0 4px 14px rgba(var(--scrim-rgb), 0.22); }
  .btn-warm { background: var(--warm); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--warm) 45%, transparent); }
  .btn-primary:hover, .btn-warm:hover { transform: translateY(-1px); }
  .btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
  .btn-ghost:hover { border-color: var(--accent); }
  .btn-subtle { background: var(--selected-bg); color: var(--accent); }
  .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
  .btn.full { width: 100%; text-align: center; display: block; }
  .btn.lg { padding: 0.78rem 1.35rem; font-size: 0.92rem; }

  /* Skeletons */
  .skeleton-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
  .sk-media { width: 100%; aspect-ratio: 16/9; }
  .sk-line { height: 0.8rem; border-radius: 5px; margin: 0.85rem 1.3rem 0; }
  .sk-line.w60 { width: 60%; } .sk-line.w90 { width: 90%; } .sk-line.w40 { width: 40%; margin-bottom: 1.3rem; }
  .sk-media, .sk-line {
    background: linear-gradient(90deg, var(--border) 25%, var(--selected-bg) 37%, var(--border) 63%);
    background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
  }
  @keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

  /* Categories grid */
  .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 2rem; }
  @media (max-width: 399px) { .cat-grid, .creator-grid { grid-template-columns: repeat(2, 1fr); } }
  .cat-card {
    position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
    aspect-ratio: 4 / 5; border: 1px solid var(--border); display: flex; align-items: flex-end;
    box-shadow: var(--shadow-card);
  }
  .cat-card .cat-label {
    position: relative; z-index: 2; width: 100%; padding: 0.75rem 0.8rem 0.7rem;
    background: linear-gradient(0deg, rgba(var(--scrim-rgb), 0.7), transparent 90%); color: #fff;
  }
  .cat-card .cat-label strong { display: block; font-family: var(--serif); font-size: 0.98rem; }
  .cat-card .cat-label span { font-size: 0.7rem; opacity: 0.88; }
  .cat-card .cat-age-badge {
    position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.66rem; font-weight: 700;
    padding: 0.15rem 0.45rem; border-radius: 999px; background: rgba(var(--scrim-rgb), 0.6); color: #fff;
    letter-spacing: 0.02em;
  }

  /* Creator grid */
  .creator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; padding-bottom: 2rem; }
  @media (max-width: 720px) { .creator-grid { grid-template-columns: repeat(2, 1fr); } }
  .creator-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
  .creator-card .cc-cover { position: relative; width: 100%; aspect-ratio: 3 / 2; }
  .creator-card .cc-avatar { position: absolute; left: 0.75rem; bottom: -1.05rem; }
  .creator-card .cc-body { padding: 1.4rem 0.85rem 0.85rem; }
  .creator-card .cc-name { font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 0.3rem; }
  .creator-card .cc-cat { font-size: 0.73rem; color: var(--muted); margin: 0.15rem 0 0.5rem; }
  .creator-card .cc-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; }
  .price-tag { font-weight: 700; color: var(--warm); }

  .badge-verify { font-size: 0.66rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
  .badge-verify.approved { color: var(--accent); background: var(--selected-bg); }
  .badge-verify.pending { color: var(--gold-ink); background: var(--gold-bg); }
  .badge-verify.rejected { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }

  .rating { color: var(--muted); font-size: 0.76rem; letter-spacing: 0.02em; }
  .rating .stars { color: var(--gold-brand); letter-spacing: 0.05em; }
  .rating .illustrative-tag { font-size: 0.64rem; color: var(--muted); font-style: italic; margin-left: 0.15rem; }

  .why-recommended {
    font-size: 0.84rem; color: var(--muted); font-style: italic; margin: 0 0 1.5rem;
    padding: 0.7rem 0.9rem; border-left: 3px solid var(--aqua); background: var(--selected-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 640px;
  }

  /* Moments rail (Travel) */
  .moments-rail { display: flex; gap: 0.9rem; overflow-x: auto; padding: 0.2rem 0 1.6rem; scrollbar-width: none; }
  .moments-rail::-webkit-scrollbar { display: none; }
  .moment-card {
    flex: 0 0 auto; width: 68%; max-width: 260px; aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden;
    position: relative; display: flex; align-items: flex-end; border: 1px solid var(--border); box-shadow: var(--shadow-card);
  }
  .moment-card .m-tag {
    position: absolute; top: 0.7rem; left: 0.7rem; background: rgba(var(--scrim-rgb), 0.5); color: #fff;
    font-size: 0.65rem; padding: 0.2rem 0.55rem; border-radius: 999px; letter-spacing: 0.04em;
  }
  .moment-card .m-body { position: relative; z-index: 2; padding: 1rem; color: #fff; background: linear-gradient(0deg, rgba(var(--scrim-rgb), 0.72), transparent 85%); width: 100%; }
  .moment-card .m-body strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
  .moment-card .m-body span { font-size: 0.74rem; opacity: 0.9; }

  /* Empty state */
  .empty-state { text-align: center; padding: 3rem 1rem 4.5rem; max-width: 380px; margin: 0 auto; }
  .empty-state .mascot-wrap { width: 220px; max-width: 100%; margin: 0 auto 1.5rem; }
  .empty-state h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
  .empty-state p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0 0 1.5rem; }

  /* Overlays */
  .overlay {
    position: fixed; inset: 0; background: var(--bg); z-index: 100;
    transform: translateY(100%); transition: transform 0.28s ease; overflow-y: auto;
  }
  .overlay.open { transform: translateY(0); }
  .overlay-topbar {
    position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
    padding: 0.65rem 1rem; background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  }
  .close-btn { width: 2.1rem; height: 2.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card-bg); cursor: pointer; font-size: 1rem; color: var(--text); }

  /* Creator profile */
  .cp-cover { width: 100%; aspect-ratio: 21 / 9; min-height: 130px; position: relative; }
  .cp-header { padding: 0 1.25rem; margin-top: -2.5rem; position: relative; }
  .cp-name-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.65rem; }
  .cp-name { font-size: 1.45rem; margin: 0 0 0.15rem; display: flex; align-items: center; gap: 0.4rem; }
  .cp-handle { color: var(--muted); font-size: 0.83rem; }
  .cp-stats { display: flex; gap: 1.3rem; margin: 0.95rem 0 0.25rem; flex-wrap: wrap; }
  .cp-stat strong { display: block; font-size: 1.02rem; }
  .cp-stat span { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
  .cp-cats { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.85rem 0; }
  .chip { font-size: 0.74rem; padding: 0.28rem 0.68rem; border-radius: 999px; background: var(--selected-bg); color: var(--accent); font-weight: 600; }
  .cp-bio { color: var(--text); font-size: 0.9rem; line-height: 1.6; max-width: 620px; margin: 0.6rem 0 1.35rem; }
  .cp-subscribe-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
  .cp-price { font-size: 0.83rem; color: var(--muted); }
  .cp-price strong { color: var(--text); font-size: 1.02rem; }
  /* BIM-124: author page inside the .container; nickname/avatar open it. */
  #view-creator .cp-cover { border-radius: var(--radius-sm); margin-top: 0.6rem; }
  #view-creator .cp-header { padding: 0 0.5rem; }
  #view-creator .cp-handle { margin: 0; }
  [data-open-creator] { cursor: pointer; }
  [data-open-creator]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
  .avatar[data-open-creator]:focus-visible { border-radius: 50%; }
  .avatar[data-open-creator]:hover { filter: brightness(1.08); }
  #creatorFollowBtn { min-height: 44px; min-width: 6.4rem; }
  .byline-name[data-open-creator]:hover, .list-row-name[data-open-creator]:hover, .cc-name[data-open-creator]:hover { text-decoration: underline; }

  .subtabs { display: flex; gap: 1.4rem; border-bottom: 1px solid var(--border); padding: 0 1.25rem; margin-bottom: 1.4rem; }
  .subtab { background: none; border: none; cursor: pointer; color: var(--muted); font-weight: 600; padding: 0.6rem 0.1rem; border-bottom: 2px solid transparent; font-size: 0.86rem; }
  .subtab.active { color: var(--text); border-color: var(--accent); }
  .subtab-panel { display: none; padding: 0 1.25rem 3rem; }
  .subtab-panel.active { display: block; }

  .thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
  @media (max-width: 480px) { .thumb-grid { grid-template-columns: repeat(2, 1fr); } }
  .thumb { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
  .thumb .thumb-lock { position: absolute; top: 0.4rem; right: 0.4rem; font-size: 0.8rem; background: rgba(var(--scrim-rgb), 0.6); border-radius: 999px; width: 1.4rem; height: 1.4rem; display: flex; align-items: center; justify-content: center; color: #fff; }
  .thumb.locked::after { content: ''; position: absolute; inset: 0; backdrop-filter: blur(6px); background: rgba(var(--scrim-rgb), 0.42); }

  .verify-note { margin: 0 1.25rem 1.5rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.84rem; line-height: 1.5; }
  .verify-note.pending { background: var(--gold-bg); color: var(--gold-ink); }
  .verify-note.rejected { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
  /* BIM-123: a moderation chip and its reason note inside a post card. */
  .chip.chip-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
  .post-body .verify-note { margin: 0.8rem 0 0; }

  /* Post detail */
  .pd-media { width: 100%; aspect-ratio: 4/5; max-height: 76vh; position: relative; }
  .pd-media.locked::after { content: ''; position: absolute; inset: 0; backdrop-filter: blur(20px); background: rgba(var(--scrim-rgb), 0.48); }
  .pd-body { padding: 1.5rem 1.35rem 3rem; max-width: 640px; margin: 0 auto; }
  .pd-byline { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.05rem; }
  .pd-title { font-size: 1.45rem; margin: 0 0 0.6rem; }
  .pd-caption { color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin: 0 0 1.5rem; }
  .pd-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; }
  .unlocked-note { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent); font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }

  /* Search */
  .search-box { display: flex; align-items: center; gap: 0.6rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.68rem 1rem; margin-bottom: 1.6rem; box-shadow: var(--shadow-card); }
  .search-box input { border: none; outline: none; background: none; color: var(--text); font-size: 0.92rem; width: 100%; font-family: inherit; }
  .search-results h3 { font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.85rem; }
  .search-empty { color: var(--muted); font-size: 0.88rem; padding: 2rem 0; text-align: center; }

  /* Profile */
  .profile-head { display: flex; align-items: center; gap: 1rem; padding: 1.9rem 0 1.4rem; }
  .profile-head h2 { margin: 0 0 0.2rem; font-size: 1.25rem; }
  .profile-head p { margin: 0; color: var(--muted); font-size: 0.83rem; }
  .interests-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.9rem; }
  .section-title { font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.85rem; }
  .list-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
  .list-row:last-child { border-bottom: none; }
  .list-row-left { display: flex; align-items: center; gap: 0.7rem; }
  .list-row-name { font-weight: 600; font-size: 0.88rem; }
  .list-row-sub { font-size: 0.76rem; color: var(--muted); }
  .profile-section { margin-bottom: 2.1rem; }
  .muted-inline { color: var(--muted); font-size: 0.85rem; padding: 1rem 0; }
  .settings-row {
    display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0;
    border-bottom: 1px solid var(--border); cursor: pointer; background: none; border-left: none; border-right: none; border-top: none;
    width: 100%; text-align: left; color: var(--text); font-size: 0.9rem; font-family: inherit;
  }
  .settings-row .chevron { color: var(--muted); }

  /* Messages / Activity */
  .segmented { display: flex; background: var(--border); border-radius: 999px; padding: 0.22rem; margin-bottom: 1.6rem; }
  .segmented button { flex: 1; border: none; background: none; padding: 0.55rem; border-radius: 999px; font-weight: 600; font-size: 0.83rem; cursor: pointer; color: var(--muted); }
  .segmented button.active { background: var(--card-bg); color: var(--text); }
  .convo-row, .activity-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); cursor: pointer; }
  .convo-row:last-child, .activity-row:last-child { border-bottom: none; }
  .convo-main { flex: 1; min-width: 0; }
  .convo-top { display: flex; justify-content: space-between; gap: 0.6rem; }
  .convo-name { font-weight: 600; font-size: 0.88rem; }
  .convo-time { font-size: 0.72rem; color: var(--muted); flex-shrink: 0; }
  .convo-preview { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.15rem; }
  .unread-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--warm); flex-shrink: 0; }
  .activity-icon { width: 2.2rem; height: 2.2rem; border-radius: 999px; background: var(--selected-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
  .activity-text { font-size: 0.86rem; line-height: 1.4; }
  .activity-text b { font-weight: 600; }
  .activity-time { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }

  /* Composer */
  .composer-upload {
    aspect-ratio: 4/3; border: 1.5px dashed var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.6rem; color: var(--muted); cursor: pointer; margin-bottom: 1.5rem;
    background: var(--card-bg); transition: border-color 0.2s ease, background 0.2s ease;
  }
  .composer-upload:hover { border-color: var(--accent); background: var(--selected-bg); }
  .composer-upload .icon { font-size: 1.6rem; }
  .composer-field { margin-bottom: 1.3rem; }
  /* Media uploader (create post) */
  .media-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .media-drop, .composer-field label.media-drop {
    margin-bottom: 0; font-size: inherit; font-weight: inherit;
    display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.15rem; cursor: pointer;
    border: 1.5px dashed var(--border); border-radius: var(--radius-md); background: var(--card-bg); color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  }
  .media-drop:hover, .media-drop.dragover { border-color: var(--accent); background: var(--selected-bg); }
  .media-drop.dragover { transform: scale(1.01); }
  .media-input:focus-visible + .media-drop { outline: 2px solid var(--accent); outline-offset: 2px; }
  .media-drop-icon {
    flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--selected-bg); color: var(--accent);
  }
  .media-drop-icon svg { width: 1.35rem; height: 1.35rem; }
  .media-drop-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
  .media-drop-text strong { font-size: 0.92rem; font-weight: 600; }
  .media-drop-text span { font-size: 0.76rem; color: var(--muted); }
  .media-drop.compact { padding: 0.7rem 0.9rem; }
  .media-drop.compact .media-drop-icon { width: 2.1rem; height: 2.1rem; }
  .media-drop.compact .media-drop-text span { display: none; }
  .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
  .media-grid:empty { display: none; }
  .media-tile {
    position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--selected-bg), var(--card-bg)) center/cover no-repeat;
  }
  .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .media-tile .media-badge {
    position: absolute; left: 0.4rem; bottom: 0.4rem; padding: 0.1rem 0.45rem; border-radius: 999px;
    background: rgba(0,0,0,0.55); color: #fff; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em;
  }
  .media-tile .media-remove {
    position: absolute; top: 0.35rem; right: 0.35rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0;
    background: rgba(0,0,0,0.6); color: #fff; font-size: 0.95rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  }
  .media-tile .media-remove:hover { background: rgba(0,0,0,0.8); }
  .media-tile .media-overlay {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0.5rem;
    background: rgba(12,12,18,0.55); color: #fff; font-size: 0.72rem; font-weight: 600;
  }
  .media-tile.error { border-color: var(--danger); }
  .media-tile.error .media-overlay { background: rgba(120,20,20,0.6); }
  .media-tile .media-retry {
    margin-top: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.7);
    background: transparent; color: #fff; font-size: 0.7rem; cursor: pointer;
  }
  .media-spinner {
    width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
    animation: media-spin 0.8s linear infinite; margin: 0 auto 0.35rem;
  }
  @keyframes media-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .media-spinner { animation-duration: 2.4s; } }
  .composer-field label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.4rem; font-weight: 600; }
  .composer-field textarea {
    width: 100%; min-height: 90px; padding: 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--card-bg); color: var(--text); font-size: 0.9rem; font-family: inherit; resize: vertical;
  }
  .chip-select { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .chip-option {
    padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card-bg);
    font-size: 0.8rem; cursor: pointer; color: var(--text); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
  .chip-option.selected { background: var(--ink); border-color: var(--ink); color: var(--bg-deep); }
  /* Interest picker (BIM-117, docs/adr/0022): emoji text chips, filled brand blue + check when selected. */
  .interest-picker .ip-heading { font-size: 1.3rem; margin: 0 0 0.3rem; }
  .interest-picker .ip-sub { color: var(--muted); font-size: 0.86rem; margin: 0 0 1rem; }
  .interest-picker .ip-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.85rem; }
  .interest-picker .ip-count { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
  .interest-picker .ip-toggle-all {
    display: inline-flex; align-items: center; min-height: 44px; margin: -0.6rem 0;
    background: none; border: none; padding: 0 0.1rem; cursor: pointer; color: var(--accent);
    font-size: 0.84rem; font-weight: 700; font-family: inherit;
  }
  .interest-picker .ip-toggle-all:hover { text-decoration: underline; }
  .interest-picker .ip-chips { display: flex; gap: 0.55rem; flex-wrap: wrap; }
  /* Picker chips are .chip-option plus the --interest modifier, which overrides only size, layout and the
     selected fill (brand blue + ✓). .ip-chip is the picker's JS hook for its chips. */
  .chip-option--interest {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.55rem 0.95rem;
    font-size: 0.88rem; font-weight: 600; font-family: inherit;
  }
  .chip-option--interest:hover { border-color: var(--accent); }
  .chip-option--interest .ip-emoji { font-size: 1.05rem; line-height: 1; }
  .chip-option--interest.ip-chip .ip-check { display: none; font-weight: 700; }
  .chip-option--interest.ip-chip.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
  .chip-option--interest.ip-chip.selected .ip-check { display: inline; }
  .chip-option--interest:focus-visible, .interest-picker .ip-toggle-all:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .audience-toggle { display: flex; gap: 0.7rem; }
  .audience-option {
    flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem; cursor: pointer; background: var(--card-bg);
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .audience-option.selected { border-color: var(--accent); background: var(--selected-bg); }
  .audience-option strong { display: block; font-size: 0.85rem; }
  .audience-option span { font-size: 0.74rem; color: var(--muted); }

  /* Community / safe space */
  .community-hero { padding: 1rem 0 2rem; }
  .community-hero .mascot-wrap { width: 260px; max-width: 100%; margin-bottom: 1.4rem; }
  .community-principle { padding: 1.4rem 0; border-top: 1px solid var(--border); }
  .community-principle:last-child { padding-bottom: 2rem; }
  .community-principle h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
  .community-principle p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

  /* FAB */
  .fab {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.4rem; z-index: 60;
    background: var(--ink); color: var(--bg-deep); border: none; border-radius: 999px; padding: 0.8rem 1.5rem;
    font-weight: 600; font-size: 0.88rem; cursor: pointer; box-shadow: var(--shadow-lift);
    display: flex; align-items: center; gap: 0.5rem;
  }
  .fab.hidden { display: none; }

  /* Modals */
  .modal-backdrop { position: fixed; inset: 0; background: rgba(var(--scrim-rgb), 0.55); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.25rem; }
  .modal-backdrop.open { display: flex; }
  .modal { background: var(--card-bg); border-radius: var(--radius-md); max-width: 400px; width: 100%; padding: 1.6rem; border: 1px solid var(--border); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lift); }
  .modal h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
  .modal .modal-sub { color: var(--muted); font-size: 0.84rem; margin: 0 0 1.25rem; }
  .field { margin-bottom: 0.9rem; }
  .field label { display: block; font-size: 0.77rem; color: var(--muted); margin-bottom: 0.3rem; font-weight: 600; }
  .field input { width: 100%; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.9rem; font-family: inherit; }
  .field-row { display: flex; gap: 0.7rem; }
  .field-row .field { flex: 1; }
  .modal-actions { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
  .modal-actions .btn { flex: 1; }
  .result-box { text-align: center; padding: 1rem 0 0.5rem; }
  .result-icon { font-size: 2.3rem; margin-bottom: 0.65rem; }
  .result-box h3 { margin-bottom: 0.4rem; }
  .result-box p { color: var(--muted); font-size: 0.87rem; margin: 0 0 1.25rem; line-height: 1.5; }

  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  /* BIM-118 — onboarding progress, people list, email verification banner.
     Built on existing patterns: .verify-note.pending (banner), .search-box (search), .list-row (people). */
  .ob-progress { margin: 1.25rem 0 0; }
  .ob-progress + .page-head { padding-top: 1.1rem; }
  .ob-progress-track { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
  .ob-progress-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.25s ease; }
  .ob-progress-label { margin-top: 0.45rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
  #obInterestsPicker { margin-top: 1.1rem; }
  .ob-actions { margin-top: 1.4rem; }
  .search-box:focus-within { border-color: var(--accent); }
  .search-box.ob-search-box { margin-bottom: 0.4rem; }
  .ob-list { margin: 0.4rem 0 1.4rem; }
  .list-row.person-row .list-row-left { flex: 1; min-width: 0; }
  .person-row .avatar { flex-shrink: 0; color: #fff; }
  .person-row .pr-text { min-width: 0; }
  .person-row .list-row-name, .person-row .list-row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .person-row .pc-follow { flex-shrink: 0; min-height: 44px; min-width: 6.4rem; }
  .verify-note.verify-banner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.8rem;
    margin: 0.8rem 0 0.4rem; padding-right: 3rem; }
  .verify-banner[hidden] { display: none; }
  .verify-banner .vb-text { flex: 1 1 12rem; min-width: 0; }
  .verify-banner .vb-text strong { display: block; }
  .verify-banner .vb-send { background: none; border: 0; padding: 0; min-height: 44px; color: var(--text); text-decoration: underline;
    font: inherit; font-weight: 700; cursor: pointer; }
  .verify-banner .vb-close { position: absolute; top: 0.2rem; right: 0.2rem; background: none; border: 0; color: inherit; font-size: 1.25rem;
    line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }
  .verify-banner .vb-send:focus-visible, .verify-banner .vb-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .verify-banner .vb-status { flex-basis: 100%; font-size: 0.8rem; }
  .verify-banner .vb-status:empty { display: none; }

  /* ---------- BIM-119 brand visuals ---------- */
  .logo-mark { width: 28px; height: 28px; flex: none; border-radius: 999px; }
  /* The <picture> is the flex child: it must not shrink, or the badge collapses.
     The whole brand block keeps its width; the tabs and icon buttons give way. */
  .topbar-left picture { flex: none; display: block; }
  .topbar-left { gap: 0.4rem; flex: none; }
  .topbar { gap: 0.4rem; }
  /* BIM-122: the tab strip is the only part of the bar that may shrink. When the
     bar runs out of room the tabs scroll inside themselves, so the bar never
     widens the page (iOS Safari then lets the whole page scroll sideways). */
  .tabs { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; white-space: nowrap; }
  .topbar-right { flex: none; }
  @media (max-width: 600px) {
    .topbar { gap: 0.3rem; }
    .tab { padding: 0.4rem 0.22rem; font-size: 0.8rem; }
  }
  @media (max-width: 560px) {
    .topbar { padding: 0.7rem 0.5rem; gap: 0.2rem; }
    .logo { font-size: 0.92rem; }
    .tab { padding: 0.35rem 0.13rem; font-size: 0.72rem; }
    .icon-btn, .restart-btn { width: 1.75rem; height: 1.75rem; font-size: 0.85rem; }
    .topbar-right { gap: 0.12rem; }
  }
  @media (max-width: 480px) {
    .logo-mark { width: 24px; height: 24px; }
    .topbar-left { gap: 0.3rem; }
  }
  @media (max-width: 400px) {
    .topbar { padding: 0.65rem 0.35rem; gap: 0.15rem; }
    .logo { font-size: 0.82rem; }
    .logo-mark { width: 20px; height: 20px; }
    .topbar-left { gap: 0.18rem; }
    .tab { padding: 0.35rem 0.12rem; font-size: 0.68rem; }
    .icon-btn, .restart-btn { width: 1.6rem; height: 1.6rem; font-size: 0.78rem; }
    .topbar-right { gap: 0.08rem; }
  }
  @media (max-width: 350px) {
    .topbar { padding: 0.6rem 0.25rem; gap: 0.1rem; }
    .logo { font-size: 0.74rem; }
    .tab { padding: 0.3rem 0.05rem; font-size: 0.64rem; }
    .icon-btn, .restart-btn { width: 1.5rem; height: 1.5rem; font-size: 0.7rem; }
    .topbar-right { gap: 0.05rem; }
  }

  body.splash-active .topbar { display: none; }
  body.splash-active main { padding-bottom: 0; }
  #view-splash.active {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem 0 2rem; text-align: center;
  }
  .splash-art { width: min(360px, 100%, 55svh); margin: 0 auto 1.6rem; animation: splash-in 600ms ease-out both; }
  .splash-art img { width: 100%; height: auto; border-radius: var(--radius-lg); }
  :root[data-theme="dark"] .splash-art img { background: #fff; box-shadow: var(--shadow-lift); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .splash-art img { background: #fff; box-shadow: var(--shadow-lift); }
  }
  .splash-actions { display: flex; flex-direction: column; gap: 0.7rem; width: min(360px, 100%); }
  @keyframes splash-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) {
    .splash-art { animation: none; }
  }

  .ob-tagline { margin: 2.2rem 0 0.5rem; text-align: center; font-weight: 700; font-size: 1.2rem; line-height: 1.4; }
  .ob-tagline span { white-space: nowrap; }
  .ob-tagline .tg-blue { color: var(--logo-blue); }
  .ob-tagline .tg-orange { color: var(--logo-orange); }
  .ob-tagline .tg-ink { color: var(--text); }

  .empty-state::before {
    content: ''; display: block; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 999px;
    background: url('/assets/bimbam-badge-128.png') center / cover no-repeat;
    background-image: image-set(url('/assets/bimbam-badge-128.webp') type('image/webp'), url('/assets/bimbam-badge-128.png') type('image/png'));
  }
