body {
    /*background-color: skyblue;*/
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow-x: hidden;
}

.app-header {
    position: relative;
    z-index: 1030;
}

.app-shell {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    flex: 0 0 auto;
    margin-top: 2rem;
    border-top: 1px solid var(--bs-border-color);
    background: color-mix(in srgb, var(--bs-body-bg) 94%, transparent);
}

.legal-links a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
    color: var(--bs-link-hover-color);
    text-decoration: underline;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    max-width: calc(100vw - 7.5rem);
    margin-right: 1rem;
    white-space: normal;
}

.brand-logo {
    display: block;
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.app-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.app-brand-name {
    overflow: hidden;
    color: var(--bs-body-color);
    font-size: 1.25rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-brand-context {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    line-height: 1.25;
    white-space: nowrap;
}

.app-brand-context-label {
    flex: 0 0 auto;
    font-weight: 600;
}

.app-brand-context-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-lumi-artwork {
    display: block;
    width: 10rem;
    height: 12.5rem;
    margin-inline: auto;
    object-fit: contain;
}

.home-page {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
}

.home-hero {
    width: 100%;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.home-hero-public {
    max-width: 52rem;
}

.home-hero-authenticated {
    max-width: 64rem;
}

.home-hero-artwork-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: -2.5rem;
    pointer-events: none;
}

.home-hero-panel {
    position: relative;
    padding: clamp(3.75rem, 8vw, 5rem) clamp(1.25rem, 6vw, 4.5rem) clamp(1.75rem, 5vw, 3rem);
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 1.5rem;
    background: var(--bs-body-bg);
}

.home-hero-eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero-title {
    max-width: 19ch;
    margin: 0 auto 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
}

.home-hero-authenticated .home-hero-title {
    max-width: 24ch;
}

.home-hero-copy {
    max-width: 39rem;
    margin: 0 auto 1.5rem;
    color: var(--bs-secondary-color);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.home-access-copy {
    margin-bottom: 1rem;
    font-weight: 600;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.home-registration-note {
    margin-top: 1rem;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .home-hero-actions {
        flex-direction: column;
    }

    .home-hero-actions .btn {
        width: 100%;
    }
}

/* Shared VRChat entity-detail structure for groups, worlds, and instances.
 * Visual theme treatment belongs in styles/themes/lumi.css. */
.vrc-entity-page {
    width: 100%;
    max-width: 78rem;
    margin-inline: auto;
    padding-block: 1rem 3rem;
}

.vrc-entity-back {
    margin-bottom: 1rem;
}

/* Reusable entity artwork for dense rows and tables. Theme-specific color and
 * depth belong in the active theme overlay. */
.vrc-entity-thumbnail {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

img.vrc-entity-thumbnail {
    object-fit: cover;
}

.vrc-entity-thumbnail--avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.vrc-entity-thumbnail--landscape {
    width: 8.3125rem;
    height: 6.25rem;
    border-radius: var(--bs-border-radius-sm);
}

.vrc-entity-thumbnail--badge {
    width: 3rem;
    height: 3rem;
    border-radius: var(--bs-border-radius);
}

img.vrc-entity-thumbnail--badge {
    object-fit: contain;
}

.vrc-entity-thumbnail-placeholder {
    font-size: 1.75rem;
    line-height: 1;
}

.vrc-entity-thumbnail--landscape.vrc-entity-thumbnail-placeholder {
    font-size: 2.75rem;
}

.vrc-entity-hero {
    overflow: hidden;
}

.vrc-entity-cover {
    position: relative;
    height: clamp(12rem, 28vw, 20rem);
    overflow: hidden;
}

.vrc-entity-cover-image,
.vrc-entity-cover-placeholder {
    width: 100%;
    height: 100%;
}

.vrc-entity-cover-image {
    object-fit: cover;
}

.vrc-entity-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 14vw, 8rem);
}

.vrc-entity-cover-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vrc-entity-cover-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    padding: 0 clamp(1.5rem, 5vw, 3.25rem) clamp(1.75rem, 5vw, 3.25rem);
}

.vrc-entity-emblem {
    display: flex;
    width: 8rem;
    height: 8rem;
    margin-top: -4.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0.4rem solid var(--bs-body-bg);
    border-radius: 1.75rem;
    background: var(--bs-body-bg);
    font-size: 2.75rem;
}

.vrc-entity-emblem img,
.vrc-entity-emblem > span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.vrc-entity-emblem img {
    object-fit: cover;
}

.vrc-entity-identity {
    min-width: 0;
}

.vrc-entity-eyebrow,
.vrc-entity-section-kicker {
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.vrc-entity-title-row,
.vrc-entity-state-row,
.vrc-entity-id-row,
.vrc-entity-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.vrc-entity-title-row {
    gap: 0.75rem;
}

.vrc-entity-title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.04;
}

.vrc-entity-state-row {
    gap: 0.5rem;
    margin-top: 1rem;
}

.vrc-entity-id-row {
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.vrc-entity-id-row code {
    min-width: 0;
    overflow-wrap: anywhere;
}

.vrc-entity-actions {
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.vrc-entity-stats {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vrc-entity-stat-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-body-bg);
}

.vrc-entity-stat-card > span:last-child > strong,
.vrc-entity-stat-card > span:last-child > small {
    display: block;
}

.vrc-entity-stat-card > span:last-child > strong {
    overflow-wrap: anywhere;
    font-size: 1.35rem;
    line-height: 1.15;
}

.vrc-entity-stat-card > span:last-child > small {
    margin-top: 0.2rem;
    color: var(--bs-secondary-color);
}

.vrc-entity-stat-icon,
.vrc-entity-section-icon,
.vrc-entity-empty-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
}

.vrc-entity-stat-icon {
    width: 3rem;
    height: 3rem;
}

.vrc-entity-stat-time {
    font-size: 0.92rem !important;
    font-weight: 600;
}

.vrc-entity-stat-time time,
.vrc-entity-detail-list time {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: baseline;
}

.vrc-entity-stat-time time br,
.vrc-entity-detail-list time br {
    display: none;
}

.vrc-entity-section-heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.vrc-entity-section-icon,
.vrc-entity-empty-icon {
    width: 2.75rem;
    height: 2.75rem;
}

.vrc-entity-section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.vrc-entity-description {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.vrc-entity-detail-list > div {
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.vrc-entity-detail-list > div:first-child {
    padding-top: 0;
}

.vrc-entity-detail-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vrc-entity-detail-list dt {
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.vrc-entity-detail-list dd {
    min-width: 0;
    margin-bottom: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.vrc-entity-empty-state {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.vrc-entity-relation-card {
    overflow: hidden;
}

.vrc-entity-relation-image,
.vrc-entity-relation-placeholder {
    width: 100%;
    height: 13rem;
}

.vrc-entity-relation-image {
    object-fit: cover;
}

.vrc-entity-relation-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.vrc-world-hero {
    display: grid;
}

.vrc-world-artwork {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    border-bottom: 1px solid var(--bs-border-color);
}

.vrc-world-artwork-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.vrc-world-artwork-placeholder {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 14vw, 7rem);
}

.vrc-world-summary {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.vrc-world-author {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color);
}

.vrc-world-quick-details {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.vrc-world-quick-details > div {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.vrc-world-quick-details dt {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vrc-world-quick-details dd {
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
    font-size: 1.1rem;
    font-weight: 700;
}

.vrc-instance-hero {
    display: grid;
}

.vrc-instance-hero-visual {
    display: flex;
    min-height: 16rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 4rem;
}

.vrc-instance-hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
}

.vrc-instance-identity {
    padding: clamp(1.5rem, 5vw, 3.25rem);
}

.vrc-entity-group-summary {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.vrc-entity-group-summary > img,
.vrc-entity-group-summary > span {
    display: flex;
    width: 5rem;
    height: 5rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    object-fit: cover;
    font-size: 1.75rem;
}

.vrc-instance-history-grid {
    display: grid;
    gap: 1rem;
}

.vrc-instance-history-card {
    min-width: 0;
}

@media (min-width: 768px) {
    .vrc-entity-cover-content {
        grid-template-columns: 8rem minmax(0, 1fr);
        align-items: start;
    }

    .vrc-entity-emblem {
        margin-top: -4.5rem;
    }

    .vrc-entity-identity {
        padding-top: 1.5rem;
    }

    .vrc-entity-stats,
    .vrc-instance-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vrc-world-quick-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vrc-instance-hero {
        grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
        align-items: stretch;
    }

    .vrc-instance-hero-visual,
    .vrc-instance-hero-visual img {
        min-height: 25rem;
    }

    .vrc-instance-identity {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .vrc-entity-detail-list-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2rem;
    }

    .vrc-entity-detail-list-columns > div:nth-child(2) {
        padding-top: 0;
    }

    .vrc-entity-detail-list-columns > div:nth-last-child(2) {
        padding-bottom: 0;
        border-bottom: 0;
    }
}

@media (min-width: 992px) {
    .vrc-world-hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(23rem, 0.85fr);
        align-items: stretch;
    }

    .vrc-world-artwork {
        border-right: 1px solid var(--bs-border-color);
        border-bottom: 0;
    }

    .vrc-world-summary {
        display: flex;
        padding: clamp(1.75rem, 3vw, 2.75rem);
        flex-direction: column;
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .vrc-entity-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .vrc-entity-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .vrc-entity-actions .btn {
        width: 100%;
    }

    .vrc-entity-detail-list > div {
        flex-direction: column;
        gap: 0.25rem;
    }

    .vrc-entity-detail-list dd {
        text-align: left;
    }

    .vrc-entity-cover-content {
        text-align: center;
    }

    .vrc-entity-emblem {
        margin-inline: auto;
    }

    .vrc-entity-title-row,
    .vrc-entity-state-row,
    .vrc-entity-id-row,
    .vrc-entity-actions {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .app-brand {
        max-width: 16rem;
    }
}

@media (min-width: 1200px) {
    .app-brand {
        max-width: 22rem;
    }
}

.content-card {
    width: 100%;
    max-width: 44rem;
    margin-inline: auto;
}

.min-w-0 {
    min-width: 0;
}

/* Moderation-event context and immutable note timeline. Colors intentionally
 * derive from Bootstrap variables so every application theme can own them. */
.moderation-context-page {
    width: 100%;
    max-width: 78rem;
    margin-inline: auto;
    padding-block: 1rem 3rem;
}

.moderation-context-back {
    margin-bottom: 1rem;
}

.moderation-event-hero {
    overflow: hidden;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.14) !important;
    background:
        radial-gradient(circle at 94% 8%, rgba(var(--bs-primary-rgb), 0.13), transparent 24rem),
        var(--bs-body-bg);
}

.moderation-event-action-badge {
    padding: 0.55rem 0.8rem;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.025em;
}

.moderation-event-description {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-tertiary-bg);
}

.moderation-event-description-icon,
.moderation-note-empty-icon,
.moderation-composer-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--bs-border-radius);
    color: var(--bs-primary-text-emphasis);
    background: rgba(var(--bs-primary-rgb), 0.12);
}

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

.moderation-identity-card {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-body-bg);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.moderation-identity-card.is-linked:hover,
.moderation-identity-card.is-linked:focus-within {
    border-color: rgba(var(--bs-primary-rgb), 0.45);
    box-shadow: var(--bs-box-shadow-sm);
    transform: translateY(-1px);
}

.moderation-identity-card--system {
    border-color: rgba(var(--bs-info-rgb), 0.32);
    background: rgba(var(--bs-info-rgb), 0.06);
}

.moderation-identity-avatar,
.moderation-note-avatar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.moderation-identity-avatar {
    width: 4.75rem;
    height: 4.75rem;
    font-size: 1.65rem;
}

.moderation-identity-avatar--instance {
    border-radius: var(--bs-border-radius);
}

.moderation-identity-avatar--system {
    color: var(--bs-info-text-emphasis);
    background: rgba(var(--bs-info-rgb), 0.14);
}

.vrc-system-identity {
    display: flex;
    min-width: 12rem;
    align-items: center;
    gap: 0.65rem;
}

.vrc-system-identity-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(var(--bs-info-rgb), 0.3);
    border-radius: 50%;
    color: var(--bs-info-text-emphasis);
    background: rgba(var(--bs-info-rgb), 0.12);
}

.moderation-identity-avatar img,
.moderation-note-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-entity-header {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb), 0.13), transparent 42%),
        var(--bs-body-bg);
    box-shadow: var(--bs-box-shadow-sm);
}

.history-entity-header-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.history-entity-artwork {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 7rem;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-xl);
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    box-shadow: var(--bs-box-shadow-sm);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.history-entity-artwork--user {
    border-radius: 50%;
}

.history-entity-artwork--world {
    width: 11rem;
    aspect-ratio: 16 / 10;
}

.history-entity-artwork:hover,
.history-entity-artwork:focus-visible {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    box-shadow: var(--bs-box-shadow);
    transform: translateY(-2px);
}

.history-entity-artwork img,
.history-entity-artwork-placeholder {
    width: 100%;
    height: 100%;
}

.history-entity-artwork img {
    object-fit: cover;
}

.history-entity-artwork-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bs-primary-text-emphasis);
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.history-entity-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.history-entity-eyebrow {
    margin: 0 0 0.3rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.history-entity-title-row,
.history-entity-id-row,
.history-entity-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.history-entity-title {
    min-width: 0;
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.1;
}

.history-entity-title a {
    color: inherit;
    text-decoration: none;
}

.history-entity-title a:hover,
.history-entity-title a:focus-visible {
    color: var(--bs-primary);
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.12em;
}

.history-entity-id-row {
    margin-top: 0.8rem;
}

.history-entity-id-row code {
    overflow-wrap: anywhere;
}

.history-entity-description {
    max-width: 48rem;
    margin: 0.9rem 0 0;
    color: var(--bs-secondary-color);
}

.history-entity-actions {
    margin-top: 1rem;
}

@media (max-width: 575.98px) {
    .history-entity-header-body {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
    }

    .history-entity-artwork--world {
        width: min(100%, 16rem);
        height: auto;
    }

    .history-entity-title-row {
        align-items: flex-start;
    }
}

.moderation-identity-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.moderation-identity-role {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.moderation-identity-name {
    max-width: 100%;
    overflow: hidden;
    color: var(--bs-emphasis-color);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.moderation-identity-id,
.moderation-event-reference,
.moderation-note-linked-identity {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.moderation-identity-id code,
.moderation-event-reference code,
.moderation-note-linked-identity code {
    overflow-wrap: anywhere;
}

.moderation-identity-arrow {
    flex: 0 0 auto;
    color: var(--bs-secondary-color);
}

.moderation-event-reference {
    justify-content: flex-end;
}

.moderation-note-feed {
    display: grid;
    gap: 1rem;
}

.moderation-note-card,
.moderation-note-composer {
    border: 1px solid var(--bs-border-color) !important;
    background: var(--bs-body-bg);
}

.moderation-note-avatar {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.1rem;
}

.moderation-note-linked-identity {
    margin-top: 0.2rem;
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
}

.moderation-note-body {
    padding-left: 4.25rem;
    white-space: pre-wrap;
}

.moderation-note-empty {
    border: 1px dashed var(--bs-border-color) !important;
}

.moderation-note-composer {
    position: sticky;
    top: 6.5rem;
}

@media (max-width: 767.98px) {
    .moderation-participant-grid {
        grid-template-columns: 1fr;
    }

    .moderation-event-reference {
        justify-content: flex-start;
    }

    .moderation-note-body {
        padding-left: 0;
    }
}

/* Notification chrome remains structural so every application theme inherits identical behavior. */
.notification-menu-root {
    display: flex;
    align-items: center;
}

.notification-menu-toggle {
    min-width: 2.25rem;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.notification-count {
    min-width: 1.35rem;
    font-size: 0.675rem;
    line-height: 1;
}

.notification-dropdown {
    width: min(25rem, calc(100vw - 1.5rem));
    max-height: min(36rem, calc(100vh - 6rem));
    overflow: hidden auto;
    border-color: var(--bs-border-color-translucent);
    z-index: 1080;
}

.notification-preview {
    overflow: hidden;
    transition: height 180ms ease, opacity 150ms ease, padding 180ms ease, border-width 180ms ease;
}

.notification-preview:hover {
    background: var(--bs-tertiary-bg);
}

.notification-preview-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-preview-title,
.notification-preview-body {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
}

.notification-preview-title {
    -webkit-line-clamp: 2;
}

.notification-preview-body {
    margin: 0.125rem 0 0.2rem;
    -webkit-line-clamp: 2;
}

.notification-preview-dismissing {
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
}

.notification-dismiss-button {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-table-preview {
    max-width: 32rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
}

.notification-detail-shell {
    max-width: 52rem;
}

.notification-detail-card {
    position: relative;
    overflow: hidden;
}

.notification-detail-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.3rem;
    background: var(--bs-primary);
}

.notification-detail-body {
    color: var(--bs-secondary-color);
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    .notification-preview {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .notification-menu-root {
        display: block;
    }

    .notification-menu-toggle {
        justify-content: flex-start;
    }

    .notification-dropdown {
        width: 100%;
    }
}

/* Administrator diagnostics: safely rendered, read-only source payloads. */
.raw-payload-modal-content {
    min-height: min(48rem, 90vh);
}

.raw-payload-eyebrow {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.raw-payload-modal-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.raw-payload-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.raw-payload-viewer {
    flex: 1 1 auto;
    min-height: 24rem;
    max-height: 65vh;
    margin: 0;
    padding: 1.25rem;
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    font-family: var(--bs-font-monospace);
    font-size: 0.875rem;
    line-height: 1.6;
    tab-size: 2;
    white-space: pre;
}

.json-token--key {
    color: #075985;
    font-weight: 600;
}

.json-token--string {
    color: #166534;
}

.json-token--number {
    color: #9a3412;
}

.json-token--boolean,
.json-token--null {
    color: #6d28d9;
    font-weight: 600;
}

.json-token--punctuation {
    color: var(--bs-secondary-color);
}

[data-bs-theme='dark'] .json-token--key {
    color: #7dd3fc;
}

[data-bs-theme='dark'] .json-token--string {
    color: #86efac;
}

[data-bs-theme='dark'] .json-token--number {
    color: #fdba74;
}

[data-bs-theme='dark'] .json-token--boolean,
[data-bs-theme='dark'] .json-token--null {
    color: #c4b5fd;
}

.raw-payload-empty-state {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 18rem;
    padding: 2rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-tertiary-bg);
}

.raw-payload-empty-icon {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.payload-schema-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-tertiary-bg);
}

.payload-schema-summary > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payload-schema-summary strong,
.payload-schema-summary small {
    display: block;
}

.payload-schema-summary small {
    color: var(--bs-secondary-color);
}

.payload-schema-summary-icon {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
}

.payload-field-path {
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .raw-payload-modal-content {
        min-height: 100%;
    }

    .raw-payload-toolbar,
    .raw-payload-empty-state,
    .payload-schema-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .raw-payload-viewer {
        min-height: 16rem;
        max-height: none;
        padding: 1rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 1199.98px) {
    .moderation-note-composer {
        position: static;
    }
}

.integration-provider-icon,
.discord-guild-icon {
    align-items: center;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    display: inline-flex;
    flex: 0 0 auto;
    height: 3.5rem;
    justify-content: center;
    overflow: hidden;
    width: 3.5rem;
}

.integration-provider-icon {
    font-size: 1.5rem;
}

.discord-guild-icon-lg {
    border-radius: 1.25rem;
    height: 4.5rem;
    width: 4.5rem;
}

.discord-guild-icon img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.discord-group-integration {
    overflow: hidden;
}

.discord-group-integration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.discord-group-integration-icon,
.discord-group-integrations-empty-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

.discord-group-integration-icon {
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border-radius: 0.9rem;
    text-decoration: none;
}

.discord-group-integration-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-group-destination {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-body-bg);
}

.discord-group-integrations-empty-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-inline: auto;
    border-radius: 50%;
    font-size: 1.3rem;
}

.discord-group-integrations-empty-copy {
    max-width: 36rem;
}

@media (max-width: 575.98px) {
    .discord-group-integration-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.integration-account-choice {
    cursor: pointer;
}

.linked-account-provider {
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
}

.linked-account-provider-icon {
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
}

.auth-page {
    position: relative;
    min-height: calc(100vh - 5rem);
    overflow: hidden;
}

.auth-page > .container > .alert {
    width: min(68rem, 100%);
    margin: 1rem auto 0;
}

.auth-shell {
    position: relative;
    z-index: 1;
}

.auth-layout {
    display: grid;
    width: 100%;
    max-width: 68rem;
    margin-inline: auto;
    align-items: stretch;
    gap: clamp(1.25rem, 3vw, 2.25rem);
}

.auth-brand-panel,
.auth-card {
    border: 1px solid var(--bs-border-color);
}

.auth-brand-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    min-width: 0;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--bs-body-bg);
}

.auth-hero-picture,
.auth-brand-copy {
    position: relative;
    z-index: 1;
}

.auth-hero-picture {
    align-self: end;
}

.auth-hero-art {
    display: block;
    width: 100%;
    max-height: 13rem;
    margin-inline: auto;
    object-fit: contain;
    object-position: bottom center;
}

.auth-brand-copy {
    min-width: 0;
}

.auth-brand-copy p:last-child,
.auth-intro {
    line-height: 1.65;
}

.auth-brand-eyebrow,
.auth-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-accent {
    position: absolute;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    pointer-events: none;
}

.auth-accent-one {
    top: -4rem;
    right: -3rem;
    width: 10rem;
    height: 10rem;
}

.auth-card {
    align-self: center;
    overflow: hidden;
    border-radius: 1.5rem;
}

.auth-icon {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    font-size: 1.2rem;
}

.auth-card .form-control,
.auth-card .form-select {
    min-height: 3.1rem;
}

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

.auth-secondary-actions .btn {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.auth-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}

@media (min-width: 992px) {
    .auth-layout {
        grid-template-columns: minmax(20rem, 0.92fr) minmax(25rem, 1.08fr);
    }

    .auth-brand-panel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .auth-hero-art {
        width: min(100%, 20rem);
        max-height: 25rem;
    }
}

@media (max-width: 575.98px) {
    .auth-brand-panel {
        grid-template-columns: 6.5rem minmax(0, 1fr);
    }

    .auth-brand-copy h2 {
        font-size: 1.1rem;
    }

    .auth-brand-copy p:last-child {
        display: none;
    }

    .auth-secondary-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

.legal-document-header {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    overflow: hidden;
}

.legal-document-art {
    display: block;
    width: 8rem;
    height: 10rem;
    object-fit: contain;
}

.legal-document-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-document-layout {
    display: grid;
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    align-items: start;
    gap: 1.5rem;
}

.legal-document-nav .nav-link {
    color: var(--bs-secondary-color);
}

.legal-document {
    min-width: 0;
}

.legal-document section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 1rem;
}

.legal-document h2 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.legal-document h3 {
    margin-top: 1.25rem;
    font-size: 1.05rem;
}

.legal-document p,
.legal-document li {
    line-height: 1.75;
}

.legal-document li + li {
    margin-top: 0.45rem;
}

.legal-acceptance {
    display: grid;
    width: 100%;
    max-width: 58rem;
    margin: clamp(1rem, 5vw, 3rem) auto;
    overflow: hidden;
}

.legal-acceptance-art {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem 1.5rem 0;
}

.legal-acceptance-art img {
    display: block;
    width: 10rem;
    height: 12.5rem;
    object-fit: contain;
}

@media (min-width: 768px) {
    .legal-acceptance {
        grid-template-columns: 13rem minmax(0, 1fr);
        align-items: stretch;
    }

    .legal-acceptance-art {
        padding: 2rem 1rem 0;
    }
}

@media (min-width: 992px) {
    .legal-document-layout {
        grid-template-columns: 15rem minmax(0, 1fr);
    }

    .legal-document-nav {
        position: sticky;
        top: 1rem;
    }
}

.email-preview-stage {
    position: relative;
    width: 100%;
    min-height: 30rem;
    aspect-ratio: 4 / 3;
    background: var(--bs-tertiary-bg);
}

.email-preview-stage[data-email-preview-stage='dark'] { background: #08111f; }
.email-preview-stage[data-email-preview-stage='light'] { background: #eef3f8; }
.email-preview-loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.email-preview-loading[hidden] { display: none; }
.email-preview-frame { opacity: 0; transition: opacity 150ms ease-in; }
.email-preview-frame.is-ready { opacity: 1; }
.email-plain-text-preview { min-height: 30rem; max-height: 46rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--bs-body-color); background: var(--bs-tertiary-bg); }

:root {
    --admin-sidebar-width: 320px;
    --admin-shell-gap: 1.5rem;
}

.admin-offcanvas {
    --bs-offcanvas-width: var(--admin-sidebar-width);
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-pinned-sidebar {
    display: none;
}

.admin-pinned-sidebar-inner {
    height: 100%;
    padding: 1.5rem 0 1.5rem 1.5rem;
}

.admin-pin-toggle {
    display: inline-flex;
    align-items: center;
}

.admin-pin-toggle i {
    transform: rotate(45deg);
}

html[data-admin-sidebar-pinned='false'] .admin-pin-toggle i {
    transform: none;
}

.admin-nav-section + .admin-nav-section {
    margin-top: 1.5rem;
}

.admin-nav-label {
    margin-bottom: 0.75rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.875rem;
    padding: 0.75rem 0.9rem;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    transform: translateX(2px);
}

.admin-nav-link.active {
    background-color: rgba(var(--bs-primary-rgb), 0.14);
    color: var(--bs-primary-text-emphasis);
    font-weight: 600;
}

.admin-sidebar-card {
    background:
        linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.05), transparent 24%),
        var(--bs-body-bg);
}

.admin-sidebar-badge,
.admin-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    font-size: 1.1rem;
}

.admin-dashboard-hero {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb), 0.16), transparent 32rem),
        linear-gradient(135deg, var(--bs-tertiary-bg), rgba(var(--bs-primary-rgb), 0.05));
}

.admin-dashboard-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bs-box-shadow) !important;
}

.admin-dashboard-card .card-body {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 1rem;
}

.admin-dashboard-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Shared VRChat user profile layout. Theme-specific color and surface choices
 * live in styles/themes/lumi.css so this view remains usable with Bootstrap
 * alone or with a future application theme. */
.vrc-user-profile {
    width: 100%;
    max-width: 78rem;
    margin-inline: auto;
    padding-block: 1rem 3rem;
}

.vrc-user-profile-back {
    margin-bottom: 1rem;
}

.vrc-user-hero {
    overflow: hidden;
}

.vrc-user-hero-body {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.5rem, 5vw, 3.25rem);
}

.vrc-user-portrait-wrap {
    position: relative;
    width: min(100%, 15rem);
    margin-inline: auto;
}

.vrc-user-portrait,
.vrc-user-portrait-placeholder {
    display: flex;
    width: 100%;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border-radius: 1.75rem;
}

.vrc-user-portrait {
    object-fit: cover;
}

.vrc-user-portrait-placeholder {
    font-size: clamp(3rem, 12vw, 5rem);
}

.vrc-user-identity {
    min-width: 0;
}

.vrc-user-eyebrow,
.vrc-user-section-kicker {
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.vrc-user-title-row,
.vrc-user-state-row,
.vrc-user-id-row,
.vrc-user-hero-actions,
.vrc-user-last-updated {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.vrc-user-title-row {
    gap: 0.75rem;
}

.vrc-user-title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.04;
}

.vrc-user-state-row {
    gap: 0.5rem;
    margin-top: 1rem;
}

.vrc-user-id-row {
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.vrc-user-id-row code {
    min-width: 0;
    overflow-wrap: anywhere;
}

.vrc-user-status-description {
    max-width: 48rem;
    margin-top: 1rem;
    font-size: 1.05rem;
}

.vrc-user-hero-actions {
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.vrc-user-last-updated {
    gap: 0.4rem;
    margin-top: 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.825rem;
}

.vrc-user-last-updated time {
    display: inline-flex;
    gap: 0.35rem;
    align-items: baseline;
}

.vrc-user-last-updated time br {
    display: none;
}

.vrc-user-metrics {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vrc-user-metric-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    color: inherit;
    background: var(--bs-body-bg);
    text-decoration: none;
}

.vrc-user-metric-card strong,
.vrc-user-metric-card small {
    display: block;
}

.vrc-user-metric-card strong {
    font-size: 1.45rem;
    line-height: 1.15;
}

.vrc-user-metric-card small {
    margin-top: 0.2rem;
    color: var(--bs-secondary-color);
}

.vrc-user-metric-icon,
.vrc-user-section-icon,
.vrc-user-empty-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
}

.vrc-user-metric-icon {
    width: 3rem;
    height: 3rem;
}

.vrc-user-metric-arrow {
    color: var(--bs-secondary-color);
}

.vrc-user-section-heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.vrc-user-section-icon,
.vrc-user-empty-icon {
    width: 2.75rem;
    height: 2.75rem;
}

.vrc-user-bio {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.vrc-user-bio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.vrc-user-detail-list > div,
.vrc-user-membership-details > div {
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.vrc-user-detail-list > div:first-child,
.vrc-user-membership-details > div:first-child {
    padding-top: 0;
}

.vrc-user-detail-list > div:last-child,
.vrc-user-membership-details > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vrc-user-detail-list dt,
.vrc-user-membership-details dt {
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.vrc-user-detail-list dd,
.vrc-user-membership-details dd {
    margin-bottom: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.vrc-user-avatar-tags {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}

.vrc-user-membership-layout {
    display: grid;
    gap: 1.5rem;
}

.vrc-user-empty-state {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.vrc-user-avatar-card {
    display: grid;
    overflow: hidden;
}

.vrc-user-avatar-card > img {
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
}

.vrc-user-badges-section {
    scroll-margin-top: 2rem;
}

.vrc-user-badges-heading {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.vrc-user-badge-grid {
    display: grid;
    gap: 1rem;
}

.vrc-user-badge-card {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
}

.vrc-user-badge-image-wrap,
.vrc-user-badge-placeholder {
    display: flex;
    min-height: 8rem;
    align-items: center;
    justify-content: center;
}

.vrc-user-badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vrc-user-badge-placeholder {
    font-size: 2rem;
}

.vrc-user-badge-card .card-title,
.vrc-user-badge-card .card-text {
    overflow-wrap: anywhere;
}

.vrc-user-badge-state {
    min-height: 1.5rem;
    margin-top: 0.85rem;
}

@media (min-width: 768px) {
    .vrc-user-hero-body {
        grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
    }

    .vrc-user-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vrc-user-membership-layout {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.8fr);
    }

    .vrc-user-avatar-card {
        grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
        align-items: center;
    }

    .vrc-user-avatar-card > img {
        height: 100%;
        max-height: none;
    }

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

@media (min-width: 1200px) {
    .vrc-user-badge-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .vrc-user-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .vrc-user-hero-actions .btn {
        width: 100%;
    }

    .vrc-user-detail-list > div,
    .vrc-user-membership-details > div {
        flex-direction: column;
        gap: 0.25rem;
    }

    .vrc-user-detail-list dd,
    .vrc-user-membership-details dd {
        text-align: left;
    }
}

@media (min-width: 992px) {
    html[data-admin-sidebar-pinned='true'] .admin-nav-trigger {
        display: none !important;
    }

    html[data-admin-sidebar-pinned='true'] .app-shell-admin {
        display: flex;
        align-items: flex-start;
        gap: var(--admin-shell-gap);
    }

    html[data-admin-sidebar-pinned='true'] .admin-pinned-sidebar {
        display: block;
        flex: 0 0 var(--admin-sidebar-width);
        width: var(--admin-sidebar-width);
    }

    html[data-admin-sidebar-pinned='true'] .admin-pinned-sidebar-inner {
        position: sticky;
        top: 0;
        min-height: calc(100vh - 1px);
    }

    html[data-admin-sidebar-pinned='true'] .admin-offcanvas {
        display: none;
    }
}
/* KnpPaginator supplies sortable/asc/desc classes; the shared template turns them into consistent controls. */
.table thead a.sortable,
.table thead a.asc,
.table thead a.desc {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding-block: 0.125rem;
    color: inherit;
    text-decoration: none;
}

.table thead a.sortable:hover,
.table thead a.asc:hover,
.table thead a.desc:hover {
    color: var(--bs-link-hover-color);
}

.table thead a.sortable:focus-visible,
.table thead a.asc:focus-visible,
.table thead a.desc:focus-visible {
    border-radius: 0.25rem;
    outline: 0.125rem solid var(--bs-focus-ring-color);
    outline-offset: 0.1875rem;
}

.table-sort-indicator {
    display: inline-flex;
    width: 0.75rem;
    flex: 0 0 0.75rem;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
}

.table thead a.sortable:hover .table-sort-indicator,
.table thead a.sortable:focus-visible .table-sort-indicator {
    opacity: 0.7;
}

.table thead a.asc .table-sort-indicator,
.table thead a.desc .table-sort-indicator {
    color: var(--bs-primary);
    opacity: 1;
}

/* Progressively enhanced filtered tables keep their native submit controls for no-JS and manual mode. */
.js [data-filtered-table-mode="realtime"] [data-filtered-table-fallback-submit] {
    display: none !important;
}

.filtered-table-results > :not([data-filtered-table-busy]) {
    transition: opacity 120ms ease-in-out;
}

.filtered-table-results.is-loading > :not([data-filtered-table-busy]) {
    opacity: 0.55;
}

/* Refresh controls stay outside replaceable results and form one compact, responsive toolbar. */
.view-refresh-control {
    display: flex;
    align-items: center;
    gap: 0.625rem 1rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.875rem;
    background: var(--bs-tertiary-bg);
    box-shadow: 0 0.125rem 0.375rem rgba(var(--bs-body-color-rgb), 0.06);
}

.view-refresh-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    flex: 0 0 auto;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 999px;
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.view-refresh-preference-form {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 0.5rem;
    min-width: 0;
}

.view-refresh-preference-label {
    margin: 0 0 0 auto;
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.view-refresh-preference-input {
    display: flex;
    flex: 0 1 20rem;
    gap: 0.5rem;
    min-width: 13rem;
}

.view-refresh-preference-input .form-select {
    min-width: 0;
}

.view-refresh-preference-feedback {
    flex: 0 0 auto;
    font-weight: 600;
    white-space: nowrap;
}

.view-refresh-preference-feedback:empty {
    display: none;
}

.js [data-view-refresh-preference-form] [data-view-refresh-preference-submit] {
    display: none !important;
}

.view-refresh-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--bs-success);
}

.view-refresh-status[data-view-refresh-state='checking'] .view-refresh-status-dot {
    background: var(--bs-info);
    animation: view-refresh-pulse 1s ease-in-out infinite;
}

.view-refresh-status[data-view-refresh-state='paused'] .view-refresh-status-dot,
.view-refresh-status[data-view-refresh-state='disabled'] .view-refresh-status-dot {
    background: var(--bs-secondary);
}

.view-refresh-status[data-view-refresh-state='warning'] .view-refresh-status-dot {
    background: var(--bs-warning);
}

@keyframes view-refresh-pulse {
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .view-refresh-status-dot {
        animation: none !important;
    }
}

@media (max-width: 767.98px) {
    .view-refresh-control {
        align-items: stretch;
        flex-direction: column;
        gap: 0.625rem;
    }

    .view-refresh-preference-form {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.375rem 0.625rem;
        width: 100%;
    }

    .view-refresh-preference-label {
        align-self: center;
        margin: 0;
    }

    .view-refresh-preference-input {
        min-width: 0;
        width: 100%;
    }

    .view-refresh-preference-feedback {
        grid-column: 2;
    }
}
.vrc-live-instance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
    gap: 1.25rem;
}
.vrc-live-instance-grid--empty { grid-template-columns: minmax(0, 1fr); }

.vrc-live-instance-card { width: 100%; max-width: 32rem; justify-self: center; overflow: hidden; box-shadow: var(--bs-box-shadow-sm); }
.vrc-live-instance-image { position: relative; aspect-ratio: 16 / 7; background: var(--bs-tertiary-bg); display: grid; place-items: center; color: var(--bs-secondary-color); font-size: 2.5rem; }
.vrc-live-instance-art { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; color: inherit; }
.vrc-live-instance-art:focus-visible { outline: .2rem solid rgba(var(--bs-primary-rgb), .55); outline-offset: -.2rem; }
.vrc-live-instance-image img { width: 100%; height: 100%; object-fit: cover; }
.vrc-live-instance-image > .badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .4rem .6rem;
    font-size: .75rem;
}
.vrc-live-instance-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5rem; }
.vrc-live-instance-world-title { color: inherit; text-decoration: none; }
.vrc-live-instance-world-title:hover, .vrc-live-instance-world-title:focus-visible { color: var(--bs-primary); text-decoration: underline; text-underline-offset: .18em; }
.vrc-live-instance-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.vrc-live-instance-metrics > span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 .5rem; }
.vrc-live-instance-metrics i { grid-row: 1 / 3; color: var(--bs-primary); }
.vrc-live-instance-metrics strong, .vrc-live-instance-metrics small { line-height: 1.15; }
.vrc-live-instance-metrics small { color: var(--bs-secondary-color); }
.vrc-live-instance-creator { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; margin-bottom: 1rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: var(--bs-tertiary-bg); }
.vrc-live-instance-creator-avatar { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: 50%; color: var(--bs-secondary-color); background: var(--bs-body-bg); }
.vrc-live-instance-creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vrc-live-instance-creator-label, .vrc-live-instance-creator-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrc-live-instance-creator-label { color: var(--bs-secondary-color); font-size: .72rem; font-weight: 700; letter-spacing: .055em; line-height: 1.1; text-transform: uppercase; }
.vrc-live-instance-creator-name { margin-top: .15rem; color: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; }
a.vrc-live-instance-creator-name:hover, a.vrc-live-instance-creator-name:focus-visible { color: var(--bs-primary); text-decoration: underline; text-underline-offset: .15em; }
.vrc-live-instance-empty { grid-column: 1 / -1; }
.vrc-instance-id-cell { min-width: 9rem; }
.vrc-instance-short-id { font-size: .8rem; }
