.psm { scroll-margin-top: 100px; }
.psm-eyebrow { display: block; color: #427b18; font-size: .75rem; font-weight: 800; letter-spacing: .16em; margin-bottom: .65rem; }
.psm-heading h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; color: #111; }
.psm-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.psm-date { margin: 0; color: #555; font-size: .85rem; }
.psm-dot { display: inline-block; width: 7px; height: 7px; margin-right: .4rem; background: #57a220; border-radius: 50%; }
.psm-formats { display: flex; padding: 4px; border: 1px solid #dedfd9; border-radius: 8px; background: #f4f5f0; }
.psm-formats button { padding: .5rem .85rem; border: 0; border-radius: 5px; background: transparent; color: #555; font-size: .85rem; font-weight: 700; }
.psm-formats button span { font-weight: 400; margin-left: .3rem; }
.psm-formats button[aria-pressed="true"] { background: #111; color: #fff; }
.psm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.psm-card { border: 1px solid #dedfd9; border-radius: 12px; overflow: hidden; background: #fff; }
.psm-preview { padding: 1.5rem; background: #e9ece4; display: flex; justify-content: center; }
.psm-preview img { display: block; width: 100%; max-width: 230px; height: auto; box-shadow: 0 8px 18px #1112; }
.psm[data-format="feed"] .psm-preview img { max-width: 300px; }
.psm-card-body { padding: 1.3rem; }
.psm-index { display: block; color: #64715c; font-size: .7rem; letter-spacing: .1em; margin-bottom: .5rem; }
.psm-card h3 { font-size: 1.16rem; letter-spacing: -.02em; font-weight: 800; color: #111; }
.psm-card-body > p { color: #666; font-size: .87rem; min-height: 2.7em; }
.psm-downloads { display: flex; gap: .6rem; margin: 1rem 0; }
.psm-share { width: 100%; padding: .8rem; border: 0; border-radius: 6px; background: #57a220; color: #fff; font-weight: 700; font-size: .95rem; }
.psm-share:hover { background: #427b18; }
.psm-card-body > .psm-share-hint, .psm-card-body > .psm-share-status { min-height: 0; font-size: .77rem; line-height: 1.45; margin: .55rem 0; }
.psm-share-status:empty { display: none; }
.psm-share-link { width: 100%; font-size: .8rem; padding: .55rem; border: 1px solid #b8c4af; border-radius: 5px; }
.psm-download { flex: 1; padding: .7rem .4rem; text-align: center; border: 1px solid #b8c4af; border-radius: 6px; color: #2f5914; font-size: .87rem; font-weight: 700; text-decoration: none; }
.psm-download:hover { background: #eff5e9; color: #244410; }
.psm-download span { display: block; font-size: .7rem; font-weight: 400; color: #687360; margin-top: .2rem; }
.psm-copy-panel { border-top: 1px solid #e4e7df; padding-top: .85rem; font-size: .85rem; }
.psm-copy-panel summary { cursor: pointer; font-weight: 700; color: #333; }
.psm-copy-panel label { display: block; margin: 1rem 0 .35rem; color: #555; }
.psm-copy-panel input, .psm-copy-panel textarea { width: 100%; display: block; padding: .6rem; border: 1px solid #d4d9ce; background: #fafbf8; border-radius: 5px; font-size: .8rem; color: #333; margin-bottom: .5rem; }
.psm-copy-panel textarea { resize: vertical; }
.psm button:disabled { opacity: .45; cursor: not-allowed; }
.psm-bundle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #111; color: #fff; padding: 1.5rem; margin-top: 1.5rem; border-radius: 9px; }
.psm-bundle h3 { font-size: 1.15rem; color: #fff; font-weight: 800; margin-bottom: .4rem; }
.psm-bundle p { font-size: .82rem; color: #b5bcb0; margin: 0; }
.psm-zip { padding: .75rem 1rem; background: #a9dc78; color: #15200b; text-decoration: none; font-weight: 700; font-size: .85rem; border-radius: 5px; }
.psm-zip:hover { background: #b9e591; color: #15200b; }
.psm-zip[aria-disabled="true"] { background: #d0d5cb; }
.psm-aff-note, .psm-status { margin: .8rem 0; font-size: .85rem; color: #555; }
.psm-aff-note[data-invalid="true"] { color: #a33021; }
.psm-status:empty { display: none; }
.psm-howto { background: #f4f6f0; padding: 1.4rem; margin-top: 1.5rem; border-radius: 8px; color: #555; font-size: .9rem; }
.psm-howto h3 { font-size: 1rem; color: #222; font-weight: 800; }
.psm-howto ol { padding-left: 1.3rem; }
.psm-howto li { padding-left: .3rem; margin: .65rem 0; }
.psm-howto p { margin: 0; font-size: .8rem; }
.psm :is(a, button, input, textarea, summary):focus-visible { outline: 3px solid #57a220; outline-offset: 3px; }
#pr-aff { scroll-margin-top: 120px; }
@media (max-width: 600px) { .psm-grid { grid-template-columns: 1fr; } .psm-preview { padding: 1.25rem; } .psm-bundle { align-items: stretch; } .psm-zip { text-align: center; width: 100%; } }

.psm-share-id-panel { padding: .85rem; margin-bottom: .75rem; border: 1px solid #b8c4af; border-radius: 6px; background: #f4f6f0; }
.psm-share-id-panel label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; }
.psm-share-id-panel input { width: 100%; min-width: 0; padding: .65rem; border: 1px solid #b8c4af; border-radius: 5px; font-size: 1rem; }
.psm-share-id-panel p { font-size: .77rem; line-height: 1.45; margin: .5rem 0 0; }
