:root {
  --bg: #edf4fa;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(154, 185, 211, 0.48);
  --line-strong: rgba(83, 181, 221, 0.72);
  --text: #203953;
  --muted: #687f97;
  --navy: #18395c;
  --navy-strong: #0f2d4c;
  --soe-red: #b92b32;
  --blue: #58b9dc;
  --blue-strong: #319ac8;
  --green: #78cdb8;
  --yellow: #e3c27a;
  --red: #d9767d;
  --purple: #9faee5;
  --shadow: 0 14px 30px rgba(116, 148, 176, 0.18);
  --screen-width: 1489px;
  --screen-height: 912px;
  --screen-fit-width: 100vw;
  --screen-fit-height: 100dvh;
  --stage-ratio: 1.6327;
  --screen-pad-x: clamp(10px, 0.9vw, 24px);
  --screen-pad-y: clamp(8px, 1.2vh, 18px);
  --topbar-height: clamp(72px, 8.8vh, 104px);
  --panel-gap: clamp(10px, 1.1vh, 18px);
  --title-size: clamp(24px, 2vw, 42px);
  --metric-size: clamp(22px, 1.8vw, 34px);
  --chart-height: clamp(148px, 18vh, 220px);
  --map-height: clamp(320px, 42vh, 520px);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--bg);
  overflow: hidden;
  font-weight: 600;
}

button,
a {
  font: inherit;
}

button { cursor: pointer; }
a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(49, 154, 200, 0.36);
  outline-offset: 3px;
}

.screen-shell,
.screen {
  width: var(--screen-fit-width);
  height: var(--screen-fit-height);
  margin: 0 auto;
  padding: var(--screen-pad-y) var(--screen-pad-x);
  display: grid;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  gap: var(--panel-gap);
  background:
    linear-gradient(180deg, rgba(15, 45, 76, 0.04), transparent 34%),
    linear-gradient(rgba(158, 184, 208, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 184, 208, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 50% 5%, rgba(121, 196, 232, 0.28), transparent 26%),
    linear-gradient(180deg, #f9fcff 0%, #eef5fb 58%, #e6eef6 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.top-frame,
.topbar {
  min-height: 0;
  min-width: 0;
}

.top-meta,
.topbar {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(248px, 0.78fr) minmax(420px, 1.32fr) minmax(248px, 0.84fr);
  gap: clamp(10px, 0.9vw, 16px);
  align-items: stretch;
}

.top-time,
.top-actions,
.top-title,
.topbar-block,
.title-block,
.toolbar,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(88, 185, 220, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 252, 0.92));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.78), inset 0 -1px 0 rgba(24, 57, 92, 0.08), var(--shadow);
  overflow: hidden;
}

.panel[hidden] {
  display: none;
}

.top-time,
.topbar-block {
  display: grid;
  align-content: center;
  padding: clamp(8px, 0.8vw, 10px) clamp(18px, 1.5vw, 28px);
}

.top-time strong,
.time-big {
  display: block;
  color: var(--navy-strong);
  font-size: clamp(28px, 2.15vw, 48px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.top-time span,
.time-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.top-title,
.title-block {
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
}

.top-title h1,
.title-block h1 {
  margin: 0;
  color: var(--navy-strong);
  font-size: var(--title-size);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 #fff;
}

.top-title p,
.title-block p {
  margin: 10px 0 0;
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 800;
}

.top-title span {
  position: absolute;
  bottom: 0;
  width: 48%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.top-actions,
.toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 0.7vw, 12px);
  padding: 0 clamp(12px, 1vw, 20px);
  flex-wrap: wrap;
  align-content: center;
}

.vendor-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.vendor-status b {
  color: var(--blue-strong);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.vendor-status b[data-state="online"] {
  color: #4b9b84;
}

.vendor-status b[data-state="loading"],
.vendor-status b[data-state="partial"] {
  color: #be8c3b;
}

.vendor-status b[data-state="offline"] {
  color: #b85b63;
}

.signal {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #547088;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(120, 205, 184, 0.5);
}

.signal:has([data-vendor-status][data-state="loading"]) i {
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(227, 194, 122, 0.5);
}

.signal:has([data-vendor-status][data-state="partial"]) i {
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(227, 194, 122, 0.5);
}

.signal:has([data-vendor-status][data-state="offline"]) i {
  background: var(--red);
  box-shadow: 0 0 12px rgba(217, 118, 125, 0.46);
}

.ghost-button,
.btn {
  min-width: 84px;
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #547088;
  text-decoration: none;
  border: 1px solid rgba(151, 177, 201, 0.58);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #e8f0f8);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ghost-button:hover,
.btn:hover,
.btn.primary {
  color: #fff;
  border-color: rgba(103, 195, 232, 0.95);
  background: linear-gradient(180deg, #67c7e8, #4fa5d0);
  box-shadow: 0 8px 18px rgba(107, 171, 206, 0.25);
}

.ghost-button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.screen-stage,
.dashboard,
.home-layout,
.home-stack,
.detail-grid,
.stack,
.home-center {
  min-height: 0;
  min-width: 0;
}

.dashboard {
  height: 100%;
}

.home-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(460px, 1.42fr) minmax(260px, 0.82fr);
  gap: clamp(10px, 0.8vw, 18px);
}

.home-stack {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: clamp(10px, 1vh, 16px);
}

.home-center .panel,
.monitor-panel {
  height: 100%;
}

.panel {
  min-height: 0;
  padding: clamp(12px, 1.5vh, 18px) clamp(12px, 0.9vw, 20px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 3px;
  height: 32px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--soe-red), var(--blue-strong));
}

.panel-title {
  flex: 0 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(10px, calc(var(--screen-fit-height) * 0.012), 14px);
  min-width: 0;
}

.panel-title h2 {
  margin: 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-strong);
  font-size: clamp(18px, 1.18vw, 22px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-title h2[data-panel-icon]::before {
  content: attr(data-panel-icon);
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 42%),
    linear-gradient(180deg, var(--navy), var(--blue-strong));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42), 0 6px 14px rgba(24, 57, 92, 0.18);
}

.panel-title small {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 45%;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.panel-meta-link {
  color: var(--muted);
  text-decoration: none;
}

.panel-meta-link:hover {
  color: var(--blue-strong);
}

.interaction-list,
.meeting-list,
.record-list,
.service-board {
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 3px;
}

.meeting-list {
  flex: 1 1 auto;
  align-content: start;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 181, 221, 0.48) rgba(218, 230, 240, 0.55);
}

.meeting-list::-webkit-scrollbar { width: 5px; }
.meeting-list::-webkit-scrollbar-track { background: rgba(218, 230, 240, 0.55); }
.meeting-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(83, 181, 221, 0.48);
}

.interaction-row,
.meeting-list article,
.record-list article,
.service-board article {
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(164, 188, 209, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(24, 57, 92, 0.035), transparent 55%),
    rgba(255, 255, 255, 0.72);
}

.interaction-row {
  grid-template-columns: 10px minmax(82px, 0.66fr) minmax(0, 1.8fr);
  min-height: 0;
  padding: 7px 10px;
  gap: 8px;
}

.interaction-row strong,
.meeting-list strong,
.record-list strong,
.service-board strong {
  min-width: 0;
  color: var(--navy);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.interaction-row div {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  color: var(--muted);
}

.interaction-row div span {
  min-width: 0;
  padding: 4px 4px;
  display: grid;
  grid-template-rows: minmax(18px, auto) auto;
  align-content: center;
  gap: 1px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.48);
  overflow: hidden;
}

.interaction-row div span b {
  display: block;
  font-size: clamp(13px, 0.92vw, 16px);
  line-height: 0.96;
  text-align: center;
}

.interaction-row div span em {
  min-width: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 9px;
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.interaction-row b,
.live-number {
  color: var(--blue-strong);
  font-weight: 900;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.violet { background: var(--purple); }

.news-card {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 54px;
  gap: 10px;
}

.news-poster {
  position: relative;
  min-height: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 6px;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.4), transparent 20%),
    linear-gradient(135deg, #f2f8fd, #dbe9f4 75%, #cbddeb);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.news-backdrops {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  opacity: 0.82;
}

.news-backdrops i {
  min-width: 0;
  background-color: #dbe9f4;
  background-position: center;
  background-size: cover;
}

.news-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 250, 254, 0.08), rgba(245, 250, 254, 0.42) 40%, rgba(245, 250, 254, 0.92) 78%),
    linear-gradient(90deg, rgba(185, 43, 50, 0.16), rgba(24, 57, 92, 0.08));
}

.news-poster > span,
.news-poster > strong,
.news-poster > p {
  position: relative;
  z-index: 1;
}

.news-poster span {
  align-self: flex-start;
  padding: 4px 10px;
  color: #6fa4cd;
  font-weight: 800;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.news-poster strong {
  max-width: 92%;
  margin-top: 8px;
  color: var(--soe-red);
  font-size: clamp(17px, 1.12vw, 22px);
  line-height: 1.12;
  font-weight: 900;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-poster p {
  max-width: 92%;
  margin: 6px 0 0;
  color: #577388;
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-poster small {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.news-ticker {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(164, 188, 209, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
}

.news-ticker::before,
.news-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  pointer-events: none;
}

.news-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(246, 250, 253, 0.96), transparent);
}

.news-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(246, 250, 253, 0.96), transparent);
}

.news-ticker-track {
  height: 100%;
  min-width: max-content;
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  padding: 7px 10px;
  animation: news-scroll 26s linear infinite;
}

.news-ticker:hover .news-ticker-track {
  animation-play-state: paused;
}

.news-ticker a {
  flex: 0 0 min(260px, calc(var(--screen-fit-width) * 0.16));
  min-width: 190px;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(231, 241, 248, 0.72)),
    rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.news-ticker span,
.news-ticker small {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-ticker span {
  color: var(--blue-strong);
  font-weight: 900;
}

.news-ticker strong {
  min-width: 0;
  color: var(--navy);
  font-size: 11px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-strip {
  min-height: 28px;
  margin-top: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  background: rgba(222, 232, 242, 0.72);
}

.news-strip span,
.news-strip b {
  min-width: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-strip span {
  flex: 1 1 auto;
}

.news-strip b {
  flex: 0 0 auto;
}

@keyframes news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.plan-map,
.site-map {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid rgba(164, 188, 209, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(35deg, transparent 0 44%, rgba(116, 154, 181, 0.14) 44% 46%, transparent 46% 100%),
    linear-gradient(145deg, transparent 0 58%, rgba(116, 154, 181, 0.12) 58% 60%, transparent 60% 100%),
    radial-gradient(circle at 48% 46%, rgba(125, 205, 185, 0.22), transparent 24%),
    linear-gradient(135deg, #eaf3f8, #d5e3ee);
}

.plan-map {
  min-height: 0;
  height: var(--map-height);
}

.plan-embed {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid rgba(164, 188, 209, 0.34);
  border-radius: 6px;
  background: linear-gradient(135deg, #eaf3f8, #d5e3ee);
}

.monitor-panel .plan-embed {
  min-height: 0;
}

.plan-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.map-grid,
.plan-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(143, 168, 190, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 168, 190, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
}

.road {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(151, 177, 201, 0.36);
}

.road-main {
  left: 6%;
  right: 6%;
  top: 50%;
  height: 46px;
  transform: rotate(-8deg);
}

.road-cross {
  top: 9%;
  bottom: 8%;
  left: 48%;
  width: 42px;
  transform: rotate(12deg);
}

.building,
.map-building {
  position: absolute;
  z-index: 2;
  min-width: 128px;
  min-height: 88px;
  padding: 12px;
  display: grid;
  place-content: center;
  gap: 7px;
  text-align: center;
  color: var(--text);
  border: 1px solid rgba(133, 184, 214, 0.56);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(232, 241, 248, 0.88));
  box-shadow: 0 12px 26px rgba(126, 154, 180, 0.16);
}

.building span,
.map-building span {
  color: var(--muted);
  font-size: 13px;
}

.building-a,
.map-building.a { left: 10%; top: 13%; width: 24%; height: 22%; }
.building-b,
.map-building.b { right: 10%; top: 13%; width: 25%; height: 22%; }
.building-c,
.map-building.c { left: 13%; bottom: 13%; width: 30%; height: 23%; }
.building-d,
.map-building.d { right: 12%; bottom: 14%; width: 24%; height: 22%; }

.green-zone,
.parking-zone,
.gate-zone {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.green-zone {
  left: 38%;
  top: 40%;
  width: 19%;
  height: 15%;
  color: #548478;
  background: rgba(215, 236, 229, 0.68);
  border: 1px solid rgba(125, 205, 185, 0.42);
}

.parking-zone {
  right: 8%;
  bottom: 5%;
  width: 16%;
  height: 9%;
  grid-template-columns: auto auto;
  gap: 8px;
  color: var(--muted);
  background: rgba(228, 236, 244, 0.78);
  border: 1px solid rgba(151, 177, 201, 0.38);
}

.parking-zone b {
  color: var(--blue-strong);
  font-size: 18px;
}

.gate-zone {
  left: 4%;
  bottom: 43%;
  min-width: 76px;
  height: 34px;
  color: #fff;
  background: linear-gradient(180deg, #67c7e8, #4fa5d0);
}

.camera-pin,
.device-dot,
.asset-tag {
  position: absolute;
  z-index: 3;
  min-width: 70px;
  height: 30px;
  padding: 0 10px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: linear-gradient(180deg, #67c7e8, #4fa5d0);
  box-shadow: 0 8px 18px rgba(88, 160, 200, 0.28);
}

.camera-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.pin-one { left: 27%; top: 27%; }
.pin-two { right: 28%; top: 33%; }
.pin-three { left: 31%; bottom: 30%; }
.pin-four { right: 24%; bottom: 26%; }

.system-entry-row {
  flex: 0 0 clamp(104px, calc(var(--screen-fit-height) * 0.118), 128px);
  margin-top: clamp(10px, calc(var(--screen-fit-height) * 0.012), 14px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, calc(var(--screen-fit-width) * 0.006), 12px);
}

.system-entry {
  min-width: 0;
  position: relative;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(32px, auto) minmax(26px, auto) 24px;
  align-content: stretch;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(164, 188, 209, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(88, 185, 220, 0.08), transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 241, 249, 0.96));
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.system-entry:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px rgba(80, 125, 162, 0.16);
}

.system-entry strong {
  color: var(--navy);
  font-size: clamp(12px, 0.82vw, 15px);
  line-height: 1.15;
  font-weight: 900;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.system-entry > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.system-entry b {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  justify-self: start;
  width: 58px;
  min-width: 58px;
  min-height: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 4px;
  background: linear-gradient(180deg, #67c7e8, #4fa5d0);
}

.system-entry-metrics {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.system-entry-metrics em {
  min-width: 0;
  padding: 3px 4px;
  display: grid;
  grid-template-rows: minmax(14px, auto) 16px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  font-style: normal;
  text-align: center;
  border: 1px solid rgba(164, 188, 209, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.58);
}

.system-entry-metrics small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.08;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
}

.system-entry-metrics i {
  color: var(--blue-strong);
  font-size: 15px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

[data-system-card="property"] .system-entry-metrics [data-system-stat="0"] i {
  font-size: 13px;
  letter-spacing: -0.2px;
}

.company-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.company-summary span {
  min-width: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-summary b {
  color: var(--blue-strong);
  font-size: 17px;
  line-height: 1;
}

.company-layout {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(98px, 124px);
  align-items: center;
  gap: 12px;
}

.industry-list {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.industry-list article {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(24px, 0.42fr) 38px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.industry-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industry-list i {
  height: 8px;
  overflow: hidden;
  background: rgba(164, 188, 209, 0.24);
}

.industry-list i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7cd5ef, #9bc6d8);
}

.industry-list strong {
  color: var(--blue-strong);
  font-size: 11px;
  text-align: right;
}

.company-donut,
.donut {
  width: min(128px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#7cd5ef 0 28%, #8ad9d4 28% 50%, #a8b8e7 50% 68%, #e3c584 68% 82%, #aacd8b 82% 94%, #ef9ea9 94% 100%);
  position: relative;
}

.donut {
  width: min(190px, 70%);
  margin: auto;
}

.company-donut::after,
.donut::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: #f4f8fc;
  box-shadow: inset 0 0 24px rgba(190, 205, 220, 0.4);
}

.meeting-list article,
.service-board article {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 6px;
}

.meeting-list span,
.service-board span,
.service-board b {
  color: var(--muted);
  font-weight: 400;
}

.meeting-list strong {
  white-space: normal;
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meeting-list span {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.25;
}

.meeting-list span em {
  color: var(--blue-strong);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.meeting-list span b {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}

.camera-modal[hidden] { display: none; }

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(42, 63, 82, 0.32);
  backdrop-filter: blur(3px);
}

.camera-modal-card {
  width: min(920px, 72vw);
  height: min(580px, 68vh);
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(157, 182, 204, 0.66);
  border-radius: 8px;
  background: rgba(245, 250, 254, 0.96);
  box-shadow: 0 24px 60px rgba(89, 115, 140, 0.32);
}

.camera-modal-card header {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(164, 188, 209, 0.28);
}

.camera-modal-card header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.camera-modal-card button {
  height: 30px;
  padding: 0 14px;
  color: #547088;
  border: 1px solid rgba(151, 177, 201, 0.58);
  border-radius: 4px;
  background: #fff;
}

.modal-feed {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 26%),
    linear-gradient(22deg, rgba(51, 74, 96, 0.18) 0 12%, transparent 12% 100%),
    linear-gradient(155deg, transparent 0 52%, rgba(125, 151, 173, 0.28) 52% 56%, transparent 56% 100%),
    radial-gradient(circle at 22% 40%, rgba(255, 255, 255, 0.36), transparent 20%),
    linear-gradient(180deg, rgba(204, 221, 234, 0.92), rgba(149, 174, 196, 0.74));
}

.modal-feed::before {
  content: "LIVE  2026-05-09 10:30:00";
  position: absolute;
  left: 18px;
  top: 14px;
  padding: 5px 10px;
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.36);
  background: rgba(51, 74, 96, 0.42);
}

.detail-grid {
  display: grid;
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.three-col {
  grid-template-columns: minmax(240px, 0.82fr) minmax(420px, 1.56fr) minmax(250px, 0.9fr);
}

body[data-page="vendor-deviceops"] .deviceops-layout {
  height: 100%;
  grid-template-columns: minmax(0, 1.62fr) minmax(560px, 0.92fr);
  grid-template-areas:
    "main side"
    "output side";
  grid-template-rows: minmax(0, 0.54fr) minmax(0, 0.46fr);
  align-items: stretch;
  gap: 12px 16px;
}

body[data-page="vendor-deviceops"] .screen {
  grid-template-rows: auto 1fr;
}

body[data-page="vendor-deviceops"] .topbar {
  position: static;
}

body[data-page="vendor-deviceops"] .deviceops-main {
  grid-area: main;
  min-height: 0;
}

body[data-page="vendor-deviceops"] .deviceops-layout > [data-section="output-count"] {
  grid-area: output;
  min-height: 0;
  height: 100%;
}

body[data-page="vendor-deviceops"] .deviceops-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

body[data-page="vendor-deviceops"] [data-section="status"] {
  min-height: 0;
  height: 100%;
}

body[data-page="vendor-deviceops"] [data-section="workshops"] {
  min-height: 0;
  height: 100%;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

body[data-page="vendor-deviceops"] [data-section="workshops"] [data-workshop-list] {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

body[data-page="vendor-deviceops"] .deviceops-workshop-view,
body[data-page="vendor-deviceops"] .workshop-overview-view,
body[data-page="vendor-deviceops"] .workshop-detail-view,
body[data-page="vendor-deviceops"] .workshop-detail-shell {
  min-height: 0;
  height: 100%;
}

body[data-page="vendor-deviceops"] .deviceops-workshop-view,
body[data-page="vendor-deviceops"] .workshop-overview-view,
body[data-page="vendor-deviceops"] .workshop-detail-view,
body[data-page="vendor-deviceops"] .workshop-detail-shell {
  display: flex;
  flex-direction: column;
}

body[data-page="vendor-deviceops"] .workshop-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="vendor-deviceops"] .workshop-panel-heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body[data-page="vendor-deviceops"] .workshop-panel-heading small {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="vendor-deviceops"] .workshop-panel-back {
  min-width: 122px;
}

body[data-page="vendor-deviceops"] .workshop-panel-back[hidden] {
  display: none !important;
}

body[data-page="vendor-deviceops"] .workshop-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 116px;
  padding: 16px 16px 14px;
  gap: 16px;
}

body[data-page="vendor-deviceops"] .workshop-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="vendor-deviceops"] .workshop-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="vendor-deviceops"] .workshop-list strong {
  font-size: 17px;
}

body[data-page="vendor-deviceops"] .workshop-list span {
  font-size: 18px;
}

body[data-page="vendor-deviceops"] .workshop-enter-btn {
  align-self: stretch;
  min-width: 0;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(225, 240, 250, 0.82)),
    rgba(255, 255, 255, 0.82);
  border-color: rgba(86, 149, 190, 0.52);
}

body[data-page="vendor-deviceops"] .workshop-enter-btn::after {
  content: ">";
  margin-left: 10px;
  color: var(--blue-strong);
  font-weight: 900;
}

body[data-page="vendor-deviceops"] .workshop-detail-header,
body[data-page="vendor-deviceops"] .workshop-detail-actions {
  flex: 0 0 auto;
}

body[data-page="vendor-deviceops"] .workshop-detail-summary span,
body[data-page="vendor-deviceops"] .workshop-detail-finish {
  color: var(--muted);
  font-size: 12px;
}

body[data-page="vendor-deviceops"] .workshop-detail-error {
  margin-top: 8px;
}

body[data-page="vendor-deviceops"] .workshop-detail-list {
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 10px;
  overflow: auto;
  padding-right: 4px;
}

body[data-page="vendor-deviceops"] .workshop-detail-list-inner {
  display: grid;
  gap: 10px;
}

body[data-page="vendor-deviceops"] .workshop-device-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(164, 188, 209, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(237, 246, 252, 0.66)),
    rgba(255, 255, 255, 0.66);
}

body[data-page="vendor-deviceops"] .workshop-device-card strong {
  color: var(--navy-strong);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

body[data-page="vendor-deviceops"] .workshop-device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
}

body[data-page="vendor-deviceops"] .workshop-detail-actions {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

body[data-page="vendor-deviceops"] .workshop-detail-more,
body[data-page="vendor-deviceops"] .workshop-detail-back {
  min-width: 108px;
}

body[data-page="vendor-deviceops"] .device-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}

@media (max-width: 1280px) {
  body[data-page="vendor-deviceops"] .deviceops-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "output"
      "side";
    grid-template-rows: auto auto auto;
  }

  body[data-page="vendor-deviceops"] .deviceops-main,
  body[data-page="vendor-deviceops"] .deviceops-layout > [data-section="output-count"],
  body[data-page="vendor-deviceops"] .deviceops-side {
    height: auto;
  }

  body[data-page="vendor-deviceops"] .device-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  body[data-page="vendor-deviceops"] .device-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-page="vendor-deviceops"] .toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 0 14px;
  align-items: center;
  justify-content: stretch;
}

body[data-page="vendor-deviceops"] .toolbar .signal {
  font-size: 12px;
}

body[data-page="vendor-deviceops"] .toolbar .btn {
  min-width: 74px;
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

body[data-page="vendor-deviceops"] .vendor-status {
  gap: 4px;
}

body[data-page="vendor-deviceops"] .vendor-status b {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.top-actions,
body[data-page="vendor-cet"] .toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 0 14px;
  align-items: center;
  justify-content: stretch;
}

.top-actions .signal,
body[data-page="vendor-cet"] .toolbar .signal {
  font-size: 12px;
}

.top-actions .btn,
body[data-page="vendor-cet"] .toolbar .btn {
  min-width: 74px;
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

body[data-page="vendor-deviceops"] .panel-title h2 {
  font-size: 20px;
}

body[data-page="vendor-deviceops"] .panel-title {
  margin-bottom: 10px;
}

body[data-page="vendor-deviceops"] .metric-card {
  padding: 12px 16px;
  gap: 6px;
}

body[data-page="vendor-deviceops"] .metric-card span {
  font-size: 12px;
}

body[data-page="vendor-deviceops"] .metric-card strong {
  font-size: 26px;
}

.service-grid {
  grid-template-columns: minmax(260px, 0.74fr) minmax(420px, 1.56fr);
  height: 100%;
}

.stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.metrics-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  min-width: 0;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(164, 188, 209, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(237, 246, 252, 0.66)),
    rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.metric-card span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card strong {
  color: var(--blue-strong);
  font-size: var(--metric-size);
  line-height: 1;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-panel {
  min-height: 0;
  height: 100%;
}

.site-map {
  min-height: 0;
  height: 100%;
}

.detail-grid .site-map .map-building {
  min-height: 72px;
}

.device-dot {
  min-width: 54px;
  height: 26px;
}

.device-dot.warn,
.asset-tag.tag-b {
  background: linear-gradient(180deg, #eccb85, #d39e4f);
}

.asset-tag.tag-a { left: 34%; top: 30%; }
.asset-tag.tag-b { right: 27%; top: 44%; }
.asset-tag.tag-c {
  left: 38%;
  bottom: 25%;
  background: linear-gradient(180deg, #8ad9d4, #63b6ac);
}

.legend {
  flex: 0 0 auto;
  display: flex;
  gap: 16px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.swatch.blue { background: var(--blue); }
.swatch.yellow { background: var(--yellow); }
.swatch.purple { background: var(--purple); }

.record-list {
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 181, 221, 0.58) rgba(218, 230, 240, 0.7);
}

.record-list::-webkit-scrollbar { width: 6px; }
.record-list::-webkit-scrollbar-track { background: rgba(218, 230, 240, 0.7); }
.record-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(83, 181, 221, 0.58);
}

.record-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.record-list span,
.record-list time {
  color: var(--muted);
  font-size: 13px;
}

.tag {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(164, 188, 209, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.tag.ok { color: #4b9b84; }
.tag.warn { color: #be8c3b; }

.bar-chart,
.trend-bars {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 18px;
  padding: 24px 20px 12px;
  border: 1px solid rgba(164, 188, 209, 0.28);
  border-radius: 6px;
  background: repeating-linear-gradient(0deg, rgba(168, 191, 212, 0.18) 0 1px, transparent 1px 34px);
}

.bar-chart i,
.trend-bars i {
  width: 34px;
  min-height: 10px;
  background: linear-gradient(180deg, #7cd5ef, rgba(110, 157, 209, 0.42));
}

.bar-chart .chart-column {
  min-width: 0;
  height: 100%;
  flex: 1 1 54px;
  max-width: 86px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  align-items: end;
  gap: 7px;
}

.bar-chart .chart-column i {
  width: min(34px, 70%);
  border-radius: 5px 5px 0 0;
}

.bar-chart .chart-column strong {
  color: var(--blue-strong);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.bar-chart .chart-column span {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-chart {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  gap: 8px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(164, 188, 209, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(238, 246, 252, 0.68)),
    rgba(255, 255, 255, 0.66);
}

.line-chart-svg {
  width: 100%;
  height: 100%;
}

.line-chart-grid line {
  stroke: rgba(168, 191, 212, 0.38);
  stroke-width: 1;
}

.line-chart-area {
  fill: url(#deviceopsLineFill);
}

.line-chart-path {
  fill: none;
  stroke: #47b5df;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart-dot {
  fill: #ffffff;
  stroke: #47b5df;
  stroke-width: 3;
}

.line-chart-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}

.line-chart-point {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.line-chart-point strong {
  color: var(--blue-strong);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.line-chart-point span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.device-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed rgba(151, 177, 201, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(237, 246, 252, 0.66)),
    rgba(255, 255, 255, 0.66);
  text-align: center;
}

.empty-state.compact {
  min-height: 64px;
  padding: 12px;
  font-size: 13px;
}

.workshop-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  max-height: none;
  height: 100%;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 181, 221, 0.58) rgba(218, 230, 240, 0.7);
}

.workshop-list > article {
  min-width: 0;
  min-height: 84px;
  padding: 10px 10px 8px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(164, 188, 209, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(83, 181, 221, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(238, 246, 252, 0.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

@media (min-width: 1800px) {
  .workshop-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.workshop-summary {
  width: 100%;
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 8px;
}

.workshop-list strong {
  min-width: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workshop-list span {
  color: var(--blue-strong);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.axis {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

body[data-page="vendor-deviceops"] .line-chart {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

body[data-page="vendor-deviceops"] .line-chart-svg {
  width: 100%;
  height: var(--chart-height);
}

body[data-page="vendor-deviceops"] .line-chart-labels {
  gap: 10px;
}

body[data-page="vendor-deviceops"] .line-chart-point strong {
  font-size: 14px;
}

body[data-page="vendor-deviceops"] .line-chart-point span {
  font-size: 11px;
}

.funnel {
  display: grid;
  gap: 14px;
}

.funnel article {
  display: grid;
  grid-template-columns: 90px 1fr 42px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.funnel i {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #7cd5ef, #8ad9d4);
}

.funnel b {
  color: var(--blue-strong);
  text-align: right;
}

.bottom-metrics {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.bottom-metrics article {
  padding: 12px 14px;
  border: 1px solid rgba(164, 188, 209, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
}

.bottom-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.bottom-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-strong);
  font-size: 20px;
}

.service-board {
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
}

.service-board article {
  align-content: center;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 22px;
}

.pulse {
  animation: pulse 500ms ease;
}

@keyframes pulse {
  from { text-shadow: 0 0 12px rgba(49, 154, 200, 0.35); }
  to { text-shadow: none; }
}

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

@media (min-aspect-ratio: 21/9) {
  :root {
    --screen-pad-x: clamp(18px, 1.4vw, 34px);
    --title-size: clamp(28px, 1.75vw, 48px);
    --metric-size: clamp(24px, 1.6vw, 38px);
    --chart-height: clamp(180px, 20vh, 260px);
    --map-height: clamp(360px, 46vh, 620px);
  }

  .top-meta,
  .topbar { grid-template-columns: minmax(280px, 0.72fr) minmax(680px, 1.54fr) minmax(280px, 0.82fr); }
  .home-layout { grid-template-columns: minmax(300px, 0.72fr) minmax(760px, 1.6fr) minmax(300px, 0.84fr); }
  .three-col { grid-template-columns: minmax(280px, 0.8fr) minmax(820px, 1.7fr) minmax(290px, 0.9fr); }
  .service-grid { grid-template-columns: minmax(320px, 0.72fr) minmax(980px, 1.68fr); }
  body[data-page="vendor-deviceops"] .deviceops-layout { grid-template-columns: minmax(0, 1.78fr) minmax(680px, 0.88fr); }
}

@media (min-width: 3200px) {
  :root {
    --screen-pad-x: 36px;
    --screen-pad-y: 18px;
    --title-size: 48px;
    --metric-size: 38px;
    --chart-height: 260px;
    --map-height: 620px;
  }
}

@media (max-width: 1600px) {
  .top-meta,
  .topbar { grid-template-columns: minmax(220px, 0.78fr) minmax(340px, 1.28fr) minmax(220px, 0.84fr); }
  .home-layout { grid-template-columns: minmax(240px, 0.76fr) minmax(420px, 1.28fr) minmax(240px, 0.84fr); }
  .three-col { grid-template-columns: minmax(220px, 0.82fr) minmax(380px, 1.28fr) minmax(220px, 0.9fr); }
  .service-grid { grid-template-columns: minmax(220px, 0.74fr) minmax(360px, 1.46fr); }
  .system-entry strong { font-size: 15px; }
  .panel-title h2 { font-size: 20px; }
  .metric-card { padding: 12px; gap: 6px; }
  .plan-map, .site-map { height: clamp(280px, 38vh, 460px); }
  .panel-title h2[data-panel-icon]::before {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

@media (max-width: 1366px) {
  :root {
    --screen-pad-x: 10px;
    --screen-pad-y: 8px;
    --topbar-height: 74px;
    --panel-gap: 8px;
    --title-size: 24px;
    --metric-size: 22px;
    --chart-height: 148px;
    --map-height: 280px;
  }

  .top-meta,
  .topbar { grid-template-columns: minmax(180px, 0.76fr) minmax(260px, 1.2fr) minmax(180px, 0.8fr); }
  .home-layout { grid-template-columns: minmax(200px, 0.72fr) minmax(340px, 1.22fr) minmax(200px, 0.8fr); }
  .three-col { grid-template-columns: minmax(190px, 0.84fr) minmax(300px, 1.22fr) minmax(190px, 0.84fr); }
  .service-grid { grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1.36fr); }

  .top-time strong,
  .time-big { font-size: clamp(24px, 1.9vw, 34px); }

  .top-title p,
  .title-block p,
  .signal,
  .btn { font-size: 12px; }

  .panel { padding: 10px 12px; }
  .panel-title h2 { font-size: 18px; }
  .metrics-grid { gap: 8px; }
  .service-board { grid-template-columns: 1fr 1fr; }
  .workshop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="vendor-deviceops"] .deviceops-layout { grid-template-columns: minmax(0, 1.36fr) minmax(360px, 0.9fr); gap: 8px 10px; }
}

@media (max-height: 930px) and (min-width: 1101px) {
  .screen-shell,
  .screen {
    grid-template-rows: 84px minmax(0, 1fr);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .panel {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .panel-title {
    min-height: 30px;
    margin-bottom: 9px;
  }

  .panel-title h2 {
    font-size: 19px;
  }

  .panel-title h2[data-panel-icon]::before {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .interaction-list,
  .meeting-list {
    gap: 8px;
  }

  .news-card {
    grid-template-rows: minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .news-poster {
    padding: 12px 14px;
  }

  .news-poster strong {
    font-size: 17px;
  }

  .news-poster p {
    font-size: 11px;
    -webkit-line-clamp: 1;
  }

  .news-ticker-track {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .interaction-row,
  .meeting-list article {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .news-strip {
    min-height: 26px;
    margin-top: 7px;
  }

  .system-entry-row {
    flex-basis: 88px;
  }

  .system-entry {
    padding-top: 8px;
    padding-bottom: 8px;
    grid-template-rows: minmax(30px, auto) minmax(24px, auto);
    gap: 3px;
  }

  .system-entry b {
    display: none;
  }

  .system-entry-metrics em {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .system-entry > span {
    display: none;
  }

  .system-entry strong {
    font-size: 12px;
  }

  .system-entry-metrics small {
    font-size: 8px;
  }

  .company-layout {
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .company-donut {
    width: 104px;
  }
}

@media (max-width: 1100px) {
  body {
    display: block;
    overflow: auto;
  }
  .screen-shell,
  .screen {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 8px 18px 10px;
    grid-template-rows: 76px minmax(0, 1fr);
    gap: 10px;
    overflow: visible;
  }
  .top-meta,
  .topbar,
  .home-layout,
  .three-col,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .home-stack,
  .stack {
    grid-template-rows: auto auto;
  }
  .plan-map,
  .site-map {
    min-height: 520px;
  }
  .system-entry-row,
  .bottom-metrics,
  .service-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
