:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#242f29;background:#faf7ec;font-synthesis:none;--ink:#242f29;--muted:#586651;--line:#c8c6b1;--accent:#586651;--paper:#fff}*{box-sizing:border-box}body{margin:0}a{color:#586651;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.file-button{cursor:pointer;border:1px solid #c8c6b1;border-radius:9px;background:#fff;padding:11px 17px;color:#445744;font-size:13px;font-weight:600;transition:background .15s,transform .15s}button:hover,.file-button:hover{background:#e9e6d6}button:disabled{opacity:.42;cursor:not-allowed}button.primary{color:#fff;background:#586651;border-color:#586651;box-shadow:0 3px 10px #58665120}button.primary:hover{background:#586651}button.small{padding:7px 12px}input,select,textarea{border:1px solid #c8c6b1;border-radius:7px;padding:10px 11px;background:#faf7ec;color:#242f29;width:100%;min-width:0}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid #586651;outline-offset:3px}input[type=file]{padding:9px;font-size:12px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#445744;font-weight:550}small{font-size:11px;line-height:1.6;color:var(--muted)}header{height:85px;max-width:1320px;margin:auto;padding:0 34px;display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--line)}header>a:last-child{margin-left:auto;font-size:12px}.brand{display:flex;align-items:center;font-size:25px;letter-spacing:-1px;font-weight:650;color:#242f29}.brand:hover{text-decoration:none}.mark{display:grid;place-items:center;border-radius:10px;background:#c8c6b1;color:#586651;width:34px;height:34px;margin-right:10px;font-family:Georgia,serif;font-style:italic;font-size:29px}.dot{color:#586651}.crumb{font-size:10px;letter-spacing:1.8px;color:#586651}main{max-width:1250px;margin:auto;padding:0 32px}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:60px;padding:53px 0 38px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#586651;margin-bottom:14px}h1{font-size:clamp(36px,4.3vw,57px);font-weight:530;line-height:1.08;letter-spacing:-2.5px;margin:0 0 19px}h2{font-size:24px;letter-spacing:-.65px;font-weight:550;margin:0 0 6px}h3{font-size:16px;letter-spacing:-.2px;font-weight:600;margin:12px 0}p{font-size:13px;line-height:1.75;color:#445744}.hero p{font-size:15px;line-height:1.7}.hero-plot{padding:26px 18px}.hero-plot svg{width:100%;overflow:visible}.grid{stroke:#c8c6b1;stroke-width:1;fill:none}.wave{stroke:url(#line);stroke-width:3;fill:none}.shadow{stroke-width:17;opacity:.12}.hero-plot>div{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.5px;color:#586651;margin-top:15px}.notice{display:flex;align-items:center;gap:8px;font-size:11px;line-height:1.6;color:#586651;padding:13px 17px;border:1px solid #c8c6b1;background:#ffffff80;border-radius:9px}.status-dot{width:6px;height:6px;background:#5baba1;border-radius:50%;margin-right:3px;flex-shrink:0}.notice b{color:#445744;white-space:nowrap}.steps{display:flex;margin:28px 0 16px;gap:35px;padding:0 2px}.steps a{display:flex;align-items:center;gap:10px;font-size:12px;color:#445744}.steps span{color:#586651;font-size:10px}.steps b{background:#e9e6d6;border-radius:15px;font-size:10px;padding:2px 6px}#status{font-size:12px;padding:6px 0 15px;color:#586651;min-height:37px}#status.error{color:#a33b4c}#status.success{color:#39786f}.progress-row{display:flex;gap:15px;align-items:center;margin-bottom:15px}.progress-row[hidden]{display:none}progress{width:100%;height:6px;accent-color:#586651}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:29px;margin-bottom:25px;scroll-margin-top:20px;box-shadow:0 5px 25px #34463a03}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.section-head .eyebrow{margin-bottom:9px}.source-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.dropzone{border:1px dashed #93977d;background:linear-gradient(120deg,#faf7ec,#faf7ec);border-radius:10px;align-items:center;text-align:center;padding:25px;gap:10px}.dropzone strong{font-size:15px;font-weight:550;color:#445744}.dropzone>span:not(.upload-icon){font-size:11px;color:#586651}.dropzone input{border:0;background:transparent;max-width:340px}.upload-icon{font-size:29px;font-weight:300;color:#586651}.example{background:#faf7ec;padding:21px;border-radius:10px}.example p{font-size:12px;margin:9px 0}.example a{display:block;font-size:12px;margin:10px 0}.example small{display:block;margin-top:14px}.pill{display:inline-block;font-size:9px;letter-spacing:1.2px;font-weight:600;color:#586651;background:#e9e6d6;border-radius:5px;padding:6px 8px;white-space:nowrap}.controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:15px;margin:22px 0}.controls label{justify-content:flex-end}.actions{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:22px 0 2px}.actions label{min-width:180px}.muted{font-size:11px;color:#586651;line-height:1.7}details{border-top:1px solid var(--line);padding-top:15px;margin-top:20px}summary{cursor:pointer;color:#586651;font-size:12px;margin-bottom:12px}video{display:block;max-width:100%;max-height:360px;margin:20px auto 0;background:#242f29;border-radius:8px}video[hidden],audio[hidden],[hidden]{display:none!important}audio{width:100%;margin-top:18px}.spectrum-wrap{position:relative;background:#242f29;border-radius:9px;overflow:hidden;min-height:250px}canvas{display:block;width:100%;height:auto}#spectrum{aspect-ratio:1100/400;cursor:crosshair}.canvas-empty{position:absolute;inset:0;display:grid;place-items:center;color:#586651;font-size:13px;pointer-events:none}.chart-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:#586651;margin-top:10px}.checkbox{flex-direction:row;align-items:center;font-size:10px}.checkbox input{width:auto}.event-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);margin-top:25px;padding-top:15px}.event-heading>div{display:flex;gap:8px}.file-button{display:inline-flex;padding:8px 11px;font-size:11px}.file-button input{display:none}.event-heading button{font-size:11px;padding:8px 11px}.empty-list{font-size:12px;color:#586651;background:#faf7ec;padding:18px;border-radius:8px}.event-card{display:flex;gap:16px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:9px;margin:8px 0;font-size:12px}.event-card>div:first-child{flex:1;min-width:100px}.event-card b{font-weight:600;display:block}.event-card small{display:block}.event-card select{max-width:180px}.event-card button{font-size:10px;padding:7px 10px}.wide-label{max-width:420px;margin:25px 0 8px}.result-head{background:linear-gradient(100deg,#e9e6d6,#eef7f5);padding:20px;border-radius:9px;margin-top:25px}.result-head h3{font-size:23px;font-weight:500}.result-head p{margin-bottom:0}.table-wrap{overflow:auto;margin:20px 0}table{border-collapse:collapse;width:100%;font-size:11px;text-align:left;white-space:nowrap}td,th{padding:10px 12px;border-bottom:1px solid var(--line)}th{font-weight:550;color:#586651}td{color:#445744}.fit-chart{margin-top:20px}.fit-chart h4{font-size:13px;font-weight:500}.method{padding:30px 8px}.method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:30px}.method-grid article>span{font-size:11px;color:#586651}.method-grid p{font-size:12px}.method details p{font-size:12px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:25px 0 30px;margin-top:28px;font-size:11px;color:#586651}.skip{position:absolute;left:-9999px}.skip:focus{left:15px;top:15px;z-index:10;background:#fff;padding:10px}@media(max-width:700px){header{height:70px;padding:0 19px;gap:14px}.crumb{display:none}main{padding:0 15px}.hero{grid-template-columns:1fr;gap:0;padding:35px 5px 20px}.hero-plot{display:none}h1{font-size:39px;letter-spacing:-1.6px}.notice{flex-wrap:wrap;font-size:10px}.steps{gap:15px;justify-content:space-between}.steps a{gap:5px;font-size:10px}.panel{padding:19px 15px}.section-head{align-items:flex-start}.section-head button{font-size:10px;padding:9px 10px}.source-grid{grid-template-columns:1fr}.example{padding:16px}.controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chart-foot{align-items:flex-start;flex-direction:column;gap:7px}.event-card{flex-wrap:wrap}.event-card select{max-width:100%}.method-grid{grid-template-columns:1fr;gap:15px}.method{padding:20px 5px}.event-heading{align-items:flex-start}.event-heading>div{flex-wrap:wrap;justify-content:flex-end}.actions button{font-size:11px}.spectrum-wrap{min-height:180px}#spectrum{min-height:180px}footer span{display:none}}

.auto-info{background:#e9e6d6;border-left:3px solid #586651;padding:12px 16px;border-radius:5px;margin-top:20px;font-size:12px;line-height:1.7;color:#445744}.detection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}.detection-card{border:1px solid var(--line);border-radius:12px;padding:18px;background:linear-gradient(150deg,#fff,#faf7ec)}.detection-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.detection-head h3{margin:0}.detection-head .pill{font-size:8px;letter-spacing:.6px}.detection-time{font-size:27px;letter-spacing:-1px;margin-top:16px;color:#445744;font-variant-numeric:tabular-nums}.detection-card .actions{margin-top:12px;gap:7px}.detection-card button{font-size:11px;padding:8px 12px}.detection-card canvas{border-radius:8px}.detection-card .muted{margin:6px 0 10px}@media(max-width:800px){.detection-grid{grid-template-columns:1fr}}

.recording-pickers{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:8px 0}.recording-pickers button{font-size:12px}.dropzone>span:not(.upload-icon){max-width:540px;line-height:1.6}

.sample-library{margin:24px 0;padding:24px;border:1px solid #c8c6b1;border-radius:16px;background:#faf7ec}.sample-library h3{margin:8px 0}.sample-library .actions label{display:flex;gap:12px;align-items:center}.sample-library select{min-width:210px}@media(max-width:600px){.sample-library{padding:16px}.sample-library .actions label{width:100%;flex-wrap:wrap}}

#detections{max-height:650px;overflow-y:auto;overscroll-behavior:contain;}

/* Field notebook. The ruled margins continue between plates and instruments. */
:root {
  --ink:#253b31; --muted:#536254; --line:#c7c5af; --accent:#9c4524; --paper:#f6f2e6;
  --type:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  background:var(--paper); color:var(--ink);
}
body {background:repeating-linear-gradient(0deg,transparent 0 31px,#4a59420a 31px 32px)}
header {height:62px;border-bottom:1px solid var(--ink)}
.brand {font-family:Georgia,serif;font-weight:normal}
.mark {background:var(--ink);color:var(--paper);border-radius:0}
.dot,.eyebrow,.hero-links a:first-child {color:var(--accent)}
.crumb,.eyebrow,.steps,.pill,.hero-links,figcaption,.plate-key,.scope-idle,footer {font-family:var(--type)}
.hero {grid-template-columns:1fr 1fr;gap:5vw;padding:40px 0 32px}
h1,h2,h3 {font-family:Georgia,"Times New Roman",serif;color:var(--ink)}
h1 {font-size:clamp(52px,7vw,92px);font-weight:400;letter-spacing:-.065em;margin:0}
h1 i {color:var(--accent);font-weight:400}
h2 {font-size:clamp(24px,3vw,36px);font-weight:400}
.hero p {margin:14px 0 18px;color:var(--ink)}
.hero-links {display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:13px}
a {color:#345842;text-underline-offset:3px}
.field-plate {min-width:0;margin:0;border-block:1px solid var(--ink);padding:10px 0 8px}
.field-plate pre {font:clamp(10px,1.2vw,16px)/1.12 var(--type);color:#43543c;width:max-content;max-width:100%;margin:10px auto}
figcaption,.plate-key {font-size:10px;display:flex;align-items:center;justify-content:space-between;letter-spacing:.09em}
figcaption span {color:var(--accent)}
.plate-key {border-top:1px dotted var(--line);padding-top:6px;color:var(--muted)}
.notice {border-width:1px 0;border-radius:0;background:none}
.steps {flex-wrap:wrap;gap:10px 24px;margin:20px 0}
.steps a {color:var(--ink)} .steps span {color:var(--accent)}
.panel {border:0;border-top:2px solid var(--ink);border-radius:0;padding:22px 20px 28px;background:#fbf8ee;box-shadow:none}
.pill {background:none;border:1px dashed var(--line);color:#56634a;border-radius:0;white-space:normal}
button,.file-button,input,select,textarea,.example,.sample-library,.dropzone,.auto-info,.empty-list,.result-head,.detection-card,.spectrum-wrap {border-radius:2px}
button.primary {background:#355542;border-color:#355542;box-shadow:none}
button.primary:hover {background:#243e30}
.example,.sample-library,.result-head,.auto-info {background:#eeecdf}
.dropzone,.detection-card {background:#faf8ef}
.spectrum-wrap {background:#1c2a24}
.spectrum-wrap:has(.canvas-empty:not([hidden])) {background-color:#1c2a24;background-image:linear-gradient(#a9bd9012 1px,transparent 1px),linear-gradient(90deg,#a9bd9012 1px,transparent 1px);background-size:32px 32px}
.scope-idle {text-align:center;color:#dddcc5;line-height:1.5}
.scope-idle span {font-size:10px;letter-spacing:.16em;color:#c3ceaa}
.scope-idle pre {font:15px/1.12 var(--type);margin:12px auto;width:max-content;text-align:left;color:#dba067}
.scope-idle a {color:#ffcd90;text-decoration:underline;pointer-events:auto}
:where(button,a,input,select,summary):focus-visible {outline:2px solid #a4502b;outline-offset:3px}
@media(max-width:700px){
  .hero {grid-template-columns:1fr;gap:22px;padding:26px 0 20px}
  .field-plate pre {font-size:clamp(9px,2.6vw,14px)}
  .steps {justify-content:flex-start;gap:10px 15px}
  .panel {padding:20px 13px}.section-head {flex-wrap:wrap}
}

/* Illustrated plates keep the analytical canvas free for measured data. */
.field-plate .meadow {margin:9px 0;width:100%;aspect-ratio:12/5}
.plate-key {padding-top:7px}
.meadow-toggle {font:11px var(--type);letter-spacing:0;color:#314d40;border:1px solid #859983;background:#faf7e8;padding:5px 9px;line-height:1.2}
.canvas-empty:has(.meadow) {display:flex;flex-direction:column;background:#f4eddf}
.canvas-empty .meadow {display:block;width:100%;height:calc(100% - 35px);min-height:0}
.canvas-empty .scope-idle {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:35px;padding:3px 12px;background:#f4eddf;color:#29493c}
.scope-idle span,.scope-idle a {color:#345442}
.scope-idle button {pointer-events:auto}
@media(max-width:500px){.canvas-empty .scope-idle {padding:3px 5px;font-size:11px}.scope-idle span {font-size:8px;letter-spacing:0}}
svg.meadow {display:block;width:100%;overflow:hidden;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;background:linear-gradient(#b5d7cd,#f9dcbc 48%,#f8e5ba 69%,#d9dcb8 100%)}
svg.meadow text {white-space:pre;font-variant-ligatures:none}
