:root {
  --ink: #10231f;
  --muted: #62716c;
  --line: #d7e1dd;
  --surface: #ffffff;
  --page: #edf3f0;
  --teal: #078f82;
  --teal-dark: #066a61;
  --teal-soft: #e4f7f3;
  --amber: #b97817;
  --red: #bd4848;
  --lcd-white: #fbffff;
}

@font-face {
  font-family: "DSEG7 Classic";
  src: url("./assets/fonts/DSEG7Classic-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid #f4bd55;
  outline-offset: 2px;
}

.app-shell {
  width: min(1560px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.appbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.product-lockup {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.product-lockup strong {
  flex: none;
  color: #0a1613;
  font-size: 28px;
  line-height: 1;
  font-weight: 750;
}

.product-lockup span {
  min-width: 0;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.simulator-layout {
  display: grid;
  grid-template-columns: minmax(700px, 1fr) 390px;
  min-height: 760px;
}

.panel-workbench {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-right: 1px solid var(--line);
  background: #f7faf8;
}

.panel-stage {
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 44px 28px;
  background: linear-gradient(100deg, #079486 0%, #24c4b4 70%, #67ead7 100%);
}

.panel-scroll {
  width: 100%;
  display: grid;
  place-items: center;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgb(255 255 255 / 0.48) transparent;
}

.panel {
  position: relative;
  width: min(814px, 100%);
  min-width: 620px;
  aspect-ratio: 814 / 500;
  container-type: inline-size;
  isolation: isolate;
}

.panel-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.lcd {
  --lcd-row-1: 12%;
  --lcd-row-2: 30%;
  --lcd-status-row: 49%;
  --lcd-value-top: 44%;
  --lcd-gauge-top: 80%;
  position: absolute;
  z-index: 3;
  left: 29.1%;
  top: 12.2%;
  width: 45.1%;
  height: 40.8%;
  overflow: hidden;
  color: var(--lcd-white);
  background: #000000;
}

.lcd::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 18px rgb(255 255 255 / 0.018);
  pointer-events: none;
}

.lcd.off {
  color: transparent;
}

.lcd-icons {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lcd-symbol {
  --asset: none;
  position: absolute;
  width: 23px;
  height: 24px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--asset) center / contain no-repeat;
  mask: var(--asset) center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.lcd-symbol.wide {
  width: 39px;
}

.lcd-symbol.xwide {
  width: 50px;
}

.lcd-symbol.slim {
  width: 16px;
}

.lcd-icons.pressure-layout {
  overflow: visible;
}

.lcd-symbol.symbol-heating {
  left: 11.5%;
  top: var(--lcd-row-1);
}

.lcd-symbol.symbol-dhw {
  left: 23%;
  top: var(--lcd-row-1);
}

.lcd-symbol.symbol-zeroOnce,
.lcd-symbol.symbol-zero24h {
  left: 38%;
  top: var(--lcd-row-1);
}

.lcd-symbol.symbol-warning {
  left: 51.5%;
  top: var(--lcd-row-1);
}

.lcd-symbol.symbol-flame {
  left: 75%;
  top: var(--lcd-row-1);
}

.lcd-symbol.symbol-wifi {
  left: 88%;
  top: var(--lcd-row-1);
}

.lcd-symbol.symbol-heatingTimer {
  left: 11.5%;
  top: var(--lcd-row-2);
}

.lcd-symbol.symbol-dhwTimer {
  left: 23%;
  top: var(--lcd-row-2);
}

.lcd-symbol.symbol-zeroTimer {
  left: 38%;
  top: var(--lcd-row-2);
}

.lcd-symbol.symbol-pressure {
  left: 75%;
  top: var(--lcd-row-2);
}

.lcd-symbol.symbol-service {
  left: 88%;
  top: var(--lcd-row-2);
}

.lcd-symbol.symbol-anticycle {
  left: 28.5%;
  top: var(--lcd-status-row);
}

.lcd-symbol.symbol-resetPrompt {
  left: 6.5%;
  top: var(--lcd-status-row);
  width: 13px;
  height: 20px;
}

.lcd-symbol.blink,
.lcd-unit.blink,
.lcd-value.blink {
  animation: lcd-blink 0.9s steps(2, start) infinite;
}

.lcd-reading {
  position: absolute;
  z-index: 1;
  top: var(--lcd-value-top);
  right: 5%;
  left: 32%;
  height: 36%;
  overflow: visible;
}

.lcd.pressure-view .lcd-reading {
  top: var(--lcd-value-top);
}

.lcd.password-view .lcd-value {
  right: 40%;
}

.lcd.family-view .lcd-reading {
  top: 44%;
  right: 8%;
  left: 8%;
}

.lcd.code-view .lcd-value {
  top: auto;
  right: 17%;
  bottom: 0;
  font-size: clamp(22px, 7.1cqw, 56px);
}

.lcd.code-view .lcd-value.text-mode {
  font-size: clamp(20px, 5.8cqw, 47px);
}

.lcd.code-view .lcd-value.code-token {
  font-size: clamp(23px, 6.4cqw, 52px);
}

.lcd.code-view .lcd-value.value-long {
  font-size: clamp(17px, 4.8cqw, 39px);
}

.lcd.code-view .lcd-small.segment-mode {
  top: auto;
  bottom: 26%;
  left: 8%;
  width: 30%;
  font-size: clamp(14px, 4.4cqw, 35px);
  text-align: left;
}

.lcd.wide-value-view .lcd-value {
  right: 12%;
  font-size: min(6.4cqw, 52px);
}

.lcd.wide-value-view {
  --code-value-end: 88%;
}

.lcd.wide-value-view .lcd-small.segment-mode {
  font-size: min(4.2cqw, 34px);
}

.lcd.code-token-view .lcd-small.segment-mode {
  right: 67%;
  left: auto;
  width: auto;
  text-align: right;
}

.lcd.counter-view .lcd-value.code-token {
  font-size: min(6.4cqw, 52px);
}

.lcd.counter-view .lcd-small.segment-mode {
  font-size: min(4.4cqw, 35px);
}

.lcd.counter-wide-view .lcd-small.segment-mode {
  font-size: min(3.6cqw, 28px);
}

.lcd.program-code-view .lcd-value {
  right: 7%;
}

.lcd.program-code-view .lcd-small.segment-mode {
  right: 61%;
}

.lcd.code-view .lcd-reading {
  top: 40%;
  right: 7%;
  left: 34%;
  height: 34%;
}

.lcd.code-view .lcd-unit {
  top: auto;
  bottom: 5%;
}

.lcd.diagnostic-value-view .lcd-unit,
.lcd.program-temperature-view .lcd-unit {
  right: auto;
  left: calc(var(--code-value-end, 83%) + 0.4em);
  font-size: min(1.9cqw, 15px);
}

.lcd.program-pressure-view .lcd-unit,
.lcd.program-temperature-view .lcd-unit,
.lcd.unit-top-view .lcd-unit {
  top: 18%;
  bottom: auto;
}

.lcd.program-temperature-view .lcd-value {
  font-size: min(7.1cqw, 56px);
}

.lcd.program-temperature-view .lcd-small.segment-mode {
  font-size: min(4.4cqw, 35px);
}

.lcd-value {
  position: absolute;
  top: 0;
  right: 14%;
  max-width: 86%;
  overflow: visible;
  color: inherit;
  font-family: "DSEG7 Classic", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(22px, 7.2cqw, 56px);
  font-weight: 400;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.lcd-value.text-mode {
  max-width: 86%;
  font-family: "DSEG7 Classic", Consolas, monospace;
  font-size: clamp(17px, 4.5cqw, 35px);
  line-height: 1;
}

.lcd-value.value-long {
  font-size: clamp(15px, 3.9cqw, 30px);
}

.lcd-value.family-mode {
  right: 0;
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
  font-size: clamp(23px, 6.4cqw, 49px);
  text-align: center;
}

.lcd-family-character {
  min-width: 0.64em;
  display: inline-block;
  text-align: center;
}

.lcd-family-character.blink {
  animation: lcd-blink 0.9s steps(2, start) infinite;
}

.lcd-unit {
  position: absolute;
  top: 5%;
  right: 0;
  color: inherit;
  font-size: clamp(8px, 1.9cqw, 15px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.lcd-small {
  position: absolute;
  z-index: 1;
  top: 46%;
  left: 4%;
  width: 21%;
  overflow: hidden;
  color: inherit;
  font-family: Consolas, monospace;
  font-size: clamp(6px, 1.65cqw, 13px);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lcd-small.segment-mode {
  top: 46%;
  left: 2.5%;
  width: 29%;
  overflow: visible;
  font-family: "DSEG7 Classic", Consolas, monospace;
  font-size: clamp(14px, 3.6cqw, 28px);
  line-height: 1;
  text-align: center;
  text-overflow: clip;
}

.lcd-counter-separator {
  position: relative;
  display: inline-block;
  width: 0.12em;
  height: 1em;
  overflow: hidden;
  color: transparent;
  vertical-align: bottom;
}

.lcd-counter-separator::before {
  position: absolute;
  top: 0.02em;
  left: 0;
  width: 0.045em;
  min-width: 1px;
  height: 0.24em;
  background: var(--lcd-white);
  content: "";
}

.lcd-small.reset-mode {
  top: 45%;
  left: 10%;
  width: 17%;
  overflow: visible;
  font-family: Consolas, monospace;
  font-size: clamp(7px, 1.75cqw, 13px);
  font-weight: 700;
  line-height: 1;
  text-overflow: clip;
}

.lcd-pressure-gauge {
  position: absolute;
  z-index: 2;
  top: var(--lcd-gauge-top);
  right: 5%;
  left: 5%;
  height: 9%;
}

.lcd-pressure-gauge meter {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  appearance: none;
  background: transparent;
}

.lcd-pressure-gauge meter::-webkit-meter-bar {
  height: 72%;
  border: 1px solid rgb(251 255 255 / 0.72);
  border-radius: 0;
  background: repeating-linear-gradient(
    90deg,
    rgb(251 255 255 / 0.2) 0 6px,
    transparent 6px 9px
  );
}

.lcd-pressure-gauge meter::-webkit-meter-optimum-value,
.lcd-pressure-gauge meter::-webkit-meter-suboptimum-value,
.lcd-pressure-gauge meter::-webkit-meter-even-less-good-value {
  background: repeating-linear-gradient(
    90deg,
    var(--lcd-white) 0 6px,
    transparent 6px 9px
  );
  transition: width 160ms ease;
}

.lcd-pressure-gauge meter::-moz-meter-bar {
  background: var(--lcd-white);
}

.panel-hit {
  position: absolute;
  z-index: 5;
  top: 66.2%;
  height: auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}

.panel-hit::after {
  position: absolute;
  inset: 2px;
  content: "";
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.panel-hit:hover::after,
.panel-hit.is-pressed::after {
  border-color: rgb(100 238 218 / 0.88);
  background: rgb(6 143 130 / 0.16);
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.25);
}

.panel-hit.is-holding::after {
  border-color: #f4bd55;
  background: rgb(244 189 85 / 0.13);
}

.hit-power {
  left: 12.285%;
  width: 4.43%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.hit-heating {
  left: 21.99%;
  width: 6.88%;
  aspect-ratio: 1.077;
  border-radius: 50%;
}

.hit-dhw {
  left: 31.82%;
  width: 6.88%;
  aspect-ratio: 1.077;
  border-radius: 50%;
}

.hit-back,
.hit-menu,
.hit-ok {
  width: 7.95%;
  aspect-ratio: 1.244;
}

.hit-back {
  left: 41.935%;
  border-radius: 26px 0 0 26px;
}

.hit-menu {
  left: 49.885%;
}

.hit-ok {
  left: 57.835%;
  border-radius: 0 26px 26px 0;
}

.hit-minus,
.hit-plus {
  width: 8.17%;
  aspect-ratio: 1.279;
}

.hit-minus {
  left: 68.945%;
  border-radius: 26px 0 0 26px;
}

.hit-plus {
  left: 77.115%;
  border-radius: 0 26px 26px 0;
}

.hit-zero {
  left: 87.35%;
  width: 6.88%;
  aspect-ratio: 1.077;
  border-radius: 50%;
}

.panel-feedback {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.feedback-label,
.section-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.panel-feedback strong {
  display: block;
  min-width: 0;
  color: #183b34;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.hold-feedback {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.hold-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #dfe7e4;
}

.hold-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 70ms linear;
}

.course-rail {
  min-width: 0;
  background: #ffffff;
}

.rail-tabs {
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.rail-tabs button {
  position: relative;
  border: 0;
  color: #66746f;
  background: #f8faf9;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.rail-tabs button + button {
  border-left: 1px solid var(--line);
}

.rail-tabs button.active {
  color: var(--teal-dark);
  background: #ffffff;
}

.rail-tabs button.active::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  content: "";
  background: var(--teal);
}

.rail-pane {
  min-width: 0;
  padding: 18px 20px 24px;
}

.lesson-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 22px;
}

.lesson-list button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  color: #345049;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
}

.lesson-list button:hover {
  border-color: #8ccdc3;
}

.lesson-list button.active {
  border-color: var(--teal);
  color: #064f48;
  background: var(--teal-soft);
}

.lesson-list button.complete::after {
  float: right;
  content: "完成";
  color: var(--teal-dark);
  font-size: 10px;
}

.lesson-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lesson-heading h1,
.symbol-heading h2 {
  margin: 0;
  color: #10231f;
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.command-button {
  flex: none;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: #415b54;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
}

.command-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.lesson-goal {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.lesson-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.lesson-steps li {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  color: #546760;
  font-size: 13px;
}

.lesson-steps li::before {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #aebcb7;
  border-radius: 50%;
  content: "";
  color: #ffffff;
  background: #ffffff;
  font-size: 10px;
}

.lesson-steps li.current {
  color: #173b34;
  font-weight: 650;
}

.lesson-steps li.current::before {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 4px #ffffff;
  background: var(--teal);
}

.lesson-steps li.done {
  color: #687872;
}

.lesson-steps li.done::before {
  border-color: var(--teal);
  content: "✓";
  background: var(--teal);
}

.phone-simulator {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7f6;
}

.phone-simulator[hidden] {
  display: none;
}

#taskPane.phone-active:not([hidden]) {
  display: flex;
  flex-direction: column;
}

#taskPane.phone-active .lesson-list {
  order: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

#taskPane.phone-active .lesson-list button {
  padding-right: 6px;
  padding-left: 6px;
  font-size: 11px;
  text-align: center;
}

#taskPane.phone-active .phone-simulator {
  order: 1;
  margin-top: 0;
  margin-bottom: 18px;
}

#taskPane.phone-active .lesson-heading {
  order: 2;
}

#taskPane.phone-active .lesson-goal {
  order: 3;
}

#taskPane.phone-active .lesson-steps {
  order: 4;
}

#taskPane.phone-active .next-action {
  order: 5;
}

#taskPane.phone-active .device-readout {
  order: 6;
}

.phone-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.phone-toolbar > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.phone-overline {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.phone-toolbar strong {
  color: #111b18;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.phone-connection {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
}

.phone-connection::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--teal);
}

.phone-connection.offline {
  color: var(--muted);
}

.phone-connection.offline::before {
  background: #9aa7a2;
}

.phone-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
  background: #edf2f0;
}

.phone-view-tabs button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #53635e;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.phone-view-tabs button.active {
  border-color: #a8d8d0;
  color: #064f48;
  background: #ffffff;
}

.phone-control-pane {
  padding: 14px;
  background: #ffffff;
}

.phone-feature-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.phone-feature-icon,
.phone-mode-icon {
  --asset: none;
  display: block;
  color: var(--teal);
  background: currentColor;
  -webkit-mask: var(--asset) center / contain no-repeat;
  mask: var(--asset) center / contain no-repeat;
}

.phone-feature-icon {
  width: 38px;
  height: 38px;
}

.phone-feature-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.phone-feature-heading > div span {
  color: var(--muted);
  font-size: 11px;
}

.phone-feature-heading > div strong {
  color: #172720;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.phone-switch {
  position: relative;
  width: 52px;
  height: 30px;
  display: block;
  cursor: pointer;
}

.phone-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.phone-switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #bac6c2;
  border-radius: 999px;
  background: #dfe5e2;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.phone-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  content: "";
  background: #ffffff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.2);
  transition: transform 140ms ease;
}

.phone-switch input:checked + span {
  border-color: var(--teal);
  background: var(--teal);
}

.phone-switch input:checked + span::after {
  transform: translateX(22px);
}

.phone-switch input:focus-visible + span {
  outline: 3px solid #f4bd55;
  outline-offset: 2px;
}

.phone-mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.phone-mode-list button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  color: #53635e;
  background: #ffffff;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.phone-mode-list button.active {
  border-color: var(--teal);
  color: #064f48;
  background: var(--teal-soft);
}

.phone-mode-list button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.phone-mode-icon {
  width: 25px;
  height: 25px;
  color: currentColor;
}

.phone-temperature {
  display: grid;
  gap: 10px;
  margin: 14px -14px -14px;
  padding: 14px;
  border-top: 1px solid #a8d8d0;
  background: #e5f4f1;
}

.phone-temperature > span {
  color: #2d4841;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.phone-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.phone-stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid #8bbeb6;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #ffffff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.phone-stepper button:disabled {
  color: #8d9c97;
  cursor: not-allowed;
  opacity: 0.5;
}

.phone-stepper output {
  min-width: 0;
  color: #10231f;
  font-size: 36px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.phone-sync-status {
  min-height: 42px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  color: #49615a;
  background: #f7faf9;
  font-size: 10px;
}

.phone-sync-status[hidden] {
  display: none;
}

.phone-sync-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.phone-sync-status strong {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.next-action {
  display: grid;
  gap: 4px;
  margin: 18px -20px 0;
  padding: 16px 20px;
  border-top: 1px solid #0c3932;
  border-bottom: 1px solid #0c3932;
  color: #ffffff;
  background: #102d27;
}

.next-action span {
  color: #8ed7cb;
  font-size: 11px;
  font-weight: 700;
}

.next-action strong {
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.next-action small {
  color: #bed3ce;
  font-size: 12px;
  line-height: 1.5;
}

.next-action.complete {
  border-color: #9b711d;
  background: #4f3b13;
}

.device-readout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.device-readout dt {
  color: var(--muted);
}

.device-readout dd {
  min-width: 0;
  margin: 0;
  color: #29463f;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.symbol-heading {
  margin-bottom: 16px;
}

.symbol-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.symbol-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.symbol-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.symbol-swatch {
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #6f7975;
  background: #111513;
}

.symbol-row.active .symbol-swatch {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #3ea99a;
}

.symbol-glyph {
  --asset: none;
  width: 34px;
  height: 29px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--asset) center / contain no-repeat;
  mask: var(--asset) center / contain no-repeat;
}

.symbol-copy {
  min-width: 0;
}

.symbol-copy strong,
.symbol-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.symbol-copy strong {
  color: #233b35;
  font-size: 13px;
}

.symbol-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.symbol-state {
  color: #87938f;
  font-size: 11px;
}

.symbol-row.active .symbol-state {
  color: var(--teal-dark);
  font-weight: 700;
}

.event-band {
  min-height: 106px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #f7faf8;
}

.event-band-title strong {
  color: #213d36;
  font-size: 15px;
}

.event-log {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-log li {
  min-width: 0;
  min-height: 58px;
  border-left: 3px solid #9cb5ae;
  padding: 7px 10px;
  color: #53665f;
  background: #ffffff;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.event-log li:first-child {
  border-left-color: var(--teal);
  color: #24453d;
}

.event-log time {
  display: block;
  margin-bottom: 2px;
  color: #8a9692;
  font-size: 10px;
}

@keyframes lcd-blink {
  50% {
    opacity: 0.14;
  }
}

@container (max-width: 690px) {
  .lcd-symbol {
    width: 20px;
    height: 21px;
  }

  .lcd-symbol.wide {
    width: 34px;
  }

  .lcd-symbol.xwide {
    width: 43px;
  }

  .lcd-symbol.symbol-resetPrompt {
    width: 11px;
    height: 18px;
  }
}

@container (max-width: 430px) {
  .lcd-symbol {
    width: 12px;
    height: 13px;
  }

  .lcd-symbol.wide {
    width: 20px;
  }

  .lcd-symbol.xwide {
    width: 26px;
  }

  .lcd-symbol.slim {
    width: 9px;
  }

  .lcd-symbol.symbol-resetPrompt {
    width: 7px;
    height: 12px;
  }

}

@media (max-width: 1180px) {
  .simulator-layout {
    grid-template-columns: 1fr;
  }

  .panel-workbench {
    border-right: 0;
  }

  .course-rail {
    border-top: 1px solid var(--line);
  }

  .rail-pane {
    max-width: 820px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    border: 0;
  }

  .appbar {
    align-items: flex-start;
    padding: 14px;
  }

  .product-lockup {
    display: grid;
    gap: 5px;
  }

  .product-lockup strong {
    font-size: 23px;
  }

  .product-lockup span {
    font-size: 12px;
  }

  .panel-stage {
    place-items: start;
    padding: 28px 12px;
  }

  .panel-scroll {
    place-items: center;
    overflow-x: hidden;
  }

  .panel {
    width: 100%;
    min-width: 0;
  }

  .hit-power {
    width: 8%;
  }

  .hit-heating,
  .hit-dhw,
  .hit-zero {
    width: 8%;
  }

  .panel-feedback {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .hold-feedback {
    grid-template-columns: 130px 1fr;
    align-items: center;
  }

  .rail-pane {
    padding-right: 14px;
    padding-left: 14px;
  }

  .next-action {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .event-band {
    grid-template-columns: 1fr;
    padding: 16px 14px;
  }

  .event-log {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .appbar {
    display: grid;
  }

  .lesson-list {
    grid-template-columns: 1fr;
  }

  .lesson-heading h1,
  .symbol-heading h2 {
    font-size: 19px;
  }

  .event-log {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Confirmed customer framework: fixed panel plus persistent linkage controls. */
.app-shell {
  width: min(1440px, 100%);
}

.appbar {
  min-height: 72px;
  padding: 12px 28px;
}

.product-lockup strong {
  font-size: 26px;
}

.product-lockup span {
  font-size: 13px;
}

.simulator-layout {
  grid-template-columns: minmax(640px, 960px) minmax(420px, 480px);
  min-height: 828px;
}

.panel-workbench {
  min-height: 828px;
  grid-template-rows: minmax(0, 1fr) 72px;
}

.panel-stage {
  min-height: 756px;
  padding: 36px 28px;
  background: linear-gradient(96deg, #058f80 0%, #47dbc7 100%);
}

.panel {
  width: 814px;
  max-width: 100%;
  min-width: 620px;
  filter: drop-shadow(0 16px 17px rgb(5 31 26 / 0.22));
}

.panel-feedback {
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  padding: 12px 28px;
}

.lcd-symbol.flash-four {
  animation: lcd-flash-four 0.24s steps(2, start) 4;
}

.lcd-progress {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 7%;
  left: 5%;
  height: 12%;
  overflow: hidden;
  border-bottom: 1px solid rgb(251 255 255 / 0.72);
  background: repeating-linear-gradient(
    90deg,
    rgb(251 255 255 / 0.18) 0 6px,
    transparent 6px 9px
  );
}

.lcd-progress span {
  width: 0;
  height: 72%;
  display: block;
  background: repeating-linear-gradient(
    90deg,
    var(--lcd-white) 0 6px,
    transparent 6px 9px
  );
}

.lcd-progress.running span {
  animation: lcd-progress-fill var(--lcd-progress-duration, 1.6s) linear forwards;
}

.lcd-progress.program-progress {
  right: 17%;
  bottom: 20%;
  left: 8%;
  height: 4%;
  border: 0;
  background: none;
}

.lcd-progress.program-progress span {
  position: absolute;
  width: 14%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--lcd-white) 0 2px, transparent 2px 3px);
}

.lcd-progress.program-progress.running span {
  animation: lcd-program-read var(--lcd-progress-duration) linear infinite;
}

.control-rail {
  min-width: 0;
  min-height: 828px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #ffffff;
}

.mobile-linkage {
  min-height: 590px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 28px;
  background: #ffffff;
}

.control-heading,
.field-control-heading,
.field-control-summary,
.phone-feature-heading,
.subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-heading {
  min-height: 44px;
}

.control-heading-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-heading-main img,
.field-label > img,
.phone-sync-status img,
.phone-stepper img,
.phone-mode-icon {
  flex: none;
  display: block;
  object-fit: contain;
}

.control-heading-main > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.control-heading h1,
.field-control-heading h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

.control-heading h1 {
  font-size: 19px;
}

.control-heading-main span,
.field-control-heading span,
.subsection-heading span,
.phone-feature-heading span {
  color: var(--muted);
}

.control-heading-main span {
  font-size: 11px;
}

.phone-connection {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background: var(--teal-soft);
}

.phone-view-tabs {
  height: 44px;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f0f4f2;
}

.phone-view-tabs button {
  height: 36px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.phone-view-tabs button.active {
  border-color: transparent;
  color: var(--teal-dark);
  box-shadow: 0 2px 5px rgb(5 31 26 / 0.08);
}

.phone-feature-heading {
  min-height: 42px;
  grid-template-columns: none;
  padding: 0 2px;
  border: 0;
}

.phone-feature-heading > div {
  display: grid;
  gap: 2px;
}

.phone-feature-heading strong,
.subsection-heading strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.phone-feature-heading span,
.subsection-heading span {
  font-size: 10px;
}

.mode-control {
  display: grid;
  gap: 8px;
}

.subsection-heading {
  min-height: 22px;
}

.subsection-heading strong {
  font-size: 13px;
}

.phone-mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.phone-mode-list button {
  height: 47px;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}

.phone-mode-list button.active {
  color: var(--teal-dark);
}

.phone-mode-list button.app-disabled {
  color: #8d9995;
  background: #f8faf9;
}

.phone-mode-icon {
  width: 18px;
  height: 18px;
}

.phone-temperature {
  min-height: 112px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #bce0d7;
  border-radius: 7px;
  background: #ecf9f6;
}

.phone-stepper {
  height: 52px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.phone-stepper button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-color: #bce0d7;
  border-radius: 6px;
}

.phone-stepper output {
  font-size: 32px;
  font-weight: 650;
}

.phone-sync-status {
  min-height: 34px;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--teal-dark);
  background: #f8fbfa;
  font-size: 11px;
}

.phone-sync-status.error {
  color: #8c3030;
  background: #fff0f0;
}

.phone-sync-status.error img {
  filter: grayscale(1);
}

.field-controls {
  min-height: 238px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: #f6f9f8;
}

.field-control-heading {
  min-height: 28px;
}

.field-control-heading h2 {
  font-size: 15px;
}

.field-control-heading span {
  font-size: 10px;
}

.field-control {
  min-width: 0;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  background: #ffffff;
}

.pressure-control {
  display: grid;
  gap: 9px;
}

.field-control-summary {
  min-height: 25px;
}

.field-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.field-label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.field-label strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.field-label small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
}

#pressureOutput {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

#pressureOutput small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

#pressureControl {
  width: 100%;
  height: 16px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

#pressureControl::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--teal) 0 var(--pressure-fill, 50%),
    #d7e1dd var(--pressure-fill, 50%) 100%
  );
}

#pressureControl::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  appearance: none;
  background: #ffffff;
}

.faucet-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.phone-switch.compact {
  width: 50px;
  height: 28px;
}

.phone-switch.compact span::after {
  width: 20px;
  height: 20px;
}

.phone-switch.compact input:checked + span::after {
  transform: translateX(22px);
}

.field-status {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.field-status.warn {
  color: #79500f;
}

.field-status.bad {
  color: #8c3030;
}

@keyframes lcd-progress-fill {
  to {
    width: 100%;
  }
}

@keyframes lcd-program-read {
  from { left: 0; }
  to { left: 86%; }
}

@keyframes lcd-flash-four {
  50% {
    opacity: 0.08;
  }
}

@media (max-width: 1280px) and (min-width: 1001px) {
  .simulator-layout {
    grid-template-columns: minmax(600px, 1fr) 420px;
  }

  .mobile-linkage,
  .field-controls {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 1000px) {
  .simulator-layout {
    grid-template-columns: 1fr;
  }

  .panel-workbench {
    min-height: 660px;
    border-right: 0;
  }

  .panel-stage {
    min-height: 588px;
  }

  .panel-scroll {
    overflow-x: hidden;
  }

  .panel {
    width: 100%;
    max-width: 814px;
    min-width: 0;
  }

  .control-rail {
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .mobile-linkage,
  .field-controls {
    width: min(720px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .appbar {
    min-height: 92px;
    padding: 14px 16px;
  }

  .panel-workbench {
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .panel-stage {
    min-height: 0;
    place-items: center;
    padding: 30px 16px;
  }

  .panel-scroll {
    overflow-x: hidden;
  }

  .panel {
    width: 100%;
    max-width: 814px;
    min-width: 0;
  }

  .panel-feedback {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
  }

  .mobile-linkage,
  .field-controls {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 430px) {
  .appbar {
    display: grid;
  }

  .mobile-linkage {
    min-height: 0;
    gap: 14px;
  }

  .phone-mode-list button {
    padding: 0 6px;
    font-size: 11px;
  }

  .field-controls {
    min-height: 0;
  }
}
