:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #18243b; background: #f7f9fc; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1.2rem, calc((100% - 1100px) / 2)); border-bottom: 1px solid #dfe6f1; background: #fff; }
.brand { color: #12213b; font-size: 1.1rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand span { color: #5c43c4; font-weight: 600; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
nav a, nav .link, .back { color: #50617c; text-decoration: none; font-size: .9rem; }
nav form { margin: 0; }
main { max-width: 1100px; margin: 0 auto; padding: 3rem 1.2rem 5rem; }
h1 { margin: .25rem 0 .8rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 1.3rem; }
h3 { margin: 1.2rem 0 .4rem; font-size: 1rem; }
p { color: #586a84; }
.eyebrow { color: #6c50cc; font-weight: 750; letter-spacing: .09em; font-size: .85rem; text-transform: uppercase; }
.intro { max-width: 680px; padding-top: 4rem; }
.intro p:not(.eyebrow) { font-size: 1.1rem; margin: 1.4rem 0 2rem; }
section { margin-top: 2rem; }
.section-title { display: flex; align-items: center; gap: .7rem; }
.section-title span { padding: .15rem .5rem; color: #5c43c4; border-radius: 999px; background: #eae6fb; font-size: .85rem; }
.list { display: grid; gap: .7rem; margin-top: 1rem; }
.card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem 1.15rem; border: 1px solid #dce4ef; border-radius: 10px; background: white; box-shadow: 0 4px 12px #1c31510a; }
.card h3 { margin: 0; color: #18243b; }
.card p, .card span { margin: .25rem 0 0; color: #687b93; font-size: .9rem; overflow-wrap: anywhere; }
.card strong { color: #5b46b5; font-size: .9rem; }
.proposal { text-decoration: none; }
.proposal:hover { border-color: #806fce; }
.empty, .notice { padding: 1rem; border-radius: 8px; background: #edf1f8; }
.notice { color: #30475e; }
button, .button { display: inline-block; padding: .65rem .95rem; border: 1px solid #5e49c5; border-radius: 7px; background: #5e49c5; color: #fff; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #4d3ba7; }
button.secondary { border-color: #c9d3e1; background: #fff; color: #24344a; }
button.link { border: 0; padding: 0; background: transparent; font-weight: 500; }
.pair { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
label { font-weight: 650; }
input { min-width: 0; max-width: 28rem; flex: 1; padding: .65rem; border: 1px solid #bbc9da; border-radius: 7px; font: inherit; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; }
.detail-grid section { padding: 1.2rem; border: 1px solid #dce4ef; border-radius: 10px; background: white; }
dt { margin-top: .7rem; color: #65748a; font-size: .85rem; }
dd { margin: .15rem 0; overflow-wrap: anywhere; }
.digest { font-family: ui-monospace, monospace; font-size: .8rem; }
pre { max-height: 38rem; overflow: auto; padding: 1rem; border-radius: 8px; color: #d9e6f5; background: #18243b; font-size: .85rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.lead { color: #24344a; font-size: 1.1rem; overflow-wrap: anywhere; }
.detail-grid section.signed { border-color: #806fce; }
.unverified { padding: 1.2rem; border: 1px dashed #c4a54a; border-radius: 10px; background: #fffbef; }
.unverified h2 { color: #6b5312; }
.unverified dd { white-space: pre-wrap; }
dd ul { margin: .2rem 0; padding-left: 1.2rem; }
.decision { position: sticky; bottom: 0; padding: 1rem; border: 1px solid #dce4ef; border-radius: 10px; background: #fff; }
.decision form { display: flex; gap: .7rem; }
@media (max-width: 650px) { header { align-items: flex-start; flex-direction: column; } main { padding-top: 2rem; } .detail-grid { grid-template-columns: 1fr; gap: 0; } .pair label, .pair input { flex-basis: 100%; max-width: none; } }
/* Lab exchange */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.card.package { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0; overflow: hidden; text-decoration: none; }
.card.package:hover { border-color: #806fce; }
.card.package > div:last-child { padding: .9rem 1.1rem 1.1rem; }
.card.package h3 { margin: .2rem 0 .3rem; }
.thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #e9eef6; border-bottom: 1px solid #dce4ef; }
.preview { display: block; width: 100%; max-height: 34rem; object-fit: contain; border: 1px solid #dce4ef; border-radius: 10px; background: #e9eef6; }
.placeholder { display: flex; align-items: center; justify-content: center; min-height: 9rem; color: #7a8aa1; font-size: .9rem; }
.preview.placeholder { aspect-ratio: 16 / 7; }
.tag { margin: 0; color: #6c50cc; font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.meta { color: #687b93; font-size: .85rem; }
.package-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.package-main section { padding-top: .5rem; }
.package-main h2 { margin-bottom: .4rem; }
aside, .package-main { min-width: 0; }
aside { display: grid; gap: 1rem; }
.panel .digest { display: block; overflow-wrap: anywhere; word-break: break-all; }
.panel { padding: 1.1rem; border: 1px solid #dce4ef; border-radius: 10px; background: white; }
.panel h3 { margin: 0 0 .4rem; }
.panel p { margin: .35rem 0; }
.panel pre { margin: .4rem 0 0; padding: .6rem .7rem; font-size: .8rem; }
.panel.review { border-color: #806fce; }
.panel form { margin-top: .7rem; }
.button.wide { display: block; text-align: center; }
.author { margin: 0; color: #18243b; font-weight: 650; }
.links, .versions { margin: .5rem 0; padding: 0; list-style: none; }
.links li, .versions li { margin: .3rem 0; }
.links a, .versions a { color: #5b46b5; }
.versions li { display: flex; justify-content: space-between; gap: .7rem; font-size: .9rem; }
.versions span { color: #687b93; }
.versions a[aria-current] { font-weight: 750; }
.prose { color: #24344a; white-space: pre-wrap; overflow-wrap: anywhere; }
details { margin: .5rem 0; }
summary { cursor: pointer; color: #50617c; }
.files { margin: .6rem 0; padding: 0; list-style: none; font-family: ui-monospace, monospace; font-size: .78rem; }
.files li { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; border-bottom: 1px solid #eef2f7; overflow-wrap: anywhere; }
.files li span:last-child { flex: none; color: #687b93; }
.stack { display: flex; flex-direction: column; align-items: stretch; gap: .45rem; }
.stack label { margin-top: .6rem; }
.stack input, .stack textarea { max-width: none; }
.edit, .upload { max-width: 760px; }
textarea { width: 100%; padding: .65rem; border: 1px solid #bbc9da; border-radius: 7px; font: inherit; resize: vertical; }
.hint { margin: 0; font-size: .85rem; }
.row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
fieldset { margin: 1rem 0 0; padding: .8rem 1rem 1rem; border: 1px solid #dce4ef; border-radius: 10px; }
legend { padding: 0 .3rem; font-weight: 650; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .5rem; margin-top: .5rem; }
.facts { padding: 1rem 1.2rem; border: 1px solid #dce4ef; border-radius: 10px; background: white; }
.steps { padding-left: 1.3rem; color: #24344a; }
.steps li { margin: .6rem 0; }
.steps pre { margin: .4rem 0; }
.identity { padding: 1rem 1.2rem; border: 1px solid #dce4ef; border-radius: 10px; background: white; }
@media (max-width: 800px) { .package-grid { grid-template-columns: 1fr; } }
