﻿:root {
    --feed-shell-width: 736px;
    --feed-glass: rgba(9, 12, 17, 0.82);
    --feed-glass-strong: rgba(10, 13, 19, 0.92);
    --feed-glass-soft: rgba(255, 255, 255, 0.028);
    --feed-border: rgba(255, 255, 255, 0.06);
    --feed-border-soft: rgba(255, 255, 255, 0.05);
    --feed-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
    --feed-radius-xl: 28px;
    --feed-radius-lg: 22px;
    --feed-radius-md: 16px;
    --feed-text: #f7f9fc;
    --feed-text-soft: #9aa4b1;
    --feed-accent: #6aa7ff;
}

.feed-page {
    height: calc(100dvh - 64px);
    min-height: calc(100dvh - 64px);
    padding: 82px 18px 58px;
    color: var(--feed-text);
    overflow: hidden;
}

.feed-page--readonly {
    padding-bottom: 14px;
}

.feed-shell {
    width: min(var(--feed-shell-width), 100%);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
}

.stories-panel,
.feed-post {
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius-xl);
    background: var(--feed-glass);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--feed-shadow);
}

.stories-panel {
    padding: 14px;
}

.stories-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.stories-strip::-webkit-scrollbar {
    display: none;
}

.story-card {
    width: 92px;
    min-width: 92px;
    border: 0;
    background: transparent;
    color: var(--feed-text);
    cursor: pointer;
}

.story-card__ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 10px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(106, 167, 255, 0.9) 45%, rgba(57, 116, 255, 0.88));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.story-card.is-viewed .story-card__ring {
    background: linear-gradient(135deg, #4f5661, #2a313a);
}

.story-card__media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(7, 10, 15, 0.96);
}

.story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card__fallback {
    font-size: 24px;
    font-weight: 700;
}

.story-card__label {
    display: block;
    overflow: hidden;
    color: var(--feed-text-soft);
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stories-empty {
    padding: 8px 4px;
    color: var(--feed-text-soft);
}

.feed-stream {
    overflow: visible;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.feed-list-wrap {
    height: 100%;
    max-height: none;
    overflow-y: scroll;
    padding: 0 0 2px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.feed-list-wrap.is-scrollbar-active {
    scrollbar-color: rgba(255,255,255,0.14) transparent;
}

.feed-list-wrap::-webkit-scrollbar {
    width: 8px;
}

.feed-list-wrap::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.feed-list-wrap.is-scrollbar-active::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.feed-page--readonly .feed-list {
    min-height: auto;
}

.feed-list-loading,
.feed-list-end {
    position: sticky;
    top: 10px;
    z-index: 3;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(11, 15, 22, 0.92);
    color: var(--feed-text-soft);
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.feed-list-end.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feed-post {
    overflow: hidden;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: #0f1522;
    backdrop-filter: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.feed-post__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 20px 0;
}

.feed-post__author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.feed-post__avatar {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.feed-post__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-post__author-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.feed-post__author-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.feed-post__author-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--feed-text-soft);
    font-size: 12px;
    line-height: 1.2;
}

.feed-post__author-tag {
    color: var(--feed-accent);
    font-weight: 600;
}

.feed-post__dot {
    opacity: 0.6;
}

.feed-post__time {
    color: inherit;
    font-size: inherit;
}

.feed-post__open {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--feed-text-soft);
    background: transparent;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.feed-post__open:hover,
.feed-post__open[aria-expanded="true"] {
    color: var(--feed-text);
    background: rgba(255, 255, 255, 0.05);
}

.feed-post__body {
    padding: 16px 20px 18px;
}

.feed-post__text {
    font-size: 15px;
    line-height: 1.74;
    color: rgba(247, 249, 252, 0.94);
    word-break: break-word;
}

.feed-post__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #7db4ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.feed-post__read-more:hover {
    color: #a8ccff;
}

.markdown-content p,
.markdown-content ul,
.markdown-content blockquote,
.markdown-content pre,
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin: 0;
}

.markdown-content > * + * {
    margin-top: 18px;
}

.markdown-content .markdown-spacer {
    height: 12px;
    margin: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    color: #f7f9fc;
    font-weight: 700;
    line-height: 1.28;
}

.markdown-content h1 {
    font-size: 24px;
}

.markdown-content h2 {
    font-size: 20px;
}

.markdown-content h3 {
    font-size: 17px;
}

.markdown-content ul {
    padding-left: 18px;
}

.markdown-content p + ul,
.markdown-content ul + p,
.markdown-content blockquote + p,
.markdown-content p + blockquote {
    margin-top: 20px;
}

.markdown-content li + li {
    margin-top: 9px;
}

.markdown-content blockquote {
    padding-left: 14px;
    border-left: 3px solid rgba(106, 167, 255, 0.45);
    color: #c7d2df;
}

.markdown-content code {
    padding: 2px 6px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: #eef5ff;
    font-size: 0.95em;
}

.markdown-content pre {
    overflow-x: auto;
    padding: 14px;
    border-radius: 14px;
    background: rgba(5, 9, 15, 0.95);
}

.markdown-content pre code {
    padding: 0;
    background: transparent;
}

.markdown-content a {
    color: #7db4ff;
}

.feed-post__media {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.feed-post__media-item {
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
}

.feed-post__media-item img,
.feed-post__media-item video {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.feed-post__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.feed-post__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-height: 58px;
    padding: 0 20px;
}

.feed-post__meta-item,
.feed-post__meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--feed-text-soft);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.feed-post__meta-link:hover,
.feed-post__meta-item:hover,
.feed-post__save:hover {
    color: var(--feed-text);
}

.feed-post__reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-post__reaction-cluster {
    position: relative;
    min-width: 0;
}

.feed-post__reaction-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-post__reaction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #cfd8e6;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.feed-post__reaction.is-active,
.feed-post__reaction:hover {
    color: var(--feed-text);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.feed-post__reaction.is-active {
    background: rgba(47, 140, 255, 0.18);
    border-color: rgba(47, 140, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(47, 140, 255, 0.18);
}

.feed-post__reaction.is-empty {
    color: #aeb8c6;
}

.feed-post__reaction--extra.is-hidden {
    display: none;
}

.feed-post__reaction-more {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #cfd8e6;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.feed-post__reaction-more:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.feed-post__reaction-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.feed-post__reaction-picker::before {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    bottom: 100%;
    height: 16px;
}

.feed-post__reaction-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 2px);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(16, 22, 31, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.feed-post__reaction-cluster:hover .feed-post__reaction-menu,
.feed-post__reaction-cluster:focus-within .feed-post__reaction-menu,
.feed-post__reaction-picker:hover .feed-post__reaction-menu,
.feed-post__reaction-picker:focus-within .feed-post__reaction-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.feed-post__reaction-menu-item {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.feed-post__reaction-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px) scale(1.03);
}

.feed-post__spacer {
    flex: 1;
}

.feed-composer {
    position: fixed;
    left: 50%;
    bottom: 25px;
    z-index: 40;
    width: min(var(--feed-shell-width), calc(100vw - 30px));
    transform: translateX(-50%);
}

.feed-composer__surface {
    position: relative;
    overflow: visible;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(11, 15, 22, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.feed-composer__preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 82px));
    gap: 10px;
    margin-bottom: 12px;
    padding: 2px 2px 2px 1px;
}

.feed-composer__preview[hidden] {
    display: none;
}

.feed-composer__preview-item {
    position: relative;
    width: 82px;
    height: 82px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: rgba(7, 11, 18, 0.88);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.feed-composer__preview-item img,
.feed-composer__preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-composer__preview-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(5, 8, 13, 0.7);
    color: #edf4ff;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.feed-composer__preview-remove {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 16, 0.78);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.feed-composer__preview-remove:hover {
    background: rgba(227, 72, 103, 0.95);
}

.feed-composer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
    padding: 0;
}

.feed-composer__field {
    min-width: 0;
    flex: 1;
}

.feed-composer__input-shell {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    min-height: 54px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(20, 27, 37, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.feed-composer__input-shell:focus-within {
    border-color: rgba(106, 167, 255, 0.34);
    background: rgba(22, 30, 41, 0.98);
}

.feed-composer__icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #b8c5d8;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.feed-composer__icon:hover,
.feed-composer__icon[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: none;
}

.feed-composer__field textarea {
    width: 100%;
    min-height: 44px;
    max-height: 180px;
    padding: 10px 4px 8px;
    border: none;
    border-radius: 0;
    resize: none;
    outline: none;
    background: transparent;
    color: var(--feed-text);
    font-size: 15px;
    line-height: 1.5;
    font: inherit;
    font-family: inherit;
    font-weight: 400;
    letter-spacing: normal;
    scrollbar-width: none;
}

.feed-composer__field textarea::-webkit-scrollbar {
    display: none;
}

.feed-composer__field textarea::placeholder {
    color: rgba(205, 216, 230, 0.62);
}

.feed-composer__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 52px;
    height: 52px;
    width: 52px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #3b82f6;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.feed-composer__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(59, 130, 246, 0.32);
}

.feed-composer__submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.feed-composer__submit span {
    display: none;
}

.feed-composer__emoji-panel {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(100% + 8px);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(12, 17, 24, 0.98);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.feed-composer__emoji-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.feed-composer__emoji-item {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.feed-composer__emoji-item:hover {
    transform: translateY(-1px) scale(1.03);
    background: rgba(106, 167, 255, 0.16);
}

.feed-context-menu {
    position: fixed;
    display: none;
    z-index: 70;
    min-width: 220px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(15, 18, 24, 0.98);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.feed-context-menu--compose {
    min-width: 200px;
    z-index: 90;
}

.feed-context-menu__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--feed-text);
    text-align: left;
    cursor: pointer;
}

.feed-context-menu__item:hover {
    background: rgba(255,255,255,0.06);
}

.feed-context-menu__item--danger {
    color: #ffb4b4;
}

.feed-context-menu__item--danger iconify-icon {
    color: #ff8d8d;
}

.feed-context-menu__item--danger:hover {
    background: rgba(255, 84, 84, 0.12);
}

.feed-context-menu__item iconify-icon {
    font-size: 16px;
    color: var(--feed-text-soft);
}

.story-viewer[hidden] {
    display: none;
}

.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.story-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 9, 0.86);
    backdrop-filter: blur(18px);
}

.story-viewer__dialog {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100vw - 24px));
    height: min(90vh, 840px);
    margin: 3vh auto 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 34px;
    background: rgba(6, 10, 16, 0.94);
    backdrop-filter: blur(30px);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
    touch-action: none;
}

.story-viewer__progress {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    gap: 6px;
}

.story-viewer__progress-item {
    flex: 1;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
}

.story-viewer__progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

.story-viewer__topbar {
    position: absolute;
    top: 34px;
    left: 18px;
    right: 18px;
    z-index: 5;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.story-viewer__meta {
    color: #fff;
}

.story-viewer__title {
    font-size: 18px;
    font-weight: 700;
}

.story-viewer__date {
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.story-viewer__close,
.story-viewer__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.story-viewer__close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.story-viewer__stage {
    position: relative;
    height: 100%;
    background: #04070c;
}

.story-viewer__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #04070c;
}

.story-viewer__tap-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 3;
    border: 0;
    background: transparent;
}

.story-viewer__tap-zone--prev {
    left: 0;
}

.story-viewer__tap-zone--next {
    right: 0;
}

.story-viewer__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transform: translateY(-50%);
}

.story-viewer__nav--prev {
    left: 16px;
}

.story-viewer__nav--next {
    right: 16px;
}

.story-viewer__nav:disabled {
    opacity: 0.28;
    cursor: default;
}

body.story-viewer-open {
    overflow: hidden;
}

.user-emoji {
    width: 16px;
    height: 16px;
}

@media (max-width: 860px) {
    .feed-page {
        padding-inline: 12px;
    }

    .feed-header {
        padding: 20px;
    }

    .feed-header__stats {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .feed-page {
        padding: 70px 8px calc(80px + env(safe-area-inset-bottom));
    }

    .feed-page--readonly {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .feed-shell {
        gap: 12px;
    }

    .stories-panel,
    .feed-stream,
    .feed-post {
        border-radius: var(--feed-radius-xl);
    }

    .stories-panel {
        padding: 12px;
    }

    .story-card {
        width: 84px;
        min-width: 84px;
    }

    .feed-list-wrap {
        max-height: none;
        padding: 0;
    }

    .feed-post {
        border-radius: 22px;
    }

    .feed-post__header {
        padding: 18px 18px 0;
    }

    .feed-post__body {
        padding: 14px 18px 16px;
    }

    .feed-post__text {
        font-size: 14px;
        line-height: 1.62;
    }

    .feed-post__actions {
        padding: 0 18px;
        min-height: 54px;
        gap: 14px;
    }

    .feed-post__reaction-menu {
        left: -120px;
        bottom: calc(100% + 12px);
        right: auto;
        max-width: calc(100vw - 52px);
        border-radius: 14px;
    }

    .feed-composer {
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 8px;
        transform: none;
        bottom: calc(64px + env(safe-area-inset-bottom) + 2px);
    }

    .feed-composer__submit {
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .feed-composer__surface {
        padding: 8px;
        border-radius: 18px;
    }

    .feed-composer__preview {
        grid-template-columns: repeat(auto-fill, minmax(70px, 70px));
        gap: 8px;
        margin-bottom: 10px;
    }

    .feed-composer__preview-item {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }

    .feed-composer__inner {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 8px;
    }

    .feed-composer__input-shell {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 50px;
        gap: 8px;
        padding: 8px;
        border-radius: 16px;
    }

    .feed-composer__icon {
        width: 40px;
        min-width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .feed-composer__field textarea {
        min-height: 40px;
        padding-top: 9px;
        font-size: 14px;
    }

    .feed-composer__emoji-panel {
        left: 4px;
        right: 4px;
        bottom: calc(100% + 8px);
        padding: 10px;
        border-radius: 16px;
    }

    .feed-composer__emoji-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .story-viewer__dialog {
        width: 100vw;
        height: calc(100dvh - env(safe-area-inset-bottom));
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #04070c;
    }

    .story-viewer__video {
        object-fit: cover;
    }

    .story-viewer__tap-zone {
        width: 50%;
    }

    .story-viewer__nav {
        display: none;
    }

    .story-viewer__topbar {
        top: calc(10px + env(safe-area-inset-top));
    }

    .story-viewer__progress {
        top: calc(6px + env(safe-area-inset-top));
    }
}
