﻿    :root {
      --bg: #0f172a;
      --card: #111827;
      --line: #334155;
      --text: #e5e7eb;
      --muted: #94a3b8;
      --ok: #22c55e;
      --warn: #f59e0b;
      --bad: #ef4444;
      --btn: #2563eb;
      --btn2: #475569;
    }
    [v-cloak] {
      display: none;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
      min-height: 100vh;
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at right top, rgba(14, 165, 233, 0.12), transparent 24%),
        linear-gradient(180deg, #08111f 0%, #0f172a 48%, #131d33 100%);
      color: var(--text);
    }
    .page-shell {
      position: relative;
      min-height: 100vh;
      padding: 24px;
    }
    .page-toolbar {
      position: sticky;
      top: 16px;
      z-index: 30;
      display: grid;
      grid-template-columns: 240px minmax(0, 1fr);
      gap: 18px;
      margin: 0 0 20px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9));
      box-shadow: 0 20px 46px rgba(2, 6, 23, 0.26);
      backdrop-filter: blur(14px);
      overflow: hidden;
    }
    .page-toolbar-left {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
      padding: 22px;
      border-right: 1px solid rgba(51, 65, 85, 0.72);
      background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.18));
    }
    .page-toolbar-left-meta {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .page-toolbar-copy {
      min-width: 0;
    }
    .page-toolbar-main {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
      padding: 22px 24px;
    }
    .page-toolbar-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }
    .page-toolbar-kicker {
      color: #93c5fd;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 0;
    }
    .page-toolbar-left-note {
      color: #cbd5e1;
      font-size: 13px;
      line-height: 1.5;
    }
    .page-toolbar-title {
      color: #f8fafc;
      font-size: 30px;
      font-weight: 700;
      line-height: 1.1;
    }
    .page-toolbar-desc {
      margin-top: 8px;
      max-width: 780px;
      color: #94a3b8;
      font-size: 13px;
      line-height: 1.6;
    }
    .page-toolbar-btn {
      width: 100%;
      min-height: 44px;
      font-size: 15px;
      box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
    }
    .page-content {
      position: relative;
      min-width: 0;
      padding-left: 0;
    }
    .page-shell .el-drawer__wrapper {
      pointer-events: auto;
      top: 0;
      left: 0;
      height: 100vh;
    }
    .page-shell .el-drawer__mask {
      background: rgba(2, 6, 23, 0.34);
      backdrop-filter: blur(2px);
    }
    .page-shell .el-drawer__container {
      position: relative;
    }
    .page-shell .el-drawer {
      pointer-events: auto;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(8, 15, 28, 0.98), rgba(15, 23, 42, 0.96));
      box-shadow: 24px 0 40px rgba(2, 6, 23, 0.24);
    }
    .page-shell .ble-sidebar-drawer {
      width: 420px !important;
      max-width: 100vw;
    }
    .drawer-sidebar-shell {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
    }
    .drawer-mobile-actions {
      display: flex;
      justify-content: flex-end;
      padding: 12px 12px 0;
      background: inherit;
    }
    .drawer-mobile-close-btn {
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
    }
    .drawer-sidebar-host {
      flex: 1 1 auto;
      min-height: 0;
      height: auto;
      overflow: auto;
      padding: 14px 12px 14px 14px;
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(8, 15, 28, 0.96));
      scrollbar-width: thin;
      scrollbar-color: rgba(100, 116, 139, 0.75) transparent;
    }
    .drawer-sidebar-host::-webkit-scrollbar {
      width: 8px;
    }
    .drawer-sidebar-host::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: rgba(100, 116, 139, 0.75);
    }
    .wrap {
      max-width: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 18px;
      min-width: 0;
      min-height: 100%;
    }
    .sidebar-toggle-bar {
      position: sticky;
      top: 0;
      z-index: 5;
      padding-bottom: 2px;
      background: linear-gradient(180deg, rgba(8, 15, 28, 0.96), rgba(8, 15, 28, 0));
    }
    .sidebar-toggle-btn {
      width: 100%;
      min-height: 46px;
      box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
    }
    .drawer-source {
      visibility: hidden;
      max-height: 0;
      overflow: hidden;
    }
    .is-mounted-in-drawer {
      visibility: visible;
      max-height: none;
      overflow: visible;
    }
    .panel-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
    }
    .panel-head-inline {
      margin-bottom: 14px;
    }
    .panel-head-side {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }
    .panel-subtitle {
      margin-top: 6px;
      color: #94a3b8;
      font-size: 13px;
      line-height: 1.5;
    }
    .surface-chip {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0 12px;
      border: 1px solid rgba(96, 165, 250, 0.24);
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.14);
      color: #dbeafe;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.01em;
    }
    .surface-chip.muted {
      border-color: rgba(148, 163, 184, 0.22);
      background: rgba(51, 65, 85, 0.5);
      color: #cbd5e1;
    }
    h1 {
      margin: 0;
      font-size: 30px;
      line-height: 1.15;
      letter-spacing: 0.01em;
    }
    .tip {
      color: var(--muted);
      font-size: 13px;
      margin: 10px 0 0;
    }
    .card {
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.9));
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 0;
      box-shadow: 0 20px 40px rgba(2, 6, 23, 0.3);
    }
    .connect-card {
      margin-top: 0;
    }
    .sidebar-hero {
      position: relative;
      padding: 0;
      overflow: hidden;
      border: 1px solid rgba(148, 163, 184, 0.14);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.82));
      box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18);
    }
    .sidebar-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
      pointer-events: none;
    }
    .sidebar-hero-inner {
      position: relative;
      padding: 16px 16px 14px;
    }
    .sidebar-hero-top {
      display: block;
    }
    .sidebar-hero h1 {
      font-size: 22px;
      line-height: 1.18;
      letter-spacing: -0.01em;
      color: #f8fafc;
      max-width: none;
    }
    .sidebar-hero .tip {
      margin-top: 8px;
      max-width: none;
      color: #cbd5e1;
      font-size: 12px;
      line-height: 1.55;
    }
    .sidebar-hero .surface-chip {
      background: rgba(15, 23, 42, 0.42);
      border-color: rgba(148, 163, 184, 0.14);
      color: #dbeafe;
    }
    .sidebar-kicker {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 10px;
      margin-bottom: 10px;
      border: 1px solid rgba(148, 163, 184, 0.12);
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.42);
      color: #cbd5e1;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .sidebar-card {
      width: 100%;
    }
    .sidebar-section-title {
      color: #f8fafc;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.2;
    }
    .sidebar-panel-head {
      margin-bottom: 12px;
    }
    .sidebar-status-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
      padding: 10px 12px;
      border: 1px solid rgba(51, 65, 85, 0.7);
      border-radius: 14px;
      background: rgba(15, 23, 42, 0.48);
    }
    .sidebar-status-label {
      color: #94a3b8;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .sidebar-field-grid {
      gap: 12px;
    }
    .sidebar-button-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 14px;
    }
    .sidebar-button-grid button:last-child {
      grid-column: span 2;
    }
    .sidebar-send-row {
      align-items: stretch;
      gap: 10px;
    }
    .sidebar-send-select {
      flex: 1;
      max-width: none;
    }
    .sidebar-footnote {
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.4);
    }
    .sidebar-block-caption {
      margin-bottom: 10px;
      color: #cbd5e1;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .sidebar-log-card,
    .sidebar-monitor-card {
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 15, 28, 0.92));
    }
    .grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .native-surface label {
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .native-surface input:not([type="checkbox"]):not([type="range"]),
    .native-surface textarea,
    .native-surface select {
      width: 100%;
      min-height: 40px;
      background: rgba(2, 6, 23, 0.68);
      border: 1px solid rgba(71, 85, 105, 0.9);
      color: #f8fafc;
      border-radius: 10px;
      padding: 9px 12px;
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }
    .native-surface input:not([type="checkbox"]):not([type="range"]):focus,
    .native-surface textarea:focus,
    .native-surface select:focus {
      border-color: #409eff;
      box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.18);
      background: rgba(15, 23, 42, 0.92);
    }
    .native-surface input[type="number"] {
      appearance: textfield;
      -moz-appearance: textfield;
    }
    .native-surface input[type="number"]::-webkit-outer-spin-button,
    .native-surface input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .native-surface textarea { min-height: 92px; resize: vertical; }
    .row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 10px;
    }
    .ble-ui button,
    .ble-ui button.el-button {
      border: 1px solid transparent;
      border-radius: 10px;
      padding: 10px 16px;
      cursor: pointer;
      color: #fff;
      background: var(--btn);
      font-size: 14px;
      font-weight: 600;
      transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, background-color 0.16s ease;
    }
    .ble-ui button:hover,
    .ble-ui button.el-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.28);
    }
    .ble-ui button.secondary,
    .ble-ui button.el-button--info {
      background: rgba(71, 85, 105, 0.92);
      border-color: rgba(148, 163, 184, 0.24);
    }
    .ble-ui button.warn,
    .ble-ui button.el-button--warning {
      background: #b45309;
      border-color: #d97706;
    }
    .ble-ui button.bad,
    .ble-ui button.el-button--danger {
      background: #b91c1c;
      border-color: #ef4444;
    }
    .ble-ui button.setting-btn,
    .ble-ui button.el-button--primary {
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      border-color: #3b82f6;
    }
    .ble-ui button:disabled,
    .ble-ui button.el-button.is-disabled,
    .ble-ui button.el-button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
    .native-surface input:disabled,
    .native-surface textarea:disabled,
    .native-surface select:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }
    .status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      min-height: 36px;
      padding: 5px 12px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      color: #cbd5e1;
      background: rgba(15, 23, 42, 0.78);
    }
    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #64748b;
    }
    .dot.ok { background: var(--ok); }
    .dot.bad { background: var(--bad); }
    .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
    .log {
      height: 280px;
      overflow: auto;
      background: linear-gradient(180deg, #020617, #040b16);
      border: 1px solid rgba(51, 65, 85, 0.92);
      border-radius: 12px;
      padding: 12px;
      white-space: pre-wrap;
      line-height: 1.35;
      font-size: 13px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    }
    .serial-monitor {
      height: 260px;
      min-height: 180px;
      resize: vertical;
      background: linear-gradient(180deg, #020617, #040b16);
      border: 1px solid rgba(51, 65, 85, 0.92);
      border-radius: 12px;
      padding: 12px;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-all;
      line-height: 1.4;
      font-size: 12px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    }
    .serial-monitor-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      padding: 10px 12px;
      border: 1px solid rgba(51, 65, 85, 0.7);
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.46);
    }
    .serial-monitor-toolbar select {
      max-width: 200px;
      width: auto;
    }
    .line-rx { color: #a7f3d0; }
    .line-tx { color: #bfdbfe; }
    .line-sys { color: #cbd5e1; }
    .line-err { color: #fecaca; }
    .small {
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .section-title {
      text-align: left;
      font-size: 24px;
      font-weight: 700;
      margin: 0;
      color: #f8fafc;
      letter-spacing: 0.01em;
    }
    .settings-card {
      width: auto;
      position: static;
      min-width: 0;
      z-index: auto;
      max-width: 1220px;
      margin: 0 auto;
      padding: 20px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      border-radius: 20px;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.9));
      box-shadow: 0 24px 50px rgba(2, 6, 23, 0.26);
    }
    .settings-key-tabs {
      margin-bottom: 18px;
      padding: 14px 18px 12px;
      border: 1px solid rgba(96, 165, 250, 0.14);
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(11, 18, 32, 0.78));
    }
    .settings-key-tabs-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .settings-key-tabs-title {
      color: #f8fafc;
      font-size: 15px;
      font-weight: 700;
    }
    .settings-key-tabs-desc {
      max-width: 720px;
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.6;
    }
    .settings-key-tabbar .el-tabs__header {
      margin: 0;
    }
    .settings-key-tabbar .el-tabs__nav-wrap::after {
      height: 1px;
      background-color: rgba(51, 65, 85, 0.72);
    }
    .settings-key-tabbar .el-tabs__item {
      height: 40px;
      line-height: 40px;
      color: #94a3b8;
      font-size: 13px;
      font-weight: 700;
      transition: color 0.2s ease;
    }
    .settings-key-tabbar .el-tabs__item:hover,
    .settings-key-tabbar .el-tabs__item.is-active {
      color: #dbeafe;
    }
    .settings-key-tabbar .el-tabs__active-bar {
      height: 3px;
      border-radius: 999px;
      background: linear-gradient(90deg, #60a5fa, #2563eb);
    }
    .settings-key-tabbar .el-tabs__content {
      display: none;
    }
    .flash-profile-tabs-wrap {
      width: 100%;
    }
    .flash-profile-tabbar .el-tabs__header {
      margin: 0;
    }
    .flash-profile-tabbar .el-tabs__nav-wrap::after {
      height: 1px;
      background-color: rgba(51, 65, 85, 0.72);
    }
    .flash-profile-tabbar .el-tabs__item {
      height: 38px;
      line-height: 38px;
      color: #94a3b8;
      font-size: 13px;
      font-weight: 700;
      transition: color 0.2s ease;
    }
    .flash-profile-tabbar .el-tabs__item:hover,
    .flash-profile-tabbar .el-tabs__item.is-active {
      color: #dbeafe;
    }
    .flash-profile-tabbar .el-tabs__active-bar {
      height: 3px;
      border-radius: 999px;
      background: linear-gradient(90deg, #38bdf8, #2563eb);
    }
    .flash-profile-tabbar .el-tabs__content {
      display: none;
    }
    .setting-row.setting-row-flash-editor {
      grid-template-columns: 88px minmax(0, 1fr);
      align-items: start;
    }
    .setting-row.setting-row-flash-editor .setting-label {
      padding-top: 10px;
    }
    .setting-row.setting-row-flash-editor .setting-help {
      grid-column: 2 / -1;
      max-width: none;
    }
    .flash-editor-block {
      width: 100%;
      padding: 12px;
      border: 1px solid rgba(71, 85, 105, 0.82);
      border-radius: 14px;
      background: rgba(2, 6, 23, 0.5);
    }
    .flash-editor-head {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 14px;
    }
    .flash-editor-summary {
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.5;
    }
    .flash-editor-grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 10px;
    }
    .flash-editor-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
      padding: 10px 12px;
      border: 1px solid rgba(71, 85, 105, 0.72);
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.5);
    }
    .flash-editor-item-wide {
      grid-column: 1 / -1;
    }
    .flash-editor-item-third {
      grid-column: span 2;
    }
    .flash-editor-item-half {
      grid-column: span 3;
    }
    .flash-editor-item-label {
      margin: 0;
      color: #f8fafc;
      font-size: 13px;
      font-weight: 700;
    }
    .flash-editor-item-help {
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.5;
    }
    .flash-editor-inline-field {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .flash-editor-inline-field .unit-box {
      min-width: 56px;
    }
    .page-panel-head {
      padding-bottom: 18px;
      border-bottom: 1px solid rgba(51, 65, 85, 0.72);
      margin-bottom: 18px;
    }
    .settings-panel,
    .products-panel {
      background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(11, 18, 32, 0.88));
    }
    .setting-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .setting-row {
      display: grid;
      grid-template-columns: 88px 330px 420px;
      gap: 12px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid rgba(51, 65, 85, 0.38);
    }
    .setting-row.with-unit {
      grid-template-columns: 88px 276px 42px 420px;
    }
    .setting-list > .setting-row:last-of-type {
      border-bottom: 0;
    }
    .setting-label {
      color: #cbd5e1;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }
    .setting-help {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      letter-spacing: 0.01em;
      text-align: left;
      white-space: normal;
      overflow-wrap: break-word;
      word-break: break-word;
      min-width: 0;
      max-width: 420px;
      align-self: start;
    }
    .param-tooltip-row {
      display: flex;
      align-items: flex-start;
    }
    .param-title-row {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .param-help-trigger {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 22px;
      padding: 0 8px;
      border: 1px solid rgba(96, 165, 250, 0.2);
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.58);
      color: #bfdbfe;
      font-size: 11px;
      font-weight: 600;
      line-height: 1;
      cursor: help;
      user-select: none;
      transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }
    .param-help-trigger:hover {
      border-color: rgba(96, 165, 250, 0.38);
      background: rgba(30, 41, 59, 0.78);
      color: #dbeafe;
    }
    .param-help-trigger .el-icon-info {
      font-size: 12px;
    }
    .param-help-popper {
      max-width: 360px;
      line-height: 1.65;
      white-space: normal;
      word-break: break-word;
    }
    .settings-note-title {
      color: #f8fafc;
      font-size: 17px;
      font-weight: 600;
      letter-spacing: 0.04em;
      margin-bottom: 8px;
    }
    .mode-switch {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #0b1220;
    }
    .mode-switch input[type="radio"] {
      display: none;
    }
    .mode-option {
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      color: var(--muted);
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s ease, color 0.2s ease;
    }
    .mode-switch input[type="radio"]:checked + .mode-option {
      background: #1d4ed8;
      color: #ffffff;
      font-weight: 600;
    }
    .setting-row.setting-row-system-control {
      grid-template-columns: 88px minmax(0, 1fr);
      align-items: start;
    }
    .setting-row.setting-row-system-control .setting-label {
      padding-top: 10px;
    }
    .setting-row.setting-row-system-control .setting-help {
      grid-column: 2 / -1;
      max-width: none;
    }
    .system-control-block {
      width: 100%;
      padding: 12px;
      border: 1px solid rgba(71, 85, 105, 0.82);
      border-radius: 14px;
      background: rgba(2, 6, 23, 0.5);
    }
    .system-control-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(170px, 1fr));
      gap: 10px;
    }
    .system-control-card {
      padding: 10px 12px;
      border: 1px solid rgba(71, 85, 105, 0.72);
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.5);
    }
    .system-control-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .system-control-card-title {
      color: #f8fafc;
      font-size: 14px;
      font-weight: 700;
    }
    .system-control-field-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
    }
    .system-control-field-row .unit-box {
      min-width: 52px;
    }
    .system-control-card-note {
      margin-top: 8px;
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.5;
    }
    .system-control-card-note,
    .linkage-card-note,
    .cascade-card-note,
    .flash-editor-item-help {
      display: none;
    }
    .system-control-summary {
      margin-top: 12px;
    }
    .timer-block {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      min-width: 0;
    }
    .timer-row-primary {
      display: flex;
      align-items: center;
      min-height: 40px;
    }
    .timer-row-times {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 40px;
      flex-wrap: wrap;
    }
    .timer-picker-row {
      gap: 14px;
      margin-top: 4px;
    }
    .setting-row.setting-row-linkage {
      grid-template-columns: 88px minmax(0, 1fr);
      align-items: start;
    }
    .setting-row.setting-row-linkage .setting-label {
      padding-top: 10px;
    }
    .setting-row.setting-row-linkage .setting-help {
      grid-column: 2 / -1;
      max-width: none;
    }
    .linkage-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(170px, 1fr));
      gap: 10px;
    }
    .linkage-card {
      padding: 10px 12px;
      border: 1px solid rgba(71, 85, 105, 0.82);
      border-radius: 14px;
      background: rgba(2, 6, 23, 0.5);
    }
    .linkage-card-wide {
      grid-column: 1 / -1;
    }
    .linkage-card-wide .linkage-card-head {
      margin-bottom: 12px;
    }
    .linkage-card-wide .timer-row-times {
      flex-wrap: nowrap;
    }
    .linkage-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .linkage-card-head-stack {
      align-items: flex-start;
      flex-direction: column;
    }
    .linkage-card-title {
      color: #f8fafc;
      font-size: 14px;
      font-weight: 700;
    }
    .linkage-card-note {
      margin-top: 8px;
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.5;
    }
    .linkage-timezone-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
    }
    .linkage-timezone-row .unit-box {
      min-width: 42px;
    }
    .setting-row.setting-row-cascade {
      grid-template-columns: 88px minmax(0, 1fr);
      align-items: start;
    }
    .setting-row.setting-row-cascade .setting-label {
      padding-top: 10px;
    }
    .setting-row.setting-row-cascade .setting-help {
      grid-column: 2 / -1;
      max-width: none;
    }
    .cascade-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(150px, 1fr));
      gap: 10px;
    }
    .cascade-card {
      padding: 10px 12px;
      border: 1px solid rgba(71, 85, 105, 0.82);
      border-radius: 14px;
      background: rgba(2, 6, 23, 0.5);
    }
    .cascade-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .cascade-card-title {
      color: #f8fafc;
      font-size: 14px;
      font-weight: 700;
    }
    .cascade-field-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
    }
    .cascade-field-row .unit-box {
      min-width: 42px;
    }
    .cascade-card-note {
      margin-top: 8px;
      color: #94a3b8;
      font-size: 12px;
      line-height: 1.5;
    }
    .timer-picker-item {
      display: grid;
      grid-template-columns: 56px minmax(132px, 1fr);
      align-items: center;
      gap: 10px;
      min-width: 220px;
      flex: 1 1 220px;
      padding: 10px 12px;
      border: 1px solid rgba(71, 85, 105, 0.72);
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(2, 6, 23, 0.48));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }
    .timer-picker-label {
      color: #dbeafe;
      font-size: 13px;
      white-space: nowrap;
      font-weight: 700;
    }
    .timer-el-picker {
      width: 100%;
    }
    .timer-el-picker .el-input__inner {
      height: 40px;
      line-height: 40px;
      padding-left: 40px!important;
      padding-right: 34px;
      background: rgba(8, 15, 28, 0.92);
      border: 1px solid rgba(96, 165, 250, 0.18);
      color: #f8fafc;
      border-radius: 10px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }
    .timer-el-picker .el-input__inner:hover {
      border-color: rgba(96, 165, 250, 0.34);
      background: rgba(10, 18, 32, 0.96);
    }
    .timer-el-picker .el-input.is-focus .el-input__inner,
    .timer-el-picker .el-input__inner:focus {
      border-color: #60a5fa;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
      background: rgba(10, 18, 32, 0.98);
    }
    .timer-el-picker .el-input__prefix,
    .timer-el-picker .el-input__suffix {
      color: #93c5fd;
    }
    .timer-el-picker .el-input__prefix {
      left: 10px;
      display: flex;
      align-items: center;
    }
    .timer-el-picker .el-input__suffix {
      right: 10px;
    }
    .timer-el-picker .el-input__prefix-inner {
      display: flex;
      align-items: center;
    }
    .timer-el-picker .el-input__icon {
      line-height: 40px;
    }
    .timer-picker-popper.el-time-panel,
    .timer-picker-popper.el-picker-panel {
      width: 200px !important;
      min-width: 200px !important;
      border: 1px solid rgba(96, 165, 250, 0.18);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 28, 0.98));
      box-shadow: 0 24px 48px rgba(2, 6, 23, 0.42);
      backdrop-filter: blur(14px);
    }
    .timer-picker-popper.el-time-panel[x-placement^="bottom"],
    .timer-picker-popper.el-picker-panel[x-placement^="bottom"] {
      margin-top: 10px;
    }
    .timer-picker-popper .popper__arrow,
    .timer-picker-popper .popper__arrow::after {
      border-bottom-color: rgba(15, 23, 42, 0.96) !important;
    }
    .timer-picker-popper .el-time-panel__content {
      font-size: 15px;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 28, 0.98));
      color: #dbeafe;
    }
    .timer-picker-popper .el-time-spinner {
      background: transparent;
    }
    .timer-picker-popper .el-time-spinner__list {
      background: transparent;
    }
    .timer-picker-popper .el-time-panel__content::before,
    .timer-picker-popper .el-time-panel__content::after {
      border-color: rgba(96, 165, 250, 0.12);
    }
    .timer-picker-popper .el-time-spinner__wrapper {
      border-left-color: rgba(51, 65, 85, 0.72);
    }
    .timer-picker-popper .el-time-spinner__wrapper:first-child {
      border-left: 0;
    }
    .timer-picker-popper .el-scrollbar__wrap {
      margin-bottom: 0 !important;
      overflow-x: hidden !important;
    }
    .timer-picker-popper .el-scrollbar__bar.is-horizontal {
      display: none;
    }
    .timer-picker-popper .el-time-spinner__item {
      color: #94a3b8;
      height: 34px;
      line-height: 34px;
      font-size: 15px;
      border-radius: 8px;
      transition: background-color 0.2s ease, color 0.2s ease;
    }
    .timer-picker-popper .el-time-spinner__item:hover:not(.disabled):not(.active) {
      background: rgba(37, 99, 235, 0.14);
      color: #dbeafe;
    }
    .timer-picker-popper .el-time-spinner__item.active:not(.disabled) {
      color: #f8fafc;
      font-weight: 700;
    }
    .timer-picker-popper .el-time-spinner__list::after,
    .timer-picker-popper .el-time-spinner__list::before {
      height: 74px;
    }
    .timer-picker-popper .el-time-panel__footer {
      padding: 8px 12px;
      border-top: 1px solid rgba(51, 65, 85, 0.72);
      background: rgba(8, 15, 28, 0.72);
      display: none;
    }
    .timer-picker-popper .el-time-panel__btn {
      color: #93c5fd;
      font-size: 14px;
    }
    .timer-picker-popper .el-time-panel__btn.confirm {
      color: #f8fafc;
      font-weight: 700;
    }
    .timer-toggle {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      padding: 4px;
      min-width: 128px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #0b1220;
    }
    .timer-toggle input[type="radio"] {
      display: none;
    }
    .timer-toggle .timer-option {
      height: 40px;
      min-width: 54px;
      padding: 0 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      color: var(--muted);
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s ease, color 0.2s ease;
    }
    .timer-toggle input[type="radio"]:checked + .timer-option {
      background: #1d4ed8;
      color: #ffffff;
      font-weight: 600;
    }
    .timer-select-group {
      display: grid;
      grid-template-columns: auto minmax(118px, 1fr);
      gap: 8px;
      align-items: center;
      flex: 0 0 auto;
      min-width: 168px;
    }
    .timer-time-input {
      height: 40px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #0b1220;
      color: var(--text);
      font-size: 15px;
      box-sizing: border-box;
    }
    .timer-select-label {
      color: var(--muted);
      font-size: 13px;
      text-align: center;
    }
    .timer-separator {
      color: var(--muted);
      font-size: 18px;
      line-height: 1;
      flex: 0 0 auto;
    }
    .setting-row.setting-row-timer {
      align-items: start;
    }
    .setting-row.setting-row-timer .setting-label {
      padding-top: 10px;
    }
    .unit-box {
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(71, 85, 105, 0.9);
      border-radius: 8px;
      background: rgba(2, 6, 23, 0.68);
      color: #94a3b8;
      font-size: 14px;
    }
    .slider-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 40px;
      padding: 0 12px;
      border: 1px solid rgba(71, 85, 105, 0.9);
      border-radius: 8px;
      background: rgba(2, 6, 23, 0.68);
    }
    .slider-wrap input[type="range"] {
      --range-progress: 100%;
      flex: 1;
      -webkit-appearance: none;
      appearance: none;
      height: 6px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: linear-gradient(
        90deg,
        #2563eb 0%,
        #2563eb var(--range-progress),
        #334155 var(--range-progress),
        #334155 100%
      );
      cursor: pointer;
    }
    .slider-wrap input[type="range"]::-webkit-slider-runnable-track {
      height: 6px;
      border-radius: 999px;
      background: transparent;
    }
    .slider-wrap input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      margin-top: -6px;
      border: 2px solid #ffffff;
      border-radius: 50%;
      background: #0f172a;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    }
    .slider-wrap input[type="range"]::-moz-range-track {
      height: 6px;
      border-radius: 999px;
      background: #334155;
    }
    .slider-wrap input[type="range"]::-moz-range-progress {
      height: 6px;
      border-radius: 999px;
      background: #2563eb;
    }
    .slider-wrap input[type="range"]::-moz-range-thumb {
      width: 18px;
      height: 18px;
      border: 2px solid #ffffff;
      border-radius: 50%;
      background: #0f172a;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    }
    .slider-value {
      min-width: 56px;
      text-align: right;
      color: #f8fafc;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
    }
    .setting-btn {
      height: 40px;
      padding: 0 12px;
      background: #1d4ed8;
    }
    .settings-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      margin-top: 14px;
    }
    .products-card {
      margin-top: 18px;
    }
    .products-title {
      color: #f8fafc;
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 0;
      letter-spacing: 0.04em;
    }
    .products-head {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      margin-bottom: 14px;
    }
    .products-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .products-actions button {
      padding: 8px 12px;
      font-size: 13px;
    }
    .backup-status {
      margin-bottom: 12px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }
    .backup-hint {
      margin-bottom: 8px;
      color: #cbd5e1;
      font-size: 13px;
      line-height: 1.5;
    }
    .products-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .product-row {
      display: grid;
      grid-template-columns: 82px 1fr;
      gap: 12px;
      align-items: center;
      min-height: 48px;
      padding: 12px 14px;
      border: 1px solid rgba(51, 65, 85, 0.7);
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(11, 18, 32, 0.62));
    }
    .product-name {
      color: #f8fafc;
      font-size: 15px;
      font-weight: 600;
      white-space: nowrap;
    }
    .product-desc {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }
    .read-progress-wrap {
      margin-bottom: 14px;
      padding: 12px 14px;
      border: 1px solid rgba(71, 85, 105, 0.82);
      border-radius: 10px;
      background: rgba(11, 18, 32, 0.78);
    }
    .read-progress-wrap[hidden] {
      display: none !important;
    }
    .read-progress-label {
      font-size: 13px;
      color: #cbd5e1;
      margin-bottom: 8px;
    }
    .read-progress-track {
      height: 10px;
      border-radius: 999px;
      background: #0b1220;
      border: 1px solid var(--line);
      overflow: hidden;
    }
    .read-progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, #1d4ed8, #22c55e);
      transition: width 0.25s ease-out;
    }
    @media (max-width: 1500px) {
      .page-toolbar {
        position: static;
      }
      .sidebar-hero-top {
        grid-template-columns: 1fr;
      }
      .sidebar-hero-glow {
        width: 100%;
        height: 48px;
        flex-basis: auto;
      }
      .sidebar-button-grid {
        grid-template-columns: 1fr;
      }
      .sidebar-button-grid button:last-child {
        grid-column: auto;
      }
      .sidebar-status-row,
      .serial-monitor-toolbar,
      .sidebar-send-row {
        flex-direction: column;
        align-items: stretch;
      }
      .settings-card {
        width: auto;
        margin: 0;
      }
    }
    @media (max-width: 1279px) {
      .page-shell {
        padding: 20px;
      }
      .page-toolbar {
        grid-template-columns: 1fr;
      }
      .page-toolbar-left {
        border-right: 0;
        border-bottom: 1px solid rgba(51, 65, 85, 0.72);
      }
      .page-toolbar-main {
        padding-top: 18px;
      }
      .page-shell .el-drawer__wrapper {
        pointer-events: auto;
        top: 0;
        left: 0;
        height: 100vh;
      }
      .page-shell .ble-sidebar-drawer {
        width: auto !important;
        max-width: 100vw;
      }
      .drawer-mobile-actions {
        padding: 12px 12px 0;
      }
      .drawer-sidebar-host {
        padding: 16px;
      }
      .sidebar-toggle-bar {
        top: -2px;
      }
      .panel-head,
      .panel-head-side {
        flex-direction: column;
        align-items: flex-start;
      }
    }
    @media (max-width: 768px) {
      .page-shell {
        padding: 16px;
      }
      .page-toolbar {
        gap: 0;
        border-radius: 18px;
      }
      .page-toolbar-left,
      .page-toolbar-main {
        padding: 18px;
      }
      .page-toolbar-title {
        font-size: 24px;
      }
      .settings-card {
        padding: 18px;
        border-radius: 18px;
      }
      .settings-key-tabs {
        padding: 12px 14px;
      }
      .settings-key-tabs-head,
      .panel-head,
      .panel-head-side,
      .system-control-card-head,
      .linkage-card-head,
      .cascade-card-head {
        flex-direction: column;
        align-items: flex-start;
      }
      .param-title-row,
      .page-toolbar-badges,
      .timer-row-times,
      .flash-editor-inline-field,
      .serial-monitor-toolbar {
        flex-wrap: wrap;
      }
      .setting-row,
      .setting-row.with-unit,
      .setting-row.setting-row-system-control,
      .setting-row.setting-row-linkage,
      .setting-row.setting-row-cascade,
      .setting-row.setting-row-flash-editor,
      .setting-row.setting-row-timer {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
      }
      .setting-row.setting-row-system-control .setting-label,
      .setting-row.setting-row-linkage .setting-label,
      .setting-row.setting-row-cascade .setting-label,
      .setting-row.setting-row-flash-editor .setting-label,
      .setting-row.setting-row-timer .setting-label {
        padding-top: 0;
      }
      .setting-row.setting-row-system-control .setting-help,
      .setting-row.setting-row-linkage .setting-help,
      .setting-row.setting-row-cascade .setting-help,
      .setting-row.setting-row-flash-editor .setting-help {
        grid-column: auto;
      }
      .system-control-grid,
      .linkage-grid,
      .cascade-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .flash-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .flash-editor-item-third,
      .flash-editor-item-half {
        grid-column: span 1;
      }
      .linkage-card-wide .timer-row-times {
        flex-wrap: wrap;
      }
      .timer-picker-item,
      .timer-select-group {
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
      }
      .timer-toggle,
      .timer-el-picker,
      .flash-editor-inline-field .unit-box,
      .system-control-field-row .unit-box,
      .cascade-field-row .unit-box {
        width: 100%;
      }
      .timer-row-primary,
      .system-control-field-row,
      .linkage-timezone-row,
      .cascade-field-row,
      .flash-editor-inline-field {
        align-items: stretch;
      }
    }
    @media (max-width: 640px) {
      .drawer-sidebar-host {
        padding: 12px;
      }
      .drawer-mobile-actions {
        padding: 10px 10px 0;
      }
      .page-toolbar-left,
      .page-toolbar-main,
      .settings-card {
        padding: 14px;
      }
      .system-control-grid,
      .linkage-grid,
      .cascade-grid,
      .flash-editor-grid {
        grid-template-columns: 1fr;
      }
      .settings-key-tabbar .el-tabs__item,
      .flash-profile-tabbar .el-tabs__item {
        font-size: 12px;
      }
      .surface-chip {
        min-height: 26px;
        padding: 0 10px;
        font-size: 11px;
      }
      .param-help-popper {
        max-width: min(280px, calc(100vw - 32px));
      }
    }
    /* flash_master_mode：与 RX_GPS 一致 — bit0/1/2 为 ON（参与/流水错峰）；bit4/5/7 为 OFF 位（1=关）；bit3/6 预留 */
    .flash-master-toggles {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .fm-toggle-row {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 28px;
    }
    .fm-toggle-label {
      min-width: 6.5rem;
      font-size: 13px;
      color: #e2e8f0;
    }
    .fm-toggle-hint {
      flex: 1;
      min-width: 0;
      font-size: 12px;
      color: #94a3b8;
      line-height: 1.35;
    }
    .fm-switch {
      position: relative;
      display: inline-block;
      width: 42px;
      height: 24px;
      flex-shrink: 0;
    }
    .fm-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    .fm-switch-slider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background: #475569;
      border-radius: 24px;
      transition: background 0.2s;
    }
    .fm-switch-slider::before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background: #f8fafc;
      border-radius: 50%;
      transition: transform 0.2s;
    }
    .fm-switch input:checked + .fm-switch-slider {
      background: #2563eb;
    }
    .fm-switch input:checked + .fm-switch-slider::before {
      transform: translateX(18px);
    }
    .fm-switch input:focus-visible + .fm-switch-slider {
      outline: 2px solid #93c5fd;
      outline-offset: 2px;
    }
    .flash-master-val {
      font-family: ui-monospace, "Cascadia Code", monospace;
      font-size: 12px;
      color: #94a3b8;
      margin-top: 10px;
      line-height: 1.5;
    }
    @media (max-width: 560px) {
      .page-shell {
        padding: 14px;
      }
      .page-toolbar-left,
      .page-toolbar-main {
        padding: 16px;
      }
      .drawer-sidebar-host {
        padding: 12px;
      }
      .setting-row,
      .setting-row.with-unit,
      .setting-row.setting-row-system-control,
      .setting-row.setting-row-linkage,
      .setting-row.setting-row-cascade,
      .setting-row.setting-row-flash-editor,
      .setting-row.setting-row-timer {
        grid-template-columns: 1fr;
      }
      .flash-editor-grid {
        grid-template-columns: 1fr;
      }
      .system-control-grid {
        grid-template-columns: 1fr;
      }
      .cascade-grid {
        grid-template-columns: 1fr;
      }
      .linkage-grid {
        grid-template-columns: 1fr;
      }
      .settings-key-tabs-head {
        flex-direction: column;
      }
      .settings-key-tabbar .el-tabs__item,
      .flash-profile-tabbar .el-tabs__item {
        min-width: 0;
        padding: 0 6px;
      }
      .timer-picker-item {
        grid-template-columns: 1fr;
        min-width: 100%;
      }
      .timer-select-group,
      .timer-row-primary,
      .system-control-field-row,
      .linkage-timezone-row,
      .cascade-field-row,
      .flash-editor-inline-field {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
      }
      .linkage-card-wide .timer-row-times,
      .param-title-row {
        flex-wrap: wrap;
      }
      .setting-btn,
      .unit-box {
        width: 100%;
      }
      .setting-help {
        max-width: 100%;
      }
      h1 {
        font-size: 24px;
      }
      .page-toolbar-title {
        font-size: 22px;
      }
      .page-toolbar-desc,
      .page-toolbar-left-note {
        font-size: 12px;
      }
      .page-toolbar-badges {
        margin-top: 12px;
      }
      .settings-card {
        padding: 16px;
      }
      .products-head {
        justify-content: flex-start;
      }
    }

    :root {
      --bg: #eef4fb;
      --card: #ffffff;
      --line: #d7e2f0;
      --text: #1f2a37;
      --muted: #62748a;
      --ok: #16a34a;
      --warn: #d97706;
      --bad: #dc2626;
      --btn: #2563eb;
      --btn2: #64748b;
    }

    body {
      background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 26%),
        radial-gradient(circle at right top, rgba(14, 165, 233, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #eef5fb 46%, #e6eef8 100%);
      color: var(--text);
    }

    .page-toolbar {
      border-color: rgba(148, 163, 184, 0.28);
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.94));
      box-shadow: 0 18px 36px rgba(148, 163, 184, 0.18);
    }

    .page-toolbar-left {
      border-right-color: rgba(203, 213, 225, 0.9);
      background: linear-gradient(180deg, rgba(219, 234, 254, 0.88), rgba(239, 246, 255, 0.94));
    }

    .page-toolbar-kicker {
      color: #2563eb;
    }

    .page-toolbar-left-note,
    .page-toolbar-desc,
    .panel-subtitle,
    .settings-key-tabs-desc,
    .flash-editor-summary,
    .setting-help,
    .backup-status,
    .small,
    .tip,
    .backup-hint,
    .product-desc,
    .read-progress-label,
    .sidebar-status-label,
    .sidebar-block-caption,
    .page-toolbar-left-note,
    .sidebar-hero .tip,
    .flash-master-val,
    .fm-toggle-hint,
    .linkage-card-note,
    .cascade-card-note,
    .system-control-card-note {
      color: #64748b;
    }

    .page-toolbar-title,
    .section-title,
    .settings-key-tabs-title,
    .settings-note-title,
    .products-title,
    .sidebar-section-title,
    .sidebar-hero h1,
    .system-control-card-title,
    .linkage-card-title,
    .cascade-card-title,
    .flash-editor-item-label,
    .product-name,
    .slider-value,
    .setting-label,
    .fm-toggle-label {
      color: #0f172a;
    }

    .page-shell .el-drawer__mask {
      background: rgba(148, 163, 184, 0.18);
      backdrop-filter: blur(3px);
    }

    .page-shell .el-drawer {
      background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(236, 244, 252, 0.98));
      box-shadow: 24px 0 40px rgba(148, 163, 184, 0.24);
    }

    .drawer-sidebar-host {
      background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(236, 244, 252, 0.98));
      scrollbar-color: rgba(148, 163, 184, 0.88) transparent;
    }

    .drawer-mobile-actions {
      background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(248, 251, 255, 0));
    }

    .drawer-mobile-close-btn {
      background: #e2e8f0;
      border-color: #cbd5e1;
      color: #334155;
      box-shadow: none;
    }

    .drawer-mobile-close-btn:hover,
    .drawer-mobile-close-btn:focus {
      background: #cbd5e1;
      border-color: #94a3b8;
      color: #0f172a;
    }

    .drawer-sidebar-host::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.88);
    }

    .sidebar-toggle-bar {
      background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(248, 251, 255, 0));
    }

    .card,
    .settings-card,
    .settings-panel,
    .products-panel,
    .sidebar-log-card,
    .sidebar-monitor-card,
    .flash-editor-block,
    .system-control-block,
    .linkage-card,
    .cascade-card,
    .product-row,
    .read-progress-wrap,
    .timer-picker-item,
    .system-control-card,
    .flash-editor-item,
    .sidebar-status-row,
    .sidebar-footnote,
    .serial-monitor-toolbar,
    .settings-key-tabs,
    .sidebar-hero {
      border-color: rgba(203, 213, 225, 0.92);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
      box-shadow: 0 14px 30px rgba(148, 163, 184, 0.12);
    }

    .sidebar-hero::before {
      background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 30%);
    }

    .sidebar-kicker,
    .sidebar-hero .surface-chip,
    .surface-chip {
      border-color: rgba(147, 197, 253, 0.48);
      background: rgba(219, 234, 254, 0.72);
      color: #1d4ed8;
    }

    .surface-chip.muted {
      border-color: rgba(203, 213, 225, 0.96);
      background: rgba(241, 245, 249, 0.98);
      color: #475569;
    }

    .native-surface input:not([type="checkbox"]):not([type="range"]),
    .native-surface textarea,
    .native-surface select,
    .timer-el-picker .el-input__inner,
    .timer-time-input,
    .unit-box,
    .slider-wrap {
      background: #ffffff;
      border-color: #cfdceb;
      color: #0f172a;
      box-shadow: none;
    }

    .native-surface input:not([type="checkbox"]):not([type="range"]):focus,
    .native-surface textarea:focus,
    .native-surface select:focus,
    .timer-el-picker .el-input.is-focus .el-input__inner,
    .timer-el-picker .el-input__inner:focus,
    .timer-el-picker .el-input__inner:hover {
      background: #ffffff;
      border-color: #60a5fa;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    }

    .native-surface label,
    .timer-picker-label,
    .timer-select-label {
      color: #475569;
    }

    .timer-el-picker .el-input__prefix,
    .timer-el-picker .el-input__suffix,
    .timer-separator {
      color: #64748b;
    }

    .ble-ui button,
    .ble-ui button.el-button,
    .setting-btn {
      box-shadow: 0 10px 20px rgba(59, 130, 246, 0.16);
    }

    .ble-ui button:hover,
    .ble-ui button.el-button:hover {
      box-shadow: 0 12px 24px rgba(148, 163, 184, 0.22);
    }

    .ble-ui button.secondary,
    .ble-ui button.el-button--info {
      background: #e2e8f0;
      border-color: #cbd5e1;
      color: #334155;
    }

    .status {
      border-color: #d7e2f0;
      color: #475569;
      background: rgba(255, 255, 255, 0.96);
    }

    .dot {
      background: #94a3b8;
    }

    .log,
    .serial-monitor {
      background: linear-gradient(180deg, #f8fbff, #eef4fb);
      border-color: #d7e2f0;
      color: #334155;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    }

    .line-rx { color: #047857; }
    .line-tx { color: #1d4ed8; }
    .line-sys { color: #475569; }
    .line-err { color: #b91c1c; }

    .settings-key-tabbar .el-tabs__nav-wrap::after,
    .flash-profile-tabbar .el-tabs__nav-wrap::after,
    .page-panel-head,
    .setting-row,
    .product-row,
    .read-progress-wrap,
    .serial-monitor-toolbar,
    .sidebar-status-row {
      border-color: rgba(203, 213, 225, 0.92);
    }

    .settings-key-tabbar .el-tabs__item,
    .flash-profile-tabbar .el-tabs__item {
      color: #64748b;
    }

    .settings-key-tabbar .el-tabs__item:hover,
    .settings-key-tabbar .el-tabs__item.is-active,
    .flash-profile-tabbar .el-tabs__item:hover,
    .flash-profile-tabbar .el-tabs__item.is-active {
      color: #1d4ed8;
    }

    .param-help-trigger {
      border-color: rgba(96, 165, 250, 0.32);
      background: rgba(239, 246, 255, 0.96);
      color: #2563eb;
    }

    .param-help-trigger:hover {
      border-color: rgba(59, 130, 246, 0.42);
      background: rgba(219, 234, 254, 0.96);
      color: #1d4ed8;
    }

    .param-help-popper,
    .el-tooltip__popper.is-dark.param-help-popper {
      border: 1px solid #d7e2f0;
      background: #ffffff !important;
      color: #334155 !important;
      box-shadow: 0 16px 32px rgba(148, 163, 184, 0.2);
    }

    .el-tooltip__popper.is-dark.param-help-popper[x-placement^="top"] .popper__arrow,
    .el-tooltip__popper.is-dark.param-help-popper[x-placement^="top"] .popper__arrow::after {
      border-top-color: #ffffff;
    }

    .mode-switch,
    .timer-toggle {
      border-color: #d7e2f0;
      background: #f8fbff;
    }

    .mode-option,
    .timer-toggle .timer-option {
      color: #64748b;
    }

    .mode-switch input[type="radio"]:checked + .mode-option,
    .timer-toggle input[type="radio"]:checked + .timer-option {
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      color: #ffffff;
    }

    .slider-wrap input[type="range"] {
      background: linear-gradient(
        90deg,
        #2563eb 0%,
        #2563eb var(--range-progress),
        #d7e2f0 var(--range-progress),
        #d7e2f0 100%
      );
    }

    .slider-wrap input[type="range"]::-webkit-slider-thumb,
    .slider-wrap input[type="range"]::-moz-range-thumb {
      border-color: #bfdbfe;
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    }

    .slider-wrap input[type="range"]::-moz-range-track {
      background: #d7e2f0;
    }

    .read-progress-track {
      background: #e2e8f0;
      border-color: #d7e2f0;
    }

    .timer-picker-popper.el-time-panel,
    .timer-picker-popper.el-picker-panel {
      width: 200px !important;
      min-width: 200px !important;
      border-color: #d7e2f0;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
      box-shadow: 0 20px 40px rgba(148, 163, 184, 0.22);
    }

    .timer-picker-popper .popper__arrow,
    .timer-picker-popper .popper__arrow::after {
      border-bottom-color: #ffffff !important;
    }

    .timer-picker-popper .el-time-panel__content,
    .timer-picker-popper .el-time-spinner,
    .timer-picker-popper .el-time-spinner__list {
      font-size: 15px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
      color: #334155;
    }

    .timer-picker-popper .el-time-panel__content::before,
    .timer-picker-popper .el-time-panel__content::after,
    .timer-picker-popper .el-time-spinner__wrapper,
    .timer-picker-popper .el-time-panel__footer {
      border-color: #d7e2f0;
    }

    .timer-picker-popper .el-time-spinner__item {
      color: #64748b;
      height: 34px;
      line-height: 34px;
      font-size: 15px;
    }

    .timer-picker-popper .el-time-spinner__item:hover:not(.disabled):not(.active) {
      background: rgba(219, 234, 254, 0.96);
      color: #1d4ed8;
    }

    .timer-picker-popper .el-time-spinner__item.active:not(.disabled) {
      color: #0f172a;
    }

    .timer-picker-popper .el-time-panel__footer {
      padding: 8px 12px;
      background: #f8fbff;
      display: none;
    }

    .timer-picker-popper .el-time-panel__btn {
      color: #2563eb;
      font-size: 14px;
    }
