.lv-feed-stage {
    align-items: start;
    display: grid;
    gap: 1.15rem;
    grid-template-columns: minmax(170px, 220px) minmax(0, 760px) minmax(190px, 250px);
    margin-inline: auto;
    max-width: 1280px;
  }

  .lv-feed-rail {
    position: sticky;
    top: 96px;
  }

  .lv-feed-rail-panel {
    background:
      linear-gradient(180deg,
        color-mix(in oklab, var(--bg-elev), #fff 3%),
        color-mix(in oklab, var(--bg-elev), #000 5%));
    border: 1px solid color-mix(in oklab, var(--border), var(--brand) 10%);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
    display: grid;
    gap: .35rem;
    padding: .65rem;
  }

  .lv-feed-rail-right {
    display: grid;
    gap: .85rem;
  }

  .lv-rail-link,
  .lv-rail-mini-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    display: flex;
    gap: .58rem;
    min-height: 42px;
    padding: .48rem .65rem;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
    width: 100%;
  }

  .lv-rail-link {
    background: transparent;
    font-weight: 760;
    text-align: left;
  }

  .lv-rail-link:hover,
  .lv-rail-mini-link:hover,
  .lv-rail-link:focus-visible,
  .lv-rail-mini-link:focus-visible,
  .lv-rail-link.is-active {
    background: color-mix(in oklab, var(--brand), transparent 86%);
    border-color: color-mix(in oklab, var(--brand), transparent 54%);
    color: var(--text);
    transform: translateY(-1px);
  }

  .lv-rail-icon {
    align-items: center;
    background: color-mix(in oklab, var(--bg-elev), #fff 4%);
    border: 1px solid color-mix(in oklab, var(--border), transparent 18%);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 28px;
    font-weight: 850;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
  }

  .lv-rail-compose {
    background:
      radial-gradient(circle at 25% 18%, color-mix(in oklab, #facc15, transparent 62%), transparent 42%),
      linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand), #000 18%));
    border-color: color-mix(in oklab, var(--brand), #facc15 20%);
    color: #fff;
    margin-top: .25rem;
  }

  .lv-rail-title {
    color: #fff8d7;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .02em;
    padding: .2rem .48rem .35rem;
    text-transform: uppercase;
  }

  .lv-rail-mini-link {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    min-height: 36px;
  }

  .lv-rail-note {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.45;
    padding: 0 .48rem .25rem;
  }

  .lv-composer-modal .modal-content {
    background:
      linear-gradient(180deg,
        color-mix(in oklab, var(--bg-elev), #fff 3%),
        color-mix(in oklab, var(--bg-elev), #000 4%));
    border: 1px solid color-mix(in oklab, var(--border), var(--brand) 18%);
    border-radius: 24px;
    color: var(--text);
    overflow: hidden;
  }

  .lv-composer-modal .modal-header {
    border-bottom: 1px solid color-mix(in oklab, var(--border), transparent 20%);
  }

  .lv-composer-modal .lv-composer-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .lv-composer-publication-tool {
    grid-column: 2;
    grid-row: 1;
  }

  .lv-composer-submit {
    background:
      radial-gradient(circle at 22% 15%, color-mix(in oklab, #facc15, transparent 60%), transparent 40%),
      linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand), #000 18%)) !important;
    border: 1px solid color-mix(in oklab, var(--brand), #facc15 18%) !important;
    color: #fff !important;
    font-weight: 850;
  }

  .lv-compose-fab {
    align-items: center;
    background:
      radial-gradient(circle at 25% 18%, color-mix(in oklab, #facc15, transparent 58%), transparent 42%),
      linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand), #000 20%));
    border: 1px solid color-mix(in oklab, var(--brand), #fff 18%);
    border-radius: 50%;
    bottom: calc(1.15rem + env(safe-area-inset-bottom));
    box-shadow: 0 18px 46px color-mix(in oklab, var(--brand), transparent 72%), 0 8px 24px rgba(0,0,0,.34);
    color: #fff;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 500;
    height: 62px;
    justify-content: center;
    line-height: 1;
    position: fixed;
    right: clamp(1rem, 4vw, 2.8rem);
    width: 62px;
    z-index: 1040;
  }

  .lv-compose-fab:hover,
  .lv-compose-fab:focus-visible {
    transform: translateY(-2px);
  }

  .lv-feed-list-picker-row {
    background:
      linear-gradient(135deg,
        color-mix(in oklab, var(--bg-elev), var(--brand) 5%),
        color-mix(in oklab, var(--bg-elev), #000 7%));
    border: 1px solid color-mix(in oklab, var(--border), var(--brand) 12%);
  }

  .lv-feed-list-picker-row .btn,
  #lvFeedAddToListModal .modal-footer .btn {
    border-radius: 999px;
    font-weight: 700;
  }

  #lvFeedAddToListModal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: .75;
  }

  .lv-audio-recorder-btn.is-recording {
    border-color: color-mix(in oklab, #ef4444, var(--border) 16%);
    color: #fecaca;
    background: color-mix(in oklab, #ef4444, transparent 82%);
  }

  .lv-audio-recorder-panel {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid color-mix(in oklab, var(--border), var(--brand) 16%);
    border-radius: 12px;
    background: color-mix(in oklab, var(--bg-elev), #000 8%);
  }

  .lv-audio-recorder-main,
  .lv-audio-recorder-actions {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
  }

  .lv-audio-recorder-main {
    flex: 1 1 250px;
    color: var(--text);
    font-size: .92rem;
  }

  .lv-audio-recorder-main span:not(.lv-audio-recorder-dot) {
    overflow-wrap: anywhere;
  }

  .lv-audio-recorder-dot {
    width: .7rem;
    height: .7rem;
    flex: 0 0 .7rem;
    border-radius: 999px;
    background: var(--muted);
  }

  .lv-audio-recorder-panel.is-recording .lv-audio-recorder-dot {
    background: #ef4444;
    box-shadow: 0 0 0 .22rem color-mix(in oklab, #ef4444, transparent 78%);
  }

  .lv-audio-recorder-preview {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  @media (max-width: 1199.98px) {
    .lv-feed-stage {
      display: block;
      max-width: 760px;
    }

    .lv-feed-rail {
      display: none;
    }
  }

  @media (max-width: 575.98px) {
    .lv-composer-modal .modal-dialog {
      margin: .65rem;
    }

    .lv-composer-modal .modal-content {
      border-radius: 20px;
    }

    .lv-compose-fab {
      bottom: calc(.85rem + env(safe-area-inset-bottom));
      height: 56px;
      right: .95rem;
      width: 56px;
    }

    .lv-audio-recorder-panel,
    .lv-audio-recorder-actions {
      align-items: stretch;
    }

    .lv-audio-recorder-actions {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .lv-post-image-trigger {
    align-items: center;
    background: #050505;
    border: 0;
    border-radius: 12px;
    cursor: zoom-in;
    display: flex;
    justify-content: center;
    max-width: 720px;
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  .lv-post-image {
    display: block;
    height: auto;
    max-height: 72vh;
    max-width: 100%;
    object-fit: contain;
    width: auto;
  }

  .lv-thread-card {
    overflow: visible;
  }

  .lv-thread-card:focus-within,
  .lv-thread-card:has(.lv-thread-more .dropdown-menu.show) {
    z-index: 1200;
  }

  .lv-thread-actions {
    padding-right: 3rem;
    position: relative;
  }

  .lv-thread-actions > .lv-thread-more {
    position: absolute;
    right: 0;
    top: .72rem;
    z-index: 1080;
  }

  .lv-thread-more .dropdown-menu {
    z-index: 1090;
  }

  .lv-image-modal .modal-dialog {
    max-width: min(96vw, 1400px);
  }

  .lv-image-modal .modal-content {
    align-items: center;
  }

  .lv-image-modal__image {
    display: block;
    max-height: 88dvh;
    max-width: 96vw;
    object-fit: contain;
  }

  @media (max-width: 575.98px) {
    .lv-post-image {
      max-height: none;
      width: 100%;
    }

    .lv-image-modal .modal-dialog {
      margin: .5rem;
      max-width: calc(100vw - 1rem);
    }

    .lv-image-modal__image {
      max-height: calc(100dvh - 4rem);
      max-width: calc(100vw - 1rem);
    }
  }
