/* ============================================================
   SerialWeb · common 部件样式（由 style.css 拆分）
   ============================================================ */
* {
      box-sizing: border-box;
      scrollbar-width: thin;
      scrollbar-color: var(--scrollbar-thumb) transparent;
    }
button {
      border: none;
      background: none;
      cursor: pointer;
    }
a {
      color: inherit;
      text-decoration: none;
    }
.status-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      position: relative;
      flex: 0 0 auto;
      box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
    }
.status-dot::after {
      content: "";
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      opacity: 0.5;
      animation: pulse 1.9s infinite ease-out;
      background: currentColor;
    }
.secondary-btn, .icon-btn, .mini-btn {
      background: rgba(255, 255, 255, 0.44);
      border: 1px solid var(--border-strong);
    }
.ghost-btn {
      border: 1px dashed var(--border-strong);
      background: transparent;
      color: var(--text-soft);
    }
.icon-btn, .mini-btn {
      width: 40px;
      height: 40px;
      display: inline-grid;
      place-items: center;
      font-size: 18px;
    }
.mini-btn {
      width: auto;
      min-width: 40px;
      padding: 8px 10px;
      font-size: 12px;
      font-weight: 700;
    }
select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-color: var(--bg-panel-strong);
      background-image:
        linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
        linear-gradient(135deg, var(--text-soft) 50%, transparent 50%),
        linear-gradient(var(--border), var(--border));
      background-repeat: no-repeat;
      background-position:
        calc(100% - 13px) calc(50% - 2px),
        calc(100% - 8px) calc(50% - 2px),
        calc(100% - 32px) 50%;
      background-size:
        5px 5px,
        5px 5px,
        1px calc(100% - 12px);
      padding-right: 36px;
      text-overflow: ellipsis;
      cursor: pointer;
    }
select::-ms-expand {
      display: none;
    }
.custom-select {
      position: relative;
      display: block;
      width: 100%;
      min-width: 0;
    }
.custom-select-native {
      position: absolute;
      inset: 0;
      width: 0;
      height: 0;
      opacity: 0;
      pointer-events: none;
    }
.custom-select-trigger {
      width: 100%;
      min-width: 0;
      min-height: 34px;
      padding: 0 9px 0 10px;
      border: 1px solid var(--border-strong);
      border-radius: 14px;
      background: var(--bg-panel-strong);
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 13px;
      overflow: visible;
      transition: border-color 0.16s ease, box-shadow 0.16s ease;
    }
.custom-select-label {
      flex: 1 1 auto;
      min-width: 0;
      padding: 7px 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: left;
    }
.custom-select-caret {
      flex: 0 0 auto;
      display: inline-grid;
      place-items: center;
      font-size: 12px;
      color: var(--text-soft);
    }
.custom-select.open .custom-select-trigger, .custom-select-trigger:focus {
      border-color: rgba(86, 114, 205, 0.52);
      box-shadow: 0 0 0 4px rgba(86, 114, 205, 0.12);
      outline: none;
    }
.custom-select.is-disabled .custom-select-trigger {
      opacity: 0.58;
      cursor: not-allowed;
    }
.custom-select-menu {
      position: fixed;
      top: 0;
      left: 0;
      right: auto;
      width: 0;
      min-width: 0;
      max-height: 240px;
      overflow: auto;
      z-index: 180;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-4px) scale(0.98);
      transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    }
.custom-select.open .custom-select-menu, .custom-select-menu.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }
.custom-select-option {
      width: 100%;
      min-height: 34px;
      justify-content: flex-start;
      text-align: left;
      padding: 7px 10px;
      font-size: 12px;
    }
.custom-select-option.active {
      background: rgba(86, 114, 205, 0.12);
      color: var(--accent);
    }
.custom-select-option:disabled {
      opacity: 0.48;
      cursor: not-allowed;
    }
.custom-select.compact .custom-select-label {
      padding: 6px 0;
      font-size: 12px;
    }
.custom-select.compact .custom-select-trigger {
      min-height: 32px;
      padding: 0 9px;
    }
.custom-select.compact .custom-select-caret {
      font-size: 11px;
    }
.custom-select.compact .custom-select-option {
      min-height: 30px;
      padding: 6px 9px;
    }
.custom-select-menu {
      display: block;
    }
.runtime-mode-label {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
.online-mode-chip {
      display: inline-flex;
      flex: 0 0 auto;
      border-radius: 999px;
      padding: 3px 8px;
      border: 1px solid rgba(86, 114, 205, 0.22);
      background: rgba(86, 114, 205, 0.1);
      color: var(--accent-strong);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.3;
    }
.corner-actions {
      display: flex;
      justify-content: flex-end;
      gap: 6px;
      align-items: center;
      flex-wrap: nowrap;
    }
.workspace {
      min-height: 0;
      height: 100%;
      display: grid;
      grid-template-columns: 286px minmax(320px, 1fr);
      gap: 8px;
      align-items: stretch;
      transition: grid-template-columns 0.24s ease, gap 0.24s ease;
    }
.expanded-left-top {
      display: grid;
      gap: 8px;
      min-width: 0;
      min-height: 0;
    }
.config-head-group {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
      gap: 12px;
      min-width: 0;
    }
.config-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.stats-grid {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
.field {
      display: grid;
      gap: 8px;
      min-width: 0;
    }
.field.span-2 {
      grid-column: span 2;
    }
.field.span-4 {
      grid-column: 1 / -1;
    }
.field label, .mini-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: var(--text-soft);
      text-transform: uppercase;
    }
.toggle-row {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: nowrap;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 10px 12px;
      background: rgba(255,255,255,0.18);
      cursor: pointer;
      min-width: 0;
    }
.toggle-row > div {
      min-width: 0;
      flex: 1 1 auto;
    }
.toggle-row .mini-label {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
.device-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
.device-card, .stat-card {
      min-width: 0;
      border-radius: 18px;
      border: 1px solid var(--border);
      padding: 12px 14px;
      background: var(--bg-panel-strong);
    }
.device-card strong, .stat-card strong {
      display: block;
      font-size: 12px;
      color: var(--text-soft);
      margin-bottom: 6px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
.device-card span, .stat-card span {
      display: block;
      font-size: 14px;
      font-weight: 700;
      min-height: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
.layout-toggle-strip {
      display: none;
    }
.layout-toggle-btn {
      width: 100%;
      min-height: 46px;
      border-radius: 18px;
      border: 1px dashed var(--border-strong);
      background: rgba(86, 114, 205, 0.08);
      color: var(--signal);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 700;
      font-size: 13px;
    }
.layout-toggle-btn svg {
      width: 18px;
      height: 18px;
    }
.mode-tabs .mode-tab {
      position: relative;
      z-index: 1;
      min-width: 0;
      min-height: 30px;
      padding: 4px 8px;
      border-radius: 10px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--text-soft);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.16s ease;
    }
.mode-tabs .mode-tab.active {
      color: #eef2ff;
    }
.help-icon {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1.5px solid var(--text-soft);
      color: var(--text-soft);
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      cursor: help;
      flex: 0 0 auto;
      text-transform: none;
      transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
    }
.help-icon:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-soft);
    }
.help-icon:hover::after {
      content: attr(data-tip);
      position: absolute;
      left: -16px;
      top: calc(100% + 8px);
      width: 280px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--bg-panel-strong);
      box-shadow: var(--shadow);
      color: var(--text);
      font-size: 12px;
      font-weight: 500;
      line-height: 1.55;
      white-space: pre-line;
      text-align: left;
      text-transform: none;
      z-index: 30;
      pointer-events: none;
    }
.help-icon:hover::before {
      content: "";
      position: absolute;
      left: 50%;
      top: calc(100% + 2px);
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-bottom-color: var(--border);
      z-index: 31;
      pointer-events: none;
    }
.danger-btn {
      border-color: rgba(220, 38, 38, 0.22);
      background: rgba(220, 38, 38, 0.08);
      color: #c73a3a;
    }
.danger-btn:hover, .danger-btn:focus-visible {
      border-color: rgba(220, 38, 38, 0.36);
      background: rgba(220, 38, 38, 0.14);
      color: #b91c1c;
      outline: none;
    }
@media (max-width: 1080px) {
      .parser-result-card {
        min-width: 120px;
        flex-basis: 120px;
      }
    }
.insight-card {
      min-height: 0;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: var(--bg-panel-strong);
      padding: 14px;
      display: grid;
      gap: 10px;
    }
.chip-cloud {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: flex-start;
    }
.chip {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 6px 10px;
      background: rgba(86, 114, 205, 0.1);
      border: 1px solid rgba(86, 114, 205, 0.14);
      font-size: 11px;
      font-weight: 700;
      color: var(--signal);
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
.insight-pre {
      min-height: 0;
      margin: 0;
      padding: 10px 12px;
      border-radius: 16px;
      background: var(--bg-terminal);
      overflow: auto;
      font-size: 12px;
      line-height: 1.5;
      white-space: pre-wrap;
      word-break: break-word;
      border: 1px solid var(--border);
    }
.stats-panel {
      display: grid;
      gap: 8px;
      padding: 12px 14px;
      flex: 0 0 auto;
    }
#clear-live-log-btn {
      min-height: 30px;
      padding: 6px 12px;
      font-size: 12px;
      line-height: 1;
      align-self: center;
      flex: 0 0 auto;
      white-space: nowrap;
    }
.log-line {
      display: grid;
      grid-template-columns: auto auto minmax(0, 1fr);
      gap: 10px;
      align-items: start;
      padding: 2px 0;
      white-space: pre-wrap;
      word-break: break-word;
    }
.log-line.no-stamp {
      grid-template-columns: auto minmax(0, 1fr);
    }
.log-line .stamp {
      color: var(--text-soft);
      user-select: none;
    }
.log-line .dir {
      font-weight: 800;
      min-width: 28px;
    }
.log-line.rx .dir {
      color: var(--signal);
    }
.log-line.tx .dir {
      color: var(--warning);
    }
.log-line.sys .dir, .log-line.meta .dir {
      color: var(--accent);
    }
.log-line.error .dir {
      color: var(--danger);
    }
.log-line .payload {
      min-width: 0;
    }
/* ESP32 日志等级着色：V/D/I/W/E → 灰/青/绿/黄/红 */ .log-level {
      display: inline-block;
      min-width: 1.1em;
      text-align: center;
      margin-right: 4px;
      padding: 0 3px;
      border-radius: 5px;
      border: 1px solid currentColor;
      font-weight: 800;
    }
.log-meta {
      font-weight: 600;
      margin-right: 4px;
      opacity: 0.92;
    }
.log-level-e, .log-meta.log-level-e { color: #ef5350; }
.log-level-w, .log-meta.log-level-w { color: #f0b429; }
.log-level-i, .log-meta.log-level-i { color: #2fb36b; }
.log-level-d, .log-meta.log-level-d { color: #3fa7d8; }
.log-level-v, .log-meta.log-level-v { color: var(--text-soft); }
.log-msg { color: var(--text); }
.log-tag {
      color: var(--accent);
      font-weight: 700;
      margin-right: 3px;
    }
.mode-enable-dot {
      width: 16px;
      height: 16px;
      min-width: 16px;
      padding: 0;
      border-radius: 999px;
      border: 1px solid var(--border-strong);
      background: transparent;
      display: grid;
      place-items: center;
      transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    }
.mode-enable-dot::after {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: transparent;
      transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
    }
.module-head {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 4px;
      align-items: center;
    }
.module-head.module-head-passive {
      grid-template-columns: minmax(0, 1fr) auto;
    }
.module-head-inline {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 0;
    }
.module-head-inline .field-inline {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 0;
      white-space: nowrap;
    }
.module-head-inline .field-inline label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: var(--text-soft);
      text-transform: uppercase;
      white-space: nowrap;
    }
.module-head-inline .field-inline {
      flex-shrink: 0;
    }
.module-head-inline .field-inline .compact-input {
      width: 68px;
    }
.module-head-inline .module-head-action {
      min-height: 28px;
      padding: 5px 9px;
    }
.module-copy {
      min-width: 0;
      display: grid;
      gap: 2px;
    }
.module-head-action {
      min-height: 28px;
      padding: 5px 9px;
      white-space: nowrap;
      justify-self: end;
      align-self: center;
    }
.module-switch {
      width: 36px;
      height: 22px;
      min-width: 36px;
      padding: 2px;
      border-radius: 999px;
      border: 1px solid var(--border-strong);
      background: rgba(255,255,255,0.18);
      display: flex;
      align-items: center;
      transition: background 0.16s ease, border-color 0.16s ease;
    }
.module-switch::after {
      content: "";
      width: 16px;
      height: 16px;
      border-radius: 999px;
      background: rgba(137, 148, 160, 0.92);
      transition: transform 0.16s ease, background 0.16s ease;
    }
.module-switch.is-on {
      border-color: rgba(86, 114, 205, 0.32);
      background: rgba(86, 114, 205, 0.18);
    }
.module-switch.is-on::after {
      transform: translateX(14px);
      background: var(--accent-strong);
    }
.module-toolbar {
      display: flex;
      align-items: end;
      justify-content: flex-start;
      gap: 6px;
      flex-wrap: nowrap;
    }
.queue-item, .rule-item {
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 4px;
      display: grid;
      gap: 3px;
      background: var(--bg-panel-strong);
    }
.queue-item-grid, .rule-item-grid {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 5px;
      align-items: center;
    }
.queue-item-grid input[type="text"], .queue-item-grid input:not([type]) {
      width: 100%;
    }
.compact-input {
      min-height: 26px;
      width: 100%;
      border-radius: 8px;
      border: 1px solid var(--border-strong);
      font-size: 12px;
      padding: 4px 6px;
      background-color: var(--bg-panel-strong);
    }
.compact-select, .custom-select.compact {
      min-height: 26px;
      width: 100%;
      font-size: 12px;
    }
.custom-select.compact {
      border: none;
      background: none;
      border-radius: 0;
      padding: 0;
    }
.custom-select.compact .custom-select-trigger {
      min-height: 26px;
      width: 100%;
      border-radius: 8px;
      border: 1px solid var(--border-strong);
      background-color: var(--bg-panel-strong);
      padding: 0 6px;
      gap: 4px;
      font-size: 12px;
    }
.compact-select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-color: var(--bg-panel-strong);
      padding: 4px 6px;
      cursor: pointer;
    }
.queue-inline-row input[type="checkbox"], .rule-inline-row input[type="checkbox"] {
      width: 15px;
      height: 15px;
      margin: 0 auto;
      accent-color: var(--accent);
    }
.reorder-drag-handle {
      position: absolute;
      left: 5px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      min-width: 18px;
      height: 28px;
      min-height: 28px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--text-soft);
      font-size: 15px;
      line-height: 1;
      cursor: grab;
      touch-action: none;
      user-select: none;
    }
.reorder-drag-handle:hover, .reorder-drag-handle:focus-visible {
      color: var(--accent);
      background: rgba(86, 114, 205, 0.1);
      outline: none;
    }
.is-reorder-dragging {
      opacity: 0.58;
      outline: 1px solid rgba(86, 114, 205, 0.38);
      box-shadow: 0 0 0 3px rgba(86, 114, 205, 0.08);
    }
.is-reorder-animating {
      will-change: transform;
    }
.queue-inline-row {
      grid-template-columns: auto minmax(0, 1fr) auto;
    }
.rule-inline-row {
      grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) minmax(34px, var(--preset-action-w));
    }
.rule-response-row .compact-input {
      padding: 4px 6px;
    }
@keyframes modePulseSuccessFlash {
      0% {
        border-color: var(--border-strong);
        box-shadow: none;
      }
      30% {
        border-color: rgba(86, 114, 205, 0.5);
        box-shadow: inset 0 0 0 1px rgba(86, 114, 205, 0.18);
        background: linear-gradient(135deg, rgba(86, 114, 205, 0.28), rgba(41, 194, 122, 0.16));
      }
      100% {
        border-color: var(--border-strong);
        box-shadow: none;
      }
    }
@keyframes modePulseErrorFlash {
      0% {
        border-color: var(--border-strong);
        box-shadow: none;
      }
      30% {
        border-color: rgba(220, 91, 82, 0.5);
        box-shadow: inset 0 0 0 1px rgba(220, 91, 82, 0.16);
        background: linear-gradient(135deg, rgba(220, 91, 82, 0.24), rgba(185, 58, 50, 0.12));
      }
      100% {
        border-color: var(--border-strong);
        box-shadow: none;
      }
    }
.toast {
      min-width: 260px;
      max-width: 360px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid var(--border-strong);
      background: var(--bg-panel-strong);
      box-shadow: var(--shadow);
      display: grid;
      gap: 6px;
      pointer-events: auto;
    }
/* 配色全部取自主题变量，浅色/深色自动跟随，无需单独覆盖 */ .version-hero {
      position: relative;
      display: grid;
      gap: 12px;
      padding: 16px 18px;
      border-radius: 16px;
      border: 1px solid var(--border-strong);
      background:
        radial-gradient(130% 150% at 8% 0%, var(--accent-soft), transparent 62%),
        var(--bg-panel);
    }
.version-hero-top {
      display: flex;
      align-items: center;
      gap: 12px;
    }
.version-hero-mark {
      width: 46px;
      height: 46px;
      min-width: 46px;
      flex: 0 0 auto;
      display: grid;
      place-items: center;
      border-radius: 13px;
      background: var(--accent);
      box-shadow: 0 6px 16px var(--accent-soft);
      /* 前景固定白色：深浅两种主题下图标都保持白色 */
      color: #ffffff;
    }
.version-hero-mark svg {
      width: 28px;
      height: 28px;
      display: block;
    }
.version-hero-copy {
      display: grid;
      gap: 3px;
      min-width: 0;
    }
.version-hero-title {
      font-size: 17px;
      font-weight: 900;
      letter-spacing: 0.2px;
      color: var(--text);
    }
.version-hero-desc {
      font-size: 12.5px;
      line-height: 1.55;
      color: var(--text-soft);
    }
.version-hero-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }
.version-hero-tag {
      font-size: 12px;
      font-weight: 750;
      color: var(--text-soft);
    }
.version-hero-download {
      display: block;
      width: 100%;
      box-sizing: border-box;
      padding: 8px 14px;
      border-radius: 10px;
      border: 0;
      background: var(--accent);
      color: #ffffff;
      font-size: 12.5px;
      font-weight: 850;
      text-align: center;
      text-decoration: none;
      white-space: nowrap;
      box-shadow: 0 4px 12px var(--accent-soft);
      cursor: pointer;
      transition: filter 0.14s ease, box-shadow 0.14s ease, border-radius 0.16s ease;
    }
.version-hero-download:hover {
      filter: brightness(1.07);
      box-shadow: 0 6px 16px var(--accent-soft);
      text-decoration: none;
    }
/* 副按钮：与主按钮等宽、无缝相接 */ .version-hero-action-wrap {
      display: grid;
      justify-items: stretch;
      border-radius: 10px;
    }
.version-hero-download-sub {
      max-height: 0;
      padding-top: 0;
      padding-bottom: 0;
      opacity: 0;
      overflow: hidden;
      border-radius: 0 0 10px 10px;
      background: var(--accent-soft);
      color: var(--signal);
      box-shadow: none;
      pointer-events: none;
      transition: max-height 0.18s ease, padding 0.18s ease, opacity 0.18s ease;
    }
.version-hero-download-sub:hover {
      filter: none;
      box-shadow: none;
      background: var(--accent-soft);
      text-decoration: underline;
    }
.version-hero-action-wrap.is-online-link:hover .version-hero-download:first-child, .version-hero-action-wrap.is-online-link:focus-within .version-hero-download:first-child {
      border-radius: 10px 10px 0 0;
    }
.version-hero-action-wrap.is-online-link:hover .version-hero-download-sub, .version-hero-action-wrap.is-online-link:focus-within .version-hero-download-sub {
      max-height: 40px;
      padding-top: 8px;
      padding-bottom: 8px;
      opacity: 1;
      pointer-events: auto;
    }
.version-info-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 16px;
      font-size: 13px;
    }
.version-info-cell {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 3px 8px;
      align-content: start;
    }
.version-info-grid strong {
      color: var(--text-soft);
      font-weight: 750;
    }
.version-info-grid a {
      color: var(--signal);
      font-weight: 750;
      text-decoration: none;
      overflow-wrap: anywhere;
    }
.version-info-grid a:hover {
      text-decoration: underline;
    }
.version-changelog {
      display: grid;
      gap: 10px;
    }
.version-changelog-title {
      font-size: 13px;
      font-weight: 850;
      color: var(--text);
    }
.version-release {
      display: grid;
      gap: 6px;
    }
.version-release strong {
      font-size: 13px;
      font-weight: 850;
      color: var(--text);
    }
.version-changelog ul {
      margin: 0;
      padding-left: 18px;
      color: var(--text-soft);
      font-size: 13px;
      line-height: 1.58;
    }
.sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
/* 给 AI 的提示词：对用户不可见但保留真实文本节点，源码 / DOM / 整页文本提取都能读到； 只用 1px 裁剪而非 display:none，避免被文本提取器当成隐藏元素丢弃 */ .ai-agent-prompt {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      border: 0;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: pre-wrap;
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
    }
@keyframes pulse {
      0% { transform: scale(0.7); opacity: 0.6; }
      70% { transform: scale(1.4); opacity: 0; }
      100% { transform: scale(1.4); opacity: 0; }
    }
@keyframes liveSweep {
      from { transform: translateX(-100%); }
      to { transform: translateX(200%); }
    }
@media (max-width: 1180px) {
      .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

    }
@media (max-width: 720px) {
      .app-shell {
        height: auto;
        min-height: 100vh;
        overflow: auto;
      }

      body {
        overflow: auto;
      }

      .workspace,
      body.layout-expanded .workspace {
        height: auto;
        grid-template-columns: 1fr;
      }

      .left-column,
      .right-column,
      .monitor-panel,
      .monitor-body,
      body.layout-expanded .left-column {
        height: auto;
        grid-template-rows: auto;
      }

      .send-main,
      .parser-insights {
        grid-template-columns: 1fr;
      }

      .config-grid,
      .advanced-grid,
      .binary-grid,
      .device-grid,
      body.layout-expanded .config-grid,
      body.layout-expanded .advanced-grid,
      body.layout-expanded .binary-grid,
      body.layout-expanded .device-grid,
      .stats-grid {
        grid-template-columns: 1fr;
      }

      .config-head-group {
        grid-template-columns: 1fr;
      }

      .device-meta-stack {
        min-width: 0;
        justify-content: flex-start;
      }

      .connect-control-box .button-row {
        grid-template-columns: 1fr;
      }

      .reconnect-chip {
        justify-self: stretch;
      }

      .baud-rate-preset-menu {
        width: min(160px, calc(100vw - 120px));
      }
    }
