.auth-card {
    width: min(480px, 100%);
    margin: 5vh auto;
}

.auth-card h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2.4rem, 8vw, 4rem);
}

.auth-intro {
    margin: 0 0 2rem;
    color: var(--muted);
}

.auth-field {
    margin: 1.15rem 0;
}

.auth-field > label,
.auth-label-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 800;
}

.auth-form input:not([type="checkbox"]):not([type="hidden"]) {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.8rem;
    border: 2px solid color-mix(in srgb, var(--ink) 32%, var(--line));
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    caret-color: var(--aqua-dark);
    font: inherit;
}

.auth-form input::placeholder {
    color: color-mix(in srgb, var(--ink) 68%, transparent);
    opacity: 1;
}

.auth-form input:not([type="checkbox"]):focus-visible,
.auth-form button:focus-visible,
.social-auth-button:focus-visible,
.auth-form a:focus-visible {
    outline: 3px solid var(--aqua-dark);
    outline-offset: 3px;
}

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.auth-label-row label {
    margin-bottom: 0.35rem;
}

.auth-label-row a {
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.15rem 0;
}

.auth-remember input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
    margin: 0;
    accent-color: var(--violet-dark);
}

.auth-remember label {
    font-weight: 700;
    cursor: pointer;
}

.auth-form .errorlist,
.auth-field-errors .errorlist {
    padding: 0;
    color: var(--danger);
    list-style: none;
}

.auth-errors,
.auth-field-errors {
    margin-top: 0.5rem;
    color: var(--danger);
    font-weight: 700;
}

.auth-errors {
    padding: 0.8rem 1rem;
    border: 2px solid var(--danger);
    border-radius: 8px;
    background: color-mix(in srgb, var(--danger) 12%, var(--paper));
}

.auth-field-error input:not([type="checkbox"]) {
    border-color: var(--danger);
}

.auth-form button {
    width: 100%;
    margin-top: 0.75rem;
}

.social-auth {
    display: grid;
    gap: 0.7rem;
}

.social-auth form {
    margin: 0;
}

.social-auth .social-auth-button {
    width: 100%;
    border: 2px solid color-mix(in srgb, var(--ink) 32%, var(--line));
    background: var(--paper);
    color: var(--ink);
    box-shadow: none;
}

.social-auth .social-auth-button:hover,
.social-auth .social-auth-button:focus-visible {
    border-color: var(--aqua-dark);
    background: var(--soft);
    color: var(--ink);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.auth-switch {
    color: var(--muted);
}

.auth-switch {
    margin: 1.5rem 0 0;
    text-align: center;
}

.verification-card {
    text-align: center;
}

.verification-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--aqua-dark));
    color: white;
    box-shadow: 0 12px 28px rgba(92, 36, 155, 0.24);
    font-size: 2rem;
    font-weight: 900;
}

.verification-card .auth-intro {
    line-height: 1.65;
}

.verification-help {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
    text-align: left;
}

.verification-help h2 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.verification-help p {
    margin: 0;
    color: var(--muted);
}

.connection-section {
    margin-bottom: 1.25rem;
}

.connection-section h2 {
    margin: 0 0 0.4rem;
}

.connection-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
    padding: 0;
    border: 0;
}

.connection-card {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    cursor: pointer;
}

.connection-card:has(input:checked) {
    border-color: var(--aqua-dark);
    background: color-mix(in srgb, var(--aqua) 10%, var(--paper));
}

.connection-card:focus-within {
    outline: 3px solid var(--aqua-dark);
    outline-offset: 3px;
}

.connection-card input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    accent-color: var(--violet-dark);
}

.connection-provider-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    font-weight: 900;
}

.connection-copy {
    display: grid;
}

.connection-copy span,
.connection-empty,
.connection-note {
    color: var(--muted);
}

.connection-status {
    color: var(--aqua-dark);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.connection-remove {
    margin-top: 0.25rem;
}

.connection-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.connection-actions form,
.connection-actions button {
    width: 100%;
    margin: 0;
}

.connection-actions button:focus-visible {
    outline: 3px solid var(--aqua-dark);
    outline-offset: 3px;
}

.connection-note {
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--aqua-dark);
}

/* One row per service: what it is, its state, and the one thing you can do. */
.account-rows {
    margin: 1.1rem 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    list-style: none;
    overflow: hidden;
}

.account-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: var(--paper);
}

.account-row + .account-row {
    border-top: 1px solid var(--line);
}

.account-row form {
    margin: 0;
}

.account-row-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.account-row-copy span {
    color: color-mix(in srgb, var(--muted) 80%, var(--ink));
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.account-row.is-connected .connection-provider-mark {
    background: var(--violet-dark);
    color: var(--paper);
}

.account-row .account-row-button {
    min-width: 7.5rem;
    margin: 0;
    padding: 0.5rem 0.9rem;
    border: 2px solid var(--violet-dark);
    border-radius: 8px;
    background: var(--violet-dark);
    color: var(--paper);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.account-row .account-row-button.is-quiet {
    border-color: color-mix(in srgb, var(--ink) 66%, var(--paper));
    background: transparent;
    color: var(--ink);
}

.account-row .account-row-button:focus-visible {
    outline: 3px solid var(--aqua-dark);
    outline-offset: 3px;
}

.account-row-note {
    max-width: 14rem;
    color: color-mix(in srgb, var(--muted) 80%, var(--ink));
    font-size: 0.85rem;
    text-align: right;
}

.account-rows-note {
    margin: 0.9rem 0 0;
    color: color-mix(in srgb, var(--muted) 80%, var(--ink));
    font-size: 0.9rem;
}

@media (max-width: 520px) {
    .account-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .account-row form {
        grid-column: 1 / -1;
    }

    .account-row .account-row-button {
        width: 100%;
    }

    .account-row-note {
        grid-column: 1 / -1;
        max-width: none;
        text-align: left;
    }
}

.connection-note strong {
    color: var(--ink);
}

.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;
}

.profile-shell {
    max-width: 1000px;
    margin: auto;
}

.profile-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 10px;
    background: #e9e7ed;
}

.profile-tabs a {
    padding: 0.55rem 0.9rem;
    border-radius: 7px;
    color: var(--muted);
    font-weight: 800;
}

.profile-tabs a.active {
    background: white;
    color: var(--violet-dark);
    box-shadow: 0 3px 10px rgba(38, 25, 65, 0.1);
}

.profile-account-header {
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.profile-nav-dropdown {
    position: relative;
    width: min(100%, 520px);
}

.profile-nav-dropdown > summary,
.profile-nav-group > summary {
    list-style: none;
}

.profile-nav-dropdown > summary::-webkit-details-marker,
.profile-nav-group > summary::-webkit-details-marker {
    display: none;
}

.profile-identity-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    cursor: default;
}

.profile-identity-card img,
.profile-identity-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-identity-avatar {
    display: grid;
    place-items: center;
    background: var(--avatar-color);
    color: white;
    font-size: 2rem;
    font-weight: 900;
}

.profile-identity-card .eyebrow {
    margin: 0 0 0.35rem;
}
.profile-identity-name {
    display: block;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 0.95;
}

.profile-identity-copy {
    min-width: 0;
}

.profile-nav-chevron {
    margin-left: auto;
    font-size: 1.4rem;
    transition: transform 150ms ease;
}

.profile-nav-dropdown[open] .profile-nav-chevron {
    transform: rotate(180deg);
}

.profile-nav-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.55rem);
    left: 0;
    width: min(100%, 520px);
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.profile-nav-group > summary {
    padding: 0.8rem 0.9rem;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 850;
    cursor: pointer;
}

.profile-nav-group > summary::after {
    float: right;
    content: "▸";
}

.profile-nav-group[open] > summary::after {
    content: "▾";
}

.profile-nav-group > summary:hover,
.profile-nav-group[open] > summary {
    background: var(--soft);
    color: var(--violet-dark);
}

.profile-account-header .profile-tabs {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.35rem;
    padding: 0.25rem 0 0.25rem 0.75rem;
    border-left: 2px solid var(--line);
    border-radius: 0;
    background: transparent;
}
.profile-account-header .profile-tabs a {
    display: flex;
    align-items: center;
    min-height: 42px;
}
.profile-relationship-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.profile-relationship-actions form {
    margin: 0;
}
.community-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.community-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
}
.community-list-row form {
    display: flex;
    gap: 0.4rem;
    margin: 0;
}
.profile-kick-link {
    margin: 1rem 0;
}
.profile-kick-link h3 { margin: 0 0 0.35rem; }
.stream-team-card {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.stream-team-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 780px) {
    .profile-account-header {
        align-items: stretch;
    }
    .profile-account-header .profile-tabs {
        overflow: visible;
    }
    .profile-account-header .profile-tabs a {
        flex: 0 0 auto;
    }
    .community-list-grid {
        grid-template-columns: 1fr;
    }
}

.form-alert,
.field-alert {
    padding: 0.75rem 0.9rem;
    border: 1px solid #f2a3b5;
    border-left: 4px solid var(--danger);
    border-radius: 7px;
    background: #fff0f4;
    color: #8d1633;
}

.form-alert {
    margin: 1rem 0;
}

.field-alert {
    margin-top: 0.45rem;
    font-size: 0.9rem;
}

.form-alert .errorlist,
.field-alert .errorlist {
    margin: 0.25rem 0 0;
}

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

.profile-avatar-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.profile-avatar-preview img,
.profile-avatar-preview > span {
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    place-items: center;
    border-radius: 50%;
    background: var(--avatar-color, var(--violet));
    color: white;
    object-fit: cover;
    font-size: 1.8rem;
    font-weight: 900;
}

.profile-avatar-preview p {
    margin: 0;
    color: var(--muted);
}

.profile-detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin: -0.25rem -0.25rem 2rem;
    padding: 0.55rem;
    border: 2px solid #c9bfd6;
    border-radius: 12px;
    background: #eeeaf3;
    box-shadow: 0 4px 14px rgba(38, 25, 65, 0.1);
}

.profile-detail-tab {
    position: relative;
    flex: 1;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    border: 1px solid #c9bfd6;
    border-radius: 8px;
    background: #fff;
    color: #51475d;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 900;
}

.profile-detail-tab:hover,
.profile-detail-tab:focus-visible {
    border-color: var(--violet);
    background: #f6efff;
    color: var(--violet-dark);
}

.profile-detail-tab.active {
    border-color: var(--violet-dark);
    background: var(--violet);
    color: #fff;
    box-shadow: 0 4px 10px rgba(92, 36, 155, 0.28);
}

.profile-detail-tab.active::after {
    position: absolute;
    right: 18%;
    bottom: 5px;
    left: 18%;
    height: 3px;
    border-radius: 999px;
    background: #fff;
    content: "";
}

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

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

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 800;
}

.field input:not([type="checkbox"]) {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font: inherit;
}

.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.theme-request-link {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.theme-save-status {
    min-height: 1.25em;
    margin: 0.35rem 0 0;
    color: var(--aqua-dark);
    font-size: 0.9rem;
    font-weight: 800;
}

.theme-save-status.is-error {
    color: var(--danger);
}

.theme-request-form {
    width: min(680px, 100%);
    margin: 0 auto;
}

.theme-request-form .field {
    margin: 1.25rem 0;
}

.choice-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.choice-list label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.choice-list label:has(input:checked) {
    border-color: var(--violet);
    background: #f0e4ff;
    color: var(--violet-dark);
}

.field-error input {
    border-color: var(--danger);
}

.errorlist {
    margin: 0.35rem 0;
    padding: 0;
    color: var(--danger);
    list-style: none;
}

.pseudonym-section {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.section-help,
.managed-post p {
    color: var(--muted);
}

.pseudonym-row {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin-top: 1rem;
}

.pseudonym-row .field {
    flex: 1;
}

.delete-check {
    padding-bottom: 0.65rem;
}

.pseudonym-delete-button {
    position: relative;
    flex: 0 0 auto;
    margin-bottom: 0;
    cursor: pointer;
}

.pseudonym-delete-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pseudonym-delete-button .delete-selected-label {
    display: none;
}

.pseudonym-delete-button:has(input:checked) {
    outline: 3px solid rgba(217, 54, 91, 0.22);
    background: #8d1633 !important;
}

.pseudonym-delete-button:has(input:checked) .delete-label {
    display: none;
}

.pseudonym-delete-button:has(input:checked) .delete-selected-label {
    display: inline;
}

.pseudonym-delete-button:focus-within {
    outline: 3px solid rgba(124, 44, 225, 0.3);
}

.post-manager {
    display: grid;
    gap: 1rem;
}

.post-filter {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
}

.post-filter label {
    align-self: center;
    font-weight: 800;
}

.post-filter select {
    min-width: 220px;
    min-height: 42px;
    padding: 0.55rem 2.2rem 0.55rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.managed-post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 1.6rem;
}

.managed-post h2 {
    margin: 0.5rem 0 0.2rem;
}

.managed-post p {
    margin: 0;
}

.status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-published {
    background: #d8f7ed;
    color: #087154;
}

.status-draft {
    background: #eeeaf3;
    color: #675d72;
}

.status-pending {
    background: #fff0c7;
    color: #7a5200;
}

.status-hidden {
    background: #ffe0e6;
    color: #8d1633;
}

.moderation-help {
    align-self: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.managed-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    position: relative;
}

.managed-post-actions form {
    margin: 0;
}

.post-schedule-status {
    color: var(--violet);
    font-weight: 750;
}

.post-scheduler > summary {
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

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

.post-scheduler[open] > summary {
    border-color: var(--violet);
    color: var(--violet);
}

.post-scheduler > form {
    position: absolute;
    z-index: 10;
    top: calc(100% + 0.5rem);
    right: 0;
    display: grid;
    width: min(340px, 85vw);
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.post-scheduler label {
    display: grid;
    gap: 0.35rem;
    font-weight: 800;
}

.post-scheduler input {
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--canvas);
    color: var(--ink);
}

.post-scheduler .helptext {
    color: var(--muted);
    font-size: 0.85rem;
}

.post-scheduler-actions {
    display: flex;
    gap: 0.55rem;
}

.empty-posts {
    text-align: center;
}

.gaming-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.gaming-profiles-panel {
    grid-column: 1 / -1;
}
.member-library-panel {
    grid-column: 1 / -1;
}
.gaming-profile-editor {
    margin: 1rem 0;
}
.gaming-profile-editor > summary {
    width: fit-content;
    list-style: none;
    cursor: pointer;
}
.gaming-profile-editor > summary::-webkit-details-marker {
    display: none;
}
.gaming-identity-form {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--canvas);
}
.gaming-identity-form ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.35rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    list-style: none;
}
.gaming-identity-form ul label {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}
.gaming-game-picker {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
}
.gaming-game-picker > label {
    display: grid;
    gap: 0.35rem;
    font-weight: 800;
}
.gaming-game-results {
    display: grid;
    gap: 0.35rem;
    max-height: 280px;
    overflow-y: auto;
}
.gaming-game-result {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 52px;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.gaming-game-result:hover,
.gaming-game-result:focus-visible {
    border-color: var(--violet);
    background: var(--soft);
}
.gaming-game-result img {
    width: 38px;
    height: 44px;
    border-radius: 5px;
    object-fit: cover;
}
.gaming-game-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.gaming-selected-game {
    min-height: 34px;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    color: var(--violet-dark);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}
.gaming-identity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
}
.gaming-identity-card,
.public-gaming-identity {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--paper) 95%, var(--aqua));
}
.gaming-identity-card > div:first-child {
    display: grid;
}
.gaming-visibility {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}
.gaming-tag,
.gaming-tags span {
    display: inline-block;
    margin: 0.15rem 0.2rem 0.15rem 0;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: var(--soft);
    color: var(--violet-dark);
    font-size: 0.78rem;
    font-weight: 800;
}
.public-gaming-profiles {
    grid-column: 1 / -1;
}
.public-gaming-identity + .public-gaming-identity {
    margin-top: 0.75rem;
}
.public-gaming-identity h3,
.public-gaming-identity p {
    margin-top: 0;
}
.gaming-handle {
    font-size: 1.05rem;
    font-weight: 800;
}
.voice-chat-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.voice-chat-actions details {
    position: relative;
}
.voice-chat-actions summary {
    list-style: none;
    cursor: pointer;
}
.voice-chat-actions summary::-webkit-details-marker {
    display: none;
}
.voice-chat-report-form {
    position: absolute;
    z-index: 10;
    top: calc(100% + 0.4rem);
    right: 0;
    width: min(340px, 80vw);
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.voice-chat-report-form p {
    display: grid;
    gap: 0.3rem;
}
.voice-chat-report-form select,
.voice-chat-report-form textarea {
    width: 100%;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.stacked-form p {
    display: grid;
    gap: 0.35rem;
}
.stacked-form input,
.stacked-form select {
    min-height: 44px;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.gaming-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
}
.gaming-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.gaming-list article > div:first-child {
    display: grid;
    gap: 0.2rem;
}
.gaming-list article span {
    color: var(--muted);
}
.gaming-list form {
    margin: 0;
}
.creator-toggle {
    margin-top: 1.25rem;
}
.gaming-list article .gaming-item-actions,
.section-heading-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.library-manager {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.library-manager > label {
    font-weight: 800;
}
.library-manager > input {
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.library-group {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--paper) 90%, var(--soft));
}
.library-group > summary {
    padding: 0.8rem 0.9rem;
    font-weight: 850;
    cursor: pointer;
}
.library-group > summary span {
    margin-left: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--soft);
    color: var(--violet-dark);
    font-size: 0.8rem;
}
.library-group > .gaming-list {
    padding: 0 0.75rem 0.75rem;
}
.library-group > .library-show-more {
    margin: 0 0.75rem 0.75rem;
}
.library-show-more[hidden] {
    display: none;
}
.library-group[hidden],
[data-library-item][hidden] {
    display: none;
}
.library-all-games > .library-show-more {
    margin-top: 0.75rem;
}
.library-item {
    flex-wrap: wrap;
}
.game-supporter-picker {
    flex: 1 0 100%;
    border-top: 1px solid var(--line);
}
.game-supporter-picker > summary {
    padding: 0.65rem 0 0;
    color: var(--violet-dark);
    font-weight: 800;
    cursor: pointer;
}
.game-supporter-picker > summary span {
    margin-left: 0.3rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--soft);
    font-size: 0.78rem;
}
.game-supporter-panel {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.65rem;
}
.game-supporter-panel > label {
    font-weight: 800;
}
.game-supporter-panel > input {
    min-height: 42px;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.game-supporter-results {
    display: grid;
    gap: 0.35rem;
    max-height: 240px;
    overflow-y: auto;
}
.game-supporter-results a {
    display: grid;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
}
.game-supporter-results a:hover,
.game-supporter-results a:focus-visible {
    border-color: var(--violet);
    background: var(--soft);
}
.game-supporter-results span,
.game-supporter-results small {
    color: var(--muted);
}
.game-supporter-results [hidden],
[data-supporter-empty][hidden] {
    display: none;
}
.library-game-identity {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.75rem;
}
.library-game-identity > img,
.library-game-identity > .game-choice-image {
    width: 44px;
    height: 54px;
    flex: 0 0 44px;
    border-radius: 6px;
    object-fit: cover;
}
.library-game-identity > span:last-child {
    display: grid;
    gap: 0.2rem;
}
.library-game-identity small {
    color: var(--muted);
    font-size: 0.92rem;
}
.followed-streamer-finder {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0 1.25rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--paper) 90%, var(--soft));
}
.followed-streamer-finder h3 {
    margin: 0;
}
.followed-streamer-finder > label {
    font-weight: 800;
}
.followed-streamer-finder > input {
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.followed-streamer-results {
    display: grid;
    gap: 0.5rem;
    max-height: 360px;
    overflow-y: auto;
}
.followed-streamer-option {
    display: grid;
    gap: 0.6rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}
.followed-streamer-option[hidden],
#followed-streamer-empty[hidden] {
    display: none;
}
.followed-streamer-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.followed-streamer-heading > img,
.followed-streamer-heading > .nav-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
}
.followed-streamer-heading > div {
    display: grid;
}
.followed-streamer-games {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.followed-streamer-games a {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: var(--soft);
    color: var(--violet-dark);
    font-size: 0.85rem;
    font-weight: 800;
}
.followed-streamer-games a span {
    margin-left: 0.25rem;
    color: var(--aqua-dark);
}
.library-save-status {
    min-height: 1.25em;
    margin: 0;
    color: var(--aqua-dark);
    font-weight: 800;
}
.library-save-status.is-error {
    color: var(--danger);
}
.supported-game-igns {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--paper) 90%, var(--soft));
}
.streamer-library-tools {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--paper) 92%, var(--soft));
}
.streamer-tools-panel {
    grid-column: 1 / -1;
}
.streamer-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.streamer-tool-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--paper) 92%, var(--soft));
}
.streamer-tool-card > .eyebrow,
.streamer-tool-card > h2,
.streamer-tool-card > .section-help {
    margin-top: 0;
}
.streamer-tool-card > label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 800;
}
.streamer-tool-card > input[type="search"] {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.streamer-request-game {
    margin: 0.65rem 0 1rem;
}
.streamer-followed-results {
    max-height: 270px;
    margin-bottom: 1rem;
    overflow-y: auto;
}
.streamer-channel-games-card {
    grid-column: 1 / -1;
}
.streamer-game-discovery {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
    gap: 0.7rem 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}
.streamer-game-discovery > div:first-child,
.streamer-game-discovery > .streamer-unity-results,
.streamer-game-discovery > .streamer-command-form {
    grid-column: 1 / -1;
}
.streamer-game-discovery h3,
.streamer-game-discovery p {
    margin: 0;
}
.streamer-game-discovery > label {
    align-self: center;
    font-weight: 800;
}
.streamer-game-discovery > input {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.streamer-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.streamer-section-heading h2,
.streamer-section-heading p {
    margin: 0;
}
.streamer-game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.streamer-game-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.streamer-game-card-header img,
.streamer-game-card-header .game-choice-placeholder {
    width: 54px;
    height: 68px;
    flex: 0 0 auto;
    border-radius: 7px;
    object-fit: cover;
}
.streamer-game-card-header h3,
.streamer-game-card-header small {
    display: block;
    margin: 0;
}
.streamer-game-card-header small {
    margin-top: 0.2rem;
    color: var(--muted);
}
.streamer-game-card-section {
    display: grid;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
.streamer-game-card-section h4 {
    margin: 0;
}
.streamer-card-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.streamer-add-command {
    position: relative;
}
.streamer-remove-game {
    display: flex;
    justify-content: flex-end;
}
.streamer-library-tools > h2,
.streamer-library-tools > p {
    margin-top: 0;
}
.supported-game-igns h3,
.supported-game-igns p {
    margin: 0;
}
.supported-game-ign-list {
    display: grid;
    gap: 0.75rem;
}
.supported-game-management-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}
.supported-game-ign-form {
    display: grid;
    gap: 0.5rem;
}
.supported-game-ign-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.supported-game-ign-heading img {
    width: 42px;
    height: 52px;
    border-radius: 5px;
    object-fit: cover;
}
.supported-game-ign-form > label {
    font-weight: 800;
}
.supported-game-ign-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
}
.supported-game-ign-controls input {
    min-width: 0;
}
.supported-game-command-list {
    display: grid;
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
.supported-game-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.streamer-command-form[hidden] {
    display: none;
}
.streamer-unity {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--paper) 90%, var(--soft));
}
.streamer-unity h3,
.streamer-unity p {
    margin: 0;
}
.streamer-unity > label {
    font-weight: 800;
}
.streamer-unity > input {
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.streamer-unity-results {
    display: grid;
    gap: 0.45rem;
    max-height: 360px;
    overflow-y: auto;
}
.streamer-unity-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}
.streamer-unity-result img {
    width: 42px;
    height: 52px;
    border-radius: 5px;
    object-fit: cover;
}
.streamer-unity-result > div {
    display: grid;
    gap: 0.15rem;
}
.streamer-unity-result small,
.streamer-unity-result span {
    color: var(--muted);
}
.section-heading-actions {
    justify-content: space-between;
}
.section-heading-actions h2 {
    margin: 0;
}
.gaming-item-actions details {
    position: relative;
}
.gaming-item-actions summary {
    cursor: pointer;
    list-style: none;
}
.gaming-item-actions summary::-webkit-details-marker {
    display: none;
}
.inline-edit-form {
    position: absolute;
    z-index: 5;
    right: 0;
    top: calc(100% + 0.5rem);
    display: grid;
    width: min(300px, 80vw);
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.inline-edit-form input,
.inline-edit-form select {
    min-height: 42px;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.inline-edit-form label {
    font-weight: 800;
}
.game-select {
    position: relative;
    width: 100%;
}
.game-select-trigger,
.game-select-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
    font: inherit;
}
.game-select-trigger {
    justify-content: flex-start;
}
.game-select-trigger::after {
    margin-left: auto;
    content: "▾";
}
.game-select-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.game-select-search {
    position: sticky;
    z-index: 1;
    top: 0;
    width: 100%;
    min-height: 44px;
    margin-bottom: 0.35rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.game-select-empty {
    margin: 0;
    padding: 0.75rem;
    color: var(--muted);
    text-align: center;
}
.game-select-option {
    border-color: transparent;
    border-radius: 7px;
    cursor: pointer;
}
.game-select-option[hidden] {
    display: none;
}
.game-select-option:hover,
.game-select-option:focus-visible {
    border-color: var(--violet);
    background: var(--soft);
}
.game-choice-image {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 6px;
    background: var(--soft);
    object-fit: contain;
}
.game-choice-placeholder {
    font-size: 1.25rem;
}

.supported-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
}
.supported-game-card {
    display: grid;
    gap: 0.6rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--canvas);
}
.supported-game-card:focus-within {
    border-color: var(--violet);
    background: var(--soft);
}
.supported-game-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
}
.supported-game-main img,
.supported-game-main > .game-choice-placeholder {
    width: 48px;
    height: 58px;
    flex: 0 0 48px;
    border-radius: 6px;
    object-fit: cover;
}
.supported-game-main > span:not(.game-choice-placeholder) {
    display: grid;
    gap: 0.2rem;
}
.supported-game-card small {
    color: var(--muted);
}
.supported-game-add {
    justify-content: center;
    text-align: center;
}
.favorite-streamer-row {
    border-top: 1px solid var(--line);
}
.favorite-streamer-row .community-list-row {
    border-top: 0;
}
.favorite-streamer-games {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 0 0.8rem;
}
.favorite-streamer-games > span {
    display: inline-flex;
    overflow: hidden;
    border-radius: 999px;
    background: var(--soft);
}
.favorite-streamer-games a {
    padding: 0.3rem 0.55rem;
    color: var(--violet-dark);
    font-size: 0.85rem;
    font-weight: 800;
}
.favorite-streamer-games .favorite-game-add {
    border-left: 1px solid var(--line);
    background: color-mix(in srgb, var(--violet) 16%, transparent);
}

.streamer-directory-header {
    margin-bottom: 1.5rem;
}
.streamer-directory-search {
    max-width: 680px;
    margin-top: 1.25rem;
}
.streamer-directory-search label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 800;
}
.streamer-directory-search > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
}
.streamer-directory-search input {
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.streamer-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.streamer-directory-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.streamer-card-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.streamer-card-heading img,
.streamer-card-heading > .nav-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    object-fit: cover;
}
.streamer-card-heading h2,
.streamer-card-heading p {
    margin: 0;
}
.streamer-supported-list {
    display: grid;
    gap: 0.5rem;
}
.streamer-supported-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.streamer-supported-list a {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: var(--soft);
    color: var(--violet-dark);
    font-size: 0.85rem;
    font-weight: 800;
}
.streamer-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
}
.streamer-card-actions form {
    margin: 0;
}

@media (max-width: 520px) {
    .streamer-directory-search > div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .streamer-dashboard-grid,
    .streamer-game-grid {
        grid-template-columns: 1fr;
    }
    .streamer-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .streamer-game-discovery {
        grid-template-columns: 1fr;
    }
    .streamer-game-discovery > * {
        grid-column: 1;
    }
    .supported-game-ign-controls {
        grid-template-columns: 1fr;
    }
    .supported-game-command {
        align-items: stretch;
        flex-direction: column;
    }
    .gaming-grid {
        grid-template-columns: 1fr;
    }
    .library-item {
        align-items: stretch !important;
        flex-direction: column;
    }
    .gaming-item-actions {
        flex-wrap: wrap;
    }
    .profile-header,
    .managed-post,
    .post-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .post-scheduler > form {
        position: static;
        margin-top: 0.5rem;
    }

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

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

    .connection-card {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .connection-status {
        grid-column: 2 / -1;
    }
}
.public-profile-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.public-profile-lists section {
    display: grid;
    align-content: start;
    gap: 0.55rem;
}
.preference-tree {
    margin-top: 1.5rem;
}
.preference-tree-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.8rem;
}
.preference-tree-tools .button {
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
}
.preference-tree-tools .button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}
.preference-category-list > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
}
.preference-category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--paper) 96%, var(--aqua-dark));
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}
.preference-category-card.is-expanded {
    border-color: color-mix(in srgb, var(--aqua-dark) 70%, var(--line));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.preference-category-option,
.preference-subcategory-option {
    list-style: none;
}
.preference-category-option label,
.preference-subcategory-option > label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}
.preference-category-option label {
    background: color-mix(in srgb, var(--aqua-dark) 10%, var(--paper));
}
.preference-category-option input,
.preference-subcategory-option input {
    accent-color: var(--aqua-dark);
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}
.preference-category-card > .preference-branch {
    display: none;
    padding: 0.45rem;
}
.preference-category-card.is-expanded > .preference-branch {
    display: grid;
    gap: 0.25rem;
}
.preference-subcategory-option {
    border-radius: 8px;
}
.preference-subcategory-option:hover {
    background: color-mix(in srgb, var(--aqua-dark) 9%, transparent);
}
.preference-child-branch {
    display: grid;
    gap: 0.2rem;
    margin-left: 1.2rem;
    padding-left: 0.55rem;
    border-left: 2px solid color-mix(in srgb, var(--aqua-dark) 35%, var(--line));
}
.preference-subcategory-option[hidden],
.preference-child-branch:empty {
    display: none;
}
.preference-option-name {
    line-height: 1.25;
}
@media (max-width: 620px) {
    .preference-category-list > div {
        grid-template-columns: 1fr;
    }
    .preference-child-branch {
        margin-left: 0.65rem;
    }
}
.preference-child-branch {
    position: relative;
    margin-left: 1.8rem;
    padding-left: 1rem;
}
.preference-child-branch > .preference-subcategory-option {
    position: relative;
}
.preference-child-branch > .preference-subcategory-option::before {
    position: absolute;
    top: 1.35rem;
    left: -1rem;
    width: 0.8rem;
    border-top: 2px solid color-mix(in srgb, var(--aqua-dark) 35%, var(--line));
    content: "";
}
.preference-child-branch .preference-child-branch {
    margin-left: 2rem;
}
@media (max-width: 620px) {
    .preference-child-branch,
    .preference-child-branch .preference-child-branch {
        margin-left: 1.15rem;
        padding-left: 0.75rem;
    }
    .preference-child-branch > .preference-subcategory-option::before {
        left: -0.75rem;
        width: 0.6rem;
    }
}
.preference-category-list > div {
    grid-template-columns: minmax(0, 1fr);
}
.preference-child-branch > .preference-subcategory-option:last-child::after {
    position: absolute;
    z-index: 1;
    top: 1.35rem;
    bottom: 0;
    left: -1.1rem;
    width: 4px;
    background: color-mix(in srgb, var(--paper) 96%, var(--aqua-dark));
    content: "";
}
.preference-child-branch > .preference-subcategory-option::before {
    z-index: 2;
}
.preference-child-branch {
    border-left: 0;
}
.preference-child-branch > .preference-subcategory-option::before {
    top: -0.2rem;
    left: -1rem;
    width: 0.8rem;
    height: 1.55rem;
    border-top: 0;
    border-bottom: 2px solid color-mix(in srgb, var(--aqua-dark) 35%, var(--line));
    border-left: 2px solid color-mix(in srgb, var(--aqua-dark) 35%, var(--line));
    background: none;
}
.preference-child-branch > .preference-subcategory-option:last-child::after {
    content: none;
}
.preference-child-branch > .preference-subcategory-option:not(:last-child)::after {
    position: absolute;
    z-index: 1;
    top: 1.35rem;
    bottom: -0.2rem;
    left: -1rem;
    border-left: 2px solid color-mix(in srgb, var(--aqua-dark) 35%, var(--line));
    content: "";
}
@media (max-width: 620px) {
    .preference-child-branch > .preference-subcategory-option::before {
        left: -0.75rem;
        width: 0.6rem;
    }
    .preference-child-branch > .preference-subcategory-option:not(:last-child)::after {
        left: -0.75rem;
    }
}
.preference-category-option,
.preference-subcategory-option {
    position: relative;
}
.preference-branch-toggle {
    position: absolute;
    z-index: 3;
    top: 0.48rem;
    right: 0.55rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    min-height: 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--aqua-dark) 45%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--paper) 88%, var(--aqua-dark));
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    line-height: 1;
    place-items: center;
    cursor: pointer;
}
.preference-branch-toggle:hover {
    background: color-mix(in srgb, var(--aqua-dark) 18%, var(--paper));
    transform: none;
}
.preference-category-option label,
.preference-subcategory-option > label {
    padding-right: 3rem;
}
.preference-category-card.is-expanded.is-collapsed > .preference-branch,
.preference-subcategory-option.is-collapsed > .preference-child-branch {
    display: none;
}
.preference-branch-toggle[hidden] {
    display: none;
}
.preference-child-branch > .preference-subcategory-option::before {
    height: calc(1.55rem + 2px);
}
.preference-child-branch > .preference-subcategory-option:not(:last-child)::after {
    top: calc(1.35rem + 2px);
}
.preference-child-branch > .preference-subcategory-option::before {
    height: 1.55rem;
    transform: translateY(4px);
}
.preference-child-branch > .preference-subcategory-option:not(:last-child)::after {
    top: calc(1.35rem + 4px);
}
.preference-child-branch > .preference-subcategory-option::before {
    top: -0.4rem;
    height: calc(1.75rem + 4px);
    border: 0;
    background:
        linear-gradient(
                color-mix(in srgb, var(--aqua-dark) 35%, var(--line)),
                color-mix(in srgb, var(--aqua-dark) 35%, var(--line))
            )
            left top/2px 100% no-repeat,
        linear-gradient(
                color-mix(in srgb, var(--aqua-dark) 35%, var(--line)),
                color-mix(in srgb, var(--aqua-dark) 35%, var(--line))
            )
            left bottom/100% 2px no-repeat;
    transform: none;
}
.preference-subcategory-option > label {
    position: relative;
    z-index: 3;
    border-radius: inherit;
    background: inherit;
}
.preference-subcategory-option::before,
.preference-subcategory-option::after {
    z-index: 1;
}
.preference-subcategory-option > .preference-child-branch {
    position: relative;
    z-index: 2;
}
.preference-category-card,
.preference-category-card.is-expanded {
    border-color: transparent;
    box-shadow: none;
}
.preference-category-card,
.preference-category-card.is-expanded {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.preference-subcategory-option {
    border-radius: 999px;
}
.preference-subcategory-option > label {
    border-radius: 999px;
}

/* Match the clearer taxonomy tree used by the post editor. */
.preference-category-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
}

.preference-category-card,
.preference-category-card.is-expanded {
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--paper) 97%, var(--aqua-dark));
    box-shadow: none;
}

.preference-category-option label,
.preference-subcategory-option > label {
    min-height: 42px;
    padding: 0.6rem 3rem 0.6rem 0.8rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-weight: 700;
}

.preference-category-option label {
    border-radius: 11px;
    background: color-mix(in srgb, var(--aqua-dark) 10%, var(--paper));
    font-weight: 850;
}

.preference-category-option label:has(input:checked),
.preference-subcategory-option > label:has(input:checked) {
    border: 0;
    background: var(--soft);
    color: var(--violet-dark);
}

.preference-category-option input,
.preference-subcategory-option input {
    accent-color: var(--violet-dark);
}

.preference-category-card > .preference-branch,
.preference-category-card.is-expanded > .preference-branch {
    gap: 0.2rem;
    padding: 0.55rem 0.7rem 0.7rem 1.15rem;
}

.preference-category-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.1rem 0 0.35rem;
}

.preference-category-actions .preference-select-all {
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    font-size: 0.88rem;
}

.preference-child-actions {
    margin-right: 0.25rem;
}

.preference-child-branch,
.preference-child-branch .preference-child-branch {
    margin: 0.1rem 0 0.2rem 1rem;
    padding: 0.15rem 0 0.15rem 0.75rem;
    border-left: 2px solid color-mix(in srgb, var(--aqua-dark) 35%, var(--line));
}

.preference-child-branch:empty {
    display: none;
}

.preference-child-branch > .preference-subcategory-option::before,
.preference-child-branch > .preference-subcategory-option::after {
    display: none;
    content: none !important;
}

.preference-subcategory-option:hover {
    background: transparent;
}

.preference-subcategory-option > label:hover {
    background: color-mix(in srgb, var(--aqua-dark) 8%, var(--paper));
}

.preference-branch-toggle {
    top: 0.42rem;
    right: 0.5rem;
}

@media (max-width: 620px) {
    .preference-child-branch,
    .preference-child-branch .preference-child-branch {
        margin-left: 0.75rem;
        padding-left: 0.6rem;
    }
}
.support-page { max-width: 980px; margin-inline: auto; }
.support-section-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.support-section-nav a { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.support-section-nav a:hover { border-color: var(--aqua-dark); }
/* Each kind of support is its own block, with its own accent, so the options
   in one section never run into the next. */
.support-section { --support-accent: var(--aqua-dark); margin-top: 1.75rem; padding: 1.25rem; border: 1px solid var(--line); border-left: 6px solid var(--support-accent); border-radius: 16px; background: var(--soft); scroll-margin-top: 6rem; }
.support-section-shop { --support-accent: #e0892f; }
.support-section-watch { --support-accent: #9147ff; }
.support-section-community { --support-accent: #5865f2; }
.support-section-share { --support-accent: #d6457a; }
.support-section-heading h2 { margin: 0; font-size: 1.35rem; }
.support-section-heading p { margin: .25rem 0 0; color: var(--muted); }
.support-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-top: 1.1rem; }
.support-link-card { display: flex; min-height: 130px; padding: 1.25rem; flex-direction: column; gap: .45rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 8px 26px rgb(0 0 0 / .08); transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.support-link-card:hover { border-color: var(--support-accent, var(--aqua-dark)); box-shadow: 0 13px 30px rgb(0 0 0 / .13); transform: translateY(-3px); }
.support-link-method { color: var(--aqua-dark); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.support-link-card strong { font-size: 1.15rem; }
.support-link-card small { color: var(--muted); line-height: 1.45; }
.support-link-action { margin-top: auto; color: var(--support-accent, var(--aqua-dark)); font-weight: 750; }
.support-empty { margin-top: 1.5rem; padding: 1rem; border-radius: 10px; background: var(--soft); }
