/* ═══════════════════════════════════════════════════════════
   Кругли — Apple-inspired design system
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-base: #08080f;
    --bg: #08080f;
    --bg-soft: #101018;
    --app-background:
        radial-gradient(ellipse 110% 75% at 50% -18%, rgba(255, 107, 74, 0.16) 0%, transparent 52%),
        radial-gradient(ellipse 65% 55% at 100% 28%, rgba(45, 180, 170, 0.09) 0%, transparent 48%),
        radial-gradient(ellipse 60% 50% at -8% 72%, rgba(99, 102, 241, 0.11) 0%, transparent 46%),
        linear-gradient(168deg, #12121c 0%, #0a0a12 42%, #06060c 100%);
    --surface: rgba(30, 30, 44, 0.62);
    --surface-2: rgba(42, 42, 58, 0.54);
    --surface-3: rgba(56, 56, 72, 0.48);
    --surface-glass: rgba(16, 16, 26, 0.56);
    --surface-card: rgba(24, 24, 38, 0.58);
    --grouped-bg: rgba(20, 20, 32, 0.38);
    --card-border: rgba(255, 255, 255, 0.09);
    --card-shadow: 0 10px 36px rgba(0, 0, 0, 0.24);
    --sidebar-gradient:
        radial-gradient(ellipse 90% 55% at 0% 0%, rgba(255, 107, 74, 0.14), transparent 58%),
        radial-gradient(ellipse 75% 50% at 100% 100%, rgba(99, 102, 241, 0.12), transparent 52%),
        rgba(12, 12, 20, 0.88);
    --panel-gradient:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 107, 74, 0.07), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(45, 180, 170, 0.06), transparent 50%),
        var(--surface-card);
    --separator: rgba(84, 84, 88, 0.65);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);

    --accent: #ff6b4a;
    --accent-hover: #ff8568;
    --accent-soft: rgba(255, 107, 74, 0.16);
    --accent-gradient: linear-gradient(135deg, #ff6b4a 0%, #ff8f6b 55%, #ff6b4a 100%);
    --accent-2: #30d158;
    --accent-2-soft: rgba(48, 209, 88, 0.14);
    --gradient-brand: linear-gradient(180deg, #ff7a5c 0%, #ff6b4a 100%);
    --gradient-mesh: none;

    --text: #ffffff;
    --text-muted: #8e8e93;
    --text-dim: #636366;

    --success: #30d158;
    --warning: #ffd60a;
    --danger: #ff453a;

    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
    --nav-h: 0px;
    --topbar-h: 56px;
    --content-max: 520px;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
    --shadow-glow: none;
    --blur: saturate(180%) blur(20px);
    --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
    --tap-scale: 0.97;
}

html, body, .app-desktop, .app-stage-wrap, #app {
    height: 100%;
    overflow: hidden;
    max-width: 100%;
}

.app-desktop,
.app-stage-wrap {
    width: 100%;
    position: relative;
}

.app-stage-column {
    display: contents;
}

.feed-next-btn {
    display: none;
}

.feed-next-btn[hidden] {
    display: none !important;
}

html {
    overflow-x: clip;
    background-color: var(--bg-base);
}

body {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--app-background);
    background-attachment: fixed;
    color: var(--text);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    text-rendering: optimizeLegibility;
}

#app {
    height: 100%;
    position: relative;
    background: transparent;
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

img,
video {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

/* iOS Safari: inputs < 16px trigger zoom and layout jump */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input:not([type]),
textarea,
select {
    font-size: max(16px, 1rem);
}

#view-root {
    height: 100%;
    position: relative;
    padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    max-width: 100%;
    overflow-x: clip;
    min-width: 0;
    background: transparent;
}

/* ─── App topbar ─── */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 10px;
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 14px 0;
    background: rgba(8, 8, 15, 0.55);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    pointer-events: none;
}

.app-topbar > * {
    pointer-events: auto;
}

.app-topbar__lead {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.app-topbar__lead .topbar-menu-btn,
.app-topbar__lead .topbar-back-btn {
    position: absolute;
    inset: 0;
}

.app-topbar__lead .topbar-menu-btn[hidden],
.app-topbar__lead .topbar-back-btn[hidden] {
    display: none;
}

.app-topbar__main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.app-topbar-search-wrap {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.app-topbar-search-wrap[hidden] {
    display: none !important;
}

.app-topbar-title-wrap[hidden] {
    display: none !important;
}

.app-topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-topbar-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.app-topbar-title {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    white-space: nowrap;
}

.app-topbar-title--truncate {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.app-topbar-title-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c45a3a;
    flex-shrink: 0;
}

.topbar-circle-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: transform 0.16s var(--ease-out), background 0.16s var(--ease-out);
}

.topbar-circle-btn svg {
    width: 20px;
    height: 20px;
}

.topbar-circle-btn:active {
    transform: scale(var(--tap-scale));
    background: rgba(255, 255, 255, 0.1);
}

.topbar-menu-btn {
    border-color: rgba(255, 255, 255, 0.12);
}

.topbar-menu-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    border: 1.5px solid #000;
}

.topbar-back-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}

.topbar-back-btn svg {
    width: 22px;
    height: 22px;
}

.topbar-back-btn:active {
    transform: scale(var(--tap-scale));
    color: #fff;
}

.topbar-search-btn {
    border-color: rgba(255, 255, 255, 0.14);
}

.topbar-filter-btn {
    border: none;
    background: #3d1a16;
    color: #e86a45;
}

.topbar-filter-btn svg {
    width: 21px;
    height: 21px;
}

.topbar-filter-btn:active {
    background: #4a211c;
}

.topbar-filter-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 1.5px solid #000;
}

.topbar-add-btn {
    border: 1px solid transparent;
    background: var(--accent);
    color: #fff;
    box-sizing: border-box;
}

.topbar-add-btn svg {
    width: 20px;
    height: 20px;
}

.topbar-add-btn:active {
    background: var(--accent-hover);
}

.topbar-add-btn--prominent {
    background: linear-gradient(135deg, #34d058 0%, #28a745 55%, #30d158 100%);
    border-color: rgba(48, 209, 88, 0.55);
    box-shadow:
        0 0 0 2px rgba(48, 209, 88, 0.28),
        0 4px 16px rgba(48, 209, 88, 0.42);
}

.topbar-add-btn--prominent svg {
    stroke-width: 2.25;
}

.topbar-add-btn--prominent:active {
    background: linear-gradient(135deg, #2fb84f 0%, #22963c 100%);
}

.topbar-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1.5px solid #d45530;
    border-radius: var(--radius-full);
    background: #141414;
}

.topbar-search-field__icon {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.topbar-search-field__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
    outline: none;
}

.topbar-search-field__input::placeholder {
    color: var(--text-dim);
}

.topbar-search-field__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

#app:has(.feed-container) .app-topbar {
    background: transparent;
    border-radius: 0;
}

#app:has(.feed-container) .app-topbar-title,
#app:has(.feed-container) .topbar-circle-btn,
#app:has(.feed-container) .topbar-back-btn {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

#app:has(.feed-container) .app-topbar--search {
    background: rgba(8, 8, 15, 0.72);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.topbar-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.topbar-action-btn:active {
    transform: scale(var(--tap-scale));
    background: var(--accent-hover);
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.topbar-icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.topbar-icon-btn:active {
    transform: scale(var(--tap-scale));
    background: rgba(255, 255, 255, 0.14);
}

.topbar-like-btn.is-liked {
    color: #ff5a7a;
}

.topbar-like-btn.is-liked:active {
    background: rgba(255, 90, 122, 0.16);
}

/* ─── App sidebar ─── */
.app-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease-out);
}

.app-overlay:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.app-sidebar {
    position: fixed;
    top: max(10px, env(safe-area-inset-top, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: min(304px, calc(100vw - 20px));
    z-index: 200;
    background: var(--sidebar-gradient);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.34s var(--ease-spring);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.app-sidebar.open {
    transform: translateX(0);
}

.app-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px 18px;
}

.app-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.app-sidebar-brand-text strong {
    font-size: 1.3125rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}

.app-sidebar-tagline {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.app-brand-mark {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 14px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(255, 107, 74, 0.25);
}

.app-sidebar-account {
    padding: 0 16px 16px;
}

.app-account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.app-account-card--guest {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.app-account-card--guest p {
    font-weight: 600;
    color: var(--text);
}

.app-account-card--guest span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.app-account-info {
    min-width: 0;
    flex: 1;
}

.app-account-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-account-stats {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.app-account-star {
    width: 13px;
    height: 13px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.app-user-avatar--lg {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.app-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 12px;
    flex: 1;
    overflow-y: auto;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: background 0.16s var(--ease-out), color 0.16s var(--ease-out);
}

.app-nav-link:active {
    transform: scale(0.99);
}

.app-nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.app-nav-link.active {
    background: rgba(255, 107, 74, 0.14);
    border: 1px solid rgba(255, 107, 74, 0.22);
    color: var(--text);
    font-weight: 600;
}

.app-nav-link.active .app-nav-icon {
    color: var(--accent);
}

.app-nav-label {
    flex: 1;
    min-width: 0;
}

.app-nav-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.app-nav-badge--hot {
    background: linear-gradient(135deg, #ff7a59, #ff3d71);
    box-shadow: 0 0 10px rgba(255, 61, 113, 0.55);
    animation: inbox-badge-pulse 2.2s ease-in-out infinite;
}

.app-nav-link--alert .app-nav-icon {
    color: #ff8f7a;
}

.topbar-menu-dot--hot {
    background: #ff3d71;
    box-shadow: 0 0 10px rgba(255, 61, 113, 0.85);
    animation: inbox-badge-pulse 2.2s ease-in-out infinite;
}

@keyframes inbox-badge-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 61, 113, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 61, 113, 0.9);
        transform: scale(1.06);
    }
}

.app-nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.app-nav-icon svg {
    width: 22px;
    height: 22px;
}

.app-sidebar-foot {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-nav-link--foot {
    margin-bottom: 2px;
}

.app-sidebar-logout {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.16s var(--ease-out), border-color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}

.app-sidebar-logout:active {
    transform: scale(var(--tap-scale));
    background: rgba(255, 255, 255, 0.06);
}

.app-nav-link.is-disabled {
    opacity: 0.38;
    pointer-events: auto;
}

.app-sidebar-guest {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 14px;
}

.app-user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.app-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar--photo,
.app-user-avatar--photo,
.profile-avatar--photo,
.comment-card__avatar--photo,
.pc__person-avatar--photo {
    padding: 0;
    overflow: hidden;
}

.user-avatar--photo img,
.app-user-avatar--photo img,
.profile-avatar--photo img,
.comment-card__avatar--photo img,
.pc__person-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-user-chip strong {
    display: block;
    font-size: 14px;
}

.app-user-chip span {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-vk--sidebar {
    width: 100%;
}

/* ─── Login sheet ─── */
.login-sheet[hidden] {
    display: none !important;
}

.login-sheet:not([hidden]) {
    display: grid;
    position: absolute;
    inset: 0;
    z-index: 300;
    place-items: end center;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.login-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-sheet__panel {
    position: relative;
    z-index: 2;
    width: min(100%, var(--content-max));
    padding: 28px 22px 22px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 107, 74, 0.12), transparent 60%),
        rgba(20, 20, 32, 0.92);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: sheet-up 0.36s var(--ease-spring);
}

.login-sheet__glow {
    display: none;
}

.login-sheet__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 107, 74, 0.28);
}

.login-sheet__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-sheet__title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.login-sheet__text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 20px;
}

.login-sheet__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.login-sheet__close svg {
    width: 16px;
    height: 16px;
}

.btn-vk--sheet {
    width: 100%;
    font-size: 1.0625rem;
    padding: 15px 24px;
    border-radius: var(--radius-md);
}

.login-sheet__hint {
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.login-sheet__dismiss {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.login-sheet__dismiss:hover {
    color: var(--text);
}

body.login-sheet-open,
body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 399px) {
    .feed-container,
    .feed-viewport {
        height: 100dvh;
    }

    .feed-slide {
        height: var(--feed-slide-h, 100dvh);
        min-height: var(--feed-slide-h, 100dvh);
        contain-intrinsic-size: auto 100dvh;
    }
}

/* ─── Bottom navigation (removed) ─── */
.bottom-nav {
    display: none !important;
}

/* ─── Feed container ─── */
.feed-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    height: 100%;
}

.feed-skeleton {
    height: 100%;
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: feed-shimmer 1s ease-in-out infinite;
}

@keyframes feed-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.feed-body {
    height: 100%;
    position: relative;
    overflow: hidden;
}

#view-root:has(.item-detail-page),
#view-root.view-root--item-detail {
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
}

#view-root:has(.settings-page),
#view-root:has(.list-page) {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#view-root:has(.item-quiz),
#view-root.view-root--item-form {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

#view-root:has(.feed-container) {
    overflow: hidden;
    padding-top: 0;
    max-width: none;
    margin: 0;
    border: none;
}

.feed-viewport {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    touch-action: pan-y;
    outline: none;
}

.feed-viewport::-webkit-scrollbar {
    display: none;
}

.feed-track {
    display: flex;
    flex-direction: column;
}

.feed-slide {
    height: var(--feed-slide-h, 100%);
    min-height: var(--feed-slide-h, 100%);
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: auto 100%;
}

.feed-spacer {
    flex-shrink: 0;
    width: 100%;
    pointer-events: none;
}

.feed-slide--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-body #feed-slide,
#feed-container > #feed-slide {
    height: 100%;
}

.feed-slide--end {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: transparent;
}

.feed-end {
    max-width: 300px;
    text-align: center;
    padding: 0 20px;
}

.feed-end__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.feed-end__title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 8px;
    color: var(--text);
}

.feed-end__text {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.feed-end__btn {
    width: 100%;
    max-width: 260px;
}

/* ─── Feed onboarding (PWA install + swipe hint) ─── */
.feed-slide--onboarding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 107, 74, 0.2), transparent 58%),
        linear-gradient(168deg, #14141f 0%, #0a0a12 55%, #06060c 100%);
}

.feed-onboarding {
    position: relative;
    width: 100%;
    max-width: 340px;
    max-height: 100%;
    overflow-y: auto;
    padding: 8px 4px 4px;
    text-align: center;
}

.feed-onboarding__glow {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.35), transparent 70%);
    pointer-events: none;
}

.feed-onboarding__logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 28px rgba(255, 107, 74, 0.35);
    margin-bottom: 12px;
}

.feed-onboarding__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.feed-onboarding__lead {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 20px;
}

.feed-onboarding__block {
    text-align: left;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
}

.feed-onboarding__block-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.feed-onboarding__steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-onboarding__step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text);
}

.feed-onboarding__step-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.feed-onboarding__step-text strong {
    font-weight: 700;
    color: #fff;
}

.feed-onboarding__swipe-text {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.feed-onboarding__swipe-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--accent);
    animation: feed-onboarding-swipe 2s ease-in-out infinite;
}

.feed-onboarding__swipe-finger {
    font-size: 1.25rem;
    line-height: 1;
}

.feed-onboarding__swipe-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

@keyframes feed-onboarding-swipe {
    0%, 100% { transform: translateY(6px); opacity: 0.55; }
    50% { transform: translateY(-8px); opacity: 1; }
}

@media (pointer: fine) {
    .feed-onboarding__swipe-anim {
        display: none;
    }
}

.feed-onboarding__cta {
    width: 100%;
    margin-top: 4px;
}

/* ─── Feed header ─── */
.feed-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    padding-top: max(14px, env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(8, 8, 12, 0.75) 0%, transparent 100%);
    pointer-events: none;
}

.feed-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    pointer-events: auto;
}

.brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-brand);
    box-shadow: 0 0 12px rgba(255, 107, 74, 0.6);
}

.feed-header__filters {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.15s var(--ease-out), background 0.15s;
}

.feed-header__filters:active {
    transform: scale(0.94);
}

.feed-header__filters svg {
    width: 20px;
    height: 20px;
}

.feed-header__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 74, 0.5);
}

/* ─── Feed card (TikTok-style) ─── */
.feed-card {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    background: var(--surface);
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

.feed-card__media {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
}

.feed-card__media--placeholder {
    object-fit: contain;
    padding: 30%;
    opacity: 0.25;
    filter: grayscale(1);
}

.feed-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 30%,
        transparent 42%,
        rgba(0, 0, 0, 0.55) 58%,
        rgba(0, 0, 0, 0.92) 100%
    );
    pointer-events: none;
}

.feed-card__overlay {
    position: relative;
    z-index: 1;
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.feed-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 0.5px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
}

.chip--condition {
    border: 0.5px solid transparent;
}

.chip--condition-new {
    background: rgba(48, 209, 88, 0.22);
    color: #8ef0a8;
    border-color: rgba(48, 209, 88, 0.38);
}

.chip--condition-like-new {
    background: rgba(64, 200, 120, 0.2);
    color: #a8e8c4;
    border-color: rgba(64, 200, 120, 0.34);
}

.chip--condition-good {
    background: rgba(10, 132, 255, 0.2);
    color: #9ecbff;
    border-color: rgba(10, 132, 255, 0.34);
}

.chip--condition-fair {
    background: rgba(255, 159, 10, 0.22);
    color: #ffd08a;
    border-color: rgba(255, 159, 10, 0.38);
}

.chip--condition-poor {
    background: rgba(255, 69, 58, 0.22);
    color: #ffb4ae;
    border-color: rgba(255, 69, 58, 0.38);
}

.chip--distance {
    background: rgba(10, 132, 255, 0.2);
    color: #b3d7ff;
    border-color: rgba(10, 132, 255, 0.25);
}

.chip--city {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.feed-card__media--tap {
    cursor: pointer;
}

.feed-card__title {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 6px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.feed-card__title--link {
    cursor: pointer;
}

.feed-card__desc {
    margin: 0 0 8px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.feed-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.feed-card__author {
    color: var(--text);
}

.badge-trust {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent-2);
}

/* ─── Feed actions (right rail) ─── */
.feed-actions {
    position: absolute;
    right: 12px;
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.feed-actions__social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}

.feed-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.feed-action-btn:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.52);
}

.feed-action-btn svg {
    width: 22px;
    height: 22px;
}

.feed-action-btn--like svg {
    color: #fff;
}

.feed-action-btn--like.is-liked {
    background: rgba(255, 55, 95, 0.35);
}

.feed-action-btn--like.is-liked svg {
    color: #ff375f;
    fill: #ff375f;
}

.feed-action-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.feed-action-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1;
    min-width: 48px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.feed-action-btn--exchange {
    width: 56px;
    height: 56px;
    min-width: 56px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 107, 74, 0.35);
    overflow: hidden;
}

.feed-action-btn--exchange:active {
    transform: scale(0.92);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.42),
        0 0 0 2px rgba(255, 107, 74, 0.5);
}

.feed-action-btn--exchange .feed-action-btn__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

.feed-action-btn--exchange svg {
    display: none;
}

.feed-action-btn--cta {
    width: auto;
    min-width: 52px;
    height: 52px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    animation: none;
    box-shadow: none;
}

.feed-action-btn--guest {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.feed-action-btn--accept {
    background: var(--success);
    box-shadow: none;
}

.feed-action-btn--reject {
    background: rgba(255, 255, 255, 0.14);
    border: none;
    box-shadow: none;
    color: #fff;
}

/* ─── Exchange offer picker ─── */
.exchange-offer-page {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.offer-notice-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--topbar-h) - env(safe-area-inset-top, 0px));
    padding: 24px 20px calc(32px + env(safe-area-inset-bottom, 0px));
}

.offer-notice {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

.offer-notice__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.offer-notice-page--success .offer-notice__icon {
    background: rgba(48, 209, 88, 0.16);
    color: var(--success);
}

.offer-notice-page--info .offer-notice__icon {
    background: rgba(10, 132, 255, 0.16);
    color: #0a84ff;
}

.offer-notice-page--error .offer-notice__icon {
    background: rgba(248, 113, 113, 0.16);
    color: var(--danger);
}

.offer-notice__title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.offer-notice__text {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.offer-notice__btn {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    font-weight: 700;
}

.exchange-target-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 16px 0;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.exchange-target-card__thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
}

.exchange-target-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.exchange-target-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.75rem;
    opacity: 0.5;
}

.exchange-target-card__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.exchange-target-card__title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
}

.exchange-target-card__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.exchange-picker {
    padding: 16px 16px 0;
}

.exchange-picker__head {
    margin-bottom: 12px;
}

.exchange-picker__title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.exchange-picker__hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.exchange-picker__search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.exchange-picker__search-wrap:focus-within {
    border-color: var(--accent);
}

.exchange-picker__search-icon {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.exchange-picker__search {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    padding: 12px 0;
    outline: none;
}

.exchange-picker__search::placeholder {
    color: var(--text-dim);
}

.exchange-picker__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exchange-picker__loading,
.exchange-picker__empty {
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.exchange-picker__create {
    margin-top: 12px;
    width: 100%;
}

/* ─── Offer exchange bottom sheet ─── */
.filter-sheet.offer-sheet {
    max-height: min(92vh, 780px);
}

.offer-sheet__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 0;
}

.offer-sheet .exchange-target-wrap {
    flex-shrink: 0;
}

.offer-sheet .exchange-picker {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.offer-sheet .exchange-picker__hint {
    margin: 0 0 10px;
    font-size: 0.875rem;
}

.offer-sheet .exchange-picker__list {
    flex: 1;
    min-height: 120px;
    max-height: min(48vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    border-radius: var(--radius-md);
    background: var(--grouped-bg);
}

.offer-sheet .item-row--target {
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.offer-notice--sheet {
    padding: 8px 4px 16px;
    text-align: center;
}

.offer-notice--sheet .offer-notice__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.offer-notice--sheet .offer-notice__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.offer-notice--sheet .offer-notice__text {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.offer-notice--sheet .offer-notice__btn {
    width: 100%;
}

/* ─── Exchange context banner ─── */
.exchange-context {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 14px 18px;
    padding-top: max(14px, env(safe-area-inset-top));
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-muted);
}

.exchange-context strong {
    color: var(--text);
    font-weight: 700;
}

/* ─── Empty state ─── */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.empty__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.empty__text {
    font-size: 0.9375rem;
    line-height: 1.5;
    max-width: 280px;
}

/* ─── Bottom sheets (filters, comments) ─── */
.filter-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s var(--ease-out);
    pointer-events: none;
}

.filter-sheet-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.filter-sheet-overlay[hidden] {
    display: none !important;
}

body.sheet-open {
    overflow: hidden;
}

.filter-sheet {
    width: 100%;
    max-width: var(--content-max);
    max-height: min(90vh, 720px);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 107, 74, 0.1), transparent 55%),
        rgba(16, 16, 26, 0.94);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.28s var(--ease-out);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    contain: layout style;
    will-change: transform;
}

.filter-sheet-overlay.is-visible .filter-sheet {
    transform: translateY(0);
}

#app > .filter-sheet-overlay {
    position: absolute;
}

#app > .filter-sheet-overlay .filter-sheet,
#app > .filter-sheet-overlay .comments-sheet {
    max-height: 100%;
}

.filter-sheet__loading {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.filter-sheet__handle {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    margin: 8px auto 0;
}

.filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    flex-shrink: 0;
}

.filter-sheet__header h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-sheet__close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1.125rem;
    cursor: pointer;
}

.filter-sheet__body {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 20px 16px;
    flex: 1;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.filter-sheet__body::-webkit-scrollbar {
    width: 5px;
}

.filter-sheet__body::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sheet__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section h3 {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.filter-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.15s;
}

.filter-select:focus {
    border-color: var(--accent);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-options--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-radio,
.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--surface-2);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s var(--ease-out);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.filter-radio:has(input:checked),
.filter-check:has(input:checked) {
    background: var(--accent-soft);
}

.filter-radio input,
.filter-check input {
    accent-color: var(--accent);
}

.filter-sheet__footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.dialog-sheet__body {
    padding-top: 4px;
    padding-bottom: 8px;
}

.dialog-sheet__message {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.dialog-sheet__footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 20px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--card-border);
}

.dialog-sheet__footer .btn-primary,
.dialog-sheet__footer .btn-secondary {
    width: 100%;
    min-height: 50px;
}

.btn-primary--danger {
    background: linear-gradient(180deg, #ff6b5a 0%, #ff453a 100%);
}

.btn-primary--danger:active {
    background: #e03e34;
}

/* ─── Buttons ─── */
.btn-primary,
.filter-sheet__footer .btn-primary {
    flex: 1;
    padding: 14px 16px;
    min-height: 50px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.btn-primary:active {
    transform: scale(var(--tap-scale));
    background: var(--accent-hover);
}

.btn-secondary,
.filter-sheet__footer .btn-secondary {
    flex: 1;
    padding: 14px 16px;
    min-height: 50px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    background: var(--surface-2);
    color: var(--text);
    transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.btn-secondary:active {
    transform: scale(var(--tap-scale));
    background: var(--surface-3);
}

.btn-danger {
    margin-top: 12px;
    padding: 14px 16px;
    width: 100%;
    border-radius: var(--radius-md);
    border: none;
    background: rgba(255, 69, 58, 0.14);
    color: var(--danger);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.btn-danger:active {
    transform: scale(var(--tap-scale));
    background: rgba(255, 69, 58, 0.22);
}

.btn-vk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    padding: 15px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: #0077ff;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.btn-vk:active {
    transform: scale(var(--tap-scale));
    background: #0066dd;
}

/* ─── Comments sheet ─── */
.comments-sheet {
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 720px);
}

.comments-sheet .comments-sheet__title {
    padding: 0 20px 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
}

.comments-sheet__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 16px 16px;
}

.comments-empty {
    text-align: center;
    padding: 28px 16px 20px;
}

.comments-empty__icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.comments-empty__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.comments-empty__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.comment-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: var(--grouped-bg);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
}

.comment-card + .comment-card {
    margin-top: 10px;
}

.comment-card--mine {
    background: rgba(255, 107, 74, 0.08);
    border-color: rgba(255, 107, 74, 0.18);
}

.comment-card__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 107, 74, 0.35), rgba(255, 107, 74, 0.12));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 800;
}

.comment-card--mine .comment-card__avatar {
    background: linear-gradient(145deg, var(--accent), #e85a38);
}

.comment-card__main {
    flex: 1;
    min-width: 0;
}

.comment-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-card__who {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.comment-card__author {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.comment-card__badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 107, 74, 0.16);
    color: var(--accent);
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comment-card__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.comment-card__time {
    font-size: 0.6875rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.comment-card__report {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s, color 0.15s;
}

.comment-card__report svg {
    width: 16px;
    height: 16px;
}

.comment-card__report:active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.comment-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text);
    word-break: break-word;
}

/* ─── Comments panel (detail tab + sheet) ─── */
.item-comments-wrap {
    min-height: 120px;
}

.item-comments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-comments__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-comments__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: var(--grouped-bg);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.item-comments__composer {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.item-comments__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    line-height: 1.35;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.item-comments__input::placeholder {
    color: var(--text-dim);
}

.item-comments__input:focus {
    border-color: rgba(255, 107, 74, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.14);
}

.item-comments__hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-dim);
}

.item-comments__submit {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(255, 107, 74, 0.28);
}

.item-comments__submit:active {
    transform: scale(0.96);
}

.item-comments__submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.item-comments__login {
    width: 100%;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    max-height: 40vh;
}

.comment-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.comment-row strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.comment-row p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.empty-comments {
    color: var(--text-muted);
    text-align: center;
    padding: 32px;
    font-size: 0.9375rem;
}

.comments-form {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.comments-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    outline: none;
}

.comments-form input:focus {
    border-color: var(--accent);
}

.comments-form button {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

/* ─── Page layouts ─── */
.page {
    height: 100%;
    overflow-y: auto;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}

.page-header {
    padding: 8px 20px 4px;
}

.page-header h1 {
    font-size: 2.125rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    background: none;
    -webkit-text-fill-color: unset;
}

.page-header p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.create-page,
.profile-page {
    min-height: 100%;
}

/* ─── Item create quiz ─── */
.item-quiz {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--topbar-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding: 12px 16px 0;
    max-width: var(--content-max);
    margin: 0 auto;
}

.item-quiz__progress {
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    overflow: hidden;
    margin-bottom: 12px;
}

.item-quiz__progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width 0.28s var(--ease-out);
}

.item-quiz__step-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.item-quiz__head {
    margin-bottom: 12px;
}

.item-quiz__title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.item-quiz__lead {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.item-quiz__tips {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.item-quiz__tips li + li {
    margin-top: 6px;
}

.item-quiz__tips li::before {
    content: '· ';
    color: var(--accent);
    font-weight: 700;
}

.item-quiz__body {
    flex: 1 1 auto;
    min-height: 0;
}

.item-quiz__error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 69, 58, 0.12);
    color: var(--danger);
    font-size: 0.875rem;
}

.item-quiz__foot {
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 0.5px solid var(--separator);
    background: linear-gradient(to bottom, transparent 0%, var(--bg-base) 20px);
}

.item-quiz__foot .btn-primary {
    min-width: 140px;
}

.quiz-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quiz-photo-slot {
    position: relative;
    aspect-ratio: 3 / 4;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    color: var(--text-muted);
}

.quiz-photo-slot.has-photo {
    border-style: solid;
    border-color: rgba(255, 107, 74, 0.35);
}

.quiz-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-photo-slot__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 6px;
}

.quiz-photo-slot__num {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

.quiz-photo-slot__plus {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
}

.quiz-photo-slot__edit {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
}

.quiz-photos__status {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

.quiz-photo-slot.is-loading {
    pointer-events: none;
    opacity: 0.65;
}

.quiz-photo-slot.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.quiz-photos__status--busy {
    color: var(--accent);
}

.quiz-field {
    display: block;
}

.quiz-field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quiz-field__note {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.quiz-input,
.quiz-textarea,
.quiz-select {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.quiz-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.45;
}

.quiz-input:focus,
.quiz-textarea:focus,
.quiz-select:focus {
    outline: none;
    border-color: rgba(255, 107, 74, 0.55);
}

.quiz-counter {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.quiz-counter--warn {
    color: var(--warning);
}

.quiz-counter--limit {
    color: var(--danger);
}

.quiz-condition-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-condition-card {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.quiz-condition-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-condition-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.quiz-condition-card span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.quiz-condition-card.is-selected {
    border-color: rgba(255, 107, 74, 0.55);
    background: var(--accent-soft);
}

.quiz-geo-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
}

.quiz-geo-btn:active {
    background: rgba(255, 255, 255, 0.06);
}

.quiz-review__photos {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.quiz-review__photos img {
    width: 88px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.quiz-review__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-review__list div {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.quiz-review__list dt {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.quiz-review__list dd {
    font-size: 0.9375rem;
    line-height: 1.4;
    word-break: break-word;
}

/* ─── Forms ─── */
.item-form {
    padding: 16px 20px;
}

.item-form label {
    display: block;
    margin-bottom: 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.item-form input,
.item-form textarea,
.item-form select {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    outline: none;
    transition: border-color 0.15s;
}

.item-form input:focus,
.item-form textarea:focus,
.item-form select:focus {
    border-color: var(--accent);
}

.item-form input[type="file"] {
    padding: 20px;
    border-style: dashed;
    border-color: var(--border-strong);
    background: var(--accent-soft);
    cursor: pointer;
}

.item-form textarea {
    resize: vertical;
    min-height: 100px;
}

.item-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

/* ─── Auth screen ─── */
.auth-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 32px 24px;
    text-align: center;
    background-image: var(--gradient-mesh);
}

.auth-logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.auth-logo::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-brand);
    box-shadow: var(--shadow-glow);
}

.auth-tagline {
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: 40px;
    max-width: 260px;
    line-height: 1.5;
}

/* ─── Profile ─── */
.profile-hero {
    padding: 28px 20px 24px;
    padding-top: max(28px, env(safe-area-inset-top));
    text-align: center;
    background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
}

.profile-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: var(--shadow-glow);
    border: 3px solid var(--surface);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.profile-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    background: var(--panel-gradient);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.stat-label {
    display: block;
    margin-top: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-form {
    padding: 16px 20px;
    margin: 0 20px 16px;
    border-radius: var(--radius-lg);
    background: var(--panel-gradient);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.profile-form__field {
    display: block;
    margin-bottom: 12px;
}

.profile-form__geo {
    width: 100%;
    margin-bottom: 10px;
}

.profile-form__geo-note {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.profile-form__geo-note--error {
    color: var(--danger);
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 16px;
}

.menu-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--panel-gradient);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s var(--ease-out);
}

.menu-tile:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.99);
}

.menu-tile__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.menu-tile__icon--notif { background: var(--accent-soft); }
.menu-tile__icon--chat { background: var(--accent-2-soft); }
.menu-tile__icon--items { background: rgba(96, 165, 250, 0.12); }

.menu-tile__badge {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.profile-actions {
    padding: 0 20px;
}

.profile-actions .btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--panel-gradient);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--card-shadow);
}

.page button#btn-logout {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-link {
    display: block;
    margin: 16px 20px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 700;
}

.profile-tab {
    padding: 8px 20px 24px;
}

.profile-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.profile-item strong {
    flex: 1;
    font-weight: 600;
}

.profile-item span {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-2-soft);
    color: var(--accent-2);
    font-weight: 600;
}

.profile-item a {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.notif-row {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s;
}

.notif-row.read {
    opacity: 0.55;
}

.notif-row small {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 6px;
}

.chat-link {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

/* ─── Chat ─── */
.chat-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.chat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    padding-top: max(14px, env(safe-area-inset-top));
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.chat-header button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 1.125rem;
    cursor: pointer;
}

.chat-header span {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 0.9375rem;
    padding-right: 40px;
}

.chat-summary {
    padding: 18px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.chat-summary__row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.chat-summary__label {
    color: var(--text-dim);
    min-width: 90px;
    font-weight: 600;
}

.chat-summary__value {
    color: var(--text);
    font-weight: 600;
    flex: 1;
}

.chat-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chat-stages button {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.chat-stages button:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.chat-stages #btn-complete {
    background: var(--accent-2-soft);
    border-color: rgba(45, 212, 191, 0.3);
    color: var(--accent-2);
}

.btn-dispute {
    color: var(--danger) !important;
    border-color: rgba(248, 113, 113, 0.3) !important;
}

.chat-status-card {
    margin: 10px 16px 0;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(255, 122, 89, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.32);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.chat-status-card--waiting {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(100, 116, 139, 0.06));
    border-color: var(--border);
    box-shadow: none;
}

.chat-status-card__icon {
    font-size: 1.35rem;
    line-height: 1;
}

.chat-status-card__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.chat-status-card__text strong {
    color: var(--text);
    font-weight: 700;
}

.chat-status-card__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.chat-thread {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 122, 89, 0.04), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.04), transparent 38%);
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 88%;
    min-width: 0;
}

.chat-row--in {
    align-self: flex-start;
}

.chat-row--out {
    align-self: flex-end;
    justify-content: flex-end;
}

.chat-row__avatar {
    width: 32px;
    flex-shrink: 0;
}

.chat-row__avatar--spacer {
    visibility: hidden;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--gradient-brand);
    overflow: hidden;
}

.chat-avatar.user-avatar--photo {
    padding: 0;
}

.chat-bubble {
    position: relative;
    max-width: 100%;
    min-width: 0;
    padding: 9px 12px 7px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-bubble--in {
    background: var(--panel-gradient);
    border: 1px solid var(--card-border);
    border-bottom-left-radius: 6px;
}

.chat-bubble--out {
    background: linear-gradient(135deg, #ff7a59, #ff3d71);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.chat-bubble__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.42;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.chat-bubble__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 2px;
    font-size: 0.6875rem;
    line-height: 1;
    opacity: 0.72;
}

.chat-bubble--out .chat-bubble__footer {
    opacity: 0.9;
}

.chat-bubble__footer time {
    font-variant-numeric: tabular-nums;
}

.chat-ticks {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    line-height: 1;
    letter-spacing: -0.12em;
}

.chat-ticks--read span:last-child {
    margin-left: -0.42em;
    color: #b8f5ff;
}

.chat-sys {
    display: flex;
    justify-content: center;
    padding: 6px 16px;
}

.chat-sys--first {
    margin-top: 6px;
}

.chat-sys__pill {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 92%;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
}

.chat-sys__pill--has-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px 12px;
}

.chat-sys__head {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.chat-sys--deal_start .chat-sys__pill {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.24);
}

.chat-sys--status_propose .chat-sys__pill {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.28);
}

.chat-sys--status_confirm .chat-sys__pill {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.24);
}

.chat-sys--status_reject .chat-sys__pill {
    background: rgba(255, 61, 113, 0.1);
    border-color: rgba(255, 61, 113, 0.24);
}

.chat-sys--status_cancel .chat-sys__pill {
    background: rgba(255, 61, 113, 0.12);
    border-color: rgba(255, 61, 113, 0.28);
}

.chat-sys__icon {
    flex-shrink: 0;
    font-size: 0.9rem;
    line-height: 1.35;
}

.chat-sys__text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.chat-sys__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-sys__hint {
    display: block;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.85;
}

.chat-form--disabled {
    opacity: 0.55;
}

.chat-status-select-wrap {
    display: flex;
    align-items: center;
    height: 42px;
    flex-shrink: 0;
}

.chat-topbar-tools .chat-status-select,
.chat-status-select {
    appearance: none;
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 21px;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text);
    color-scheme: dark;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0 30px 0 14px;
    line-height: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    max-width: 148px;
    cursor: pointer;
    transition: transform 0.16s var(--ease-out), background 0.16s var(--ease-out);
}

.chat-topbar-tools .chat-status-select option,
.chat-status-select option {
    background-color: #1e1e2e;
    color: #ffffff;
}

.chat-topbar-tools .chat-status-select:active:not(:disabled),
.chat-status-select:active:not(:disabled) {
    transform: scale(var(--tap-scale));
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-status-select:disabled {
    opacity: 0.65;
}

.deal-card {
    margin: 10px 16px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.deal-card__row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.deal-card__block {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: var(--panel-gradient);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.deal-card__swap {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1;
}

.deal-card__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deal-card__thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.deal-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deal-card__thumb-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 1rem;
}

.deal-card__title {
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.deal-card__author {
    font-size: 0.625rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.deal-chip {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
}

.deal-chip--discussion,
.deal-chip--accepted {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.deal-chip--agreed,
.deal-chip--meeting,
.deal-chip--shipping {
    color: var(--accent-2);
    background: rgba(45, 212, 191, 0.12);
}

.deal-chip--completed {
    color: var(--success);
    background: rgba(74, 222, 128, 0.12);
}

.deal-chip--cancelled,
.deal-chip--disputed {
    color: #ffb4a8;
    background: rgba(255, 61, 113, 0.12);
}

.list-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.list-card__title-row .list-card__title {
    min-width: 0;
}

/* ─── Chats list cards ─── */
.list-page--chats {
    padding-top: 8px;
}

.list-stack--chats {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    gap: 8px;
    margin: 0 16px 24px;
}

.chat-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 14px;
    background: var(--panel-gradient);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    color: inherit;
    overflow: hidden;
    transition: background 0.15s var(--ease-out), transform 0.12s var(--ease-out), border-color 0.15s;
}

.chat-card__link {
    flex: 1;
    min-width: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

.chat-card:active {
    transform: scale(0.985);
    background: rgba(255, 255, 255, 0.08);
}

.chat-card__menu-anchor {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-right: 6px;
}

.chat-card__menu {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.chat-card__menu:active {
    background: rgba(255, 255, 255, 0.08);
}

.chat-card__muted {
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.75;
}

.chats-filter-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chats-filter-tabs::-webkit-scrollbar {
    display: none;
}

.chats-filter-tab {
    flex-shrink: 0;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.chats-filter-tab.is-active {
    color: #fff;
    border-color: rgba(255, 107, 74, 0.55);
    background: rgba(255, 107, 74, 0.18);
}

.chat-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.chat-mute-btn svg {
    width: 20px;
    height: 20px;
}

.chat-mute-btn--muted {
    color: var(--text-dim);
    opacity: 0.85;
}

.chat-bubble--mod {
    border-color: rgba(10, 132, 255, 0.45);
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.18), rgba(10, 132, 255, 0.08));
}

.chat-bubble__role {
    display: block;
    margin-bottom: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(10, 132, 255, 0.95);
}

.chat-avatar--mod {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    background: rgba(10, 132, 255, 0.2);
    border: 1px solid rgba(10, 132, 255, 0.35);
}

.pick-sheet__option--warn {
    color: #ff8a80;
    border-color: rgba(255, 61, 113, 0.35);
}

.chat-card:active {
    transform: scale(0.985);
    background: rgba(255, 255, 255, 0.08);
}

.chat-card--unread {
    border-color: rgba(255, 61, 113, 0.45);
    background:
        linear-gradient(135deg, rgba(255, 61, 113, 0.12), rgba(255, 61, 113, 0.04) 48%),
        var(--surface-card);
}

.chat-card__swap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 0.5px solid var(--separator);
}

.chat-card__item {
    flex: 1;
    min-width: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-card__item--give {
    text-align: right;
    color: rgba(255, 255, 255, 0.72);
}

.chat-card--unread .chat-card__item--give {
    color: rgba(255, 255, 255, 0.88);
}

.chat-card__arrow {
    flex-shrink: 0;
    font-size: 0.625rem;
    line-height: 1;
    color: var(--text-dim);
    opacity: 0.85;
}

.chat-card__main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-width: 0;
}

.chat-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fff;
    background: var(--gradient-brand);
    overflow: hidden;
}

.chat-card__avatar.user-avatar--photo {
    padding: 0;
}

.chat-card__avatar.user-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-card__body {
    flex: 1;
    min-width: 0;
}

.chat-card__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    min-width: 0;
}

.chat-card__name {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-card--unread .chat-card__name {
    color: #fff;
}

.chat-card__status {
    flex-shrink: 0;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.3;
}

.chat-card__status--discussion,
.chat-card__status--accepted {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
}

.chat-card__status--agreed,
.chat-card__status--meeting,
.chat-card__status--shipping {
    color: #5eead4;
    background: rgba(45, 212, 191, 0.14);
}

.chat-card__status--completed {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.14);
}

.chat-card__status--cancelled,
.chat-card__status--disputed {
    color: #ffb4a8;
    background: rgba(255, 61, 113, 0.14);
}

.chat-card__time {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-dim);
    line-height: 1;
}

.chat-card--unread .chat-card__time {
    color: rgba(255, 255, 255, 0.55);
}

.chat-card__preview {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-card--unread .chat-card__preview {
    color: rgba(255, 255, 255, 0.78);
}

.chat-card__preview-from {
    color: var(--accent);
    font-weight: 600;
    margin-right: 4px;
}

.chat-card--unread .chat-card__preview-from {
    color: #ff9aab;
}

.chat-card__preview-text--empty {
    font-style: italic;
    opacity: 0.7;
}

.chat-card__preview-text--system {
    font-style: italic;
    opacity: 0.85;
}

.chat-card__badge {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff3d71;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(255, 61, 113, 0.45);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-form {
    display: flex;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    gap: 10px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.chat-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
    font-size: max(16px, 1rem);
    outline: none;
}

.chat-form input:focus {
    border-color: var(--accent);
}

.chat-form button {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

.review-box {
    padding: 20px;
    text-align: center;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.review-box p {
    font-weight: 600;
    margin-bottom: 12px;
}

.stars button {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fbbf24;
    cursor: pointer;
    transition: transform 0.15s;
}

.stars button:active {
    transform: scale(1.2);
}

/* ─── List pages (chats, items) ─── */
.list-page {
    padding-top: 12px;
}

.chats-push-toggle {
    margin: 0 20px 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(10, 132, 255, 0.12);
    border: 1px solid rgba(10, 132, 255, 0.28);
}

.chats-push-toggle__text {
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.chats-push-toggle__hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-dim);
}

.chats-push-toggle__btn {
    width: 100%;
}

.list-page--items .list-stack--full,
.list-page--likes .list-stack--full {
    padding-top: 0;
    overflow: visible;
}

.list-page--items,
.list-page--likes {
    overflow: visible;
}

.items-filter-tabs {
    padding-top: 4px;
}

.items-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(255, 214, 10, 0.22);
    color: #ffd60a;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

.items-draft-section {
    margin: 0 16px 20px;
    padding: 14px 0 0;
}

.items-published-section {
    margin-top: 8px;
}

.items-section-head {
    padding: 0 4px 10px;
}

.items-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.items-section-hint {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.35;
}

.list-stack--drafts {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 214, 10, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px dashed rgba(255, 214, 10, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.08);
    overflow: hidden;
}

.list-stack--drafts .item-row:last-child {
    border-bottom: none;
}

.items-add-hint {
    display: flex;
    justify-content: center;
    padding: 4px 16px 28px;
}

.items-add-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: 1px solid rgba(48, 209, 88, 0.45);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.22), rgba(40, 167, 69, 0.14));
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(48, 209, 88, 0.2);
}

.items-add-cta__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d058, #28a745);
    font-size: 1.25rem;
    line-height: 1;
}

.items-add-cta:active {
    transform: scale(0.98);
}

.item-row--draft {
    background: rgba(255, 214, 10, 0.04);
}

.item-row__badge--draft {
    background: rgba(255, 214, 10, 0.18);
    color: #ffd60a;
    border: 1px solid rgba(255, 214, 10, 0.28);
}

.list-stack--full {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 16px 24px;
    background: var(--panel-gradient);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.list-stack--full .empty {
    margin: 0;
    padding: 32px 20px;
}

/* ─── List rows (full-width blocks) ─── */
.item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 0.5px solid var(--separator);
    color: inherit;
    text-align: left;
    font-family: var(--font);
    transition: background 0.15s var(--ease-out);
}

.list-stack--full .item-row:last-child {
    border-bottom: none;
}

.item-row:active,
.item-row__main:active {
    background: rgba(255, 255, 255, 0.04);
}

.item-row--owner {
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.item-row--pick {
    cursor: pointer;
    width: 100%;
}

.item-row--pick:disabled,
.item-row--pick.is-loading {
    opacity: 0.65;
    cursor: wait;
}

.item-row--like {
    padding: 0;
    align-items: stretch;
}

.item-row--like .item-row__main {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
}

.item-row__like-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.item-row__city-line {
    margin: 0;
    width: 100%;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-row__condition-line {
    width: 100%;
}

.item-row__condition-line .chip {
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.item-row--target {
    border-bottom: none;
    background: var(--grouped-bg);
}

.item-row__main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 0 12px 16px;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.item-row__thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    position: relative;
}

.item-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-row__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    opacity: 0.45;
}

.item-row__photos {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
}

.item-row__body {
    flex: 1;
    min-width: 0;
}

.item-row__eyebrow {
    margin: 0 0 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.item-row__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-row__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.item-row__meta-sep {
    color: var(--text-dim);
    font-weight: 700;
}

.item-row__city {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-row__desc {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-dim);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-row__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.item-row__badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 700;
}

.item-row__badge--status {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.item-row__badge--muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.item-row__stat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    align-self: center;
}

.item-row__menu-anchor {
    position: relative;
    flex-shrink: 0;
}

.item-row__aside {
    position: relative;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-right: 8px;
    overflow: visible;
    z-index: 1;
}

.item-row.is-menu-open {
    z-index: 80;
}

.item-row.is-menu-open .item-row__aside {
    z-index: 81;
}

.item-row--owner .item-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 300;
}

.item-menu--portal {
    position: fixed;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: 500;
    margin: 0;
    pointer-events: auto;
}

.item-row__menu {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.item-row__menu:active {
    background: var(--surface-2);
}

.item-row__exchange {
    width: 52px;
    flex-shrink: 0;
    align-self: stretch;
    border: none;
    border-left: 0.5px solid var(--separator);
    background: var(--accent-soft);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-row__exchange svg {
    width: 22px;
    height: 22px;
}

.item-row__pick {
    flex-shrink: 0;
    padding: 0 16px;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.exchange-target-wrap {
    margin: 0 0 12px;
}

/* ─── Product card (detail page only) ─── */
.pc {
    position: relative;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.pc--detail {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.pc__hero {
    position: relative;
    background: var(--surface-2);
    overflow: hidden;
}

.pc__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc__hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    opacity: 0.4;
}

.pc__glass {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    align-items: stretch;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
}

.pc__glass-cell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pc__glass-divider {
    width: 1px;
    margin: 4px 6px;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.pc__glass-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8125rem;
}

.pc__glass-text {
    min-width: 0;
}

.pc__glass-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.2;
}

.pc__glass-value {
    display: block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc__dots {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 12;
    pointer-events: none;
}

.pc__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s, background 0.2s;
    pointer-events: auto;
    cursor: pointer;
}

.pc__dot.is-active {
    width: 18px;
    border-radius: 999px;
    background: #fff;
}

.pc__gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.pc__gallery-nav:active {
    transform: translateY(-50%) scale(0.94);
    background: rgba(0, 0, 0, 0.68);
}

.pc__photo-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 12;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.pc__gallery-nav--prev { left: 12px; }
.pc__gallery-nav--next { right: 12px; }

.pc__sheet {
    position: relative;
    margin-top: -18px;
    padding: 16px 16px 14px;
    background: var(--surface);
    border-radius: 22px 22px 0 0;
    z-index: 2;
}

.pc__sheet--detail {
    margin-top: -28px;
    padding: 20px 20px 12px;
    border-radius: 32px 32px 0 0;
    background: var(--bg);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.pc__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pc__chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}

.pc__chip--soft {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.pc__chip--warn {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.pc__title {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc__title--detail {
    font-size: 1.625rem;
    margin-bottom: 10px;
    -webkit-line-clamp: 3;
}

.pc__desc-wrap {
    margin-bottom: 14px;
}

.pc__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc__desc.is-expanded,
.pc__desc--full {
    display: block;
    -webkit-line-clamp: unset;
    white-space: pre-wrap;
}

.pc__desc--empty {
    font-style: italic;
    opacity: 0.7;
}

.pc__desc-more {
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.pc__person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 0.5px solid var(--separator);
}

.pc__person--owner {
    border-color: rgba(255, 107, 74, 0.28);
}

.pc__person-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
}

.pc__person-body {
    flex: 1;
    min-width: 0;
}

.pc__person-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pc__person-meta {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pc__person-badge {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pc-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 0.5px solid var(--separator);
}

.pc-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pc-footer__bar--single {
    display: block;
}

.pc-footer__info {
    flex-shrink: 0;
    min-width: 0;
}

.pc-footer__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.pc-footer__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pc-footer__chip {
    margin-top: 2px;
}

.pc-footer__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.pc-footer__ghost {
    padding: 12px 14px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.pc-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(255, 107, 74, 0.38);
    flex-shrink: 0;
}

.pc-footer__cta--wide {
    width: 100%;
}

.pc-footer__cta svg {
    width: 20px;
    height: 20px;
}

.list-page .page-header--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.btn-primary--compact {
    padding: 10px 16px;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.list-stack {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--panel-gradient);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    margin: 0 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-bottom: 0.5px solid var(--separator);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s var(--ease-out);
}

.list-card--unread {
    background: rgba(255, 61, 113, 0.06);
}

.list-card--unread .list-card__title {
    color: #fff;
}

.list-card__body {
    min-width: 0;
    flex: 1;
}

.list-card__preview {
    display: block;
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-card--unread .list-card__preview {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.list-card__badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.list-card__badge--hot {
    background: linear-gradient(135deg, #ff7a59, #ff3d71);
    box-shadow: 0 0 12px rgba(255, 61, 113, 0.65);
    animation: inbox-badge-pulse 2.2s ease-in-out infinite;
}

.inbox-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 16px 16px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.16), rgba(255, 61, 113, 0.12));
    border: 1px solid rgba(255, 122, 89, 0.35);
    text-decoration: none;
    color: inherit;
}

.inbox-banner__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3d71;
    box-shadow: 0 0 10px rgba(255, 61, 113, 0.85);
    animation: inbox-badge-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

.inbox-banner__text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
}

.inbox-banner__chevron {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
}

.list-page--items .list-stack--full {
    margin-top: 0;
}

.list-page--proposals .list-stack {
    margin: 0 16px 24px;
}

.proposal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 0.5px solid var(--separator);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s var(--ease-out);
}

.proposal-row:last-child {
    border-bottom: none;
}

.proposal-row:active {
    background: rgba(255, 255, 255, 0.04);
}

.proposal-row--unread {
    background: rgba(255, 61, 113, 0.06);
}

.proposal-row__thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface);
}

.proposal-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proposal-row__thumb-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
}

.proposal-row__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.proposal-row__target,
.proposal-row__offered {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
}

.proposal-row__target {
    font-weight: 600;
}

.proposal-row__offered,
.proposal-row__meta {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.proposal-row--unread .proposal-row__meta {
    color: rgba(255, 255, 255, 0.78);
}

.proposal-row__reason {
    color: #ffb4a8;
}

.proposal-row__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.proposal-row__status {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
}

.proposal-row__status--pending {
    color: var(--warning);
    background: rgba(251, 191, 36, 0.12);
}

.proposal-row__status--accepted {
    color: var(--success);
    background: rgba(74, 222, 128, 0.12);
}

.proposal-row__status--rejected {
    color: #ffb4a8;
    background: rgba(255, 61, 113, 0.12);
}

.proposal-row__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3d71;
    box-shadow: 0 0 8px rgba(255, 61, 113, 0.7);
    animation: inbox-badge-pulse 2.2s ease-in-out infinite;
}

.proposal-row__chevron {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
}

.proposal-status-banner {
    margin: 0 16px 12px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proposal-status-banner strong {
    font-size: 0.9375rem;
}

.proposal-status-banner span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.proposal-status-banner--pending {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.proposal-status-banner--accepted {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.28);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.proposal-status-banner--rejected {
    background: rgba(255, 61, 113, 0.1);
    border: 1px solid rgba(255, 61, 113, 0.28);
}

.proposal-status-banner--rejected span {
    color: #ffb4a8;
}

.proposal-status-banner__btn {
    flex-shrink: 0;
    margin-top: 8px;
    align-self: flex-start;
}

.proposal-status-banner--accepted .proposal-status-banner__btn {
    margin-top: 0;
    align-self: center;
}

.item-row__badge--hot {
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.28), rgba(255, 61, 113, 0.22));
    border: 1px solid rgba(255, 122, 89, 0.45);
    color: #ffb4a8;
    box-shadow: 0 0 10px rgba(255, 61, 113, 0.25);
}

.list-card:last-child {
    border-bottom: none;
}

.list-card:active {
    background: rgba(255, 255, 255, 0.04);
}

.list-card--static {
    display: flex;
}

.list-card__title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.list-card__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.list-card__action {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}


.item-proposals__lead {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.item-status-banner {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.item-status-banner--pending_review {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.item-status-banner--hidden,
.item-status-banner--blocked {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.item-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 300;
    min-width: 168px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.item-menu__btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.item-menu__btn:hover {
    background: var(--surface-2);
}

.item-menu__btn--danger {
    color: #ef4444;
}

.archive-sheet__lead {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.archive-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.archive-reason {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.archive-reason:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.archive-reason:disabled {
    opacity: 0.6;
    cursor: wait;
}

.edit-item-preview {
    margin: 0 20px 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
}

.edit-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Item detail page ─── */
.item-detail-page {
    min-height: 100%;
    padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
}

.item-detail-page.page {
    height: auto;
    min-height: 100%;
    overflow: visible;
    padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
}

.item-detail-skeleton {
    min-height: 50vh;
    margin: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

.item-detail-page .pc--detail {
    position: relative;
    width: 100%;
    container-type: inline-size;
}

.item-detail-page .pc__hero--detail {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 50vh;
    min-height: 260px;
}

.item-detail-page .pc__hero--detail[data-swipeable] {
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.item-detail-page .pc__hero--detail[data-swipeable].is-swiping {
    cursor: grabbing;
}

.item-detail-page .pc__hero-img,
.item-detail-page .pc__hero-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.item-detail-page .pc__dots {
    top: 12px;
    bottom: auto;
    z-index: 12;
}

.item-detail-page .pc__gallery-nav {
    z-index: 12;
}

.item-detail-page .pc__glass--float {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(max(260px, min(100cqw, 50vh)) - 108px);
    bottom: auto;
    z-index: 8;
    margin: 0;
    pointer-events: none;
}

.item-detail-page .pc__sheet--detail {
    position: relative;
    margin-top: -32px;
    padding: 24px 20px 12px;
    border-radius: 28px 28px 0 0;
    background: var(--bg);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.item-detail-page .pc__sheet--detail:has(.item-detail__status) {
    padding-top: 20px;
}

.item-detail-page .item-segments {
    margin: 0 0 14px;
}

.item-detail-page .item-detail__title {
    margin-top: 0;
}

.item-detail-page .item-detail__panel .item-detail__meta-list {
    margin-bottom: 14px;
}

.item-detail-page .item-comments-wrap {
    padding-top: 4px;
}

.item-detail-page .item-detail__panel .pc__desc-wrap {
    margin-bottom: 14px;
}

.item-detail-page .item-detail__body {
    padding: 0;
}

.item-detail-page .item-detail__panel .pc__person {
    margin-top: 0;
    margin-bottom: 12px;
}

.item-detail-page .item-detail__status {
    margin: 0 0 14px;
}

.item-detail-page .item-detail__footer-spacer {
    height: 12px;
}

.item-detail__panel--hidden {
    display: none;
}

.item-detail__panel-lead {
    margin: 0 0 14px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.item-detail__report {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.item-detail__report:active {
    background: rgba(255, 255, 255, 0.04);
}

.item-detail__muted {
    color: var(--text-muted);
    font-size: 0.9375rem;
    padding: 8px 0;
}

.item-detail__status {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.875rem;
}

.item-detail__status strong {
    font-weight: 700;
}

.item-detail__status span {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.item-detail__status--pending_review {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
    border: 0.5px solid rgba(251, 191, 36, 0.28);
}

.item-detail__status--hidden,
.item-detail__status--blocked {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
    border: 0.5px solid rgba(248, 113, 113, 0.28);
}

/* legacy detail gallery (unused) */
.item-detail__hero {
    position: relative;
}

.item-detail__gallery {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 58vh;
    background: var(--surface-2);
    overflow: hidden;
}

.item-detail__gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-detail__gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3.5rem;
    opacity: 0.4;
}

.item-detail__gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.item-detail__gallery-nav--prev { left: 12px; }
.item-detail__gallery-nav--next { right: 12px; }

.item-detail__dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.item-detail__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s var(--ease-out), background 0.2s;
}

.item-detail__dot.is-active {
    width: 18px;
    border-radius: 999px;
    background: #fff;
}

.item-detail__thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.item-detail__thumbs::-webkit-scrollbar {
    display: none;
}

.item-detail__thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-2);
    opacity: 0.65;
    transition: opacity 0.15s, border-color 0.15s;
}

.item-detail__thumb.is-active {
    border-color: var(--accent);
    opacity: 1;
}

.item-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-detail__sheet {
    position: relative;
    margin-top: -20px;
    padding: 0 0 8px;
    background: var(--bg);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
}

.item-detail__status {
    margin: 0 16px 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.875rem;
}

.item-detail__status strong {
    font-weight: 700;
}

.item-detail__status span {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.item-detail__status--pending_review {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
    border: 0.5px solid rgba(251, 191, 36, 0.28);
}

.item-detail__status--hidden,
.item-detail__status--blocked {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
    border: 0.5px solid rgba(248, 113, 113, 0.28);
}

.item-detail__head {
    padding: 20px 20px 12px;
}

.item-detail__eyebrow {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.item-detail__title {
    margin: 0 0 12px;
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.item-detail__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.item-detail__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.item-detail__chip--soft {
    background: transparent;
    color: var(--text-muted);
    padding-left: 0;
    padding-right: 0;
}

.item-detail__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.item-detail__stat {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.item-segments {
    display: flex;
    gap: 4px;
    margin: 0 0 16px;
    padding: 4px;
    background: var(--surface-2);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.item-segments::-webkit-scrollbar {
    display: none;
}

.item-segments__btn {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 8px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s var(--ease-out), color 0.18s, box-shadow 0.18s;
}

.item-segments__btn em {
    font-style: normal;
    flex-shrink: 0;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.item-segments__count--hot,
.item-segments__btn--hot em {
    background: linear-gradient(135deg, #ff7a59, #ff3d71);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 61, 113, 0.55);
    animation: inbox-badge-pulse 2.2s ease-in-out infinite;
}

.item-segments__btn--hot:not(.is-active) {
    color: #ffb4a8;
}

.item-segments__btn.is-active {
    color: var(--text);
    background: var(--surface-3);
    box-shadow: var(--shadow-sm);
}

.item-detail__body {
    padding: 0 16px 8px;
}

.item-detail__panel--hidden {
    display: none;
}

.item-detail__panel-lead {
    margin: 0 0 14px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.item-detail__person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    background: var(--grouped-bg);
    border-radius: var(--radius-lg);
}

.item-detail__person--owner {
    border: 0.5px solid rgba(255, 107, 74, 0.25);
}

.item-detail__person-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 1.125rem;
}

.item-detail__person-body {
    flex: 1;
    min-width: 0;
}

.item-detail__person-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.item-detail__person-meta {
    display: block;
    margin-top: 2px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.item-detail__person-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.item-detail__meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.item-detail__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: var(--grouped-bg);
    border-radius: var(--radius-md);
}

.item-detail__meta-label {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.item-detail__meta-value {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
}

.item-detail__meta-value strong {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-detail__meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.item-detail__meta-cell {
    padding: 12px 14px;
    background: var(--grouped-bg);
    border-radius: var(--radius-md);
}

.item-detail__meta-cell span {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.item-detail__meta-cell strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.item-detail__meta-chip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.item-detail__desc {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--grouped-bg);
    border-radius: var(--radius-lg);
}

.item-detail__desc--empty {
    padding: 20px 16px;
    text-align: center;
}

.item-detail__desc-title {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.item-detail__desc-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    white-space: pre-wrap;
    color: var(--text);
}

.item-detail__report {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.item-detail__report:active {
    background: rgba(255, 255, 255, 0.04);
}

.item-detail__muted {
    color: var(--text-muted);
    font-size: 0.9375rem;
    padding: 8px 0;
}

.item-detail__footer-spacer {
    height: 8px;
}

.item-detail-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 0.5px solid var(--separator);
}

.item-detail-footer__bar {
    display: flex;
    gap: 10px;
}

.item-detail-footer__bar--single {
    display: block;
}

.item-detail-footer__action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border: none;
    border-radius: 14px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s var(--ease-out), opacity 0.12s;
}

.item-detail-footer__action:active {
    transform: scale(0.98);
}

.item-detail-footer__action--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.item-detail-footer__action--primary {
    background: var(--accent);
    color: #fff;
}

.item-detail-footer__action--wide {
    width: 100%;
}

.item-detail-footer__action svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.item-detail-footer__badge {
    min-width: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 800;
}

.proposal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
}

.proposal-card__body {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: var(--font);
}

.proposal-card__body:hover {
    background: var(--surface-2);
}

.proposal-card__thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
}

.proposal-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proposal-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
}

.proposal-card__info {
    flex: 1;
    min-width: 0;
}

.proposal-card__info strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proposal-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.proposal-card__meta-sep {
    color: var(--text-dim);
    font-weight: 700;
}

.proposal-card__city {
    color: var(--text-muted);
}

.proposal-card__proposer {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.proposal-card__message {
    margin-top: 6px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proposal-card__chevron {
    color: var(--text-dim);
    font-size: 1.25rem;
}

.proposal-card__actions {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.proposal-card__actions .btn-primary,
.proposal-card__actions .btn-secondary {
    flex: 1;
}

.empty--compact {
    padding: 24px 0;
}

.app-menu-btn[hidden],
.app-back-btn[hidden] {
    display: none;
}

.app-back-btn {
    font-size: 20px;
    font-weight: 700;
}

.page-lead {
    padding: 4px 20px 16px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.page-lead--compact {
    padding-top: 12px;
    padding-bottom: 12px;
}

.settings-hero {
    padding: 8px 20px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.stat-grid--compact {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
}

.settings-page .profile-actions {
    padding: 0 20px 24px;
}

.item-detail__report {
    width: 100%;
    margin-top: 16px;
}

.pick-sheet__body {
    padding-top: 0;
}

.pick-sheet__lead {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.pick-sheet__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.filter-sheet.pick-sheet .pick-sheet__option,
.pick-sheet .pick-sheet__option {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px 16px;
    margin: 0;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.pick-sheet .pick-sheet__option:active:not(:disabled) {
    transform: scale(var(--tap-scale));
    background: rgba(255, 255, 255, 0.1);
}

.pick-sheet .pick-sheet__option:disabled {
    opacity: 0.7;
    cursor: wait;
}

.pick-sheet__error {
    margin-top: 12px;
    color: var(--danger);
    font-size: 0.875rem;
}

.pick-sheet__success {
    text-align: center;
    padding: 24px 8px 16px;
}

.pick-sheet__success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.16);
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.pick-sheet__success-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.pick-sheet__success-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.filter-sheet__close svg {
    width: 16px;
    height: 16px;
}

/* ═══ Apple UI — forms, chat, detail, responsive ═══ */
.item-form {
    padding: 8px 16px 24px;
}

.item-form label {
    display: block;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.item-form input,
.item-form textarea,
.item-form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--grouped-bg);
    color: var(--text);
    font-size: 1.0625rem;
    outline: none;
    transition: box-shadow 0.18s var(--ease-out);
}

.item-form input:focus,
.item-form textarea:focus,
.item-form select:focus {
    box-shadow: 0 0 0 2px rgba(255, 107, 74, 0.45);
}

.item-form button[type="submit"] {
    width: 100%;
    margin-top: 8px;
    min-height: 50px;
}

.chat-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.chat-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 0.5px solid var(--separator);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.chat-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--surface-2);
    color: var(--text);
    font-size: max(16px, 1rem);
    outline: none;
}

.chat-form button {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: none;
}

.chat-summary,
.chat-stages {
    margin: 0 16px;
    padding: 12px 14px;
    background: var(--grouped-bg);
    border-radius: var(--radius-lg);
}

.item-detail__sheet {
    background: var(--bg);
}

.proposal-card {
    background: var(--grouped-bg);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
}

.feed-header__filters {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.feed-header__filters:active {
    transform: scale(var(--tap-scale));
    background: rgba(255, 255, 255, 0.14);
}

.feed-header__badge {
    background: var(--accent);
    box-shadow: none;
}

.empty__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 107, 74, 0.16);
    border: 1px solid rgba(255, 107, 74, 0.28);
    font-size: 1.5rem;
}

.empty__title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.exchange-target-card,
.exchange-picker__search-wrap,
.exchange-offer-row {
    background: var(--panel-gradient);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.exchange-offer-row:active {
    background: rgba(255, 255, 255, 0.04);
}

.profile-hero,
.stat-grid {
    background: transparent;
}

.stat-card {
    background: var(--panel-gradient);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-lg);
}

.item-menu {
    background: rgba(24, 24, 38, 0.92);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.list-page,
.profile-page,
.settings-page,
.create-page,
.page {
    background: transparent;
}

.chats-push-toggle,
.item-detail__status,
.proposal-banner {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chat-bubble--in {
    background: var(--panel-gradient);
    border: 1px solid var(--card-border);
}

.chat-bubble--out {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.92), rgba(255, 90, 100, 0.88));
}

.chat-form {
    background: rgba(8, 8, 15, 0.55);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--card-border);
}

.chat-form input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
}

.item-detail-page .pc__sheet--detail {
    background:
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 107, 74, 0.08), transparent 55%),
        rgba(12, 12, 20, 0.88);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--card-border);
}

.pc__sheet--detail {
    background:
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 107, 74, 0.06), transparent 55%),
        rgba(14, 14, 22, 0.9);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.profile-form__group,
.settings-group {
    background: var(--panel-gradient);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.comment-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
}

.topbar-circle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar-search-field {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 400px) and (hover: hover) and (pointer: fine) {
    html {
        background: #030308;
    }

    body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100dvh;
        overflow-x: auto;
        overflow-y: hidden;
        background:
            radial-gradient(ellipse 55% 45% at 50% 0%, rgba(255, 107, 74, 0.07), transparent 60%),
            #050508;
        background-attachment: fixed;
    }

    .app-desktop {
        flex-shrink: 0;
    }

    .feed-container,
    .feed-viewport,
    .feed-body {
        height: 100% !important;
        max-height: 100% !important;
    }

    .feed-slide {
        height: var(--feed-slide-h, 100%);
        min-height: var(--feed-slide-h, 100%);
        contain-intrinsic-size: auto 100%;
    }
}

@media (min-width: 400px) and (max-width: 599px) and (hover: hover) and (pointer: fine) {
    :root {
        --content-max: min(420px, calc(100vw - 40px));
        --shell-height: min(calc(100dvh - 40px), 900px);
        --topbar-h: 56px;
    }

    .app-desktop {
        width: var(--content-max);
        max-width: var(--content-max);
        height: var(--shell-height);
        max-height: var(--shell-height);
    }

    .app-stage-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
        position: relative;
        height: var(--shell-height);
        max-height: var(--shell-height);
    }

    .app-stage-wrap {
        height: 100%;
    }

    #app {
        margin: 0;
        max-width: none;
        width: 100%;
        height: 100%;
        font-size: 17px;
        transform: translateZ(0);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.07),
            0 20px 70px rgba(0, 0, 0, 0.55);
        overflow: hidden;
        border-radius: 28px;
    }

    .feed-next-btn:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: calc(100% + 14px);
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 50%;
        background: rgba(20, 20, 32, 0.88);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        color: #fff;
        cursor: pointer;
        z-index: 6;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        transition: background 0.18s var(--ease-out), transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
    }

    .feed-next-btn svg {
        width: 22px;
        height: 22px;
    }

    .feed-next-btn:hover {
        background: rgba(32, 32, 48, 0.95);
        border-color: rgba(255, 107, 74, 0.45);
    }

    .feed-next-btn:active {
        transform: translateX(-50%) scale(0.94);
    }
}

@media (min-width: 600px) and (hover: hover) and (pointer: fine) {
    :root {
        --shell-width: clamp(360px, 28vw, 440px);
        --shell-height: min(calc(100dvh - 40px), 900px);
        --sidebar-dock-width: clamp(220px, 16vw, 280px);
        --filters-dock-width: clamp(220px, 16vw, 280px);
        --desktop-gap: 16px;
        --topbar-h: 56px;
    }

    .app-desktop--dock {
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: var(--desktop-gap);
        width: auto;
        height: var(--shell-height);
        max-height: var(--shell-height);
        padding: 0;
        overflow: visible;
    }

    .app-desktop--dock .app-sidebar {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        transform: none;
        width: var(--sidebar-dock-width);
        height: var(--shell-height);
        max-height: var(--shell-height);
        flex-shrink: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 20px;
        transition: none;
        z-index: 1;
        font-size: 17px;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.07),
            0 16px 48px rgba(0, 0, 0, 0.45);
    }

    .app-desktop--dock .app-sidebar.open {
        transform: none;
    }

    .app-desktop--dock .app-sidebar-brand {
        padding: 22px 20px 18px;
        gap: 14px;
    }

    .app-desktop--dock .app-brand-mark {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .app-desktop--dock .app-sidebar-account {
        padding: 0 16px 16px;
    }

    .app-desktop--dock .app-account-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .app-desktop--dock .app-user-avatar--lg {
        width: 48px;
        height: 48px;
    }

    .app-desktop--dock .app-sidebar-nav {
        padding: 4px 12px;
        gap: 4px;
    }

    .app-desktop--dock .app-nav-link {
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .app-desktop--dock .app-sidebar-foot {
        padding: 12px 16px 16px;
        gap: 10px;
    }

    .app-desktop--dock .app-sidebar-logout,
    .app-desktop--dock .btn-vk--sidebar {
        padding: 13px 16px;
        font-size: 1rem;
    }

    .app-desktop--dock .app-stage-wrap {
        position: relative;
        width: var(--shell-width);
        height: var(--shell-height);
        max-height: var(--shell-height);
        flex-shrink: 0;
        border-radius: 28px;
        overflow: hidden;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.08),
            0 0 0 8px rgba(255, 255, 255, 0.02),
            0 24px 72px rgba(0, 0, 0, 0.62);
    }

    .app-desktop--dock .app-stage-column {
        height: var(--shell-height);
        max-height: var(--shell-height);
        width: var(--shell-width);
        flex-shrink: 0;
    }

    .app-desktop--dock #app {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        font-size: 17px;
        border-radius: 0;
        box-shadow: none;
        transform: translateZ(0);
        overflow: hidden;
    }

    .app-desktop--dock .item-quiz,
    .app-desktop--dock .list-page,
    .app-desktop--dock .settings-page,
    .app-desktop--dock .create-page,
    .app-desktop--dock .profile-page,
    .app-desktop--dock .chat-page {
        max-width: 100%;
    }

    .app-desktop--dock .app-overlay {
        display: none !important;
    }

    .app-desktop--dock .topbar-menu-btn {
        visibility: hidden;
        pointer-events: none;
    }

    .app-desktop--dock .app-topbar__lead:has(.topbar-menu-btn[hidden]):not(:has(.topbar-back-btn:not([hidden]))) {
        width: 0;
        margin: 0;
        overflow: hidden;
    }

    .feed-filters-dock {
        display: none;
        flex-direction: column;
        width: var(--filters-dock-width);
        height: var(--shell-height);
        max-height: var(--shell-height);
        flex-shrink: 0;
        border-radius: 20px;
        overflow: hidden;
        font-size: 15px;
        background: var(--sidebar-gradient);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        border: 1px solid var(--card-border);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.07),
            0 16px 48px rgba(0, 0, 0, 0.45);
    }

    .app-desktop--feed-filters .feed-filters-dock:not([hidden]) {
        display: flex;
    }

    .feed-filters-dock__inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        min-width: 0;
        overflow: hidden;
    }

    .feed-filters-dock__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 20px 16px 14px;
        flex-shrink: 0;
        border-bottom: 1px solid var(--border);
        min-width: 0;
    }

    .feed-filters-dock__head h2 {
        margin: 0;
        font-size: 1.0625rem;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .feed-filters-dock__badge {
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: var(--radius-full);
        background: var(--accent);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .feed-filters-dock__body {
        flex: 1;
        min-height: 0;
        min-width: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 8px 14px 12px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
        -webkit-overflow-scrolling: touch;
    }

    .feed-filters-dock__body::-webkit-scrollbar {
        width: 5px;
    }

    .feed-filters-dock__body::-webkit-scrollbar-track {
        background: transparent;
    }

    .feed-filters-dock__body::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-full);
    }

    .feed-filters-dock__body::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.32);
    }

    .feed-filters-dock__body .filter-section {
        margin-bottom: 18px;
        min-width: 0;
    }

    .feed-filters-dock__body .filter-options,
    .feed-filters-dock__body .filter-select {
        max-width: 100%;
        min-width: 0;
    }

    .feed-filters-dock__body .filter-options--grid {
        grid-template-columns: 1fr;
    }

    .feed-filters-dock__body .filter-radio,
    .feed-filters-dock__body .filter-check {
        align-items: flex-start;
        gap: 8px;
        padding: 10px 11px;
        font-size: 0.8125rem;
        line-height: 1.35;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    .feed-filters-dock__body .filter-radio input,
    .feed-filters-dock__body .filter-check input {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .feed-filters-dock__body .filter-select {
        padding: 10px 11px;
        font-size: 0.8125rem;
        box-sizing: border-box;
    }

    .feed-filters-dock__foot {
        flex-shrink: 0;
        padding: 12px 14px 16px;
        border-top: 1px solid var(--border);
        min-width: 0;
    }

    .feed-filters-dock__foot .btn-secondary {
        width: 100%;
        min-height: 44px;
        font-size: 0.9375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Слабые / мобильные устройства: меньше blur и градиентов */
@media (max-width: 768px), (pointer: coarse) {
    :root {
        --blur: none;
        --surface: rgba(30, 30, 44, 0.96);
        --surface-2: rgba(42, 42, 58, 0.94);
        --surface-3: rgba(56, 56, 72, 0.92);
        --surface-glass: rgba(16, 16, 26, 0.97);
        --surface-card: rgba(24, 24, 38, 0.96);
        --grouped-bg: rgba(20, 20, 32, 0.94);
        --sidebar-gradient: rgba(12, 12, 20, 0.98);
        --panel-gradient: var(--surface-card);
        --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    body {
        background: linear-gradient(168deg, #12121c 0%, #0a0a12 42%, #06060c 100%);
        background-attachment: scroll;
    }

    *,
    *::before,
    *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .feed-viewport {
        scroll-behavior: auto;
    }

    .feed-skeleton,
    .item-detail-skeleton {
        animation: none;
    }

    .app-nav-badge--hot,
    .inbox-badge--pulse {
        animation: none;
    }
}

/* ─── Legacy compat ─── */
.feed-card__condition { display: none; }
.feed-card__distance,
.feed-card__city { display: none; }
.profile-stats { display: none; }
.profile-links { display: none; }
