/* ============================================================
   SerialWeb · overrides 部件样式（由 style.css 拆分）
   ============================================================ */
/* ========================================================================= SerialWeb · 现代化覆盖层（VOFA+ 风格） 仅调整视觉：配色、圆角、阴影、描边、聚焦、密度。不改 DOM 结构与类名。 ========================================================================= */ /* --- 全局环境光 --- */ body {
      background-image:
        radial-gradient(1100px 700px at 88% -12%, var(--accent-soft), transparent 62%),
        radial-gradient(900px 620px at -8% 108%, var(--accent-soft), transparent 55%);
      background-attachment: fixed;
    }
/* --- 全局聚焦环：统一为青色 --- */ :where(button, a, [role="button"], select, summary, .status-pill):focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
      border-color: var(--accent);
    }
/* --- 顶栏：利落的仪器式面板 --- */ .topbar {
      background:
        linear-gradient(180deg, var(--bg-panel-strong), var(--bg-panel)) padding-box,
        linear-gradient(180deg, var(--border), transparent) border-box;
      border: 1px solid transparent;
      border-bottom-color: var(--border-strong);
      border-radius: 0 0 var(--radius) var(--radius);
      box-shadow: 0 10px 30px var(--shadow-soft);
      backdrop-filter: blur(14px) saturate(1.2);
      -webkit-backdrop-filter: blur(14px) saturate(1.2);
    }
/* --- 面板：细描边 + 顶部高光，暗色下加微弱青色辉光 --- */ .panel {
      border: 1px solid var(--border);
      background: var(--bg-panel);
      box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
body.theme-dark .panel {
      border-color: rgba(140, 165, 190, 0.14);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 34px rgba(0, 0, 0, 0.32);
    }
/* --- 主按钮：青绿渐变 + 辉光 --- */ .primary-btn, .wide-send-btn {
      background: linear-gradient(135deg, var(--accent), var(--signal));
      color: #eafffa;
      border: 1px solid transparent;
      border-top-color: rgba(255, 255, 255, 0.16);
      box-shadow: 0 8px 22px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.18);
      font-weight: 700;
    }
.primary-btn:hover, .wide-send-btn:hover {
      filter: brightness(1.06);
      box-shadow: 0 10px 26px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }
/* --- 次级 / 图标 / 小按钮：更精致的表面 --- */ .secondary-btn, .icon-btn, .mini-btn {
      background: var(--bg-panel-strong);
      border: 1px solid var(--border-strong);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
.secondary-btn:hover, .icon-btn:hover, .mini-btn:hover {
      background: var(--bg-elevated);
      border-color: var(--accent);
    }
/* --- 幽灵按钮 --- */ .ghost-btn {
      border: 1px dashed var(--border-strong);
      background: transparent;
      color: var(--text-soft);
    }
.ghost-btn:hover {
      color: var(--accent);
      border-color: var(--accent);
      background: var(--accent-soft);
    }
/* --- 模式切换（监视 / 解析）：青色滑片 --- */ .mode-switch-group {
      border-radius: var(--radius);
      background: var(--bg-panel-strong);
      border: 1px solid var(--border-strong);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
.mode-switch-group::before {
      border-radius: calc(var(--radius) - 3px);
      background: linear-gradient(135deg, var(--accent), var(--signal));
      box-shadow: 0 8px 20px var(--accent-soft);
    }
/* --- 连接状态胶囊 --- */ .status-pill {
      border: 1px solid var(--border-strong);
      background: var(--bg-panel-strong);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
body.theme-dark .status-pill {
      background: rgba(15, 21, 28, 0.78);
    }
.status-dot.connected {
      box-shadow: 0 0 0 4px var(--brand-green), 0 0 12px var(--signal);
    }
/* --- 表单控件：描边 + 青色聚焦 --- */ .config-panel input, .config-panel select, .config-panel textarea, .field input, .field select, .field textarea, .custom-select-trigger, .timeline-picker select {
      border: 1px solid var(--border-strong);
      background: var(--bg-panel-strong);
      border-radius: var(--radius-small);
      transition: border-color 0.16s ease, box-shadow 0.16s ease;
    }
.config-panel input:focus, .config-panel select:focus, .config-panel textarea:focus, .field input:focus, .field select:focus, .field textarea:focus, .custom-select-trigger:focus, .timeline-picker select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-soft);
    }
/* --- 勾选 / 单选：跟随主题强调色 --- */ input[type="checkbox"], input[type="radio"] {
      accent-color: var(--accent);
    }
/* --- 终端：更深的沉浸底色 --- */ .terminal {
      background: var(--bg-terminal);
      border: 1px solid var(--border);
      border-radius: var(--radius-small);
    }
/* --- 弹层 / 下拉 / Toast：强调色点缀 --- */ .floating-menu, .custom-select-menu, .timeline-export-menu, .toast {
      border: 1px solid var(--border-strong);
      box-shadow: var(--shadow), 0 0 0 1px var(--accent-soft);
    }
.toast {
      border-left: 3px solid var(--accent);
    }
