:root {
  color-scheme: light;
  --bg: #fffaf4;
  --bg-2: #f7f8f1;
  --sidebar: rgba(255, 250, 244, 0.96);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-2: rgba(252, 248, 240, 0.9);
  --panel-3: #f4f0ff;
  --line: #eadfd3;
  --line-strong: rgba(109, 63, 209, 0.18);
  --text: #211b16;
  --muted: #6f6258;
  --muted-2: #9b8d82;
  --blue: #6d3fd1;
  --blue-2: #4f35a6;
  --green: #26724e;
  --green-2: #2f9b68;
  --amber: #b87900;
  --red: #c43f35;
  --accent: #ff5a2c;
  --paper: #fffaf4;
  --soft: #f7f8f1;
  --shadow: 0 16px 42px rgba(38, 48, 41, 0.07);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

/* Approval center redesign */
.approval-workbench {
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.76fr);
  gap: 18px;
  align-items: start;
}

.approval-queue-panel .panel-heading,
.approval-detail-panel .panel-heading {
  margin-bottom: 14px;
}

.approval-queue-panel h2,
.approval-detail-panel h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.approval-operating-note {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  border-left: 3px solid rgba(109, 63, 209, 0.5);
  padding: 2px 0 2px 12px;
}

.approval-operating-note strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.approval-operating-note span {
  max-width: 76ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.approval-flow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  list-style: none;
}

.approval-flow-rail li {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 8px;
  padding-right: 14px;
}

.approval-flow-rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 13px;
  width: 28px;
  height: 1px;
  background: rgba(109, 63, 209, 0.22);
}

.approval-flow-rail i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.approval-flow-rail strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.approval-flow-rail span {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 720;
}

.admin-icp {
  display: inline-flex;
  margin-top: 12px;
  color: rgba(33, 27, 22, 0.48);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
  transition: color 0.18s ease;
}

.admin-icp:hover {
  color: var(--blue-2);
}

.approval-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px;
}

.approval-filter-bar button {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 7px 9px;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.approval-filter-bar button:hover {
  background: rgba(109, 63, 209, 0.055);
}

.approval-filter-bar button:active {
  transform: translateY(1px);
}

.approval-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
}

.approval-filter-bar strong {
  font-size: 19px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.approval-filter-bar span {
  min-width: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 850;
}

.approval-context-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 720;
}

.approval-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.approval-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
}

.approval-table th:nth-child(1),
.approval-table td:nth-child(1) {
  width: 35%;
}

.approval-table th:nth-child(2),
.approval-table td:nth-child(2) {
  width: 15%;
}

.approval-table th:nth-child(3),
.approval-table td:nth-child(3) {
  width: 20%;
}

.approval-table th:nth-child(4),
.approval-table td:nth-child(4) {
  width: 19%;
}

.approval-table th:nth-child(5),
.approval-table td:nth-child(5) {
  width: 11%;
}

.approval-table th,
.approval-table td {
  border-right: 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  text-align: left;
  vertical-align: middle;
}

.approval-table th {
  background: rgba(255, 250, 244, 0.82);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.approval-row strong {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 850;
}

.approval-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.approval-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.approval-row strong {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 850;
}

.approval-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.approval-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.approval-row:hover td,
.approval-row.is-selected td {
  background: rgba(109, 63, 209, 0.055);
}

.approval-row.is-selected td:first-child {
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.68) inset;
}

.approval-row strong {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 850;
}

.approval-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.approval-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.approval-status.is-draft {
  background: rgba(33, 27, 22, 0.07);
  color: var(--muted);
}

.approval-detail-panel {
  position: sticky;
  top: 96px;
}

.approval-detail-copy {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.approval-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.approval-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.approval-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.approval-detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.approval-stage-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 10px;
  padding: 0;
  list-style: none;
}

.approval-stage-rail li {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-top: 2px solid rgba(33, 27, 22, 0.12);
  padding-top: 8px;
}

.approval-stage-rail li span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(33, 27, 22, 0.18);
}

.approval-stage-rail li strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
}

.approval-stage-rail li em {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 720;
}

.approval-stage-rail li.is-done {
  border-color: rgba(38, 114, 78, 0.35);
}

.approval-stage-rail li.is-done span {
  background: var(--green);
}

.approval-stage-rail li.is-current {
  border-color: rgba(109, 63, 209, 0.58);
}

.approval-stage-rail li.is-current span {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(109, 63, 209, 0.12);
}

.approval-stage-rail li.is-returned {
  border-color: rgba(196, 63, 53, 0.34);
}

.approval-stage-rail li.is-returned span {
  background: var(--red);
}

.approval-storage-note {
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 720;
}

.approval-feedback {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.approval-feedback textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.approval-action-zone {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.approval-submitter-actions,
.approval-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.approval-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approval-submitter-actions button,
.approval-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.approval-submitter-actions button:hover:not(:disabled),
.approval-actions button:hover:not(:disabled) {
  background: rgba(109, 63, 209, 0.06);
  border-color: rgba(109, 63, 209, 0.18);
}

.approval-submitter-actions button:active:not(:disabled),
.approval-actions button:active:not(:disabled) {
  transform: translateY(1px);
}

.approval-actions button:first-child,
.approval-submitter-actions button:nth-child(2) {
  border-color: rgba(38, 114, 78, 0.2);
  background: rgba(38, 114, 78, 0.08);
  color: var(--green);
}

.approval-actions button:nth-child(2),
.approval-submitter-actions button:nth-child(3) {
  border-color: rgba(196, 63, 53, 0.2);
  background: rgba(196, 63, 53, 0.08);
  color: var(--red);
}

.approval-actions button:last-child {
  border-color: rgba(255, 90, 44, 0.24);
  background: rgba(255, 90, 44, 0.1);
  color: var(--accent);
}

.approval-submitter-actions button:disabled,
.approval-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.approval-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 720;
}

@media (max-width: 1180px) {
  .approval-workbench {
    grid-template-columns: 1fr;
  }

  .approval-detail-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .approval-flow-rail,
  .approval-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-flow-rail li:not(:last-child)::after {
    display: none;
  }

  .approval-context-line {
    display: grid;
  }

  .approval-table {
    min-width: 0;
    display: block;
  }

  .approval-table thead {
    display: none;
  }

  .approval-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .approval-table tr {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
  }

  .approval-table td {
    display: block;
    width: 100% !important;
    border-right: 0;
    padding: 9px 11px;
  }

  .approval-table td:not(:first-child)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
  }

  .approval-table td:nth-child(2)::before { content: "状态"; }
  .approval-table td:nth-child(3)::before { content: "风险"; }
  .approval-table td:nth-child(4)::before { content: "提交 / 权限"; }
  .approval-table td:nth-child(5)::before { content: "SLA"; }

  .approval-stage-rail,
  .approval-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .approval-filter-bar,
  .approval-flow-rail,
  .approval-submitter-actions,
  .approval-actions,
  .approval-stage-rail,
  .approval-detail-list div {
    grid-template-columns: 1fr;
  }
}

/* Model resource pool final override */
.ops-grid.model-pool-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 18px;
  align-items: start;
}

.model-pool-panel,
.model-health-panel {
  overflow: hidden;
}

.model-health-panel {
  position: sticky;
  top: 96px;
}

.model-pool-panel .panel-heading,
.model-health-panel .panel-heading {
  margin-bottom: 14px;
}

.model-pool-panel h2,
.model-health-panel h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.pool-operating-note {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  border-left: 3px solid rgba(109, 63, 209, 0.5);
  padding: 2px 0 2px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.pool-operating-note strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.provider-control-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.model-pool-layout .pool-summary-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.model-pool-layout .pool-summary-strip div {
  min-height: 64px;
  display: grid;
  align-content: center;
  border-color: rgba(33, 27, 22, 0.08);
  padding: 10px;
}

.model-pool-layout .pool-summary-strip strong {
  font-size: 20px;
  line-height: 1;
}

.model-pool-layout .pool-summary-strip span {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.25;
}

.model-pool-layout .pool-filter-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  margin-bottom: 12px;
  border-color: rgba(33, 27, 22, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 5px;
}

.model-pool-layout .pool-filter-bar button {
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .pool-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
  box-shadow: none;
}

.model-pool-layout .supplier-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.model-pool-layout .supplier-row {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(116px, 0.72fr) minmax(112px, 0.62fr) minmax(82px, 0.42fr);
  gap: 12px;
  align-items: center;
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  overflow: hidden;
}

.model-pool-layout .supplier-row.is-selected {
  border-color: rgba(109, 63, 209, 0.3);
  background: rgba(109, 63, 209, 0.08);
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.68) inset;
}

.model-pool-layout .supplier-row span {
  min-width: 0;
}

.model-pool-layout .supplier-row strong,
.model-pool-layout .supplier-row b,
.model-pool-layout .supplier-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .supplier-row strong,
.model-pool-layout .supplier-row b {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 850;
}

.model-pool-layout .supplier-main strong {
  font-size: 13px;
}

.model-pool-layout .supplier-row em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.model-pool-layout .supplier-row > span:nth-child(4) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.model-pool-layout .supplier-actions {
  display: none !important;
}

.model-health-panel .selected-relay-card,
.model-health-panel .failover-stack-card,
.model-health-panel .manual-switch-card {
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.model-health-panel .selected-relay-card {
  padding: 14px;
  margin-bottom: 10px;
}

.model-health-panel .selected-relay-card span,
.model-health-panel .failover-stack-card > span,
.model-health-panel .manual-switch-card span,
.model-health-panel .relay-detail-list dt {
  letter-spacing: 0;
  text-transform: none;
}

.model-health-panel .selected-relay-card strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.15;
}

.model-health-panel .selected-relay-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.model-health-panel .relay-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.model-health-panel .relay-detail-list div {
  min-height: 64px;
  padding: 10px;
}

.model-health-panel .relay-detail-list dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.35;
}

.model-health-panel .failover-stack-card,
.model-health-panel .manual-switch-card {
  padding: 12px;
  margin-bottom: 10px;
}

.model-health-panel .traffic-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.model-health-panel .manual-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-health-panel .traffic-options button,
.model-health-panel .manual-actions button {
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-health-panel .probe-grid.compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 1320px) {
  .ops-grid.model-pool-layout {
    grid-template-columns: 1fr;
  }

  .model-health-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .model-pool-layout .pool-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .model-pool-layout .pool-filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .model-pool-layout .supplier-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(104px, 0.65fr) minmax(90px, 0.52fr);
  }

  .model-pool-layout .supplier-row > span:nth-child(4) {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .model-pool-layout .panel-actions,
  .model-pool-layout .pool-summary-strip,
  .model-pool-layout .pool-filter-bar,
  .model-pool-layout .supplier-row,
  .model-health-panel .relay-detail-list,
  .model-health-panel .traffic-options,
  .model-health-panel .manual-actions {
    grid-template-columns: 1fr;
  }

  .model-pool-layout .supplier-row > span:nth-child(4) {
    grid-column: auto;
  }
}

/* Shared management workbench for focused admin operation pages */
#commerce.management-workbench,
#after-sales.management-workbench,
#experience.management-workbench,
#security.management-workbench,
#execution.management-workbench,
#risk-control.management-workbench,
#config-center.management-workbench,
#compliance-reports.management-workbench {
  grid-template-columns: minmax(0, 1.36fr) minmax(360px, 0.74fr);
  align-items: start;
}

.workbench-main-panel,
.workbench-detail-panel {
  min-width: 0;
  overflow: visible;
}

.workbench-detail-panel {
  position: sticky;
  top: 24px;
}

.workbench-note {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 16px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.56);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.07), rgba(255, 255, 255, 0.78));
  padding: 14px 16px;
}

.workbench-note span,
.workbench-summary-kicker span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 920;
}

.workbench-note p {
  margin: 0;
  max-width: 94ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 730;
  text-wrap: pretty;
}

.workbench-summary-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.workbench-summary-primary,
.workbench-summary-metric {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.workbench-summary-primary {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: 8px 22px;
  min-height: 112px;
  align-content: center;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.1), rgba(255, 255, 255, 0.82) 48%),
    rgba(255, 255, 255, 0.74);
}

.money-workbench .workbench-summary-primary {
  background:
    linear-gradient(135deg, rgba(38, 114, 78, 0.1), rgba(255, 255, 255, 0.82) 48%),
    rgba(255, 255, 255, 0.74);
}

.service-workbench .workbench-summary-primary {
  background:
    linear-gradient(135deg, rgba(184, 121, 0, 0.1), rgba(255, 255, 255, 0.82) 48%),
    rgba(255, 255, 255, 0.74);
}

.execution-workbench .workbench-summary-primary {
  background:
    linear-gradient(135deg, rgba(66, 106, 143, 0.1), rgba(255, 255, 255, 0.84) 48%),
    rgba(255, 255, 255, 0.74);
}

.risk-workbench .workbench-summary-primary {
  background:
    linear-gradient(135deg, rgba(177, 55, 47, 0.09), rgba(255, 255, 255, 0.84) 48%),
    rgba(255, 255, 255, 0.74);
}

.config-workbench .workbench-summary-primary {
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.1), rgba(255, 255, 255, 0.84) 48%),
    rgba(255, 255, 255, 0.74);
}

.compliance-workbench .workbench-summary-primary {
  background:
    linear-gradient(135deg, rgba(38, 114, 78, 0.09), rgba(255, 255, 255, 0.84) 48%),
    rgba(255, 255, 255, 0.74);
}

.workbench-summary-kicker,
.workbench-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.workbench-summary-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.workbench-summary-kicker em {
  color: rgba(100, 90, 80, 0.68);
  font-size: 11px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 760;
}

.workbench-summary-primary > strong {
  grid-column: 1;
  grid-row: 2;
  color: var(--text);
  font-size: 34px;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.workbench-summary-primary p {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  max-width: 70ch;
  color: rgba(33, 27, 22, 0.72);
  font-size: 12px;
  line-height: 1.52;
  font-weight: 760;
  text-wrap: pretty;
}

.workbench-summary-tags {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 4px;
}

.workbench-summary-tags span {
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.06);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 820;
}

.workbench-summary-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.desk-workbench .workbench-summary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workbench-summary-metric {
  position: relative;
  display: flex;
  min-height: 106px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 15px 13px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.workbench-summary-metric::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.42);
}

.workbench-summary-metric.is-warn::before {
  background: rgba(184, 121, 0, 0.58);
}

.workbench-summary-metric.is-danger::before {
  background: rgba(177, 55, 47, 0.58);
}

.workbench-summary-metric:hover,
.workbench-summary-metric.is-active,
.workbench-card-grid article:hover {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(64, 46, 26, 0.07);
  transform: translateY(-1px);
}

.workbench-summary-metric:active {
  transform: translateY(0);
}

.workbench-summary-metric:focus-visible,
.workbench-row:focus-visible,
.workbench-filter-bar button:focus-visible,
.workbench-pagination button:focus-visible,
.workbench-action-grid button:focus-visible,
.workbench-card-grid button:focus-visible {
  outline: 2px solid rgba(109, 63, 209, 0.36);
  outline-offset: 3px;
}

.workbench-summary-metric span {
  max-width: calc(100% - 14px);
  color: rgba(100, 90, 80, 0.76);
  font-size: 12px;
  line-height: 1.28;
  font-weight: 860;
}

.workbench-summary-metric strong {
  margin: 9px 0 5px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.workbench-summary-metric em {
  color: rgba(100, 90, 80, 0.72);
  font-size: 11.5px;
  line-height: 1.42;
  font-style: normal;
  font-weight: 760;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.workbench-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.workbench-search {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

.workbench-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.workbench-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.workbench-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 5px;
}

.workbench-filter-bar button,
.workbench-pagination button,
.workbench-action-grid button,
.workbench-card-grid button,
.workbench-card-grid a {
  min-height: 32px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

.workbench-card-grid a {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  text-decoration: none;
}

.workbench-filter-bar button {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.workbench-filter-bar button.is-active {
  background: var(--text);
  color: #fff;
}

.workbench-filter-bar button:hover,
.workbench-pagination button:hover,
.workbench-action-grid button:hover,
.workbench-card-grid button:hover,
.workbench-card-grid a:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.workbench-row-list {
  display: grid;
  gap: 8px;
}

.workbench-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.22fr) minmax(138px, 0.72fr) minmax(132px, 0.64fr) minmax(122px, 0.62fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.workbench-row:hover,
.workbench-row.is-selected {
  border-color: rgba(109, 63, 209, 0.32);
  background: rgba(109, 63, 209, 0.055);
}

.workbench-row.is-selected {
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.62) inset;
}

.workbench-row > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workbench-row strong,
.workbench-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.workbench-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.workbench-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 760;
}

.money-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 860;
  white-space: nowrap;
}

.money-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.money-pill.is-good {
  background: rgba(38, 114, 78, 0.08);
  color: var(--green);
}

.money-pill.is-warn {
  background: rgba(184, 121, 0, 0.1);
  color: var(--amber);
}

.money-pill.is-danger {
  background: rgba(177, 55, 47, 0.09);
  color: var(--red);
}

.workbench-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.workbench-pagination div {
  display: flex;
  gap: 6px;
}

.workbench-empty {
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
  text-align: center;
}

.workbench-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

.workbench-detail-head h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
}

.workbench-detail-risk {
  margin: 12px 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.68);
  padding: 11px 12px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 760;
  text-wrap: pretty;
}

.workbench-detail-list {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.workbench-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.workbench-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.workbench-detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 760;
  overflow-wrap: break-word;
  word-break: normal;
}

.workbench-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.workbench-action-grid button[data-money-action="compensate"],
.workbench-action-grid button[data-money-action="approval"],
.workbench-action-grid button[data-case-action="compensate"],
.workbench-action-grid button[data-case-action="close"],
.workbench-action-grid button[data-case-action="finance"] {
  border-color: rgba(255, 90, 44, 0.22);
  color: var(--accent);
}

.desk-workbench .workbench-action-grid button[data-desk-action="execute"],
.desk-workbench .workbench-action-grid button[data-desk-action="approval"],
.desk-workbench .workbench-action-grid button[data-desk-action="disable"],
.desk-workbench .workbench-action-grid button[data-desk-action="freeze"],
.desk-workbench .workbench-action-grid button[data-desk-action="rollback"] {
  border-color: rgba(255, 90, 44, 0.22);
  color: var(--accent);
}

.workbench-action-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 740;
  text-wrap: pretty;
}

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

.workbench-card-grid article {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 164px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.workbench-card-grid strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  text-wrap: balance;
}

.workbench-card-grid span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.56;
  font-weight: 740;
  text-wrap: pretty;
}

.workbench-card-grid button,
.workbench-card-grid a {
  justify-self: start;
  min-width: 96px;
}

.desk-card-grid {
  margin: 0 0 14px;
}

.desk-card-grid article {
  min-height: 150px;
}

.customer-hand-off-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.customer-hand-off-grid a {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px 13px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.customer-hand-off-grid a:hover {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(109, 63, 209, 0.055);
  transform: translateY(-1px);
}

.customer-hand-off-grid span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.customer-hand-off-grid strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.customer-hand-off-grid em {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.42;
  font-style: normal;
  font-weight: 740;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.experience-workbench .ops-list,
.security-workbench .ops-list {
  margin-top: 4px;
}

@media (max-width: 1320px) {
  #commerce.management-workbench,
  #after-sales.management-workbench,
  #experience.management-workbench,
  #security.management-workbench,
  #execution.management-workbench,
  #risk-control.management-workbench,
  #config-center.management-workbench,
  #compliance-reports.management-workbench {
    grid-template-columns: 1fr;
  }

  .workbench-detail-panel {
    position: static;
  }

  .customer-hand-off-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .workbench-summary-primary,
  .workbench-summary-strip,
  .workbench-summary-metrics,
  .desk-workbench .workbench-summary-metrics,
  .workbench-card-grid {
    grid-template-columns: 1fr;
  }

  .workbench-summary-primary p {
    max-width: none;
  }

  .workbench-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workbench-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.68fr);
  }
}

@media (max-width: 620px) {
  .workbench-note,
  .workbench-search,
  .workbench-summary-primary,
  .workbench-summary-metrics,
  .workbench-filter-bar,
  .workbench-row,
  .workbench-detail-list div,
  .workbench-action-grid {
    grid-template-columns: 1fr;
  }

  .workbench-summary-kicker,
  .workbench-summary-primary > strong,
  .workbench-summary-primary p,
  .workbench-summary-tags {
    grid-column: auto;
    grid-row: auto;
  }

  .workbench-detail-head,
  .workbench-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench-pagination div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Device mesh workbench */
#mesh.mesh-workbench {
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.72fr);
  align-items: start;
}

.mesh-main-panel,
.mesh-detail-panel {
  min-width: 0;
  overflow: visible;
}

.mesh-detail-panel {
  position: sticky;
  top: 24px;
}

.mesh-operating-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 16px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.56);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.07), rgba(255, 255, 255, 0.78));
  padding: 14px 16px;
}

.mesh-operating-note span,
.mesh-card-head span,
.mesh-next-card span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 920;
}

.mesh-operating-note p {
  margin: 0;
  max-width: 90ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 730;
}

.mesh-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
}

.mesh-summary-strip div {
  min-height: 116px;
  display: grid;
  grid-template-rows: 30px 38px minmax(28px, auto);
  align-content: start;
  border-right: 1px solid rgba(33, 27, 22, 0.08);
  padding: 18px 20px 16px;
}

.mesh-summary-strip div:last-child {
  border-right: 0;
}

.mesh-summary-strip strong {
  display: flex;
  align-items: flex-end;
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mesh-summary-strip span,
.mesh-summary-strip em {
  display: block;
  line-height: 1.3;
}

.mesh-summary-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 880;
}

.mesh-summary-strip em {
  margin-top: 4px;
  color: rgba(100, 90, 80, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.mesh-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 14px;
  margin-bottom: 16px;
}

.mesh-topology-card,
.mesh-channel-card {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.mesh-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.mesh-card-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.mesh-card-head em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

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

.mesh-topology-grid article {
  min-width: 0;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 12px;
}

.mesh-topology-grid strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.mesh-topology-grid span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mesh-topology-grid i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6dc;
}

.mesh-topology-grid i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(109, 63, 209, 0.24));
}

.mesh-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mesh-channel-grid span {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0 9px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mesh-channel-grid .is-on {
  border-color: rgba(38, 114, 78, 0.18);
  background: rgba(38, 114, 78, 0.09);
  color: var(--green);
}

.mesh-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.mesh-search {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

.mesh-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mesh-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.mesh-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 5px;
}

.mesh-filter-bar button,
.mesh-pagination button,
.mesh-action-grid button {
  min-width: 0;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 880;
  cursor: pointer;
}

.mesh-filter-bar button {
  min-height: 34px;
  overflow: hidden;
  background: transparent;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mesh-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
}

.mesh-row-list {
  display: grid;
  gap: 8px;
}

.mesh-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.08fr) minmax(150px, 0.82fr) minmax(150px, 0.76fr) minmax(132px, 0.66fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(33, 27, 22, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 13px;
  color: inherit;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mesh-row:hover,
.mesh-row.is-selected {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.065);
}

.mesh-row.is-selected {
  box-shadow: 4px 0 0 rgba(109, 63, 209, 0.62) inset;
}

.mesh-row > span {
  min-width: 0;
  display: block;
}

.mesh-row strong,
.mesh-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mesh-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.mesh-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 760;
}

.mesh-pill {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.mesh-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.mesh-pill.is-good {
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.mesh-pill.is-warn {
  background: rgba(184, 121, 0, 0.12);
  color: var(--amber);
}

.mesh-pill.is-danger {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.mesh-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mesh-pagination div {
  display: flex;
  gap: 6px;
}

.mesh-pagination button,
.mesh-action-grid button {
  min-height: 32px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
}

.mesh-pagination button:hover,
.mesh-action-grid button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.mesh-empty {
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
  text-align: center;
}

.mesh-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

.mesh-detail-head h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.mesh-detail-risk,
.mesh-next-card {
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.68);
}

.mesh-detail-risk {
  margin: 12px 0;
  padding: 11px 12px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 760;
}

.mesh-detail-list {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.mesh-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.mesh-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.mesh-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 760;
}

.mesh-next-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.mesh-next-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.mesh-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mesh-action-grid button[data-mesh-action="fallback"],
.mesh-action-grid button[data-mesh-action="approval"],
.mesh-action-grid button[data-mesh-action="drain"] {
  border-color: rgba(255, 90, 44, 0.22);
  color: var(--accent);
}

.mesh-action-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 740;
}

@media (max-width: 1320px) {
  #mesh.mesh-workbench,
  .mesh-insight-grid {
    grid-template-columns: 1fr;
  }

  .mesh-detail-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .mesh-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mesh-summary-strip div {
    border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  }

  .mesh-summary-strip div:nth-child(2n),
  .mesh-summary-strip div:last-child {
    border-right: 0;
  }

  .mesh-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mesh-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.68fr);
  }
}

@media (max-width: 620px) {
  .mesh-operating-note,
  .mesh-search,
  .mesh-summary-strip,
  .mesh-filter-bar,
  .mesh-topology-grid,
  .mesh-channel-grid,
  .mesh-row,
  .mesh-detail-list div,
  .mesh-action-grid {
    grid-template-columns: 1fr;
  }

  .mesh-summary-strip div {
    border-right: 0;
  }

  .mesh-card-head,
  .mesh-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .mesh-pagination div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Connector Vault workbench */
#connectors.connector-workbench {
  grid-template-columns: minmax(0, 1.36fr) minmax(360px, 0.74fr);
  align-items: start;
}

.connector-main-panel,
.connector-detail-panel {
  min-width: 0;
  overflow: visible;
}

.connector-detail-panel {
  position: sticky;
  top: 24px;
}

.connector-operating-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 16px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.56);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.07), rgba(255, 255, 255, 0.78));
  padding: 14px 16px;
}

.connector-operating-note span,
.connector-card-head span,
.connector-next-card span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 920;
}

.connector-operating-note p {
  margin: 0;
  max-width: 90ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 730;
}

.connector-summary-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  overflow: visible;
  margin-bottom: 18px;
}

.connector-summary-primary,
.connector-summary-metric {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.connector-summary-primary {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 8px 22px;
  min-height: 112px;
  align-content: center;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.1), rgba(255, 255, 255, 0.82) 48%),
    rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.connector-summary-kicker,
.connector-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.connector-summary-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.connector-summary-kicker span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 920;
}

.connector-summary-kicker em {
  color: rgba(100, 90, 80, 0.68);
  font-size: 11px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 760;
}

.connector-summary-primary strong {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  color: var(--text);
  font-size: 34px;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.connector-summary-primary p {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  max-width: 68ch;
  color: rgba(33, 27, 22, 0.72);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 760;
}

.connector-summary-tags {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 4px;
}

.connector-summary-tags span {
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.06);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 820;
}

.connector-summary-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.connector-summary-metric {
  position: relative;
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 15px 13px;
  overflow: hidden;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.connector-summary-metric::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.42);
}

.connector-summary-metric.is-warn::before {
  background: rgba(184, 121, 0, 0.58);
}

.connector-summary-metric.is-danger::before {
  background: rgba(177, 55, 47, 0.58);
}

.connector-summary-metric:hover,
.connector-summary-metric.is-active {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(64, 46, 26, 0.07);
  transform: translateY(-1px);
}

.connector-summary-metric:active {
  transform: translateY(0);
}

.connector-summary-metric:focus-visible {
  outline: 2px solid rgba(109, 63, 209, 0.36);
  outline-offset: 3px;
}

.connector-summary-metric span {
  max-width: calc(100% - 14px);
  color: rgba(100, 90, 80, 0.76);
  font-size: 12px;
  line-height: 1.28;
  font-weight: 860;
}

.connector-summary-metric strong {
  margin: 9px 0 5px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.connector-summary-metric em {
  color: rgba(100, 90, 80, 0.72);
  font-size: 11.5px;
  line-height: 1.42;
  font-style: normal;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.connector-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
  gap: 14px;
  margin-bottom: 16px;
}

.connector-health-card,
.connector-scope-card {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.connector-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.connector-card-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.connector-card-head em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.connector-health-list {
  display: grid;
  gap: 10px;
}

.connector-health-list div {
  display: grid;
  grid-template-columns: minmax(84px, 0.65fr) minmax(90px, 1fr) 82px;
  gap: 10px;
  align-items: center;
}

.connector-health-list span,
.connector-health-list em {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connector-health-list em {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.connector-health-list i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6dc;
}

.connector-health-list i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(109, 63, 209, 0.24));
}

.connector-health-list i.is-warn::before {
  background: linear-gradient(90deg, var(--amber), rgba(184, 121, 0, 0.22));
}

.connector-health-list i.is-good::before {
  background: linear-gradient(90deg, var(--green), rgba(38, 114, 78, 0.18));
}

.connector-scope-grid {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
}

.connector-scope-grid span,
.connector-scope-grid strong {
  min-width: 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.07);
  padding: 10px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connector-scope-grid span {
  color: var(--muted);
  font-weight: 900;
}

.connector-scope-grid strong {
  color: var(--text);
  font-weight: 840;
}

.connector-scope-grid .is-warn {
  color: var(--amber);
}

.connector-scope-grid .is-danger {
  color: var(--red);
}

.connector-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.connector-search {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

.connector-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.connector-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.connector-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 5px;
}

.connector-filter-bar button,
.connector-pagination button,
.connector-action-grid button {
  min-width: 0;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 880;
  cursor: pointer;
}

.connector-filter-bar button {
  min-height: 34px;
  overflow: hidden;
  background: transparent;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connector-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
}

.connector-row-list {
  display: grid;
  gap: 8px;
}

.connector-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.08fr) minmax(150px, 0.84fr) minmax(142px, 0.72fr) minmax(122px, 0.58fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(33, 27, 22, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 13px;
  color: inherit;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.connector-row:hover,
.connector-row.is-selected {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.065);
}

.connector-row.is-selected {
  box-shadow: 4px 0 0 rgba(109, 63, 209, 0.62) inset;
}

.connector-row > span {
  min-width: 0;
  display: block;
}

.connector-row strong,
.connector-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connector-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.connector-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 760;
}

.connector-pill {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.connector-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.connector-pill.is-good {
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.connector-pill.is-warn {
  background: rgba(184, 121, 0, 0.12);
  color: var(--amber);
}

.connector-pill.is-danger {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.connector-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.connector-pagination div {
  display: flex;
  gap: 6px;
}

.connector-pagination button,
.connector-action-grid button {
  min-height: 32px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
}

.connector-pagination button:hover,
.connector-action-grid button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.connector-empty {
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
  text-align: center;
}

.connector-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

.connector-detail-head h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.connector-detail-risk,
.connector-next-card {
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.68);
}

.connector-detail-risk {
  margin: 12px 0;
  padding: 11px 12px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 760;
}

.connector-detail-list {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.connector-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.connector-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.connector-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 760;
}

.connector-next-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.connector-next-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.connector-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.connector-action-grid button[data-connector-action="reauth"],
.connector-action-grid button[data-connector-action="pause"],
.connector-action-grid button[data-connector-action="approval"] {
  border-color: rgba(255, 90, 44, 0.22);
  color: var(--accent);
}

.connector-action-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 740;
}

@media (max-width: 1320px) {
  #connectors.connector-workbench,
  .connector-insight-grid {
    grid-template-columns: 1fr;
  }

  .connector-detail-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .connector-summary-strip {
    grid-template-columns: 1fr;
  }

  .connector-summary-primary p {
    max-width: none;
  }

  .connector-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connector-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .connector-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.68fr);
  }
}

@media (max-width: 620px) {
  .connector-operating-note,
  .connector-search,
  .connector-summary-strip,
  .connector-summary-primary,
  .connector-summary-metrics,
  .connector-filter-bar,
  .connector-health-list div,
  .connector-scope-grid,
  .connector-row,
  .connector-detail-list div,
  .connector-action-grid {
    grid-template-columns: 1fr;
  }

  .connector-summary-kicker,
  .connector-summary-primary strong,
  .connector-summary-primary p,
  .connector-summary-tags {
    grid-column: auto;
    grid-row: auto;
  }

  .connector-card-head,
  .connector-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .connector-health-list em {
    text-align: left;
  }

  .connector-pagination div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Expert content workbench */
#experts.expert-workbench {
  grid-template-columns: minmax(0, 1.36fr) minmax(360px, 0.74fr);
  align-items: start;
}

.expert-main-panel,
.expert-detail-panel {
  min-width: 0;
  overflow: visible;
}

.expert-detail-panel {
  position: sticky;
  top: 24px;
}

.expert-operating-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 16px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.56);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.07), rgba(255, 255, 255, 0.78));
  padding: 14px 16px;
}

.expert-operating-note span,
.expert-card-head span,
.expert-next-card span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 920;
}

.expert-operating-note p {
  margin: 0;
  max-width: 90ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 730;
}

.expert-summary-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: visible;
  margin-bottom: 18px;
}

.expert-summary-primary,
.expert-summary-metric {
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.expert-summary-primary {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 8px 22px;
  min-height: 112px;
  align-content: center;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.1), rgba(255, 255, 255, 0.82) 48%),
    rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.expert-summary-kicker,
.expert-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.expert-summary-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.expert-summary-kicker span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 920;
}

.expert-summary-kicker em {
  color: rgba(100, 90, 80, 0.68);
  font-size: 11px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 760;
}

.expert-summary-primary strong {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  color: var(--text);
  font-size: 34px;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.expert-summary-primary p {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  max-width: 66ch;
  color: rgba(33, 27, 22, 0.72);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 760;
}

.expert-summary-tags {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 4px;
}

.expert-summary-tags span {
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.06);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 820;
}

.expert-summary-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.expert-summary-metric {
  position: relative;
  display: flex;
  min-height: 106px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 15px 13px;
  overflow: hidden;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.expert-summary-metric::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.42);
}

.expert-summary-metric.is-warn::before {
  background: rgba(184, 121, 0, 0.58);
}

.expert-summary-metric.is-danger::before {
  background: rgba(177, 55, 47, 0.58);
}

.expert-summary-metric:hover,
.expert-summary-metric.is-active {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(64, 46, 26, 0.07);
  transform: translateY(-1px);
}

.expert-summary-metric:active {
  transform: translateY(0);
}

.expert-summary-metric:focus-visible {
  outline: 2px solid rgba(109, 63, 209, 0.36);
  outline-offset: 3px;
}

.expert-summary-metric span {
  max-width: calc(100% - 14px);
  color: rgba(100, 90, 80, 0.76);
  font-size: 12px;
  line-height: 1.28;
  font-weight: 860;
}

.expert-summary-metric strong {
  margin: 9px 0 5px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.expert-summary-metric em {
  color: rgba(100, 90, 80, 0.72);
  font-size: 11.5px;
  line-height: 1.42;
  font-style: normal;
  font-weight: 760;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.expert-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 14px;
  margin-bottom: 16px;
}

.expert-flow-card,
.expert-quality-card {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.expert-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.expert-card-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.expert-card-head em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.expert-flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expert-flow-steps li {
  min-width: 0;
}

.expert-flow-steps button {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 12px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.expert-flow-steps button:hover,
.expert-flow-steps button.is-active {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(64, 46, 26, 0.065);
  transform: translateY(-1px);
}

.expert-flow-steps button:active {
  transform: translateY(0);
}

.expert-flow-steps button:focus-visible {
  outline: 2px solid rgba(109, 63, 209, 0.36);
  outline-offset: 3px;
}

.expert-flow-steps span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.expert-flow-steps strong {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.expert-flow-steps em {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  font-style: normal;
  font-weight: 740;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.expert-risk-list {
  display: grid;
  gap: 10px;
}

.expert-risk-list button {
  display: grid;
  grid-template-columns: minmax(104px, 0.72fr) minmax(90px, 1fr) 36px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 4px 5px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.expert-risk-list button:hover,
.expert-risk-list button.is-active {
  background: rgba(109, 63, 209, 0.055);
}

.expert-risk-list button:active {
  transform: translateY(1px);
}

.expert-risk-list button:focus-visible {
  outline: 2px solid rgba(109, 63, 209, 0.34);
  outline-offset: 2px;
}

.expert-risk-list span,
.expert-risk-list em {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-risk-list em {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.expert-risk-list i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6dc;
}

.expert-risk-list i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(109, 63, 209, 0.24));
}

.expert-risk-list i.is-warn::before {
  background: linear-gradient(90deg, var(--amber), rgba(184, 121, 0, 0.22));
}

.expert-risk-list i.is-danger::before {
  background: linear-gradient(90deg, var(--red), rgba(196, 63, 53, 0.18));
}

.expert-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.expert-search {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

.expert-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.expert-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.expert-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 5px;
}

.expert-filter-bar button,
.expert-pagination button,
.expert-action-grid button {
  min-width: 0;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 880;
  cursor: pointer;
}

.expert-filter-bar button {
  min-height: 34px;
  overflow: hidden;
  background: transparent;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
}

.expert-row-list {
  display: grid;
  gap: 8px;
}

.expert-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.08fr) minmax(150px, 0.84fr) minmax(142px, 0.72fr) minmax(122px, 0.58fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(33, 27, 22, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 13px;
  color: inherit;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.expert-row:hover,
.expert-row.is-selected {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.065);
}

.expert-row.is-selected {
  box-shadow: 4px 0 0 rgba(109, 63, 209, 0.62) inset;
}

.expert-row > span {
  min-width: 0;
  display: block;
}

.expert-row strong,
.expert-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.expert-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 760;
}

.expert-pill {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.expert-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.expert-pill.is-good {
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.expert-pill.is-warn {
  background: rgba(184, 121, 0, 0.12);
  color: var(--amber);
}

.expert-pill.is-danger {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.expert-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.expert-pagination div {
  display: flex;
  gap: 6px;
}

.expert-pagination button,
.expert-action-grid button {
  min-height: 32px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
}

.expert-pagination button:hover,
.expert-action-grid button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.expert-empty {
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
  text-align: center;
}

.expert-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

.expert-detail-head h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.expert-detail-risk,
.expert-next-card {
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.68);
}

.expert-detail-risk {
  margin: 12px 0;
  padding: 11px 12px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 760;
}

.expert-detail-list {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.expert-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.expert-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.expert-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 760;
}

.expert-next-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.expert-next-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.expert-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.expert-action-grid button[data-expert-action="review"],
.expert-action-grid button[data-expert-action="publish"],
.expert-action-grid button[data-expert-action="rollback"] {
  border-color: rgba(255, 90, 44, 0.22);
  color: var(--accent);
}

.expert-action-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 740;
}

@media (max-width: 1320px) {
  #experts.expert-workbench,
  .expert-insight-grid {
    grid-template-columns: 1fr;
  }

  .expert-detail-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .expert-summary-strip {
    grid-template-columns: 1fr;
  }

  .expert-summary-primary p {
    max-width: none;
  }

  .expert-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expert-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expert-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.68fr);
  }
}

@media (max-width: 620px) {
  .expert-operating-note,
  .expert-search,
  .expert-summary-strip,
  .expert-summary-primary,
  .expert-summary-metrics,
  .expert-flow-steps,
  .expert-filter-bar,
  .expert-risk-list button,
  .expert-row,
  .expert-detail-list div,
  .expert-action-grid {
    grid-template-columns: 1fr;
  }

  .expert-summary-kicker,
  .expert-summary-primary strong,
  .expert-summary-primary p,
  .expert-summary-tags {
    grid-column: auto;
    grid-row: auto;
  }

  .expert-flow-steps button {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .expert-card-head,
  .expert-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .expert-risk-list em {
    text-align: left;
  }

  .expert-pagination div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Workflow automation workbench */
#automation.automation-workbench {
  grid-template-columns: minmax(0, 1.36fr) minmax(360px, 0.74fr);
  align-items: start;
}

.automation-main-panel,
.automation-detail-panel {
  min-width: 0;
  overflow: visible;
}

.automation-detail-panel {
  position: sticky;
  top: 24px;
}

.automation-operating-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 16px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.56);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.07), rgba(255, 255, 255, 0.78));
  padding: 14px 16px;
}

.automation-operating-note span,
.automation-card-head span,
.automation-next-card span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 920;
}

.automation-operating-note p {
  margin: 0;
  max-width: 92ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 730;
}

.automation-summary-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.automation-summary-primary,
.automation-summary-metric {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.automation-summary-primary {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 8px 22px;
  min-height: 112px;
  align-content: center;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.1), rgba(255, 255, 255, 0.82) 48%),
    rgba(255, 255, 255, 0.74);
}

.automation-summary-kicker,
.automation-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.automation-summary-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.automation-summary-kicker span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 920;
}

.automation-summary-kicker em {
  color: rgba(100, 90, 80, 0.68);
  font-size: 11px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 760;
}

.automation-summary-primary strong {
  grid-column: 1;
  grid-row: 2;
  color: var(--text);
  font-size: 34px;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.automation-summary-primary p {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  max-width: 68ch;
  color: rgba(33, 27, 22, 0.72);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 760;
}

.automation-summary-tags {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 4px;
}

.automation-summary-tags span {
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.06);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 820;
}

.automation-summary-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.automation-summary-metric {
  position: relative;
  display: flex;
  min-height: 106px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 15px 13px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.automation-summary-metric::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.42);
}

.automation-summary-metric.is-warn::before {
  background: rgba(184, 121, 0, 0.58);
}

.automation-summary-metric.is-danger::before {
  background: rgba(177, 55, 47, 0.58);
}

.automation-summary-metric:hover,
.automation-summary-metric.is-active,
.automation-path-grid button:hover,
.automation-path-grid button.is-active {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(64, 46, 26, 0.07);
  transform: translateY(-1px);
}

.automation-summary-metric:active,
.automation-path-grid button:active {
  transform: translateY(0);
}

.automation-summary-metric:focus-visible,
.automation-path-grid button:focus-visible {
  outline: 2px solid rgba(109, 63, 209, 0.36);
  outline-offset: 3px;
}

.automation-summary-metric span {
  max-width: calc(100% - 14px);
  color: rgba(100, 90, 80, 0.76);
  font-size: 12px;
  line-height: 1.28;
  font-weight: 860;
}

.automation-summary-metric strong {
  margin: 9px 0 5px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.automation-summary-metric em {
  color: rgba(100, 90, 80, 0.72);
  font-size: 11.5px;
  line-height: 1.42;
  font-style: normal;
  font-weight: 760;
  word-break: normal;
  hyphens: none;
}

.automation-runway {
  margin-bottom: 16px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.automation-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.automation-card-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.automation-card-head em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.automation-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.automation-path-grid button {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 10px;
  background: rgba(255, 250, 244, 0.66);
  padding: 12px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.automation-path-grid span {
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
  padding: 6px 7px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.automation-path-grid strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.automation-path-grid em {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.38;
  font-style: normal;
  font-weight: 740;
}

.automation-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.automation-search {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

.automation-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.automation-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.automation-filter-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 5px;
}

.automation-filter-bar button,
.automation-pagination button,
.automation-action-grid button {
  min-height: 32px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
}

.automation-filter-bar button {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.automation-filter-bar button.is-active {
  background: var(--text);
  color: #fff;
}

.automation-filter-bar button:hover,
.automation-pagination button:hover,
.automation-action-grid button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.automation-row-list {
  display: grid;
  gap: 8px;
}

.automation-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(140px, 0.72fr) minmax(130px, 0.62fr) minmax(120px, 0.62fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.automation-row:hover,
.automation-row.is-selected {
  border-color: rgba(109, 63, 209, 0.32);
  background: rgba(109, 63, 209, 0.055);
}

.automation-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.automation-row strong,
.automation-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.automation-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 760;
}

.automation-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 860;
}

.automation-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.automation-pill.is-good {
  background: rgba(38, 114, 78, 0.08);
  color: var(--green);
}

.automation-pill.is-warn {
  background: rgba(184, 121, 0, 0.1);
  color: var(--amber);
}

.automation-pill.is-danger {
  background: rgba(177, 55, 47, 0.09);
  color: var(--red);
}

.automation-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.automation-pagination div {
  display: flex;
  gap: 6px;
}

.automation-empty {
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
  text-align: center;
}

.automation-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

.automation-detail-head h3 {
  margin: 3px 0 0;
  overflow-wrap: normal;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.automation-detail-risk,
.automation-next-card {
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.68);
}

.automation-detail-risk {
  margin: 12px 0;
  padding: 11px 12px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 760;
}

.automation-detail-list {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.automation-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.automation-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.automation-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 760;
}

.automation-next-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.automation-next-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.automation-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.automation-action-grid button[data-automation-action="pause"],
.automation-action-grid button[data-automation-action="approval"] {
  border-color: rgba(255, 90, 44, 0.22);
  color: var(--accent);
}

.automation-action-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 740;
}

@media (max-width: 1320px) {
  #automation.automation-workbench {
    grid-template-columns: 1fr;
  }

  .automation-detail-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .automation-summary-primary,
  .automation-summary-strip,
  .automation-summary-metrics {
    grid-template-columns: 1fr;
  }

  .automation-summary-primary p {
    max-width: none;
  }

  .automation-path-grid,
  .automation-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.68fr);
  }
}

@media (max-width: 620px) {
  .automation-operating-note,
  .automation-search,
  .automation-summary-primary,
  .automation-summary-metrics,
  .automation-path-grid,
  .automation-filter-bar,
  .automation-row,
  .automation-detail-list div,
  .automation-action-grid {
    grid-template-columns: 1fr;
  }

  .automation-summary-kicker,
  .automation-summary-primary strong,
  .automation-summary-primary p,
  .automation-summary-tags {
    grid-column: auto;
    grid-row: auto;
  }

  .automation-card-head,
  .automation-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-pagination div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Usage statistics workbench */
#billing.usage-workbench {
  grid-template-columns: minmax(0, 1.36fr) minmax(360px, 0.74fr);
  align-items: start;
}

.usage-main-panel,
.usage-detail-panel {
  min-width: 0;
  overflow: visible;
}

.usage-detail-panel {
  position: sticky;
  top: 24px;
}

.usage-operating-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 16px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.56);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.07), rgba(255, 255, 255, 0.78));
  padding: 14px 16px;
}

.usage-operating-note span,
.usage-card-head span,
.usage-note-card span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 920;
}

.usage-operating-note p {
  margin: 0;
  max-width: 90ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 730;
}

.usage-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
}

.usage-summary-strip div {
  min-height: 116px;
  display: grid;
  grid-template-rows: 30px 38px minmax(28px, auto);
  align-content: start;
  border-right: 1px solid rgba(33, 27, 22, 0.08);
  padding: 18px 24px 16px;
}

.usage-summary-strip div:last-child {
  border-right: 0;
}

.usage-summary-strip strong {
  display: flex;
  align-items: flex-end;
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.usage-summary-strip span,
.usage-summary-strip em {
  display: block;
  line-height: 1.3;
}

.usage-summary-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 880;
}

.usage-summary-strip em {
  margin-top: 4px;
  color: rgba(100, 90, 80, 0.72);
  font-size: 11px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 760;
}

.usage-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 14px;
  margin-bottom: 16px;
}

.usage-trend-card,
.usage-mix-card {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.usage-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.usage-card-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.usage-card-head em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.usage-window-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 4px;
}

.usage-window-switch button {
  min-width: 0;
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.usage-window-switch button.is-active {
  background: var(--text);
  color: #fffaf4;
}

.usage-trend-chart {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  border-radius: 9px;
  background:
    linear-gradient(rgba(33, 27, 22, 0.055) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(255, 250, 244, 0.7);
  padding: 14px 12px 10px;
}

.usage-trend-chart i {
  min-width: 0;
  height: var(--h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(109, 63, 209, 0.72), rgba(109, 63, 209, 0.2));
  color: var(--muted);
  font-style: normal;
}

.usage-trend-chart i.is-warn {
  background: linear-gradient(180deg, rgba(184, 121, 0, 0.72), rgba(184, 121, 0, 0.18));
}

.usage-trend-chart i.is-live {
  background: linear-gradient(180deg, rgba(38, 114, 78, 0.74), rgba(38, 114, 78, 0.18));
}

.usage-trend-chart span {
  transform: translateY(22px);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 820;
  white-space: nowrap;
}

.usage-mix-list {
  display: grid;
  gap: 10px;
}

.usage-mix-list div {
  display: grid;
  grid-template-columns: minmax(118px, 0.92fr) minmax(86px, 1fr) 72px;
  gap: 10px;
  align-items: center;
}

.usage-mix-list span,
.usage-mix-list em {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-mix-list em {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.usage-mix-list i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6dc;
}

.usage-mix-list i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), rgba(109, 63, 209, 0.28));
}

.usage-mix-list i.is-warn::before {
  background: linear-gradient(90deg, var(--amber), rgba(184, 121, 0, 0.22));
}

.usage-mix-list i.is-good::before {
  background: linear-gradient(90deg, var(--green), rgba(38, 114, 78, 0.18));
}

.usage-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.usage-search {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

.usage-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.usage-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.usage-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 5px;
}

.usage-filter-bar button,
.usage-pagination button,
.usage-action-grid button {
  min-width: 0;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 880;
  cursor: pointer;
}

.usage-filter-bar button {
  min-height: 34px;
  overflow: hidden;
  background: transparent;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
}

.usage-row-list {
  display: grid;
  gap: 8px;
}

.usage-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1.12fr) minmax(128px, 0.76fr) minmax(116px, 0.62fr) minmax(164px, 0.9fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(33, 27, 22, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 13px;
  color: inherit;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.usage-row:hover,
.usage-row.is-selected {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.065);
}

.usage-row.is-selected {
  box-shadow: 4px 0 0 rgba(109, 63, 209, 0.62) inset;
}

.usage-row > span {
  min-width: 0;
  display: block;
}

.usage-row strong,
.usage-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.usage-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 760;
}

.usage-pill {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.usage-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.usage-pill.is-good {
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.usage-pill.is-warn {
  background: rgba(184, 121, 0, 0.12);
  color: var(--amber);
}

.usage-pill.is-danger {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.usage-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.usage-pagination div {
  display: flex;
  gap: 6px;
}

.usage-pagination button,
.usage-action-grid button {
  min-height: 32px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
}

.usage-pagination button:hover,
.usage-action-grid button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.usage-empty {
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
  text-align: center;
}

.usage-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

.usage-detail-head h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.usage-detail-risk,
.usage-note-card,
.usage-quota-card {
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.68);
}

.usage-detail-risk {
  margin: 12px 0;
  padding: 11px 12px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 760;
}

.usage-detail-list {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.usage-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.usage-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.usage-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 760;
}

.usage-quota-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.usage-quota-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.usage-quota-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.usage-quota-card strong {
  color: var(--text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.usage-quota-card i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6dc;
}

.usage-quota-card b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-2), var(--blue));
}

.usage-note-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.usage-note-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.usage-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.usage-action-grid button[data-usage-action="approval"],
.usage-action-grid button[data-usage-action="limit"] {
  border-color: rgba(255, 90, 44, 0.22);
  color: var(--accent);
}

.usage-action-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 740;
}

@media (max-width: 1320px) {
  #billing.usage-workbench,
  .usage-insight-grid {
    grid-template-columns: 1fr;
  }

  .usage-detail-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .usage-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-summary-strip div {
    border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  }

  .usage-summary-strip div:nth-child(2n),
  .usage-summary-strip div:last-child {
    border-right: 0;
  }

  .usage-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .usage-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(118px, 0.65fr);
  }
}

@media (max-width: 620px) {
  .usage-operating-note,
  .usage-search,
  .usage-summary-strip,
  .usage-filter-bar,
  .usage-row,
  .usage-mix-list div,
  .usage-detail-list div,
  .usage-action-grid {
    grid-template-columns: 1fr;
  }

  .usage-summary-strip div {
    border-right: 0;
  }

  .usage-card-head,
  .usage-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .usage-window-switch,
  .usage-pagination div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .usage-pagination div {
    display: grid;
  }

  .usage-trend-chart {
    gap: 6px;
    height: 166px;
    padding-inline: 8px;
  }

  .usage-trend-chart span {
    font-size: 9.5px;
  }

  .usage-mix-list em {
    text-align: left;
  }
}

/* Request logs workbench */
#api-keys.ops-grid.lower.is-single-card:has(#logs:not([hidden])) {
  grid-template-columns: minmax(0, 1fr);
}

#logs.logs-workbench {
  overflow: visible;
  padding: 30px;
}

#logs .panel-heading {
  margin-bottom: 18px;
}

#logs .panel-heading h2 {
  font-size: 24px;
  line-height: 1.16;
}

.logs-operating-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 16px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.56);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.07), rgba(255, 255, 255, 0.78));
  padding: 14px 16px;
}

.logs-operating-note span {
  color: var(--blue);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 920;
}

.logs-operating-note p {
  margin: 0;
  max-width: 88ch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 730;
}

.logs-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
}

.logs-summary-strip div {
  min-height: 72px;
  display: grid;
  align-content: center;
  border-right: 1px solid rgba(33, 27, 22, 0.08);
  padding: 12px 14px;
}

.logs-summary-strip div:last-child {
  border-right: 0;
}

.logs-summary-strip strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.logs-summary-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 850;
}

.logs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.74fr);
  gap: 18px;
  align-items: start;
}

.logs-list-panel,
.logs-detail-panel {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.logs-list-panel {
  padding: 14px;
}

.logs-detail-panel {
  position: sticky;
  top: 24px;
  padding: 16px;
}

.logs-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.logs-search {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

.logs-search span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.logs-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.logs-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 5px;
}

.logs-filter-bar button {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 9px;
  overflow: hidden;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logs-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
}

.logs-health-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 12px;
}

.logs-health-card span,
.logs-trace-card span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 920;
}

.logs-health-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 820;
}

.logs-bars {
  margin: 0;
}

.logs-bars span {
  min-height: 38px;
}

.logs-bars .is-danger {
  background: var(--red);
}

.request-log-list {
  display: grid;
  gap: 8px;
}

.request-log-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.88fr) minmax(170px, 1fr) minmax(150px, 0.92fr) minmax(112px, 0.58fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(33, 27, 22, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 13px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.request-log-row:hover,
.request-log-row.is-selected {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.065);
}

.request-log-row.is-selected {
  box-shadow: 4px 0 0 rgba(109, 63, 209, 0.62) inset;
}

.request-log-row > span {
  min-width: 0;
  display: block;
}

.request-log-row strong,
.request-log-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-log-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.request-log-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 760;
}

.log-status {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.request-log-row .log-status {
  margin-bottom: 7px;
}

.log-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.log-status.is-good {
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.log-status.is-warn {
  background: rgba(184, 121, 0, 0.12);
  color: var(--amber);
}

.log-status.is-danger {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.logs-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.logs-pagination div {
  display: flex;
  gap: 6px;
}

.logs-pagination button {
  min-height: 30px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.logs-empty {
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.66);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
  text-align: center;
}

.logs-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

.logs-detail-head h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.logs-detail-copy {
  margin: 12px 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 250, 244, 0.68);
  padding: 11px 12px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 760;
}

.logs-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.logs-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.logs-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.logs-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 760;
}

.logs-trace-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.68);
  padding: 12px;
}

.logs-trace-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.logs-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.logs-action-grid button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0 10px;
  overflow: hidden;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logs-action-grid button:hover,
.logs-pagination button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.logs-action-grid button[data-log-action="approval"] {
  border-color: rgba(255, 90, 44, 0.22);
  color: var(--accent);
}

.logs-action-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 740;
}

@media (max-width: 1320px) {
  .logs-layout {
    grid-template-columns: 1fr;
  }

  .logs-detail-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .logs-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logs-summary-strip div {
    border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  }

  .logs-summary-strip div:nth-child(2n),
  .logs-summary-strip div:last-child {
    border-right: 0;
  }

  .logs-health-card,
  .request-log-row {
    grid-template-columns: 1fr;
  }

  .logs-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #logs.logs-workbench {
    padding: 22px;
  }

  .logs-operating-note,
  .logs-search,
  .logs-summary-strip,
  .logs-filter-bar,
  .logs-detail-list div,
  .logs-action-grid {
    grid-template-columns: 1fr;
  }

  .logs-summary-strip div {
    border-right: 0;
  }

  .logs-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .logs-pagination div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* API Key management final workbench */
#api-keys.ops-grid.lower.is-single-card {
  grid-template-columns: minmax(0, 1fr);
}

#api-keys .api-key-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: start;
  overflow: visible;
}

#api-keys .api-key-workbench > .panel-heading,
#api-keys .api-key-operating-note,
#api-keys .api-key-summary-strip,
#api-keys .api-key-domain-tabs,
#api-keys .api-key-domain-panel {
  grid-column: 1;
  min-width: 0;
}

#api-keys .api-key-operation-page {
  grid-column: 2;
  grid-row: 1 / span 7;
  align-self: start;
  position: sticky;
  top: 18px;
  margin-top: 0;
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
}

.api-key-operating-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: -2px 0 14px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.58);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.075), rgba(255, 255, 255, 0.76));
  padding: 12px 14px;
}

.api-key-operating-note span {
  color: var(--blue);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 920;
}

.api-key-operating-note p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 720;
}

#api-keys .api-key-summary-strip {
  overflow: hidden;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

#api-keys .api-key-summary-strip div {
  min-height: 62px;
  display: grid;
  align-content: center;
  border: 0;
  border-right: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 0;
  background: transparent;
  padding: 10px 12px;
}

#api-keys .api-key-summary-strip div:last-child {
  border-right: 0;
}

#api-keys .api-key-summary-strip strong {
  font-size: 20px;
  line-height: 1;
}

#api-keys .api-key-summary-strip span {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.25;
}

#api-keys .api-key-domain-tabs {
  width: fit-content;
  margin-bottom: 12px;
}

#api-keys .api-key-search-row {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

#api-keys .api-key-search {
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 42px;
}

#api-keys .api-key-filter-group {
  width: 100%;
  flex-wrap: wrap;
  gap: 5px;
}

#api-keys .api-key-filter-group button {
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

#api-keys .api-key-note {
  margin: 0 0 10px;
  max-width: 78ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 720;
}

#api-keys .api-key-table-wrap {
  overflow: hidden;
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.76);
}

#api-keys .api-key-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#api-keys .api-key-table th,
#api-keys .api-key-table td {
  border-right: 0;
  padding: 11px 12px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  vertical-align: middle;
}

#api-keys .api-key-table th {
  background: rgba(109, 63, 209, 0.055);
  color: rgba(89, 82, 76, 0.88);
  font-size: 11px;
  line-height: 1.25;
}

#api-keys .api-key-table td {
  font-size: 12px;
  line-height: 1.38;
}

#api-keys .api-key-table th:last-child,
#api-keys .api-key-table td.api-key-actions {
  display: none !important;
}

#api-keys .customer-key-table th:nth-child(1),
#api-keys .customer-key-table td:nth-child(1) {
  width: 26%;
}

#api-keys .customer-key-table th:nth-child(2),
#api-keys .customer-key-table td:nth-child(2) {
  width: 18%;
}

#api-keys .customer-key-table th:nth-child(3),
#api-keys .customer-key-table td:nth-child(3) {
  width: 14%;
}

#api-keys .customer-key-table th:nth-child(4),
#api-keys .customer-key-table td:nth-child(4),
#api-keys .customer-key-table th:nth-child(5),
#api-keys .customer-key-table td:nth-child(5) {
  width: 12%;
}

#api-keys .provider-key-table th:nth-child(1),
#api-keys .provider-key-table td:nth-child(1) {
  width: 30%;
}

#api-keys .provider-key-table th:nth-child(2),
#api-keys .provider-key-table td:nth-child(2) {
  width: 28%;
}

#api-keys .provider-key-table th:nth-child(3),
#api-keys .provider-key-table td:nth-child(3),
#api-keys .provider-key-table th:nth-child(4),
#api-keys .provider-key-table td:nth-child(4) {
  width: 14%;
}

#api-keys .api-key-name strong,
#api-keys .api-key-name em,
#api-keys .api-key-table code,
#api-keys .api-key-table td > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#api-keys .api-key-name strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.28;
}

#api-keys .api-key-name em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.32;
}

#api-keys .api-key-row.is-selected td:first-child {
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.68) inset;
}

#api-keys .api-key-subpage-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border-bottom-color: rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

#api-keys .api-key-subpage-head h3 {
  font-size: 21px;
  line-height: 1.14;
}

#api-keys .api-key-subpage-head span {
  max-width: none;
  font-size: 12.5px;
  line-height: 1.45;
}

#api-keys .api-key-subpage-state {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.68);
  padding: 10px;
  text-align: left;
}

#api-keys .api-key-subpage-state strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

#api-keys .api-key-subpage-state em,
#api-keys .api-key-subpage-state b {
  margin-top: 0;
}

#api-keys .api-key-subpage-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

#api-keys .api-key-operation-page .api-key-detail-list div {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
}

#api-keys .api-key-detail-list dd {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.38;
}

#api-keys .api-key-operation-card {
  order: -1;
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 250, 244, 0.72);
  padding: 12px;
}

#api-keys .api-key-operation-head {
  align-items: flex-start;
}

.api-key-action-shelf {
  margin-top: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.api-key-action-shelf [data-key-action-group][hidden] {
  display: none !important;
}

.api-key-action-shelf span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 900;
}

.api-key-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.api-key-command-grid button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(33, 27, 22, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0 10px;
  overflow: hidden;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-key-command-grid button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.api-key-command-grid button[data-key-action="熔断"],
.api-key-command-grid button[data-key-action="禁用"],
.api-key-command-grid button[data-key-action="删除"] {
  border-color: rgba(196, 63, 53, 0.18);
  color: var(--red);
}

#api-keys .api-key-form-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

#api-keys .api-key-detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

#api-keys .api-key-detail-actions button {
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#api-keys .api-key-action-result {
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1240px) {
  #api-keys .api-key-workbench {
    grid-template-columns: 1fr;
  }

  #api-keys .api-key-operation-page {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .api-key-operating-note,
  #api-keys .api-key-search,
  #api-keys .api-key-detail-actions {
    grid-template-columns: 1fr;
  }

  #api-keys .api-key-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #api-keys .api-key-summary-strip div:nth-child(2) {
    border-right: 0;
  }

  #api-keys .api-key-summary-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  }

  #api-keys .api-key-domain-tabs,
  #api-keys .api-key-filter-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  #api-keys .api-key-table {
    min-width: 0;
    display: block !important;
  }

  #api-keys .api-key-table thead {
    display: none;
  }

  #api-keys .api-key-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  #api-keys .api-key-table tr {
    display: grid !important;
    grid-template-columns: 1fr;
    border: 1px solid rgba(33, 27, 22, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
  }

  #api-keys .api-key-table td,
  #api-keys .api-key-table td.api-key-name {
    display: block !important;
    width: 100% !important;
    border-right: 0;
    padding: 8px 10px;
  }

  #api-keys .api-key-table td.api-key-actions {
    display: none !important;
  }

  #api-keys .api-key-table td:not(.api-key-name):not(.api-key-actions)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
  }

  #api-keys .api-key-table td:nth-child(2)::before { content: "Key 名称"; }
  #api-keys .api-key-table td:nth-child(3)::before { content: "Prefix"; }
  #api-keys .api-key-table td:nth-child(4)::before { content: "状态"; }
  #api-keys .api-key-table td:nth-child(5)::before { content: "熔断 / 探测"; }
  #api-keys .api-key-table td:nth-child(6)::before { content: "最后使用"; }

  #api-keys .provider-key-table td:nth-child(2)::before { content: "Vault ID"; }
  #api-keys .provider-key-table td:nth-child(3)::before { content: "类型"; }
  #api-keys .provider-key-table td:nth-child(4)::before { content: "状态"; }
  #api-keys .provider-key-table td:nth-child(5)::before { content: "轮换 / 探测"; }
}

@media (max-width: 520px) {
  #api-keys .api-key-workbench {
    gap: 14px;
  }

  .api-key-command-grid {
    grid-template-columns: 1fr;
  }
}

/* Approval center breathing room pass */
#approvals.approval-workbench {
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.68fr);
  gap: 24px;
  align-items: start;
}

#approvals .approval-queue-panel,
#approvals .approval-detail-panel {
  padding: 30px;
}

#approvals .approval-queue-panel .panel-heading,
#approvals .approval-detail-panel .panel-heading {
  margin-bottom: 22px;
}

#approvals .approval-queue-panel h2 {
  font-size: 25px;
  line-height: 1.15;
}

#approvals .approval-detail-panel h2 {
  font-size: 21px;
  line-height: 1.18;
}

#approvals .approval-operating-note {
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 24px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-left: 3px solid rgba(109, 63, 209, 0.5);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.065), rgba(255, 255, 255, 0.78));
  padding: 18px 22px 18px 24px;
}

#approvals .approval-operating-note strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.42;
  font-weight: 900;
}

#approvals .approval-operating-note span {
  max-width: 82ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
  font-weight: 760;
}

#approvals .approval-flow-rail {
  gap: 0;
  margin: 0 0 26px;
  padding: 20px 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
}

#approvals .approval-flow-rail li {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 7px 13px;
  min-height: 76px;
  align-content: start;
  padding: 0 26px 0 0;
}

#approvals .approval-flow-rail li:not(:last-child)::after {
  top: 19px;
  right: 15px;
  width: 42px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.2), rgba(109, 63, 209, 0.04));
}

#approvals .approval-flow-rail i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 15px;
}

#approvals .approval-flow-rail strong {
  padding-top: 1px;
  font-size: 15px;
  line-height: 1.28;
}

#approvals .approval-flow-rail span {
  grid-column: 2;
  max-width: 16ch;
  font-size: 12.5px;
  line-height: 1.48;
}

#approvals .approval-filter-bar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  border-radius: 11px;
  padding: 8px;
}

#approvals .approval-filter-bar button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  gap: 9px;
  justify-content: center;
  align-content: center;
  align-items: baseline;
  border-radius: 10px;
  padding: 0 14px;
}

#approvals .approval-filter-bar strong {
  font-size: 22px;
  line-height: 1;
}

#approvals .approval-filter-bar span {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

#approvals .approval-context-line {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 820;
}

#approvals .approval-table-wrap {
  overflow: hidden;
  border-color: rgba(33, 27, 22, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

#approvals .approval-table th:nth-child(1),
#approvals .approval-table td:nth-child(1) {
  width: 34%;
}

#approvals .approval-table th:nth-child(2),
#approvals .approval-table td:nth-child(2) {
  width: 14%;
}

#approvals .approval-table th:nth-child(3),
#approvals .approval-table td:nth-child(3) {
  width: 19%;
}

#approvals .approval-table th:nth-child(4),
#approvals .approval-table td:nth-child(4) {
  width: 20%;
}

#approvals .approval-table th:nth-child(5),
#approvals .approval-table td:nth-child(5) {
  width: 13%;
}

#approvals .approval-table th,
#approvals .approval-table td {
  padding: 17px 18px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#approvals .approval-table th {
  padding-top: 15px;
  padding-bottom: 15px;
  background: rgba(255, 250, 244, 0.9);
  font-size: 12px;
}

#approvals .approval-row strong {
  font-size: 15px;
  line-height: 1.32;
}

#approvals .approval-row span {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.38;
}

#approvals .approval-status {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 13px;
  font-size: 12px;
}

#approvals .approval-row:hover td,
#approvals .approval-row.is-selected td {
  background: rgba(109, 63, 209, 0.075);
}

#approvals .approval-row.is-selected td:first-child {
  box-shadow: 4px 0 0 rgba(109, 63, 209, 0.58) inset;
}

#approvals .approval-detail-panel {
  top: 24px;
  border-color: rgba(33, 27, 22, 0.1);
}

#approvals .approval-detail-copy {
  margin: -6px 0 18px;
  font-size: 13px;
  line-height: 1.6;
}

#approvals .approval-detail-list div {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
}

#approvals .approval-detail-list dt {
  font-size: 11.5px;
}

#approvals .approval-detail-list dd {
  font-size: 13px;
  line-height: 1.52;
}

#approvals .approval-stage-rail {
  gap: 9px;
  margin-top: 18px;
}

#approvals .approval-stage-rail li {
  min-height: 86px;
  border-radius: 10px;
  padding: 12px;
}

#approvals .approval-storage-note {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.55;
}

#approvals .approval-feedback {
  margin-top: 18px;
  gap: 8px;
  font-size: 12px;
}

#approvals .approval-feedback textarea {
  min-height: 112px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.55;
}

#approvals .approval-action-zone {
  margin-top: 16px;
}

#approvals .approval-submitter-actions,
#approvals .approval-actions {
  gap: 9px;
}

#approvals .approval-submitter-actions button,
#approvals .approval-actions button {
  min-height: 40px;
  border-radius: 9px;
  font-size: 12.5px;
}

#approvals .approval-result {
  margin-top: 16px;
  padding-top: 13px;
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 1320px) {
  #approvals.approval-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  #approvals .approval-detail-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  #approvals .approval-flow-rail,
  #approvals .approval-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #approvals .approval-flow-rail li:not(:last-child)::after {
    display: none;
  }

  #approvals .approval-context-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  #approvals .approval-queue-panel,
  #approvals .approval-detail-panel {
    padding: 22px;
  }

  #approvals .approval-operating-note {
    padding: 16px;
  }

  #approvals .approval-flow-rail,
  #approvals .approval-filter-bar,
  #approvals .approval-stage-rail,
  #approvals .approval-actions,
  #approvals .approval-submitter-actions,
  #approvals .approval-detail-list div {
    grid-template-columns: 1fr;
  }

  #approvals .approval-filter-bar button {
    justify-content: start;
  }
}

/* Model resource pool final cascade */
.ops-grid.model-pool-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 18px;
  align-items: start;
}

.model-pool-panel,
.model-health-panel {
  overflow: hidden;
}

.model-pool-panel .panel-heading,
.model-health-panel .panel-heading {
  margin-bottom: 14px;
}

.model-pool-panel h2,
.model-health-panel h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.pool-operating-note,
.provider-control-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.pool-operating-note {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  border-left: 3px solid rgba(109, 63, 209, 0.5);
  padding: 2px 0 2px 12px;
}

.pool-operating-note strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.provider-control-note {
  margin: -4px 0 12px;
}

.model-pool-layout .pool-summary-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.model-pool-layout .pool-summary-strip div {
  min-height: 64px;
  display: grid;
  align-content: center;
  border-color: rgba(33, 27, 22, 0.08);
  padding: 10px;
}

.model-pool-layout .pool-summary-strip strong {
  font-size: 20px;
  line-height: 1;
}

.model-pool-layout .pool-summary-strip span {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.25;
}

.model-pool-layout .pool-filter-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  margin-bottom: 12px;
  border-color: rgba(33, 27, 22, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 5px;
}

.model-pool-layout .pool-filter-bar button {
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .pool-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
  box-shadow: none;
}

.model-pool-layout .supplier-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.model-pool-layout .supplier-row {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(116px, 0.72fr) minmax(112px, 0.62fr) minmax(82px, 0.42fr);
  gap: 12px;
  align-items: center;
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  overflow: hidden;
}

.model-pool-layout .supplier-row:hover {
  transform: none;
}

.model-pool-layout .supplier-row.is-selected {
  border-color: rgba(109, 63, 209, 0.3);
  background: rgba(109, 63, 209, 0.08);
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.68) inset;
}

.model-pool-layout .supplier-row span {
  min-width: 0;
}

.model-pool-layout .supplier-row strong,
.model-pool-layout .supplier-row b {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .supplier-main strong {
  font-size: 13px;
}

.model-pool-layout .supplier-row em {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .supplier-row > span:nth-child(4) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.model-pool-layout .supplier-actions {
  display: none !important;
}

.model-health-panel {
  position: sticky;
  top: 96px;
}

.model-health-panel .selected-relay-card,
.model-health-panel .failover-stack-card,
.model-health-panel .manual-switch-card {
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.model-health-panel .selected-relay-card {
  padding: 14px;
  margin-bottom: 10px;
}

.model-health-panel .selected-relay-card span,
.model-health-panel .failover-stack-card > span,
.model-health-panel .manual-switch-card span {
  letter-spacing: 0;
  text-transform: none;
}

.model-health-panel .selected-relay-card strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.15;
}

.model-health-panel .selected-relay-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.model-health-panel .relay-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.model-health-panel .relay-detail-list div {
  min-height: 64px;
  padding: 10px;
}

.model-health-panel .relay-detail-list dt {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 850;
}

.model-health-panel .relay-detail-list dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.35;
}

.model-health-panel .failover-stack-card,
.model-health-panel .manual-switch-card {
  padding: 12px;
  margin-bottom: 10px;
}

.model-health-panel .failover-stack-card li {
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 8px 9px;
}

.model-health-panel .traffic-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.model-health-panel .manual-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.model-health-panel .traffic-options button,
.model-health-panel .manual-actions button {
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-health-panel .manual-switch-card em {
  font-size: 11.5px;
  line-height: 1.45;
}

.model-health-panel .probe-grid.compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 1320px) {
  .ops-grid.model-pool-layout {
    grid-template-columns: 1fr;
  }

  .model-health-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .model-pool-layout .pool-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .model-pool-layout .pool-filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .model-pool-layout .supplier-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(104px, 0.65fr) minmax(90px, 0.52fr);
  }

  .model-pool-layout .supplier-row > span:nth-child(4) {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .model-pool-layout .panel-actions,
  .model-pool-layout .pool-summary-strip,
  .model-pool-layout .pool-filter-bar,
  .model-pool-layout .supplier-row,
  .model-health-panel .relay-detail-list,
  .model-health-panel .traffic-options,
  .model-health-panel .manual-actions {
    grid-template-columns: 1fr;
  }

  .model-pool-layout .supplier-row > span:nth-child(4) {
    grid-column: auto;
  }
}

/* Model resource pool final redesign */
.ops-grid.model-pool-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 18px;
  align-items: start;
}

.model-pool-panel,
.model-health-panel {
  overflow: hidden;
}

.model-pool-panel .panel-heading,
.model-health-panel .panel-heading {
  margin-bottom: 14px;
}

.model-pool-panel h2,
.model-health-panel h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.pool-operating-note,
.provider-control-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.pool-operating-note {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  border-left: 3px solid rgba(109, 63, 209, 0.5);
  padding: 2px 0 2px 12px;
}

.pool-operating-note strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.provider-control-note {
  margin: -4px 0 12px;
}

.model-pool-layout .pool-summary-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.model-pool-layout .pool-summary-strip div {
  min-height: 64px;
  display: grid;
  align-content: center;
  border-color: rgba(33, 27, 22, 0.08);
  padding: 10px;
}

.model-pool-layout .pool-summary-strip strong {
  font-size: 20px;
  line-height: 1;
}

.model-pool-layout .pool-summary-strip span {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.25;
}

.model-pool-layout .pool-filter-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  margin-bottom: 12px;
  border-color: rgba(33, 27, 22, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 5px;
}

.model-pool-layout .pool-filter-bar button {
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 9px;
}

.model-pool-layout .pool-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
  box-shadow: none;
}

.model-pool-layout .supplier-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.model-pool-layout .supplier-row {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(116px, 0.72fr) minmax(112px, 0.62fr) minmax(82px, 0.42fr);
  gap: 12px;
  align-items: center;
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  overflow: hidden;
}

.model-pool-layout .supplier-row:hover {
  transform: none;
}

.model-pool-layout .supplier-row.is-selected {
  border-color: rgba(109, 63, 209, 0.3);
  background: rgba(109, 63, 209, 0.08);
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.68) inset;
}

.model-pool-layout .supplier-row span {
  min-width: 0;
}

.model-pool-layout .supplier-row strong,
.model-pool-layout .supplier-row b {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .supplier-main strong {
  font-size: 13px;
}

.model-pool-layout .supplier-row em {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .supplier-row > span:nth-child(4) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.model-pool-layout .supplier-actions {
  display: none !important;
}

.model-health-panel {
  position: sticky;
  top: 96px;
}

.model-health-panel .selected-relay-card,
.model-health-panel .failover-stack-card,
.model-health-panel .manual-switch-card {
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.model-health-panel .selected-relay-card {
  padding: 14px;
  margin-bottom: 10px;
}

.model-health-panel .selected-relay-card span,
.model-health-panel .failover-stack-card > span,
.model-health-panel .manual-switch-card span {
  letter-spacing: 0;
  text-transform: none;
}

.model-health-panel .selected-relay-card strong {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.model-health-panel .selected-relay-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.model-health-panel .relay-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.model-health-panel .relay-detail-list div {
  min-height: 64px;
  padding: 10px;
}

.model-health-panel .relay-detail-list dt {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 850;
}

.model-health-panel .relay-detail-list dd {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.model-health-panel .failover-stack-card,
.model-health-panel .manual-switch-card {
  padding: 12px;
  margin-bottom: 10px;
}

.model-health-panel .failover-stack-card li {
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 8px 9px;
}

.model-health-panel .traffic-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.model-health-panel .manual-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.model-health-panel .traffic-options button,
.model-health-panel .manual-actions button {
  min-width: 0;
  min-height: 32px;
  padding: 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-health-panel .manual-switch-card em {
  font-size: 11.5px;
  line-height: 1.45;
}

.model-health-panel .probe-grid.compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 1320px) {
  .ops-grid.model-pool-layout {
    grid-template-columns: 1fr;
  }

  .model-health-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .model-pool-layout .pool-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .model-pool-layout .pool-filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .model-pool-layout .supplier-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(104px, 0.65fr) minmax(90px, 0.52fr);
  }

  .model-pool-layout .supplier-row > span:nth-child(4) {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .model-pool-layout .panel-actions,
  .model-pool-layout .pool-summary-strip,
  .model-pool-layout .pool-filter-bar,
  .model-pool-layout .supplier-row,
  .model-health-panel .relay-detail-list,
  .model-health-panel .traffic-options,
  .model-health-panel .manual-actions {
    grid-template-columns: 1fr;
  }

  .model-pool-layout .supplier-row > span:nth-child(4) {
    grid-column: auto;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, #eefaf0, transparent 28%),
    radial-gradient(circle at 86% 8%, #efe8ff, transparent 26%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  border-radius: 8px;
  background: var(--blue);
  color: #051019;
  padding: 10px 12px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}

.admin-shell {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d121b 0%, #090d14 100%);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.02) inset;
}

.admin-brand {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.admin-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
}

.admin-brand em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: url("../assets/avatars/bird-logo.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 0 1px rgba(35, 47, 39, 0.08), 0 10px 22px rgba(35, 27, 20, 0.08);
}

.side-nav {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 26px 14px;
  overflow-y: auto;
}

.side-nav a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 15px;
  color: #c6cfdd;
  font-size: 15px;
  font-weight: 820;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: #4a5363;
  opacity: 0.72;
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.side-nav a:hover {
  background: rgba(116, 200, 255, 0.09);
  color: var(--text);
}

.side-nav a.is-active {
  background: rgba(116, 200, 255, 0.13);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(116, 200, 255, 0.26) inset;
}

.side-nav a.is-active::before {
  background: var(--blue);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(116, 200, 255, 0.13);
}

.sidebar-note {
  margin: auto 14px 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 33, 0.78);
}

.sidebar-note span,
.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 900;
}

.sidebar-note strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.sidebar-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-main {
  min-width: 0;
  padding: 0 30px 58px;
}

.admin-topbar {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 -30px 0;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 20, 0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 15;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-title strong {
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
}

.duty-chip {
  min-width: 0;
  max-width: 390px;
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 12px;
  box-shadow: 0 10px 26px rgba(38, 48, 41, 0.05);
}

.duty-chip span {
  color: var(--blue);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 920;
  white-space: nowrap;
}

.duty-chip strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duty-chip em {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-glyph {
  color: var(--blue);
  font-size: 27px;
  font-weight: 900;
}

.topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.topbar-tools button,
.balance-pill,
.account-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 17, 26, 0.72);
  color: #e8edf5;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.topbar-tools button:hover,
.balance-pill:hover {
  border-color: rgba(116, 200, 255, 0.42);
  background: rgba(116, 200, 255, 0.08);
}

.balance-pill {
  border-color: rgba(245, 192, 79, 0.54);
  color: var(--amber);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.account-pill {
  border-color: transparent;
  background: transparent;
  color: #eef3fb;
  padding-right: 0;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
  text-wrap: balance;
}

.page-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.6;
  text-wrap: pretty;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.search-box {
  width: min(320px, 34vw);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(12, 17, 26, 0.82);
}

.search-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.icon-button,
.primary-action,
.secondary-action,
.quick-actions button,
.segmented button,
.route-rules button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.icon-button {
  width: 42px;
  background: rgba(12, 17, 26, 0.82);
  border-color: var(--line);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-action {
  background: var(--blue);
  color: #06111c;
}

.secondary-action {
  background: rgba(12, 17, 26, 0.82);
  border-color: var(--line);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.architecture-band,
.metric-grid,
.ops-grid {
  margin-top: 24px;
}

.view-panel:not(.is-active) {
  display: none;
}

.view-panel.is-active {
  display: grid;
}

.ops-grid.lower.is-single-card {
  grid-template-columns: minmax(0, 1fr);
}

.admin-principle-rail {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.7fr) auto;
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
  border: 1px solid rgba(109, 63, 209, 0.18);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(109, 63, 209, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 244, 0.76));
  box-shadow: var(--shadow);
}

.admin-principle-rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--accent));
}

.principle-lead,
.principle-flow,
.principle-stamp {
  position: relative;
  z-index: 1;
}

.principle-lead {
  align-self: center;
}

.principle-lead span,
.principle-stamp span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.principle-lead strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.principle-lead p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.principle-flow {
  display: grid;
  gap: 0;
  padding: 2px 0;
}

.principle-flow article {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 13px;
}

.principle-flow article:last-child {
  padding-bottom: 0;
}

.principle-flow article:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: -1px;
  width: 1px;
  background: rgba(109, 63, 209, 0.18);
}

.principle-flow article > span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 63, 209, 0.18);
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.principle-flow strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.principle-flow p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.principle-stamp {
  align-self: center;
  min-width: 132px;
  border-left: 1px solid rgba(109, 63, 209, 0.14);
  padding-left: 16px;
}

.principle-stamp strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.architecture-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.architecture-band > div,
.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 26, 37, 0.94), rgba(15, 20, 30, 0.94));
  box-shadow: var(--shadow);
}

.architecture-band > div {
  min-height: 96px;
  padding: 18px;
}

.architecture-band span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture-band strong {
  display: block;
  margin-top: 9px;
  color: #e9eef7;
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  position: relative;
  display: block;
  padding: 16px;
  outline-offset: 3px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.24);
  box-shadow: 0 18px 44px rgba(38, 48, 41, 0.1);
}

.metric-card::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.metric-card:hover::after,
.metric-card:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--blue);
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-card em {
  display: block;
  margin-top: 9px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.35;
}

.metric-card b {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
}

.metric-card.is-warn em {
  color: var(--amber);
}

.overview-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.overview-dashboard .panel {
  min-height: 260px;
}

.wide-chart {
  grid-row: span 2;
}

.wide-chart .chart-canvas {
  flex: 1;
  min-height: 320px;
}

.chart-panel {
  display: flex;
  flex-direction: column;
}

.chart-canvas {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  padding: 18px 18px 34px 54px;
  background:
    linear-gradient(rgba(33, 27, 22, 0.055) 1px, transparent 1px) 0 0 / 100% 33.33%,
    rgba(255, 250, 244, 0.72);
}

.chart-axis {
  position: absolute;
  left: 16px;
  top: 18px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 820;
}

.bar-chart {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 196px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.bar-chart i {
  position: relative;
  display: block;
  height: var(--h);
  min-height: 24px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, rgba(109, 63, 209, 0.82), rgba(255, 90, 44, 0.68));
  box-shadow: 0 14px 28px rgba(109, 63, 209, 0.12);
}

.bar-chart i span {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.success-line {
  position: absolute;
  inset: 28px 20px 48px 62px;
  z-index: 2;
  width: calc(100% - 82px);
  height: calc(100% - 76px);
  overflow: visible;
  pointer-events: none;
}

.success-line polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(38, 114, 78, 0.18));
}

.success-line circle {
  fill: var(--green);
  stroke: #fffaf4;
  stroke-width: 3;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.chart-summary span {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chart-summary strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.chart-summary em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.chart-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.donut-chart {
  width: 136px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fffaf4 0 50%, transparent 51%),
    conic-gradient(var(--blue) 0 42%, var(--accent) 42% 73%, var(--amber) 73% 90%, var(--green) 90% 100%);
  box-shadow: inset 0 0 0 1px rgba(33, 27, 22, 0.08), 0 18px 36px rgba(38, 48, 41, 0.08);
}

.donut-wrap strong {
  display: block;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.donut-wrap span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.legend-list,
.incident-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.legend-list li,
.incident-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.legend-list strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.dot.deepseek {
  background: var(--blue);
}

.dot.gpt {
  background: var(--accent);
}

.dot.gemini {
  background: var(--amber);
}

.dot.local {
  background: var(--green);
}

.risk-bars {
  display: grid;
  gap: 13px;
}

.risk-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.risk-bars span,
.incident-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.risk-bars strong {
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.risk-bars i {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 27, 22, 0.08);
}

.risk-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--accent));
}

.incident-list {
  counter-reset: incident;
  gap: 12px;
}

.incident-list li {
  grid-template-columns: 28px minmax(0, 1fr);
  row-gap: 3px;
  align-items: start;
}

.incident-list li::before {
  counter-increment: incident;
  content: counter(incident, decimal-leading-zero);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(196, 63, 53, 0.08);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.incident-list strong {
  display: block;
  grid-column: 2;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.incident-list span {
  grid-column: 2;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.ops-grid.lower {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-grid.model-pool-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
}

.panel {
  min-width: 0;
  padding: 24px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading.compact {
  align-items: center;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.panel h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
  text-wrap: balance;
}

.segmented,
.route-rules {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 17, 0.62);
}

.segmented button,
.route-rules button {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.segmented button.is-active,
.route-rules button.is-active {
  background: var(--blue);
  color: #06111c;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: rgba(10, 14, 22, 0.52);
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr {
  cursor: pointer;
  transition: background 0.18s ease;
}

tbody tr:hover,
tbody tr.is-selected {
  background: rgba(116, 200, 255, 0.08);
}

td strong {
  display: block;
  color: #f4f7fb;
  font-size: 14px;
}

td span {
  color: var(--muted);
  font-size: 12px;
}

meter {
  width: 96px;
  height: 8px;
  margin-right: 8px;
  vertical-align: middle;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #222938;
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-2), var(--blue));
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status.good {
  border-color: rgba(134, 239, 172, 0.58);
  background: rgba(134, 239, 172, 0.1);
  color: var(--green);
}

.status.warn {
  border-color: rgba(245, 192, 79, 0.45);
  background: rgba(245, 192, 79, 0.11);
  color: var(--amber);
}

.status.danger {
  border-color: rgba(239, 100, 100, 0.48);
  background: rgba(239, 100, 100, 0.12);
  color: var(--red);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-list dd {
  margin: 5px 0 0;
  color: #e5ebf5;
  font-size: 13px;
  line-height: 1.45;
}

.quota-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 16, 24, 0.8);
}

.quota-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.quota-card strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

.quota-track {
  height: 10px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: #242b38;
}

.quota-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--amber));
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.quick-actions button {
  padding: 0 8px;
  background: rgba(8, 11, 17, 0.74);
  border-color: var(--line);
  color: #e8edf5;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tier-grid,
.service-grid,
.device-topology,
.automation-grid,
.memory-grid,
.industry-grid {
  display: grid;
  gap: 10px;
}

.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.tier-grid > div,
.service-grid > article,
.device-topology > div,
.automation-grid > article,
.memory-grid > div,
.industry-grid > span,
.relay-node,
.ops-list li,
.candidate-card,
.review-list article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 13, 21, 0.66);
}

.tier-grid > div,
.service-grid > article,
.device-topology > div,
.automation-grid > article,
.memory-grid > div {
  padding: 14px;
}

.tier-grid strong,
.service-grid strong,
.device-topology strong,
.automation-grid strong,
.memory-grid strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.tier-grid span,
.service-grid span,
.device-topology span,
.automation-grid span,
.memory-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.usage-chart {
  display: grid;
  gap: 13px;
}

.usage-chart div {
  display: grid;
  grid-template-columns: 108px minmax(120px, 1fr) 72px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.usage-chart i {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #242b38;
}

.usage-chart i::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-2), var(--blue));
}

.usage-chart em {
  color: var(--text);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cost-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.cost-strip span {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 13, 21, 0.66);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cost-strip strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.mini-table,
.api-table,
.permission-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 13, 21, 0.62);
}

.mini-table {
  grid-template-columns: 1fr 1fr 1fr;
}

.api-table {
  grid-template-columns: 1.1fr 1fr 0.8fr 0.7fr 1.2fr 1.4fr;
}

.permission-grid {
  grid-template-columns: 1.4fr repeat(4, minmax(82px, 1fr));
}

.mini-table > *,
.api-table > *,
.permission-grid > * {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #d6deea;
  font-size: 13px;
  line-height: 1.35;
}

.mini-table > *:nth-child(3n),
.api-table > *:nth-child(6n),
.permission-grid > *:nth-child(5n) {
  border-right: 0;
}

.mini-head,
.api-head,
.permission-head {
  background: rgba(116, 200, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-table strong,
.mini-table em,
.api-table strong,
.api-table em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.key-live {
  color: #06111c;
  background: var(--blue);
  width: fit-content;
  min-height: 28px;
  margin: auto 0;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 900;
}

.key-muted {
  color: #d8deea;
  background: #252c39;
  width: fit-content;
  min-height: 28px;
  margin: auto 0;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 900;
}

.api-key-workbench {
  overflow: hidden;
}

.api-key-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.api-key-summary-strip div,
.api-key-list-card,
.api-key-detail-panel,
.api-key-operation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.api-key-summary-strip div {
  padding: 12px;
}

.api-key-summary-strip strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.api-key-summary-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.api-key-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.api-key-list-card {
  overflow: hidden;
}

.api-key-table {
  display: grid;
  min-width: 0;
}

.api-key-head,
.api-key-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.12fr) minmax(110px, 0.7fr) minmax(92px, 0.48fr) minmax(92px, 0.48fr) minmax(145px, 0.82fr) minmax(210px, 0.95fr);
  gap: 0;
  align-items: stretch;
}

.api-key-head {
  background: rgba(109, 63, 209, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.api-key-head span,
.api-key-row > span {
  min-width: 0;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.api-key-head span:last-child,
.api-key-row > span:last-child {
  border-right: 0;
}

.api-key-row {
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.api-key-row:hover,
.api-key-row.is-selected {
  background: rgba(109, 63, 209, 0.06);
}

.api-key-row.is-selected {
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.72) inset;
}

.api-key-row:last-child > span {
  border-bottom: 0;
}

.api-key-name {
  display: block !important;
}

.api-key-name strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.api-key-name em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.api-key-row code,
.api-key-detail-list dd {
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.key-status,
.key-breaker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.key-status::before,
.key-breaker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.key-status.is-live {
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.key-status.is-muted {
  background: rgba(33, 27, 22, 0.08);
  color: var(--muted);
}

.key-status.is-disabled,
.key-breaker.is-on {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.key-breaker.is-off {
  background: rgba(33, 27, 22, 0.07);
  color: var(--muted);
}

.api-key-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
}

.api-key-actions button,
.api-key-detail-actions button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 0 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
}

.api-key-actions button[data-key-action="熔断"],
.api-key-actions button[data-key-action="禁用"],
.api-key-actions button[data-key-action="删除"] {
  border-color: rgba(196, 63, 53, 0.18);
  color: var(--red);
}

.api-key-detail-panel {
  padding: 14px;
}

.api-key-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.api-key-detail-head span,
.api-key-operation-head span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.api-key-detail-head strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.05;
}

.api-key-detail-head em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.api-key-detail-head b {
  border-radius: 7px;
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.api-key-detail-head b.is-muted {
  background: rgba(33, 27, 22, 0.08);
  color: var(--muted);
}

.api-key-detail-head b.is-disabled {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.api-key-detail-list {
  display: grid;
  gap: 0;
  margin: 0 0 12px;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.api-key-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.07);
}

.api-key-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.api-key-detail-list dd {
  margin: 0;
  line-height: 1.42;
}

.api-key-operation-card {
  padding: 12px;
  background: rgba(255, 250, 244, 0.68);
}

.api-key-operation-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.api-key-operation-head strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.api-key-operation-head em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.api-key-operation-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.api-key-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.api-key-form-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.api-key-form-grid input,
.api-key-form-grid select {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.api-key-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.api-key-detail-actions button:first-child {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
}

.api-key-detail-actions button:nth-child(2) {
  border-color: rgba(255, 90, 44, 0.22);
  background: rgba(255, 90, 44, 0.1);
  color: var(--accent);
}

.api-key-action-result {
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
}

.good-text,
.check {
  color: var(--green);
  font-weight: 900;
}

.warn-text {
  color: var(--amber);
  font-weight: 900;
}

.danger-text {
  color: var(--red);
  font-weight: 900;
}

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

.status-monitor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.monitor-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 11, 17, 0.72);
}

.monitor-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.monitor-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.latency-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 5px;
  margin-top: 20px;
}

.latency-bars span {
  height: 34px;
  border-radius: 999px;
  background: var(--green-2);
}

.latency-bars .is-warn {
  background: var(--red);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid .is-warn {
  border-color: rgba(245, 192, 79, 0.36);
  background: rgba(245, 192, 79, 0.09);
}

.relay-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.relay-node {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.relay-node strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.relay-node span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.relay-node.is-hot {
  border-color: rgba(245, 192, 79, 0.38);
}

.relay-node.private {
  border-color: rgba(116, 200, 255, 0.38);
  background: rgba(116, 200, 255, 0.08);
}

.route-workbench {
  display: grid;
  gap: 16px;
}

.route-workbench-head {
  margin-bottom: 0;
}

.route-overview-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.route-overview-strip button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.route-overview-strip button:hover,
.route-overview-strip button.is-active {
  border-color: rgba(109, 63, 209, 0.26);
  background: rgba(109, 63, 209, 0.08);
}

.route-overview-strip strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.route-overview-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(0, 1.2fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.route-policy-panel,
.route-path-panel,
.route-inspector-panel {
  min-width: 0;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 244, 0.66);
}

.route-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.route-section-head span,
.route-inspector-card span,
.route-control-card > span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.route-section-head strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.route-section-head button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.route-card-list {
  display: grid;
  gap: 8px;
}

.route-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.route-card:hover,
.route-card.is-selected {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(109, 63, 209, 0.08);
}

.route-card.is-selected {
  box-shadow: 0 0 0 1px rgba(109, 63, 209, 0.08) inset;
}

.route-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.route-card em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.route-card b {
  border: 1px solid rgba(38, 114, 78, 0.22);
  border-radius: 7px;
  padding: 7px 8px;
  background: rgba(38, 114, 78, 0.08);
  color: var(--green);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.route-card.is-warn b {
  border-color: rgba(184, 121, 0, 0.24);
  background: rgba(184, 121, 0, 0.08);
  color: var(--amber);
}

.route-card.is-private b {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
}

.route-path-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: center;
}

.route-path-map button {
  min-height: 76px;
  border: 1px solid rgba(109, 63, 209, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(109, 63, 209, 0.07);
  color: var(--text);
  text-align: left;
}

.route-path-map strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.route-path-map span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.route-path-map i {
  display: none;
}

.route-split-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.route-split-grid div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.route-split-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.route-split-grid strong {
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.route-split-grid i {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 27, 22, 0.08);
}

.route-split-grid b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--accent));
}

.route-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.route-health-grid article,
.route-inspector-card,
.route-control-card,
.route-audit-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.route-health-grid article {
  padding: 12px;
}

.route-health-grid strong,
.route-audit-list strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.route-health-grid span,
.route-audit-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.route-inspector-panel {
  display: grid;
  gap: 12px;
}

.route-inspector-card,
.route-control-card {
  padding: 14px;
}

.route-inspector-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
}

.route-inspector-card p,
.route-control-card em {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.route-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.route-detail-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.route-detail-list div:last-child {
  border-bottom: 0;
}

.route-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.route-detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.route-traffic-options,
.route-control-actions {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.route-traffic-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-control-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-traffic-options button,
.route-control-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.route-traffic-options button.is-active,
.route-control-actions button:first-child {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
}

.route-control-actions button[data-route-action="删除"],
.route-control-actions button[data-route-action="暂停"] {
  border-color: rgba(196, 63, 53, 0.18);
  color: var(--red);
}

.route-audit-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-audit-list li {
  padding: 10px 12px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.resource-card {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.resource-card span,
.resource-card em,
.resource-card b {
  font-size: 12px;
  line-height: 1.4;
}

.resource-card span {
  color: var(--muted);
  font-weight: 850;
}

.resource-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.resource-card em {
  color: var(--muted);
  font-style: normal;
}

.resource-card b {
  font-weight: 900;
}

.resource-card.is-live b {
  color: var(--green);
}

.resource-card.is-warn {
  border-color: rgba(184, 121, 0, 0.28);
  background: rgba(184, 121, 0, 0.08);
}

.resource-card.is-warn b {
  color: var(--amber);
}

.resource-card.is-private {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.08);
}

.resource-card.is-private b {
  color: var(--blue);
}

.provider-pool-table {
  display: grid;
  grid-template-columns: 0.7fr 1.35fr 1fr 1fr 1fr 1.35fr;
  overflow: hidden;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.provider-pool-table > * {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.provider-pool-table > *:nth-child(6n) {
  border-right: 0;
}

.provider-pool-table strong {
  color: var(--text);
}

.pool-head {
  background: rgba(109, 63, 209, 0.07);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.health {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(38, 114, 78, 0.1);
}

.health.good {
  background: var(--green);
}

.health.warn {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(184, 121, 0, 0.1);
}

.health.danger {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 63, 53, 0.1);
}

.pool-summary-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.pool-summary-strip div,
.selected-relay-card,
.failover-stack-card,
.manual-switch-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.pool-summary-strip div {
  padding: 12px;
}

.pool-summary-strip strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pool-summary-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pool-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.pool-filter-bar button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pool-filter-bar button.is-active {
  background: var(--blue);
  color: #fffaf4;
  box-shadow: 0 10px 22px rgba(109, 63, 209, 0.18);
}

.supplier-list {
  display: grid;
  gap: 8px;
}

.supplier-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.72fr) minmax(150px, 0.72fr) minmax(92px, 0.42fr) minmax(170px, 0.72fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 12px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.supplier-row:hover {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.05);
}

.supplier-row.is-selected {
  border-color: rgba(109, 63, 209, 0.32);
  background: rgba(109, 63, 209, 0.09);
  box-shadow: 0 0 0 1px rgba(109, 63, 209, 0.08) inset;
}

.supplier-row.is-warn {
  border-color: rgba(184, 121, 0, 0.28);
  background: rgba(184, 121, 0, 0.06);
}

.supplier-row.is-paused {
  border-color: rgba(196, 63, 53, 0.22);
  background: rgba(196, 63, 53, 0.05);
}

.supplier-row span {
  min-width: 0;
}

.supplier-row strong,
.supplier-row b {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.supplier-main strong {
  font-size: 16px;
}

.supplier-row em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.supplier-row > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.supplier-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px !important;
}

.supplier-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.supplier-actions button[data-provider-action="冻结"],
.supplier-actions button[data-provider-action="删除"] {
  border-color: rgba(196, 63, 53, 0.18);
  color: var(--red);
}

.selected-relay-card {
  padding: 16px;
  margin-bottom: 12px;
}

.selected-relay-card span,
.failover-stack-card > span,
.manual-switch-card span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selected-relay-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.selected-relay-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.relay-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.failover-stack-card {
  padding: 14px;
  margin-bottom: 12px;
}

.failover-stack-card ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.failover-stack-card li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 250, 244, 0.62);
}

.failover-stack-card strong {
  color: var(--blue);
  font-size: 11px;
  line-height: 1;
}

.failover-stack-card em {
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.relay-detail-list div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.relay-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.relay-detail-list dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.manual-switch-card {
  padding: 14px;
}

.manual-switch-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.traffic-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.traffic-options button,
.manual-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.traffic-options button.is-active {
  border-color: rgba(109, 63, 209, 0.26);
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
}

.manual-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manual-actions button:first-child {
  border-color: transparent;
  background: var(--accent);
  color: #fffaf4;
  box-shadow: 0 12px 26px rgba(255, 90, 44, 0.14);
}

.manual-actions button:nth-child(6),
.manual-actions button:nth-child(8) {
  border-color: rgba(196, 63, 53, 0.24);
  color: var(--red);
}

.manual-switch-card em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.probe-grid {
  display: grid;
  gap: 10px;
}

.probe-grid.compact {
  margin-top: 12px;
}

.probe-grid div,
.failover-timeline article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.probe-grid strong,
.failover-timeline strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.probe-grid span,
.failover-timeline p {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pool-dialog[hidden] {
  display: none !important;
}

.has-pool-dialog {
  overflow: hidden;
}

.pool-dialog {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(33, 27, 22, 0.22);
  backdrop-filter: blur(16px);
}

.pool-dialog-card {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 10px;
  padding: 20px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 26px 70px rgba(33, 27, 22, 0.18);
}

.pool-dialog-card.compact {
  width: min(560px, calc(100vw - 32px));
}

.pool-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pool-dialog-head h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.18;
}

.pool-dialog-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.pool-dialog-grid,
.probe-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pool-dialog-grid label,
.probe-option-grid label {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.pool-dialog-grid label.wide {
  grid-column: 1 / -1;
}

.pool-dialog-grid label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.pool-dialog-grid input,
.pool-dialog-grid select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.pool-dialog-grid input:focus,
.pool-dialog-grid select:focus {
  border-color: rgba(109, 63, 209, 0.44);
  box-shadow: 0 0 0 3px rgba(109, 63, 209, 0.1);
}

.probe-option-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.probe-option-grid input {
  accent-color: var(--blue);
}

.probe-method-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.probe-method-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.probe-method-list strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.probe-method-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pool-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.pool-dialog-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  padding: 0 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.pool-dialog-actions button:last-child {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
}

.pool-dialog-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.failover-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.failover-timeline article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 5px 12px;
}

.failover-timeline span {
  grid-row: span 2;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.route-rules {
  margin-top: 14px;
}

.ops-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ops-list.compact {
  margin-top: 14px;
}

.ops-list li {
  padding: 13px;
}

.ops-list strong {
  display: block;
  font-size: 14px;
}

.ops-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.device-topology {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.channel-grid span,
.industry-grid span,
.candidate-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 13, 21, 0.66);
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
}

.channel-grid .is-on {
  border-color: rgba(116, 200, 255, 0.36);
  color: var(--blue);
}

.audit-feed {
  display: grid;
  gap: 10px;
}

.audit-feed article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 5px 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 13, 21, 0.66);
}

.audit-feed span {
  grid-row: span 2;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.audit-feed strong {
  font-size: 14px;
}

.audit-feed p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.pipeline > div {
  min-height: 124px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 13, 21, 0.66);
}

.pipeline span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #06111c;
  font-size: 12px;
  font-weight: 900;
}

.pipeline strong,
.candidate-card strong,
.review-list strong {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.25;
}

.pipeline em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.industry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.industry-grid span {
  justify-content: center;
  text-align: center;
}

.candidate-card {
  padding: 13px;
}

.candidate-card + .candidate-card {
  margin-top: 10px;
}

.candidate-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.automation-grid,
.memory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-list article {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.6fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
}

.review-list strong {
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}

.review-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-list em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

/* Light workbench theme aligned with the public frontend pages. */
.sidebar {
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(247, 248, 241, 0.96));
  box-shadow: none;
}

.admin-brand {
  background: rgba(255, 250, 244, 0.72);
}

.brand-mark {
  background: url("../assets/avatars/bird-logo.svg") center / contain no-repeat;
  color: transparent;
  box-shadow: 0 0 0 1px rgba(35, 47, 39, 0.08), 0 10px 22px rgba(35, 27, 20, 0.08);
}

.side-nav a {
  color: #5f5248;
}

.side-nav a::before {
  background: #d2c6ba;
}

.side-nav a:hover {
  background: rgba(109, 63, 209, 0.08);
  color: var(--text);
}

.side-nav a.is-active {
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
  box-shadow: 0 0 0 1px rgba(109, 63, 209, 0.13) inset;
}

.side-nav a.is-active::before {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(109, 63, 209, 0.11);
}

.sidebar-note,
.admin-topbar,
.search-box,
.icon-button,
.secondary-action,
.quick-actions button,
.quota-card,
.tier-grid > div,
.service-grid > article,
.device-topology > div,
.automation-grid > article,
.memory-grid > div,
.industry-grid > span,
.relay-node,
.ops-list li,
.candidate-card,
.review-list article,
.monitor-stat,
.cost-strip span,
.channel-grid span,
.candidate-meta span,
.audit-feed article,
.pipeline > div {
  background: rgba(255, 255, 255, 0.72);
}

.admin-topbar {
  background: rgba(255, 250, 244, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-glyph,
.architecture-band span,
.permission-head,
.api-head,
.mini-head {
  color: var(--blue);
}

.topbar-tools button,
.balance-pill,
.account-pill {
  background: rgba(255, 255, 255, 0.72);
  color: #5f5248;
  box-shadow: none;
}

.topbar-tools button:hover,
.balance-pill:hover,
.secondary-action:hover,
.icon-button:hover {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.08);
  color: var(--text);
}

.balance-pill {
  border-color: rgba(255, 90, 44, 0.34);
  color: #9a460f;
}

.account-pill {
  color: var(--text);
}

.page-hero h1,
.panel h2,
.metric-card strong,
td strong,
.tier-grid strong,
.service-grid strong,
.device-topology strong,
.automation-grid strong,
.memory-grid strong,
.ops-list strong,
.audit-feed strong,
.pipeline strong,
.candidate-card strong,
.review-list strong {
  color: var(--text);
}

.search-box,
.icon-button,
.secondary-action {
  border-color: var(--line);
}

.search-box input {
  color: var(--text);
}

.primary-action {
  background: var(--accent);
  color: #fffaf4;
  box-shadow: 0 12px 26px rgba(255, 90, 44, 0.18);
}

.architecture-band > div,
.metric-card,
.panel {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.sidebar-note,
.quota-card,
.resource-card,
.provider-pool-table,
.probe-grid div,
.failover-timeline article,
.tier-grid > div,
.service-grid > article,
.device-topology > div,
.automation-grid > article,
.memory-grid > div,
.industry-grid > span,
.relay-node,
.ops-list li,
.candidate-card,
.review-list article,
.monitor-stat,
.cost-strip span,
.channel-grid span,
.candidate-meta span,
.audit-feed article,
.pipeline > div,
.mini-table,
.api-table,
.permission-grid,
.table-wrap {
  border-radius: 8px;
}

.architecture-band strong,
.detail-list dd,
.api-table > *,
.mini-table > *,
.permission-grid > *,
.provider-pool-table > *,
.review-list span,
.audit-feed p,
.candidate-card p,
.resource-card span,
.resource-card em,
.probe-grid span,
.failover-timeline p,
.ops-list span,
.cost-strip span,
.tier-grid span,
.service-grid span,
.device-topology span,
.automation-grid span,
.memory-grid span,
td span {
  color: var(--muted);
}

.metric-card em,
.good-text,
.check {
  color: var(--green);
}

.metric-card.is-warn em,
.warn-text {
  color: var(--amber);
}

.danger-text {
  color: var(--red);
}

.segmented,
.route-rules,
.mini-table,
.api-table,
.permission-grid,
.table-wrap {
  border-color: rgba(33, 27, 22, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.segmented button.is-active,
.route-rules button.is-active,
.pipeline span {
  background: var(--blue);
  color: #fffaf4;
  box-shadow: 0 10px 22px rgba(109, 63, 209, 0.18);
}

table {
  background: rgba(255, 255, 255, 0.78);
}

th {
  background: rgba(247, 248, 241, 0.72);
}

tbody tr:hover,
tbody tr.is-selected {
  background: rgba(109, 63, 209, 0.08);
}

meter::-webkit-meter-bar,
.quota-track,
.usage-chart i {
  background: #eee6dc;
}

.quota-track i,
.usage-chart i::before {
  background: linear-gradient(90deg, var(--green-2), var(--blue));
}

.quick-actions button {
  color: var(--text);
}

.status.good {
  border-color: rgba(38, 114, 78, 0.24);
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.status.warn {
  border-color: rgba(184, 121, 0, 0.25);
  background: rgba(184, 121, 0, 0.1);
  color: var(--amber);
}

.status.danger {
  border-color: rgba(196, 63, 53, 0.24);
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.mini-head,
.api-head,
.permission-head {
  background: rgba(109, 63, 209, 0.07);
}

.key-live {
  background: var(--blue);
  color: #fffaf4;
}

.key-muted {
  background: #ece5dc;
  color: #5f5248;
}

.latency-bars span {
  background: var(--green-2);
}

.latency-bars .is-warn {
  background: var(--red);
}

.service-grid .is-warn,
.relay-node.is-hot {
  border-color: rgba(184, 121, 0, 0.28);
  background: rgba(184, 121, 0, 0.08);
}

.relay-node.private,
.channel-grid .is-on {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
}

.permission-grid > * {
  border-color: var(--line);
}

.review-list em {
  color: var(--blue);
}

.customer-workbench {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.72fr);
}

.customer-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 8px;
  background: rgba(109, 63, 209, 0.07);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.customer-segment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.customer-segment {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.customer-segment:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.2);
}

.customer-segment.is-active {
  border-color: rgba(109, 63, 209, 0.32);
  background: rgba(109, 63, 209, 0.08);
}

.customer-segment span,
.support-search-card span,
.filter-row > span,
.customer-toolbar,
.identity-card span,
.support-result {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.customer-segment strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.customer-segment em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.support-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.support-search-field span {
  display: block;
  margin-bottom: 6px;
}

.support-search-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.support-search-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
}

.support-search-card label {
  display: block;
  min-width: 0;
}

.support-search-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 250, 244, 0.9);
  color: var(--text);
  outline: 0;
}

.support-search-card input::placeholder {
  color: var(--muted-2);
}

.support-search-card button,
.quick-segments button,
.support-action-grid button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.support-search-card button:hover,
.quick-segments button:hover,
.support-action-grid button:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.2);
  background: rgba(109, 63, 209, 0.08);
}

.customer-filter-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.filter-row > span {
  white-space: nowrap;
}

.segmented.compact {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.segmented.compact button {
  min-height: 30px;
  padding: 0 10px;
}

.quick-segments {
  grid-template-columns: 44px repeat(4, max-content);
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-segments button {
  padding: 0 11px;
  white-space: nowrap;
}

.customer-management-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-top: 2px;
}

.customer-management-bar button,
.row-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.customer-management-bar button {
  padding: 0 12px;
}

.customer-management-bar button:hover,
.row-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.08);
}

.customer-management-bar button:first-child {
  border-color: rgba(109, 63, 209, 0.26);
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
}

.quick-segments button.is-active {
  border-color: rgba(255, 90, 44, 0.26);
  background: rgba(255, 90, 44, 0.09);
  color: #9a460f;
}

.customer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}

.customer-table-wrap {
  max-height: none;
  overflow: visible;
}

.customer-table {
  min-width: 0;
  table-layout: fixed;
}

.customer-table th {
  position: static;
}

.customer-table th:nth-child(1),
.customer-table td:nth-child(1) {
  width: 25%;
}

.customer-table th:nth-child(2),
.customer-table td:nth-child(2) {
  width: 9%;
}

.customer-table th:nth-child(3),
.customer-table td:nth-child(3) {
  width: 14%;
}

.customer-table th:nth-child(4),
.customer-table td:nth-child(4) {
  width: 12%;
}

.customer-table th:nth-child(5),
.customer-table td:nth-child(5) {
  width: 19%;
}

.customer-table th:nth-child(6),
.customer-table td:nth-child(6) {
  width: 21%;
}

.customer-table td {
  vertical-align: top;
  line-height: 1.35;
}

.customer-table td strong {
  font-size: 14px;
}

.customer-table td span,
.customer-table td em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.customer-table td:nth-child(3) .status {
  display: inline-flex;
  margin-top: 5px;
}

.customer-table td:nth-child(4) {
  white-space: nowrap;
}

.customer-table .status {
  min-height: 24px;
  padding: 0 8px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions button {
  padding: 0 9px;
}

.row-actions button[data-row-action*="关停"],
.row-actions button[data-row-action*="冻结"],
.row-actions button[data-row-action*="限流"] {
  border-color: rgba(196, 63, 53, 0.18);
  color: var(--red);
}

.empty-state {
  margin-top: 10px;
  border: 1px dashed rgba(109, 63, 209, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(109, 63, 209, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.customer-detail-panel {
  position: sticky;
  top: 98px;
}

.identity-card {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  border: 1px solid rgba(109, 63, 209, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(109, 63, 209, 0.07);
}

.identity-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.identity-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.support-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.support-action-grid button:nth-child(5) {
  border-color: rgba(196, 63, 53, 0.22);
  color: var(--red);
}

.support-result {
  margin: 12px 0 0;
  line-height: 1.45;
}

.customer-admin {
  margin-top: 24px;
  display: block;
}

.customer-admin.view-panel.is-active {
  display: block;
}

.customer-console {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.customer-console-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.customer-console-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

.customer-console-head p:not(.eyebrow) {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.customer-create-actions,
.customer-bulk-bar > div,
.customer-action-buttons,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-create-actions {
  justify-content: flex-end;
  align-content: flex-start;
}

.customer-create-actions button,
.customer-command-row button,
.customer-filter-line button,
.customer-bulk-bar button,
.customer-action-buttons button,
.row-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.customer-create-actions button,
.customer-bulk-bar button,
.customer-action-buttons button {
  padding: 0 12px;
}

.customer-create-actions button:first-child {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
}

.customer-create-actions button:hover,
.customer-command-row button:hover,
.customer-filter-line button:hover,
.customer-bulk-bar button:hover,
.customer-action-buttons button:hover,
.row-actions button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.customer-command-row {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.customer-search-control {
  min-width: 0;
}

.customer-search-control span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-search-control input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 250, 244, 0.82);
  color: var(--text);
  outline: 0;
}

.customer-search-control input:focus {
  border-color: rgba(109, 63, 209, 0.36);
  box-shadow: 0 0 0 3px rgba(109, 63, 209, 0.08);
}

.customer-command-row .customer-count {
  min-height: 40px;
  border-color: rgba(33, 27, 22, 0.1);
  background: rgba(247, 248, 241, 0.74);
  color: var(--muted);
}

.customer-filter-board {
  display: grid;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 241, 0.42);
}

.customer-filter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-filter-line button {
  min-height: 28px;
  padding: 0 10px;
  color: var(--muted);
}

.customer-filter-line button.is-active {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
}

.customer-bulk-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}

.customer-bulk-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.customer-table-wrap {
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.customer-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  background: rgba(255, 255, 255, 0.84);
}

.customer-table th,
.customer-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}

.customer-table th {
  position: static;
  background: rgba(255, 250, 244, 0.88);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.customer-table th:nth-child(1),
.customer-table td:nth-child(1) {
  width: 20%;
}

.customer-table th:nth-child(2),
.customer-table td:nth-child(2) {
  width: 10%;
}

.customer-table th:nth-child(3),
.customer-table td:nth-child(3) {
  width: 11%;
}

.customer-table th:nth-child(4),
.customer-table td:nth-child(4) {
  width: 15%;
}

.customer-table th:nth-child(5),
.customer-table td:nth-child(5) {
  width: 12%;
}

.customer-table th:nth-child(6),
.customer-table td:nth-child(6) {
  width: 18%;
}

.customer-table th:nth-child(7),
.customer-table td:nth-child(7) {
  width: 14%;
}

.customer-table td strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.customer-table td span,
.customer-table td em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.customer-table tbody tr:hover,
.customer-table tbody tr.is-selected {
  background: rgba(109, 63, 209, 0.06);
}

.customer-table .status {
  min-height: 24px;
  padding: 0 8px;
}

.customer-table meter {
  width: 76px;
  height: 7px;
  margin-right: 6px;
}

.row-actions {
  gap: 6px;
}

.row-actions button {
  min-height: 28px;
  padding: 0 8px;
  white-space: nowrap;
}

.row-actions button[data-row-action*="关停"],
.row-actions button[data-row-action*="冻结"],
.row-actions button[data-row-action*="限流"] {
  border-color: rgba(196, 63, 53, 0.2);
  color: var(--red);
}

.customer-action-panel {
  padding: 18px 24px 22px;
  background: rgba(255, 250, 244, 0.54);
}

.customer-action-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.customer-action-head h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.customer-action-head span:not(.status) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.customer-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.customer-action-grid > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.customer-action-grid > div:nth-child(3n) {
  border-right: 0;
}

.customer-action-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.customer-action-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.customer-action-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.38;
}

.customer-action-grid em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.38;
}

.customer-action-grid .quota-track {
  max-width: 240px;
  margin-top: 8px;
}

.customer-action-buttons {
  margin-top: 14px;
}

.customer-action-buttons button[data-support-action*="停"],
.customer-action-buttons button[data-support-action*="欠费"] {
  border-color: rgba(196, 63, 53, 0.2);
  color: var(--red);
}

.customer-action-panel > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.customer-action-panel .support-result {
  padding-top: 2px;
  color: var(--blue);
  font-weight: 780;
}

/* 20:37 rollback tune: keep the earlier customer workbench structure, with calmer typography. */
.customer-workbench {
  grid-template-columns: minmax(0, 1.48fr) minmax(330px, 0.72fr);
}

.customer-workbench .panel-heading {
  margin-bottom: 14px;
}

.customer-workbench .panel h2 {
  font-size: 20px;
  line-height: 1.2;
}

.customer-workbench .customer-count {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.customer-workbench .customer-segment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.customer-workbench .customer-segment {
  padding: 11px;
  box-shadow: none;
}

.customer-workbench .customer-segment span,
.customer-workbench .support-search-card span,
.customer-workbench .filter-row > span,
.customer-workbench .customer-toolbar,
.customer-workbench .support-result {
  font-size: 12px;
  font-weight: 760;
}

.customer-workbench .customer-segment strong {
  font-size: 22px;
}

.customer-workbench .customer-segment em {
  font-size: 12px;
}

.customer-workbench .support-search-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  padding: 12px;
  margin-bottom: 12px;
}

.customer-workbench .support-search-field span {
  display: block;
  margin-bottom: 6px;
}

.customer-workbench .support-search-card input {
  min-height: 38px;
  font-size: 13px;
}

.customer-workbench .support-search-card button,
.customer-workbench .customer-management-bar button,
.customer-workbench .quick-segments button,
.customer-workbench .support-action-grid button,
.customer-workbench .row-actions button {
  min-height: 30px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
}

.customer-workbench .support-search-card p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.customer-workbench .customer-filter-stack {
  gap: 8px;
}

.customer-workbench .segmented.compact button {
  min-height: 28px;
  padding: 0 9px;
}

.customer-workbench .customer-management-bar {
  gap: 8px;
  margin-bottom: 10px;
}

.customer-workbench .customer-toolbar {
  margin-bottom: 8px;
}

.customer-workbench .customer-table-wrap {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.customer-workbench .customer-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  background: rgba(255, 255, 255, 0.8);
}

.customer-workbench .customer-table th,
.customer-workbench .customer-table td {
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.35;
}

.customer-workbench .customer-table th {
  position: static;
  background: rgba(255, 250, 244, 0.9);
  letter-spacing: 0;
  text-transform: none;
}

.customer-workbench .customer-table th:nth-child(1),
.customer-workbench .customer-table td:nth-child(1) {
  width: 24%;
}

.customer-workbench .customer-table th:nth-child(2),
.customer-workbench .customer-table td:nth-child(2) {
  width: 10%;
}

.customer-workbench .customer-table th:nth-child(3),
.customer-workbench .customer-table td:nth-child(3) {
  width: 14%;
}

.customer-workbench .customer-table th:nth-child(4),
.customer-workbench .customer-table td:nth-child(4) {
  width: 12%;
}

.customer-workbench .customer-table th:nth-child(5),
.customer-workbench .customer-table td:nth-child(5) {
  width: 18%;
}

.customer-workbench .customer-table th:nth-child(6),
.customer-workbench .customer-table td:nth-child(6) {
  width: 22%;
}

.customer-workbench .customer-table td strong {
  font-size: 13px;
  font-weight: 850;
}

.customer-workbench .customer-table td span,
.customer-workbench .customer-table td em {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.customer-workbench .customer-table meter {
  width: 70px;
  height: 7px;
}

.customer-workbench .row-actions {
  gap: 5px;
}

.customer-workbench .row-actions button {
  padding: 0 7px;
}

.customer-workbench .detail-list {
  gap: 10px;
}

.customer-workbench .detail-list div {
  padding-bottom: 10px;
}

.customer-workbench .detail-list dd {
  font-size: 12px;
}

.customer-workbench .identity-card {
  padding: 13px;
}

.customer-workbench .identity-card strong {
  font-size: 22px;
}

.customer-workbench .quota-card {
  padding: 14px;
}

.customer-workbench .quota-card strong {
  font-size: 28px;
}

.sales-intake-panel {
  margin: 12px 0 14px;
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.08), rgba(255, 90, 44, 0.045)),
    rgba(255, 255, 255, 0.82);
}

.sales-intake-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sales-intake-head h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.22;
}

.sales-intake-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sales-intake-head > span {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 90, 44, 0.18);
  border-radius: 8px;
  background: rgba(255, 90, 44, 0.08);
  color: #9a460f;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.sales-intake-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.sales-intake-stats button {
  min-width: 0;
  min-height: 54px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sales-intake-stats button:hover,
.sales-intake-stats button.is-active {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.08);
}

.sales-intake-stats strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sales-intake-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.sales-intake-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.sales-lead-list {
  display: grid;
  gap: 8px;
}

.sales-lead-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.58fr) minmax(90px, 0.34fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sales-lead-row:hover,
.sales-lead-row.is-selected {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(255, 255, 255, 0.94);
}

.sales-lead-row strong,
.sales-lead-detail h4 {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.sales-lead-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.lead-pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 6px;
  border: 1px solid rgba(109, 63, 209, 0.16);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.lead-pill.is-warn {
  border-color: rgba(255, 90, 44, 0.2);
  background: rgba(255, 90, 44, 0.09);
  color: #9a460f;
}

.lead-pill.is-good {
  border-color: rgba(39, 132, 92, 0.18);
  background: rgba(39, 132, 92, 0.08);
  color: var(--green);
}

.lead-pill.is-danger {
  border-color: rgba(196, 63, 53, 0.18);
  background: rgba(196, 63, 53, 0.08);
  color: var(--red);
}

.sales-lead-detail {
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 250, 244, 0.88);
}

.sales-lead-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.sales-lead-detail h4 {
  margin: 3px 0 0;
  font-size: 18px;
}

.sales-lead-detail > p,
.sales-lead-result {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sales-lead-detail dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.sales-lead-detail dl div {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(33, 27, 22, 0.07);
}

.sales-lead-detail dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sales-lead-detail dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.sales-lead-detail dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.sales-lead-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.sales-lead-actions button {
  min-width: 0;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sales-lead-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.08);
}

.sales-lead-actions button:nth-child(2) {
  border-color: rgba(255, 90, 44, 0.2);
  background: rgba(255, 90, 44, 0.08);
  color: #9a460f;
}

.sales-lead-result {
  margin-top: 10px;
  color: var(--blue);
  font-weight: 760;
}

:focus-visible {
  outline: 3px solid rgba(109, 63, 209, 0.24);
  outline-offset: 2px;
}

@media (max-width: 1480px) {
  .ops-grid.model-pool-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .admin-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .duty-chip {
    flex: 0 1 220px;
  }

  .duty-chip em {
    display: none;
  }

  .topbar-tools {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-principle-rail {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .route-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }

  .route-path-panel {
    grid-column: 1 / -1;
  }

  .principle-stamp {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(109, 63, 209, 0.14);
    padding: 12px 0 0;
  }

  .principle-stamp strong {
    margin-top: 0;
  }

  .wide-chart {
    grid-row: auto;
  }

  .customer-segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .admin-brand {
    min-height: 66px;
  }

  .side-nav {
    display: flex;
    padding: 12px 14px 16px;
    overflow-x: auto;
  }

  .side-nav a {
    white-space: nowrap;
  }

  .sidebar-note {
    display: none;
  }

  .admin-topbar {
    position: static;
    margin: 0 -18px;
    padding: 0 18px;
  }

  .admin-main {
    padding: 0 18px 44px;
  }

  .architecture-band,
  .admin-principle-rail,
  .ops-grid,
  .ops-grid.lower,
  .overview-dashboard,
  .route-layout,
  .customer-workbench,
  .sales-intake-grid,
  .ops-grid.model-pool-layout {
    grid-template-columns: 1fr;
  }

  .route-path-panel {
    grid-column: auto;
  }

  .customer-detail-panel {
    position: static;
  }

  .sales-intake-head {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .admin-topbar,
  .page-hero,
  .panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .duty-chip {
    width: 100%;
    max-width: none;
    flex: none;
  }

  .duty-chip em {
    display: block;
  }

  .topbar-tools,
  .topbar-actions {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
    min-width: 220px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .metric-grid,
  .chart-summary,
  .route-overview-strip,
  .route-path-map,
  .route-health-grid,
  .customer-segment-grid,
  .tier-grid,
  .service-grid,
  .resource-grid,
  .pipeline,
  .device-topology,
  .automation-grid,
  .memory-grid,
  .industry-grid,
  .cost-strip,
  .relay-map,
  .status-monitor {
    grid-template-columns: 1fr;
  }

  .chart-canvas {
    min-height: 220px;
    padding-left: 44px;
  }

  .admin-principle-rail {
    gap: 14px;
    padding: 15px;
  }

  .principle-lead strong {
    font-size: 19px;
  }

  .principle-flow article {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .principle-flow article > span {
    width: 30px;
    height: 26px;
  }

  .principle-flow article:not(:last-child)::before {
    left: 14px;
    top: 31px;
  }

  .bar-chart {
    gap: 7px;
    min-height: 168px;
  }

  .success-line {
    inset: 28px 16px 48px 52px;
    width: calc(100% - 68px);
  }

  .donut-wrap {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .donut-chart {
    width: 112px;
  }

  .route-workbench {
    gap: 12px;
  }

  .route-workbench-head,
  .route-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .route-overview-strip button {
    min-height: 58px;
  }

  .route-card,
  .route-detail-list div,
  .route-control-actions {
    grid-template-columns: 1fr;
  }

  .route-card b {
    width: fit-content;
  }

  .support-search-card,
  .filter-row,
  .quick-segments,
  .support-action-grid {
    grid-template-columns: 1fr;
  }

  .customer-console {
    padding: 0;
  }

  .customer-console-head,
  .customer-bulk-bar,
  .customer-create-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-console-head,
  .customer-command-row,
  .customer-filter-board,
  .customer-bulk-bar,
  .customer-action-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .customer-command-row {
    grid-template-columns: 1fr;
  }

  .customer-create-actions,
  .customer-bulk-bar > div,
  .customer-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-action-grid {
    grid-template-columns: 1fr;
  }

  .customer-action-grid > div,
  .customer-action-grid > div:nth-child(3n),
  .customer-action-grid > div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .customer-action-grid > div:last-child {
    border-bottom: 0;
  }

  .customer-table {
    display: block;
  }

  .customer-table thead {
    display: none;
  }

  .customer-table tbody {
    display: grid;
    gap: 10px;
  }

  .customer-table tr {
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.72);
  }

  .customer-table tr.is-selected {
    background: rgba(109, 63, 209, 0.08);
  }

  .customer-table td {
    width: 100% !important;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 4px 10px;
    border: 0;
    padding: 5px 0;
    white-space: normal;
  }

  .customer-table td::before {
    grid-column: 1;
    content: "";
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
  }

  .customer-table td:nth-child(1)::before {
    content: "客户";
  }

  .customer-table td:nth-child(2)::before {
    content: "类型";
  }

  .customer-table td:nth-child(3)::before {
    content: "套餐";
  }

  .customer-table td:nth-child(4)::before {
    content: "用量";
  }

  .customer-table td:nth-child(5)::before {
    content: "工单";
  }

  .customer-table td:nth-child(6)::before {
    content: "管理";
  }

  .customer-table td > * {
    grid-column: 2;
  }

  .customer-table td:nth-child(4) {
    white-space: normal;
  }

  .customer-toolbar {
    flex-direction: column;
    gap: 4px;
  }

  .sales-intake-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-lead-row {
    grid-template-columns: 1fr;
  }

  .sales-lead-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 18px;
  }

  .segmented,
  .route-rules {
    max-width: 100%;
    overflow-x: auto;
  }

  .usage-chart div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .usage-chart em {
    text-align: left;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .panel-actions,
  .relay-detail-list,
  .pool-dialog-grid,
  .probe-option-grid,
  .traffic-options,
  .manual-actions {
    grid-template-columns: 1fr;
  }

  .supplier-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pool-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-row > span:last-child {
    justify-content: flex-start;
  }

  .supplier-actions {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }

  .pool-dialog {
    align-items: end;
    padding: 12px;
  }

  .pool-dialog-card,
  .pool-dialog-card.compact {
    width: 100%;
    max-height: 88vh;
    border-radius: 10px 10px 0 0;
    padding: 16px;
  }

  .pool-dialog-head,
  .pool-dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pool-dialog-head button {
    position: absolute;
    right: 24px;
  }

  .mini-table {
    grid-template-columns: 130px 120px 120px;
    overflow-x: auto;
  }

  .api-table {
    grid-template-columns: 160px 130px 90px 90px 150px 170px;
    overflow-x: auto;
  }

  .permission-grid {
    overflow-x: auto;
    grid-template-columns: 160px repeat(4, 120px);
  }

  .provider-pool-table {
    overflow-x: auto;
    grid-template-columns: 110px 190px 160px 170px 150px 220px;
  }

  .review-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Shared admin polish: apply the customer-page type and button standard across modules. */
.admin-shell,
.admin-main,
.sidebar {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.admin-main button,
.admin-main input,
.admin-main select,
.admin-main textarea,
.sidebar button {
  font-family: var(--font-ui);
  letter-spacing: 0;
}

.eyebrow,
th,
.api-head,
.mini-head,
.permission-head {
  letter-spacing: 0;
}

.panel h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 850;
}

.panel-heading {
  margin-bottom: 14px;
}

.panel-heading.compact {
  gap: 12px;
}

.panel,
.metric-card,
.architecture-band > div {
  border-radius: 8px;
}

.admin-main button,
.primary-action,
.secondary-action,
.icon-button,
.topbar-tools button,
.balance-pill,
.account-pill,
.segmented button,
.route-rules button,
.pool-filter-bar button,
.traffic-options button,
.manual-actions button,
.quick-actions button,
.panel-actions button,
.customer-management-bar button,
.row-actions button,
.support-action-grid button {
  appearance: none;
  min-height: 32px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}

.primary-action,
.secondary-action,
.topbar-tools button,
.balance-pill,
.account-pill,
.pool-filter-bar button,
.traffic-options button,
.manual-actions button,
.quick-actions button,
.panel-actions button {
  padding-left: 12px;
  padding-right: 12px;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 16px;
}

.topbar-tools button,
.balance-pill,
.account-pill {
  min-height: 38px;
}

.segmented,
.route-rules,
.pool-filter-bar,
.traffic-options {
  gap: 5px;
  border-radius: 8px;
}

.segmented button,
.route-rules button,
.pool-filter-bar button,
.traffic-options button {
  min-height: 28px;
  padding: 0 10px;
}

.admin-main button:hover,
.primary-action:hover,
.secondary-action:hover,
.icon-button:hover,
.topbar-tools button:hover,
.pool-filter-bar button:hover,
.traffic-options button:hover,
.manual-actions button:hover,
.quick-actions button:hover {
  transform: none;
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.08);
}

.primary-action:hover {
  background: #e94f28;
  color: #fffaf4;
}

.metric-card {
  padding: 15px;
}

.metric-card span,
.resource-card span,
.resource-card em,
.monitor-stat span,
.cost-strip span,
.service-grid span,
.device-topology span,
.automation-grid span,
.memory-grid span,
.ops-list span,
.review-list span,
.candidate-card p,
.audit-feed p {
  font-size: 12px;
  line-height: 1.42;
}

.metric-card strong {
  font-size: 28px;
  line-height: 1;
}

.status {
  min-height: 24px;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: 0;
}

.table-wrap,
.mini-table,
.api-table,
.permission-grid,
.provider-pool-table {
  border-radius: 8px;
}

th,
td,
.mini-table > *,
.api-table > *,
.permission-grid > *,
.provider-pool-table > * {
  font-size: 12px;
  line-height: 1.38;
}

td strong,
.mini-table strong,
.api-table strong,
.provider-pool-table strong,
.review-list strong,
.ops-list strong,
.pipeline strong {
  font-size: 13px;
  line-height: 1.3;
}

.resource-card,
.selected-relay-card,
.manual-switch-card,
.supplier-row,
.review-list article,
.audit-feed article,
.candidate-card,
.service-grid > article,
.device-topology > div,
.automation-grid > article,
.memory-grid > div,
.ops-list li {
  border-radius: 8px;
}

.supplier-row {
  min-height: 58px;
}

.supplier-row strong,
.supplier-row b,
.selected-relay-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.supplier-row em,
.selected-relay-card p,
.manual-switch-card p,
.relay-detail-list dd {
  font-size: 12px;
  line-height: 1.4;
}

/* Runtime status workbench */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.runtime-control-panel {
  position: relative;
  overflow: hidden;
}

.runtime-control-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 5% 8%, rgba(109, 63, 209, 0.1), transparent 28%),
    radial-gradient(circle at 96% 12%, rgba(255, 90, 44, 0.12), transparent 24%);
}

.runtime-control-panel > * {
  position: relative;
  z-index: 1;
}

.runtime-heading-actions,
.runtime-ai-prompts,
.runtime-ai-sources,
.runtime-help-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.runtime-heading-actions {
  justify-content: flex-end;
}

.runtime-orientation-card {
  margin-bottom: 12px;
  border: 1px solid rgba(109, 63, 209, 0.16);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.7)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(38, 48, 41, 0.06);
}

.runtime-orientation-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
}

.runtime-orientation-head span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.runtime-orientation-head strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.16;
}

.runtime-orientation-head em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.runtime-orientation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 12px;
}

.runtime-orientation-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.06);
}

.runtime-orientation-grid span {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.runtime-orientation-grid p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}

.runtime-orientation-actions {
  margin-top: 12px;
}

.runtime-heading-actions button,
.runtime-alert-strip button,
.runtime-metric-grid button,
.runtime-event-stream button,
.runtime-detail-actions button,
.runtime-help-tokens button,
.runtime-ai-prompts button {
  appearance: none;
  border: 1px solid rgba(109, 63, 209, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--blue);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.runtime-heading-actions button:hover,
.runtime-alert-strip button:hover,
.runtime-metric-grid button:hover,
.runtime-event-stream button:hover,
.runtime-detail-actions button:hover,
.runtime-help-tokens button:hover,
.runtime-ai-prompts button:hover {
  border-color: rgba(109, 63, 209, 0.34);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.runtime-alert-strip,
.runtime-metric-grid,
.runtime-drill-grid,
.runtime-lower-grid {
  display: grid;
  gap: 10px;
}

.runtime-alert-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.runtime-alert-strip button,
.runtime-metric-grid button,
.runtime-service-card,
.runtime-detail-panel,
.runtime-event-stream,
.runtime-runbook-panel {
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(38, 48, 41, 0.05);
}

.runtime-alert-strip button {
  min-height: 94px;
  padding: 14px;
  text-align: left;
}

.runtime-alert-strip button.is-selected,
.runtime-metric-grid button.is-selected,
.runtime-event-stream button.is-selected {
  border-color: rgba(109, 63, 209, 0.32);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 2px rgba(109, 63, 209, 0.08), 0 18px 42px rgba(38, 48, 41, 0.07);
}

.runtime-alert-strip span,
.runtime-metric-grid span,
.runtime-section-head span,
.runtime-ai-assist header span {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.runtime-alert-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.runtime-alert-strip em,
.runtime-metric-grid em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-style: normal;
  font-weight: 720;
}

.runtime-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.runtime-metric-grid button {
  min-height: 104px;
  padding: 14px;
  text-align: left;
}

.runtime-metric-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.runtime-detail-panel {
  margin-bottom: 12px;
  padding: 15px;
}

.runtime-detail-panel .runtime-section-head {
  margin-bottom: 8px;
}

.runtime-detail-panel .runtime-section-head em {
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
  padding: 6px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.runtime-detail-panel p {
  margin: 0;
  max-width: 980px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 680;
}

.runtime-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 14px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.runtime-detail-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.07);
}

.runtime-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
}

.runtime-detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 720;
}

.runtime-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.runtime-detail-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
}

.runtime-detail-actions [data-runtime-ai-from-detail] {
  border-color: rgba(255, 90, 44, 0.24);
  background: rgba(255, 90, 44, 0.1);
  color: var(--accent);
}

.runtime-drill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.runtime-service-card {
  overflow: hidden;
}

.runtime-service-card[open] {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.runtime-service-card summary {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  cursor: pointer;
  list-style: none;
}

.runtime-service-card summary::-webkit-details-marker {
  display: none;
}

.runtime-service-card i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(38, 114, 78, 0.12);
}

.runtime-service-card.warn i {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(184, 121, 0, 0.14);
}

.runtime-service-card.danger i {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(196, 63, 53, 0.13);
}

.runtime-service-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-service-card em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.runtime-service-card summary span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.runtime-service-card dl {
  display: grid;
  gap: 0;
  margin: 0 13px 13px 32px;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.runtime-service-card dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.06);
}

.runtime-service-card dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 900;
}

.runtime-service-card dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.runtime-lower-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 12px;
}

.runtime-event-stream,
.runtime-runbook-panel {
  padding: 14px;
}

.runtime-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.runtime-section-head strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.runtime-section-head span {
  color: var(--muted);
  text-transform: none;
  text-align: right;
}

.runtime-event-stream {
  display: grid;
  gap: 9px;
}

.runtime-event-stream button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}

.runtime-event-stream button > strong {
  color: var(--blue);
  font-size: 12px;
}

.runtime-event-stream button > span {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-event-stream em {
  border-radius: 999px;
  padding: 5px 7px;
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.runtime-event-stream em.warn {
  background: rgba(184, 121, 0, 0.12);
  color: var(--amber);
}

.runtime-event-stream em.danger {
  background: rgba(196, 63, 53, 0.12);
  color: var(--red);
}

.runtime-runbook-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runtime-runbook-panel li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 720;
}

.runtime-runbook-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.runtime-help-tokens {
  margin-top: 12px;
}

.runtime-help-tokens button,
.runtime-ai-prompts button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
}

.runtime-ai-assist {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 40;
  width: min(370px, calc(100vw - 44px));
  border: 1px solid rgba(109, 63, 209, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 80px rgba(33, 27, 22, 0.18);
  backdrop-filter: blur(14px);
  transform: translateY(calc(100% - 58px));
  transition: transform 0.22s ease;
  overflow: hidden;
}

.runtime-ai-assist.is-open {
  transform: translateY(0);
}

.runtime-ai-assist header {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
}

.runtime-ai-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px;
  background: #f1f0ee;
  box-shadow: inset 0 0 0 1px rgba(33, 27, 22, 0.08);
}

.runtime-ai-assist header strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.runtime-ai-assist header button {
  width: 28px;
  min-height: 28px;
  border-radius: 8px;
  color: var(--blue);
}

.runtime-ai-assist p {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.runtime-ai-sources,
.runtime-ai-prompts {
  padding: 0 14px 10px;
}

.runtime-ai-sources span {
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.runtime-ai-assist textarea {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  resize: vertical;
  border: 1px solid rgba(109, 63, 209, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.82);
  padding: 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.runtime-ai-assist textarea:focus {
  border-color: rgba(109, 63, 209, 0.46);
  box-shadow: 0 0 0 3px rgba(109, 63, 209, 0.1);
}

@media (max-width: 1280px) {
  .api-key-layout {
    grid-template-columns: 1fr;
  }

  .runtime-alert-strip,
  .runtime-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .api-key-summary-strip,
  .api-key-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-key-head {
    display: none;
  }

  .api-key-row {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--line);
  }

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

  .api-key-row > span {
    border-right: 0;
    padding: 8px 10px;
  }

  .api-key-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .runtime-orientation-grid,
  .runtime-alert-strip,
  .runtime-metric-grid,
  .runtime-drill-grid,
  .runtime-lower-grid {
    grid-template-columns: 1fr;
  }

  .runtime-service-card summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .runtime-service-card em {
    grid-column: 2 / -1;
  }

  .runtime-ai-assist {
    right: 12px;
    bottom: 12px;
    width: min(370px, calc(100vw - 24px));
  }
}

@media (max-width: 620px) {
  .api-key-form-grid,
  .api-key-detail-list div {
    grid-template-columns: 1fr;
  }

  .api-key-detail-head,
  .api-key-operation-head {
    flex-direction: column;
    gap: 8px;
  }

  .api-key-operation-head em {
    text-align: left;
  }

  .runtime-heading-actions {
    justify-content: flex-start;
  }

  .runtime-orientation-card {
    padding: 12px;
  }

  .runtime-orientation-head {
    flex-direction: column;
    gap: 8px;
  }

  .runtime-orientation-head em {
    text-align: left;
  }

  .runtime-alert-strip button,
  .runtime-metric-grid button,
  .runtime-event-stream,
  .runtime-runbook-panel {
    padding: 12px;
  }

  .runtime-service-card summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .runtime-service-card summary span,
  .runtime-service-card em {
    grid-column: 2 / -1;
  }

  .runtime-service-card dl {
    margin-left: 13px;
  }

  .runtime-service-card dl div,
  .runtime-detail-list,
  .runtime-detail-list div,
  .runtime-event-stream button {
    grid-template-columns: 1fr;
  }

  .runtime-event-stream em {
    width: fit-content;
  }
}

.manual-actions button:first-child {
  background: rgba(109, 63, 209, 0.08);
  color: var(--blue);
}

.manual-actions button:nth-child(6),
.manual-actions button:nth-child(8),
.row-actions button[data-row-action*="关停"],
.row-actions button[data-row-action*="冻结"],
.row-actions button[data-row-action*="限流"],
.support-action-grid button:nth-child(5) {
  border-color: rgba(196, 63, 53, 0.2);
  color: var(--red);
  background: rgba(255, 255, 255, 0.86);
}

/* API Key workbench redo */
.api-key-workbench {
  overflow: visible;
}

.api-key-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.api-key-toolbar > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.api-key-filter-group {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.api-key-filter-group button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.api-key-filter-group button.is-active {
  background: var(--blue);
  color: #fffaf4;
}

.api-key-table-wrap,
.api-key-operation-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.api-key-table-wrap {
  overflow-x: auto;
}

.api-key-table {
  width: 100%;
  min-width: 880px;
  display: table !important;
  border-collapse: collapse;
  background: transparent;
}

.api-key-table thead {
  display: table-header-group;
}

.api-key-table tbody {
  display: table-row-group;
}

.api-key-table tr {
  display: table-row !important;
}

.api-key-table tr[hidden] {
  display: none !important;
}

.api-key-table th,
.api-key-table td {
  display: table-cell !important;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.api-key-table th {
  background: rgba(109, 63, 209, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.api-key-table th:last-child,
.api-key-table td:last-child {
  border-right: 0;
}

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

.api-key-row {
  cursor: pointer;
}

.api-key-row:hover td,
.api-key-row.is-selected td {
  background: rgba(109, 63, 209, 0.055);
}

.api-key-row.is-selected td:first-child {
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.72) inset;
}

.api-key-table td.api-key-name {
  display: table-cell !important;
}

.api-key-table td.api-key-actions {
  display: table-cell !important;
  white-space: nowrap;
}

.api-key-name strong {
  color: var(--text);
  font-size: 13px;
}

.api-key-name em {
  color: var(--muted);
  font-size: 12px;
}

.api-key-row code {
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.api-key-actions button {
  margin-right: 6px;
}

.api-key-actions button:last-child {
  margin-right: 0;
}

.api-key-operation-page {
  margin-top: 14px;
  padding: 14px;
}

.api-key-subpage-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 12px;
}

.api-key-subpage-head h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.api-key-subpage-head span {
  display: block;
  margin-top: 6px;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.api-key-subpage-state {
  min-width: 210px;
  text-align: right;
}

.api-key-subpage-state strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.api-key-subpage-state em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.api-key-subpage-state b {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1;
}

.api-key-subpage-state b.is-live {
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.api-key-subpage-state b.is-muted {
  background: rgba(33, 27, 22, 0.08);
  color: var(--muted);
}

.api-key-subpage-state b.is-disabled {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.api-key-subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  margin-top: 14px;
}

.api-key-operation-page .api-key-detail-list {
  margin: 0;
  border-top: 0;
}

.api-key-operation-page .api-key-detail-list div {
  grid-template-columns: 98px minmax(0, 1fr);
}

.api-key-operation-card {
  padding: 12px;
}

.api-key-operation-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding-bottom: 10px;
}

.api-key-operation-head span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .api-key-subpage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .api-key-toolbar,
  .api-key-subpage-head {
    flex-direction: column;
    align-items: stretch;
  }

  .api-key-filter-group {
    overflow-x: auto;
  }

  .api-key-table {
    min-width: 0;
    display: block !important;
  }

  .api-key-table thead {
    display: none;
  }

  .api-key-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .api-key-table tr {
    display: grid !important;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
  }

  .api-key-table th,
  .api-key-table td,
  .api-key-table td.api-key-name,
  .api-key-table td.api-key-actions {
    display: block !important;
    width: 100%;
    border-right: 0;
    padding: 8px 10px;
  }

  .api-key-table td:not(.api-key-name):not(.api-key-actions)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
  }

  .api-key-table td:nth-child(2)::before {
    content: "Prefix";
  }

  .api-key-table td:nth-child(3)::before {
    content: "状态";
  }

  .api-key-table td:nth-child(4)::before {
    content: "熔断";
  }

  .api-key-table td:nth-child(5)::before {
    content: "最后使用";
  }

  .api-key-table td.api-key-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .api-key-actions button {
    margin-right: 0;
  }

  .api-key-subpage-state {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .api-key-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.api-key-domain-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid rgba(33, 27, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.api-key-domain-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.api-key-domain-tabs button.is-active {
  background: var(--blue);
  color: #fffaf4;
}

.api-key-domain-panel[hidden],
.api-key-dialog[hidden] {
  display: none !important;
}

.api-key-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.api-key-search {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
}

.api-key-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.api-key-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.api-key-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 740;
}

.api-key-table {
  min-width: 1040px;
}

.api-key-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.api-key-pagination div {
  display: flex;
  gap: 6px;
}

.api-key-pagination button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.api-key-pagination button:hover,
.api-key-actions button:hover,
.api-key-detail-actions button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.07);
}

.api-key-empty {
  border-top: 1px solid var(--line);
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
  text-align: center;
  background: rgba(255, 250, 244, 0.58);
}

.has-key-dialog {
  overflow: hidden;
}

.api-key-dialog {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(33, 27, 22, 0.22);
  backdrop-filter: blur(16px);
}

.api-key-dialog-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  overflow: auto;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 250, 244, 0.97);
  box-shadow: 0 26px 70px rgba(33, 27, 22, 0.18);
}

.api-key-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.api-key-dialog-head h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.api-key-dialog-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.api-key-dialog-card > p {
  margin: 0 0 12px;
  max-width: 62em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.api-key-dialog-context,
.api-key-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.api-key-dialog-context {
  align-items: start;
  margin-bottom: 8px;
}

.api-key-dialog-context label,
.api-key-dialog-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.api-key-dialog-context input[readonly],
.api-key-risk-field input[readonly] {
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  cursor: default;
}

.api-key-risk-origin {
  margin: -2px 0 10px !important;
  max-width: none !important;
  color: var(--muted);
  font-size: 11px !important;
  line-height: 1.45 !important;
  font-weight: 720;
}

.api-key-dialog-grid label.wide {
  grid-column: 1 / -1;
}

.api-key-dialog-dynamic {
  display: grid;
  gap: 10px;
}

.api-key-dialog-dynamic section {
  border: 1px solid rgba(33, 27, 22, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.api-key-dialog-dynamic h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.api-key-dialog-grid input,
.api-key-dialog-grid select,
.api-key-dialog-grid textarea,
.api-key-dialog-context input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-key-dialog-grid textarea {
  min-height: 72px;
  padding-top: 8px;
  resize: vertical;
}

.api-key-dialog-diff,
.api-key-secure-preview,
.api-key-dialog-checklist,
.api-key-risk-assessment {
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: 8px;
  background: rgba(109, 63, 209, 0.055);
  padding: 11px 12px;
}

.api-key-risk-assessment {
  margin-bottom: 12px;
  border-color: rgba(255, 90, 44, 0.16);
  background: rgba(255, 90, 44, 0.045);
}

.api-key-dialog-diff strong,
.api-key-secure-preview strong,
.api-key-dialog-checklist strong,
.api-key-risk-assessment strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.api-key-dialog-diff span,
.api-key-secure-preview span,
.api-key-secure-preview em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
  font-weight: 760;
}

.api-key-secure-preview strong {
  margin-top: 6px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.api-key-dialog-checklist {
  margin-top: 12px;
  background: rgba(255, 250, 244, 0.72);
}

.api-key-dialog-checklist ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.api-key-risk-assessment ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.api-key-risk-assessment li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.api-key-risk-assessment li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.api-key-dialog-checklist li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.api-key-dialog-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.api-key-dialog-grid[data-key-dialog-common] {
  margin-top: 12px;
}

.api-key-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.api-key-dialog-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.api-key-dialog-actions button:nth-child(2) {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
}

.api-key-dialog-actions button:nth-child(3) {
  border-color: rgba(255, 90, 44, 0.24);
  background: rgba(255, 90, 44, 0.1);
  color: var(--accent);
}

.api-key-dialog-status {
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
}

.approval-workbench {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: start;
}

.approval-rule-strip,
.approval-summary-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.approval-rule-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approval-rule-strip div,
.approval-summary-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 12px;
}

.approval-rule-strip span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.approval-rule-strip strong,
.approval-summary-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.approval-rule-strip em,
.approval-summary-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 760;
}

.approval-summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approval-summary-strip strong {
  margin-top: 0;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.approval-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.approval-toolbar > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
  text-align: right;
}

.approval-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.approval-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.approval-table th:nth-child(1),
.approval-table td:nth-child(1) {
  width: 36%;
}

.approval-table th:nth-child(2),
.approval-table td:nth-child(2),
.approval-table th:nth-child(3),
.approval-table td:nth-child(3) {
  width: 15%;
}

.approval-table th:nth-child(4),
.approval-table td:nth-child(4) {
  width: 13%;
}

.approval-table th:nth-child(5),
.approval-table td:nth-child(5) {
  width: 11%;
}

.approval-table th:nth-child(6),
.approval-table td:nth-child(6) {
  width: 10%;
}

.approval-table th,
.approval-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.approval-table th {
  background: rgba(109, 63, 209, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.approval-table td:last-child,
.approval-table th:last-child {
  border-right: 0;
}

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

.approval-row {
  cursor: pointer;
}

.approval-row:hover td,
.approval-row.is-selected td {
  background: rgba(109, 63, 209, 0.055);
}

.approval-row.is-selected td:first-child {
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.72) inset;
}

.approval-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.approval-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.approval-status {
  display: inline-flex;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.approval-status.is-pending {
  background: rgba(184, 121, 0, 0.1);
  color: var(--amber);
}

.approval-status.is-approved {
  background: rgba(38, 114, 78, 0.1);
  color: var(--green);
}

.approval-status.is-rejected {
  background: rgba(196, 63, 53, 0.1);
  color: var(--red);
}

.approval-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.approval-row-actions button,
.approval-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.approval-row-actions button + button,
.approval-actions button + button {
  margin-left: 0;
}

.approval-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.approval-detail-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.07);
}

.approval-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.approval-detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.approval-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.approval-timeline span {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  padding: 8px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.approval-timeline span.is-done {
  border-color: rgba(38, 114, 78, 0.18);
  background: rgba(38, 114, 78, 0.08);
  color: var(--green);
}

.approval-timeline span.is-current {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(109, 63, 209, 0.1);
  color: var(--blue);
}

.approval-feedback {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.approval-feedback textarea {
  width: 100%;
  min-height: 86px;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.approval-actions button {
  margin-left: 0;
}

.approval-actions button:first-child {
  border-color: rgba(38, 114, 78, 0.2);
  background: rgba(38, 114, 78, 0.08);
  color: var(--green);
}

.approval-actions button:nth-child(2),
.approval-row-actions button[data-approval-row-action="reject"] {
  border-color: rgba(196, 63, 53, 0.2);
  background: rgba(196, 63, 53, 0.08);
  color: var(--red);
}

.approval-actions button:last-child {
  border-color: rgba(255, 90, 44, 0.24);
  background: rgba(255, 90, 44, 0.1);
  color: var(--accent);
}

.approval-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

@media (max-width: 1120px) {
  .approval-workbench {
    grid-template-columns: 1fr;
  }

  .approval-rule-strip,
  .approval-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .api-key-domain-tabs,
  .api-key-filter-group,
  .approval-toolbar {
    width: 100%;
    overflow-x: auto;
  }

  .api-key-search-row,
  .api-key-search,
  .api-key-dialog-context,
  .api-key-dialog-grid {
    grid-template-columns: 1fr;
  }

  .approval-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .approval-toolbar > span {
    text-align: left;
  }

  .approval-table {
    min-width: 0;
    display: block;
  }

  .approval-table thead {
    display: none;
  }

  .approval-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .approval-table tr {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
  }

  .approval-table td {
    display: block;
    width: 100% !important;
    border-right: 0;
    padding: 8px 10px;
  }

  .approval-table td:not(:first-child)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
  }

  .approval-table td:nth-child(2)::before { content: "提交人"; }
  .approval-table td:nth-child(3)::before { content: "所需权限"; }
  .approval-table td:nth-child(4)::before { content: "状态"; }
  .approval-table td:nth-child(5)::before { content: "SLA"; }
  .approval-table td:nth-child(6)::before { content: "操作"; }

  .approval-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-row-actions button {
    width: 100%;
  }

  .approval-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-key-table {
    min-width: 0;
  }

  .api-key-table td:nth-child(2)::before {
    content: "Key 名称";
  }

  .api-key-table td:nth-child(3)::before {
    content: "Prefix";
  }

  .api-key-table td:nth-child(4)::before {
    content: "状态";
  }

  .api-key-table td:nth-child(5)::before {
    content: "熔断 / 探测";
  }

  .api-key-table td:nth-child(6)::before {
    content: "最后使用";
  }

  .api-key-table td:nth-child(7)::before {
    content: "操作";
  }

  .provider-key-table td:nth-child(2)::before {
    content: "Vault ID";
  }

  .provider-key-table td:nth-child(3)::before {
    content: "类型";
  }

  .provider-key-table td:nth-child(5)::before {
    content: "轮换 / 探测";
  }

  .provider-key-table td:nth-child(6)::before {
    content: "操作";
  }

  .api-key-table td.api-key-actions::before {
    content: "操作";
    display: block;
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
  }

  .api-key-dialog {
    align-items: end;
    padding: 12px;
  }

  .api-key-dialog-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 10px 10px 0 0;
  }

  .api-key-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Approval center final cascade */
.approval-workbench {
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.76fr);
  gap: 18px;
  align-items: start;
}

.approval-queue-panel .panel-heading,
.approval-detail-panel .panel-heading {
  margin-bottom: 14px;
}

.approval-queue-panel h2,
.approval-detail-panel h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.approval-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
}

.approval-table th:nth-child(1),
.approval-table td:nth-child(1) {
  width: 35%;
}

.approval-table th:nth-child(2),
.approval-table td:nth-child(2) {
  width: 15%;
}

.approval-table th:nth-child(3),
.approval-table td:nth-child(3) {
  width: 20%;
}

.approval-table th:nth-child(4),
.approval-table td:nth-child(4) {
  width: 19%;
}

.approval-table th:nth-child(5),
.approval-table td:nth-child(5) {
  width: 11%;
}

.approval-table th,
.approval-table td {
  border-right: 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  text-align: left;
  vertical-align: middle;
}

.approval-table th {
  background: rgba(255, 250, 244, 0.82);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.approval-detail-panel {
  position: sticky;
  top: 96px;
}

.approval-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
}

.approval-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(33, 27, 22, 0.065);
}

.approval-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.approval-detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 760;
}

.approval-feedback {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.approval-feedback textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.approval-submitter-actions,
.approval-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.approval-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approval-submitter-actions button,
.approval-actions button {
  min-height: 34px;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.approval-submitter-actions button:disabled,
.approval-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.approval-result {
  margin: 12px 0 0;
  border-top: 1px solid rgba(33, 27, 22, 0.08);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 720;
}

@media (max-width: 1180px) {
  .approval-workbench {
    grid-template-columns: 1fr;
  }

  .approval-detail-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .approval-flow-rail,
  .approval-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-table {
    min-width: 0;
    display: block;
  }

  .approval-table thead {
    display: none;
  }

  .approval-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .approval-table tr {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
  }

  .approval-table td {
    display: block;
    width: 100% !important;
    border-right: 0;
    padding: 9px 11px;
  }

  .approval-table td:nth-child(2)::before { content: "状态"; }
  .approval-table td:nth-child(3)::before { content: "风险"; }
  .approval-table td:nth-child(4)::before { content: "提交 / 权限"; }
  .approval-table td:nth-child(5)::before { content: "SLA"; }
  .approval-table td:nth-child(6)::before { content: ""; display: none; }

  .approval-stage-rail,
  .approval-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .approval-filter-bar,
  .approval-flow-rail,
  .approval-submitter-actions,
  .approval-actions,
  .approval-stage-rail,
  .approval-detail-list div {
    grid-template-columns: 1fr;
  }
}

/* Model resource pool true final override */
.ops-grid.model-pool-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 18px;
  align-items: start;
}

.model-pool-panel,
.model-health-panel {
  overflow: hidden;
}

.model-health-panel {
  position: sticky;
  top: 96px;
}

.model-pool-panel .panel-heading,
.model-health-panel .panel-heading {
  margin-bottom: 14px;
}

.model-pool-panel h2,
.model-health-panel h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.pool-operating-note {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  border-left: 3px solid rgba(109, 63, 209, 0.5);
  padding: 2px 0 2px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.pool-operating-note strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.provider-control-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.model-pool-layout .pool-summary-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.model-pool-layout .pool-summary-strip div {
  min-height: 64px;
  display: grid;
  align-content: center;
  border-color: rgba(33, 27, 22, 0.08);
  padding: 10px;
}

.model-pool-layout .pool-summary-strip strong {
  font-size: 20px;
  line-height: 1;
}

.model-pool-layout .pool-summary-strip span {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.25;
}

.model-pool-layout .pool-filter-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  margin-bottom: 12px;
  border-color: rgba(33, 27, 22, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 5px;
}

.model-pool-layout .pool-filter-bar button {
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .pool-filter-bar button.is-active {
  background: var(--text);
  color: #fffaf4;
  box-shadow: none;
}

.model-pool-layout .supplier-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.model-pool-layout .supplier-row {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(116px, 0.72fr) minmax(112px, 0.62fr) minmax(82px, 0.42fr);
  gap: 12px;
  align-items: center;
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  overflow: hidden;
}

.model-pool-layout .supplier-row.is-selected {
  border-color: rgba(109, 63, 209, 0.3);
  background: rgba(109, 63, 209, 0.08);
  box-shadow: 3px 0 0 rgba(109, 63, 209, 0.68) inset;
}

.model-pool-layout .supplier-row span {
  min-width: 0;
}

.model-pool-layout .supplier-row strong,
.model-pool-layout .supplier-row b,
.model-pool-layout .supplier-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-pool-layout .supplier-row strong,
.model-pool-layout .supplier-row b {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 850;
}

.model-pool-layout .supplier-main strong {
  font-size: 13px;
}

.model-pool-layout .supplier-row em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.model-pool-layout .supplier-row > span:nth-child(4) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.model-pool-layout .supplier-actions {
  display: none !important;
}

.model-health-panel .selected-relay-card,
.model-health-panel .failover-stack-card,
.model-health-panel .manual-switch-card {
  border-color: rgba(33, 27, 22, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.model-health-panel .selected-relay-card {
  padding: 14px;
  margin-bottom: 10px;
}

.model-health-panel .selected-relay-card span,
.model-health-panel .failover-stack-card > span,
.model-health-panel .manual-switch-card span,
.model-health-panel .relay-detail-list dt {
  letter-spacing: 0;
  text-transform: none;
}

.model-health-panel .selected-relay-card strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.15;
}

.model-health-panel .selected-relay-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.model-health-panel .relay-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.model-health-panel .relay-detail-list div {
  min-height: 64px;
  padding: 10px;
}

.model-health-panel .relay-detail-list dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.35;
}

.model-health-panel .failover-stack-card,
.model-health-panel .manual-switch-card {
  padding: 12px;
  margin-bottom: 10px;
}

.model-health-panel .traffic-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.model-health-panel .manual-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-health-panel .traffic-options button,
.model-health-panel .manual-actions button {
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-health-panel .probe-grid.compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 1320px) {
  .ops-grid.model-pool-layout {
    grid-template-columns: 1fr;
  }

  .model-health-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .model-pool-layout .pool-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .model-pool-layout .pool-filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .model-pool-layout .supplier-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(104px, 0.65fr) minmax(90px, 0.52fr);
  }

  .model-pool-layout .supplier-row > span:nth-child(4) {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .model-pool-layout .panel-actions,
  .model-pool-layout .pool-summary-strip,
  .model-pool-layout .pool-filter-bar,
  .model-pool-layout .supplier-row,
  .model-health-panel .relay-detail-list,
  .model-health-panel .traffic-options,
  .model-health-panel .manual-actions {
    grid-template-columns: 1fr;
  }

  .model-pool-layout .supplier-row > span:nth-child(4) {
    grid-column: auto;
  }
}
