.pss-page {
    --pss-ink: #17324d;
    --pss-muted: #5b6b7b;
    --pss-green: #1d6d42;
    --pss-teal: #0f766e;
    --pss-mint: #eaf6f1;
    --pss-blue: #eaf3fb;
    --pss-line: #d9e5e3;
    background: #f7faf9;
    color: var(--pss-ink);
    padding-bottom: 5rem;
}

.pss-hero {
    background: #f1f6f3;
    border-bottom: 1px solid var(--pss-line);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0 3.75rem;
}

.pss-shell {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.pss-kicker {
    color: var(--pss-green);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 1rem;
}

.pss-hero h1 {
    color: var(--pss-ink);
    font-size: clamp(2.15rem, 5vw, 4.35rem);
    line-height: 1.05;
    letter-spacing: -.045em;
    max-width: 800px;
    margin-bottom: 1.35rem;
}

.pss-lead {
    color: #425568;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    max-width: 800px;
}

.pss-notice {
    background: #fffdf5;
    border: 1px solid #f0dca1;
    border-left: 4px solid #d79b16;
    border-radius: .65rem;
    color: #66521c;
    font-size: .92rem;
    line-height: 1.6;
    margin-top: 1.75rem;
    max-width: 850px;
    padding: 1rem 1.15rem;
}

.pss-section {
    padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}

.pss-section[id] {
    scroll-margin-top: 7rem;
}

.pss-section-heading {
    margin-bottom: 2rem;
    max-width: 760px;
}

.pss-section-label {
    color: var(--pss-teal);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.pss-section-heading h2 {
    color: var(--pss-ink);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -.03em;
    margin-bottom: .65rem;
}

.pss-section-heading p {
    color: var(--pss-muted);
    line-height: 1.7;
    margin: 0;
}

.pss-pathways {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 1.75rem;
}

.pss-pathway {
    background: #fff;
    border: 1px solid #c9dbd4;
    border-radius: 999px;
    color: var(--pss-green);
    cursor: pointer;
    font-weight: 700;
    padding: .7rem 1.1rem;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.pss-pathway:hover {
    border-color: var(--pss-green);
    transform: translateY(-1px);
}

.pss-pathway.is-active {
    background: var(--pss-green);
    border-color: var(--pss-green);
    color: #fff;
}

.pss-pathway:focus-visible,
.pss-toolbar button:focus-visible,
.pss-toolbar input:focus-visible,
.pss-toolbar select:focus-visible,
.pss-feedback input:focus-visible,
.pss-feedback select:focus-visible,
.pss-feedback textarea:focus-visible {
    outline: 3px solid rgba(215, 155, 22, .75);
    outline-offset: 3px;
}

.pss-choice-grid input:focus-visible + label,
.pss-toggle:focus-within {
    outline: 3px solid rgba(215, 155, 22, .85);
    outline-offset: 3px;
}

.pss-workflow {
    align-items: stretch;
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pss-step {
    background: #fff;
    border: 1px solid var(--pss-line);
    border-radius: .85rem;
    box-shadow: 0 8px 24px rgba(23, 50, 77, .06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem;
    position: relative;
}

.pss-step:not(:last-child)::after {
    color: #7aa28f;
    content: "→";
    font-size: 1.4rem;
    font-weight: 800;
    position: absolute;
    right: -.72rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.pss-step-number {
    align-items: center;
    background: var(--pss-mint);
    border-radius: 50%;
    color: var(--pss-green);
    display: flex;
    font-size: .78rem;
    font-weight: 800;
    height: 2.15rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 2.15rem;
}

.pss-step-role {
    color: var(--pss-teal);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    margin-bottom: .4rem;
    text-transform: uppercase;
}

.pss-step h3 {
    color: var(--pss-ink);
    font-size: 1.08rem;
    line-height: 1.25;
    margin-bottom: .8rem;
}

.pss-step p,
.pss-step li {
    color: var(--pss-muted);
    font-size: .88rem;
    line-height: 1.6;
}

.pss-step p {
    margin-bottom: .75rem;
}

.pss-step ul {
    margin: 0;
    padding-left: 1.1rem;
}

.pss-code {
    background: var(--pss-ink);
    border-radius: .45rem;
    color: #fff;
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .84em;
    padding: .15rem .35rem;
}

.pss-step-output {
    background: #f2f8f5;
    border-left: 3px solid var(--pss-green);
    color: var(--pss-ink) !important;
    font-weight: 700;
    margin-top: auto;
    padding: .7rem;
}

.pss-proposed {
    color: #916d13;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    margin-top: 1rem;
    text-transform: uppercase;
}

.pss-progression-section {
    background: #fff;
    border-bottom: 1px solid var(--pss-line);
}

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

.pss-version-card {
    background: #fbfcfb;
    border: 1px solid var(--pss-line);
    border-radius: .8rem;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-width: 0;
    padding: 1rem;
}

.pss-version-card figure {
    margin: 0;
}

.pss-version-card:nth-child(2) {
    background: #f8fbfa;
}

.pss-version-v2 {
    background: #f6f8fb;
    border-color: #cbd8e2;
}

.pss-version-meta {
    align-items: center;
    display: flex;
    gap: .55rem;
    justify-content: space-between;
    margin-bottom: .85rem;
}

.pss-version-number {
    color: var(--pss-ink);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pss-status-chip {
    background: #e8efeb;
    border-radius: 999px;
    color: #476254;
    font-size: .68rem;
    font-weight: 800;
    padding: .28rem .5rem;
    text-transform: uppercase;
}

.pss-status-proposed {
    background: #eef1f7;
    color: #4c5e76;
}

.pss-image-trigger {
    appearance: none;
    background: #fff;
    border: 1px solid #e1e9e5;
    border-radius: .45rem;
    color: inherit;
    cursor: zoom-in;
    display: block;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.pss-image-trigger:hover,
.pss-image-trigger:focus-visible {
    border-color: var(--pss-teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
    outline: none;
}

.pss-version-image {
    display: block;
    height: auto;
    max-width: 100%;
    transition: transform .2s ease;
    width: 100%;
}

.pss-image-trigger:hover .pss-version-image {
    transform: scale(1.015);
}

.pss-image-trigger-label {
    align-items: center;
    background: rgba(23, 50, 77, .92);
    border-radius: 999px;
    bottom: .55rem;
    color: #fff;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    gap: .4rem;
    padding: .38rem .65rem;
    position: absolute;
    right: .55rem;
}

.pss-version-card h3 {
    color: var(--pss-ink);
    font-size: 1.08rem;
    line-height: 1.3;
    margin: 0 0 .55rem;
}

.pss-version-card p,
.pss-version-card li {
    color: var(--pss-muted);
    font-size: .88rem;
    line-height: 1.6;
}

.pss-version-card p {
    margin: 0;
}

.pss-version-card ul {
    margin: .75rem 0 0;
    padding-left: 1.1rem;
}

.pss-v2-trigger {
    background: linear-gradient(135deg, #eef3f8, #f8fafc);
    min-height: 10.3rem;
}

.pss-v2-preview {
    align-items: center;
    display: flex;
    gap: .55rem;
    justify-content: center;
    min-height: 10.3rem;
    padding: 1rem;
}

.pss-v2-preview-icon,
.pss-v2-mark {
    align-items: center;
    background: #e7edf4;
    border-radius: .55rem;
    color: #456783;
    display: flex;
    font-size: 1.25rem;
    height: 2.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 2.5rem;
}

.pss-v2-preview-icon {
    flex: 0 0 auto;
    margin: 0;
}

.pss-v2-preview-code,
.pss-v2-preview-label {
    background: #fff;
    border: 1px solid #ccd9e3;
    border-radius: .45rem;
    color: var(--pss-ink);
    font-size: .74rem;
    font-weight: 800;
    padding: .55rem .65rem;
}

.pss-v2-preview-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pss-v2-preview-arrow {
    color: #6f8da4;
    font-weight: 900;
}

.pss-version-caveat {
    border-left: 3px solid #7897ad;
    font-size: .82rem !important;
    margin-top: auto !important;
    padding: .75rem 0 0 .8rem;
}

.pss-panel {
    background: #fff;
    border: 1px solid var(--pss-line);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(23, 50, 77, .05);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.pss-lightbox {
    background: #fff;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 30px 80px rgba(9, 28, 46, .34);
    color: var(--pss-ink);
    margin: auto;
    max-height: calc(100vh - 2rem);
    padding: 0;
    width: min(1100px, calc(100vw - 2rem));
}

.pss-lightbox::backdrop {
    background: rgba(9, 24, 38, .78);
    backdrop-filter: blur(3px);
}

.pss-lightbox-header {
    align-items: center;
    border-bottom: 1px solid var(--pss-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.pss-lightbox-header h2 {
    color: var(--pss-ink);
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    margin: 0;
}

.pss-lightbox-close {
    align-items: center;
    background: #edf3f0;
    border: 0;
    border-radius: 50%;
    color: var(--pss-ink);
    cursor: pointer;
    display: flex;
    flex: 0 0 auto;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.pss-lightbox-close:hover,
.pss-lightbox-close:focus-visible {
    background: var(--pss-ink);
    color: #fff;
    outline: 3px solid rgba(15, 118, 110, .3);
    outline-offset: 2px;
}

.pss-lightbox-media {
    align-items: center;
    background: #f3f7f5;
    display: flex;
    justify-content: center;
    min-height: 18rem;
    overflow: auto;
    padding: clamp(1rem, 3vw, 2.25rem);
}

.pss-lightbox-media > img {
    background: #fff;
    border: 1px solid var(--pss-line);
    border-radius: .65rem;
    display: block;
    height: auto;
    max-height: calc(100vh - 9rem);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.pss-v2-lightbox-visual {
    background: linear-gradient(145deg, #fff, #eef4f8);
    border: 1px solid #cad8e3;
    border-radius: .85rem;
    max-width: 920px;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    width: 100%;
}

.pss-v2-lightbox-icon {
    align-items: center;
    background: #e3edf4;
    border-radius: .7rem;
    color: #456783;
    display: flex;
    font-size: 1.5rem;
    height: 3.25rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 3.25rem;
}

.pss-v2-lightbox-flow {
    align-items: stretch;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr auto 1fr auto 1fr;
}

.pss-v2-lightbox-node {
    background: #fff;
    border: 1px solid #cad9e3;
    border-radius: .65rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 9.5rem;
    padding: 1rem;
}

.pss-v2-lightbox-node-accent {
    background: #eaf6f1;
    border-color: #8ab9a3;
}

.pss-v2-lightbox-label {
    color: var(--pss-teal);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .6rem;
    text-transform: uppercase;
}

.pss-v2-lightbox-node strong {
    color: var(--pss-ink);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: .4rem;
}

.pss-v2-lightbox-node code {
    color: var(--pss-muted);
}

.pss-v2-lightbox-connector {
    align-items: center;
    color: #6f8da4;
    display: flex;
    font-size: 1.6rem;
    font-weight: 900;
}

.pss-v2-lightbox-visual > p {
    color: var(--pss-muted);
    line-height: 1.65;
    margin: 1.5rem 0 0;
}

.pss-toolbar {
    border-top: 4px solid var(--pss-teal);
}

.pss-toolbar-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.pss-toolbar-header h2 {
    color: var(--pss-ink);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin: 0 0 .4rem;
}

.pss-toolbar-header p {
    color: var(--pss-muted);
    font-size: .93rem;
    line-height: 1.6;
    margin: 0;
}

.pss-toolbar-mark {
    align-items: center;
    background: var(--pss-mint);
    border-radius: .7rem;
    color: var(--pss-green);
    display: flex;
    flex: 0 0 auto;
    font-size: 1.35rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.pss-toolbar-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

.pss-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.pss-fieldset legend,
.pss-label {
    color: var(--pss-ink);
    display: block;
    font-size: .86rem;
    font-weight: 800;
    margin-bottom: .65rem;
}

.pss-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pss-choice-grid input,
.pss-toggle input {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.pss-choice-grid label {
    background: #f5f8f7;
    border: 1px solid #d3e0dc;
    border-radius: .5rem;
    color: #4a5f6f;
    cursor: pointer;
    font-size: .85rem;
    padding: .55rem .7rem;
}

.pss-choice-grid input:checked + label {
    background: var(--pss-blue);
    border-color: #78a7c5;
    color: #175273;
    font-weight: 800;
}

.pss-toggle-list {
    display: grid;
    gap: .55rem;
}

.pss-toggle {
    align-items: center;
    background: #f7faf9;
    border: 1px solid #dce7e3;
    border-radius: .5rem;
    color: #4a5f6f;
    cursor: pointer;
    display: flex;
    font-size: .86rem;
    gap: .65rem;
    padding: .62rem .7rem;
}

.pss-toggle::before {
    background: #fff;
    border: 1px solid #9db6aa;
    border-radius: .25rem;
    content: "";
    height: 1rem;
    width: 1rem;
}

.pss-toggle:has(input:checked) {
    background: var(--pss-mint);
    border-color: #8bbca4;
    color: var(--pss-green);
    font-weight: 700;
}

.pss-toggle:has(input:checked)::before {
    background: var(--pss-green);
    box-shadow: inset 0 0 0 3px #fff;
}

.pss-output {
    background: linear-gradient(135deg, #17324d, #235c61);
    border-radius: .8rem;
    color: #fff;
    margin-top: 1.5rem;
    padding: 1.25rem;
}

.pss-create-button {
    margin-top: 1.5rem;
}

.pss-output-label {
    color: #bce6d4;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pss-output h3 {
    font-size: 1rem;
    margin: .45rem 0 .6rem;
}

.pss-output p {
    color: #edf7f4;
    line-height: 1.65;
    margin: 0;
}

.pss-output code {
    background: rgba(255,255,255,.14);
    border-radius: .3rem;
    color: #fff;
    padding: .12rem .3rem;
}

.pss-compare {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.pss-compare-card {
    border-radius: .8rem;
    padding: 1.35rem;
}

.pss-compare-card.current {
    background: #fff8f4;
    border: 1px solid #f0d7c9;
}

.pss-compare-card.proposed {
    background: #eef8f3;
    border: 1px solid #c6e0d1;
}

.pss-compare-card h3 {
    font-size: 1.05rem;
    margin-bottom: .9rem;
}

.pss-compare-card ol,
.pss-safeguards {
    color: var(--pss-muted);
    font-size: .9rem;
    line-height: 1.65;
    margin: 0;
    padding-left: 1.25rem;
}

.pss-compare-card.proposed h3 {
    color: var(--pss-green);
}

.pss-table-wrap {
    border: 1px solid var(--pss-line);
    border-radius: .8rem;
    overflow-x: auto;
}

.pss-table {
    background: #fff;
    border-collapse: collapse;
    min-width: 560px;
    width: 100%;
}

.pss-table th,
.pss-table td {
    border-bottom: 1px solid #e6eeeb;
    padding: .85rem 1rem;
    text-align: left;
    vertical-align: top;
}

.pss-table th {
    background: #edf7f3;
    color: var(--pss-ink);
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pss-table td {
    color: var(--pss-muted);
    font-size: .9rem;
}

.pss-table tr:last-child td {
    border-bottom: 0;
}

.pss-table td:first-child {
    color: var(--pss-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 800;
    white-space: nowrap;
}

.pss-note {
    color: #735c18;
    font-size: .85rem;
    line-height: 1.6;
    margin: 1rem 0 0;
}

.pss-safeguard-grid {
    display: grid;
    gap: .75rem 2rem;
    grid-template-columns: 1fr 1fr;
}

.pss-safeguards {
    list-style: none;
    padding: 0;
}

.pss-safeguards li {
    padding-left: 1.65rem;
    position: relative;
}

.pss-safeguards li::before {
    color: var(--pss-green);
    content: "✓";
    font-weight: 900;
    left: 0;
    position: absolute;
}

.pss-feedback-wrap {
    background: #e6efeb;
    border: 1px solid #c6d9d0;
    border-radius: 1.1rem;
    padding: clamp(1rem, 3vw, 2rem);
}

.pss-feedback {
    background: #fff;
    border-radius: .85rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.pss-feedback h2 {
    color: var(--pss-ink);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: -.03em;
}

.pss-feedback-intro {
    color: var(--pss-muted);
    line-height: 1.7;
    max-width: 650px;
}

.pss-form-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: 1fr 1fr;
}

.pss-form-full {
    grid-column: 1 / -1;
}

.pss-feedback .form-control,
.pss-feedback .form-select {
    border-color: #c9d9d4;
    border-radius: .5rem;
    padding: .7rem .8rem;
}

.pss-feedback .form-control:focus,
.pss-feedback .form-select:focus {
    border-color: var(--pss-teal);
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .14);
}

.pss-feedback .pss-choice-grid {
    margin-top: .25rem;
}

.pss-form-error {
    color: #a12d2d;
    font-size: .82rem;
    margin-top: .35rem;
}

.pss-consent {
    background: #fff9e8;
    border: 1px solid #efd99b;
    border-radius: .5rem;
    color: #6c571d;
    font-size: .83rem;
    line-height: 1.55;
    margin: 1.25rem 0;
    padding: .75rem .85rem;
}

.pss-success,
.pss-error {
    border-radius: .5rem;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
}

.pss-success {
    background: #e8f7ef;
    border: 1px solid #a6d4b8;
    color: #1a5b37;
}

.pss-error {
    background: #fff0f0;
    border: 1px solid #e7b4b4;
    color: #8f2727;
}

.pss-callout {
    background: #eef7f4;
    border-left: 4px solid var(--pss-green);
    border-radius: .5rem;
    color: #31546a;
    line-height: 1.7;
    margin: 0;
    padding: 1rem 1.15rem;
}

.pss-callout strong {
    color: var(--pss-ink);
    display: block;
    margin-bottom: .15rem;
}

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

    .pss-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 700px) {
    .pss-shell {
        width: min(100% - 1.25rem, 1180px);
    }

    .pss-hero {
        padding-top: 2.75rem;
    }

    .pss-workflow,
    .pss-toolbar-grid,
    .pss-version-grid,
    .pss-compare,
    .pss-safeguard-grid,
    .pss-form-grid {
        grid-template-columns: 1fr;
    }

    .pss-step {
        padding: 1.1rem;
    }

    .pss-step:not(:last-child)::after {
        content: "↓";
        display: block;
        bottom: -.95rem;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }

    .pss-form-full {
        grid-column: auto;
    }

    .pss-lightbox {
        max-height: calc(100vh - 1rem);
        width: calc(100vw - 1rem);
    }

    .pss-lightbox-media {
        align-items: flex-start;
        min-height: 12rem;
    }

    .pss-v2-lightbox-flow {
        grid-template-columns: 1fr;
    }

    .pss-v2-lightbox-connector {
        justify-content: center;
        transform: rotate(90deg);
    }
}

@media (max-width: 420px) {
    .pss-pathways {
        display: grid;
    }

    .pss-pathway {
        border-radius: .55rem;
        text-align: left;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pss-pathway,
    .pss-version-image {
        transition: none;
    }
}