:root {
  color-scheme: light;
  --ink: #172d27;
  --text: #24372e;
  --muted: #586c63;
  --quiet: #64756d;
  --line: #d9e2dc;
  --green: #126751;
  --deep: #123f33;
  --paper: #f4f7f4;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
a,
select,
input {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid #218b75;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
select {
  -webkit-tap-highlight-color: transparent;
}
canvas[data-icon] {
  width: 19px;
  height: 19px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}
.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 10;
  padding: 7px 15px;
  background: white;
  color: var(--green);
}
.skip:focus {
  top: 8px;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-inner,
.container {
  width: min(100% - 80px, 1424px);
  margin: 0 auto;
}
.top-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4.6vw, 82px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-weight: 720;
  color: #153c30;
  font-size: 23px;
  letter-spacing: -0.7px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #154a39;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #ffffff16;
}
.brand-mark canvas[data-icon] {
  width: 27px;
  height: 27px;
}
.brand-latin {
  font-family: "Inter", Arial, sans-serif;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin-left: 0;
}
.main-nav,
.header-tools,
.main-nav a,
.about {
  display: flex;
  align-items: center;
}
.main-nav {
  height: 100%;
  gap: 30px;
}
.main-nav a {
  height: 100%;
  position: relative;
  gap: 7px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
}
.main-nav a.active {
  color: var(--green);
  font-weight: 680;
}
.main-nav a.active::after {
  content: "";
  height: 3px;
  background: #1c775b;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 2px 2px 0 0;
}
.main-nav a:hover,
.about:hover,
footer a:hover {
  color: var(--green);
}
.main-nav canvas[data-icon] {
  width: 17px;
  height: 17px;
}
.header-tools {
  margin-left: auto;
  gap: 17px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--muted);
}
.simulation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #32664c;
  font-size: 13px;
  font-weight: 570;
}
.simulation i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #419966;
  box-shadow: 0 0 0 3px #e6f3ea;
}
.tool-divider {
  width: 1px;
  height: 15px;
  background: var(--line);
}
.about {
  gap: 6px;
  padding: 5px 0;
  font-size: 14px;
}
.about canvas[data-icon] {
  width: 16px;
  height: 16px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 29px 0 23px;
}
h1 {
  font-size: clamp(27px, 2.45vw, 38px);
  letter-spacing: -0.065em;
  line-height: 1.38;
  font-weight: 700;
  color: var(--ink);
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px;
}
.sep {
  color: #9eafa5;
  padding: 0 9px;
}
.main-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scenario-control,
.primary,
.subtle-button,
.text-button,
.speed,
.light-toggle,
.view-toggle,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scenario-control {
  height: 42px;
  background: white;
  border: 1px solid #cfd9d1;
  border-radius: 8px;
  gap: 7px;
  padding: 0 11px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
}
.scenario-control canvas:first-child {
  width: 17px;
  height: 17px;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.scenario-control select {
  padding: 0 21px 0 2px;
  height: 100%;
  font-weight: 650;
  color: var(--ink);
}
.scenario-control canvas:last-child,
.speed canvas {
  width: 13px;
  height: 13px;
  position: absolute;
  right: 10px;
  pointer-events: none;
}
.primary {
  gap: 8px;
  border: 1px solid #123f33;
  border-radius: 8px;
  background: #174b3a;
  color: #fff;
  font-weight: 620;
  min-height: 42px;
  padding: 0 17px;
  font-size: 14px;
}
.primary:hover {
  background: #22654a;
}
.primary canvas[data-icon] {
  width: 16px;
  height: 16px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.76fr) minmax(310px, 1fr);
  gap: 18px;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
}
.panel h2,
.dialog-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 670;
  line-height: 1.4;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.panel h2 canvas {
  color: #36745b;
}
.spatial,
.readings {
  min-height: 358px;
}
.spatial {
  background: radial-gradient(ellipse at 49% 46%, #263a35 0%, #1b2b27 47%, #14221f 88%);
  border-color: #1d332c;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}
.spatial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.42;
  background-image: radial-gradient(circle, #a4c3ac55 0.7px, transparent 0.8px);
  background-size: 18px 18px;
  mask-image: linear-gradient(150deg, transparent 5%, black 40%, transparent 97%);
}
.spatial .panel-header {
  padding: 0 20px 0 23px;
  min-height: 58px;
  position: relative;
  z-index: 1;
}
.spatial h2 {
  color: #edf4ef;
}
.spatial h2 canvas {
  color: #a6df9b;
}
.view-toggle,
.light-toggle {
  gap: 2px;
  padding: 3px;
  border-radius: 7px;
}
.view-toggle {
  background: #12211dd9;
  border: 1px solid #3c4e45;
}
.view-toggle button,
.light-toggle button {
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 530;
}
.view-toggle button {
  color: #beccc3;
}
.view-toggle button[aria-pressed="true"] {
  background: #43574c;
  color: #f7fcf7;
  box-shadow: 0 1px 2px #0003;
}
.view-toggle button:hover {
  color: #fff;
}
.tank-stage {
  min-height: 232px;
  flex: 1;
  position: relative;
}
.tank-id {
  position: absolute;
  left: 24px;
  top: 11px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tank-id strong {
  font: 600 16px/1.2 var(--mono);
  letter-spacing: 1px;
  color: #d1e3d7;
}
.tank-id span {
  font-size: 12px;
  color: #b7c5bc;
}
.tank-canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  cursor: crosshair;
}
.tank-canvas:focus-visible {
  outline-offset: -3px;
}
.spatial-bottom {
  padding: 5px 23px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #c4d2c9;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ring-legend,
.ring-legend span,
.chart-meta,
.chart-meta > span {
  display: flex;
  align-items: center;
}
.ring-legend {
  gap: 15px;
}
.ring-legend span {
  gap: 5px;
}
.ring-legend i {
  width: 11px;
  height: 3px;
  border-radius: 3px;
}
.mint {
  background: #72e7b8;
}
.amber {
  background: #ffc76c;
}
.coral {
  background: #ff895c;
}
.gray {
  background: repeating-linear-gradient(to right, #a0afa8 0 4px, transparent 4px 6px);
}
.spatial-length b {
  font: 500 12px var(--mono);
  color: #d8e6dc;
}
.readings,
.profile,
.replay {
  padding: 0 23px;
}
.readings {
  display: flex;
  flex-direction: column;
}
.frame-tag {
  color: #5e7065;
  font:
    500 12px/1.6 var(--mono),
    var(--sans);
  padding: 2px 8px;
  border-radius: 5px;
  background: #f1f5f1;
}
.primary-reading {
  padding: 10px 0 16px;
}
.metric-label {
  font-size: 14px;
  color: var(--muted);
  display: block;
}
.peak-row {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}
.peak {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #15362b;
  white-space: nowrap;
  line-height: 1.22;
}
.peak strong {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 580;
  font-size: clamp(46px, 4.8vw, 68px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
}
.peak > span {
  font: 500 22px/1 var(--sans);
  color: #53685c;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.65;
  padding: 1px 7px;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.level0 {
  background: #e6f4ea;
  color: #306742;
}
.level1 {
  background: #fff4da;
  color: #8a5916;
}
.level2 {
  background: #ffede5;
  color: #a94929;
}
.level3 {
  background: #eceef6;
  color: #565a79;
}
.small-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  padding: 16px 0 14px;
}
.small-metrics > div + div {
  border-left: 1px solid var(--line);
  padding-left: 19px;
}
.small-metrics strong {
  font:
    570 28px/1.3 "Inter",
    Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.small-metrics strong + span {
  color: var(--quiet);
  font-size: 13px;
  margin-left: 5px;
}
.locate-row {
  margin: auto 0 18px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #eff5ef;
  border: 1px solid #dce8de;
  border-radius: 8px;
}
.locate-icon {
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green);
}
.locate-row .metric-label {
  font-size: 12px;
}
.locate-row strong {
  font-size: 14px;
  font-weight: 640;
  color: #264634;
  display: block;
}
.text-button {
  margin-left: auto;
  gap: 5px;
  color: var(--green);
  font-size: 13px;
  padding: 5px 2px;
  font-weight: 650;
}
.text-button canvas[data-icon] {
  width: 15px;
  height: 15px;
}
.text-button:hover,
.subtle-button:hover {
  color: #064e3b;
  text-decoration: underline;
}
.profile,
.replay {
  display: flex;
  flex-direction: column;
}
.light-toggle {
  background: #eff3ef;
  border: 1px solid #e2e9e3;
}
.light-toggle button {
  color: #56665c;
  font-size: 13px;
  padding: 4px 10px;
}
.light-toggle button[aria-pressed="true"] {
  color: #28563e;
  background: #fff;
  box-shadow: 0 1px 4px #19382719;
}
.chart-meta {
  gap: 19px;
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 3px;
}
.chart-meta > span {
  gap: 6px;
}
.curve-key,
.limit-key {
  width: 16px;
  height: 0;
  border-top: 2px solid #268963;
}
.limit-key {
  border-top: 2px dashed #ce8865;
}
.chart-canvas {
  width: 100%;
  height: 210px;
  display: block;
  cursor: crosshair;
  flex: none;
}
.chart-foot {
  padding: 11px 0 15px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.probe {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.probe label {
  font-size: 13px;
  color: var(--muted);
}
.point-box {
  border: 1px solid #d4dfd6;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-right: 5px;
  color: #64766b;
  font: 12px var(--mono);
}
.point-box input {
  border: none;
  background: transparent;
  width: 46px;
  padding-left: 6px;
  color: #1d3628;
  font: 600 13px var(--mono);
  font-variant-numeric: tabular-nums;
}
.probe-read {
  font:
    600 13px var(--mono),
    var(--sans);
  color: var(--green);
}
.subtle-button {
  gap: 5px;
  color: var(--muted);
  padding: 3px 0;
  font-size: 13px;
}
.subtle-button canvas[data-icon] {
  width: 15px;
  height: 15px;
}
.speed {
  position: relative;
  background: #f3f6f2;
  border-radius: 5px;
  border: 1px solid #e1e8e0;
  font-size: 13px;
  color: #445a4c;
}
.speed select {
  padding: 3px 23px 3px 9px;
  font-size: 13px;
}
.speed canvas[data-icon] {
  right: 6px;
  width: 11px;
  height: 11px;
}
.time-row,
.events-head,
.sample-note,
.dialog-heading,
.help-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.time-row {
  margin: 3px 0 4px;
}
.time-row strong {
  font: 550 29px/1.3 var(--mono);
  color: var(--ink);
  letter-spacing: -1.5px;
}
.time-row strong + span {
  font: 13px var(--mono);
  color: var(--quiet);
}
.timeline {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  margin: 8px 0 6px;
  width: 100%;
  height: 15px;
  cursor: pointer;
  background: transparent;
  --progress: 55.56%;
}
.timeline::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, #357a58 var(--progress), #dee7de var(--progress));
}
.timeline::-moz-range-track {
  height: 5px;
  border-radius: 5px;
  background: #dee7de;
}
.timeline::-moz-range-progress {
  height: 5px;
  background: #357a58;
  border-radius: 5px;
}
.timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #357a58;
  margin-top: -5px;
  box-shadow: 0 1px 4px #173c2736;
}
.timeline::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #357a58;
}
.sample-note {
  color: var(--muted);
  font-size: 12px;
}
.events-head {
  border-top: 1px solid var(--line);
  margin: 14px 0 4px;
  padding-top: 12px;
}
.events-head h3 {
  font-size: 14px;
  font-weight: 650;
}
.events-head span {
  color: var(--quiet);
  font-size: 12px;
}
.events {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  max-height: 137px;
  overflow: auto;
  scrollbar-width: thin;
}
.events li + li {
  border-top: 1px solid #edf1ed;
}
.events button {
  width: 100%;
  padding: 5px 1px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 7px;
}
.events button:hover {
  background: #f3f7f2;
  border-radius: 4px;
}
.event-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #7c9985;
}
.event-dot.s1 {
  background: #d89a34;
}
.event-dot.s2 {
  background: #d86e46;
}
.event-dot.s3 {
  background: #777c9e;
}
.event-title {
  font-size: 13px;
  color: #32483a;
  font-weight: 550;
  white-space: nowrap;
}
.event-detail {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.events time {
  font: 12px var(--mono);
  color: var(--quiet);
  margin-left: auto;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 1px 24px;
  color: var(--muted);
  font-size: 12px;
}
footer span,
footer a {
  display: flex;
  align-items: center;
  gap: 7px;
}
footer a {
  font-size: 13px;
}
footer canvas[data-icon] {
  width: 15px;
  height: 15px;
}
.footer-line {
  width: 14px;
  height: 2px;
  background: #96b29f;
}
dialog {
  padding: 24px;
  width: min(490px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid #c8d9cc;
  border-radius: 13px;
  box-shadow: 0 22px 80px #102a2255;
  color: var(--text);
}
dialog::backdrop {
  background: #0f251f75;
}
.dialog-heading {
  margin-bottom: 14px;
}
.dialog-heading h2 {
  font-size: 22px;
}
.icon-button {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: #eff4ee;
}
dialog p {
  font-size: 15px;
  line-height: 1.75;
  color: #43584b;
  margin: 8px 0;
}
dialog h3 {
  font-size: 16px;
  margin: 16px 0 4px;
}
.help-foot {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.help-foot a {
  font-size: 14px;
  color: var(--green);
  text-decoration: underline;
}
@media (min-width: 1550px) {
  .spatial,
  .readings {
    min-height: 400px;
  }
  .chart-canvas {
    height: 232px;
  }
  .primary-reading {
    padding: 18px 0 22px;
  }
  .small-metrics {
    padding: 22px 0;
  }
}
@media (max-width: 1100px) {
  .top-inner,
  .container {
    width: calc(100% - 48px);
  }
  .dashboard {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 15px;
  }
  .readings,
  .profile,
  .replay {
    padding: 0 18px;
  }
  .ring-legend {
    gap: 10px;
  }
  .header-tools {
    gap: 12px;
  }
  .spatial-bottom {
    padding-left: 17px;
    padding-right: 17px;
  }
  .events .event-detail {
    display: none;
  }
}
@media (max-width: 800px) {
  .top-inner,
  .container {
    width: calc(100% - 32px);
  }
  .top-inner {
    gap: 25px;
    height: 61px;
  }
  .main-nav {
    gap: 19px;
  }
  .brand-latin {
    display: none;
  }
  .page-heading {
    margin: 22px 0 17px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1.3fr) minmax(262px, 1fr);
    gap: 12px;
  }
  .spatial,
  .readings {
    min-height: 338px;
  }
  .spatial .panel-header {
    padding: 0 14px;
  }
  .tank-id {
    left: 15px;
  }
  .readings,
  .profile,
  .replay {
    padding: 0 14px;
  }
  .panel h2 {
    font-size: 16px;
    gap: 7px;
  }
  .light-toggle button {
    padding: 3px 6px;
  }
  .spatial-length {
    display: none;
  }
  .small-metrics > div + div {
    padding-left: 12px;
  }
  .peak-row {
    gap: 8px;
  }
  .header-tools {
    gap: 10px;
  }
  .chart-foot {
    gap: 7px;
  }
  .probe {
    gap: 5px;
  }
  .about span {
    display: none;
  }
  .tank-id strong {
    font-size: 14px;
  }
  .tank-id span {
    font-size: 12px;
  }
}
@media (max-width: 680px) {
  .top-inner,
  .container {
    width: calc(100% - 28px);
  }
  .top-inner {
    gap: 18px;
    height: 56px;
  }
  .brand {
    font-size: 20px;
    gap: 6px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .brand-mark canvas[data-icon] {
    width: 23px;
    height: 23px;
  }
  .main-nav {
    gap: 16px;
  }
  .main-nav a {
    font-size: 14px;
  }
  .main-nav canvas {
    display: none;
  }
  .header-tools {
    gap: 9px;
  }
  .about {
    width: 21px;
    justify-content: center;
  }
  .simulation {
    font-size: 12px;
    gap: 6px;
  }
  .tool-divider {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin: 21px 0 14px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .main-actions {
    width: 100%;
    justify-content: space-between;
  }
  .scenario-control,
  .primary {
    min-height: 39px;
    height: 39px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .spatial {
    min-height: 310px;
  }
  .tank-stage {
    min-height: 208px;
  }
  .spatial .panel-header {
    min-height: 49px;
  }
  .spatial-length {
    display: block;
  }
  .spatial-bottom {
    padding-bottom: 13px;
  }
  .readings,
  .profile,
  .replay {
    padding: 0 16px;
  }
  .readings {
    min-height: 0;
  }
  .panel-header {
    min-height: 51px;
  }
  .primary-reading {
    padding: 0 0 10px;
  }
  .peak strong {
    font-size: 51px;
  }
  .peak > span {
    font-size: 19px;
  }
  .small-metrics {
    padding: 11px 0;
  }
  .small-metrics strong {
    font-size: 24px;
  }
  .locate-row {
    margin: 0 0 13px;
    padding: 7px;
  }
  .chart-canvas {
    height: 194px;
  }
  .events .event-detail {
    display: inline;
  }
  .events {
    max-height: 150px;
  }
  footer {
    flex-wrap: wrap;
    padding-top: 13px;
  }
  .ring-legend {
    gap: 12px;
  }
  .tank-id {
    top: 7px;
  }
}
@media (max-width: 370px) {
  .top-inner {
    gap: 12px;
  }
  .main-nav {
    gap: 10px;
  }
  .simulation {
    font-size: 0;
    gap: 0;
  }
  .header-tools {
    gap: 11px;
  }
  .ring-legend {
    gap: 7px;
  }
  .chart-foot .subtle-button {
    font-size: 12px;
  }
}
