:root {
  color-scheme: dark;
  --bg: #080e1b;
  --panel: #101a2a;
  --line: #233148;
  --text: #e9f0fa;
  --muted: #91a2bb;
  --cyan: #61a0ec;
  --purple: #9bb2ff;
  --amber: #f2bf6d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font:
    14px "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: #bccce0;
  background: #152136;
  border: 1px solid #30415b;
  padding: 10px 14px;
  border-radius: 8px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
button:hover {
  background: #20334c;
  border-color: #5e7a9d;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.ambient {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 25%;
  width: 65%;
  height: 600px;
  background: radial-gradient(ellipse at top, #15434942, transparent 65%);
  pointer-events: none;
}
header {
  height: 88px;
  border-bottom: 1px solid #24304780;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand > b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 45px;
  font-size: 25px;
  border-radius: 12px;
  background: linear-gradient(145deg, #9bf9d4, #477cbd);
  color: #09192c;
  box-shadow: 0 0 24px #62ebda25;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: #8aa3bb;
  margin-top: 4px;
}
.head-right {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 10px;
  color: #8298b1;
}
.local-tag {
  padding: 7px 10px;
  border: 1px solid #2c4350;
  border-radius: 5px;
  letter-spacing: 1px;
  font-size: 8px;
  color: #8094ac;
}
main {
  max-width: 1700px;
  margin: auto;
  padding: 0 4%;
}
.intro {
  padding: 40px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #6f90b9;
}
.eyebrow i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  margin-right: 7px;
}
h1 {
  font-size: clamp(30px, 3.7vw, 53px);
  line-height: 1.13;
  letter-spacing: -1.7px;
  font-weight: 600;
  margin: 16px 0;
}
h1 span {
  color: #9dacc1;
}
p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 600;
  margin: 0;
}
.intro-side {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #6c83a0;
}
.intro-side strong {
  display: block;
  color: #b2c3d8;
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 8px;
  font-weight: 400;
}
.orb {
  font-size: 80px;
  color: #6ba4e9;
  text-shadow: 0 0 45px #62ebda70;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
  flex-wrap: wrap;
}
.view-switch {
  display: flex;
  background: #10192a;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 4px;
}
.view-switch button {
  border-color: transparent;
  background: transparent;
  color: #7f93ad;
  font-size: 11px;
  padding: 10px 16px;
}
.view-switch [aria-pressed="true"] {
  background: #223747;
  color: #92bff5;
  border-color: #394c64;
}
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.controls button {
  font-size: 10px;
}
#demo[aria-pressed="true"] {
  border-color: var(--amber);
  color: var(--amber);
}
.demo-banner {
  border: 1px solid #80602d;
  background: #362b18;
  color: #e5c38b;
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 11px;
  margin: 12px 0;
  line-height: 1.8;
}
.demo-banner strong {
  display: block;
  letter-spacing: 1.5px;
  font-size: 10px;
}
.demo-banner button {
  font-size: 10px;
  margin-top: 7px;
  background: #514025;
  border-color: #8d6e3c;
}
.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.overview > button {
  background: linear-gradient(140deg, #152134, #101929);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px 20px;
  position: relative;
  overflow: hidden;
}
.overview > button:after {
  content: "";
  width: 70px;
  height: 70px;
  position: absolute;
  right: -20px;
  top: -20px;
  border-radius: 50%;
  border: 1px solid #5ee3d00b;
}
.overview span {
  font-size: 10px;
  color: #94a6be;
}
.overview strong {
  display: block;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 10px 0;
  color: #e9f0f9;
}
.overview > button:nth-child(2) strong {
  color: var(--cyan);
}
.overview small {
  font-size: 9px;
  color: #6c839f;
}
.service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  border: 1px solid #2b4251;
  background: linear-gradient(110deg, #142b32a6, #131d2e);
  border-radius: 11px;
  margin: 18px 0 30px;
  padding: 20px 22px;
}
.service h2 {
  margin: 8px 0;
}
.service p {
  margin: 0;
  font-size: 10px;
}
.service label {
  display: grid;
  align-content: center;
  gap: 6px;
  color: #8198b0;
  font-size: 9px;
}
.service select {
  max-width: 340px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid #334b60;
  border-radius: 7px;
  background: #0d1b2b;
  color: #b5cadd;
  font-size: 10px;
}
.progress {
  grid-column: 1/-1;
  height: 3px;
  background: #253446;
  border-radius: 3px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  width: 0;
  background: var(--cyan);
  box-shadow: 0 0 12px #61a0ec;
  transition: width 0.4s;
}
.floor-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.floor-heading p,
.section-heading p {
  margin: 7px 0 0;
  font-size: 11px;
}
.search-wrap input {
  background: #101b2c;
  border: 1px solid #2b3e56;
  padding: 11px 14px;
  border-radius: 8px;
  color: #d4e2f5;
  font-size: 11px;
  width: 210px;
}
.legend {
  display: flex;
  gap: 20px;
  font-size: 9px;
  color: #8196ae;
  margin: 18px 0 12px;
  flex-wrap: wrap;
}
.legend i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6b7a92;
  margin-right: 5px;
}
.legend .cyan {
  background: var(--cyan);
}
.legend .purple {
  background: var(--purple);
}
.legend .amber {
  background: var(--amber);
}
.office {
  position: relative;
  border: 1px solid #30495f;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(140deg, #15293a, #0b1423 45%, #142237);
  padding: 25px 24px 15px;
  box-shadow:
    inset 0 0 80px #03081399,
    0 20px 80px #0002;
}
.floor-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#4b7e9910 1px, transparent 1px),
    linear-gradient(90deg, #4b7e9910 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(transparent, #000 20%, #000 85%, transparent);
}
.office-sign {
  position: relative;
  color: #65879e;
  letter-spacing: 2px;
  font-size: 8px;
  border-bottom: 1px solid #2b425566;
  padding-bottom: 18px;
  margin-bottom: 19px;
  display: flex;
  justify-content: space-between;
}
.office-sign span {
  color: #3c617b;
}
#agents {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.zone {
  --accent: var(--cyan);
  border: 1px solid #36506580;
  background: #111e3080;
  position: relative;
  border-radius: 11px;
  padding: 15px 14px 10px;
  box-shadow: inset 0 1px #759ab811;
}
.zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 10px;
}
.zone-header h3 {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}
.zone-header span {
  font-size: 8px;
  color: #627d94;
}
.stations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 9px;
}
.station {
  --accent: #61a0ec;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  position: relative;
  padding: 9px 3px 13px;
  min-width: 0;
  color: #aebfd5;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.station:hover {
  background: #1b334c6b;
  border-color: #547c9855;
}
.station:focus-visible {
  outline-offset: 0;
}
.station .station-title {
  font-size: 10px;
  margin-top: 0;
  text-align: center;
  line-height: 1.4;
  max-width: 135px;
  min-height: 28px;
  color: #b1c5d8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.station-code {
  font-size: 7px;
  color: #526d85;
  letter-spacing: 1px;
}
.station-state {
  font-size: 8px;
  padding: 4px 7px;
  border: 1px solid #43566a44;
  border-radius: 20px;
  color: #7890a9;
  margin-top: 6px;
  min-height: 20px;
  white-space: nowrap;
}
.station[data-state="running"] .station-state {
  border-color: #4fcbb469;
  background: #245b4a44;
  color: #82b6f5;
}
.station[data-state="returned"] .station-state {
  border-color: #8b76bf80;
  color: #a9bbf5;
  background: #33284677;
}
.station[data-state="stale"] .station-state,
.station[data-state="blocked"] .station-state,
.station[data-state="offline"] .station-state {
  border-color: #b0905166;
  color: #ebc385;
  background: #69512533;
}
.station[data-state="running"] {
  background: radial-gradient(ellipse at 50% 35%, #4cefc01a, transparent 70%);
}
.station-visual {
  width: 100%;
  max-width: 152px;
  height: 142px;
  position: relative;
  isolation: isolate;
}
.platform {
  width: 90%;
  height: 35px;
  position: absolute;
  left: 5%;
  bottom: 5px;
  border-radius: 50%;
  border: 1px solid #45728c6b;
  background: radial-gradient(ellipse, #15354c, #0e2035 70%);
  box-shadow:
    0 8px 0 #091323,
    0 10px 0 #27435755;
}
.station[data-state="running"] .platform {
  border-color: var(--accent);
  box-shadow:
    0 8px 0 #091323,
    0 0 20px #62ebda22;
}
.robot {
  position: absolute;
  width: 83px;
  height: 110px;
  left: calc(50% - 41px);
  top: 1px;
  filter: drop-shadow(0 5px 5px #0008);
  transform-origin: 50% 80%;
  animation: float 4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.robot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bot-eye {
  fill: var(--accent);
}
.bot-antenna {
  fill: var(--accent);
}
.bot-head {
  animation: head-nod 6s ease-in-out infinite;
  transform-origin: 50px 40px;
  animation-delay: var(--delay, 0s);
}
.bot-eyes {
  animation: blink 6s infinite;
  transform-origin: 50px 40px;
  animation-delay: var(--delay, 0s);
}
.bot-arm-left {
  transform-origin: 24px 73px;
}
.bot-arm-right {
  transform-origin: 76px 73px;
}
.station[data-state="running"] .bot-arm-left {
  animation: type-left 0.55s ease-in-out infinite;
}
.station[data-state="running"] .bot-arm-right {
  animation: type-right 0.55s ease-in-out infinite;
}
.station[data-state="running"] .bot-head {
  animation: working-head 1.5s ease-in-out infinite;
}
.station[data-state="returned"] .bot-arm-right {
  animation: wave 1.5s ease-in-out infinite;
}
.station[data-state="stale"] .robot,
.station[data-state="blocked"] .robot,
.station[data-state="offline"] .robot {
  animation: none;
}
.station[data-state="stale"] .bot-eye,
.station[data-state="blocked"] .bot-eye,
.station[data-state="offline"] .bot-eye {
  fill: var(--amber);
}
.desk {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  left: 8%;
  width: 84%;
  height: 29px;
  background: linear-gradient(#29485e, #1c3349);
  border: 1px solid #52758d;
  border-radius: 7px 7px 12px 12px;
  transform: perspective(160px) rotateX(20deg);
  box-shadow:
    0 8px 0 -2px #101e30,
    0 11px 0 -3px #355065;
}
.keyboard {
  position: absolute;
  bottom: 7px;
  left: 30%;
  width: 40%;
  height: 9px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, #6b8ca35c 0 3px, transparent 3px 5px),
    #142c3c;
  border: 1px solid #5c7c8e66;
  opacity: 0.7;
}
.monitor {
  position: absolute;
  z-index: 3;
  bottom: 36px;
  left: calc(50% - 26px);
  width: 52px;
  height: 32px;
  border-radius: 4px;
  background: #061220;
  border: 2px solid #456276;
  transform: perspective(190px) rotateX(-5deg);
  padding: 5px;
  box-shadow: 0 3px 7px #0008;
}
.monitor:after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 7px;
  height: 6px;
  background: #38586f;
  left: 21px;
}
.screen-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.screen-lines i {
  height: 2px;
  background: var(--accent);
  opacity: 0.25;
  width: 75%;
  display: block;
}
.screen-lines i:nth-child(2) {
  width: 45%;
}
.screen-lines i:nth-child(3) {
  width: 62%;
}
.station[data-state="running"] .monitor {
  border-color: var(--accent);
  box-shadow: 0 0 15px #62ebda24;
}
.station[data-state="running"] .screen-lines i {
  animation: code 1.1s infinite;
}
.station[data-state="running"] .screen-lines i:nth-child(2) {
  animation-delay: 0.2s;
}
.station[data-state="running"] .screen-lines i:nth-child(3) {
  animation-delay: 0.4s;
}
.work-spark {
  position: absolute;
  right: 8px;
  top: 20px;
  color: var(--accent);
  font-size: 15px;
  opacity: 0;
}
.station[data-state="running"] .work-spark {
  animation: spark 2s infinite;
}
.zone:nth-child(2) {
  --accent: #9cb3ff;
}
.zone:nth-child(3) {
  --accent: #68b8ff;
}
.zone:nth-child(4) {
  --accent: #f1bd78;
}
.office-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 23px;
  color: #4f748b;
  font-size: 7px;
  letter-spacing: 1.4px;
}
.office-bottom i {
  display: inline-block;
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #62ebda77;
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.column {
  border: 1px solid #2a3a51;
  background: #111c2c;
  border-radius: 10px;
  padding: 15px;
  min-height: 250px;
}
.column h3 {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8fa6bf;
  margin: 0 0 18px;
}
.task {
  background: #1b2a40;
  border: 1px solid #34465e;
  border-radius: 7px;
  padding: 14px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.task strong {
  font-size: 11px;
  line-height: 1.6;
}
.task p,
.task small {
  font-size: 10px;
}
.task small {
  display: block;
  color: #87c1aa;
  margin-top: 8px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.activity,
.how {
  border: 1px solid var(--line);
  background: linear-gradient(130deg, #142033, #101929);
  padding: 25px;
  border-radius: 11px;
}
.activity h2 {
  font-size: 15px;
}
.signal {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--cyan);
}
.caption {
  font-size: 10px;
  line-height: 1.7;
  color: #7088a4;
}
.activity ol {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.activity li {
  position: relative;
  padding: 0 0 18px 15px;
  border-left: 1px solid #2b4258;
  line-height: 1.7;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.activity li:before {
  content: "";
  position: absolute;
  left: -3px;
  top: 5px;
  width: 5px;
  height: 5px;
  background: #5b7ea8;
  border-radius: 50%;
}
.activity li div {
  color: #7e99b3;
}
.activity time {
  color: #526d87;
  font-size: 9px;
}
.how h2 {
  font-size: 25px;
  line-height: 1.25;
  margin: 17px 0;
  color: #b7cee2;
}
.how ol {
  padding: 0;
  list-style: none;
}
.how li {
  display: flex;
  gap: 16px;
  margin: 18px 0;
  align-items: center;
}
.how li b {
  font-size: 11px;
  color: #62ebda88;
  border: 1px solid #314761;
  border-radius: 8px;
  padding: 8px;
}
.how li span {
  font-size: 11px;
  color: #a3bad0;
}
.how li strong {
  display: block;
  font-size: 10px;
  color: #627f9c;
  font-weight: 400;
  margin-top: 5px;
}
.how p {
  font-size: 10px;
  color: #a48d65;
}
.empty {
  font-size: 11px;
  color: #7e93aa;
  line-height: 1.8;
  grid-column: 1/-1;
}
.warn {
  border: 1px solid #876b3c;
  background: #352c1b;
  padding: 12px;
  color: #d9c090;
  border-radius: 7px;
  font-size: 11px;
  margin: 10px 0;
}
footer {
  border-top: 1px solid #213248;
  padding: 25px 0;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 8px;
  color: #526b87;
  letter-spacing: 0.3px;
}
footer b {
  font-size: 7px;
  font-weight: 400;
  margin-left: 10px;
}
dialog {
  width: min(500px, calc(100% - 30px));
  max-height: 85vh;
  overflow: auto;
  background: linear-gradient(145deg, #162c3e, #101a2b);
  color: var(--text);
  border: 1px solid #426276;
  border-radius: 17px;
  padding: 25px;
  box-shadow: 0 30px 120px #0009;
}
dialog::backdrop {
  background: #030915c9;
  backdrop-filter: blur(6px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-top button {
  padding: 8px 12px;
}
.dialog-bot {
  height: 175px;
  width: 175px;
  margin: 0 auto 20px;
  --accent: var(--cyan);
}
.dialog-bot .station-visual {
  height: 170px;
  max-width: 175px;
}
.dialog-bot .robot {
  width: 100px;
  left: calc(50% - 50px);
  height: 135px;
}
.dialog-bot .station-title,
.dialog-bot .station-state,
.dialog-bot .station-code {
  display: none;
}
#dialogTitle {
  font-size: 23px;
}
#dialogStatus {
  font-size: 12px;
  color: var(--cyan);
}
#dialogTasks {
  margin: 20px 0;
}
.detail-task {
  border-top: 1px solid #2e465e;
  padding: 14px 0;
}
.detail-task strong {
  font-size: 12px;
}
.detail-task p {
  font-size: 11px;
  margin: 6px 0;
}
.detail-task small {
  font-size: 10px;
  color: #82bda6;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes float {
  50% {
    transform: translateY(-3px);
  }
}
@keyframes blink {
  0%,
  42%,
  46%,
  100% {
    transform: scaleY(1);
  }
  44% {
    transform: scaleY(0.12);
  }
}
@keyframes head-nod {
  0%,
  70%,
  100% {
    transform: rotate(0);
  }
  80% {
    transform: rotate(-4deg);
  }
  90% {
    transform: rotate(4deg);
  }
}
@keyframes type-left {
  50% {
    transform: rotate(-13deg) translateY(2px);
  }
}
@keyframes type-right {
  50% {
    transform: rotate(13deg) translateY(2px);
  }
}
@keyframes working-head {
  50% {
    transform: translateY(2px) rotate(-2deg);
  }
}
@keyframes wave {
  50% {
    transform: rotate(-65deg);
  }
}
@keyframes code {
  50% {
    opacity: 0.9;
    width: 90%;
  }
}
@keyframes spark {
  40% {
    opacity: 0.7;
    transform: translateY(-7px);
  }
  80% {
    opacity: 0;
    transform: translateY(-20px);
  }
}
.motion-paused *,
.motion-paused *:before,
.motion-paused *:after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1400px) {
  #agents {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zone {
    padding: 16px 9px;
  }
  .zone-header h3 {
    font-size: 8px;
  }
  .zone-header span {
    font-size: 7px;
  }
  .intro {
    padding-top: 44px;
  }
}
@media (max-width: 1000px) {
  .intro-side {
    display: none;
  }
  .service select {
    max-width: 260px;
  }
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  header {
    height: 75px;
  }
  .head-right {
    font-size: 8px;
    text-align: right;
  }
  .local-tag {
    display: none;
  }
  .brand {
    font-size: 21px;
  }
  .brand-sub {
    font-size: 6px;
  }
  .brand > b {
    width: 35px;
    height: 38px;
  }
  main {
    padding: 0 16px;
  }
  .intro {
    padding: 25px 0 15px;
  }
  .intro h1 {
    font-size: 31px;
  }
  .intro p {
    font-size: 11px;
  }
  .overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .overview > button {
    padding: 14px;
  }
  .overview strong {
    font-size: 27px;
  }
  .overview small {
    font-size: 8px;
  }
  .controls {
    flex-wrap: wrap;
  }
  .toolbar {
    gap: 10px;
  }
  .view-switch {
    width: 100%;
  }
  .view-switch button {
    flex: 1;
    padding: 9px 6px;
  }
  .controls button {
    padding: 9px 10px;
  }
  .service {
    grid-template-columns: 1fr;
    padding: 17px;
    margin-bottom: 22px;
  }
  .service select {
    width: 100%;
    max-width: 100%;
  }
  .floor-heading {
    align-items: flex-start;
  }
  .floor-heading h2 {
    font-size: 16px;
  }
  .floor-heading p {
    font-size: 10px;
  }
  .search-wrap input {
    width: 130px;
    font-size: 10px;
  }
  .legend {
    font-size: 8px;
    gap: 12px;
  }
  .office {
    padding: 16px 10px;
  }
  .office-sign {
    font-size: 6px;
    letter-spacing: 1px;
  }
  #agents {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .zone {
    padding: 13px 6px;
  }
  .station-visual {
    height: 135px;
  }
  .station-title {
    font-size: 9px !important;
  }
  .station-state {
    font-size: 7px;
  }
  .station-code {
    font-size: 6px;
  }
  .office-bottom {
    font-size: 6px;
    line-height: 1.8;
  }
  .office-bottom > span:last-child {
    display: none;
  }
  .activity,
  .how {
    padding: 19px;
  }
  .activity ol {
    grid-template-columns: 1fr;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .column {
    min-height: 120px;
  }
  footer {
    flex-direction: column;
    gap: 9px;
  }
}

/* Glossy white companion robots, inspired by the supplied visual reference. */
.robot {
  width: 112px;
  height: 145px;
  left: calc(50% - 56px);
  top: -9px;
}
.bot-head {
  transform-box: fill-box;
  transform-origin: 50% 75%;
}
.bot-eyes {
  transform-box: fill-box;
  transform-origin: center;
}
.bot-eye {
  fill: none;
  stroke: var(--accent);
  filter: drop-shadow(0 0 2px var(--accent));
}
.bot-emitter {
  fill: var(--accent);
  filter: drop-shadow(0 0 2px var(--accent));
}
.bot-ear {
  stroke: var(--accent);
  filter: drop-shadow(0 0 2px var(--accent));
}
.bot-arm-left,
.bot-arm-right {
  transform-box: fill-box;
  transform-origin: 50% 12%;
}
.station[data-state="stale"] .bot-eye,
.station[data-state="blocked"] .bot-eye,
.station[data-state="offline"] .bot-eye {
  fill: none;
  stroke: var(--amber);
}
.dialog-bot .robot {
  width: 140px;
  height: 181px;
  left: calc(50% - 70px);
  top: -15px;
}

/* Einstein has an exclusive command room above the specialist departments. */
.zone.command-room {
  grid-column: 1 / -1;
  --accent: #ff6875;
  border-color: #36506580;
  background: #111e3080;
  padding: 20px 24px 0;
  box-shadow: inset 0 1px #759ab811;
}
.command-room .zone-header h3 {
  color: #ff6875;
  letter-spacing: 2px;
}
.command-room .zone-header span {
  color: #c88d98;
}
.command-content {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 6px 0 12px;
}
.command-content .stations {
  display: block;
}
.station.station-chief {
  width: 100%;
  min-height: 230px;
}
.station-chief .station-visual {
  height: 165px;
  max-width: 175px;
}
.station-chief .robot {
  width: 133px;
  height: 172px;
  left: calc(50% - 66px);
  top: -11px;
}
.station-chief .station-title {
  font-size: 15px;
  color: #ffb3bc;
  font-weight: 600;
  min-height: 23px;
}
.station-chief .station-code {
  color: #b77c87;
}
.chief-kicker {
  color: #da96a1;
  letter-spacing: 2px;
  font-size: 8px;
}
.chief-name {
  margin: 10px 0 8px;
  font-size: 39px;
  color: #ffb1ba;
  font-weight: 500;
  letter-spacing: -1px;
}
.chief-description {
  color: #c7b9c3;
  font-size: 12px;
  margin: 0 0 20px;
}
.command-flow {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.command-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b9c4d1;
  font-size: 10px;
}
.command-step b {
  width: 23px;
  height: 23px;
  border: 1px solid #a55161;
  color: #ff9eac;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 400;
}
.command-live {
  color: #cf96a1;
  font-size: 10px;
  margin: 17px 0 8px;
}
.command-room[data-state="running"] .command-live {
  color: #ff9eaa;
}
.command-note {
  display: block;
  font-size: 9px;
  line-height: 1.7;
  color: #697f95;
  max-width: 560px;
}
.command-routing {
  border-top: 1px solid #b5465d66;
  color: #e394a3;
  letter-spacing: 2px;
  text-align: center;
  padding: 15px 0;
  font-size: 8px;
}
.command-room[data-state="running"] .command-routing {
  animation: command-signal 2.2s ease-in-out infinite;
}
@keyframes command-signal {
  50% {
    color: #ffd4db;
    text-shadow: 0 0 12px #ff687588;
  }
}
@media (max-width: 600px) {
  .zone.command-room {
    padding: 17px 12px 0;
  }
  .command-content {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 13px;
  }
  .station.station-chief {
    min-height: 210px;
  }
  .station-chief .station-visual {
    height: 145px;
  }
  .station-chief .robot {
    width: 114px;
    height: 148px;
    left: calc(50% - 57px);
    top: -7px;
  }
  .chief-name {
    font-size: 29px;
  }
  .chief-description {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .chief-kicker {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .command-flow {
    flex-direction: column;
    gap: 7px;
  }
  .command-step {
    font-size: 8px;
  }
  .command-step b {
    width: 19px;
    height: 19px;
  }
  .command-note {
    font-size: 8px;
  }
  .command-routing {
    font-size: 6px;
    letter-spacing: 1px;
  }
}

/* Glass holographic laptop consoles; decorative UI, not performance telemetry. */
.desk {
  left: 5%;
  width: 90%;
  bottom: 13px;
  height: 28px;
  background: linear-gradient(160deg, #88d4e72b, #122b42bb 50%, #83ecff22);
  border: 1px solid #65d9fba6;
  border-radius: 5px 5px 10px 10px;
  transform: perspective(150px) rotateX(32deg);
  box-shadow:
    0 2px 0 #b6edff77,
    0 5px 0 #0c1a2c,
    0 6px 0 #46cde35c,
    0 0 16px #5ae4ff18;
}
.keyboard {
  left: 8%;
  width: 84%;
  height: 25px;
  bottom: 0;
  background: none;
  border: 0;
  opacity: 0.85;
}
.keyboard svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 2px #7befff66);
}
.monitor {
  width: 91px;
  height: 51px;
  left: calc(50% - 45px);
  bottom: 30px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  transform: perspective(190px) rotateY(-9deg) rotateX(-4deg) rotateZ(-2deg);
  filter: drop-shadow(0 0 3px #64dbff66);
}
.monitor svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.monitor:after {
  bottom: -4px;
  width: 72%;
  height: 3px;
  left: 14%;
  background: linear-gradient(90deg, #7db1f1, #173048, #7db1f1);
  border-radius: 4px;
  box-shadow: 0 1px 4px #65eaff77;
}
.holo-beam {
  position: absolute;
  z-index: 2;
  bottom: 29px;
  height: 16px;
  width: 75%;
  left: 12.5%;
  background: linear-gradient(transparent, #76ebff1a);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
  opacity: 0.45;
}
.station[data-state="running"] .monitor {
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 5px #72efffa6);
}
.station[data-state="running"] .hud-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: hud-rotate 7s linear infinite;
}
.station[data-state="running"] .hud-scan {
  animation: hud-scan 2.4s ease-in-out infinite;
}
.station[data-state="running"] .hud-bars rect {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: hud-chart 1.7s ease-in-out infinite alternate;
}
.station[data-state="running"] .hud-bars rect:nth-child(even) {
  animation-delay: -0.7s;
}
.station[data-state="running"] .hud-wave {
  stroke-dasharray: 180;
  animation: hud-wave 2.7s linear infinite;
}
.station[data-state="running"] .keyboard {
  animation: hud-keyboard 1.3s ease-in-out infinite alternate;
}
.station[data-state="running"] .holo-beam {
  opacity: 0.9;
}
.station-chief .monitor {
  width: 107px;
  height: 60px;
  left: calc(50% - 53px);
  bottom: 31px;
}
.dialog-bot .monitor {
  width: 113px;
  height: 63px;
  left: calc(50% - 56px);
  bottom: 31px;
}
@keyframes hud-rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hud-scan {
  50% {
    transform: translateY(56px);
    opacity: 0.15;
  }
}
@keyframes hud-chart {
  to {
    transform: scaleY(0.55);
    opacity: 0.65;
  }
}
@keyframes hud-wave {
  to {
    stroke-dashoffset: -180;
  }
}
@keyframes hud-keyboard {
  to {
    opacity: 1;
    filter: drop-shadow(0 0 3px #7befffaa);
  }
}
@media (max-width: 600px) {
  .station-chief .monitor {
    width: 91px;
    height: 51px;
    left: calc(50% - 45px);
    bottom: 30px;
  }
}

/* Original Systein artwork, animated in the interface without changing the logo. */
.brand.systein-brand {
  position: relative;
  display: block;
  width: 280px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 8px;
}
.systein-logo {
  display: block;
  width: 280px;
  height: auto;
  position: absolute;
  top: -8px;
  left: 0;
  object-fit: contain;
  mix-blend-mode: screen;
  animation: systein-breathe 5s ease-in-out infinite;
}
.systein-caption {
  position: absolute;
  bottom: 3px;
  left: 52px;
  color: #92c7ea;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 2px;
}
.systein-brand:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 34%,
    #b5edff20 49%,
    transparent 64%
  );
  transform: translateX(-130%);
  animation: systein-shine 8s ease-in-out infinite;
}
@keyframes systein-breathe {
  50% {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 6px #008dff55);
  }
}
@keyframes systein-shine {
  0%,
  55% {
    transform: translateX(-130%);
  }
  85%,
  100% {
    transform: translateX(130%);
  }
}
@media (max-width: 600px) {
  .brand.systein-brand {
    width: 210px;
    height: 70px;
  }
  .systein-logo {
    width: 210px;
    top: -3px;
  }
  .systein-caption {
    bottom: 5px;
    left: 38px;
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  header {
    padding-left: 8px;
    padding-right: 12px;
    gap: 6px;
  }
}

.dashboard-link {
  color: #9dbde3;
  text-decoration: none;
  font-size: 10px;
  padding: 8px 11px;
  border: 1px solid #304c62;
  border-radius: 6px;
  white-space: nowrap;
}
.dashboard-link:hover {
  background: #163346;
  border-color: #6293d0;
}
header {
  height: auto;
  min-height: 88px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.head-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
  column-gap: 12px;
}
@media (max-width: 600px) {
  .dashboard-link {
    font-size: 8px;
    padding: 6px 8px;
  }
  .head-right {
    column-gap: 6px;
  }
}
/* Glass office partitions inspired by the supplied workplace references. */
.office {
  border-color: #405a7a;
  background: linear-gradient(125deg, #173143d9, #0b1524 47%, #172b3e);
}
.zone {
  border-color: #57778d80;
  background: linear-gradient(135deg, #b3e8f508, #14233888 45%, #a0dfee08);
  box-shadow:
    inset 0 1px #b5edff24,
    inset 1px 0 #a5d8ef12,
    0 9px 22px #02081430;
}
.zone:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 1px;
  background: linear-gradient(transparent, #aadbed22, transparent);
  pointer-events: none;
}
.zone:after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c2f7ff77, transparent);
  pointer-events: none;
}

/* Human office scenes. The sprite atlas contains sixteen separate seated staff. */
#agents {
  gap: 24px;
}
.zone:not(.command-room) {
  padding: 0 14px 14px;
  overflow: hidden;
  border-color: #75929b80;
  background:
    linear-gradient(180deg, #0815223d, #101c2855 40%, #0a142477),
    url("/assets/glass-office.webp") center/cover;
  box-shadow:
    0 15px 40px #0005,
    inset 0 0 0 1px #cbf4ff13;
}
.zone:not(.command-room) .zone-header {
  margin: 0 -14px 52px;
  padding: 16px 18px;
  background: #071422e8;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #96d0db44;
  min-height: 57px;
}
.zone:not(.command-room) .zone-header h3 {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.zone:not(.command-room) .stations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 0;
}
.zone:not(.command-room) .station {
  padding: 0 0 10px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
}
.zone:not(.command-room) .station:hover {
  background: #122c3944;
  border-color: #b0eefc66;
}
.zone:not(.command-room) .station .station-title {
  color: #ecf8ff;
  max-width: 95%;
  min-height: 23px;
  font-size: 11px;
  background: #071725e8;
  padding: 5px 12px;
  border-radius: 6px 6px 0 0;
}
.zone:not(.command-room) .station-code {
  background: #071725e8;
  width: 80%;
  text-align: center;
  padding: 3px 5px;
  color: #9bafc7;
  border-radius: 0 0 5px 5px;
}
.zone:not(.command-room) .station-state {
  background: #0b1c29ee;
  color: #c8d7e3;
  border-color: #698397aa;
  font-size: 9px;
}
.zone:not(.command-room) .station[data-state="running"] .station-state {
  background: #103c35f0;
  color: #9affdf;
}
.human-scene.station-visual {
  max-width: none;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  isolation: isolate;
}
.human-avatar,
.human-hands,
.human-focus {
  position: absolute;
  inset: 0;
  background-image: url("/assets/team-human-atlas.webp");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: var(--avatar-x) var(--avatar-y);
  pointer-events: none;
}
.human-avatar {
  filter: drop-shadow(0 9px 6px #07111b66);
}
.human-hands {
  clip-path: polygon(36% 31%, 78% 31%, 78% 52%, 36% 52%);
  opacity: 0;
  transform-origin: 58% 42%;
}
.human-focus {
  clip-path: ellipse(18% 18% at 58% 16%);
  opacity: 0;
  transform-origin: 57% 29%;
}
.work-cursor {
  position: absolute;
  top: 34%;
  left: 25%;
  width: 13%;
  height: 18%;
  background: radial-gradient(ellipse, #79edff66, transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.station[data-state="running"] .human-hands {
  opacity: 1;
  animation: human-typing 0.72s steps(3, end) infinite;
}
.station[data-state="running"] .human-focus {
  opacity: 1;
  animation: human-concentrating 4.6s ease-in-out infinite;
}
.station[data-state="running"] .work-cursor {
  animation: human-monitor 1.8s ease-in-out infinite;
}
.station[data-state="offline"] .human-scene,
.station[data-state="stale"] .human-scene {
  filter: saturate(0.55);
}
@keyframes human-typing {
  25% {
    transform: translateY(-1.5px) rotate(0.25deg);
  }
  75% {
    transform: translateY(0.8px) rotate(-0.2deg);
  }
}
@keyframes human-concentrating {
  45% {
    transform: rotate(0.65deg);
  }
  70% {
    transform: rotate(-0.35deg);
  }
}
@keyframes human-monitor {
  50% {
    opacity: 1;
  }
}
.zone.command-room {
  padding: 0;
  overflow: hidden;
  border-color: #a8c7d966;
  background: #0d1b29;
}
.command-room > .zone-header {
  margin: 0;
  padding: 17px 24px;
  background: #0a1724;
  border-bottom: 1px solid #7c627a66;
}
.command-content {
  display: block;
  padding: 0;
}
.director-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1664/941;
  background: url("/assets/einstein-office.webp") center/100% 100%;
  isolation: isolate;
}
.director-stage > .stations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.director-stage .station.station-chief {
  pointer-events: auto;
  position: absolute;
  left: 2%;
  bottom: 6%;
  width: 40%;
  height: 88%;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  justify-content: flex-end;
  background: transparent;
}
.director-stage .station-chief:hover {
  border-color: #ff9caa77;
  box-shadow: inset 0 0 40px #ff68750d;
}
.director-stage .station-chief .station-visual {
  display: none;
}
.director-stage .station-chief .station-title {
  color: #fff3f5;
  background: #14212cef;
  border: 1px solid #c16c7688;
  padding: 7px 22px;
  border-radius: 7px;
  font-size: 20px;
  min-height: 0;
  max-width: none;
}
.director-stage .station-chief .station-code {
  color: #ffc3cb;
  background: #111d29e8;
  padding: 5px 10px;
}
.director-stage .station-chief .station-state {
  color: #e4d1d5;
  background: #0c1d2be8;
  border-color: #94747c;
}
.director-hands,
.director-head {
  position: absolute;
  inset: 0;
  background: url("/assets/einstein-office.webp") center/100% 100%;
  pointer-events: none;
  opacity: 0;
}
.director-hands {
  clip-path: polygon(17% 52%, 30% 52%, 30% 62%, 17% 62%);
}
.director-head {
  clip-path: ellipse(6% 9% at 20% 42%);
  transform-origin: 20% 48%;
}
.command-room[data-state="running"] .director-hands {
  opacity: 1;
  animation: human-typing 1s steps(3, end) infinite;
}
.command-room[data-state="running"] .director-head {
  opacity: 1;
  animation: human-concentrating 6s ease-in-out infinite;
}
.director-screen {
  position: absolute;
  left: 49%;
  top: 18%;
  width: 41%;
  height: 38%;
  color: #c8e1ff;
  padding: 1.5% 2%;
  background: linear-gradient(145deg, #072333df, #092532c9);
  border: 1px solid #b4f7ff77;
  border-radius: 5px;
  box-shadow:
    0 0 24px #58dfff22,
    inset 0 0 30px #5ce4ff15;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.screen-eyebrow {
  color: #81b4f3;
  font-size: clamp(6px, 0.65vw, 10px);
  letter-spacing: 1.5px;
}
.director-screen h4 {
  font-size: clamp(13px, 1.6vw, 23px);
  margin: 5px 0 8px;
  font-weight: 500;
}
.director-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px 0 12px;
  border-bottom: 1px solid #7ff2ff33;
}
.director-metrics strong {
  display: block;
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 500;
}
.director-metrics small {
  display: block;
  font-size: clamp(5px, 0.55vw, 8px);
  color: #92b7e4;
  margin-top: 3px;
}
.director-departments {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.department-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: clamp(5px, 0.6vw, 9px);
  color: #c0d7f3;
  letter-spacing: 0.4px;
}
.department-line b {
  font-weight: 400;
  white-space: nowrap;
}
.department-track {
  height: 3px;
  background: #5b9cb044;
  margin-top: 5px;
  border-radius: 3px;
  overflow: hidden;
}
.department-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #80b6f9;
  box-shadow: 0 0 8px #83bbff;
  transition: width 0.6s;
}
.director-caption {
  font-size: clamp(5px, 0.55vw, 8px);
  line-height: 1.4;
  margin: auto 0 0;
  color: #92b0d5;
}
.command-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 22px 26px 18px;
  gap: 5px 22px;
}
.command-info .chief-name {
  font-size: 28px;
  margin: 3px 0 8px;
}
.command-info .chief-description {
  font-size: 12px;
  margin: 0;
}
.command-info .chief-kicker,
.command-info .chief-name,
.command-info .chief-description {
  grid-column: 1;
}
.command-info .command-flow {
  grid-column: 2;
  grid-row: 1/4;
  align-content: center;
}
.command-info .command-live,
.command-info .command-note {
  grid-column: 1/-1;
}
.command-info .command-live {
  margin: 12px 0 3px;
}
.command-routing {
  margin: 0 24px;
}
.human-director {
  background: url("/assets/einstein-office.webp") center/cover;
  border-radius: 10px;
}
.dialog-bot.station {
  width: min(100%, 420px);
  padding: 0;
  min-height: 0;
}
.dialog-bot .human-scene {
  height: auto;
  aspect-ratio: 3/2;
  max-width: none;
}
@media (min-width: 1500px) {
  .director-screen {
    height: 39%;
  }
}
@media (max-width: 1050px) {
  #agents {
    grid-template-columns: 1fr;
  }
  .director-screen {
    height: 39%;
  }
  .director-departments {
    gap: 7px;
    margin: 8px 0;
  }
  .director-screen h4 {
    font-size: 19px;
  }
  .director-metrics strong {
    font-size: 25px;
  }
  .screen-eyebrow {
    font-size: 8px;
  }
  .director-metrics small,
  .director-caption {
    font-size: 7px;
  }
  .department-line {
    font-size: 8px;
  }
  .zone:not(.command-room) .stations {
    gap: 20px 10px;
  }
  .zone:not(.command-room) .station .station-title {
    font-size: 13px;
  }
}
@media (max-width: 650px) {
  .director-stage {
    aspect-ratio: 1664/941;
  }
  .director-screen {
    padding: 8px 9px;
    top: 18%;
    height: 39%;
  }
  .screen-eyebrow {
    font-size: 5px;
    letter-spacing: 0.6px;
  }
  .director-screen h4 {
    font-size: 12px;
    margin: 3px 0;
  }
  .director-metrics {
    padding: 3px 0 5px;
    gap: 3px;
  }
  .director-metrics strong {
    font-size: 17px;
  }
  .director-metrics small {
    font-size: 4px;
  }
  .director-departments {
    gap: 5px;
    margin: 5px 0;
  }
  .department-line {
    font-size: 4.5px;
    letter-spacing: 0;
  }
  .department-track {
    height: 2px;
    margin-top: 3px;
  }
  .director-caption {
    font-size: 4px;
  }
  .director-stage .station-chief .station-title {
    font-size: 15px;
    padding: 5px 15px;
  }
  .director-stage .station-chief .station-code {
    font-size: 6px;
  }
  .director-stage .station-chief .station-state {
    font-size: 6px;
    min-height: 0;
    padding: 3px 5px;
  }
  .command-info {
    padding: 18px;
    display: block;
  }
  .command-info .command-flow {
    margin-top: 15px;
  }
  .zone:not(.command-room) .zone-header {
    margin-bottom: 35px;
  }
  .zone:not(.command-room) .zone-header h3 {
    font-size: 8px;
  }
  .zone:not(.command-room) .station .station-title {
    font-size: 10px;
    padding: 4px 7px;
  }
  .zone:not(.command-room) .station-state {
    font-size: 8px;
  }
}
@media (max-width: 430px) {
  .director-stage {
    aspect-ratio: 1.25;
    background-size: 142% 100%;
    background-position: 29% center;
  }
  .director-hands,
  .director-head {
    background-size: 142% 100%;
    background-position: 29% center;
  }
  .director-screen {
    left: 46%;
    top: 18%;
    width: 50%;
    height: 40%;
    padding: 7px;
  }
  .director-stage .station.station-chief {
    left: 0;
    width: 44%;
    bottom: 7%;
  }
  .director-screen h4 {
    font-size: 11px;
  }
  .director-metrics strong {
    font-size: 15px;
  }
  .director-departments {
    gap: 7px;
  }
  .director-caption {
    font-size: 4.5px;
  }
  .zone:not(.command-room) {
    padding-left: 6px;
    padding-right: 6px;
  }
  .zone:not(.command-room) .stations {
    gap: 15px 0;
  }
  .zone:not(.command-room) .zone-header {
    margin-left: -6px;
    margin-right: -6px;
  }
  .zone:not(.command-room) .station .station-title {
    font-size: 9px;
  }
  .station-code {
    font-size: 6px;
  }
}

/* Scale the supervisor HUD to the actual room width, including the sidebar preview. */
.director-stage {
  container-type: inline-size;
}
.director-screen {
  padding: 1.3% 1.8%;
  height: 40%;
}
.screen-eyebrow {
  font-size: clamp(5px, 0.95cqw, 11px);
  letter-spacing: 0.8px;
}
.director-screen h4 {
  font-size: clamp(10px, 2cqw, 24px);
  margin: 0.4cqw 0 0.6cqw;
}
.director-metrics {
  gap: 0.8cqw;
  padding: 0.4cqw 0 0.8cqw;
}
.director-metrics strong {
  font-size: clamp(15px, 3.3cqw, 39px);
}
.director-metrics small {
  font-size: clamp(4px, 0.65cqw, 8px);
  margin-top: 0.3cqw;
}
.director-departments {
  grid-template-columns: 1fr 1fr;
  gap: 0.7cqw 1.2cqw;
  margin: 0.8cqw 0;
}
.department-line {
  font-size: clamp(4px, 0.8cqw, 9px);
  letter-spacing: 0;
}
.department-track {
  height: 2px;
  margin-top: 0.4cqw;
}
.director-caption {
  font-size: clamp(4px, 0.7cqw, 8px);
  line-height: 1.3;
}
.director-stage .station-chief:focus-visible {
  outline-color: #ff9bab;
}
.zone:not(.command-room) {
  background-color: #3e505d;
  background-image:
    linear-gradient(
      180deg,
      #0815223d,
      #1e344233 36%,
      #3e505d00 50%,
      #354957f0 76%,
      #233a49ee
    ),
    url("/assets/glass-office.webp");
  background-size:
    100% 100%,
    100% 76%;
  background-position: top;
  background-repeat: no-repeat;
}

/* Agency identity: remove the caption below the original logo, add a larger nameplate. */
.agency-identity {
  display: flex;
  gap: 19px;
  align-items: center;
  min-width: 0;
}
.agency-nameplate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  max-width: 290px;
  padding: 13px 20px;
  border: 1px solid #3e657d;
  border-radius: 9px;
  background: linear-gradient(130deg, #183447, #101f32);
  box-shadow: inset 0 1px #9edef41a;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 2px;
  color: #d6e4f6;
  text-align: center;
}
header {
  flex-wrap: wrap;
  gap: 13px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.head-right {
  margin-left: auto;
}
@media (max-width: 1050px) {
  .agency-identity {
    gap: 12px;
  }
  .agency-nameplate {
    font-size: 18px;
    max-width: 255px;
    min-height: 65px;
  }
  .head-right {
    gap: 8px;
  }
  .brand.systein-brand {
    width: 230px;
    height: 75px;
  }
  .systein-logo {
    width: 230px;
    top: -3px;
  }
}
@media (max-width: 700px) {
  header {
    justify-content: center;
  }
  .agency-identity {
    justify-content: center;
    width: 100%;
  }
  .head-right,
  .portal-nav {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .agency-nameplate {
    font-size: 17px;
    letter-spacing: 1.6px;
    max-width: 245px;
  }
  .brand.systein-brand {
    width: 210px;
    height: 70px;
  }
  .systein-logo {
    width: 210px;
  }
}
@media (max-width: 450px) {
  .agency-identity {
    gap: 8px;
  }
  .brand.systein-brand {
    width: 155px;
    height: 58px;
  }
  .systein-logo {
    width: 155px;
    top: 1px;
  }
  .agency-nameplate {
    padding: 10px;
    min-height: 58px;
    max-width: 200px;
    font-size: 13px;
    letter-spacing: 1.3px;
  }
}
