﻿.nav-link,
.nav-link--button {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    min-height: 3.45rem;
    border-radius: 18px;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    transition: none;
}

.nav-link:hover,
.nav-link--button:hover {
    color: var(--text-soft);
    background: transparent;
}

.nav-link.is-active {
    color: var(--text);
    background: var(--surface);
}

.nav-link--premium {
    color: #ffd670;
}

.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 77, 146, 0.12);
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 800;
}

.status-pill.is-live {
    background: var(--brand-soft);
    color: var(--brand);
}

.status-pill.is-muted {
    background: var(--surface-soft);
    color: var(--text-soft);
}

.button,
.icon-button,
.composer-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.78rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 700;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
    cursor: pointer;
}

.button:hover,
.icon-button:hover,
.composer-tool:hover {
    background: var(--surface-soft-hover);
}

.button--primary {
    background: var(--brand);
    color: #fff;
    border-color: color-mix(in srgb, var(--brand) 45%, white 14%);
    box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 24%, transparent);
}

.button--primary:hover {
    background: var(--brand);
    box-shadow: none;
}

.button--ghost,
.icon-button--plain {
    border-color: transparent;
    background: transparent;
    color: var(--text-soft);
    box-shadow: none;
}

.button--ghost:hover,
.icon-button--plain:hover {
    background: var(--surface-soft);
    color: var(--text-soft);
}

.button--danger {
    border-color: color-mix(in srgb, var(--danger) 34%, transparent);
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 62%),
        color-mix(in srgb, var(--danger) 88%, #8f123f);
}

.button--ghost.button--danger {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    box-shadow: none;
}

.button--danger:hover,
.button--ghost.button--danger:hover {
    color: #fff;
    background: color-mix(in srgb, var(--danger) 88%, #8f123f);
}

.icon-button {
    width: 2.8rem;
    padding: 0;
}

.button--small {
    min-height: 2.35rem;
    padding: 0.58rem 0.9rem;
    font-size: 0.88rem;
}

.theme-toggle {
    flex: none;
}

.segmented-control {
    position: relative;
    display: grid;
    width: 100%;
    gap: 0.25rem;
    padding: 0.34rem;
    border: 0;
    border-radius: 999px;
    background: #222224;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body[data-bs-theme="light"] .segmented-control {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 62%),
        rgba(255, 255, 255, 0.62);
}

.segmented-control--wide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.profile-tabs.segmented-control--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented-control__item {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.62rem;
    padding: 0.48rem 0.86rem;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.94rem;
    font-weight: 700;
    transition: color 180ms ease, background-color 180ms ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.segmented-control__item .icon {
    width: 1.04rem;
    height: 1.04rem;
    flex: none;
}

.segmented-control__item.is-active {
    color: var(--text);
    text-shadow: 0 0 0 currentColor;
}

.segmented-control.is-touch-dragging .segmented-control__item {
    color: var(--text-muted);
}

.segmented-control__item.is-drag-target {
    color: var(--text);
}

.segmented-control__indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 999px;
    background: #333336;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), width 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.segmented-control__indicator.is-drag-preview,
.mobile-nav__indicator.is-drag-preview {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.13)),
        rgba(47, 128, 255, 0.14);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 12px 28px rgba(47, 128, 255, 0.18);
    transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1), width 120ms cubic-bezier(0.16, 1, 0.3, 1), opacity 120ms ease;
}

.field-group,
.stack-form,
.composer-fields,
.followers-list,
.notification-list,
.auth-form,
.premium-panel,
.discovery-grid,
.auth-header {
    display: grid;
    gap: 0.85rem;
}

.field-group label {
    font-size: 0.94rem;
    font-weight: 750;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-elevated);
    color: var(--text);
    outline: 0;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    min-height: 3.25rem;
    padding: 0.78rem 0.95rem;
    font-weight: 650;
}

.auth-form .button--auth-main {
    min-height: 3.35rem;
    font-size: 1rem;
    font-weight: 800;
}

select {
    appearance: none;
    padding-right: 2.75rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
        linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 0.1rem),
        calc(100% - 0.82rem) calc(50% - 0.1rem);
    background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
    background-repeat: no-repeat;
    cursor: pointer;
}

body[data-bs-theme="dark"] input[type="text"],
body[data-bs-theme="dark"] input[type="email"],
body[data-bs-theme="dark"] input[type="password"],
body[data-bs-theme="dark"] input[type="search"],
body[data-bs-theme="dark"] textarea,
body[data-bs-theme="dark"] select {
    background: var(--bg);
}

textarea {
    min-height: 120px;
    resize: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(74, 163, 255, 0.45);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.username-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--bg-elevated);
}

body[data-bs-theme="dark"] .username-field {
    background: #121419;
}

.username-field span {
    color: var(--text-soft);
    font-weight: 800;
}

.username-field input {
    padding-left: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.field-hint,
.field-error,
.form-errors {
    font-size: 0.88rem;
}

.field-hint {
    min-height: 1.2rem;
    color: var(--text-soft);
}

.field-error,
.form-errors {
    color: var(--danger);
}

.form-errors {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 77, 146, 0.18);
    border-radius: 18px;
    background: rgba(255, 77, 146, 0.08);
}

.auth-actions,
.form-actions,
.composer-toolbar,
.post-card__footer,
.comment-card__footer,
.profile-meta,
.notification-card__actions,
.post-card__tools,
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.profile-actions {
    gap: 0.95rem;
    grid-area: actions;
    align-self: center;
    justify-content: flex-end;
    margin-top: 0;
    padding-bottom: 0;
}

.text-format-menu {
    position: fixed;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.38rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 96%, #000);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 130ms ease, transform 130ms ease;
}

.text-format-menu.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.text-format-menu[hidden] {
    display: none;
}

.text-format-menu button {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
}

.text-format-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.text-format-menu svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rich-composer-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.rich-composer-editor {
    width: 100%;
    min-height: 76px;
    max-height: 180px;
    padding: 0.2rem 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.45;
    outline: 0;
    white-space: pre-wrap;
}

body[data-bs-theme="dark"] .rich-composer-editor {
    background: transparent;
}

.rich-composer-editor:focus {
    box-shadow: none;
}

.rich-composer-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.rich-composer-editor code {
    padding: 0.1rem 0.28rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.rich-composer-editor blockquote {
    margin: 0.2rem 0;
    padding-left: 0.75rem;
    border-left: 3px solid var(--brand);
    color: var(--text-soft);
}

.rich-composer-editor .rich-spoiler,
.post-spoiler {
    position: relative;
    display: inline;
    border-radius: 0.35em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.rich-composer-editor .rich-spoiler {
    padding: 0 0.12em;
    color: var(--text);
    background:
        radial-gradient(circle, color-mix(in srgb, var(--text) 48%, transparent) 0 1px, transparent 1.2px) 0 0 / 5px 5px,
        color-mix(in srgb, var(--surface-soft) 68%, transparent);
}

.profile-actions > form {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
}

.profile-actions > .button,
.profile-actions > form .button,
.profile-actions > .profile-badge {
    min-height: 3rem;
    line-height: 1;
}

.flash {
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    animation: fadeSlideUp 320ms ease;
}

.flash--success {
    border-color: rgba(74, 163, 255, 0.22);
}

.rail-card,
.prose-card,
.form-card,
.composer-card,
.profile-hero,
.premium-hero,
.post-card,
.comment-card,
.notification-card,
.status-card,
.empty-card,
.discovery-card,
.metric-card,
.chart-card,
.admin-list-card,
.table-card {
    width: 100%;
    padding: 1.5rem;
}

.post-card,
.comment-card {
    display: grid;
    gap: 0.85rem;
}

.post-card {
    padding: 1.5rem;
    border-color: transparent;
    border-radius: 32px;
    gap: 1rem;
    background: var(--surface);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body[data-bs-theme="light"] .post-card {
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.composer-card {
    padding: 1.5rem;
    border-radius: 36px;
    background: var(--surface);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.desktop-compose-host {
    display: none;
}

.mobile-compose-host {
    display: contents;
}

.composer-card--global {
    position: fixed;
    right: max(1.25rem, calc((100vw - var(--app-shell-width)) / 2 + 0.25rem));
    bottom: calc(5.8rem + env(safe-area-inset-bottom));
    z-index: 21;
    display: flex;
    width: min(650px, calc(100vw - 2.5rem));
    max-height: min(76vh, 680px);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.75rem) scale(0.985);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.composer-card--desktop-inline {
    position: static;
    z-index: auto;
    display: block;
    width: 100%;
    max-height: none;
    margin: 0 0 0.25rem;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.composer-card--global.is-mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.composer-card--global form {
    display: grid;
    align-content: start;
    width: 100%;
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
}

.composer-card--desktop-inline form {
    max-height: none;
    overflow: visible;
}

.composer-card--desktop-inline .composer-mobile-top {
    display: none;
}

.comment-card {
    padding: 1.1rem;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.comment-stack {
    display: grid;
    gap: 0;
}

.comment-stack > .comment-card--thread {
    padding: 1.15rem 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.comment-stack > .comment-card--thread:last-child {
    border-bottom: 0;
}

.recommendations-card,
.recommendations-card__header,
.recommendations-card__list,
.recommendation-user,
.recommendation-user__profile,
.recommendation-user__meta {
    display: grid;
}

.recommendations-card {
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 28px;
    background: var(--surface);
}

.recommendations-card__header {
    gap: 0.35rem;
}

.recommendations-card__header h3 {
    font-size: 1.18rem;
}

.recommendations-card__list {
    gap: 0.85rem;
}

.recommendation-user {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.recommendation-user:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.recommendation-user__profile {
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: start;
    gap: 0.8rem;
}

.recommendation-user__meta {
    gap: 0.2rem;
    min-width: 0;
}

.recommendation-user__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.recommendation-user__title .display-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommendation-user__reason {
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.35;
}

.post-card__header,
.comment-card__header,
.post-author,
.mini-row,
.follower-row,
.preview-post,
.table-row,
.admin-row,
.notification-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.post-card__header,
.comment-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.post-author,
.mini-row,
.follower-row,
.preview-post {
    flex: 1 1 auto;
}

.post-author {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    width: 100%;
    gap: 0.85rem;
}

.post-author > .avatar-placeholder {
    flex: none;
}

.column-shell,
.post-author,
.composer-fields {
    min-width: 0;
}

.post-author strong,
.mini-row strong,
.comment-card strong {
    font-size: 1rem;
}

.post-author > div:last-child {
    min-width: 0;
}

.post-author__meta {
    display: grid;
    align-content: start;
    width: 100%;
    gap: 0.22rem;
    min-width: 0;
}

.post-author__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.post-author__line strong {
    margin-right: 0.15rem;
}

.post-author__line--title {
    gap: 0.45rem;
    align-items: center;
    line-height: 1.15;
}

.post-author__line--title > a {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.post-author__line--title .display-name {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

.post-author__line--title .author-badges {
    align-items: center;
    line-height: 1;
}

.post-author__line--meta {
    gap: 0.45rem;
    line-height: 1.2;
}

.post-author__line--meta .muted {
    white-space: normal;
}

.post-author--comment {
    align-items: start;
    gap: 0.85rem;
}

.post-author--comment .avatar-placeholder {
    width: 2.75rem;
    height: 2.75rem;
}

.post-author__timestamp {
    font-size: 0.92rem;
}

.post-card__repost {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.post-card__body,
.comment-card__body {
    font-size: 1rem;
    line-height: 1.56;
    word-break: break-word;
}

.comment-card__body a {
    word-break: break-word;
}

.comment-card__content {
    display: grid;
    gap: 0.6rem;
    padding-left: 3.6rem;
}

.post-card__media {
    display: grid;
    gap: 0.75rem;
}

.post-card__media:empty {
    display: none;
}

.post-card__quote {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.35rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(10, 11, 14, 0.42);
}

body[data-bs-theme="light"] .post-card__quote {
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(242, 246, 252, 0.98));
}

.post-card__quote-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.post-card__body--repost-comment {
    margin-top: -0.25rem;
}

.post-card__body--quote {
    font-size: 0.94rem;
    line-height: 1.48;
}

.post-inline-code {
    padding: 0.12rem 0.32rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.post-spoiler {
    padding: 0 0.16em;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.46) 0 1px, transparent 1.35px) 0 0 / 5px 5px,
        linear-gradient(135deg, rgba(124, 96, 255, 0.9), rgba(94, 77, 197, 0.94));
    color: transparent;
    cursor: pointer;
    text-shadow: 0 0 9px rgba(255, 255, 255, 0.18);
    transition: background 160ms ease, color 160ms ease, text-shadow 160ms ease;
    user-select: none;
}

.post-spoiler *,
.post-spoiler a {
    color: transparent !important;
}

.post-spoiler:hover {
    background-position: 2px 1px, 0 0;
}

.post-spoiler.is-revealed,
.post-spoiler:focus {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    text-shadow: none;
    user-select: text;
}

.post-spoiler.is-revealed *,
.post-spoiler.is-revealed a,
.post-spoiler:focus *,
.post-spoiler:focus a {
    color: inherit !important;
}

.post-quote-line {
    margin: 0.2rem 0;
    padding: 0.1rem 0 0.1rem 0.75rem;
    border-left: 3px solid var(--brand);
    color: var(--text-soft);
}

.post-card__media--quote .media-grid,
.post-card__media--quote .media-carousel,
.post-card__media--quote .media-video {
    max-width: min(100%, 520px);
}

.repost-dialog textarea {
    min-height: 7rem;
}

.repost-dialog__quote {
    margin-top: 0;
}

.post-author__line .muted,
.comment-card__header .muted {
    font-size: 0.9rem;
}

.comment-card__header {
    gap: 0.85rem;
}

.comment-card__header .post-author__line--title {
    gap: 0.36rem;
}

.comment-card__header .post-author__line--meta {
    gap: 0.32rem;
}

.comment-card__body {
    padding-top: 0.04rem;
    font-size: 0.94rem;
    line-height: 1.45;
}

.comment-card__text {
    display: block;
}

.comment-sticker {
    display: block;
    width: min(100%, 9rem);
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.16));
}

.comment-card__context-body .comment-sticker {
    width: min(100%, 6.5rem);
}

.comment-media-grid {
    margin-top: 0.7rem;
}

.comment-media-card {
    width: 4.6rem;
    height: 4.6rem;
}

.comment-card__context {
    display: grid;
    gap: 0.24rem;
    max-width: min(100%, 34rem);
    padding: 0.8rem 0.9rem;
    border-left: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

body[data-bs-theme="light"] .comment-card__context {
    border-left-color: rgba(47, 128, 255, 0.22);
    background: rgba(47, 128, 255, 0.06);
}

.comment-card__context-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.comment-card__context-author {
    font-size: 0.92rem;
}

.comment-card__context-body {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.38;
}

.media-grid {
    display: grid;
    gap: 0.75rem;
}

.media-grid--1 {
    grid-template-columns: 1fr;
}

.media-grid--2,
.media-grid--3,
.media-grid--4,
.media-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-tile,
.media-video,
.existing-media-card {
    overflow: hidden;
    border-radius: 28px;
    background: #111318;
}

.media-tile--button {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.media-grid--1 .media-tile {
    padding: 0.55rem;
}

.media-grid--1 .media-tile img {
    width: 100%;
    height: auto;
    max-height: min(60vh, 520px);
    object-fit: contain;
    display: block;
}

.existing-media-card img {
    width: 100%;
    height: auto;
    max-height: min(60vh, 520px);
    object-fit: cover;
    display: block;
}

.media-grid--2 .media-tile,
.media-grid--3 .media-tile,
.media-grid--4 .media-tile,
.media-grid--5 .media-tile {
    aspect-ratio: 1 / 1;
    padding: 0.55rem;
}

.media-grid--2 .media-tile img,
.media-grid--3 .media-tile img,
.media-grid--4 .media-tile img,
.media-grid--5 .media-tile img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.media-carousel {
    position: relative;
    display: grid;
    gap: 0.8rem;
}

.media-carousel__viewport {
    overflow: hidden;
    border-radius: 28px;
}

.media-carousel__track {
    display: flex;
    gap: 0.8rem;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.media-carousel__slide {
    position: relative;
    flex: 0 0 calc(100% - 3.8rem);
    overflow: hidden;
    border-radius: 28px;
    background: #111318;
}

.media-carousel__slide--button {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0.55rem;
    border: 0;
    cursor: pointer;
}

.media-carousel__slide--button img {
    width: 100%;
    height: auto;
    max-height: min(60vh, 520px);
    border-radius: 22px;
    object-fit: contain;
    display: block;
}

.media-carousel__slide .media-video {
    height: 100%;
}

.media-carousel__nav {
    position: absolute;
    top: calc(50% - 1.55rem);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(17, 20, 28, 0.72);
    color: #f5f7fb;
    cursor: pointer;
}

.media-carousel__nav--prev {
    left: 0.9rem;
}

.media-carousel__nav--next {
    right: 0.9rem;
}

.media-carousel__nav:disabled {
    opacity: 0.38;
    cursor: default;
}

.media-carousel__nav .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.media-carousel__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.media-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.media-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition: width 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.media-carousel__dot.is-active {
    width: 1.55rem;
    background: #ffffff;
}

.media-carousel__counter {
    color: #f5f7fb;
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.media-carousel--viewer {
    width: min(100%, 1100px);
    gap: 1rem;
}

.media-carousel--viewer .media-carousel__slide {
    flex-basis: 100%;
    background: transparent;
}

.media-carousel--viewer .media-carousel__slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    margin: 0 auto;
    border-radius: 28px;
    object-fit: contain;
    background: #0e1014;
}

.media-carousel--viewer .media-carousel__nav {
    top: calc(50% - 1.7rem);
}

.media-carousel--viewer .media-carousel__footer {
    flex-direction: column;
}

.media-carousel--viewer .media-carousel__dots {
    flex: 0 0 auto;
}

.media-video {
    display: grid;
    gap: 0;
    background:
        linear-gradient(180deg, rgba(18, 21, 28, 0.98), rgba(11, 13, 18, 0.98)),
        #0d1016;
}

.media-video__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(28rem, 60vh);
    padding: 0.75rem;
    background: rgba(5, 7, 10, 0.42);
}

.media-video video {
    width: 100%;
    max-height: min(60vh, 520px);
    border-radius: 20px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    background: #0c0f14;
}

.media-video__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 10, 14, 0.78);
}

.media-video__button,
.media-video__expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7fb;
    cursor: pointer;
}

.media-video__button:hover,
.media-video__expand:hover {
    background: rgba(255, 255, 255, 0.1);
}

.media-video__button {
    width: 2.45rem;
    min-width: 2.45rem;
}

.media-video__button.is-active,
.media-video__expand.is-active {
    border-color: rgba(74, 163, 255, 0.38);
    background: rgba(74, 163, 255, 0.14);
    color: #d9edff;
}

.media-video__button:disabled {
    opacity: 0.45;
    cursor: default;
}

.media-video__expand {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 1;
    width: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
}

.media-video__button .icon,
.media-video__expand .icon {
    width: 1rem;
    height: 1rem;
    pointer-events: none;
}

.media-video__seek {
    flex: 1 1 10rem;
    min-width: 8.5rem;
    height: 0.42rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.16);
    appearance: none;
    accent-color: var(--brand);
    cursor: pointer;
}

.media-video__seek::-webkit-slider-runnable-track {
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.media-video__seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: -0.27rem;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #4aa3ff, #7a7cff);
    box-shadow: 0 4px 14px rgba(74, 163, 255, 0.32);
}

.media-video__seek::-moz-range-track {
    height: 0.42rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.media-video__seek::-moz-range-thumb {
    width: 0.95rem;
    height: 0.95rem;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #4aa3ff, #7a7cff);
    box-shadow: 0 4px 14px rgba(74, 163, 255, 0.32);
}

.media-video__time {
    min-width: 6.6rem;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.media-viewer .media-video {
    width: min(100%, 1100px);
}

.media-viewer .media-video__stage {
    min-height: min(68vh, 760px);
}

.media-viewer .media-video video {
    max-height: calc(100vh - 14rem);
}

body[data-bs-theme="light"] .media-video {
    background:
        linear-gradient(180deg, rgba(236, 240, 247, 0.98), rgba(227, 232, 241, 0.98)),
        #dde3ed;
}

body[data-bs-theme="light"] .media-video__stage {
    background: rgba(255, 255, 255, 0.52);
}

body[data-bs-theme="light"] .media-video video {
    background: #eef2f8;
}

body[data-bs-theme="light"] .media-video__controls {
    border-top-color: rgba(28, 34, 48, 0.08);
    background: rgba(245, 247, 251, 0.9);
}

body[data-bs-theme="light"] .media-video__button,
body[data-bs-theme="light"] .media-video__expand {
    border-color: rgba(28, 34, 48, 0.12);
    background: rgba(255, 255, 255, 0.86);
    color: #1f2635;
}

body[data-bs-theme="light"] .media-video__time {
    color: #556076;
}

body[data-bs-theme="light"] .media-carousel__slide {
    background: #edf1f7;
}

body[data-bs-theme="light"] .media-carousel__nav {
    border-color: rgba(28, 34, 48, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: #1f2635;
}

body[data-bs-theme="light"] .media-carousel__dot {
    background: rgba(31, 38, 53, 0.18);
}

body[data-bs-theme="light"] .media-carousel__dot.is-active {
    background: #1f2635;
}

body[data-bs-theme="light"] .media-carousel__counter {
    color: #1f2635;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.05rem 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.94rem;
    font-weight: 700;
    transition: none;
    cursor: pointer;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.action-button--metric,
.post-metric {
    position: relative;
}

.action-button svg {
    display: block;
    flex: none;
    width: 20px !important;
    height: 20px !important;
}

.action-button:hover {
    color: var(--text-soft);
}

.action-button:disabled,
.action-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.action-button[data-action-kind="reaction"].is-active,
.action-button[data-action-kind="like"].is-active {
    color: var(--danger);
}

.action-button[data-action-kind="like"].is-active svg path {
    fill: currentColor;
}

.post-card__footer {
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.15rem;
}

.post-card__actions,
.post-card__metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem;
}

.post-card__actions > form,
.post-card__actions > a,
.post-card__actions > button,
.post-card__metrics > * {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.post-card__footer form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.post-card__footer form:last-child .action-button.is-active,
.action-button[data-action-kind="repost"].is-active {
    color: #6ad3a8;
}

.post-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.05rem 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.post-metric svg {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
}

.action-button--metric::after {
    content: "";
    position: absolute;
    inset: -0.4rem;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.72);
}

.action-button--metric[data-action-kind="like"]::after {
    background: radial-gradient(circle, rgba(255, 77, 146, 0.2) 0%, rgba(255, 77, 146, 0) 72%);
}

.action-button--metric[data-action-kind="reaction"]::after {
    background: radial-gradient(circle, rgba(255, 77, 146, 0.2) 0%, rgba(255, 77, 146, 0) 72%);
}

.action-button--metric[data-action-kind="repost"]::after {
    background: radial-gradient(circle, rgba(106, 211, 168, 0.2) 0%, rgba(106, 211, 168, 0) 72%);
}

.action-button--metric.is-bursting::after {
    animation: actionMetricBurst 540ms ease-out;
}

.action-button--metric.is-animating svg {
    transform-origin: center;
}

.action-button--metric[data-action-kind="like"].is-animating svg {
    animation: likeMetricPop 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.action-button--metric[data-action-kind="reaction"].is-animating svg {
    animation: likeMetricPop 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.action-button--metric[data-action-kind="repost"].is-animating svg {
    animation: repostMetricPulse 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.action-button--metric [data-count-target].is-bumping {
    animation: actionCountBump 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes likeMetricPop {
    0% {
        transform: scale(1);
    }
    28% {
        transform: scale(1.26);
    }
    52% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes repostMetricPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }
    24% {
        transform: scale(1.16) rotate(-10deg);
    }
    58% {
        transform: scale(0.94) rotate(8deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes actionCountBump {
    0% {
        transform: translateY(0);
    }
    35% {
        transform: translateY(-2px) scale(1.08);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes actionMetricBurst {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }
    32% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.28);
    }
}

.hashtag-link,
.mention-link,
.post-rich-link,
.tag-chip {
    color: var(--brand);
}

.post-rich-link {
    font-weight: 700;
}

.tag-chip {
    display: inline-flex;
    padding: 0.6rem 0.88rem;
    border-radius: 999px;
    background: var(--surface-soft);
    font-weight: 700;
}

.tag-cloud,
.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mini-list {
    display: grid;
}

.mini-row {
    padding: 0.9rem 1rem;
    border-radius: 24px;
    background: var(--surface-soft);
}

.profile-avatar {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 7.5rem;
    height: 7.5rem;
    aspect-ratio: 1 / 1;
    flex: none;
    overflow: hidden;
    border: 6px solid var(--bg);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(82, 132, 198, 0.95), rgba(45, 74, 112, 0.98));
    margin-top: -3.85rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.profile-avatar > span:not(.profile-avatar__status) {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #eef6ff;
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1;
}

.profile-avatar__status {
    position: absolute;
    right: 0.35rem;
    bottom: 0.45rem;
    width: 1.15rem;
    height: 1.15rem;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: #22c55e;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.76rem 1rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.profile-badge svg,
.profile-actions .button svg,
.profile-badge img,
.profile-actions .button img {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.profile-badge svg,
.profile-badge img {
    transform: none;
    margin-top: 0;
}

.profile-actions__edit {
    margin-top: 0;
}

.profile-actions__follow {
    gap: 0.65rem;
    min-width: 12.2rem;
    padding-inline: 1.45rem;
    border-color: rgba(255, 255, 255, 0.94);
    background: #fff;
    color: #111317;
    font-weight: 800;
    box-shadow: none;
}

.profile-actions__follow:hover {
    background: #fff;
    color: #111317;
}

.profile-actions__follow .icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.2;
}

.profile-actions__follow.button--ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

body[data-bs-theme="light"] .profile-actions__follow {
    border-color: rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: #121722;
}

body[data-bs-theme="light"] .profile-actions__follow:hover {
    background: #ffffff;
    color: #121722;
}

body[data-bs-theme="light"] .profile-actions__follow.button--ghost {
    border-color: rgba(15, 23, 42, 0.08);
    background: #f7faff;
    color: #697181;
}

.profile-actions__follow.button--ghost .icon {
    display: none;
}

.profile-action-menu {
    position: relative;
    flex: none;
}

.profile-actions > .profile-action-menu {
    margin-left: 0;
}

.profile-action-menu summary {
    list-style: none;
}

.profile-action-menu summary::-webkit-details-marker {
    display: none;
}

.profile-action-menu__trigger {
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: var(--surface-soft);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

body[data-bs-theme="light"] .profile-action-menu__trigger {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: #697181;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.profile-action-menu__trigger:hover {
    background: var(--surface-soft-hover);
    color: #fff;
}

body[data-bs-theme="light"] .profile-action-menu__trigger:hover {
    background: rgba(255, 255, 255, 0.82);
    color: #121722;
}

.profile-action-menu[open] .profile-action-menu__trigger {
    transform: scale(1.04);
}

.profile-action-menu__trigger .icon {
    width: 0.95rem;
    height: 0.95rem;
}

.profile-action-menu__panel {
    top: calc(100% + 0.7rem);
    right: 0;
    min-width: 240px;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.55rem;
    background: rgba(31, 31, 35, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    transform-origin: top right;
    animation: profileActionMenuIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-bs-theme="light"] .profile-action-menu__panel {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.profile-action-menu__panel .menu-panel__item {
    gap: 0.7rem;
    min-height: 3.3rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
}

.profile-action-menu__panel .menu-panel__item:hover {
    background: rgba(255, 255, 255, 0.04);
}

body[data-bs-theme="light"] .profile-action-menu__panel .menu-panel__item:hover {
    background: rgba(47, 128, 255, 0.08);
}

.profile-action-menu__panel .menu-panel__item .icon {
    width: 1rem;
    height: 1rem;
}

.profile-action-menu__panel .menu-panel__item--danger,
.profile-action-menu__panel .menu-panel__item--danger .icon {
    color: #ff2d86;
}

.profile-join-date {
    display: none;
    align-items: center;
    gap: 0.55rem;
}

.profile-join-date .icon {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    flex: none;
}

.profile-hero__identity {
    display: grid;
    grid-area: identity;
    justify-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
}

.profile-hero__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.profile-hero__heading .author-badges {
    gap: 0.55rem;
}

.profile-hero__heading .inline-icon,
.profile-hero__heading .inline-icon--premium {
    width: 16px;
    height: 16px;
}

.profile-hero__heading .inline-icon--pin-premium-crown,
.profile-hero__heading .inline-icon--pin-junior-moderator,
.profile-hero__heading .inline-icon--pin-moderator,
.profile-hero__heading .inline-icon--pin-senior-moderator,
.profile-hero__heading .inline-icon--pin-superuser {
    width: 30px !important;
    height: 30px !important;
}

.profile-hero__username {
    margin-top: -0.15rem;
    text-align: left;
}

.profile-hero__bio {
    grid-area: bio;
    max-width: 42rem;
}

.profile-block-notice {
    grid-area: bio;
    display: grid;
    gap: 0.7rem;
    max-width: 42rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
}

body[data-bs-theme="light"] .profile-block-notice {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(247, 250, 255, 0.92);
}

.profile-block-notice h2 {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    line-height: 1.08;
}

.profile-block-notice p:not(.eyebrow) {
    color: var(--text-soft);
}

.profile-block-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding-top: 0.2rem;
}

.profile-stats-row {
    grid-area: stats;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.profile-avatar {
    grid-area: avatar;
}

.profile-tabs {
    grid-area: tabs;
}

.profile-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
}

body[data-bs-theme="light"] .profile-stat {
    background: rgba(15, 23, 42, 0.04);
}

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

.profile-stat:hover {
    color: var(--text);
}

.profile-stat--plain {
    cursor: default;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.feed-stack.is-switching,
[data-profile-posts].is-switching,
[data-search-results].is-switching {
    opacity: 0.45;
    transition: opacity 180ms ease;
}

.composer-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    width: 100%;
    min-width: 0;
}

.composer-mobile-top {
    display: none;
}

.sheet-handle {
    display: block;
    width: 3rem;
    height: 0.28rem;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    touch-action: none;
}

.composer-fields textarea {
    min-height: 76px;
    max-height: 180px;
    padding: 0.2rem 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 1rem;
    line-height: 1.45;
    overflow: hidden;
    resize: none;
}

.composer-fields textarea.rich-composer-source {
    position: absolute !important;
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    max-height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.composer-tool {
    min-width: 2.85rem;
    min-height: 2.85rem;
    padding: 0.75rem;
    flex: none;
    color: var(--text-soft);
    cursor: pointer;
}

.composer-tool svg {
    width: 20px;
    height: 20px;
}

.composer-tool.is-active {
    border-color: rgba(74, 163, 255, 0.34);
    background: rgba(74, 163, 255, 0.12);
    color: var(--text);
}

.file-trigger {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.file-trigger input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-trigger--settings {
    min-width: 0;
}

.drawing-dialog {
    width: min(96vw, 1180px);
    height: min(92dvh, 860px);
    max-height: min(92dvh, 860px);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #202124;
    color: var(--text);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
    overflow: hidden;
}

.drawing-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.drawing-dialog__shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    margin: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.drawing-dialog__toolbar,
.drawing-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.drawing-dialog__toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    overscroll-behavior-x: contain;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawing-dialog__actions {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawing-dialog__tools,
.drawing-dialog__sizes,
.drawing-dialog__colors,
.drawing-dialog__zoom,
.drawing-dialog__history {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: none;
}

.drawing-dialog__zoom {
    padding-inline: 0.35rem;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.drawing-tool,
.drawing-size,
.drawing-color {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}

.drawing-tool__icon {
    display: block;
    width: 20px;
    height: 20px;
}

.drawing-tool:hover,
.drawing-tool.is-active,
.drawing-size.is-active,
.drawing-color.is-active {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--text);
}

.drawing-size::before {
    content: "";
    width: var(--drawing-size, 0.45rem);
    height: var(--drawing-size, 0.45rem);
    border-radius: 999px;
    background: currentColor;
}

.drawing-size[data-size="4"] {
    --drawing-size: 0.25rem;
}

.drawing-size[data-size="10"] {
    --drawing-size: 0.5rem;
}

.drawing-size[data-size="22"] {
    --drawing-size: 0.8rem;
}

.drawing-color {
    border-radius: 999px;
    background: var(--drawing-color);
}

.drawing-color[data-color="#ffffff"] {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.drawing-dialog__stage {
    padding: clamp(1rem, 3vw, 1.6rem);
    overflow: hidden;
    min-height: 0;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, 0.12);
}

.drawing-dialog--banner .drawing-dialog__stage {
    display: grid;
    align-items: center;
}

.drawing-dialog__canvas-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.drawing-dialog canvas {
    display: block;
    width: auto;
    max-width: calc(100% * var(--drawing-zoom, 1));
    max-height: calc(100% * var(--drawing-zoom, 1));
    height: auto;
    margin: 0 auto;
    background: #fff;
    touch-action: none;
}

.drawing-dialog--banner canvas {
    aspect-ratio: 3 / 1;
}

@media (max-width: 720px) {
    .drawing-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .drawing-dialog__shell {
        height: 100dvh;
        max-height: 100dvh;
    }

    .drawing-dialog__toolbar,
    .drawing-dialog__actions {
        padding: 0.75rem;
    }

    .drawing-dialog__toolbar {
        flex-wrap: wrap;
        overflow-y: auto;
        max-height: 10.75rem;
    }

    .drawing-dialog__stage {
        padding: 0.75rem;
        overflow: auto;
    }

    .drawing-dialog canvas {
        width: calc(100% * var(--drawing-zoom, 1));
        max-width: none;
        max-height: none;
    }

    .drawing-dialog__actions {
        flex-wrap: wrap;
    }

    .drawing-dialog__actions .button {
        flex: 1 1 10rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .drawing-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .drawing-dialog__shell {
        height: 100dvh;
        max-height: 100dvh;
    }

    .drawing-dialog__toolbar,
    .drawing-dialog__actions {
        padding: 0.75rem;
    }

    .drawing-dialog__toolbar {
        flex-wrap: wrap;
        overflow-y: auto;
        max-height: 10.75rem;
    }

    .drawing-dialog__stage {
        padding: 0.75rem;
        overflow: auto;
    }

    .drawing-dialog canvas {
        width: calc(100% * var(--drawing-zoom, 1));
        max-width: none;
        max-height: none;
    }

    .drawing-dialog__actions {
        flex-wrap: wrap;
    }

    .drawing-dialog__actions .button {
        flex: 1 1 10rem;
    }
}

.settings-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone {
    min-height: 0;
    height: 0;
    padding: 0;
    border: 1px dashed var(--border-strong);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-soft);
    font-size: 0.84rem;
    text-align: center;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: height 160ms ease, padding 160ms ease, opacity 160ms ease;
}

.dropzone.is-active {
    height: 3.25rem;
    padding: 0.75rem 0.95rem;
    border-color: rgba(74, 163, 255, 0.45);
    background: var(--brand-soft);
    opacity: 1;
    pointer-events: auto;
}

.preview-grid,
.existing-media-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 0.55rem;
}

.preview-card,
.existing-media-card {
    position: relative;
    flex: 0 0 auto;
    width: 4.9rem;
    height: 4.9rem;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: #f4f6fa;
}

.preview-card--draggable {
    cursor: grab;
}

.preview-card--draggable.is-dragging {
    opacity: 0.65;
    cursor: grabbing;
}

.preview-card--draggable.is-drop-target {
    outline: 2px solid rgba(74, 163, 255, 0.55);
    outline-offset: -2px;
}

.preview-card__media {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.preview-card img,
.preview-card video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    display: block;
}

.preview-card__remove {
    position: absolute;
    top: -0.28rem;
    right: -0.28rem;
    z-index: 1;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(94, 98, 108, 0.92);
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.preview-card--file {
    display: grid;
    place-items: center;
    min-height: 140px;
}

.preview-card--video {
    background: #12151c;
}

.preview-card--video video {
    background: #12151c;
    cursor: pointer;
}

body[data-bs-theme="light"] .preview-card,
body[data-bs-theme="light"] .existing-media-card {
    border-color: rgba(31, 38, 53, 0.1);
    background: #ffffff;
}

.preview-card__file {
    padding: 1rem;
    text-align: center;
}

.poll-editor {
    display: grid;
    gap: 0;
    max-height: 0;
    margin-top: -0.15rem;
    padding: 0 1.1rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 28px;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem) scale(0.985);
    transition:
        max-height 280ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 220ms ease,
        transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
        padding 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease;
}

.poll-editor.is-open {
    gap: 0.95rem;
    max-height: 48rem;
    margin-top: 0.1rem;
    padding: 1.15rem;
    border-color: var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        rgba(14, 17, 23, 0.72);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.poll-editor__header,
.poll-editor__body,
.poll-editor__options,
.poll-editor__toggles {
    display: grid;
}

.poll-editor__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.7rem;
}

.poll-editor__close {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.poll-editor__body,
.poll-editor__options {
    gap: 0.7rem;
}

.poll-editor__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
}

.poll-editor__option input {
    min-width: 0;
}

.poll-editor__option-remove {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.poll-editor__option-remove:hover:not(:disabled) {
    background: rgba(255, 77, 146, 0.12);
    color: var(--danger);
}

.poll-editor__option-remove:disabled {
    opacity: 0.35;
    cursor: default;
}

.poll-editor__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.78rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.poll-editor__add:hover:not(:disabled) {
    border-color: rgba(74, 163, 255, 0.35);
    background: rgba(74, 163, 255, 0.08);
    color: var(--text);
}

.poll-editor__add.is-disabled,
.poll-editor__add:disabled {
    opacity: 0.42;
    cursor: default;
}

.poll-editor__toggles {
    gap: 0.65rem;
}

.poll-check {
    --poll-check-start: #49b6ff;
    --poll-check-end: #7a7cff;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-soft);
    cursor: pointer;
}

.poll-check--sunset {
    --poll-check-start: #ff7b62;
    --poll-check-end: #ff4d92;
}

.poll-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.poll-check__mark {
    position: relative;
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.poll-check__mark::before {
    content: "";
    position: absolute;
    inset: 0.18rem;
    border-radius: 0.28rem;
    background: linear-gradient(135deg, var(--poll-check-start), var(--poll-check-end));
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 180ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-check__mark::after {
    content: "";
    position: absolute;
    top: 0.28rem;
    left: 0.46rem;
    width: 0.32rem;
    height: 0.6rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transform: rotate(45deg) scale(0.45);
    transition: opacity 180ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-check input:checked + .poll-check__mark {
    border-color: transparent;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--poll-check-end) 18%, transparent);
    transform: translateY(-1px);
}

.poll-check input:checked + .poll-check__mark::before,
.poll-check input:checked + .poll-check__mark::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.poll-check input:checked + .poll-check__mark::before {
    transform: scale(1);
}

.post-poll {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(14, 17, 23, 0.66);
    transition: opacity 180ms ease, transform 180ms ease;
}

.post-poll.is-submitting {
    opacity: 0.7;
}

.post-poll__header,
.post-poll__footer,
.post-poll__option,
.post-poll__chips,
.post-poll__summary {
    display: flex;
}

.post-poll__header,
.post-poll__footer {
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.post-poll__header h3 {
    font-size: 1.02rem;
    line-height: 1.35;
}

.post-poll__chips {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.post-poll__chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(74, 163, 255, 0.12);
    color: #a7d4ff;
    font-size: 0.76rem;
    font-weight: 800;
}

.post-poll__chip--danger {
    background: rgba(255, 77, 146, 0.12);
    color: #ff9fca;
}

.post-poll__options {
    display: grid;
    gap: 0.65rem;
}

.post-poll__option {
    position: relative;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    isolation: isolate;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.post-poll__option:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
}

.post-poll__option.is-selected {
    border-color: rgba(74, 163, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(74, 163, 255, 0.12);
}

.post-poll__option-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(74, 163, 255, 0.28), rgba(118, 115, 255, 0.22));
    opacity: 0;
    transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}

.post-poll.is-complete .post-poll__option-bar {
    opacity: 1;
}

.post-poll__option-check {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: transparent;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.post-poll__option.is-selected .post-poll__option-check {
    border-color: transparent;
    background: linear-gradient(135deg, #49b6ff, #7a7cff);
    color: #fff;
    transform: scale(1.04);
}

.post-poll__option-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    min-width: 0;
}

.post-poll__option-text {
    min-width: 0;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.post-poll__option-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.post-poll__summary {
    align-items: baseline;
    gap: 0.35rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.post-poll__summary strong {
    color: var(--text);
    font-size: 1rem;
}

.post-poll__submit {
    min-width: 0;
    opacity: 0;
    transform: translateY(0.35rem) scale(0.96);
    pointer-events: none;
    overflow: hidden;
    padding-inline: 0;
    border-width: 0;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-poll__submit.is-visible {
    padding-inline: 0.9rem;
    border-width: 1px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

body[data-bs-theme="light"] .poll-editor.is-open,
body[data-bs-theme="light"] .post-poll {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 252, 0.94)),
        #f6f8fc;
}

body[data-bs-theme="light"] .poll-editor__close,
body[data-bs-theme="light"] .poll-editor__option-remove,
body[data-bs-theme="light"] .poll-editor__add,
body[data-bs-theme="light"] .post-poll__option,
body[data-bs-theme="light"] .post-poll__option-check {
    border-color: rgba(31, 38, 53, 0.1);
}

body[data-bs-theme="light"] .poll-editor__close,
body[data-bs-theme="light"] .poll-editor__option-remove,
body[data-bs-theme="light"] .poll-editor__add,
body[data-bs-theme="light"] .post-poll__option,
body[data-bs-theme="light"] .post-poll__option-check {
    background: rgba(255, 255, 255, 0.84);
}

body[data-bs-theme="light"] .post-poll__chip {
    background: rgba(74, 163, 255, 0.14);
    color: #2a6fb7;
}

body[data-bs-theme="light"] .post-poll__chip--danger {
    background: rgba(255, 77, 146, 0.14);
    color: #c9467f;
}

.skeleton-card {
    width: 2.6rem;
    height: 0.28rem;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    background-size: 240px 100%;
    animation: shimmer 1.35s infinite linear;
}

body[data-bs-theme="light"] .skeleton-card {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.09), rgba(15, 23, 42, 0.05));
}

.search-shell {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
}

.search-shell__icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.search-shell__icon svg {
    width: 18px;
    height: 18px;
}

.search-shell input {
    display: block;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.9rem 1.1rem 0.9rem 3rem;
    border-radius: 999px;
    background: var(--surface-strong);
}

.search-card {
    gap: 1rem;
}

.search-card + .search-card {
    margin-top: 1.35rem;
}

.search-user-list,
.search-hashtag-list {
    display: grid;
    gap: 0.75rem;
}

.search-user-row,
.search-hashtag-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    min-width: 0;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: rgba(14, 15, 18, 0.78);
}

.search-user-row:hover,
.search-hashtag-row:hover {
    background: rgba(18, 20, 25, 0.94);
}

.search-user-row__meta {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.feed-end-card {
    display: grid;
    place-items: center;
    padding: 0.9rem 1.1rem;
    text-align: center;
}

.feed-end-card p {
    max-width: 32rem;
    margin: 0;
    color: var(--text-soft);
    font-weight: 700;
    line-height: 1.45;
}

.search-user-row__meta strong {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.follower-row {
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.follower-row:last-child {
    border-bottom: 0;
}

.follower-row__profile {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.2rem 0;
    border-radius: 0;
    color: inherit;
}

.follower-row__profile:hover {
    background: transparent;
    color: inherit;
    opacity: 0.96;
}

.follower-row__meta {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.follower-row__title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.38rem;
    min-width: 0;
}

.follower-row__title strong {
    font-size: 1rem;
    line-height: 1.2;
}

.follower-row__meta .author-badges {
    gap: 0.42rem;
}

.follower-row__meta .muted {
    line-height: 1.2;
}

.follower-row__action {
    display: inline-flex;
    align-items: center;
    flex: none;
    margin: 0;
    padding-left: 0.85rem;
}

.follower-row__button {
    min-height: 2.4rem;
    padding: 0.55rem 0.95rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

.follower-row__empty {
    padding: 0.5rem 0 0.2rem;
}

.search-hashtag-row {
    justify-content: space-between;
}

.suggestion-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 11;
    display: none;
    gap: 0.35rem;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.suggestion-panel.is-open {
    display: grid;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    transition: background var(--transition-base), color var(--transition-base);
}

.suggestion-item:hover {
    background: transparent;
}

@keyframes popoverIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popoverOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.96) translateY(-4px);
    }
}

@keyframes profileActionMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes profileActionMenuInMobile {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.94);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.notification-card.is-unread {
    border-color: rgba(74, 163, 255, 0.32);
}

.notification-card--rich {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.notification-card__media {
    position: relative;
    width: 4.1rem;
    height: 4.1rem;
    flex: none;
}

.notification-card__avatar {
    width: 4.1rem;
    height: 4.1rem;
    background: #1b1d22;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.notification-card__badge {
    position: absolute;
    right: -0.1rem;
    bottom: -0.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 4px solid var(--surface-strong);
    border-radius: 50%;
    color: #fff;
}

.notification-card__badge--follow {
    background: linear-gradient(180deg, #37b2ff, #1576ff);
}

.notification-card__badge--post_like,
.notification-card__badge--comment_like {
    background: linear-gradient(180deg, #ff4d92, #ff1670);
}

.notification-card__badge--comment {
    background: linear-gradient(180deg, #14c98e, #00a46e);
}

.notification-card__badge-icon {
    width: 0.9rem;
    height: 0.9rem;
    stroke-width: 2.05;
}

.notification-card__body {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
}

.notification-card__link {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.notification-card__link:hover {
    color: inherit;
}

.notification-card__headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.4;
}

.notification-card__actor {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 800;
}

.notification-card__action {
    color: var(--text-soft);
    font-weight: 600;
}

.notification-card__preview {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.45;
    word-break: break-word;
}

.notification-card__meta {
    font-size: 0.95rem;
}

.notification-feed .notification-list {
    gap: 0.75rem;
}

.notification-feed .notification-card {
    padding: 1.15rem 1.2rem;
    border-radius: 30px;
    border-color: rgba(255, 255, 255, 0.02);
    background: var(--surface-strong);
}

.notification-card {
    border-radius: 30px;
}

.notification-feed .notification-card__actions {
    display: none;
}

.inline-edit summary {
    list-style: none;
}

.inline-edit summary::-webkit-details-marker {
    display: none;
}

.inline-edit[open] form {
    margin-top: 0.6rem;
    padding: 1rem;
    border-radius: 24px;
    background: var(--bg);
}

.post-menu {
    position: relative;
    margin-left: auto;
}

.post-menu .icon-button {
    width: 2.45rem;
    min-height: 2.45rem;
}

.post-menu summary {
    list-style: none;
}

.post-menu summary::-webkit-details-marker {
    display: none;
}

.menu-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 9;
    display: grid;
    gap: 0.15rem;
    min-width: 180px;
    padding: 0.38rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: none;
    animation: popoverIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-menu.is-closing .menu-panel,
.profile-action-menu.is-closing .menu-panel {
    animation: popoverOut 160ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

body[data-bs-theme="light"] .menu-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent 54%),
        rgba(255, 255, 255, 0.72);
}

.menu-panel form {
    margin: 0;
}

.menu-panel__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 650;
    text-align: left;
    white-space: normal;
}

.menu-panel__item:hover {
    background: transparent;
}

.menu-panel__item--danger {
    color: var(--danger);
}

.empty-card,
.discovery-card,
.status-card,
.prose-card {
    display: grid;
    gap: 0.6rem;
}

.empty-card,
.discovery-card {
    border-radius: 36px;
}

.discovery-card {
    padding: 1.5rem;
}

.discovery-grid {
    gap: 1rem;
}

.comment-composer__form {
    gap: 0.75rem;
}

.comment-composer__grid {
    align-items: start;
}

.comment-composer__fields {
    width: 100%;
    min-width: 0;
}

.comment-composer__fields textarea {
    min-height: 76px;
    max-height: 180px;
    padding: 0.2rem 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.comment-composer__toolbar {
    margin-top: 0.2rem;
}

.comment-composer__actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem;
}

.comment-composer.is-collapsed .eyebrow {
    margin-bottom: 0;
}

.comment-composer.is-collapsed {
    padding-bottom: 1rem;
}

.comment-card--reply {
    margin-top: 0.4rem;
    margin-left: 0;
    padding-top: 0.95rem;
    padding-bottom: 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.comment-replies {
    display: grid;
    gap: 0;
    margin-top: 0.75rem;
    margin-left: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
}

.comment-replies::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    bottom: 0.6rem;
    left: 0.4rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.comment-replies--nested {
    margin-top: 0.85rem;
    margin-left: 0;
    padding-left: 1.35rem;
}

.comment-replies-dropdown {
    display: grid;
    gap: 0;
    margin-top: 0.7rem;
}

.comment-replies-dropdown[open] {
    gap: 0.2rem;
}

.comment-replies-dropdown.is-closing {
    gap: 0.2rem;
}

.comment-replies-dropdown__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.62rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

body[data-bs-theme="light"] .comment-replies-dropdown__summary {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: #5d6678;
}

.comment-replies-dropdown__summary::-webkit-details-marker {
    display: none;
}

.comment-replies-dropdown__summary::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-0.08rem);
    transition: transform 180ms ease;
}

.comment-replies-dropdown[open] .comment-replies-dropdown__summary::after {
    transform: rotate(-135deg) translateY(-0.02rem);
}

.comment-replies-dropdown[open] .comment-replies--nested {
    animation: popoverIn 190ms cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

.comment-replies-dropdown.is-closing .comment-replies--nested {
    animation: popoverOut 160ms cubic-bezier(0.4, 0, 1, 1) forwards;
    transform-origin: top left;
}

.comment-inline-form {
    gap: 0.7rem;
    padding: 0.75rem 0 0 3.6rem;
}

.comment-inline-form[hidden] {
    display: none;
}

.comment-inline-form textarea {
    min-height: 88px;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: var(--bg);
}

.comment-inline-form .preview-grid,
.comment-inline-form .dropzone,
.comment-composer__fields .preview-grid,
.comment-composer__fields .dropzone {
    margin-top: 0.1rem;
}

.comment-inline-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.comment-inline-form__actions-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.comment-inline-form__toolbar {
    width: 100%;
}

.comment-card__footer {
    justify-content: flex-start;
    gap: 1rem;
    padding-left: 3.6rem;
    padding-top: 0.15rem;
}

.post-menu--comment {
    align-self: start;
}

.comment-card--reply .comment-card__content,
.comment-card--reply .comment-card__footer,
.comment-card--reply .comment-inline-form {
    padding-left: 3.2rem;
}

.comment-card--reply .post-author--comment .avatar-placeholder {
    width: 2.45rem;
    height: 2.45rem;
}

.comment-composer__form textarea {
    min-height: 104px;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: var(--bg);
}

.comment-composer__fields textarea {
    min-height: 76px;
    padding: 0.2rem 0;
    border-radius: 0;
    background: transparent;
}

.comment-composer__form .button--primary {
    min-width: 9.5rem;
}

.comment-sticker-picker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.8rem;
}

.comment-sticker-picker__toggle {
    flex: none;
}

.comment-sticker-dialog {
    width: min(24rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: min(74vh, 35rem);
    margin: auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.comment-sticker-dialog::backdrop {
    background: rgba(0, 0, 0, 0.46);
}

.comment-sticker-dialog[open] {
    animation: popoverIn 190ms cubic-bezier(0.16, 1, 0.3, 1);
}

.comment-sticker-dialog.is-closing {
    animation: popoverOut 170ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

.comment-sticker-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.comment-sticker-dialog__header strong {
    font-size: 1.05rem;
}

.comment-sticker-picker__menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    max-height: min(52vh, 25rem);
    padding-right: 0.35rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(62, 145, 255, 0.78) rgba(255, 255, 255, 0.07);
    scrollbar-gutter: stable;
}

.comment-sticker-picker__menu::-webkit-scrollbar {
    width: 0.55rem;
}

.comment-sticker-picker__menu::-webkit-scrollbar-track {
    margin-block: 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
}

.comment-sticker-picker__menu::-webkit-scrollbar-thumb {
    border: 2px solid var(--surface);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(82, 172, 255, 0.95), rgba(35, 113, 255, 0.95));
    box-shadow: 0 0 16px rgba(47, 128, 255, 0.28);
}

.comment-sticker-picker__menu::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(118, 201, 255, 1), rgba(47, 128, 255, 1));
}

body[data-bs-theme="light"] .comment-sticker-dialog {
    border-color: rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

body[data-bs-theme="light"] .comment-sticker-picker__menu {
    scrollbar-color: rgba(47, 128, 255, 0.58) rgba(15, 23, 42, 0.08);
}

body[data-bs-theme="light"] .comment-sticker-picker__menu::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.06);
}

body[data-bs-theme="light"] .comment-sticker-picker__menu::-webkit-scrollbar-thumb {
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 14px rgba(47, 128, 255, 0.18);
}

.comment-sticker-picker__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

body[data-bs-theme="light"] .comment-sticker-picker__item {
    background: rgba(15, 23, 42, 0.03);
}

.comment-sticker-picker__item img {
    display: block;
    width: 100%;
    max-width: 3.6rem;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.comment-sticker-picker__item.is-selected {
    border-color: rgba(53, 121, 246, 0.45);
    background: rgba(53, 121, 246, 0.08);
}

.comment-sticker-picker__preview {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

body[data-bs-theme="light"] .comment-sticker-picker__preview {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: #5d6678;
}

.comment-sticker-picker__preview img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.comment-sticker-picker__preview.is-empty {
    display: none;
}

.comment-sticker-picker__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
}

.comment-sticker-picker__clear .icon {
    width: 0.95rem;
    height: 0.95rem;
}

.mention-suggestions {
    display: grid;
    gap: 0.12rem;
    margin-top: 0.55rem;
    padding: 0.38rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.mention-suggestions[hidden] {
    display: none;
}

.mention-suggestions__item {
    display: grid;
    gap: 0.08rem;
    width: 100%;
    padding: 0.8rem 0.92rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.mention-suggestions__item span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.mention-suggestions__item.is-active {
    background: var(--surface-soft);
}

@media (max-width: 640px) {
    .comment-card__content,
    .comment-card__footer,
    .comment-inline-form,
    .comment-card--reply .comment-card__content,
    .comment-card--reply .comment-card__footer,
    .comment-card--reply .comment-inline-form {
        padding-left: 3.1rem;
    }

    .comment-replies {
        margin-left: 0.55rem;
        padding-left: 1rem;
    }

    .comment-replies--nested {
        margin-left: 0;
        padding-left: 0.95rem;
    }

    .comment-card__context {
        max-width: 100%;
    }

    .comment-composer__actions,
    .comment-inline-form__actions {
        align-items: stretch;
    }

    .comment-inline-form__actions-group {
        width: 100%;
        justify-content: flex-end;
    }

    .comment-sticker-picker {
        flex-wrap: wrap;
    }

    .comment-sticker-picker__menu {
        max-height: clamp(13rem, 42vh, 14rem);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .comment-composer__form .button--primary {
        width: auto;
    }

    .comment-card__header .post-author__line--title {
        gap: 0.28rem;
    }
}

.composer-toolbar {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.composer-toolbar__left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.composer-toolbar .button--primary {
    margin-left: auto;
}

.infinite-sentinel {
    padding: 0.05rem 0 0.15rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
}

.mobile-nav__item {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    min-height: 3.62rem;
    padding: 0.62rem 0.35rem;
    border: 0;
    border-radius: 999px !important;
    background: transparent;
    color: rgba(230, 236, 245, 0.68);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
    transition: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.mobile-nav__item svg {
    width: 19px;
    height: 19px;
}

.mobile-nav__item.is-active,
.mobile-nav__item:hover {
    background: transparent;
    color: var(--text-muted);
}

.mobile-nav__item.is-active {
    color: var(--text);
}

.mobile-nav.is-touch-dragging .mobile-nav__item {
    color: rgba(230, 236, 245, 0.54);
}

.mobile-nav__item.is-drag-target {
    color: var(--text);
    transform: translateY(-0.08rem) scale(1.02);
}

.mobile-nav__item--accent {
    color: #7de8c0;
}

.mobile-nav__item--accent svg {
    filter: drop-shadow(0 0 12px rgba(95, 255, 214, 0.42));
}

.mobile-nav__indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 999px;
    background: #333336;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), width 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

@media (hover: none) and (pointer: coarse) {
    .segmented-control {
        touch-action: none;
    }

    .mobile-nav {
        touch-action: none;
    }
}

.dialog-sheet-handle {
    display: none;
    width: 3rem;
    height: 0.28rem;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    touch-action: none;
}

.followers-sheet__header,
.premium-features,
.admin-grid,
.search-shell,
.profile-hero__body {
    display: grid;
    gap: 1rem;
}

.search-shell {
    width: 100%;
}

.premium-panel {
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: none;
}

.premium-panel--checkout {
    position: sticky;
    top: 1rem;
    align-self: start;
    gap: 0.9rem;
}

.premium-panel__price {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
}

.premium-features--landing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.premium-feature--card {
    min-height: 8.4rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: none;
}

.premium-feature--card .icon {
    flex: none;
    margin-top: 0.18rem;
    color: var(--brand);
}

.premium-feature--card strong {
    display: block;
    margin-bottom: 0.18rem;
}

.connections-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    width: 420px;
    max-width: none;
    max-height: min(80vh, 760px);
    padding: 1rem 0 0;
    overflow: hidden;
    background: var(--surface);
}

.followers-sheet__header {
    gap: 0.35rem;
    padding: 0 3.75rem 1rem 1rem;
    border-bottom: 1px solid var(--border);
}

.followers-sheet__header h2 {
    overflow-wrap: anywhere;
    font-size: clamp(1.65rem, 4vw, 2.2rem);
    line-height: 1.05;
}

.connections-modal .followers-list {
    display: grid;
    gap: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1rem 0.25rem;
}

.report-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1rem;
    width: 560px;
    max-width: none;
    max-height: min(82vh, 760px);
    padding: 1.25rem;
    overflow: hidden;
    background: var(--surface);
}

.report-dialog__header {
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    text-align: center;
}

.report-dialog__header h2 {
    font-size: 2rem;
    line-height: 1.05;
}

.report-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1rem;
    min-height: 0;
}

.report-form__body {
    display: grid;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.report-form__reasons {
    display: grid;
    gap: 0.75rem;
}

.report-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.report-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.report-option__content {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 4rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-weight: 700;
    line-height: 1.35;
    transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.report-option__content::before {
    content: "";
    width: 1.22rem;
    height: 1.22rem;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    flex: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.report-option input:checked + .report-option__content {
    border-color: rgba(74, 163, 255, 0.42);
    background: rgba(74, 163, 255, 0.08);
}

.report-option input:checked + .report-option__content::before {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 4px var(--brand);
}

.report-form textarea {
    min-height: 130px;
    border-radius: 22px;
}

.report-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.report-dialog__footer .button {
    min-width: 9rem;
}

.report-dialog__cancel {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.35rem 0.4rem;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 700;
}

.report-dialog__cancel:hover {
    color: var(--brand);
}

.settings-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 960px;
    max-width: none;
    height: min(88vh, 860px);
    min-height: 500px;
    max-height: min(88vh, 860px);
    overflow: hidden;
    border-radius: 36px;
    background: var(--surface);
}

.settings-dialog__mobile-nav {
    display: none;
}

.settings-dialog__sidebar {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-width: 0;
    padding: 1rem;
    border-right: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.settings-dialog__title h2 {
    font-size: 2rem;
}

.settings-nav {
    display: grid;
    gap: 0.45rem;
}

.settings-nav__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 700;
    text-align: left;
}

.settings-nav__item.is-active,
.settings-nav__item:hover {
    background: transparent;
    color: var(--text-soft);
}

.settings-nav__item.is-active {
    background: var(--bg);
    color: var(--text);
}

.settings-dialog__content {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.settings-dialog__content::-webkit-scrollbar {
    width: 6px;
}

.settings-dialog__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.settings-panel {
    display: none;
    gap: 1rem;
}

.settings-panel.is-active {
    display: grid;
}

.settings-panel h3 {
    font-size: 1.25rem;
}

.settings-form,
.settings-group {
    display: grid;
    gap: 1rem;
}

.settings-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
}

.settings-upload-card {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
    max-width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface-soft);
}

.settings-upload-card__top {
    display: grid;
    gap: 0.22rem;
}

.settings-upload-card__top p {
    color: var(--text-soft);
}

.settings-upload-card__preview {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    border: 1px solid var(--border);
    background: var(--bg);
}

.settings-upload-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-upload-card__preview span {
    color: var(--text-soft);
    font-weight: 700;
}

.settings-upload-card__preview--avatar {
    display: grid;
    place-items: center;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(82, 132, 198, 0.95), rgba(45, 74, 112, 0.98));
    color: #eef6ff;
}

.settings-upload-card__preview--avatar img {
    border-radius: 50%;
}

.settings-upload-card__preview--banner {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 3 / 1;
    height: auto;
    max-height: 12rem;
    min-height: 0;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(74, 163, 255, 0.08), rgba(137, 151, 175, 0.05));
}

.settings-upload-card__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.image-cropper {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.image-cropper[hidden] {
    display: none;
}

.image-cropper__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 17, 0.88);
}

.image-cropper__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    width: min(900px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(9, 13, 22, 0.985);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.52);
    overflow: auto;
}

.image-cropper__header,
.image-cropper__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.image-cropper__header h4 {
    margin: 0.2rem 0 0;
    font-size: 1.2rem;
}

.image-cropper__header p:last-child {
    margin: 0.3rem 0 0;
    color: var(--text-soft);
}

.image-cropper__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12.5rem;
    gap: 1.1rem;
    align-items: start;
}

.image-cropper__workspace {
    min-width: 0;
}

.image-cropper__stage {
    position: relative;
    width: 100%;
    min-height: min(60vh, 34rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(74, 163, 255, 0.08), rgba(137, 151, 175, 0.05));
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.image-cropper__stage.is-dragging {
    cursor: grabbing;
}

.image-cropper__stage img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    max-height: none;
    transform-origin: center center;
    will-change: transform;
    pointer-events: none;
}

.image-cropper__frame {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 0 0 9999px rgba(4, 8, 14, 0.68);
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: move;
}

.image-cropper__handle {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.image-cropper__handle--nw {
    top: -0.45rem;
    left: -0.45rem;
    border-right: 0;
    border-bottom: 0;
    cursor: nwse-resize;
}

.image-cropper__handle--ne {
    top: -0.45rem;
    right: -0.45rem;
    border-left: 0;
    border-bottom: 0;
    cursor: nesw-resize;
}

.image-cropper__handle--sw {
    left: -0.45rem;
    bottom: -0.45rem;
    border-right: 0;
    border-top: 0;
    cursor: nesw-resize;
}

.image-cropper__handle--se {
    right: -0.45rem;
    bottom: -0.45rem;
    border-left: 0;
    border-top: 0;
    cursor: nwse-resize;
}

.image-cropper__frame[data-shape="circle"] {
    border-radius: 50%;
}

.image-cropper__aside {
    display: grid;
    gap: 0.85rem;
}

.image-cropper__meta {
    display: grid;
    gap: 0.4rem;
}

.image-cropper__hint {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

.image-cropper__preview-grid {
    display: grid;
    gap: 0.7rem;
}

.image-cropper__preview {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(9, 14, 22, 0.94);
}

.image-cropper__preview canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.image-cropper__preview--primary {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
}

.image-cropper__preview--secondary {
    width: 5.75rem;
    aspect-ratio: 1;
    border-radius: 50%;
}

.image-cropper__preview--tiny {
    width: 3.3rem;
    aspect-ratio: 1;
    border-radius: 50%;
}

.image-cropper[data-mode="avatar"] .image-cropper__preview--primary,
.image-cropper[data-mode="avatar"] .image-cropper__preview--secondary,
.image-cropper[data-mode="avatar"] .image-cropper__preview--tiny {
    border-radius: 50%;
}

.image-cropper[data-mode="banner"] .image-cropper__preview--primary {
    aspect-ratio: var(--banner-preview-aspect, 3 / 1);
    border-radius: 20px;
}

.image-cropper[data-mode="banner"] .image-cropper__preview-grid {
    display: none;
}

body[data-bs-theme="light"] .image-cropper__dialog {
    border-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.92)),
        rgba(245, 248, 252, 0.96);
}

body[data-bs-theme="light"] .image-cropper__backdrop {
    background: rgba(219, 226, 237, 0.84);
}

body[data-bs-theme="light"] .image-cropper__stage,
body[data-bs-theme="light"] .image-cropper__preview {
    border-color: rgba(15, 23, 42, 0.08);
}

body[data-bs-theme="light"] .image-cropper__frame {
    box-shadow: 0 0 0 9999px rgba(20, 29, 43, 0.32);
}

body.has-image-cropper .dialog-shell .dialog-close {
    opacity: 0;
    pointer-events: none;
}

.settings-row {
    display: grid;
    gap: 0.45rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.settings-row label,
.settings-row strong {
    font-weight: 800;
}

.settings-row small,
.settings-row p,
.toggle-row small {
    color: var(--text-soft);
}

.settings-row--readonly,
.settings-row--inline,
.toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.settings-row--inline select {
    flex: none;
    width: auto;
    min-width: 8.5rem;
}

.settings-logout-form {
    margin-top: 0.5rem;
}

.settings-row--logout {
    border-color: color-mix(in srgb, var(--danger, #ff4b4b) 28%, var(--border));
    background: color-mix(in srgb, var(--danger, #ff4b4b) 7%, var(--surface-muted));
}

.settings-row--logout .button {
    color: #ff8f8f;
}

.settings-row--danger {
    border-color: color-mix(in srgb, var(--danger) 24%, var(--border));
}

.settings-row--danger label {
    color: var(--danger);
}

.account-delete-panel {
    display: grid;
    gap: 0.9rem;
}

.account-delete-panel__confirm {
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--danger) 20%, var(--border));
    border-radius: 24px;
    background: color-mix(in srgb, var(--danger) 7%, transparent);
}

.link-insert-popover {
    position: fixed;
    z-index: 1200;
    width: 272px;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 160ms ease, transform 180ms ease;
}

.link-insert-popover.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.link-insert-popover__form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 92%, #000);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.link-insert-popover input {
    min-height: 2.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-weight: 700;
}

.link-insert-popover input.is-invalid {
    border-color: var(--danger, #ff4b4b);
}

.link-insert-popover button[type="submit"] {
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-weight: 900;
}

.link-insert-popover__close {
    position: absolute;
    top: -0.55rem;
    right: -0.55rem;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
}

.link-insert-popover small {
    grid-column: 1 / -1;
    color: var(--danger, #ff4b4b);
    font-size: 0.78rem;
    font-weight: 700;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select--compact {
    flex: none;
    width: min(12rem, 100%);
    min-width: 10rem;
}

.custom-select__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.custom-select__trigger::after {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.8rem;
    border-right: 2px solid var(--text-soft);
    border-bottom: 2px solid var(--text-soft);
    transform: rotate(45deg) translateY(-0.12rem);
    transition: transform var(--transition-base);
}

.custom-select.is-open .custom-select__trigger::after {
    transform: rotate(-135deg) translateY(0.12rem);
}

.custom-select__menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: auto;
    z-index: 80;
    display: none;
    gap: 0.25rem;
    padding: 0.38rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    min-width: 100%;
    width: max-content;
    max-width: min(320px, calc(100vw - 1rem));
    max-height: min(280px, 42vh);
    overflow-y: auto;
    overflow-x: hidden;
}

.custom-select.is-open .custom-select__menu {
    display: grid;
}

.custom-select__menu--floating {
    position: fixed;
    inset: auto auto auto 0;
    right: auto;
    z-index: 96;
}

.custom-select__menu[data-placement="top"] {
    top: auto;
    bottom: calc(100% + 0.55rem);
}

.custom-select__option {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.custom-select__option.is-selected {
    background: var(--surface-soft);
    color: var(--text);
}

.settings-row--readonly,
.settings-row--inline {
    padding-bottom: 1rem;
}

.settings-row--pins {
    gap: 0.8rem;
}

.settings-row--nickname {
    gap: 0.8rem;
}

.pin-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.95rem;
}

.pin-picker__card {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.pin-picker__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pin-picker__surface {
    --pin-accent: rgba(110, 163, 255, 0.78);
    --pin-accent-soft: rgba(110, 163, 255, 0.16);
    position: relative;
    display: grid;
    align-content: space-between;
    justify-items: center;
    min-height: 9.75rem;
    padding: 0.95rem 0.9rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top, var(--pin-accent-soft), transparent 60%),
        #111318;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    isolation: isolate;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.pin-picker__surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
    opacity: 0.7;
    pointer-events: none;
}

.pin-picker__surface::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0.75rem;
    height: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pin-accent) 82%, white 18%), transparent);
    opacity: 0;
    transform: scaleX(0.32);
    transform-origin: center;
    transition: opacity 200ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pin-picker__card:hover .pin-picker__surface {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

.pin-picker__input:focus-visible + .pin-picker__surface {
    border-color: color-mix(in srgb, var(--pin-accent) 72%, white 28%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pin-accent) 24%, transparent);
}

.pin-picker__input:checked + .pin-picker__surface {
    border-color: color-mix(in srgb, var(--pin-accent) 82%, white 18%);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.24),
        0 0 0 1px color-mix(in srgb, var(--pin-accent) 32%, transparent),
        0 0 0 4px color-mix(in srgb, var(--pin-accent) 16%, transparent);
    animation: pinPickerSelect 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pin-picker__input:checked + .pin-picker__surface::after {
    opacity: 1;
    transform: scaleX(1);
}

.pin-picker__label,
.pin-picker__art,
.pin-picker__check {
    position: relative;
    z-index: 1;
}

.pin-picker__label {
    width: 100%;
    text-align: center;
    color: rgba(244, 247, 255, 0.96);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.pin-picker__art {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 4.8rem;
    padding: 0.2rem 0 0.35rem;
}

.pin-picker__art img {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease;
}

.pin-picker__card:hover .pin-picker__art img,
.pin-picker__input:checked + .pin-picker__surface .pin-picker__art img {
    transform: translateY(-1px) scale(1.04);
}

.pin-picker__empty {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.pin-picker__check {
    position: absolute;
    right: 0.72rem;
    bottom: 0.72rem;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pin-picker__check-ring,
.pin-picker__check svg {
    position: absolute;
    inset: 0;
}

.pin-picker__check-ring {
    border-radius: 50%;
    background: color-mix(in srgb, var(--pin-accent) 88%, white 12%);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--pin-accent) 28%, transparent);
}

.pin-picker__check svg {
    width: 100%;
    height: 100%;
    padding: 0.34rem;
}

.pin-picker__check path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14;
    stroke-dashoffset: 14;
}

.pin-picker__input:checked + .pin-picker__surface .pin-picker__check {
    opacity: 1;
    transform: scale(1);
    animation: pinPickerCheckPop 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pin-picker__input:checked + .pin-picker__surface .pin-picker__check-ring {
    animation: pinPickerCheckRing 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-picker__input:checked + .pin-picker__surface .pin-picker__check path {
    animation: pinPickerCheckDraw 280ms 90ms ease forwards;
}

.pin-picker__halo {
    position: absolute;
    inset: auto;
    width: 5.5rem;
    height: 5.5rem;
    top: 2rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--pin-accent) 24%, transparent) 0%, transparent 72%);
    opacity: 0.8;
    filter: blur(4px);
    pointer-events: none;
}

.pin-picker__surface--none {
    --pin-accent: rgba(150, 157, 173, 0.82);
    --pin-accent-soft: rgba(150, 157, 173, 0.1);
}

.pin-picker__surface--premium {
    --pin-accent: rgba(255, 144, 64, 0.92);
    --pin-accent-soft: rgba(255, 152, 71, 0.2);
}

.pin-picker__surface--premium-crown {
    --pin-accent: rgba(255, 197, 88, 0.94);
    --pin-accent-soft: rgba(255, 201, 106, 0.22);
}

.pin-picker__surface--junior-moderator {
    --pin-accent: rgba(79, 198, 255, 0.92);
    --pin-accent-soft: rgba(87, 188, 255, 0.2);
}

.pin-picker__surface--moderator {
    --pin-accent: rgba(115, 227, 87, 0.9);
    --pin-accent-soft: rgba(103, 222, 103, 0.2);
}

.pin-picker__surface--senior-moderator {
    --pin-accent: rgba(186, 115, 255, 0.92);
    --pin-accent-soft: rgba(170, 102, 255, 0.2);
}

.pin-picker__surface--superuser {
    --pin-accent: rgba(255, 96, 146, 0.92);
    --pin-accent-soft: rgba(255, 92, 148, 0.2);
}

body[data-bs-theme="light"] .pin-picker__surface {
    border-color: rgba(18, 22, 33, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 253, 0.95)),
        radial-gradient(circle at top, var(--pin-accent-soft), transparent 60%),
        #f6f8fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-bs-theme="light"] .pin-picker__surface::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 44%);
}

body[data-bs-theme="light"] .pin-picker__label {
    color: #202535;
}

body[data-bs-theme="light"] .pin-picker__empty {
    border-color: rgba(36, 43, 60, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: #647089;
}

.nickname-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.nickname-picker__card {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.nickname-picker__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nickname-picker__surface {
    --nickname-accent: rgba(110, 163, 255, 0.78);
    --nickname-accent-soft: rgba(110, 163, 255, 0.16);
    position: relative;
    display: grid;
    gap: 0.58rem;
    min-height: 10rem;
    padding: 0.95rem 0.95rem 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top, var(--nickname-accent-soft), transparent 60%),
        #111318;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    isolation: isolate;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.nickname-picker__surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
    opacity: 0.7;
    pointer-events: none;
}

.nickname-picker__surface::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0.75rem;
    height: 0.22rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--nickname-accent) 82%, white 18%), transparent);
    opacity: 0;
    transform: scaleX(0.32);
    transform-origin: center;
    transition: opacity 200ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nickname-picker__card:hover .nickname-picker__surface {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

.nickname-picker__input:focus-visible + .nickname-picker__surface {
    border-color: color-mix(in srgb, var(--nickname-accent) 72%, white 28%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nickname-accent) 24%, transparent);
}

.nickname-picker__input:checked + .nickname-picker__surface {
    border-color: color-mix(in srgb, var(--nickname-accent) 82%, white 18%);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.24),
        0 0 0 1px color-mix(in srgb, var(--nickname-accent) 32%, transparent),
        0 0 0 4px color-mix(in srgb, var(--nickname-accent) 16%, transparent);
    animation: pinPickerSelect 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nickname-picker__input:checked + .nickname-picker__surface::after {
    opacity: 1;
    transform: scaleX(1);
}

.nickname-picker__label,
.nickname-picker__preview,
.nickname-picker__subtitle,
.nickname-picker__check {
    position: relative;
    z-index: 1;
}

.nickname-picker__label {
    width: 100%;
    color: rgba(244, 247, 255, 0.96);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.nickname-picker__preview {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.88rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nickname-picker__preview strong {
    font-size: 1.04rem;
    line-height: 1.08;
}

.nickname-picker__subtitle {
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.35;
}

.nickname-picker__check {
    position: absolute;
    right: 0.72rem;
    bottom: 0.72rem;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nickname-picker__check-ring,
.nickname-picker__check svg {
    position: absolute;
    inset: 0;
}

.nickname-picker__check-ring {
    border-radius: 50%;
    background: color-mix(in srgb, var(--nickname-accent) 88%, white 12%);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--nickname-accent) 28%, transparent);
}

.nickname-picker__check svg {
    width: 100%;
    height: 100%;
    padding: 0.34rem;
}

.nickname-picker__check path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14;
    stroke-dashoffset: 14;
}

.nickname-picker__input:checked + .nickname-picker__surface .nickname-picker__check {
    opacity: 1;
    transform: scale(1);
    animation: pinPickerCheckPop 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nickname-picker__input:checked + .nickname-picker__surface .nickname-picker__check-ring {
    animation: pinPickerCheckRing 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nickname-picker__input:checked + .nickname-picker__surface .nickname-picker__check path {
    animation: pinPickerCheckDraw 280ms 90ms ease forwards;
}

.nickname-picker__halo {
    position: absolute;
    inset: auto;
    width: 5.5rem;
    height: 5.5rem;
    top: 2rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--nickname-accent) 24%, transparent) 0%, transparent 72%);
    opacity: 0.8;
    filter: blur(4px);
    pointer-events: none;
}

.nickname-picker__surface--none {
    --nickname-accent: rgba(150, 157, 173, 0.82);
    --nickname-accent-soft: rgba(150, 157, 173, 0.1);
}

.nickname-picker__surface--skyfire {
    --nickname-accent: rgba(111, 225, 255, 0.92);
    --nickname-accent-soft: rgba(111, 225, 255, 0.2);
}

.nickname-picker__surface--aurora {
    --nickname-accent: rgba(89, 241, 204, 0.92);
    --nickname-accent-soft: rgba(89, 241, 204, 0.2);
}

.nickname-picker__surface--sunset {
    --nickname-accent: rgba(255, 158, 102, 0.92);
    --nickname-accent-soft: rgba(255, 158, 102, 0.2);
}

.nickname-picker__surface--mint {
    --nickname-accent: rgba(104, 242, 193, 0.92);
    --nickname-accent-soft: rgba(104, 242, 193, 0.2);
}

.nickname-picker__surface--berry {
    --nickname-accent: rgba(255, 139, 215, 0.92);
    --nickname-accent-soft: rgba(255, 139, 215, 0.2);
}

.nickname-picker__surface--solar {
    --nickname-accent: rgba(255, 227, 110, 0.94);
    --nickname-accent-soft: rgba(255, 227, 110, 0.22);
}

body[data-bs-theme="light"] .nickname-picker__surface {
    border-color: rgba(18, 22, 33, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 253, 0.95)),
        radial-gradient(circle at top, var(--nickname-accent-soft), transparent 60%),
        #f6f8fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-bs-theme="light"] .nickname-picker__label {
    color: #202535;
}

body[data-bs-theme="light"] .nickname-picker__preview {
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 0 0 1px rgba(36, 43, 60, 0.08);
}

body[data-bs-theme="light"] .nickname-picker__subtitle {
    color: #647089;
}

@keyframes pinPickerSelect {
    0% {
        transform: scale(0.96);
    }
    48% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pinPickerCheckPop {
    0% {
        opacity: 0;
        transform: scale(0.45);
    }
    62% {
        opacity: 1;
        transform: scale(1.12);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pinPickerCheckRing {
    0% {
        transform: scale(0.7);
    }
    55% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pinPickerCheckDraw {
    from {
        stroke-dashoffset: 14;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 640px) {
    .pin-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nickname-picker {
        grid-template-columns: 1fr;
    }

    .pin-picker__surface {
        min-height: 8.8rem;
        padding-inline: 0.72rem;
    }

    .pin-picker__art img,
    .pin-picker__empty {
        width: 3.7rem;
        height: 3.7rem;
    }

    .nickname-picker__surface {
        min-height: 9rem;
        padding-inline: 0.84rem;
    }
}

.settings-row--inline > div,
.toggle-row > span {
    display: grid;
    gap: 0.2rem;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.2rem;
}

.settings-password-form {
    display: none;
    margin-top: -0.1rem;
    padding: 1rem;
    border-radius: 24px;
    background: var(--bg);
}

.settings-password-form.is-open {
    display: grid;
}

.settings-empty-block {
    display: grid;
    gap: 0.45rem;
    min-height: 120px;
    align-content: center;
    color: var(--text-soft);
}

.settings-empty-block--compact {
    min-height: 0;
    padding: 0.35rem 0;
}

.settings-blacklist {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.1rem;
}

.settings-blacklist__header {
    display: grid;
    gap: 0.25rem;
    color: var(--text-soft);
}

.settings-blacklist__header p:last-child {
    line-height: 1.45;
}

.settings-blacklist__list {
    display: grid;
    gap: 0;
    max-height: 18rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.settings-blacklist__list .follower-row {
    padding-right: 0.15rem;
}

.toggle-row {
    padding: 0.2rem 0 0.85rem;
    border-bottom: 1px solid var(--border);
}

.toggle-row input[type="checkbox"] {
    appearance: none;
    position: relative;
    width: 2.9rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    transition: background var(--transition-base), border-color var(--transition-base);
    cursor: pointer;
}

.toggle-row input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    left: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    transition: transform var(--transition-base);
}

.toggle-row input[type="checkbox"]:checked {
    background: var(--brand);
    border-color: rgba(76, 159, 255, 0.4);
}

.toggle-row input[type="checkbox"]:checked::after {
    transform: translateX(1.15rem);
}

.check-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-soft);
    cursor: pointer;
}

.check-chip input[type="checkbox"] {
    appearance: none;
    position: relative;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    transition: background var(--transition-base), border-color var(--transition-base);
    cursor: pointer;
}

.check-chip input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 46%;
    left: 50%;
    width: 0.32rem;
    height: 0.58rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -58%) rotate(45deg) scale(0);
    transition: transform var(--transition-base);
}

.check-chip input[type="checkbox"]:checked {
    background: var(--brand);
    border-color: rgba(76, 159, 255, 0.42);
}

.check-chip input[type="checkbox"]:checked::after {
    transform: translate(-50%, -58%) rotate(45deg) scale(1);
}

.check-chip--danger input[type="checkbox"]:checked {
    background: var(--danger);
    border-color: rgba(255, 77, 146, 0.42);
}

.premium-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 460px;
    max-width: none;
    max-height: min(88vh, 860px);
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    background: var(--surface);
}

body[data-bs-theme="light"] .premium-dialog {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.post-editor-dialog {
    display: grid;
    gap: 1rem;
    width: 640px;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: 1.25rem 1.25rem 1rem;
    overflow: hidden;
    border-radius: 32px;
    background: var(--surface);
}

.post-editor-dialog__header {
    display: grid;
    gap: 0.3rem;
}

.post-editor-dialog__header h2 {
    font-size: 1.6rem;
}

.post-editor-form {
    display: grid;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.1rem;
}

.premium-dialog__hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 1.2rem;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.85) 0 15%, transparent 15%),
        radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.82) 0 17%, transparent 17%),
        linear-gradient(180deg, #ece6fb 0%, #f7f2ff 58%, #f8f5ff 100%);
}

body[data-bs-theme="light"] .premium-dialog__hero {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.96) 0 15%, transparent 15%),
        radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.92) 0 17%, transparent 17%),
        radial-gradient(circle at 18% 12%, rgba(47, 128, 255, 0.1), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(122, 91, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #f4f7ff 0%, #eef3ff 54%, #f8fbff 100%);
}

.premium-dialog__hero-badge {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 24px;
    background:
        url("../img/nully-logo.371092a65c9b.png") center / contain no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
        #0080ff;
    color: transparent;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(42, 50, 71, 0.16);
}

body[data-bs-theme="light"] .premium-dialog__hero-badge {
    box-shadow:
        0 18px 44px rgba(47, 128, 255, 0.18),
        0 8px 18px rgba(15, 23, 42, 0.08);
}

.premium-dialog__body {
    display: grid;
    gap: 1.05rem;
    padding: 1.1rem 1.1rem 1.3rem;
    min-height: 0;
    overflow-y: auto;
}

body[data-bs-theme="light"] .premium-dialog__body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fdfdff);
}

.premium-dialog__body,
.post-editor-form,
.connections-modal .followers-list,
.settings-dialog__content {
    scrollbar-width: thin;
    scrollbar-color: rgba(122, 130, 146, 0.55) transparent;
}

.premium-dialog__body::-webkit-scrollbar,
.post-editor-form::-webkit-scrollbar,
.connections-modal .followers-list::-webkit-scrollbar,
.settings-dialog__content::-webkit-scrollbar {
    width: 7px;
}

.premium-dialog__body::-webkit-scrollbar-track,
.post-editor-form::-webkit-scrollbar-track,
.connections-modal .followers-list::-webkit-scrollbar-track,
.settings-dialog__content::-webkit-scrollbar-track {
    background: transparent;
}

.premium-dialog__body::-webkit-scrollbar-thumb,
.post-editor-form::-webkit-scrollbar-thumb,
.connections-modal .followers-list::-webkit-scrollbar-thumb,
.settings-dialog__content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(122, 130, 146, 0.48);
}

body[data-bs-theme="dark"] .premium-dialog__body,
body[data-bs-theme="dark"] .post-editor-form,
body[data-bs-theme="dark"] .connections-modal .followers-list,
body[data-bs-theme="dark"] .settings-dialog__content {
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

body[data-bs-theme="dark"] .premium-dialog__body::-webkit-scrollbar-thumb,
body[data-bs-theme="dark"] .post-editor-form::-webkit-scrollbar-thumb,
body[data-bs-theme="dark"] .connections-modal .followers-list::-webkit-scrollbar-thumb,
body[data-bs-theme="dark"] .settings-dialog__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}

.premium-dialog__header {
    display: grid;
    gap: 0.35rem;
}

.premium-dialog__header h2 {
    font-size: 2rem;
}

.premium-dialog__header p {
    color: var(--text-soft);
}

.premium-dialog__preview {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.35rem 0 0.1rem;
}

body[data-bs-theme="light"] .premium-dialog__preview {
    padding: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(47, 128, 255, 0.08), transparent 36%),
        #f7faff;
}

.premium-dialog__identity {
    display: grid;
    gap: 0.3rem;
}

.premium-dialog__section {
    display: grid;
    gap: 0.8rem;
    padding-top: 0.2rem;
    border-top: 1px solid var(--border);
}

body[data-bs-theme="light"] .premium-dialog__section {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.premium-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

body[data-bs-theme="light"] .premium-feature svg {
    color: #5d7fe9;
}

.premium-feature__dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    flex: none;
    margin-top: 0.22rem;
}

.premium-feature__dot--blue {
    background: #83d8ff;
}

.premium-feature__dot--soft {
    background: #dac7ff;
}

.premium-feature p {
    color: var(--text-soft);
    font-size: 0.92rem;
}

body[data-bs-theme="light"] .premium-dialog__header p,
body[data-bs-theme="light"] .premium-feature p,
body[data-bs-theme="light"] .premium-dialog__identity .muted {
    color: #697181;
}

body[data-bs-theme="light"] .premium-dialog__identity .status-pill.is-live {
    background: rgba(47, 128, 255, 0.14);
    color: #1d6ff7;
}

body[data-bs-theme="light"] .premium-dialog__identity .status-pill.is-muted {
    background: rgba(15, 23, 42, 0.06);
    color: #697181;
}

body[data-bs-theme="light"] .premium-dialog__footer .button--ghost {
    border-color: rgba(15, 23, 42, 0.08);
    background: #f7faff;
    color: #121722;
}

body[data-bs-theme="light"] .premium-dialog__footer .button--ghost:hover {
    background: #f1f6ff;
    color: #121722;
}

body[data-bs-theme="light"] .premium-dialog a {
    color: #1d6ff7;
}

.premium-dialog__footer {
    padding-top: 0.15rem;
}

.premium-dialog__footer .button {
    width: 100%;
}

.dialog-content > .settings-dialog {
    margin: 0;
}

.dialog-content > .connections-modal,
.dialog-content > .post-editor-dialog,
.dialog-content > .premium-dialog {
    margin: 0 auto;
}

.media-dialog-shell {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 24;
    width: min(96vw, 1280px);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 52%),
        rgba(10, 11, 14, 0.78);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.04);
    transition: opacity 180ms ease, transform 200ms ease, visibility 180ms ease;
}

.media-dialog-shell[open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.media-dialog-shell.is-closing {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.02);
}

.media-dialog__content {
    display: grid;
    place-items: center;
    max-height: calc(100vh - 2rem);
    min-height: min(72vh, 860px);
    padding: 1.25rem;
}

.media-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(28, 30, 38, 0.92);
    color: #f3f7ff;
    cursor: pointer;
}

.media-viewer {
    position: relative;
}

.media-viewer__actions {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 4;
}

.media-save-menu {
    position: relative;
}

.media-save-menu summary {
    list-style: none;
}

.media-save-menu summary::-webkit-details-marker {
    display: none;
}

.media-save-menu__trigger {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 58%),
        rgba(12, 14, 18, 0.44);
    color: #fff;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.media-save-menu__panel {
    top: auto;
    right: 0;
    bottom: calc(100% + 0.65rem);
    min-width: 230px;
}

.media-viewer {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.media-viewer img,
.media-viewer video {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    border-radius: 28px;
    object-fit: contain;
    background: #0e1014;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.legal-shell {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 48px 16px;
}

.legal-document {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-bottom: 28px;
    padding: 0.45rem 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease;
}

.legal-back .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.legal-back:hover {
    color: var(--text);
}

.legal-document h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.9rem, 6vw, 2.45rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.legal-updated {
    margin: 0.75rem 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.legal-lead {
    margin: 1.15rem 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-section {
    display: grid;
    gap: 0.85rem;
    margin-top: 2.2rem;
}

.legal-section h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.22rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: 0;
}

.legal-section p,
.legal-list {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.72;
}

.legal-list {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.2rem;
    list-style: disc;
}

.legal-list li::marker {
    color: var(--text-soft);
}

.legal-document code,
.inline-code {
    display: inline-block;
    padding: 0.08rem 0.38rem;
    border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border));
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--brand) 10%, var(--surface-soft));
    color: var(--brand-strong);
    font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.45;
    white-space: break-spaces;
}

@media (max-width: 920px) {
    .premium-panel--checkout {
        position: static;
    }

    .premium-features--landing {
        grid-template-columns: 1fr;
    }

    .legal-shell {
        padding: 28px 16px 96px;
    }

    .legal-back {
        margin-bottom: 22px;
    }

    .legal-section {
        margin-top: 1.8rem;
    }
}

.table-row,
.admin-row {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
}

.table-row:last-child,
.admin-row:last-child {
    border-bottom: 0;
}

@media (min-width: 921px) {
    .desktop-compose-host {
        display: block;
    }

    .mobile-compose-host {
        display: none;
    }

    .composer-card .composer-toolbar__left {
        margin-left: -65px;
    }
}

@media (max-width: 920px) {
    .desktop-compose-host {
        display: none;
    }

    .mobile-compose-host {
        display: contents;
    }

    .media-carousel__slide {
        flex-basis: calc(100% - 2.5rem);
    }

    .media-carousel__nav {
        width: 2.7rem;
        height: 2.7rem;
    }

    .media-carousel__nav--prev {
        left: 0.65rem;
    }

    .media-carousel__nav--next {
        right: 0.65rem;
    }

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

    .composer-mobile-top {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.55rem;
        padding: 0 0 0.2rem;
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--surface-strong);
    }

    .composer-mobile-top h2 {
        font-size: 1.7rem;
    }

    .composer-mobile-top .sheet-handle {
        grid-column: 1 / -1;
        margin-bottom: 0.2rem;
    }

    .composer-grid {
        grid-template-columns: 1fr;
    }

    .composer-grid > .avatar-placeholder {
        display: none;
    }

    .composer-toolbar {
        flex-wrap: wrap;
    }

    .preview-grid,
    .existing-media-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .notification-card {
        display: grid;
    }

    .settings-dialog {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        background: var(--surface);
        border-radius: 30px;
    }

    .settings-dialog__sidebar {
        display: none;
    }

    .settings-dialog__content {
        min-height: 0;
        height: 100%;
        max-height: none;
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
        overflow-y: auto;
    }

    .settings-dialog__mobile-nav {
        display: grid;
        gap: 0.8rem;
        padding: 0.95rem 4rem 0 1rem;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 3;
        background: var(--surface);
    }

    .settings-dialog__mobile-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .settings-dialog__mobile-tabs .settings-nav__item {
        justify-content: center;
        padding: 0.82rem 0.5rem;
        border-radius: 18px;
    }

    .settings-upload-grid {
        grid-template-columns: 1fr;
    }

    .settings-upload-card__preview--banner {
        aspect-ratio: 16 / 7;
        max-height: 10.5rem;
    }

    .post-editor-dialog {
        height: 100%;
        width: 100%;
        padding: 1rem;
        border-radius: 30px;
    }

    .post-editor-form {
        padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
    }

    .dialog-sheet-handle {
        display: block;
    }

    .dialog-content > .settings-dialog,
    .dialog-content > .connections-modal,
    .dialog-content > .post-editor-dialog,
    .dialog-content > .premium-dialog,
    .dialog-content > .report-dialog {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        margin: 0;
    }

    .connections-modal,
    .premium-dialog,
    .report-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 30px;
    }

    .connections-modal,
    .report-dialog {
        padding: 1rem 0 calc(1.25rem + env(safe-area-inset-bottom));
    }

    .followers-sheet__header {
        position: sticky;
        top: 0;
        z-index: 2;
        gap: 0.7rem;
        padding: 0 3.5rem 0.75rem 1rem;
        background: var(--surface);
    }

    .followers-sheet__header h2 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .connections-modal .followers-list {
        padding: 0 1rem;
    }

    .follower-row {
        gap: 0.7rem;
    }

    .follower-row__action {
        padding-left: 0.5rem;
    }

    .follower-row__button {
        padding-inline: 0.78rem;
        font-size: 0.86rem;
    }

    .premium-dialog__body {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .report-dialog__header {
        position: sticky;
        top: 0;
        z-index: 2;
        padding-bottom: 0.25rem;
        background: var(--surface);
    }

    .report-dialog__header h2 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .report-form__body {
        padding-right: 0;
    }

    .report-dialog__footer {
        padding-bottom: 0.15rem;
    }

    .premium-dialog__hero {
        min-height: 180px;
    }

    .profile-hero {
        overflow: visible;
    }

    .profile-hero__panel {
        gap: 0.95rem;
    }

    .profile-hero__top {
        gap: 0.75rem;
    }

    .profile-hero__top,
    .profile-hero__body {
        justify-content: center;
        text-align: center;
    }

    .profile-avatar,
    .profile-hero__identity,
    .profile-hero__bio,
    .profile-stats-row,
    .profile-tabs,
    .profile-actions,
    .profile-join-date--mobile {
        grid-area: auto;
    }

    .profile-actions {
        order: 3;
        width: auto;
        margin: 0.1rem auto 0;
        gap: 0.7rem;
        align-self: center;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .profile-actions > a,
    .profile-actions > form {
        flex: none;
    }

    .profile-actions .button,
    .profile-actions .profile-badge,
    .profile-actions form .button {
        width: auto;
    }

    .profile-avatar {
        width: 6.8rem;
        height: 6.8rem;
        margin-inline: auto;
        margin-top: -3.45rem;
        border-width: 5px;
    }

    .profile-hero__identity {
        justify-items: center;
        gap: 0.3rem;
        text-align: center;
    }

    .profile-hero__heading {
        justify-content: center;
        gap: 0.42rem;
    }

    .profile-hero__username {
        text-align: center;
        font-size: 1.08rem;
    }

    .profile-hero__bio {
        order: 4;
        max-width: none;
        margin-top: 0.15rem;
        text-align: left;
        line-height: 1.52;
    }

    .profile-stats-row {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        justify-items: center;
        gap: 0.35rem 0.85rem;
        width: min(100%, 16.75rem);
        margin: 0 auto;
        padding: 0.05rem 0;
        position: relative;
    }

    .profile-stats-row::after {
        content: "";
        position: absolute;
        top: 0.15rem;
        bottom: 0.15rem;
        left: 50%;
        width: 1px;
        background: var(--border);
        transform: translateX(-50%);
    }

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

    .profile-stats-row .profile-stat:not(.profile-stat--plain) {
        display: grid;
        gap: 0.25rem;
        min-height: 0;
        padding: 0 0.35rem;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .profile-stats-row .profile-stat:not(.profile-stat--plain) strong {
        font-size: 1.8rem;
        line-height: 1;
    }

    .profile-stats-row .profile-stat:not(.profile-stat--plain) span {
        max-width: 7rem;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .profile-stats-row .profile-stat--plain {
        display: none;
    }

    .profile-actions__follow {
        min-width: 10.6rem;
        min-height: 2.85rem;
        padding-inline: 1.2rem;
    }

    .profile-actions__follow .icon {
        width: 0.95rem;
        height: 0.95rem;
    }

    .profile-action-menu {
        margin-right: 0.05rem;
    }

    .profile-action-menu__trigger {
        width: 2.85rem;
        min-width: 2.85rem;
        height: 2.85rem;
    }

    .profile-action-menu__panel {
        top: auto;
        right: auto;
        bottom: calc(100% + 0.72rem);
        left: 0;
        min-width: 12rem;
        transform-origin: bottom left;
        animation: profileActionMenuInMobile 220ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    .profile-join-date--mobile {
        order: 5;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.6rem;
        width: 100%;
        color: var(--text-soft);
        font-size: 0.98rem;
        text-align: left;
    }

    .profile-tabs {
        order: 6;
        width: 100%;
    }

    .image-cropper {
        padding: 0.9rem;
    }

    .image-cropper__dialog {
        width: min(100vw - 1.8rem, 42rem);
        max-height: calc(100vh - 1.8rem);
        padding: 1rem;
        border-radius: 24px;
    }

    .image-cropper__body {
        grid-template-columns: 1fr;
    }

    .image-cropper__stage {
        min-height: min(50vh, 22rem);
    }

    .image-cropper__aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .image-cropper__preview-grid {
        justify-items: start;
    }

    .image-cropper__meta {
        gap: 0.55rem;
    }

    .image-cropper__actions {
        flex-wrap: wrap;
    }

    .image-cropper__actions .button {
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .settings-dialog {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        background: var(--surface);
        border-radius: 30px;
    }

    .settings-dialog__sidebar {
        display: none;
    }

    .settings-dialog__content {
        min-height: 0;
        height: 100%;
        max-height: none;
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
        overflow-y: auto;
    }

    .settings-dialog__mobile-nav {
        display: grid;
        gap: 0.8rem;
        padding: 0.95rem 4rem 0 1rem;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 3;
        background: var(--surface);
    }

    .post-editor-dialog {
        height: 100%;
        width: 100%;
        padding: 1rem;
        border-radius: 30px;
    }

    .dialog-sheet-handle {
        display: block;
    }

    .dialog-content > .settings-dialog,
    .dialog-content > .connections-modal,
    .dialog-content > .post-editor-dialog,
    .dialog-content > .premium-dialog,
    .dialog-content > .report-dialog {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        margin: 0;
    }

    .connections-modal,
    .premium-dialog,
    .report-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 30px;
    }
}
