.skill-unavailable-note { color: #977043; font-size: 12px; line-height: 1.8; margin-top: 8px; }
.skill-image-missing { min-height: 160px; height: 100%; display: grid; place-items: center; color: #7a8771; background: #eef1e7; }
.skill-keywords { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.skill-keywords span { padding: 5px 10px; color: #637357; background: #edf2e5; border: 1px solid #dfe7d5; border-radius: 6px; font-size: 12px; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.skill-style { margin-top: 14px; }
.skill-file-info { display: grid; gap: 15px; margin: 22px 0; font-size: 13px; }
.skill-file-info > div { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 16px; }
.skill-file-info dt { color: #7a8771; }
.skill-file-info dd { margin: 0; overflow-wrap: anywhere; }
.detail-content .feature-grid:has(> :only-child) { grid-template-columns: 1fr; }
.detail-preview > img { width: 100%; height: auto; object-fit: contain; }
.detail-info .notice { margin-top: 20px; }
.member-note a { text-decoration: underline; text-underline-offset: 3px; }
.download-records { display: block; }
.record-title { font: inherit; font-weight: inherit; text-align: left; padding: 0; border: 0; background: transparent; color: inherit; }
.record-title:hover { color: var(--orange); }
.record-row .record-main { flex: 1; min-width: 0; }
.record-row .record-main h2 { overflow-wrap: anywhere; }
.record-row .record-main p { line-height: 1.75; }
.record-date { white-space: nowrap; }
.download-pagination { margin: 23px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7a8771; font-size: 12px; }
.download-pagination .page-buttons { display: flex; gap: 7px; align-items: center; }
.download-pagination .secondary { min-width: 34px; padding: 7px 11px; }
.download-pagination [aria-current="page"] { color: white; background: #1f3b34; border-color: #1f3b34; }
.catalog-pagination { margin: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #7a8771; font-size: 12px; }
.catalog-pagination .page-buttons { flex-wrap: wrap; }
.catalog-pagination .secondary { min-width: 34px; padding: 7px 11px; }
#library-results { scroll-margin-top: 20px; }
#library-results:focus { outline: none; }
.page-ellipsis { padding: 0 4px; }
.skill-card .card-actions { flex-wrap: wrap; gap: 12px; }
.skill-card .minor-actions { margin-left: auto; }
.skill-card .card-download { margin-top: 14px; }
.skill-card .card-download .primary { align-self: flex-start; min-height: 36px; padding: 8px 14px; font-size: 12px; }
.skill-card .card-download .download-status { padding: 9px 10px; }
#compare-tray a.primary { white-space: nowrap; }
body:has(#compare-tray:not([hidden])) .main { padding-bottom: 145px; }

/* P6 reference gallery structure; colors inherit the site theme. */
.skill-gallery { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.skill-gallery button { display: grid; gap: 4px; width: 84px; padding: 4px; border: 2px solid transparent; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.skill-gallery button[aria-pressed="true"] { border-color: currentColor; }
.skill-gallery button img { width: 72px; height: 60px; object-fit: contain; }
.skill-gallery button span { font-size: 11px; }
