.ps-community-form,
.ps-community-notice,
.ps-topic-directory-card {
    box-sizing: border-box;
}

.ps-community-form {
    display: grid;
    gap: 1.25rem;
    max-width: 980px;
}

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

.ps-field {
    display: grid;
    gap: .45rem;
}

.ps-field label {
    font-weight: 700;
}

.ps-field input,
.ps-field select,
.ps-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 10px;
    padding: .8rem .9rem;
    background: rgba(15, 23, 42, .65);
    color: inherit;
    font: inherit;
}

.ps-field textarea {
    resize: vertical;
    min-height: 280px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.ps-field-help,
.ps-community-form-footer p,
.ps-topic-directory-card span,
.ps-topic-directory-card small {
    opacity: .72;
}

.ps-community-form-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ps-community-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background: var(--ps-accent, #d6253b);
    color: #fff;
}

.ps-community-button-secondary {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, .35);
}

.ps-community-notice {
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin: 0 0 1.25rem;
    background: rgba(30, 41, 59, .55);
}

.ps-community-notice-success {
    border-color: rgba(34, 197, 94, .5);
}

.ps-community-notice-error {
    border-color: rgba(239, 68, 68, .6);
}

.ps-code-example,
.ps-code-block pre {
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}

.ps-code-example {
    margin: .25rem 0 0;
    border-radius: 10px;
    padding: .8rem 1rem;
    background: #0b1020;
}

.ps-code-block {
    margin: 1.25rem 0;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 12px;
    overflow: hidden;
    background: #080d18;
}

.ps-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .75rem;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    background: rgba(15, 23, 42, .95);
}

.ps-code-language {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .8rem;
    opacity: .75;
}

.ps-copy-code {
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 7px;
    padding: .35rem .55rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ps-code-block pre {
    margin: 0;
    padding: 1rem 1.1rem;
    background: transparent;
}

.ps-code-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .92rem;
}

.ps-topic-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ps-topic-directory-card {
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(15, 23, 42, .5);
}

@media (max-width: 760px) {
    .ps-form-grid,
    .ps-topic-directory {
        grid-template-columns: 1fr;
    }
}

/* v0.2.0 — member accounts and developer profiles */
.ps-account-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.ps-account-sidebar,
.ps-account-main,
.ps-account-panel,
.ps-stat-card,
.ps-member-card,
.ps-profile-section,
.ps-profile-sidebar-card,
.ps-membership-card,
.ps-my-content-item {
    box-sizing: border-box;
}

.ps-account-sidebar {
    position: sticky;
    top: 6rem;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(15, 23, 42, .62);
}

.ps-account-person {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.ps-account-person > div {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.ps-account-person strong,
.ps-account-person span,
.ps-account-person small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-account-person span,
.ps-account-person small,
.ps-member-handle,
.ps-my-content-meta,
.ps-profile-activity-meta {
    opacity: .72;
}

.ps-member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, .25);
    background: rgba(15, 23, 42, .85);
}

.ps-account-person .ps-member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.ps-member-avatar-large {
    width: 112px;
    height: 112px;
    border-radius: 24px;
}

.ps-member-avatar-xl {
    width: 144px;
    height: 144px;
    border-radius: 30px;
}

.ps-account-nav {
    display: grid;
    gap: .35rem;
    margin: 1rem 0;
}

.ps-account-nav a,
.ps-account-public-link {
    display: block;
    border-radius: 9px;
    padding: .7rem .75rem;
    color: inherit;
    text-decoration: none;
}

.ps-account-nav a:hover,
.ps-account-nav a.is-active {
    background: rgba(214, 37, 59, .14);
    color: var(--ps-accent, #d6253b);
}

.ps-account-public-link {
    border-top: 1px solid rgba(148, 163, 184, .18);
    border-radius: 0;
    padding-top: 1rem;
}

.ps-account-main {
    min-width: 0;
}

.ps-account-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.ps-account-heading h2 {
    margin: .2rem 0 0;
}

.ps-account-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .75rem;
    font-weight: 800;
    opacity: .62;
}

.ps-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1rem;
}

.ps-stat-card {
    display: grid;
    gap: .2rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(15, 23, 42, .48);
}

.ps-stat-card strong {
    font-size: 1.5rem;
}

.ps-stat-card span {
    opacity: .7;
}

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

.ps-account-panel {
    padding: 1.05rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(15, 23, 42, .42);
}

.ps-account-panel h3,
.ps-profile-section h2,
.ps-profile-sidebar-card h2,
.ps-membership-card h3 {
    margin-top: 0;
}

.ps-account-panel a,
.ps-member-profile-links a,
.ps-profile-section a,
.ps-profile-activity-list a {
    color: var(--ps-accent, #d6253b);
}

.ps-profile-photo-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.ps-check-row {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    line-height: 1.4;
}

.ps-check-row input {
    width: auto;
    margin-top: .18rem;
}

.ps-skill-fieldset,
.ps-preference-fieldset {
    margin: 0;
    border: 0;
    padding: 0;
}

.ps-skill-fieldset legend,
.ps-preference-fieldset legend {
    font-weight: 700;
    margin-bottom: .4rem;
}

.ps-skill-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
}

.ps-skill-picker label {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    padding: .55rem .65rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 9px;
    font-weight: 500;
    background: rgba(15, 23, 42, .32);
}

.ps-skill-picker input {
    width: auto;
}

.ps-my-content-list {
    display: grid;
    gap: .75rem;
}

.ps-my-content-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 13px;
    background: rgba(15, 23, 42, .42);
}

.ps-my-content-item h3 {
    margin: .25rem 0 0;
    font-size: 1rem;
}

.ps-my-content-item h3 a {
    color: inherit;
    text-decoration: none;
}

.ps-my-content-meta,
.ps-profile-activity-meta {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    font-size: .8rem;
}

.ps-status {
    border-radius: 999px;
    padding: .12rem .45rem;
    background: rgba(148, 163, 184, .14);
}

.ps-status-publish {
    color: #86efac;
    background: rgba(34, 197, 94, .12);
}

.ps-status-pending {
    color: #fde68a;
    background: rgba(245, 158, 11, .12);
}

.ps-my-content-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex: 0 0 auto;
}

.ps-my-content-actions form {
    margin: 0;
}

.ps-text-button {
    border: 0;
    background: transparent;
    padding: .4rem .2rem;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.ps-danger-button {
    color: #fca5a5;
}

.ps-membership-card {
    padding: 1.25rem;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 16px;
    margin-bottom: 1rem;
    background: rgba(15, 23, 42, .5);
}

.ps-membership-card.is-pro {
    border-color: rgba(214, 37, 59, .7);
    box-shadow: inset 0 0 0 1px rgba(214, 37, 59, .15);
}

.ps-membership-label,
.ps-pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .18rem .45rem;
    font-size: .68rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .06em;
    color: #fff;
    background: var(--ps-accent, #d6253b);
}

.ps-pro-badge {
    margin-left: .4rem;
    vertical-align: .12em;
}

.ps-pro-badge-large {
    padding: .3rem .55rem;
}

.ps-members-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ps-member-card {
    display: flex;
    gap: .8rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: rgba(15, 23, 42, .46);
    transition: border-color .16s ease, transform .16s ease;
}

.ps-member-card:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 37, 59, .52);
}

.ps-member-card-body {
    min-width: 0;
    display: grid;
    gap: .2rem;
    align-content: start;
}

.ps-member-card-body > strong,
.ps-member-card-body > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-member-card-body > span {
    opacity: .68;
    font-size: .82rem;
}

.ps-member-card-body p {
    margin: .2rem 0;
    opacity: .88;
}

.ps-member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.ps-member-skills span,
.ps-member-skills a {
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 999px;
    padding: .25rem .5rem;
    font-size: .75rem;
    color: inherit;
    text-decoration: none;
    background: rgba(148, 163, 184, .08);
}

.ps-member-profile-page {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
}

.ps-member-profile-hero {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    padding: 1.3rem;
    border: 1px solid rgba(148, 163, 184, .23);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(214, 37, 59, .12), rgba(15, 23, 42, .58));
}

.ps-member-profile-intro {
    min-width: 0;
}

.ps-member-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}

.ps-member-name-row h1 {
    margin: 0;
}

.ps-member-handle {
    margin: .25rem 0;
}

.ps-member-headline {
    margin: .7rem 0;
    font-size: 1.06rem;
}

.ps-member-profile-links {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
}

.ps-member-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 1.1rem;
    margin-top: 1.1rem;
    align-items: start;
}

.ps-member-profile-main,
.ps-member-profile-sidebar {
    display: grid;
    gap: 1rem;
}

.ps-profile-section,
.ps-profile-sidebar-card {
    padding: 1.1rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(15, 23, 42, .42);
}

.ps-member-skills-large a {
    padding: .4rem .65rem;
    font-size: .84rem;
}

.ps-profile-activity-list {
    display: grid;
    gap: .65rem;
}

.ps-profile-activity-list article {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.ps-profile-activity-list article:last-child {
    border-bottom: 0;
}

.ps-profile-activity-list h3 {
    margin: .3rem 0 0;
    font-size: 1rem;
}

.ps-coming-soon-card {
    border-style: dashed;
}

.ps-member-private-notice {
    max-width: 720px;
    margin: 2rem auto;
}

@media (max-width: 980px) {
    .ps-account-shell,
    .ps-member-profile-grid {
        grid-template-columns: 1fr;
    }

    .ps-account-sidebar {
        position: static;
    }

    .ps-account-nav {
        grid-template-columns: repeat(7, minmax(max-content, 1fr));
        overflow-x: auto;
    }

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

    .ps-skill-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ps-stat-grid,
    .ps-account-panel-grid,
    .ps-members-directory,
    .ps-skill-picker {
        grid-template-columns: 1fr;
    }

    .ps-account-nav {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
    }

    .ps-account-heading,
    .ps-my-content-item,
    .ps-member-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .ps-my-content-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .ps-profile-photo-row {
        grid-template-columns: 1fr;
    }

    .ps-member-avatar-xl {
        width: 112px;
        height: 112px;
    }
}

.ps-account-logout-link {
    display: block;
    margin-top: .35rem;
    padding: .7rem .75rem;
    border-radius: 9px;
    color: #fca5a5;
    text-decoration: none;
}

.ps-account-logout-link:hover {
    background: rgba(239, 68, 68, .08);
}

/* v0.3.0 — responsive voting engine */
.ps-vote-controls {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: .25rem;
    min-width: 0;
}

.ps-vote-controls--card {
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.ps-vote-controls--single {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .45rem .55rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(15, 23, 42, .34);
}

.ps-vote-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    touch-action: manipulation;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
}

.ps-vote-button:hover:not(:disabled),
.ps-vote-button:focus-visible:not(:disabled) {
    border-color: rgba(148, 163, 184, .32);
    background: rgba(148, 163, 184, .1);
}

.ps-vote-button:active:not(:disabled) {
    transform: translateY(1px);
}

.ps-vote-button-up.is-active {
    color: #a9f3cb;
    border-color: rgba(34, 197, 94, .34);
    background: rgba(34, 197, 94, .12);
}

.ps-vote-button-down.is-active {
    color: #f9b1b1;
    border-color: rgba(239, 68, 68, .34);
    background: rgba(239, 68, 68, .12);
}

.ps-vote-button:disabled {
    cursor: not-allowed;
    opacity: .38;
}

.ps-vote-controls.is-busy .ps-vote-button {
    opacity: .5;
}

.ps-vote-score {
    min-width: 2.5ch;
    text-align: center;
    font-size: .9rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ps-vote-controls--single .ps-vote-score {
    min-width: 3ch;
    font-size: 1rem;
}

.ps-vote-breakdown {
    margin-left: .25rem;
    font-size: .75rem;
    opacity: .65;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .ps-vote-controls--card,
    .ps-vote-controls--single {
        flex-direction: row;
        width: auto;
    }

    .ps-vote-controls--card {
        justify-content: flex-start;
    }

    .ps-vote-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .ps-vote-score {
        min-width: 3.25ch;
        font-size: .95rem;
    }

    .ps-vote-breakdown {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .ps-community-form,
    .ps-account-shell,
    .ps-account-main,
    .ps-member-profile-page,
    .ps-topic-directory,
    .ps-members-directory {
        min-width: 0;
        max-width: 100%;
    }

    .ps-community-button {
        width: 100%;
        min-height: 44px;
    }

    .ps-community-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ps-code-toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ps-code-block pre,
    .ps-code-example {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* v0.3.1 side patch — custom responsive authentication */
.ps-auth-page .ps-content-narrow {
    width: min(calc(100% - 36px), 1180px);
}

.ps-auth-page article.ps-page {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ps-auth-page article.ps-page > h1 {
    display: none;
}

.ps-auth-page .ps-entry-content {
    margin-top: 0;
}

.ps-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    min-height: min(680px, calc(100vh - 190px));
    width: 100%;
    padding-block: clamp(1rem, 4vw, 3rem);
}

.ps-auth-intro,
.ps-auth-panel,
.ps-auth-form,
.ps-auth-panel-heading {
    min-width: 0;
}

.ps-auth-intro h1 {
    margin: .35rem 0 1rem;
    max-width: 720px;
    font-size: clamp(2.55rem, 6vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.065em;
}

.ps-auth-intro > p {
    max-width: 700px;
    margin: 0;
    color: #aeb8ca;
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.ps-auth-code {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1.5rem;
    color: #ffd3d9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
}

.ps-auth-code span {
    color: var(--ps-accent, #d6253b);
    font-weight: 900;
}

.ps-auth-benefits {
    display: grid;
    gap: .6rem;
    max-width: 720px;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.ps-auth-benefits li {
    position: relative;
    padding-left: 1.55rem;
    color: #c4cbda;
}

.ps-auth-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #78e3b5;
    font-weight: 900;
}

.ps-auth-panel {
    width: 100%;
    border-left: 1px solid rgba(148, 163, 184, .22);
    padding-left: clamp(1.5rem, 4vw, 3rem);
}

.ps-auth-panel-heading {
    margin-bottom: 1.25rem;
}

.ps-auth-panel-heading h2 {
    margin: 0 0 .3rem;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.ps-auth-panel-heading p {
    margin: 0;
    opacity: .72;
}

.ps-auth-form {
    display: grid;
    gap: 1rem;
}

.ps-auth-form .ps-field input {
    min-height: 48px;
}

.ps-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    width: fit-content;
}

.ps-auth-remember input,
.ps-auth-panel .ps-check-row input {
    width: auto;
}

.ps-auth-submit {
    min-height: 48px;
    width: 100%;
    margin-top: .15rem;
}

.ps-auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-top: 1.1rem;
    font-size: .92rem;
}

.ps-auth-links a {
    font-weight: 750;
}

.ps-recaptcha-wrap {
    width: 304px;
    max-width: 100%;
    min-height: 78px;
    overflow: visible;
}

.ps-recaptcha-scale {
    width: 304px;
    transform-origin: left top;
}

@media (max-width: 900px) {
    .ps-auth-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: 0;
        padding-block: 1rem 2rem;
    }

    .ps-auth-intro h1 {
        max-width: 850px;
        font-size: clamp(2.35rem, 9vw, 4.5rem);
    }

    .ps-auth-panel {
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, .22);
        padding: 1.5rem 0 0;
    }
}

@media (max-width: 560px) {
    .ps-auth-page .ps-content-narrow {
        width: min(calc(100% - 24px), 1180px);
    }

    .ps-auth-shell {
        gap: 1.4rem;
    }

    .ps-auth-intro h1 {
        font-size: clamp(2.1rem, 12vw, 3.25rem);
    }

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

    .ps-auth-links {
        flex-direction: column;
    }
}

@media (max-width: 350px) {
    .ps-recaptcha-wrap {
        width: 268px;
        height: 69px;
        min-height: 69px;
        overflow: visible;
    }

    .ps-recaptcha-scale {
        transform: scale(.88);
    }
}


/* v0.3.2 — frontend account access for operational staff */
.ps-account-backend-link {
    margin-top: .65rem;
    border-top: 1px solid rgba(148, 163, 184, .14);
    padding-top: .85rem;
}

/* v0.4.0 — form alignment audit */
.ps-community-form,
.ps-auth-form,
.ps-field,
.ps-form-grid,
.ps-community-form-footer,
.ps-profile-photo-row,
.ps-preference-fieldset,
.ps-skill-fieldset {
    min-width: 0;
    width: 100%;
}

.ps-community-form,
.ps-auth-form {
    align-items: stretch;
}

.ps-form-grid {
    align-items: start;
}

.ps-form-grid > .ps-field {
    align-content: start;
}

.ps-field > label,
.ps-field > legend {
    line-height: 1.35;
}

.ps-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ps-field select,
.ps-auth-form input:not([type="checkbox"]):not([type="radio"]),
.ps-community-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    min-height: 48px;
}

.ps-field input,
.ps-field select,
.ps-field textarea,
.ps-auth-form input,
.ps-auth-form select,
.ps-auth-form textarea,
.ps-community-form input,
.ps-community-form select,
.ps-community-form textarea {
    max-width: 100%;
    margin: 0;
}

.ps-field-help,
.ps-community-form-footer p {
    margin: .15rem 0 0;
}

.ps-check-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: .55rem;
    align-items: start;
    width: 100%;
}

.ps-check-row input[type="checkbox"],
.ps-check-row input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: .08rem 0 0;
}

.ps-community-form-footer {
    align-items: center;
}

.ps-community-button {
    min-height: 44px;
}

/* v0.4.0 — replies and Q&A */
.ps-reply-item {
    list-style: none;
    margin: 0;
    min-width: 0;
}

.ps-reply {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 18px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.ps-reply-item.is-accepted-answer > .ps-reply {
    margin: 8px 0;
    padding: 18px 14px;
    border: 1px solid rgba(34, 197, 94, .32);
    border-radius: 14px;
    background: rgba(34, 197, 94, .055);
}

.ps-reply-vote {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.ps-vote-controls--reply {
    flex-direction: column;
    width: 44px;
}

.ps-reply-main,
.ps-reply-author-block,
.ps-reply-content {
    min-width: 0;
}

.ps-reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 10px;
}

.ps-reply-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.ps-reply-author-block {
    display: grid;
    gap: 2px;
}

.ps-reply-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.ps-reply-author {
    color: inherit;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.ps-reply-date {
    color: inherit;
    opacity: .62;
    font-size: .77rem;
}

.ps-accepted-badge,
.ps-question-state {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: .25rem .52rem;
    font-size: .72rem;
    line-height: 1.1;
    font-weight: 850;
}

.ps-accepted-badge,
.ps-question-state-answered {
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, .32);
    background: rgba(34, 197, 94, .1);
}

.ps-question-state-unanswered {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, .32);
    background: rgba(245, 158, 11, .1);
}

.ps-question-state-closed {
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .3);
    background: rgba(148, 163, 184, .08);
}

.ps-reply-content {
    color: inherit;
    overflow-wrap: anywhere;
}

.ps-reply-content > :first-child {
    margin-top: 0;
}

.ps-reply-content > :last-child {
    margin-bottom: 0;
}

.ps-reply-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 12px;
    font-size: .82rem;
    font-weight: 700;
}

.ps-reply-actions a,
.ps-reply-actions button {
    color: inherit;
}

.ps-inline-action-form {
    display: inline-flex;
    margin: 0;
}

.ps-accept-button {
    color: #86efac !important;
}

.ps-question-state-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 22px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(148, 163, 184, .17);
    font-size: .88rem;
}

.ps-question-state-panel > a {
    font-weight: 750;
}

.ps-community-reply-form {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.ps-reply-form-title {
    margin: 0 0 12px;
}

.ps-community-reply-form .logged-in-as,
.ps-community-reply-form .must-log-in {
    margin: 0 0 10px;
}

.ps-community-reply-form .form-submit {
    margin: 0;
}

.ps-my-reply-excerpt {
    margin: .45rem 0 0;
    opacity: .74;
}

@media (max-width: 720px) {
    .ps-reply {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-block: 14px;
    }

    .ps-reply-vote {
        grid-row: 2;
        justify-content: flex-start;
    }

    .ps-vote-controls--reply {
        flex-direction: row;
        width: auto;
    }

    .ps-reply-main {
        grid-row: 1;
    }

    .ps-reply-item.is-accepted-answer > .ps-reply {
        padding: 14px 10px;
    }

    .ps-question-state-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .ps-reply-header {
        align-items: flex-start;
    }

    .ps-reply-avatar {
        width: 38px;
        height: 38px;
    }

    .ps-reply-actions {
        gap: 8px 11px;
    }

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

.ps-form-grid > .ps-field > label {
    display: flex;
    align-items: flex-end;
    min-height: 1.4rem;
}


/* v0.5.0 — durable reputation */
.ps-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ps-reputation-total {
    display: grid;
    justify-items: end;
    line-height: 1.05;
}

.ps-reputation-total strong,
.ps-public-reputation-total strong {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    color: #fff;
}

.ps-reputation-total span,
.ps-public-reputation-total span {
    margin-top: .25rem;
    font-size: .78rem;
    opacity: .68;
}

.ps-reputation-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.ps-reputation-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .9rem;
}

.ps-reputation-rules span {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    padding: .6rem .7rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 10px;
    background: rgba(15, 23, 42, .28);
}

.ps-reputation-rules strong {
    color: #ff9aa8;
}

.ps-topic-reputation-list {
    display: grid;
    gap: .45rem;
}

.ps-topic-reputation-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: .55rem .65rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
    background: rgba(15, 23, 42, .26);
}

.ps-topic-reputation-list a:hover {
    border-color: rgba(214, 37, 59, .5);
}

.ps-topic-reputation-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-topic-reputation-list strong {
    flex: 0 0 auto;
    color: #fff;
}

.ps-reputation-history {
    min-width: 0;
}

.ps-reputation-history h3 {
    margin-bottom: .7rem;
}

.ps-reputation-history-list {
    display: grid;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.ps-reputation-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    min-width: 0;
    padding: .8rem .25rem;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.ps-reputation-row > strong {
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
}

.ps-reputation-row > strong.is-positive { color: #86efac; }
.ps-reputation-row > strong.is-negative { color: #fca5a5; }

.ps-reputation-row > div {
    display: grid;
    min-width: 0;
}

.ps-reputation-row small,
.ps-reputation-row time {
    opacity: .64;
    font-size: .76rem;
}

.ps-public-reputation-total {
    display: grid;
    margin: .3rem 0 .9rem;
}

.ps-topic-reputation-list-compact a {
    padding: .45rem .55rem;
    font-size: .82rem;
}

@media (max-width: 980px) {
    .ps-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ps-stat-grid,
    .ps-reputation-layout,
    .ps-reputation-rules {
        grid-template-columns: 1fr;
    }

    .ps-account-heading .ps-reputation-total {
        justify-items: start;
    }

    .ps-reputation-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .ps-reputation-row time {
        grid-column: 2;
    }
}


/* v0.6.1 — AJAX homepage feed switching */
[data-ps-feed-root] .ps-feed-list {
    transition: opacity .16s ease;
}

[data-ps-feed-root].is-feed-loading .ps-feed-list {
    opacity: .42;
    pointer-events: none;
}

.ps-feed-status {
    min-height: 1px;
}

@media (prefers-reduced-motion: reduce) {
    [data-ps-feed-root] .ps-feed-list {
        transition: none;
    }
}


/* v0.6.2 — resilient account dashboard statistics */
.ps-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: .75rem;
    align-items: stretch;
}

.ps-stat-card {
    min-width: 0;
    overflow: hidden;
    align-content: start;
    padding: .9rem .95rem;
}

.ps-stat-card strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.08;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ps-stat-card span {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: .78rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .ps-stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }
}

@media (max-width: 720px) {
    .ps-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .ps-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* v0.7.0 — Global Search & Developer Discovery */
.ps-global-search-header {
    max-width: 920px;
    margin: 0 0 1.25rem;
}

.ps-global-search-header h1 {
    margin: .25rem 0 .55rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.ps-global-search-header p {
    max-width: 760px;
    margin: 0;
    opacity: .78;
}

.ps-global-search-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 16px;
    background: rgba(15, 23, 42, .38);
}

.ps-global-search-query {
    display: grid;
    gap: .45rem;
}

.ps-global-search-query > label,
.ps-search-filter-grid label {
    font-weight: 750;
}

.ps-global-search-query-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: stretch;
}

.ps-global-search-query-row input {
    min-width: 0;
    min-height: 46px;
}

.ps-search-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    align-items: end;
}

.ps-search-filter-grid .ps-field {
    min-width: 0;
}

.ps-search-filter-grid select {
    min-height: 44px;
}

.ps-search-section {
    margin-top: 1.6rem;
    min-width: 0;
}

.ps-search-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.ps-search-section-heading h2 {
    margin: .18rem 0 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.ps-search-section-heading > span {
    flex: 0 0 auto;
    opacity: .64;
    font-size: .82rem;
}

.ps-search-discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.ps-search-discovery-card,
.ps-search-member-card,
.ps-search-term-card,
.ps-related-item {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, .2);
    background: rgba(15, 23, 42, .36);
}

.ps-search-discovery-card {
    padding: 1rem;
    border-radius: 14px;
}

.ps-search-discovery-card h3 {
    margin: 0 0 .7rem;
    font-size: 1rem;
}

.ps-search-mini-list {
    display: grid;
    gap: .38rem;
}

.ps-search-mini-list > a {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .55rem .6rem;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
}

.ps-search-mini-list > a:hover {
    background: rgba(214, 37, 59, .08);
}

.ps-search-mini-list > a > span {
    display: grid;
    min-width: 0;
}

.ps-search-mini-list strong,
.ps-search-mini-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-search-mini-list small {
    opacity: .64;
    font-size: .74rem;
}

.ps-search-mini-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
}

.ps-search-members-grid,
.ps-search-term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: .8rem;
}

.ps-search-member-card,
.ps-search-term-card {
    display: flex;
    gap: .8rem;
    padding: .9rem;
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
}

.ps-search-member-card:hover,
.ps-search-term-card:hover,
.ps-related-item:hover {
    border-color: rgba(214, 37, 59, .55);
    background: rgba(214, 37, 59, .055);
}

.ps-search-member-card > div,
.ps-search-term-card {
    min-width: 0;
}

.ps-search-member-card > div {
    display: grid;
    align-content: start;
    gap: .18rem;
}

.ps-search-member-card > div > span {
    opacity: .65;
    font-size: .78rem;
}

.ps-search-member-card p {
    margin: .25rem 0;
    opacity: .8;
    font-size: .86rem;
}

.ps-search-term-card {
    display: grid;
    gap: .28rem;
}

.ps-search-term-card strong {
    font-size: 1rem;
}

.ps-search-term-card p {
    margin: .15rem 0;
    opacity: .74;
    font-size: .84rem;
}

.ps-search-term-card small {
    opacity: .58;
}

.ps-search-pagination {
    margin-top: 1rem;
}

.ps-search-pagination .page-numbers {
    margin: 0 .2rem .2rem 0;
}

.ps-related-discussions {
    margin-top: 1.6rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.ps-related-heading h2 {
    margin: .15rem 0 .75rem;
    font-size: 1.35rem;
}

.ps-related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.ps-related-item {
    display: grid;
    gap: .3rem;
    padding: .85rem;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.ps-related-item strong {
    line-height: 1.35;
}

.ps-related-item small {
    opacity: .6;
    font-size: .75rem;
}

.ps-related-type {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    color: #ff9aa8;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .68rem;
    font-weight: 800;
}

.ps-similar-results {
    margin-top: .55rem;
    padding: .75rem;
    border: 1px solid rgba(214, 37, 59, .25);
    border-radius: 11px;
    background: rgba(214, 37, 59, .045);
}

.ps-similar-results[hidden] {
    display: none !important;
}

.ps-similar-results strong.ps-similar-heading {
    display: block;
    margin-bottom: .45rem;
    color: #fff;
    font-size: .82rem;
}

.ps-similar-results ul {
    display: grid;
    gap: .3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-similar-results a {
    display: block;
    padding: .35rem 0;
    color: inherit;
    text-decoration: none;
}

.ps-similar-results a:hover {
    color: #ff9aa8;
}

.ps-similar-results small {
    display: block;
    opacity: .62;
    font-size: .72rem;
}

@media (max-width: 1080px) {
    .ps-search-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ps-search-filter-grid,
    .ps-search-discovery-grid,
    .ps-related-list {
        grid-template-columns: 1fr;
    }

    .ps-search-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
}

@media (max-width: 560px) {
    .ps-global-search-form {
        margin-inline: -2px;
        padding: .8rem;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .ps-global-search-query-row {
        grid-template-columns: 1fr;
    }

    .ps-global-search-query-row .ps-community-button {
        width: 100%;
    }

    .ps-search-members-grid,
    .ps-search-term-grid {
        grid-template-columns: 1fr;
    }
}

/* v0.8.0 — private saves and following */
.ps-relation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 0;
    white-space: nowrap;
}

.ps-relation-button.is-active {
    color: #ff9aa8 !important;
}

.ps-relation-button.is-busy {
    opacity: .62;
    cursor: wait;
}

.ps-thread-relationship-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, .16);
}

.ps-topic-follow-control {
    display: flex;
    align-items: center;
    margin-top: .85rem;
}

.ps-reply-save-button {
    padding: 0;
    min-height: 0;
    font-weight: inherit;
}

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

.ps-account-intro {
    margin: -.55rem 0 1.1rem;
    opacity: .76;
}

.ps-relationship-list {
    display: grid;
    gap: .35rem;
}

.ps-relationship-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    min-width: 0;
}

.ps-relationship-item:last-child {
    border-bottom: 0;
}

.ps-relationship-item > div {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.ps-relationship-title {
    color: inherit;
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ps-relationship-title:hover {
    color: #ff9aa8;
}

.ps-relationship-item small,
.ps-empty-inline {
    opacity: .66;
}

.ps-feed-tabs .ps-tab {
    flex: 0 0 auto;
}

@media (max-width: 820px) {
    .ps-relationship-account-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ps-thread-relationship-actions .ps-community-button {
        flex: 1 1 150px;
    }

    .ps-relationship-item {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .ps-relationship-item .ps-relation-button {
        width: fit-content;
    }
}


/* v0.9.0 — Reddit-style discussion UX */
.ps-reply-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: .25rem 0 1rem;
    font-size: .82rem;
}
.ps-reply-sort > span { opacity: .7; font-weight: 700; }
.ps-reply-sort-link { padding: .35rem .62rem; border-radius: 999px; color: inherit; border: 1px solid transparent; }
.ps-reply-sort-link.is-active { border-color: rgba(214,37,59,.35); background: rgba(214,37,59,.1); color: #fff; }
.ps-discussion-status { min-height: 1.2rem; margin: -.4rem 0 .45rem; font-size: .8rem; opacity: .72; }
.ps-comment-list.is-loading { opacity: .48; pointer-events: none; }
.ps-collapse-reply { flex: 0 0 auto; width: 24px; height: 24px; border: 0; border-radius: 6px; padding: 0; background: rgba(148,163,184,.1); color: inherit; line-height: 1; }
.ps-reply-meta-row { display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: center; font-size: .75rem; opacity: .68; }
.ps-role-badge { display:inline-flex; align-items:center; border-radius:999px; padding:.15rem .4rem; font-size:.62rem; font-weight:900; letter-spacing:.04em; }
.ps-role-badge-op { color:#fecdd3; background:rgba(214,37,59,.12); border:1px solid rgba(214,37,59,.3); }
.ps-role-badge-mod { color:#bfdbfe; background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.28); }
.ps-role-badge-pro { color:#fde68a; background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.28); }
.ps-reply-edited { font-style: italic; }
.ps-inline-reply-slot { margin-top: .8rem; }
.ps-inline-composer { gap: .7rem; padding: .85rem; border-left: 2px solid rgba(214,37,59,.4); background: rgba(255,255,255,.018); border-radius: 0 10px 10px 0; }
.ps-inline-composer > label { font-size:.82rem; font-weight:800; }
.ps-inline-composer textarea { min-height: 120px; resize: vertical; }
.ps-inline-composer-actions { display:flex; flex-wrap:wrap; gap:.55rem; }
.ps-reply-item.is-collapsed > .ps-reply .ps-reply-vote,
.ps-reply-item.is-collapsed > .ps-reply .ps-reply-content,
.ps-reply-item.is-collapsed > .ps-reply .ps-reply-actions,
.ps-reply-item.is-collapsed > .ps-reply .ps-inline-reply-slot,
.ps-reply-item.is-collapsed > .children { display:none !important; }
.ps-reply-item.is-collapsed > .ps-reply { padding-block: 9px; }
.ps-comment-list .children { border-left: 1px solid rgba(148,163,184,.18); margin-left: 1.2rem; padding-left: 1rem; }
@media (max-width: 720px) {
    .ps-comment-list .children { margin-left: .55rem; padding-left: .6rem; }
    .ps-reply-sort { overflow-x:auto; flex-wrap:nowrap; padding-bottom:.25rem; }
    .ps-reply-sort-link { white-space:nowrap; }
}
@media (max-width: 420px) {
    .ps-reply-header { gap:7px; }
    .ps-collapse-reply { width:22px; height:22px; }
    .ps-inline-composer-actions .ps-community-button { flex:1 1 auto; }
}

.ps-context-banner { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .75rem; margin:0 0 .8rem; padding:.7rem .85rem; border:1px solid rgba(214,37,59,.24); border-radius:10px; background:rgba(214,37,59,.05); font-size:.8rem; }
.ps-context-banner span { opacity:.72; }
.ps-context-banner a { margin-left:auto; font-weight:800; }
.ps-continue-thread { color:#ffb6c0 !important; }
@media (max-width:560px) { .ps-context-banner a { margin-left:0; width:100%; } }

/* v0.9.2 — thread/reply rendering hardening */
.ps-entry-content,
.ps-reply-content,
.ps-reply-main,
.ps-comments,
.ps-comment-list,
.ps-comment-list .children {
    min-width: 0;
    max-width: 100%;
}

.ps-entry-content .ps-code-block,
.ps-reply-content .ps-code-block {
    min-width: 0;
    max-width: 100%;
}

.ps-entry-content .ps-code-block pre,
.ps-reply-content .ps-code-block pre {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.ps-reply-content {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .ps-reply-content {
        overflow-x: hidden;
    }
}

/* v0.9.4 — native Reddit-style top-level discussion composer */
.ps-top-composer {
    margin: 0 0 1.15rem;
    min-width: 0;
}

.ps-top-composer-form {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(8, 11, 17, .72);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ps-top-composer-form:focus-within {
    border-color: rgba(214, 37, 59, .62);
    box-shadow: 0 0 0 3px rgba(214, 37, 59, .08);
}

.ps-top-composer-identity {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .72rem .85rem .4rem;
    color: rgba(226, 232, 240, .7);
    font-size: .76rem;
}

.ps-top-composer-identity strong {
    color: #fff;
}

.ps-top-composer-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.ps-top-composer-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 132px;
    max-height: 520px;
    margin: 0;
    padding: .7rem .9rem 1rem;
    resize: vertical;
    border: 0;
    outline: 0;
    border-radius: 0;
    background: transparent;
    color: #eef2f8;
    font: inherit;
    line-height: 1.6;
    box-shadow: none;
}

.ps-top-composer-form textarea::placeholder {
    color: rgba(203, 213, 225, .48);
}

.ps-top-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .62rem .7rem;
    border-top: 1px solid rgba(148, 163, 184, .14);
    background: rgba(255, 255, 255, .018);
}

.ps-top-composer-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    color: rgba(203, 213, 225, .56);
    font-size: .72rem;
}

.ps-composer-tool {
    min-height: 32px;
    padding: .32rem .58rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 7px;
    background: transparent;
    color: #d9deea;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.ps-composer-tool:hover,
.ps-composer-tool:focus-visible {
    border-color: rgba(214, 37, 59, .5);
    color: #fff;
}

.ps-top-composer-submit {
    flex: 0 0 auto;
    min-height: 36px;
    padding: .45rem .8rem;
}

.ps-top-composer-logged-out {
    padding: .8rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .015);
}

.ps-top-composer-prompt {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.ps-top-composer-prompt > div {
    min-width: 0;
    flex: 1 1 auto;
}

.ps-top-composer-prompt strong {
    display: block;
    color: #fff;
}

.ps-top-composer-prompt p {
    margin: .18rem 0 0;
    color: rgba(203, 213, 225, .64);
    font-size: .78rem;
}

.ps-top-composer-avatar-placeholder {
    display: block;
    background: rgba(148, 163, 184, .13);
    border: 1px solid rgba(148, 163, 184, .18);
}

.ps-comment-list:empty {
    margin: 0;
    padding: 0;
}

@media (max-width: 560px) {
    .ps-top-composer-footer,
    .ps-top-composer-prompt {
        align-items: stretch;
        flex-direction: column;
    }

    .ps-top-composer-tools {
        width: 100%;
    }

    .ps-top-composer-submit,
    .ps-top-composer-prompt .ps-community-button {
        width: 100%;
        justify-content: center;
    }
}

/* Submit page code-formatting sidebar. */
.ps-submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.5rem;
    align-items: start;
    max-width: 1240px;
}

.ps-submit-layout .ps-submit-form {
    max-width: none;
    min-width: 0;
}

.ps-submit-help {
    min-width: 0;
}

.ps-submit-help-card {
    box-sizing: border-box;
    padding: 1.15rem;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 12px;
    background: rgba(15, 23, 42, .5);
}

.ps-submit-help-card h2 {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
}

.ps-submit-help-card p {
    margin: 0 0 .8rem;
    line-height: 1.55;
}

.ps-submit-help-card .ps-code-example {
    max-width: 100%;
    margin: .9rem 0;
    overflow-x: auto;
    white-space: pre;
}

.ps-submit-help-tip {
    font-size: .92rem;
    opacity: .86;
}

.ps-submit-help-card ul {
    margin: .9rem 0 0;
    padding-left: 1.2rem;
}

.ps-submit-help-card li {
    margin: .45rem 0;
    line-height: 1.45;
}

@media (min-width: 961px) {
    .ps-submit-help-card {
        position: sticky;
        top: 92px;
    }
}

@media (max-width: 960px) {
    .ps-submit-layout {
        grid-template-columns: 1fr;
    }

    .ps-submit-help {
        order: 2;
    }
}

@media (max-width: 520px) {
    .ps-submit-help-card {
        padding: 1rem;
    }
}

/* v0.10.0 — on-site notification center */
.ps-notification-center {
    position: relative;
    flex: 0 0 auto;
}

.ps-notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: #e7ebf3;
    cursor: pointer;
}

.ps-notification-bell:hover,
.ps-notification-bell:focus-visible,
.ps-notification-center.is-open .ps-notification-bell {
    border-color: rgba(214, 37, 59, .55);
    background: rgba(214, 37, 59, .08);
    color: #fff;
}

.ps-notification-bell-icon {
    font-size: 1rem;
    line-height: 1;
}

.ps-notification-count {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #0b0d12;
    border-radius: 999px;
    background: #d6253b;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}

.ps-notification-menu {
    position: absolute;
    z-index: 250;
    top: calc(100% + 10px);
    right: 0;
    width: min(390px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 95px));
    overflow: hidden auto;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 12px;
    background: #10141d;
    box-shadow: 0 22px 55px rgba(0,0,0,.42);
}

.ps-notification-menu-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    background: #10141d;
}

.ps-notification-menu-head strong { color: #fff; }
.ps-notification-menu-list { min-width: 0; }
.ps-notification-loading,
.ps-notification-empty { margin: 0; padding: 1rem; color: rgba(203,213,225,.65); }

.ps-notification-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    min-width: 0;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
}

.ps-notification-item.is-compact { padding: 0; }
.ps-notification-item.is-compact .ps-notification-main { padding: .8rem 1rem; }
.ps-notification-item.is-unread { background: rgba(214, 37, 59, .045); }
.ps-notification-item.is-read { opacity: .72; }

.ps-notification-main {
    display: flex;
    flex: 1 1 auto;
    gap: .7rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.ps-notification-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: .45rem;
    border-radius: 50%;
    background: transparent;
}

.is-unread .ps-notification-dot { background: #d6253b; }

.ps-notification-copy {
    display: block;
    min-width: 0;
}
.ps-notification-copy strong,
.ps-notification-copy span,
.ps-notification-copy small { display: block; }
.ps-notification-copy strong { color: #fff; font-size: .88rem; }
.ps-notification-copy span { margin-top: .14rem; color: rgba(226,232,240,.76); font-size: .79rem; line-height: 1.42; overflow-wrap: anywhere; }
.ps-notification-copy small { margin-top: .32rem; color: rgba(148,163,184,.68); font-size: .69rem; }

.ps-notification-view-all {
    display: block;
    padding: .8rem 1rem;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.ps-notification-view-all:hover { background: rgba(255,255,255,.035); }

.ps-account-notifications .ps-notification-item { padding: 1rem; }
.ps-account-notifications .ps-notification-main { min-width: 0; }
.ps-notification-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: .65rem;
    padding-right: .2rem;
}
.ps-notification-pagination { margin-top: 1.2rem; }

@media (max-width: 700px) {
    .ps-notification-menu {
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 86px);
    }
    .ps-account-notifications .ps-notification-item {
        flex-direction: column;
    }
    .ps-notification-actions {
        width: 100%;
        padding-left: 1.45rem;
    }
}

@media (max-width: 420px) {
    .ps-notification-bell { width: 38px; height: 38px; }
    .ps-notification-menu-head { align-items: flex-start; }
}

/* v0.11.0 — account security and social sign-in */
.ps-social-auth {
    margin: 1rem 0 1.15rem;
}

.ps-auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .85rem 0;
    color: rgba(203,213,225,.58);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ps-auth-divider::before,
.ps-auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(148,163,184,.16);
}

.ps-social-auth-stack {
    display: grid;
    gap: .65rem;
}

.ps-social-auth-button {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
    min-height: 46px;
    padding: .7rem .85rem;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
    color: #eef2f7;
    font-weight: 700;
    text-decoration: none;
}

.ps-social-auth-button:hover,
.ps-social-auth-button:focus-visible {
    border-color: rgba(255,255,255,.36);
    background: rgba(255,255,255,.055);
    color: #fff;
}

.ps-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.ps-social-google .ps-social-icon,
.ps-social-icon.ps-social-google {
    background: #fff;
    color: #4285f4;
}

.ps-social-x .ps-social-icon,
.ps-social-icon.ps-social-x {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}

.ps-social-linkedin .ps-social-icon,
.ps-social-icon.ps-social-linkedin {
    background: #0a66c2;
    color: #fff;
}

.ps-social-discord .ps-social-icon,
.ps-social-icon.ps-social-discord {
    background: #5865f2;
    color: #fff;
}

.ps-social-github .ps-social-icon,
.ps-social-icon.ps-social-github {
    background: #f0f3f7;
    color: #111827;
}

.ps-auth-shell--mfa .ps-auth-panel {
    align-self: center;
}

.ps-security-summary,
.ps-security-card,
.ps-security-reminder {
    min-width: 0;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 12px;
    background: rgba(17,22,32,.72);
}

.ps-security-summary {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
}

.ps-security-summary.is-protected {
    border-color: rgba(34,197,94,.34);
}

.ps-security-summary.needs-action {
    border-color: rgba(245,158,11,.35);
}

.ps-security-summary h3,
.ps-security-card h3,
.ps-security-reminder strong {
    margin: 0;
    color: #fff;
}

.ps-security-summary p,
.ps-security-card p,
.ps-security-reminder p {
    margin: .35rem 0 0;
    color: rgba(226,232,240,.76);
    line-height: 1.55;
}

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

.ps-security-card {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
}

.ps-security-grid .ps-security-card {
    margin: 0;
}

.ps-security-state {
    display: inline-flex;
    margin-top: .8rem !important;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: rgba(214,37,59,.11);
    color: #fff !important;
    font-size: .76rem;
    font-weight: 800;
}

.ps-security-inline-form {
    margin-top: .85rem;
}

.ps-security-inline-form .ps-field {
    margin-bottom: .75rem;
}

.ps-security-secret {
    display: grid;
    gap: .35rem;
    margin: .9rem 0;
}

.ps-security-secret code,
.ps-security-uri {
    display: block;
    max-width: 100%;
    padding: .65rem .75rem;
    overflow-wrap: anywhere;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 8px;
    background: #090c12;
    color: #f8fafc;
}

.ps-security-choice-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1rem;
    margin-top: .8rem;
}

.ps-recovery-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .55rem;
    margin-top: .9rem;
}

.ps-recovery-code-grid code {
    padding: .6rem .7rem;
    border: 1px dashed rgba(148,163,184,.28);
    border-radius: 8px;
    background: #090c12;
    color: #fff;
    text-align: center;
    letter-spacing: .06em;
}

.ps-linked-provider-list,
.ps-trusted-device-list {
    display: grid;
    gap: .6rem;
    margin-top: .9rem;
}

.ps-linked-provider,
.ps-trusted-device {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .72rem .8rem;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 9px;
    background: rgba(255,255,255,.018);
}

.ps-linked-provider > div,
.ps-trusted-device > div {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.ps-linked-provider strong,
.ps-trusted-device strong {
    color: #fff;
}

.ps-linked-provider span,
.ps-trusted-device span,
.ps-security-muted {
    color: rgba(203,213,225,.62);
    font-size: .78rem;
}

.ps-inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: .38rem .65rem;
    border: 1px solid rgba(214,37,59,.36);
    border-radius: 7px;
    background: transparent;
    color: #ff6b7d;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.ps-inline-action:hover,
.ps-inline-action:focus-visible {
    background: rgba(214,37,59,.09);
    color: #fff;
}

.ps-security-reminder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border-color: rgba(245,158,11,.34);
    background: rgba(245,158,11,.055);
}

.ps-security-reminder-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: .55rem;
}

.ps-security-reminder-actions form {
    margin: 0;
}

@media (max-width: 760px) {
    .ps-security-grid,
    .ps-security-summary {
        grid-template-columns: 1fr;
    }

    .ps-security-reminder {
        align-items: flex-start;
        flex-direction: column;
    }

    .ps-security-reminder-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ps-recovery-code-grid {
        grid-template-columns: 1fr;
    }

    .ps-linked-provider,
    .ps-trusted-device {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ps-linked-provider form,
    .ps-linked-provider .ps-inline-action,
    .ps-trusted-device form,
    .ps-trusted-device .ps-inline-action {
        margin-left: 36px;
    }

    .ps-security-reminder-actions,
    .ps-security-reminder-actions .ps-community-button,
    .ps-security-reminder-actions form {
        width: 100%;
    }
}

.ps-provider-unlink-form {
    display: flex;
    flex: 0 1 310px;
    justify-content: flex-end;
    gap: .45rem;
    margin: 0;
}

.ps-provider-reauth {
    min-width: 0;
    width: 170px;
    min-height: 34px;
    padding: .36rem .55rem;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 7px;
    background: #090c12;
    color: #fff;
    font: inherit;
    font-size: .76rem;
}

@media (max-width: 560px) {
    .ps-provider-unlink-form {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 36px;
    }

    .ps-provider-reauth {
        flex: 1 1 auto;
        width: auto;
    }
}

/* v0.12.0 — wider account workspace + identity verification */
.ps-account-page .ps-content-narrow {
    width: min(calc(100% - 36px), 1460px);
    max-width: 1460px;
}
.ps-account-page .ps-page {
    padding-inline: clamp(20px, 3vw, 42px);
}
.ps-account-shell {
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: clamp(1.5rem, 2.6vw, 2.5rem);
}
.ps-account-main { min-width: 0; }
.ps-account-panel-grid { gap: 1.15rem; }
.ps-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.ps-stat-card { min-width: 0; }
.ps-stat-card strong {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.ps-identity-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.ps-identity-status { margin: .6rem 0 1rem; }
.ps-identity-status strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(148,163,184,.12);
    border: 1px solid rgba(148,163,184,.22);
}
.ps-identity-status-verified strong { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
.ps-identity-status-pending strong { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
.ps-identity-status-denied strong { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }
.ps-identity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: .4rem;
    border-radius: 50%;
    border: 1px solid rgba(255,215,64,.72);
    background: linear-gradient(145deg, #6b4b00, #2b2106);
    color: #ffd84d;
    font-size: .76rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.03em;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 5px rgba(0,0,0,.35);
}
.ps-identity-badge-system {
    width: auto;
    min-width: 30px;
    padding-inline: .38rem;
    border-radius: 999px;
    border-color: rgba(168,85,247,.45);
    background: rgba(126,34,206,.18);
    color: #e9d5ff;
    font-size: .64rem;
    letter-spacing: .03em;
}
.ps-identity-badge.is-compact { width: 18px; height: 18px; font-size: .62rem; }
.ps-identity-badge-system.is-compact { width: auto; min-width: 25px; }
.ps-member-profile-avatar-wrap,
.ps-account-avatar-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.ps-member-profile-avatar-wrap > .ps-identity-badge,
.ps-account-avatar-wrap > .ps-identity-badge {
    position: absolute;
    right: -4px;
    bottom: 4px;
    margin: 0;
    box-shadow: 0 0 0 3px #0b0d12, inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 5px rgba(0,0,0,.35);
}
.ps-account-avatar-wrap > .ps-identity-badge { right: -3px; bottom: 2px; }
.ps-member-name-row { flex-wrap: wrap; }
@media (max-width: 1080px) {
    .ps-account-page .ps-content-narrow { width: min(calc(100% - 28px), 1180px); }
    .ps-account-shell { grid-template-columns: 230px minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 980px) {
    .ps-account-shell { grid-template-columns: 1fr; }
    .ps-identity-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .ps-account-page .ps-content-narrow { width: min(calc(100% - 20px), 100%); }
    .ps-account-page .ps-page { padding-inline: 16px; }
    .ps-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
    .ps-stat-grid { grid-template-columns: 1fr; }
}

/* v0.12.1 — mobile Account usability side patch */
.ps-account-menu-toggle { display: none; }
.ps-account-menu-panel { min-width: 0; }

@media (max-width: 980px) {
    .ps-account-page .ps-content-narrow {
        width: min(calc(100% - 20px), 100%);
        max-width: none;
    }
    .ps-account-page .ps-page {
        padding: 18px 14px 28px;
        overflow: visible;
    }
    .ps-account-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        width: 100%;
        min-width: 0;
    }
    .ps-account-sidebar,
    .ps-account-main,
    .ps-account-panel,
    .ps-identity-layout,
    .ps-community-form {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .ps-account-sidebar {
        position: static;
        top: auto;
        padding: .9rem;
        border-radius: 14px;
        overflow: hidden;
    }
    .ps-account-person {
        padding-bottom: .85rem;
    }
    .ps-account-person .ps-member-avatar {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }
    .ps-account-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-height: 44px;
        margin-top: .8rem;
        padding: .7rem .8rem;
        border: 1px solid rgba(148,163,184,.24);
        border-radius: 10px;
        background: #0d1119;
        color: #fff;
        font-weight: 800;
        text-align: left;
    }
    .ps-account-menu-toggle[aria-expanded="true"] > span:last-child {
        transform: rotate(180deg);
    }
    .ps-account-menu-panel { display: none; padding-top: .55rem; }
    .ps-account-sidebar.is-menu-open .ps-account-menu-panel { display: block; }
    .ps-account-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: initial;
        gap: .45rem;
        margin: 0 0 .7rem;
        overflow: visible;
    }
    .ps-account-nav a {
        display: flex;
        align-items: center;
        min-height: 42px;
        min-width: 0;
        padding: .65rem .7rem;
        border: 1px solid rgba(148,163,184,.14);
        overflow-wrap: anywhere;
    }
    .ps-account-public-link,
    .ps-account-logout-link {
        min-height: 42px;
        padding: .7rem .75rem;
    }
    .ps-account-heading {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .8rem;
        margin-bottom: 1rem;
    }
    .ps-account-heading > * { min-width: 0; }
    .ps-account-heading h2 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .ps-account-heading .ps-community-button,
    .ps-account-heading .ps-button-secondary {
        width: 100%;
    }
    .ps-account-panel-grid,
    .ps-identity-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .ps-account-panel,
    .ps-stat-card {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 560px) {
    .ps-account-page .ps-content-narrow { width: calc(100% - 12px); }
    .ps-account-page .ps-page { padding: 14px 8px 24px; }
    .ps-account-sidebar { padding: .75rem; }
    .ps-account-person { gap: .7rem; }
    .ps-account-nav { grid-template-columns: minmax(0, 1fr); }
    .ps-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .ps-stat-card { padding: .8rem; }
    .ps-account-panel { padding: .9rem; }
    .ps-community-form input,
    .ps-community-form select,
    .ps-community-form textarea,
    .ps-community-form button,
    .ps-community-form .ps-community-button {
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .ps-stat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* v0.13.0 — public @handle management */
.ps-handle-panel {
    margin-top: 1.25rem;
}
.ps-account-heading-compact {
    margin-bottom: .75rem;
}
.ps-handle-current {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .45rem .7rem;
    border: 1px solid rgba(214,37,59,.34);
    border-radius: 999px;
    background: rgba(214,37,59,.08);
    color: #fff;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.ps-handle-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin: 1rem 0;
}
.ps-handle-policy-grid > div {
    min-width: 0;
    padding: .8rem;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 10px;
    background: #0d1119;
}
.ps-handle-policy-grid strong,
.ps-handle-policy-grid span {
    display: block;
}
.ps-handle-policy-grid span {
    margin-top: .3rem;
    color: #aab3c1;
    overflow-wrap: anywhere;
}
.ps-handle-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 10px;
    background: #0b0f16;
    overflow: hidden;
}
.ps-handle-input-wrap > span {
    flex: 0 0 auto;
    padding: 0 .1rem 0 .8rem;
    color: #8f9bab;
    font-weight: 800;
}
.ps-handle-input-wrap input {
    min-width: 0;
    flex: 1 1 auto;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.ps-handle-availability {
    min-height: 1.35em;
    margin: .45rem 0 0;
    font-size: .9rem;
    font-weight: 700;
}
.ps-handle-availability.is-checking { color: #aab3c1; }
.ps-handle-availability.is-available { color: #8ee6a5; }
.ps-handle-availability.is-unavailable { color: #ff8998; }

@media (max-width: 760px) {
    .ps-handle-policy-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ps-handle-panel .ps-account-heading-compact {
        gap: .65rem;
    }
    .ps-handle-current {
        align-self: flex-start;
    }
}

/* v0.14.0 — Moderation & abuse controls */
.ps-thread-moderation-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ps-border, #252b38);
}

.ps-report-control,
.ps-moderator-quick-controls {
    position: relative;
}

.ps-report-control > summary,
.ps-moderator-quick-controls > summary {
    cursor: pointer;
    list-style: none;
    color: var(--ps-muted, #9ba4b5);
    font-size: .86rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ps-report-control > summary::-webkit-details-marker,
.ps-moderator-quick-controls > summary::-webkit-details-marker {
    display: none;
}

.ps-report-form {
    width: min(380px, calc(100vw - 32px));
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--ps-border, #293142);
    border-radius: 12px;
    background: var(--ps-panel, #10151f);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
    position: relative;
    z-index: 12;
}

.ps-report-form label {
    display: grid;
    gap: 6px;
    font-size: .82rem;
    color: var(--ps-muted, #a5adba);
}

.ps-report-form select,
.ps-report-form textarea,
.ps-moderation-inline-form input,
.ps-moderation-note-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--ps-border, #30384a);
    border-radius: 9px;
    background: #0b1018;
    color: var(--ps-text, #f5f7fb);
    padding: 10px 11px;
}

.ps-report-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.ps-moderator-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--ps-border, #293142);
    border-radius: 10px;
    background: var(--ps-panel, #10151f);
}

.ps-role-badge-pin {
    border-color: rgba(234, 179, 8, .45) !important;
    background: rgba(234, 179, 8, .12) !important;
    color: #fde68a !important;
}

.ps-moderation-workspace {
    min-width: 0;
}

.ps-moderation-open-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(230, 35, 61, .35);
    border-radius: 999px;
    background: rgba(230, 35, 61, .09);
    color: #ff8f9d;
    font-size: .8rem;
    font-weight: 700;
}

.ps-moderation-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.ps-moderation-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--ps-border, #293142);
    border-radius: 9px;
    color: var(--ps-muted, #abb3c2);
    text-decoration: none;
}

.ps-moderation-tabs a.is-active {
    border-color: rgba(230, 35, 61, .45);
    background: rgba(230, 35, 61, .13);
    color: #fff;
}

.ps-moderation-report-list {
    display: grid;
    gap: 16px;
}

.ps-moderation-report-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--ps-border, #293142);
    border-radius: 14px;
    background: var(--ps-panel, #10151f);
}

.ps-moderation-report-card > header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.ps-moderation-report-card > header > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ps-moderation-report-card > header time {
    white-space: nowrap;
    color: var(--ps-muted, #929baa);
    font-size: .78rem;
}

.ps-moderation-target,
.ps-moderation-details {
    overflow-wrap: anywhere;
}

.ps-moderation-notes {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--ps-border, #293142);
    border-radius: 10px;
    background: #0b1018;
    color: var(--ps-muted, #c0c6d1);
    font: inherit;
    font-size: .84rem;
}

.ps-moderation-actions-grid,
.ps-moderation-object-actions,
.ps-moderation-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 14px;
}

.ps-moderation-object-actions h4,
.ps-moderation-user-actions h4 {
    flex: 0 0 100%;
    margin: 0 0 2px;
}

.ps-moderation-note-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
}

.ps-moderation-note-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ps-moderation-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.ps-moderation-inline-form input[type="text"] {
    width: min(280px, 100%);
}

.ps-moderation-inline-form input[type="number"] {
    width: 86px;
    min-height: 38px;
    border: 1px solid var(--ps-border, #30384a);
    border-radius: 9px;
    background: #0b1018;
    color: #fff;
    padding: 8px 9px;
}

.ps-moderation-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.ps-account-restriction-notice {
    margin-bottom: 18px;
}

.ps-member-profile-links .ps-report-control {
    display: inline-block;
}

.ps-reply-actions .ps-report-control {
    display: inline-block;
}

.ps-reply-actions .ps-report-control > summary {
    font-size: inherit;
}

@media (max-width: 720px) {
    .ps-moderation-report-card {
        padding: 14px;
    }

    .ps-moderation-report-card > header {
        display: grid;
        gap: 8px;
    }

    .ps-moderation-report-card > header time {
        white-space: normal;
    }

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

    .ps-moderation-inline-form,
    .ps-moderation-actions-grid,
    .ps-moderation-object-actions,
    .ps-moderation-user-actions {
        align-items: stretch;
    }

    .ps-moderation-inline-form > *,
    .ps-moderation-inline-form input[type="text"],
    .ps-moderation-inline-form input[type="number"] {
        width: 100%;
        max-width: none;
    }

    .ps-moderation-pagination {
        flex-wrap: wrap;
    }
}

.ps-moderation-audit {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--ps-border, #293142);
}

.ps-moderation-audit-list {
    display: grid;
    gap: 6px;
}

.ps-moderation-audit-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .8fr) minmax(100px, .7fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: .82rem;
}

.ps-moderation-audit-row span,
.ps-moderation-audit-row time {
    color: var(--ps-muted, #9ba4b5);
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .ps-moderation-audit-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* AI responder disclosure */
.ps-role-badge-ai { display:inline-flex; align-items:center; padding:.12rem .42rem; border-radius:999px; border:1px solid rgba(168,85,247,.45); background:rgba(126,34,206,.18); color:#e9d5ff; font-size:.65rem; font-weight:800; letter-spacing:.04em; }
.ps-ai-profile-disclosure { margin-top:.75rem; }
