/* ============================================================
   SerialWeb · overlay 部件样式（由 style.css 拆分）
   ============================================================ */
.mobile-config-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 20;
      background: var(--overlay-backdrop);
      backdrop-filter: var(--overlay-blur);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
    }
.toast-layer {
      position: fixed;
      right: 8px;
      bottom: 8px;
      display: grid;
      gap: 8px;
      /* 需高于版本详情页等弹窗的模糊层（.version-modal-backdrop = 120）与下拉菜单（180） */
      z-index: 200;
      pointer-events: none;
    }
.toast-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
    }
.toast-title {
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
.toast-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-start;
    }
.toast-action-btn {
      min-height: 30px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.08);
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
    }
.toast-action-btn.primary {
      border-color: transparent;
      background: var(--accent);
      color: #eef2ff;
    }
.toast.success .toast-title {
      color: var(--accent-strong);
    }
.toast.warn .toast-title {
      color: var(--warning);
    }
.toast.error .toast-title {
      color: var(--danger);
    }
.toast-close {
      width: 20px;
      height: 20px;
      min-width: 20px;
      border-radius: 999px;
      display: inline-grid;
      place-items: center;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.08);
      color: var(--text-soft);
      font-size: 12px;
      line-height: 1;
      padding: 0;
    }
.version-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 22px;
      background: var(--overlay-backdrop);
      backdrop-filter: var(--overlay-blur);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease;
    }
.version-modal-backdrop.open {
      opacity: 1;
      pointer-events: auto;
    }
.version-modal {
      width: min(520px, 100%);
      max-height: min(680px, calc(100vh - 44px));
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      overflow: hidden;
      border-radius: 18px;
      border: 1px solid var(--border-strong);
      background: var(--bg-panel-strong);
      box-shadow: var(--shadow);
      color: var(--text);
    }
.version-modal-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 18px 20px 12px;
      border-bottom: 1px solid var(--border);
    }
.version-modal-title {
      font-size: 18px;
      font-weight: 850;
      line-height: 1.2;
    }
.version-modal-subtitle {
      margin-top: 5px;
      color: var(--text-soft);
      font-size: 13px;
    }
.version-modal-close {
      width: 32px;
      height: 32px;
      min-width: 32px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--text);
      cursor: pointer;
    }
.version-modal-close-icon {
      width: 32px;
      height: 32px;
      display: block;
    }
.version-modal-close-ring {
      fill: rgba(42, 61, 82, 0.08);
      stroke: var(--border);
      stroke-width: 1;
    }
.version-modal-close-mark {
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
    }
.version-modal-close:hover .version-modal-close-ring, .version-modal-close:focus-visible .version-modal-close-ring {
      fill: rgba(255, 255, 255, 0.96);
      stroke: var(--border-strong);
    }
