* { box-sizing: border-box; }
body { margin: 0; background: #fafaf8; color: #222; font: 14px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; }
main { max-width: 1000px; margin: 0 auto; padding: 28px 24px 40px; }
header { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 16px; }
h1 { font-weight: 400; font-size: 28px; letter-spacing: .02em; margin: 0; line-height: 1; grid-column: 1; grid-row: 1; }
.lab { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; line-height: 1; text-decoration: none; color: inherit; }
.lab-chem { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.05em; color: #384959; text-transform: uppercase; line-height: 1; }
.lab-chem span { color: #0d9488; }
.lab-bar { display: block; height: 2px; width: 100%; margin: 3px 0; border-radius: 999px; background: linear-gradient(to right, rgba(13,148,136,.8), rgba(56,73,89,.4)); }
.lab-sub { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: .5rem; color: #6b7280; text-transform: uppercase; line-height: 1; padding-left: 1px; }
.lede { grid-column: 1 / -1; color: #777; margin: 6px 0 22px; }
a { color: #345; cursor: pointer; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid #e4e4e0; margin-bottom: 18px; }
.tabs a { color: #999; text-decoration: none; padding: 6px 0; margin-bottom: -1px; border-bottom: 1px solid transparent; }
.tabs a.on { color: #111; border-bottom-color: #111; }
.pane { display: none; } .pane.on { display: block; }
.cols { display: flex; gap: 32px; flex-wrap: wrap; } .col { flex: 1 1 380px; min-width: 0; }
label { display: block; color: #888; font-size: 12px; margin: 0 0 4px; }
input[type=text] { width: 100%; border: none; border-bottom: 1px solid #ccc; background: transparent; padding: 6px 0; font: 15px Menlo, Consolas, monospace; color: #111; outline: none; }
input[type=text]:focus { border-bottom-color: #111; }
input[type=range] { display: block; width: 100%; max-width: 420px; accent-color: #444; margin: 2px 0 6px; }
#tab-bands label[for=tol] { margin-top: 14px; }
.toggle { display: flex; gap: 18px; margin: 12px 0; }
.toggle a { color: #999; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.toggle a.on { color: #111; border-bottom-color: #111; }
.examples { color: #aaa; font-size: 12.5px; margin: 6px 0 14px; }
.examples a { color: #777; margin-right: 10px; }
button { display: block; margin-top: 8px; background: #222; color: #fff; border: none; border-radius: 2px; padding: 8px 26px; font: inherit; cursor: pointer; }
button:disabled { background: #999; }
#jsme { width: 100%; height: 240px; }
.tools { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; }
#lic { margin-top: 0; font-size: 13px; }
#random { color: #777; text-decoration: none; font-size: 13px; }
#random:hover { color: #111; }
.overview { color: #666; font-size: 13px; margin: 0 0 18px; }
.charts { display: flex; gap: 36px; flex-wrap: wrap; }
.chart { flex: 1 1 300px; min-width: 0; }
.chart h2 { font-weight: 400; font-size: 13px; color: #888; margin: 0 0 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: #bbb; stroke-width: .6; fill: none; }
.chart .bar { fill: #333; }
.chart text { font-size: 9px; fill: #999; }
.summary { color: #666; font-size: 13px; margin: 8px 0 4px; }
.csv { font-size: 13px; margin: 0 0 10px; }
.card { display: flex; gap: 18px; padding: 14px 0; border-top: 1px solid #e6e6e2; }
.card .mol { flex: 0 0 168px; height: 120px; }
.card .mol svg { width: 168px; height: 120px; }
.card .info { flex: 1; min-width: 0; }
.name { font-size: 15px; color: #111; overflow-wrap: anywhere; }
.meta, .src { font-size: 12.5px; color: #666; margin-top: 2px; }
.bandlist { font: 11.5px Menlo, Consolas, monospace; color: #555; margin-top: 2px; overflow-wrap: anywhere; }
.dim { color: #aaa; }
.nostruct { width: 168px; height: 120px; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 12px; border: 1px dashed #e2e2de; }
svg.stick { width: 100%; max-width: 560px; height: auto; display: block; margin-top: 6px; }
svg.stick .axis { stroke: #bbb; stroke-width: .6; } svg.stick .band { stroke: #333; stroke-width: 1; } svg.stick .hit { stroke: #b33; stroke-width: 1.4; }
svg.stick text { font-size: 9px; fill: #999; text-anchor: middle; }
footer { color: #777; font-size: 12px; border-top: 1px solid #e6e6e2; margin-top: 28px; padding-top: 12px; line-height: 1.6; }
footer a { color: #555; }
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .lab-chem { font-size: 1.1rem; }
  .lab-sub { font-size: .45rem; }
  header { column-gap: 12px; }
  .card { flex-direction: column; }
}
