:root {
  --screen-bg: #020b19;
  --panel-bg: rgba(5, 36, 82, 0.84);
  --panel-line: rgba(35, 179, 255, 0.66);
  --cyan: #31d8ff;
  --cyan-2: #68f3ff;
  --green: #24e6b2;
  --yellow: #ffc247;
  --red: #ff5d5d;
  --muted: rgba(220, 244, 255, 0.68);
  --text: #effcff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body.production-screen-page {
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 136, 218, 0.36), transparent 34%),
    linear-gradient(180deg, #031330 0%, #020817 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

button {
  color: inherit;
  font: inherit;
}

.production-screen-fit {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.prod-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(25, 171, 230, 0.24), transparent 26%),
    radial-gradient(circle at 50% 52%, rgba(36, 230, 178, 0.16), transparent 18%),
    linear-gradient(180deg, #031b43 0%, #020817 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.52s ease, visibility 0.52s ease;
}

.prod-loading-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(49, 216, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 216, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 0 48%, transparent 78%);
  animation: prod-loading-grid 2.8s linear infinite;
}

.prod-loading-core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 420px;
  max-width: calc(100vw - 48px);
  padding: 44px 42px 38px;
  border: 1px solid rgba(49, 216, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 86, 166, 0.42), rgba(3, 24, 62, 0.78)),
    rgba(3, 19, 48, 0.86);
  box-shadow: 0 0 46px rgba(49, 216, 255, 0.22), inset 0 0 34px rgba(49, 216, 255, 0.12);
}

.prod-loading-core::before,
.prod-loading-core::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 243, 255, 0.78), transparent);
}

.prod-loading-core::before {
  top: 18px;
}

.prod-loading-core::after {
  bottom: 18px;
}

.prod-loading-core img {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
  box-shadow: 0 0 22px rgba(49, 216, 255, 0.3);
}

.prod-loading-rings {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 164px;
  height: 164px;
  transform: translateX(-50%);
  pointer-events: none;
}

.prod-loading-rings i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(49, 216, 255, 0.28);
  border-top-color: rgba(104, 243, 255, 0.9);
  animation: prod-loading-spin 2.4s linear infinite;
}

.prod-loading-rings i:nth-child(2) {
  inset: 16px;
  border-top-color: rgba(36, 230, 178, 0.9);
  animation-duration: 1.7s;
  animation-direction: reverse;
}

.prod-loading-rings i:nth-child(3) {
  inset: 31px;
  border-top-color: rgba(255, 194, 71, 0.88);
  animation-duration: 3.2s;
}

.prod-loading-core strong {
  margin-top: 78px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 4px;
  text-shadow: 0 0 18px rgba(49, 216, 255, 0.74);
}

.prod-loading-core span {
  color: rgba(220, 244, 255, 0.76);
  font-size: 16px;
  font-weight: 800;
}

.prod-loading-progress {
  width: 260px;
  height: 8px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 216, 255, 0.16);
}

.prod-loading-progress i {
  display: block;
  width: var(--loading-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), #68f3ff);
  box-shadow: 0 0 18px rgba(49, 216, 255, 0.58);
  transition: width 0.28s ease;
}

.prod-loading-percent {
  margin-top: -4px;
  color: var(--cyan-2);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(104, 243, 255, 0.68);
}

.prod-fullscreen-entry {
  min-width: 126px;
  height: 38px;
  margin-top: 4px;
  border: 1px solid rgba(104, 243, 255, 0.76);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(36, 230, 178, 0.95), rgba(49, 216, 255, 0.95));
  color: #031330;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(49, 216, 255, 0.26);
}

.prod-fullscreen-entry:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 22px rgba(104, 243, 255, 0.36);
}

.production-screen {
  opacity: 1;
  transition: opacity 0.42s ease, filter 0.42s ease;
}

body.is-screen-loading .production-screen {
  opacity: 0;
  filter: blur(5px);
}

body.is-screen-ready .prod-loading-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.screen-login {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(49, 216, 255, 0.22), transparent 26%),
    linear-gradient(rgba(49, 216, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 216, 255, 0.06) 1px, transparent 1px),
    rgba(2, 8, 23, 0.92);
  background-size: auto, 48px 48px, 48px 48px, auto;
  backdrop-filter: blur(5px);
}

.screen-login[hidden] {
  display: none !important;
}

.screen-login-card {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(420px, calc(100vw - 44px));
  padding: 34px 34px 28px;
  border: 1px solid rgba(49, 216, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 78, 150, 0.48), rgba(3, 23, 58, 0.92)),
    rgba(2, 14, 36, 0.94);
  box-shadow: 0 0 46px rgba(49, 216, 255, 0.2), inset 0 0 34px rgba(49, 216, 255, 0.12);
}

.screen-login-card::before,
.screen-login-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 243, 255, 0.78), transparent);
}

.screen-login-card::before {
  top: 18px;
}

.screen-login-card::after {
  bottom: 18px;
}

.screen-login-card img {
  justify-self: center;
  width: 70px;
  height: 70px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
}

.screen-login-card strong {
  justify-self: center;
  margin-bottom: 4px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(49, 216, 255, 0.68);
}

.screen-login-card label {
  display: grid;
  gap: 8px;
  color: rgba(220, 244, 255, 0.8);
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
}

.screen-login-card em {
  font-style: normal;
}

.screen-login-card input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(49, 216, 255, 0.42);
  border-radius: 5px;
  outline: 0;
  color: #fff;
  font: 800 16px/1 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: rgba(1, 18, 42, 0.78);
  box-shadow: inset 0 0 18px rgba(49, 216, 255, 0.08);
  user-select: text;
  -webkit-user-select: text;
}

.screen-login-card input:focus {
  border-color: rgba(104, 243, 255, 0.88);
  box-shadow: 0 0 14px rgba(49, 216, 255, 0.2), inset 0 0 18px rgba(49, 216, 255, 0.1);
}

.screen-captcha-row {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 10px;
}

.screen-captcha-row button {
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 216, 255, 0.42);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.screen-captcha-row img {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
}

.screen-login-card > button[type="submit"] {
  height: 46px;
  margin-top: 4px;
  border: 1px solid rgba(104, 243, 255, 0.68);
  border-radius: 5px;
  color: #031330;
  font-size: 17px;
  font-weight: 900;
  background: linear-gradient(135deg, #24e6b2, #31d8ff);
  box-shadow: 0 0 18px rgba(49, 216, 255, 0.28);
  cursor: pointer;
}

.screen-login-card > button[type="submit"]:disabled {
  opacity: 0.68;
  cursor: wait;
}

.screen-login-card p {
  min-height: 20px;
  margin: 0;
  color: rgba(220, 244, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.screen-login-card p.is-error {
  color: #ffb6b6;
}

.production-screen {
  position: relative;
  width: 1920px;
  height: 1080px;
  padding: 18px 30px 16px;
  overflow: hidden;
  transform: scale(var(--screen-scale-x, 1), var(--screen-scale-y, 1));
  transform-origin: top left;
  background:
    linear-gradient(rgba(23, 132, 210, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 132, 210, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(29, 135, 230, 0.28), transparent 30%),
    linear-gradient(180deg, #031b43 0%, #020817 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  animation: prod-bg-drift 22s linear infinite;
  isolation: isolate;
}

.production-screen::before,
.production-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.production-screen::before {
  background:
    linear-gradient(90deg, rgba(23, 199, 255, 0.14), transparent 20%, transparent 80%, rgba(23, 199, 255, 0.12)),
    radial-gradient(circle at 50% 50%, transparent 0 56%, rgba(2, 8, 23, 0.48) 100%);
}

.production-screen::after {
  border: 1px solid rgba(49, 216, 255, 0.2);
  box-shadow: inset 0 0 80px rgba(5, 82, 157, 0.22);
}

.prod-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 340px 1fr 660px;
  align-items: center;
  height: 68px;
  border: 1px solid rgba(49, 216, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(5, 26, 62, 0.96), rgba(6, 71, 126, 0.72), rgba(5, 26, 62, 0.96)),
    linear-gradient(180deg, rgba(83, 207, 255, 0.14), rgba(8, 40, 88, 0.18));
  box-shadow: 0 0 24px rgba(34, 188, 255, 0.2), inset 0 -1px 0 rgba(119, 227, 255, 0.18);
}

.prod-header::before {
  content: "";
  position: absolute;
  left: 360px;
  right: 520px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(66, 222, 255, 0.78), transparent);
}

.prod-header::after {
  content: "";
  position: absolute;
  top: -28px;
  bottom: -28px;
  left: -260px;
  z-index: 0;
  width: 220px;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 24%, rgba(104, 243, 255, 0.34) 48%, transparent 74%);
  filter: blur(1px);
  opacity: 0.78;
  animation: prod-header-flow 8.4s linear infinite;
}

.prod-title-frame {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 620px;
  z-index: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.prod-header-side {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0 20px;
  color: #d9f7ff;
  font-size: 21px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(64, 213, 255, 0.5);
}

.prod-header-side img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.prod-header-brand {
  grid-column: 1;
  justify-content: flex-start;
}

.prod-sync-badge {
  max-width: 170px;
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid rgba(49, 216, 255, 0.34);
  border-radius: 5px;
  background: rgba(3, 19, 48, 0.58);
  color: rgba(206, 239, 255, 0.82);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 12px rgba(49, 216, 255, 0.08);
}

.prod-header-brand .prod-brand-logo {
  width: 58px;
  height: 58px;
  padding: 5px;
  border: 1px solid rgba(49, 216, 255, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 16px rgba(49, 216, 255, 0.22);
}

.prod-header-right {
  grid-column: 3;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
}

.prod-weather-icon {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 22px;
  border: 2px solid rgba(233, 251, 255, 0.86);
  border-top-color: transparent;
  border-radius: 0 0 14px 14px;
  filter: drop-shadow(0 0 8px rgba(49, 216, 255, 0.46));
}

.prod-weather-icon::before,
.prod-weather-icon::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(233, 251, 255, 0.86);
  border-bottom-color: transparent;
  border-radius: 999px 999px 0 0;
  background: rgba(3, 19, 48, 0.92);
}

.prod-weather-icon::before {
  left: 2px;
  top: -9px;
  width: 13px;
  height: 11px;
}

.prod-weather-icon::after {
  right: 2px;
  top: -12px;
  width: 16px;
  height: 14px;
}

.prod-weather-text {
  flex: 0 1 150px;
  max-width: 150px;
  overflow: hidden;
  color: #e9fbff;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-weather-text.is-updating {
  color: #68f3ff;
}

.prod-header-right strong {
  flex: 0 0 auto;
  min-width: 252px;
  text-align: right;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prod-screen-fullscreen {
  flex: 0 0 auto;
  width: 58px;
  height: 32px;
  border: 1px solid rgba(49, 216, 255, 0.48);
  border-radius: 5px;
  background: rgba(4, 30, 72, 0.74);
  color: #d9f7ff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 12px rgba(49, 216, 255, 0.1);
}

.prod-screen-fullscreen:hover,
.prod-screen-fullscreen.is-active {
  border-color: rgba(104, 243, 255, 0.9);
  background: rgba(30, 143, 214, 0.82);
  box-shadow: 0 0 14px rgba(49, 216, 255, 0.22);
}

.prod-title-frame {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  text-align: center;
}

.prod-title-frame h1 {
  margin: 0;
  color: #f6fdff;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(49, 216, 255, 0.68), 0 0 26px rgba(49, 216, 255, 0.5);
  animation: prod-title-glow 3.8s ease-in-out infinite alternate;
}

.prod-title-frame p {
  margin: 6px 0 0;
  color: rgba(206, 239, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.prod-title-wing {
  height: 28px;
  background:
    linear-gradient(90deg, transparent, rgba(104, 243, 255, 0.72), transparent) -120% 0 / 220% 100% no-repeat,
    linear-gradient(90deg, transparent, rgba(45, 189, 255, 0.38));
  clip-path: polygon(0 0, 100% 0, 84% 100%, 12% 100%);
  animation: prod-wing-flow 4.6s linear infinite;
}

.prod-title-wing.is-right {
  transform: scaleX(-1);
}

.prod-layout {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr) 450px;
  grid-template-rows: 694px 252px;
  gap: 16px 20px;
  height: calc(100% - 84px);
  padding-top: 16px;
}

.prod-left-rail,
.prod-right-rail {
  min-height: 0;
  display: grid;
  gap: 14px;
}

.prod-left-rail {
  grid-row: 1 / span 2;
  grid-template-rows: auto minmax(0, 1fr);
}

.prod-right-rail {
  grid-template-rows: 264px minmax(0, 1fr);
}

.prod-center {
  min-width: 0;
  display: grid;
  grid-template-rows: 118px minmax(0, 1fr);
  gap: 14px;
}

.prod-bottom-grid {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 20px;
  min-height: 0;
}

.prod-panel,
.prod-twin-panel,
.prod-kpi-strip article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background:
    linear-gradient(112deg, transparent 0 34%, rgba(104, 243, 255, 0.13) 44%, transparent 56%) -180% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, rgba(13, 86, 166, 0.34), rgba(3, 32, 81, 0.66)),
    var(--panel-bg);
  box-shadow: inset 0 0 28px rgba(37, 155, 255, 0.14), 0 0 18px rgba(0, 147, 255, 0.12);
  animation: prod-panel-flow 9s linear infinite, prod-panel-breathe 4.8s ease-in-out infinite alternate;
}

.prod-panel::before,
.prod-panel::after,
.prod-twin-panel::before,
.prod-twin-panel::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 20px;
  pointer-events: none;
}

.prod-panel::before,
.prod-twin-panel::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid rgba(49, 216, 255, 0.78);
  border-left: 2px solid rgba(49, 216, 255, 0.78);
  animation: prod-corner-pulse 3.2s ease-in-out infinite alternate;
}

.prod-panel::after,
.prod-twin-panel::after {
  right: 8px;
  bottom: 8px;
  border-right: 2px solid rgba(49, 216, 255, 0.78);
  border-bottom: 2px solid rgba(49, 216, 255, 0.78);
  animation: prod-corner-pulse 3.2s ease-in-out infinite alternate-reverse;
}

.prod-panel {
  padding: 24px 22px 18px;
}

.prod-panel h2 {
  position: relative;
  margin: 0 0 12px;
  padding-left: 22px;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(49, 216, 255, 0.68);
}

.prod-panel h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 22px solid var(--cyan);
  filter: drop-shadow(0 0 8px rgba(49, 216, 255, 0.84));
  transform: rotate(18deg);
}

.prod-panel h2::after {
  content: "";
  position: absolute;
  left: 150px;
  right: 4px;
  top: 50%;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(104, 243, 255, 0.95), transparent 42%) -120% 0 / 220% 100% no-repeat,
    linear-gradient(90deg, rgba(49, 216, 255, 0.5), transparent);
  animation: prod-heading-flow 3.6s linear infinite;
}

.prod-task-body {
  display: grid;
  grid-template-columns: 202px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 16px;
  height: auto;
  min-height: 230px;
}

.prod-task-panel {
  align-self: start;
}

.prod-ring-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}

.prod-ring {
  --value: 72%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 166px;
  height: 166px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #082962 0 55%, transparent 56%),
    conic-gradient(var(--cyan) var(--value), rgba(31, 89, 155, 0.95) 0);
  box-shadow: 0 0 24px rgba(49, 216, 255, 0.24);
}

.prod-ring strong {
  color: #49edff;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(73, 237, 255, 0.74);
}

.prod-ring span {
  margin-top: 10px;
  color: #e9fbff;
  font-size: 16px;
  font-weight: 800;
}

.prod-ring-copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.prod-ring-copy strong {
  font-size: 24px;
}

.prod-ring-copy span,
.prod-task-states span,
.prod-zone-meta,
.prod-alert-meta,
.prod-status-row span,
.prod-device-card span,
.prod-log-table {
  color: var(--muted);
}

.prod-task-states {
  display: grid;
  align-content: center;
  gap: 14px;
}

.prod-state-line {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
}

.prod-state-line i,
.prod-map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px currentColor;
}

.prod-state-line strong {
  color: #63f9db;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.prod-wide-button,
.prod-filter-row button,
.prod-segment button,
.prod-action,
.prod-map-tabs button,
.prod-map-controls button {
  height: 42px;
  border: 1px solid rgba(49, 216, 255, 0.5);
  border-radius: 5px;
  background: rgba(4, 30, 72, 0.76);
  color: #d9f7ff;
  font-weight: 900;
  cursor: pointer;
}

.prod-wide-button {
  grid-column: 1 / -1;
  border-color: rgba(74, 202, 255, 0.74);
  background: rgba(24, 111, 190, 0.62);
  font-size: 17px;
}

.prod-wide-button:hover,
.prod-action:hover,
.prod-filter-row button:hover,
.prod-segment button:hover,
.prod-map-controls button:hover {
  border-color: rgba(104, 243, 255, 0.95);
  background: rgba(34, 148, 224, 0.76);
  box-shadow: 0 0 16px rgba(49, 216, 255, 0.22);
}

.prod-filter-row,
.prod-segment {
  display: flex;
  gap: 10px;
}

.prod-filter-row button {
  flex: 1;
}

.prod-filter-row .is-active,
.prod-segment .is-active,
.prod-map-tabs .is-active {
  border-color: rgba(49, 216, 255, 0.9);
  background: linear-gradient(135deg, #22ccb8, #1a9eea);
  color: #03162f;
  box-shadow: 0 0 16px rgba(49, 216, 255, 0.32);
}

.prod-alert-list {
  min-height: 0;
  max-height: none;
  margin-top: 12px;
  overflow: hidden;
}

.prod-alert-track {
  display: block;
  will-change: transform;
}

.prod-alert-list.is-scrollable .prod-alert-track {
  animation: prod-feed-scroll var(--alert-scroll-duration, 42s) linear infinite;
}

.prod-alert-stack {
  display: grid;
  gap: 12px;
}

.prod-alert-list.is-scrollable .prod-alert-stack[data-scroll-source] {
  padding-bottom: 12px;
}

.prod-alarm-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.prod-alert-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(49, 216, 255, 0.22);
  border-radius: 6px;
  background: rgba(4, 30, 72, 0.58);
}

.prod-alert-card.is-new {
  animation: prod-row-highlight 3.4s ease-out;
}

.prod-alert-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  color: #061833;
  background: var(--yellow);
  font-size: 23px;
  font-weight: 900;
}

.prod-alert-card.is-critical .prod-alert-icon {
  color: #fff;
  background: var(--red);
}

.prod-alert-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.prod-alert-device {
  margin-top: 5px;
  color: #8ecbff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.prod-alert-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
}

.prod-zone-list {
  display: grid;
  gap: 14px;
}

.prod-zone-row {
  display: grid;
  grid-template-columns: 84px 1fr 56px;
  align-items: center;
  gap: 12px;
}

.prod-zone-name {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.prod-zone-bar,
.prod-status-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(56, 143, 224, 0.25);
}

.prod-zone-bar i,
.prod-status-track i {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 12px rgba(49, 216, 255, 0.46);
}

.prod-zone-meta {
  text-align: right;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.prod-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.prod-kpi-strip article {
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(22px, 1.55vw, 28px) minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 13px 7px;
}

.prod-kpi-strip article.is-changed {
  border-color: rgba(104, 243, 255, 0.9);
  box-shadow: inset 0 0 28px rgba(37, 155, 255, 0.22), 0 0 22px rgba(49, 216, 255, 0.24);
}

.prod-kpi-strip img {
  width: clamp(22px, 1.55vw, 28px);
  height: clamp(22px, 1.55vw, 28px);
  object-fit: contain;
}

.prod-kpi-strip article > div {
  min-width: 0;
}

.prod-kpi-strip span {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 1.04vw, 20px);
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(49, 216, 255, 0.5);
}

.prod-kpi-strip strong {
  display: flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  margin-top: 7px;
  overflow: visible;
  color: #fff;
  font-size: clamp(21px, 1.34vw, 28px);
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.34), 0 0 16px rgba(49, 216, 255, 0.68);
  white-space: nowrap;
}

.prod-kpi-strip em {
  flex: 0 0 auto;
  margin-left: 2px;
  color: #fff;
  font-size: clamp(11px, 0.68vw, 13px);
  font-weight: 950;
  font-style: normal;
}

.prod-kpi-value {
  display: inline-block;
  color: #fff;
  font-size: inherit;
  font-weight: 950;
  line-height: 1;
  text-shadow: inherit;
}

.prod-kpi-strip article.is-changed .prod-kpi-value,
.prod-ring strong.is-value-changing {
  animation: prod-number-roll 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.prod-kpi-delta {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(3, 19, 48, 0.86);
  color: #63f9db;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 10px rgba(49, 216, 255, 0.2);
  animation: prod-delta-float 2.8s ease-out both;
}

.prod-kpi-delta.is-down {
  color: #ffb0b0;
}

.prod-control-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.prod-segment button {
  min-width: 86px;
  padding: 0 18px;
}

.prod-action {
  min-width: 104px;
  padding: 0 18px;
}

.prod-twin-panel {
  min-height: 0;
  padding: 22px;
}

.prod-map-panel.is-map-fullscreen,
.prod-map-panel:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #06142b;
}

.prod-map-panel.is-map-fullscreen::before,
.prod-map-panel.is-map-fullscreen::after,
.prod-map-panel:fullscreen::before,
.prod-map-panel:fullscreen::after {
  display: none;
}

.prod-map-panel.is-map-fullscreen .prod-twin-viewport,
.prod-map-panel:fullscreen .prod-twin-viewport {
  border-radius: 0;
}

.prod-map-panel.is-map-fullscreen .prod-map-searchbar,
.prod-map-panel:fullscreen .prod-map-searchbar {
  top: 18px;
  left: 18px;
  right: 246px;
}

.prod-map-panel.is-map-fullscreen .prod-map-tabs,
.prod-map-panel:fullscreen .prod-map-tabs {
  top: 18px;
  right: 96px;
}

.prod-map-tabs {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 26px;
  display: flex;
}

.prod-map-tabs button {
  min-width: 66px;
  border-radius: 0;
}

.prod-map-tabs button:first-child {
  border-radius: 5px 0 0 5px;
}

.prod-map-tabs button:last-child {
  border-radius: 0 5px 5px 0;
}

.prod-map-searchbar {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 26px;
  right: 188px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 142px 142px 68px;
  gap: 10px;
}

.prod-map-searchbar label {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(49, 216, 255, 0.38);
  border-radius: 5px;
  background: rgba(3, 19, 48, 0.78);
}

.screen-map-search {
  position: relative;
}

.prod-map-searchbar span {
  color: rgba(223, 248, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.prod-map-searchbar input,
.prod-map-searchbar select,
.prod-map-searchbar button {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(49, 216, 255, 0.38);
  border-radius: 5px;
  background: rgba(3, 19, 48, 0.78);
  color: #eaffff;
  font-weight: 800;
  outline: none;
}

.prod-map-searchbar input {
  height: 34px;
  border: 0;
  background: transparent;
  user-select: text;
  -webkit-user-select: text;
}

.prod-map-searchbar input::placeholder {
  color: rgba(223, 248, 255, 0.42);
}

.prod-map-suggestions {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 228px;
  padding: 6px;
  overflow: auto;
  border: 1px solid rgba(49, 216, 255, 0.42);
  border-radius: 6px;
  background: rgba(4, 19, 44, 0.96);
  box-shadow: 0 16px 32px rgba(0, 4, 14, 0.48), inset 0 0 22px rgba(49, 216, 255, 0.08);
  backdrop-filter: blur(8px);
}

.prod-map-suggestions[hidden] {
  display: none;
}

.prod-map-suggestions button {
  display: grid;
  width: 100%;
  min-height: 46px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name code"
    "meta meta";
  gap: 3px 10px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #eaffff;
  text-align: left;
  cursor: pointer;
}

.prod-map-suggestions button:hover,
.prod-map-suggestions button:focus-visible {
  border-color: rgba(49, 216, 255, 0.48);
  background: rgba(26, 185, 235, 0.16);
}

.prod-map-suggestions strong {
  grid-area: name;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-map-suggestions span {
  grid-area: code;
  color: #31d8ff;
  font-size: 12px;
}

.prod-map-suggestions em,
.prod-map-suggestion-empty {
  grid-area: meta;
  color: rgba(223, 248, 255, 0.66);
  font-size: 12px;
  font-style: normal;
}

.prod-map-suggestion-empty {
  padding: 12px 10px;
  text-align: center;
}

.prod-twin-viewport {
  --zoom: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #06142b;
}

.prod-map-viewport {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.prod-map-viewport::before,
.prod-map-viewport::after {
  content: none;
  display: none;
}

.prod-map-viewport::before {
  animation: none;
}

.prod-map-viewport::after {
  animation: none;
}

.prod-map-viewport.is-official-tdt {
  cursor: default;
  touch-action: auto;
}

.prod-map-panel.is-map-dragging .prod-map-viewport {
  cursor: grabbing;
}

.prod-map-panel.is-map-dragging .prod-valve-layer {
  pointer-events: none;
}

.prod-twin-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom));
  transition: transform 0.28s ease;
}

.prod-tianditu-map,
.prod-valve-layer {
  position: absolute;
  inset: 0;
  transform-origin: center;
  will-change: transform;
}

.prod-tianditu-map {
  z-index: 1;
  background: #071c35;
}

.prod-tianditu-map > img {
  position: absolute;
  width: 256px;
  height: 256px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.prod-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 256px 256px;
  pointer-events: none;
  user-select: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.prod-map-tile.is-label {
  z-index: 1;
}

.prod-tianditu-map.is-tdt-loading::after {
  content: "正在加载天地图";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: rgba(223, 248, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.prod-valve-layer {
  z-index: 3;
  pointer-events: none;
}

.prod-valve-canvas {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: auto;
}

.prod-valve-layer.is-map-moving {
  opacity: 1;
}

.prod-map-marker,
.prod-map-cluster {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate3d(-50%, -50%, 0);
  contain: layout paint;
  pointer-events: auto;
  cursor: pointer;
}

.prod-map-marker {
  display: grid;
  place-items: center;
  width: max(var(--marker-size, 12px), 24px);
  height: max(var(--marker-size, 12px), 24px);
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 0 calc(var(--marker-size, 12px) * 0.2) rgba(49, 216, 255, 0.55));
}

.prod-map-marker img {
  display: block;
  width: var(--marker-size, 12px);
  height: var(--marker-size, 12px);
  object-fit: contain;
}

.prod-map-marker.is-active {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.9));
}

.prod-map-marker.is-updated::before,
.prod-map-cluster.is-updated::before {
  content: none;
  display: none;
  animation: none;
}

.prod-map-cluster.is-updated::before {
  inset: -11px;
}

.prod-map-marker::after,
.prod-map-cluster::after {
  display: none;
  content: none;
}

.prod-map-marker.status-watch::after,
.prod-map-cluster.status-watch::after {
  border-color: rgba(210, 220, 225, 0.5);
}

.prod-map-marker.status-offline::after,
.prod-map-cluster.status-offline::after {
  border-color: rgba(255, 93, 93, 0.5);
}

.prod-map-cluster {
  min-width: var(--cluster-size, 40px);
  height: var(--cluster-size, 40px);
  border: 1px solid rgba(49, 216, 255, 0.78);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(220, 229, 234, 0.95), rgba(95, 110, 120, 0.86));
  color: #092033;
  font-size: calc(var(--cluster-size, 40px) * 0.36);
  font-weight: 900;
  box-shadow: 0 0 18px rgba(210, 220, 225, 0.36);
}

.prod-map-cluster.status-online {
  background: radial-gradient(circle, rgba(36, 230, 178, 0.95), rgba(21, 118, 125, 0.86));
  color: #eaffff;
}

.prod-map-cluster.status-offline {
  background: radial-gradient(circle, rgba(255, 93, 93, 0.95), rgba(105, 33, 50, 0.86));
  color: #fff;
}

@keyframes prod-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes prod-loading-grid {
  to {
    background-position: 52px 52px, 52px 52px;
  }
}

@keyframes prod-loading-progress {
  0% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(255%);
  }
}

@keyframes prod-bg-drift {
  0% {
    background-position: 0 0, 0 0, center top, center top;
  }

  100% {
    background-position: 44px 44px, -44px 44px, center top, center top;
  }
}

@keyframes prod-header-flow {
  0% {
    transform: translateX(0) skewX(-18deg);
  }

  100% {
    transform: translateX(2440px) skewX(-18deg);
  }
}

@keyframes prod-title-glow {
  0% {
    text-shadow: 0 0 10px rgba(49, 216, 255, 0.58), 0 0 24px rgba(49, 216, 255, 0.38);
  }

  100% {
    text-shadow: 0 0 14px rgba(104, 243, 255, 0.92), 0 0 34px rgba(49, 216, 255, 0.68), 0 0 54px rgba(36, 230, 178, 0.22);
  }
}

@keyframes prod-wing-flow {
  0% {
    background-position: -160% 0, 0 0;
  }

  100% {
    background-position: 180% 0, 0 0;
  }
}

@keyframes prod-panel-flow {
  0% {
    background-position: -180% 0, 0 0, 0 0;
  }

  100% {
    background-position: 220% 0, 0 0, 0 0;
  }
}

@keyframes prod-panel-breathe {
  0% {
    box-shadow: inset 0 0 24px rgba(37, 155, 255, 0.12), 0 0 14px rgba(0, 147, 255, 0.1);
  }

  100% {
    box-shadow: inset 0 0 34px rgba(37, 155, 255, 0.2), 0 0 24px rgba(49, 216, 255, 0.18);
  }
}

@keyframes prod-corner-pulse {
  0% {
    opacity: 0.58;
    filter: drop-shadow(0 0 3px rgba(49, 216, 255, 0.34));
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 0 9px rgba(104, 243, 255, 0.86));
  }
}

@keyframes prod-heading-flow {
  0% {
    background-position: -140% 0, 0 0;
  }

  100% {
    background-position: 180% 0, 0 0;
  }
}

.prod-twin-wash,
.prod-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.prod-twin-wash {
  background:
    linear-gradient(180deg, rgba(3, 19, 47, 0.28), transparent 32%, rgba(2, 8, 24, 0.46)),
    radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(1, 8, 23, 0.38));
}

.prod-scanline {
  display: none;
  animation: none;
}

@keyframes prod-scan {
  from {
    transform: translateX(-220px);
  }
  to {
    transform: translateX(1040px);
  }
}

@keyframes prod-map-grid-flow {
  to {
    background-position: 72px 72px, -72px 72px;
  }
}

@keyframes prod-map-sweep {
  0%, 18% {
    transform: translateY(-125%);
  }

  62%, 100% {
    transform: translateY(240%);
  }
}

.prod-station-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 88px;
  min-height: 56px;
  padding: 7px 12px;
  border: 1px solid rgba(90, 245, 255, 0.72);
  border-radius: 999px;
  background: rgba(5, 42, 91, 0.86);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(49, 216, 255, 0.1), 0 0 20px rgba(49, 216, 255, 0.32);
}

.prod-station-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 2px;
  height: 18px;
  background: linear-gradient(var(--cyan), transparent);
}

.prod-station-marker strong {
  font-size: 17px;
  line-height: 1.1;
}

.prod-station-marker span {
  color: var(--cyan-2);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.prod-station-marker.is-warning {
  border-color: rgba(255, 194, 71, 0.92);
  box-shadow: 0 0 0 8px rgba(255, 194, 71, 0.12), 0 0 22px rgba(255, 194, 71, 0.32);
}

.prod-station-marker.is-warning span {
  color: var(--yellow);
}

.prod-station-marker.is-active {
  border-color: #fff;
  background: linear-gradient(135deg, rgba(23, 139, 214, 0.96), rgba(21, 196, 178, 0.9));
  box-shadow: 0 0 0 10px rgba(49, 216, 255, 0.16), 0 0 32px rgba(104, 243, 255, 0.52);
}

.prod-station-marker[data-station="raw"] {
  left: 16%;
  top: 39%;
}

.prod-station-marker[data-station="cnc"] {
  left: 36%;
  top: 31%;
}

.prod-station-marker[data-station="assembly"] {
  left: 54%;
  top: 42%;
}

.prod-station-marker[data-station="inspect"] {
  left: 66%;
  top: 65%;
}

.prod-station-marker[data-station="warehouse"] {
  left: 78%;
  top: 48%;
}

.prod-station-detail {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 68px;
  width: 340px;
  min-height: 186px;
  padding: 18px;
  border: 1px solid rgba(104, 243, 255, 0.72);
  border-radius: 6px;
  background: rgba(3, 19, 48, 0.92);
  box-shadow: 0 0 30px rgba(49, 216, 255, 0.18);
}

.prod-map-detail {
  left: 26px;
  right: 92px;
  bottom: 88px;
  top: auto;
  width: auto;
  min-height: 0;
  max-height: calc(100% - 126px);
  padding: 14px 16px 16px;
  overflow: auto;
  border-color: rgba(104, 243, 255, 0.58);
  background: rgba(4, 19, 44, 0.96);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.prod-map-detail [data-map-detail-close] {
  pointer-events: auto;
}

.prod-map-detail > div > strong {
  display: block;
  margin: 0 34px 8px 0;
  color: #fff;
  font-size: 22px;
}

.prod-map-detail > div > span {
  display: block;
  margin-bottom: 12px;
  color: rgba(223, 248, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.prod-valve-info-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 38px 12px 0;
}

.prod-valve-info-title span {
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--cyan));
  box-shadow: 0 0 14px rgba(36, 230, 178, 0.42);
}

.prod-valve-info-title strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.prod-valve-info-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(223, 248, 255, 0.12);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(234, 255, 255, 0.08), rgba(36, 230, 178, 0.05));
}

.prod-valve-info-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgba(223, 248, 255, 0.08);
  box-shadow: inset 0 0 0 8px rgba(36, 230, 178, 0.16);
}

.prod-valve-info-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.prod-valve-info-head strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-valve-info-head span {
  display: block;
  margin-top: 4px;
  color: rgba(223, 248, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.prod-valve-info-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  margin-bottom: 12px;
  color: rgba(223, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.prod-valve-info-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-valve-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 10px;
}

.prod-valve-metric {
  min-height: 76px;
  padding: 10px 12px;
  border-left: 3px solid var(--metric-color, var(--cyan));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(223, 248, 255, 0.08);
}

.prod-valve-metric span {
  display: block;
  color: rgba(223, 248, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.prod-valve-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--metric-color, var(--cyan));
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.prod-valve-metric em {
  margin-left: 4px;
  font-size: 13px;
  font-style: normal;
  color: rgba(223, 248, 255, 0.7);
}

.prod-valve-metric.is-green {
  --metric-color: #29d36f;
}

.prod-valve-metric.is-blue {
  --metric-color: #31d8ff;
}

.prod-valve-metric.is-orange {
  --metric-color: #ff8a2a;
}

.prod-valve-metric.is-brown {
  --metric-color: #b88368;
}

.prod-valve-metric.is-teal {
  --metric-color: #24c8b4;
}

.prod-valve-metric.is-cyan {
  --metric-color: #1da0ff;
}

.prod-map-empty {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  max-width: 460px;
  padding: 16px 22px;
  border: 1px solid rgba(49, 216, 255, 0.48);
  border-radius: 6px;
  background: rgba(3, 19, 48, 0.88);
  color: rgba(223, 248, 255, 0.9);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 22px rgba(49, 216, 255, 0.2);
}

.prod-map-empty[hidden] {
  display: none;
}

.prod-station-detail[hidden] {
  display: none;
}

.prod-station-detail button {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(49, 216, 255, 0.36);
  border-radius: 4px;
  background: rgba(6, 41, 91, 0.82);
  cursor: pointer;
}

.prod-station-detail h3 {
  margin: 0 34px 12px 0;
  color: #fff;
  font-size: 22px;
}

.prod-station-detail dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 9px 12px;
  margin: 0;
}

.prod-station-detail dt {
  color: var(--muted);
  font-weight: 800;
}

.prod-station-detail dd {
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.prod-map-controls {
  position: absolute;
  z-index: 4;
  right: 26px;
  top: 136px;
  display: grid;
  gap: 10px;
}

.prod-map-panel.is-map-fullscreen .prod-map-controls,
.prod-map-panel:fullscreen .prod-map-controls {
  top: 78px;
  right: 18px;
}

.prod-map-controls button {
  width: 58px;
  height: 46px;
  font-size: 22px;
}

.prod-map-controls button[data-map-reset],
.prod-map-controls button[data-map-fullscreen] {
  font-size: 16px;
}

.prod-map-legend {
  position: absolute;
  z-index: 4;
  left: 50px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  max-width: calc(100% - 96px);
  padding: 0 14px;
  border: 1px solid rgba(49, 216, 255, 0.34);
  border-radius: 4px;
  background: rgba(3, 19, 48, 0.9);
}

.prod-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dff8ff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.prod-map-legend img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(49, 216, 255, 0.42));
}

.legend-run {
  color: var(--green);
  background: var(--green) !important;
}

.legend-idle {
  color: #48aaff;
  background: #48aaff !important;
}

.legend-warn {
  color: var(--yellow);
  background: var(--yellow) !important;
}

.legend-off {
  color: var(--red);
  background: var(--red) !important;
}

.legend-quality {
  color: #b58dff;
  background: #b58dff !important;
}

.legend-store {
  color: #80ffdc;
  background: #80ffdc !important;
}

.prod-oee-body {
  display: grid;
  grid-template-columns: 182px 1fr;
  align-items: center;
  gap: 20px;
}

.prod-oee-ring {
  --value: 86%;
  width: 178px;
  height: 178px;
}

.prod-oee-ring strong {
  font-size: 34px;
}

.prod-oee-numbers {
  display: grid;
  gap: 15px;
}

.prod-oee-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 14px;
}

.prod-oee-line strong {
  color: #fff;
  font-size: 29px;
  font-variant-numeric: tabular-nums;
}

.prod-oee-line span {
  color: var(--muted);
  font-weight: 900;
}

.prod-status-list {
  display: grid;
  gap: 16px;
}

.prod-combined-stat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.prod-combined-stat-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.prod-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 48px;
}

.prod-chart-summary-item {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(49, 216, 255, 0.18);
  border-left-color: var(--summary-color, var(--cyan));
  border-left-width: 3px;
  border-radius: 5px;
  background: rgba(2, 18, 44, 0.42);
}

.prod-chart-summary-item span {
  display: block;
  color: rgba(223, 248, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
}

.prod-chart-summary-item strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.prod-pending-alert-list {
  min-height: 0;
  overflow: hidden;
  padding-top: 10px;
  border-top: 1px solid rgba(49, 216, 255, 0.14);
}

.prod-pending-alert-list .prod-chart-empty {
  display: grid;
  height: 100%;
  place-items: center;
}

.prod-pending-alert-list.is-scrollable .prod-pending-alert-track {
  animation: prod-feed-scroll var(--pending-scroll-duration, 30s) linear infinite;
}

.prod-pending-alert-stack {
  display: grid;
  gap: 8px;
}

.prod-pending-alert-list.is-scrollable .prod-pending-alert-stack[data-scroll-source] {
  padding-bottom: 8px;
}

.prod-pending-alert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
  grid-template-areas:
    "main meta"
    "owner time";
  align-items: center;
  gap: 5px 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(49, 216, 255, 0.2);
  border-left: 3px solid #ffc247;
  border-radius: 5px;
  background: rgba(4, 30, 72, 0.56);
}

.prod-pending-alert-row.is-critical {
  border-left-color: var(--red);
}

.prod-pending-alert-row > div:first-child {
  grid-area: main;
  min-width: 0;
}

.prod-pending-alert-row strong,
.prod-pending-alert-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-pending-alert-row strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
}

.prod-pending-alert-row span,
.prod-pending-alert-row small,
.prod-pending-alert-row time {
  color: rgba(223, 248, 255, 0.7);
  font-size: 12px;
  font-weight: 850;
}

.prod-pending-alert-meta {
  grid-area: meta;
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 0;
}

.prod-pending-alert-meta b {
  max-width: 94px;
  overflow: hidden;
  color: #68f3ff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.prod-pending-alert-meta em {
  color: #ffc247;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.prod-pending-alert-row small {
  grid-area: owner;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-pending-alert-row time {
  grid-area: time;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.prod-stat-trend {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(49, 216, 255, 0.16);
}

.prod-combined-stat-panel .prod-stat-trend {
  grid-template-rows: minmax(0, 1fr);
  padding-top: 12px;
}

.prod-status-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(94px, auto);
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.prod-status-row strong {
  text-align: right;
  color: #fff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.prod-chart-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.prod-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 14px;
  min-height: 0;
  padding: 18px 2px 0;
}

.prod-combined-stat-panel .prod-bar-chart {
  min-height: 0;
  padding: 10px 4px 0;
  border-top: 1px solid rgba(49, 216, 255, 0.14);
}

.prod-combined-stat-panel .prod-chart-bar {
  min-height: 156px;
}

.prod-chart-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 10px;
  height: 100%;
  min-height: 142px;
  text-align: center;
}

.prod-chart-bar i {
  display: block;
  width: min(34px, 62%);
  height: var(--bar);
  min-height: 16px;
  margin: 0 auto;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #68f3ff 0%, #31d8ff 42%, #24e6b2 100%);
  box-shadow: 0 0 18px rgba(49, 216, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.prod-chart-bar strong {
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.prod-chart-bar span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.prod-chart-empty {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  color: rgba(223, 248, 255, 0.64);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.prod-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
}

.prod-device-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 144px;
  padding: 16px;
  border: 1px solid rgba(49, 216, 255, 0.24);
  border-radius: 6px;
  background: rgba(4, 31, 74, 0.52);
}

.prod-device-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(49, 216, 255, 0.45));
}

.prod-device-info {
  min-width: 0;
}

.prod-device-card strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prod-device-card b {
  display: block;
  margin: 10px 0 6px;
  color: var(--cyan-2);
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(49, 216, 255, 0.46);
}

.prod-mini-meter {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 216, 255, 0.18);
}

.prod-mini-meter i {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.prod-log-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.prod-log-table {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.prod-log-body {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.prod-log-body.is-scrollable .prod-log-stack {
  animation: prod-log-scroll var(--log-scroll-duration, 36s) linear infinite;
  will-change: transform;
}

.prod-log-stack {
  display: grid;
}

.prod-log-row,
.prod-log-head {
  display: grid;
  grid-template-columns: 96px minmax(128px, 1fr) 76px 76px 78px 78px 132px;
  align-items: center;
  min-height: 31px;
  gap: 8px;
  border-bottom: 1px solid rgba(49, 216, 255, 0.13);
  font-size: 13px;
  font-weight: 800;
}

.prod-log-head {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(7, 45, 92, 0.98), rgba(4, 32, 74, 0.96));
  color: rgba(223, 248, 255, 0.62);
}

.prod-log-row {
  color: #eaffff;
}

.prod-log-row.is-new {
  animation: prod-row-highlight 3.4s ease-out;
}

.prod-log-row > *,
.prod-log-head > * {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prod-log-row b {
  color: var(--cyan-2);
  font-weight: 900;
}

.prod-toast {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 34px;
  min-width: 280px;
  padding: 14px 22px;
  border: 1px solid rgba(104, 243, 255, 0.72);
  border-radius: 5px;
  background: rgba(3, 19, 48, 0.92);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(49, 216, 255, 0.26);
  transform: translateX(-50%);
}

@keyframes prod-number-roll {
  0% {
    opacity: 0.22;
    transform: translateY(12px) scale(0.96);
  }

  56% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes prod-delta-float {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  14%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes prod-row-highlight {
  0% {
    border-color: rgba(104, 243, 255, 0.9);
    background: rgba(36, 230, 178, 0.2);
    box-shadow: inset 0 0 18px rgba(49, 216, 255, 0.28);
  }

  100% {
    border-color: rgba(49, 216, 255, 0.13);
    background: rgba(4, 30, 72, 0.58);
    box-shadow: none;
  }
}

@keyframes prod-feed-scroll {
  0%,
  8% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-1 * var(--alert-scroll-distance, 0px)));
  }
}

@keyframes prod-log-scroll {
  0%,
  8% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-1 * var(--log-scroll-distance, 0px)));
  }
}

@keyframes prod-map-update-ring {
  0% {
    opacity: 0.95;
    transform: scale(0.82);
  }

  100% {
    opacity: 0;
    transform: scale(2.05);
  }
}

.prod-toast[hidden] {
  display: none;
}

body.production-screen-page.is-performance-mode .production-screen,
body.production-screen-page.is-performance-mode .prod-header::after,
body.production-screen-page.is-performance-mode .prod-title-frame h1,
body.production-screen-page.is-performance-mode .prod-title-wing,
body.production-screen-page.is-performance-mode .prod-panel,
body.production-screen-page.is-performance-mode .prod-twin-panel,
body.production-screen-page.is-performance-mode .prod-kpi-strip article,
body.production-screen-page.is-performance-mode .prod-panel::before,
body.production-screen-page.is-performance-mode .prod-panel::after,
body.production-screen-page.is-performance-mode .prod-twin-panel::before,
body.production-screen-page.is-performance-mode .prod-twin-panel::after,
body.production-screen-page.is-performance-mode .prod-panel h2::after,
body.production-screen-page.is-performance-mode .prod-alert-list.is-scrollable .prod-alert-track,
body.production-screen-page.is-performance-mode .prod-pending-alert-list.is-scrollable .prod-pending-alert-track,
body.production-screen-page.is-performance-mode .prod-log-body.is-scrollable .prod-log-stack,
body.production-screen-page.is-performance-mode .prod-alert-card.is-new,
body.production-screen-page.is-performance-mode .prod-log-row.is-new,
body.production-screen-page.is-performance-mode .prod-kpi-strip article.is-changed .prod-kpi-value,
body.production-screen-page.is-performance-mode .prod-kpi-delta {
  animation: none !important;
}

body.production-screen-page.is-performance-mode .prod-alert-track,
body.production-screen-page.is-performance-mode .prod-pending-alert-track,
body.production-screen-page.is-performance-mode .prod-log-stack {
  transform: none !important;
  will-change: auto;
}

body.production-screen-page.is-performance-mode .prod-header::after {
  display: none;
}

body.production-screen-page.is-performance-mode .prod-panel,
body.production-screen-page.is-performance-mode .prod-twin-panel,
body.production-screen-page.is-performance-mode .prod-kpi-strip article {
  background:
    linear-gradient(180deg, rgba(13, 86, 166, 0.34), rgba(3, 32, 81, 0.66)),
    var(--panel-bg);
  box-shadow: inset 0 0 18px rgba(37, 155, 255, 0.12), 0 0 10px rgba(0, 147, 255, 0.08);
}

body.production-screen-page.is-performance-mode .prod-title-frame h1,
body.production-screen-page.is-performance-mode .prod-panel h2,
body.production-screen-page.is-performance-mode .prod-kpi-strip strong,
body.production-screen-page.is-performance-mode .prod-device-card b {
  text-shadow: 0 0 8px rgba(49, 216, 255, 0.42);
}

body.production-screen-page.is-performance-mode .prod-weather-icon,
body.production-screen-page.is-performance-mode .prod-panel h2::before,
body.production-screen-page.is-performance-mode .prod-device-card img,
body.production-screen-page.is-performance-mode .prod-map-marker,
body.production-screen-page.is-performance-mode .prod-map-marker.is-active {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
