:root {
  color-scheme: dark;
  --bg: #091522;
  --panel: #101f2f;
  --line: #294453;
  --text: #d3e3ed;
  --muted: #7992a5;
  --cyan: #74d6da;
  --amber: #e3c37c;
  --red: #eb8d9b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(
    ellipse at 50% 38%,
    #172a3e 0,
    #0b1928 55%,
    #07121e 100%
  );
  color: var(--text);
  font:
    12px system-ui,
    -apple-system,
    "PingFang SC",
    sans-serif;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: #b9cdd9;
  background: #182e40;
  border: 1px solid #304957;
  border-radius: 3px;
  padding: 8px 13px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
button:hover {
  background: #254657;
  border-color: var(--cyan);
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button.active,
button[aria-pressed="true"],
.primary {
  color: #baf2ef;
  border-color: #477779;
  background: #25494e;
}
header {
  height: 90px;
  margin: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2d4957;
  position: relative;
}
header:after {
  content: "";
  position: absolute;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #75b8ca, transparent);
  bottom: -2px;
  left: 31%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #698594;
  margin-top: 6px;
}
.brand-icon {
  font-size: 32px;
  color: #84bac9;
}
.muted {
  color: var(--muted);
}
.masthead {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.masthead h1 {
  font-size: 25px;
  letter-spacing: 6px;
  margin: 0 0 7px;
  font-style: italic;
  color: #e3edf2;
  text-shadow: 0 2px 15px #b1e2ff30;
}
.masthead > span {
  font-size: 7px;
  letter-spacing: 2.5px;
  color: #819aa9;
}
.header-end {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #92a8b6;
  font-size: 10px;
}
time {
  margin-left: 16px;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79d8bf;
  box-shadow: 0 0 8px #79d8bf66;
  vertical-align: middle;
}
nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 18px 0;
}
nav button {
  border: 0;
  background: #1a2d3f;
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 1px;
  position: relative;
}
nav button.active:after {
  content: "";
  height: 2px;
  background: var(--cyan);
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
}
nav i {
  font-style: normal;
  font-size: 9px;
  background: #77505b;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 4px;
}
main {
  display: grid;
  grid-template-columns: 245px minmax(390px, 1fr) 245px;
  gap: 20px;
  padding: 0 25px 20px;
  max-width: 1920px;
  margin: auto;
}
.panel {
  position: relative;
  background: linear-gradient(125deg, #19304275, #101e2c65);
  border: 1px solid #304b5a;
  border-radius: 6px;
  margin-bottom: 14px;
  padding: 15px;
  box-shadow: inset 0 0 25px #132d3d30;
}
.panel:before,
.panel:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 3px;
  background: #a0b8c6;
  top: -1px;
  left: 9px;
  opacity: 0.6;
}
.panel:after {
  top: auto;
  left: auto;
  bottom: -1px;
  right: 9px;
  width: 9px;
}
.panel h2 {
  font-size: 12px;
  letter-spacing: 1px;
  margin: 0 0 18px;
  font-weight: 600;
}
.panel h2:before {
  content: "▪";
  color: #93d6e6;
  margin-right: 6px;
}
.panel h2 small {
  font-size: 6px;
  font-weight: 400;
  color: #678491;
  letter-spacing: 0.6px;
  margin-left: 5px;
}
.dots {
  float: right;
  color: #78929f;
}
dl {
  margin: 0;
  flex: 1;
}
dl > div {
  display: flex;
  justify-content: space-between;
  margin: 9px 0;
  font-size: 10px;
}
dt {
  color: #9aafba;
}
dd {
  margin: 0;
  color: #a4baf2;
  font-variant-numeric: tabular-nums;
}
.health,
.load-content,
.distribution {
  display: flex;
  align-items: center;
  gap: 18px;
}
.gauge {
  width: 92px;
  height: 92px;
  background: conic-gradient(#70c7de 0 76%, #769bf4 76% 94%, #283d50 94%);
  border-radius: 50%;
  padding: 5px;
  position: relative;
  flex-shrink: 0;
}
.gauge:after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid #315263;
}
.gauge strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #101f30;
  font-size: 29px;
  font-weight: 500;
}
.gauge small {
  font-size: 9px;
  color: #b8cbd5;
  margin-top: 1px;
}
.panel-note {
  font-size: 9px;
  color: #8ca8b4;
  border-top: 1px solid #2c414d;
  margin-top: 12px;
  padding-top: 9px;
}
.panel-note .live-dot {
  margin-right: 8px;
}
.cyan {
  color: var(--cyan) !important;
}
.amber {
  color: var(--amber) !important;
}
.red {
  color: var(--red) !important;
}
.metric-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 17px 0;
}
.metric-row > span {
  font-size: 10px;
  color: #a0b6c4;
  white-space: nowrap;
}
.metric-row strong {
  font-size: 16px;
  font-weight: 450;
  white-space: nowrap;
}
.metric-row em,
em {
  font-style: normal;
  font-size: 9px;
  color: #99aebc;
  font-weight: 400;
  margin-left: 3px;
}
.metric-row svg {
  width: 63px;
  fill: none;
  stroke: #d7c793;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 4px #aacfd766);
}
.metric-row:nth-child(3) svg {
  stroke: #8ccacb;
}
.metric-row:nth-child(4) svg {
  stroke: #97c0a9;
}
.alert-totals {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.alert-totals b {
  font-size: 21px;
  font-weight: 450;
  color: #dac58a;
}
.alert-totals small {
  display: block;
  font-size: 8px;
  color: #8aa2b2;
  margin-top: 4px;
}
.bars {
  height: 59px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  border-bottom: 1px solid #334650;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 19px,
    #7796a20a 20px
  );
}
.bars i {
  flex: 1;
  background: linear-gradient(#90d5de, #558896);
  min-height: 3px;
}
.bars i:nth-child(3n) {
  background: linear-gradient(#d7b976, #847249);
}
.bars i:nth-child(4n) {
  background: linear-gradient(#a998e4, #68609d);
}
.axis {
  display: flex;
  justify-content: space-between;
  color: #67808f;
  font-size: 7px;
  margin-top: 7px;
}
.recent .alert-item {
  width: 100%;
  display: flex;
  text-align: left;
  justify-content: space-between;
  padding: 8px 9px;
  margin: 7px 0;
  border: 0;
  border-left: 2px solid #db8491;
  background: #d88a9910;
}
.alert-item small {
  display: block;
  color: #8b9ba9;
  font-size: 9px;
  margin-top: 4px;
}
.alert-item > b {
  font-size: 9px;
  font-weight: 400;
  color: #da929e;
}
.center-panel {
  min-width: 0;
  position: relative;
}
.scene-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 0;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #7192a6;
}
.scene-head h2 {
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 450;
  margin: 7px 0;
}
.scene-meta {
  font-size: 9px;
  color: #8ca7b5;
  display: flex;
  gap: 8px;
  align-items: center;
}
#scene {
  height: 420px;
  position: relative;
  border-bottom: 1px solid #293f50;
  touch-action: none;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#scene-loading {
  position: absolute;
  inset: 45% 0;
  text-align: center;
  z-index: 3;
  color: var(--cyan);
}
.zone-label {
  position: absolute;
  left: 25%;
  top: 35px;
  font-size: 8px;
  color: #8ca3b2;
  pointer-events: none;
  z-index: 1;
}
.zone-label b {
  display: block;
  font-size: 12px;
  color: #d4e4eb;
  margin-top: 5px;
}
.zone-label.second {
  left: auto;
  right: 20%;
}
.scene-controls {
  position: absolute;
  right: 6px;
  top: 16px;
  display: grid;
  gap: 7px;
}
.scene-controls button {
  padding: 5px 9px;
  font-size: 18px;
  background: #152536cc;
}
.scene-legend {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  font-size: 8px;
  color: #93a9b8;
  white-space: nowrap;
}
.scene-legend i {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 5px;
  background: #8bc4d3;
}
.scene-legend .warn {
  background: #d7bb78;
}
.scene-legend .critical {
  background: #dc8394;
}
.scene-hint {
  position: absolute;
  bottom: 14px;
  width: 100%;
  text-align: center;
  font-size: 8px;
  color: #6c879a;
  letter-spacing: 1px;
}
.rack-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 0;
  flex-wrap: wrap;
}
.rack-toolbar label {
  font-size: 10px;
  color: #8ca8b8;
  margin-right: 3px;
}
.rack-toolbar button,
.rack-toolbar select {
  font-size: 10px;
  padding: 7px 10px;
}
.rack-toolbar select {
  border: 1px solid #314b5b;
  background: #182b3c;
  color: #b9d1df;
  border-radius: 3px;
  max-width: 140px;
}
.rack-toolbar .primary {
  margin-left: auto;
}
.assistant {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #21415077, #15253655);
  border: 1px solid #355362;
  border-radius: 5px;
  padding: 15px;
}
.bot-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #73bbbf;
  border-radius: 11px;
  color: #a3dfdf;
  font-size: 28px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 12px #73bbbf33;
  flex-shrink: 0;
}
.assistant-copy {
  flex: 1;
}
.assistant-copy b {
  font-size: 13px;
  letter-spacing: 2px;
  margin-right: 10px;
}
.assistant-copy span {
  font-size: 9px;
  color: #8aaab8;
}
.assistant-tag {
  float: right;
  border: 1px solid #3b5661;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 7px !important;
}
.assistant p {
  font-size: 10px;
  line-height: 1.8;
  margin: 7px 0 0;
  color: #b3c8d3;
}
#speak-btn {
  border: 0;
  background: none;
  padding: 0;
  color: #80a9b7;
}
#command-form {
  display: flex;
  margin-top: 10px;
  border: 1px solid #2b4455;
  background: #0a1927;
  border-radius: 4px;
  align-items: center;
  padding-left: 12px;
  gap: 10px;
}
#command-form > span {
  color: #76a9ba;
}
input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c4dce7;
  padding: 12px 0;
  outline: none;
  font-size: 10px;
}
input::placeholder {
  color: #607e91;
}
#command-form button {
  white-space: nowrap;
  background: transparent;
  border: 0;
  font-size: 10px;
  color: #8dc6ce;
}
.purple {
  width: 80px;
  height: 80px;
  background: conic-gradient(#a58add 0 68%, #2c3a54 68%);
}
.purple strong {
  font-size: 25px;
  flex-direction: row;
}
.load-content {
  gap: 14px;
}
.load-number {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.load-number em {
  font-size: 8px;
}
.sparkline {
  width: 110px;
  fill: none;
  stroke: #a88ce2;
  stroke-width: 1.5;
  margin-top: 10px;
}
.consumption > span {
  display: block;
  font-size: 9px;
  color: #91a6b4;
}
.consumption > strong {
  font-size: 24px;
  font-weight: 400;
  display: block;
  margin: 6px 0;
}
.consumption > small {
  display: block;
  font-size: 8px;
  color: #7896a5;
  margin-bottom: 18px;
}
.consumption b {
  color: #8bc5b3;
  font-weight: 400;
}
.yellow i,
.yellow i:nth-child(n) {
  background: linear-gradient(#e8ce8d, #a99359);
}
.yellow {
  gap: 3px;
  height: 60px;
}
.donut {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(
    #839edc 0 58%,
    #66c1b7 58% 76%,
    #9b87cf 76% 88%,
    #d893a3 88% 95%,
    #dec18a 95%
  );
}
.donut strong {
  border-radius: 50%;
  height: 100%;
  background: #142436;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 22px;
  font-weight: 500;
}
.donut small {
  font-size: 7px;
  color: #8fa7b6;
  margin-top: 3px;
}
.distribution {
  gap: 15px;
}
.distribution ul {
  padding: 0;
  list-style: none;
  flex: 1;
  margin: 0;
}
.distribution li {
  font-size: 8px;
  line-height: 2.2;
  color: #a6bac7;
}
.distribution li:before {
  content: "▪";
  color: #8db0e1;
  margin-right: 6px;
}
.distribution li b {
  float: right;
  font-weight: 400;
}
.distribution li:nth-child(2):before {
  color: #66c1b7;
}
.distribution li:nth-child(3):before {
  color: #9b87cf;
}
.distribution li:nth-child(4):before {
  color: #d893a3;
}
.distribution li:nth-child(5):before {
  color: #dec18a;
}
.empty-detail {
  text-align: center;
  color: #647f90;
  padding: 8px;
  font-size: 25px;
}
.empty-detail p {
  font-size: 10px;
  color: #99afbe;
  margin: 9px 0;
}
.empty-detail small {
  font-size: 8px;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 14px;
}
.detail-stats span {
  display: block;
  font-size: 8px;
  color: #86a2b3;
}
.detail-stats strong {
  font-size: 21px;
  font-weight: 400;
  display: block;
  margin-top: 5px;
}
.device-status {
  padding: 9px;
  border: 1px solid #96607155;
  background: #aa586915;
  color: #df9aaa;
  font-size: 9px;
}
.device-status.ok {
  color: #9edbd0;
  background: #24564933;
  border-color: #467c6755;
}
footer {
  border-top: 1px solid #2b414f;
  margin: 0 25px;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: #7d9bac;
  gap: 20px;
}
footer > div {
  display: flex;
  gap: 35px;
}
footer b {
  font-size: 17px;
  color: #d4e4ec;
  font-weight: 450;
  margin: 0 5px;
}
footer small {
  font-size: 8px;
  color: #688496;
}
footer .live-dot {
  margin-right: 7px;
}
.footer-right {
  letter-spacing: 2px;
}
#workspace {
  position: absolute;
  inset: 0 0 auto;
  min-height: 645px;
  max-height: 750px;
  overflow: auto;
  background: linear-gradient(145deg, #112335, #0b1928);
  z-index: 5;
  border: 1px solid #2c4758;
  padding: 25px;
  border-radius: 5px;
}
#workspace h2 {
  font-size: 20px;
  font-weight: 450;
  letter-spacing: 2px;
  margin: 5px 0 10px;
}
#workspace p {
  color: #8da8b7;
  font-size: 10px;
  line-height: 1.8;
}
#workspace table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 10px;
}
th {
  text-align: left;
  color: #7797aa;
  font-size: 9px;
  font-weight: 400;
  background: #1a3042;
}
td,
th {
  padding: 12px 9px;
  border-bottom: 1px solid #2a4050;
}
td button {
  font-size: 9px;
  padding: 5px 7px;
}
td .badge {
  color: #e4b280;
}
.view-kpis {
  display: flex;
  gap: 15px;
  margin: 30px 0;
}
.view-kpis > div {
  flex: 1;
  border: 1px solid #304c5a;
  padding: 20px;
  background: #1c354555;
}
.view-kpis strong {
  display: block;
  font-size: 26px;
  color: #a9dadd;
  font-weight: 400;
}
.view-kpis small {
  font-size: 9px;
  color: #8ca8ba;
}
.energy-chart {
  display: flex;
  align-items: flex-end;
  height: 230px;
  gap: 10px;
  border-bottom: 1px solid #617987;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 45px,
    #47647433 46px
  );
}
.energy-chart i {
  flex: 1;
  background: linear-gradient(#e2c585, #698eaa);
  position: relative;
}
.energy-chart i:after {
  content: attr(data-hour);
  position: absolute;
  bottom: -22px;
  left: 0;
  font-size: 8px;
  color: #8da8b7;
}
#workspace .filter-input {
  border: 1px solid #2b495b;
  padding: 10px;
  margin-top: 8px;
  border-radius: 3px;
}
.work-empty {
  text-align: center;
  margin-top: 90px;
  color: #7696a7;
}
.work-empty strong {
  font-size: 45px;
  display: block;
  font-weight: 300;
  margin-bottom: 20px;
}
#rack-label {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 12px 16px;
  background: #233e50cc;
  border-left: 2px solid #88cfd5;
  font-size: 18px;
  pointer-events: none;
}
#rack-label small {
  display: block;
  font-size: 8px;
  color: #a1bcc8;
  margin-top: 4px;
}
@media (min-width: 1600px) {
  main {
    grid-template-columns: 285px minmax(500px, 1fr) 285px;
    gap: 28px;
  }
  #scene {
    height: 490px;
  }
  .panel {
    padding: 20px;
  }
  .metric-row {
    margin: 22px 0;
  }
  .metric-row svg {
    width: 85px;
  }
}
@media (max-width: 1150px) {
  main {
    grid-template-columns: 205px minmax(340px, 1fr) 205px;
    gap: 12px;
    padding: 0 15px 15px;
  }
  .panel {
    padding: 12px;
  }
  .gauge {
    width: 72px;
    height: 72px;
  }
  .health {
    gap: 10px;
  }
  .panel h2 small {
    display: none;
  }
  .distribution {
    gap: 8px;
  }
  .donut {
    width: 75px;
    height: 75px;
  }
  .metric-row svg {
    width: 38px;
  }
  .metric-row {
    gap: 5px;
  }
  .metric-row strong {
    font-size: 14px;
  }
  .masthead h1 {
    font-size: 21px;
  }
  time {
    display: none;
  }
  .header-end {
    font-size: 9px;
  }
  #scene {
    height: 390px;
  }
  nav button {
    padding: 10px 15px;
  }
  footer > div {
    gap: 15px;
  }
  .footer-right {
    display: none;
  }
  .scene-meta {
    display: none;
  }
}
@media (max-width: 850px) {
  header {
    height: 80px;
    margin: 0 15px;
  }
  .brand {
    font-size: 11px;
  }
  .brand small,
  .header-end {
    display: none;
  }
  .masthead {
    position: static;
    transform: none;
  }
  .masthead h1 {
    font-size: 17px;
    letter-spacing: 2px;
  }
  .masthead > span {
    font-size: 5px;
    letter-spacing: 1px;
  }
  nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 15px;
    margin: 14px 0;
  }
  nav button {
    white-space: nowrap;
    padding: 10px 13px;
  }
  main {
    display: flex;
    flex-wrap: wrap;
  }
  .center-panel {
    order: 0;
    width: 100%;
  }
  .left-panel,
  .right-panel {
    order: 1;
    width: calc(50% - 6px);
  }
  #scene {
    height: 430px;
  }
  .panel h2 small {
    display: inline;
  }
  .metric-row svg {
    width: 60px;
  }
  .gauge {
    width: 85px;
    height: 85px;
  }
  .scene-meta {
    display: flex;
  }
  .left-panel {
    margin-top: 12px;
  }
  .right-panel {
    margin-top: 12px;
  }
  footer {
    flex-wrap: wrap;
    margin: 0 15px;
  }
  footer > div {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }
  footer b {
    font-size: 15px;
  }
  #workspace {
    min-height: 640px;
    padding: 18px;
  }
}
@media (max-width: 460px) {
  .brand-icon {
    display: none;
  }
  .masthead h1 {
    font-size: 14px;
  }
  .brand {
    font-size: 9px;
  }
  .masthead > span {
    font-size: 4px;
  }
  #scene {
    height: 350px;
  }
  .scene-head h2 {
    font-size: 14px;
  }
  .scene-meta {
    font-size: 7px;
  }
  .rack-toolbar {
    gap: 5px;
  }
  .rack-toolbar button,
  .rack-toolbar select {
    font-size: 9px;
    padding: 7px;
  }
  .rack-toolbar label {
    display: none;
  }
  .rack-toolbar .primary {
    margin-left: 0;
  }
  .assistant-tag {
    display: none;
  }
  .assistant {
    padding: 12px;
  }
  .panel {
    padding: 10px;
  }
  .panel h2 {
    font-size: 10px;
  }
  .panel h2 small {
    display: none;
  }
  .gauge {
    width: 60px;
    height: 60px;
  }
  .gauge strong {
    font-size: 22px;
  }
  .health {
    gap: 8px;
  }
  dl > div {
    font-size: 8px;
  }
  .metric-row {
    flex-wrap: wrap;
    margin: 13px 0;
  }
  .metric-row > span {
    font-size: 8px;
  }
  .metric-row svg {
    width: 35px;
  }
  .metric-row strong {
    font-size: 12px;
  }
  .donut {
    width: 62px;
    height: 62px;
    padding: 7px;
  }
  .donut strong {
    font-size: 18px;
  }
  .distribution {
    gap: 7px;
  }
  .distribution li {
    font-size: 7px;
  }
  .load-content {
    gap: 8px;
  }
  .load-number {
    font-size: 12px;
  }
  .sparkline {
    width: 65px;
  }
  .load-number em {
    font-size: 7px;
  }
  .consumption > strong {
    font-size: 20px;
  }
  .view-kpis {
    gap: 6px;
  }
  .view-kpis > div {
    padding: 12px;
  }
  .view-kpis strong {
    font-size: 20px;
  }
  td,
  th {
    padding: 10px 5px;
    font-size: 9px;
  }
  #workspace {
    padding: 12px;
  }
  footer > div span {
    font-size: 6px;
  }
  .assistant-copy p {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (min-width: 851px) {
  .recent {
    display: none;
  }
  .detail-panel {
    display: none;
  }
  body.detail-active .detail-panel {
    display: block;
  }
  body.detail-active .right-panel > .panel:nth-child(3) {
    display: none;
  }
  header {
    height: 72px;
  }
  nav {
    margin: 12px 0;
  }
  main {
    padding-bottom: 10px;
  }
  #scene {
    height: clamp(270px, 42vh, 460px);
  }
  .panel {
    padding: 13px;
    margin-bottom: 12px;
  }
  .panel h2 {
    margin-bottom: 14px;
  }
  .metric-row {
    margin: 14px 0;
  }
  .rack-toolbar {
    padding: 12px 0;
  }
  .assistant {
    padding: 12px;
  }
  footer {
    padding: 10px 0;
  }
  .health .gauge {
    width: 78px;
    height: 78px;
  }
  .scene-head {
    padding-top: 2px;
  }
  #workspace {
    min-height: 540px;
    max-height: calc(100vh - 160px);
  }
}
/* Personal project identity; keep the existing operational layout. */
.brand-icon {
  font-size: 15px;
  letter-spacing: -1px;
  border: 1px solid #61979f;
  border-radius: 7px;
  padding: 8px;
  color: #ace0da;
  background: #23454d55;
}
.masthead h1 {
  font-style: normal;
  font-size: 22px;
  letter-spacing: 3px;
}
.about-project {
  font-size: 10px;
  color: #a5d6d4;
  background: transparent;
  white-space: nowrap;
  padding: 7px 10px;
}
#project-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: linear-gradient(140deg, #183344, #0e1d2c);
  color: #cadde6;
  border: 1px solid #507987;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 25px 100px #0008;
}
#project-dialog::backdrop {
  background: #020c17bb;
  backdrop-filter: blur(7px);
}
#project-dialog .dialog-close {
  float: right;
  margin: -20px -20px 5px 8px;
  font-size: 23px;
  line-height: 1;
  border: 0;
  background: transparent;
}
#project-dialog h2 {
  font-size: 30px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 20px 0 8px;
  color: #ecf4f6;
}
#project-dialog p {
  line-height: 1.9;
  font-size: 12px;
  color: #a9c0ce;
}
#project-dialog .project-intro {
  color: #8ed6cc;
  letter-spacing: 1px;
  font-size: 14px;
}
.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.project-features span {
  padding: 9px 12px;
  border: 1px solid #3b6472;
  border-radius: 3px;
  color: #bcddd9;
  font-size: 10px;
}
#project-dialog h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 23px 0 4px;
}
#project-dialog .project-boundary {
  font-size: 10px;
  color: #7898aa;
  border-top: 1px solid #365160;
  padding-top: 15px;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0 25px;
}
.project-links a {
  color: #96c7d0;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 1150px) {
  .masthead h1 {
    font-size: 19px;
    letter-spacing: 2px;
  }
}
@media (max-width: 850px) {
  .masthead h1 {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .about-project {
    margin-left: auto;
  }
  #project-dialog {
    padding: 26px;
  }
  .brand-icon {
    padding: 6px;
    font-size: 12px;
  }
}
@media (max-width: 460px) {
  .masthead h1 {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  #project-dialog h2 {
    font-size: 25px;
  }
  .about-project {
    font-size: 9px;
  }
}
