:root { color-scheme: light; font-family: system-ui, sans-serif; color: #142629; background: #edf2f0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 70rem; padding: clamp(1rem, 3vw, 2.5rem); margin: auto; }
.hero { color: #f5f9f7; background: #143b3a; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 1.25rem; }
.hero p { max-width: 38rem; color: #e3f1ed; }
.eyebrow { text-transform: uppercase; font-weight: 700; letter-spacing: .12em; font-size: .76rem; }
h1 { margin: .2rem 0; font-size: clamp(2.2rem, 6vw, 4.25rem); line-height: 1.03; letter-spacing: -.05em; }
h2, h3 { margin: 0; line-height: 1.2; }
p { margin: .55rem 0 1rem; line-height: 1.55; }
.panel { background: #fff; border: 1px solid #d2ded9; margin-top: 1rem; padding: clamp(1rem, 3vw, 1.8rem); border-radius: 1rem; }
.inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: block; font-weight: 650; }
textarea { width: 100%; margin: .4rem 0; border: 1px solid #819995; border-radius: .5rem; padding: .7rem; font: .92rem/1.4 ui-monospace, monospace; resize: vertical; }
.upload { font-size: .85rem; margin: .25rem 0; }
input { max-width: 100%; font-size: .85rem; }
button { appearance: none; border: 1px solid transparent; padding: .7rem 1rem; min-height: 44px; border-radius: .55rem; background: #176459; color: white; font: inherit; font-weight: 650; cursor: pointer; }
.hero button { background: #b5f1d5; color: #143b3a; }
.secondary { color: #15473e; background: #edf7f3; border-color: #a9c5ba; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid #d98928; outline-offset: 3px; }
.actions, .result-head { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
form .actions { margin-top: 1rem; }
.result-head { justify-content: space-between; }
#status { margin: 0; flex: 1 1 16rem; }
#status.error { color: #a22628; }
.changes { margin: .5rem 0 1.5rem; }
.row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .45rem .8rem; align-items: start; padding: .65rem 0; border-bottom: 1px solid #e3ebe7; }
.tag { width: fit-content; padding: .15rem .5rem; border-radius: .3rem; background: #e1f3ea; color: #144437; font-weight: 650; }
.tag.retire { background: #fae9e7; color: #802321; }
.tag.keep { background: #eef1f0; color: #40514e; }
.detail { display: block; margin-top: .18rem; overflow-wrap: anywhere; font-size: .88rem; }
.artwork { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .8rem; }
.card { text-align: center; border: 1px solid #d2ded9; border-radius: .6rem; padding: .8rem; overflow-wrap: anywhere; }
.card svg { display: block; width: min(8.5rem, 100%); height: auto; margin: .25rem auto; }
.card p { font-size: .82rem; }
@media (max-width: 40rem) { .inputs { grid-template-columns: 1fr; } textarea { font-size: 1rem; } }
@media print {
  :root { background: white; }
  main { max-width: none; padding: 0; }
  .hero, form, .result-head, .changes, .card button { display: none !important; }
  #results { border: 0; margin: 0; padding: 0; }
  .artwork { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { break-inside: avoid; }
}
