﻿.landing-panel {
    display: grid;
    gap: 1.4rem;
    width: min(100%, 560px);
    padding: 1.6rem;
}

.landing-panel__brand,
.landing-preview-card__head,
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.landing-panel__brand small,
.landing-preview-card small,
.auth-brand p {
    color: var(--text-soft);
}

.landing-panel__copy {
    display: grid;
    gap: 0.9rem;
}

.landing-panel__copy h1 {
    font-size: clamp(2.5rem, 8vw, 3.8rem);
    line-height: 0.98;
}

.landing-panel__preview {
    margin-top: 0.5rem;
}

.landing-preview-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface-soft);
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.auth-body {
    min-height: 100dvh;
    background: #121216;
}

.auth-shell {
    width: min(100%, 480px);
    min-height: 100dvh;
    padding: clamp(1.3rem, 4vh, 2.6rem) 1rem 1.4rem;
}

.auth-card {
    display: grid;
    gap: 1.1rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: translateY(18px);
}

.auth-card--compact {
    max-width: 390px;
}

.auth-card.is-entering-prev {
    transform: translateX(-16px);
}

.auth-card.is-entering-next {
    transform: translateX(16px);
}

.auth-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 280ms ease;
}

.auth-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 850;
    line-height: 1.04;
}

.auth-footer {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.auth-footer a:hover {
    color: var(--brand);
}

.auth-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-muted) 62%, transparent);
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

.auth-legal-links__label {
    flex-basis: 100%;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.auth-legal-links a:hover {
    border-color: color-mix(in srgb, var(--brand) 58%, var(--border));
    background: color-mix(in srgb, var(--brand) 10%, var(--surface));
    color: var(--brand);
}

.auth-brand {
    color: var(--text);
}

.auth-brand--centered {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    text-align: center;
}

.auth-brand--centered .brand-mark {
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 21px;
    box-shadow: 0 18px 42px rgba(29, 120, 255, 0.18);
}

.auth-brand--centered strong {
    font-size: 1.42rem;
    font-weight: 850;
}

.auth-header {
    gap: 0.6rem;
}

.auth-header--compact {
    gap: 0.45rem;
}

.auth-form--spacious {
    gap: 0.95rem;
}

.auth-password-field {
    position: relative;
}

.auth-password-field input {
    padding-right: 3.6rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    transform: translateY(-50%);
}

.auth-password-toggle .icon {
    width: 1.15rem;
    height: 1.15rem;
}

.auth-password-toggle.is-active {
    color: var(--text);
}

.auth-note,
.field-help {
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.45;
}

.auth-note a {
    color: var(--brand);
}

.auth-inline-link {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.45rem;
}

.auth-inline-link a {
    color: var(--text-soft);
    font-weight: 600;
}

.auth-inline-link a:hover {
    color: var(--brand);
}

.field-group--avatar {
    gap: 0.7rem;
}

.auth-code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
}

.auth-code-digit {
    width: 100%;
    min-height: 5rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text);
    font-size: 1.65rem;
    font-weight: 800;
    text-align: center;
}

.auth-code-digit.is-filled,
.auth-code-digit:focus {
    border-color: rgba(41, 133, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(41, 133, 255, 0.12);
}

.auth-security-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(20, 136, 255, 0.18), transparent 34%),
        color-mix(in srgb, var(--surface-muted) 70%, transparent);
}

.auth-security-card__label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-security-card strong {
    font-size: 1.2rem;
}

.auth-digit-choice {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.auth-digit-choice__button,
.auth-confirm-digit {
    display: grid;
    place-items: center;
    min-height: 5rem;
    border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--border));
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    color: var(--text);
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.auth-digit-choice__button:hover,
.auth-digit-choice__button:focus-visible {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 18%, var(--surface));
    transform: translateY(-2px);
}

.auth-confirm-digit {
    width: 7rem;
    min-height: 7rem;
    margin: 0 auto;
    border-color: var(--brand);
    background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.28), transparent 42%), var(--brand);
    color: #fff;
    font-size: 3rem;
}

.auth-profile-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 1rem;
    padding: 0 0.75rem;
}

.auth-profile-progress__line {
    position: absolute;
    top: 50%;
    left: 2.75rem;
    right: 2.75rem;
    height: 2px;
    background: var(--surface-soft);
    transform: translateY(-50%);
}

.auth-profile-progress__step {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-weight: 800;
}

.auth-profile-progress__step:nth-child(2) {
    justify-self: start;
}

.auth-profile-progress__step:nth-child(3) {
    justify-self: end;
}

.auth-profile-progress__step.is-active,
.auth-profile-progress__step.is-complete {
    background: var(--brand);
    color: #fff;
}

.auth-avatar-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
}

.auth-avatar-preview {
    display: grid;
    place-items: center;
    width: 5.5rem;
    height: 5.5rem;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(82, 132, 198, 0.95), rgba(45, 74, 112, 0.98));
    color: #eef6ff;
    font-size: 1.75rem;
    font-weight: 800;
}

.auth-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-avatar-copy {
    display: grid;
    gap: 0.35rem;
}

.auth-avatar-button {
    grid-column: 1 / -1;
    width: 100%;
}

.auth-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.auth-actions--stacked {
    display: grid;
    gap: 0.9rem;
}

.auth-actions--dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.button--auth-main {
    width: 100%;
    min-height: 3.6rem;
    background: #fff;
    color: #111316;
    font-size: 1.05rem;
}

.button--auth-main:hover {
    background: #fff;
    color: #111316;
}

.button--auth-secondary {
    width: 100%;
    min-height: 3.6rem;
    color: var(--text);
}

.auth-footer--centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
}

.auth-footer--stacked {
    display: grid;
    gap: 0.85rem;
}

.auth-footer a {
    color: var(--brand);
    font-weight: 700;
}

.page-header--feed {
    margin-bottom: -0.15rem;
}

.page-header--feed .segmented-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.page-header--stacked {
    gap: 1.2rem;
}

.external-check {
    display: grid;
    place-items: center;
    min-height: min(100dvh, 760px);
    padding: 2rem 1rem;
}

.external-check__card {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: min(100%, 440px);
    padding: clamp(1.4rem, 5vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 0%, rgba(20, 136, 255, 0.18), transparent 42%),
        var(--surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    text-align: center;
}

.external-check__status {
    position: relative;
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
}

.external-check__spinner {
    width: 5rem;
    height: 5rem;
    border: 3px solid color-mix(in srgb, var(--brand) 18%, var(--border));
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: external-check-spin 900ms linear infinite;
}

.external-check__mark {
    position: absolute;
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.74);
    transition: opacity 360ms ease, transform 420ms cubic-bezier(0.2, 0.9, 0.24, 1.2);
}

.external-check__mark svg {
    width: 3.2rem;
    height: 3.2rem;
}

.external-check__mark path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.external-check__mark--success {
    background: rgba(35, 197, 114, 0.14);
    color: #58e08d;
}

.external-check__mark--danger {
    background: rgba(255, 75, 75, 0.14);
    color: #ff7676;
}

.external-check.is-success .external-check__spinner,
.external-check.is-danger .external-check__spinner {
    opacity: 0;
    transform: scale(0.8);
    animation-play-state: paused;
    transition: opacity 220ms ease, transform 220ms ease;
}

.external-check.is-success .external-check__mark--success,
.external-check.is-danger .external-check__mark--danger {
    opacity: 1;
    transform: scale(1);
}

.external-check__url {
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
    color: var(--text-soft);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.external-check__message {
    color: #ff8f8f;
    font-weight: 800;
}

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

.profile-hero {
    padding: 0;
    border-radius: 36px;
    overflow: visible;
}

.profile-hero__cover {
    aspect-ratio: 3 / 1;
    height: auto;
    min-height: 0;
    overflow: hidden;
    margin: 0.75rem 0.75rem 0;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        linear-gradient(135deg, rgba(74, 163, 255, 0.08), rgba(137, 151, 175, 0.03));
}

.profile-hero__cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: color-mix(in srgb, var(--surface-soft) 64%, transparent);
}

.profile-hero__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "avatar actions"
        "identity identity"
        "bio bio"
        "stats stats"
        "tabs tabs";
    align-items: end;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.profile-hero__top {
    display: contents;
}

.profile-hero__body {
    display: contents;
    gap: 0.8rem;
}

.profile-hero__body h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    line-height: 1.05;
}

.profile-meta {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.profile-meta strong {
    color: var(--text);
}

.profile-tabs {
    margin-top: 0.5rem;
    position: sticky;
    top: 0.75rem;
    z-index: 4;
}

.comment-composer textarea {
    min-height: 100px;
}

.comment-composer {
    border-radius: 36px;
}

.notification-list {
    display: grid;
    gap: 0.9rem;
}

.notifications-page {
    max-width: none;
    gap: 1rem;
}

.notifications-page h1,
.page-header--stacked h1,
.subpage-bar .back-link {
    font-size: clamp(1.9rem, 4vw, 2.25rem);
    letter-spacing: 0;
}

.subpage-bar .back-link {
    gap: 0.75rem;
    font-size: 1.1rem;
}

.page-header--stacked h1 {
    line-height: 1.05;
}

.error-page {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 1rem;
}

.error-card {
    display: grid;
    gap: 1.4rem;
    width: min(100%, 520px);
    padding: clamp(1.25rem, 4vw, 1.65rem);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    box-shadow: var(--shadow-soft);
}

.error-card__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.error-card__brand strong {
    font-size: 1.1rem;
}

.error-card__body {
    display: grid;
    gap: 0.75rem;
}

.error-card__code {
    width: fit-content;
    padding: 0.38rem 0.72rem;
    border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    font-size: 0.86rem;
    font-weight: 800;
}

.error-card h1 {
    font-size: clamp(2.1rem, 8vw, 3.35rem);
    line-height: 0.98;
}

.error-card p:not(.eyebrow) {
    max-width: 34rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.error-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.error-card__actions .button {
    min-width: 10rem;
}

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

.premium-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 320px);
    gap: 1.5rem;
    align-items: start;
}

.premium-hero--landing {
    gap: 1.15rem;
}

.premium-hero__copy {
    display: grid;
    gap: 1rem;
}

.premium-hero__lead {
    max-width: 42rem;
    color: var(--text-soft);
    font-size: 1.05rem;
    font-weight: 600;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    gap: 1.5rem;
    align-items: center;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 100vh;
    padding: 2rem 0;
}

.followers-sheet__header h2,
.premium-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

@media (max-width: 920px) {
    .auth-shell {
        padding: 1.5rem 0.75rem 1.5rem;
    }

    .auth-card {
        padding: 0;
        border-radius: 0;
    }

    .landing-panel {
        padding: 1.2rem;
        border-radius: 28px;
    }

    .auth-code-grid {
        gap: 0.5rem;
    }

    .auth-code-digit {
        min-height: 4.35rem;
        font-size: 1.4rem;
    }

    .auth-avatar-picker {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .auth-actions--dual {
        grid-template-columns: 1fr;
    }

    .profile-hero__panel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: none;
        align-items: stretch;
        padding: 0 1rem 1.1rem;
    }

    .profile-hero__top {
        display: grid;
        justify-items: center;
        gap: 0.75rem;
    }

    .profile-hero__body {
        display: grid;
        gap: 0.95rem;
    }

    .profile-hero__body h1 {
        font-size: clamp(2.2rem, 9vw, 2.8rem);
    }

    .profile-actions {
        justify-content: center;
    }

    .discovery-grid,
    .premium-hero,
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .error-card__actions {
        display: grid;
    }

    .error-card__actions .button {
        width: 100%;
    }

    .composer-card--global {
        width: 100%;
    }

    [data-compose-sheet] {
        position: fixed;
        top: 0.5rem;
        right: 0.5rem;
        bottom: calc(0.5rem + env(safe-area-inset-bottom));
        left: 0.5rem;
        z-index: 21;
        display: flex;
        min-height: 0;
        max-height: none;
        padding: 0;
        overflow: hidden;
        border-radius: 32px;
        background: var(--surface);
        opacity: 0;
        visibility: hidden;
        transform: translateY(24px);
        pointer-events: none;
        transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    }

    [data-compose-sheet].is-mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    [data-compose-sheet] form {
        display: grid;
        align-content: start;
        height: 100%;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
        background: var(--surface);
    }

    [data-compose-sheet].composer-card--global form {
        height: 100%;
        max-height: none;
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    }
}

body[data-page-kind] *,
body[data-page-kind] *::before,
body[data-page-kind] *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body[data-page-kind="app"] {
    background: #121316;
}

body[data-page-kind="app"] .surface,
body[data-page-kind="app"] .post-card,
body[data-page-kind="app"] .composer-card,
body[data-page-kind="app"] .comment-card,
body[data-page-kind="app"] .mobile-nav,
body[data-page-kind="app"] .drawer,
body[data-page-kind="app"] .dialog-shell,
body[data-page-kind="app"] .settings-dialog,
body[data-page-kind="app"] .premium-dialog,
body[data-page-kind="app"] .connections-modal,
body[data-page-kind="app"] .post-editor-dialog,
body[data-page-kind="app"] .report-dialog,
body[data-page-kind="app"] .support-modal,
body[data-page-kind="app"] .profile-action-menu__panel,
body[data-page-kind="app"] .custom-select__menu,
body[data-page-kind="app"] .media-carousel__nav,
body[data-page-kind="app"] [data-compose-sheet] {
    background: var(--surface) !important;
    box-shadow: none !important;
}

body[data-page-kind="app"] [data-feed-scope].segmented-control.segmented-control--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page-kind="app"] .profile-tabs.segmented-control--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page-kind="app"] .feed-stack {
    gap: 0.72rem;
}

body[data-page-kind="app"] .infinite-sentinel {
    padding: 0.05rem 0 0.15rem;
}

body[data-page-kind="app"] .feed-end-card {
    padding: 0.9rem 1.1rem;
    border-radius: 24px;
}

.support-shell {
    gap: 1rem;
}

.support-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.support-ticket-list,
.support-ticket-card__main,
.support-ticket-card__side,
.support-thread,
.support-message-list,
.support-reply-form,
.support-closed-note,
.support-request-dialog,
.support-request-form {
    display: grid;
    gap: 0.85rem;
}

.support-ticket-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        var(--surface);
    color: var(--text);
    text-decoration: none;
}

.support-ticket-card:hover {
    border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 12%, transparent), transparent 38%),
        var(--surface);
}

.support-ticket-card__number {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.support-ticket-card h2 {
    font-size: 1.18rem;
    letter-spacing: 0;
}

.support-ticket-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.support-ticket-card__side {
    justify-items: end;
    align-content: start;
}

.support-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.support-status--waiting {
    background: rgba(251, 191, 36, 0.13);
    color: #f6c861;
}

.support-status--reviewing {
    background: rgba(41, 133, 255, 0.14);
    color: #6eb4ff;
}

.support-status--closed {
    background: rgba(74, 222, 128, 0.12);
    color: #7de6a7;
}

.support-empty-card {
    display: grid;
    gap: 1rem;
}

.support-pagination,
.support-detail-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.support-thread {
    padding: 1.35rem;
    border-radius: 32px;
}

.support-thread__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.support-thread__header h1 {
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    letter-spacing: 0;
}

.support-message {
    display: grid;
    gap: 0.5rem;
    width: min(88%, 620px);
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
}

.support-message--agent {
    justify-self: end;
    border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 15%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface-soft) 84%, transparent);
}

.support-message header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.support-message header span {
    color: var(--text-soft);
    font-size: 0.78rem;
    white-space: nowrap;
}

.support-message p {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.support-reply-form,
.support-closed-note {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.support-email-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
}

.support-email-card span {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.support-problem-grid {
    grid-template-columns: 1fr;
}

.support-problem-option {
    cursor: pointer;
}

@media (max-width: 920px) {
    .support-page-header,
    .support-ticket-card,
    .support-thread__header {
        display: grid;
        grid-template-columns: 1fr;
    }

    .support-ticket-card__side {
        justify-items: start;
    }

    .support-message {
        width: 100%;
    }
}

.support-request-dialog {
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(82vh, 760px);
}

.support-request-dialog .report-dialog__header {
    padding-inline: 2.85rem;
}

.support-request-form {
    min-height: 0;
}

.support-request-form .report-form__body {
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.support-request-form .field-group {
    display: grid;
    gap: 0.55rem;
}

.support-request-form textarea {
    min-height: 160px;
    max-height: min(34vh, 270px);
}

.support-request-dialog .report-dialog__footer {
    flex: none;
    padding-top: 0.2rem;
}

@media (max-width: 920px) {
    .dialog-content > .support-request-dialog,
    .support-request-dialog {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        padding: 1rem;
        border-radius: 30px;
    }

    .support-request-dialog .report-dialog__header {
        align-self: start;
        gap: 0.45rem;
        justify-items: start;
        padding: 0 3rem 0.65rem 0;
        text-align: left;
    }

    .support-request-dialog .report-dialog__header h2 {
        font-size: clamp(1.65rem, 7.2vw, 2.15rem);
        line-height: 1.05;
    }

    .support-request-dialog .report-dialog__header .muted {
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .support-request-form {
        gap: 0.85rem;
        min-height: 0;
    }

    .support-request-form .report-form__body {
        gap: 0.8rem;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .support-email-card {
        padding: 0.78rem 0.9rem;
        border-radius: 18px;
    }

    .support-problem-grid {
        gap: 0.65rem;
    }

    .support-problem-option .report-option__content {
        min-height: 3.75rem;
        padding: 0.92rem 1rem;
        border-radius: 18px;
    }

    .support-request-form textarea {
        min-height: 150px;
        max-height: none;
    }

    .support-request-dialog .report-dialog__footer {
        gap: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: calc(0.1rem + env(safe-area-inset-bottom));
        background: var(--surface);
    }
}
