/* 运维中心 2026-11-27
   四个后台页面共用的独立工作台样式。所有类名以 opsx- 前缀，避免和 Element / admin-beautify 冲突。 */

#opsx-root,
#opsx-root * {
  box-sizing: border-box;
}

/* 工作台是独立 fixed 面板，底层 Vue 页面保持挂载但不可见，避免两套滚动条和误触 */
body.opsx-active .admin-layout main,
body.opsx-active .admin-layout .el-main {
  overflow: hidden !important;
}

body.opsx-active .admin-layout main > *,
body.opsx-active .admin-layout .el-main > * {
  visibility: hidden !important;
}

#opsx-root {
  --opsx-ink: #14212b;
  --opsx-ink-2: #43525f;
  --opsx-muted: #7a8894;
  --opsx-line: #e3e9ef;
  --opsx-surface: #ffffff;
  --opsx-surface-2: #f7fafc;
  --opsx-bg: #eef3f8;
  --opsx-navy: #083b52;
  --opsx-teal: #0b6577;
  --opsx-primary: #0b5c7a;
  --opsx-primary-2: #0e7490;
  --opsx-gold: #c79a4b;
  --opsx-green: #138a63;
  --opsx-red: #c0392b;
  --opsx-amber: #b7791f;
  --opsx-shadow: 0 10px 30px rgba(12, 44, 64, 0.08);
  position: fixed;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--opsx-bg);
  color: var(--opsx-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html.dark #opsx-root {
  --opsx-ink: #edf3f8;
  --opsx-ink-2: #c5d3df;
  --opsx-muted: #8fa2b3;
  --opsx-line: #2a3846;
  --opsx-surface: #121c27;
  --opsx-surface-2: #172430;
  --opsx-bg: #0b141d;
  --opsx-navy: #061c2b;
  --opsx-primary: #2b8cb0;
  --opsx-primary-2: #39a0c3;
  --opsx-gold: #d9b56a;
  --opsx-green: #3ecf9a;
  --opsx-red: #ff7568;
  --opsx-amber: #e5b45a;
  --opsx-shadow: 0 12px 36px rgba(0, 0, 0, 0.36);
}

/* ── 顶部主视觉 ── */
.opsx-hero {
  position: relative;
  flex: 0 0 auto;
  min-height: 138px;
  padding: 24px 30px 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 220px at 88% -20%, rgba(199, 154, 75, 0.28), transparent 70%),
    linear-gradient(120deg, #062b3d 0%, #08465c 52%, #0b6577 100%);
}

html.dark .opsx-hero {
  background:
    radial-gradient(900px 220px at 88% -20%, rgba(199, 154, 75, 0.22), transparent 70%),
    linear-gradient(120deg, #051923 0%, #072738 52%, #0a3f4d 100%);
}

.opsx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent);
}

.opsx-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -110px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.04), 0 0 0 70px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.opsx-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.opsx-eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.opsx-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.opsx-subtitle {
  margin: 4px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.opsx-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.opsx-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.opsx-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ee0b4;
  box-shadow: 0 0 0 4px rgba(94, 224, 180, 0.16);
}

.opsx-live.is-warn .opsx-live-dot {
  background: #ffcd70;
  box-shadow: 0 0 0 4px rgba(255, 205, 112, 0.16);
}

.opsx-live.is-down .opsx-live-dot {
  background: #ff857a;
  box-shadow: 0 0 0 4px rgba(255, 133, 122, 0.16);
}

.opsx-hero-time {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.opsx-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 22px;
}

.opsx-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.opsx-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.opsx-tab.is-active {
  background: var(--opsx-bg);
  color: var(--opsx-ink);
  font-weight: 600;
}

.opsx-tab svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.opsx-tab-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.opsx-tab.is-active .opsx-tab-badge {
  background: var(--opsx-primary);
  color: #fff;
}

/* ── 内容区 ── */
.opsx-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 20px 30px 34px;
  scrollbar-color: #a9b8c5 transparent;
}

.opsx-content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.opsx-content::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background: #a9b8c5;
  background-clip: padding-box;
}

html.dark .opsx-content::-webkit-scrollbar-thumb {
  background: #405364;
  background-clip: padding-box;
}

.opsx-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.opsx-kpi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 100px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--opsx-line);
  border-radius: 14px;
  background: var(--opsx-surface);
  box-shadow: var(--opsx-shadow);
}

.opsx-kpi::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 4px;
  height: 44px;
  border-radius: 4px 0 0 0;
  background: var(--kpi-color, var(--opsx-primary));
}

.opsx-kpi-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: color-mix(in srgb, var(--kpi-color, var(--opsx-primary)) 12%, transparent);
  color: var(--kpi-color, var(--opsx-primary));
}

.opsx-kpi-icon svg {
  width: 22px;
  height: 22px;
}

.opsx-kpi-label {
  margin: 0 0 2px;
  color: var(--opsx-muted);
  font-size: 12px;
}

.opsx-kpi-value {
  margin: 0;
  color: var(--opsx-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opsx-kpi-value small {
  display: block;
  margin: 2px 0 0;
  color: var(--opsx-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.opsx-kpi-meta {
  margin-top: 3px;
  color: var(--opsx-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opsx-grid {
  display: grid;
  gap: 16px;
}

.opsx-grid.cols-2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.opsx-grid.cols-2-even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opsx-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.opsx-card {
  overflow: hidden;
  border: 1px solid var(--opsx-line);
  border-radius: 14px;
  background: var(--opsx-surface);
  box-shadow: var(--opsx-shadow);
}

.opsx-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--opsx-line);
  background: linear-gradient(180deg, var(--opsx-surface-2), var(--opsx-surface));
}

.opsx-card-head h2,
.opsx-card-head h3 {
  margin: 0;
  color: var(--opsx-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.opsx-card-head .opsx-sub {
  color: var(--opsx-muted);
  font-size: 12px;
  font-weight: 400;
}

.opsx-card-head .opsx-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.opsx-card-body {
  padding: 16px 18px;
}

.opsx-card-body.tight {
  padding: 10px 0;
}

.opsx-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--opsx-ink-2);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opsx-section-title::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--opsx-gold);
}

.opsx-rows {
  display: flex;
  flex-direction: column;
}

.opsx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  border-bottom: 1px dashed var(--opsx-line);
  font-size: 13px;
}

.opsx-row:last-child {
  border-bottom: 0;
}

.opsx-row-label {
  color: var(--opsx-muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.opsx-row-val {
  color: var(--opsx-ink);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.opsx-row-val.mono {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

.opsx-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--opsx-surface-2);
  color: var(--opsx-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.opsx-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.opsx-badge.ok {
  background: color-mix(in srgb, var(--opsx-green) 12%, transparent);
  color: var(--opsx-green);
}

.opsx-badge.warn {
  background: color-mix(in srgb, var(--opsx-amber) 13%, transparent);
  color: var(--opsx-amber);
}

.opsx-badge.bad {
  background: color-mix(in srgb, var(--opsx-red) 12%, transparent);
  color: var(--opsx-red);
}

.opsx-badge.info {
  background: color-mix(in srgb, var(--opsx-primary) 11%, transparent);
  color: var(--opsx-primary);
}

.opsx-badge.plain::before {
  display: none;
}

.opsx-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--opsx-muted) 18%, transparent);
}

.opsx-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--opsx-primary), var(--opsx-primary-2));
  transition: width 0.4s ease;
}

.opsx-bar.is-warn > i {
  background: linear-gradient(90deg, #d08a2d, #e3ad4d);
}

.opsx-bar.is-bad > i {
  background: linear-gradient(90deg, #b23a2d, #e05b4b);
}

/* ── 按钮 ── */
.opsx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--opsx-line);
  border-radius: 8px;
  background: var(--opsx-surface);
  color: var(--opsx-ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s, transform 0.12s;
}

.opsx-btn:hover {
  border-color: color-mix(in srgb, var(--opsx-primary) 40%, var(--opsx-line));
  color: var(--opsx-primary);
}

.opsx-btn:active {
  transform: translateY(1px);
}

.opsx-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.opsx-btn svg {
  width: 15px;
  height: 15px;
}

.opsx-btn.primary {
  border-color: var(--opsx-primary);
  background: linear-gradient(135deg, var(--opsx-primary), var(--opsx-primary-2));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--opsx-primary) 25%, transparent);
}

.opsx-btn.primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.opsx-btn.gold {
  border-color: var(--opsx-gold);
  background: linear-gradient(135deg, #c39645, #d9b36b);
  color: #1c2430;
}

.opsx-btn.danger {
  border-color: color-mix(in srgb, var(--opsx-red) 55%, var(--opsx-line));
  color: var(--opsx-red);
}

.opsx-btn.danger:hover {
  border-color: var(--opsx-red);
  background: color-mix(in srgb, var(--opsx-red) 8%, var(--opsx-surface));
}

.opsx-btn.danger.solid {
  border-color: var(--opsx-red);
  background: var(--opsx-red);
  color: #fff;
}

.opsx-btn.sm {
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
}

.opsx-btn.ghost {
  border-color: transparent;
  background: transparent;
}

.opsx-btn.link {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--opsx-primary);
  font-size: 12px;
}

.opsx-btn.link:hover {
  text-decoration: underline;
}

.opsx-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.opsx-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.opsx-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--opsx-line);
  border-radius: 11px;
  background: var(--opsx-surface-2);
  color: var(--opsx-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.12s;
}

.opsx-action:hover {
  border-color: color-mix(in srgb, var(--opsx-primary) 42%, var(--opsx-line));
  background: color-mix(in srgb, var(--opsx-primary) 5%, var(--opsx-surface));
  transform: translateY(-1px);
}

.opsx-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.opsx-action-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: color-mix(in srgb, var(--opsx-primary) 11%, transparent);
  color: var(--opsx-primary);
}

.opsx-action-icon svg {
  width: 18px;
  height: 18px;
}

.opsx-action.is-danger .opsx-action-icon {
  background: color-mix(in srgb, var(--opsx-red) 11%, transparent);
  color: var(--opsx-red);
}

.opsx-action b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.opsx-action span {
  display: block;
  margin-top: 1px;
  color: var(--opsx-muted);
  font-size: 11px;
}

/* ── 输入 ── */
.opsx-input,
.opsx-select,
.opsx-textarea {
  width: 100%;
  border: 1px solid var(--opsx-line);
  border-radius: 8px;
  outline: none;
  background: var(--opsx-surface);
  color: var(--opsx-ink);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.opsx-input,
.opsx-select {
  height: 34px;
  padding: 0 10px;
}

.opsx-textarea {
  min-height: 78px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.6;
}

.opsx-input::placeholder,
.opsx-textarea::placeholder {
  color: var(--opsx-muted);
}

.opsx-input:focus,
.opsx-select:focus,
.opsx-textarea:focus {
  border-color: var(--opsx-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--opsx-primary) 12%, transparent);
}

.opsx-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.opsx-field > label {
  color: var(--opsx-muted);
  font-size: 11px;
  font-weight: 600;
}

.opsx-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.opsx-search {
  position: relative;
  width: 220px;
}

.opsx-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  color: var(--opsx-muted);
  transform: translateY(-50%);
}

.opsx-search .opsx-input {
  padding-left: 30px;
}

/* ── 表格 ── */
.opsx-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--opsx-line);
  border-radius: 10px;
  background: var(--opsx-surface);
}

.opsx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.opsx-table.is-fixed {
  table-layout: fixed;
}

.opsx-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--opsx-line);
  background: var(--opsx-surface-2);
  color: var(--opsx-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-align: left;
  white-space: nowrap;
}

.opsx-table td {
  height: 46px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--opsx-line);
  color: var(--opsx-ink-2);
  vertical-align: middle;
}

.opsx-table tbody tr:last-child td {
  border-bottom: 0;
}

.opsx-table tbody tr:hover td {
  background: color-mix(in srgb, var(--opsx-primary) 4%, transparent);
}

.opsx-table .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.opsx-table .title-cell {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--opsx-ink);
  font-weight: 500;
}

.opsx-table .url-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--opsx-muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.opsx-table .ops-cell {
  white-space: nowrap;
}

.opsx-table .ops-cell .opsx-btn {
  margin-right: 5px;
}

.opsx-table .ops-cell .opsx-btn:last-child {
  margin-right: 0;
}

.opsx-table input[type="checkbox"],
.opsx-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--opsx-primary);
  cursor: pointer;
}

.opsx-empty {
  padding: 44px 20px;
  color: var(--opsx-muted);
  font-size: 13px;
  text-align: center;
}

.opsx-empty svg {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  opacity: 0.45;
}

.opsx-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--opsx-muted);
  font-size: 12px;
}

.opsx-pager-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.opsx-pager-btns .opsx-btn {
  min-width: 30px;
}

.opsx-page-num {
  min-width: 70px;
  color: var(--opsx-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── 日志 ── */
.opsx-loglist {
  display: flex;
  flex-direction: column;
}

.opsx-logfile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--opsx-line);
}

.opsx-logfile:last-child {
  border-bottom: 0;
}

.opsx-logfile-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: color-mix(in srgb, var(--opsx-primary) 10%, transparent);
  color: var(--opsx-primary);
}

.opsx-logfile-icon svg {
  width: 16px;
  height: 16px;
}

.opsx-logfile-main {
  min-width: 0;
  flex: 1 1 auto;
}

.opsx-logfile-name {
  overflow: hidden;
  color: var(--opsx-ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opsx-logfile-meta {
  margin-top: 1px;
  color: var(--opsx-muted);
  font-size: 11px;
}

.opsx-logfile-actions {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.opsx-logview {
  max-height: 58vh;
  overflow: auto;
  padding: 10px 0;
  border: 1px solid #263646;
  border-radius: 10px;
  background: #0d1721;
  color: #d6e2ec;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.65;
}

.opsx-logline {
  display: flex;
  gap: 10px;
  padding: 0 14px;
}

.opsx-logline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.opsx-lineno {
  min-width: 44px;
  flex: 0 0 auto;
  color: #4b6072;
  text-align: right;
  user-select: none;
}

.opsx-linetext {
  white-space: pre-wrap;
  word-break: break-all;
}

.opsx-linetext.is-error {
  color: #ff9b8d;
}

.opsx-linetext.is-warn {
  color: #e9c57c;
}

.opsx-linetext.is-ok {
  color: #83d7ad;
}

.opsx-linetext.is-action {
  color: #80bce8;
}

/* ── SEO ── */
.opsx-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--opsx-amber) 35%, var(--opsx-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--opsx-amber) 9%, var(--opsx-surface));
  color: var(--opsx-ink-2);
  font-size: 12.5px;
}

.opsx-notice.is-info {
  border-color: color-mix(in srgb, var(--opsx-primary) 32%, var(--opsx-line));
  background: color-mix(in srgb, var(--opsx-primary) 7%, var(--opsx-surface));
}

.opsx-notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--opsx-amber);
}

.opsx-notice.is-info svg {
  color: var(--opsx-primary);
}

.opsx-notice a {
  color: var(--opsx-primary);
  text-decoration: none;
}

.opsx-notice a:hover {
  text-decoration: underline;
}

.opsx-engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.opsx-engine {
  padding: 12px;
  border: 1px solid var(--opsx-line);
  border-radius: 11px;
  background: var(--opsx-surface-2);
}

.opsx-engine-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.opsx-engine-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--opsx-surface);
  color: var(--opsx-primary);
  font-size: 14px;
  font-weight: 700;
}

.opsx-engine-head b {
  font-size: 13px;
}

.opsx-engine-head .opsx-badge {
  margin-left: auto;
}

.opsx-engine .opsx-field + .opsx-field {
  margin-top: 7px;
}

.opsx-engine .opsx-input {
  height: 31px;
  font-size: 12px;
}

.opsx-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--opsx-line);
}

.opsx-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #c8d3dc;
  cursor: pointer;
  transition: background 0.18s;
}

.opsx-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s;
}

.opsx-toggle.is-on {
  background: var(--opsx-primary);
}

.opsx-toggle.is-on::after {
  transform: translateX(20px);
}

.opsx-pushbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--opsx-line);
  background: var(--opsx-surface-2);
}

.opsx-pushbar .opsx-spacer {
  flex: 1 1 auto;
}

.opsx-selection {
  color: var(--opsx-muted);
  font-size: 12px;
}

.opsx-selection b {
  color: var(--opsx-primary);
  font-size: 14px;
}

.opsx-engine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opsx-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--opsx-line);
  border-radius: 999px;
  background: var(--opsx-surface);
  color: var(--opsx-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.opsx-chip.is-on {
  border-color: color-mix(in srgb, var(--opsx-primary) 55%, var(--opsx-line));
  background: color-mix(in srgb, var(--opsx-primary) 10%, var(--opsx-surface));
  color: var(--opsx-primary);
  font-weight: 600;
}

.opsx-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.opsx-push-result {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.opsx-result-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--opsx-surface-2);
  font-size: 12px;
}

.opsx-result-line .opsx-badge {
  margin-left: auto;
}

.opsx-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 12px;
}

.opsx-inline-form .opsx-field {
  flex: 1 1 auto;
}

.opsx-collapse {
  border: 1px solid var(--opsx-line);
  border-radius: 12px;
  background: var(--opsx-surface);
  overflow: hidden;
}

.opsx-collapse-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--opsx-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.opsx-collapse-head svg {
  width: 15px;
  height: 15px;
  color: var(--opsx-muted);
  transition: transform 0.18s;
}

.opsx-collapse.is-open .opsx-collapse-head svg {
  transform: rotate(180deg);
}

.opsx-collapse-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px dashed var(--opsx-line);
}

.opsx-collapse.is-open .opsx-collapse-body {
  display: block;
}

.opsx-check-results {
  margin-top: 12px;
}

/* ── 进度 ── */
.opsx-progress {
  margin: 12px 0 0;
}

.opsx-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--opsx-muted);
  font-size: 12px;
}

.opsx-progress-head b {
  color: var(--opsx-ink);
  font-variant-numeric: tabular-nums;
}

.opsx-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: opsx-spin 0.8s linear infinite;
}

@keyframes opsx-spin {
  to { transform: rotate(360deg); }
}

.opsx-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 160px;
  color: var(--opsx-muted);
  font-size: 13px;
}

/* ── 弹层 ── */
.opsx-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 16, 24, 0.48);
  backdrop-filter: blur(2px);
}

.opsx-modal {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid var(--opsx-line);
  border-radius: 16px;
  background: var(--opsx-surface);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
  color: var(--opsx-ink);
}

.opsx-modal.wide {
  width: min(1020px, 100%);
}

.opsx-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--opsx-line);
}

.opsx-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.opsx-modal-head .opsx-badge {
  margin-left: auto;
}

.opsx-modal-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--opsx-muted);
  cursor: pointer;
}

.opsx-modal-close:hover {
  background: var(--opsx-surface-2);
  color: var(--opsx-ink);
}

.opsx-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
  font-size: 13px;
}

.opsx-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 20px;
  border-top: 1px solid var(--opsx-line);
  background: var(--opsx-surface-2);
}

.opsx-confirm-text {
  margin: 0 0 8px;
  color: var(--opsx-ink-2);
  line-height: 1.7;
}

.opsx-confirm-warn {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--opsx-red);
  border-radius: 4px;
  background: color-mix(in srgb, var(--opsx-red) 8%, var(--opsx-surface));
  color: var(--opsx-ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.opsx-confirm-input {
  margin-top: 6px;
}

.opsx-toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid var(--opsx-line);
  border-radius: 10px;
  background: var(--opsx-surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  color: var(--opsx-ink);
  font-size: 13px;
  animation: opsx-toast-in 0.2s ease;
}

.opsx-toast.ok {
  border-left: 3px solid var(--opsx-green);
}

.opsx-toast.err {
  border-left: 3px solid var(--opsx-red);
}

.opsx-toast.warn {
  border-left: 3px solid var(--opsx-amber);
}

@keyframes opsx-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 小布局 ── */
.opsx-flex {
  display: flex;
  align-items: center;
  gap: 9px;
}

.opsx-flex.wrap {
  flex-wrap: wrap;
}

.opsx-mt {
  margin-top: 14px;
}

.opsx-muted {
  color: var(--opsx-muted);
}

.opsx-hint {
  color: var(--opsx-muted);
  font-size: 11px;
  line-height: 1.5;
}

.opsx-value-big {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.opsx-value-big small {
  margin-left: 3px;
  color: var(--opsx-muted);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 1280px) {
  .opsx-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .opsx-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .opsx-hero {
    padding: 18px 18px 0;
  }
  .opsx-hero h1 {
    font-size: 24px;
  }
  .opsx-hero-main {
    flex-direction: column;
    gap: 10px;
  }
  .opsx-hero-side {
    flex-direction: row;
    align-items: center;
  }
  .opsx-tabs {
    overflow-x: auto;
  }
  .opsx-tab {
    padding: 0 13px;
    white-space: nowrap;
  }
  .opsx-content {
    padding: 14px 14px 26px;
  }
  .opsx-grid.cols-2-even,
  .opsx-engine-grid,
  .opsx-form-grid {
    grid-template-columns: 1fr;
  }
  .opsx-action-grid {
    grid-template-columns: 1fr;
  }
  .opsx-search {
    width: 100%;
  }
}
