#example .home-spectra-main {padding:clamp(12px,2vw,26px);border:1px solid #c8d9de;border-radius:12px;background:white}
#example #mo-spectra {color:#193642;font:14px/1.5 system-ui,sans-serif}
#example #mo-spectra section {padding:0;background:transparent}
#example #mo-spectra [hidden]{display:none!important}
#example .example-fold{padding:12px 0;border-top:1px solid #d6e2e6}
#example summary{font-weight:650;cursor:pointer}
#example .example-fold>section>h3,#example #assignment-heading{display:none}
#example .mo-library-table{overflow:auto;max-height:32rem}
#example .mo-library-table table{border-collapse:collapse;min-width:100%;font-size:12px}
#example th,#example td{text-align:left;padding:7px;border-bottom:1px solid #e0e8ea}
#example .adduct-disclosure{width:100%}
#example button,#example input,#example select{font:inherit}
#example button{cursor:pointer}
#example .analyse-example{display:inline-block;margin-top:16px;background:#087779;color:white;padding:10px 17px;border-radius:6px}
#spectrum-browser{padding-bottom:0}
#full-example {border-top:1px solid #d7e2e7}
#full-example>.wrap>p {margin:0 0 16px}
#example[hidden],#five-acids[hidden]{display:none!important}

#switch-spectrum{background:#087779;color:white;border:0;border-radius:6px;padding:.7rem 1rem;font:inherit;cursor:pointer}
.spectra-pair>section{padding:24px 0}

#spectrum-browser .demo-intro {font-size:1.09rem;color:var(--muted);margin:0}
#spectrum-browser .spectra-pair>section {padding:16px 0 clamp(16px,1.6vw,24px)}
.peak-demo {border:1px solid #b7cdd2;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 8px 25px #243f5110}
.demo-plot-head {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 22px}
.demo-plot-head h3 {margin:0;font-size:1.2rem;letter-spacing:-.025em}
.demo-plot-head>span,.focus-plot p {font-size:.88rem;color:#425e6e}
.peak-demo button {border:0;font:inherit;font-weight:650;cursor:pointer}
.peak-demo :focus-visible {outline:3px solid #e3923c;outline-offset:2px}
#demo-overview,#demo-closeup {display:block;width:100%;height:210px}
#demo-overview {width:calc(100% - 24px);margin-inline:auto}
#demo-focus[hidden] {display:none}
#demo-focus {border-top:1px solid #ccdbdf}
.demo-focus-grid {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:24px;padding:0 22px 16px}
#demo-closeup {height:145px}
.focus-plot p {margin:5px 0}
.focus-controls {padding:14px 18px;background:#f3f7f8;border-radius:9px}
.octamer-evidence-points {padding-inline-start:1.2em;margin:10px 0 0}
.octamer-evidence-points li + li {margin-top:.55em}
#demo-count {margin:10px 0 4px;font-weight:700}
#demo-paper {font-size:.9rem;margin:0;line-height:1.45}
.demo-scroll {overflow-x:auto;max-height:19rem}
.demo-scroll table {border-collapse:collapse;width:100%;font-size:.9rem;font-variant-numeric:tabular-nums}
.demo-scroll th,.demo-scroll td {text-align:left;padding:6px 10px;border-bottom:1px solid #dce7e9;white-space:nowrap}
.paper-candidate {background:#fff4e5}
.demo-candidates {margin:0 22px 15px;border-top:1px solid #dae5e8}
#five-acids summary {cursor:pointer}
.demo-candidates summary,.dataset-notes summary {padding:12px 0;font-weight:650}
.dataset-notes {border-bottom:1px solid #d7e2e7}
.dataset-notes p {margin:3px 0 13px}
@media(max-width:670px){.demo-focus-grid{grid-template-columns:1fr;gap:12px;padding-inline:12px}.demo-plot-head{padding-inline:12px}#demo-overview{height:175px}}

.peak-tolerance {margin:8px 22px 16px;max-width:36rem}
.peak-tolerance label {display:flex;justify-content:space-between;gap:12px;font-weight:650}
.peak-tolerance output {white-space:nowrap;font-variant-numeric:tabular-nums}
.peak-tolerance input {display:block;width:100%;margin:10px 0;accent-color:#087a74}
.peak-tolerance p {margin:0;font-size:.92rem}
.demo-scroll th small {display:block;font-weight:400}
.demo-scroll td:last-child {white-space:normal;min-width:13rem}

.peak-demo .evidence-info {color:#076965;background:transparent;padding:4px 7px;font-size:1.15rem;vertical-align:middle}
.evidence-popover {width:min(32rem,calc(100% - 32px));max-height:80vh;overflow:auto;border:1px solid #b6cdd1;border-radius:10px;padding:18px 20px;color:#183746;box-shadow:0 14px 45px #132d4133}

.evidence-popover p {font-size:1rem;margin:.8rem 0 0;line-height:1.5}
.evidence-head {display:flex;align-items:center;justify-content:space-between;gap:10px}

.ppm-chart {margin:14px 0 4px}
#ppm-track {position:relative;height:36px;background:#f1f4f5;border-bottom:1px solid #78919b}
#ppm-track::after {content:"";position:absolute;inset:0 auto 0 50%;border-left:1px dashed #486675;pointer-events:none}
#ppm-band {position:absolute;left:50%;width:50%;height:100%;transform:translateX(-50%);background:#8dd7cd}
.ppm-marker {position:absolute;bottom:0;height:12px;width:2px;transform:translateX(-50%);background:#7d9099}
.ppm-marker.in-range {background:#005e59}
.ppm-marker.ppm-octamer {height:27px;width:3px;background:#b64812;z-index:1}
.ppm-axis {display:grid;grid-template-columns:1fr 1fr 1fr;color:#405e69;font-size:.85rem}
.ppm-axis span:nth-child(2){text-align:center}.ppm-axis span:last-child{text-align:right}

:is(#spectrum-browser,#full-example) .hover-note {position:fixed;inset:auto;margin:0;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;box-sizing:border-box}
:is(#spectrum-browser,#full-example) .hover-note::backdrop {background:transparent;pointer-events:none}
.paper-spectrum {margin:14px 0 0;background:white}
.paper-spectrum img {display:block;width:100%;height:auto;max-height:240px;object-fit:contain}
#featured-figure-5 .paper-spectrum,.dataset-figure .paper-spectrum {margin:0}
#featured-figure-5 img,.dataset-figure img {max-height:65dvh}
.paper-spectrum figcaption {padding:8px 12px;font-size:.875rem}

.tolerance-layout {display:grid;gap:12px;margin-top:16px}
.tolerance-layout .peak-tolerance {margin:0;max-width:none}
.candidate-tally {padding:16px;background:#edf6f5;border-radius:9px;color:#123c46}
.candidate-tally strong,.candidate-tally span {display:block}
.candidate-tally strong {font-size:clamp(2.25rem,5vw,3.5rem);line-height:1.1;font-variant-numeric:tabular-nums}
.candidate-tally p {margin:6px 0 0;font-size:.9rem}
#five-acids #demo-closeup {height:180px}
#annotation-filters .evidence-info {border:0;background:transparent;color:#076965;padding:4px 7px;cursor:pointer;font-size:1rem}


#candidate-spectrum > .home-spectrum-instructions {
  margin:0 0 1rem;
  padding:.8rem 1rem;
  color:#154749;
  background:#e5f5f2;
  border:1px solid #b7dcd5;
  border-inline-start:4px solid #087779;
  border-radius:6px;
  font-size:1rem;
  line-height:1.5;
}
.home-spectra-layout {display:block}
#example #candidate-spectrum {border-bottom:0;margin-bottom:0}
#example #home-spectra-filters {position:sticky;top:8px;z-index:3;margin-bottom:12px;box-shadow:0 2px 8px #16323a19}
.home-spectra-main,#home-spectra-filters {min-width:0}
#home-spectra-filters {background:#f5f9f9;border:1px solid #ccdce1;border-radius:8px}
#home-spectra-filters>summary {padding:10px 12px;color:#244851}
.home-filter-list {max-height:min(52dvh,34rem);overflow:auto;overscroll-behavior:contain;padding:0 10px 10px}
#example #annotation-filters {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0}
#example #annotation-filters .adduct-charge-row {grid-template-columns:minmax(0,1fr)}
#example #annotation-filters label {white-space:normal}
#example .home-spectra-main figure {max-width:100%}
@media(min-width:900px){
  .home-spectra-layout {display:grid;gap:14px;align-items:start;grid-template-columns:max-content minmax(0,1fr)}
  .home-spectra-layout:has(>#home-spectra-filters[open]) {grid-template-columns:clamp(245px,24%,340px) minmax(0,1fr)}
  .home-filter-list {max-height:min(75dvh,44rem)}
  #home-spectra-filters:not([open]) {justify-self:start}
}
@media(min-width:900px) and (prefers-reduced-motion:no-preference){
  #home-spectra-filters[open]>.home-filter-list {animation:home-filter-slide .18s ease-out}
  @keyframes home-filter-slide {from{transform:translateX(-7px);opacity:.6}to{transform:translateX(0);opacity:1}}
}

.dataset-notes .figure-ref {white-space:nowrap}
.dataset-notes .figure-ref button {font:inherit;color:#076965;background:transparent;border:0;padding:2px 4px;cursor:pointer}

.monomer-card {width:16rem; padding:.8rem 1rem; border:1px solid #087779; border-radius:6px; background:white; color:#193847}
.monomer-card strong {font-size:1rem; overflow-wrap:anywhere}
.monomer-card img {display:block; width:100%; height:7.2rem; object-fit:contain; margin:.5rem auto 0}
