@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 100 700;
    src: url("../fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 100 700;
    src: url("../fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Sans Condensed";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/ibm-plex-sans-condensed-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Sans Condensed";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Sans Condensed";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/ibm-plex-sans-condensed-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Sans Condensed";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;
    --bg: #0b0b0e;
    --surface: #121217;
    --surface-raised: #1a1a21;
    --surface-soft: #22222b;
    --text: #f7f7fa;
    --text-muted: #a7a7b3;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #ff3150;
    --accent-hover: #ff5470;
    --focus: #75baff;
    --success: #4bd39a;
    --danger: #ff405c;
    --player-accent: #ff3150;
    --player-accent-hover: #ff5470;
    --player-accent-gradient: linear-gradient(135deg, #ff3150 0%, #e91f42 100%);
    --player-accent-glow: rgba(255, 49, 80, 0.34);
    --player-control-surface: rgba(11, 11, 14, 0.88);
    --player-menu-surface: rgba(18, 18, 23, 0.97);
    --player-focus: #75baff;
    --shell: 90rem;
    --radius-sm: 0.5rem;
    --radius: 0.875rem;
    --radius-lg: 1.25rem;
    --shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.28);
    --header-height: 4.5rem;
    --font-ui: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
    --space-1: 0.375rem;
    --space-2: 0.625rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 5rem;
}

[hidden] {
    display: none !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 70% -10%, rgba(255, 49, 80, 0.09), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.viewer-open,
body.dialog-open {
    overflow: hidden;
}

.impersonation-banner { position: sticky; z-index: 1100; top: 0; border-bottom: 1px solid #e2a83b; background: #2b1b05; color: #fff3d2; }
.impersonation-banner > div { min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.impersonation-banner form { margin: 0; }
.impersonation-banner button { padding: 0.45rem 0.75rem; border: 1px solid #d69b2f; border-radius: 0.4rem; background: #f0b84a; color: #211400; font-weight: 800; }
@media (max-width: 42rem) { .impersonation-banner > div { padding-block: 0.45rem; font-size: 0.78rem; } .impersonation-banner button { font-size: 0.72rem; } }

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

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 0.1875rem solid var(--focus);
    outline-offset: 0.1875rem;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: var(--space-3);
    left: var(--space-3);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--bg);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.shell {
    width: min(100% - 2rem, var(--shell));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 900;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 11, 14, 0.88);
    -webkit-backdrop-filter: blur(1rem);
    backdrop-filter: blur(1rem);
}

.site-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.brand__logo {
    display: block;
    width: clamp(9rem, 13vw, 11.75rem);
    height: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.primary-nav__link {
    position: relative;
    overflow: hidden;
    padding: 0.65rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.7rem 0.7rem 0.7rem 0.38rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.primary-nav__link::after {
    position: absolute;
    right: 0.72rem;
    bottom: 0.3rem;
    left: 0.72rem;
    height: 0.11rem;
    border-radius: 99rem;
    background: var(--accent);
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: left center;
    transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav__link:hover,
.primary-nav__link.is-active {
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--surface-raised);
    color: var(--text);
}

.primary-nav__link:hover { transform: translateY(-0.08rem); }
.primary-nav__link:hover::after,
.primary-nav__link.is-active::after { opacity: 1; transform: scaleX(1); }

.site-search {
    position: relative;
    min-width: 12rem;
    max-width: 25rem;
    display: flex;
    flex: 1;
    margin-left: auto;
}

.search-suggestions {
    position: absolute;
    z-index: 160;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.48);
}

.search-suggestions[hidden] { display: none; }
.search-suggestions__group + .search-suggestions__group { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--line); }
.search-suggestions__heading { display: block; padding: 0.4rem 0.55rem 0.25rem; color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; }
.search-suggestions__option { display: flex; align-items: center; gap: 0.6rem; min-height: 2.7rem; padding: 0.45rem 0.55rem; border-radius: 0.45rem; color: var(--text); font-size: 0.86rem; }
.search-suggestions__option:hover,
.search-suggestions__option.is-active { background: var(--surface-soft); color: #fff; }
.search-suggestions__mark { display: grid; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; background: rgba(255, 49, 80, 0.14); color: var(--accent); font-size: 0.7rem; font-weight: 800; }
.search-suggestions__empty { margin: 0; padding: 0.8rem 0.6rem; color: var(--text-muted); font-size: 0.85rem; }
.site-search .search-suggestions__all,
.site-search .search-suggestions__clear { width: 100%; min-height: 2.5rem; height: auto; margin-top: 0.3rem; padding: 0.55rem; border: 0; border-radius: 0.45rem; background: var(--surface-soft); color: var(--text); font-size: 0.8rem; font-weight: 700; }
.site-search .search-suggestions__clear { background: transparent; color: var(--text-muted); }

.site-search input {
    min-width: 0;
    width: 100%;
    height: 2.75rem;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--surface);
}

.site-search button {
    height: 2.75rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-soft);
    font-size: 0.85rem;
    font-weight: 700;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu .account-identity { position: relative; padding-right: 1.35rem; }
.account-menu .account-identity > .nav-count { position: absolute; top: -0.4rem; right: -0.4rem; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu__panel {
    position: absolute;
    z-index: 170;
    top: calc(100% + 0.55rem);
    right: 0;
    width: 14rem;
    display: grid;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}
.account-menu__panel a,
.account-menu__panel button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 650;
}
.account-menu__panel a:hover,
.account-menu__panel button:hover { background: var(--surface-soft); color: var(--text); }
.account-menu__panel .account-menu__logout { margin-top: 0.3rem; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/*
 * Favoriting and logging out change state, so they are forms with submit
 * buttons rather than links. The wrappers are layout-neutral: the logout forms
 * hand their button straight to the menu that used to hold an anchor, and the
 * favorite form is an empty block whose button positions against the card, as
 * the anchor did.
 */
.logout-form {
    display: contents;
}

.favorite-form {
    margin: 0;
}

.account-menu__panel button,
.mobile-nav-account__power,
.media-card__save {
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* Each already carries its own background further down; only the button chrome
   the browser adds needs clearing. */
.account-menu__panel button,
.mobile-nav-account__power {
    background: none;
}

.account-menu__panel button {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    text-align: left;
}


.account-identity {
    min-width: 0;
    max-width: 10rem;
    display: grid;
    gap: 0.08rem;
    padding: 0.38rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    line-height: 1.1;
}

.account-identity:hover,
.account-identity:focus-visible {
    border-color: var(--accent);
    background: var(--surface-raised);
}

.account-identity__label {
    color: var(--text-muted);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-identity__name {
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-header-actions,
.mobile-nav-account,
.mobile-nav-language,
.nav-backdrop {
    display: none;
}

.language-switcher {
    position: relative;
    flex: none;
}

.language-switcher summary {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

/* Sized from the type beside it, so the pair stays a unit at any scale. */
.language-switcher__globe {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

.language-switcher__menu {
    position: absolute;
    z-index: 125;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 6rem;
    display: grid;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.language-switcher__menu a {
    padding: 0.55rem 0.7rem;
    border-radius: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.language-switcher__menu a:hover,
.language-switcher__menu a.is-active {
    background: var(--surface-soft);
    color: var(--text);
}

.button,
.icon-button {
    position: relative;
    overflow: hidden;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    font-weight: 700;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.button {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.button--primary,
.button--primary:link,
.button--primary:visited {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, var(--accent), #e92849);
    box-shadow: 0 0.5rem 1.25rem rgba(255, 49, 80, 0.16), inset 0 1px rgba(255, 255, 255, 0.14);
    color: #09090b !important;
    -webkit-text-fill-color: #09090b;
}

.button--primary:hover,
.button--primary:focus-visible,
.button--primary:active {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    box-shadow: 0 0.65rem 1.5rem rgba(255, 49, 80, 0.23), inset 0 1px rgba(255, 255, 255, 0.18);
    color: #09090b !important;
    -webkit-text-fill-color: #09090b;
    transform: translateY(-0.08rem);
}

.button--primary > * {
    color: inherit;
}

.button--quiet {
    border-color: var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    color: var(--text-muted);
}

.button--danger,
.button--danger:link,
.button--danger:visited {
    border-color: var(--danger);
    background: transparent;
    color: var(--danger) !important;
    -webkit-text-fill-color: var(--danger);
}

.button--danger:hover,
.button--danger:focus-visible,
.button--danger:active {
    background: var(--danger);
    color: #09090b !important;
    -webkit-text-fill-color: #09090b;
}

.button--danger[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.button--quiet:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
}

.button--large {
    min-height: 3.25rem;
    padding-inline: 1.5rem;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    padding: 0;
    border-color: var(--line);
    background: var(--surface);
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
    width: 1.15rem;
    height: 0.125rem;
    display: block;
    background: currentColor;
    transition: transform 160ms ease;
}

.nav-toggle__lines {
    position: relative;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
    position: absolute;
    left: 0;
    content: "";
}

.nav-toggle__lines::before { transform: translateY(-0.35rem); }
.nav-toggle__lines::after { transform: translateY(0.35rem); }

.site-frame {
    min-height: calc(100vh - var(--header-height));
}

.site-main {
    padding-block: var(--space-5) var(--space-4);
}

.content-section {
    margin-top: var(--space-6);
}

.content-section--listing {
    margin-top: var(--space-3);
}

.discovery-strip {
    display: flex;
    gap: 0.55rem;
    margin-top: calc(var(--space-2) * -1);
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.discovery-strip + .content-section {
    margin-top: var(--space-4);
}

.discovery-strip a {
    flex: none;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 99rem;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.discovery-strip a:hover,
.discovery-strip a.is-active {
    border-color: rgba(255, 49, 80, 0.45);
    background: rgba(255, 49, 80, 0.12);
    color: var(--text);
}

.section-heading,
.media-heading {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.category-intro {
    max-width: 58rem;
    margin: calc(var(--space-2) * -1) 0 var(--space-4);
    padding: 0.8rem 1rem;
    border-left: 3px solid rgba(255, 49, 80, 0.65);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: linear-gradient(90deg, rgba(255, 49, 80, 0.08), transparent);
    color: var(--text-muted);
}

.category-intro p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
}

.listing-filters {
    position: relative;
    flex: none;
}

.listing-filters summary {
    list-style: none;
}

.listing-filters summary::-webkit-details-marker {
    display: none;
}

.filter-count {
    min-width: 1.25rem;
    height: 1.25rem;
    display: inline-grid;
    place-items: center;
    margin-left: 0.35rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
}

.listing-filters__panel {
    position: absolute;
    z-index: 25;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(22rem, calc(100vw - 1.25rem));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.listing-filters__panel > div {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.listing-filters__panel strong {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.listing-filters__panel a {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 650;
}

.listing-filters__panel a:hover,
.listing-filters__panel a.is-active {
    background: rgba(255, 49, 80, 0.12);
    color: var(--text);
}

.section-heading h1,
.section-heading h2,
.media-heading h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.media-heading h1 {
    max-width: 50rem;
    font-size: clamp(1.75rem, 4vw, 3rem);
}

/*
 * Compact: a control that sits beside a name rather than acting on the page.
 * At the default size it measured 80 by 45 next to a byline block of 139 by
 * 42 -- as tall as the uploader's whole avatar-and-name block, and filled, so
 * it was the loudest thing under the title.
 *
 * It keeps the accent, as an outline rather than a fill, so it still reads as
 * the one thing here you can do.
 */
.follow-control--compact .button {
    min-height: 0;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.follow-control--compact .button--primary,
.follow-control--compact .button--primary:link,
.follow-control--compact .button--primary:visited {
    border-color: var(--accent);
    background: transparent;
    color: var(--accent) !important;
    -webkit-text-fill-color: var(--accent);
}

.follow-control--compact .button--primary:hover,
.follow-control--compact .button--primary:focus-visible {
    background: var(--accent);
    color: #09090b !important;
    -webkit-text-fill-color: #09090b;
}

.profile-following {
    margin-top: var(--space-5);
}

.profile-following h2 small {
    color: var(--text-muted);
    font-size: 0.6em;
    font-variant-numeric: tabular-nums;
}

.following-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.following-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.following-list__item a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
}

.following-list__avatar {
    flex: 0 0 3rem;
    width: 3rem;
    height: 2.35rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    background: var(--surface-raised);
}

.following-list__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.following-list__identity {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.following-list__item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.following-list__item small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* The card is a link with a control after it, so the control needs its own
   room rather than sitting on top of the link's padding. */
.person-card .follow-control {
    padding: 0 var(--space-3) var(--space-3);
}

.person-card .follow-control .button {
    width: 100%;
    justify-content: center;
}

.profile-following .empty-state {
    padding: var(--space-4);
}

.follow-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.follow-control__count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.follow-control [aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

/*
 * The byline and its follow, on one line together.
 *
 * The control used to be an inline sibling of an inline-grid link, which put
 * it on the last baseline of a two-line block -- level with the username and
 * touching it. It is centred against the whole block now, with room.
 */
.media-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.media-author {
    width: fit-content;
    display: inline-grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-top: var(--space-3);
    color: var(--text);
}

/* The row owns the spacing above once it is doing the laying out. */
.media-author-row .media-author {
    margin-top: 0;
}

.media-author__image {
    width: 3.25rem;
    max-height: 4.75rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.media-author__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 4.75rem;
    object-fit: contain;
}

.media-author__copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.media-author__copy span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.media-author__copy strong {
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eyebrow {
    margin: 0 0 var(--space-1);
    color: var(--accent-hover);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.muted,
.media-heading__stats,
.media-card__meta {
    color: var(--text-muted);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.media-grid__ad-island {
    position: relative;
    min-width: 0;
    min-height: 16.125rem;
    display: grid;
    grid-column: span 1;
    place-content: center;
    contain: paint;
    isolation: isolate;
    overflow: hidden;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 49, 80, 0.05), transparent 15rem),
        var(--surface);
}

.media-grid__ad-frame {
    position: relative;
    z-index: 0;
    width: 18.75rem;
    max-width: 100%;
    min-height: 15.625rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: transparent !important;
}

.media-grid__ad-frame iframe,
.media-grid__ad-frame object,
.media-grid__ad-frame embed,
.media-grid__ad-frame ins {
    position: static !important;
    z-index: auto !important;
    max-width: 100% !important;
    border: 0;
    background: transparent !important;
}

.media-card {
    position: relative;
    min-width: 0;
}

.media-card__link {
    display: block;
}

.media-card__visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transform: translateZ(0);
}

.media-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease, filter 280ms ease;
}

.media-card__history-progress {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.28rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.media-card__history-progress span {
    display: block;
    height: 100%;
    border-radius: 0 999px 999px 0;
    background: var(--accent);
}

.media-card__history-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 49, 80, 0.16), transparent 4rem),
        var(--surface);
}

.content-section--history[hidden] {
    display: none;
}

.media-card__visual.has-image-error {
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 49, 80, 0.14), transparent 4rem),
        var(--surface);
}

.media-card__visual.has-image-error::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    content: "×";
    font-size: 1.5rem;
}

.media-card__link:hover .media-card__visual img {
    filter: brightness(1.08);
    transform: scale(1.035);
}

/*
 * Hover preview.
 *
 * The frame layer sits on top of the poster rather than replacing its src, so
 * a frame that never arrives leaves the poster visible underneath instead of
 * an empty box. Only the layer fades; the poster is never removed.
 */
/* Specific enough to beat `.media-card__visual img`, which would otherwise
   impose its transform transition and drop the fade. */
.media-card__visual img.media-card__preview {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 200ms ease;
}

.media-card.is-previewing .media-card__visual img.media-card__preview {
    opacity: 1;
}

/* Badges sit above the frame layer; the save button already does, at 3. */
.media-card__duration,
.media-card__badge {
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .media-card__visual img.media-card__preview { transition: none; }
}

.media-card__duration,
.media-card__badge {
    position: absolute;
    z-index: 1;
    top: var(--space-2);
    padding: 0.25rem 0.45rem;
    border-radius: 0.35rem;
    background: rgba(5, 5, 7, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
}

.media-card__badge { left: var(--space-2); }
.media-card__duration { top: auto; right: var(--space-2); bottom: var(--space-2); }

.media-card__play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.media-card__play::after {
    position: absolute;
    top: 50%;
    left: 53%;
    border-width: 0.42rem 0 0.42rem 0.68rem;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg);
    content: "";
    transform: translate(-50%, -50%);
}

.media-card__link:hover .media-card__play {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* The play glyph is a promise the preview is already keeping. Placed after the
   hover rule it has to override, which carries the same specificity. */
.media-card.is-previewing .media-card__play {
    opacity: 0;
}

.media-card__body {
    padding: 0.8rem 0.15rem 0;
}

.media-card__save {
    position: absolute;
    z-index: 3;
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(8, 8, 11, 0.76);
    opacity: 0;
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
    transition: opacity 160ms ease, background 160ms ease;
}

.media-card__save svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.7;
    transition: fill 160ms ease, stroke 160ms ease;
}

.media-card__save.is-saved {
    border-color: rgba(255, 49, 80, 0.65);
    background: rgba(255, 49, 80, 0.9);
    opacity: 1;
}

.media-card__save.is-saved svg {
    fill: currentColor;
    stroke: currentColor;
}

.media-actions [data-favorite-action].is-saved,
.media-engagement [data-favorite-action].is-saved {
    border-color: rgba(255, 49, 80, 0.55);
    background: rgba(255, 49, 80, 0.14);
    color: var(--text);
}

.media-actions [data-favorite-action].is-saved .action-icon,
.media-engagement [data-favorite-action].is-saved .action-icon {
    fill: var(--accent);
}

.media-card:hover .media-card__save,
.media-card__save:focus-visible {
    opacity: 1;
}

.media-card__save:hover {
    background: var(--accent);
}

.media-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.media-card__meta {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-1);
    font-size: 0.78rem;
}

.media-stage,
.gallery-stage {
    position: relative;
    z-index: 0;
    contain: paint;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: var(--shadow);
}

.media-stage {
    width: min(100%, 82rem);
    margin-inline: auto;
}

.up-next {
    position: absolute;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(4, 4, 6, 0.92);
    -webkit-backdrop-filter: blur(0.75rem);
    backdrop-filter: blur(0.75rem);
}

.up-next[hidden] {
    display: none;
}

.up-next__card {
    width: min(100%, 46rem);
    display: grid;
    grid-template-columns: minmax(12rem, 1.15fr) minmax(14rem, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.up-next__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.up-next__body h2 {
    margin: var(--space-2) 0 var(--space-4);
    font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.up-next__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.up-next__close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 40rem) {
    .up-next {
        place-items: center;
        padding: 0.75rem 3.5rem 0.75rem 0.9rem;
    }

    .up-next__card {
        width: min(100%, 25rem);
        grid-template-columns: 1fr;
        gap: 0;
    }

    .up-next__image {
        display: none;
    }

    .up-next__body h2 {
        display: -webkit-box;
        margin: 0.25rem 0 0.75rem;
        overflow: hidden;
        font-size: clamp(1.05rem, 5vw, 1.4rem);
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .up-next__close {
        top: 0.65rem;
        right: 0.65rem;
        width: 2.35rem;
        height: 2.35rem;
    }
}

.player-shell {
    position: relative;
    min-height: min(70vh, 50rem);
}

.player-shell > * {
    max-width: 100%;
}

.player-shell .media__inner {
    width: 100%;
}

/*
 * Third-party embeds use percentage dimensions, but an iframe percentage
 * height needs a definite containing block. Without one browsers fall back to
 * the iframe default of 150px and flatten an otherwise healthy provider
 * player. Keep this isolated from native Video.js/Fluidplayer markup.
 */
.player-shell--external-embed {
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.player-shell--external-embed > iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.access-gate {
    min-height: 28rem;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: var(--space-5);
    text-align: center;
}

.access-gate h2 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.access-gate p:not(.eyebrow) {
    max-width: 32rem;
    color: var(--text-muted);
}

/*
 * Two columns above 70rem: the meta block and everything below it share the
 * left column while the rail runs beside both, which is what puts related
 * content next to the player instead of below the fold. One column under that,
 * ordered main -> rail -> extra, so related still lands before the comments.
 */
.media-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    grid-template-areas:
        "main rail"
        "extra rail";
    /*
     * The rail spans both rows and is far taller than either, so its height gets
     * distributed across the rows it spans and opens a gap under the
     * description. Sizing the first row to its own content and letting the
     * second absorb the remainder keeps the left column continuous. Measured,
     * not assumed: with "min-content auto" the first row still came out at
     * 791px for 399px of content.
     */
    grid-template-rows: min-content 1fr;
    align-items: start;
    gap: 0 clamp(2rem, 4vw, 4rem);
    margin-top: var(--space-5);
}

.media-layout__main {
    grid-area: main;
    min-width: 0;
}

.media-layout__rail {
    grid-area: rail;
    min-width: 0;
    display: grid;
    align-content: start;
    gap: var(--space-4);
}

.media-layout__extra {
    grid-area: extra;
    min-width: 0;
}

/*
 * Compact rows, desktop only. Narrower than 70rem the rail is a full-width
 * block and related keeps the grid it has always had there.
 */
@media (min-width: 70.01rem) {
    .media-rail__list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-3);
    }

    .media-rail__list .media-card__link {
        display: grid;
        grid-template-columns: 8rem minmax(0, 1fr);
        gap: 0.65rem;
        align-items: start;
    }

    .media-rail__list .media-card__body {
        padding: 0;
    }

    /*
     * The save button sits at the end of the row, so only the line beside it
     * reserves room. Reserving it on the whole body cost the title a fifth of
     * its width and truncated most of them mid-word.
     */
    .media-rail__list .media-card__meta {
        padding-right: 2rem;
    }

    .media-rail__list .media-card__title {
        font-size: 0.87rem;
        line-height: 1.3;
    }

    .media-rail__list .media-card__meta {
        font-size: 0.72rem;
    }

    .media-rail__list .media-card__save {
        top: auto;
        right: 0;
        bottom: 0;
        width: 1.75rem;
    }

    .media-rail__list .media-card__play {
        display: none;
    }
}

.media-info {
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.media-details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.media-details summary {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0.75rem 1rem;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    list-style: none;
}

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

.media-details summary svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: currentColor;
    transition: transform 160ms ease;
}

.media-details[open] summary svg {
    transform: rotate(180deg);
}

.media-details__label--open {
    display: none;
}

.media-details[open] .media-details__label--closed {
    display: none;
}

.media-details[open] .media-details__label--open {
    display: inline;
}

.media-details__content {
    display: grid;
    gap: var(--space-4);
    padding: 0 var(--space-4) var(--space-4);
}

.media-detail-group h2 {
    margin: 0 0 var(--space-2);
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.media-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.media-chip {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--text);
    font-size: 0.86rem;
}

.media-chip:hover,
.media-chip:focus-visible {
    border-color: var(--accent);
    color: white;
}

.prose {
    max-width: 52rem;
    color: #d0d0d7;
}

.media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.media-actions .button,
.rating-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.action-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    fill: currentColor;
}

.media-engagement {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.media-engagement__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--space-2);
}

.media-engagement .button {
    min-height: 2.75rem;
}

.media-engagement .action-button--icon {
    width: 2.75rem;
    min-width: 2.75rem;
    padding: 0;
}

.media-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.media-rating {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}

.media-rating__score {
    min-width: 3rem;
    color: var(--accent-hover);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.rating-button--up {
    color: var(--success);
}

.rating-button--down {
    color: #ff6b78;
}

.rating-button--up:hover,
.rating-button--up:focus-visible,
.rating-button--up.is-selected {
    border-color: rgba(75, 211, 154, 0.65);
    background: rgba(75, 211, 154, 0.14);
    color: #73e7b5;
}

.rating-button--down:hover,
.rating-button--down:focus-visible,
.rating-button--down.is-selected {
    border-color: rgba(255, 107, 120, 0.65);
    background: rgba(255, 107, 120, 0.14);
    color: #ff8792;
}

.media-rating__feedback,
.comment-form__feedback {
    min-height: 1.4em;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.media-rating__feedback:empty {
    display: none;
}

.media-rating[data-state="complete"] .rating-button:not(.is-selected) {
    opacity: 0.5;
}

.media-rating[data-state="complete"] .media-rating__feedback {
    color: var(--success);
}

.media-rating[data-state="error"] .media-rating__feedback {
    color: #ff9aa3;
}

.media-action-menu {
    position: relative;
}

.media-action-menu summary {
    list-style: none;
    cursor: pointer;
}

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

.media-action-menu__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 13rem;
    overflow: hidden;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.media-action-menu__panel a,
.media-action-menu__panel button {
    width: 100%;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
}

.media-action-menu__panel a:hover,
.media-action-menu__panel button:hover,
.media-action-menu__panel a:focus-visible,
.media-action-menu__panel button:focus-visible {
    background: var(--surface-soft);
}

.media-action-menu__panel .media-action-menu__danger {
    color: #ff8792;
}

.action-dialog {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
}

.action-dialog__panel {
    position: relative;
    width: min(100%, 42rem);
    max-height: min(46rem, 90vh);
    overflow: hidden;
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.action-dialog__panel h2 {
    margin: 0 3rem var(--space-3) 0;
    font-family: var(--font-display);
    font-weight: 600;
}

.action-dialog__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-raised);
    font-size: 1.5rem;
}

.action-dialog__message {
    margin: 0;
    color: var(--text-muted);
}

.action-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.action-dialog__actions .button {
    min-width: 9rem;
}

.action-dialog__frame {
    width: 100%;
    height: min(34rem, 72vh);
    border: 0;
    border-radius: var(--radius-sm);
    background: #111116;
}

.action-dialog__panel--compact {
    width: min(100%, 30rem);
}

.action-dialog__panel--compact .action-dialog__frame {
    height: 16rem;
}

.status-toast {
    position: fixed;
    z-index: 600;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    max-width: min(24rem, calc(100vw - 2rem));
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 49, 80, 0.4);
    border-radius: var(--radius-sm);
    background: rgba(27, 27, 34, 0.96);
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

.status-toast.is-visible {
    opacity: 1;
    transform: none;
}

.ad-slot {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 15.625rem;
    contain: paint;
    isolation: isolate;
    overflow: hidden;
    background: transparent !important;
}

.ad-slot--banner {
    width: min(100%, 45.5rem);
    min-height: 5.625rem;
    display: grid;
    place-items: center;
    margin: var(--space-3) auto;
}

.media-layout__main > .ad-slot--inline {
    margin-block: var(--space-2);
}

.media-layout__main > .ad-slot--inline + .content-section {
    margin-top: var(--space-3);
}

.ad-slot--after-related {
    min-height: 7rem;
    margin-bottom: var(--space-2);
}

.ad-slot--rectangle {
    width: min(100%, 20rem);
    min-height: 15.625rem;
    margin-inline: auto;
}

.ad-slot--page-footer {
    clear: both;
    margin-top: var(--space-6);
    margin-bottom: var(--space-5);
}

.ad-slot__content {
    display: grid;
    place-items: start center;
    background: transparent !important;
}

.ad-slot iframe,
.ad-slot object,
.ad-slot embed,
.ad-slot ins {
    position: static !important;
    z-index: auto !important;
    max-width: 100% !important;
    border: 0;
    background: transparent !important;
}

.bottom-ad {
    width: 100%;
    display: grid;
    place-items: start center;
    clear: both;
    margin: var(--space-2) auto 0;
    overflow: hidden;
}

.bottom-ad--desktop {
    min-height: 16.875rem;
}

.bottom-ad--mobile {
    min-height: 6.25rem;
}

.gallery-stage {
    min-height: min(72vh, 52rem);
    display: grid;
    place-items: center;
}

.gallery-stage__open {
    width: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.gallery-stage__open img {
    max-height: min(80vh, 56rem);
    margin: auto;
    object-fit: contain;
}

.gallery-control {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 3.25rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(10, 10, 13, 0.78);
    font-size: 2rem;
    transform: translateY(-50%);
}

.gallery-control--previous { left: var(--space-3); }
.gallery-control--next { right: var(--space-3); }

.gallery-counter {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-3);
    padding: 0.45rem 0.7rem;
    border-radius: 99rem;
    background: rgba(10, 10, 13, 0.78);
    font-size: 0.8rem;
}

.gallery-rail {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: 0.15rem 0 var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--accent) var(--surface);
}

.gallery-thumb {
    width: clamp(5.5rem, 10vw, 8rem);
    aspect-ratio: 4 / 3;
    flex: none;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    scroll-snap-align: center;
}

.gallery-thumb.is-active {
    border-color: var(--accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-3);
}

.gallery-grid__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: var(--surface);
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-grid__item:hover img { transform: scale(1.04); }

.gallery-grid__item span {
    position: absolute;
    right: var(--space-2);
    bottom: var(--space-2);
    padding: 0.2rem 0.45rem;
    border-radius: 99rem;
    background: rgba(0, 0, 0, 0.75);
    font-size: 0.75rem;
}

.image-viewer {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(0.5rem, 3vw, 2rem);
    background: rgba(0, 0, 0, 0.94);
}

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

.image-viewer__content {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.image-viewer__content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-viewer__content.is-zoomed {
    display: block;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.image-viewer__content.is-zoomed img {
    width: 200%;
    max-width: none;
    max-height: none;
    margin: auto;
    cursor: zoom-out;
}

.image-viewer__error {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    min-width: min(20rem, calc(100vw - 3rem));
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
    text-align: center;
    transform: translate(-50%, -50%);
}

.image-viewer__error p {
    margin-top: 0;
}

.image-viewer.has-image-error .image-viewer__content img {
    visibility: hidden;
}

.image-viewer__close {
    position: absolute;
    z-index: 2;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    width: 3.25rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(20, 20, 25, 0.9);
    font-size: 2rem;
    line-height: 1;
}

.image-viewer__status {
    position: absolute;
    z-index: 2;
    top: max(1rem, env(safe-area-inset-top));
    left: 50%;
    padding: 0.45rem 0.75rem;
    border-radius: 99rem;
    background: rgba(20, 20, 25, 0.9);
    font-size: 0.8rem;
    transform: translateX(-50%);
}

.image-viewer__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 3.5rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(20, 20, 25, 0.88);
    font-size: 2rem;
    transform: translateY(-50%);
}

.image-viewer__nav--previous { left: max(0.75rem, env(safe-area-inset-left)); }
.image-viewer__nav--next { right: max(0.75rem, env(safe-area-inset-right)); }

.comments {
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}

.comment {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: var(--space-3);
    align-items: start;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--line);
}

.comment__avatar {
    width: 2.75rem;
    max-height: 4rem;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.comment__avatar img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 4rem;
    object-fit: contain;
}

.comment__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}

.comment__header a,
.comment__header strong {
    font-weight: 700;
}

.comment__header time {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.comment__report,
.comment__delete {
    margin-left: auto;
    padding: 0.2rem 0.35rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.comment__report:hover,
.comment__report:focus-visible,
.comment__delete:hover,
.comment__delete:focus-visible {
    color: var(--accent);
}

.comment__report.is-reported,
.comment__report:disabled {
    color: var(--accent);
    cursor: default;
    opacity: 0.75;
}

.comment__delete:hover,
.comment__delete:focus-visible {
    color: var(--danger);
}

.comment__delete {
    margin-left: 0;
}

.comment-report-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--space-4);
}

.comment-report-modal[hidden] {
    display: none;
}

.comment-report-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(3, 3, 6, 0.82);
    backdrop-filter: blur(5px);
}

.comment-report-sheet {
    position: relative;
    width: min(100%, 30rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-raised, #15151b);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.55);
}

.comment-report-sheet > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.comment-report-sheet h3,
.comment-report-sheet p {
    margin-bottom: 0;
}

.comment-report-sheet__close {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
}

.comment-report-sheet form {
    display: grid;
    gap: var(--space-2);
}

.comment-report-sheet form > label:not(.comment-report-sheet__details) {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface, #0f0f14);
    cursor: pointer;
}

.comment-report-sheet input[type="radio"] {
    accent-color: var(--accent);
}

.comment-report-sheet__details {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.comment-report-sheet__details[hidden] {
    display: none;
}

.comment-report-sheet__details textarea {
    min-height: 5rem;
    resize: vertical;
}

.comment-report-sheet__feedback {
    min-height: 1.25rem;
    color: var(--danger);
}

@media (max-width: 47.99em) {
    .comment-report-modal {
        align-items: end;
        padding: 0;
    }

    .comment-report-sheet {
        width: 100%;
        max-height: min(85vh, 42rem);
        padding: var(--space-4);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

.comment__body p {
    margin-bottom: 0;
    color: #d3d3da;
}

.comment-form {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.loading-state {
    min-height: 7rem;
    display: grid;
    align-content: center;
    gap: 0.65rem;
}

.loading-state span {
    height: 0.8rem;
    border-radius: 99rem;
    background: linear-gradient(90deg, var(--surface), var(--surface-raised), var(--surface));
    background-size: 200% 100%;
    animation: loading-shimmer 1.2s linear infinite;
}

.loading-state span:nth-child(2) {
    width: 82%;
}

.loading-state span:nth-child(3) {
    width: 64%;
}

.inline-error {
    padding: var(--space-4);
    border: 1px solid rgba(255, 154, 163, 0.25);
    border-radius: var(--radius);
    background: rgba(255, 154, 163, 0.06);
    text-align: center;
}

.inline-error p {
    margin-top: 0;
}

@keyframes loading-shimmer {
    to { background-position: -200% 0; }
}

.comment-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.comment-form textarea,
.captcha-field input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.comment-form__actions,
.captcha-field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.captcha-field img {
    width: auto;
    height: 2.75rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer__inner {
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
}

.empty-state {
    min-height: 20rem;
    display: grid;
    place-content: center;
    text-align: center;
}

.directory-page,
.profile-page {
    padding-bottom: var(--space-5);
}

.directory-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.directory-heading h1,
.profile-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.directory-search input,
.filter-panel input,
.filter-panel select {
    min-height: 2.75rem;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.directory-search input {
    width: min(22rem, 40vw);
}

form.directory-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

form.directory-search label {
    display: block;
}

.directory-search--models {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.directory-search--models .directory-sort {
    flex: 0 1 12rem;
}

.directory-search--models select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 2.2rem 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    color: var(--text);
}

.directory-grid {
    display: grid;
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

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

.directory-grid--people {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.directory-card,
.person-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.directory-card__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.person-card__image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--surface-soft);
}

.person-card--member .person-card__image {
    aspect-ratio: 1;
}

.directory-card img,
.person-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.directory-card:hover img,
.person-card:hover img {
    transform: scale(1.035);
}

.directory-card__body,
.person-card__body {
    padding: 0.85rem;
}

.directory-card h2,
.person-card h2 {
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.directory-card__body > span,
.person-card__meta {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.person-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    margin-top: 0.3rem;
}

.alphabet {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-4);
    overflow-x: auto;
}

.alphabet a {
    width: 2.25rem;
    aspect-ratio: 1;
    display: grid;
    flex: none;
    place-items: center;
    border-radius: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.alphabet a:hover {
    background: var(--surface-raised);
    color: var(--text);
}

.filter-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    align-items: end;
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.age-filter,
.filter-checks {
    min-width: 0;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.age-filter legend,
.filter-checks legend {
    padding: 0 0.35rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.age-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.age-filter input {
    width: 100%;
}

.filter-checks {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 0.65rem 1rem;
}

.filter-checks label {
    display: flex;
    grid-auto-flow: column;
    align-items: center;
    gap: 0.4rem;
}

.filter-checks input {
    min-height: auto;
    accent-color: var(--accent);
}

.filter-panel__actions {
    display: flex;
    align-items: end;
    gap: var(--space-2);
}

.filter-panel[hidden] {
    display: none;
}

.filter-panel label {
    display: grid;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 49, 80, 0.1), transparent 22rem),
        var(--surface);
}

.profile-hero__image {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.profile-page--member .profile-hero__image {
    align-self: start;
    aspect-ratio: auto;
}

.profile-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page--member .profile-hero__image img {
    display: block;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
}

.profile-hero__meta {
    display: flex;
    /* Location, join date and counts on one row do not fit a narrow phone, and
       without this they simply ran past the edge. Wrapping is the fix; breaking
       the words themselves only hid it, and hyphenated "Frien ds". */
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
    color: var(--text-muted);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: var(--space-5);
}

.profile-rating {
    width: fit-content;
    margin-top: var(--space-3);
}

.profile-wall-section {
    margin-top: var(--space-6);
}

.account-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.account-overview__item {
    min-width: 0;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.account-overview__item:hover,
.account-overview__item:focus-visible {
    border-color: var(--accent);
    background: var(--surface-raised);
}

.account-overview__item.has-updates {
    border-color: rgba(255, 49, 80, 0.55);
}

.account-overview__item svg {
    width: 2rem;
    height: 2rem;
    fill: var(--accent);
}

.account-overview__item span,
.account-overview__item strong,
.account-overview__item small {
    min-width: 0;
    display: block;
}

.account-overview__item small {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.account-overview__item b,
.nav-count {
    min-width: 1.5rem;
    display: inline-grid;
    place-items: center;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.2;
}

.profile-layout h2 {
    margin-top: 0;
}

.profile-media-section {
    margin-top: var(--space-6);
}

.facts-card {
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.facts-card dl,
.facts-card dd {
    margin: 0;
}

.facts-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 0.65rem 0;
    border-top: 1px solid var(--line);
}

.facts-card dt {
    color: var(--text-muted);
}

.pagination {
    width: min(100%, 58rem);
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-5) auto 0;
}

.pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    grid-column: 2;
}

.pagination a,
.pagination__pages > span {
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: grid;
    place-items: center;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    color: var(--text-muted);
}

.pagination__direction {
    width: 2.75rem;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    padding: 0 !important;
}

.pagination__direction--prev {
    grid-column: 1;
}

.pagination__direction--next {
    grid-column: 3;
}

.pagination__direction-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.pagination .is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.notification-stack {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.notification {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.notification.success {
    border-color: rgba(75, 211, 154, 0.35);
    background: rgba(75, 211, 154, 0.09);
}

.notification.error,
.notification.alert {
    border-color: rgba(255, 49, 80, 0.4);
    background: rgba(255, 49, 80, 0.1);
}

.notification.info {
    border-color: rgba(117, 186, 255, 0.35);
    background: rgba(117, 186, 255, 0.08);
}

.notification p {
    margin: 0;
}

.notification button {
    width: 2rem;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.activation-welcome {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 3vw, 1.75rem);
    padding-right: clamp(3.25rem, 5vw, 4rem);
    border: 1px solid rgba(255, 49, 80, 0.42);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 49, 80, 0.16), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}

.activation-welcome__copy {
    min-width: 0;
}

.activation-welcome__copy h2,
.activation-welcome__copy p {
    margin: 0;
}

.activation-welcome__copy h2 {
    margin-top: 0.15rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.activation-welcome__copy > p:last-child {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.activation-welcome__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
}

.activation-welcome__dismiss {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.activation-welcome__dismiss:hover,
.activation-welcome__dismiss:focus-visible {
    background: rgba(255, 255, 255, 0.13);
    color: var(--text);
}

.auth-page,
.system-page,
.maintenance-page {
    min-height: min(42rem, calc(100vh - var(--header-height) - 6rem));
    display: grid;
    place-items: center;
}

.auth-card,
.system-state {
    width: min(100%, 30rem);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 49, 80, 0.08), transparent 18rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.auth-card__header {
    margin-bottom: var(--space-4);
}

.auth-card h1,
.system-state h1,
.form-page h1,
.text-page h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 3.25rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.auth-card__header p:last-child,
.system-state > p,
.form-page__header > p {
    color: var(--text-muted);
}

.modern-form {
    display: grid;
    gap: var(--space-3);
}

.modern-form label {
    display: grid;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/*
 * Text-like fields. Checkboxes were excluded from the start; radios were not,
 * because until the close-account choices there were none inside a
 * .modern-form. One inherited width:100%, min-height:3rem and the padding, so
 * it rendered as an 831px-wide control with the label crushed into whatever
 * was left. The gallery cover radio in the content editor had the same fate.
 */
.modern-form input:not([type="checkbox"]):not([type="radio"]),
.modern-form textarea,
.modern-form select {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
}

.modern-form textarea {
    min-height: 11rem;
    resize: vertical;
}

.modern-form input:focus,
.modern-form textarea:focus {
    border-color: var(--focus);
}

.modern-form__between {
    display: flex;
    justify-content: flex-end;
    font-size: 0.8rem;
}

.check-field {
    display: flex !important;
    grid-auto-flow: column;
    align-items: start;
    gap: 0.6rem !important;
}

/*
 * The category filter hides non-matching options with the hidden attribute,
 * whose display:none comes from the user-agent stylesheet -- and an author
 * !important beats that outright. Without this the search box filtered nothing.
 */
.check-field[hidden] {
    display: none !important;
}

.check-field input {
    /* The control sits in a flex row beside its label: it is the size a
       checkbox or radio is, whatever a form rule elsewhere decides. */
    flex: none;
    margin-top: 0.2rem;
    accent-color: var(--accent);
}

.auth-card__alternate {
    margin: var(--space-4) 0 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.auth-card a,
.form-page a,
.text-page a {
    color: var(--accent-hover);
}

.system-state {
    text-align: center;
}

.system-state__mark {
    width: 3.5rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 0 auto var(--space-3);
    border-radius: 50%;
    background: rgba(75, 211, 154, 0.12);
    color: var(--success);
    font-size: 1.5rem;
}

.system-state__code {
    display: block;
    color: rgba(255, 255, 255, 0.1);
    font-size: clamp(5rem, 18vw, 9rem);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.85;
}

.system-state__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.system-state__search {
    position: static;
    width: 100%;
    margin: var(--space-4) 0 var(--space-3);
    filter: none;
}

.form-page,
.text-page {
    width: min(100%, 52rem);
    margin-inline: auto;
}

.form-page__header,
.text-page > header {
    margin-bottom: var(--space-5);
}

.modern-form--wide {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.modern-form__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.prose--long {
    max-width: none;
}

.prose--long h2,
.prose--long h3 {
    margin-top: 2em;
    color: var(--text);
}

.maintenance-page {
    min-height: 100vh;
    padding: var(--space-4);
}

.maintenance-page__mark {
    display: block;
    width: 5rem;
    height: 5rem;
    margin: 0 auto var(--space-4);
}

@media (max-width: 70rem) {
    .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .media-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "main" "rail" "extra";
        grid-template-rows: auto;
        gap: 0;
    }
    /* The rail's ads stay desktop-only, exactly as the whole rail used to be. */
    .media-layout__rail .ad-slot { display: none; }
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .directory-grid--people { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .account-actions .button--quiet { display: none; }
}

@media (max-width: 52rem) {
    :root { --header-height: 4rem; }
    .shell { width: min(100% - 1.25rem, var(--shell)); }
    .site-header {
        background: var(--bg);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-left: auto;
    }
    .mobile-search-toggle,
    .nav-toggle {
        width: 2.75rem;
        display: inline-flex;
        padding: 0;
        border-color: var(--line);
        background: var(--surface);
    }
    .mobile-search-toggle svg {
        width: 1.2rem;
        height: 1.2rem;
        fill: currentColor;
    }
    .mobile-account-cta {
        max-width: 9rem;
        min-height: 2.6rem;
        padding: 0.55rem 0.8rem;
        white-space: nowrap;
    }
    /*
     * The compact logged-out CTA sits directly on the dark mobile header.
     * Keep its label light and its fill dark-red so the text remains readable
     * on real phone displays and in forced text rendering.
     */
    .mobile-account-cta.button--primary,
    .mobile-account-cta.button--primary:link,
    .mobile-account-cta.button--primary:visited {
        border-color: #e64a61;
        background: linear-gradient(135deg, #bf1636, #98112b);
        color: #fff !important;
        -webkit-text-fill-color: #fff;
    }
    .mobile-account-cta.button--primary:hover,
    .mobile-account-cta.button--primary:focus-visible,
    .mobile-account-cta.button--primary:active {
        background: linear-gradient(135deg, #d51a3e, #ad1431);
        color: #fff !important;
        -webkit-text-fill-color: #fff;
    }
    .primary-nav {
        position: fixed;
        z-index: 130;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: auto;
        width: min(90vw, 25rem);
        display: block;
        overflow-y: auto;
        padding: var(--space-3) var(--space-3) calc(var(--space-5) + env(safe-area-inset-bottom));
        border-left: 1px solid var(--line);
        background: var(--bg);
        pointer-events: none;
        transform: translateX(100%);
        transition: transform 180ms ease;
    }
    .nav-open .primary-nav {
        pointer-events: auto;
        transform: none;
    }
    .nav-open,
    .search-open {
        overflow: hidden;
    }
    .primary-nav__link {
        display: block;
        padding: 0.9rem;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0.65rem 0.65rem 0.65rem 0.3rem;
    }
    .primary-nav__link::after {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 0;
        width: 0.16rem;
        height: 55%;
        transform: translateY(-50%) scaleY(0.35);
        transform-origin: center;
    }
    .primary-nav__link:hover::after,
    .primary-nav__link.is-active::after {
        transform: translateY(-50%) scaleY(1);
    }
    /*
     * Sign up and Login share a row. This was display:block with a gap, which
     * does nothing there, and two inline-level buttons at 50% each plus a margin
     * came to one pixel more than the drawer had -- so the second wrapped and
     * kept its margin, leaving them staggered and each less than half the width
     * of everything below them.
     */
    .mobile-nav-account {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-bottom: var(--space-3);
    }
    .mobile-nav-account > .button {
        flex: 1 1 0;
        width: auto;
    }
    /* The signed-in blocks take a full row rather than sharing one. */
    .mobile-nav-account__identity,
    .mobile-nav-account__links {
        flex: 1 1 100%;
    }
    .mobile-nav-account__identity {
        display: grid;
        gap: 0.2rem;
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface-raised);
    }
    .mobile-nav-account__identity span {
        color: var(--text-muted);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .mobile-nav-account__identity strong {
        overflow: hidden;
        color: var(--text);
        font-size: 1rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-nav-account__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }
    .mobile-nav-account__links a {
        min-width: 0;
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface);
        color: var(--text);
        font-size: 0.85rem;
        font-weight: 700;
        text-align: center;
    }
    .mobile-nav-language {
        display: grid;
        gap: var(--space-2);
        margin-top: var(--space-4);
        padding-top: var(--space-3);
        border-top: 1px solid var(--line);
    }
    .mobile-nav-language > strong {
        color: var(--text-muted);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .mobile-nav-language .language-switcher {
        display: block;
    }
    /*
     * Grouped, not split. space-between on a full-width control put the glyph at
     * one edge and the language code at the other, which reads as an empty box
     * with a stray mark in it.
     */
    .mobile-nav-language .language-switcher summary {
        width: 100%;
        justify-content: flex-start;
    }
    .site-header__inner > .language-switcher {
        display: none;
    }
    .nav-backdrop {
        position: fixed;
        z-index: 120;
        inset: var(--header-height) 0 0;
        width: 100%;
        border: 0;
        background: rgba(0, 0, 0, 0.62);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }
    .nav-open .nav-backdrop,
    .search-open .nav-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    .site-search {
        position: fixed;
        z-index: 135;
        top: calc(var(--header-height) + 0.625rem);
        right: 0.625rem;
        left: 0.625rem;
        max-width: none;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.75rem);
        transition: opacity 160ms ease, transform 160ms ease;
        filter: drop-shadow(0 0.75rem 1.5rem rgba(0, 0, 0, 0.45));
    }
    .search-open .site-search {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
    .search-suggestions { max-height: calc(100vh - var(--header-height) - 5.5rem); }
    .account-actions { display: none; }
    .language-switcher { margin-left: 0; }
    .site-main { padding-top: var(--space-3); padding-bottom: var(--space-3); }
    .discovery-strip {
        margin-top: 0;
        padding-bottom: var(--space-1);
    }
    .discovery-strip + .content-section {
        margin-top: var(--space-3);
    }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-grid--watching {
        display: flex;
        gap: 0.75rem;
        margin-right: -0.625rem;
        padding-right: 0.625rem;
        padding-bottom: var(--space-2);
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }
    .media-grid--watching .media-card {
        flex: 0 0 46%;
        scroll-snap-align: start;
    }
    .content-section--watching .section-heading {
        margin-bottom: var(--space-3);
    }
    .content-section--watching .section-heading .button {
        display: none;
    }
    .listing-filters__panel {
        position: fixed;
        z-index: 150;
        top: auto;
        right: 0.625rem;
        bottom: max(0.625rem, env(safe-area-inset-bottom));
        left: 0.625rem;
        width: auto;
        max-height: calc(100vh - var(--header-height) - 1.25rem);
        overflow-y: auto;
    }
    .listing-filters[open]::before {
        content: '';
        position: fixed;
        z-index: 140;
        inset: 0;
        background: rgba(0, 0, 0, 0.68);
    }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .player-shell { min-height: auto; aspect-ratio: 16 / 9; }
    .access-gate { min-height: 18rem; }
    .media-stage { margin-inline: -0.625rem; width: calc(100% + 1.25rem); border-radius: 0; }
    .gallery-stage { min-height: 65vh; margin-inline: -0.625rem; border-radius: 0; }
    .media-actions {
        gap: 0.5rem;
        margin-top: var(--space-3);
    }
    .media-actions .button,
    .rating-button {
        min-width: 2.85rem;
        min-height: 2.85rem;
        padding: 0.7rem;
        border-radius: 50%;
    }
    .media-actions .action-label,
    .rating-button .action-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .media-actions .action-icon,
    .rating-button .action-icon {
        width: 1.3rem;
        height: 1.3rem;
    }
    .media-engagement {
        gap: 0.4rem;
        margin-top: var(--space-3);
    }
    .media-engagement__actions,
    .media-rating {
        gap: 0.4rem;
    }
    .media-engagement .button,
    .media-engagement .action-button--icon {
        width: 2.85rem;
        min-width: 2.85rem;
        min-height: 2.85rem;
        padding: 0;
        border-radius: 50%;
    }
    .media-engagement .media-share .action-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .media-rating__score {
        min-width: 2.65rem;
        font-size: 1.15rem;
    }
    .media-rating {
        display: flex;
        flex-wrap: wrap;
    }
    .media-rating__feedback {
        position: static;
        flex: 0 0 100%;
        order: 10;
        padding-top: 0.15rem;
    }
    .action-dialog {
        align-items: end;
        padding: 0;
    }
    .action-dialog__panel {
        width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        padding: var(--space-3);
        border-width: 1px 0 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .action-dialog__frame {
        height: min(38rem, 78vh);
        height: min(38rem, 78dvh);
    }
    .action-dialog__panel--compact .action-dialog__frame {
        height: 15rem;
    }
    .action-dialog__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .directory-grid--categories,
    .directory-grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .directory-heading { align-items: stretch; flex-direction: column; }
    .directory-search input { width: 100%; }
    form.directory-search, form.directory-search label { width: 100%; }
    form.directory-search .button { flex: 0 0 auto; }
    form.directory-search--models .directory-sort,
    form.directory-search--models .button { width: 100%; flex: 1 1 100%; }
    .filter-panel { grid-template-columns: 1fr; }
    .profile-hero { grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr); }
    .account-overview { grid-template-columns: 1fr; gap: var(--space-2); }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-media-section { margin-top: var(--space-5); }
    .ad-slot--banner {
        width: min(100%, 20rem);
        min-height: 6.25rem;
    }
    .bottom-ad {
        margin-top: var(--space-2);
        margin-bottom: 0;
    }
    .media-card__save {
        opacity: 1;
    }
    .media-grid__ad-island {
        grid-column: 1 / -1;
        min-height: 16.125rem;
        padding: 0.25rem;
    }
}

.account-page {
    padding-block: var(--space-5) var(--space-8);
}

.profile-editor {
    display: grid;
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-6);
}

.profile-editor__avatar,
.settings-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.profile-editor__avatar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
    overflow: hidden;
}

.profile-editor__avatar > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.file-field {
    display: grid;
    gap: 0.4rem;
    padding: var(--space-3);
    color: var(--text);
    font-weight: 700;
}

.file-field input {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.file-field small {
    color: var(--text-muted);
    font-weight: 500;
}

.profile-editor__content {
    display: grid;
    gap: var(--space-4);
}

.settings-card {
    padding: clamp(1rem, 3vw, 1.75rem);
}

.settings-card > header {
    margin-bottom: var(--space-4);
}

.settings-card h2,
.settings-card p {
    margin: 0;
}

.settings-card p {
    margin-top: 0.3rem;
    color: var(--text-muted);
}

.settings-card__fields {
    margin-top: var(--space-3);
}

.settings-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.viewing-preferences {
    margin-top: var(--space-4);
}

/*
 * Each section is a name and a line explaining it. They were a <strong> and a
 * <small> side by side inside a flex child, so they ran together with nothing
 * between them: "New from who you followRecent uploads from...".
 */
.viewing-preferences .settings-checks {
    gap: var(--space-3) var(--space-4);
}

.viewing-preferences .check-field {
    align-items: start;
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft, var(--surface));
    cursor: pointer;
}

.viewing-preferences .check-field:hover {
    border-color: var(--focus, var(--accent));
}

.viewing-preferences .check-field > span {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.viewing-preferences .check-field strong {
    font-weight: 600;
    line-height: 1.3;
}

.viewing-preferences .check-field small {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .viewing-preferences .settings-checks {
        grid-template-columns: minmax(0, 1fr);
    }
}

.viewing-preferences > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    list-style: none;
    cursor: pointer;
}

.viewing-preferences > summary::-webkit-details-marker { display: none; }
.viewing-preferences > summary span:first-child { display: grid; gap: 0.25rem; }
.viewing-preferences > summary strong { color: var(--text); }
.viewing-preferences > summary small { color: var(--text-muted); }
.viewing-preferences[open] > summary { margin-bottom: var(--space-4); }

.viewing-preferences__note {
    margin-top: var(--space-3) !important;
    font-size: 0.8rem;
}

.profile-history-section {
    margin-top: var(--space-6);
}

.profile-history-tabs,
.profile-media-tabs {
    display: flex;
    gap: 0.4rem;
    margin-top: var(--space-4);
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.profile-history-tabs button,
.profile-media-tabs button {
    flex: 1;
    min-height: 2.75rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
}

.profile-history-tabs button:hover,
.profile-history-tabs button.is-active,
.profile-media-tabs button:hover,
.profile-media-tabs button.is-active { background: rgba(255, 49, 80, 0.12); color: var(--text); }

.profile-creator-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.profile-creator-summary > div {
    display: grid;
    gap: 0.2rem;
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.profile-creator-summary strong { font-family: var(--font-display); font-size: 1.45rem; }
.profile-creator-summary span { color: var(--text-muted); font-size: 0.78rem; }


.creator-more-section { margin-top: var(--space-5); }

.profile-editor__actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 45rem) {
    .profile-editor {
        grid-template-columns: 1fr;
    }
    .profile-editor__avatar {
        position: static;
        display: grid;
        grid-template-columns: 7rem minmax(0, 1fr);
        align-items: center;
    }
    .settings-checks {
        grid-template-columns: 1fr;
    }
}

.account-tabs,
.friend-section__header,
.friend-section__bulk,
.friend-row,
.friend-row__person,
.friend-row__actions,
.sort-links {
    display: flex;
    align-items: center;
}

.account-tabs {
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    overflow-x: auto;
}

.account-tabs a {
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
}

.account-tabs span {
    color: var(--text-muted);
}

.friend-section {
    margin-bottom: var(--space-7);
}

.friend-section__header {
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.friend-section__header h2,
.friend-section__header p {
    margin: 0;
}

.friend-section__header p {
    color: var(--text-muted);
}

.friend-section__bulk,
.friend-row__actions,
.sort-links {
    gap: var(--space-2);
}

.friend-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.friend-row {
    display: grid;
    grid-template-columns: minmax(11rem, 1fr) minmax(10rem, 2fr) auto auto;
    gap: var(--space-3);
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
}

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

.friend-row__person {
    gap: 0.75rem;
    min-width: 0;
}

.friend-row__person img {
    width: 3.25rem;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    object-fit: contain;
}

.friend-row__person span {
    min-width: 0;
}

.friend-row__person strong,
.friend-row__person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-row__person small,
.friend-row__message,
.friend-row__date {
    color: var(--text-muted);
}

.friend-row__message {
    margin: 0;
}

.friend-list--grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.friend-card {
    position: relative;
    padding: var(--space-3);
    background: var(--surface);
}

.friend-card a,
.friend-card strong,
.friend-card span {
    display: block;
}

.friend-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: var(--space-2);
    border-radius: var(--radius);
    background: var(--surface-soft);
    object-fit: contain;
}

.friend-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.friend-card form {
    margin-top: var(--space-2);
}

.friend-card button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-hover);
    cursor: pointer;
}

.mailbox-page {
    width: min(100%, 72rem);
    margin-inline: auto;
}

.mailbox-heading {
    align-items: end;
}

.mailbox-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    overflow-x: auto;
}

.mailbox-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-muted);
    white-space: nowrap;
}

.mailbox-tabs a:hover,
.mailbox-tabs a:focus-visible,
.mailbox-tabs a.is-active {
    border-color: var(--accent);
    color: var(--text);
}

.mailbox-tabs span {
    min-width: 1.35rem;
    display: inline-grid;
    place-items: center;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
}

.mailbox-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.mailbox-row {
    display: grid;
    grid-template-columns: 2rem minmax(9rem, 0.8fr) minmax(12rem, 2fr) auto;
    align-items: center;
    gap: var(--space-3);
    min-height: 4.75rem;
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
}

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

.mailbox-row.is-unread {
    background: rgba(255, 49, 80, 0.055);
    box-shadow: inset 0.2rem 0 var(--accent);
}

.mailbox-row__select {
    display: grid;
    place-items: center;
}

.mailbox-row__select input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--accent);
}

.mailbox-row__person,
.mailbox-row__subject {
    min-width: 0;
}

.mailbox-row__person small,
.mailbox-row__person a,
.mailbox-row__person strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mailbox-row__person small,
.mailbox-row__date {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.mailbox-row__subject {
    overflow: hidden;
    color: var(--text);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mailbox-list__actions,
.message-view__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.message-view {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.message-view__header,
.message-view__body {
    padding: clamp(1rem, 3vw, 2rem);
}

.message-view__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-3);
    border-bottom: 1px solid var(--line);
}

.message-view__header small,
.message-view__header a,
.message-view__header strong {
    display: block;
}

.message-view__header small,
.message-view__header time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.message-view__header h2 {
    grid-column: 1 / -1;
    margin: var(--space-2) 0 0;
}

.message-view__body {
    min-height: 12rem;
    color: var(--text);
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: normal;
}

.message-view__actions {
    padding: 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
}

.mailbox-compose {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.mailbox-captcha {
    display: grid;
    grid-template-columns: minmax(12rem, 20rem) auto;
    align-items: end;
    gap: var(--space-3);
}

.mailbox-captcha img {
    min-width: 8rem;
    min-height: 2.375rem;
    border-radius: var(--radius-sm);
    background: #fff;
}

.empty-state {
    grid-column: 1 / -1;
    padding: clamp(2rem, 7vw, 5rem);
    text-align: center;
}

.empty-state h3,
.empty-state p {
    margin: 0;
}

.empty-state p {
    margin-top: var(--space-2);
    color: var(--text-muted);
}

@media (max-width: 60rem) {
    .friend-row {
        grid-template-columns: minmax(11rem, 1fr) minmax(10rem, 2fr) auto;
    }
    .friend-row__date {
        display: none;
    }
    .friend-list--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 42rem) {
    .activation-welcome {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    .activation-welcome__actions {
        justify-content: stretch;
    }
    .activation-welcome__actions .button {
        flex: 1 1 9rem;
    }
    .friend-section__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .friend-row {
        grid-template-columns: 1fr auto;
    }
    .friend-row__message {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .friend-row__actions {
        grid-column: 2;
        grid-row: 1;
    }
    .friend-list--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tags-page {
    padding-block: var(--space-5) var(--space-8);
}

.tags-page .directory-heading p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
}

.tags-alphabet {
    margin-bottom: var(--space-5);
}

.tags-alphabet .is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.tag-cloud {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-2);
}

.tag-chip {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color 140ms ease, background 140ms ease;
}

.tag-chip:hover {
    border-color: var(--accent);
    background: var(--surface-raised);
}

.tag-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-chip small {
    color: var(--text-muted);
}

.embed-page,
.embed-page body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: #000;
}

.embed-player {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.embed-player > *,
.embed-player .media-player-wrapper,
.embed-player .media__inner,
.embed-player video,
.embed-player iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}

@media (max-width: 70rem) {
    .tag-cloud {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
    .tag-cloud {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 32rem) {
    .tag-cloud {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.paysites-page {
    padding-block: var(--space-5) var(--space-8);
}

.paysites-page .directory-heading p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
}

.paysite-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.paysite-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.paysite-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.paysite-card span {
    display: block;
    padding: var(--space-3);
}

.paysite-card strong,
.paysite-card small {
    display: block;
}

.paysite-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paysite-card small {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.paysite-hero {
    display: grid;
    grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: center;
    margin-block: var(--space-4) var(--space-6);
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0 0, rgba(255, 49, 80, 0.1), transparent 18rem),
        var(--surface);
}

.paysite-hero > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    object-fit: cover;
}

.paysite-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: -0.03em;
}

.paysite-hero__stats {
    display: flex;
    gap: var(--space-3);
    margin-block: var(--space-2);
    color: var(--text-muted);
}

.commerce-page {
    width: min(100%, 56rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 8vw, 6rem);
}

.commerce-hero {
    margin-bottom: var(--space-5);
    text-align: center;
}

.commerce-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 9vw, 5.5rem);
    letter-spacing: -0.035em;
}

.commerce-hero h1 span {
    color: var(--accent-hover);
}

.commerce-hero > p:last-child {
    color: var(--text-muted);
}

.token-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.token-package {
    display: grid;
    justify-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.token-package:hover {
    border-color: var(--accent);
}

.token-package__amount {
    color: var(--accent-hover);
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
}

.token-package small {
    color: var(--text-muted);
}

.commerce-notice {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.commerce-notice h2,
.commerce-notice p {
    margin-top: 0;
}

.commerce-notice p {
    color: var(--text-muted);
}

.commerce-notice--warning {
    border-color: rgba(255, 180, 60, 0.35);
    background: rgba(255, 180, 60, 0.06);
}

.rental-card {
    padding: clamp(1.25rem, 5vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 49, 80, 0.1), transparent 20rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.rental-card > header {
    margin-bottom: var(--space-5);
}

.rental-card h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 7vw, 4rem);
    letter-spacing: -0.03em;
}

.rental-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.rental-summary div {
    padding: var(--space-3);
    background: var(--bg);
}

.rental-summary dt {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.rental-summary dd {
    margin: 0.3rem 0 0;
    font-weight: 700;
}

.rental-confirm {
    display: grid;
    gap: var(--space-3);
}

@media (max-width: 60rem) {
    .paysite-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 42rem) {
    .paysite-grid,
    .token-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .paysite-hero {
        grid-template-columns: 1fr;
    }
    .paysite-hero > img {
        max-width: 16rem;
    }
    .rental-summary {
        grid-template-columns: 1fr;
    }
}

.upload-page {
    width: min(100%, 62rem);
    margin-inline: auto;
    padding-block: var(--space-5) var(--space-8);
}

.upload-page--choose {
    width: min(100%, 56rem);
}

.upload-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.upload-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    min-height: 10rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0 0, rgba(255, 49, 80, 0.1), transparent 13rem),
        var(--surface);
    transition: border-color 160ms ease, transform 160ms ease;
}

.upload-choice:hover {
    border-color: var(--accent);
    transform: translateY(-0.15rem);
}

.upload-choice__icon {
    width: 3.5rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 49, 80, 0.12);
    color: var(--accent-hover);
    font-size: 1.35rem;
}

.upload-choice strong,
.upload-choice small {
    display: block;
}

.upload-choice strong {
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
}

.upload-choice small {
    color: var(--text-muted);
    line-height: 1.5;
}

.upload-guidance {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}

.upload-guidance h2 {
    margin-top: 0;
}

.upload-guidance li {
    margin-top: 0.45rem;
    color: var(--text-muted);
}

.upload-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 var(--space-5);
    padding: 0;
    list-style: none;
}

.upload-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.upload-steps li::after {
    content: "";
    height: 1px;
    flex: 1;
    margin-inline: 0.6rem;
    background: var(--line);
}

.upload-steps li:last-child::after {
    display: none;
}

.upload-steps span {
    width: 2rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.upload-steps .is-active,
.upload-steps .is-complete {
    color: var(--text);
}

.upload-steps .is-active span {
    border-color: var(--accent);
    background: var(--accent);
}

.upload-steps .is-complete span {
    border-color: var(--success);
    color: var(--success);
}

.upload-panel {
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.upload-workflow {
    display: grid;
    gap: var(--space-4);
}

.upload-panel > header {
    margin-bottom: var(--space-4);
}

.upload-panel > header h2,
.upload-panel > header p {
    margin: 0;
}

.upload-panel > header p {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.upload-file-zone {
    display: grid;
    justify-items: center;
    gap: var(--space-3);
    padding: clamp(2rem, 8vw, 5rem) var(--space-3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    text-align: center;
}

.upload-file-zone h2,
.upload-file-zone p {
    margin: 0;
}

.upload-file-zone p {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.upload-file-zone__icon {
    display: block;
    color: var(--accent-hover);
    font-size: 2.5rem;
}

.upload-resume {
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-4);
}

.upload-resume h2,
.upload-resume p {
    margin: 0;
}

.upload-resume h2 {
    margin-top: 0.35rem;
}

.upload-resume > div > p:last-child {
    margin-top: var(--space-3);
    color: var(--text-muted);
}

.upload-resume__poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    object-fit: cover;
}

.upload-resume__file {
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-resume__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .upload-resume {
        grid-template-columns: minmax(0, 1fr);
    }
}

.upload-feedback {
    min-height: 1.4em;
    margin: 0;
    color: var(--text-muted);
}

.upload-progress {
    position: relative;
    width: min(100%, 32rem);
    height: 1.8rem;
    padding-top: 0.1rem;
    background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 0.45rem no-repeat;
}

.upload-progress span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--accent);
    transition: width 120ms linear;
}

.upload-progress small {
    position: absolute;
    top: 0.7rem;
    left: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.upload-queue {
    width: min(100%, 38rem);
    display: grid;
    gap: var(--space-2);
}

.upload-queue__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    text-align: left;
}

.upload-queue__item strong,
.upload-queue__item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-queue__item small {
    color: var(--text-muted);
}

.upload-queue__item .creator-status {
    display: inline-flex;
    width: auto;
    margin-top: 0.35rem;
}

.upload-queue__item[data-state="complete"] {
    border-color: rgba(76, 196, 134, 0.35);
}

.upload-queue__item[data-state="failed"] {
    border-color: rgba(255, 154, 163, 0.35);
}

.upload-queue__actions {
    display: flex;
    gap: var(--space-1);
}

.upload-queue__actions .button {
    min-height: 2.5rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
}

.upload-metadata {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.category-picker__search {
    display: block;
    margin-bottom: var(--space-3);
}

.category-picker__search input {
    width: 100%;
}

.modern-form label > small {
    justify-self: end;
    color: var(--text-muted);
    font-weight: 500;
}

.category-picker {
    position: relative;
    margin: 0;
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.category-picker legend {
    padding-inline: 0.4rem;
    font-weight: 700;
}

.category-picker__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    max-height: 20rem;
    overflow-y: auto;
}

.category-picker__count {
    position: absolute;
    top: 0;
    right: var(--space-3);
    color: var(--text-muted);
}

.upload-confirmation {
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.creator-grid {
    display: grid;
    gap: var(--space-3);
}

.creator-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.creator-summary > div {
    display: grid;
    gap: 0.2rem;
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.creator-summary strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.creator-summary span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Every control here is nowrap, and there can be fifteen of them. Without
   wrapping, the row does not shrink -- it takes the page with it. */
.creator-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    margin-bottom: var(--space-4);
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.creator-filters > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

.creator-filters strong {
    padding: 0 0.55rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.creator-filters a {
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.creator-filters a:hover,
.creator-filters a.is-active {
    background: rgba(255, 49, 80, 0.12);
    color: var(--text);
}

.creator-card {
    display: grid;
    grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.creator-card__visual {
    position: relative;
    min-height: 9rem;
    background: var(--bg);
}

.creator-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-card__visual.has-image-error {
    background:
        radial-gradient(circle at center, rgba(255, 49, 80, 0.12), transparent 5rem),
        var(--bg);
}

.creator-status {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 99rem;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.creator-card__visual > .creator-status {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
}

.creator-status--processing {
    background: rgba(91, 165, 255, 0.9);
    color: #07101c;
}

.creator-status--pending {
    background: rgba(255, 180, 60, 0.9);
    color: #1b1100;
}

.creator-status--published {
    background: rgba(76, 196, 134, 0.9);
    color: #04150c;
}

.creator-status--unavailable {
    background: rgba(150, 155, 170, 0.9);
    color: #09090b;
}

.creator-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
}

.creator-card__body h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.creator-card__meta,
.creator-card__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* The take-down control is a form, so it does not become a flex item of its
   own beside the buttons it sits next to. */
.creator-card__actions form {
    display: contents;
}

/*
 * Closing an account, folded away.
 *
 * Quiet until asked for: a line of muted text with a marker, not a red panel.
 * The danger colour belongs to what is inside, once somebody has opened it.
 */
.account-close {
    margin-top: var(--space-5);
}

.account-close > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    list-style: none;
    cursor: pointer;
}

.account-close > summary::-webkit-details-marker {
    display: none;
}

.account-close > summary::before {
    content: "›";
    display: inline-block;
    transition: transform 0.15s ease;
    font-size: 1.1em;
    line-height: 1;
}

.account-close[open] > summary::before {
    transform: rotate(90deg);
}

.account-close > summary:hover,
.account-close[open] > summary {
    color: var(--text);
}

.account-close > summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.account-close .account-danger-zone {
    margin-top: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
    .account-close > summary::before {
        transition: none;
    }
}

.account-danger-zone {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--danger);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.account-danger-zone > header h2,
.account-danger-zone > header p {
    margin: 0;
}

.account-danger-zone > header p {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.account-danger-zone__impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: var(--space-3);
    margin: 0;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.account-danger-zone__impact div {
    display: grid;
    gap: 0.15rem;
}

.account-danger-zone__impact dt {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-danger-zone__impact dd {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.account-danger-zone__choices {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    border: 0;
}

.account-danger-zone__choices legend {
    padding: 0 0 var(--space-2);
}

.account-danger-zone__choices .check-field {
    align-items: flex-start;
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.account-danger-zone__choices .check-field span {
    display: grid;
    flex: 1;
    gap: 0.25rem;
    min-width: 0;
}

.account-danger-zone__choices small,
.account-danger-zone__note,
.account-danger-zone__choice {
    color: var(--text-muted);
}

.account-danger-zone__note,
.account-danger-zone__choice {
    margin: 0;
}

.creator-danger-zone {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--danger);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.creator-danger-zone > header h2,
.creator-danger-zone > header p {
    margin: 0;
}

.creator-danger-zone > header p {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.creator-danger-zone__action {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}

.creator-danger-zone__action > div {
    display: grid;
    gap: 0.35rem;
    flex: 1 1 20rem;
}

.creator-danger-zone__action small {
    color: var(--text-muted);
}

.creator-danger-zone__action label {
    display: grid;
    gap: 0.35rem;
    margin-top: var(--space-2);
}

.creator-danger-zone__action .check-field {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.creator-danger-zone__blocked {
    color: var(--danger);
}

.creator-danger-zone__note {
    margin: 0;
    color: var(--text-muted);
}

.creator-card__meta {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}


@media (max-width: 42rem) {
    .creator-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .creator-filters { display: grid; overflow: hidden; }
    .creator-filters > div { overflow-x: auto; padding-bottom: 0.2rem; scrollbar-width: thin; }
    .upload-choice-grid {
        grid-template-columns: 1fr;
    }
    .upload-choice {
        min-height: 8rem;
    }
    .upload-steps li {
        display: grid;
        justify-items: center;
        text-align: center;
    }
    .upload-steps li::after {
        position: absolute;
        top: 1rem;
        left: calc(50% + 1.5rem);
        width: calc(100% - 3rem);
        margin: 0;
    }
    .category-picker__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .creator-card {
        grid-template-columns: 8rem minmax(0, 1fr);
    }
    .creator-card__body {
        align-items: stretch;
        flex-direction: column;
        padding: var(--space-3);
    }
    .creator-card__actions .button {
        flex: 1;
    }
    [data-upload-submit] {
        position: sticky;
        z-index: 5;
        bottom: max(0.5rem, env(safe-area-inset-bottom));
        width: 100%;
        box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 35rem) {
    .brand__logo { width: 7.5rem; }
    .mobile-header-actions { gap: 0.3rem; }
    .mobile-account-cta {
        max-width: 7.5rem;
        padding-inline: 0.65rem;
        font-size: 0.8rem;
    }
    .media-grid { gap: 1rem 0.65rem; }
    .media-card__title { font-size: 0.9rem; }
    .media-card__meta { display: none; }
    .media-engagement__actions,
    .media-rating {
        gap: 0.25rem;
    }
    .media-engagement .button,
    .media-engagement .action-button--icon {
        width: 2.7rem;
        min-width: 2.7rem;
        min-height: 2.7rem;
    }
    .media-rating__score {
        min-width: 2.5rem;
        font-size: 1.05rem;
    }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .gallery-control { width: 2.8rem; }
    .media-heading { display: block; }
    .media-heading__stats { margin-top: var(--space-2); }
    .site-footer__inner { align-items: flex-start; flex-direction: column; padding-block: var(--space-4); }
    .profile-hero {
        grid-template-columns: 1fr;
    }
    .profile-hero__image {
        width: min(70vw, 16rem);
    }
    .profile-page--member .profile-hero {
        grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
        gap: var(--space-3);
        align-items: start;
    }
    .profile-page--member .profile-hero__image {
        width: 100%;
    }
    .profile-page--member .profile-hero__image img {
        max-height: 13rem;
    }
    .profile-page--member .profile-hero__content {
        min-width: 0;
    }
    .pagination__pages a:not(.is-active):not(.is-nearby),
    .pagination__pages > span:not(.is-active) {
        display: none;
    }
    .pagination {
        width: 100%;
        gap: 0.4rem;
    }
    .pagination > a {
        min-width: 2.75rem;
    }
    .media-details__content {
        padding-inline: var(--space-3);
    }
    .modern-form__columns {
        grid-template-columns: 1fr;
    }
    .system-state__actions {
        align-items: stretch;
        flex-direction: column;
    }
    .mailbox-heading {
        align-items: stretch;
    }
    .mailbox-row {
        grid-template-columns: 1.5rem minmax(0, 1fr) auto;
        gap: var(--space-2);
    }
    .mailbox-row__person {
        grid-column: 2;
    }
    .mailbox-row__subject {
        grid-column: 2 / -1;
    }
    .mailbox-row__date {
        grid-column: 3;
        grid-row: 1;
        font-size: 0.7rem;
    }
    .message-view__header {
        grid-template-columns: 1fr;
    }
    .message-view__header h2 {
        grid-column: auto;
    }
    .message-view__actions {
        align-items: stretch;
        flex-direction: column;
    }
    .message-view__actions .button,
    .message-view__actions form,
    .message-view__actions button {
        width: 100%;
    }
    .mailbox-captcha {
        grid-template-columns: 1fr;
        align-items: start;
    }
}


/*
 * Tablet header
 *
 * Keep the tablet content grid intact, but switch the crowded desktop header
 * to the existing compact navigation controls. In particular, an iPad Pro in
 * landscape does not have enough room for the brand, primary links, search,
 * language and account actions in one row.
 */
@media (min-width: 52.01rem) and (max-width: 75rem) {
    .site-header__inner {
        min-width: 0;
        gap: var(--space-2);
    }

    .brand__logo {
        width: clamp(9rem, 18vw, 11rem);
    }

    .mobile-header-actions {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.45rem;
        margin-left: auto;
    }

    .mobile-search-toggle,
    .nav-toggle {
        width: 2.75rem;
        flex: 0 0 2.75rem;
        display: inline-flex;
        padding: 0;
        border-color: var(--line);
        background: var(--surface);
    }

    .mobile-search-toggle svg {
        width: 1.2rem;
        height: 1.2rem;
        fill: currentColor;
    }

    .mobile-account-cta {
        max-width: 11rem;
        min-height: 2.6rem;
        padding: 0.55rem 0.9rem;
        white-space: nowrap;
    }

    .primary-nav {
        position: fixed;
        z-index: 130;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: auto;
        width: min(78vw, 27rem);
        display: block;
        overflow-y: auto;
        padding: var(--space-3) var(--space-3) calc(var(--space-5) + env(safe-area-inset-bottom));
        border-left: 1px solid var(--line);
        background: var(--bg);
        pointer-events: none;
        transform: translateX(100%);
        transition: transform 180ms ease;
    }

    .nav-open .primary-nav {
        pointer-events: auto;
        transform: none;
    }

    .nav-open,
    .search-open {
        overflow: hidden;
    }

    .primary-nav__link {
        display: block;
        padding: 0.9rem;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: var(--radius-sm);
    }

    .mobile-nav-account {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-bottom: var(--space-3);
    }

    .mobile-nav-account > .button {
        flex: 1 1 0;
        width: auto;
    }

    .mobile-nav-account__identity,
    .mobile-nav-account__links {
        flex: 1 1 100%;
    }

    .mobile-nav-account__identity {
        display: grid;
        gap: 0.2rem;
        margin-bottom: var(--space-2);
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface-raised);
    }

    .mobile-nav-account__identity span {
        color: var(--text-muted);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-nav-account__identity strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-account__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }

    .mobile-nav-account__links a {
        min-width: 0;
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface);
        color: var(--text);
        font-size: 0.85rem;
        font-weight: 700;
        text-align: center;
    }

    .mobile-nav-language {
        display: grid;
        gap: var(--space-2);
        margin-top: var(--space-4);
        padding-top: var(--space-3);
        border-top: 1px solid var(--line);
    }

    .mobile-nav-language > strong {
        color: var(--text-muted);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-nav-language .language-switcher {
        display: block;
    }

    .mobile-nav-language .language-switcher summary {
        width: 100%;
        justify-content: space-between;
    }

    .site-header__inner > .language-switcher,
    .account-actions {
        display: none;
    }

    .nav-backdrop {
        position: fixed;
        z-index: 120;
        inset: var(--header-height) 0 0;
        width: 100%;
        border: 0;
        background: rgba(0, 0, 0, 0.62);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .nav-open .nav-backdrop,
    .search-open .nav-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .site-search {
        position: fixed;
        z-index: 135;
        top: calc(var(--header-height) + 0.75rem);
        right: max(1rem, env(safe-area-inset-right));
        left: max(1rem, env(safe-area-inset-left));
        max-width: none;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.75rem);
        transition: opacity 160ms ease, transform 160ms ease;
        filter: drop-shadow(0 0.75rem 1.5rem rgba(0, 0, 0, 0.45));
    }

    .search-open .site-search {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .media-grid,
    .media-grid > *,
    .media-grid__ad-island,
    .media-grid__ad-frame {
        min-width: 0;
    }

    .media-grid--watching {
        display: flex;
        gap: 1rem;
        margin-right: -1rem;
        padding-right: 1rem;
        padding-bottom: var(--space-2);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 0.25rem;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .media-grid--watching .media-card {
        flex: 0 0 clamp(15rem, 29vw, 20rem);
        scroll-snap-align: start;
    }
}

@media (hover: none) {
    .media-card__play { display: none; }
    /*
     * The save control is revealed on hover, with an override below 52rem. A
     * touch tablet wider than that got neither: no hover to reveal it and no
     * breakpoint to force it, so favouriting was invisible on the device most
     * likely to be used for browsing.
     */
    .media-card__save { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.auth-preview-grid .auth-page {
    min-height: auto;
    padding-top: var(--space-6);
}

@media (max-width: 52rem) {
}


.creator-edit-fields{border:0;padding:0;margin:0;min-width:0}
.creator-edit-fields[disabled]{opacity:.58}
.creator-edit-fields[disabled] input,.creator-edit-fields[disabled] textarea,.creator-edit-fields[disabled] select{cursor:not-allowed}


/* Creator gallery revision tools */
.creator-gallery-editor {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.creator-gallery-editor__heading,
.creator-gallery-editor__actions,
.creator-gallery-uploader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.creator-gallery-editor__heading h2 { margin: 0; }
.creator-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}
.creator-gallery-card {
    min-width: 0;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: var(--surface);
}
.creator-gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: .5rem;
    background: #09090b;
}
.creator-gallery-card__meta,
.creator-gallery-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    margin-top: .5rem;
}
.creator-gallery-card__actions .button {
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: .35rem .55rem;
}
.creator-gallery-card__remove { margin-left: auto; color: #ff6b7a; }
.creator-gallery-uploader {
    align-items: flex-end;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: .75rem;
}
.creator-gallery-uploader label { flex: 1; }
.creator-gallery-uploader input { margin-top: .5rem; }
.creator-gallery-uploader small { max-width: 22rem; }
@media (max-width: 42rem) {
    .creator-gallery-editor__heading,
    .creator-gallery-editor__actions,
    .creator-gallery-uploader { align-items: stretch; flex-direction: column; }
    .creator-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .creator-gallery-editor__actions .button,
    .creator-gallery-uploader .button { width: 100%; }
}


/* Account navigation: keep sign-out intentional and visually secondary. */
.account-menu__logout {
    border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12));
    margin-top: 0.5rem;
    padding-top: 0.85rem !important;
    color: var(--text-muted) !important;
}

.account-menu__logout {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-menu__logout small {
    color: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.72;
}

.account-menu__logout:hover,
.account-menu__logout:focus-visible {
    color: var(--accent, #ff3151) !important;
}


/* Compact authenticated navigation and deleted-content recovery. */
.mobile-account-cta svg,
.mobile-nav-account__power svg,
.account-menu__logout svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.mobile-account-cta svg {
    width: 1.4rem;
    height: 1.4rem;
}

.mobile-nav-account__identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.mobile-nav-account__identity > div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.mobile-nav-account__power {
    display: inline-flex;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.mobile-nav-account__power:hover,
.mobile-nav-account__power:focus-visible {
    border-color: rgba(255, 49, 80, 0.55);
    color: var(--accent);
}

.account-menu__logout svg {
    opacity: 0.78;
}

.deleted-content-page {
    padding-block: clamp(1.5rem, 5vw, 4rem);
}

.deleted-content-state {
    display: grid;
    justify-items: start;
    max-width: 48rem;
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.deleted-content-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(255, 49, 80, 0.35);
    border-radius: 50%;
    background: rgba(255, 49, 80, 0.08);
    color: var(--accent);
}

.deleted-content-state__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.deleted-content-state h1 {
    margin: 0.3rem 0 var(--space-3);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.deleted-content-state p {
    max-width: 40rem;
    margin: 0 0 var(--space-4);
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.deleted-content-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

@media (max-width: 52rem) {
    .mobile-account-cta {
        width: 3rem;
        min-width: 3rem;
        max-width: 3rem;
        min-height: 3rem;
        padding: 0;
        border-radius: var(--radius-sm);
    }

    .mobile-nav-account__links {
        grid-auto-rows: minmax(3.75rem, auto);
    }

    .mobile-nav-account__links > a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 3.75rem;
        padding: 0.75rem;
        text-align: center;
    }

    .deleted-content-page {
        padding-top: var(--space-5);
    }

    .deleted-content-state {
        margin-bottom: var(--space-7);
    }
}

@media (max-width: 35rem) {
    .mobile-account-cta {
        max-width: 3rem;
        padding-inline: 0;
    }

    .deleted-content-state__actions,
    .deleted-content-state__actions .button {
        width: 100%;
    }
}


/* Contextual account recovery. */
.auth-recovery-prompt {
    display: grid;
    gap: .35rem;
    margin: 0 0 var(--space-4);
    padding: var(--space-4);
    border: 1px solid rgba(255,49,80,.35);
    border-radius: var(--radius);
    background: rgba(255,49,80,.07);
}
.auth-recovery-prompt strong { color: var(--text); }
.auth-recovery-prompt span { color: var(--text-muted); font-size: .86rem; }
.auth-recovery-prompt a { margin-top: .25rem; font-weight: 750; }

/*
 * Lists inside page copy.
 *
 * `.prose` styled paragraphs and headings but left lists at browser defaults,
 * so items sat flush against each other and the only way to separate them was
 * an empty item -- which renders as a stray bullet. Spacing here is what that
 * blank line was standing in for.
 */
.prose ul,
.prose ol {
    margin: 0 0 var(--space-3);
    padding-left: 1.4rem;
}

.prose li + li {
    margin-top: 0.55rem;
}

.prose li > ul,
.prose li > ol {
    margin: 0.55rem 0 0;
}

/*
 * Text a member chose, which may have nothing to break at.
 *
 * Usernames are validated as [A-Za-z0-9._]+ -- spaces are not allowed at all --
 * so every username is one unbreakable word, and titles arriving from imports
 * are often dotted filenames. A long one sized its container to itself and
 * pushed the page sideways: a profile heading overflowed the viewport by 595px
 * on a phone and by 528px on a 1280px desktop, so a member could break their
 * own profile for everyone visiting it just by picking a long name.
 *
 * Two different rules on purpose. Headings that hold one chosen name get
 * `anywhere`, which also shrinks the box's min-content size -- that is what was
 * forcing the page wide. Everything else gets `break-word`, which breaks a word
 * only when it would otherwise overflow: applying `anywhere` to a row of
 * ordinary words hyphenated "Some where" and "Frien ds" across a narrow column.
 */
.profile-hero h1,
.media-card__title,
.person-card__body h3,
.creator-card__body h3,
/* The mailbox subject is deliberately one line with an ellipsis, so it is
   not listed here: overflow-wrap does nothing against white-space: nowrap,
   and a rule that cannot take effect reads as protection that is not there. */
.mailbox-row__person {
    overflow-wrap: anywhere;
}

.media-card__meta,
.comment__header a,
.comment__header strong,
.directory-heading h1 {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Messaging & Social v1 */
.conversation-list,.conversation-stream{display:grid;gap:var(--space-2)}
.conversation-card{display:grid;grid-template-columns:3.25rem minmax(0,1fr) auto;align-items:center;gap:var(--space-3);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--text)}
.conversation-card.is-unread{border-color:var(--accent);box-shadow:inset .22rem 0 var(--accent)}
.conversation-card__avatar{width:3.25rem;height:3.25rem;overflow:hidden;border-radius:50%;background:var(--surface-raised)}
.conversation-card__avatar img{width:100%;height:100%;object-fit:cover}.conversation-card__copy{display:grid;min-width:0;gap:.15rem}
.conversation-card__copy strong,.conversation-card__copy b,.conversation-card__copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-card__copy b{font-size:.92rem}.conversation-card__copy small,.conversation-card time{color:var(--text-muted);font-size:.78rem}
.conversation-thread{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.conversation-thread__header{position:relative;display:flex;justify-content:space-between;gap:var(--space-3);padding:var(--space-3);border-bottom:1px solid var(--line)}.conversation-thread__header h2{margin:.35rem 0 0}.conversation-thread__header p{margin:.2rem 0 0;color:var(--text-muted)}
.conversation-options{position:relative;flex:0 0 auto}.conversation-options>summary{width:2.75rem;height:2.75rem;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface-raised);cursor:pointer;list-style:none;transition:border-color .18s ease,background .18s ease}.conversation-options>summary::-webkit-details-marker{display:none}.conversation-options>summary:hover,.conversation-options[open]>summary{border-color:var(--accent);background:rgba(255,49,80,.12)}.conversation-options>summary svg{width:1.25rem;height:1.25rem;fill:currentColor}
.conversation-menu{position:absolute;z-index:18;top:calc(100% + .65rem);right:0;width:min(22rem,calc(100vw - 2rem));padding:.55rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-raised);box-shadow:var(--shadow)}.conversation-menu__heading{display:grid;gap:.1rem;padding:.7rem .75rem .8rem;border-bottom:1px solid var(--line)}.conversation-menu__heading small,.conversation-menu button small,.conversation-report>summary small{display:block;margin-top:.15rem;color:var(--text-muted);font-size:.74rem;font-weight:400}.conversation-menu form{margin:0}.conversation-menu button,.conversation-report>summary{width:100%;display:grid;grid-template-columns:2.2rem minmax(0,1fr);align-items:center;gap:.55rem;padding:.7rem;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text);text-align:left;cursor:pointer}.conversation-menu button:hover,.conversation-menu button:focus-visible,.conversation-report>summary:hover,.conversation-report>summary:focus-visible{background:rgba(255,255,255,.06)}.conversation-menu__icon{width:2rem;height:2rem;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.06);font-size:1.05rem}.conversation-report{border-top:1px solid var(--line);padding-top:.35rem}.conversation-report>summary{list-style:none;color:#ff8ca0}.conversation-report>summary::-webkit-details-marker{display:none}.conversation-report form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;padding:.25rem .7rem .7rem}.conversation-report input{width:100%;min-height:2.65rem}.conversation-report .button{display:inline-flex;width:auto;padding:.55rem .75rem;text-align:center}
.conversation-stream{max-height:62vh;padding:clamp(1rem,3vw,2rem);overflow-y:auto}.message-bubble{justify-self:start;width:min(78%,42rem);padding:.8rem 1rem;border-radius:1rem 1rem 1rem .25rem;background:var(--surface-raised);line-height:1.55;overflow-wrap:anywhere}.message-bubble.is-mine{justify-self:end;border-radius:1rem 1rem .25rem 1rem;background:rgba(255,49,80,.2)}.message-bubble time{display:block;margin-top:.35rem;color:var(--text-muted);font-size:.7rem;text-align:right}
.message-share-card{display:grid;gap:.15rem;margin-top:.7rem;padding:.7rem;border:1px solid var(--line);border-radius:var(--radius);background:rgba(0,0,0,.18);color:var(--text);overflow:hidden}.message-share-card.has-thumbnail{grid-template-columns:clamp(5.75rem,24%,8.5rem) minmax(0,1fr);align-items:stretch;padding:0}.message-share-card__media{display:block;min-height:5.75rem;background:var(--surface)}.message-share-card__media img{width:100%;height:100%;display:block;object-fit:cover}.message-share-card__copy{display:grid;align-content:center;gap:.15rem;min-width:0;padding:.7rem}.message-share-card__copy strong{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.message-share-card small,.message-share-card__copy>span{color:var(--text-muted);font-size:.72rem}
.conversation-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-2);padding:var(--space-3);border-top:1px solid var(--line)}.conversation-reply textarea{grid-column:1/-1;min-height:5.5rem;resize:vertical}
.message-share-picker{position:relative}.message-share-picker__toggle{display:inline-flex;align-items:center;gap:.4rem}.message-share-picker__panel{position:absolute;z-index:17;bottom:calc(100% + .5rem);left:0;width:min(30rem,calc(100vw - 2rem));padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-raised);box-shadow:var(--shadow)}.message-share-picker__heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.55rem}.message-share-picker__heading button,.message-share-selected>button{width:2rem;height:2rem;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.07);color:var(--text);cursor:pointer}
.message-share-results,.messaging-suggestions{display:grid;max-height:16rem;margin-top:.4rem;overflow-y:auto}.message-share-results button,.messaging-suggestions button{padding:.65rem;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;cursor:pointer}.message-share-results button{display:grid;grid-template-columns:2.2rem minmax(0,1fr);align-items:center;gap:.6rem}.message-share-results button:hover,.message-share-results button:focus-visible{background:rgba(255,255,255,.06)}.message-share-results button strong,.message-share-results button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-share-results button small{text-transform:capitalize;color:var(--text-muted);font-size:.7rem}.message-entity-icon{width:2rem;height:2rem;display:grid;place-items:center;border-radius:.55rem;background:rgba(255,49,80,.13);color:var(--accent)}.message-entity-icon svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.message-entity-icon--video svg path:first-child,.message-entity-icon--gallery svg path:first-child{fill:none}.message-share-selected{align-items:center;gap:.55rem;padding:.5rem .55rem;border:1px solid var(--accent);border-radius:var(--radius-sm);color:var(--text)}.message-share-selected:not([hidden]){display:flex}.message-share-selected>[data-message-share-selected-copy]{display:flex;min-width:0;align-items:center;gap:.55rem;flex:1}.message-share-selected [data-message-share-selected-copy]>span:last-child{display:grid;min-width:0}.message-share-selected strong,.message-share-selected small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-share-selected small{color:var(--text-muted);font-size:.7rem}
.messaging-autocomplete{position:relative}.messaging-suggestions{position:absolute;z-index:6;top:100%;left:0;right:0;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-raised);box-shadow:var(--shadow)}

/* Onboarding & Feedback v1 */
.activation-checklist{align-items:start}.activation-checklist__steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;flex:1}.activation-step{display:grid;grid-template-columns:1.7rem minmax(0,1fr);gap:.1rem .55rem;padding:.75rem;border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.025);color:var(--text)}.activation-step>span{grid-row:1/3;width:1.45rem;height:1.45rem;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:transparent}.activation-step strong,.activation-step small{min-width:0}.activation-step small{color:var(--text-muted);line-height:1.35}.activation-step.is-complete{opacity:.72}.activation-step.is-complete>span{border-color:#3ddc97;background:#3ddc97;color:#07130e}.feedback-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(18rem,.65fr);gap:var(--space-3);align-items:start}.feedback-layout textarea{min-height:8rem}.feedback-kind{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;border:0;padding:0}.feedback-kind legend{margin-bottom:.55rem}.feedback-kind label{display:flex}.feedback-kind span{width:100%;padding:.8rem;border:1px solid var(--line);border-radius:var(--radius-sm)}.feedback-kind input{position:absolute;opacity:0}.feedback-kind input:checked+span{border-color:var(--accent);background:rgba(255,49,80,.12)}.feedback-history{display:grid;gap:.55rem}.feedback-history article{display:grid;gap:.15rem;padding:.7rem;border-bottom:1px solid var(--line)}.feedback-history span{color:var(--text-muted);font-size:.78rem}.account-feedback-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:var(--space-3)}.account-feedback-card h2,.account-feedback-card p{margin:.15rem 0}
@media(max-width:47.99em){.activation-checklist__steps,.feedback-layout{grid-template-columns:1fr}.activation-checklist{padding-right:2.8rem}.feedback-kind{grid-template-columns:1fr}.account-feedback-card{align-items:stretch;flex-direction:column}}
@media(max-width:47.99em){.conversation-card{grid-template-columns:2.75rem minmax(0,1fr)}.conversation-card__avatar{width:2.75rem;height:2.75rem}.conversation-card time{grid-column:2}.message-bubble{width:90%}.conversation-reply{grid-template-columns:1fr}.conversation-reply>.button{width:100%}.conversation-menu{position:fixed;inset:auto .75rem .75rem;width:auto;max-height:min(75vh,34rem);overflow-y:auto;border-radius:1rem;padding:.7rem;box-shadow:0 -1rem 4rem rgba(0,0,0,.45)}.conversation-menu__heading{padding-top:.45rem}.conversation-report form{grid-template-columns:1fr}.conversation-report .button{width:100%}.message-share-picker__panel{position:fixed;inset:auto .75rem .75rem;width:auto;max-height:min(72vh,34rem);overflow:auto;border-radius:1rem;box-shadow:0 -1rem 4rem rgba(0,0,0,.45)}}

/*
 * The conversation header holds two things a member chose: a subject and a
 * username. Usernames cannot contain spaces, so they are always one word, and
 * the header is a flex row whose inner div defaults to min-width: auto -- it
 * could not shrink below its content, and pushed the row to 597px inside a
 * 390px screen. The conversation card next to it already sets min-width: 0;
 * this one was missed.
 */
.conversation-thread__header > div {
    min-width: 0;
}

.conversation-thread__header h2,
.conversation-thread__header p {
    overflow-wrap: anywhere;
}

/* Staff-only request cost. Deliberately quiet: it is a number to glance at,
   not part of the page. */
.footer-request-stats {
    margin: 1rem 0 0;
    opacity: .55;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
