:root { color-scheme: dark; font: 16px/1.5 system-ui, sans-serif; background: #101114; color: #f3f4f6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { width: min(100% - 2rem, 960px); margin: 0 auto; padding: 2rem 0 4rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; min-height: 3rem; margin-bottom: 5rem; }
.brand { color: #f3f4f6; font-weight: 750; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a { min-height: 2.5rem; padding: .55rem .8rem; border: 1px solid transparent; border-radius: .5rem; color: #9ba3af; font-size: .9rem; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { border-color: #526071; color: #f3f4f6; outline: none; }
.nav-links a.active { border-color: #3c6756; color: #74e0b4; background: #1b2a25; }
.page-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.eyebrow { color: #74e0b4; letter-spacing: .14em; font-size: .75rem; font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: .95; margin: .4rem 0 1rem; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 1.1rem; }
.lede { color: #b9bec8; max-width: 46rem; }
.card { background: #191b20; border: 1px solid #30343d; border-radius: 1rem; padding: 1rem; margin-top: 1rem; }
button, .download { border: 1px solid #526071; border-radius: .5rem; padding: .65rem .85rem; background: #242a33; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .download:hover { border-color: #74e0b4; }
.controls { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .85rem; }
.primary-action { flex: 1; border-color: #74e0b4; background: #237a55; font-weight: 700; }
button:disabled { cursor: not-allowed; opacity: .45; }
.dropzone { display: grid; place-items: center; min-height: 12rem; padding: 2rem; border: 1px dashed #526071; border-radius: .7rem; text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone:focus-within { border-color: #74e0b4; }
.dropzone span { font-size: 1.2rem; font-weight: 700; }
.dropzone small { color: #9ba3af; }
.settings-note { margin: 1.25rem 0 0; padding: .75rem 1rem; border: 1px solid #30343d; border-radius: .6rem; color: #b9bec8; background: #15171b; font-size: .9rem; }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.status { color: #74e0b4; margin: 1rem 0 .25rem; }
.error { color: #ff9e9e; margin: .25rem 0; }
.result { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #30343d; }
.result-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.result-kicker { margin: 0 0 .35rem; color: #74e0b4; font-size: .72rem; font-weight: 750; letter-spacing: .14em; }
.result-head h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.result-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: 1.25rem 0 0; }
.result-details > div { padding: .85rem 1rem; border: 1px solid #30343d; border-radius: .6rem; background: #15171b; }
dt { color: #818995; font-size: .78rem; }
dd { margin: .2rem 0 0; font-size: 1rem; font-weight: 600; }
.result-detail-emphasis { border-color: #3c6756 !important; background: #1b2a25 !important; }
.result-detail-emphasis dd { color: #74e0b4; font-size: 1.1rem; }
.download { display: inline-block; border-color: #74e0b4; background: #237a55; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .shell { padding: 1rem 0 2rem; }
  .site-nav { flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .page-header { flex-direction: column; }
  .result-head { align-items: start; flex-direction: column; }
  .result-details { grid-template-columns: 1fr; }
}
