
    :root {
      color-scheme: dark;
      font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
      color: #edf2eb;
      background: #101719;
      font-synthesis: none;
      text-rendering: optimizeLegibility;
      --panel: #1a2426;
      --panel-raised: #202b2d;
      --line: rgba(222, 232, 217, .12);
      --muted: #9eaaa5;
      --lime: #c4e76e;
      --amber: #ffbf5b;
      --red: #fb7970;
      --green: #67d69c;
    }

    * { box-sizing: border-box; }
    body { min-height: 100vh; margin: 0; }
    button, input { font: inherit; }
    button { color: inherit; }
    button:focus-visible, input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

    .page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 34px; }
    .header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
    .brand { display: flex; align-items: center; gap: 13px; }
    .brand-mark {
      display: grid;
      width: 42px;
      height: 42px;
      place-items: center;
      border: 1px solid rgba(196, 231, 110, .36);
      border-radius: 12px;
      background: rgba(196, 231, 110, .08);
      color: var(--lime);
      font-size: 19px;
      font-weight: 850;
    }
    .brand-title { margin: 0; font-size: 15px; font-weight: 780; letter-spacing: .12em; }
    .brand-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
    .header-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; }
    .connection { display: inline-flex; align-items: center; gap: 8px; }
    .connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(103, 214, 156, .7); }
    .panel { border: 1px solid var(--line); border-radius: 19px; background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, .23); }

    .overview {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 230px;
      gap: 22px;
      align-items: center;
      padding: 24px 28px;
      margin-bottom: 16px;
    }
    .eyebrow { margin: 0 0 8px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
    h1 { margin: 0; font-size: clamp(24px, 3vw, 33px); letter-spacing: -.035em; }
    .overview-copy { max-width: 640px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
    .status-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0, 0, 0, .15); }
    .status-caption { margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
    .status-value { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; font-weight: 780; }
    .status-light { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #58625e; box-shadow: 0 0 0 4px rgba(255, 255, 255, .035); }
    .status-light[data-state="ready"], .status-light[data-state="boiler-ready"], .status-light[data-state="running"] { background: var(--green); box-shadow: 0 0 13px rgba(103, 214, 156, .55); }
    .status-light[data-state="pre-purge"], .status-light[data-state="purge"], .status-light[data-state="pilot-on"] { background: var(--amber); box-shadow: 0 0 13px rgba(255, 191, 91, .48); }
    .status-note { margin: 7px 0 0 18px; color: var(--muted); font-size: 10px; }

    .dashboard { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .8fr); gap: 16px; }
    .process-panel, .controls-panel { padding: 22px; }
    .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
    .panel-heading h2 { margin: 0; font-size: 14px; font-weight: 760; }
    .panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
    .mode-tag { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; white-space: nowrap; }

    .plant {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 120px;
      gap: 14px;
      align-items: center;
      min-height: 223px;
      padding: 15px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 14px;
      background:
        radial-gradient(ellipse at 50% 70%, rgba(196, 231, 110, .055), transparent 49%),
        #151e20;
    }
    .plant-svg { display: block; width: 100%; max-height: 212px; }
    .svg-outline { fill: #202b2d; stroke: #829089; stroke-width: 2; }
    .svg-inner { fill: #151d1f; stroke: #47554f; stroke-width: 1.5; }
    .svg-pipe { fill: none; stroke: #56645e; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
    .svg-label { fill: #bdc8c0; font: 10px "Segoe UI", sans-serif; }
    .svg-small { fill: #87958d; font: 8px "Segoe UI", sans-serif; }
    .svg-fan-blades { fill: #84918a; transform-box: view-box; transform-origin: 0 0; }
    .plant[data-fan="true"] .svg-fan-blades { animation: fan-spin .65s linear infinite; }
    .svg-flame { fill: #ffbf5b; }
    .flame-visual { opacity: .08; transform-box: fill-box; transform-origin: center bottom; }
    .plant[data-flame="true"] .flame-visual { opacity: 1; animation: flame-flicker .42s ease-in-out infinite alternate; }
    .plant[data-flame="true"] .flame-core { animation: flame-core-flicker .3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center bottom; }
    @keyframes fan-spin { to { transform: rotate(360deg); } }
    @keyframes flame-flicker {
      from { transform: scale(.94, .94) skewX(-2deg); filter: drop-shadow(0 0 3px rgba(255, 163, 63, .55)); }
      to { transform: scale(1.04, 1.08) skewX(2deg); filter: drop-shadow(0 0 10px rgba(255, 178, 70, .9)); }
    }
    @keyframes flame-core-flicker {
      from { transform: scale(.9, .92); opacity: .74; }
      to { transform: scale(1.08, 1.05); opacity: 1; }
    }
    .plant[data-running="true"] .svg-pipe, .plant[data-fuel="true"] .svg-pipe { stroke: #c4e76e; }
    .plant[data-fan="true"] .svg-fan { fill: #c4e76e; }
    .plant-summary { display: grid; gap: 10px; }
    .summary-cell { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
    .summary-label { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
    .summary-value { margin: 6px 0 0; font-size: 13px; font-weight: 780; }

    .indicator-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
    .indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 48px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(255, 255, 255, .02);
    }
    .led { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #46504b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
    .led.on { background: var(--green); box-shadow: 0 0 10px rgba(103, 214, 156, .7); }
    .led.amber.on { background: var(--amber); box-shadow: 0 0 10px rgba(255, 191, 91, .65); }
    .indicator-name { color: #cad3cd; font-size: 9px; font-weight: 650; line-height: 1.35; }

    .timer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
    .timer-label { color: var(--muted); font-size: 10px; font-weight: 680; }
    .timer-readout { display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
    .timer-value { min-width: 30px; color: var(--lime); font-size: 20px; font-weight: 800; text-align: right; }
    .timer-unit { color: var(--muted); font-size: 10px; }
    .progress { height: 5px; flex: 1; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
    .progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width .2s linear; }

    .controls-panel { display: flex; flex-direction: column; gap: 13px; }
    .controls-panel .panel-heading { margin-bottom: 1px; }
    .control-card { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
    .control-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .control-title { margin: 0; font-size: 11px; font-weight: 730; }
    .control-hint { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
    .control-value { color: var(--lime); font-size: 11px; font-weight: 780; font-variant-numeric: tabular-nums; }

    .switch {
      position: relative;
      width: 42px;
      height: 24px;
      flex: 0 0 auto;
      padding: 0;
      border: 1px solid rgba(255, 255, 255, .17);
      border-radius: 99px;
      background: #303b3d;
      cursor: pointer;
      transition: background .2s, border-color .2s;
    }
    .switch::after {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #bbc5bf;
      content: "";
      transition: transform .2s, background .2s;
    }
    .switch[aria-checked="true"] { border-color: rgba(196, 231, 110, .55); background: rgba(196, 231, 110, .26); }
    .switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--lime); }
    .switch:disabled { cursor: not-allowed; opacity: .45; }

    .range-wrap { margin-top: 12px; }
    input[type="range"] { display: block; width: 100%; margin: 0; accent-color: var(--lime); cursor: pointer; }
    input[type="range"]:disabled { cursor: not-allowed; opacity: .43; }
    .range-scale { display: flex; justify-content: space-between; margin-top: 6px; color: #819087; font-size: 8px; }
    .range-value-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
    .range-value-row .control-title { margin: 0; }
    .threshold { margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }

    .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; }
    .action {
      min-height: 42px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #263234;
      color: #e6eee6;
      font-size: 10px;
      font-weight: 720;
      cursor: pointer;
      transition: transform .15s, background .15s, border-color .15s, opacity .15s;
    }
    .action:hover:not(:disabled) { border-color: rgba(196, 231, 110, .42); background: #303f3c; }
    .action:active:not(:disabled) { transform: translateY(1px); }
    .action:disabled { cursor: not-allowed; opacity: .42; }
    .action.primary { border-color: rgba(196, 231, 110, .4); background: var(--lime); color: #202817; }
    .action.primary:hover:not(:disabled) { background: #d3f184; }
    .action.danger { color: #ffaaa3; }
    .action.wide { grid-column: 1 / -1; }
    .pilot-button[data-blinking="true"] { animation: pilot-blink 1s steps(2, end) infinite; }
    @keyframes pilot-blink {
      50% { border-color: var(--amber); background: rgba(255, 191, 91, .23); color: #fff0d4; box-shadow: 0 0 18px rgba(255, 191, 91, .22); }
    }

    .steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding: 15px 18px; }
    .step { display: flex; align-items: center; gap: 8px; min-width: 0; color: #849089; font-size: 9px; line-height: 1.35; }
    .step-number { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 9px; font-weight: 750; }
    .step[data-active="true"] { color: #e7f2ce; }
    .step[data-active="true"] .step-number { border-color: rgba(196, 231, 110, .65); background: rgba(196, 231, 110, .12); color: var(--lime); }
    .step[data-done="true"] .step-number { border-color: rgba(103, 214, 156, .4); background: rgba(103, 214, 156, .12); color: var(--green); }
    .footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 13px; color: #7e8a84; font-size: 9px; line-height: 1.5; }
    .footer p { margin: 0; }
    .toast { min-height: 16px; color: var(--amber); text-align: right; }

    @media (max-width: 860px) {
      .dashboard { grid-template-columns: 1fr; }
      .controls-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .controls-panel .panel-heading, .controls-panel .actions { grid-column: 1 / -1; }
      .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 13px; }
    }
    @media (max-width: 560px) {
      .page { width: calc(100% - 22px); padding-top: 16px; }
      .header { align-items: flex-start; margin-bottom: 14px; }
      .header-meta { flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 6px; font-size: 9px; }
      .brand-mark { width: 36px; height: 36px; }
      .brand-title { font-size: 12px; }
      .overview { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
      .status-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
      .status-caption { grid-column: 1 / -1; margin: 0; }
      .status-note { margin: 0; text-align: right; }
      .process-panel, .controls-panel { padding: 15px; }
      .plant { grid-template-columns: minmax(0, 1fr) 92px; gap: 7px; min-height: 190px; padding: 10px; }
      .plant-summary { gap: 7px; }
      .summary-cell { padding: 8px; }
      .indicator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .indicator:last-child { grid-column: 1 / -1; }
      .controls-panel { gap: 9px; }
      .control-card { padding: 11px; }
      .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px; }
      .footer { flex-direction: column; }
      .toast { text-align: left; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }
  