:root {
  color-scheme:dark;
  --bg:#101b20;
  --panel:#17252b;
  --text:#edf3ec;
  --muted:#a6b8b8;
  --line:#304147;
  --green:#b9e88c;
  --seed:#79c9d4;
  --veg:#b9e88c;
  --flower:#e8bd78;
  --low:#487995;
  --high:#c77e78;
  --gap:#6d7b83;
  --condensation:#a79bd8;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-size:15px;
  line-height:1.5;
}
a {
  color:inherit;
}
button,input,select {
  font:inherit;
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}
button,summary,select {
  cursor:pointer;
}
button,input,select {
  min-height:46px;
}
button {
  border:1px solid var(--line);
  background:#203239;
  color:var(--text);
  padding:10px 15px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
}
button:hover {
  background:#2a4148;
}
button:disabled {
  opacity:.45;
  cursor:not-allowed;
}
.quiet {
  background:transparent;
}
.primary {
  background:var(--green);
  color:#182416;
  border-color:var(--green);
}
.primary:hover {
  background:#cff5aa;
}
.full {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.shell {
  width:min(1200px,calc(100% - 32px));
  margin-inline:auto;
}
.site-header {
  height:84px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand {
  display:flex;
  align-items:center;
  gap:0;
  font-size:23px;
  font-weight:800;
  letter-spacing:-1px;
  text-decoration:none;
}
.brand>span:first-of-type {
  font-weight:400;
  color:var(--green);
}
.brand svg {
  height:31px;
  width:31px;
  margin-right:9px;
  fill:none;
  stroke:var(--green);
  stroke-width:1.7;
}
.brand .version {
  font:11px ui-monospace,monospace;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:4px;
  padding:2px 5px;
  margin-left:10px;
  letter-spacing:0;
}
.header-note {
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
}
.status-dot {
  width:6px;
  height:6px;
  background:var(--green);
  border-radius:50%;
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin:32px 0 26px;
  gap:15px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.7px;
  font-weight:650;
  color:var(--muted);
  margin:0 0 10px;
}
h1 {
  font-size:clamp(32px,4.2vw,52px);
  font-weight:550;
  letter-spacing:-1.9px;
  line-height:1.1;
  margin:0 0 10px;
}
.intro p:not(.eyebrow) {
  color:var(--muted);
  margin:0;
  font-size:14px;
  max-width:72ch;
}
.text-link {
  font-size:12px;
  text-underline-offset:5px;
  white-space:nowrap;
  padding:12px 0;
}
.results {
  background:#23352b;
  border:1px solid #425a40;
  border-radius:14px;
  display:grid;
  grid-template-columns:1fr;
  overflow:hidden;
  margin-bottom:22px;
}
.primary-result {
  padding:23px 25px;
}
.primary-result .eyebrow {
  color:#c9ddbb;
}
.big-number {
  display:flex;
  align-items:baseline;
  gap:12px;
  line-height:1;
}
.big-number output {
  font-size:clamp(62px,7vw,86px);
  font-weight:500;
  font-variant-numeric:tabular-nums;
  letter-spacing:-4px;
  color:#d8efc5;
}
.big-number>span {
  font-size:19px;
  color:#b3c9aa;
}
.primary-result>p:last-child {
  font-size:12px;
  color:#c1d2ba;
  margin:13px 0 0;
}
.result-context {
  padding:22px 25px;
  border-top:1px solid #425a40;
}
.badge {
  display:inline-flex;
  padding:4px 10px;
  border:1px solid #769765;
  background:#2d4330;
  border-radius:5px;
  color:#d8efc5;
  font-size:12px;
  font-weight:600;
}
.result-context>p {
  color:#c1d2ba;
  font-size:13px;
  margin:10px 0 15px;
}
.comparison {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  font-size:11px;
  color:#c1d2ba;
}
.comparison output {
  font-weight:650;
  color:#f1f5e8;
  margin-left:5px;
  font-size:14px;
}
.vpd-scale {
  position:relative;
  display:flex;
  height:7px;
  gap:3px;
  margin:18px 0 7px;
}
.vpd-scale span {
  flex:1;
  border-radius:2px;
}
.vpd-scale span:nth-child(1) {
  background:var(--low);
}
.vpd-scale span:nth-child(2) {
  background:var(--seed);
}
.vpd-scale span:nth-child(3) {
  background:var(--veg);
}
.vpd-scale span:nth-child(4) {
  background:var(--flower);
}
.vpd-scale span:nth-child(5) {
  background:var(--high);
}
.vpd-scale i {
  position:absolute;
  height:15px;
  width:3px;
  background:white;
  top:-4px;
  box-shadow:0 0 0 2px #23352b;
}
.scale-labels {
  display:flex;
  justify-content:space-between;
  color:#c1d2ba;
  font-size:10px;
}
.workspace {
  display:grid;
  gap:20px;
}
.panel {
  min-width:0;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  padding:21px;
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:22px;
}
.panel-heading .eyebrow {
  margin-bottom:5px;
}
h2 {
  font-size:19px;
  font-weight:550;
  letter-spacing:-.4px;
  line-height:1.3;
  margin:0;
}
.panel-heading select {
  width:66px;
}
.field-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.field {
  min-width:0;
}
.field label {
  display:flex;
  justify-content:space-between;
  gap:5px;
  font-size:12px;
  color:#d1dddd;
  margin-bottom:8px;
}
.field label span {
  color:var(--muted);
}
input[type=number],select {
  border:1px solid #42585e;
  border-radius:7px;
  background:#101e24;
  color:var(--text);
  width:100%;
  padding:10px;
  min-width:0;
}
input[type=number] {
  font-size:19px;
  font-variant-numeric:tabular-nums;
}
input[aria-invalid=true] {
  border-color:#efafa0;
}
input[type=checkbox] {
  min-height:20px;
  width:19px;
  height:19px;
  flex-shrink:0;
  accent-color:var(--green);
  margin:0;
}
.check-label {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  font-size:13px;
}
.leaf-box {
  background:#1b2d31;
  border:1px solid #354a4c;
  border-radius:9px;
  padding:14px;
  margin:19px 0;
}
.leaf-box>p {
  font-size:11px;
  color:var(--muted);
  margin:0 0 16px;
}
.leaf-box .field {
  margin-bottom:10px;
}
.leaf-box .lock {
  font-size:12px;
}
.leaf-box #offsetReadout {
  margin:3px 0 0;
  color:#bbd6b4;
  font-variant-numeric:tabular-nums;
}
.privacy-note {
  text-align:center;
  color:var(--muted);
  font-size:10px;
  margin:10px 0 19px;
}
.settings {
  border-top:1px solid var(--line);
}
summary {
  min-height:48px;
  align-content:center;
  font-size:13px;
  font-weight:550;
  padding:12px 0;
  list-style-position:inside;
}
summary>span {
  float:right;
  color:var(--muted);
}
details[open]>summary>span {
  transform:rotate(45deg);
}
.settings form {
  padding-bottom:18px;
}
.button-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.settings .button-row {
  margin-top:15px;
}
.small {
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
}
.error {
  font-size:12px;
  border-left:3px solid #efafa0;
  background:#402c2c;
  color:#ffd1c5;
  padding:10px 12px;
}
.band-input,.band-header {
  display:grid;
  grid-template-columns:1.4fr .8fr .8fr;
  gap:9px;
  margin:10px 0;
}
.band-header {
  font-size:10px;
  color:var(--muted);
}
.band-input input[type=number] {
  font-size:14px;
  padding:8px;
}
.chart-panel .panel-heading {
  margin-bottom:8px;
}
.chart-panel .panel-heading button {
  padding-inline:10px;
  font-size:11px;
}
.chart-note {
  color:var(--muted);
  font-size:11px;
  margin:0 0 14px;
}
.canvas-wrap {
  position:relative;
  width:100%;
  aspect-ratio:1.04;
  min-height:270px;
}
canvas {
  display:block;
  width:100%;
  height:100%;
  border-radius:6px;
  touch-action:pan-y;
}
canvas:focus-visible {
  outline-offset:4px;
}
.probe {
  min-height:54px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  border-bottom:1px solid var(--line);
  padding:10px 0;
}
.crosshair {
  color:var(--green);
  font-size:24px;
}
.chart-tools {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.marker-key {
  font-size:10px;
  display:flex;
  gap:7px;
  align-items:center;
  color:var(--muted);
}
.current-dot,.pinned-dot {
  width:9px;
  height:9px;
  border-radius:50%;
  display:inline-block;
  border:2px solid white;
}
.current-dot {
  background:white;
}
.pinned-dot {
  border-color:var(--flower);
  margin-left:8px;
}
.chart-tools button {
  font-size:11px;
  padding:8px 10px;
}
.legend {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px 15px;
  margin:22px 0 15px;
  padding-top:19px;
  border-top:1px solid var(--line);
}
.legend-item {
  font-size:11px;
  display:flex;
  gap:8px;
  align-items:center;
  color:#c8d6d6;
}
.legend-item i {
  width:10px;
  height:10px;
  border-radius:2px;
  flex-shrink:0;
}
.legend-item small {
  display:block;
  color:var(--muted);
  font-size:10px;
}
.legend-item.muted {
  opacity:.55;
}
.chart-data {
  border-top:1px solid var(--line);
}
.table-scroll {
  overflow:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:11px;
  text-align:right;
}
td,th {
  padding:9px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
caption {
  text-align:left;
  color:var(--muted);
  padding:10px 0;
}
.log-panel {
  margin-top:20px;
}
.count {
  display:inline-block;
  font-size:11px;
  color:var(--muted);
  margin-left:6px;
  vertical-align:middle;
}
.empty-log {
  padding:20px 0 28px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}
.empty-log span {
  display:block;
  font-size:11px;
  margin-top:5px;
}
#vpdLogList {
  max-height:400px;
  overflow:auto;
}
.log-entry {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 0;
  border-top:1px solid var(--line);
}
.log-entry strong {
  font-size:14px;
  font-weight:550;
}
.log-entry p {
  margin:4px 0 0;
  font-size:11px;
  color:var(--muted);
}
.log-entry .reading {
  font-size:18px;
  white-space:nowrap;
  color:var(--green);
}
.log-entry .reading small {
  font-size:10px;
}
.log-entry .entry-actions {
  display:flex;
  gap:14px;
  align-items:center;
}
.log-entry button {
  padding:8px;
  font-size:11px;
}
.guide {
  margin:45px 0;
}
.guide>h2 {
  font-size:25px;
  letter-spacing:-.7px;
  margin-bottom:20px;
}
.guide-grid {
  display:grid;
  gap:8px;
}
.guide-intro {
  max-width:85ch;
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
}
.guide-links {
  display:flex;
  flex-wrap:wrap;
  gap:8px 22px;
  margin:20px 0 28px;
  font-size:13px;
  text-underline-offset:4px;
}
.guide-links a {
  padding-block:10px;
}
.guide-reference {
  display:grid;
  gap:24px;
  margin-bottom:30px;
}
.guide h3 {
  font-size:17px;
  font-weight:550;
  margin:0 0 12px;
  line-height:1.4;
}
.guide-reference p,.guide-reference li {
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
}
.guide-reference ol {
  padding-left:22px;
}
.guide-reference li+li {
  margin-top:8px;
}
.reference-table {
  text-align:left;
  font-size:13px;
}
.reference-table th,.reference-table td {
  white-space:normal;
}
.guide details {
  border-bottom:1px solid var(--line);
}
.guide summary {
  font-size:14px;
}
.guide details p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
}
.formula {
  overflow-wrap:anywhere;
  font-family:ui-monospace,monospace;
}
.site-footer {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding-block:24px 35px;
  color:var(--muted);
  font-size:10px;
}
.site-footer .brand {
  font-size:18px;
}
:focus-visible {
  outline:2px solid var(--green);
  outline-offset:3px;
}
.skip-link {
  position:absolute;
  left:16px;
  top:-80px;
  padding:12px;
  background:var(--green);
  color:#132318;
  z-index:10;
}
.skip-link:focus {
  top:10px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
[hidden] {
  display:none!important;
}
.vpd-scale {
  border-radius:3px;
}
.vpd-scale>span {
  display:none;
}
@media(min-width:640px) {
  .shell {
    width:min(1200px,calc(100% - 64px));
  }
  .results {
    grid-template-columns:1fr 1.3fr;
  }
  .result-context {
    border-top:0;
    border-left:1px solid #425a40;
  }
  .canvas-wrap {
    aspect-ratio:1.6;
  }
  .legend {
    grid-template-columns:repeat(3,1fr);
  }
  .guide-grid {
    grid-template-columns:repeat(3,1fr);
    gap:25px;
  }
  .guide-reference {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:32px;
  }
  .guide details {
    align-self:start;
  }
  .guide summary {
    min-height:65px;
  }
  .primary-result {
    padding:27px 30px;
  }
}
@media(min-width:1000px) {
  .intro {
    margin:40px 0 30px;
  }
  .workspace {
    grid-template-columns:350px minmax(0,1fr);
  }
  .conditions {
    align-self:start;
  }
  .panel {
    padding:25px;
  }
  .chart-panel {
    align-self:start;
  }
  .canvas-wrap {
    aspect-ratio:1.4;
  }
  .results {
    grid-template-columns:350px 1fr;
  }
  .result-context {
    padding:25px 35px;
  }
  .comparison {
    gap:35px;
  }
  .legend {
    margin-top:24px;
  }
  .log-panel .panel-heading {
    margin-bottom:10px;
  }
}
@media(max-width:420px) {
  .header-note {
    font-size:0;
  }
  .header-note .status-dot {
    height:7px;
    width:7px;
  }
  .intro {
    display:block;
  }
  .intro .text-link {
    display:inline-block;
    margin-top:5px;
  }
  .panel {
    padding:17px;
  }
  .panel-heading {
    gap:7px;
  }
  h2 {
    font-size:17px;
  }
  .log-panel .panel-heading {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .primary-result {
    padding:21px;
  }
  .result-context {
    padding:18px 21px;
  }
  .chart-tools {
    gap:12px;
  }
  .field label {
    font-size:11px;
  }
  .log-entry .entry-actions {
    gap:7px;
  }
  .log-entry strong {
    font-size:12px;
  }
  .log-entry .reading {
    font-size:15px;
  }
}
.last-updated {
  flex-basis:100%;
  text-align:center;
  font-size:10px;
  color:var(--muted);
}
@media(prefers-reduced-motion:no-preference) {
  button {
    transition:background .15s;
  }
  html {
    scroll-behavior:smooth;
  }
}
