@font-face {
    font-family: "General Sans";
    src: url("../../website/fonts/general-sans-500.5b10ff4d624f.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../../website/fonts/general-sans-600.f74baa005bd5.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #211823;
    --muted: #756b76;
    --paper: #f7f3ee;
    --paper-deep: #eee8e1;
    --plum: #321d38;
    --sidebar: #321d38;
    --violet: #7652f7;
    --button-background: #7652f7;
    --button-hover: #6540de;
    --button-ink: #fffdf9;
    --line: rgba(50, 29, 56, 0.15);
    --white: #fffdf9;
    --surface: #fffdf9;
    --surface-soft: rgba(255, 253, 249, 0.55);
    --body-copy: #392f3b;
    --success-ink: #315f43;
    --success-surface: #e3f2e8;
    --warning-ink: #6d501c;
    --warning-surface: #f8edce;
    --rose-ink: #7a3e55;
    --rose-surface: #f6dfe8;
    --neutral-ink: #58616c;
    --neutral-surface: #edf0f3;
    --private-ink: #7d4d33;
    --private-surface: #f7e8d8;
    --violet-surface: #ece7ff;
    --message-ink: #6f2631;
    --message-surface: #fff1f1;
    --message-line: #c87979;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #fbf7fc;
    --muted: #c5b7c6;
    --paper: #171118;
    --paper-deep: #251a25;
    --plum: #452a4b;
    --sidebar: #140d16;
    --violet: #b265ff;
    --button-background: #b265ff;
    --button-hover: #c38aff;
    --button-ink: #211823;
    --line: rgba(239, 220, 241, 0.16);
    --surface: #241a25;
    --surface-soft: rgba(45, 33, 46, 0.74);
    --body-copy: #e8dde9;
    --success-ink: #a9e7bd;
    --success-surface: #1d3b29;
    --warning-ink: #f2d995;
    --warning-surface: #443719;
    --rose-ink: #f1b6cb;
    --rose-surface: #492534;
    --neutral-ink: #d0d7df;
    --neutral-surface: #303740;
    --private-ink: #f2c49e;
    --private-surface: #4a3020;
    --violet-surface: #382c5c;
    --message-ink: #ffd6dc;
    --message-surface: #44242a;
    --message-line: #9d5863;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "General Sans", system-ui, sans-serif;
    font-weight: 500;
    transition: color 180ms ease, background-color 180ms ease;
}

a {
    color: inherit;
}

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

.skip-link {
    position: fixed;
    z-index: 20;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--plum);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    width: 17rem;
    padding: 1.5rem;
    color: var(--white);
    background: var(--sidebar);
    flex-direction: column;
}

.app-brand {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.app-brand img {
    border-radius: 0.7rem;
}

.app-brand span {
    display: grid;
    gap: 0.1rem;
}

.app-brand small {
    color: rgba(255, 253, 249, 0.56);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-navigation {
    display: grid;
    gap: 0.5rem;
    margin-top: 5rem;
}

.app-navigation a {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    color: rgba(255, 253, 249, 0.72);
    text-decoration: none;
}

.app-navigation a.is-current {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.app-navigation span {
    color: #a996ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
}

.app-sidebar__footer {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
}

.app-sidebar__footer a,
.app-sidebar__footer button {
    color: rgba(255, 253, 249, 0.66);
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.app-theme-toggle {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    width: fit-content;
}

.app-theme-toggle__icon {
    display: inline-grid;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    place-items: center;
}

.app-theme-toggle i {
    font-style: normal;
}

.app-theme-toggle__sun {
    display: none;
}

html[data-theme="dark"] .app-theme-toggle__sun {
    display: inline;
}

html[data-theme="dark"] .app-theme-toggle__moon {
    display: none;
}

.app-theme-toggle--mobile {
    display: none;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-soft);
    cursor: pointer;
    place-content: center;
}

.app-sidebar__footer button:hover,
.app-sidebar__footer a:hover {
    color: var(--white);
}

.app-frame {
    min-height: 100vh;
    margin-left: 17rem;
}

.app-topbar {
    display: flex;
    min-height: 5.5rem;
    padding: 1rem clamp(1.25rem, 4vw, 4rem);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    align-items: center;
    justify-content: flex-end;
}

.app-topbar__brand {
    display: none;
    text-decoration: none;
    font-weight: 600;
}

.app-topbar__mobile {
    display: none;
    gap: 0.9rem;
    align-items: center;
}

.app-topbar__mobile a,
.app-topbar__mobile button {
    padding: 0;
    color: var(--muted);
    border: 0;
    background: none;
    font-size: 0.78rem;
    text-decoration: none;
    cursor: pointer;
}

.app-topbar__mobile a[aria-current="page"] {
    color: var(--violet);
}

.account-chip {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.account-chip > span {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    color: var(--white);
    border-radius: 50%;
    background: var(--violet);
    place-items: center;
}

.account-chip > img {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    object-fit: cover;
}

.app-sign-in {
    color: var(--violet);
    font-size: 0.82rem;
    text-decoration: none;
}

.account-chip div {
    display: grid;
}

.account-chip strong {
    font-size: 0.85rem;
}

.account-chip small {
    color: var(--muted);
    font-size: 0.7rem;
}

.app-content {
    width: min(82rem, 100%);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 4vw, 4rem);
}

.library-heading {
    display: grid;
    gap: 2rem;
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.app-eyebrow {
    display: flex;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    color: var(--violet);
    align-items: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-eyebrow > span {
    width: 1.6rem;
    border-top: 1px solid currentColor;
}

.library-heading h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.86;
}

.library-heading > div > p:last-child {
    max-width: 42rem;
    margin: 1.8rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.library-count {
    display: grid;
    min-width: 9rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface-soft);
}

.library-count strong {
    color: var(--violet);
    font-size: 2.7rem;
    line-height: 1;
}

.library-count span {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.72rem;
}

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

.library-card {
    position: relative;
    overflow: hidden;
    min-height: 36rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.library-card__mark {
    position: absolute;
    right: -0.08em;
    top: -0.18em;
    color: rgba(118, 82, 247, 0.07);
    font-size: clamp(7rem, 14vw, 13rem);
    font-weight: 600;
    letter-spacing: -0.1em;
    line-height: 1;
}

.library-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
}

.library-card__meta {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.library-card__meta span:last-child {
    color: var(--success-ink);
}

.library-card h2 {
    max-width: 12ch;
    margin: 3.5rem 0 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.library-card__body > p {
    max-width: 35rem;
    margin: 1rem 0 2rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.library-card__body > .access-reasons {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.82rem;
}

.access-reasons > span {
    color: var(--muted);
}

.library-release {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
}

.library-release__heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
}

.library-release__heading > div {
    display: grid;
    gap: 0.15rem;
}

.library-release__heading span,
.release-row__label {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.library-release__heading strong {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.library-release__heading > span {
    padding-bottom: 0.15rem;
}

.compatibility-list {
    display: grid;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.compatibility-list p {
    margin: 0;
}

.library-release__actions,
.release-row__actions {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
}

.app-text-link {
    color: var(--violet);
    font-size: 0.82rem;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22rem;
}

.library-release__empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.library-empty {
    display: grid;
    overflow: hidden;
    min-height: 24rem;
    margin-top: 2rem;
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
    grid-template-columns: minmax(8rem, 0.4fr) 1fr;
    align-items: center;
}

.library-empty > span {
    color: rgba(118, 82, 247, 0.1);
    font-size: clamp(6rem, 14vw, 13rem);
    font-weight: 600;
    letter-spacing: -0.1em;
}

.library-empty h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.05em;
}

.library-empty div > p:not(.app-eyebrow) {
    max-width: 38rem;
    color: var(--muted);
    line-height: 1.6;
}

.library-empty a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--violet);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25rem;
}

.billing-heading {
    max-width: 54rem;
    padding-bottom: 3rem;
}

.billing-heading h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.billing-heading > p:last-child {
    max-width: 44rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.billing-panel {
    margin-top: 1rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.billing-panel__heading {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    align-items: end;
    justify-content: space-between;
}

.billing-panel__heading .app-eyebrow {
    margin-bottom: 0.7rem;
}

.billing-panel h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.app-button {
    display: inline-block;
    padding: 0.75rem 1rem;
    color: var(--button-ink);
    border: 0;
    border-radius: 0.7rem;
    background: var(--button-background);
    text-decoration: none;
    cursor: pointer;
}

.app-button:hover {
    background: var(--button-hover);
}

.app-button--quiet {
    color: var(--ink);
    border: 1px solid var(--line);
    background: transparent;
}

.app-button--quiet:hover {
    background: var(--surface);
}
.app-breadcrumbs {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 2.4rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.app-breadcrumbs a {
    color: var(--violet);
    text-decoration: none;
}

.versions-heading,
.release-detail-heading {
    display: flex;
    gap: 2rem;
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    align-items: end;
    justify-content: space-between;
}

.versions-heading h1,
.release-detail-heading h1,
.chooser-panel h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.versions-heading > div > p:last-child,
.release-detail-heading > div > p:last-child,
.chooser-panel > p {
    max-width: 46rem;
    margin: 1.4rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.versions-panel,
.release-detail-panel,
.chooser-panel {
    padding: clamp(1.4rem, 3vw, 2.3rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.release-filters {
    display: grid;
    gap: 0.8rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr) auto auto;
    align-items: end;
}

.release-filters > div {
    display: grid;
    gap: 0.45rem;
}

.release-filters label {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.release-filters select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 2.25rem 0.55rem 0.7rem;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: var(--paper);
}

.release-filters select:focus,
.app-button:focus-visible,
.app-text-link:focus-visible {
    border-color: var(--violet);
}

.release-filters__clear {
    min-height: 2.75rem;
    padding: 0.75rem 0;
    color: var(--violet);
    font-size: 0.8rem;
    text-align: center;
}

.versions-summary {
    display: flex;
    gap: 1rem;
    padding: 2rem 0 1.2rem;
    align-items: end;
    justify-content: space-between;
}

.versions-summary .app-eyebrow,
.release-detail-panel .app-eyebrow {
    margin-bottom: 0.65rem;
}

.versions-summary h2,
.release-detail-panel h2,
.artifact-panel h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.versions-summary > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.release-list {
    border-top: 1px solid var(--line);
}

.release-row {
    display: grid;
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(10rem, 1.15fr) minmax(9rem, 1fr) minmax(9rem, 0.8fr) minmax(10rem, auto);
    align-items: center;
}

.release-row.is-latest {
    margin-inline: -0.8rem;
    padding-inline: 0.8rem;
    border-radius: 0.8rem;
    background: rgba(118, 82, 247, 0.05);
}

.release-row__identity {
    min-width: 0;
}

.release-row__identity h3 {
    margin: 0.55rem 0 0.25rem;
    font-size: 1.45rem;
    letter-spacing: -0.035em;
}

.release-row__identity h3 a {
    text-decoration: none;
}

.release-row__identity time,
.release-row__metadata {
    color: var(--muted);
    font-size: 0.72rem;
}

.release-row__badges {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.channel-badge,
.latest-badge {
    display: inline-flex;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.channel-badge--stable {
    color: var(--success-ink);
    background: var(--success-surface);
}

.channel-badge--beta {
    color: var(--warning-ink);
    background: var(--warning-surface);
}

.channel-badge--alpha {
    color: var(--rose-ink);
    background: var(--rose-surface);
}

.latest-badge {
    color: var(--violet);
    border: 1px solid rgba(118, 82, 247, 0.22);
}

.release-row__compatibility,
.release-row__metadata {
    display: grid;
    gap: 0.45rem;
}

.release-row__actions {
    justify-content: flex-end;
}

.release-row__actions .app-button {
    font-size: 0.78rem;
}

.versions-empty {
    display: grid;
    gap: 2rem;
    min-height: 16rem;
    padding: 2rem;
    border: 1px dashed var(--line);
    border-radius: 1rem;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.versions-empty > span {
    color: rgba(118, 82, 247, 0.12);
    font-size: 7rem;
    line-height: 1;
}

.versions-empty h3 {
    margin: 0;
    font-size: 1.5rem;
}

.versions-empty p {
    color: var(--muted);
}

.release-detail-heading .release-row__badges {
    margin-bottom: 1rem;
}

.release-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.7fr);
}

.release-changelog {
    color: var(--body-copy);
    line-height: 1.72;
}

.release-changelog p:last-child {
    margin-bottom: 0;
}

.release-metadata h2 {
    margin-bottom: 1.5rem;
}

.release-metadata dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.release-metadata dl > div {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}

.release-metadata dt {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.release-metadata dd {
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 0.82rem;
}

.artifact-panel {
    margin-top: 1rem;
}

.artifact-panel > p:not(.app-eyebrow) {
    color: var(--muted);
}

.artifact-list {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0;
}

.artifact-list > div {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    align-items: center;
    justify-content: space-between;
}

.artifact-list > div > div {
    display: grid;
    gap: 0.2rem;
}

.artifact-list small {
    color: var(--muted);
    font-size: 0.72rem;
}

.chooser-panel {
    max-width: 58rem;
    margin: 0 auto;
}

.chooser-panel .compatibility-list {
    margin-top: 1.3rem;
}

.billing-summary {
    display: grid;
    gap: 1px;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-summary div {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 1rem;
    background: var(--surface);
}

.billing-summary dt,
.billing-table th {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.billing-summary dd {
    overflow-wrap: anywhere;
    margin: 0;
}

.billing-table-wrap {
    overflow-x: auto;
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.billing-table th,
.billing-table td {
    padding: 0.9rem 0.75rem;
    border-top: 1px solid var(--line);
    vertical-align: top;
    white-space: nowrap;
}

.billing-table td {
    font-size: 0.82rem;
}

.billing-table td strong,
.billing-table td small {
    display: block;
}

.billing-table td small {
    max-width: 18rem;
    overflow: hidden;
    margin-top: 0.2rem;
    color: var(--muted);
    text-overflow: ellipsis;
}

.billing-empty {
    color: var(--muted);
}

.billing-subscription-empty {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    border: 1px dashed var(--line);
    border-radius: 0.9rem;
    background: var(--paper);
    align-items: center;
    justify-content: space-between;
}

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

.billing-subscription-empty p {
    max-width: 42rem;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.billing-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.app-messages {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    color: var(--message-ink);
    border: 1px solid var(--message-line);
    border-radius: 0.7rem;
    background: var(--message-surface);
}

.app-messages p {
    margin: 0;
}

@media (max-width: 900px) {
    .app-sidebar {
        display: none;
    }

    .app-frame {
        margin-left: 0;
    }

    .app-topbar {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .app-topbar__brand {
        display: block;
    }

    .app-topbar__mobile {
        display: flex;
        order: 3;
        width: 100%;
        margin-top: 0.8rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--line);
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .app-theme-toggle--mobile {
        display: grid;
        margin-left: 1rem;
    }

    .app-sign-in {
        display: none;
    }

    .release-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .release-row__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .app-topbar {
        min-height: 4.5rem;
        padding-inline: 1rem;
    }

    .account-chip small {
        display: none;
    }

    .library-heading,
    .library-grid,
    .library-empty,
    .billing-summary,
    .release-filters,
    .release-detail-grid {
        grid-template-columns: 1fr;
    }

    .versions-heading,
    .release-detail-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .release-row {
        grid-template-columns: 1fr;
    }

    .billing-panel__heading {
        align-items: start;
        flex-direction: column;
    }

    .billing-subscription-empty {
        align-items: flex-start;
        flex-direction: column;
    }

    .library-count {
        min-width: 0;
    }

    .library-empty > span {
        font-size: 6rem;
    }

    .versions-empty {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .account-chip {
        display: none;
    }

    .app-topbar__mobile {
        gap: 0.7rem;
        justify-content: space-between;
    }

    .artifact-list > div {
        align-items: stretch;
        flex-direction: column;
    }
}

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

/* Account settings and delegation --------------------------------------- */

.account-chip {
    border-radius: 0.75rem;
    text-decoration: none;
}

.account-chip:hover strong {
    color: var(--violet);
}

.settings-heading {
    display: grid;
    gap: 2rem;
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
    align-items: end;
}

.settings-heading h1,
.invitation-page h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.5rem);
    letter-spacing: -0.065em;
    line-height: 0.88;
}

.settings-heading > div:first-child > p:last-child,
.settings-panel__lede,
.invitation-page > p:not(.app-eyebrow),
.invitation-form > p {
    max-width: 48rem;
    color: var(--muted);
    line-height: 1.65;
}

.settings-identity,
.delegation-person {
    display: flex;
    min-width: 0;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    align-items: center;
}

.settings-identity > img,
.delegation-person > img {
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.settings-identity > span,
.delegation-person > span {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    flex: 0 0 auto;
    color: var(--white);
    border-radius: 50%;
    background: var(--violet);
    font-size: 1.35rem;
    place-items: center;
}

.delegation-person > span {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1rem;
}

.settings-identity div,
.delegation-person div {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.settings-identity small,
.delegation-person small,
.settings-plan small,
.pending-invitation small {
    color: var(--violet);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-identity strong,
.delegation-person strong {
    overflow-wrap: anywhere;
    font-size: 1.1rem;
}

.settings-identity p,
.delegation-person p,
.pending-invitation p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

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

.settings-panel {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--surface);
}

.settings-panel--wide {
    margin-top: 1rem;
}

.settings-panel__heading {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
    justify-content: space-between;
}

.settings-panel__heading .app-eyebrow {
    margin-bottom: 0.45rem;
}

.settings-panel h2,
.settings-panel h3,
.invitation-link h3 {
    margin: 0;
}

.settings-panel h2 {
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    letter-spacing: -0.04em;
}

.settings-plan {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
}

.settings-plan > div {
    display: grid;
    min-width: 0;
    padding: 1rem;
    background: var(--paper);
    gap: 0.35rem;
}

.settings-plan strong {
    overflow-wrap: anywhere;
}

.settings-plan span {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.settings-link-list {
    display: grid;
    gap: 0.55rem;
}

.settings-link-list a {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--paper);
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.settings-link-list a:hover {
    border-color: var(--violet);
}

.settings-link-list span {
    display: grid;
    gap: 0.15rem;
}

.settings-link-list small {
    color: var(--muted);
    font-size: 0.72rem;
}

.settings-link-list i {
    color: var(--violet);
    font-style: normal;
}

.settings-empty {
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: 0.85rem;
    background: var(--paper);
}

.settings-empty p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.settings-status {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
}

.settings-status.is-effective {
    color: var(--success-ink);
    background: var(--success-surface);
}

.settings-status.is-paused {
    color: var(--warning-ink);
    background: var(--warning-surface);
}

.delegation-products {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--paper);
}

.delegation-products h3 {
    font-size: 0.95rem;
}

.delegation-products > p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.delegation-products ul {
    display: grid;
    margin: 0.75rem 0 0;
    padding: 0;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
}

.delegation-products li {
    display: grid;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 0.6rem;
    background: var(--surface);
    gap: 0.15rem;
}

.delegation-products li span {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.delegation-products li small {
    color: var(--muted);
    font-size: 0.66rem;
}

.settings-notice {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    color: var(--neutral-ink);
    border-radius: 0.75rem;
    background: var(--neutral-surface);
}

.settings-notice.is-warning {
    color: var(--warning-ink);
    background: var(--warning-surface);
}

.settings-notice p {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
}

.settings-confirm-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
}

.settings-confirm-form label,
.pending-invitation label {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.danger-button {
    color: var(--rose-ink);
}

.invitation-link,
.invitation-form,
.pending-invitation {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--paper);
}

.invitation-link {
    border-color: color-mix(in srgb, var(--violet) 45%, var(--line));
}

.invitation-link .app-eyebrow {
    margin-bottom: 0.35rem;
}

.invitation-link p {
    margin: 0.4rem 0 1rem;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.invitation-link > label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.invitation-link > div:nth-of-type(2) {
    display: flex;
    min-width: 0;
    gap: 0.5rem;
}

.invitation-link input {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
}

.invitation-link > small {
    display: block;
    min-height: 1rem;
    margin-top: 0.35rem;
    color: var(--success-ink);
}

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

.pending-invitation > div,
.pending-invitation form {
    display: grid;
    min-width: 0;
    gap: 0.3rem;
}

.pending-invitation strong {
    overflow-wrap: anywhere;
}

.invitation-form h3 {
    margin-bottom: 0.6rem;
}

.acknowledgement-field {
    display: grid;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: var(--surface);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.acknowledgement-field input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.1rem 0 0;
    accent-color: var(--violet);
}

.acknowledgement-field label {
    line-height: 1.55;
}

.acknowledgement-field .errorlist {
    margin: 0;
    color: var(--message-ink);
    grid-column: 2;
}

.acknowledgement-field.has-error {
    border-color: var(--message-line);
}

.policy-note {
    margin: 0.75rem 0;
    color: var(--muted);
    font-size: 0.7rem;
}

.invitation-page {
    max-width: 54rem;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.invitation-page h1 {
    max-width: 12ch;
    margin-top: 1.5rem;
}

.delegation-person--invite {
    background: var(--paper);
}

.invitation-page--unavailable {
    min-height: 26rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.78rem;
    justify-content: flex-end;
}

.pagination a {
    color: var(--violet);
}

@media (max-width: 900px) {
    .settings-heading {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .settings-grid,
    .settings-plan,
    .delegation-products ul {
        grid-template-columns: 1fr;
    }

    .settings-panel__heading,
    .settings-confirm-form,
    .pending-invitation,
    .settings-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-status {
        align-self: flex-start;
    }

    .settings-confirm-form button,
    .pending-invitation button {
        min-height: 2.5rem;
    }

    .invitation-link > div:nth-of-type(2) {
        align-items: stretch;
        flex-direction: column;
    }

    .download-history-table th,
    .download-history-table td {
        white-space: normal;
        min-width: 8rem;
    }
}

@media (max-width: 480px) {
    .settings-identity,
    .delegation-person {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Community -------------------------------------------------------------- */

.community-heading {
    display: flex;
    gap: 2rem;
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--line);
    align-items: end;
    justify-content: space-between;
}

.community-heading h1,
.community-form-heading h1,
.submission-detail h1 {
    max-width: 17ch;
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.7rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.community-heading > div > p:last-child,
.community-form-heading > p:last-child {
    max-width: 46rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.community-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 2rem 0;
    padding: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface-soft);
    width: fit-content;
}

.community-tabs a {
    padding: 0.7rem 1.15rem;
    border-radius: 0.65rem;
    color: var(--muted);
    text-decoration: none;
}

.community-tabs a[aria-current="page"] {
    color: var(--white);
    background: var(--plum);
}

.community-filters {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
    align-items: end;
}

.community-filters > div,
.form-field {
    display: grid;
    gap: 0.45rem;
}

.community-filters label,
.form-field label,
.moderation-panel label {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.community-filters select,
.community-form input,
.community-form select,
.community-form textarea,
.comment-form textarea,
.moderation-panel select {
    width: 100%;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    outline: none;
    background: var(--paper);
}

.community-form select:disabled {
    color: var(--muted);
    border-style: dashed;
    background: var(--paper-deep);
    cursor: not-allowed;
    opacity: 1;
}

.community-filters select,
.community-form input,
.community-form select,
.moderation-panel select {
    min-height: 2.8rem;
    padding: 0.65rem 0.75rem;
}

.community-form textarea,
.comment-form textarea {
    min-height: 10rem;
    padding: 0.85rem;
    line-height: 1.55;
    resize: vertical;
}

.community-filters select:focus,
.community-form input:focus,
.community-form select:focus,
.community-form textarea:focus,
.comment-form textarea:focus,
.moderation-panel select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(118, 82, 247, 0.16);
}

.community-filters button,
.moderation-panel button {
    min-height: 2.8rem;
    padding: 0.65rem 1rem;
    color: var(--white);
    border: 0;
    border-radius: 0.7rem;
    background: var(--plum);
    cursor: pointer;
}

.community-filters > a {
    padding: 0.8rem 0.2rem;
    color: var(--violet);
    font-size: 0.78rem;
}

.community-result-heading {
    display: flex;
    gap: 1rem;
    margin: 1.3rem 0 0.75rem;
    color: var(--muted);
    justify-content: space-between;
    font-size: 0.75rem;
}

.community-result-heading p {
    margin: 0;
}

.submission-list {
    display: grid;
    gap: 0.8rem;
}

.submission-card {
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1.05rem;
    background: var(--surface);
}

.submission-card__topline {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.status-badge,
.visibility-badge {
    display: inline-flex;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-badge {
    color: var(--success-ink);
    background: var(--success-surface);
}

.status-badge--closed,
.status-badge--declined {
    color: var(--muted);
    background: var(--paper-deep);
}

.status-badge--in_progress,
.status-badge--planned {
    color: var(--violet);
    background: var(--violet-surface);
}

.status-badge--resolved,
.status-badge--implemented {
    color: var(--success-ink);
    background: var(--success-surface);
}

.visibility-badge--public {
    color: var(--neutral-ink);
    background: var(--neutral-surface);
}

.visibility-badge--private {
    color: var(--private-ink);
    background: var(--private-surface);
}

.submission-card h2 {
    margin: 1.15rem 0 0;
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    letter-spacing: -0.035em;
}

.submission-card h2 a {
    text-decoration: none;
}

.submission-card h2 a:hover {
    color: var(--violet);
}

.submission-card__association,
.submission-detail__association {
    margin: 0.5rem 0 0;
    color: var(--violet);
    font-size: 0.78rem;
}

.submission-card__footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
}

.submission-card__footer > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.public-identity {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.public-identity > img,
.public-identity > span {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
}

.public-identity > img {
    object-fit: cover;
}

.public-identity > span {
    display: grid;
    color: var(--white);
    background: var(--violet);
    place-items: center;
}

.public-identity > div {
    display: grid;
    gap: 0.15rem;
}

.public-identity strong {
    font-size: 0.82rem;
}

.public-identity small {
    color: var(--muted);
    font-size: 0.68rem;
}

.public-identity--small > img,
.public-identity--small > span {
    width: 2.1rem;
    height: 2.1rem;
}

.community-empty {
    display: grid;
    min-height: 20rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px dashed var(--line);
    border-radius: 1rem;
    place-content: center;
    text-align: center;
}

.community-empty .app-eyebrow {
    justify-content: center;
}

.community-empty h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.community-empty > p:not(.app-eyebrow) {
    color: var(--muted);
}

.community-empty a {
    color: var(--violet);
}

.community-form-heading {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.community-form {
    display: grid;
    gap: 1.3rem;
    max-width: 52rem;
    margin-top: 2rem;
}

.form-field label span {
    color: #9b919c;
    text-transform: none;
}

.form-field > p,
.comment-form > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.field-error,
.form-errors {
    color: #963d49 !important;
}

html[data-theme="dark"] .field-error,
html[data-theme="dark"] .form-errors {
    color: #ff9aa9 !important;
}

.form-field--error input,
.form-field--error select,
.form-field--error textarea {
    border-color: #b94d5c;
}

.community-form__note {
    padding: 1rem;
    border-left: 3px solid var(--violet);
    background: rgba(118, 82, 247, 0.07);
}

.community-form__note p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.community-form__actions,
.submission-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.community-form__actions > a {
    color: var(--muted);
}

.submission-detail {
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: var(--surface);
}

.submission-detail header > .submission-detail__association {
    margin-top: 1.5rem;
}

.submission-detail h1 {
    max-width: 22ch;
    margin-top: 0.55rem;
}

.submission-detail header .public-identity {
    margin-top: 1.5rem;
}

.issue-context {
    display: flex;
    gap: 2rem;
    margin: 2rem 0 0;
    padding: 1rem 0;
    border-block: 1px solid var(--line);
}

.issue-context div {
    display: grid;
    gap: 0.25rem;
}

.issue-context dt {
    color: var(--muted);
    font-size: 0.68rem;
}

.issue-context dd {
    margin: 0;
}

.markdown-body {
    margin-top: 2rem;
    color: var(--body-copy);
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.markdown-body p:first-child {
    margin-top: 0;
}

.markdown-body a {
    color: var(--violet);
}

.markdown-body code {
    padding: 0.12rem 0.3rem;
    border-radius: 0.3rem;
    background: var(--paper-deep);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88em;
}

.markdown-body blockquote {
    margin: 1.2rem 0;
    padding: 0.8rem 1rem;
    color: var(--muted);
    border-left: 3px solid #a996ff;
    background: rgba(118, 82, 247, 0.06);
}

.markdown-note {
    color: var(--muted);
    font-size: 0.75em;
}

.submission-actions {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    justify-content: space-between;
}

.support-button,
.app-text-button {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--violet);
    border: 1px solid rgba(118, 82, 247, 0.35);
    border-radius: 0.75rem;
    background: rgba(118, 82, 247, 0.06);
    cursor: pointer;
    text-decoration: none;
}

.support-button.is-supported {
    color: var(--white);
    background: var(--violet);
}

.app-text-button {
    color: var(--muted);
    border-color: var(--line);
    background: transparent;
}

.private-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.moderation-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.3rem;
    color: var(--white);
    border-radius: 1rem;
    background: var(--sidebar);
    grid-template-columns: 1fr minmax(18rem, 2fr) auto;
    align-items: end;
}

.moderation-panel h2,
.moderation-panel p {
    margin: 0;
}

.moderation-panel form:first-of-type {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
}

.moderation-panel form p {
    display: grid;
    gap: 0.35rem;
}

.moderation-panel label {
    color: rgba(255, 255, 255, 0.6);
}

.moderation-panel .danger-button {
    color: #ffd8dc;
    border: 1px solid rgba(255, 140, 154, 0.35);
    background: rgba(160, 36, 53, 0.25);
}

.discussion {
    margin-top: clamp(3rem, 6vw, 5rem);
}

.discussion__heading {
    display: flex;
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    align-items: end;
}

.discussion__heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.045em;
}

.discussion__heading > p {
    max-width: 23rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    text-align: right;
}

.comment-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.comment {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface);
}

.comment > header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.comment__actions,
.comment__actions form {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.comment__actions a,
.comment__actions button {
    padding: 0;
    color: var(--muted);
    border: 0;
    background: none;
    font-size: 0.72rem;
    cursor: pointer;
}

.comment__actions button {
    color: var(--message-ink);
}

.comment .markdown-body {
    margin-top: 1.2rem;
}

.discussion__empty {
    margin: 1rem 0;
    padding: 2rem;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 0.9rem;
    text-align: center;
}

.comment-form {
    max-width: 52rem;
    margin-top: 2rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-radius: 1rem;
    background: var(--paper-deep);
}

.comment-form h3 {
    margin: 0 0 0.3rem;
    font-size: 1.4rem;
}

.comment-form form {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.comment-form .app-button {
    justify-self: start;
}

@media (max-width: 1000px) {
    .community-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .moderation-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .community-heading,
    .submission-card__footer,
    .discussion__heading,
    .comment > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-filters,
    .moderation-panel form:first-of-type {
        grid-template-columns: 1fr;
    }

    .community-result-heading {
        display: block;
    }

    .community-result-heading p + p {
        margin-top: 0.4rem;
    }

    .discussion__heading > p {
        text-align: left;
    }

    .submission-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

:focus-visible {
    outline: 3px solid #35b5f3;
    outline-offset: 3px;
}

.library-count a {
    margin-top: 1rem;
    color: var(--violet);
    font-size: 0.78rem;
    text-underline-offset: 0.2rem;
}

.purchase-result-heading {
    max-width: 58rem;
    padding-bottom: 2.5rem;
}

.purchase-result-heading h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.5rem);
    letter-spacing: -0.065em;
    line-height: 0.88;
}

.purchase-result-heading > p:not(.app-eyebrow) {
    max-width: 44rem;
    margin: 1.4rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.processing-indicator {
    display: inline-flex;
    margin-top: 1rem;
    align-items: center;
    gap: 0.55rem;
    color: var(--violet);
    font-size: 0.82rem;
}

.processing-indicator i {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: currentColor;
    animation: processing-pulse 1.2s ease-in-out infinite;
}

@keyframes processing-pulse {
    50% { opacity: 0.25; transform: scale(0.75); }
}

.purchase-receipt {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
}

.purchase-receipt__summary {
    display: grid;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.purchase-receipt__summary > div {
    min-width: 0;
    padding: 1.25rem;
    border-right: 1px solid var(--line);
}

.purchase-receipt__summary > div:last-child {
    border-right: 0;
}

.purchase-receipt__summary dt,
.purchase-receipt__label small,
.receipt-offer__heading span,
.receipt-offer__grants > span {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.purchase-receipt__summary dd {
    overflow-wrap: anywhere;
    margin: 0.4rem 0 0;
    font-weight: 600;
}

.purchase-receipt__summary dd small {
    color: var(--muted);
    font-size: 0.65rem;
}

.purchase-receipt__offers {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.purchase-receipt__label {
    display: flex;
    margin-bottom: 1rem;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.purchase-receipt__label > span {
    font-size: 1.1rem;
    font-weight: 600;
}

.receipt-offer {
    padding: clamp(1.1rem, 3vw, 1.7rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.receipt-offer + .receipt-offer {
    margin-top: 0.75rem;
}

.receipt-offer__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.receipt-offer__heading h2 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.04em;
}

.receipt-offer__heading h2 a {
    text-underline-offset: 0.2em;
}

.receipt-offer__heading > strong {
    white-space: nowrap;
}

.receipt-offer__grants {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.receipt-offer__grants ul {
    display: grid;
    margin: 0.65rem 0 0;
    padding: 0;
    gap: 0.45rem;
    list-style: none;
}

.receipt-offer__grants li {
    display: flex;
    padding: 0.7rem 0.8rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0.65rem;
    background: var(--paper);
}

.receipt-offer__grants li small {
    color: var(--muted);
    font-size: 0.72rem;
}

.purchase-result-actions {
    display: flex;
    margin-top: 1.25rem;
    align-items: center;
    gap: 1rem;
}

.purchase-result-actions > a:not(.app-button) {
    color: var(--violet);
    text-underline-offset: 0.2em;
}

@media (max-width: 680px) {
    .purchase-receipt__summary {
        grid-template-columns: 1fr;
    }

    .purchase-receipt__summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .purchase-receipt__summary > div:last-child {
        border-bottom: 0;
    }

    .purchase-receipt__label,
    .receipt-offer__heading,
    .purchase-result-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .receipt-offer__grants li {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        transition: none;
    }

    .processing-indicator i {
        animation: none;
    }
}
.checkout-consent { border: 0; padding: 0; margin: 1.5rem 0; font-size: 0.9rem; line-height: 1.5; }
.checkout-consent legend { font-weight: 700; margin-bottom: 0.75rem; }
.checkout-consent > div { margin-block: 1rem; }
.checkout-consent label { display: flex; align-items: flex-start; gap: 0.65rem; }
.checkout-consent input[type="checkbox"] { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; }
.checkout-consent a { text-decoration: underline; }
.checkout-consent .errorlist { color: #c34b40; }
