/* ─── JQZK 授权运营台 · 专业后台风格 ─── */

:root {
  --bg: #f5f6f7;
  --bg-soft: #fafbfc;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --panel-muted: #f8f9fa;
  --line: rgba(0, 0, 0, 0.07);
  --line-strong: rgba(0, 0, 0, 0.12);
  --text: #1a1e24;
  --muted: #6b7280;
  --accent: #0f6b68;
  --accent-strong: #094745;
  --accent-soft: rgba(15, 107, 104, 0.08);
  --highlight: #d58f28;
  --highlight-soft: rgba(213, 143, 40, 0.1);
  --success: #21885b;
  --warning: #b87914;
  --danger: #bc4e3b;
  --shadow-xl: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.ops-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; }

/* ─── 环境装饰（保留类名但隐藏） ─── */
.ops-ambient { display: none; }

/* ─── 页面容器 ─── */
.ops-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 14px 32px;
}

/* ─── 顶栏 ─── */
.ops-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 0;
  padding: 12px 16px 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: none;
}

.ops-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ops-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ops-brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
}

.ops-brand-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ops-brand-title {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ops-userbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ops-userchip {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--panel-muted);
  font-size: 13px;
}

.ops-userchip-label {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  color: var(--muted);
}

/* ─── 导航 ─── */
.ops-nav-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.ops-nav-scroll::-webkit-scrollbar { display: none; }

.ops-nav-pill {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: 150ms ease;
}
.ops-nav-pill:hover { color: var(--text); }
.ops-nav-pill.is-active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
  background: transparent;
  box-shadow: none;
}

/* ─── 主内容 ─── */
.ops-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--bg);
}

/* ─── 页面标题行（替代 Hero） ─── */
.ops-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.ops-hero-copy {
  max-width: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-page-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
}

.ops-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ops-page-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  flex-basis: 100%;
}
.ops-page-subtitle:empty { display: none; }

.ops-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─── 消息 ─── */
.ops-messages {
  display: grid;
  gap: 8px;
}
.ops-message {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
}
.ops-message.is-success {
  border-color: rgba(33, 136, 91, 0.2);
  background: rgba(33, 136, 91, 0.06);
  color: var(--success);
}
.ops-message.is-warning {
  border-color: rgba(184, 121, 20, 0.2);
  background: rgba(184, 121, 20, 0.06);
  color: var(--warning);
}
.ops-message.is-error {
  border-color: rgba(188, 78, 59, 0.2);
  background: rgba(188, 78, 59, 0.06);
  color: var(--danger);
}

/* ─── 底部版本 ─── */
.ops-deploy-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: flex-end;
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: 11px;
}
.ops-deploy-footer strong { color: var(--text); }

/* ─── 网格系统 ─── */
.ops-card-grid,
.ops-content-grid,
.ops-detail-grid,
.ops-detail-section,
.ops-series-grid {
  display: grid;
  gap: 12px;
}
.ops-stat-grid,
.ops-dashboard-grid,
.ops-detail-layout,
.ops-stack,
.ops-sidebar-stack,
.ops-info-list {
  display: grid;
  gap: 12px;
}

.ops-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.ops-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.ops-dashboard-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
}
.ops-detail-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
.ops-sidebar-stack { gap: 12px; }
.ops-info-list { gap: 8px; }
.ops-content-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  align-items: start;
}
.ops-detail-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

/* ─── 面板 / 卡片 ─── */
.ops-card,
.ops-panel,
.ops-form-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.ops-stat-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
}

.ops-card {
  padding: 16px;
  overflow: hidden;
  position: relative;
}
.ops-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: rgba(15, 107, 104, 0.04);
}

.ops-card-label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
}

.ops-stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ops-card-value {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.tone-warning .ops-card-value { color: var(--warning); }
.tone-danger .ops-card-value { color: var(--danger); }
.tone-success .ops-card-value { color: var(--success); }

.ops-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}
.ops-stat-value.is-secondary {
  font-size: 16px;
  font-weight: 600;
}
.ops-stat-value.is-primary { color: var(--accent); }
.ops-stat-value.is-warning { color: var(--warning); }
.ops-stat-value.is-danger { color: var(--danger); }

/* ─── 面板标题 ─── */
.ops-panel,
.ops-form-panel {
  padding: 16px;
}

.ops-panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ops-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.ops-panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.ops-panel-subtitle:empty { display: none; }

/* ─── 表格 ─── */
.ops-table-wrap {
  max-height: min(62vh, 620px);
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  scrollbar-gutter: stable;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.ops-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.ops-table th,
.ops-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.ops-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.ops-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.58);
}
.ops-table tbody tr:hover {
  background: rgba(15, 107, 104, 0.03);
}

.ops-table th,
.ops-table td {
  overflow-wrap: anywhere;
}

.ops-finance-table {
  table-layout: fixed;
}

.ops-finance-table th,
.ops-finance-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ops-finance-table th:first-child,
.ops-finance-table td:first-child {
  white-space: nowrap;
}

.ops-finance-table td:nth-child(3),
.ops-finance-table td:nth-child(4),
.ops-finance-table td:nth-child(5),
.ops-finance-table td:nth-child(6),
.ops-finance-table td:nth-child(7),
.ops-finance-table td:nth-child(8),
.ops-finance-table td:nth-child(9) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ops-finance-table th:nth-child(3),
.ops-finance-table th:nth-child(4),
.ops-finance-table th:nth-child(5),
.ops-finance-table th:nth-child(6),
.ops-finance-table th:nth-child(7),
.ops-finance-table th:nth-child(8),
.ops-finance-table th:nth-child(9) {
  text-align: right;
}

.ops-position-table {
  min-width: 1060px;
}

.ops-watchlist-table {
  min-width: 1220px;
}

.ops-note-table {
  min-width: 900px;
}

.ops-position-table th:nth-child(1),
.ops-position-table td:nth-child(1),
.ops-watchlist-table th:nth-child(1),
.ops-watchlist-table td:nth-child(1),
.ops-note-table th:nth-child(1),
.ops-note-table td:nth-child(1) {
  width: 108px;
}

.ops-position-table th:nth-child(2),
.ops-position-table td:nth-child(2),
.ops-watchlist-table th:nth-child(2),
.ops-watchlist-table td:nth-child(2),
.ops-note-table th:nth-child(2),
.ops-note-table td:nth-child(2) {
  width: 170px;
  white-space: normal;
}

.ops-position-table th:last-child,
.ops-position-table td:last-child,
.ops-watchlist-table th:last-child,
.ops-watchlist-table td:last-child,
.ops-note-table th:last-child,
.ops-note-table td:last-child {
  width: 360px;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
}

.ops-watchlist-table th:nth-child(3),
.ops-watchlist-table td:nth-child(3),
.ops-watchlist-table th:nth-child(4),
.ops-watchlist-table td:nth-child(4),
.ops-watchlist-table th:nth-child(5),
.ops-watchlist-table td:nth-child(5),
.ops-watchlist-table th:nth-child(6),
.ops-watchlist-table td:nth-child(6) {
  width: 108px;
  white-space: nowrap;
}

.ops-watchlist-table th:nth-child(7),
.ops-watchlist-table td:nth-child(7) {
  width: 150px;
  text-align: left;
  white-space: normal;
}

.ops-note-table th:nth-child(3),
.ops-note-table td:nth-child(3) {
  text-align: left;
}

.ops-account-table-wide {
  min-width: 1120px;
}

.ops-account-table-wide th:first-child,
.ops-account-table-wide td:first-child,
.ops-account-table-wide th:nth-child(3),
.ops-account-table-wide td:nth-child(3),
.ops-account-table-wide th:nth-child(4),
.ops-account-table-wide td:nth-child(4),
.ops-account-table-wide th:nth-child(5),
.ops-account-table-wide td:nth-child(5),
.ops-account-table-wide th:nth-child(6),
.ops-account-table-wide td:nth-child(6),
.ops-account-table-wide th:nth-child(7),
.ops-account-table-wide td:nth-child(7),
.ops-account-table-wide th:nth-child(8),
.ops-account-table-wide td:nth-child(8),
.ops-account-table-wide th:nth-child(9),
.ops-account-table-wide td:nth-child(9) {
  white-space: nowrap;
}

.ops-account-table-wide th:nth-child(2),
.ops-account-table-wide td:nth-child(2) {
  min-width: 92px;
}

.ops-account-table-wide th:last-child,
.ops-account-table-wide td:last-child {
  min-width: 260px;
  white-space: normal;
  line-height: 1.45;
}

.ops-mobile-cards { display: none; }

.ops-mobile-card,
.ops-inline-metric,
.ops-series-item,
.ops-empty,
.ops-auth-feature {
  border-radius: var(--radius-md);
  background: var(--panel-muted);
  border: 1px solid var(--line);
}
.ops-mobile-card {
  padding: 12px;
  display: grid;
  gap: 6px;
}
.ops-mobile-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.ops-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ─── 徽章 ─── */
.ops-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--accent-soft);
  color: var(--accent);
}
.ops-badge.status-active,
.ops-badge.mode-active,
.ops-badge.mode-permanent,
.ops-badge.mode-licensed,
.ops-badge.mode-allow_direct,
.ops-badge.mode-require_license {
  background: rgba(33, 136, 91, 0.08);
  color: var(--success);
}
.ops-badge.status-suspended,
.ops-badge.mode-none,
.ops-badge.mode-pending,
.ops-badge.mode-public_free,
.ops-badge.mode-allow {
  background: rgba(184, 121, 20, 0.08);
  color: var(--warning);
}
.ops-badge.status-revoked,
.ops-badge.status-expired,
.ops-badge.mode-suspended,
.ops-badge.mode-revoked,
.ops-badge.mode-expired,
.ops-badge.mode-blocked,
.ops-badge.mode-deny_deprecated {
  background: rgba(188, 78, 59, 0.08);
  color: var(--danger);
}

/* ─── 按钮 ─── */
.ops-button,
.ops-button-secondary,
.ops-button-danger,
.ops-link-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: 120ms ease;
  cursor: pointer;
}
.ops-button {
  color: #ffffff;
  background: var(--accent);
  box-shadow: none;
}
.ops-button:hover {
  background: var(--accent-strong);
  box-shadow: none;
  transform: none;
}
.ops-button-secondary {
  color: var(--accent);
  background: var(--panel);
  border-color: var(--line-strong);
}
.ops-button-secondary:hover {
  background: var(--panel-muted);
}
.ops-button-danger {
  color: var(--danger);
  background: rgba(188, 78, 59, 0.06);
  border-color: rgba(188, 78, 59, 0.14);
}
.ops-button-danger:hover {
  background: rgba(188, 78, 59, 0.1);
}
.ops-link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
}
.ops-link-button:hover {
  text-decoration: underline;
}

.ops-button-wide { width: 100%; }

/* ─── 设备链接 ─── */
.ops-device-link {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 120ms ease;
}
.ops-device-link:hover,
.ops-device-link:focus-visible {
  background: rgba(15, 107, 104, 0.04);
  outline: none;
}
.ops-device-link:active { transform: none; }
.ops-device-link-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ops-device-link-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.ops-device-link-cta {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ─── 表单 ─── */
.ops-form-panel { margin-bottom: 0; }

.ops-filter-bar,
.ops-form-grid,
.ops-inline-actions,
.ops-key-value {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ops-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.ops-field {
  display: grid;
  gap: 4px;
}
.ops-field-full {
  grid-column: 1 / -1;
}
.ops-field label,
.ops-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ops-field input,
.ops-field select,
.ops-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: 120ms ease;
}
.ops-field input:focus,
.ops-field select:focus,
.ops-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 107, 104, 0.1);
}

.ops-inline-actions { align-items: center; }

.ops-inline-metric {
  padding: 10px 12px;
}
.ops-inline-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ops-code-block {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #1e2430;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow: auto;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

/* ─── Flow Board ─── */
.ops-flow-board {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}
.ops-flow-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ops-flow-status {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

/* ─── Flow Strip ─── */
.ops-flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}
.ops-flow-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
}
.ops-flow-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: -18px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}
.ops-flow-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.ops-flow-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.ops-flow-node h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.ops-flow-node p,
.ops-result-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ops-flow-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ops-flow-list li {
  position: relative;
  padding-left: 14px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}
.ops-flow-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.node-entry .ops-flow-index {
  background: rgba(105, 120, 135, 0.08);
  color: var(--muted);
}
.node-version .ops-flow-index,
.node-version .ops-flow-list li::before {
  background: var(--highlight-soft);
  color: var(--warning);
}
.node-version .ops-flow-list li::before { background: var(--warning); }
.node-license .ops-flow-index,
.node-license .ops-flow-list li::before {
  background: rgba(33, 136, 91, 0.08);
  color: var(--success);
}
.node-license .ops-flow-list li::before { background: var(--success); }

.ops-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ops-result-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
}
.ops-result-item span {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.ops-result-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.result-allow {
  border-color: rgba(33, 136, 91, 0.14);
  background: rgba(33, 136, 91, 0.03);
}
.result-license {
  border-color: rgba(184, 121, 20, 0.14);
  background: rgba(184, 121, 20, 0.03);
}
.result-deny {
  border-color: rgba(188, 78, 59, 0.14);
  background: rgba(188, 78, 59, 0.03);
}

.ops-series-item { padding: 14px; }
.ops-series-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  gap: 4px;
  align-items: end;
  min-height: 72px;
  margin-top: 10px;
}
.ops-series-bar {
  min-height: 6px;
  border-radius: 999px 999px 2px 2px;
  background: var(--accent);
}
.ops-series-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.ops-key-value {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.ops-empty {
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.ops-chart-container {
  width: 100%;
  height: 320px;
  margin-top: 12px;
}
.ops-chart-container.is-compact { height: 220px; }

.ops-panel + .ops-panel { margin-top: 0; }

/* ─── 账号管理页 ─── */
.ops-account-registration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.ops-account-register-actions {
  justify-content: flex-end;
}

.ops-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}
.ops-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.ops-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
}
.ops-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.ops-toggle input:checked + span {
  background: var(--accent);
}
.ops-toggle input:checked + span::after {
  transform: translateX(20px);
}

.ops-account-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-account-console-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) minmax(280px, 320px);
  gap: 12px;
  align-items: start;
}

.ops-account-detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ops-account-filter {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-muted);
}

.ops-account-filter-action {
  align-self: end;
}

.ops-account-list-actions {
  margin-bottom: 12px;
  justify-content: flex-end;
}

.ops-account-table {
  min-width: 900px;
}

.ops-account-table th,
.ops-account-table td {
  vertical-align: middle;
}

.ops-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ops-account-row {
  cursor: pointer;
}

.ops-account-row.is-active,
.ops-account-row:focus-visible {
  outline: none;
  background: rgba(15, 107, 104, 0.08);
}

.ops-account-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ops-account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(46, 110, 168, 0.1);
  color: #2e6ea8;
  font-weight: 800;
  font-size: 15px;
}

.ops-account-main {
  min-width: 0;
}

.ops-account-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ops-account-name-row strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ops-account-title {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.ops-account-email {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ops-account-preview-panel {
  position: sticky;
  top: 92px;
}

.ops-account-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.ops-account-tabs::-webkit-scrollbar { display: none; }

.ops-account-tabs span,
.ops-account-tabs button {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ops-account-tabs span.is-active,
.ops-account-tabs button.is-active {
  border-color: rgba(15, 107, 104, 0.22);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.ops-account-tab-panel {
  display: none;
}
.ops-account-tab-panel.is-active {
  display: block;
}

.ops-account-kv-list {
  display: grid;
  gap: 0;
}

.ops-account-kv {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.ops-account-kv:last-child {
  border-bottom: none;
}
.ops-account-kv span {
  color: var(--muted);
  font-size: 12px;
}
.ops-account-kv strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ops-account-sync-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 150px;
  margin: 14px 0;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-muted);
}

.ops-account-sync-bar {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.ops-account-sync-bar::before {
  content: "";
  width: 100%;
  max-width: 42px;
  height: var(--bar-h, 18px);
  border-radius: 8px 8px 3px 3px;
  background: var(--accent);
}

.ops-account-sync-bar.is-position::before { background: #2e6ea8; }
.ops-account-sync-bar.is-watchlist::before { background: #0f6b68; }
.ops-account-sync-bar.is-notes::before { background: #b87914; }
.ops-account-sync-bar.is-config::before { background: #21885b; }

.ops-account-sync-bar strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.1;
}

.ops-account-subhead {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ops-account-device-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.ops-list-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-muted);
}
.ops-list-item-title {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ─── 紧凑统计条 ─── */
.ops-metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ops-metric-chip {
  flex: 1 1 0;
  min-width: 120px;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
}
.ops-metric-chip-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ops-metric-chip-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.ops-metric-chip.is-primary .ops-metric-chip-value { color: var(--accent); }
.ops-metric-chip.is-warning .ops-metric-chip-value { color: var(--warning); }
.ops-metric-chip.is-danger .ops-metric-chip-value { color: var(--danger); }

/* ─── 双列图表网格（地域 · 版本分布） ─── */
.ops-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.ops-chart-container--md { height: 260px; }

/* ─── 版本观察卡片网格 ─── */
.ops-version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.ops-version-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  transition: border-color 120ms ease;
}
.ops-version-card:hover {
  border-color: rgba(15, 107, 104, 0.25);
}
.ops-version-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ops-version-code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.ops-version-card-body {
  display: flex;
  gap: 20px;
}
.ops-version-stat-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.ops-version-card-body strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ─── 可折叠面板 ─── */
.ops-collapsible-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ops-collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.ops-collapsible-header::-webkit-details-marker { display: none; }
.ops-collapsible-header::marker { content: ''; }
.ops-collapsible-toggle {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 12px;
  transition: transform 150ms ease;
}
.ops-collapsible-toggle::after {
  content: "▸";
}
.ops-collapsible-panel[open] .ops-collapsible-toggle {
  transform: rotate(90deg);
}
.ops-collapsible-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}
.ops-collapsible-body .ops-form-panel {
  border: none;
  box-shadow: none;
  padding: 16px 0 0;
}
.ops-stat-grid--inline {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ═══════════════════════════════════════════
   总览页 (Overview) 专用布局 — 首屏优先增长+地域
   ═══════════════════════════════════════════ */

/* ─── KPI 紧凑横排条（单行，最小化高度，让图表上移） ─── */
.ov-kpi-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}
.ov-kpi-compact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-right: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: background 150ms ease;
}
.ov-kpi-compact-item:last-child { border-right: none; }
.ov-kpi-compact-item:hover { background: #fafbfc; }

/* 左侧色条 */
.ov-kpi-compact-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #d1d5db;
}
.ov-kpi-compact-item.tone-primary::before { background: linear-gradient(180deg, #14b8a6, #0f6b68); }
.ov-kpi-compact-item.tone-warning::before { background: linear-gradient(180deg, #fbbf24, #d58f28); }
.ov-kpi-compact-item.tone-danger::before { background: linear-gradient(180deg, #f87171, #bc4e3b); }

.ov-kci-label {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  white-space: nowrap;
  font-style: normal;
}
.ov-kci-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1e24;
  line-height: 1;
}
.ov-kpi-compact-item.tone-primary .ov-kci-value { color: #0f6b68; }
.ov-kpi-compact-item.tone-warning .ov-kci-value { color: #b87914; }
.ov-kpi-compact-item.tone-danger .ov-kci-value { color: #bc4e3b; }

/* ─── 面板通用 ─── */
.ov-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.ov-panel-header-left { min-width: 0; }

.ov-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1e24;
}
.ov-panel-desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
}

.ov-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(15,107,104,0.08);
  color: #0f6b68;
}
.ov-badge.badge-success { background: rgba(33,136,91,0.08); color: #21885b; }
.ov-badge.badge-warning { background: rgba(184,121,20,0.08); color: #b87914; }

.ov-time-badge {
  padding: 3px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.ov-count-badge {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(15,107,104,0.06);
  color: #0f6b68;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ─── 增长面板内的统计指标行 ─── */
.ov-growth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ov-stat-chip {
  padding: 8px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.ov-stat-chip-label {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}
.ov-stat-chip-value {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  letter-spacing: -0.01em;
}
.ov-stat-chip.chip-primary .ov-stat-chip-value { color: #0f6b68; }
.ov-stat-chip.chip-warning .ov-stat-chip-value { color: #b87914; }
.ov-stat-chip.chip-danger .ov-stat-chip-value { color: #bc4e3b; }
.ov-stat-chip.chip-muted {
  opacity: 0.55;
}
.ov-stat-chip.chip-muted .ov-stat-chip-value {
  color: #9ca3af;
}

/* 图表元信息 */
.ov-chart-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.ov-chart-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9ca3af;
}

/* 图表容器 */
.ov-chart-wrap {
  width: 100%;
  height: 340px;
  border-radius: 10px;
  background: #fafbfc;
}
.ov-chart-wrap.ov-chart--sm { height: 280px; }
.ov-chart-wrap.ov-chart--md { height: 260px; }

/* 空图表占位 */
.ov-empty-chart,
.ov-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 160px;
  color: #9ca3af;
  font-size: 13px;
}
.ov-empty-state p { margin: 0; text-align: center; }

/* ─── 首屏主区域：增长统计(左大) + 地域分布(右小) 并排 ─── */
.ov-hero-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  align-items: start;
}
.ov-growth-panel.ov-panel-star {
  border-color: rgba(15,107,104,0.1);
}

/* 图表容器 — 新增首屏专用尺寸 */
.ov-chart-wrap {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  background: #fafbfc;
}
.ov-chart-wrap.ov-chart--hero { height: 360px; }   /* 增长图（首屏主角） */
.ov-chart-wrap.ov-chart--geo { height: 320px; }     /* 地域图（首屏右侧） */
.ov-chart-wrap.ov-chart--sm { height: 240px; }       /* 趋势图 */
.ov-chart-wrap.ov-chart--md { height: 260px; }       /* 占比/分布图 */

/* ─── 双列图表区 ─── */
.ov-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

/* ─── 底部行：版本观察 + 策略面板 ─── */
.ov-bottom-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: start;
}
.ov-bottom-main { min-width: 0; }

.ov-section-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1e24;
  letter-spacing: -0.01em;
}

/* 版本卡片网格 */
.ov-version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ov-version-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 180ms ease;
}
.ov-version-card:hover {
  border-color: rgba(15,107,104,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.ov-version-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ov-version-code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #0f6b68;
  background: rgba(15,107,104,0.07);
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: -0.01em;
}
.ov-device-badge {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(33,136,91,0.08);
  color: #21885b;
  font-size: 11px;
  font-weight: 600;
}
.ov-version-card-body {
  display: flex;
  gap: 24px;
}
.ov-ver-stat-label {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}
.ov-ver-stat-val {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1e24;
}

/* 侧边策略面板 */
.ov-bottom-side {
  position: sticky;
  top: 80px;
}
.ov-strategy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.ov-strategy-stat {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.ov-strategy-stat-label {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 3px;
}
.ov-strategy-stat-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1e24;
  word-break: break-word;
}

/* 可折叠面板 */
.ov-collapsible {
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
}
.ov-collapsible-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  transition: background 150ms ease;
}
.ov-collapsible-summary::-webkit-details-marker { display: none; }
.ov-collapsible-summary::marker { content: ''; }
.ov-collapsible-summary svg {
  flex-shrink: 0;
  transition: transform 200ms ease;
  color: #c4cdd5;
}
.ov-collapsible[open] .ov-collapsible-summary svg {
  transform: rotate(90deg);
}
.ov-collapsible-summary:hover {
  background: #f1f5f9;
}
.ov-collapsible-content {
  padding: 16px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}
.ov-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.ov-form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 4px;
}
.ov-form-field input,
.ov-form-field select,
.ov-form-field textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  color: #1a1e24;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ov-form-field input:focus,
.ov-form-field select:focus,
.ov-form-field textarea:focus {
  outline: none;
  border-color: #0f6b68;
  box-shadow: 0 0 0 3px rgba(15,107,104,0.1);
}
.ov-field-error {
  margin-top: 4px;
  font-size: 11px;
  color: #bc4e3b;
}
.ov-save-btn {
  margin-top: 14px;
  justify-content: center;
}

.ops-table.ops-table-compact { min-width: 0; }
.ops-table.ops-table-compact.ops-position-table { min-width: 1060px; }
.ops-table.ops-table-compact.ops-watchlist-table { min-width: 1220px; }
.ops-table.ops-table-compact.ops-note-table { min-width: 900px; }
.ops-table.ops-table-compact th,
.ops-table.ops-table-compact td { padding: 8px 8px; }

.ops-ip-item,
.ops-info-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
}
.ops-ip-item strong,
.ops-info-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ops-info-item code {
  font-size: 11px;
  color: var(--accent);
}

.ops-device-headline {
  display: grid;
  gap: 12px;
}
.ops-device-headline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

/* ─── 登录页 ─── */
.ops-auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--bg);
}

.ops-auth-shell {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 0;
}

.ops-auth-story {
  display: none;
}

.ops-auth-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-xl);
  display: grid;
  align-content: center;
  gap: 16px;
}

.ops-auth-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.ops-auth-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ops-auth-grid { display: none; }
.ops-auth-feature { display: none; }

.ops-auth-card-head h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ops-auth-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ops-auth-form {
  display: grid;
  gap: 12px;
}
.ops-auth-form .ops-field { gap: 4px; }

/* ─── 更多徽章变体 ─── */
.ops-badge.mode-allow-offline {
  background: rgba(33, 136, 91, 0.08);
  color: var(--success);
}
.ops-badge.mode-deny-invalid-code,
.ops-badge.mode-deny-device-limit,
.ops-badge.mode-deny-device-mismatch,
.ops-badge.mode-deny-no-lease,
.ops-badge.mode-deny {
  background: rgba(188, 78, 59, 0.08);
  color: var(--danger);
}

.ops-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.ops-json-preview {
  max-width: 520px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(31, 42, 51, 0.05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ops-badge.mode-info {
  background: rgba(38, 166, 154, 0.1);
  color: var(--accent);
}

/* ─── 账号管理工作台：对齐账号系统 demo ─── */
.ops-account-registration-hero {
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: none;
}

.ops-account-console-grid-demo {
  grid-template-columns: minmax(0, 1.42fr) minmax(430px, 0.92fr);
  gap: 12px;
  align-items: start;
}

.ops-account-list-panel,
.ops-account-preview-panel-demo {
  padding: 14px;
  border-radius: 8px;
  box-shadow: none;
}

.ops-account-list-panel {
  align-self: start;
}

.ops-account-preview-panel-demo {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow: auto;
}

.ops-account-filter-demo {
  padding: 10px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.ops-account-list-actions {
  min-height: 32px;
  margin-bottom: 10px;
}

.ops-account-table {
  min-width: 980px;
}

.ops-account-table th,
.ops-account-table td,
.ops-account-preview-panel-demo .ops-table th,
.ops-account-preview-panel-demo .ops-table td {
  padding: 7px 9px;
}

.ops-account-table tbody tr {
  transition: background 120ms ease;
}

.ops-account-table .ops-account-row.is-active {
  background: #e7f4f2;
}

.ops-account-table .ops-account-row:hover {
  background: rgba(15, 107, 104, 0.045);
}

.ops-account-preview-panel-demo .ops-panel-title-row {
  align-items: flex-start;
  margin-bottom: 12px;
}

.ops-account-preview-panel-demo .ops-account-tabs {
  margin-bottom: 12px;
}

.ops-account-preview-panel-demo .ops-account-tabs button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
}

.ops-account-preview-panel-demo .ops-table-wrap {
  border-radius: 6px;
}

.ops-account-preview-panel-demo .ops-table {
  min-width: 620px;
}

.ops-account-preview-panel-demo .ops-table-compact td:first-child,
.ops-account-preview-panel-demo .ops-table-compact th:first-child {
  white-space: nowrap;
}

.ops-account-preview-panel-demo .ops-account-kv {
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 8px 0;
}

.ops-account-preview-panel-demo .ops-account-sync-bars {
  min-height: 132px;
  margin-bottom: 0;
}

.ops-account-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ops-account-insight-card {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.ops-account-insight-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.ops-account-insight-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ops-account-insight-card.is-up strong {
  color: #21885b;
}

.ops-account-insight-card.is-down strong {
  color: #bc4e3b;
}

.ops-account-finance-profile {
  min-width: 0;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), #ffffff 72%);
}

.ops-account-profile-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ops-account-profile-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(21, 48, 86, 0.1);
  border-radius: 7px;
  background: #ffffff;
}

.ops-account-profile-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ops-account-profile-card span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-account-profile-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ops-account-profile-card small {
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-profile-card i {
  display: block;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7edf3;
}

.ops-account-profile-card i b {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #67788a;
}

.ops-account-profile-card.is-up strong {
  color: #21885b;
}

.ops-account-profile-card.is-up i b {
  background: #21885b;
}

.ops-account-profile-card.is-down strong {
  color: #bc4e3b;
}

.ops-account-profile-card.is-down i b {
  background: #bc4e3b;
}

.ops-account-profile-card.is-warning strong {
  color: #9a6416;
}

.ops-account-profile-card.is-warning i b {
  background: #d58f28;
}

.ops-account-profile-card.is-note strong {
  color: #7755a2;
}

.ops-account-profile-card.is-note i b {
  background: #7755a2;
}

.ops-account-profile-card.is-empty {
  opacity: 0.78;
}

.ops-account-insight-panel {
  min-width: 0;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-insight-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ops-account-insight-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(21, 48, 86, 0.09);
  border-radius: 7px;
  background: #f8fafc;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ops-account-insight-item:hover {
  transform: translateY(-1px);
  border-color: rgba(48, 105, 186, 0.24);
  box-shadow: 0 8px 20px rgba(35, 50, 90, 0.08);
}

.ops-account-insight-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ops-account-insight-item strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ops-account-insight-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-insight-item.is-up {
  background: linear-gradient(180deg, rgba(33, 136, 91, 0.08), #ffffff);
}

.ops-account-insight-item.is-up strong {
  color: #21885b;
}

.ops-account-insight-item.is-down {
  background: linear-gradient(180deg, rgba(188, 78, 59, 0.08), #ffffff);
}

.ops-account-insight-item.is-down strong {
  color: #bc4e3b;
}

.ops-account-insight-item.is-note {
  background: linear-gradient(180deg, rgba(184, 121, 20, 0.08), #ffffff);
}

.ops-account-insight-item.is-empty {
  opacity: 0.82;
}

.ops-account-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ops-account-profile-sync {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-muted);
}

.ops-account-profile-sync .ops-account-panel-head {
  margin-bottom: 8px;
}

.ops-account-profile-sync .ops-account-sync-playbook {
  margin-bottom: 0;
}

.ops-account-config-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ops-account-config-summary article {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-config-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ops-account-config-summary strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.ops-account-config-summary small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.ops-account-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.ops-account-snapshot-panel {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.ops-account-snapshot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-account-snapshot-head strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.ops-account-snapshot-head span {
  color: var(--muted);
  font-size: 11px;
}

.ops-account-snapshot-list {
  display: grid;
  gap: 7px;
}

.ops-account-snapshot-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(92px, 0.75fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.ops-account-snapshot-item div {
  min-width: 0;
}

.ops-account-snapshot-item div:last-child {
  text-align: right;
}

.ops-account-snapshot-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ops-account-snapshot-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ops-account-snapshot-item.is-up div:last-child strong,
.ops-account-snapshot-item.is-up div:last-child span {
  color: #21885b;
}

.ops-account-snapshot-item.is-down div:last-child strong,
.ops-account-snapshot-item.is-down div:last-child span {
  color: #bc4e3b;
}

.ops-position-stage-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.ops-position-stage-summary strong {
  color: var(--text);
  font-size: 13px;
}

.ops-position-stage-summary span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.ops-position-stage-tags {
  display: grid;
  gap: 6px;
}

.ops-position-stage-tags button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-muted);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ops-position-stage-tags button:hover {
  border-color: rgba(15, 107, 104, 0.24);
  background: #fbfefd;
}

.ops-position-stage-tags button.is-active {
  border-color: rgba(15, 107, 104, 0.34);
  background: var(--accent-soft);
}

.ops-position-stage-tags strong {
  color: var(--text);
  font-size: 12px;
}

.ops-position-stage-tags span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ops-position-stage-events {
  display: grid;
  gap: 6px;
}

.ops-position-stage-event-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.ops-position-stage-event-summary-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 6px;
  background: #f8fafc;
}

.ops-position-stage-event-summary-card.is-up {
  border-left-color: #21885b;
}

.ops-position-stage-event-summary-card.is-down {
  border-left-color: #bc4e3b;
}

.ops-position-stage-event-summary-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.ops-position-stage-event-summary-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-position-stage-event-summary-card.is-up strong {
  color: #21885b;
}

.ops-position-stage-event-summary-card.is-down strong {
  color: #bc4e3b;
}

.ops-position-stage-event-summary-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ops-position-stage-event {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--highlight);
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ops-position-stage-event.is-initial {
  border-left-color: var(--accent);
}

.ops-position-stage-event.is-unchanged {
  border-left-color: var(--muted);
}

.ops-position-stage-event:hover {
  border-color: rgba(15, 107, 104, 0.24);
  border-left-color: var(--accent);
  background: #fbfefd;
}

.ops-position-stage-event strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.ops-position-stage-event small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ops-position-stage-event div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ops-position-stage-event div span {
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ops-position-stage-observations {
  display: grid;
  gap: 7px;
}

.ops-position-stage-observation {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.ops-position-stage-observation::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: #8a98aa;
}

.ops-position-stage-observation.is-initial::before {
  background: #0f6b68;
}

.ops-position-stage-observation.is-changed::before {
  background: #2e6ea8;
}

.ops-position-stage-observation:hover {
  border-color: rgba(15, 107, 104, 0.24);
  background: #fbfefd;
  transform: translateY(-1px);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ops-position-stage-observation strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.ops-position-stage-observation small,
.ops-position-stage-observation span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-sync-flow {
  display: grid;
  gap: 7px;
}

.ops-account-sync-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ops-account-sync-health-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  background: #ffffff;
  animation: ops-sync-card-in 220ms ease-out both;
}

.ops-account-sync-health-card.is-ready {
  border-left-color: var(--accent);
}

.ops-account-sync-health-card.is-partial {
  border-left-color: var(--warning);
}

.ops-account-sync-health-card.is-push {
  border-left-color: var(--accent);
}

.ops-account-sync-health-card.is-pull {
  border-left-color: var(--highlight);
}

.ops-account-sync-health-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ops-account-sync-health-card strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-account-sync-health-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-sync-event {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 6px;
  background: var(--panel-muted);
}

.ops-account-sync-event.is-push {
  border-left-color: var(--accent);
}

.ops-account-sync-event.is-pull {
  border-left-color: var(--highlight);
}

.ops-account-sync-event div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ops-account-sync-event strong {
  color: var(--text);
  font-size: 12px;
}

.ops-account-sync-event span,
.ops-account-sync-event small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ops-account-sync-event p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.ops-account-mini-chart {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.ops-account-mini-chart-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ops-account-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(28px, 1fr);
  align-items: end;
  gap: 6px;
  min-height: 112px;
  overflow-x: auto;
  padding-top: 4px;
}

.ops-account-bar {
  display: grid;
  grid-template-rows: 92px auto;
  gap: 6px;
  min-width: 28px;
  justify-items: center;
}

.ops-account-bar span {
  align-self: end;
  width: 100%;
  max-width: 30px;
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: #2e6ea8;
  transform-origin: bottom;
  animation: ops-bar-rise 360ms ease-out both;
}

.ops-account-bar.is-up span {
  background: #21885b;
}

.ops-account-bar.is-down span {
  background: #bc4e3b;
}

.ops-account-bar.is-flat span {
  background: #94a3b8;
}

.ops-account-bar label {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-account-note-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.ops-account-note-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.ops-account-note-summary-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid #3f5577;
  border-radius: 6px;
  background: #f8fafc;
}

.ops-account-note-summary-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.ops-account-note-summary-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-account-note-summary-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ops-account-note-card {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.ops-account-note-card strong {
  color: var(--text);
  font-size: 13px;
}

.ops-account-note-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ops-account-note-card small {
  color: var(--muted);
  font-size: 11px;
}

@keyframes ops-bar-rise {
  from {
    transform: scaleY(0.15);
    opacity: 0.48;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes ops-sync-card-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ops-account-avatar {
  border-radius: 8px;
}

.ops-account-title,
.ops-account-preview-panel-demo .ops-panel-title {
  letter-spacing: 0;
}

.ops-account-device-list {
  margin-bottom: 0;
}

.ops-list-item {
  border-radius: 6px;
}

.ops-account-preview-panel-demo .ops-empty {
  border-radius: 6px;
}

@media (max-width: 1280px) {
  .ops-account-console-grid-demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-account-preview-panel-demo {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .ops-account-insight-grid,
  .ops-account-chart-grid,
  .ops-account-snapshot-grid {
    grid-template-columns: 1fr;
  }
}

.ops-badge.mode-warning {
  background: rgba(197, 138, 22, 0.12);
  color: #9a6a0a;
}

.ops-badge.mode-error {
  background: rgba(188, 78, 59, 0.1);
  color: var(--danger);
}

/* ─── 运营台侧边导航 ─── */
.ops-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.ops-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.03);
}

.ops-sidebar-brand {
  padding: 4px 4px 10px;
}

.ops-sidebar-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  min-height: 0;
}

.ops-sidebar .ops-nav-pill {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.ops-sidebar .ops-nav-pill:hover {
  background: var(--panel-muted);
  color: var(--text);
}

.ops-sidebar .ops-nav-pill.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.ops-sidebar-footer {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ops-sidebar-actions {
  display: grid;
  gap: 8px;
}

.ops-sidebar-actions .ops-button-secondary {
  width: 100%;
}

.ops-content-shell {
  min-width: 0;
  display: grid;
  align-content: start;
  padding: 14px 16px 28px;
}

.ops-content-shell .ops-main {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.ops-content-shell .ops-deploy-footer {
  margin-right: 0;
}

/* ─── 账号运营工作台 ─── */
.ops-account-commandbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-register-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ops-account-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ops-account-kpi-card {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ops-account-kpi-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.ops-account-kpi-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.ops-account-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ops-account-queue-panel,
.ops-account-stage {
  padding: 14px;
  border-radius: 8px;
  box-shadow: none;
}

.ops-account-queue-panel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.ops-account-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-muted);
}

.ops-account-batchbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.ops-account-queue {
  display: grid;
  gap: 8px;
}

.ops-account-queue-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.ops-account-queue-row:hover {
  border-color: rgba(15, 107, 104, 0.22);
  background: #fbfefd;
}

.ops-account-queue-row.is-active {
  border-color: rgba(15, 107, 104, 0.32);
  background: var(--accent-soft);
}

.ops-account-queue-row > input {
  margin: 0;
}

.ops-account-queue-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ops-account-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-account-queue-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.ops-account-queue-meta,
.ops-account-queue-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 11px;
}

.ops-account-queue-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.ops-account-queue-focus span {
  min-width: 0;
  display: block;
  padding-left: 8px;
  border-left: 2px solid var(--line-strong);
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-account-queue-finance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 2px;
}

.ops-account-queue-finance span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.ops-account-queue-finance strong {
  min-width: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ops-account-queue-finance strong.is-up {
  color: var(--success);
}

.ops-account-queue-finance strong.is-down {
  color: var(--danger);
}

.ops-account-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.ops-account-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ops-account-health-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-muted);
}

.ops-account-health-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ops-account-health-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.ops-account-health-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ops-account-health-card.is-up strong {
  color: #21885b;
}

.ops-account-health-card.is-down strong {
  color: #bc4e3b;
}

.ops-account-financial-brief {
  min-width: 0;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ops-account-highlight-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(21, 48, 86, 0.1);
  border-left: 3px solid #6b7280;
  border-radius: 7px;
  background: #f8fafc;
}

.ops-account-highlight-card.is-up {
  border-left-color: var(--success);
}

.ops-account-highlight-card.is-down {
  border-left-color: var(--danger);
}

.ops-account-highlight-card.is-warning {
  border-left-color: var(--warning);
}

.ops-account-highlight-card.is-note {
  border-left-color: #7755a2;
}

.ops-account-highlight-card.is-empty {
  opacity: 0.78;
}

.ops-account-highlight-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ops-account-highlight-card strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-account-highlight-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-highlight-card.is-up strong {
  color: var(--success);
}

.ops-account-highlight-card.is-down strong {
  color: var(--danger);
}

.ops-account-highlight-card.is-warning strong {
  color: #9a6416;
}

.ops-account-market-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-bottom: 12px;
}

.ops-account-chart-stack,
.ops-account-snapshot-stack,
.ops-account-card-list {
  display: grid;
  gap: 10px;
}

.ops-account-data-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-account-section-head strong {
  color: var(--text);
  font-size: 12px;
}

.ops-account-section-head span {
  color: var(--muted);
  font-size: 11px;
}

.ops-account-stage .ops-account-bars {
  min-height: 104px;
}

.ops-account-echart {
  width: 100%;
  min-height: 180px;
}

.ops-account-stage-echart {
  min-height: 220px;
}

.ops-account-mini-echart {
  min-height: 190px;
}

.ops-account-note-echart {
  min-height: 150px;
  margin-bottom: 8px;
}

.ops-account-tab-panel .ops-account-mini-echart,
.ops-account-tab-panel .ops-account-note-echart {
  min-width: 0;
  width: 100%;
}

.ops-account-note-chart {
  margin-bottom: 10px;
}

.ops-account-mini-echart .ops-empty,
.ops-account-note-echart .ops-empty {
  min-height: inherit;
  display: grid;
  place-items: center;
}

.ops-account-stage .ops-account-bar {
  grid-template-rows: 82px auto;
}

.ops-account-stage .ops-account-tabs {
  margin-top: 4px;
}

.ops-account-stage .ops-table {
  min-width: 860px;
}

.ops-account-detail-dock {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ops-account-detail-dock-full {
  margin-top: 4px;
}

.ops-account-section-nav {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ops-account-section-nav-head {
  display: grid;
  gap: 2px;
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}

.ops-account-section-nav-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ops-account-section-nav-head strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.ops-account-section-nav button {
  width: 100%;
  min-height: 48px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.ops-account-section-nav button:hover {
  background: var(--panel-muted);
  border-color: var(--line);
}

.ops-account-section-nav button.is-active {
  background: var(--accent-soft);
  border-color: rgba(15, 107, 104, 0.28);
  box-shadow: inset 3px 0 0 var(--accent);
}

.ops-account-section-nav button:active {
  transform: translateY(1px);
}

.ops-account-section-nav strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.ops-account-section-nav small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-account-detail-panels {
  min-width: 0;
}

.ops-account-detail-panels .ops-account-tab-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-position-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 10px;
  align-items: start;
}

.ops-account-stage-event-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 10px;
  margin-top: 10px;
}

.ops-account-stage-observation-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  margin-top: 10px;
}

.ops-account-stage-analysis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ops-account-stage-analysis-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-muted);
}

.ops-account-stage-analysis-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.ops-account-stage-analysis-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ops-account-stage-analysis-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ops-account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ops-account-panel-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ops-account-panel-head strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.ops-account-panel-head span,
.ops-account-panel-head small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ops-account-panel-head small {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--panel-muted);
  overflow-wrap: anywhere;
  white-space: normal;
}

.ops-account-sync-panel-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: start;
}

.ops-account-sync-playbook {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.ops-account-sync-playbook article {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-sync-playbook article::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 10px;
  height: 1px;
  background: var(--line-strong);
}

.ops-account-sync-playbook article:last-child::after {
  display: none;
}

.ops-account-sync-playbook article.is-server {
  border-color: rgba(15, 107, 104, 0.2);
  background: linear-gradient(180deg, #fbfefd 0%, #ffffff 100%);
}

.ops-account-sync-playbook span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ops-account-sync-playbook strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-account-sync-playbook small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-sync-advice {
  margin: 0 0 10px;
}

.ops-account-sync-decision {
  margin: 0 0 10px;
}

.ops-account-sync-decision-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #8a98aa;
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-sync-decision-card.is-ready {
  border-left-color: #21885b;
  background: linear-gradient(180deg, #fbfefd 0%, #ffffff 100%);
}

.ops-account-sync-decision-card.is-warning,
.ops-account-sync-decision-card.is-partial {
  border-left-color: #d58f28;
}

.ops-account-sync-decision-card.is-empty {
  background: var(--panel-muted);
}

.ops-account-sync-decision-card > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

.ops-account-sync-decision-card span,
.ops-account-sync-decision-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ops-account-sync-decision-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.ops-account-sync-decision-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ops-account-sync-decision-card dl {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.ops-account-sync-decision-card dl div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
}

.ops-account-sync-decision-card dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-sync-advice-card {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-sync-advice-card.is-ready {
  border-left-color: #21885b;
  background: linear-gradient(180deg, #fbfefd 0%, #ffffff 100%);
}

.ops-account-sync-advice-card.is-partial {
  border-left-color: #d58f28;
}

.ops-account-sync-advice-card.is-empty {
  border-left-color: #8a98aa;
  background: var(--panel-muted);
}

.ops-account-sync-advice-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ops-account-sync-advice-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.ops-account-sync-advice-card small,
.ops-account-sync-advice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ops-account-link-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-muted);
  color: inherit;
  text-decoration: none;
}

.ops-account-link-card strong {
  color: var(--text);
}

.ops-account-link-card span,
.ops-account-link-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ops-account-sync-bundles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-account-sync-bundle {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(15, 107, 104, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfefd 0%, #ffffff 100%);
}

.ops-account-sync-bundle.is-empty {
  border-color: var(--line);
  background: var(--panel-muted);
}

.ops-account-sync-bundle > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-account-sync-bundle strong {
  color: var(--text);
  font-size: 12px;
}

.ops-account-sync-bundle > div span {
  flex: 0 0 auto;
  color: #0f6b68;
  font-size: 11px;
  font-weight: 800;
}

.ops-account-sync-bundle p,
.ops-account-sync-bundle small {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-sync-guide-card {
  grid-column: 1 / -1;
}

.ops-account-sync-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ops-account-sync-guide-item {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(47, 95, 159, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ops-account-sync-guide-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-account-sync-guide-item strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.ops-account-sync-guide-item > div span {
  flex: 0 0 auto;
  color: #2f5f9f;
  font-size: 10px;
  font-weight: 800;
}

.ops-account-sync-guide-item dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.ops-account-sync-guide-item dl div {
  min-width: 0;
}

.ops-account-sync-guide-item dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ops-account-sync-guide-item dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-sync-guide-item small {
  display: block;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: #8a4d16;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ops-account-sync-domain-card {
  grid-column: span 1;
}

.ops-account-sync-domain-grid {
  display: grid;
  gap: 8px;
}

.ops-account-sync-domain-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-left: 4px solid #8a98aa;
  border-radius: 8px;
  background: #ffffff;
}

.ops-account-sync-domain-item.is-ready {
  border-left-color: #21885b;
  background: linear-gradient(180deg, #fbfefd 0%, #ffffff 100%);
}

.ops-account-sync-domain-item.is-empty {
  border-left-color: #d58f28;
}

.ops-account-sync-domain-item.is-missing {
  background: var(--panel-muted);
}

.ops-account-sync-domain-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-account-sync-domain-item strong {
  color: var(--text);
  font-size: 12px;
}

.ops-account-sync-domain-item > div span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ops-account-sync-domain-item.is-ready > div span {
  background: rgba(33, 136, 91, 0.1);
  color: #21885b;
}

.ops-account-sync-domain-item.is-empty > div span {
  background: rgba(213, 143, 40, 0.12);
  color: #9a6416;
}

.ops-account-sync-domain-item p,
.ops-account-sync-domain-item small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ─── 账号金融工作台：宽屏数据优先布局 ─── */
.ops-account-workbench > .ops-account-stage {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ops-account-workbench > .ops-account-stage > * {
  min-width: 0;
}

.ops-account-workbench > .ops-account-stage .ops-account-stage-head,
.ops-account-workbench > .ops-account-stage .ops-account-health-grid,
.ops-account-workbench > .ops-account-stage .ops-account-finance-profile,
.ops-account-workbench > .ops-account-stage .ops-account-financial-brief,
.ops-account-workbench > .ops-account-stage .ops-account-insight-panel,
.ops-account-workbench > .ops-account-stage .ops-account-market-layout,
.ops-account-workbench > .ops-account-stage .ops-account-detail-dock {
  margin-bottom: 0;
}

.ops-account-workbench > .ops-account-stage .ops-account-stage-head { order: 1; }
.ops-account-workbench > .ops-account-stage .ops-account-health-grid { order: 2; }
.ops-account-workbench > .ops-account-stage .ops-account-finance-profile { order: 3; }
.ops-account-workbench > .ops-account-stage .ops-account-financial-brief { order: 4; }
.ops-account-workbench > .ops-account-stage .ops-account-detail-dock { order: 5; }
.ops-account-workbench > .ops-account-stage .ops-account-insight-panel { order: 6; }
.ops-account-workbench > .ops-account-stage .ops-account-market-layout { order: 7; }

.ops-account-workbench > .ops-account-stage .ops-account-detail-dock {
  grid-template-columns: 176px minmax(0, 1fr);
}

.ops-account-workbench > .ops-account-stage .ops-account-detail-panels .ops-account-tab-panel {
  min-height: 420px;
}

.ops-account-workbench > .ops-account-stage .ops-account-detail-panels .ops-table-wrap {
  max-height: min(66vh, 680px);
}

.ops-account-workbench > .ops-account-stage .ops-account-market-layout {
  grid-template-columns: minmax(0, 1fr);
}

.ops-account-workbench > .ops-account-stage .ops-account-chart-stack {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.ops-account-workbench > .ops-account-stage .ops-account-snapshot-stack {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.ops-account-workbench > .ops-account-stage .ops-account-echart {
  min-height: 210px;
}

.ops-account-workbench > .ops-account-stage .ops-account-stage-echart {
  min-height: 240px;
}

.ops-account-workbench > .ops-account-stage .ops-account-note-echart {
  min-height: 170px;
}

.ops-account-workbench > .ops-account-stage .ops-account-insight-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ops-account-workbench > .ops-account-stage .ops-account-profile-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ops-account-workbench > .ops-account-stage .ops-account-highlight-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-account-workbench > .ops-account-stage .ops-account-sync-playbook {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.ops-account-workbench > .ops-account-stage .ops-account-sync-panel-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.ops-account-workbench > .ops-account-stage .ops-table-wrap {
  background:
    linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(255,255,255,0), #fff 70%) 100% 0,
    linear-gradient(90deg, rgba(15,107,104,0.12), rgba(255,255,255,0)),
    linear-gradient(270deg, rgba(15,107,104,0.12), rgba(255,255,255,0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 28px 100%, 28px 100%, 12px 100%, 12px 100%;
  background-attachment: local, local, scroll, scroll;
}

.ops-account-console-grid > .ops-stack {
  min-width: 0;
}

.ops-account-console-grid > .ops-sidebar-stack {
  min-width: 0;
}

.ops-account-console-grid .ops-account-chart-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.ops-account-console-grid .ops-account-mini-chart {
  min-width: 0;
}

.ops-account-console-grid .ops-account-mini-echart {
  min-height: 220px;
}

/* ─── 账号页：金融数据后台视图覆盖 ─── */
.ops-account-workbench {
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 14px;
}

.ops-account-stage {
  overflow: hidden;
}

.ops-account-workbench > .ops-account-stage {
  gap: 10px;
}

.ops-account-workbench > .ops-account-stage .ops-account-stage-head { order: 1; }
.ops-account-workbench > .ops-account-stage .ops-account-health-grid { order: 2; }
.ops-account-workbench > .ops-account-stage .ops-account-finance-profile { order: 3; }
.ops-account-workbench > .ops-account-stage .ops-account-financial-brief { order: 4; }
.ops-account-workbench > .ops-account-stage .ops-account-detail-dock { order: 5; }
.ops-account-workbench > .ops-account-stage .ops-account-insight-panel { order: 6; }
.ops-account-workbench > .ops-account-stage .ops-account-market-layout { order: 7; }

.ops-account-commandbar,
.ops-account-kpi-strip {
  margin-bottom: 0;
}

.ops-account-queue-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
}

.ops-account-queue-row .ops-account-avatar {
  display: none;
}

.ops-account-queue-row > input {
  margin-top: 4px;
}

.ops-account-queue-head {
  align-items: flex-start;
}

.ops-account-queue-head strong {
  font-size: 13px;
}

.ops-account-queue-finance {
  gap: 5px;
}

.ops-account-queue-finance span {
  padding: 5px 6px;
}

.ops-account-stage-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ops-account-sync-action-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.ops-account-sync-action-strip article {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(15, 107, 104, 0.12);
  border-radius: 7px;
  background: #ffffff;
}

.ops-account-sync-action-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ops-account-sync-action-strip strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.ops-account-sync-action-strip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.ops-account-health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ops-account-health-card {
  padding: 10px;
  background: #ffffff;
}

.ops-account-health-card strong {
  font-size: 18px;
}

.ops-account-workbench > .ops-account-stage .ops-account-detail-dock {
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 12px;
}

.ops-account-workbench > .ops-account-stage .ops-account-detail-panels .ops-account-tab-panel {
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}

.ops-account-workbench > .ops-account-stage .ops-account-detail-panels .ops-table-wrap {
  max-height: min(72vh, 760px);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

.ops-account-detail-panels {
  display: grid;
  gap: 10px;
}

.ops-account-section-nav {
  padding: 7px;
  background: #f9fafb;
}

.ops-account-section-nav button {
  min-height: 44px;
  padding: 8px 9px;
}

.ops-account-detail-panels .ops-account-panel-head {
  margin: 0;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.ops-account-table-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) auto;
  gap: 10px;
  align-items: end;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.ops-account-table-search,
.ops-account-table-sort {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ops-account-table-search label,
.ops-account-table-sort label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.ops-account-table-search input,
.ops-account-table-sort select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 6px 9px;
  outline: none;
  font-size: 12px;
}

.ops-account-table-search input:focus,
.ops-account-table-sort select:focus {
  border-color: rgba(15, 107, 104, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 107, 104, 0.1);
}

.ops-account-table-count {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ops-table-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.ops-table-scroll-hint {
  position: sticky;
  left: 0;
  z-index: 4;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.ops-stock-cell {
  min-width: 164px;
}

.ops-stock-cell strong,
.ops-stock-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-stock-cell strong {
  color: var(--text);
  font-weight: 650;
}

.ops-stock-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.ops-number-tone.is-up {
  color: var(--success);
  font-weight: 650;
}

.ops-number-tone.is-down {
  color: var(--danger);
  font-weight: 650;
}

.ops-position-table,
.ops-account-table-wide {
  min-width: 1240px;
}

.ops-table.ops-table-compact.ops-position-table,
.ops-table.ops-table-compact.ops-account-table-wide {
  min-width: 1240px;
}

.ops-watchlist-table {
  min-width: 1420px;
}

.ops-table.ops-table-compact.ops-watchlist-table {
  min-width: 1420px;
}

.ops-note-table {
  min-width: 1120px;
}

.ops-table.ops-table-compact.ops-note-table {
  min-width: 1120px;
}

.ops-position-table th:nth-child(1),
.ops-position-table td:nth-child(1),
.ops-watchlist-table th:nth-child(1),
.ops-watchlist-table td:nth-child(1),
.ops-note-table th:nth-child(1),
.ops-note-table td:nth-child(1) {
  width: 116px;
}

.ops-position-table th:nth-child(2),
.ops-position-table td:nth-child(2),
.ops-watchlist-table th:nth-child(2),
.ops-watchlist-table td:nth-child(2),
.ops-note-table th:nth-child(2),
.ops-note-table td:nth-child(2) {
  width: 210px;
  min-width: 210px;
}

.ops-finance-table th:nth-child(1),
.ops-finance-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #ffffff;
}

.ops-finance-table th:nth-child(2),
.ops-finance-table td:nth-child(2) {
  position: sticky;
  left: 116px;
  z-index: 3;
  background: #ffffff;
  box-shadow: 10px 0 14px -14px rgba(15, 23, 42, 0.45);
}

.ops-finance-table thead th:nth-child(1),
.ops-finance-table thead th:nth-child(2) {
  z-index: 7;
  background: #f8fafc;
}

.ops-watchlist-table th:nth-child(8),
.ops-watchlist-table td:nth-child(8) {
  width: 520px;
  min-width: 520px;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
}

.ops-note-table th:nth-child(4),
.ops-note-table td:nth-child(4) {
  width: 620px;
  min-width: 620px;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
}

.ops-position-table th:nth-child(10),
.ops-position-table td:nth-child(10) {
  width: 340px;
  min-width: 340px;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
}

.ops-account-finance-profile,
.ops-account-financial-brief,
.ops-account-insight-panel,
.ops-account-market-layout {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ops-account-workbench > .ops-account-stage .ops-account-market-layout {
  grid-template-columns: minmax(0, 1fr);
}

.ops-account-workbench > .ops-account-stage .ops-account-chart-stack {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.ops-account-workbench > .ops-account-stage .ops-account-snapshot-stack {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

/* ─── 响应式 ─── */
@media (max-width: 1100px) {
  .ops-shell {
    width: min(100vw - 16px, 1440px);
    padding-top: 8px;
  }
  .ops-content-grid,
  .ops-detail-grid,
  .ops-account-console-grid,
  .ops-dashboard-grid,
  .ops-detail-layout,
  .ops-auth-shell,
  .ops-dual-grid,
  .ov-dual-grid,
  .ov-hero-row,
  .ov-bottom-row {
    grid-template-columns: 1fr;
  }
  .ov-kpi-compact {
    flex-wrap: wrap;
  }
  .ov-kpi-compact-item {
    flex: 0 0 auto;
    border-right: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .ov-bottom-side {
    position: static;
  }
  .ops-grid-two {
    grid-template-columns: 1fr;
  }
  .ops-account-preview-panel {
    position: static;
  }
  .ops-account-detail-dock,
  .ops-account-position-layout,
  .ops-account-stage-event-grid,
  .ops-account-sync-panel-grid {
    grid-template-columns: 1fr;
  }
  .ops-account-sync-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-account-highlight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-account-insight-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ops-account-stage-analysis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-position-stage-event-summary {
    grid-template-columns: 1fr;
  }
  .ops-account-note-summary {
    grid-template-columns: 1fr;
  }
  .ops-account-section-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ops-account-section-nav-head {
    grid-column: 1 / -1;
  }
  .ops-account-section-nav button {
    min-height: 44px;
  }
  .ops-account-sync-playbook {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-account-sync-playbook article:nth-child(2)::after {
    display: none;
  }
  .ops-flow-strip,
  .ops-result-grid {
    grid-template-columns: 1fr;
  }
  .ops-flow-node:not(:last-child)::after {
    content: "\2193";
    top: auto;
    right: 50%;
    bottom: -18px;
    transform: translateX(50%);
  }
  .ops-flow-node:nth-child(2)::after { display: grid; }
  .ops-auth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .ops-topbar {
    top: 0;
    padding: 10px 14px;
    border-radius: 0;
  }
  .ops-topbar-inner,
  .ops-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .ops-userbar { justify-content: space-between; }
  .ops-main { gap: 10px; }
  .ops-hero {
    padding: 8px 0;
    border-radius: 0;
  }
  .ops-page-title { font-size: 18px; }
  .ops-flow-heading { display: grid; }
  .ops-flow-status { justify-self: start; }
  .ops-flow-strip,
  .ops-result-grid { grid-template-columns: 1fr; }
  .ops-flow-node:not(:last-child)::after {
    content: "\2193";
    top: auto;
    right: 50%;
    bottom: -18px;
    transform: translateX(50%);
  }
  .ops-flow-node:nth-child(2)::after { display: grid; }
  .ops-desktop-table { display: none; }
  .ops-mobile-cards {
    display: grid;
    gap: 8px;
  }
  .ops-panel,
  .ops-form-panel,
  .ops-card,
  .ops-stat-card,
  .ops-flow-board {
    border-radius: var(--radius-lg);
    padding: 12px;
  }
  .ops-chart-container,
  .ov-chart--md, .ov-chart-wrap, .ov-chart--hero, .ov-chart--geo { height: 260px; }
  .ov-kpi-compact {
    flex-direction: column;
  }
  .ov-kpi-compact-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 10px 16px;
  }
  .ov-kci-value {
    font-size: 18px;
  }
  .ov-strategy-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ops-shell,
  .ops-auth-shell {
    width: min(100vw - 12px, 1440px);
  }
  .ops-topbar { margin-bottom: 0; }
  .ops-brand-title { font-size: 14px; }
  .ops-brand-mark {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 6px;
  }
  .ops-userbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ops-account-registration {
    grid-template-columns: 1fr;
  }
  .ops-account-sync-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-account-stage-analysis,
  .ops-account-sync-health-grid,
  .ops-account-sync-playbook,
  .ops-account-sync-decision-card,
  .ops-account-sync-decision-card dl,
  .ops-account-sync-bundles {
    grid-template-columns: 1fr;
  }
  .ops-account-sync-playbook article::after {
    display: none;
  }
  .ops-auth-card,
  .ops-auth-story {
    padding: 18px;
    border-radius: var(--radius-lg);
  }
  .ops-auth-title { font-size: 20px; }
  .ov-kpi-compact-item {
    padding: 10px 14px;
  }
  .ov-kci-value {
    font-size: 20px;
  }
  .ov-version-grid {
    grid-template-columns: 1fr;
  }
  .ov-strategy-stats {
    grid-template-columns: 1fr;
  }
  .ov-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════ 公告页面专用样式 ═══════════════ */

/* ─── 筛选栏优化 ─── */
.ops-filter-bar {
  padding: 12px 16px !important;
}
.ops-ann-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.ops-ann-filter-row .ops-field-grow {
  flex: 1 1 200px;
  min-width: 180px;
}
.ops-ann-filter-row .ops-field-btn {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
}
.ops-ann-filter-row .ops-field-btn label {
  display: none;
}

.ops-ann-selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}

.ops-ann-selection-wrap {
  max-height: 360px;
  overflow: auto;
}

.ops-ann-selection-table th,
.ops-ann-selection-table td {
  vertical-align: middle;
}

.ops-ann-check-col {
  width: 78px;
  white-space: nowrap;
}

/* ─── 表单容器 ─── */
.ops-ann-form {
  display: grid;
  gap: 8px;
}

/* ─── 基本信息区（主区域，始终展开） ─── */
.ops-ann-section {
  border: none;
  margin: 0;
  padding: 18px 16px;
  background: var(--panel-muted);
  border-radius: var(--radius-lg);
}
.ops-ann-section-primary {
  background: linear-gradient(135deg, rgba(15,107,104,0.03) 0%, rgba(15,107,104,0.01) 100%);
  border: 1px solid rgba(15,107,104,0.1);
}
.ops-ann-legend {
  all: unset;
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 2px;
}

/* ─── 行布局 ─── */
.ops-ann-row {
  display: grid;
  gap: 12px;
}
.ops-ann-row-2col {
  grid-template-columns: 1fr 1fr;
}
.ops-ann-row-3col {
  grid-template-columns: 1fr 1fr 1fr;

}
.ops-ann-row .ops-field {
  min-width: 0;
}

/* ─── Checkbox 内联样式 ─── */
.ops-ann-field-inline {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  padding-top: 22px; /* 与其他字段 label 对齐 */
}
.ops-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}
.ops-checkbox-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.ops-checkbox-wrap label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.ops-ann-severity-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ops-ann-help-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.ops-ann-help-chip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(25, 35, 52, 0.96);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 30;
}

.ops-ann-help-chip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(25, 35, 52, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 29;
}

.ops-ann-help-chip:hover::after,
.ops-ann-help-chip:hover::before {
  opacity: 1;
}

.ops-ann-help-chip:hover::after {
  transform: translateX(-50%) translateY(-2px);
}

/* ─── 可折叠面板（公告表单用） ─── */
.ops-ann-details {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ops-ann-details[open] .ops-collapsible-toggle {
  transform: rotate(90deg);
}
.ops-collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: background 120ms ease, border-color 120ms ease;
}
.ops-collapsible-header::-webkit-details-marker { display: none; }
.ops-collapsible-header::marker { content: ''; }
.ops-collapsible-header:hover {
  background: var(--panel-muted);
}
.ops-collapsible-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.ops-collapsible-body {
  padding: 14px 16px 4px;
  background: var(--panel-muted);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.ops-ann-details:not([open]) .ops-collapsible-header {
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.ops-ann-details:not([open]) .ops-collapsible-header:hover {
  background: var(--panel-muted);
}

/* ─── 操作按钮栏 ─── */
.ops-ann-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.ops-ann-submit {
  padding: 8px 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ops-ann-btn-danger:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(188,78,59,0.06);
}

/* ─── 非字段错误区 ─── */
.ops-ann-nonfield-errors {
  display: grid;
  gap: 6px;
  padding: 8px 0;
}

/* ─── 公告页面响应式 ─── */
@media (max-width: 900px) {
  .ops-ann-row-2col,
  .ops-ann-row-3col {
    grid-template-columns: 1fr;
  }
  .ops-ann-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ops-ann-filter-row .ops-field-grow {
    flex: auto;
  }
  .ops-ann-filter-row .ops-field-btn {
    align-items: stretch;
  }
  .ops-ann-filter-row .ops-field-btn button {
    width: 100%;
  }
  .ops-ann-field-inline {
    padding-top: 0 !important;
    align-items: center !important;
  }
  .ops-ann-selection-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .ops-ann-section,
  .ops-collapsible-body {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ops-collapsible-header {
    padding: 10px 12px;
  }
}

/* ─── 侧边栏和账号工作台最终响应式覆盖 ─── */
@media (max-width: 1180px) {
  .ops-account-market-layout {
    grid-template-columns: 1fr;
  }

  .ops-account-workbench > .ops-account-stage .ops-account-chart-stack,
  .ops-account-workbench > .ops-account-stage .ops-account-snapshot-stack,
  .ops-account-workbench > .ops-account-stage .ops-account-profile-strip,
  .ops-account-workbench > .ops-account-stage .ops-account-highlight-strip,
  .ops-account-workbench > .ops-account-stage .ops-account-sync-guide,
  .ops-account-workbench > .ops-account-stage .ops-account-insight-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-account-queue-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 980px) {
  .ops-account-workbench {
    grid-template-columns: 1fr;
  }

  .ops-account-queue {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .ops-shell {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .ops-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px 12px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ops-sidebar-brand {
    padding: 0;
  }

  .ops-sidebar-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }

  .ops-sidebar .ops-nav-pill {
    flex: 0 0 auto;
    min-height: 32px;
    box-shadow: none;
  }

  .ops-sidebar .ops-nav-pill.is-active {
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .ops-sidebar-footer {
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0;
    border-top: 0;
  }

  .ops-sidebar-actions {
    display: flex;
    gap: 6px;
  }

  .ops-content-shell {
    padding: 12px;
  }

  .ops-account-commandbar,
  .ops-account-stage-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .ops-account-kpi-strip,
  .ops-account-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-account-insight-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-position-table,
  .ops-table.ops-table-compact.ops-position-table,
  .ops-note-table,
  .ops-table.ops-table-compact.ops-note-table {
    min-width: 940px;
  }

  .ops-watchlist-table,
  .ops-table.ops-table-compact.ops-watchlist-table {
    min-width: 1180px;
  }

  .ops-account-workbench > .ops-account-stage .ops-account-chart-stack,
  .ops-account-workbench > .ops-account-stage .ops-account-snapshot-stack,
  .ops-account-workbench > .ops-account-stage .ops-account-profile-strip,
  .ops-account-workbench > .ops-account-stage .ops-account-sync-guide,
  .ops-account-workbench > .ops-account-stage .ops-account-insight-list,
  .ops-account-workbench > .ops-account-stage .ops-account-sync-playbook,
  .ops-account-workbench > .ops-account-stage .ops-account-sync-panel-grid {
    grid-template-columns: 1fr;
  }

  .ops-account-table-toolbar {
    grid-template-columns: 1fr;
  }

  .ops-account-table-count {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ops-sidebar {
    grid-template-columns: 1fr;
  }

  .ops-sidebar-footer,
  .ops-sidebar-actions,
  .ops-account-register-control,
  .ops-account-batchbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-account-kpi-strip,
  .ops-account-health-grid,
  .ops-account-insight-list,
  .ops-account-highlight-strip,
  .ops-account-queue {
    grid-template-columns: 1fr;
  }

  .ops-account-queue-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ops-account-queue-finance {
    grid-template-columns: 1fr;
  }

  .ops-account-queue-row > input {
    grid-row: span 2;
  }
}
