:root {
  --bg: #031226;
  --panel: rgba(3, 26, 61, 0.88);
  --panel-deep: rgba(2, 20, 49, 0.94);
  --line: #075cae;
  --line-soft: rgba(40, 142, 255, 0.36);
  --title: #e8f5ff;
  --text: #d8ecff;
  --muted: #8db8dc;
  --cyan: #3fb9ff;
  --blue: #1476e7;
  --green: #24f66b;
  --red: #ff4545;
  --yellow: #ffd43b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 0, rgba(17, 100, 206, 0.45), transparent 36%),
    linear-gradient(180deg, #031834 0%, #020b1f 100%);
  overflow-x: hidden;
}

.screen {
  width: 100%;
  height: 100vh;
  min-height: 820px;
  margin: 0 auto;
  padding: clamp(10px, 1vw, 18px) clamp(12px, 1.25vw, 24px) clamp(12px, 1.1vw, 20px);
  position: relative;
  background:
    linear-gradient(rgba(2, 11, 31, 0.16), rgba(2, 11, 31, 0.34)),
    radial-gradient(circle at 50% 42%, rgba(9, 73, 140, 0.42), transparent 38%);
  transform-origin: top center;
}

.header {
  height: clamp(72px, 7.6vh, 88px);
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  align-items: start;
  position: relative;
}

.header::before,
.header::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #39a5ff, #8bd3ff, #39a5ff, transparent);
  box-shadow: 0 0 18px #3a9cff;
}

.header::after {
  left: 34%;
  right: 34%;
  bottom: 0;
  height: 10px;
  clip-path: polygon(0 0, 12% 0, 17% 100%, 83% 100%, 88% 0, 100% 0, 90% 100%, 10% 100%);
}

.brand,
.header-right {
  padding-top: 10px;
  color: #eef7ff;
  font-size: 18px;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #44b6ff, #176ee7);
  color: white;
  font-size: 16px;
}

.title-wrap {
  text-align: center;
}

.header h1 {
  margin: 0;
  text-align: center;
  color: #f5fbff;
  font-size: clamp(32px, 2.2vw, 42px);
  letter-spacing: 8px;
  text-shadow: 0 0 15px rgba(87, 170, 255, 0.9), 0 2px 0 #173d84;
}

.title-wrap p {
  margin: 5px 0 0;
  color: rgba(210, 235, 255, 0.88);
  font-size: clamp(12px, 0.8vw, 15px);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(74, 171, 255, 0.55);
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
}

.front-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 0;
}

.front-export select,
.front-export button {
  height: 28px;
  border: 1px solid rgba(74, 166, 255, 0.55);
  border-radius: 5px;
  color: #e8f6ff;
  background: rgba(4, 37, 80, 0.78);
  font-size: 12px;
  outline: none;
}

.front-export select {
  width: 76px;
  padding: 0 6px;
}

.front-export button {
  padding: 0 10px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(24, 126, 231, 0.92), rgba(9, 87, 178, 0.84));
  box-shadow: inset 0 0 12px rgba(89, 178, 255, 0.18);
}

.front-export button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.cache-status-light {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: rgba(49, 243, 107, 0.45);
  box-shadow: 0 0 8px rgba(49, 243, 107, 0.25);
}

.cache-status-light.is-cached {
  background: #ffd43b;
  box-shadow: 0 0 10px rgba(255, 212, 59, 0.9);
  animation: cacheBreath 1.5s ease-in-out infinite;
}

@keyframes cacheBreath {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

.full-icon {
  width: 50px;
  height: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(560px, 1.65fr) minmax(330px, 0.95fr);
  grid-template-rows: minmax(360px, 45.5vh) minmax(210px, 21.5vh);
  grid-template-areas:
    "weather map sensor"
    "valve camera machine";
  gap: clamp(10px, 0.8vw, 16px);
  align-items: stretch;
}

.left-col,
.right-col,
.center-col {
  display: contents;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(5, 37, 84, 0.92), rgba(3, 24, 56, 0.9));
  box-shadow: inset 0 0 28px rgba(20, 111, 225, 0.18), 0 0 18px rgba(0, 35, 90, 0.38);
  overflow: hidden;
}

.panel-title,
.chart-title {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(90deg, #0654bd, rgba(5, 53, 114, 0.28));
  color: #f3f9ff;
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 0 7px rgba(89, 170, 255, 0.9);
}

.panel-title em {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  text-shadow: none;
}

.panel-status-light {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  vertical-align: 2px;
  background: rgba(141, 184, 220, 0.7);
  box-shadow: 0 0 8px rgba(141, 184, 220, 0.45);
}

.panel-status-light.is-online {
  background: var(--green);
  box-shadow: 0 0 10px rgba(49, 243, 107, 0.85);
}

.panel-status-light.is-warning {
  background: #ffd43b;
  box-shadow: 0 0 12px rgba(255, 212, 59, 0.9);
  animation: cacheBreath 1.5s ease-in-out infinite;
}

.panel-status-light.is-error {
  background: #ff5f70;
  box-shadow: 0 0 12px rgba(255, 95, 112, 0.9);
  animation: cacheBreath 1.3s ease-in-out infinite;
}

.weather-panel {
  grid-area: weather;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.weather-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 0.5vw, 8px);
  padding: 8px 12px 7px;
  flex: 0 0 auto;
}

.weather-cards article {
  min-height: clamp(62px, 6.4vh, 82px);
  position: relative;
  padding: 10px 12px;
  border: 1px solid rgba(37, 126, 229, 0.45);
  border-radius: 7px;
  background: rgba(4, 30, 73, 0.9);
}

.weather-cards span {
  display: block;
  color: #b8d7f4;
  font-size: 15px;
  margin-bottom: 9px;
}

.weather-cards strong {
  color: #f0f8ff;
  font-size: 25px;
}

.weather-cards small { font-size: 15px; }

.wind-card {
  padding-right: 70px;
}

.wind-card strong {
  display: block;
  max-width: 98px;
  line-height: 1.2;
}

.wind-card small {
  display: block;
  margin-top: 2px;
}

.weather-cards b {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #43aaff;
  font-size: 31px;
  font-weight: 400;
}

.weather-cards svg {
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: 76px;
  height: 28px;
  fill: none;
  stroke: #35a5ff;
  stroke-width: 3;
}

.weather-cards article:nth-child(2) svg { stroke: #20d36e; }

.rain-bars {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  align-items: end;
  gap: 4px;
}

.rain-bars i {
  width: 5px;
  height: 9px;
  background: #0bd36c;
  box-shadow: 0 0 8px rgba(11, 211, 108, 0.7);
}

.rain-bars i:nth-child(2) { height: 21px; }
.rain-bars i:nth-child(3) { height: 13px; }
.rain-bars i:nth-child(4) { height: 28px; }
.rain-bars i:nth-child(5) { height: 16px; }
.rain-bars i:nth-child(6) { height: 10px; }
.rain-bars i:nth-child(7) { height: 24px; }

.compass {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(88, 178, 255, 0.5);
  border-radius: 50%;
}

.compass::before,
.compass::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1px;
  height: 52px;
  background: rgba(141, 184, 220, 0.36);
  transform: translate(-50%, -50%);
}

.compass::after {
  width: 52px;
  height: 1px;
}

.compass i {
  position: absolute;
  left: 20px;
  top: 9px;
  width: 13px;
  height: 29px;
  background: linear-gradient(140deg, #f9d949 0 46%, #3bbcff 47%);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  transform: rotate(45deg);
}

.forecast {
  margin: 2px 12px 10px;
  border: 1px solid rgba(37, 126, 229, 0.45);
  border-radius: 6px;
  background: rgba(3, 22, 56, 0.82);
  flex: 0 0 clamp(158px, 16.5vh, 190px);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.forecast h3 {
  margin: 0;
  height: 28px;
  padding: 4px 12px;
  color: white;
  background: linear-gradient(90deg, #0759c0, transparent);
  font-size: 17px;
}

.days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px 8px;
  flex: 1;
  min-height: 0;
}

.days div {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 0 7px;
  border-right: 1px solid rgba(44, 128, 224, 0.36);
  text-align: center;
}

.days div:last-child { border-right: 0; }
.days span, .days em, .days small { color: #d6e9ff; font-style: normal; font-size: 13px; }
.days b { font-size: 25px; line-height: 1; }
.days strong { color: white; font-size: 14px; }

.temperature-chart-card {
  margin: 0 12px 12px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(37, 126, 229, 0.45);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(5, 36, 80, 0.88), rgba(3, 22, 56, 0.82));
  flex: 1;
  min-height: 128px;
  display: flex;
  flex-direction: column;
}

.temperature-chart-card h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 16px;
}

.temperature-chart-card canvas {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 96px;
}

.valve-panel {
  grid-area: valve;
  height: 100%;
  min-height: 0;
}

.zone-tabs {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
}

.zone-tabs button {
  height: 24px;
  min-width: 42px;
  padding: 0 9px;
  border: 1px solid rgba(67, 165, 255, 0.42);
  border-radius: 4px;
  background: rgba(4, 35, 82, 0.72);
  color: #b9dcff;
  font-size: 12px;
}

.zone-tabs button.is-active {
  border-color: rgba(60, 190, 255, 0.9);
  background: linear-gradient(180deg, rgba(16, 99, 190, 0.95), rgba(7, 58, 125, 0.95));
  color: #ffffff;
}

.panel-config-btn {
  margin-left: auto;
  margin-right: 8px;
  height: 24px;
  min-width: 48px;
  border: 1px solid rgba(73, 171, 255, 0.55);
  border-radius: 4px;
  color: #dff2ff;
  background: linear-gradient(180deg, rgba(16, 99, 190, 0.95), rgba(7, 58, 125, 0.95));
  cursor: pointer;
}

.valve-list {
  padding: 8px 16px 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: calc(100% - 38px);
  align-content: start;
  gap: 6px;
  overflow: hidden;
}

.task-panel .valve-list {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.task-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 74px minmax(110px, 0.8fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(48, 137, 238, 0.42);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(4, 32, 76, 0.9), rgba(3, 22, 55, 0.72));
  color: #dcefff;
}

.task-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.task-item strong {
  border-right: 0;
  color: #56e28f;
  font-size: 13px;
}

.task-item em {
  color: #9fc8f2;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.task-item.is-auto strong { color: #b78cff; }
.task-item.is-done strong { color: #7da3c9; }

.valve-zone {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(38, 128, 237, 0.42);
  border-radius: 6px;
  background: rgba(3, 26, 64, 0.5);
  overflow: hidden;
}

.valve-zone h4 {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(75, 149, 231, 0.34);
  color: #dff2ff;
  font-size: 13px;
  font-weight: 600;
}

.valve-zone > div {
  min-height: 0;
  display: grid;
  gap: 5px;
  padding: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.valve-zone p {
  margin: 8px 0;
  color: #8fbbe3;
  font-size: 12px;
  text-align: center;
}

.valve-list [data-control="things-valve"] {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) 42px 40px;
  gap: 5px;
  align-items: center;
  color: #dcefff;
  font-size: 12px;
}

.valve-list strong {
  border-right: 1px solid rgba(101, 164, 238, 0.45);
  font-size: 15px;
}

.open { color: var(--green); }
.closed { color: var(--red); }
.valve-list em { color: white; font-style: normal; text-align: right; }

.valve-list .config-btn {
  display: none;
}

.valve-switch {
  width: 40px;
  height: 22px;
  justify-self: center;
  position: relative;
  border: 1px solid rgba(93, 157, 225, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, #293f5e, #17263f);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.valve-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c3d7ec;
  box-shadow: 0 0 8px rgba(195, 215, 236, 0.72);
  transition: transform 0.2s ease;
}

.valve-switch.is-on {
  border-color: rgba(36, 246, 107, 0.65);
  background: linear-gradient(180deg, #15934d, #0b6337);
}

.valve-switch.is-on::before {
  transform: translateX(18px);
  background: white;
  box-shadow: 0 0 10px rgba(36, 246, 107, 0.9);
}

.config-btn {
  height: 26px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid rgba(67, 165, 255, 0.46);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(12, 81, 157, 0.96), rgba(5, 44, 100, 0.96));
  box-shadow: inset 0 0 10px rgba(63, 185, 255, 0.16);
  color: #dff2ff;
  font-size: 13px;
  white-space: nowrap;
}

.config-btn:hover {
  border-color: rgba(98, 194, 255, 0.85);
  color: #ffffff;
}

.map-wrap {
  grid-area: map;
  height: 100%;
  min-height: 100px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(22, 112, 220, 0.35);
  background:
    linear-gradient(rgba(3, 18, 44, 0.46), rgba(2, 18, 44, 0.55)),
    url("imgs/bg.png") center / cover;
}

.map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, transparent 0 40%, rgba(1, 10, 28, 0.52) 80%);
  pointer-events: none;
}

.device-summary {
  position: absolute;
  top: 10px;
  left: 48px;
  right: 48px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.base-switch {
  height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(71, 167, 255, 0.36);
  border-radius: 9px;
  background: rgba(2, 32, 73, 0.82);
  box-shadow: inset 0 0 18px rgba(60, 146, 255, 0.18);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.base-switch.is-active {
  border-color: rgba(80, 210, 255, 0.9);
  background: linear-gradient(180deg, rgba(17, 101, 199, 0.92), rgba(4, 47, 105, 0.88));
  box-shadow: inset 0 0 20px rgba(77, 174, 255, 0.25), 0 0 18px rgba(25, 133, 232, 0.42);
}

.base-switch strong {
  font-size: 18px;
}

.base-switch span {
  color: #a8d9ff;
  font-size: 12px;
}

.vineyard-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.satellite-base-map,
.satellite-map-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.satellite-base-map {
  z-index: 1;
  background: #061b3b;
}

.satellite-map-title {
  position: absolute;
  left: 36px;
  bottom: 28px;
  display: grid;
  gap: 5px;
  z-index: 18;
  padding: 10px 14px;
  border: 1px solid rgba(102, 190, 255, 0.34);
  border-radius: 7px;
  background: rgba(1, 18, 45, 0.72);
  pointer-events: none;
}

.satellite-map-title strong {
  color: #ffffff;
  font-size: 18px;
}

.satellite-map-title small {
  color: #9fd6ff;
  font-size: 12px;
}

.base-map-marker {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
}

.base-map-marker i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(105, 221, 255, 0.95);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 28%, #6ce6ff, #126ed8 70%);
  box-shadow: 0 0 0 6px rgba(31, 129, 230, 0.24), 0 0 20px rgba(77, 197, 255, 0.9);
  font-style: normal;
  font-weight: 800;
}

.base-popup-card {
  min-width: 220px;
  display: grid;
  gap: 7px;
  color: #dcefff;
}

.base-popup-card strong {
  color: #fff;
  font-size: 15px;
}

.base-popup-card p {
  margin: 0;
  color: #cfe8ff;
  line-height: 1.5;
}

.base-popup-card small {
  color: #8fc9ff;
}

.base-map-popup .leaflet-popup-content-wrapper,
.base-map-popup .leaflet-popup-tip {
  border: 1px solid rgba(83, 181, 255, 0.46);
  background: rgba(2, 20, 50, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.satellite-map-fallback {
  z-index: 1;
  padding: 118px 34px 30px;
  background: radial-gradient(circle at 50% 42%, rgba(39, 135, 223, 0.28), transparent 38%), linear-gradient(145deg, rgba(5, 57, 101, 0.95), rgba(3, 21, 54, 0.96));
}

.fallback-base-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fallback-base-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(83, 181, 255, 0.42);
  border-radius: 8px;
  background: rgba(2, 24, 57, 0.78);
  color: #e6f5ff;
  text-align: left;
}

.fallback-base-card span,
.fallback-base-card small {
  color: #a9d7ff;
  font-size: 12px;
}

.route {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1789ff, transparent);
  box-shadow: 0 0 10px #1789ff;
  opacity: 0.72;
}

.route-a { width: 520px; left: 180px; top: 355px; transform: rotate(39deg); }
.route-b { width: 430px; right: 150px; top: 360px; transform: rotate(-36deg); }
.route-c { width: 410px; left: 410px; top: 400px; transform: rotate(0deg); }

.tower {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(90, 177, 255, 0.55);
  background: rgba(1, 17, 44, 0.82);
  color: white;
}

.tower::before {
  content: "☈";
  display: block;
  color: white;
  font-size: 78px;
  line-height: 65px;
  text-align: center;
  text-shadow: 0 0 10px #7fc2ff;
}

.marker {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
}

.marker i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid #4e9dff;
  border-radius: 50%;
  background: rgba(3, 16, 44, 0.88);
  box-shadow: 0 0 0 4px rgba(20, 118, 231, 0.24), 0 0 12px #1476e7;
  font-style: normal;
}

.marker::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 42px;
  width: 8px;
  height: 20px;
  border-left: 2px solid #117cff;
}

.marker span {
  min-width: 96px;
  padding: 8px 12px;
  border: 1px solid rgba(90, 177, 255, 0.62);
  border-radius: 4px;
  background: rgba(2, 17, 42, 0.8);
  color: white;
  font-size: 15px;
}

.marker b { color: var(--green); }
.marker .bad { color: var(--red); }
.m1 { left: 390px; top: 12px; }
.m2 { right: 132px; top: 228px; }
.m3 { left: 560px; bottom: 142px; }
.m4 { left: 170px; top: 252px; }
.m5 { left: 190px; top: 350px; }
.m6 { right: 150px; top: 324px; }
.m7 { right: 250px; top: 390px; }

.mid-row {
  display: contents;
}

.camera-panel,
.machine-panel {
  height: 100%;
  min-height: 0;
}

.camera-panel { grid-area: camera; }
.machine-panel { grid-area: machine; }

.camera-title {
  position: relative;
  padding-right: 76px;
}

.camera-nav {
  position: absolute;
  right: 12px;
  top: 50%;
  display: flex;
  gap: 8px;
  transform: translateY(-50%);
}

.camera-nav button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(113, 187, 255, 0.6);
  border-radius: 4px;
  background: rgba(3, 35, 83, 0.88);
  color: #e6f5ff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(60, 146, 255, 0.18);
}

.camera-nav button:hover {
  border-color: rgba(157, 213, 255, 0.95);
  background: rgba(12, 68, 137, 0.95);
}

.camera-grid {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  height: calc(100% - 38px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.camera-grid::-webkit-scrollbar {
  display: none;
}

.camera-grid article {
  position: relative;
  flex: 0 0 clamp(230px, 31%, 360px);
  height: 100%;
  min-height: 0;
  padding: 10px 9px 28px;
  border: 1px solid rgba(38, 128, 237, 0.56);
  border-radius: 6px;
  background: rgba(2, 22, 55, 0.82);
  scroll-snap-align: start;
}

.camera-grid span {
  display: block;
  margin-bottom: 9px;
  color: white;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-frame {
  position: relative;
  display: block;
  width: 100%;
  height: calc(100% - 52px);
  min-height: 130px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 8, 22, 0.82);
  cursor: pointer;
}

.camera-frame video,
.camera-frame img,
.camera-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.camera-frame video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.camera-frame img {
  z-index: 0;
}

.camera-frame iframe {
  z-index: 1;
  background: #031638;
}

.camera-frame b {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(2, 16, 38, 0.76);
  color: rgba(244, 251, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  pointer-events: none;
}

.camera-card.is-live .camera-frame video {
  opacity: 1;
}

.camera-card.is-live .camera-frame b {
  display: none;
}

.camera-card.is-ezviz {
  padding-bottom: 32px;
}

.camera-card.is-ezviz.is-live {
  padding-bottom: 62px;
}

.camera-card.is-diagnostic .camera-frame {
  display: none;
}

.camera-card.is-diagnostic {
  min-width: 320px;
  padding: 10px 12px 32px;
  background: linear-gradient(180deg, rgba(28, 59, 96, 0.9), rgba(5, 31, 72, 0.92));
}

.camera-card.is-diagnostic span {
  color: #ffd66b;
}

.camera-diagnostic {
  margin: 12px 0 0;
  padding: 12px 14px;
  min-height: 98px;
  border: 1px solid rgba(255, 214, 107, 0.28);
  border-radius: 6px;
  background: rgba(4, 28, 66, 0.78);
  color: #d7eaff;
  font-size: 13px;
  line-height: 1.7;
  white-space: normal;
}

.camera-card.is-ezviz .camera-frame {
  height: calc(100% - 52px);
}

.camera-card.is-ezviz.is-live .camera-frame {
  height: calc(100% - 86px);
}

.ezviz-controls {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 27px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.camera-card.is-ezviz:not(.is-live) .ezviz-controls {
  display: none;
}

.ezviz-controls button {
  min-height: 26px;
  border: 1px solid rgba(76, 172, 255, 0.45);
  border-radius: 5px;
  color: #dff2ff;
  background: rgba(4, 43, 91, 0.82);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.ezviz-controls button:active {
  color: #fff;
  background: linear-gradient(180deg, rgba(25, 133, 232, 0.96), rgba(8, 77, 160, 0.96));
}

.camera-card.is-error em {
  color: #ff7777;
}

.camera-grid em {
  position: absolute;
  right: 9px;
  bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-style: normal;
}

.machine-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(260px, 1.28fr);
  gap: 12px;
  padding: 8px 16px 10px;
  height: calc(100% - 38px);
  min-height: 118px;
}

.machine-left {
  display: grid;
  grid-template-rows: 92px auto;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.machine-visual {
  height: 100%;
  min-height: 78px;
  position: relative;
  border-bottom: 6px solid rgba(150, 184, 219, 0.62);
}

.pipe,
.pipe::before,
.pipe::after {
  position: absolute;
  content: "";
  background: #7ba5b7;
  box-shadow: 0 0 8px rgba(74, 195, 255, 0.65);
}

.pipe { left: 20px; top: 25px; width: 118px; height: 5px; }
.pipe::before { left: 0; top: 0; width: 5px; height: 54px; }
.pipe::after { right: 0; top: 0; width: 5px; height: 54px; }
.pipe.p2 { left: 28px; top: 44px; width: 98px; }

.tank {
  position: absolute;
  left: 54px;
  bottom: 0;
  width: 44px;
  height: 62px;
  border-radius: 16px 16px 5px 5px;
  background: linear-gradient(90deg, #d8e8ef, #789db4);
}

.box {
  position: absolute;
  right: 3px;
  top: 20px;
  width: 58px;
  height: 66px;
  border: 3px solid #8bb0c6;
  background: #d8e4eb;
}

.box::before {
  content: "";
  display: block;
  width: 27px;
  height: 17px;
  margin: 7px auto;
  background: #467581;
  border: 3px solid #85969b;
}

.filter {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 42px;
  background: linear-gradient(#1b77b7, #0b2f5d);
  border-radius: 5px;
}

.f1 { right: 50px; }
.f2 { right: 30px; }
.f3 { right: 10px; }

.manual-control-btn {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(78, 166, 255, 0.6);
  border-radius: 7px;
  color: #eaf7ff;
  background: linear-gradient(180deg, rgba(32, 132, 240, 0.95), rgba(11, 77, 164, 0.95));
  box-shadow: 0 0 14px rgba(45, 144, 255, 0.22);
  font-weight: 700;
  cursor: pointer;
}

.manual-control-btn.secondary {
  background: linear-gradient(180deg, rgba(43, 172, 126, 0.95), rgba(16, 104, 81, 0.95));
}

.manual-control-btn.tertiary {
  background: linear-gradient(180deg, rgba(35, 162, 198, 0.96), rgba(13, 94, 135, 0.96));
}

.machine-actions {
  display: grid;
  gap: 8px;
}

.machine-overview {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.machine-zone-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(74px, 0.34fr) minmax(0, 1fr) minmax(46px, 0.2fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(48, 137, 238, 0.45);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(2, 23, 55, 0.9), rgba(4, 35, 82, 0.72));
}

.machine-zone-card h3 {
  margin: 0;
  color: #eaf7ff;
  font-size: 14px;
}

.machine-zone-card p {
  margin: 0;
  color: #9fc8f2;
  font-size: 12px;
}

.machine-zone-card .machine-flow-line,
.machine-zone-card .machine-switch-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.machine-zone-card .machine-flow-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  gap: 4px 8px;
}

.machine-zone-card .machine-switch-line {
  justify-content: center;
  align-items: center;
}

.machine-zone-card b {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 2px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.machine-zone-card b span {
  color: #d8efff;
}

.machine-zone-card b strong {
  font-size: 13px;
}

.machine-zone-card b em {
  color: #d8efff;
  font-style: normal;
  font-size: 11px;
  opacity: 0.9;
}

.machine-zone-card i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ff075;
  box-shadow: 0 0 8px rgba(47, 240, 117, 0.86);
}

.machine-zone-card i.is-off {
  background: #ff6172;
  box-shadow: 0 0 7px rgba(255, 97, 114, 0.78);
}

.switches {
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.switches div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 58px 58px;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(48, 137, 238, 0.45);
  border-radius: 6px;
  background: rgba(2, 23, 55, 0.76);
}

button {
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #126f3f, #0b5a34);
  color: white;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

button.off { background: linear-gradient(180deg, #29405d, #1d2d45); }
button.warn { background: linear-gradient(180deg, #a33c4d, #71303b); }

.switches button:not(.is-active) {
  opacity: 0.56;
}

.switches button.off.is-active {
  opacity: 1;
  background: linear-gradient(180deg, #a33c4d, #71303b);
}

.schedule-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(0, 9, 24, 0.72);
  backdrop-filter: blur(4px);
}

.schedule-dialog.is-open {
  display: grid;
}

.schedule-dialog__panel {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  padding: 20px 22px 18px;
  border: 1px solid rgba(67, 165, 255, 0.65);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 39, 86, 0.98), rgba(1, 20, 48, 0.98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.44), inset 0 0 18px rgba(35, 148, 255, 0.16);
  color: #eaf6ff;
}

.schedule-dialog__panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: white;
}

.schedule-dialog__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: rgba(22, 55, 92, 0.7);
  font-size: 22px;
  line-height: 1;
}

.schedule-dialog label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #9fc7ea;
  font-size: 15px;
}

.schedule-dialog input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(67, 165, 255, 0.48);
  border-radius: 6px;
  outline: 0;
  background: rgba(1, 18, 43, 0.88);
  color: white;
  font: inherit;
}

.schedule-dialog input:focus {
  border-color: rgba(36, 246, 107, 0.72);
  box-shadow: 0 0 0 3px rgba(36, 246, 107, 0.12);
}

.schedule-dialog__message {
  min-height: 22px;
  margin: 4px 0 12px;
  color: #24f66b;
  font-size: 14px;
}

.schedule-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.machine-metrics {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(48, 137, 238, 0.45);
  border-radius: 6px;
  background: rgba(2, 23, 55, 0.76);
  color: #b9d7f4;
  font-size: 16px;
}

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

.flow-metrics span {
  display: grid;
  grid-template-rows: 16px 24px;
  align-items: end;
  gap: 2px;
  min-width: 0;
}

.flow-metrics em {
  color: #9fc7ea;
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}

.flow-metrics b {
  display: block;
  color: white;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.flow-metrics small {
  color: #d5eaff;
  font-size: 11px;
  font-weight: 400;
}

.sensor-panel {
  grid-area: sensor;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 38px minmax(0, 1.25fr) minmax(0, 0.75fr);
  overflow: hidden;
}

.sensor-list {
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.sensor-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sensor-list.is-auto-scrolling {
  overflow-y: auto;
}

.sensor-card {
  margin: 10px 12px 0;
  padding: 9px 16px 11px;
  border: 1px solid rgba(38, 128, 237, 0.5);
  border-radius: 6px;
  background: rgba(5, 36, 80, 0.82);
}

.sensor-card h3,
.soil-box h3 {
  margin: 0 0 8px;
  color: #bcdfff;
  font-size: 15px;
}

.sensor-card h3 small {
  float: right;
  color: #78b6e9;
  font-size: 12px;
  font-weight: 400;
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sensor-grid span {
  display: grid;
  gap: 4px;
  padding-left: 9px;
  border-right: 1px solid rgba(75, 149, 231, 0.38);
  color: #b3d3ee;
  font-size: 12px;
}

.sensor-grid span:last-child { border-right: 0; }
.sensor-grid b { color: white; font-size: 15px; font-weight: 500; white-space: nowrap; }
.sensor-grid small { font-size: 10px; }

.sensor-empty {
  margin: 10px 12px 0;
  padding: 18px 14px;
  border: 1px solid rgba(38, 128, 237, 0.42);
  border-radius: 6px;
  background: rgba(5, 36, 80, 0.72);
  color: #b8d7f4;
  text-align: center;
}

.sensor-radar-board {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 12px 10px;
}

.sensor-radar-board article {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr);
  border: 1px solid rgba(38, 128, 237, 0.5);
  border-radius: 6px;
  background: rgba(5, 36, 80, 0.74);
  overflow: hidden;
}

.sensor-radar-board h3 {
  margin: 0;
  padding: 4px 7px 0;
  color: #bcdfff;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sensor-radar-board canvas {
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.radar-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(0, 8, 24, 0.72);
  backdrop-filter: blur(4px);
}

.radar-modal.is-open {
  display: grid;
}

.radar-modal__panel {
  width: min(900px, 86vw);
  height: min(680px, 82vh);
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  border: 1px solid rgba(71, 167, 255, 0.5);
  border-radius: 8px;
  background: rgba(2, 22, 55, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42), inset 0 0 18px rgba(60, 146, 255, 0.12);
}

.radar-modal__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(75, 149, 231, 0.34);
  color: #eaf7ff;
  font-size: 16px;
  font-weight: 700;
}

.radar-modal__title button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(113, 187, 255, 0.55);
  border-radius: 4px;
  background: rgba(3, 35, 83, 0.85);
  color: #ffffff;
  font-size: 18px;
}

.radar-modal canvas {
  width: 100%;
  height: 100%;
}

.device-control-modal .radar-modal__panel {
  width: min(1180px, 94vw);
  height: min(760px, 88vh);
}

.device-control-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

.device-control-body.single {
  grid-template-columns: 1fr;
}

.device-control-body.single .fertigation-mimic-section .fertigation-process {
  min-height: 560px;
}

.device-control-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(48, 137, 238, 0.42);
  border-radius: 8px;
  background: rgba(2, 20, 51, 0.7);
  overflow: hidden;
}

.device-control-section h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(75, 149, 231, 0.34);
  color: #eaf7ff;
  font-size: 15px;
}

.valve-zone-tabs {
  display: flex;
  gap: 8px;
  padding: 9px 10px 0;
}

.valve-zone-tabs button {
  min-width: 58px;
  min-height: 28px;
  border: 1px solid rgba(76, 172, 255, 0.45);
  border-radius: 5px;
  color: #b9dcff;
  background: rgba(4, 35, 82, 0.72);
  cursor: pointer;
}

.valve-zone-tabs button.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 99, 190, 0.95), rgba(7, 58, 125, 0.95));
}

.device-control-list {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.device-control-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 54px 54px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid rgba(63, 145, 236, 0.36);
  border-radius: 7px;
  background: rgba(5, 34, 77, 0.78);
}

.device-control-row span {
  min-width: 0;
  color: #dff2ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-control-row button {
  height: 28px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(180deg, #168d4d, #0c6338);
  cursor: pointer;
}

.device-control-row button.is-off {
  background: linear-gradient(180deg, #9a3849, #71303b);
}

.valve-control-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.greenhouse-mimic-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(42, 183, 218, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(2, 30, 66, 0.92), rgba(1, 14, 38, 0.96));
}

.greenhouse-control-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  align-content: center;
}

.greenhouse-control-status {
  grid-column: 1 / -1;
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(76, 172, 255, 0.32);
  border-radius: 7px;
  color: #9fe8ff;
  background: rgba(2, 24, 57, 0.72);
  font-size: 12px;
}

.greenhouse-device-tabs {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 0 6px;
  background: rgba(2, 24, 57, 0.94);
}

.greenhouse-device-tabs button {
  min-height: 34px;
  border: 1px solid rgba(76, 172, 255, 0.45);
  border-radius: 7px;
  color: #b9dcff;
  background: rgba(4, 43, 91, 0.82);
  cursor: pointer;
  font-weight: 700;
}

.greenhouse-device-tabs button.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(25, 133, 232, 0.96), rgba(8, 77, 160, 0.96));
  box-shadow: 0 0 14px rgba(45, 144, 255, 0.22);
}

.greenhouse-device-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.greenhouse-device-group h4 {
  margin: 0;
  padding: 6px 10px;
  border-left: 3px solid #42c5ff;
  border-radius: 5px;
  color: #eaf7ff;
  background: rgba(4, 43, 91, 0.72);
  font-size: 14px;
}

.greenhouse-device-group > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.greenhouse-control-tile {
  min-height: 132px;
  display: grid;
  grid-template-rows: 44px auto auto auto;
  gap: 6px;
  justify-items: center;
  align-content: center;
  padding: 14px 10px;
  border: 1px solid rgba(76, 172, 255, 0.45);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(4, 43, 91, 0.82), rgba(2, 24, 57, 0.9));
  box-shadow: inset 0 0 24px rgba(44, 146, 239, 0.12), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.greenhouse-control-tile > i {
  width: 48px;
  height: 34px;
  border: 2px solid rgba(154, 224, 255, 0.75);
  border-bottom: 6px solid rgba(154, 224, 255, 0.75);
  border-radius: 24px 24px 8px 8px;
  background: linear-gradient(180deg, rgba(33, 151, 229, 0.95), rgba(5, 73, 150, 0.95));
  box-shadow: 0 0 16px rgba(57, 174, 255, 0.28);
}

.greenhouse-control-tile > i.is-on {
  background: linear-gradient(180deg, rgba(55, 233, 138, 0.95), rgba(11, 129, 78, 0.95));
  box-shadow: 0 0 18px rgba(54, 237, 142, 0.42);
}

.greenhouse-control-tile span {
  color: #eaf7ff;
  font-weight: 700;
  text-align: center;
}

.greenhouse-control-tile strong {
  color: #9fe8ff;
  font-size: 12px;
}

.greenhouse-control-tile div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.greenhouse-control-tile button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  color: #eafff4;
  background: linear-gradient(180deg, rgba(36, 152, 94, 0.95), rgba(19, 101, 67, 0.95));
  font-weight: 700;
  cursor: pointer;
}

.greenhouse-control-tile button.is-off {
  color: #fff4f6;
  background: linear-gradient(180deg, rgba(178, 61, 82, 0.95), rgba(119, 34, 50, 0.95));
}

.greenhouse-login-box {
  grid-column: 1 / -1;
  width: min(620px, 100%);
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(76, 172, 255, 0.42);
  border-radius: 10px;
  background: rgba(2, 24, 57, 0.88);
  color: #dff2ff;
}

.greenhouse-captcha-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 160px 72px;
  gap: 10px;
  align-items: center;
}

.greenhouse-captcha-row input {
  min-height: 34px;
  border: 1px solid rgba(76, 172, 255, 0.45);
  border-radius: 6px;
  padding: 0 10px;
  color: #eaf7ff;
  background: rgba(2, 18, 45, 0.82);
}

.greenhouse-captcha-row img {
  width: 160px;
  height: 40px;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
}

.greenhouse-login-box button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(180deg, rgba(35, 162, 198, 0.96), rgba(13, 94, 135, 0.96));
  cursor: pointer;
}

.greenhouse-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: rgba(0, 8, 22, 0.52);
}

.greenhouse-confirm-box {
  width: min(360px, 90vw);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(76, 172, 255, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(3, 39, 84, 0.98), rgba(1, 18, 46, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36), inset 0 0 24px rgba(44, 146, 239, 0.12);
}

.greenhouse-confirm-box h4 {
  margin: 0;
  color: #eaf7ff;
  font-size: 17px;
}

.greenhouse-confirm-box p {
  margin: 0;
  color: #b9dcff;
  line-height: 1.5;
}

.greenhouse-confirm-box div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.greenhouse-confirm-box button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(180deg, #168d4d, #0c6338);
  cursor: pointer;
  font-weight: 700;
}

.greenhouse-confirm-box button.is-cancel {
  background: linear-gradient(180deg, #68798d, #3f4e61);
}

.valve-control-tile {
  min-height: 138px;
  display: grid;
  grid-template-rows: 64px auto 30px;
  gap: 7px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(76, 172, 255, 0.42);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 18%, rgba(25, 115, 210, 0.42), rgba(2, 21, 52, 0.92) 70%);
}

.valve-visual {
  position: relative;
  height: 62px;
}

.valve-visual::before,
.valve-visual::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 8px;
  top: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b8795, #d5e8ef, #6b8795);
  box-shadow: 0 0 12px rgba(93, 176, 255, 0.34);
}

.valve-visual i {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 42px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(90deg, #cce2ed, #7e9db0);
}

.valve-visual b {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border: 4px solid #d9edf5;
  border-radius: 50%;
  background: radial-gradient(circle, #f6d77c 0 28%, #6f8693 30% 100%);
}

.valve-control-tile strong {
  color: #eaf7ff;
  text-align: center;
}

.valve-control-tile > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.valve-control-tile button,
.task-config-actions button,
.task-mode-tabs button {
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(180deg, #168d4d, #0c6338);
  cursor: pointer;
}

.valve-control-tile button.is-off,
.task-config-actions .off {
  background: linear-gradient(180deg, #9a3849, #71303b);
}

.task-config-modal .radar-modal__panel {
  width: min(760px, 92vw);
  height: auto;
  max-height: 88vh;
}

.task-config-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
}

.task-mode-tabs,
.task-config-message,
.task-config-actions {
  grid-column: 1 / -1;
}

.task-mode-tabs {
  display: flex;
  gap: 8px;
}

.task-mode-tabs button {
  min-height: 30px;
  padding: 0 14px;
  opacity: 0.58;
  background: rgba(20, 91, 170, 0.9);
}

.task-mode-tabs button.is-active {
  opacity: 1;
  background: linear-gradient(180deg, rgba(32, 132, 240, 0.95), rgba(11, 77, 164, 0.95));
}

.task-config-form label {
  display: grid;
  gap: 6px;
  color: #b9d7f4;
  font-size: 13px;
}

.task-config-form input,
.task-config-form select {
  min-height: 34px;
  border: 1px solid rgba(73, 171, 255, 0.45);
  border-radius: 5px;
  padding: 0 9px;
  color: #eaf7ff;
  background: rgba(3, 28, 67, 0.92);
}

.task-config-message {
  min-height: 18px;
  margin: 0;
  color: #7ef1a2;
}

.task-config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.task-config-actions button {
  min-width: 82px;
  min-height: 32px;
}

.fertigation-mimic-section {
  background: linear-gradient(180deg, rgba(2, 30, 66, 0.92), rgba(1, 14, 38, 0.96));
}

.fertigation-mimic-section .fertigation-process {
  display: block;
  padding: 12px;
  overflow: auto hidden;
}

.fert-process-multi {
  display: flex;
  gap: 14px;
  min-height: 100%;
}

.fert-process-unit {
  display: grid;
  grid-template-rows: auto 76px minmax(0, 1fr);
  gap: 10px;
  flex: 0 0 min(920px, 100%);
  min-height: 100%;
}

.fert-process-unit h4 {
  margin: 0;
  color: #e8f7ff;
  font-size: 16px;
  letter-spacing: 0;
}

.fert-process-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fert-process-head div {
  position: relative;
  padding: 10px 12px 10px 54px;
  border-bottom: 2px solid rgba(42, 160, 255, 0.68);
  background: linear-gradient(90deg, rgba(8, 58, 104, 0.78), rgba(3, 34, 76, 0.25));
}

.fert-process-head div::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #d9f6ff 0 22%, #1e8fd8 24% 100%);
  box-shadow: 0 0 12px rgba(74, 179, 255, 0.48);
}

.fert-process-head span {
  display: block;
  color: #8bbde8;
  font-size: 12px;
}

.fert-process-head strong {
  color: #ffffff;
  font-size: 18px;
}

.fert-process-stage {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(110, 181, 230, 0.46);
  border-radius: 8px;
  background: rgba(1, 18, 43, 0.72);
  overflow: hidden;
}

.fert-tanks {
  position: absolute;
  left: 50%;
  top: 22px;
  display: flex;
  gap: 24px;
  transform: translateX(-58%);
  z-index: 2;
}

.fert-bucket-unit {
  position: relative;
  width: 98px;
  height: 330px;
  text-align: center;
}

.fert-tank {
  position: relative;
  width: 98px;
  height: 160px;
  text-align: center;
}

.fert-tank em {
  display: block;
  margin-bottom: 6px;
  padding: 5px;
  border: 1px solid rgba(71, 167, 255, 0.42);
  color: #dff2ff;
  font-size: 12px;
  font-style: normal;
  background: rgba(5, 50, 96, 0.72);
}

.fert-tank i {
  display: block;
  width: 76px;
  height: 108px;
  margin: 0 auto;
  border: 2px solid rgba(122, 193, 246, 0.62);
  border-radius: 34px 34px 18px 18px;
  background: linear-gradient(180deg, #064d9f 0 48%, #bfe8dd 49% 62%, #064d9f 63% 100%);
  box-shadow: inset 0 0 18px rgba(120, 205, 255, 0.35), 0 0 16px rgba(18, 114, 220, 0.28);
}

.fert-tank:not(.has-liquid) i {
  background: linear-gradient(180deg, #064d9f, #073b82);
}

.fert-tank b {
  color: #9fc8f2;
  font-size: 11px;
}

.bucket-flow {
  display: grid;
  gap: 2px;
  width: 86px;
  margin: 8px auto 0;
  padding: 5px 6px;
  border: 1px solid rgba(87, 178, 255, 0.5);
  border-radius: 7px;
  color: #dff2ff;
  background: linear-gradient(180deg, rgba(8, 58, 104, 0.9), rgba(3, 34, 76, 0.72));
  box-shadow: inset 0 0 10px rgba(84, 174, 255, 0.12);
  font-size: 11px;
  line-height: 1.15;
}

.bucket-flow span {
  color: #9fc8f2;
}

.bucket-flow strong {
  color: #ffffff;
  font-size: 15px;
}

.fert-machine {
  position: absolute;
  right: 54px;
  top: 118px;
  width: 158px;
  height: 176px;
  border-radius: 16px;
  background: linear-gradient(90deg, #d8e5eb, #8eabb9);
  box-shadow: 34px 22px 0 #c2cbd1, 0 0 24px rgba(120, 200, 255, 0.22);
}

.fert-machine i {
  position: absolute;
  left: 38px;
  top: 48px;
  width: 58px;
  height: 92px;
  border-radius: 28px;
  background: rgba(107, 146, 161, 0.28);
}

.fert-machine b {
  position: absolute;
  left: 20px;
  bottom: 12px;
  color: #5e7b8b;
}

.fert-pipe {
  position: absolute;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8e5eb, #81a5b6);
  z-index: 1;
}

.fert-pipe.main {
  left: 148px;
  right: 330px;
  top: 266px;
}

.process-node {
  position: absolute;
  width: 54px;
  min-height: 58px;
  border: 0;
  color: #dff2ff;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.process-node i {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 4px;
  border: 4px solid #d9edf5;
  border-radius: 50%;
  background: radial-gradient(circle, #f6d77c 0 28%, #6f8693 30% 100%);
}

.process-node.is-on i {
  box-shadow: 0 0 14px rgba(47, 240, 117, 0.9);
}

.process-node span,
.process-node b {
  display: block;
  font-size: 12px;
  line-height: 1.1;
}

.fert-bucket-unit .process-node {
  width: 70px;
  text-align: center;
  z-index: 4;
}

.fert-bucket-unit .process-node i {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.node-mixer-1,
.node-mixer-2,
.node-mixer-3,
.node-mixer-4 {
  left: 14px;
  top: 246px;
}

.node-valve-1,
.node-valve-2,
.node-valve-3,
.node-valve-4 {
  left: 14px;
  top: 302px;
}

.pump-cluster {
  position: absolute;
  right: 226px;
  top: 166px;
  display: grid;
  gap: 28px;
  z-index: 3;
}

.pump-cluster .process-node {
  position: relative;
  width: 70px;
  min-height: 58px;
}

.node-water,
.node-fert {
  left: auto;
  top: auto;
}

.soil-box {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 10px;
  margin: 10px 12px 10px;
  padding: 9px 8px 9px 14px;
  border: 1px solid rgba(38, 128, 237, 0.5);
  border-radius: 6px;
  background: rgba(5, 36, 80, 0.82);
  flex: 0 0 auto;
  min-height: 126px;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  font-size: 15px;
}

td, th {
  padding: 5px 4px;
  text-align: left;
  font-weight: 400;
}

th { color: #b7d7f2; }

.soil-tube {
  height: 128px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      rgba(48, 181, 70, 0.88) 0 24%,
      rgba(117, 75, 40, 0.96) 24% 49%,
      rgba(90, 55, 31, 0.98) 49% 74%,
      rgba(62, 38, 25, 1) 74% 100%);
}

.soil-tube::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 23%, rgba(255,255,255,.22) 24%, transparent 25%, transparent 48%, rgba(255,255,255,.2) 49%, transparent 50%, transparent 73%, rgba(255,255,255,.16) 74%, transparent 75%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 2px, transparent 2px 16px);
  pointer-events: none;
}

.soil-tube::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 10px;
  height: 104px;
  transform: translateX(-50%);
  background: #d7eef1;
  box-shadow: 0 0 10px white;
}

.soil-tube i {
  display: block;
  position: absolute;
  z-index: 2;
  right: 12px;
  color: white;
  font-size: 12px;
  font-style: normal;
}

.soil-tube i:nth-child(1) { top: 28px; }
.soil-tube i:nth-child(2) { top: 64px; }
.soil-tube i:nth-child(3) { top: 100px; }

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(430px, 1.1fr) minmax(330px, 0.95fr) minmax(330px, 0.95fr);
  gap: clamp(10px, 0.8vw, 16px);
  margin-top: clamp(8px, 0.65vw, 12px);
  align-items: stretch;
}

.bottom-grid .panel {
  height: clamp(230px, 24vh, 305px);
  min-height: 0;
}

.phenology-main {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 18px;
  padding: 9px 14px 2px;
}

.phenology-main img {
  width: 154px;
  height: clamp(96px, 11vh, 124px);
  object-fit: cover;
  border-radius: 4px;
}

.phenology-main span { color: #b8d7f4; }
.phenology-main strong {
  display: block;
  margin: 6px 0 9px;
  color: var(--green);
  font-size: 23px;
}

.phenology-main p {
  margin: 6px 0;
  color: white;
  font-size: 17px;
}

.phenology-main label {
  display: grid;
  grid-template-columns: 45px 1fr 42px;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.phenology-main label i {
  height: 9px;
  background: rgba(82, 147, 223, 0.42);
  border-radius: 20px;
  overflow: hidden;
}

.phenology-main label b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: start;
  gap: 2px;
  padding: 9px 14px 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 23px;
  height: 2px;
  background: #2f8dff;
}

.timeline div {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #c9e5ff;
  font-size: 13px;
}

.timeline i {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: #d9f3ff;
  box-shadow: 0 0 12px #40b9ff;
}

.timeline .active i {
  width: 16px;
  height: 16px;
  margin: 0 auto 7px;
  background: #1e6aff;
  border: 2px solid #2aff70;
  box-shadow: 0 0 0 5px rgba(42, 255, 112, 0.18), 0 0 18px #2aff70;
}

.timeline .active span {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(3, 94, 61, 0.9);
  color: var(--green);
  white-space: nowrap;
  font-size: 12px;
}

.advice-panel {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.advice-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 10px;
  scrollbar-width: none;
  user-select: none;
}

.advice-scroll::-webkit-scrollbar {
  display: none;
}

.advice-scroll::selection,
.advice-scroll *::selection {
  background: transparent;
  color: inherit;
}

.advice-scroll article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  margin: 7px 12px 0;
  padding: 7px 13px;
  border: 1px solid rgba(38, 128, 237, 0.42);
  border-radius: 7px;
  background: rgba(5, 36, 80, 0.82);
}

.advice-scroll i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #1976df, #0d489b);
  font-style: normal;
  font-size: 22px;
}

.advice-scroll article:nth-child(2) i { background: linear-gradient(180deg, #30b96c, #147541); }
.advice-scroll article:nth-child(3) i { background: linear-gradient(180deg, #d7a82d, #987115); }
.advice-scroll article:nth-child(4) i { background: linear-gradient(180deg, #d85362, #9a2d3d); }

.advice-scroll strong {
  color: white;
  font-size: 16px;
}

.advice-scroll p {
  margin: 5px 0 0;
  color: #c9e5ff;
  font-size: 14px;
  line-height: 1.45;
}

.chart-panel {
  padding-bottom: 8px;
}

.insect-panel {
  padding-bottom: 8px;
}

.chart-title {
  background: linear-gradient(90deg, #064eb0, transparent);
  font-size: 18px;
}

.chart-title em {
  color: #91c9ef;
  font-size: 13px;
  font-style: normal;
}

.chart-panel canvas {
  display: block;
  width: calc(100% - 22px);
  height: calc(100% - 48px);
  min-height: 170px;
  margin: 7px 11px 0;
  cursor: zoom-in;
}

.soil-modal__panel {
  width: min(1180px, 92vw);
  height: min(760px, 86vh);
}

.soil-modal__body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(520px, 1.25fr);
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

.soil-average-table,
.soil-detail-charts article {
  min-height: 0;
  border: 1px solid rgba(58, 154, 255, 0.42);
  border-radius: 7px;
  background: rgba(5, 36, 80, 0.72);
}

.soil-average-table {
  padding: 12px;
  overflow: auto;
}

.soil-average-table h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
}

.soil-average-table table {
  font-size: 14px;
}

.soil-average-table th,
.soil-average-table td {
  border-bottom: 1px solid rgba(75, 149, 231, 0.22);
  white-space: nowrap;
}

.soil-detail-charts {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.soil-detail-charts canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.insect-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(220px, 1.25fr);
  gap: 12px;
  height: calc(100% - 50px);
  padding: 12px;
}

.insect-visual {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}

.trap-light,
.battery-ring {
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 154, 255, 0.42);
  border-radius: 8px;
  background: rgba(5, 36, 80, 0.74);
}

.trap-light i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #8da4b8 0 34%, rgba(141, 164, 184, 0.22) 36% 100%);
  box-shadow: 0 0 18px rgba(141, 164, 184, 0.35);
}

.trap-light.is-on i {
  background: radial-gradient(circle, #ffe58a 0 34%, rgba(255, 213, 74, 0.22) 36% 100%);
  box-shadow: 0 0 24px rgba(255, 212, 59, 0.75);
}

.trap-light span,
.battery-ring span {
  color: #9dc4e6;
  font-size: 13px;
}

.trap-light strong,
.battery-ring strong {
  color: #fff;
  font-size: 22px;
}

.battery-ring {
  position: relative;
}

.battery-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 4px solid rgba(49, 243, 107, 0.4);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(49, 243, 107, 0.14);
}

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

.insect-metrics span {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(49, 143, 230, 0.38);
  border-radius: 7px;
  background: rgba(3, 30, 70, 0.72);
  color: #a7cdeb;
  font-size: 13px;
}

.insect-metrics b {
  overflow: hidden;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

canvas { max-width: 100%; }

@media (max-width: 1500px) {
  .header {
    grid-template-columns: 260px 1fr 260px;
  }

  .header h1 {
    font-size: 34px;
    letter-spacing: 5px;
  }

  .title-wrap p {
    font-size: 12px;
  }

  .content-grid {
    grid-template-columns: minmax(310px, 0.95fr) minmax(520px, 1.55fr) minmax(310px, 0.95fr);
  }

  .weather-cards strong {
    font-size: 24px;
  }

  .device-summary {
    left: 28px;
    right: 28px;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
  }

  .device-summary div {
    grid-template-columns: 42px 28px 1fr;
    padding: 0 10px;
  }

  .device-summary span {
    font-size: 28px;
  }

  .device-summary strong {
    font-size: 25px;
  }

  .bottom-grid {
    grid-template-columns: repeat(2, minmax(360px, 1fr));
  }
}

@media (max-width: 1180px) {
  body {
    overflow-x: hidden;
  }

  .screen {
    min-height: auto;
  }

  .header {
    height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 18px;
  }

  .brand,
  .header-right,
  .header h1,
  .title-wrap {
    justify-content: center;
    text-align: center;
  }

  .header-right {
    justify-content: center;
  }

  .content-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "map map"
      "weather sensor"
      "valve machine"
      "camera camera";
  }

  .map-wrap {
    height: clamp(430px, 56vw, 620px);
  }

  .weather-panel,
  .sensor-panel,
  .valve-panel,
  .camera-panel,
  .machine-panel {
    height: auto;
  }

  .weather-panel,
  .sensor-panel {
    min-height: 520px;
  }

  .valve-panel,
  .machine-panel {
    min-height: 300px;
  }

  .camera-panel {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .content-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-areas:
      "map"
      "weather"
      "sensor"
      "machine"
      "camera"
      "valve";
  }

  .header h1 {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .title-wrap p {
    font-size: 11px;
    line-height: 1.35;
  }

  .weather-cards,
  .days,
  .camera-grid,
  .machine-body,
  .machine-metrics,
  .insect-card,
  .insect-metrics,
  .sensor-grid,
  .soil-box,
  .phenology-main {
    grid-template-columns: 1fr;
  }

  .weather-cards .wind-card {
    grid-column: span 1;
  }

  .device-summary {
    grid-template-columns: repeat(2, 1fr);
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .map-wrap {
    height: 520px;
  }

  .marker {
    transform: scale(0.82);
    transform-origin: left top;
  }

  .m1 { left: 42%; top: 150px; }
  .m2 { right: 8%; top: 230px; }
  .m3 { left: 44%; bottom: 100px; }
  .m4 { left: 8%; top: 250px; }
  .m5 { left: 12%; top: 340px; }
  .m6 { right: 8%; top: 335px; }
  .m7 { right: 18%; top: 390px; }

  .bottom-grid .panel {
    height: auto;
    min-height: 300px;
  }
}
