:root {
  --bg: #f5f7fa;
  --panel: #fff;
  --ink: #1f2329;
  --muted: #4e5969;
  --muted2: #6b7785;
  --line: #e5e6eb;
  --navy: #1f2329;
  --navy2: #4e5969;
  --blue: #165dff;
  --cyan: var(--blue);
  --green: #16834a;
  --amber: #ad6500;
  --red: #cf3030;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}
.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.2px;
}
.brand span {
  display: block;
  margin-top: 1px;
}
.tenant-switcher {
  border: 1px solid #26374d;
}
.eyebrow,
.nav-label {
  display: block;
  text-transform: uppercase;
}
.tenant-switcher button {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.tenant-switcher small {
  font-size: 12px;
}
.nav {
  flex: 1;
}
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  margin: 2px 0;
  font-size: 13px;
}
.nav-icon {
  text-align: center;
  font-size: 16px;
}
.nav-badge {
  margin-left: auto;
  border-radius: 4px;
}
.sidebar-footer {
  border-top: 1px solid #213249;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.sidebar-footer strong {
  display: block;
}
.status-dot {
  border-radius: 50%;
  margin-left: 3px;
}
.sidebar-footer .icon-button {
  margin-left: auto;
  color: #71859e;
}
.main {
  min-width: 0;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crumbs {
  display: flex;
  align-items: center;
}
.crumbs i {
  font-style: normal;
  color: #c0cad5;
}
.top-actions {
  display: flex;
  align-items: center;
}
.env-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}
.env-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 17px;
}
.view {
  display: none;
  margin: auto;
}
.view.active {
  display: block;
}
.page-heading {
  display: flex;
  justify-content: space-between;
}
.page-heading p {
  margin: 0;
}
.heading-actions {
  display: flex;
  align-items: center;
}
.btn {
  border: 1px solid #dfe6ef;
  background: #fff;
}
.btn:hover {
  border-color: #afc7ef;
}
.btn.primary:hover {
  background: var(--blue);
}
.metrics-grid {
  display: grid;
}
.metric-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
  border-radius: 6px;
}
.metric-card {
  position: relative;
  overflow: hidden;
}
.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-icon {
  color: #8a9caf;
  font-size: 14px;
}
.metric-value {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin: 10px 0 4px;
  color: var(--ink);
}
.trend {
  color: #1da773;
  font-weight: 600;
  margin-left: 5px;
}
.metric-spark {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 35px;
  opacity: 0.25;
}
.grid-2 {
  display: grid;
}
.panel {
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eff2f6;
}
.link-btn {
  background: none;
  border: 0;
}
.chart {
  height: 185px;
  position: relative;
  padding: 10px 0 17px 34px;
}
.chart-grid {
  position: absolute;
  inset: 11px 0 28px 34px;
}
.chart svg {
  position: absolute;
  inset: 14px 0 26px 35px;
  width: calc(100% - 35px);
  height: calc(100% - 40px);
  overflow: visible;
}
.chart-labels {
  position: absolute;
  left: 34px;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted2);
  font-size: 12px;
}
.chart-axis {
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted2);
  font-size: 12px;
}
.service-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f2f6;
}
.service-row:last-child {
  border: 0;
}
.service-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  background: #5d85df;
}
.service-logo.green {
  background: #41b99a;
}
.service-main {
  min-width: 0;
  flex: 1;
}
.service-name {
  display: block;
}
.service-domain {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.state::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.state.healthy,
.state.active,
.state.succeeded,
.state.completed {
  background: #eaf8f1;
  color: #22986a;
}
.state.draft,
.state.queued {
  background: #f1f4f8;
  color: #7e8c9d;
}
.state.running,
.state.publishing {
  background: #fff5e4;
  color: #bd801d;
}
.state.failed {
  background: #fff0f0;
  color: #d26060;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  border-bottom: 1px solid #edf0f4;
  white-space: nowrap;
}
td {
  border-bottom: 1px solid #f0f2f5;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.pop-grid {
  display: grid;
}
.pop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pop-name {
  font-size: 14px;
}
.pop-region {
  margin-top: 3px;
}
.pop-stat {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.progress {
  border-radius: 5px;
  background: #edf1f5;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.empty strong {
  display: block;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
}
.modal {
  background: #fff;
}
.modal-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h2 {
  margin: 0;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.field label {
  display: block;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-size: 12px;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #78a2ed;
  box-shadow: none;
}
.field-row {
  display: grid;
}
.close {
  border: 0;
  background: none;
  color: var(--muted2);
}
.toast {
  position: fixed;
  z-index: 8;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast.error {
  background: #a64f54;
}
.simulator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f6f9fd;
  border: 1px solid #e9eef5;
  border-radius: 6px;
  padding: 8px;
  margin-top: 13px;
}
.simulator input {
  flex: 1;
  border: 1px solid #dce5ef;
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 12px;
  min-width: 0;
  background: #fff;
}
.sim-result {
  margin-top: 10px;
  padding: 10px;
  background: #f7fafc;
  border-radius: 6px;
  display: none;
}
.sim-result.show {
  display: block;
}
.sim-result b {
  color: #248b69;
}
@media (max-width: 1000px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sidebar {
    width: 62px;
    padding: 18px 8px;
  }
  .brand {
    padding: 0 5px 24px;
  }
  .brand > div:last-child,
  .tenant-switcher,
  .nav-label,
  .nav-item:not(.active)::after,
  .nav-item {
    font-size: 0;
  }
  .brand-mark {
    width: 34px;
  }
  .nav-item {
    justify-content: center;
    padding: 11px 0;
  }
  .nav-icon {
    font-size: 17px;
  }
  .nav-badge {
    display: none;
  }
  .sidebar-footer div:not(.status-dot),
  .sidebar-footer .icon-button {
    display: none;
  }
  .main {
    margin-left: 62px;
    width: calc(100% - 62px);
  }
  .topbar {
    padding: 0 18px;
  }
  .top-actions .icon-button {
    display: none;
  }
  .view {
    padding: 22px 16px 40px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric-card {
    padding: 13px;
  }
  .metric-value {
    font-size: 20px;
  }
  .field-row,
  .pop-grid {
    grid-template-columns: 1fr;
  }
}
.wizard-step-label {
  color: var(--muted2);
  margin-top: 3px;
}
.wizard-progress {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.wizard-progress-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wizard-progress-item i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f7;
  color: var(--muted2);
  font-style: normal;
}
.wizard-progress-item.active i {
  color: white;
}
.field-help {
  display: block;
  margin-top: 4px;
}
.wizard-note b {
  display: block;
}
.wizard-review {
  overflow: hidden;
}
.review-row {
  justify-content: space-between;
  border-bottom: 1px solid #f0f2f6;
}
.review-row:last-child {
  border-bottom: 0;
}
.review-row span {
  color: var(--muted);
}
.review-row b {
  word-break: break-all;
}
.site-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-meta {
  display: flex;
  align-items: center;
}
.site-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.site-tabs span {
  color: var(--muted);
  font-size: 12px;
  padding: 11px 0 9px;
  white-space: nowrap;
}
.site-tabs span.active {
  color: var(--blue);
  font-weight: 650;
  border-bottom: 2px solid var(--blue);
}
.site-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.site-kpi {
  border: 1px solid #e9eef5;
  border-radius: 6px;
  padding: 12px 13px;
  background: #fbfcfe;
}
.site-kpi span,
.site-kpi small {
  display: block;
  color: var(--muted2);
  font-size: 12px;
}
.site-kpi b {
  display: block;
  margin: 5px 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-kpi small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-detail-grid {
  display: grid;
}
.site-info-card {
  box-shadow: none;
  background: #fbfcfe;
}
.detail-list > div {
  justify-content: space-between;
  border-bottom: 1px solid #eef1f5;
}
.detail-list > div:last-child {
  border-bottom: 0;
}
.detail-list span {
  color: var(--muted);
}
.edge-health {
  padding: 9px 16px 12px;
}
.edge-health > div {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  border-bottom: 1px solid #eef1f5;
}
.edge-health > div:last-child {
  border-bottom: 0;
}
.edge-health span {
  color: var(--muted);
}
.health-dot {
  border-radius: 50%;
}
.muted-dot {
  box-shadow: none;
}
.tag-blue {
  font-size: 12px;
  color: var(--blue);
  background: #eaf1ff;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 500;
}
.site-versions {
  box-shadow: none;
}
.site-versions th,
.site-versions td {
  padding-left: 13px;
  padding-right: 13px;
}
@media (max-width: 720px) {
  .site-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-detail-head .heading-actions {
    width: 100%;
  }
  .site-detail-head .heading-actions .btn {
    flex: 1;
  }
  .site-tabs {
    gap: 14px;
    overflow: auto;
  }
  .site-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .site-detail-grid {
    grid-template-columns: 1fr;
  }
}
.site-tab-btn {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 11px 0 9px;
  white-space: nowrap;
}
.site-tab-btn:hover {
  color: var(--blue);
  border-bottom-color: #b9cff8;
}
.modal {
  display: flex;
  flex-direction: column;
}
.modal > form {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.modal-body {
  overflow: auto;
  min-height: 0;
}
.modal-head,
.modal-foot {
  flex-shrink: 0;
}
.modal button:disabled {
  cursor: wait;
  opacity: 0.65;
}
#origin-members .field-row {
  margin-top: 8px;
}
.health-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.health-summary > div {
  border: 1px solid #e9eef5;
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfe;
}
.health-summary span {
  display: block;
  color: var(--muted2);
  font-size: 12px;
}
.health-summary b {
  display: block;
  color: var(--ink);
  margin-top: 4px;
  font-size: 13px;
}
.health-modal-panel {
  box-shadow: none;
  margin-bottom: 10px;
}
.health-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f5;
}
.health-row:last-child {
  border-bottom: 0;
}
.health-row span {
  color: var(--muted);
}
.health-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.health-chip {
  padding: 3px 7px;
}
@media (max-width: 720px) {
  .health-summary {
    grid-template-columns: 1fr 1fr;
  }
}
.verification-list {
  display: flex;
  flex-direction: column;
}
.verification-row {
  display: grid;
  align-items: center;
}
.verification-row b,
.verification-row small,
.verification-row code {
  display: block;
}
.verification-row small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.verification-row code {
  font-size: 12px;
  color: #52709a;
  margin-top: 5px;
  word-break: break-all;
}
.verification-row .state {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .verification-row {
    grid-template-columns: 1fr auto;
  }
  .verification-row .btn {
    grid-column: 1 / -1;
  }
}

.capability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.capability-chip {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  color: #3565a0;
  background: #edf4ff;
  font-size: 12px;
  line-height: 1.4;
}
.capability-cell {
  max-width: 330px;
  white-space: normal;
}
.edge-node-panel .table-wrap {
  overflow-x: auto;
}
.node-target-list {
  overflow: hidden;
}
.node-target-list > div {
  border-bottom: 1px solid #e5ebf3;
}
.node-target-list > div:last-child {
  border-bottom: 0;
}
.node-target-list strong,
.node-target-list small {
  display: block;
  overflow-wrap: anywhere;
}
.node-target-list small {
  margin-top: 4px;
}

.node-pool-options {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}
.field .node-pool-option {
  border: 1px solid #e5ebf3;
  padding: 9px;
  font-weight: 400;
}
.field .node-pool-option input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.node-pool-option small {
  display: block;
  margin-top: 3px;
}
@media (max-width: 720px) {
  .node-pool-options {
    grid-template-columns: 1fr;
  }
}
.route-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.origin-route-extra {
  padding: 12px 0;
  border-top: 1px solid #e5ebf3;
  margin-top: 14px;
}
.origin-route-extra summary {
  cursor: pointer;
  margin-bottom: 12px;
}

.manifest-digest {
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.deployment-receipt .text-bad {
  overflow-wrap: anywhere;
}
#metric-custom-time[hidden] {
  display: none;
}
#view-metrics .metric-value {
  font-size: 25px;
  overflow-wrap: anywhere;
}
#view-metrics .detail-list b {
  overflow-wrap: anywhere;
}

/* UI regression: shared console sizing, hierarchy, and page density. */
.trend,
.sim-result b {
  color: var(--green);
}
.trend.down {
  color: var(--red);
}
.modal-body strong[style*="#219a6d"] {
  color: var(--green) !important;
}
.modal-body strong[style*="#bb8327"] {
  color: var(--amber) !important;
}
.modal-body strong[style*="#d05f5f"] {
  color: var(--red) !important;
}
.node-pool-options:has(input[name="requiredCapabilities"]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: none;
  gap: 4px 8px;
}
.field .node-pool-option:has(input[name="requiredCapabilities"]) {
  border: 0;
  padding: 5px 0;
}
.node-pool-option:has(input[name="requiredCapabilities"]):hover {
  background: #f7f8fa;
}
@media (max-width: 720px) {
  .node-pool-options:has(input[name="requiredCapabilities"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
button,
input,
select,
textarea {
  font: inherit;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--line);
  color: var(--ink);
  padding: 16px 12px 12px;
}
.brand {
  padding: 0 8px 18px;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--blue);
  font-weight: 600;
  box-shadow: none;
}
.brand strong {
  color: var(--ink);
  font-weight: 600;
}
.brand span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted2);
}
.tenant-switcher {
  background: #f7f8fa;
  border-color: var(--line);
  border-radius: 4px;
  padding: 9px 10px;
  margin: 0 0 14px;
  flex-shrink: 0;
}
.tenant-switcher button {
  color: var(--ink);
  font-size: 12px;
  padding: 4px 0;
  gap: 4px;
}
.tenant-switcher small {
  display: block;
  color: var(--muted2);
  overflow-wrap: anywhere;
}
.eyebrow,
.nav-label {
  letter-spacing: 0;
  color: var(--muted2);
  font-weight: 400;
  font-size: 12px;
}
.nav {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.nav-label {
  margin: 0 10px 5px;
}
.nav-label:not(:first-child) {
  margin-top: 14px;
}
.nav-item {
  min-height: 36px;
  color: var(--muted);
  border-radius: 4px;
  padding: 8px 10px;
  gap: 9px;
  line-height: 20px;
}
.nav-item:hover {
  background: #f2f3f5;
  color: var(--ink);
}
.nav-item.active {
  color: var(--blue);
  background: #eaf1ff;
  box-shadow: inset 2px 0 var(--blue);
  font-weight: 600;
}
.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted2);
}
.nav-icon svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active .nav-icon {
  color: var(--blue);
}
.nav-badge {
  font-size: 10px;
  line-height: 16px;
  padding: 0 4px;
  letter-spacing: 0;
  font-weight: 500;
}
.nav-badge.live {
  color: var(--green);
  background: #e8f5ed;
}
.nav-badge.offline {
  color: var(--red);
  background: #fff0f0;
}
.sidebar-footer {
  border-color: var(--line);
  padding: 12px 5px 0;
  flex-shrink: 0;
}
.sidebar-footer strong {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.sidebar-footer small {
  color: var(--muted2);
  font-size: 12px;
}
.status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
  background: var(--green);
  flex-shrink: 0;
}
.main {
  margin-left: 220px;
  width: calc(100% - 220px);
}
.topbar {
  height: 52px;
  padding: 0 24px;
  gap: 16px;
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
  gap: 10px;
  min-width: 0;
}
.crumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumbs strong {
  color: var(--ink);
  font-weight: 500;
  flex-shrink: 0;
}
.top-actions {
  gap: 12px;
  flex-shrink: 0;
}
.env-pill {
  font-size: 12px;
  border-radius: 4px;
  background: #f1f8f4;
  color: var(--green);
  padding: 3px 8px;
}
.env-pill i {
  background: var(--green);
}
.env-pill.offline {
  color: var(--red);
  background: #fff0f0;
}
.env-pill.offline i {
  background: var(--red);
}
.icon-button {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
}
.icon-button:hover {
  background: #f2f3f5;
  color: var(--ink);
}
.avatar {
  width: 28px;
  height: 28px;
  border: 1px solid #d9e5ff;
  border-radius: 4px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}
.view {
  padding: 20px 24px 32px;
  max-width: none;
}
.page-heading {
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.page-heading h1 {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
}
.heading-actions {
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.btn {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 20px;
  border-radius: 4px;
  border-color: #c9cdd4;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.btn:hover:enabled {
  color: var(--blue);
  border-color: var(--blue);
  background: #f7faff;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: none;
  color: #fff;
}
.btn.primary:hover:enabled {
  background: #0e4bd4;
  border-color: #0e4bd4;
  color: #fff;
}
.btn.small {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 13px;
}
.btn.danger {
  color: var(--red);
}
.btn.danger:hover:enabled {
  border-color: var(--red);
  color: var(--red);
  background: #fff4f4;
}
.btn:disabled,
.modal button:disabled {
  color: #86909c;
  background: #f2f3f5;
  border-color: var(--line);
  opacity: 1;
  cursor: not-allowed;
}
.link-btn {
  font-size: 13px;
  color: var(--blue);
  padding: 2px 0;
}
.link-btn:hover {
  text-decoration: underline;
}
.field {
  min-width: 0;
  margin-bottom: 12px;
}
.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 5px;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.modal td input:not([type="checkbox"]):not([type="radio"]),
.simulator input {
  width: 100%;
  min-height: 32px;
  border: 1px solid #c9cdd4;
  border-radius: 4px;
  padding: 5px 10px;
  line-height: 20px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-size: 14px;
  min-width: 0;
}
.field textarea {
  min-height: 80px;
}
input::placeholder,
textarea::placeholder {
  color: #86909c;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.modal td input:focus,
.simulator input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #165dff14;
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled,
fieldset:disabled input,
fieldset:disabled select {
  background: #f2f3f5;
  color: #86909c;
}
input[type="checkbox"],
input[type="radio"],
.field input[type="checkbox"],
.field input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0 6px 0 0;
  vertical-align: -3px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.field label:has(input[type="checkbox"]),
.field label:has(input[type="radio"]) {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  margin: 3px 16px 3px 0;
  font-weight: 400;
  color: var(--ink);
}
.field label:has(input[type="checkbox"]) input,
.field label:has(input[type="radio"]) input {
  margin-top: 2px;
}
.field:has(input[type="checkbox"]) br {
  display: none;
}
.field-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.field-help {
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.query-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.panel {
  border-radius: 6px;
  box-shadow: none;
  min-width: 0;
}
.panel-head {
  min-height: 44px;
  padding: 10px 16px;
  gap: 12px;
  border-color: var(--line);
}
.panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.panel-sub {
  font-size: 12px;
  color: var(--muted2);
  text-align: right;
}
.panel-body {
  padding: 16px;
}
.view > .panel + .panel,
.view > .panel + .metrics-grid,
.view > .panel + .grid-2,
.view > .wizard-note + .panel,
.view > .panel + .wizard-note {
  margin-top: 12px;
}
.grid-2 {
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.metric-card {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 14px 20px;
  min-height: 108px;
  min-width: 0;
}
.metric-card:last-child {
  border-right: 0;
}
.metric-label {
  color: var(--muted);
  font-size: 13px;
}
.metric-icon,
.metric-spark {
  display: none;
}
.metric-value,
#view-metrics .metric-value {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
  margin: 5px 0 3px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.metric-value small {
  margin-left: 4px;
  color: var(--muted);
}
.metric-foot {
  font-size: 12px;
  color: var(--muted2);
}
.muted {
  color: var(--muted2);
}
.code {
  font-size: 12px;
  color: var(--muted);
}
th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  padding: 9px 16px;
  background: #f7f8fa;
  border-color: var(--line);
}
td {
  font-size: 13px;
  padding: 10px 16px;
  color: var(--muted);
  border-color: var(--divider, #f2f3f5);
  line-height: 20px;
  vertical-align: middle;
}
td strong {
  color: var(--ink);
  font-weight: 500;
}
tbody tr:hover {
  background: #f7faff;
}
td .field-help {
  margin-top: 2px;
}
td .btn + .btn {
  margin-left: 4px;
}
td .progress {
  margin-bottom: 3px;
}
.view.active .table-wrap:has(tbody:empty)::after {
  content: "暂无记录";
  display: block;
  color: var(--muted2);
  padding: 24px 16px;
  font-size: 13px;
  text-align: center;
}
.state {
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 20px;
  background: #f2f3f5;
  color: var(--muted);
  white-space: nowrap;
}
.state::before {
  flex-shrink: 0;
}
.state.healthy,
.state.active,
.state.succeeded,
.state.completed,
.state.approved,
.state.resolved {
  background: #edf8f1;
  color: var(--green);
}
.state.draft,
.state.canceled,
.state.superseded,
.state.disabled,
.state.revoked {
  background: #f2f3f5;
  color: var(--muted2);
}
.state.running,
.state.publishing,
.state.queued,
.state.scheduled,
.state.updating {
  background: #eaf1ff;
  color: var(--blue);
}
.state.pending_auth,
.state.pending,
.state.observe,
.state.warning {
  background: #fff6e8;
  color: var(--amber);
}
.state.failed,
.state.unhealthy,
.state.stale,
.state.edge_unavailable,
.state.block,
.state.critical,
.state.rejected,
.state.expired {
  background: #fff0f0;
  color: var(--red);
}
.text-good {
  color: var(--green);
}
.text-bad {
  color: var(--red);
}
.text-warn {
  color: var(--amber) !important;
}
.tag-blue,
.capability-chip {
  font-size: 12px;
  color: var(--blue);
  background: #f0f5ff;
  border: 1px solid #dce7ff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 400;
  line-height: 20px;
}
.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted2);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.empty strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.empty[role="alert"],
.empty[role="alert"] strong {
  color: var(--red);
}
.empty[role="alert"] {
  background: #fff6f6;
}
.wizard-note {
  padding: 10px 12px;
  background: #f5f8ff;
  border: 1px solid #e0e9ff;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.wizard-note b {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}
.modal-body > .wizard-note {
  margin-bottom: 12px;
}
.form-error {
  margin: 12px 0;
  padding: 8px 12px;
  border: 1px solid #f7c7c7;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: #fff6f6;
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.modal.version-compare-modal {
  width: min(1040px, 100%);
}
.console-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.console-login-panel {
  width: min(420px, 100%);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.console-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink);
}
.console-login h1 {
  font-size: 20px;
  margin: 0 0 8px;
}
.console-login-panel > p {
  font-size: 13px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.console-login-submit,
.console-login-dev {
  width: 100%;
  margin-top: 8px;
}
.version-compare-table table {
  min-width: 640px;
  table-layout: fixed;
}
.version-compare-table th:nth-child(1) {
  width: 28%;
}
.version-compare-table th:nth-child(2) {
  width: 8%;
}
.version-compare-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.version-compare-value {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.version-compare-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.view > .wizard-note {
  margin-bottom: 12px;
}
.toast {
  right: 24px;
  top: 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 4px 16px #1f23291a;
  max-width: calc(100vw - 32px);
  overflow-wrap: anywhere;
}
.toast.error,
.toast.danger {
  background: #fff;
  border-left-color: var(--red);
  color: var(--red);
}
.modal-backdrop {
  background: #1f232966;
  padding: 16px;
}
body:has(.modal-backdrop) {
  overflow: hidden;
}
.modal {
  width: min(640px, 100%);
  max-height: calc(100dvh - 32px);
  border-radius: 8px;
  box-shadow: 0 12px 40px #1f232933;
  min-width: 0;
}
.modal-head {
  padding: 14px 20px;
  gap: 12px;
}
.modal-head h2 {
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.modal-body {
  padding: 16px 20px;
}
.modal-foot {
  padding: 12px 20px;
  background: #fafbfc;
  border-radius: 0 0 8px 8px;
}
.close {
  font-size: 24px;
  line-height: 24px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}
.close:hover {
  color: var(--ink);
  background: #f2f3f5;
}
.wizard-modal {
  width: min(680px, 100%);
}
.site-detail-modal {
  width: min(1120px, 100%);
}
.wizard-step-label {
  font-size: 12px;
}
.wizard-progress {
  padding: 12px 20px;
  gap: 8px;
  flex-shrink: 0;
}
.wizard-progress-item {
  font-size: 12px;
  color: var(--muted2);
}
.wizard-progress-item i {
  font-size: 12px;
  flex-shrink: 0;
}
.wizard-progress-item.active {
  color: var(--blue);
  font-weight: 500;
}
.wizard-progress-item.active i {
  background: var(--blue);
}
.wizard-review {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 12px;
}
.review-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  font-size: 13px;
}
.review-row b {
  text-align: left;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.detail-list {
  padding: 4px 0 8px;
}
.detail-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  font-size: 13px;
  align-items: start;
}
.detail-list b {
  text-align: left;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
}
.manifest-digest {
  white-space: pre-wrap;
  background: #f7f8fa;
  border-radius: 4px;
  padding: 8px 10px;
  max-width: 100%;
}
.deployment-receipt {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  margin-top: 8px;
  font-size: 13px;
}
.health-modal-panel,
.site-info-card,
.site-versions {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  margin-bottom: 12px;
}
.health-modal-panel .panel-head,
.site-info-card .panel-head,
.site-versions .panel-head {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.health-modal-panel .panel-body,
.site-info-card .detail-list,
.edge-health {
  padding: 8px 0;
}
.site-detail-head {
  gap: 12px;
  margin-bottom: 12px;
}
.site-domains {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.site-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.site-tabs {
  gap: 20px;
  margin: 0 0 16px;
  padding: 0;
  overflow-x: auto;
}
.site-tabs span,
.site-tab-btn {
  font-size: 13px;
  padding: 10px 0 8px;
  border-bottom: 2px solid transparent;
}
.site-tabs span.active,
.site-tab-btn.active {
  color: var(--blue);
  font-weight: 500;
  border-bottom-color: var(--blue);
}
.site-kpis,
.health-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.site-kpi,
.health-summary > div {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 12px;
  min-width: 0;
}
.site-kpi:last-child,
.health-summary > div:last-child {
  border-right: 0;
}
.site-kpi span,
.site-kpi small,
.health-summary span {
  font-size: 12px;
}
.site-kpi b {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-kpi small {
  white-space: normal;
  overflow-wrap: anywhere;
}
.health-summary b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.site-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 12px;
}
.edge-health > div {
  font-size: 13px;
}
.edge-health b {
  font-weight: 500;
  color: var(--ink);
}
.edge-health span {
  font-size: 12px;
}
.health-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
  background: var(--green);
}
.muted-dot {
  background: #86909c;
}
.health-row {
  font-size: 13px;
}
.health-row span {
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  min-width: 0;
}
.health-row b {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
  min-width: 0;
  font-weight: 500;
}
.health-chip {
  font-size: 12px;
  border-radius: 4px;
  background: #fff0f0;
  color: var(--red);
}
.pop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pop-grid > .panel:only-child:has(.empty) {
  grid-column: 1 / -1;
}
.pop-card {
  padding: 16px;
}
.pop-head {
  gap: 12px;
  margin-bottom: 12px;
}
.pop-name {
  font-weight: 600;
  color: var(--ink);
}
.pop-region {
  font-size: 12px;
  color: var(--muted2);
}
.pop-stat {
  gap: 12px;
  font-size: 13px;
  margin: 10px 0 5px;
}
.pop-stat b {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.progress {
  height: 4px;
}
.progress i {
  background: var(--blue);
}
.progress.green i {
  background: var(--green);
}
.service-row {
  gap: 10px;
  padding: 10px 16px;
}
.service-logo,
.service-logo.green {
  border-radius: 4px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.service-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.service-domain {
  font-size: 12px;
  color: var(--muted2);
}
.edge-node-panel {
  margin-top: 12px;
}
.capability-cell {
  min-width: 200px;
}
.node-target-list {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.node-target-list > div {
  padding: 9px 0;
  font-size: 13px;
}
.node-target-list small {
  font-size: 12px;
  color: var(--muted2);
}
.node-target-list.excluded {
  background: #fffbf5;
  padding: 0 10px;
}
.node-target-list.excluded small {
  color: var(--amber);
}
.node-pool-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field .node-pool-option {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  border-radius: 4px;
}
.field .node-pool-option:has(input:checked) {
  border-color: #8fb1ff;
  background: #f5f8ff;
}
.node-pool-option small {
  font-size: 12px;
  color: var(--muted2);
}
.origin-route-row {
  padding: 12px 0;
  margin: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.route-row-head {
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 10px;
}
.route-row-head b {
  font-weight: 500;
}
.origin-route-row .field {
  margin-bottom: 10px;
}
.origin-route-extra summary {
  font-size: 13px;
  color: var(--blue);
}
.verification-list {
  gap: 0;
}
.verification-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  background: #fff;
}
.verification-row b {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.verification-row small,
.verification-row code {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sim-result {
  font-size: 12px;
  color: var(--muted);
}
#edge-log-query fieldset {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
}
#edge-log-query .field-row {
  display: contents;
}
#edge-log-query .query-actions {
  grid-column: 1 / -1;
}
#audit-filters .field-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#alerts-filters .field-row {
  max-width: 640px;
}
#metric-query .field-row {
  max-width: 720px;
}
#audit-filters .field-row {
  row-gap: 0;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.modal td input:not([type="checkbox"]):not([type="radio"]) {
  height: 32px;
}
#metric-query fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
#metric-query .field-row {
  flex: 1 1 480px;
  width: 100%;
}
#metric-query .field {
  margin-bottom: 0;
}
#metric-query #metric-custom-time {
  flex-basis: 100%;
  max-width: 720px;
}
#view-edge-logs > .panel + .panel {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}
#view-edge-logs > .panel:has(#edge-log-query) {
  border-radius: 6px 6px 0 0;
}
#view-edge-logs > .panel > .panel-body:last-child {
  border-top: 1px solid var(--line);
  padding: 10px 16px;
}
#view-overview > .panel:not(.cert-risk-panel) > .panel-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
}
#view-overview > .panel:not(.cert-risk-panel) > .panel-body p {
  grid-column: 1 / -1;
}
#view-overview > .panel:not(.cert-risk-panel) .pop-stat {
  margin: 0;
  padding: 4px 0;
}
.chart-grid {
  background: none;
  border-top: 1px solid #f2f3f5;
  border-bottom: 1px solid var(--line);
}
.chart-grid::before,
.chart-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #f2f3f5;
}
.chart-grid::before {
  top: 33%;
}
.chart-grid::after {
  top: 66%;
}
.chart-labels,
.chart-axis {
  font-size: 12px;
  color: var(--muted2);
}
svg [stroke="#4c86ee"] {
  stroke: var(--blue);
}
svg [fill="#4c86ee"] {
  fill: var(--blue);
}
svg text {
  font-size: 12px;
  fill: var(--muted2);
}
@media (max-width: 1200px) {
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    max-width: 50%;
    justify-content: flex-end;
  }
  #edge-log-query fieldset,
  #audit-filters .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-card:nth-child(2) {
    border-right: 0;
  }
  .metric-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 720px) {
  .sidebar {
    width: 56px;
    padding: 12px 6px;
  }
  .brand {
    padding: 0 6px 14px;
  }
  .brand > div:last-child,
  .tenant-switcher,
  .nav-label,
  .nav-badge,
  .sidebar-footer {
    display: none;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 9px 0;
    gap: 0;
    min-height: 38px;
  }
  .main {
    margin-left: 56px;
    width: calc(100% - 56px);
  }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .crumbs {
    font-size: 12px;
    gap: 6px;
  }
  .crumbs #topTenantName {
    max-width: 96px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .icon-button {
    display: none;
  }
  .env-pill {
    font-size: 12px;
    padding: 2px 5px;
  }
  .view {
    padding: 16px 12px 24px;
  }
  .page-heading {
    flex-direction: column;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 18px;
  }
  .heading-actions {
    max-width: none;
    justify-content: flex-start;
  }
  .metric-card {
    padding: 12px;
    min-height: 104px;
  }
  .metric-value,
  #view-metrics .metric-value {
    font-size: 22px;
  }
  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .panel-sub {
    text-align: left;
  }
  .panel-body {
    padding: 12px;
  }
  .field-row,
  .pop-grid,
  .site-detail-grid,
  .node-pool-options,
  #audit-filters .field-row,
  #edge-log-query fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
  #view-overview > .panel:not(.cert-risk-panel) > .panel-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    max-height: calc(100dvh - 20px);
  }
  .modal-head,
  .modal-body {
    padding: 12px 16px;
  }
  .modal-foot {
    padding: 10px 16px;
  }
  .wizard-progress {
    padding: 10px 16px;
    gap: 5px;
  }
  .wizard-progress-item {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  .site-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-kpis,
  .health-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-kpi:nth-child(2),
  .health-summary > div:nth-child(2) {
    border-right: 0;
  }
  .site-kpi:nth-child(-n + 2),
  .health-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .detail-list > div,
  .review-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
  }
  .verification-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .verification-row .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .health-row {
    flex-wrap: wrap;
  }
  .simulator {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
/* Resource views and compact console details; existing color tokens stay unchanged. */
#tenantBtn { color: var(--ink); font-size: 14px; font-weight: 600; margin: 5px 0; cursor: default; }
.resource-breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); margin-bottom: 12px; font-size: 12px; }
.resource-context { position: sticky; top: 0; z-index: 5; height: 100px; background: var(--bg); padding-top: 4px; }
.resource-context .page-heading { margin-bottom: 12px; }
.resource-tabs { position: sticky; top: 100px; z-index: 4; background: var(--bg); }
.resource-status-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); background: white; border: 1px solid var(--line); margin-bottom: 16px; }
.resource-status-strip > div { padding: 12px 16px; border-right: 1px solid var(--line); }
.resource-status-strip > div:last-child { border-right: 0; }
.resource-status-strip > div > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.resource-status-strip b { font-size: 13px; font-weight: 500; }
.resource-status-strip small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.resource-tabs { border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.resource-tabs [role="tablist"] { display: flex; gap: 20px; white-space: nowrap; }
.resource-tabs .site-tab-btn { flex: none; padding: 10px 0; border-bottom: 2px solid transparent; font-size: 13px; }
.resource-tabs .site-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
#modal-root.site-inline .modal-backdrop { position: static; padding: 0; background: none; display: block; }
#modal-root.site-inline .modal { width: 100%; max-width: none; max-height: none; border: 1px solid var(--line); border-radius: 4px; box-shadow: none; margin: 0; }
#modal-root.site-inline .modal > form { max-height: none; display: block; }
#modal-root.site-inline .modal-body { max-height: none; overflow: visible; padding: 20px; }
#modal-root.site-inline .modal-head { padding: 14px 20px; }
#modal-root.site-inline .modal-head h2 { font-size: 14px; }
#modal-root.site-inline .modal-foot { justify-content: flex-start; padding: 14px 20px; }
body:has(#modal-root.site-inline .modal-backdrop):not(:has(#modal-root:not(.site-inline) .modal-backdrop)) { overflow: auto; }
.compact-node-table { min-width: 0 !important; width: 100%; }
.compact-node-table tbody tr { height: 56px; }
.compact-node-table td { padding: 8px 12px; white-space: nowrap; vertical-align: middle; }
.compact-node-table th { padding: 10px 12px; white-space: nowrap; }
.node-cap-summary { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.node-cap-summary .tag-blue { font-size: 11px; padding: 2px 5px; }
.security-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.security-rule-cell, .security-path-cell { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-security .table-wrap { max-height: min(440px, calc(100dvh - 490px)); min-height: 200px; overflow: auto; }
#view-security thead th { position: sticky; top: 0; z-index: 1; background: #f5f7fa; }
.table-pagination { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.settings-section { border-top: 1px solid var(--line); padding: 20px 0 4px; margin-top: 16px; scroll-margin-top: 20px; }
.settings-section h3 { font-size: 14px; margin: 0 0 16px; }
.settings-section-nav { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 0 16px; border-bottom: 1px solid var(--line); }
.field-help-details { margin: 8px 0; font-size: 12px; color: var(--muted); }
.field-help-details summary { cursor: pointer; color: var(--blue); }
.modal form > .form-error { margin: 12px 20px 0; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.state.configured { color: var(--blue); background: #eaf1ff; }
.state.pending, .state.not_observed, .state.disabled, .state.revoked { color: var(--muted); background: #f2f3f5; }
.state.degraded, .state.expired { color: var(--amber); background: #fff3e8; }
.state.unhealthy, .state.edge_unavailable { color: var(--red); background: #fff0f0; }
@media(max-width: 1000px) { .resource-status-strip { grid-template-columns: repeat(3,minmax(0,1fr)); } .security-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
