:root {
    --color-blue: #419AF8;
    --color-blue-soft: rgba(65, 154, 248, 0.12);
    --color-pink: #FD5A7C;
    --color-yellow: #F1C22E;
    --color-orange: #FF7A51;
    --color-white: #FFFFFF;
    --color-gray: #E4E4E4;
    --color-ink: #2F3035;
    --color-ink-soft: #6B7A90;
    --color-line: #D9E8F8;
    --color-surface: rgba(255, 255, 255, 0.92);
    --shadow-card: 0 24px 64px rgba(44, 77, 120, 0.18);
    --shadow-soft: 0 12px 32px rgba(32, 96, 171, 0.12);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --max-width: 1440px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(241, 194, 46, 0.22), transparent 22%),
        radial-gradient(circle at left top, rgba(253, 90, 124, 0.14), transparent 26%),
        linear-gradient(180deg, #F5FAFF 0%, #FFFFFF 100%);
    color: var(--color-ink);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
    transition: transform 140ms ease, opacity 140ms ease;
}

button:hover:not(.dual-range-thumb) {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

img {
    max-width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}

.app-shell {
    min-height: 100vh;
    position: relative;
}

.app-loader {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    background: rgba(245, 250, 255, 0.88);
    backdrop-filter: blur(12px);
    z-index: 50;
    color: var(--color-blue);
    font-weight: 600;
}

.app-loader.is-visible {
    display: flex;
}

.loader-dot {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: 4px solid rgba(65, 154, 248, 0.16);
    border-top-color: var(--color-blue);
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loadingShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.is-ui-blocked {
    pointer-events: none;
}

.is-surface-loading {
    position: relative;
    isolation: isolate;
}

.is-surface-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(110deg, rgba(255,255,255,0) 12%, rgba(255,255,255,0.78) 46%, rgba(255,255,255,0) 82%);
    background-size: 220% 100%;
    animation: loadingShimmer 1.7s linear infinite;
    opacity: 0.74;
    pointer-events: none;
}

.is-surface-loading > * {
    opacity: 0.78;
}

.loading-bar,
.loading-circle,
.loading-photo-tile,
.feed-card-media-frame-loading,
.likes-card-skeleton .likes-card-preview,
.feed-gift-option-skeleton .feed-gift-option-media,
.details-gallery-tile {
    display: block;
    background:
        linear-gradient(110deg, rgba(65, 154, 248, 0.12) 8%, rgba(255,255,255,0.96) 40%, rgba(65, 154, 248, 0.16) 76%);
    background-size: 220% 100%;
    animation: loadingShimmer 1.7s ease-in-out infinite;
}

.loading-bar {
    width: var(--loading-bar-width, 100%);
    height: var(--loading-bar-height, 12px);
    border-radius: 999px;
    max-width: 100%;
}

.loading-bar.is-pill {
    border-radius: 999px;
}

.loading-bar.is-button {
    border-radius: 18px;
}

.loading-bar.is-panel {
    border-radius: 28px;
}

.loading-bar.is-strong {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
}

.loading-bar.is-heading {
    border-radius: 20px;
}

.loading-circle {
    width: var(--loading-circle-size, 44px);
    height: var(--loading-circle-size, 44px);
    border-radius: 999px;
    flex-shrink: 0;
}

.loading-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feed-card-loading-shell {
    display: grid;
    gap: 10px;
}

.feed-card-media-frame-loading {
    position: relative;
    aspect-ratio: 393 / 852;
    overflow: hidden;
    border-radius: 40px;
    box-shadow: var(--shadow-card);
}

.feed-card-loading-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.feed-card-status-wrap-loading {
    min-height: 44px;
}

.loading-gift-tile {
    aspect-ratio: 1;
    border-radius: 24px;
}

.feed-detail-shell-loading .feed-detail-hero-intro-loading {
    display: grid;
    gap: 10px;
}

.feed-detail-stat.is-loading-card,
.feed-detail-section.is-loading-card,
.message-bubble-skeleton,
.details-surface-loading {
    overflow: hidden;
}

.feed-detail-photo-grid-loading {
    background:
        radial-gradient(circle at top left, rgba(65,154,248,0.12), transparent 42%),
        rgba(240, 247, 255, 0.96);
}

.loading-photo-tile {
    aspect-ratio: 1;
    border-radius: 14px;
}

.likes-card-skeleton {
    pointer-events: none;
}

.likes-card-skeleton .likes-card-preview {
    position: relative;
    aspect-ratio: 184 / 174;
}

.likes-card-skeleton .likes-card-body {
    display: grid;
    gap: 14px;
}

.chat-item-skeleton {
    pointer-events: none;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.chat-loading-shell {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 100%;
}

.message-bubble-skeleton {
    min-width: min(280px, 76%);
    padding: 14px 16px;
    border-radius: 24px;
    display: grid;
    gap: 10px;
    background: rgba(255,255,255,0.88);
}

.message-bubble-skeleton.is-self {
    background: rgba(65, 154, 248, 0.16);
}

.details-gallery-loading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.details-gallery-tile {
    aspect-ratio: 0.86;
    border-radius: 22px;
}

.feed-gift-option-skeleton {
    pointer-events: none;
}

.feed-gift-option-skeleton .feed-gift-option-media {
    min-height: 118px;
    border-radius: 24px;
}

@media (prefers-reduced-motion: reduce) {
    .loader-dot,
    .is-surface-loading::after,
    .loading-bar,
    .loading-circle,
    .loading-photo-tile,
    .feed-card-media-frame-loading,
    .likes-card-skeleton .likes-card-preview,
    .feed-gift-option-skeleton .feed-gift-option-media,
    .details-gallery-tile {
        animation: none !important;
    }
}

.screen {
    padding: 24px;
}

.landing-page,
.auth-layout {
    max-width: var(--max-width);
    margin: 0 auto;
}

.surface {
    background: var(--color-surface);
    border: 1px solid rgba(65, 154, 248, 0.14);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-xl);
}

.landing-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(65, 154, 248, 0.14);
    box-shadow: var(--shadow-soft);
    border-radius: 28px;
    backdrop-filter: blur(18px);
}

.landing-logo {
    width: 72px;
}

.landing-menu,
.landing-header-actions,
.language-cluster,
.landing-hero-actions,
.landing-trust-grid,
.landing-feature-list,
.landing-footer-links,
.panel-brand,
.social-head,
.header-brand,
.header-meta,
.chat-peer,
.media-head,
.picker-head,
.aside-block,
.chat-list-header,
.view-header,
.profile-header-actions,
.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-menu {
    justify-content: center;
    flex-wrap: wrap;
}

.landing-menu-link,
.landing-footer-links a,
.landing-brand {
    text-decoration: none;
    color: inherit;
}

.landing-menu-link {
    color: var(--color-ink-soft);
    font-size: 0.94rem;
    font-weight: 600;
}

.landing-header-actions {
    justify-content: flex-end;
}

.language-cluster {
    gap: 10px;
}

.language-pill {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(65, 154, 248, 0.08);
    color: var(--color-ink);
    font-weight: 700;
}

.language-pill.is-active {
    background: rgba(65, 154, 248, 0.16);
    box-shadow: inset 0 0 0 1px rgba(65, 154, 248, 0.18);
}

.language-flag {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(47, 48, 53, 0.08);
}

.language-flag-uk {
    background: linear-gradient(180deg, #419AF8 0 50%, #F1C22E 50% 100%);
}

.language-flag-ru {
    background: linear-gradient(180deg, #FFFFFF 0 33%, #419AF8 33% 66%, #FD5A7C 66% 100%);
}

.language-flag-en {
    background: #012169 url("/assets/images/flag_en.svg") center / cover no-repeat;
}

.landing-main {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.landing-hero,
.landing-section,
.landing-cta-band,
.landing-footer,
.auth-panel-surface {
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(65, 154, 248, 0.14);
    box-shadow: var(--shadow-soft);
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 520px);
    gap: 24px;
    min-height: 700px;
    position: relative;
    padding: 44px;
    color: var(--color-white);
    background:
        linear-gradient(120deg, rgba(29, 105, 206, 0.95), rgba(65, 154, 248, 0.88)),
        url("https://static.tildacdn.one/tild3965-6538-4761-b336-653437353736/Fon.png") center/cover no-repeat;
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: auto -6% -18% auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 68%);
    pointer-events: none;
}

.landing-hero-copy,
.landing-showcase-copy,
.landing-hero-media,
.auth-copy-panel,
.auth-copy-body,
.auth-copy-points,
.auth-copy-point,
.auth-form-panel,
.auth-actions {
    display: grid;
    gap: 22px;
}

.landing-hero-copy,
.landing-showcase-copy {
    align-content: center;
    position: relative;
    z-index: 1;
}

.landing-eyebrow,
.landing-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-kicker {
    background: rgba(65, 154, 248, 0.09);
    color: var(--color-blue);
}

.landing-hero-copy h1,
.auth-copy-body h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 5.1rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.landing-hero-copy p,
.landing-section-head p,
.landing-showcase-copy p,
.landing-footer-brand p,
.landing-feature-item span,
.landing-value-card p,
.landing-card p,
.landing-founder-body p,
.auth-copy-body p,
.auth-copy-point span {
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}

.landing-hero-copy p,
.auth-copy-body p,
.auth-copy-point span {
    color: rgba(255, 255, 255, 0.9);
}

.landing-primary-button,
.landing-secondary-button,
.primary-button,
.secondary-button,
.ghost-button,
.text-button {
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
}

.landing-primary-button,
.primary-button {
    background: linear-gradient(180deg, #419AF8 0%, #2F87EA 100%);
    color: var(--color-white);
}

.landing-secondary-button,
.secondary-button {
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-blue);
    border: 1px solid rgba(65, 154, 248, 0.18);
}

.ghost-button,
.text-button {
    background: rgba(65, 154, 248, 0.09);
    color: var(--color-blue);
}

.ghost-button.is-active {
    background: linear-gradient(180deg, rgba(65, 154, 248, 0.16) 0%, rgba(47, 135, 234, 0.2) 100%);
    color: var(--color-blue);
    border: 1px solid rgba(65, 154, 248, 0.24);
    box-shadow: 0 16px 28px rgba(47, 135, 234, 0.14);
}

.landing-trust-grid {
    flex-wrap: wrap;
    margin-top: 8px;
}

.landing-trust-card {
    min-width: 146px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 6px;
}

.landing-trust-card strong {
    font-size: 1.2rem;
}

.landing-trust-card span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.landing-hero-media {
    align-content: center;
    position: relative;
    z-index: 1;
}

.landing-phone-card,
.landing-shot-card {
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 60px rgba(20, 68, 134, 0.24);
    backdrop-filter: blur(18px);
}

.landing-phone-card {
    padding: 22px;
    justify-self: center;
}

.landing-phone-image {
    width: min(100%, 340px);
}

.landing-shot-card {
    padding: 12px;
    position: absolute;
    max-width: 250px;
}

.landing-shot-card img {
    border-radius: 26px;
}

.landing-shot-card-top {
    top: 52px;
    left: 0;
}

.landing-shot-card-bottom {
    right: 0;
    bottom: 42px;
}

.landing-section,
.landing-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 34px;
}

.landing-section-head {
    display: grid;
    gap: 14px;
    max-width: 720px;
    margin-bottom: 26px;
}

.landing-section-head h2,
.landing-showcase-copy h2,
.landing-cta-band h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.landing-card-grid,
.landing-value-grid,
.landing-founder-grid {
    display: grid;
    gap: 18px;
}

.landing-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card,
.landing-value-card,
.landing-founder-card,
.landing-gallery-card {
    background: rgba(65, 154, 248, 0.04);
    border: 1px solid rgba(65, 154, 248, 0.1);
    border-radius: 30px;
    overflow: hidden;
}

.landing-card,
.landing-value-card {
    padding: 24px;
    display: grid;
    gap: 14px;
}

.landing-card h3,
.landing-value-card h3,
.landing-founder-body h3,
.landing-feature-item strong,
.panel-brand h2,
.view-header h2,
.picker-head h3,
.chat-list-header h3,
.media-head h3,
.brand-name,
.social-head strong {
    margin: 0;
}

.landing-card-accent {
    width: 62px;
    height: 8px;
    border-radius: 999px;
}

.accent-blue { background: var(--color-blue); }
.accent-pink { background: var(--color-pink); }
.accent-yellow { background: var(--color-yellow); }
.accent-orange { background: var(--color-orange); }
.accent-blue-soft { background: rgba(65, 154, 248, 0.46); }
.accent-pink-soft { background: rgba(253, 90, 124, 0.46); }

.landing-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}

.landing-feature-list {
    flex-direction: column;
    align-items: stretch;
}

.landing-feature-item {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(65, 154, 248, 0.06);
    display: grid;
    gap: 8px;
}

.landing-showcase-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.landing-gallery-card img,
.landing-founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-gallery-card img {
    aspect-ratio: 0.88;
}

.landing-founder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-founder-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.landing-founder-photo {
    min-height: 100%;
}

.landing-founder-body {
    padding: 24px;
    display: grid;
    gap: 12px;
}

.landing-founder-role {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-blue);
}

.landing-value-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-cta-band {
    padding: 34px;
    background: linear-gradient(135deg, rgba(65, 154, 248, 0.12), rgba(253, 90, 124, 0.14), rgba(241, 194, 46, 0.18));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.landing-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 8px;
}

.landing-footer-brand {
    display: grid;
    gap: 14px;
    max-width: 520px;
}

.landing-footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-footer-links a {
    color: var(--color-ink-soft);
    font-size: 0.92rem;
}

.auth-layout {
    min-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 480px);
    gap: 24px;
}

.auth-panel-surface {
    background: rgba(255, 255, 255, 0.96);
}

.auth-copy-panel {
    padding: 28px;
    color: var(--color-white);
    background:
        linear-gradient(135deg, rgba(35, 114, 223, 0.95), rgba(65, 154, 248, 0.88)),
        url("https://static.tildacdn.one/tild3965-6538-4761-b336-653437353736/Fon.png") center/cover no-repeat;
}

.auth-copy-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.auth-back-button,
.auth-language-control {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-language-control img {
    width: 18px;
    height: 18px;
}

.auth-language-control select {
    border: 0;
    background: transparent;
    color: inherit;
    outline: none;
}

.auth-logo {
    width: 76px;
}

.auth-copy-body {
    align-content: center;
}

.auth-copy-point {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-copy-point strong {
    font-size: 1rem;
}

.auth-form-panel {
    padding: 32px;
    align-content: center;
}

.panel-brand p,
.view-header p,
.media-head p,
.aside-block p,
.picker-head span {
    margin: 4px 0 0;
    color: var(--color-ink-soft);
    line-height: 1.55;
}

small {
    color: var(--color-ink-soft);
}

.panel-brand img {
    width: 42px;
}

.auth-actions {
    margin-top: 8px;
}

.stack,
.field,
.picker-block,
.profile-form,
.chat-list,
.photo-grid {
    display: grid;
    gap: 16px;
}

.field span,
.checkbox-field span,
.aside-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    min-height: 54px;
    padding: 14px 16px;
    color: var(--color-ink);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-field input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-blue);
}

.social-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(65, 154, 248, 0.18);
    background: var(--color-blue-soft);
}

.social-head img {
    width: 26px;
    height: 26px;
}

.social-head span {
    display: block;
    margin-top: 2px;
    color: var(--color-ink-soft);
    font-size: 0.9rem;
}

.google-button-host iframe,
.google-button-host div {
    width: 100% !important;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid var(--color-line);
}

.divider span {
    position: relative;
    padding: 0 12px;
    background: var(--color-surface);
    color: var(--color-ink-soft);
    font-size: 0.88rem;
}

.legal-text {
    margin-top: 4px;
    color: var(--color-ink-soft);
    font-size: 0.88rem;
    line-height: 1.7;
}
}

.panel-brand h2,
.view-header h2,
.picker-head h3,
.chat-list-header h3,
.media-head h3,
.brand-name,
.social-head strong {
    margin: 0;
}

.panel-brand p,
.view-header p,
.media-head p,
.aside-block p,
.picker-head span {
    margin: 4px 0 0;
    color: var(--color-ink-soft);
    line-height: 1.55;
}

small {
    color: var(--color-ink-soft);
}

.panel-brand img {
    width: 42px;
}

.auth-actions {
    margin-top: 24px;
}

.stack,
.field,
.picker-block,
.profile-form,
.chat-list,
.photo-grid {
    display: grid;
    gap: 16px;
}

.field span,
.checkbox-field span,
.aside-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    min-height: 54px;
    padding: 14px 16px;
    color: var(--color-ink);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-field input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-blue);
}

.social-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(65, 154, 248, 0.18);
    background: var(--color-blue-soft);
}

.social-head img {
    width: 26px;
    height: 26px;
}

.social-head span {
    display: block;
    margin-top: 2px;
    color: var(--color-ink-soft);
    font-size: 0.9rem;
}

.google-button-host iframe,
.google-button-host div {
    width: 100% !important;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid var(--color-line);
}

.divider span {
    position: relative;
    padding: 0 12px;
    background: var(--color-surface);
    color: var(--color-ink-soft);
    font-size: 0.88rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
    border-radius: 18px;
    min-height: 52px;
    padding: 0 20px;
    font-weight: 600;
}

.primary-button {
    background: linear-gradient(180deg, #419AF8 0%, #2F87EA 100%);
    color: var(--color-white);
}

.secondary-button {
    background: var(--color-white);
    color: var(--color-blue);
    border: 1px solid rgba(65, 154, 248, 0.22);
}

.ghost-button,
.text-button {
    background: rgba(65, 154, 248, 0.09);
    color: var(--color-blue);
}

.legal-text {
    margin-top: 18px;
    color: var(--color-ink-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

.app-screen {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 104px;
}

.app-header {
    --header-control-height: 54px;
    --header-control-radius: 18px;
    --header-control-font-size: 0.94rem;
    --header-control-shadow: 0 14px 28px rgba(42, 109, 188, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    position: sticky;
    top: 18px;
    z-index: 10;
    background: #E8E8E8;
    border: 1px solid rgba(47, 48, 53, 0.08);
    box-shadow: 0 18px 36px rgba(47, 48, 53, 0.08);
    backdrop-filter: blur(18px);
    border-radius: 26px;
    color: var(--color-ink);
}

.app-header .header-brand {
    color: var(--color-ink);
}

.header-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: inherit;
    text-decoration: none;
}

.header-brand-link:focus-visible {
    outline: 2px solid rgba(65, 154, 248, 0.26);
    outline-offset: 6px;
    border-radius: 22px;
}

.header-brand-link:hover .header-brand-logo,
.header-brand-link:focus-visible .header-brand-logo {
    transform: translateY(-1px) scale(1.02);
}

.header-brand-logo {
    width: 54px;
    flex: 0 0 auto;
    display: block;
    transition: transform 0.2s ease;
}

.header-brand-copy {
    display: grid;
    gap: 8px;
}

.header-brand-copy small {
    color: var(--color-ink-soft);
}

.desktop-nav,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-button {
    position: relative;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: transparent;
    color: inherit;
    line-height: 0;
}

.nav-button-icon {
    display: block;
    width: auto;
    height: 40px;
}

.nav-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-button-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4d64;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 16px rgba(255, 77, 100, 0.28);
}

.nav-button-badge[hidden] {
    display: none;
}

.nav-button[data-view="chat"].is-active .nav-button-badge {
    right: -2px;
    bottom: -2px;
}

.stat-pill,
.user-chip,
.location-pill,
.hobby-pill,
.chat-item-badge,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
}

.stat-pill {
    padding: 10px 16px;
    background: rgba(255, 122, 81, 0.14);
    color: var(--color-orange);
    font-weight: 700;
}

.stat-pill-button {
    border: 1px solid rgba(255, 122, 81, 0.1);
}

.stat-pill img {
    width: 22px;
}

.header-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.user-menu-shell {
    position: relative;
}

.chat-menu-shell {
    position: relative;
}

.user-chip {
    padding: 8px 14px 8px 8px;
    background: var(--color-white);
    color: var(--color-ink);
    border: 1px solid rgba(65,154,248,0.12);
}

.user-chip-chevron {
    color: var(--color-blue);
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.user-chip img,
.chat-peer img,
#chatPeerAvatar,
#headerAvatar,
.chat-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--color-blue-soft);
}

.app-header .brand-name {
    color: var(--color-ink);
}

.app-header #connectionState {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(65, 154, 248, 0.12);
    box-shadow: 0 10px 22px rgba(42, 109, 188, 0.08);
    color: var(--color-blue);
    font-size: var(--header-control-font-size);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.app-header #connectionState.is-premium {
    background: linear-gradient(180deg, rgba(255,244,218,0.95) 0%, rgba(255,236,194,0.94) 100%);
    border-color: rgba(241, 194, 46, 0.28);
    box-shadow: 0 12px 24px rgba(241, 194, 46, 0.16);
    color: #A66A00;
}

.app-header #connectionState.is-free {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(65, 154, 248, 0.14);
    color: var(--color-ink);
}

.header-upgrade-wrap {
    color: var(--color-ink-soft);
}

.header-upgrade-link {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-blue);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
    transform: none !important;
}

.header-upgrade-link:hover {
    color: #2F87EA;
}

.app-header .desktop-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.app-header .desktop-nav .nav-button {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    gap: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    line-height: 0;
}

.app-header .desktop-nav .nav-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-header .desktop-nav .nav-button-icon {
    width: auto;
    height: var(--header-control-height);
    object-fit: contain;
    flex: 0 0 auto;
    max-width: none;
    transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

.app-header .desktop-nav .nav-button:not(.is-active) .nav-button-icon {
    opacity: 0.88;
    filter: saturate(0.9) brightness(1.02) drop-shadow(0 10px 20px rgba(42, 109, 188, 0.12));
}

.app-header .desktop-nav .nav-button.is-active .nav-button-icon {
    opacity: 1;
    filter: drop-shadow(0 16px 30px rgba(42, 109, 188, 0.18));
}

.app-header .desktop-nav .nav-button:hover .nav-button-icon {
    transform: translateY(-1px);
}

.app-header .desktop-nav .nav-button:hover {
    transform: none;
}

.app-header .desktop-nav .nav-button-badge {
    right: -1px;
    bottom: -2px;
}

.app-header .desktop-nav .nav-button[data-view="chat"].is-active .nav-button-badge {
    right: 5px;
    bottom: 4px;
}

.app-header .stat-pill {
    min-height: var(--header-control-height);
    padding: 0 18px;
    gap: 10px;
    border-radius: var(--header-control-radius);
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-orange);
    border: 1px solid rgba(255, 122, 81, 0.14);
    box-shadow: var(--header-control-shadow);
    font-size: var(--header-control-font-size);
    font-weight: 700;
    line-height: 1.2;
}

.app-header .stat-pill img {
    width: 24px;
    height: 24px;
}

.app-header .user-chip {
    min-height: var(--header-control-height);
    padding: 0 18px 0 10px;
    gap: 10px;
    border-radius: var(--header-control-radius);
    background: rgba(255, 255, 255, 0.84);
    color: var(--color-ink);
    border: 1px solid rgba(47, 48, 53, 0.08);
    box-shadow: var(--header-control-shadow);
    font-size: var(--header-control-font-size);
    font-weight: 700;
    line-height: 1.2;
}

.app-header #balanceBadge,
.app-header #headerUserName {
    font-size: var(--header-control-font-size);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.app-header #headerAvatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.app-header .user-chip-chevron {
    color: var(--color-blue);
    font-size: 1.08rem;
}

.user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 28px));
    padding: 16px;
    border-radius: 28px;
    border: 1px solid rgba(65, 154, 248, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 56px rgba(32, 96, 171, 0.18);
    display: grid;
    gap: 14px;
    z-index: 30;
}

.chat-menu {
    width: min(300px, calc(100vw - 28px));
    padding: 12px;
    gap: 8px;
}

.chat-menu-item {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(65, 154, 248, 0.06);
    font: inherit;
    color: var(--color-ink);
    text-align: left;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.chat-menu-item:hover {
    background: rgba(65, 154, 248, 0.1);
    border-color: rgba(65, 154, 248, 0.14);
}

.chat-menu-item.is-danger {
    background: rgba(253, 90, 124, 0.08);
    color: #c34868;
}

.chat-menu-item.is-danger:hover {
    background: rgba(253, 90, 124, 0.12);
    border-color: rgba(253, 90, 124, 0.16);
}

.feed-moderator-menu {
    left: 0;
    right: auto;
    width: min(320px, calc(100vw - 40px));
}

.feed-moderator-menu-button {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid rgba(65, 154, 248, 0.14);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(42, 109, 188, 0.12);
}

.feed-moderator-menu-button:hover {
    background: rgba(255, 255, 255, 0.98);
}

.user-menu-section {
    display: grid;
    gap: 12px;
}

.user-menu-section + .user-menu-section {
    padding-top: 14px;
    border-top: 1px solid rgba(217, 232, 248, 0.9);
}

.user-menu-heading {
    display: grid;
    gap: 4px;
}

.user-menu-heading strong {
    font-size: 0.95rem;
}

.user-menu-heading span {
    color: var(--color-ink-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

.user-menu-language-cluster {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.user-menu-language-pill {
    justify-content: center;
    min-width: 0;
    border-radius: 16px;
    min-height: 48px;
}

.user-menu-item {
    width: 100%;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(65, 154, 248, 0.06);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    text-align: left;
}

.user-menu-item:hover {
    transform: none;
    background: rgba(65, 154, 248, 0.1);
}

.user-menu-item.is-danger {
    background: rgba(253, 90, 124, 0.08);
}

.user-menu-item.is-danger:hover {
    background: rgba(253, 90, 124, 0.12);
}

.user-menu-item-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.user-menu-item-copy strong {
    font-size: 0.94rem;
    color: var(--color-ink);
}

.user-menu-item-copy small {
    color: var(--color-ink-soft);
    font-size: 0.82rem;
    line-height: 1.4;
}

.user-menu-item-value {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 122, 81, 0.14);
    color: var(--color-orange);
    font-size: 0.84rem;
    font-weight: 800;
}

.workspace {
    margin-top: 22px;
}

.view {
    display: none;
}

.view.is-active {
    display: block;
}

.view-header {
    justify-content: space-between;
    margin-bottom: 18px;
}

.surface {
    padding: 20px;
}

.filter-grid,
.form-grid,
.profile-grid,
.feed-grid,
.chat-layout {
    display: grid;
    gap: 18px;
}

.filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-grid > .field {
    gap: 10px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.range-filter-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-ink);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.range-filter-summary strong {
    font-size: 0.96rem;
    font-weight: 800;
}

.range-filter-summary em {
    font-style: normal;
    color: var(--color-ink-soft);
    opacity: 0.72;
}

.range-filter {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
}

.dual-range-slider {
    position: relative;
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0;
    touch-action: none;
}

.dual-range-track,
.dual-range-track-active {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
}

.dual-range-track {
    left: 0;
    right: 0;
    background: #E5E5EA;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.72);
}

.dual-range-track-active {
    background: linear-gradient(90deg, #62B1FF 0%, #419AF8 48%, #2F87EA 100%);
    box-shadow: 0 6px 16px rgba(65, 154, 248, 0.28);
}

.dual-range-thumb {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    border: 1px solid #D0D3D9;
    background: var(--color-white);
    font-size: 0;
    line-height: 0;
    box-shadow: 0 10px 24px rgba(47, 135, 234, 0.18);
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 2;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dual-range-thumb::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #62B1FF 0%, #419AF8 40%, #2F87EA 100%);
}

.dual-range-thumb.is-min {
    z-index: 2;
}

.dual-range-thumb.is-max {
    z-index: 3;
}

.dual-range-thumb.is-active {
    z-index: 4;
    border-color: rgba(65, 154, 248, 0.38);
    box-shadow: 0 14px 28px rgba(47, 135, 234, 0.24);
    transform: translate(-50%, -50%) scale(1.05);
}

.dual-range-thumb:focus-visible {
    outline: none;
    z-index: 4;
    border-color: rgba(65, 154, 248, 0.4);
    box-shadow: 0 0 0 4px rgba(65, 154, 248, 0.14), 0 14px 28px rgba(47, 135, 234, 0.24);
}

.dual-range-slider.is-dragging .dual-range-thumb {
    cursor: grabbing;
}

.field-country-multiselect {
    position: relative;
}

.multi-select {
    position: relative;
}

.multi-select-trigger {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-ink);
    font-weight: 500;
}

.multi-select-trigger span:first-child {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-select-chevron {
    font-size: 1.1rem;
    line-height: 1;
    color: var(--color-blue);
    flex-shrink: 0;
}

.multi-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 12;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(65, 154, 248, 0.16);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
}

.multi-select-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    padding: 0 14px;
    color: var(--color-ink);
}

.multi-select-actions {
    display: flex;
    gap: 10px;
}

.multi-select-actions .compact-button {
    min-height: 40px;
    padding: 0 14px;
}

.multi-select-options {
    max-height: 240px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(65, 154, 248, 0.05);
    cursor: pointer;
}

.multi-select-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-blue);
    flex-shrink: 0;
}

.multi-select-option span {
    color: var(--color-ink);
    font-size: 0.9rem;
}

.multi-select-empty {
    padding: 14px;
    border-radius: 16px;
    background: rgba(65, 154, 248, 0.05);
    color: var(--color-ink-soft);
    font-size: 0.9rem;
}

.feed-navigation-surface {
    position: relative;
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 122, 81, 0.16), transparent 24%),
        radial-gradient(circle at 86% 18%, rgba(65, 154, 248, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.96) 100%);
    box-shadow: var(--shadow-card);
}

.feed-navigation-shell {
    position: relative;
    display: block;
}

.feed-navigation-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.feed-navigation-button {
    min-height: 62px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 22px;
    border: 1px solid rgba(65, 154, 248, 0.16);
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-ink);
    box-shadow: 0 18px 34px rgba(47, 135, 234, 0.12);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.feed-navigation-button img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.feed-navigation-icon.is-next {
    transform: scaleX(-1);
}

.feed-navigation-button-prev {
    justify-self: start;
}

.feed-navigation-button-next {
    justify-self: end;
}

.feed-navigation-button:disabled {
    opacity: 0.42;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.feed-navigation-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

.feed-navigation-counter {
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
    line-height: 1;
    color: var(--color-ink);
    white-space: nowrap;
}

.feed-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr);
    align-items: start;
    margin-top: 18px;
}

.feed-card {
    width: 100%;
    min-height: 0;
    justify-self: stretch;
}

.feed-card.is-interactive {
    display: grid;
    gap: 10px;
}

.empty-card,
.empty-state,
.chat-blank {
    display: grid;
    place-items: center;
    text-align: center;
}

.empty-state {
    padding: 40px;
}

.empty-state img {
    width: 84px;
    margin: 0 auto 18px;
}

.empty-state h3 {
    margin: 0;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 10px 0 0;
    color: var(--color-ink-soft);
}

.feed-card-media-frame {
    position: relative;
    aspect-ratio: 393 / 852;
    overflow: hidden;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(47, 48, 53, 0.06) 0%, rgba(47, 48, 53, 0.9) 100%);
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.feed-card.empty-card {
    aspect-ratio: 393 / 852;
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(47, 48, 53, 0.06) 0%, rgba(47, 48, 53, 0.9) 100%);
    box-shadow: var(--shadow-card);
}

.card-media,
.card-photo,
.card-overlay {
    position: absolute;
    inset: 0;
}

.card-media {
    overflow: hidden;
}

.card-media-button {
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.card-media-button:focus-visible {
    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,0.84),
        inset 0 0 0 6px rgba(65,154,248,0.4);
}

.feed-card-status-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: center;
    pointer-events: none;
}

.feed-card-gifts {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 14px 14px 16px;
    box-sizing: border-box;
    border-radius: 28px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(65,154,248,0.1);
    box-shadow:
        0 18px 34px rgba(34, 73, 118, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.92);
}

.feed-card-gifts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.feed-card-gifts-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
}

.feed-card-gift {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(65,154,248,0.12);
    background:
        radial-gradient(circle at top left, rgba(65,154,248,0.14), transparent 45%),
        rgba(232, 241, 255, 0.96);
    box-shadow: 0 12px 24px rgba(34, 73, 118, 0.12);
}

.feed-card-gift-image,
.feed-card-gift-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.feed-card-gift-avatar {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    overflow: hidden;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.96);
    box-shadow: 0 8px 14px rgba(34, 73, 118, 0.18);
    background: rgba(255,255,255,0.96);
}

.card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.feed-card-match-banner {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: grid;
    gap: 8px;
    max-width: min(78%, 280px);
    padding: 14px 50px 15px 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 208, 102, 0.28), transparent 44%),
        linear-gradient(135deg, rgba(255, 251, 242, 0.96) 0%, rgba(255, 238, 230, 0.94) 100%);
    border: 1px solid rgba(255, 154, 81, 0.24);
    box-shadow:
        0 20px 36px rgba(34, 73, 118, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    pointer-events: none;
    animation: confessionBadgeFloat 3.2s ease-in-out infinite;
}

.feed-card-media-frame.has-quarantine-review::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 1;
    border-radius: 30px;
    border: 1px solid rgba(255, 168, 107, 0.38);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.2),
        0 0 0 6px rgba(255, 221, 186, 0.14);
    pointer-events: none;
}

.feed-card-quarantine-banner {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: grid;
    gap: 7px;
    max-width: min(86%, 290px);
    padding: 14px 16px 15px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 199, 138, 0.32), transparent 45%),
        linear-gradient(135deg, rgba(255, 251, 246, 0.97) 0%, rgba(255, 240, 230, 0.95) 100%);
    border: 1px solid rgba(255, 159, 84, 0.28);
    box-shadow:
        0 20px 36px rgba(34, 73, 118, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    pointer-events: none;
}

.feed-card-quarantine-kicker {
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: #cb6d2f;
}

.feed-card-quarantine-banner strong {
    font-size: 1rem;
    line-height: 1.2;
    color: #42383b;
}

.feed-card-quarantine-copy {
    font-size: 0.83rem;
    line-height: 1.45;
    color: rgba(66, 56, 59, 0.82);
}

.feed-card-match-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 154, 81, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 18px rgba(34, 73, 118, 0.14);
    color: #a56433;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}

.feed-card-match-close:hover,
.feed-card-match-close:focus-visible {
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-orange);
    border-color: rgba(255, 154, 81, 0.3);
    outline: none;
}

.feed-card-match-close span {
    display: block;
    margin-top: -1px;
    font-size: 1.14rem;
}

.feed-card-match-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    max-width: max-content;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 122, 81, 0.14);
    color: var(--color-orange);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feed-card-match-banner strong {
    display: block;
    color: var(--color-ink);
    font-size: 1.04rem;
    line-height: 1.08;
}

.feed-card-match-copy {
    display: block;
    color: var(--color-ink-soft);
    font-size: 0.78rem;
    line-height: 1.4;
}

.feed-card-status-pill {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(34, 73, 118, 0.12);
    box-shadow: 0 14px 28px rgba(34, 73, 118, 0.22);
    color: var(--color-ink);
    white-space: nowrap;
}

.feed-card-status-pill.is-online {
    background: #1d8f58;
    border-color: #1d8f58;
    color: var(--color-white);
}

.card-overlay {
    background: linear-gradient(180deg, rgba(47, 48, 53, 0.02) 32%, rgba(47, 48, 53, 0.24) 60%, rgba(47, 48, 53, 0.9) 100%);
}

.card-top,
.card-bottom,
.card-actions,
.card-photo-dots,
.chip-grid,
.photo-actions,
.chat-composer,
.message-meta {
    display: flex;
    gap: 10px;
}

.card-top,
.card-bottom {
    position: absolute;
    left: 24px;
    right: 24px;
    z-index: 2;
}

.card-top {
    top: 24px;
    justify-content: space-between;
}

.card-bottom {
    bottom: 24px;
    align-items: flex-end;
    justify-content: space-between;
}

.location-pill {
    padding: 12px 16px;
    background: rgba(47, 48, 53, 0.64);
    color: var(--color-white);
}

.location-pill img {
    width: 16px;
    height: 16px;
}

.card-copy {
    max-width: calc(100% - 110px);
    color: var(--color-white);
}

.card-copy h3 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.card-copy p {
    margin: 6px 0 0;
    color: rgba(255,255,255,0.82);
}

.card-photo-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.photo-count-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(47, 48, 53, 0.64);
    color: var(--color-white);
    font-size: 0.82rem;
    font-weight: 700;
}

.card-photo-dots {
    align-items: center;
    justify-content: flex-end;
}

.card-photo-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.34);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}

.card-photo-dot.is-active {
    width: 28px;
    background: var(--color-white);
}

.card-photo-hint {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    font-size: 0.8rem;
    font-weight: 600;
}

.hobby-cloud,
.photo-grid,
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hobby-pill {
    padding: 10px 14px;
    background: rgba(255,255,255,0.9);
    color: var(--color-ink);
    font-size: 0.88rem;
}

.card-actions {
    flex-direction: column;
}

.card-action-button,
.icon-button {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.92);
}

.card-action-button img,
.icon-button img {
    width: 26px;
    height: 26px;
}

.chat-menu-button {
    width: 56px;
    height: 56px;
}

.chat-menu-burger {
    display: grid;
    gap: 4px;
}

.chat-menu-burger span {
    display: block;
    width: 18px;
    height: 2.5px;
    border-radius: 999px;
    background: var(--color-ink);
}

.feed-aside,
.profile-media,
.likes-aside,
.profile-viewers-aside {
    position: sticky;
    top: 118px;
}

.feed-detail-panel {
    min-height: 100%;
    padding: 24px;
    border-radius: 40px;
    background:
        radial-gradient(circle at top right, rgba(65,154,248,0.16), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,255,0.96) 100%);
    box-shadow: var(--shadow-card);
}

.feed-detail-shell,
.feed-detail-empty {
    display: grid;
    gap: 22px;
}

.feed-detail-empty {
    min-height: 100%;
    align-content: center;
    justify-items: start;
}

.feed-detail-empty h3 {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.feed-detail-empty p {
    margin: 0;
    max-width: 48ch;
    color: var(--color-ink-soft);
    line-height: 1.7;
}

.feed-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.feed-detail-top-slot {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.feed-detail-top-actions,
.feed-detail-actions,
.feed-detail-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feed-detail-top-actions {
    justify-content: flex-end;
}

.feed-detail-footer-actions {
    justify-content: flex-end;
}

.feed-detail-disclosure {
    display: grid;
    gap: 18px;
}

.feed-detail-disclosure-toggle-shell {
    display: grid;
    justify-items: center;
}

.feed-detail-disclosure-toggle {
    width: min(100%, 420px);
    padding: 18px 20px 20px;
    border-radius: 28px;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(65,154,248,0.2), transparent 58%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,248,255,0.98) 100%);
    border: 1px solid rgba(65,154,248,0.14);
    box-shadow:
        0 18px 34px rgba(34, 73, 118, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.94);
    color: var(--color-ink);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feed-detail-disclosure-toggle:hover,
.feed-detail-disclosure-toggle:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(65,154,248,0.24);
    box-shadow:
        0 22px 42px rgba(34, 73, 118, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.96);
    outline: none;
}

.feed-detail-disclosure-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(65,154,248,0.14), rgba(65,154,248,0.05));
    color: var(--color-blue);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.feed-detail-disclosure-icon::before {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.24s ease;
}

.feed-detail-disclosure-toggle.is-open .feed-detail-disclosure-icon::before {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.feed-detail-disclosure-copy {
    display: grid;
    gap: 4px;
    justify-items: center;
}

.feed-detail-disclosure-copy strong {
    font-size: 0.98rem;
    line-height: 1.3;
}

.feed-detail-disclosure-copy span {
    max-width: 34ch;
    color: var(--color-ink-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}

.feed-detail-disclosure-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.28s ease, opacity 0.24s ease;
}

.feed-detail-disclosure-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.feed-detail-disclosure-panel-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: 18px;
}

.feed-detail-disclosure-loading {
    padding: 6px 4px 0;
    display: flex;
    justify-content: center;
}

.feed-detail-disclosure-loading .feed-detail-loading {
    margin: 0;
}

.feed-detail-position {
    display: block;
    margin-top: 6px;
    font-size: 1.2rem;
}

.feed-status-pill,
.feed-mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(47, 48, 53, 0.06);
    color: var(--color-ink);
    font-size: 0.84rem;
    font-weight: 700;
}

.feed-status-pill.is-online {
    background: rgba(40, 183, 115, 0.16);
    color: #1d8f58;
}

.presence-device-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.presence-device-list-card,
.presence-device-list-chat {
    justify-content: center;
}

.presence-device-list-detail {
    margin-top: 10px;
}

.presence-device-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(65, 154, 248, 0.1);
    border: 1px solid rgba(65, 154, 248, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
    color: var(--color-ink);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.presence-device-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.92rem;
}

.presence-device-chip.is-android {
    background: rgba(40, 183, 115, 0.12);
    border-color: rgba(40, 183, 115, 0.16);
    color: #208458;
}

.presence-device-chip.is-ios {
    background: rgba(255, 154, 81, 0.12);
    border-color: rgba(255, 154, 81, 0.16);
    color: #cc6d34;
}

.presence-device-chip.is-web {
    background: rgba(65, 154, 248, 0.12);
    border-color: rgba(65, 154, 248, 0.16);
    color: #2f87ea;
}

.presence-device-chip.is-unknown {
    background: rgba(96, 112, 128, 0.12);
    border-color: rgba(96, 112, 128, 0.16);
    color: #607080;
}

.feed-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: start;
    padding: 22px;
    border-radius: 30px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(65,154,248,0.08);
}

.feed-detail-hero-copy {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
    width: 100%;
    justify-self: stretch;
}

.feed-detail-hero-intro {
    display: grid;
    gap: 0;
    width: 100%;
}

.feed-detail-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--color-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feed-detail-hero h3 {
    margin: 0;
    font-size: clamp(2rem, 2.6vw, 2.9rem);
    line-height: 1.02;
}

.user-title-badge {
    display: inline-block;
    width: auto;
    height: 1em;
    margin-left: 0.28em;
    vertical-align: -0.08em;
    object-fit: contain;
}

.user-title-badge-hero {
    vertical-align: -0.06em;
}

.feed-detail-hero p {
    margin: 10px 0 0;
    color: var(--color-ink-soft);
    font-size: 1rem;
}

.feed-detail-hero-visual {
    display: grid;
    gap: 12px;
    min-width: 0;
    width: 100%;
    max-width: 320px;
    justify-self: stretch;
    justify-items: stretch;
    align-content: start;
}

.feed-detail-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.feed-detail-preview {
    width: 100%;
}

.feed-detail-photo-grid {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(65,154,248,0.16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(240,247,255,0.96) 100%);
    border: 1px solid rgba(65,154,248,0.12);
    box-shadow:
        0 22px 42px rgba(34, 73, 118, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.feed-detail-photo-grid-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.feed-detail-photo-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.84);
    background: rgba(232, 241, 252, 0.96);
    box-shadow: 0 10px 18px rgba(34, 73, 118, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease;
    cursor: pointer;
}

.feed-detail-photo-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(16,38,69,0.02) 58%, rgba(16,38,69,0.18) 100%);
    pointer-events: none;
}

.feed-detail-photo-tile.is-active {
    border-color: rgba(65,154,248,0.82);
    box-shadow:
        0 14px 26px rgba(34, 73, 118, 0.22),
        0 0 0 3px rgba(65,154,248,0.22);
}

.feed-detail-photo-tile:hover {
    transform: translateY(-2px);
}

.feed-detail-photo-tile:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 16px 28px rgba(34, 73, 118, 0.22),
        0 0 0 4px rgba(65,154,248,0.26);
}

.feed-detail-photo-tile:not(.is-active) {
    filter: saturate(0.88) brightness(0.97);
    opacity: 0.98;
}

.feed-detail-photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-detail-photo-tile.is-overflow {
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 8px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(65,154,248,0.24) 0%, rgba(18,68,132,0.78) 100%);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.68);
    filter: none;
    opacity: 1;
}

.feed-detail-photo-tile.is-overflow strong,
.feed-detail-photo-tile.is-overflow span {
    position: relative;
    z-index: 1;
}

.feed-detail-photo-tile.is-overflow strong {
    font-size: 1rem;
    line-height: 1;
}

.feed-detail-photo-tile.is-overflow span {
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.15;
}

.feed-detail-preview-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.82);
    color: var(--color-ink);
    border: 1px solid rgba(65,154,248,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.feed-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.feed-insights-grid.is-modal {
    gap: 14px;
}

.feed-insight-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
    min-height: 168px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.94), rgba(255,255,255,0.5) 58%, transparent 72%),
        linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(241,247,255,0.96) 100%);
    border: 1px solid rgba(65,154,248,0.12);
    box-shadow:
        0 18px 34px rgba(34, 73, 118, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.92);
}

.feed-insight-card.is-response-rate {
    background:
        radial-gradient(circle at top left, rgba(253,90,124,0.24), transparent 52%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255, 245, 247, 0.98) 100%);
}

.feed-insight-card.is-response-time {
    background:
        radial-gradient(circle at top left, rgba(65,154,248,0.22), transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241,247,255,0.98) 100%);
}

.feed-insight-card.is-activity {
    grid-column: 1 / -1;
    min-height: 218px;
    background:
        radial-gradient(circle at top left, rgba(241,194,46,0.18), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.98) 100%);
}

.feed-insight-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.feed-insight-head.is-text-only {
    grid-template-columns: 1fr;
    gap: 0;
}

.feed-insight-badge {
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.84);
    color: var(--color-ink);
    border: 1px solid rgba(65,154,248,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.feed-insight-copy {
    display: grid;
    gap: 6px;
}

.feed-insight-copy strong {
    font-size: 0.9rem;
    line-height: 1.25;
    color: var(--color-ink);
}

.feed-insight-copy p {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: 0.74rem;
    line-height: 1.45;
}

.feed-insight-foot {
    display: flex;
    justify-content: center;
    align-items: end;
    min-height: 78px;
}

.feed-insight-ring {
    --insight-progress: 0;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.98) 0 54%, transparent 55% 100%),
        conic-gradient(var(--color-pink) calc(var(--insight-progress) * 1%), rgba(65,154,248,0.14) 0);
    box-shadow:
        0 14px 26px rgba(34, 73, 118, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.94);
}

.feed-insight-ring span {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-ink);
}

.feed-insight-value-block {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.feed-insight-value-block strong {
    font-size: 1.18rem;
    line-height: 1.1;
    color: var(--color-ink);
    text-align: center;
}

.feed-insight-value-block span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(65,154,248,0.1);
    color: var(--color-blue);
    font-size: 0.72rem;
    font-weight: 700;
}

.feed-activity-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    min-height: 126px;
}

.feed-activity-bar-shell {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.feed-activity-bar-track {
    position: relative;
    width: 100%;
    min-height: 98px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 8px 0 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(65,154,248,0.08) 0%, rgba(65,154,248,0.02) 100%);
}

.feed-activity-bar {
    width: min(24px, 100%);
    min-height: 14px;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(180deg, #FD5A7C 0%, #419AF8 100%);
    box-shadow: 0 14px 20px rgba(65,154,248,0.2);
}

.feed-activity-bar.is-empty {
    background: rgba(65,154,248,0.18);
    box-shadow: none;
}

.feed-activity-bar-label {
    color: var(--color-ink-soft);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feed-activity-summary {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: 0.76rem;
    line-height: 1.45;
}

.feed-insights-grid.is-loading .feed-insight-card {
    min-height: 160px;
}

.feed-insight-skeleton {
    display: block;
    background:
        linear-gradient(90deg, rgba(65,154,248,0.08) 0%, rgba(255,255,255,0.9) 50%, rgba(65,154,248,0.08) 100%);
    background-size: 200% 100%;
    animation: feedInsightPulse 1.6s ease-in-out infinite;
    border-radius: 999px;
}

.feed-insight-skeleton-line {
    height: 12px;
    width: 100%;
}

.feed-insight-skeleton-line.short {
    width: 58%;
}

.feed-insight-skeleton-ring {
    width: 86px;
    height: 86px;
    border-radius: 50%;
}

.feed-insight-skeleton-value {
    width: 112px;
    height: 28px;
}

.feed-insight-chart-skeleton {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    min-height: 110px;
}

.feed-insight-skeleton-bar {
    width: 100%;
    min-height: 28px;
    border-radius: 16px 16px 8px 8px;
}

@keyframes feedInsightPulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes confessionGlowPulse {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes confessionBadgeFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.feed-detail-stats,
.feed-detail-sections {
    display: grid;
    gap: 14px;
}

.feed-detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed-detail-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: start;
    width: 100%;
}

.feed-detail-hero-stats .feed-detail-stat {
    min-height: 100%;
    padding: 16px 18px;
    border-radius: 24px;
}

.feed-detail-hero-stats .feed-detail-stat strong {
    margin-top: 8px;
    font-size: 0.98rem;
}

.feed-detail-stat,
.feed-detail-section {
    padding: 18px 20px;
    border-radius: 28px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(65,154,248,0.08);
}

.feed-detail-stat span {
    display: block;
    color: var(--color-ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.feed-detail-stat strong {
    display: block;
    margin-top: 10px;
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--color-ink);
}

.chat-peer-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.presence-device-list-chat {
    justify-content: flex-start;
}

.presence-device-list-chat.hidden {
    display: none;
}

.presence-device-list-chat .presence-device-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.72rem;
}

.feed-detail-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-detail-section-wide {
    grid-column: 1 / -1;
}

.feed-detail-section p {
    margin: 10px 0 0;
    color: var(--color-ink-soft);
    line-height: 1.7;
}

.feed-detail-cloud .hobby-pill {
    background: rgba(65,154,248,0.1);
    color: var(--color-blue);
}

.feed-action-button {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(65, 154, 248, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-ink);
    box-shadow: 0 14px 28px rgba(42, 109, 188, 0.1);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.feed-action-button img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.feed-action-button.is-chat {
    background: rgba(255, 197, 39, 0.12);
    border-color: rgba(255, 197, 39, 0.16);
    color: #8f6400;
}

.feed-action-button.is-love {
    background: rgba(255, 88, 128, 0.12);
    border-color: rgba(255, 88, 128, 0.16);
    color: #d9466e;
}

.feed-action-button.is-gift {
    background: rgba(64, 184, 92, 0.12);
    border-color: rgba(64, 184, 92, 0.16);
    color: #1d8f58;
}

.feed-action-button.is-secondary {
    background: rgba(65, 154, 248, 0.1);
    color: var(--color-blue);
}

.feed-action-button.is-alert {
    background: rgba(255, 122, 81, 0.12);
    border-color: rgba(255, 122, 81, 0.16);
    color: var(--color-orange);
}

.feed-action-button.is-muted {
    background: rgba(47, 48, 53, 0.06);
    color: var(--color-ink);
}

.feed-detail-loading {
    margin: -4px 0 0;
    color: var(--color-ink-soft);
    font-size: 0.88rem;
}

.likes-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.likes-surface {
    display: grid;
    gap: 18px;
}

.likes-tab-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.likes-tab {
    min-height: 88px;
    padding: 18px 20px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    background: rgba(65, 154, 248, 0.08);
    color: var(--color-ink-soft);
    text-align: left;
}

.likes-tab span {
    font-size: 0.92rem;
    font-weight: 600;
}

.likes-tab strong {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--color-ink);
}

.likes-tab.is-active {
    background: linear-gradient(180deg, #419AF8 0%, #2F87EA 100%);
    color: var(--color-white);
    box-shadow: 0 20px 42px rgba(47, 135, 234, 0.26);
}

.likes-tab.is-active strong {
    color: var(--color-white);
}

.likes-section-copy h3 {
    margin: 0;
    font-size: 1.3rem;
}

.likes-section-copy p {
    margin: 6px 0 0;
    color: var(--color-ink-soft);
}

.likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
    gap: 16px;
    align-items: start;
}

.likes-empty-state {
    min-height: 320px;
    border-radius: 28px;
    background: rgba(65, 154, 248, 0.05);
    border: 1px dashed rgba(65, 154, 248, 0.22);
}

.likes-card {
    width: 100%;
    max-width: 220px;
    justify-self: center;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(65, 154, 248, 0.14);
    box-shadow: var(--shadow-soft);
}

.likes-card-preview {
    width: 100%;
    padding: 0;
    display: block;
    position: relative;
    aspect-ratio: 184 / 174;
    background: linear-gradient(180deg, rgba(65, 154, 248, 0.12), rgba(47, 48, 53, 0.12));
}

.likes-card-photo,
.likes-card-gradient {
    position: absolute;
    inset: 0;
}

.likes-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.likes-card-gradient {
    background: linear-gradient(180deg, rgba(47, 48, 53, 0.04) 0%, rgba(47, 48, 53, 0.1) 55%, rgba(47, 48, 53, 0.42) 100%);
    pointer-events: none;
}

.likes-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    z-index: 1;
    pointer-events: none;
}

.likes-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-white);
    background: rgba(47, 48, 53, 0.72);
    backdrop-filter: blur(10px);
}

.likes-card-badge.is-match {
    background: rgba(65, 154, 248, 0.9);
}

.likes-card-badge.is-muted {
    background: rgba(47, 48, 53, 0.76);
}

.likes-card-body {
    padding: 16px;
    display: grid;
    gap: 14px;
}

.likes-card-copy h3 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.2;
    min-height: calc(1.2em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.likes-card-copy h3 .user-title-badge {
    margin-left: 0.22em;
}

.likes-card-copy p {
    margin: 6px 0 0;
    color: var(--color-ink-soft);
    font-size: 0.9rem;
}

.likes-card-actions {
    display: grid;
    gap: 10px;
}

.likes-card-actions .primary-button,
.likes-card-actions .secondary-button,
.likes-card-actions .text-button {
    min-height: 44px;
    padding: 0 14px;
}

.likes-metric-list {
    width: 100%;
    display: grid;
    gap: 12px;
}

.likes-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(65, 154, 248, 0.08);
}

.likes-metric span {
    color: var(--color-ink-soft);
    font-size: 0.9rem;
}

.likes-metric strong {
    font-size: 1.2rem;
    color: var(--color-blue);
}

.aside-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.aside-block + .aside-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(65,154,248,0.12);
}

.flat-list {
    margin: 0;
    padding-left: 18px;
    color: var(--color-ink-soft);
    line-height: 1.7;
}

.profile-viewers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.profile-viewers-surface {
    display: grid;
    gap: 18px;
}

.profile-viewers-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.profile-viewers-hero-copy h3 {
    margin: 8px 0 0;
    font-size: 1.38rem;
}

.profile-viewers-hero-copy p {
    margin: 8px 0 0;
    max-width: 62ch;
    color: var(--color-ink-soft);
}

.profile-viewers-periods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-viewers-period {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 20px;
    background: rgba(65, 154, 248, 0.08);
    color: var(--color-ink-soft);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(65, 154, 248, 0.08);
}

.profile-viewers-period.is-active {
    background: linear-gradient(180deg, #419AF8 0%, #2F87EA 100%);
    color: var(--color-white);
    box-shadow: 0 20px 42px rgba(47, 135, 234, 0.24);
}

.profile-viewers-filter-shell {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(65, 154, 248, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,255,0.94) 100%);
    border: 1px solid rgba(65, 154, 248, 0.14);
}

.profile-viewers-filter-grid {
    align-items: end;
}

.profile-viewers-filter-actions {
    justify-content: flex-end;
}

.profile-viewers-grid {
    grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
}

.profile-viewers-card {
    max-width: 260px;
}

.profile-viewers-card-preview {
    aspect-ratio: 220 / 176;
}

.profile-viewers-visit-pill {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-ink);
    box-shadow: 0 18px 34px rgba(47, 48, 53, 0.18);
    backdrop-filter: blur(14px);
    z-index: 1;
    text-align: left;
}

.profile-viewers-visit-pill span {
    display: block;
    color: var(--color-ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-viewers-visit-pill strong {
    display: block;
    margin-top: 4px;
    font-size: 0.94rem;
    line-height: 1.35;
}

.profile-viewers-card-body {
    gap: 12px;
}

.profile-viewers-meta {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.profile-viewers-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(217, 232, 248, 0.78);
}

.profile-viewers-meta-row:first-child {
    padding-top: 0;
    border-top: none;
}

.profile-viewers-meta-row span {
    color: var(--color-ink-soft);
    font-size: 0.78rem;
}

.profile-viewers-meta-row strong {
    color: var(--color-ink);
    font-size: 0.86rem;
    line-height: 1.4;
    text-align: right;
}

.profile-viewers-card-actions {
    gap: 0;
}

.profile-viewers-card-actions .secondary-button {
    width: 100%;
}

.profile-viewers-aside .likes-metric strong {
    font-size: 1rem;
    line-height: 1.35;
    text-align: right;
    word-break: break-word;
}

.chat-layout {
    --chat-layout-height: calc(100dvh - 220px);
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
}

.chat-list-surface,
.chat-dialog-surface {
    min-height: 0;
}

.chat-list-surface {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.chat-dialog-surface {
    overflow: hidden;
}

.chat-list,
.chat-messages {
    margin-top: 18px;
}

.chat-list {
    min-height: 0;
    align-content: start;
}

.chat-item {
    width: 100%;
    text-align: left;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(65,154,248,0.08);
    background: rgba(255,255,255,0.75);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.chat-item.is-active {
    background: rgba(65,154,248,0.12);
}

.chat-item-copy {
    min-width: 0;
}

.chat-item-name {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-preview,
.chat-item-time,
.typing-indicator,
.message-time {
    color: var(--color-ink-soft);
}

.chat-item-preview {
    display: block;
    margin-top: 4px;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-meta {
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.chat-item-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    justify-content: center;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-dialog {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 14px;
    min-height: 0;
}

.chat-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.chat-messages {
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(65,154,248,0.05), rgba(65,154,248,0.02));
    padding: 18px;
    overflow-y: auto;
    min-height: 420px;
    max-height: 520px;
    display: grid;
    gap: 12px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.message-row {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.message-row.is-self {
    justify-items: end;
}

.message-bubble {
    max-width: min(76%, 520px);
    padding: 14px 16px;
    border-radius: 24px;
    background: var(--color-white);
    line-height: 1.55;
}

.message-row.is-self .message-bubble {
    background: linear-gradient(180deg, #419AF8 0%, #2E8BFF 100%);
    color: var(--color-white);
}

.message-bubble.is-image {
    padding: 6px;
    overflow: hidden;
}

.message-bubble.is-image img {
    width: 260px;
    max-width: 100%;
    border-radius: 18px;
}

.message-bubble.is-pending {
    opacity: 0.8;
}

.message-bubble.is-failed {
    box-shadow: inset 0 0 0 1px rgba(253, 90, 124, 0.28);
}

.message-bubble-image-button {
    display: block;
    border: 0;
    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.message-bubble-image-button img {
    display: block;
}

.chat-rich-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-rich-text.is-light {
    color: rgba(255,255,255,0.96);
}

.chat-rich-text.is-dark {
    color: var(--color-ink);
}

.chat-inline-strong {
    font-weight: 700;
}

.chat-inline-italic {
    font-style: italic;
}

.chat-inline-underline,
.chat-inline-user {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.chat-inline-user {
    font-weight: 700;
}

.chat-inline-link.is-accent,
.chat-inline-user.is-accent {
    color: #2E8BFF;
}

.chat-inline-link.is-light,
.chat-inline-user.is-light {
    color: rgba(255,255,255,0.94);
}

.chat-inline-link.is-muted,
.chat-inline-user.is-muted {
    color: var(--color-ink-soft);
}

.chat-inline-user {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
}

.chat-inline-user.is-interactive {
    cursor: pointer;
}

.chat-inline-user.is-interactive:hover {
    opacity: 0.82;
}

.message-meta {
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.78rem;
}

.message-row.is-self .message-meta {
    justify-content: flex-end;
}

.message-status {
    font-weight: 700;
}

.message-status.is-sending {
    color: var(--color-ink-soft);
}

.message-status.is-failed {
    color: #fd5a7c;
}

.message-retry-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-blue);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.message-retry-button:hover {
    color: #1f77d7;
}

.chat-preview-placeholder {
    font-style: italic;
}

.chat-composer {
    align-items: center;
}

.attachment-button {
    flex-shrink: 0;
}

.chat-composer input {
    flex: 1;
    min-height: 52px;
    border: 1px solid var(--color-line);
    background: var(--color-white);
    border-radius: 18px;
    padding: 0 16px;
}

.chat-access-notice {
    margin-bottom: 14px;
}

.chat-blank {
    min-height: 320px;
    padding: 36px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(65,154,248,0.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,249,255,0.92) 100%);
    border: 1px dashed rgba(65,154,248,0.2);
}

.chat-composer.is-disabled {
    opacity: 0.7;
}

.chat-composer.is-disabled input {
    background: rgba(255,255,255,0.72);
}

@media (min-width: 901px) {
    .app-screen.is-chat-active {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding-bottom: 24px;
    }

    .app-screen.is-chat-active .workspace {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .app-screen.is-chat-active #chatView.view.is-active {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .app-screen.is-chat-active #chatView .chat-layout {
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .chat-layout {
        height: var(--chat-layout-height);
        min-height: min(560px, var(--chat-layout-height));
    }

    .chat-list-surface,
    .chat-dialog-surface {
        height: 100%;
    }

    .chat-list-surface {
        padding: 18px 18px 16px;
        background:
            radial-gradient(circle at top left, rgba(65,154,248,0.12), transparent 34%),
            linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,249,255,0.94) 100%);
    }

    .chat-dialog-surface {
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        padding: 18px 18px 10px;
        background:
            radial-gradient(circle at top right, rgba(253,90,124,0.08), transparent 22%),
            radial-gradient(circle at top left, rgba(65,154,248,0.08), transparent 28%),
            linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(244,248,255,0.95) 100%);
    }

    .chat-list {
        margin-top: 16px;
        padding-right: 4px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(65,154,248,0.28) transparent;
        overscroll-behavior: contain;
    }

    .chat-blank,
    .chat-dialog {
        height: 100%;
        min-height: 0;
    }

    .chat-dialog {
        gap: 12px;
    }

    .chat-dialog-header {
        padding: 4px 4px 12px;
        border-bottom: 1px solid rgba(65,154,248,0.12);
    }

    .chat-messages {
        margin-top: 0;
        min-height: 0;
        max-height: none;
        height: 100%;
        padding: 18px 16px;
        background:
            linear-gradient(180deg, rgba(65,154,248,0.06) 0%, rgba(255,255,255,0.92) 100%);
        scrollbar-width: thin;
        scrollbar-color: rgba(65,154,248,0.28) transparent;
    }

    .typing-indicator {
        min-height: 20px;
        padding: 0 4px;
    }

    .chat-access-notice {
        margin: 0;
    }

    .chat-composer {
        margin-top: auto;
        padding: 10px;
        border-radius: 24px;
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(65,154,248,0.12);
        box-shadow:
            0 16px 30px rgba(32, 96, 171, 0.08),
            inset 0 1px 0 rgba(255,255,255,0.9);
    }

    .chat-composer input {
        min-height: 54px;
        box-shadow: none;
    }
}

.profile-grid {
    grid-template-columns: minmax(0, 1.25fr) 360px;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.profile-autosave-status {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(47,48,53,0.06);
    color: var(--color-ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.profile-autosave-status[data-state="saving"] {
    background: rgba(65,154,248,0.12);
    color: var(--color-blue);
}

.profile-autosave-status[data-state="error"] {
    background: rgba(214,67,103,0.12);
    color: #D64367;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-button {
    min-height: 52px;
    padding: 0 18px;
}

.full-span {
    grid-column: 1 / -1;
}

.chip {
    padding: 10px 14px;
    background: rgba(65,154,248,0.08);
    color: var(--color-blue);
}

.chip.is-active {
    background: var(--color-blue);
    color: var(--color-white);
}

.profile-chip-picker {
    padding: 18px 20px 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(65,154,248,0.12), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,248,255,0.96) 100%);
    border: 1px solid rgba(65,154,248,0.12);
    box-shadow:
        0 16px 32px rgba(34, 73, 118, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.92);
}

.profile-chip-picker .picker-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.profile-chip-picker .chip-grid {
    margin-top: 10px;
    gap: 12px;
}

.profile-chip-picker .chip {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(65,154,248,0.12);
    background: rgba(255,255,255,0.96);
    color: var(--color-blue);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.profile-chip-picker .chip.is-active {
    border-color: transparent;
    background: linear-gradient(180deg, #419AF8 0%, #2F87EA 100%);
    color: var(--color-white);
    box-shadow: 0 12px 22px rgba(47, 135, 234, 0.24);
}

.profile-grid .primary-button,
.profile-grid .secondary-button,
.profile-grid .compact-button,
.profile-grid .photo-action {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 0.95rem;
}

.profile-save-button {
    min-width: 152px;
}

.profile-slider-field {
    padding: 16px 18px 14px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,248,255,0.92) 100%);
    gap: 12px;
}

.profile-slider-value {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(65,154,248,0.12);
    color: var(--color-blue);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-slider-value.is-pending {
    background: rgba(47,48,53,0.08);
    color: var(--color-ink-soft);
}

.profile-range-input {
    width: 100%;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.profile-range-input::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(98,177,255,0.72) 0%, rgba(47,135,234,0.92) 100%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.78);
}

.profile-range-input::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -8px;
    border: 1px solid rgba(65,154,248,0.22);
    border-radius: 999px;
    background: var(--color-white);
    box-shadow: 0 12px 24px rgba(47, 135, 234, 0.18);
    appearance: none;
    -webkit-appearance: none;
}

.profile-range-input::-moz-range-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(98,177,255,0.72) 0%, rgba(47,135,234,0.92) 100%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.78);
}

.profile-range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(65,154,248,0.22);
    border-radius: 999px;
    background: var(--color-white);
    box-shadow: 0 12px 24px rgba(47, 135, 234, 0.18);
}

.profile-range-input:focus-visible {
    outline: none;
}

.profile-slider-scale {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-form .field.is-invalid input:not([type="range"]),
.profile-form .field.is-invalid select,
.profile-form .field.is-invalid textarea,
.profile-slider-field.is-invalid,
.profile-chip-picker.is-invalid,
.profile-media.is-invalid {
    border-color: rgba(253, 90, 124, 0.42);
    box-shadow: 0 0 0 4px rgba(253, 90, 124, 0.08);
}

.profile-form .field.is-invalid span,
.profile-slider-field.is-invalid .profile-slider-value,
.profile-chip-picker.is-invalid .picker-head h3,
.profile-media.is-invalid .media-head h3 {
    color: #D64367;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 9 / 16;
    background: var(--color-blue-soft);
}

.chat-peer-button {
    flex: 1 1 auto;
    padding: 8px 10px;
    border: none;
    border-radius: 20px;
    justify-content: flex-start;
    background: transparent;
    color: inherit;
    min-width: 0;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.chat-peer-button:hover {
    background: rgba(65, 154, 248, 0.08);
}

.chat-peer-button:focus-visible {
    outline: 2px solid rgba(65, 154, 248, 0.28);
    outline-offset: 2px;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card.is-primary::after {
    content: "Primary";
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(47,48,53,0.74);
    color: var(--color-white);
    font-size: 0.76rem;
    font-weight: 700;
}

.photo-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.photo-action {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: var(--color-ink);
    font-size: 0.82rem;
    font-weight: 600;
}

.notice-banner {
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: 28px;
    border: 1px solid rgba(253,90,124,0.14);
    background:
        radial-gradient(circle at top right, rgba(241,194,46,0.18), transparent 34%),
        linear-gradient(135deg, rgba(253,90,124,0.12) 0%, rgba(255,255,255,0.96) 34%, rgba(243,248,255,0.98) 100%);
    box-shadow: 0 18px 36px rgba(35, 62, 102, 0.08);
}

.notice-banner:not(.hidden):not(.is-complete):not(.is-moderation) {
    position: static;
    max-height: none;
    overflow: visible;
}

.notice-banner.is-complete {
    border-color: rgba(46, 184, 107, 0.18);
    background:
        radial-gradient(circle at top right, rgba(46,184,107,0.18), transparent 30%),
        linear-gradient(135deg, rgba(84,200,129,0.12) 0%, rgba(255,255,255,0.97) 34%, rgba(242,251,246,0.98) 100%);
}

.notice-banner.is-moderation {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.profile-notice-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.profile-notice-copy {
    display: grid;
    gap: 8px;
}

.profile-notice-kicker {
    color: var(--color-blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-notice-copy strong {
    color: var(--color-ink);
    font-size: 1.08rem;
    line-height: 1.2;
}

.profile-notice-copy p {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: 0.94rem;
    line-height: 1.5;
}

.profile-notice-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    padding: 0 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.78);
    color: var(--color-ink);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.profile-notice-progress {
    margin-top: 18px;
    height: 12px;
    border-radius: 999px;
    background: rgba(47,48,53,0.08);
    overflow: hidden;
}

.profile-notice-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #FD5A7C 0%, #F1C22E 100%);
    box-shadow: 0 10px 18px rgba(253, 90, 124, 0.2);
}

.notice-banner.is-complete .profile-notice-progress span {
    background: linear-gradient(90deg, #54C881 0%, #2EB86B 100%);
    box-shadow: 0 10px 18px rgba(46, 184, 107, 0.18);
}

.profile-notice-list-shell {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.profile-notice-list-title {
    color: var(--color-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-notice-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    color: var(--color-ink);
}

.profile-notice-list li {
    line-height: 1.45;
}

.access-gate-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 20px;
    padding: 26px 28px;
    border-radius: 30px;
    border: 1px solid rgba(65,154,248,0.14);
    background:
        radial-gradient(circle at top right, rgba(65,154,248,0.18), transparent 32%),
        linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(240,247,255,0.98) 100%);
    box-shadow: 0 24px 44px rgba(35, 62, 102, 0.12);
}

.access-gate-card.is-incomplete {
    border-color: rgba(253,90,124,0.16);
    background:
        radial-gradient(circle at top right, rgba(253,90,124,0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(241,194,46,0.2), transparent 26%),
        linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(255,246,248,0.98) 100%);
}

.access-gate-card.is-compact {
    padding: 18px 20px;
    border-radius: 24px;
    gap: 16px;
}

.access-gate-card.is-embedded {
    box-shadow: none;
}

.access-gate-orb {
    position: absolute;
    top: -54px;
    right: -36px;
    width: 164px;
    height: 164px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(65,154,248,0.24) 0%, rgba(65,154,248,0) 70%);
    pointer-events: none;
}

.access-gate-card.is-incomplete .access-gate-orb {
    background: radial-gradient(circle, rgba(253,90,124,0.24) 0%, rgba(253,90,124,0) 72%);
}

.access-gate-content {
    position: relative;
    display: grid;
    gap: 14px;
}

.access-gate-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.access-gate-copy {
    display: grid;
    gap: 8px;
    max-width: 560px;
}

.access-gate-kicker {
    color: var(--color-blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.access-gate-card.is-incomplete .access-gate-kicker {
    color: #E34C73;
}

.access-gate-copy strong {
    color: var(--color-ink);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.15;
}

.access-gate-copy p,
.access-gate-meta {
    margin: 0;
    color: var(--color-ink-soft);
    line-height: 1.65;
}

.access-gate-badge-shell {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.access-gate-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(65,154,248,0.12);
    color: var(--color-blue);
    font-size: 0.82rem;
    font-weight: 700;
}

.access-gate-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(65,154,248,0.12);
}

.access-gate-card.is-incomplete .access-gate-status {
    background: rgba(253,90,124,0.12);
    color: #E34C73;
}

.access-gate-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 86px;
    padding: 0 20px;
    border-radius: 26px;
    background: rgba(255,255,255,0.82);
    color: var(--color-ink);
    font-size: 1.12rem;
    font-weight: 800;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.94),
        0 12px 22px rgba(32, 74, 119, 0.1);
}

.access-gate-card.is-compact .access-gate-percent {
    min-width: 74px;
    min-height: 74px;
    border-radius: 22px;
}

.access-gate-list-shell {
    display: grid;
    gap: 10px;
}

.access-gate-list-title {
    color: var(--color-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.access-gate-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    color: var(--color-ink);
}

.access-gate-list li {
    line-height: 1.45;
}

.access-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 40, 63, 0.48);
    backdrop-filter: blur(10px);
}

.modal-sheet {
    position: relative;
    max-width: 1080px;
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    background: rgba(255,255,255,0.96);
    border-radius: 34px;
    overflow: auto;
    padding: 28px;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(65,154,248,0.12);
}

.modal-close img {
    width: 18px;
    height: 18px;
    margin: auto;
}

.wallet-modal-sheet,
.delete-modal-sheet {
    max-width: 920px;
}

.profile-photo-crop-modal-sheet {
    max-width: 1120px;
    background:
        radial-gradient(circle at top right, rgba(253, 90, 124, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(65, 154, 248, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,249,255,0.96) 100%);
}

.chat-image-modal-sheet {
    max-width: 1120px;
    background:
        radial-gradient(circle at top right, rgba(253, 90, 124, 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(65, 154, 248, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,249,255,0.96) 100%);
}

.access-gate-modal-sheet {
    max-width: 760px;
}

.feed-gift-modal-sheet {
    max-width: 960px;
}

.report-modal-sheet {
    max-width: 980px;
    background:
        radial-gradient(circle at top left, rgba(65, 154, 248, 0.14), transparent 26%),
        radial-gradient(circle at bottom right, rgba(253, 90, 124, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(245,249,255,0.97) 100%);
}

.feed-gift-layout {
    display: grid;
    gap: 22px;
    clear: both;
}

.report-modal-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 24px;
    clear: both;
    align-items: start;
}

.report-modal-copy {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 8px 6px 8px 0;
}

.report-modal-copy h3 {
    margin: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    line-height: 1.08;
}

.report-modal-copy p {
    margin: 0;
    color: var(--color-ink-soft);
    line-height: 1.7;
    max-width: 38ch;
}

.report-modal-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 30px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(65, 154, 248, 0.12);
    box-shadow:
        0 22px 40px rgba(34, 73, 118, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.92);
}

.report-modal-target {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,248,255,0.92) 100%);
    border: 1px solid rgba(65, 154, 248, 0.12);
}

.report-modal-target span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-blue);
}

.report-modal-target strong {
    font-size: 1rem;
    color: var(--color-ink);
}

.report-modal-field {
    display: grid;
    gap: 12px;
}

.report-modal-field > span {
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-ink);
}

.report-modal-field textarea {
    min-height: 170px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(250, 252, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.report-modal-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(65, 154, 248, 0.08);
    border: 1px solid rgba(65, 154, 248, 0.12);
}

.report-modal-note-badge {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.98);
    color: var(--color-blue);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(47, 135, 234, 0.16);
}

.report-modal-note p {
    margin: 0;
    color: var(--color-ink-soft);
    line-height: 1.6;
}

.report-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.report-modal-actions .primary-button,
.report-modal-actions .secondary-button {
    min-height: 50px;
    padding: 0 22px;
}

.report-modal-actions .primary-button[disabled],
.report-modal-actions .secondary-button[disabled],
.modal-close[disabled] {
    opacity: 0.64;
    cursor: wait;
    transform: none;
}

.moderator-modal-sheet {
    max-width: 1040px;
}

.moderator-modal-card {
    gap: 20px;
}

.moderator-modal-fields {
    display: grid;
    gap: 16px;
}

.moderator-modal-field input,
.moderator-modal-field textarea {
    width: 100%;
}

.moderator-reason-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.moderator-reason-list legend {
    margin-bottom: 4px;
    font-weight: 800;
    color: var(--color-ink);
}

.moderator-reason-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(65, 154, 248, 0.12);
    background: rgba(250, 252, 255, 0.96);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.moderator-reason-option:hover {
    background: rgba(65, 154, 248, 0.08);
    border-color: rgba(65, 154, 248, 0.18);
    transform: translateY(-1px);
}

.moderator-reason-option input {
    margin-top: 3px;
}

.moderator-reason-option span {
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-ink);
}

.moderator-warning-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(65, 154, 248, 0.14);
    background: rgba(65, 154, 248, 0.08);
}

.moderator-warning-card strong {
    color: var(--color-ink);
    font-size: 1rem;
}

.moderator-warning-card p {
    margin: 0;
    color: var(--color-ink-soft);
    line-height: 1.65;
}

.moderator-warning-card.is-danger {
    border-color: rgba(253, 90, 124, 0.18);
    background: rgba(253, 90, 124, 0.08);
}

.profile-photo-crop-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 440px);
    gap: 24px;
    align-items: start;
    clear: both;
}

.chat-image-modal-head,
.chat-image-modal-copy,
.chat-image-modal-stage {
    display: grid;
    gap: 16px;
}

.chat-image-modal-head,
.chat-image-modal-stage {
    clear: both;
}

.chat-image-modal-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.chat-image-modal-copy h3 {
    margin: 0;
    font-size: clamp(1.95rem, 2.6vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.chat-image-modal-copy p {
    margin: 0;
    color: var(--color-ink-soft);
    max-width: 620px;
}

.chat-image-modal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.chat-image-modal-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(65,154,248,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
    font-weight: 700;
    color: var(--color-ink);
    font-variant-numeric: tabular-nums;
}

.chat-image-modal-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(65,154,248,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.84);
}

.chat-image-modal-tool {
    min-width: 46px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(65,154,248,0.14) 0%, rgba(47,135,234,0.18) 100%);
    color: var(--color-blue);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.chat-image-modal-tool.is-readout {
    min-width: 84px;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.chat-image-modal-tool:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.chat-image-modal-stage {
    position: relative;
}

.chat-image-modal-image-shell {
    min-height: min(68vh, 720px);
    padding: 16px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    touch-action: none;
    background:
        linear-gradient(180deg, rgba(17, 31, 51, 0.94) 0%, rgba(34, 55, 88, 0.9) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 28px 60px rgba(26, 50, 84, 0.28);
}

.chat-image-modal-image-shell.is-zoomed {
    cursor: grab;
}

.chat-image-modal-image-shell.is-dragging {
    cursor: grabbing;
}

.chat-image-modal-image {
    display: block;
    max-width: 100%;
    max-height: min(72vh, 760px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    transform-origin: center center;
    transition: transform 180ms ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.chat-image-modal-image-shell.is-dragging .chat-image-modal-image {
    transition: none;
}

.chat-image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    z-index: 1;
    background: rgba(255,255,255,0.9);
    color: var(--color-blue);
    box-shadow: 0 18px 40px rgba(20, 47, 82, 0.24);
}

.chat-image-modal-nav.is-prev {
    left: 20px;
}

.chat-image-modal-nav.is-next {
    right: 20px;
}

.chat-image-modal-nav span {
    font-size: 2rem;
    line-height: 1;
}

.chat-image-modal-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 2px;
    margin-top: 18px;
    scrollbar-width: thin;
}

.chat-image-modal-thumbs .chat-image-modal-thumb {
    flex: 0 0 88px;
    width: 88px;
    scroll-snap-align: center;
}

.profile-photo-crop-copy,
.profile-photo-crop-stage,
.profile-photo-crop-controls {
    display: grid;
    gap: 16px;
}

.profile-photo-crop-copy h3 {
    margin: 0;
    font-size: clamp(1.95rem, 2.5vw, 2.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.profile-photo-crop-copy p,
.profile-photo-crop-hint {
    margin: 0;
    color: var(--color-ink-soft);
    line-height: 1.6;
}

.profile-photo-crop-stage {
    justify-items: center;
}

.profile-photo-crop-stage-shell {
    width: 100%;
    padding: 18px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 81, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(245,250,255,0.92) 0%, rgba(255,255,255,0.98) 100%);
    border: 1px solid rgba(65, 154, 248, 0.14);
    box-shadow:
        0 24px 48px rgba(34, 73, 118, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.94);
}

.profile-photo-crop-viewport {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at top, rgba(65,154,248,0.18), transparent 32%),
        linear-gradient(180deg, #142849 0%, #233F6B 100%);
    box-shadow:
        0 28px 64px rgba(20, 40, 73, 0.32),
        inset 0 0 0 1px rgba(255,255,255,0.16);
    cursor: grab;
    touch-action: none;
}

.profile-photo-crop-viewport.is-dragging {
    cursor: grabbing;
}

.profile-photo-crop-canvas,
.profile-photo-crop-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.profile-photo-crop-canvas {
    display: block;
}

.profile-photo-crop-overlay {
    pointer-events: none;
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,0.82),
        inset 0 0 0 999px rgba(7, 18, 38, 0.14);
}

.profile-photo-crop-grid,
.profile-photo-crop-grid::before,
.profile-photo-crop-grid::after {
    position: absolute;
    inset: 0;
}

.profile-photo-crop-grid::before,
.profile-photo-crop-grid::after {
    content: "";
    background:
        linear-gradient(90deg, transparent 33.333%, rgba(255,255,255,0.24) 33.333%, rgba(255,255,255,0.24) 34.1%, transparent 34.1%, transparent 66.666%, rgba(255,255,255,0.24) 66.666%, rgba(255,255,255,0.24) 67.4%, transparent 67.4%),
        linear-gradient(180deg, transparent 33.333%, rgba(255,255,255,0.24) 33.333%, rgba(255,255,255,0.24) 34.1%, transparent 34.1%, transparent 66.666%, rgba(255,255,255,0.24) 66.666%, rgba(255,255,255,0.24) 67.4%, transparent 67.4%);
}

.profile-photo-crop-controls {
    align-content: start;
    padding: 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(65,154,248,0.12);
    box-shadow: 0 18px 38px rgba(34, 73, 118, 0.1);
}

.profile-photo-crop-zoom {
    display: grid;
    gap: 10px;
    font-weight: 700;
    color: var(--color-ink);
}

.profile-photo-crop-zoom input {
    width: 100%;
    accent-color: var(--color-blue);
}

.profile-photo-crop-toolbar,
.profile-photo-crop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-photo-crop-toolbar .compact-button {
    min-height: 44px;
    padding: 0 16px;
}

.profile-photo-crop-toolbar .ghost-button {
    background: rgba(65,154,248,0.08);
}

.profile-photo-crop-actions {
    justify-content: flex-end;
}

.profile-photo-crop-actions .ghost-button,
.profile-photo-crop-actions .primary-button {
    min-height: 50px;
}

.feed-gift-copy {
    display: grid;
    gap: 8px;
}

.feed-gift-copy h3 {
    margin: 0;
    font-size: clamp(1.8rem, 2.4vw, 2.35rem);
}

.feed-gift-copy p {
    margin: 0;
    color: var(--color-ink-soft);
    line-height: 1.65;
}

.feed-gift-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.feed-gift-empty {
    padding: 26px;
    border-radius: 24px;
    background: rgba(65, 154, 248, 0.06);
    color: var(--color-ink-soft);
    text-align: center;
}

.feed-gift-option {
    width: 100%;
    min-height: 100%;
    padding: 16px;
    border-radius: 28px;
    border: 1px solid rgba(65, 154, 248, 0.14);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 34px rgba(47, 135, 234, 0.08);
    display: grid;
    gap: 14px;
    justify-items: start;
    text-align: left;
}

.feed-gift-option.is-selected {
    border-color: rgba(65, 154, 248, 0.42);
    background: linear-gradient(180deg, rgba(245, 250, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 22px 42px rgba(47, 135, 234, 0.16);
}

.feed-gift-option-media {
    width: 100%;
    aspect-ratio: 1.22;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 81, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(242, 248, 255, 1) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.feed-gift-option-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.feed-gift-option-placeholder {
    color: var(--color-blue);
    font-size: 0.98rem;
    font-weight: 700;
}

.feed-gift-option-copy {
    display: grid;
    gap: 8px;
    width: 100%;
}

.feed-gift-option-copy strong {
    color: var(--color-ink);
    font-size: 1rem;
}

.feed-gift-option-copy p {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

.feed-gift-option-price {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 122, 81, 0.14);
    color: var(--color-orange);
    font-size: 0.84rem;
    font-weight: 800;
}

.feed-gift-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.wallet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 22px;
    clear: both;
}

.wallet-summary-card,
.wallet-features-card,
.delete-profile-layout {
    border-radius: 28px;
    background: rgba(65, 154, 248, 0.05);
    border: 1px solid rgba(65, 154, 248, 0.1);
    padding: 22px;
}

.wallet-summary-card {
    display: grid;
    gap: 18px;
}

.wallet-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 122, 81, 0.12);
    color: var(--color-orange);
    font-size: 0.82rem;
    font-weight: 800;
    width: fit-content;
}

.wallet-summary-card h3,
.delete-profile-copy h3,
.wallet-features-card h4 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.wallet-summary-card p,
.wallet-features-card p,
.delete-profile-copy p {
    margin: 0;
    color: var(--color-ink-soft);
    line-height: 1.6;
}

.wallet-balance-pill {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 122, 81, 0.12), rgba(255, 122, 81, 0.2));
}

.wallet-balance-pill img {
    width: 34px;
    height: 34px;
}

.wallet-balance-pill span {
    display: block;
    color: var(--color-ink-soft);
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.wallet-balance-pill strong {
    font-size: 1.7rem;
    color: var(--color-orange);
}

.wallet-primary-actions,
.delete-profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wallet-premium-actions {
    display: grid;
    gap: 12px;
}

.wallet-premium-action {
    width: 100%;
    padding: 16px 18px;
    border-radius: 22px;
    background: var(--color-white);
    border: 1px solid rgba(65, 154, 248, 0.12);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    text-align: left;
}

.wallet-premium-action span {
    line-height: 1.45;
}

.wallet-premium-action strong {
    color: var(--color-orange);
    font-size: 1.1rem;
}

.wallet-feature-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    color: var(--color-ink);
}

.delete-profile-layout {
    display: grid;
    gap: 20px;
    clear: both;
}

.delete-profile-copy {
    display: grid;
    gap: 10px;
}

.delete-profile-reasons {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 10px;
}

.delete-profile-reasons legend {
    padding: 0 0 6px;
    font-weight: 700;
}

.delete-reason-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--color-white);
    border: 1px solid rgba(65, 154, 248, 0.1);
}

.delete-reason-option input {
    margin-top: 4px;
}

.danger-button {
    min-height: 54px;
    padding: 0 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #FD5A7C 0%, #F04A6D 100%);
    color: var(--color-white);
    font-weight: 700;
}

.details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    clear: both;
}

.details-media-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.details-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.details-gallery img {
    width: 100%;
    aspect-ratio: 0.86;
    object-fit: cover;
    border-radius: 22px;
}

.details-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.details-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.details-facts-grid .feed-detail-stat {
    min-height: 100%;
    padding: 16px 18px;
    border-radius: 24px;
}

.details-insights-block {
    padding: 18px 20px 20px;
}

.toast-host {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: 280px;
    max-width: 420px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(47,48,53,0.92);
    color: var(--color-white);
}

.toast.toast-error {
    background: rgba(253,90,124,0.96);
}

.toast.toast-success {
    background: rgba(65,154,248,0.96);
}

.mobile-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(65,154,248,0.12);
    box-shadow: var(--shadow-soft);
    border-radius: 24px;
    padding: 10px 14px;
    justify-content: space-between;
}

.mobile-nav .nav-button-icon {
    height: 42px;
}

@media (max-width: 1280px) {
    .landing-card-grid,
    .landing-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .landing-hero,
    .landing-showcase,
    .auth-layout,
    .feed-grid,
    .likes-layout,
    .profile-viewers-layout,
    .profile-grid,
    .chat-layout,
    .details-layout {
        grid-template-columns: 1fr;
    }

    .landing-hero-media {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: end;
    }

    .landing-shot-card {
        position: relative;
        inset: auto;
        max-width: none;
    }

    .landing-phone-card {
        grid-column: 1 / -1;
        width: min(100%, 380px);
    }

    .landing-footer,
    .landing-cta-band,
    .landing-founder-grid {
        grid-template-columns: 1fr;
    }

    .feed-detail-hero,
    .feed-detail-stats,
    .feed-detail-sections {
        grid-template-columns: 1fr;
    }

    .feed-detail-header {
        flex-direction: column;
    }

    .feed-detail-top-actions {
        justify-content: flex-start;
    }

    .feed-detail-panel {
        min-height: 0;
    }

    .feed-detail-summary {
        justify-content: flex-start;
    }

    .details-facts-grid {
        grid-template-columns: 1fr;
    }

    .feed-detail-hero-visual {
        justify-items: start;
    }

    .feed-detail-preview {
        max-width: 260px;
    }

    .feed-aside,
    .profile-media,
    .likes-aside,
    .profile-viewers-aside {
        position: static;
    }

    .wallet-layout {
        grid-template-columns: 1fr;
    }

    .report-modal-layout {
        grid-template-columns: 1fr;
    }

    .report-modal-copy p {
        max-width: none;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .chat-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .landing-header {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .landing-menu {
        justify-content: flex-start;
    }

    .landing-header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .desktop-nav {
        display: none;
    }

    .app-screen {
        padding: 18px 18px 98px;
    }

    .app-header {
        grid-template-columns: 1fr auto;
    }

    .header-brand {
        grid-column: 1 / span 2;
    }

    .header-meta {
        grid-column: 1 / span 2;
        width: 100%;
        justify-content: space-between;
    }

    .mobile-nav .nav-button {
        flex: 0 0 auto;
        min-width: 0;
        padding: 0;
        justify-content: center;
    }

    .mobile-nav .nav-button-icon {
        height: 38px;
    }

    .filter-grid,
    .form-grid,
    .likes-tab-bar,
    .profile-viewers-periods,
    .landing-card-grid,
    .landing-value-grid,
    .landing-showcase-gallery {
        grid-template-columns: 1fr;
    }

    .feed-navigation-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feed-navigation-copy {
        grid-column: 1 / -1;
        order: -1;
    }

    .feed-navigation-button {
        width: 100%;
        justify-self: stretch;
    }

    .landing-founder-card {
        grid-template-columns: 1fr;
    }

    .profile-notice-head {
        flex-direction: column;
    }

    .profile-notice-percent {
        min-width: 0;
        min-height: 56px;
    }

    .profile-notice-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    .mobile-nav {
        display: none;
    }
}

@media (max-width: 680px) {
    .screen,
    .app-screen {
        padding-left: 14px;
        padding-right: 14px;
    }

    .landing-hero,
    .landing-section,
    .landing-cta-band,
    .landing-footer,
    .auth-panel-surface,
    .surface,
    .feed-card,
    .feed-card-media-frame,
    .modal-sheet {
        border-radius: 28px;
    }

    .landing-hero,
    .landing-section,
    .landing-cta-band,
    .landing-footer,
    .auth-copy-panel,
    .auth-form-panel,
    .modal-sheet {
        padding: 22px;
    }

    .header-meta {
        gap: 10px;
        align-items: stretch;
    }

    .stat-pill-button,
    .user-chip {
        flex: 1;
        justify-content: center;
    }

    .user-menu {
        position: fixed;
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 88px;
        width: auto;
        max-height: min(72vh, 560px);
        overflow: auto;
    }

    .user-menu-language-cluster {
        grid-template-columns: 1fr;
    }

    .wallet-summary-card,
    .wallet-features-card,
    .delete-profile-layout,
    .report-modal-card {
        padding: 18px;
        border-radius: 24px;
    }

    .delete-profile-actions {
        display: grid;
    }

    .report-modal-actions {
        display: grid;
    }

    .landing-header {
        padding: 16px 18px;
    }

    .landing-hero-copy h1,
    .auth-copy-body h1 {
        font-size: clamp(2.2rem, 11vw, 3.4rem);
    }

    .landing-trust-card {
        min-width: calc(50% - 5px);
    }

    .auth-copy-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .likes-grid {
        grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
    }

    .likes-card,
    .profile-viewers-card {
        max-width: none;
    }

    .profile-viewers-filter-shell {
        padding: 18px;
        border-radius: 24px;
    }

    .profile-viewers-hero {
        grid-template-columns: 1fr;
    }

    .profile-viewers-visit-pill {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .field-label-row {
        gap: 8px;
        flex-wrap: wrap;
    }

    .range-filter-summary {
        font-size: 0.9rem;
    }

    .multi-select-menu {
        position: fixed;
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 86px;
        border-radius: 28px;
        padding: 18px;
        max-height: min(62vh, 520px);
        box-shadow: 0 28px 60px rgba(32, 96, 171, 0.24);
    }

    .multi-select-options {
        max-height: min(40vh, 280px);
    }

    .multi-select-actions {
        flex-wrap: wrap;
    }

    .multi-select-actions .compact-button {
        flex: 1;
    }

    .feed-navigation-surface {
        padding: 18px;
        border-radius: 30px;
    }

    .feed-navigation-track,
    .feed-gift-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .feed-gift-options {
        grid-template-columns: 1fr;
    }

    .feed-detail-panel {
        padding: 20px;
        border-radius: 30px;
    }

    .feed-detail-preview {
        width: 100%;
    }

    .feed-detail-photo-grid {
        padding: 12px;
        border-radius: 24px;
    }

    .feed-detail-top-actions,
    .feed-detail-actions,
    .feed-detail-footer-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.auth-stage {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.auth-screen {
    padding-top: 18px;
}

.auth-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 28px;
    border: 1px solid rgba(65, 154, 248, 0.14);
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.auth-back-button {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-blue);
    background: rgba(65, 154, 248, 0.08);
    border: 1px solid rgba(65, 154, 248, 0.16);
    font-weight: 700;
}

.auth-language-cluster {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.auth-language-pill {
    background: rgba(65, 154, 248, 0.08);
}

.auth-layout {
    min-height: calc(100vh - 162px);
    display: grid;
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    gap: 24px;
    align-items: start;
}

.auth-form-panel {
    padding: 34px;
    background: rgba(255, 255, 255, 0.98);
    align-content: center;
    width: min(100%, 560px);
    justify-self: center;
}

.google-auth-card {
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.google-auth-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.google-auth-badge {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(65, 154, 248, 0.12), rgba(253, 90, 124, 0.1));
    flex-shrink: 0;
}

.google-auth-badge img {
    width: 22px;
    height: 22px;
}

.google-auth-copy strong,
.google-auth-copy span {
    display: block;
}

.google-auth-copy span {
    margin-top: 4px;
    color: var(--color-ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.google-button-shell {
    margin-top: 18px;
    padding: 8px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(65, 154, 248, 0.08), rgba(253, 90, 124, 0.06));
    border: 1px solid rgba(65, 154, 248, 0.14);
}

.google-button-host {
    min-height: 46px;
    display: grid;
    place-items: center;
}

.google-button-host iframe,
.google-button-host div {
    width: 100% !important;
    margin: 0 auto !important;
}

.auth-email-form {
    gap: 14px;
}

.auth-inline-note {
    margin: -2px 0 0;
    color: var(--color-ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-code-card {
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(253, 90, 124, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(65, 154, 248, 0.14);
    box-shadow: 0 18px 36px rgba(47, 135, 234, 0.1);
}

.auth-code-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.auth-code-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(65, 154, 248, 0.14), rgba(253, 90, 124, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-code-badge img {
    width: 24px;
    height: 24px;
}

.auth-code-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.auth-code-copy strong {
    font-size: 1rem;
    color: var(--color-ink);
}

.auth-code-copy span {
    color: var(--color-ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-code-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-code-timer {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(65, 154, 248, 0.08);
    color: var(--color-blue);
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-code-change {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.84rem;
}

.legal-text {
    margin: 4px 0 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.legal-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(65, 154, 248, 0.08);
    color: var(--color-blue);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.legal-links a:hover {
    background: rgba(65, 154, 248, 0.14);
}

@media (max-width: 1100px) {
    .auth-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

}

@media (max-width: 900px) {
    .auth-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-insights-grid {
        grid-template-columns: 1fr;
    }

    .feed-insight-card.is-activity {
        grid-column: auto;
    }

    .auth-language-cluster {
        justify-content: flex-start;
    }

    .auth-form-panel {
        padding: 22px;
    }

    .access-gate-head {
        flex-direction: column;
    }

    .access-gate-badge-shell {
        width: 100%;
        justify-items: start;
    }

    .access-gate-list {
        grid-template-columns: 1fr;
    }

    .profile-photo-crop-layout {
        grid-template-columns: 1fr;
    }

    .profile-photo-crop-stage-shell {
        padding: 14px;
    }

    .profile-photo-crop-controls {
        padding: 18px;
    }

    .auth-code-meta-row {
        align-items: stretch;
    }

    .chat-image-modal-image-shell {
        min-height: 0;
    }

}

@media (max-width: 640px) {
    .auth-screen {
        padding: 14px;
    }

    .auth-back-button {
        width: 100%;
    }

    .auth-language-cluster {
        width: 100%;
    }

    .auth-language-pill {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .google-auth-heading {
        align-items: flex-start;
    }

    .legal-links a {
        width: 100%;
    }

    .access-gate-card,
    .notice-banner,
    .modal-sheet {
        border-radius: 24px;
    }

    .access-gate-card {
        padding: 20px;
    }

    .access-gate-actions {
        flex-direction: column;
    }

    .access-gate-actions .primary-button,
    .access-gate-actions .ghost-button {
        width: 100%;
    }

    .auth-code-meta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-code-change {
        width: 100%;
    }

    .profile-photo-crop-modal-sheet {
        padding: 20px;
        margin: 12px;
        max-height: calc(100vh - 24px);
        border-radius: 28px;
    }

    .chat-image-modal-sheet {
        padding: 20px;
        margin: 12px;
        max-height: calc(100vh - 24px);
        border-radius: 28px;
    }

    .profile-photo-crop-viewport {
        width: min(100%, 300px);
        border-radius: 28px;
    }

    .feed-card-match-banner {
        top: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
        padding: 12px 14px 13px;
    }

    .feed-card-quarantine-banner {
        top: 16px;
        right: 16px;
        left: auto;
        max-width: min(calc(100% - 32px), 250px);
        padding: 12px 14px 13px;
    }

    .feed-card-media-frame.has-confession-match .feed-card-quarantine-banner {
        top: 132px;
    }

    .feed-card-quarantine-banner strong {
        font-size: 0.96rem;
    }

    .feed-card-media-frame.has-quarantine-review::before {
        inset: 8px;
        border-radius: 24px;
    }

    .feed-card-match-banner strong {
        font-size: 0.96rem;
    }

    .feed-card-media-frame.has-confession-match::after {
        inset: 8px;
        border-radius: 24px;
    }

    .profile-photo-crop-toolbar .compact-button,
    .profile-photo-crop-actions .ghost-button,
    .profile-photo-crop-actions .primary-button {
        flex: 1 1 140px;
    }

    .chat-image-modal-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .chat-image-modal-toolbar {
        justify-content: flex-start;
    }

    .chat-image-modal-copy h3 {
        font-size: clamp(1.65rem, 8vw, 2.2rem);
    }

    .chat-image-modal-nav {
        width: 48px;
        height: 48px;
    }

    .chat-image-modal-nav.is-prev {
        left: 12px;
    }

    .chat-image-modal-nav.is-next {
        right: 12px;
    }

    .chat-image-modal-image-shell {
        min-height: min(58vh, 520px);
        padding: 12px;
        border-radius: 24px;
    }

    .chat-image-modal-image {
        max-height: calc(100vh - 260px);
        border-radius: 20px;
    }

    .chat-image-modal-thumbs .chat-image-modal-thumb {
        flex-basis: 74px;
        width: 74px;
    }
}
