:root {
  --blue: #007aff !important;
  --rms-blue: #007aff !important;
  --rms-blue-strong: #007aff !important;
}

/* Keep the full console reachable when browser zoom reduces the viewport. */
html,
body {
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.compute-unit-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  min-width: 1100px !important;
  min-height: 760px !important;
}

.console-shell {
  width: max(100vw, 1064px) !important;
  height: max(100vh, 724px) !important;
  min-width: 1064px;
  min-height: 724px;
}

.console-shell .detail-panel > #overviewPanel:not(.is-hidden) {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: calc(100vh - 150px) !important;
  max-height: calc(100vh - 150px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 110, 115, .42) transparent;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.console-shell .detail-panel > #overviewPanel::-webkit-scrollbar {
  display: block;
  width: 6px;
  height: 6px;
}

.console-shell .detail-panel > #overviewPanel::-webkit-scrollbar-track {
  background: transparent;
}

.console-shell .detail-panel > #overviewPanel::-webkit-scrollbar-thumb {
  background: rgba(110, 110, 115, .38);
  border-radius: 999px;
}

.console-shell .detail-panel > #overviewPanel::-webkit-scrollbar-thumb:hover {
  background: rgba(82, 82, 88, .58);
}

.compute-unit-panel {
  scrollbar-width: none;
}

@media (max-width: 1099px), (max-height: 759px) {
  body {
    min-width: 1100px !important;
    min-height: 760px !important;
  }

  .console-shell {
    width: max(100vw, 1100px) !important;
    height: max(100vh, 760px) !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .console-shell .workspace .detail-panel {
    align-self: start !important;
    height: calc(100vh - 74px) !important;
    max-height: calc(100vh - 74px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .console-shell .detail-panel > #overviewPanel:not(.is-hidden) {
    max-height: calc(100vh - 150px) !important;
  }
}

/* Computing-unit view: title and centered model above, telemetry below. */
.compute-unit-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 22px 24px 24px;
  color: #1d1d1f;
  background: #f5f5f7;
  overflow: auto;
}

.compute-unit-heading,
.processor-card > header,
.mcu-section > header,
.mcu-grid article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compute-unit-heading {
  flex: 0 0 auto;
  margin-bottom: 16px;
}

.compute-unit-heading p {
  margin: 0 0 3px;
  color: #8b98aa;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .16em;
}

.compute-unit-heading h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.035em;
}

.compute-unit-heading > span,
.processor-card > header > b,
.mcu-section > header > b {
  color: #34a853;
  font-size: 10px;
  font-weight: 750;
}

.compute-unit-heading i,
.mcu-grid article header span i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #34c759;
}

.compute-processors {
  display: grid;
  grid-template-columns: minmax(360px, .86fr) minmax(520px, 1.2fr);
  gap: 0;
  border-top: 1px solid rgba(60, 60, 67, .16);
  border-bottom: 1px solid rgba(60, 60, 67, .16);
}

.processor-card,
.mcu-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.processor-card {
  min-height: 328px;
  padding: 18px 20px 16px;
}

.processor-card + .processor-card {
  border-left: 1px solid rgba(60, 60, 67, .16);
}

.processor-card > header {
  position: relative;
  border-left: 0;
  padding-left: 24px;
}

.processor-card > header::before,
.mcu-section > header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background: #1d1d1f;
  transform: translateY(-50%);
}

.processor-card h3,
.mcu-section h3 {
  margin: 0;
  font-size: 16px;
}

.processor-card h3 span,
.mcu-section h3 span {
  font-weight: 550;
}

.processor-specs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 15px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8ef;
}

.processor-specs dt,
.gpu-metrics dt {
  color: #718097;
  font-size: 10px;
}

.processor-specs dd,
.gpu-metrics dd {
  margin: 4px 0 0;
  font: 700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.processor-specs em,
.gpu-metrics em {
  color: #1d1d1f;
  font-style: normal;
}

.processor-specs dd em {
  display: inline-block;
  padding: 3px 8px;
  border: 0;
  border-radius: 0;
}

.processor-metrics {
  display: grid;
  grid-template-columns: 110px 82px 82px minmax(150px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 215px;
  padding-top: 14px;
}

.cerebrum-metrics {
  grid-template-columns: 110px 82px 82px minmax(150px, 1fr) 132px;
}

.gauge {
  --size: 70px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  margin-inline: auto;
  border-radius: 50%;
  background: conic-gradient(from 215deg, #1d1d1f calc(var(--value) * .75%), #dedee3 0 75%, transparent 75%);
}

.gauge::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #f5f5f7;
}

.gauge-large { --size: 92px; }
.gauge-large::after { inset: 10px; }

.gauge strong {
  z-index: 1;
  font: 750 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gauge-large strong { font-size: 20px; }
.gauge strong small { display: block; margin-top: 3px; color: #8290a2; font-size: 9px; }
.gauge > span { position: absolute; top: calc(100% + 9px); width: 110px; color: #6d7c91; text-align: center; font-size: 10px; font-weight: 650; }

.core-loads p {
  margin: 0 0 7px;
  color: #63738a;
  font-size: 10px;
}

.core-loads p span { color: #8290a2; }
.core-loads ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.core-loads li { display: grid; grid-template-columns: 22px minmax(50px, 1fr) 34px; align-items: center; gap: 7px; color: #647389; font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.core-loads li i { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1d1d1f var(--load), #dedee3 var(--load)); }
.core-loads li em { color: #253044; text-align: right; font-style: normal; }

.gpu-metrics {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 16px;
  border-left: 1px solid #e2e8ef;
}

.gpu-metrics dl { margin: 2px 0 0; }
.gpu-metrics dl div + div { margin-top: 13px; }
.gpu-metrics .gauge { margin-bottom: 28px; }

/* Cerebrum is grouped into CPU, GPU, memory and storage columns. */
.cerebrum-groups {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .85fr .85fr;
  flex: 1 1 auto;
  min-height: 230px;
  margin-top: 16px;
  border-top: 1px solid rgba(60, 60, 67, .14);
}

.compute-group {
  min-width: 0;
  padding: 20px 22px 16px;
}

.compute-group + .compute-group {
  border-left: 1px solid rgba(29, 29, 31, .72);
}

.compute-group h4 {
  margin: 0 0 18px;
  color: #202a3a;
  font-size: 15px;
  letter-spacing: -.015em;
}

.compute-group dl { margin: 0; }
.compute-group dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-height: 30px;
}
.compute-group dt { color: #6e7888; font-size: 10px; font-weight: 600; }
.compute-group dd { margin: 0; color: #202a3a; text-align: right; font-size: 11px; font-weight: 700; }
.compute-group dd.is-ok { color: #25a849; }

.compute-group-usage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compute-group-usage h4 { color: #6d7c91; }
.compute-group-usage strong {
  margin: auto 0 18px;
  color: #202a3a;
  font: 750 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.compute-group-usage strong small { margin-left: 2px; font-size: 14px; }
.compute-group-usage > i {
  width: 72%;
  height: 5px;
  margin-bottom: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d1d1f var(--usage), rgba(29, 29, 31, .12) var(--usage));
}

/* Information hierarchy from the compute protocol: P1 > P2 > P3. */
.cerebellum-card .processor-specs > div:nth-child(1) dd,
.cerebellum-card .processor-specs > div:nth-child(2) dd {
  font-size: 12px; /* P3: CPU model and core count */
  font-weight: 650;
}

.cerebellum-card .processor-specs > div:nth-child(3) dd {
  font-size: 19px; /* P1: CPU frequency */
  font-weight: 780;
  letter-spacing: -.025em;
}

.cerebellum-card .gauge-large strong {
  font-size: 18px; /* P2: CPU temperature */
}

.cerebellum-card .gauge:not(.gauge-large) strong {
  font-size: 16px; /* P2: memory and storage usage */
}

.cerebellum-card .core-loads p {
  color: #202a3a;
  font-size: 12px; /* P1: CPU usage */
  font-weight: 750;
}

.cerebellum-card .core-loads li {
  grid-template-columns: 24px minmax(54px, 1fr) 40px;
  font-size: 10px;
}

.cerebellum-card .core-loads li em {
  font-size: 11px;
  font-weight: 750;
}

/* Cerebrum P3: model and core count. */
.compute-group-cpu dl div:nth-child(1) dd,
.compute-group-cpu dl div:nth-child(4) dd,
.compute-group-gpu dl div:nth-child(1) dd {
  font-size: 11px;
  font-weight: 650;
}

/* Cerebrum P2: CPU temperature and capacity usage. */
.compute-group-cpu dl div:nth-child(3) dd {
  font-size: 15px;
  font-weight: 750;
}

.compute-group-usage strong {
  font-size: 22px;
}

/* Cerebrum P1: CPU frequency/load and all GPU telemetry. */
.compute-group-cpu dl div:nth-child(5) dd,
.compute-group-cpu dl div:nth-child(6) dd,
.compute-group-gpu dl div:nth-child(3) dd,
.compute-group-gpu dl div:nth-child(4) dd,
.compute-group-gpu dl div:nth-child(5) dd {
  color: #161b22;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.compute-group-cpu dl div:nth-child(5),
.compute-group-cpu dl div:nth-child(6),
.compute-group-gpu dl div:nth-child(n + 3) {
  min-height: 36px;
}

/* MCU P1: quantity and communication status; P3 metadata stays compact. */
.mcu-section > header > b {
  font-size: 15px !important;
  font-weight: 800 !important;
}

.mcu-grid article header span {
  font-size: 11px !important;
  font-weight: 800 !important;
}

.mcu-grid article header b,
.mcu-grid article dt,
.mcu-grid article dd,
.mcu-grid article > em {
  font-size: 9px !important;
}

.mcu-section {
  margin-top: 20px;
  padding: 0;
}

.mcu-section > header {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
  border-left: 0;
}

.mcu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(60, 60, 67, .16);
  border-bottom: 1px solid rgba(60, 60, 67, .16);
}

.mcu-grid article {
  min-width: 0;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.mcu-grid article + article { border-left: 1px solid rgba(60, 60, 67, .16); }

.mcu-grid article header b { font: 750 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mcu-grid article header span { color: #34a853; font-size: 9px; font-weight: 750; }
.mcu-grid article > em { display: inline-block; margin: 12px 0 8px; padding: 0; color: #6e6e73; background: transparent; border: 0; border-radius: 0; font-size: 9px; font-style: normal; }
.mcu-grid article dl { margin: 0; padding-top: 8px; border-top: 1px solid #e1e7ed; }
.mcu-grid article dl div { display: flex; justify-content: space-between; gap: 8px; }
.mcu-grid article dl div + div { margin-top: 5px; }
.mcu-grid article dt { color: #7a8798; font-size: 9px; }
.mcu-grid article dd { margin: 0; color: #2d394b; font: 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mcu-grid article dl div:last-child dd { color: #34a853; }

.console-shell.compute-unit-mode .workspace {
  display: block !important;
  position: absolute !important;
  overflow: hidden !important;
}

.console-shell.compute-unit-mode .compute-unit-panel {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(235, 238, 242, .38));
  border-top: 0;
  -webkit-backdrop-filter: blur(38px) saturate(155%) contrast(104%);
  backdrop-filter: blur(38px) saturate(155%) contrast(104%);
  box-shadow: 0 -16px 48px rgba(29, 29, 31, .09), inset 0 1px rgba(255, 255, 255, .72);
}

.console-shell.compute-unit-mode .model-stage {
  position: absolute !important;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  border-left: 0 !important;
  border-bottom: 0 !important;
}

.console-shell.compute-unit-mode .compute-unit-heading {
  display: none !important;
}

/* The glass panel begins directly with processor data, without a top rule. */
.console-shell.compute-unit-mode .compute-processors {
  border-top: 0;
}

.console-shell.compute-unit-mode .status-title {
  display: block !important;
}

.console-shell.compute-unit-mode .detail-panel {
  display: none !important;
}

.console-shell.compute-unit-mode .detail-panel > #componentPanel {
  display: none !important;
}

.console-shell.compute-unit-mode .overview-part-menu,
.console-shell.compute-unit-mode .model-stage .anomaly-markers,
.console-shell.compute-unit-mode .model-stage .stage-alarm {
  display: none !important;
}

.console-shell.compute-unit-mode .model-stage .stage-tools {
  display: none !important;
}

.console-shell.compute-unit-mode #canvasWrap {
  transform: scale(1);
  transform-origin: 50% 50%;
}

.console-shell.compute-unit-mode .model-controls-stack { bottom: 10px !important; }
.console-shell.compute-unit-mode .interaction-hint { display: none !important; }
.console-shell.compute-unit-mode .model-controls-stack { display: none !important; }

/* Refined Cerebrum layout: compact hierarchy, short dividers and circular usage. */
.cerebrum-card .cerebrum-groups {
  grid-template-columns: 1.35fr 1.05fr .8fr .8fr;
  min-height: 250px;
  margin-top: 14px;
}

.cerebrum-card .compute-group {
  position: relative;
  padding: 18px 22px;
}

.cerebrum-card .compute-group + .compute-group {
  border-left: 0;
}

.cerebrum-card .compute-group + .compute-group::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: rgba(29, 29, 31, .26);
}

.cerebrum-card .compute-group h4 {
  margin-bottom: 12px;
  font-size: 15px;
}

.compute-identity {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  color: #7a8390;
  font-size: 9px;
}

.compute-identity span { display: flex; align-items: center; gap: 7px; }
.compute-identity b { color: #202a3a; font-size: 11px; }
.compute-identity b.is-ok { color: #25a849; }

.compute-primary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(60, 60, 67, .11);
  border-top: 1px solid rgba(60, 60, 67, .11);
  border-bottom: 1px solid rgba(60, 60, 67, .11);
}

.compute-primary-metrics > div {
  min-width: 0;
  padding: 10px 9px;
  background: rgba(255, 255, 255, .24);
}

.compute-primary-metrics span,
.gpu-primary-metrics span {
  display: block;
  margin-bottom: 6px;
  color: #7a8390;
  font-size: 9px;
}

.compute-primary-metrics strong,
.gpu-primary-metrics strong {
  color: #171c24;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.035em;
}

.compute-primary-metrics strong small,
.gpu-primary-metrics strong small {
  margin-left: 2px;
  font-size: 9px;
  letter-spacing: 0;
}

.cpu-core-usage { margin-top: 10px; }
.cpu-core-usage p { margin: 0 0 7px; color: #687486; font-size: 9px; font-weight: 700; }
.cpu-core-usage ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cpu-core-usage li {
  display: grid;
  grid-template-columns: 18px minmax(28px, 1fr) 31px;
  align-items: center;
  gap: 5px;
  color: #748094;
  font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cpu-core-usage li i {
  --core-color: rgba(29, 29, 31, .34);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--core-color) var(--load), rgba(29, 29, 31, .12) var(--load));
}
.cpu-core-usage li:nth-child(2) i,
.cpu-core-usage li:nth-child(3) i,
.cpu-core-usage li:nth-child(4) i { --core-color: rgba(29, 29, 31, .62); }
.cpu-core-usage li:nth-child(5) i,
.cpu-core-usage li:nth-child(6) i,
.cpu-core-usage li:nth-child(7) i { --core-color: #1d1d1f; }
.cpu-core-usage li em { color: #202a3a; text-align: right; font-size: 8px; font-style: normal; font-weight: 700; }

.compute-device-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compute-device-title small {
  color: #687486;
  font-size: .64em;
  font-weight: 700;
}
.compute-live-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, .4);
  animation: compute-live-breathe 1.8s ease-in-out infinite;
}
@keyframes compute-live-breathe {
  0%, 100% { opacity: .65; box-shadow: 0 0 0 0 rgba(52, 199, 89, .32); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(52, 199, 89, 0); }
}

.gpu-primary-metrics {
  display: grid;
  gap: 1px;
  background: rgba(60, 60, 67, .11);
  border-top: 1px solid rgba(60, 60, 67, .11);
  border-bottom: 1px solid rgba(60, 60, 67, .11);
}
.gpu-primary-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .24);
}
.gpu-primary-metrics span { margin: 0; }
.gpu-primary-metrics strong { font-size: 19px; }

.cerebrum-card .compute-group-usage {
  justify-content: flex-start;
}
.cerebrum-card .compute-group-usage h4 {
  align-self: stretch;
  color: #687486;
  text-align: center;
}
.usage-ring {
  --ring-track: rgba(29, 29, 31, .11);
  --ring-color: #34c759;
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 30px auto 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--ring-color) calc(var(--usage) * 1%), var(--ring-track) 0);
}
.usage-ring::after {
  content: '';
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #f3f4f5;
}
.usage-ring.status-normal { --ring-color: #34c759; }
.usage-ring.status-attention { --ring-color: #0a84ff; }
.usage-ring.status-warning { --ring-color: #ffb020; }
.usage-ring.status-critical { --ring-color: #ff453a; }
.usage-ring strong,
.usage-ring span { position: relative; z-index: 1; }
.usage-ring strong {
  align-self: end;
  margin: 0 0 3px;
  color: #171c24;
  font: 800 21px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.04em;
}
.usage-ring strong small { margin-left: 2px; font-size: 10px; }
.usage-ring span {
  align-self: start;
  color: #8a929d;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .12em;
}
.usage-ring.status-normal span { color: #248a3d; }
.usage-ring.status-attention span { color: #006edb; }
.usage-ring.status-warning span { color: #a85f00; }
.usage-ring.status-critical span { color: #d70015; }

@media (max-width: 1280px) {
  .cerebrum-card .compute-group:nth-child(3)::before { display: none; }
  .usage-ring { margin-top: 10px; }
}

/* Final Cerebrum alignment: uniform headings, clear background, one core per row. */
.cerebrum-card .compute-group-usage h4 {
  align-self: stretch;
  margin: 0 0 12px;
  color: #202a3a;
  text-align: left;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.015em;
}

.cerebrum-card .compute-primary-metrics,
.cerebrum-card .gpu-primary-metrics {
  background: transparent;
}

.cerebrum-card .compute-primary-metrics > div,
.cerebrum-card .gpu-primary-metrics > div {
  background: transparent;
}

.cerebrum-card .cpu-core-usage p {
  color: #202a3a;
  font-size: 11px;
  font-weight: 780;
}

.cerebrum-card .cpu-core-usage p span {
  color: #7d8898;
  font-weight: 700;
}

.cerebrum-card .cpu-core-usage ul {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 5px;
}

.cerebrum-card .cpu-core-usage li {
  grid-template-columns: 22px minmax(90px, 1fr) 36px;
  gap: 7px;
  font-size: 9px;
}

.cerebrum-card .cpu-core-usage li em {
  font-size: 9px;
}

/* Match Cerebellum to Cerebrum and place Cerebrum first. */
.compute-processors {
  grid-template-columns: minmax(540px, 1.2fr) minmax(440px, 1fr);
}
.cerebrum-card { order: 1; }
.cerebellum-card { order: 2; }
.compute-processors > .processor-card + .processor-card { border-left: 0; }
.compute-processors > .cerebellum-card {
  border-left: 1px solid rgba(60, 60, 67, .16);
}

.cerebellum-groups {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  flex: 1 1 auto;
  min-height: 250px;
  margin-top: 14px;
  border-top: 1px solid rgba(60, 60, 67, .14);
}

.cerebellum-card .compute-group {
  position: relative;
  min-width: 0;
  padding: 18px 22px;
}

.cerebellum-card .compute-group + .compute-group::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: rgba(29, 29, 31, .26);
}

.cerebellum-card .compute-group h4,
.cerebellum-card .compute-group-usage h4 {
  align-self: stretch;
  margin: 0 0 12px;
  color: #202a3a;
  text-align: left;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.015em;
}

.cerebellum-card .cpu-core-usage p {
  color: #202a3a;
  font-size: 11px;
  font-weight: 780;
}
.cerebellum-card .cpu-core-usage p span { color: #7d8898; font-weight: 700; }
.cerebellum-card .cpu-core-usage ul { grid-template-columns: minmax(0, 1fr); row-gap: 5px; }
.cerebellum-card .cpu-core-usage li {
  grid-template-columns: 22px minmax(90px, 1fr) 36px;
  gap: 7px;
  font-size: 9px;
}
.cerebellum-card .cpu-core-usage li em { font-size: 9px; }

/* No gray fill behind CPU/GPU metrics. */
.processor-card .compute-primary-metrics,
.processor-card .gpu-primary-metrics,
.processor-card .compute-primary-metrics > div,
.processor-card .gpu-primary-metrics > div {
  background: transparent !important;
  background-image: none !important;
}

/* Cerebrum column order: CPU, memory, storage, GPU. */
.cerebrum-card .cerebrum-groups {
  grid-template-columns: 1.35fr .8fr .8fr 1.05fr;
}
.cerebrum-card .compute-group-cpu { order: 1; }
.cerebrum-card .compute-group:nth-child(3) { order: 2; }
.cerebrum-card .compute-group:nth-child(4) { order: 3; }
.cerebrum-card .compute-group-gpu { order: 4; }

/* Keep model controls floating above the stage edge instead of docking to it. */
.model-controls-stack,
.console-shell.compute-unit-mode .model-controls-stack {
  bottom: clamp(44px, 6vh, 72px) !important;
}

@media (max-width: 1500px) {
  .compute-processors { grid-template-columns: 1fr; }
  .processor-card { min-height: 310px; }
  .processor-card + .processor-card {
    border-top: 1px solid rgba(60, 60, 67, .16);
    border-left: 0;
  }
  .mcu-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .mcu-grid article:nth-child(3n + 1) { border-left: 0; }
  .console-shell.compute-unit-mode .workspace { display: block !important; }
}

@media (max-width: 1280px) {
  .cerebrum-groups { grid-template-columns: 1fr 1fr; }
  .compute-group:nth-child(3) { border-left: 0; border-top: 1px solid rgba(29, 29, 31, .2); }
  .compute-group:nth-child(4) { border-top: 1px solid rgba(29, 29, 31, .2); }
}

/* Device instances use a continuous table layout instead of floating cards. */
.device-grid {
  gap: 0 !important;
  border-top: 1px solid rgba(60, 60, 67, 0.12);
  background: transparent !important;
}

.device-instance {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.device-instance:nth-child(2n) {
  border-left: 1px solid rgba(60, 60, 67, 0.12) !important;
}

.device-instance:nth-child(n + 3) {
  border-top: 1px solid rgba(60, 60, 67, 0.12) !important;
}

.device-instance > header {
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.device-instance .hand-data {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Match the computing-platform table: full-width rules with inset text. */
.device-instance .hand-data > div,
.device-instance .hand-data > div:nth-child(2n) {
  min-height: 46px !important;
  padding: 0 18px !important;
  border-left: 0 !important;
  border-top: 1px solid rgba(60, 60, 67, 0.08) !important;
}

/* Type is already conveyed by each section title; remove repeated blue tags. */
.hand-group > header small,
.collection-title small,
.device-instance > header small {
  display: none !important;
}

@media (max-width: 560px) {
  .device-instance:nth-child(2n) {
    border-left: 0 !important;
  }

  .device-instance:nth-child(n + 2) {
    border-top: 1px solid rgba(60, 60, 67, 0.12) !important;
  }
}

/* Keep the three header controls on one visual scale. */
.console-header .header-actions {
  align-items: center;
  gap: 28px !important;
}

.console-header .header-actions .header-icon-button,
.console-header .header-actions .language-button {
  height: 40px !important;
}

.console-header .header-actions .home-button,
.console-header .header-actions .avatar-button {
  flex: 0 0 40px;
  width: 40px !important;
  padding: 0 !important;
}

.console-header .header-actions .home-button img {
  width: 24px !important;
  height: 21px !important;
}

.console-header .header-actions .language-button {
  min-width: 112px !important;
  width: auto !important;
  gap: 8px !important;
  padding: 0 12px !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.console-header .header-language-icon,
.console-header .header-language-icon img {
  width: 24px !important;
  height: 24px !important;
}

.console-header .header-actions .avatar-button img {
  width: 24px !important;
  height: 24px !important;
}

/* Home and language are black by default; only the account avatar is blue. */
.console-header .header-actions .home-button .icon-default,
.console-header .header-actions .language-button .icon-default {
  filter: brightness(0) !important;
}

.console-header .header-actions .home-button .icon-hover,
.console-header .header-actions .language-button .icon-hover {
  filter: none !important;
}

.console-header .header-actions .avatar-button img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(99%) saturate(4228%) hue-rotate(201deg) brightness(103%) contrast(106%) !important;
}

.console-header .header-actions .avatar-button:hover img,
.console-header .header-actions .avatar-button:focus-visible img {
  filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) brightness(94%) contrast(88%) !important;
}

@media (max-width: 900px) {
  .console-header .header-actions {
    gap: 16px !important;
  }
}

/* Overview fault summary content. */
.fault-section .fault-summary-title {
  align-items: center;
  gap: 12px;
}

.fault-section .fault-history-link {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 2;
  align-self: auto;
  width: auto !important;
  margin: 0 !important;
  min-height: 32px;
  padding: 0 11px !important;
  color: #ffffff !important;
  background: #1d1d1f !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 650;
  white-space: nowrap;
}

.fault-section .fault-history-link::before {
  display: none !important;
  content: none !important;
}

.fault-section .fault-summary-item {
  position: relative;
  min-height: 64px;
  margin: 0;
  padding: 13px 10px 13px 16px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  align-items: center;
}

.fault-section .fault-summary-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  height: auto !important;
  margin: 0 !important;
  background: #ea4335;
}

.fault-section .fault-summary-item:hover {
  background: rgba(60, 60, 67, 0.035) !important;
}

.fault-section .fault-summary-item span {
  gap: 4px;
}

.fault-section .fault-summary-item b {
  color: #2e2e2e;
  font-size: 13px;
}

.fault-section .fault-summary-item small {
  color: #667b96;
  font-size: 12px;
}

.fault-section .fault-summary-item > strong {
  color: #667b96;
  font-size: 12px;
  white-space: nowrap;
}

.fault-section .fault-level-1 {
  background: rgba(220, 38, 38, 0.08) !important;
}

.fault-section .fault-level-1 > strong {
  color: #a82921;
  font-weight: 700;
}

.fault-section .fault-level-2 {
  background: rgba(245, 158, 11, 0.1) !important;
}

.fault-section .fault-level-2::before {
  background: #f59e0b;
}

.fault-section .fault-level-3 {
  background: rgba(234, 179, 8, 0.1) !important;
}

.fault-section .fault-level-3::before {
  background: #eab308;
}

.fault-section .fault-level-3 b {
  color: #2e2e2e;
}

/* Overview anomaly rows use their own severity colors instead of a blue block. */
.overview-panel .fault-section {
  position: relative !important;
  isolation: isolate !important;
  color: #262a2f !important;
  background: #ffffff !important;
  border-top: 0 !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  width: calc(100% + 40px) !important;
  margin: 0 -20px !important;
  padding: 18px 20px 28px !important;
}

.overview-panel .fault-section::before {
  display: none !important;
}

.overview-panel .fault-section .section-title {
  color: #25282d !important;
  border-bottom-color: rgba(60, 60, 67, 0.12) !important;
}

.overview-panel .fault-section .fault-history-link {
  color: #ffffff !important;
  background: #1d1d1f !important;
}

.overview-panel .fault-section .fault-history-link:hover {
  color: #ffffff !important;
  background: #007aff !important;
}

.overview-panel .fault-section .fault-summary-item {
  color: #262a2f !important;
  border-bottom-color: rgba(60, 60, 67, 0.12) !important;
  width: calc(100% - 10px) !important;
  margin-left: 10px !important;
  overflow: visible !important;
}

.overview-panel .fault-section .fault-summary-item + .fault-summary-item {
  margin-top: 8px !important;
}

.overview-panel .fault-section .fault-summary-item:hover {
  filter: none;
}

.overview-panel .fault-section .fault-summary-item::before,
.overview-panel .fault-section .fault-level-1::before,
.overview-panel .fault-section .fault-level-2::before,
.overview-panel .fault-section .fault-level-3::before {
  content: none !important;
  display: none !important;
}

.overview-panel .fault-section button.fault-summary-item::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  bottom: -1px !important;
  left: -10px !important;
  width: 10px !important;
  height: auto !important;
  margin: 0 !important;
  background: #111111 !important;
  border-radius: 0 !important;
  pointer-events: none !important;
}

.overview-panel .fault-section .fault-level-1 {
  background: #ff4f41 !important;
}

.overview-panel .fault-section .fault-level-1:hover {
  background: #cd3d32 !important;
  box-shadow: none !important;
}

.overview-panel .fault-section .fault-level-2 {
  background: #ffb828 !important;
}

.overview-panel .fault-section .fault-level-2:hover {
  background: #cc921e !important;
  box-shadow: none !important;
}

.overview-panel .fault-section .fault-level-3 {
  background: #ffe318 !important;
}

.overview-panel .fault-section .fault-level-3:hover {
  background: #cbb410 !important;
  box-shadow: none !important;
}

.overview-panel .fault-section .fault-summary-item b,
.overview-panel .fault-section .fault-level-3 b {
  color: #24272b !important;
}

.overview-panel .fault-section .fault-summary-item small,
.overview-panel .fault-section .fault-summary-item > strong {
  color: #111111 !important;
}

.overview-panel .fault-section .fault-level-1 > strong {
  color: #b42318 !important;
}

.overview-panel .fault-section button.fault-summary-item > strong,
.overview-panel .fault-section button.fault-summary-item:hover > strong,
.overview-panel .fault-section button.fault-level-1 > strong,
.overview-panel .fault-section button.fault-level-2 > strong,
.overview-panel .fault-section button.fault-level-3 > strong {
  color: #111111 !important;
}

.detail-panel .overview-panel {
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Model tools: black by default, blue when selected or hovered. */
.bottom-tools button {
  color: #ffffff !important;
  background: #1d1d1f !important;
  border-color: #1d1d1f !important;
}

.bottom-tools button.is-active,
.bottom-tools button:hover,
.bottom-tools button:focus-visible {
  background: #007aff !important;
  border-color: #007aff !important;
  outline: 0 !important;
}

/* Keep the model interactive without the grab/glow cursor treatment. */
#robotCanvas,
#robotCanvas:active,
.model-stage {
  cursor: default !important;
  outline: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Language options must keep identical typography in every position. */
.console-header .language-menu button,
.console-header .language-menu button:first-child,
.console-header .language-menu button:nth-child(2),
.console-header .language-menu button:nth-child(3),
.console-header .language-menu button span,
.console-header .language-menu button:nth-child(2) span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.console-header .language-menu button {
  height: 44px !important;
}

/* Minimal square frosted alarm inspired by the reference layout. */
.stage-alarm {
  background: rgba(234, 67, 53, 0.16) !important;
  border: 1px solid rgba(234, 67, 53, 0.34) !important;
  border-radius: 0 !important;
  padding-bottom: 8px !important;
  box-shadow: 0 14px 38px rgba(118, 24, 19, 0.16) !important;
  -webkit-backdrop-filter: blur(22px) saturate(120%) !important;
  backdrop-filter: blur(22px) saturate(120%) !important;
}

.stage-alarm::before {
  width: 3px !important;
  background: #ea4335 !important;
}

.alarm-level {
  color: #ea4335 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.alarm-head > button,
.alarm-title > i,
.alarm-data,
.alarm-detail-button {
  border-radius: 0 !important;
}

.alarm-head > button {
  background: transparent !important;
}

.alarm-head {
  border-bottom-color: rgba(234, 67, 53, 0.2) !important;
}

.alarm-title > i {
  color: #ea4335 !important;
  background: rgba(234, 67, 53, 0.08) !important;
  border-color: rgba(234, 67, 53, 0.24) !important;
}

.alarm-data {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(60, 60, 67, 0.14) !important;
  border-bottom: 1px solid rgba(60, 60, 67, 0.14) !important;
  gap: 0 !important;
}

.alarm-data > div {
  background: transparent !important;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}

.alarm-data > div:nth-child(2n + 1):not(:first-child) {
  border-left: 1px solid rgba(60, 60, 67, 0.08);
}

.alarm-data #alarmState {
  color: #ea4335 !important;
}

.alarm-detail-button {
  background: #007aff !important;
}

.alarm-detail-button:hover {
  background: #007aff !important;
}

.stage-alarm .alarm-data,
.stage-alarm > p,
.stage-alarm .alarm-detail-button {
  display: none !important;
}

/* Compact critical-error toast: dense, translucent, and edge-led. */
.stage-alarm {
  left: 32px !important;
  top: 18px !important;
  bottom: auto !important;
  width: 360px !important;
  max-width: calc(100% - 32px) !important;
  min-height: 500px !important;
  height: clamp(500px, 56vh, 640px) !important;
  padding: 13px 28px 18px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  background: linear-gradient(105deg, rgba(182, 28, 38, 0.84), rgba(152, 33, 43, 0.7)) !important;
  border: 1px solid rgba(255, 105, 105, 0.58) !important;
  box-shadow: 0 14px 38px rgba(94, 13, 20, 0.24), inset 0 1px rgba(255, 255, 255, 0.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(118%) !important;
  backdrop-filter: blur(18px) saturate(118%) !important;
}

.stage-alarm::before {
  width: 4px !important;
  background: #ff3b30 !important;
  box-shadow: 0 0 16px rgba(255, 59, 48, 0.5) !important;
}

.stage-alarm .alarm-head {
  height: 22px !important;
  border: 0 !important;
  flex: 0 0 auto !important;
}

.stage-alarm .alarm-level,
.stage-alarm .alarm-head time {
  color: rgba(255, 255, 255, 0.88) !important;
}

.stage-alarm .alarm-level {
  font-size: 11px !important;
}

.stage-alarm .alarm-head time {
  margin-left: 10px !important;
  font-size: 10px !important;
}

.stage-alarm .alarm-head > button {
  color: rgba(255, 255, 255, 0.78) !important;
  width: 24px !important;
  height: 24px !important;
  position: absolute !important;
  top: 9px !important;
  right: 10px !important;
}

.stage-alarm .alarm-head > button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.stage-alarm .alarm-title {
  gap: 0 !important;
  padding: 18px 0 0 !important;
  flex: 0 0 auto !important;
}

.stage-alarm .alarm-title > i {
  display: none !important;
}

.stage-alarm .alarm-title > div {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.stage-alarm .alarm-title strong {
  order: -1 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.stage-alarm .alarm-title small {
  color: rgba(255, 255, 255, 0.68) !important;
  margin: 2px 0 0 !important;
  font-size: 10px !important;
}

@media (max-width: 720px) {
  .stage-alarm {
    width: min(390px, calc(100% - 24px)) !important;
    min-height: 420px !important;
    height: min(50vh, 520px) !important;
    left: 20px !important;
    bottom: 64px !important;
    padding: 12px 24px 14px 20px !important;
  }
}

/* The complete right-side information surface is solid white. */
.console-shell .detail-panel {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}

.detail-panel > .panel-heading,
.detail-panel > #overviewPanel,
.detail-panel > #faultRecordsPanel,
.detail-panel > #componentPanel {
  padding-left: 19px !important;
  padding-right: 19px !important;
}

.detail-panel > .panel-heading,
.detail-panel > #overviewPanel {
  padding-top: 19px !important;
}

.detail-panel > #overviewPanel,
.detail-panel > #componentPanel {
  padding-bottom: 19px !important;
}

#overviewPanel.is-hidden,
#faultRecordsPanel.is-hidden,
#componentPanel.is-hidden,
.is-hidden {
  display: none !important;
}

.detail-panel .overview-panel,
.detail-panel .component-panel,
.detail-panel .orange-detail,
.detail-panel .hand-groups,
.detail-panel .hand-group,
.detail-panel .device-grid,
.detail-panel .device-instance,
.detail-panel .hand-data {
  background: transparent !important;
}

.overview-panel .fault-section {
  margin-left: -19px !important;
  margin-right: -19px !important;
  width: calc(100% + 38px) !important;
}

/* Icon-only navigation collapse control. */
.tool-rail .nav-collapse,
.console-shell.nav-collapsed .tool-rail .nav-collapse {
  color: #66666a !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  margin: auto 0 16px 16px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  transition: color 0.15s ease, background 0.15s ease !important;
}

.tool-rail .nav-collapse:hover,
.tool-rail .nav-collapse:focus-visible {
  color: #1d1d1f !important;
  background: #f1f1f2 !important;
}

.tool-rail .nav-collapse > img {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}

.tool-rail .nav-collapse > span,
.tool-rail .nav-collapse > b {
  display: none !important;
}

.console-shell.nav-collapsed .tool-rail .nav-collapse {
  margin-right: auto !important;
  margin-left: auto !important;
}

.console-shell.nav-collapsed .tool-rail .nav-collapse > img {
  transform: scaleX(-1) !important;
}

/* Stage alarm: vertical strip matching the overview menu width. */
.stage-alarm {
  width: min(360px, calc(100% - 32px)) !important;
  max-width: calc(100% - 32px) !important;
  min-height: 500px !important;
  height: clamp(500px, 56vh, 640px) !important;
  padding: 16px 18px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.stage-alarm .alarm-head {
  flex: 0 0 auto !important;
}

.stage-alarm .alarm-title {
  padding: 18px 0 0 !important;
}

@media (width <= 1180px) {
  .stage-alarm {
    width: min(300px, calc(100% - 24px)) !important;
    min-height: 420px !important;
    height: min(50vh, 520px) !important;
    left: 20px !important;
  }
}

@media (width <= 720px) {
  .stage-alarm {
    width: min(270px, calc(100% - 24px)) !important;
    min-height: 0 !important;
    height: auto !important;
  }
}
/* One separator system throughout component-detail tables. */
.detail-panel {
  --detail-rule: 1px solid rgba(60, 60, 67, 0.12);
}

.detail-panel .hand-groups,
.detail-panel .device-grid {
  border-top: var(--detail-rule) !important;
}

.detail-panel .hand-group {
  border-bottom: var(--detail-rule) !important;
  border-top: 0 !important;
}

.detail-panel .device-instance {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.detail-panel .device-instance:nth-child(n + 3) {
  border-top: var(--detail-rule) !important;
}

.detail-panel .device-instance:nth-child(2n) {
  border-left: var(--detail-rule) !important;
}

.detail-panel .device-instance > header,
.detail-panel .hand-data > div,
.detail-panel .device-instance .hand-data > div,
.detail-panel .device-instance .hand-data > div:nth-child(2n) {
  border-top: var(--detail-rule) !important;
  border-bottom: 0 !important;
}

.detail-panel .device-instance > header {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.detail-panel .hand-data > div:nth-child(2n):not(.device-instance *) {
  border-left: var(--detail-rule) !important;
}

/* Reuse the navigation chevron for every disclosure control. */
.language-chevron,
.device-expand > b,
.motor-detail-toggle > b {
  flex: 0 0 auto !important;
  width: 10.5px !important;
  height: 7px !important;
  margin: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: url("./rms-assets/figma-chevron.svg") center / 10.5px 6.2px no-repeat !important;
  transition: transform 0.18s ease !important;
}

.language-button.is-open .language-chevron,
.device-collection.is-expanded .device-expand > b,
.device-collection.is-motor-details-expanded .motor-detail-toggle > b {
  transform: rotate(180deg) !important;
}

/* Torso MCU 1–3 share one horizontal row. */
.device-collection[data-device-group="1"]:has(.device-instance:nth-child(3):last-child) .device-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.device-collection[data-device-group="1"]:has(.device-instance:nth-child(3):last-child) .device-instance:nth-child(3) {
  border-top: 0 !important;
  border-left: var(--detail-rule) !important;
}

/* Compact stage alarm tip shown after refresh. */
.stage-alarm {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  max-width: min(320px, calc(100% - 40px)) !important;
  min-height: 0 !important;
  height: 40px !important;
  padding: 0 34px 0 12px !important;
  bottom: 76px !important;
  left: 24px !important;
  color: #fff !important;
  background: rgba(210, 45, 41, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 22px rgba(94, 13, 20, 0.2) !important;
  backdrop-filter: blur(12px) !important;
}

.stage-alarm::before {
  display: none !important;
}

.stage-alarm .alarm-title {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.stage-alarm .alarm-title > i {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 50% !important;
  font-size: 11px !important;
}

.stage-alarm .alarm-title > div {
  min-width: 0 !important;
}

.stage-alarm .alarm-title small {
  display: none !important;
}

.stage-alarm .alarm-title strong {
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.stage-alarm .alarm-head {
  order: 2 !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  position: absolute !important;
  top: 50% !important;
  right: 6px !important;
  transform: translateY(-50%) !important;
}

.stage-alarm .alarm-level,
.stage-alarm .alarm-head time,
.stage-alarm .alarm-data,
.stage-alarm > p,
.stage-alarm .alarm-detail-button {
  display: none !important;
}

.stage-alarm .alarm-head > button {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-size: 16px !important;
}

.stage-alarm .alarm-head > button:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

/* Reference-style rectangular alert strip. */
.stage-alarm {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4px !important;
  width: min(460px, calc(100% - 48px)) !important;
  max-width: none !important;
  height: auto !important;
  min-height: 82px !important;
  padding: 12px 46px 11px 26px !important;
  background: linear-gradient(90deg, rgba(211, 28, 34, 0.94), rgba(142, 45, 54, 0.76)) !important;
  border: 1px solid rgba(255, 76, 83, 0.68) !important;
  border-radius: 0 !important;
  box-shadow: 0 7px 20px rgba(94, 13, 20, 0.16) !important;
}

.stage-alarm::before {
  content: "" !important;
  display: block !important;
  width: 2px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  position: absolute !important;
  top: 13px !important;
  bottom: 13px !important;
  left: 14px !important;
}

.stage-alarm .alarm-title {
  display: block !important;
  order: 1 !important;
}

.stage-alarm .alarm-title > i,
.stage-alarm .alarm-title small {
  display: none !important;
}

.stage-alarm .alarm-title strong {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.stage-alarm > p {
  display: block !important;
  order: 2 !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.stage-alarm .alarm-head {
  display: block !important;
  order: 3 !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
  transform: none !important;
}

.stage-alarm .alarm-head time {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 9px !important;
  line-height: 1.3 !important;
}

.stage-alarm .alarm-head time::before {
  content: "◷" !important;
  margin-right: 5px !important;
}

.stage-alarm .alarm-head > button {
  width: 28px !important;
  height: 44px !important;
  color: transparent !important;
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  transform: translateY(-50%) !important;
}

.stage-alarm .alarm-head > button::before {
  content: "›" !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 30px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

/* Final alarm placement and dimensions from the annotated reference. */
.stage-alarm {
  display: block !important;
  width: 200px !important;
  max-width: 200px !important;
  min-width: 200px !important;
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
  top: 44% !important;
  bottom: auto !important;
  left: 32px !important;
  padding: 22px 34px 18px 24px !important;
  border-radius: 0 !important;
}

.stage-alarm::before {
  top: 20px !important;
  bottom: 20px !important;
  left: 12px !important;
}

.stage-alarm .alarm-title strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.stage-alarm > p {
  margin-top: 10px !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  overflow: hidden !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
}

.stage-alarm .alarm-head {
  position: static !important;
  width: 0 !important;
  height: 0 !important;
}

.stage-alarm .alarm-head time {
  position: absolute !important;
  bottom: 18px !important;
  left: 24px !important;
}

/* Final alarm controls: no accent rule or disclosure arrow. */
.stage-alarm::before {
  display: none !important;
}

.stage-alarm .alarm-head > button {
  width: 26px !important;
  height: 26px !important;
  top: 6px !important;
  right: 6px !important;
  transform: none !important;
  color: transparent !important;
  font-size: 0 !important;
}

.stage-alarm .alarm-head > button::before {
  content: "×" !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

/* Even card insets and title-aligned close control. */
.stage-alarm {
  padding: 22px !important;
}

.stage-alarm .alarm-title {
  padding-right: 18px !important;
}

.stage-alarm .alarm-head time {
  bottom: 22px !important;
  left: 22px !important;
}

.stage-alarm .alarm-head > button {
  width: 20px !important;
  height: 20px !important;
  top: 22px !important;
  right: 8px !important;
}

/* All joint-motor collections use three instances per row. */
.device-collection[data-device-group="0"]:has(.device-instance:nth-child(3)) .device-grid,
.device-collection[data-device-group="2"]:has(.device-instance:nth-child(3)) .device-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.device-collection[data-device-group="0"]:has(.device-instance:nth-child(3)) .device-instance,
.device-collection[data-device-group="2"]:has(.device-instance:nth-child(3)) .device-instance {
  border-left: 0 !important;
  border-top: 0 !important;
}

.device-collection[data-device-group="0"]:has(.device-instance:nth-child(3)) .device-instance:not(:nth-child(3n + 1)),
.device-collection[data-device-group="2"]:has(.device-instance:nth-child(3)) .device-instance:not(:nth-child(3n + 1)) {
  border-left: var(--detail-rule) !important;
}

.device-collection[data-device-group="0"]:has(.device-instance:nth-child(3)) .device-instance:nth-child(n + 4),
.device-collection[data-device-group="2"]:has(.device-instance:nth-child(3)) .device-instance:nth-child(n + 4) {
  border-top: var(--detail-rule) !important;
}

/* A single device fills the row instead of reserving an empty second column. */
.device-grid:has(.device-instance:only-child) {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Hand motor collections also use three instances per row. */
.device-collection[data-device-group="1"]:has(.device-instance:nth-child(3)) .device-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.device-collection[data-device-group="1"]:has(.device-instance:nth-child(3)) .device-instance {
  border-left: 0 !important;
  border-top: 0 !important;
}

.device-collection[data-device-group="1"]:has(.device-instance:nth-child(3)) .device-instance:not(:nth-child(3n + 1)) {
  border-left: var(--detail-rule) !important;
}

.device-collection[data-device-group="1"]:has(.device-instance:nth-child(3)) .device-instance:nth-child(n + 4) {
  border-top: var(--detail-rule) !important;
}

/* Separate each three-item row while keeping columns connected. */
.device-collection[data-device-group="0"]:has(.device-instance:nth-child(3)) .device-grid,
.device-collection[data-device-group="1"]:has(.device-instance:nth-child(3)) .device-grid,
.device-collection[data-device-group="2"]:has(.device-instance:nth-child(3)) .device-grid {
  column-gap: 0 !important;
  row-gap: 16px !important;
}

/* Small square marker for list-group titles. */
.hand-group > header > span > b,
.collection-title > span > b,
.software-section > header > b {
  display: inline-flex !important;
  align-items: center !important;
}

.hand-group > header > span > b::before,
.collection-title > span > b::before,
.software-section > header > b::before {
  content: "" !important;
  flex: 0 0 5px !important;
  width: 5px !important;
  height: 5px !important;
  margin-right: 9px !important;
  background: #1d1d1f !important;
}

.stage-alarm .alarm-head > button::before {
  font-size: 20px !important;
}

/* Motor tables use the same compact row rhythm as the computing platform. */
.is-motor-collection .device-instance > header,
.is-motor-collection .device-instance .hand-data > div,
.is-motor-collection .device-instance .hand-data > div:nth-child(2n) {
  min-height: 29px !important;
}

.is-motor-collection .device-instance > header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.is-motor-collection .device-instance .hand-data > div,
.is-motor-collection .device-instance .hand-data > div:nth-child(2n) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Hover feedback for the model data-category navigation. */
.tabs button {
  position: relative !important;
  transition: color 0.16s ease, background-color 0.16s ease, padding-left 0.16s ease !important;
}

.tabs button:not(.active)::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: 28px !important;
  float: none !important;
  width: 6px !important;
  height: 6px !important;
  margin: 0 !important;
  background: #007aff !important;
  opacity: 0 !important;
  transform: translateY(-50%) scale(0.45) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

.tabs button.active::after {
  position: absolute !important;
  top: 50% !important;
  right: 28px !important;
  float: none !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

.tabs button:not(.active):hover,
.tabs button:not(.active):focus-visible {
  color: #1d1d1f !important;
  background: rgba(255, 255, 255, 0.62) !important;
  padding-left: 8px !important;
}

.tabs button:not(.active):hover::after,
.tabs button:not(.active):focus-visible::after {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1) !important;
}

.tabs button:focus-visible {
  outline: 1px solid rgba(0, 122, 255, 0.55) !important;
  outline-offset: -1px !important;
}

/* Overview expands into a direct part navigator. */
.overview-part-menu {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  max-height: 0;
  padding: 0 0 0 14px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: max-height 0.24s ease, opacity 0.18s ease, transform 0.24s ease, visibility 0.24s ease;
}

.tabs.parts-open .overview-part-menu {
  max-height: 270px;
  padding-top: 6px;
  padding-bottom: 8px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tabs > button[data-tab="overview"]::before {
  content: none !important;
  display: none !important;
}

.tabs > button[data-tab="overview"]::after,
.tabs > button[data-tab="overview"].active::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: 28px !important;
  width: 7px !important;
  height: 7px !important;
  margin: 0 !important;
  background: #007aff !important;
  border: 0 !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
  transition: border-color 0.18s ease, transform 0.18s ease !important;
}

.tabs.parts-open > button[data-tab="overview"]::after,
.tabs.parts-open > button[data-tab="overview"].active::after {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border-left: 5px solid transparent !important;
  border-right: 5px solid transparent !important;
  border-top: 7px solid #007aff !important;
  transform: translateY(-35%) !important;
}

.overview-part-menu {
  position: relative;
}

.overview-part-menu::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 22px;
  left: 14px;
  width: 1px;
  background: rgba(60, 60, 67, 0.2);
}

.tabs .overview-part-menu button {
  position: relative !important;
  width: 100% !important;
  min-height: 29px !important;
  padding: 5px 24px 5px 14px !important;
  color: #75787d !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.tabs .overview-part-menu button::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  width: 11px !important;
  height: 1px !important;
  background: rgba(60, 60, 67, 0.2) !important;
}

#stageAlarm.menu-following {
  top: var(--alarm-follow-top) !important;
  bottom: auto !important;
  left: var(--alarm-follow-left) !important;
}

.tabs .overview-part-menu button::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  width: 5px !important;
  height: 5px !important;
  margin: 0 !important;
  background: #007aff !important;
  opacity: 0 !important;
  transform: translateY(-50%) scale(0.5) !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.tabs .overview-part-menu button:hover,
.tabs .overview-part-menu button:focus-visible,
.tabs .overview-part-menu button.is-selected {
  color: #1d1d1f !important;
  background: rgba(255, 255, 255, 0.64) !important;
  padding-left: 18px !important;
}

.tabs .overview-part-menu button:hover::after,
.tabs .overview-part-menu button:focus-visible::after,
.tabs .overview-part-menu button.is-selected::after {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1) !important;
}

/* Keep the software-service page on the same type system as other details. */
.component-panel.software-mode,
.component-panel.software-mode .software-sections,
.component-panel.software-mode .software-section,
.component-panel.software-mode .software-item,
.component-panel.software-mode .software-item b,
.component-panel.software-mode .software-item small,
.component-panel.software-mode .software-item em {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.component-panel.software-mode .software-item b {
  letter-spacing: 0 !important;
}

/* Software services are read-only data, not interactive rows or controls. */
.component-panel.software-mode .software-item,
.component-panel.software-mode .software-item.is-update,
.component-panel.software-mode .software-item.is-stopped,
.component-panel.software-mode .software-item:hover {
  margin: 0 !important;
  padding-right: 2px !important;
  padding-left: 2px !important;
  cursor: default !important;
  background: transparent !important;
  border-left: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.component-panel.software-mode .software-item em,
.component-panel.software-mode .software-item.is-update em,
.component-panel.software-mode .software-item.is-stopped em {
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.component-panel.software-mode .software-item.is-update small,
.component-panel.software-mode .software-item.is-stopped small {
  color: #8e8e93 !important;
}

/* Let detail data arrive just after the camera begins its move. */
@keyframes component-detail-arrival {
  0% {
    opacity: 0;
    transform: translateX(10px);
  }
  45% {
    opacity: 0;
    transform: translateX(7px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

#componentPanel.camera-transition {
  animation: component-detail-arrival 0.62s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* Each motor starts with four key values and expands independently. */
.is-motor-collection:not(.is-motor-details-expanded) .is-detail-row {
  display: none !important;
}

.is-motor-collection.is-motor-details-expanded .is-detail-row {
  display: flex !important;
}

.motor-detail-toggle {
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  color: #6e6e73 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: var(--detail-rule) !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
}

.motor-detail-toggle:hover,
.motor-detail-toggle:focus-visible {
  color: #1d1d1f !important;
  background: rgba(60, 60, 67, 0.045) !important;
}

.motor-detail-toggle:focus-visible {
  outline: 1px solid rgba(0, 122, 255, 0.5) !important;
  outline-offset: -1px !important;
}

.collection-title .motor-detail-toggle {
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 26px !important;
  margin-left: auto !important;
  padding: 0 2px 0 10px !important;
  border-top: 0 !important;
  font-size: 9px !important;
}

/* Tactile sensors use the same three-column rhythm as motor collections. */
.is-tactile-collection .device-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 0 !important;
  row-gap: 16px !important;
}

.is-tactile-collection .device-instance {
  border-top: 0 !important;
  border-left: 0 !important;
}

.is-tactile-collection .device-instance:not(:nth-child(3n + 1)) {
  border-left: var(--detail-rule) !important;
}

.is-tactile-collection .device-instance:nth-child(n + 4) {
  border-top: var(--detail-rule) !important;
}

/* Two-column fan rows keep a clear gap between row one and row two. */
.is-fan-collection .device-grid {
  column-gap: 0 !important;
  row-gap: 16px !important;
}

/* Keep the normal system pointer visible over the interactive 3D canvas. */
.model-stage,
#canvasWrap,
#canvasWrap:hover,
#robotCanvas,
#robotCanvas:hover,
#robotCanvas:active,
#robotCanvas[style] {
  cursor: default !important;
}

/* Fault history stays inside the right information panel. */
.fault-records-panel {
  padding: 0 19px 19px;
  color: #1f2937;
}

#faultRecordsPanel:not(.is-hidden) {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.fault-records-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 12px;
  border-top: 1px solid #e4e9ef;
}

.fault-records-back,
.record-position-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #087bff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.fault-records-search {
  display: flex;
  align-items: center;
  width: min(260px, 44%);
  height: 36px;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid #dce3ec;
  background: #f8fafc;
}

.fault-records-search span {
  color: #8796aa;
  font-size: 20px;
}

.fault-records-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #263244;
  font: inherit;
}

.fault-records-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.fault-records-range input[type="date"] {
  width: 100%;
  height: 30px;
  padding: 0 25px 0 2px;
  color: #242628;
  background: transparent;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  outline: 0;
  font: inherit;
  cursor: pointer;
}

.fault-records-range input[type="date"]:hover,
.fault-records-range input[type="date"]:focus {
  border-bottom-color: transparent;
}

.fault-records-range input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.fault-records-range .date-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 126px;
  height: 30px;
}

.fault-records-range .date-field::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3px;
  width: 16px;
  height: 16px;
  background: #1d1d1f;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1v3M12 1v3M2.5 6h11M3.5 3h9a1 1 0 0 1 1 1v9.5h-11V4a1 1 0 0 1 1-1Z' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1v3M12 1v3M2.5 6h11M3.5 3h9a1 1 0 0 1 1 1v9.5h-11V4a1 1 0 0 1 1-1Z' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  transform: translateY(-50%);
  transition: background-color 0.16s ease;
}

.fault-records-range .date-field:hover::after,
.fault-records-range .date-field:focus-within::after {
  background: #007aff;
}

.fault-records-range .range-calendar {
  color: #1d1d1f;
}

.fault-records-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.fault-records-table {
  width: 100%;
  min-width: 630px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.fault-records-table th {
  padding: 11px 10px;
  color: #617087;
  background: #f0f4f8;
  text-align: left;
  font-weight: 700;
}

.fault-records-table th:nth-child(1) { width: 132px; }
.fault-records-table th:nth-child(3) { width: 112px; }
.fault-records-table th:nth-child(4) { width: 118px; }

.fault-records-table td {
  height: 50px;
  padding: 9px 10px;
  border-bottom: 1px solid #dce3ec;
  line-height: 1.35;
  vertical-align: middle;
}

.fault-records-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.record-position-link {
  white-space: nowrap;
}

.fault-record-empty {
  margin: 0;
  padding: 44px 0;
  color: #87909d;
  text-align: center;
}

.fault-records-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: auto;
  color: #69788e;
  font-size: 12px;
}

.fault-record-pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fault-record-pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  background: #f1f4f8;
  color: #607087;
  font: inherit;
  cursor: pointer;
}

.fault-record-pagination button.is-active {
  background: #2684ff;
  color: #fff;
}

.fault-record-pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

/* The resizable panel controls the number of device columns: one through four. */
.detail-panel {
  container-name: detailpanel;
  container-type: inline-size;
}

#componentPanel .device-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  column-gap: 0 !important;
  row-gap: 16px !important;
}

#componentPanel .device-grid > .device-instance {
  border-left: 0 !important;
  border-top: 0 !important;
}

@container detailpanel (min-width: 500px) {
  #componentPanel .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #componentPanel .device-grid > .device-instance:not(:nth-child(2n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .device-grid > .device-instance:nth-child(n + 3) {
    border-top: var(--detail-rule) !important;
  }
}

@container detailpanel (min-width: 680px) {
  #componentPanel .device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #componentPanel .device-grid > .device-instance {
    border-left: 0 !important;
    border-top: 0 !important;
  }

  #componentPanel .device-grid > .device-instance:not(:nth-child(3n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .device-grid > .device-instance:nth-child(n + 4) {
    border-top: var(--detail-rule) !important;
  }
}

@container detailpanel (min-width: 860px) {
  #componentPanel .device-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #componentPanel .device-grid > .device-instance {
    border-left: 0 !important;
    border-top: 0 !important;
  }

  #componentPanel .device-grid > .device-instance:not(:nth-child(4n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .device-grid > .device-instance:nth-child(n + 5) {
    border-top: var(--detail-rule) !important;
  }
}

/* Severity labels projected onto the corresponding 3D robot parts. */
.anomaly-markers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.anomaly-marker {
  --alarm-color: #dc2626;
  --alarm-soft: rgba(220, 38, 38, 0.14);
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--alarm-color) 48%, transparent);
  border-radius: 0;
  color: #262a2f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(20, 26, 33, 0.14);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(30px, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, filter 0.18s ease;
}

.anomaly-marker.is-positioned {
  opacity: 1;
}

.anomaly-marker::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--alarm-color);
}

.anomaly-marker i {
  position: absolute;
  top: 50%;
  right: calc(100% + 20px);
  width: 7px;
  height: 7px;
  background: var(--alarm-color);
  box-shadow: 0 0 0 4px var(--alarm-soft);
  transform: translate(50%, -50%);
}

.anomaly-marker b {
  margin-right: 3px;
  color: var(--alarm-color);
  font-size: 9px;
}

.anomaly-marker:hover {
  filter: brightness(0.96) saturate(1.12);
}

.anomaly-level-2 {
  --alarm-color: #f59e0b;
  --alarm-soft: rgba(245, 158, 11, 0.16);
}

.anomaly-level-3 {
  --alarm-color: #d4a900;
  --alarm-soft: rgba(234, 179, 8, 0.16);
}

@media (prefers-reduced-motion: no-preference) {
  .anomaly-marker i {
    animation: anomaly-pulse 2.2s ease-out infinite;
  }
}

@keyframes anomaly-pulse {
  0%, 55%, 100% { box-shadow: 0 0 0 4px var(--alarm-soft); }
  78% { box-shadow: 0 0 0 8px transparent; }
}

/* Match fault history to the typography and line-based rhythm of other detail views. */
.fault-records-mode .panel-heading {
  min-height: 88px !important;
  padding-top: 22px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12) !important;
  align-items: center !important;
}

.fault-records-mode .panel-heading h2 {
  margin: 2px 0 0 !important;
  font-size: clamp(26px, 2.25vw, 34px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  font-weight: 650 !important;
}

.fault-records-mode .panel-heading .eyebrow {
  margin: 0 !important;
  color: #8e8e93 !important;
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
}

.fault-records-mode .count-badge {
  color: #fff !important;
  background: #1d1d1f !important;
  border-radius: 0 !important;
}

.fault-records-panel {
  color: #242628 !important;
  font-family: inherit !important;
}

.fault-records-toolbar {
  padding: 14px 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12) !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
}

.fault-records-back {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  padding: 0 !important;
  color: #ffffff !important;
  background: #1d1d1f !important;
  border-radius: 0 !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

.fault-records-back:hover {
  color: #ffffff !important;
  background: #000000 !important;
}

.record-position-link:hover {
  color: #007aff !important;
}

.fault-records-search,
.fault-records-range {
  border-color: rgba(60, 60, 67, 0.16) !important;
  border-radius: 0 !important;
  color: #3a3a3c !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.fault-records-range {
  border: 0 !important;
  background: transparent !important;
}

.fault-records-range {
  flex: 0 0 auto;
  margin: 0 !important;
  font-size: 12px !important;
  white-space: nowrap;
  gap: 5px;
}

.fault-records-toolbar .fault-records-search {
  flex: 1 1 220px;
  min-width: 100px;
  max-width: 240px;
  margin-left: 0;
}

.fault-records-toolbar .fault-records-range {
  margin-left: auto !important;
}

.fault-records-toolbar .fault-records-range .date-field {
  width: 100px;
}

.fault-records-toolbar .fault-records-range .range-calendar {
  display: none;
}

@container detailpanel (max-width: 420px) {
  .fault-records-toolbar {
    gap: 8px !important;
    overflow-x: hidden;
  }

  .fault-records-toolbar .fault-records-range {
    gap: 3px;
  }

  .fault-records-toolbar .fault-records-range .range-label {
    display: none;
  }

  .fault-records-toolbar .fault-records-range .date-field {
    width: 94px;
  }

  .fault-records-toolbar .fault-records-search {
    flex: 0 1 100px;
    min-width: 90px;
    max-width: 100px;
  }
}

.fault-records-search input {
  font-size: 12px !important;
}

.fault-records-table {
  color: #242628 !important;
  font-size: 12px !important;
}

.fault-records-table th {
  padding: 10px 10px !important;
  color: #67676d !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(60, 60, 67, 0.12) !important;
  border-bottom: 1px solid rgba(60, 60, 67, 0.16) !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
}

.fault-records-table td {
  height: 48px !important;
  padding: 8px 10px !important;
  border-bottom-color: rgba(60, 60, 67, 0.12) !important;
  background: #ffffff !important;
  text-align: center !important;
}

.fault-records-table tbody tr:nth-child(even) {
  background: #ffffff !important;
}

.fault-records-table tbody tr:hover td {
  background: rgba(60, 60, 67, 0.035) !important;
}

.record-position-link {
  color: #1d1d1f !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}

.fault-records-footer {
  color: #737378 !important;
  border-top: 0 !important;
}

.fault-record-pagination button {
  border-radius: 0 !important;
  background: #f2f2f4 !important;
  color: #5f5f65 !important;
}

.fault-record-pagination button.is-active {
  color: #ffffff !important;
  background: #1d1d1f !important;
}

#faultRecordsPanel .fault-records-table {
  width: 100% !important;
  margin-inline: auto !important;
}

#faultRecordsPanel .fault-records-table thead th,
#faultRecordsPanel .fault-records-table tbody td {
  text-align: center !important;
}

#faultRecordsPanel .fault-records-table thead,
#faultRecordsPanel .fault-records-table thead tr,
#faultRecordsPanel .fault-records-table thead th {
  color: #6e6e73 !important;
  background: #f2f2f2 !important;
}

#faultRecordsPanel .fault-records-table tbody td,
#faultRecordsPanel .fault-records-table tbody td b {
  color: #8e8e93 !important;
}

#faultRecordsPanel .fault-records-table tbody td b {
  font-weight: 400 !important;
}

#faultRecordsPanel .fault-records-table .record-position-link {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-inline: auto !important;
  color: #1d1d1f !important;
}

/* One consistent return control for every non-overview detail page. */
.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.panel-heading-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.panel-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 104px;
  height: 36px;
  padding: 0 13px;
  color: #ffffff;
  background: #1d1d1f;
  border: 1px solid #1d1d1f;
  border-radius: 0;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.panel-heading-copy .panel-back-button:not(.is-hidden) {
  position: absolute;
  right: 19px;
  bottom: 19px;
  z-index: 12;
  margin: 0;
}

.detail-panel {
  position: relative !important;
}

.fault-records-mode .fault-records-footer {
  padding-right: 124px !important;
}

.panel-back-button span {
  font-size: 17px;
  line-height: 1;
}

.panel-back-button b {
  font: inherit;
  white-space: nowrap;
}

.panel-back-button:hover,
.panel-back-button:focus-visible {
  color: #ffffff;
  background: #007aff;
  border-color: #007aff;
  outline: 0;
}

/* Pinpoint the exact device row reached from an anomaly marker. */
#componentPanel .device-instance.anomaly-device {
  --anomaly-color: #e6b422;
}

#componentPanel .device-instance.anomaly-device-level-1 { --anomaly-color: #ea4335; }
#componentPanel .device-instance.anomaly-device-level-2 { --anomaly-color: #f5a623; }
#componentPanel .device-instance.anomaly-device-level-3 { --anomaly-color: #e6b422; }

#componentPanel .device-instance.anomaly-device .is-anomaly-value,
#componentPanel .is-motor-collection:not(.is-motor-details-expanded) .device-instance.anomaly-device .is-anomaly-value {
  display: flex !important;
  background: color-mix(in srgb, var(--anomaly-color) 11%, transparent) !important;
}

#componentPanel .device-instance.anomaly-device .is-anomaly-value small,
#componentPanel .device-instance.anomaly-device .is-anomaly-value strong {
  color: var(--anomaly-color) !important;
  font-weight: 750 !important;
}

/* A single, exact separator grid for left/right hand motors. */
#componentPanel .is-motor-collection .device-grid {
  align-items: stretch !important;
  border-top: var(--detail-rule) !important;
}

#componentPanel .is-motor-collection .device-instance {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: 44px auto !important;
  align-self: stretch !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

#componentPanel .is-motor-collection .device-instance > header {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
}

#componentPanel .is-motor-collection .device-instance .hand-data {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: 42px !important;
  align-content: start !important;
  min-width: 0 !important;
}

#componentPanel .is-motor-collection .device-instance .hand-data > div,
#componentPanel .is-motor-collection .device-instance .hand-data > div:nth-child(2n) {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-top: var(--detail-rule) !important;
}

#componentPanel .is-motor-collection:not(.is-motor-details-expanded) .device-instance .is-detail-row {
  display: none !important;
}

#componentPanel .is-motor-collection.is-motor-details-expanded .device-instance .is-detail-row {
  display: flex !important;
}

#componentPanel .is-motor-collection .device-instance:nth-child(n + 2) {
  border-top: var(--detail-rule) !important;
}

@container detailpanel (min-width: 500px) {
  #componentPanel .is-motor-collection .device-instance {
    border-top: 0 !important;
    border-left: 0 !important;
  }

  #componentPanel .is-motor-collection .device-instance:not(:nth-child(2n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .is-motor-collection .device-instance:nth-child(n + 3) {
    border-top: var(--detail-rule) !important;
  }
}

@container detailpanel (min-width: 680px) {
  #componentPanel .is-motor-collection .device-instance {
    border-top: 0 !important;
    border-left: 0 !important;
  }

  #componentPanel .is-motor-collection .device-instance:not(:nth-child(3n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .is-motor-collection .device-instance:nth-child(n + 4) {
    border-top: var(--detail-rule) !important;
  }
}

@container detailpanel (min-width: 860px) {
  #componentPanel .is-motor-collection .device-instance {
    border-top: 0 !important;
    border-left: 0 !important;
  }

  #componentPanel .is-motor-collection .device-instance:not(:nth-child(4n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .is-motor-collection .device-instance:nth-child(n + 5) {
    border-top: var(--detail-rule) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #componentPanel.camera-transition {
    animation: none !important;
  }
}

/*
 * Canonical list separators.
 * One boundary is painted by one element only: the grid owns its top edge,
 * data rows own their top edge, and only non-leading columns own a left edge.
 */
#componentPanel .hand-groups {
  border: 0 !important;
  border-top: var(--detail-rule) !important;
}

#componentPanel .hand-group {
  border: 0 !important;
  border-bottom: var(--detail-rule) !important;
}

#componentPanel .hand-group > header,
#componentPanel .collection-title {
  border: 0 !important;
}

#componentPanel .device-grid {
  align-items: stretch !important;
  column-gap: 0 !important;
  row-gap: 16px !important;
  border: 0 !important;
  border-top: var(--detail-rule) !important;
}

#componentPanel .device-grid > .device-instance,
#componentPanel .is-motor-collection .device-grid > .device-instance,
#componentPanel .is-tactile-collection .device-grid > .device-instance {
  align-self: stretch !important;
  min-width: 0 !important;
  border: 0 !important;
}

#componentPanel .device-instance > header,
#componentPanel .device-instance > header:first-child {
  border: 0 !important;
}

#componentPanel .device-instance .hand-data > div,
#componentPanel .device-instance .hand-data > div:nth-child(2n),
#componentPanel .device-instance .hand-data > div:last-child {
  box-sizing: border-box !important;
  border: 0 !important;
  border-top: var(--detail-rule) !important;
}

/* Non-card key/value lists use the same one-line-per-row convention. */
#componentPanel .hand-data:not(.device-instance .hand-data) > div,
#componentPanel .hand-data:not(.device-instance .hand-data) > div:nth-child(2n) {
  border: 0 !important;
  border-top: var(--detail-rule) !important;
}

/* One-column fallback. Later rows stay separated by the intentional row gap. */
#componentPanel .device-grid > .device-instance,
#componentPanel .is-motor-collection .device-grid > .device-instance,
#componentPanel .is-tactile-collection .device-grid > .device-instance {
  border-top: 0 !important;
  border-left: 0 !important;
}

#componentPanel .hand-group.device-collection[data-device-group] .device-grid > .device-instance {
  border-top: 0 !important;
}

@container detailpanel (min-width: 500px) {
  #componentPanel .device-grid > .device-instance,
  #componentPanel .is-motor-collection .device-grid > .device-instance,
  #componentPanel .is-tactile-collection .device-grid > .device-instance {
    border-top: 0 !important;
    border-left: 0 !important;
  }

  #componentPanel .device-grid > .device-instance:not(:nth-child(2n + 1)),
  #componentPanel .is-motor-collection .device-grid > .device-instance:not(:nth-child(2n + 1)),
  #componentPanel .is-tactile-collection .device-grid > .device-instance:not(:nth-child(2n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .hand-group.device-collection[data-device-group] .device-grid > .device-instance:nth-child(2n + 1) {
    border-left: 0 !important;
  }

  #componentPanel .hand-group.device-collection[data-device-group] .device-grid > .device-instance:not(:nth-child(2n + 1)) {
    border-left: var(--detail-rule) !important;
  }
}

@container detailpanel (min-width: 680px) {
  #componentPanel .device-grid > .device-instance,
  #componentPanel .is-motor-collection .device-grid > .device-instance,
  #componentPanel .is-tactile-collection .device-grid > .device-instance {
    border-top: 0 !important;
    border-left: 0 !important;
  }

  #componentPanel .device-grid > .device-instance:not(:nth-child(3n + 1)),
  #componentPanel .is-motor-collection .device-grid > .device-instance:not(:nth-child(3n + 1)),
  #componentPanel .is-tactile-collection .device-grid > .device-instance:not(:nth-child(3n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .hand-group.device-collection[data-device-group] .device-grid > .device-instance:nth-child(3n + 1) {
    border-left: 0 !important;
  }

  #componentPanel .hand-group.device-collection[data-device-group] .device-grid > .device-instance:not(:nth-child(3n + 1)) {
    border-left: var(--detail-rule) !important;
  }
}

@container detailpanel (min-width: 860px) {
  #componentPanel .device-grid > .device-instance,
  #componentPanel .is-motor-collection .device-grid > .device-instance,
  #componentPanel .is-tactile-collection .device-grid > .device-instance {
    border-top: 0 !important;
    border-left: 0 !important;
  }

  #componentPanel .device-grid > .device-instance:not(:nth-child(4n + 1)),
  #componentPanel .is-motor-collection .device-grid > .device-instance:not(:nth-child(4n + 1)),
  #componentPanel .is-tactile-collection .device-grid > .device-instance:not(:nth-child(4n + 1)) {
    border-left: var(--detail-rule) !important;
  }

  #componentPanel .hand-group.device-collection[data-device-group] .device-grid > .device-instance:nth-child(4n + 1) {
    border-left: 0 !important;
  }

  #componentPanel .hand-group.device-collection[data-device-group] .device-grid > .device-instance:not(:nth-child(4n + 1)) {
    border-left: var(--detail-rule) !important;
  }
}

/* Keep every internal row rule clipped to its device column. */
#componentPanel .hand-group.device-collection[data-device-group] .device-grid > .device-instance {
  overflow: hidden !important;
}

/* Software page: system image in the heading, then two named information groups. */
#componentPanel.software-mode #detailNote {
  display: none !important;
}

.software-section-cerebellum > .software-system-header {
  align-items: center;
  padding: 0 0 16px;
}

.software-system-header > div {
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 0;
}

.software-system-header > div > b {
  color: #1d1d1f;
  font-size: 18px;
  text-transform: none;
}

.software-system-header > div > span {
  display: grid;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid rgba(60, 60, 67, .18);
}

.software-system-header strong {
  color: #1d1d1f;
  font-size: 13px;
}

.software-system-header small {
  color: #8e8e93;
  font-size: 11px;
}

.software-system-header > em {
  color: #25a849;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.software-field-group {
  padding-top: 14px;
  border-top: 1px solid rgba(60, 60, 67, .18);
}

.software-field-group + .software-field-group {
  margin-top: 18px;
}

.software-field-group > h4 {
  margin: 0 0 8px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 750;
}

/* Clean software hierarchy: right-aligned system version and icon states. */
.software-section-cerebellum > .software-system-header {
  border-bottom: 0 !important;
}

.software-system-header > div {
  width: 100%;
}

.software-system-header > div > span {
  margin-left: auto;
  padding-left: 0;
  border-left: 0;
  text-align: right;
}

.software-status-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  width: auto;
  height: 22px;
  margin-left: 16px !important;
  padding: 0 7px !important;
  border: 1px solid rgba(52, 199, 89, .26);
  border-radius: 999px !important;
  background: rgba(52, 199, 89, .1) !important;
  color: #25a849 !important;
  font-size: 9px !important;
  font-style: normal;
  font-weight: 750;
}

.software-status-icon::after { content: '实时'; }

.software-status-icon i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25a849;
  animation: software-status-breathe 1.8s ease-in-out infinite;
}

@keyframes software-status-breathe {
  0%, 100% { opacity: .55; transform: scale(.82); box-shadow: 0 0 0 0 rgba(52, 199, 89, .28); }
  50% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 5px rgba(52, 199, 89, 0); }
}

.software-section-cerebellum .software-field-group {
  border-top: 1px solid rgba(60, 60, 67, .16);
}

.software-section-cerebellum .software-item {
  border-bottom: 0;
}

.software-field-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.software-field-group > header h4 {
  margin: 0;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 750;
}

.software-field-group > header span {
  color: #8e8e93;
  font-size: 10px;
  font-weight: 550;
}

/* Place every detail-page return action directly beside its title. */
.detail-panel .panel-heading-copy {
  display: grid !important;
  grid-template-columns: minmax(0, auto) auto;
  grid-template-areas:
    "eyebrow eyebrow"
    "title back";
  align-items: center;
  justify-content: start;
  column-gap: 14px;
}

.detail-panel .panel-heading-copy > .eyebrow { grid-area: eyebrow; }
.detail-panel .panel-heading-copy > h2 { grid-area: title; }

.detail-panel .panel-heading-copy > .panel-back-button:not(.is-hidden) {
  grid-area: back;
  position: static !important;
  inset: auto !important;
  z-index: auto;
  min-width: 88px;
  height: 32px;
  margin: 0 !important;
  padding: 0 11px;
}

.fault-records-mode .fault-records-footer {
  padding-right: 19px !important;
}

/* System version sits directly below the Cerebrum/Cerebellum title. */
.software-section-grouped .software-system-header > div {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

.software-section-grouped .software-system-header > div > span {
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.software-section-grouped .software-system-header small {
  font-size: 11px;
}

/* Keep the return action on the far right of the title bar. */
.detail-panel .panel-heading-copy {
  flex: 1 1 auto;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
}

.detail-panel .panel-heading-copy > .panel-back-button:not(.is-hidden) {
  justify-self: end;
}

/* Fault history entry belongs in the anomaly-summary heading. */
.fault-section .fault-summary-title .fault-history-link {
  position: static !important;
  inset: auto !important;
  z-index: auto;
  align-self: center;
  margin: 0 0 0 auto !important;
}

/* Continuous compute-unit grid: one line weight, joined horizontal/vertical edges. */
.processor-card .cerebrum-groups,
.processor-card .cerebellum-groups {
  width: calc(100% + 40px);
  margin-left: -20px;
  border-top: 1px solid rgba(60, 60, 67, .11);
  border-bottom: 1px solid rgba(60, 60, 67, .11);
}

.processor-card .compute-group + .compute-group {
  border-left: 0 !important;
}
.processor-card .compute-group + .compute-group::before {
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(60, 60, 67, .11);
}

.processor-card .compute-group:first-child { padding-left: 24px; }
.processor-card .compute-group:last-child { padding-right: 24px; }

.compute-processors > .cerebellum-card,
.mcu-grid article + article {
  border-left-color: rgba(60, 60, 67, .11) !important;
  border-left-width: 1px !important;
}

.mcu-grid {
  border-top-color: rgba(60, 60, 67, .11);
  border-bottom-color: rgba(60, 60, 67, .11);
}

/* Double the top breathing room for every right-side detail title. */
.detail-panel > .panel-heading,
.detail-panel.fault-records-mode > .panel-heading,
.fault-records-mode .panel-heading {
  padding-top: 38px !important;
}

/* Align processor headings with the MCU heading below. */
.compute-unit-panel .processor-card > header {
  width: calc(100% + 20px);
  margin-left: -20px;
  padding-left: 24px;
}

/* One typeface across navigation, panels, data, controls and form elements. */
html,
body,
body * {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif !important;
}
