﻿:root{
  --ink: #0d2c34;
  --muted: #4e7079;
  --bg-a: #cdeee2;
  --bg-b: #b9e4d5;
  --card: rgba(235, 250, 247, 0.78);
  --line: rgba(18, 87, 96, 0.2);
  --accent: #109f9a;
  --accent-2: #2cbfb4;
  --shadow: 0 22px 48px rgba(14, 69, 75, 0.14);
  --radius: 18px;
}
*{
  box-sizing: border-box;
  scrollbar-width: none;
}
*::-webkit-scrollbar{
  width: 0;
  height: 0;
}
html,
body{
  height: 100%;
  overflow: hidden;
}
body{
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(48, 196, 132, 0.22), transparent 34%),
    radial-gradient(circle at 86% 80%, rgba(37, 156, 123, 0.22), transparent 30%),
    linear-gradient(150deg, var(--bg-a), var(--bg-b) 58%, #a8d8c8);
}
body::before{
  content: "";
  position: fixed;
  inset: -4% -2%;
  background:
    radial-gradient(55% 75% at 8% 24%, rgba(58, 156, 96, 0.26), transparent 56%),
    radial-gradient(42% 66% at 24% 82%, rgba(42, 141, 97, 0.22), transparent 58%),
    radial-gradient(52% 70% at 86% 18%, rgba(47, 152, 101, 0.25), transparent 59%),
    radial-gradient(48% 68% at 78% 82%, rgba(34, 128, 90, 0.2), transparent 56%),
    repeating-linear-gradient(112deg, rgba(62, 158, 105, 0.1) 0 14px, transparent 14px 34px);
  filter: blur(8px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
body::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(228, 255, 190, 0.11), transparent 34%),
    radial-gradient(circle at 76% 14%, rgba(134, 214, 152, 0.2), transparent 35%);
  pointer-events: none;
  z-index: 0;
}
code{
  font-family: "Space Grotesk", "Consolas", monospace;
  font-size: 0.83rem;
  border: 1px solid rgba(16, 32, 43, 0.15);
  background: rgba(16, 32, 43, 0.05);
  border-radius: 8px;
  padding: 2px 6px;
  word-break: break-all;
}
.app-shell{
  width: min(2400px, calc(100% - 10px));
  height: calc(100vh - 16px);
  margin: 8px auto 6px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.system-header{
  text-align: center;
  margin-bottom: 8px;
  flex: 0 0 auto;
}
.system-header h1{
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.03em;
}
.workspace{
  display: grid;
  grid-template-columns: 332px minmax(0, 1fr) 292px;
  gap: 10px;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
}
.panel{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.left-panel,
.right-panel{
  padding: 10px;
  max-height: 100%;
  overflow: auto;
}
.center-panel{
  padding: 12px;
  min-height: 0;
  overflow: auto;
}
.panel h2{
  margin: 0 0 6px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.15rem;
}
.panel h3{
  margin: 7px 0 5px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}
.upload-form{
  border: 1px solid rgba(16, 32, 43, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px;
  display: grid;
  gap: 2px;
}
.file-picker{
  border: 1px solid rgba(16, 32, 43, 0.18);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 2px;
}
.file-picker span{
  display: inline-block;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 9px;
  background: #0f5d62;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.file-picker input[type="file"]{
  width: 100%;
}
.file-picker-btns{
  border-style: solid;
  border-width: 1px;
  border-color: rgba(16, 32, 43, 0.16);
}
.file-trigger-btn{
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  padding: 3px 5px;
}
.pick-hint{
  margin: 0;
  color: #4f6f75;
  font-size: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.params{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.params label{
  display: grid;
  gap: 2px;
}
.params span{
  color: var(--muted);
  font-size: 0.62rem;
}
.params input{
  border: 1px solid rgba(16, 32, 43, 0.2);
  border-radius: 7px;
  padding: 3px 5px;
  font: inherit;
  font-size: 0.72rem;
}
.dji-selected-summary{
  margin: 0;
  border: 1px solid rgba(16, 149, 155, 0.24);
  border-radius: 7px;
  background: rgba(236, 252, 248, 0.8);
  color: #0f6468;
  font-size: 0.66rem;
  padding: 3px 5px;
}
button[type="submit"]{
  border: 0;
  border-radius: 9px;
  padding: 6px 8px;
  color: #fff;
  font: 700 0.75rem "Space Grotesk", "Segoe UI", sans-serif;
  background: linear-gradient(120deg, #149f9b, #2ab8c2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button[type="submit"]:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(30, 151, 161, 0.3);
}
.alerts{
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.alert{
  border-radius: 10px;
  background: rgba(19, 129, 123, 0.13);
  color: #0d5f63;
  border: 1px solid rgba(19, 129, 123, 0.32);
  padding: 8px 10px;
  font-size: 0.89rem;
}
.dji-live-panel{
  margin-top: 4px;
  border: 1px solid rgba(16, 32, 43, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  padding: 4px;
  display: grid;
  gap: 2px;
}
.dji-live-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  order: 1;
}
.dji-live-head h3{
  margin: 0;
  font-size: 0.84rem;
}
.dji-live-head-actions{
  display: flex;
  gap: 4px;
  align-items: center;
}
.dji-advanced-actions{
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.dji-config-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.dji-config-grid label{
  display: grid;
  gap: 4px;
}
.dji-config-grid span{
  color: var(--muted);
  font-size: 0.74rem;
}
.dji-config-grid input{
  width: 100%;
  border: 1px solid rgba(16, 32, 43, 0.2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 7px 9px;
  font: 500 0.78rem "Space Grotesk", "Segoe UI", sans-serif;
}
.dji-token-label input{
  font-family: "Space Grotesk", "Consolas", monospace;
}
.dji-openapi-status{
  margin: 0;
  border: 1px solid rgba(16, 32, 43, 0.12);
  border-radius: 7px;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.62rem;
  color: #44646e;
  order: 3;
}
.dji-openapi-status.is-online{
  color: #0b7d3a;
  border-color: rgba(20, 140, 74, 0.36);
}
.dji-openapi-status.is-offline{
  color: #6d7f86;
}
.dji-live-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  order: 4;
}
.dji-live-item{
  border: 1px solid rgba(16, 32, 43, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  padding: 2px 4px;
  display: grid;
  gap: 1px;
}
.dji-live-item.full{
  grid-column: 1 / -1;
  order: 5;
}
.dji-live-item span{
  color: var(--muted);
  font-size: 0.56rem;
}
.dji-live-item strong{
  color: #0a5f63;
  font: 600 0.6rem "Space Grotesk", "Segoe UI", sans-serif;
  word-break: break-word;
}
#dji-live-status.is-online{
  color: #0c7a3a;
}
#dji-live-status.is-offline{
  color: #6f8086;
}
.dji-recent-list{
  max-height: 76px;
  overflow: auto;
  display: grid;
  gap: 4px;
}
.dji-recent-item{
  border: 1px solid rgba(16, 32, 43, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
  padding: 4px 6px;
  display: grid;
  gap: 2px;
  font-size: 0.66rem;
  line-height: 1.35;
}
.dji-recent-item .time{
  color: #48676f;
  font-size: 0.64rem;
}
.dji-recent-item .meta{
  color: #0d5f63;
}
.dji-media-actions{
  display: flex;
  gap: 4px;
  min-width: 0;
  justify-content: flex-end;
}
.dji-media-filters{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.dji-media-filters .tool-btn,
.dji-media-actions .tool-btn{
  font-size: 0.64rem;
  line-height: 1;
  padding: 4px 6px;
  min-height: 24px;
  border-radius: 7px;
}
.dji-media-actions .tool-btn{
  min-width: 66px;
}
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  border: 0;
  color: #ffffff;
  background: linear-gradient(120deg, #149f9b, #2ab8c2);
}
#dji-auto-detect-btn:hover,
#dji-auto-detect-btn.is-active:hover,
#dji-auto-detect-btn.is-running:hover{
  border: 0;
  color: #ffffff;
  background: linear-gradient(120deg, #149f9b, #2ab8c2);
  box-shadow: 0 8px 16px rgba(30, 151, 161, 0.28);
}
.dji-media-status{
  margin: 0;
  border: 1px solid rgba(16, 32, 43, 0.12);
  border-radius: 7px;
  padding: 3px 5px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.61rem;
  color: #44646e;
}
.dji-media-status.is-online{
  color: #0b7d3a;
  border-color: rgba(20, 140, 74, 0.36);
}
.dji-media-status.is-offline{
  color: #6d7f86;
}
.dji-media-list{
  max-height: 520px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.dji-media-item{
  border: 1px solid rgba(16, 32, 43, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.dji-media-item:hover{
  border-color: rgba(16, 149, 155, 0.52);
  background: rgba(228, 250, 245, 0.88);
}
.dji-media-item.is-selected{
  border-color: rgba(16, 149, 155, 0.76);
  background: rgba(203, 246, 233, 0.9);
  box-shadow: 0 0 0 1px rgba(16, 149, 155, 0.22) inset;
}
.dji-media-item .thumb-wrap{
  width: 100%;
  height: 98px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 43, 0.16);
  background: rgba(222, 242, 234, 0.8);
}
.dji-media-item .thumb-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dji-media-item .thumb-empty{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f797f;
  font-size: 0.72rem;
}
.dji-media-item .meta-wrap{
  min-width: 0;
  display: grid;
  gap: 2px;
}
.dji-media-topline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.dji-media-check-wrap{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0d6468;
  font-size: 0.68rem;
}
.dji-media-check-wrap input{
  margin: 0;
}
.dji-media-preview-btn{
  border: 1px solid rgba(16, 32, 43, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #0a5d62;
  font: 700 0.62rem "Space Grotesk", "Segoe UI", sans-serif;
  padding: 3px 5px;
  cursor: pointer;
}
.dji-media-preview-btn:hover{
  border-color: rgba(16, 149, 155, 0.55);
  background: rgba(16, 149, 155, 0.12);
}
.dji-media-preview-btn:disabled{
  opacity: 0.48;
  cursor: not-allowed;
}
.dji-media-item .name{
  font: 600 0.68rem "Space Grotesk", "Segoe UI", sans-serif;
  color: #0e5b60;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dji-media-item .time{
  color: #4f6f75;
  font-size: 0.62rem;
}
.dji-media-item .meta{
  color: #527076;
  font-size: 0.61rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-row{
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.dji-media-item .tag{
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(16, 32, 43, 0.16);
  border-radius: 999px;
  color: #0b7080;
  background: rgba(237, 251, 249, 0.92);
  font-size: 0.58rem;
  line-height: 1;
  padding: 2px 5px;
}
.media-type-visible{
  border-color: rgba(16, 149, 155, 0.36);
  color: #0e6f73;
  background: rgba(196, 246, 236, 0.85);
}
.media-type-ndvi{
  border-color: rgba(88, 111, 195, 0.38);
  color: #324f95;
  background: rgba(217, 225, 255, 0.84);
}
.viewer-toolbar{
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tool-btn{
  border: 1px solid rgba(16, 32, 43, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: 700 0.88rem "Space Grotesk", "Segoe UI", sans-serif;
  padding: 7px 12px;
  cursor: pointer;
}
.tool-btn:hover{
  border-color: rgba(16, 149, 155, 0.55);
  background: rgba(16, 149, 155, 0.12);
}
.tool-btn.is-active{
  border-color: rgba(16, 149, 155, 0.72);
  background: rgba(16, 149, 155, 0.2);
  color: #0a5f64;
}
.tool-btn.is-running{
  border-color: rgba(15, 134, 105, 0.7);
  background: rgba(42, 179, 131, 0.22);
  color: #0a5f46;
}
.tool-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}
.mode-pill{
  display: none;
}
.canvas-frame{
  width: 100%;
  min-height: 620px;
  height: calc(100vh - 220px);
  max-height: 980px;
  border-radius: 16px;
  border: 1px solid rgba(16, 32, 43, 0.16);
  background:
    linear-gradient(125deg, rgba(24, 148, 150, 0.11), rgba(63, 170, 120, 0.11)),
    #ffffff;
  overflow: hidden;
  cursor: grab;
  position: relative;
}
.canvas-frame.dragging{
  cursor: grabbing;
}
.layout-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.geo-map-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.geo-hit-point{
  cursor: pointer;
}
.canvas-placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
  background: linear-gradient(125deg, rgba(236, 253, 251, 0.48), rgba(226, 245, 241, 0.46));
}
.canvas-placeholder p{
  margin: 0;
}
.canvas-placeholder .small{
  margin-top: 6px;
  font-size: 0.9rem;
}
.canvas-foot{
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}
.canvas-foot p{
  margin: 0;
}
#geo-map{
  width: 100%;
  height: 260px;
  border-radius: 10px;
  border: 1px solid rgba(16, 32, 43, 0.12);
}
.origin-wrap{
  margin-top: 12px;
  border: 1px solid rgba(16, 32, 43, 0.13);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}
.origin-wrap h3{
  margin: 0 0 8px;
}
.origin-image{
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(16, 32, 43, 0.14);
  background: #fff;
  display: block;
}
.origin-image.hidden{
  display: none;
}
.hidden{
  display: none !important;
}
.map-image-modal{
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 35, 41, 0.58);
  backdrop-filter: blur(2px);
}
.map-image-close-float{
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 10020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #083138;
  border: 2px solid rgba(8, 49, 56, 0.45);
  background: rgba(240, 253, 248, 0.99);
  box-shadow: 0 10px 24px rgba(6, 46, 52, 0.42);
  cursor: pointer;
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.map-image-close-float:hover{
  background: #f7fffc;
  border-color: rgba(8, 49, 56, 0.62);
}
.map-image-panel{
  position: relative;
  z-index: 10010;
  width: min(1140px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  border-radius: 14px;
  border: 1px solid rgba(16, 32, 43, 0.2);
  background: rgba(240, 253, 248, 0.96);
  box-shadow: 0 16px 34px rgba(6, 46, 52, 0.35);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.map-image-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 32, 43, 0.14);
  background: linear-gradient(120deg, rgba(16, 149, 155, 0.14), rgba(61, 173, 116, 0.12));
}
.map-image-head strong{
  font-size: 0.95rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: #0a4d53;
  flex: 1 1 220px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-image-tools{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}
.map-image-tools .tool-btn{
  flex: 0 0 auto;
  white-space: nowrap;
}
.map-image-close-btn{
  flex: 0 0 auto;
  padding: 6px 12px;
  min-width: 72px;
  white-space: nowrap;
}
.map-image-body{
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.map-image-stage{
  width: 100%;
  height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.map-image-stage.dragging{
  cursor: grabbing;
}
.map-image-content{
  position: relative;
  display: inline-block;
  line-height: 0;
  transform-origin: center center;
  will-change: transform;
}
.map-image-body img{
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(16, 32, 43, 0.14);
  background: #ffffff;
  display: block;
  pointer-events: none;
}
.map-image-overlay{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.dji-gallery-panel{
  width: min(1240px, calc(100vw - 36px));
}
.dji-gallery-filter-wrap{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 560px;
  min-width: min(560px, 100%);
}
.dji-gallery-filter{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f5661;
  font-size: 0.7rem;
  font-weight: 600;
}
.dji-gallery-filter select{
  min-width: 220px;
  max-width: 460px;
  border: 1px solid rgba(16, 32, 43, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #0c4e5a;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 4px 8px;
}
.dji-gallery-type-filters{
  display: flex;
  align-items: center;
  gap: 6px;
}
.dji-gallery-type-filters .tool-btn{
  min-width: 62px;
  padding: 5px 9px;
}
.dji-gallery-body{
  align-items: stretch;
  justify-content: flex-start;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding-top: 10px;
}
.dji-gallery-status{
  margin: 0;
  border: 1px solid rgba(16, 32, 43, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #375f67;
  font-size: 0.68rem;
  line-height: 1.35;
  padding: 6px 8px;
}
.dji-gallery-list{
  max-height: none;
  height: calc(100vh - 252px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-right: 2px;
}
.dji-gallery-item .thumb-wrap{
  height: 120px;
}
.model-banner{
  border-left: 4px solid var(--accent-2);
  border-radius: 10px;
  background: rgba(16, 149, 155, 0.1);
  padding: 9px 10px;
}
.model-banner p{
  margin: 3px 0;
  font-size: 0.9rem;
}
.stats-grid{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-item{
  border: 1px solid rgba(16, 32, 43, 0.13);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 10px;
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}
.stat-item span{
  color: var(--muted);
  font-size: 0.8rem;
}
.stat-item strong{
  font-size: 1.1rem;
  line-height: 1;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}
.table-wrap{
  max-height: 250px;
  overflow: auto;
  border: 1px solid rgba(16, 32, 43, 0.12);
  border-radius: 10px;
}
table{
  width: 100%;
  border-collapse: collapse;
}
th,
td{
  padding: 8px 9px;
  border-bottom: 1px solid rgba(16, 32, 43, 0.1);
  text-align: left;
  font-size: 0.86rem;
}
.td-coord{
  color: #2f6467;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
th{
  position: sticky;
  top: 0;
  background: #e6f5f4;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}
.hotspot-list{
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  margin-bottom: 10px;
}
.hotspot-item{
  border: 1px solid rgba(15, 97, 102, 0.24);
  border-radius: 10px;
  padding: 8px 9px;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hotspot-item:hover{
  border-color: rgba(19, 111, 135, 0.64);
  background: rgba(89, 197, 217, 0.14);
}
.hotspot-item.is-active{
  border-color: rgba(230, 126, 34, 0.7);
  background: rgba(248, 196, 113, 0.2);
}
.hotspot-item .title{
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}
.hotspot-level-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 90, 100, 0.32);
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 700;
  color: #0d6168;
  background: rgba(89, 197, 217, 0.12);
}
.hotspot-level-badge.lv-a{
  border-color: rgba(230, 126, 34, 0.45);
  color: #9c4c08;
  background: rgba(248, 196, 113, 0.35);
}
.hotspot-level-badge.lv-b{
  border-color: rgba(20, 133, 142, 0.38);
  color: #0f6570;
  background: rgba(89, 197, 217, 0.2);
}
.hotspot-level-badge.lv-c{
  border-color: rgba(15, 97, 102, 0.24);
  color: #0d6168;
  background: rgba(255, 255, 255, 0.55);
}
.hotspot-item .meta{
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.79rem;
}
.hotspot-item .coord{
  display: block;
  margin-top: 3px;
  color: #0d6168;
  font-size: 0.78rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}
.other-list{
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}
.result-item{
  border: 1px solid rgba(16, 32, 43, 0.16);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.result-item:hover{
  border-color: rgba(18, 151, 156, 0.58);
  background: rgba(18, 151, 156, 0.11);
}
.result-item.active{
  border-color: rgba(18, 151, 156, 0.78);
  background: rgba(18, 151, 156, 0.17);
}
.result-item .name{
  display: block;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink);
}
.result-item .meta{
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}
.empty{
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.bg-orb{
  position: fixed;
  border-radius: 999px;
  filter: blur(14px);
  z-index: 1;
  pointer-events: none;
}
.bg-orb-a{
  width: 250px;
  height: 250px;
  left: -70px;
  top: 100px;
  background: rgba(35, 170, 150, 0.2);
  animation: driftA 13s ease-in-out infinite;
}
.bg-orb-b{
  width: 300px;
  height: 300px;
  right: -100px;
  top: 42%;
  background: rgba(21, 132, 150, 0.2);
  animation: driftB 14s ease-in-out infinite;
}
.animate-up{
  animation: rise 0.4s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes driftA {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes driftB {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(14px);
  }
}
/* Refined presentation skin */
:root{
  --ink: #0a2732;
  --muted: #56707a;
  --bg-a: #c7e3dc;
  --bg-b: #b7d6d0;
  --card: rgba(247, 251, 251, 0.84);
  --line: rgba(18, 72, 81, 0.14);
  --accent: #0d8f96;
  --accent-2: #1fb4ae;
  --shadow: 0 22px 48px rgba(7, 39, 46, 0.1), 0 8px 18px rgba(7, 39, 46, 0.05);
  --radius: 20px;
}
body{
  background:
    radial-gradient(circle at 14% 16%, rgba(41, 173, 143, 0.16), transparent 30%),
    radial-gradient(circle at 84% 78%, rgba(21, 135, 151, 0.14), transparent 28%),
    linear-gradient(145deg, var(--bg-a), var(--bg-b) 56%, #aacdc8);
}
body::before{
  background:
    radial-gradient(52% 68% at 12% 22%, rgba(58, 156, 96, 0.2), transparent 56%),
    radial-gradient(48% 62% at 82% 18%, rgba(32, 130, 108, 0.18), transparent 58%),
    radial-gradient(42% 58% at 76% 82%, rgba(22, 116, 128, 0.16), transparent 54%),
    repeating-linear-gradient(112deg, rgba(62, 158, 105, 0.05) 0 16px, transparent 16px 38px);
  filter: blur(10px);
  opacity: 0.68;
}
body::after{
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 18% 10%, rgba(255, 252, 219, 0.14), transparent 26%),
    radial-gradient(circle at 78% 14%, rgba(150, 220, 186, 0.12), transparent 30%);
  opacity: 0.62;
}
code{
  border-radius: 999px;
  border-color: rgba(11, 61, 69, 0.1);
  background: rgba(11, 61, 69, 0.08);
  color: #0b5561;
}
.system-header{
  margin-bottom: 10px;
}
.system-header h1{
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0b2e36;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}
.workspace{
  gap: 12px;
}
.panel{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 251, 250, 0.88)), var(--card);
  border-color: rgba(17, 71, 80, 0.12);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
}
.left-panel,
.right-panel{
  padding: 12px;
}
.center-panel{
  padding: 14px;
}
.panel h2{
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0c3942;
}
.panel h3{
  margin: 8px 0 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #184e58;
}
.upload-form,
.dji-live-panel,
.origin-wrap,
.model-banner,
.table-wrap{
  border-color: rgba(16, 64, 72, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 251, 250, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}
.file-picker{
  border-color: rgba(16, 64, 72, 0.14);
  border-radius: 12px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 250, 249, 0.78));
}
.pick-hint{
  font-size: 0.62rem;
  color: #59727b;
}
.params{
  gap: 6px;
}
.params label{
  gap: 4px;
}
.params span,
.dji-config-grid span{
  font-size: 0.66rem;
  font-weight: 600;
  color: #59727b;
}
.params input,
.dji-config-grid input,
.dji-gallery-filter select{
  border: 1px solid rgba(18, 72, 81, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 7px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.params input:focus,
.dji-config-grid input:focus,
.dji-gallery-filter select:focus{
  outline: none;
  border-color: rgba(13, 143, 150, 0.46);
  box-shadow: 0 0 0 3px rgba(31, 180, 174, 0.14);
  background: #fff;
}
.dji-selected-summary,
.dji-openapi-status,
.dji-media-status{
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.tool-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(18, 72, 81, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 245, 0.92));
  color: #0c3d47;
  font: 700 0.82rem "Space Grotesk", "Segoe UI", sans-serif;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(8, 40, 47, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.tool-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(13, 143, 150, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 246, 244, 0.96));
  box-shadow: 0 12px 22px rgba(8, 40, 47, 0.08);
}
.tool-btn:active{
  transform: translateY(0);
}
.tool-btn.is-active{
  border-color: rgba(13, 143, 150, 0.44);
  background: linear-gradient(135deg, rgba(13, 143, 150, 0.18), rgba(31, 180, 174, 0.14));
  color: #0b6168;
  box-shadow: 0 10px 20px rgba(8, 84, 95, 0.09);
}
.tool-btn.is-running{
  border-color: transparent;
  background: linear-gradient(135deg, #0f6d78 0%, #149294 54%, #1db1a6 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(8, 84, 95, 0.22);
}
.file-trigger-btn{
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border-color: transparent;
  color: #fff;
  font-size: 0.78rem;
  background: linear-gradient(135deg, #0f6d78 0%, #139093 50%, #1db1a6 100%);
  box-shadow: 0 12px 24px rgba(8, 84, 95, 0.2);
}
.file-trigger-btn:hover{
  background: linear-gradient(135deg, #0f7580 0%, #17a0a1 54%, #23baae 100%);
  box-shadow: 0 14px 26px rgba(8, 84, 95, 0.24);
}
button[type="submit"]{
  min-height: 44px;
  border-radius: 14px;
  padding: 0 16px;
  font: 700 0.82rem "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #0f6d78 0%, #149294 54%, #1db1a6 100%);
  box-shadow: 0 14px 24px rgba(8, 84, 95, 0.22);
}
button[type="submit"]:hover{
  background: linear-gradient(135deg, #127984 0%, #18a3a2 56%, #25bab0 100%);
  box-shadow: 0 16px 28px rgba(8, 84, 95, 0.26);
}
#dji-auto-detect-btn{
  min-width: 134px;
}
#dji-auto-detect-btn.is-active{
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0f6d78 0%, #149294 54%, #1db1a6 100%);
  box-shadow: 0 12px 22px rgba(8, 84, 95, 0.22);
}
.dji-live-panel{
  margin-top: 8px;
  padding: 6px;
  gap: 6px;
  border-radius: 14px;
}
.dji-openapi-status{
  font-size: 0.66rem;
}
.dji-live-grid{
  gap: 6px;
}
.dji-live-item{
  border-radius: 12px;
  padding: 4px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 248, 0.82));
}
.dji-live-item span{
  font-size: 0.57rem;
}
.dji-live-item strong{
  color: #0f5660;
}
.dji-media-list{
  gap: 8px;
}
.dji-media-item{
  border-radius: 14px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 250, 0.88));
  border-color: rgba(18, 72, 81, 0.13);
  box-shadow: 0 8px 16px rgba(8, 40, 47, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.dji-media-item:hover{
  transform: translateY(-1px);
  border-color: rgba(13, 143, 150, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 249, 247, 0.9));
  box-shadow: 0 12px 20px rgba(8, 40, 47, 0.08);
}
.dji-media-item.is-selected{
  border-color: rgba(13, 143, 150, 0.52);
  background: linear-gradient(180deg, rgba(236, 250, 247, 0.98), rgba(225, 245, 241, 0.92));
  box-shadow: 0 0 0 1px rgba(13, 143, 150, 0.1) inset, 0 12px 20px rgba(8, 40, 47, 0.08);
}
.dji-media-item .thumb-wrap{
  height: 104px;
  border-radius: 12px;
  border-color: rgba(18, 72, 81, 0.12);
  background: linear-gradient(135deg, rgba(198, 227, 219, 0.55), rgba(230, 241, 238, 0.75));
}
.dji-media-item .name{
  font-size: 0.72rem;
  color: #114f57;
}
.dji-media-item .time,
.dji-media-item .meta{
  color: #5b737c;
  font-size: 0.62rem;
}
.dji-media-preview-btn{
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(18, 72, 81, 0.14);
  color: #0c5c63;
}
.viewer-toolbar{
  gap: 10px;
  margin-bottom: 12px;
}
.canvas-frame{
  border-radius: 22px;
  border-color: rgba(15, 58, 67, 0.16);
  background: radial-gradient(circle at top left, rgba(34, 162, 157, 0.1), transparent 34%), linear-gradient(180deg, rgba(247, 252, 251, 0.96), rgba(237, 245, 243, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 22px 44px rgba(8, 40, 47, 0.1);
}
.canvas-placeholder{
  background: linear-gradient(135deg, rgba(244, 252, 250, 0.84), rgba(230, 241, 238, 0.7));
  color: #587078;
}
.canvas-foot{
  margin-top: 10px;
  color: #587078;
  font-size: 0.88rem;
}
.canvas-foot p + p{
  margin-top: 4px;
}
.origin-wrap{
  border-radius: 14px;
}
.origin-image{
  border-radius: 12px;
  border-color: rgba(18, 72, 81, 0.12);
  box-shadow: 0 10px 22px rgba(8, 40, 47, 0.07);
}
.model-banner{
  border-left: 0;
  border-radius: 14px;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(13, 143, 150, 0.14), rgba(29, 177, 166, 0.1), rgba(255, 255, 255, 0.88));
}
.model-banner p{
  margin: 2px 0;
  color: #0d4850;
}
.stats-grid{
  gap: 10px;
}
.stat-item{
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 248, 0.84));
  border-color: rgba(18, 72, 81, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.stat-item span{
  font-size: 0.78rem;
  font-weight: 600;
  color: #587078;
}
.stat-item strong{
  font-size: 1.18rem;
  color: #0c3c46;
}
.table-wrap{
  border-radius: 14px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.76);
}
th{
  background: linear-gradient(180deg, rgba(232, 245, 244, 0.96), rgba(222, 239, 237, 0.96));
  color: #0f4e58;
  font-size: 0.78rem;
  border-bottom-color: rgba(18, 72, 81, 0.1);
}
td{
  font-size: 0.82rem;
  color: #113a43;
}
tr:last-child td{
  border-bottom: 0;
}
.hotspot-item,
.result-item{
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 249, 0.84));
  border-color: rgba(18, 72, 81, 0.12);
  box-shadow: 0 8px 18px rgba(8, 40, 47, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.hotspot-item:hover,
.result-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(8, 40, 47, 0.08);
}
.result-item.active{
  border-color: rgba(13, 143, 150, 0.46);
  background: linear-gradient(135deg, rgba(13, 143, 150, 0.16), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 22px rgba(8, 84, 95, 0.09);
}
.hotspot-item.is-active{
  border-color: rgba(205, 129, 44, 0.42);
  background: linear-gradient(135deg, rgba(242, 189, 92, 0.2), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 22px rgba(111, 73, 18, 0.1);
}
.result-item .name,
.hotspot-item .title{
  font-size: 0.84rem;
}
.result-item .meta,
.hotspot-item .meta,
.hotspot-item .coord{
  color: #587078;
}
.hotspot-item .coord{
  color: #0d6168;
}
.map-image-modal{
  background: rgba(7, 27, 35, 0.54);
  backdrop-filter: blur(8px);
}
.map-image-close-float{
  border-color: rgba(18, 72, 81, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #0d4550;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}
.map-image-panel{
  border-radius: 18px;
  border-color: rgba(18, 72, 81, 0.14);
  background: linear-gradient(180deg, rgba(248, 252, 251, 0.98), rgba(241, 247, 245, 0.96));
  box-shadow: 0 24px 48px rgba(8, 30, 36, 0.28);
}
.map-image-head{
  padding: 12px 14px;
  border-bottom-color: rgba(18, 72, 81, 0.12);
  background: linear-gradient(135deg, rgba(13, 143, 150, 0.14), rgba(31, 180, 174, 0.1), rgba(255, 255, 255, 0.88));
}
.map-image-head strong{
  color: #0c4750;
}
.map-image-body{
  padding: 14px;
}
.map-image-body img{
  border-radius: 12px;
  border-color: rgba(18, 72, 81, 0.12);
  box-shadow: 0 12px 24px rgba(8, 40, 47, 0.08);
}
.bg-orb{
  filter: blur(24px);
  opacity: 0.55;
}
.bg-orb-a{
  background: rgba(43, 170, 145, 0.16);
}
.bg-orb-b{
  background: rgba(23, 134, 150, 0.14);
}

@media (max-width: 1500px) {
.workspace{
    grid-template-columns: 312px minmax(0, 1fr) 272px;
  }
}

@media (max-width: 1200px) {
html,
body{
    overflow: auto;
  }
.workspace{
    grid-template-columns: 1fr;
  }
.left-panel,
.right-panel{
    position: static;
    max-height: none;
  }
.center-panel{
    min-height: auto;
  }
.canvas-frame{
    height: 68vh;
    min-height: 460px;
  }
}

@media (max-width: 640px) {
.app-shell{
    width: calc(100% - 18px);
    margin-top: 8px;
    height: auto;
  }
.panel{
    border-radius: 14px;
  }
.left-panel,
.right-panel,
.center-panel{
    padding: 14px;
  }
.params{
    grid-template-columns: 1fr;
  }
.canvas-frame{
    min-height: 360px;
    height: 60vh;
  }
.dji-media-list{
    grid-template-columns: 1fr;
    max-height: 320px;
  }
.dji-media-actions{
    justify-content: flex-start;
  }
#geo-map{
    height: 220px;
  }
.map-image-modal{
    padding: 10px;
  }
.map-image-panel{
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
.map-image-head{
    gap: 8px;
    padding: 8px 10px;
  }
.map-image-tools{
    gap: 6px;
  }
.map-image-tools .tool-btn{
    min-width: 42px;
    padding: 5px 8px;
  }
.map-image-tools .map-image-close-btn{
    min-width: 68px;
    padding: 5px 10px;
  }
.dji-gallery-filter-wrap{
    flex: 1 1 100%;
    min-width: 100%;
  }
.dji-gallery-filter{
    width: 100%;
    justify-content: space-between;
  }
.dji-gallery-filter select{
    min-width: 0;
    width: 70%;
    max-width: none;
  }
.dji-gallery-type-filters{
    width: 100%;
  }
.dji-gallery-type-filters .tool-btn{
    flex: 1 1 0;
    min-width: 0;
  }
.dji-gallery-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: calc(100vh - 300px);
  }
.dji-gallery-item .thumb-wrap{
    height: 98px;
  }
.map-image-close-float{
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }
}
/* Digital agriculture theme (safe visual layer, no layout geometry changes) */
:root{
  --ink: #0f2d34;
  --muted: #5c7680;
  --bg-a: #bdd7cc;
  --bg-b: #afcbc0;
  --card: rgba(246, 251, 248, 0.84);
  --line: rgba(16, 68, 78, 0.14);
  --accent: #0f7e80;
  --accent-2: #26a08f;
  --shadow: 0 22px 48px rgba(9, 44, 49, 0.1), 0 8px 18px rgba(9, 44, 49, 0.05);
}
body{
  background:
    radial-gradient(circle at 12% 18%, rgba(69, 162, 109, 0.16), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(37, 136, 149, 0.14), transparent 28%),
    linear-gradient(148deg, var(--bg-a), var(--bg-b) 58%, #a4c3b7);
}
body::before{
  background:
    radial-gradient(52% 68% at 10% 20%, rgba(70, 156, 104, 0.18), transparent 56%),
    radial-gradient(46% 60% at 84% 18%, rgba(28, 120, 132, 0.16), transparent 58%),
    repeating-linear-gradient(112deg, rgba(70, 158, 103, 0.05) 0 16px, transparent 16px 34px);
  opacity: 0.64;
}
body::after{
  background:
    radial-gradient(circle at 20% 10%, rgba(240, 255, 202, 0.12), transparent 26%),
    radial-gradient(circle at 76% 16%, rgba(143, 208, 165, 0.12), transparent 30%);
  opacity: 0.55;
}
.panel{
  border-color: rgba(16, 68, 78, 0.13);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.left-panel{
  background: linear-gradient(180deg, rgba(243, 250, 246, 0.9), rgba(234, 245, 241, 0.9));
}
.center-panel{
  background: linear-gradient(180deg, rgba(250, 253, 251, 0.92), rgba(242, 248, 245, 0.9));
}
.right-panel{
  background: linear-gradient(180deg, rgba(246, 252, 250, 0.9), rgba(236, 245, 243, 0.9));
}
.panel h2{
  color: #123c45;
}
.panel h3{
  color: #1a5560;
}
.upload-form,
.dji-live-panel,
.origin-wrap,
.model-banner,
.table-wrap{
  border-color: rgba(16, 68, 78, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 250, 247, 0.76));
}
.file-picker{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 249, 247, 0.8));
}
.tool-btn{
  border-color: rgba(16, 68, 78, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(237, 245, 243, 0.9));
  color: #133f48;
}
.tool-btn:hover{
  border-color: rgba(15, 126, 128, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 244, 240, 0.94));
}
.tool-btn.is-active{
  border-color: rgba(15, 126, 128, 0.52);
  background: linear-gradient(135deg, rgba(15, 126, 128, 0.19), rgba(38, 160, 143, 0.14));
  color: #0f6265;
}
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #0f6971 0%, #128484 52%, #26a08f 100%);
  box-shadow: 0 12px 22px rgba(11, 79, 88, 0.2);
}
.file-trigger-btn:hover,
button[type="submit"]:hover,
#dji-auto-detect-btn:hover,
#dji-auto-detect-btn.is-active:hover,
#dji-auto-detect-btn.is-running:hover{
  background: linear-gradient(135deg, #13767e 0%, #179291 52%, #2cad99 100%);
}
.dji-selected-summary,
.dji-openapi-status,
.dji-media-status{
  border-color: rgba(16, 68, 78, 0.14);
  background: rgba(247, 252, 250, 0.88);
  color: #4f6e78;
}
.canvas-frame{
  border-color: rgba(16, 68, 78, 0.16);
  background:
    radial-gradient(circle at top left, rgba(36, 150, 135, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(248, 253, 251, 0.96), rgba(238, 246, 243, 0.92));
}
.model-banner{
  background: linear-gradient(135deg, rgba(15, 126, 128, 0.14), rgba(38, 160, 143, 0.1), rgba(255, 255, 255, 0.9));
}
.stat-item{
  border-color: rgba(16, 68, 78, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 247, 0.86));
}
th{
  background: linear-gradient(180deg, rgba(230, 244, 241, 0.96), rgba(220, 237, 234, 0.95));
}
.hotspot-item,
.result-item{
  border-color: rgba(16, 68, 78, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 249, 247, 0.82));
}
.result-item.active{
  border-color: rgba(15, 126, 128, 0.58);
  background: linear-gradient(135deg, rgba(15, 126, 128, 0.18), rgba(255, 255, 255, 0.93));
}
.hotspot-item.is-active{
  border-color: rgba(188, 122, 46, 0.48);
  background: linear-gradient(135deg, rgba(232, 190, 113, 0.2), rgba(255, 255, 255, 0.9));
}
.dji-media-item{
  border-color: rgba(16, 68, 78, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(243, 249, 247, 0.86));
}
.dji-media-item.is-selected{
  border-color: rgba(15, 126, 128, 0.58);
  background: linear-gradient(180deg, rgba(235, 248, 245, 0.95), rgba(226, 242, 238, 0.9));
}
.dji-media-item .thumb-wrap{
  background: linear-gradient(135deg, rgba(202, 229, 216, 0.58), rgba(230, 242, 238, 0.8));
}
/* UI harmony pass: keep layout,
refine hierarchy and button consistency */
:root{
  --btn-h: 36px;
  --btn-r: 11px;
}
.panel{
  position: relative;
  border-color: rgba(15, 66, 76, 0.12);
  box-shadow: 0 16px 32px rgba(8, 38, 43, 0.08), 0 5px 12px rgba(8, 38, 43, 0.04);
}
.panel::before{
  content: none;
}
.panel h2{
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 66, 76, 0.1);
}
.panel h3{
  border-left: 0;
  padding-left: 0;
}
.upload-form,
.dji-live-panel,
.model-banner,
.table-wrap,
.hotspot-list,
.other-list,
.viewer-toolbar,
.origin-wrap{
  border: 1px solid rgba(15, 66, 76, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(242, 249, 246, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 20px rgba(8, 38, 43, 0.045);
}
.upload-form{
  border-color: rgba(44, 122, 90, 0.2);
  background: linear-gradient(180deg, rgba(248, 252, 249, 0.9), rgba(240, 248, 244, 0.82));
}
.dji-live-panel{
  border-color: rgba(42, 101, 129, 0.22);
  background: linear-gradient(180deg, rgba(247, 251, 252, 0.9), rgba(238, 246, 248, 0.82));
}
.tool-btn{
  min-height: var(--btn-h);
  height: var(--btn-h);
  padding: 0 12px;
  border-radius: var(--btn-r);
  border-color: rgba(15, 66, 76, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 245, 241, 0.9));
  color: #18464e;
  font-size: 0.74rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 5px 10px rgba(8, 38, 43, 0.045);
}
.tool-btn:hover{
  border-color: rgba(20, 116, 130, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(229, 243, 239, 0.92));
  box-shadow: 0 6px 12px rgba(8, 38, 43, 0.06);
}
.tool-btn.is-active{
  border-color: rgba(20, 116, 130, 0.5);
  background: linear-gradient(135deg, rgba(20, 116, 130, 0.18), rgba(37, 151, 139, 0.12));
  color: #115f67;
}
.viewer-toolbar .tool-btn{
  min-width: 46px;
}
.dji-media-actions .tool-btn{
  min-width: 96px;
}
.dji-media-filters .tool-btn,
.dji-gallery-type-filters .tool-btn{
  min-height: var(--btn-h);
  height: var(--btn-h);
  padding: 0 8px;
  border-radius: var(--btn-r);
  font-size: 0.7rem;
}
.dji-media-preview-btn{
  min-height: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 0.62rem;
}
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  min-height: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a7978 0%, #328b84 52%, #3f9d8f 100%);
  box-shadow: 0 8px 14px rgba(9, 59, 66, 0.16);
}
.file-trigger-btn:hover,
button[type="submit"]:hover,
#dji-auto-detect-btn:hover,
#dji-auto-detect-btn.is-active:hover,
#dji-auto-detect-btn.is-running:hover{
  background: linear-gradient(135deg, #338886 0%, #3a9992 52%, #49aa9e 100%);
}
/* =========================================================
   Enterprise Platform Redesign (v16)
   Goal: premium,
modern,
and professional visual system
   while keeping existing functionality and DOM structure.
   ========================================================= */

:root{
  --ui-font: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ui-heading: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "JetBrains Mono", "Consolas", "SFMono-Regular", monospace;

  --bg-canvas: #f2f6f7;
  --bg-gradient-a: #eef4f2;
  --bg-gradient-b: #edf3f7;
  --surface-main: #ffffff;
  --surface-soft: #f8fbfa;
  --surface-alt: #f7fafc;
  --surface-focus: #f0f8f5;

  --text-1: #10242b;
  --text-2: #4d636b;
  --text-3: #6d8088;

  --line-1: #dbe6e8;
  --line-2: #cfdde0;
  --line-strong: #b9ccd0;

  --brand-1: #0f7e73;
  --brand-2: #2a9a89;
  --brand-3: #3db3a0;
  --brand-soft: rgba(15, 126, 115, 0.12);

  --warn-soft: rgba(194, 139, 62, 0.14);
  --warn-line: rgba(194, 139, 62, 0.35);

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;

  --shadow-panel: 0 18px 40px rgba(12, 38, 44, 0.08), 0 4px 12px rgba(12, 38, 44, 0.04);
  --shadow-card: 0 10px 24px rgba(12, 38, 44, 0.06);
  --shadow-press: 0 8px 16px rgba(12, 38, 44, 0.1);

  --btn-h: 38px;
  --btn-r: 11px;
}
html,
body{
  height: 100%;
}
body{
  margin: 0;
  font-family: var(--ui-font);
  color: var(--text-1);
  background:
    radial-gradient(1000px 520px at -8% -16%, rgba(72, 159, 129, 0.1), transparent 68%),
    radial-gradient(900px 480px at 105% -10%, rgba(63, 135, 171, 0.08), transparent 66%),
    linear-gradient(155deg, var(--bg-gradient-a), var(--bg-gradient-b) 62%, #e8f0ee);
  letter-spacing: 0.01em;
}
body::before,
body::after{
  opacity: 0.34;
  filter: blur(16px);
}
.bg-orb{
  opacity: 0.18;
  filter: blur(28px);
}
.app-shell{
  width: min(2460px, calc(100% - 20px));
  height: calc(100vh - 20px);
  margin: 10px auto;
}
.system-header{
  margin-bottom: 12px;
}
.system-header h1{
  margin: 0;
  font-family: var(--ui-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #17323a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.workspace{
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 340px;
  gap: 14px;
  min-height: 0;
}
.panel{
  border: 1px solid var(--line-1);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 252, 0.9));
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(8px);
}
.left-panel{
  padding: 15px;
  background: linear-gradient(180deg, #f7fbf9, #f1f7f4);
}
.center-panel{
  padding: 16px;
  background: linear-gradient(180deg, #fcfefe, #f5f9f8);
}
.right-panel{
  padding: 15px;
  background: linear-gradient(180deg, #f8fbfc, #f2f7f8);
}
.panel h2{
  margin: 0 0 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-1);
  font-family: var(--ui-heading);
  font-size: 1.03rem;
  font-weight: 650;
  color: #153a43;
}
.panel h3{
  margin: 12px 0 8px;
  font-family: var(--ui-heading);
  font-size: 0.81rem;
  font-weight: 600;
  color: #24545f;
}
code{
  font-family: var(--mono);
  border: 1px solid var(--line-2);
  background: #f4f8f9;
  color: #285560;
  border-radius: 999px;
}
.upload-form,
.dji-live-panel,
.viewer-toolbar,
.canvas-foot,
.origin-wrap,
.model-banner,
.table-wrap,
.hotspot-list,
.other-list{
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(247, 251, 250, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), var(--shadow-card);
}
.upload-form{
  padding: 11px;
  gap: 10px;
  border-color: #d7e7de;
}
.file-picker{
  border: 1px solid #d8e5e0;
  border-radius: var(--radius-md);
  background: #fbfefd;
  padding: 9px;
  gap: 6px;
}
.file-picker-btns{
  border-style: solid;
}
.pick-hint{
  margin: 0;
  font-size: 0.64rem;
  color: var(--text-3);
}
.params{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.params label{
  display: grid;
  gap: 5px;
}
.params span,
.dji-config-grid span{
  font-size: 0.66rem;
  color: var(--text-2);
  font-weight: 600;
}
.params input,
.dji-config-grid input,
.dji-gallery-filter select{
  height: var(--btn-h);
  border: 1px solid var(--line-2);
  border-radius: var(--btn-r);
  padding: 0 10px;
  font: 500 0.74rem var(--ui-font);
  color: #1f3f48;
  background: linear-gradient(180deg, #ffffff, #f5f9f8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}
.params input:focus,
.dji-config-grid input:focus,
.dji-gallery-filter select:focus{
  outline: none;
  border-color: rgba(42, 154, 137, 0.55);
  box-shadow: 0 0 0 3px rgba(42, 154, 137, 0.16);
}
.dji-selected-summary,
.dji-openapi-status,
.dji-media-status{
  border: 1px solid var(--line-2);
  border-radius: var(--btn-r);
  padding: 7px 9px;
  background: #f7fbfa;
  color: var(--text-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.dji-live-panel{
  margin-top: 8px;
  padding: 10px;
  gap: 8px;
  border-color: #d7e2ea;
  background: linear-gradient(180deg, #f8fbfd, #f1f7fb);
}
.dji-live-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-1);
}
.dji-live-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.dji-live-item{
  border: 1px solid var(--line-1);
  border-radius: var(--radius-md);
  background: #fcfefe;
  min-height: 56px;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}
.dji-live-item span{
  font-size: 0.58rem;
  color: #70848b;
}
.dji-live-item strong{
  font-size: 0.66rem;
  color: #1f4a53;
  font-family: var(--ui-font);
}
.dji-live-item.full{
  grid-column: 1 / -1;
}
.dji-media-filters{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.dji-media-list{
  gap: 9px;
}
.dji-media-item{
  border: 1px solid #d8e7e1;
  border-radius: 12px;
  background: #fcfefd;
  box-shadow: 0 6px 14px rgba(11, 44, 51, 0.05);
}
.dji-media-item:hover{
  border-color: #b8d8cf;
  box-shadow: 0 9px 16px rgba(11, 44, 51, 0.08);
}
.dji-media-item.is-selected{
  border-color: rgba(42, 154, 137, 0.56);
  background: linear-gradient(180deg, #f4fbf8, #edf8f4);
}
.dji-media-item .thumb-wrap{
  border: 1px solid #d9e7e3;
  border-radius: 10px;
}
.viewer-toolbar{
  margin-bottom: 12px;
  padding: 9px 10px;
}
.canvas-frame{
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 0%, rgba(84, 166, 150, 0.08), transparent 34%),
    linear-gradient(180deg, #fafeff, #f3f8f8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 28px rgba(11, 44, 51, 0.08);
}
.canvas-foot{
  margin-top: 10px;
  padding: 9px 11px;
  color: var(--text-2);
  font-size: 0.83rem;
}
.origin-wrap{
  margin-top: 12px;
  padding: 10px;
}
.origin-image{
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.model-banner{
  border-color: #d6e2ea;
  background: linear-gradient(135deg, #f2f8fc, #f7fafc);
  padding: 10px 11px;
}
.stats-grid{
  gap: 8px;
}
.stat-item{
  border: 1px solid var(--line-1);
  border-radius: 12px;
  background: #fbfefe;
  padding: 10px;
}
.stat-item span{
  color: var(--text-2);
  font-size: 0.73rem;
}
.stat-item strong{
  color: #183f47;
  font-size: 1.14rem;
  font-family: var(--ui-heading);
}
.table-wrap{
  border-radius: 12px;
}
th{
  background: #f2f7f8;
  color: #2c545f;
}
td{
  color: #1f434c;
}
.hotspot-list,
.other-list{
  padding: 9px;
}
.hotspot-item,
.result-item{
  border: 1px solid var(--line-1);
  border-radius: 12px;
  background: #fbfefd;
  padding: 10px;
}
.result-item.active{
  border-color: rgba(42, 154, 137, 0.52);
  background: linear-gradient(135deg, #f0faf7, #fbfefd);
}
.hotspot-item.is-active{
  border-color: var(--warn-line);
  background: linear-gradient(135deg, var(--warn-soft), #fdfcf8);
}
.map-image-modal{
  background: rgba(9, 26, 33, 0.58);
}
.map-image-panel{
  border: 1px solid #cfdde0;
  border-radius: 16px;
  background: #f9fcfc;
}
.map-image-head{
  background: linear-gradient(135deg, #f3f8f8, #eef4f4);
}
.map-image-close-float{
  width: 46px;
  height: 46px;
  border: 1px solid #cfdde0;
  background: #ffffff;
  color: #21464f;
}
.tool-btn,
.dji-media-preview-btn,
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--ui-font);
  font-weight: 600;
}
.tool-btn{
  height: var(--btn-h);
  min-height: var(--btn-h);
  padding: 0 12px;
  border-radius: var(--btn-r);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #ffffff, #f1f6f5);
  color: #254a53;
  font-size: 0.72rem;
  box-shadow: 0 4px 10px rgba(11, 44, 51, 0.05);
}
.tool-btn:hover{
  border-color: #b8d0d6;
  background: linear-gradient(180deg, #ffffff, #ecf4f2);
}
.tool-btn.is-active{
  border-color: rgba(42, 154, 137, 0.48);
  background: linear-gradient(135deg, rgba(42, 154, 137, 0.14), rgba(255, 255, 255, 0.95));
  color: #1f6e68;
}
.tool-btn.is-running{
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
}
.viewer-toolbar .tool-btn{
  min-width: 44px;
}
.dji-media-filters .tool-btn,
.dji-gallery-type-filters .tool-btn,
.dji-media-actions .tool-btn{
  height: var(--btn-h);
  min-height: var(--btn-h);
  border-radius: var(--btn-r);
  font-size: 0.7rem;
}
.dji-media-actions .tool-btn{
  min-width: 100px;
}
.dji-media-preview-btn{
  height: 30px;
  min-height: 30px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: #2a5660;
}
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #1f706f, #2f8a80);
  box-shadow: 0 8px 16px rgba(15, 78, 80, 0.18);
}
.file-trigger-btn:hover,
button[type="submit"]:hover,
#dji-auto-detect-btn:hover,
#dji-auto-detect-btn.is-active:hover,
#dji-auto-detect-btn.is-running:hover{
  background: linear-gradient(135deg, #277f7d, #3a968a);
  box-shadow: 0 10px 18px rgba(15, 78, 80, 0.2);
}

@media (max-width: 1500px) {
.workspace{
    grid-template-columns: 320px minmax(0, 1fr) 320px;
  }
}

@media (max-width: 1200px) {
.workspace{
    grid-template-columns: 1fr;
  }
.dji-live-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =========================================================
   Premium Digital Agriculture Refresh (v17)
   Refine hierarchy,
typography,
and module distinction
   without changing functionality.
   ========================================================= */

:root{
  --agri-bg: #eef4f0;
  --agri-surface: rgba(255, 255, 255, 0.82);
  --agri-surface-strong: rgba(255, 255, 255, 0.94);
  --agri-surface-soft: rgba(245, 250, 247, 0.9);
  --agri-line: rgba(20, 65, 59, 0.1);
  --agri-line-strong: rgba(19, 78, 70, 0.16);
  --agri-text: #183a38;
  --agri-muted: #5c7470;
  --agri-primary: #1f746b;
  --agri-primary-strong: #155c57;
  --agri-primary-soft: rgba(38, 130, 112, 0.12);
  --agri-accent: #8bbf8e;
  --agri-shadow: 0 18px 48px rgba(15, 43, 41, 0.08), 0 6px 18px rgba(15, 43, 41, 0.04);
  --agri-shadow-soft: 0 10px 30px rgba(15, 43, 41, 0.06);
  --agri-radius-xl: 30px;
  --agri-radius-lg: 22px;
  --agri-radius-md: 16px;
  --agri-radius-sm: 12px;
  --ui-font: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ui-heading: "Outfit", "Noto Sans SC", "PingFang SC", sans-serif;
}
html,
body{
  background:
    radial-gradient(circle at 8% 0%, rgba(115, 184, 148, 0.18), transparent 30%),
    radial-gradient(circle at 100% 12%, rgba(50, 135, 149, 0.12), transparent 28%),
    radial-gradient(circle at 80% 100%, rgba(104, 172, 124, 0.12), transparent 26%),
    linear-gradient(180deg, #eff5f1 0%, #e6efe8 56%, #edf4ef 100%);
  color: var(--agri-text);
  font-family: var(--ui-font);
}
body::before,
body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before{
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 28%) 0 0 / 100% 100%,
    repeating-linear-gradient(
      120deg,
      rgba(18, 74, 62, 0.018) 0,
      rgba(18, 74, 62, 0.018) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.45;
}
body::after{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}
.app-shell{
  position: relative;
  z-index: 1;
  width: min(1880px, calc(100vw - 28px));
  padding: 24px 0 18px;
}
.system-header{
  margin-bottom: 18px;
  padding: 0 4px;
  text-align: left;
}
.system-header h1{
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  border: 1px solid rgba(24, 80, 72, 0.1);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 246, 0.76));
  box-shadow: var(--agri-shadow-soft);
  color: #163532;
  font-family: var(--ui-heading);
  font-size: clamp(2rem, 2.35vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.workspace{
  grid-template-columns: 356px minmax(0, 1fr) 324px;
  gap: 18px;
  align-items: stretch;
}
.panel{
  border: 1px solid rgba(18, 62, 58, 0.08);
  border-radius: var(--agri-radius-xl);
  box-shadow: var(--agri-shadow);
  backdrop-filter: blur(18px);
}
.left-panel{
  background:
    linear-gradient(180deg, rgba(247, 252, 249, 0.95), rgba(235, 245, 240, 0.9));
}
.center-panel{
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 250, 0.9));
}
.right-panel{
  background:
    linear-gradient(180deg, rgba(249, 252, 250, 0.96), rgba(240, 247, 243, 0.92));
}
.left-panel,
.center-panel,
.right-panel{
  padding: 24px 22px;
}
.panel h2,
.panel h3,
.map-image-head strong{
  color: var(--agri-text);
  font-family: var(--ui-heading);
  letter-spacing: 0.01em;
}
.panel h2{
  margin-bottom: 16px;
  font-size: 1.18rem;
  font-weight: 700;
}
.panel h3{
  font-size: 0.98rem;
  font-weight: 700;
}
.upload-form,
.dji-live-panel,
.model-banner,
.table-wrap,
.hotspot-list,
.other-list{
  border: 1px solid var(--agri-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.upload-form{
  padding: 16px;
  border-radius: var(--agri-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 247, 0.92));
}
.file-picker.file-picker-btns{
  padding: 12px;
  border-radius: var(--agri-radius-md);
  background: linear-gradient(180deg, rgba(246, 251, 248, 0.96), rgba(239, 247, 243, 0.92));
  border: 1px solid rgba(22, 77, 69, 0.08);
}
.pick-hint,
.dji-selected-summary,
.dji-openapi-status{
  color: var(--agri-muted);
}
.pick-hint{
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.dji-selected-summary{
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(35, 124, 106, 0.08);
  border: 1px solid rgba(30, 108, 96, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
}
.dji-live-panel{
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--agri-radius-lg);
  background:
    linear-gradient(180deg, rgba(237, 247, 241, 0.98), rgba(249, 252, 250, 0.96));
}
.dji-live-head,
.map-image-head{
  gap: 12px;
  align-items: center;
}
.dji-live-head{
  margin-bottom: 14px;
}
.dji-live-head-actions,
.dji-media-actions,
.dji-gallery-type-filters,
.dji-gallery-filter-wrap{
  gap: 10px;
}
.dji-openapi-status{
  margin-bottom: 12px;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: var(--agri-radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(21, 88, 78, 0.08);
  font-size: 0.76rem;
  font-weight: 600;
}
.dji-live-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dji-live-item{
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 78, 72, 0.09);
  border-radius: var(--agri-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 249, 0.86));
  box-shadow: 0 6px 14px rgba(15, 43, 41, 0.04);
}
.dji-live-item span{
  font-size: 0.66rem;
  font-weight: 700;
  color: #6b837e;
  letter-spacing: 0.02em;
}
.dji-live-item strong{
  font-size: 0.98rem;
  font-weight: 800;
  color: #184744;
}
.viewer-toolbar{
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 252, 250, 0.94), rgba(241, 248, 244, 0.9));
  border: 1px solid rgba(18, 66, 62, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  gap: 10px;
}
.geo-map-canvas{
  border-radius: 24px;
  overflow: hidden;
}
.geo-map-canvas{
  background: linear-gradient(180deg, rgba(241, 246, 244, 0.96), rgba(233, 240, 236, 0.94));
}
.model-banner{
  padding: 16px 18px;
  border-radius: var(--agri-radius-lg);
  background:
    linear-gradient(145deg, rgba(23, 70, 72, 0.96), rgba(33, 96, 91, 0.94));
  box-shadow: 0 18px 34px rgba(12, 44, 43, 0.16);
  color: rgba(255, 255, 255, 0.92);
}
.model-banner p,
.model-banner strong{
  color: inherit;
}
.model-banner code{
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5fffd;
  font-size: 0.78rem;
}
.stats-grid{
  gap: 10px;
}
.stat-item{
  border: 1px solid rgba(22, 78, 71, 0.08);
  border-radius: var(--agri-radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 247, 0.92));
  box-shadow: 0 8px 20px rgba(14, 42, 41, 0.05);
}
.stat-item span{
  color: #6a817d;
  font-size: 0.72rem;
  font-weight: 700;
}
.stat-item strong{
  color: #173d3b;
  font-family: var(--ui-heading);
  font-size: 1.16rem;
}
.table-wrap,
.hotspot-list,
.other-list{
  border-radius: var(--agri-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 247, 0.93));
  box-shadow: 0 10px 24px rgba(12, 41, 39, 0.05);
}
.table-wrap{
  overflow: hidden;
}
.table-wrap table{
  background: transparent;
}
.table-wrap thead th{
  background: rgba(31, 116, 107, 0.08);
  color: #2f5752;
  font-size: 0.76rem;
  font-weight: 800;
}
.table-wrap tbody td{
  border-color: rgba(25, 82, 74, 0.08);
  color: #315754;
}
.result-item{
  border: 1px solid rgba(26, 80, 72, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 247, 0.92));
  box-shadow: 0 8px 20px rgba(14, 41, 39, 0.05);
}
.result-item .name{
  color: #173d3a;
  font-size: 0.84rem;
  font-weight: 800;
}
.result-item .meta{
  color: #69817c;
  font-size: 0.74rem;
}
.result-item:hover,
.result-item.active{
  border-color: rgba(31, 116, 107, 0.22);
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.98), rgba(234, 246, 240, 0.94));
  box-shadow: 0 12px 24px rgba(12, 44, 41, 0.08);
}
.dji-media-item{
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(24, 79, 71, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.94));
  box-shadow: 0 10px 24px rgba(13, 42, 40, 0.06);
}
.dji-media-item:hover{
  transform: translateY(-1px);
  border-color: rgba(31, 116, 107, 0.22);
  box-shadow: 0 14px 28px rgba(13, 42, 40, 0.08);
}
.dji-media-item.is-selected{
  border-color: rgba(31, 116, 107, 0.3);
  background: linear-gradient(180deg, rgba(242, 250, 246, 0.98), rgba(232, 245, 239, 0.94));
}
.dji-media-item .thumb-wrap{
  height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(22, 79, 70, 0.08);
  background: linear-gradient(135deg, rgba(221, 236, 225, 0.9), rgba(240, 246, 242, 0.9));
}
.dji-media-item .meta-wrap{
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}
.dji-media-topline{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.dji-media-item .name{
  margin: 0;
  min-height: calc(1.42em * 2);
  color: #193f3d;
  font-family: var(--ui-heading);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.42;
  white-space: normal;
  overflow: hidden;
  text-overflow: initial;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dji-media-item .time,
.dji-media-item .meta{
  color: #667e7a;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dji-media-item .tag-row{
  gap: 6px;
}
.dji-media-item .tag{
  border: 1px solid rgba(30, 110, 97, 0.14);
  border-radius: 999px;
  background: rgba(31, 116, 107, 0.08);
  color: #2d5e58;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.dji-gallery-list{
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.dji-gallery-item{
  grid-template-columns: 1fr;
}
.dji-gallery-item .thumb-wrap{
  height: 148px;
}
.dji-gallery-item .name{
  min-height: auto;
}
.tool-btn,
.dji-media-preview-btn,
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  min-height: 42px;
  border-radius: 14px;
  font-family: var(--ui-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.tool-btn,
.dji-media-preview-btn{
  border: 1px solid rgba(23, 80, 72, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 247, 0.9));
  box-shadow: 0 8px 18px rgba(14, 42, 41, 0.05);
  color: #29544f;
}
.tool-btn:hover,
.dji-media-preview-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(30, 110, 97, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 242, 0.94));
  box-shadow: 0 12px 22px rgba(14, 42, 41, 0.08);
}
.tool-btn.is-active,
.viewer-toolbar .tool-btn.is-active{
  border-color: rgba(29, 111, 96, 0.28);
  background: linear-gradient(135deg, rgba(27, 108, 95, 0.16), rgba(71, 154, 134, 0.14));
  color: #144a44;
  box-shadow: 0 12px 24px rgba(14, 42, 41, 0.08);
}
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  border: 1px solid rgba(18, 81, 70, 0.04);
  background: linear-gradient(135deg, #17655e 0%, #267a71 48%, #358b7c 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(18, 83, 76, 0.18);
}
.file-trigger-btn:hover,
button[type="submit"]:hover,
#dji-auto-detect-btn:hover,
#dji-auto-detect-btn.is-active:hover,
#dji-auto-detect-btn.is-running:hover{
  transform: translateY(-1px);
  background: linear-gradient(135deg, #145b55 0%, #24746b 48%, #338476 100%);
  box-shadow: 0 16px 30px rgba(18, 83, 76, 0.22);
}
#zoom-in,
#zoom-out{
  min-width: 42px;
  width: 42px;
  padding: 0;
}
.map-image-modal{
  backdrop-filter: blur(10px);
  background: rgba(8, 18, 21, 0.42);
}
.map-image-panel{
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(250, 252, 251, 0.98), rgba(244, 248, 246, 0.95));
  box-shadow: 0 24px 56px rgba(7, 18, 20, 0.28);
}
.map-image-close-float{
  top: 18px;
  right: 18px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 31, 34, 0.78);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(6, 14, 16, 0.28);
  z-index: 24;
}

@media (max-width: 1500px) {
.workspace{
    grid-template-columns: 332px minmax(0, 1fr) 306px;
  }
.dji-media-item{
    grid-template-columns: 106px minmax(0, 1fr);
  }
}

@media (max-width: 1200px) {
.app-shell{
    width: calc(100vw - 20px);
    padding-top: 14px;
  }
.system-header{
    text-align: center;
  }
.workspace{
    grid-template-columns: 1fr;
  }
.left-panel,
.center-panel,
.right-panel{
    padding: 18px 16px;
  }
}
/* =========================================================
   Compact Premium Pass (v18)
   Fix covered media title/actions and tighten the interface.
   ========================================================= */

body::before{
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.14)),
    url("/static/assets/agri-platform-bg.svg") center top / cover no-repeat;
  opacity: 0.34;
}
body::after{
  background:
    radial-gradient(circle at 14% 0%, rgba(117, 170, 133, 0.14), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(61, 137, 135, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}
.app-shell{
  width: min(1900px, calc(100vw - 20px));
  padding: 14px 0 12px;
}
.system-header{
  margin-bottom: 12px;
}
.system-header h1{
  min-height: 58px;
  padding: 0 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(246, 250, 248, 0.72));
  box-shadow: 0 10px 24px rgba(15, 43, 41, 0.06);
  font-size: clamp(1.85rem, 2.1vw, 2.7rem);
}
.workspace{
  grid-template-columns: 334px minmax(0, 1fr) 312px;
  gap: 14px;
}
.left-panel,
.center-panel,
.right-panel{
  padding: 18px 18px;
}
.panel{
  border-radius: 24px;
}
.panel h2{
  margin-bottom: 12px;
  font-size: 1.08rem;
}
.panel h3{
  font-size: 0.92rem;
}
.upload-form,
.dji-live-panel,
.model-banner,
.table-wrap,
.hotspot-list,
.other-list{
  border-radius: 18px;
}
.upload-form{
  padding: 13px;
}
.file-picker.file-picker-btns{
  padding: 10px;
}
.pick-hint{
  margin-top: 4px;
  font-size: 0.74rem;
}
.dji-selected-summary{
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.76rem;
}
.dji-live-panel{
  margin-top: 12px;
  padding: 13px;
}
.dji-live-head{
  margin-bottom: 10px;
}
.dji-live-head{
  flex-wrap: wrap;
}
.dji-media-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.dji-media-actions .tool-btn{
  width: 100%;
  min-width: 0;
}
.dji-media-filters{
  gap: 8px;
}
.dji-openapi-status{
  margin-bottom: 10px;
  min-height: 34px;
  padding: 8px 10px;
}
.dji-live-grid{
  gap: 8px;
}
.dji-live-item{
  min-height: 54px;
  padding: 8px 10px;
}
.dji-live-item span{
  font-size: 0.62rem;
}
.dji-live-item strong{
  font-size: 0.9rem;
}
.viewer-toolbar{
  margin-bottom: 12px;
  padding: 8px;
  gap: 8px;
  border-radius: 16px;
}
.geo-map-canvas{
  border-radius: 20px;
}
.model-banner{
  padding: 14px 15px;
}
.stats-grid{
  gap: 8px;
}
.stat-item{
  padding: 10px 11px;
  border-radius: 14px;
}
.table-wrap,
.hotspot-list,
.other-list{
  border-radius: 18px;
}
.dji-media-item{
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
}
.dji-media-item .thumb-wrap{
  height: 84px;
  border-radius: 12px;
}
.dji-media-item .meta-wrap{
  gap: 5px;
}
.dji-media-topline{
  gap: 8px;
}
.dji-media-item .name{
  min-height: calc(1.34em * 2);
  font-size: 0.8rem;
  line-height: 1.34;
}
.dji-media-item .time,
.dji-media-item .meta{
  font-size: 0.69rem;
  line-height: 1.38;
}
.dji-media-item .tag{
  font-size: 0.63rem;
}
.tool-btn,
.dji-media-preview-btn,
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  min-height: 38px;
  border-radius: 12px;
  font-size: 0.78rem;
  box-shadow: 0 8px 18px rgba(14, 42, 41, 0.05);
}
.tool-btn:hover,
.dji-media-preview-btn:hover,
.file-trigger-btn:hover,
button[type="submit"]:hover,
#dji-auto-detect-btn:hover,
#dji-auto-detect-btn.is-active:hover,
#dji-auto-detect-btn.is-running:hover{
  box-shadow: 0 10px 20px rgba(14, 42, 41, 0.07);
}
#zoom-in,
#zoom-out{
  min-width: 38px;
  width: 38px;
}

@media (max-width: 1500px) {
.workspace{
    grid-template-columns: 314px minmax(0, 1fr) 292px;
  }
}
/* =========================================================
   Executive Dashboard Theme (v19)
   Strong override to avoid style conflicts from legacy layers.
   ========================================================= */

body{
  background:
    radial-gradient(circle at 12% 0%, rgba(81, 147, 124, 0.22), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(47, 124, 143, 0.18), transparent 30%),
    linear-gradient(180deg, #edf4f0 0%, #e3eee8 62%, #ebf3ee 100%) !important;
}
body::before{
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.1)),
    url("/static/assets/agri-platform-bg.svg") center top / cover no-repeat !important;
  opacity: 0.5 !important;
}
body::after{
  background:
    radial-gradient(circle at 18% 90%, rgba(123, 175, 128, 0.14), transparent 28%),
    radial-gradient(circle at 84% 0%, rgba(58, 142, 144, 0.12), transparent 26%) !important;
}
.app-shell{
  position: relative !important;
  isolation: isolate;
  width: min(1920px, calc(100vw - 16px)) !important;
  padding: 10px 0 10px !important;
}
.app-shell::before{
  content: "";
  position: absolute;
  inset: -8px -8px -8px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    url("/static/assets/agri-platform-bg.svg") center/cover no-repeat;
  opacity: 0.28;
  z-index: -1;
  pointer-events: none;
}
.system-header{
  text-align: center !important;
  margin-bottom: 10px !important;
}
.system-header h1{
  margin: 0 auto !important;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-height: 52px !important;
  padding: 0 28px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(24, 75, 69, 0.14) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 251, 248, 0.8)) !important;
  box-shadow: 0 10px 26px rgba(13, 43, 41, 0.08) !important;
  font-size: clamp(1.8rem, 2.2vw, 2.75rem) !important;
  letter-spacing: 0.02em;
}
.workspace{
  grid-template-columns: 322px minmax(0, 1fr) 304px !important;
  gap: 10px !important;
}
.panel{
  border-radius: 20px !important;
  border: 1px solid rgba(18, 66, 61, 0.12) !important;
  box-shadow: 0 14px 34px rgba(12, 38, 38, 0.08), 0 4px 12px rgba(12, 38, 38, 0.04) !important;
}
.left-panel,
.center-panel,
.right-panel{
  padding: 13px 13px !important;
}
.left-panel{
  background: linear-gradient(180deg, rgba(250, 253, 251, 0.95), rgba(238, 247, 242, 0.9)) !important;
}
.center-panel{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 249, 0.93)) !important;
}
.right-panel{
  background: linear-gradient(180deg, rgba(248, 252, 250, 0.95), rgba(239, 248, 244, 0.91)) !important;
}
.panel h2{
  margin-bottom: 9px !important;
  font-size: 1rem !important;
}
.panel h3{
  font-size: 0.9rem !important;
}
.upload-form,
.dji-live-panel,
.model-banner,
.table-wrap,
.hotspot-list,
.other-list{
  border-radius: 14px !important;
  padding: 10px !important;
}
.upload-form{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 248, 0.94)) !important;
}
.file-picker.file-picker-btns{
  padding: 8px !important;
  border-radius: 11px !important;
}
.pick-hint{
  margin-top: 3px !important;
  font-size: 0.72rem !important;
}
.dji-selected-summary{
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 0.74rem !important;
}
.dji-live-panel{
  margin-top: 9px !important;
}
.dji-live-head{
  margin-bottom: 8px !important;
}
.dji-media-actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  gap: 6px !important;
  align-items: stretch !important;
}
.dji-media-actions .tool-btn{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.dji-media-filters{
  gap: 6px !important;
}
.dji-openapi-status{
  min-height: 30px !important;
  padding: 7px 8px !important;
  margin-bottom: 8px !important;
}
.dji-live-grid{
  gap: 6px !important;
}
.dji-live-item{
  min-height: 48px !important;
  padding: 7px 8px !important;
  border-radius: 10px !important;
}
.dji-live-item span{
  font-size: 0.6rem !important;
}
.dji-live-item strong{
  font-size: 0.84rem !important;
}
.viewer-toolbar{
  padding: 6px !important;
  gap: 6px !important;
  margin-bottom: 9px !important;
  border-radius: 12px !important;
}
.geo-map-canvas{
  border-radius: 15px !important;
}
.model-banner{
  padding: 10px 11px !important;
}
.stats-grid{
  gap: 6px !important;
}
.stat-item{
  border-radius: 10px !important;
  padding: 8px 8px !important;
}
.table-wrap,
.hotspot-list,
.other-list{
  border-radius: 14px !important;
}
.table-wrap thead th{
  font-size: 0.72rem !important;
}
.table-wrap tbody td{
  font-size: 0.74rem !important;
}
.result-item{
  border-radius: 11px !important;
  padding: 8px 8px !important;
}
.result-item .name{
  font-size: 0.79rem !important;
}
.result-item .meta{
  font-size: 0.69rem !important;
}
.dji-media-item{
  display: grid !important;
  grid-template-columns: 94px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 12px !important;
}
.dji-media-item .thumb-wrap{
  height: 76px !important;
  border-radius: 10px !important;
}
.dji-media-item .meta-wrap{
  gap: 4px !important;
}
.dji-media-topline{
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 7px !important;
}
.dji-media-item .name{
  font-size: 0.75rem !important;
  line-height: 1.3 !important;
}
.dji-media-item .time,
.dji-media-item .meta{
  font-size: 0.66rem !important;
  line-height: 1.34 !important;
}
.dji-media-item .tag{
  font-size: 0.6rem !important;
}
.tool-btn,
.dji-media-preview-btn,
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  min-height: 34px !important;
  border-radius: 10px !important;
  padding: 0 11px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  transform: none !important;
}
.tool-btn{
  border: 1px solid rgba(26, 86, 80, 0.14) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 245, 0.92)) !important;
  box-shadow: 0 6px 14px rgba(14, 41, 39, 0.05) !important;
}
.tool-btn:hover,
.tool-btn.is-active,
.viewer-toolbar .tool-btn.is-active,
.tool-btn.is-running{
  transform: none !important;
}
.tool-btn:hover{
  border-color: rgba(27, 96, 88, 0.2) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(236, 246, 241, 0.96)) !important;
}
.tool-btn.is-active,
.viewer-toolbar .tool-btn.is-active{
  border-color: rgba(29, 104, 94, 0.28) !important;
  background: linear-gradient(135deg, rgba(32, 117, 103, 0.16), rgba(84, 158, 141, 0.16)) !important;
}
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  border: 1px solid rgba(23, 88, 77, 0.07) !important;
  background: linear-gradient(135deg, #155f58 0%, #24736c 52%, #2f857a 100%) !important;
  box-shadow: 0 10px 20px rgba(17, 72, 67, 0.2) !important;
  color: #fff !important;
}
.file-trigger-btn:hover,
button[type="submit"]:hover,
#dji-auto-detect-btn:hover,
#dji-auto-detect-btn.is-active:hover,
#dji-auto-detect-btn.is-running:hover{
  background: linear-gradient(135deg, #14544f 0%, #216a63 52%, #2b7a70 100%) !important;
  box-shadow: 0 12px 22px rgba(17, 72, 67, 0.22) !important;
}
#zoom-in,
#zoom-out{
  min-width: 34px !important;
  width: 34px !important;
  padding: 0 !important;
}
.map-image-close-float{
  top: 16px !important;
  right: 16px !important;
  min-width: 36px !important;
  height: 36px !important;
  z-index: 40 !important;
}

@media (max-width: 1500px) {
.workspace{
    grid-template-columns: 304px minmax(0, 1fr) 286px !important;
  }
}

@media (max-width: 1200px) {
.workspace{
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   Visual Fix Pack (v20)
   Ensure background visibility + collapsible file module
   + stable media action buttons.
   ========================================================= */

body{
  background:
    linear-gradient(165deg, rgba(235, 245, 239, 0.86), rgba(223, 237, 229, 0.9)),
    url("/static/assets/agri-platform-bg.svg") center top / cover fixed no-repeat !important;
}
body::before{
  background:
    radial-gradient(circle at 88% 10%, rgba(22, 126, 138, 0.22), transparent 32%),
    radial-gradient(circle at 10% 86%, rgba(115, 165, 109, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.12)) !important;
  opacity: 0.78 !important;
}
body::after{
  background:
    repeating-linear-gradient(
      125deg,
      rgba(21, 88, 76, 0.02) 0,
      rgba(21, 88, 76, 0.02) 1px,
      transparent 1px,
      transparent 20px
    ) !important;
  opacity: 0.55 !important;
}
.system-header{
  text-align: center !important;
}
.system-header h1{
  margin: 0 auto !important;
}
.workspace{
  gap: 9px !important;
}
.left-panel,
.center-panel,
.right-panel{
  padding: 12px 12px !important;
}
.left-panel .panel h2,
.left-panel h2{
  margin-bottom: 8px !important;
}
.file-select-wrap{
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible;
}
.file-select-wrap > summary{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 2px;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  font-weight: 700;
  color: #1d4743;
  background: transparent;
  border-bottom: 0;
}
.file-select-wrap > summary::-webkit-details-marker{
  display: none;
}
.file-select-wrap > summary .fold-hint{
  font-size: 0;
  color: #396a62;
}
.file-select-wrap > summary .fold-hint::before{
  content: "展开";
  font-size: 0.72rem;
  font-weight: 600;
}
.file-select-wrap[open] > summary .fold-hint::before{
  content: "收起";
}
.file-select-wrap > .upload-form{
  margin-top: 6px !important;
  border: 1px solid rgba(22, 88, 78, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(13, 41, 39, 0.05) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 250, 246, 0.92)) !important;
  padding: 10px !important;
}
.file-select-wrap:not([open]) > .upload-form{
  display: none !important;
}
.dji-media-actions{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
.dji-media-actions .tool-btn,
#dji-gallery-open-btn,
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 7px !important;
  font-size: 0.69rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.dji-media-filters .tool-btn,
.dji-gallery-type-filters .tool-btn{
  min-height: 32px !important;
  font-size: 0.7rem !important;
}

/* =========================================================
   DJI Media Card Layout Fix (v26)
   Keep left media list stable (single column) and avoid text overlap.
   ========================================================= */
.dji-media-module #dji-media-list{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  align-content: start !important;
}
.dji-media-module .dji-media-item{
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  overflow: hidden !important;
}
.dji-media-module .dji-media-item .thumb-wrap{
  width: 92px !important;
  min-width: 92px !important;
  height: 76px !important;
}
.dji-media-module .dji-media-item .meta-wrap{
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  gap: 4px !important;
}
.dji-media-module .dji-media-topline{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 6px !important;
  align-items: center !important;
}
.dji-media-module .dji-media-check-wrap{
  min-width: 0 !important;
}
.dji-media-module .dji-media-check-wrap span{
  display: inline-block !important;
  max-width: 44px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.dji-media-module .dji-media-preview-btn{
  min-width: 56px !important;
  padding: 0 8px !important;
}
.dji-media-module .dji-media-item .name{
  display: block !important;
  margin: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  -webkit-line-clamp: unset !important;
}
.dji-media-module .dji-media-item .time,
.dji-media-module .dji-media-item .meta{
  display: block !important;
  margin: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  -webkit-line-clamp: unset !important;
}
.dji-gallery-list{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}
/* =========================================================
   Background & Parallel Card Fix (v21)
   Focus: page backdrop visibility and left-panel module parity.
   ========================================================= */

html,
body{
  background:
    linear-gradient(180deg, rgba(236, 245, 240, 0.76), rgba(229, 240, 233, 0.82)),
    url("/static/assets/agri-platform-bg.svg") center top / cover fixed no-repeat !important;
}
body::before{
  background:
    radial-gradient(circle at 88% 14%, rgba(29, 130, 141, 0.18), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(116, 168, 110, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)) !important;
  opacity: 0.82 !important;
}
body::after{
  background:
    repeating-linear-gradient(
      125deg,
      rgba(24, 93, 82, 0.018) 0,
      rgba(24, 93, 82, 0.018) 1px,
      transparent 1px,
      transparent 22px
    ) !important;
  opacity: 0.55 !important;
}
.app-shell::before{
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    url("/static/assets/agri-platform-bg.svg") center/cover no-repeat !important;
  opacity: 0.24 !important;
}
.left-panel{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.left-panel > .file-select-wrap,
.left-panel > .dji-live-panel{
  margin: 0 !important;
  border: 1px solid rgba(22, 88, 78, 0.14) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(253, 255, 254, 0.88), rgba(242, 249, 245, 0.84)) !important;
  box-shadow: 0 10px 22px rgba(13, 41, 39, 0.06) !important;
}
.left-panel > .dji-live-panel{
  padding: 10px !important;
}
.file-select-wrap{
  padding: 0 !important;
  overflow: hidden !important;
}
.file-select-wrap > summary{
  min-height: 34px !important;
  padding: 0 10px !important;
  border-bottom: 1px solid rgba(22, 88, 78, 0.12) !important;
  background: linear-gradient(180deg, rgba(238, 247, 242, 0.9), rgba(233, 244, 238, 0.86)) !important;
  font-size: 0.9rem !important;
}
.file-select-wrap > summary .fold-hint::before{
  content: "展开";
}
.file-select-wrap[open] > summary .fold-hint::before{
  content: "收起";
}
.file-select-wrap > .upload-form{
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 10px !important;
}
.left-panel,
.center-panel,
.right-panel{
  background-color: rgba(248, 252, 250, 0.74) !important;
  backdrop-filter: blur(8px) saturate(106%);
}
/* =========================================================
   Left Panel Module Layout (v22)
   Local upload parallel to realtime panel;
   realtime panel split into three parallel collapsible modules.
   ========================================================= */

.left-panel{
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.file-select-wrap.left-module,
.dji-live-panel{
  margin: 0 !important;
  border: 1px solid rgba(22, 88, 78, 0.14) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(253, 255, 254, 0.9), rgba(242, 249, 245, 0.86)) !important;
  box-shadow: 0 10px 22px rgba(13, 41, 39, 0.06) !important;
}
.file-select-wrap.left-module{
  overflow: hidden !important;
}
.dji-live-panel{
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.dji-live-head{
  margin: 0 !important;
  padding: 0 2px !important;
}
.left-module{
  margin: 0 !important;
  border: 1px solid rgba(22, 88, 78, 0.12) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 248, 0.9)) !important;
  box-shadow: 0 8px 18px rgba(13, 41, 39, 0.05) !important;
  overflow: hidden !important;
}
.left-module > summary{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(22, 88, 78, 0.1);
  background: linear-gradient(180deg, rgba(238, 247, 242, 0.9), rgba(233, 244, 238, 0.84));
  color: #214c47;
  font-size: 0.85rem;
  font-weight: 700;
}
.left-module > summary::-webkit-details-marker{
  display: none;
}
.left-module > summary .fold-hint{
  font-size: 0;
  color: #3e6f66;
}
.left-module > summary .fold-hint::before{
  content: "展开";
  font-size: 0.7rem;
  font-weight: 600;
}
.left-module[open] > summary .fold-hint::before{
  content: "收起";
}
.file-select-wrap.left-module > .upload-form{
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
#dji-gallery-open-btn,
#dji-auto-detect-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 8px !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
/* =========================================================
   Realtime Panel Consistency Fix (v23)
   Keep local upload visible; make realtime submodules consistent
   and scroll within realtime panel instead of pushing local block away.
   ========================================================= */

.left-panel{
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 8px !important;
}
.file-select-wrap.left-module{
  flex: 0 0 auto !important;
}
.dji-live-panel{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px !important;
}
.dji-live-panel::-webkit-scrollbar{
  width: 8px !important;
}
.dji-live-panel::-webkit-scrollbar-thumb{
  background: rgba(34, 116, 102, 0.35);
  border-radius: 999px;
}
.dji-live-panel{
  scrollbar-width: thin !important;
  scrollbar-color: rgba(34, 116, 102, 0.35) transparent !important;
}
.dji-live-head{
  margin: 0 !important;
  padding: 0 2px !important;
}
.dji-live-panel > details.left-module{
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(22, 88, 78, 0.12) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 248, 0.92)) !important;
  box-shadow: 0 8px 18px rgba(13, 41, 39, 0.05) !important;
  overflow: hidden !important;
}
.dji-live-panel > details.left-module > summary{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(22, 88, 78, 0.1);
  background: linear-gradient(180deg, rgba(238, 247, 242, 0.92), rgba(233, 244, 238, 0.86));
  color: #214c47;
  font-size: 0.84rem;
  font-weight: 700;
}
.dji-live-panel > details.left-module > summary::-webkit-details-marker{
  display: none;
}
.dji-live-panel > details.left-module > summary .fold-hint{
  font-size: 0;
  color: #3e6f66;
}
.dji-live-panel > details.left-module > summary .fold-hint::before{
  content: "展开";
  font-size: 0.7rem;
  font-weight: 600;
}
.dji-live-panel > details.left-module[open] > summary .fold-hint::before{
  content: "收起";
}
/* Keep realtime sub-modules strictly under realtime header in fixed order */
.dji-live-panel > *{
  order: 0 !important;
}
.dji-live-panel > .dji-live-head{
  order: 0 !important;
}
/* =========================================================
   DJI Left Panel No-Overlap Fix (v25)
   Bind to new module class names and enforce strict flow layout.
   ========================================================= */

.dji-live-panel{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}
.dji-live-panel > .dji-live-head{
  order: 0 !important;
  flex: 0 0 auto !important;
}
.dji-live-panel > details.left-module{
  display: block !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.dji-live-panel > details.left-module > summary{
  position: relative !important;
  z-index: 2 !important;
}
.dji-live-panel > details.left-module > *:not(summary){
  position: relative !important;
  z-index: 1 !important;
}
.dji-live-panel > details.dji-advanced-module{
  order: 1 !important;
}
.dji-live-panel > details.dji-status-module{
  order: 2 !important;
}
.dji-live-panel > details.dji-media-module{
  order: 3 !important;
}
.dji-live-panel > details.dji-advanced-module > .dji-openapi-status,
.dji-live-panel > details.dji-advanced-module > .dji-config-grid,
.dji-live-panel > details.dji-advanced-module > .dji-advanced-actions,
.dji-live-panel > details.dji-status-module > .dji-live-grid,
.dji-live-panel > details.dji-status-module > .dji-live-item.full{
  margin: 8px !important;
}
.dji-live-panel > details.dji-media-module > .dji-media-inner{
  margin: 0 !important;
  padding: 8px !important;
  display: grid !important;
  gap: 8px !important;
}
.dji-live-panel > details.dji-media-module .dji-media-actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

/* =========================================================
   Folder Auto-Detect UX Fix (v27)
   Gallery folder quick actions + left task folder selector
   ========================================================= */
.dji-folder-task{
  display: grid !important;
  gap: 6px !important;
  margin-top: 2px !important;
  padding: 8px !important;
  border: 1px solid rgba(21, 86, 92, 0.12) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 248, 0.9)) !important;
}
.dji-folder-task-label{
  display: grid !important;
  gap: 4px !important;
}
.dji-folder-task-label span{
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  color: #5e777f !important;
}
#dji-task-folder-select{
  width: 100% !important;
  height: 36px !important;
  border: 1px solid rgba(24, 82, 88, 0.18) !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #23474e !important;
  font: 600 0.74rem "Space Grotesk", "Noto Sans SC", "Segoe UI", sans-serif !important;
}
.dji-folder-task-actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
#dji-task-folder-pick-btn,
#dji-task-folder-auto-btn{
  min-width: 0 !important;
  width: 100% !important;
  min-height: 34px !important;
  height: 34px !important;
  font-size: 0.7rem !important;
  padding: 0 8px !important;
}
#dji-task-folder-summary{
  margin: 0 !important;
  font-size: 0.66rem !important;
  line-height: 1.35 !important;
}
.dji-media-module .dji-folder-task{
  margin-top: 0 !important;
}

.dji-gallery-filter-wrap{
  align-items: center !important;
}
#dji-gallery-folder-auto-btn{
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  font-size: 0.7rem !important;
  border-radius: 10px !important;
}
.dji-gallery-folder-quick-list{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 8px !important;
  max-height: 162px !important;
  overflow: auto !important;
  padding-right: 2px !important;
}
.dji-gallery-folder-chip{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  gap: 4px 8px !important;
  align-items: center !important;
  border: 1px solid rgba(22, 86, 90, 0.14) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 248, 0.9)) !important;
  padding: 8px !important;
}
.dji-gallery-folder-chip.is-current{
  border-color: rgba(19, 107, 118, 0.28) !important;
}
.dji-gallery-folder-chip.is-auto{
  box-shadow: 0 0 0 1px rgba(30, 131, 123, 0.26) inset !important;
}
.dji-gallery-folder-chip .name{
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #234a4f !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}
.dji-gallery-folder-chip .count{
  color: #5d7680 !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
}
.dji-gallery-folder-chip .actions{
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
.dji-gallery-folder-chip .actions .tool-btn{
  min-width: 0 !important;
  width: 100% !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 8px !important;
  font-size: 0.68rem !important;
  border-radius: 9px !important;
}

.dji-gallery-list{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)) !important;
  align-content: start !important;
  gap: 10px !important;
  height: calc(100vh - 340px) !important;
  min-height: 340px !important;
  overflow: auto !important;
}
.dji-gallery-item{
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  padding: 9px !important;
  min-height: 250px !important;
}
.dji-gallery-item .thumb-wrap{
  height: 120px !important;
}
.dji-gallery-item .meta-wrap{
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
}
.dji-gallery-item .dji-media-topline{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 6px !important;
  align-items: center !important;
}
.dji-gallery-item .name{
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  min-height: calc(1.35em * 2) !important;
  line-height: 1.35 !important;
}
.dji-gallery-item .time,
.dji-gallery-item .meta{
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  overflow: hidden !important;
  line-height: 1.35 !important;
}

/* =========================================================
   Layout Stability & Gallery Fill Fix (v29)
   Fix 1: left drone image list overflow in narrow panel
   Fix 2: gallery modal grid not filling available width
   ========================================================= */
.left-panel{
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.left-panel > .file-select-wrap.left-module{
  flex: 0 0 auto !important;
  min-height: 0 !important;
}
.left-panel > .dji-live-panel{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.dji-live-panel > details.dji-media-module{
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.dji-live-panel > details.dji-media-module[open] > .dji-media-inner{
  min-height: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}
.dji-media-module #dji-media-list{
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  align-content: start !important;
  grid-template-columns: minmax(0, 1fr) !important;
  padding-right: 2px !important;
}
.dji-media-module .dji-media-item{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.dji-media-module .dji-media-item .meta-wrap,
.dji-media-module .dji-media-item .name,
.dji-media-module .dji-media-item .time,
.dji-media-module .dji-media-item .meta{
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#dji-gallery-modal .dji-gallery-panel{
  width: min(1720px, calc(100vw - 28px)) !important;
  max-width: 1720px !important;
}
#dji-gallery-modal .map-image-body.dji-gallery-body{
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  align-content: stretch !important;
  gap: 10px !important;
  min-height: min(80vh, 960px) !important;
  max-height: min(84vh, 1000px) !important;
  overflow: hidden !important;
}
#dji-gallery-modal #dji-gallery-status{
  margin: 0 !important;
}
#dji-gallery-modal #dji-gallery-folder-quick-list{
  width: 100% !important;
  min-width: 0 !important;
}
#dji-gallery-modal #dji-gallery-list.dji-gallery-list{
  width: 100% !important;
  min-width: 0 !important;
  max-height: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  grid-auto-rows: minmax(236px, auto) !important;
  align-content: start !important;
  justify-content: stretch !important;
  gap: 12px !important;
  overflow: auto !important;
  padding-right: 2px !important;
}
#dji-gallery-modal .dji-gallery-item{
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1440px){
  #dji-gallery-modal #dji-gallery-list.dji-gallery-list{
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)) !important;
  }
}

@media (max-width: 1080px){
  #dji-gallery-modal #dji-gallery-list.dji-gallery-list{
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }
}

/* =========================================================
   Scroll + Alignment Hotfix (v33)
   1) restore visible scrollbars in left panel
   2) prevent left list overflow
   3) center gallery modal and thumbnails
   ========================================================= */
.left-panel{
  min-height: 0 !important;
  overflow: hidden !important;
}
.left-panel > .dji-live-panel{
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.left-panel .dji-live-panel,
.left-panel #dji-media-list{
  scrollbar-width: thin !important;
  scrollbar-color: rgba(34, 116, 102, 0.5) rgba(0, 0, 0, 0) !important;
}
.left-panel .dji-live-panel::-webkit-scrollbar,
.left-panel #dji-media-list::-webkit-scrollbar{
  width: 8px !important;
  height: 8px !important;
}
.left-panel .dji-live-panel::-webkit-scrollbar-thumb,
.left-panel #dji-media-list::-webkit-scrollbar-thumb{
  background: rgba(34, 116, 102, 0.5) !important;
  border-radius: 999px !important;
}
.left-panel #dji-media-list{
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.left-panel .dji-media-item,
.left-panel .dji-media-item .meta-wrap{
  min-width: 0 !important;
  max-width: 100% !important;
}
.left-panel .dji-media-item .name,
.left-panel .dji-media-item .time,
.left-panel .dji-media-item .meta,
.left-panel .dji-media-item .tag{
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#dji-gallery-modal{
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}
#dji-gallery-modal.hidden{
  display: none !important;
}
#dji-gallery-modal:not(.hidden){
  display: flex !important;
}
#dji-gallery-modal .map-image-panel.dji-gallery-panel{
  margin: 0 auto !important;
}
#dji-gallery-modal .map-image-body.dji-gallery-body{
  justify-items: stretch !important;
}
#dji-gallery-modal #dji-gallery-list.dji-gallery-list{
  margin: 0 auto !important;
}
#dji-gallery-modal .dji-gallery-item .thumb-wrap{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
#dji-gallery-modal .dji-gallery-item .thumb-wrap img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* =========================================================
   Hotspot Visibility Upgrade (v35)
   - stronger A/B/C level color differentiation
   - clearer overlay labels in image preview
   ========================================================= */
.hotspot-level-badge.lv-a{
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #9f1239 !important;
  background: rgba(239, 68, 68, 0.22) !important;
}
.hotspot-level-badge.lv-b{
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #9a3412 !important;
  background: rgba(245, 158, 11, 0.24) !important;
}
.hotspot-level-badge.lv-c{
  border-color: rgba(34, 197, 94, 0.44) !important;
  color: #166534 !important;
  background: rgba(34, 197, 94, 0.2) !important;
}
.hotspot-item[data-hotspot-level="A"]{
  border-left: 3px solid rgba(239, 68, 68, 0.55) !important;
}
.hotspot-item[data-hotspot-level="B"]{
  border-left: 3px solid rgba(245, 158, 11, 0.55) !important;
}
.hotspot-item[data-hotspot-level="C"]{
  border-left: 3px solid rgba(34, 197, 94, 0.5) !important;
}
.map-image-overlay text{
  paint-order: stroke !important;
  stroke: rgba(8, 37, 44, 0.78) !important;
  stroke-width: 2px !important;
}

/* =========================================================
   Layout Tweaks (v36)
   1) gallery modal uses 2-column grid
   2) right-side current-detail table shows full rows with scroll
   ========================================================= */
#dji-gallery-modal #dji-gallery-list.dji-gallery-list{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(236px, auto) !important;
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  justify-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  align-content: start !important;
}
#dji-gallery-modal .dji-gallery-item{
  min-width: 0 !important;
}

#dji-gallery-modal #dji-gallery-status,
#dji-gallery-modal #dji-gallery-folder-quick-list,
#dji-gallery-modal #dji-gallery-list.dji-gallery-list{
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  justify-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.right-panel .table-wrap{
  max-height: 42vh !important;
  min-height: 220px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.right-panel .table-wrap table{
  width: 100% !important;
}

/* =========================================================
   Gallery + Right Panel Stability (v38)
   1) hard-center gallery content blocks
   2) keep right result blocks fixed-height for stable visual rhythm
   ========================================================= */
#dji-gallery-modal .map-image-panel.dji-gallery-panel{
  width: min(1360px, calc(100vw - 32px)) !important;
  margin: 0 auto !important;
}
#dji-gallery-modal .map-image-body.dji-gallery-body{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}
#dji-gallery-modal #dji-gallery-status,
#dji-gallery-modal #dji-gallery-folder-quick-list,
#dji-gallery-modal #dji-gallery-list.dji-gallery-list{
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center !important;
}
#dji-gallery-modal #dji-gallery-list.dji-gallery-list{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(236px, auto) !important;
  align-content: start !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.right-panel #hotspot-list,
.right-panel #result-list,
.right-panel .table-wrap{
  width: 100% !important;
  box-sizing: border-box !important;
}
.right-panel #hotspot-list{
  min-height: 210px !important;
  height: 210px !important;
  max-height: 210px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.right-panel #result-list{
  min-height: 210px !important;
  height: 210px !important;
  max-height: 210px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.right-panel .table-wrap{
  min-height: 240px !important;
  height: 240px !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* =========================================================
   Right Panel Compact Tune (v40)
   - extra compact heights + smaller typography
   ========================================================= */
.right-panel #hotspot-list{
  min-height: 132px !important;
  height: 132px !important;
  max-height: 132px !important;
}
.right-panel #result-list{
  min-height: 132px !important;
  height: 132px !important;
  max-height: 132px !important;
}
.right-panel .table-wrap{
  min-height: 150px !important;
  height: 150px !important;
  max-height: 150px !important;
}

.right-panel #hotspot-list .hotspot-item,
.right-panel #result-list .result-item{
  padding: 6px 7px !important;
  border-radius: 10px !important;
}
.right-panel #hotspot-list .hotspot-item .title,
.right-panel #result-list .result-item .name{
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
}
.right-panel #hotspot-list .hotspot-item .meta,
.right-panel #result-list .result-item .meta{
  font-size: 0.64rem !important;
  line-height: 1.2 !important;
}
.right-panel #hotspot-list .hotspot-item .coord{
  font-size: 0.62rem !important;
  line-height: 1.2 !important;
}

.right-panel .table-wrap thead th{
  font-size: 0.66rem !important;
  padding: 5px 6px !important;
}
.right-panel .table-wrap tbody td{
  font-size: 0.66rem !important;
  padding: 5px 6px !important;
}

/* =========================================================
   Left DJI list stability (v41)
   - prevent card overlap when many images exist
   ========================================================= */
.left-panel .dji-media-module #dji-media-list{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: row !important;
  align-content: start !important;
  gap: 10px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.left-panel .dji-media-module .dji-media-item{
  position: relative !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: start !important;
  min-height: 88px !important;
  height: auto !important;
  overflow: hidden !important;
}

.left-panel .dji-media-module .dji-media-item .thumb-wrap{
  width: 92px !important;
  height: 76px !important;
  align-self: start !important;
}

.left-panel .dji-media-module .dji-media-item .meta-wrap{
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.left-panel .dji-media-module .dji-media-item .name,
.left-panel .dji-media-module .dji-media-item .time,
.left-panel .dji-media-module .dji-media-item .meta,
.left-panel .dji-media-module .dji-media-item .tag{
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* =========================================================
   Drone realtime command view (v42)
   ========================================================= */
.flight-command-card{
  border: 1px solid rgba(31, 92, 111, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(234, 249, 244, 0.78)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(15, 68, 76, 0.08);
  padding: 8px;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.flight-command-top{
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.flight-command-top strong,
.flight-command-top span{
  display: block;
  min-width: 0;
}

.flight-command-top strong{
  color: #0d4f5a;
  font: 800 0.84rem var(--ui-font, "Segoe UI", sans-serif);
  line-height: 1.15;
}

.flight-command-top span:not(.flight-live-dot){
  color: #55727a;
  font-size: 0.66rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-live-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.16);
}

.flight-live-dot.is-online{
  background: #18a058;
  box-shadow: 0 0 0 5px rgba(24, 160, 88, 0.18);
  animation: flightPulse 1.45s ease-out infinite;
}

@keyframes flightPulse{
  0%{ box-shadow: 0 0 0 0 rgba(24, 160, 88, 0.32); }
  72%{ box-shadow: 0 0 0 10px rgba(24, 160, 88, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(24, 160, 88, 0); }
}

.flight-kpi-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.flight-kpi-grid div{
  border: 1px solid rgba(15, 92, 98, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px 4px;
  min-width: 0;
}

.flight-kpi-grid span{
  display: block;
  color: #607982;
  font-size: 0.56rem;
  line-height: 1.15;
  white-space: nowrap;
}

.flight-kpi-grid strong{
  display: block;
  margin-top: 2px;
  color: #075f67;
  font: 800 0.82rem "Space Grotesk", var(--ui-font, "Segoe UI", sans-serif);
  line-height: 1;
}

.flight-now-row{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 92, 98, 0.1);
  border-radius: 8px;
  background: rgba(248, 253, 251, 0.74);
  padding: 4px 6px;
  min-width: 0;
}

.flight-now-row span{
  color: #607982;
  font-size: 0.6rem;
  white-space: nowrap;
}

.flight-now-row strong{
  color: #0b5964;
  font: 700 0.66rem "Space Grotesk", var(--ui-font, "Segoe UI", sans-serif);
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-event-stream{
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(16, 32, 43, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  padding: 7px;
}

.flight-event{
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  border: 1px solid rgba(16, 32, 43, 0.08);
  border-radius: 8px;
  background: rgba(250, 254, 252, 0.86);
  padding: 6px;
}

.flight-event-dot{
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border-radius: 999px;
  background: #64748b;
}

.flight-event-media .flight-event-dot{
  background: #d97706;
}

.flight-event-live .flight-event-dot{
  background: #0ea5e9;
}

.flight-event-detect .flight-event-dot{
  background: #16a34a;
}

.flight-event-nav .flight-event-dot{
  background: #7c3aed;
}

.flight-event strong,
.flight-event span{
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-event strong{
  color: #103f4a;
  font-size: 0.68rem;
  line-height: 1.2;
}

.flight-event span{
  color: #5b7178;
  font-size: 0.61rem;
  line-height: 1.2;
}

.flight-track-line{
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.22));
}

.flight-drone-marker{
  filter: drop-shadow(0 2px 7px rgba(14, 165, 233, 0.38));
}

.flight-media-point{
  filter: drop-shadow(0 1px 4px rgba(8, 47, 73, 0.22));
  transition: stroke-width 0.18s ease, r 0.18s ease, opacity 0.18s ease;
}

.flight-media-point-new{
  filter: drop-shadow(0 0 7px rgba(14, 165, 233, 0.52));
}

.flight-media-point-recognizing{
  animation: flightMediaPulse 1.35s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.58));
}

.flight-media-point-completed{
  opacity: 0.72;
}

@keyframes flightMediaPulse{
  0%, 100%{
    opacity: 0.72;
    stroke-width: 1.4;
  }
  50%{
    opacity: 1;
    stroke-width: 2.4;
  }
}

.hotspot-nav-hint{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 1280px){
  .flight-kpi-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flight-event-stream{
    height: 100px;
    min-height: 100px;
    max-height: 100px;
  }
}

/* Sikong2 media gallery polish (v46) */
.dji-media-filters,
.dji-gallery-type-filters{
  gap: 6px !important;
}

#dji-media-filter-visible.is-active,
#dji-gallery-type-visible.is-active{
  border-color: rgba(12, 119, 96, 0.48) !important;
  background: linear-gradient(180deg, rgba(218, 251, 238, 0.96), rgba(184, 235, 224, 0.92)) !important;
  color: #075f52 !important;
  box-shadow: 0 7px 16px rgba(12, 119, 96, 0.14) !important;
}

#dji-media-filter-ndvi.is-active,
#dji-gallery-type-ndvi.is-active{
  border-color: rgba(124, 58, 237, 0.45) !important;
  background: linear-gradient(180deg, rgba(244, 232, 255, 0.96), rgba(255, 239, 198, 0.9)) !important;
  color: #5b21b6 !important;
  box-shadow: 0 7px 16px rgba(124, 58, 237, 0.13) !important;
}

#dji-media-filter-all.is-active,
#dji-gallery-type-all.is-active{
  border-color: rgba(22, 78, 99, 0.36) !important;
  background: linear-gradient(180deg, rgba(236, 250, 251, 0.96), rgba(226, 243, 237, 0.92)) !important;
  color: #164e63 !important;
}

.media-type-tag{
  min-width: 46px !important;
  justify-content: center !important;
  border-width: 1px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.media-type-visible{
  border-color: rgba(12, 119, 96, 0.34) !important;
  background: rgba(219, 249, 236, 0.92) !important;
  color: #047857 !important;
}

.media-type-ndvi{
  border-color: rgba(124, 58, 237, 0.36) !important;
  background: rgba(245, 232, 255, 0.94) !important;
  color: #6d28d9 !important;
}

.dji-media-item{
  position: relative !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  border-left-width: 4px !important;
}

.dji-media-item[data-media-type="visible"]{
  border-left-color: #0f9f7a !important;
  background: linear-gradient(180deg, rgba(249, 255, 253, 0.98), rgba(235, 251, 244, 0.92)) !important;
}

.dji-media-item[data-media-type="ndvi"]{
  border-left-color: #8b5cf6 !important;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 239, 255, 0.92)) !important;
}

.dji-media-item[data-media-type="visible"].is-selected{
  box-shadow: 0 0 0 2px rgba(15, 159, 122, 0.28), 0 12px 24px rgba(15, 92, 98, 0.13) !important;
}

.dji-media-item[data-media-type="ndvi"].is-selected{
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3), 0 12px 24px rgba(88, 28, 135, 0.12) !important;
}

.dji-media-item .thumb-wrap{
  position: relative !important;
  background: #eef7f4 !important;
}

.dji-media-item[data-media-type="visible"] .thumb-wrap{
  background: linear-gradient(135deg, rgba(219, 249, 236, 0.86), rgba(224, 247, 250, 0.86)) !important;
}

.dji-media-item[data-media-type="ndvi"] .thumb-wrap{
  background: linear-gradient(135deg, rgba(245, 232, 255, 0.9), rgba(255, 243, 205, 0.86)) !important;
}

.dji-media-item[data-media-type] .thumb-wrap::after{
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 5px 12px rgba(16, 32, 43, 0.18);
  pointer-events: none;
}

.dji-media-item[data-media-type="visible"] .thumb-wrap::after{
  content: "可见光";
  background: rgba(4, 120, 87, 0.92);
}

.dji-media-item[data-media-type="ndvi"] .thumb-wrap::after{
  content: "NDVI";
  background: rgba(109, 40, 217, 0.92);
}

.dji-media-item .name,
.dji-gallery-item .name{
  color: #133f48 !important;
  font-weight: 850 !important;
}

.dji-media-item .tag-row{
  gap: 5px !important;
}

.dji-media-item .tag-row .tag{
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#dji-gallery-modal #dji-gallery-list.dji-gallery-list{
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)) !important;
  gap: 12px !important;
  padding: 4px 2px 16px !important;
}

#dji-gallery-modal .dji-gallery-item{
  min-height: 0 !important;
  border-radius: 8px !important;
  padding: 9px !important;
}

#dji-gallery-modal .dji-gallery-item .thumb-wrap{
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
  border-radius: 8px !important;
}

#dji-gallery-modal .dji-gallery-item .meta-wrap{
  gap: 6px !important;
}

#dji-gallery-modal .dji-gallery-item .tag-row{
  display: flex !important;
  flex-wrap: wrap !important;
}

#dji-gallery-modal .dji-gallery-item .tag-row .tag:not(.media-type-tag){
  max-width: 100% !important;
}

/* Real hotspot navigation controls (v47) */
.hotspot-item{
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
  user-select: none !important;
  display: grid !important;
  gap: 5px !important;
}

.hotspot-item:focus-visible{
  outline: 2px solid rgba(37, 99, 235, 0.62) !important;
  outline-offset: 2px !important;
}

.hotspot-nav-target{
  display: block !important;
  min-width: 0 !important;
  color: #315d66 !important;
  font-size: 0.61rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.hotspot-actions,
.hotspot-popup-actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.hotspot-locate-btn,
.hotspot-field-nav-btn,
.hotspot-popup-image-btn{
  min-width: 0 !important;
  border: 1px solid rgba(16, 92, 98, 0.2) !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #0b5964 !important;
  padding: 5px 6px !important;
  font: 850 0.64rem var(--ui-font, "Segoe UI", sans-serif) !important;
  line-height: 1.1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.hotspot-locate-btn:hover,
.hotspot-popup-image-btn:hover{
  border-color: rgba(14, 116, 144, 0.4) !important;
  background: rgba(224, 247, 250, 0.9) !important;
  color: #075985 !important;
}

.hotspot-field-nav-btn{
  border-color: rgba(22, 163, 74, 0.42) !important;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.96), rgba(187, 247, 208, 0.92)) !important;
  color: #166534 !important;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.12) !important;
}

.hotspot-field-nav-btn:hover{
  border-color: rgba(22, 163, 74, 0.68) !important;
  background: linear-gradient(180deg, rgba(187, 247, 208, 0.98), rgba(134, 239, 172, 0.94)) !important;
  color: #14532d !important;
}

.hotspot-map-popup .leaflet-popup-content{
  margin: 10px 12px !important;
}

.hotspot-popup{
  display: grid !important;
  gap: 7px !important;
  min-width: 210px !important;
  max-width: 260px !important;
}

.hotspot-popup strong,
.hotspot-popup span{
  display: block !important;
  min-width: 0 !important;
}

.hotspot-popup strong{
  color: #173f48 !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

.hotspot-popup span{
  color: #496a73 !important;
  font-size: 0.66rem !important;
  line-height: 1.3 !important;
}

/* Gallery manual action controls (v48) */
.dji-gallery-action-bar{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  min-width: min(100%, 360px) !important;
}

.dji-gallery-action-bar .tool-btn{
  min-width: 0 !important;
  padding-inline: 8px !important;
  white-space: nowrap !important;
}

#dji-gallery-detect-selected-btn{
  border-color: rgba(16, 126, 93, 0.46) !important;
  background: linear-gradient(180deg, rgba(221, 252, 231, 0.97), rgba(187, 247, 208, 0.94)) !important;
  color: #166534 !important;
  font-weight: 900 !important;
}

#dji-gallery-detect-selected-btn:disabled,
#dji-gallery-select-current-btn:disabled,
#dji-gallery-clear-selection-btn:disabled{
  opacity: 0.48 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

#dji-gallery-modal .dji-gallery-folder-chip .actions{
  grid-template-columns: minmax(0, 1fr) !important;
}

#dji-gallery-modal .dji-gallery-folder-chip .dji-gallery-folder-pick-btn{
  width: 100% !important;
}

@media (max-width: 760px){
  .dji-gallery-action-bar{
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Professional command workspace refresh (v49) */
:root{
  --cmd-bg: #eef3f2;
  --cmd-surface: #ffffff;
  --cmd-surface-2: #f7faf9;
  --cmd-line: #d7e1df;
  --cmd-line-strong: #b8c9c6;
  --cmd-ink: #1f2937;
  --cmd-muted: #64748b;
  --cmd-teal: #0f4f4a;
  --cmd-teal-2: #14545a;
  --cmd-risk: #d97706;
  --cmd-danger: #dc2626;
  --cmd-ndvi: #7c3aed;
  --cmd-visible: #16a34a;
  --cmd-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

body{
  color: var(--cmd-ink) !important;
  background: var(--cmd-bg) !important;
  font-family: "Noto Sans SC", "Manrope", "Segoe UI", sans-serif !important;
}

body::before,
body::after,
.bg-orb{
  display: none !important;
}

.app-shell{
  width: calc(100vw - 20px) !important;
  height: calc(100vh - 16px) !important;
  max-width: none !important;
  margin: 8px auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 8px !important;
}

.system-header{
  width: 100% !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  border: 1px solid rgba(15, 79, 74, 0.18) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #0b3f3b, #14545a) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14) !important;
}

.system-title-block{
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.system-header h1{
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.system-title-block span{
  color: rgba(226, 244, 241, 0.76) !important;
  font-size: 0.68rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.system-status-strip{
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.system-status-strip span{
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: 184px !important;
  height: 28px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.system-status-strip span.is-online{
  border-color: rgba(34, 197, 94, 0.42) !important;
  background: rgba(22, 163, 74, 0.22) !important;
  color: #dcfce7 !important;
}

.system-status-strip span.is-offline{
  border-color: rgba(248, 113, 113, 0.34) !important;
  background: rgba(127, 29, 29, 0.22) !important;
  color: #fee2e2 !important;
}

.workspace{
  grid-template-columns: 318px minmax(680px, 1fr) 318px !important;
  gap: 10px !important;
  min-height: 0 !important;
  height: 100% !important;
}

.panel{
  border: 1px solid var(--cmd-line) !important;
  border-radius: 8px !important;
  background: var(--cmd-surface) !important;
  box-shadow: var(--cmd-shadow) !important;
  backdrop-filter: none !important;
  min-height: 0 !important;
}

.left-panel,
.right-panel{
  padding: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.center-panel{
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.panel h2{
  margin: 0 !important;
  padding: 0 0 7px !important;
  border-bottom: 1px solid var(--cmd-line) !important;
  color: var(--cmd-teal-2) !important;
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.panel h3{
  margin: 10px 0 6px !important;
  color: #334155 !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.left-module,
.dji-live-panel,
.upload-form,
.viewer-toolbar,
.canvas-foot,
.model-banner,
.table-wrap,
.hotspot-list,
.other-list,
.flight-command-card,
.dji-folder-task{
  border: 1px solid var(--cmd-line) !important;
  border-radius: 8px !important;
  background: var(--cmd-surface-2) !important;
  box-shadow: none !important;
}

.left-module summary{
  min-height: 30px !important;
  color: #334155 !important;
  font-size: 0.75rem !important;
  font-weight: 850 !important;
}

.upload-form{
  padding: 9px !important;
}

.file-picker,
.params label,
.dji-config-grid input,
.dji-folder-task-label select,
.dji-gallery-filter select{
  border-color: var(--cmd-line) !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

.tool-btn,
.upload-form button,
.dji-media-preview-btn,
.hotspot-locate-btn,
.hotspot-field-nav-btn,
.hotspot-popup-image-btn{
  border-radius: 7px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.upload-form button[type="submit"],
#dji-gallery-detect-selected-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  border-color: rgba(15, 79, 74, 0.52) !important;
  background: linear-gradient(180deg, #14545a, #0f4f4a) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 79, 74, 0.18) !important;
}

#dji-sync-btn,
#dji-gallery-open-btn,
#dji-refresh-btn,
#dji-connect-btn{
  border-color: rgba(15, 79, 74, 0.24) !important;
  background: #ffffff !important;
  color: var(--cmd-teal-2) !important;
}

.dji-media-filters .tool-btn,
.dji-gallery-type-filters .tool-btn{
  min-height: 32px !important;
  background: #ffffff !important;
}

.viewer-toolbar{
  margin: 0 !important;
  padding: 7px !important;
  min-height: 42px !important;
  background: #f8fbfa !important;
}

.canvas-frame{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  border: 1px solid var(--cmd-line-strong) !important;
  border-radius: 8px !important;
  background: #111827 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.geo-map-canvas,
.layout-canvas{
  border-radius: 8px !important;
}

.canvas-foot{
  margin: 0 !important;
  padding: 7px 9px !important;
  background: #f8fbfa !important;
}

.canvas-foot p{
  color: var(--cmd-muted) !important;
}

.model-banner{
  background: linear-gradient(180deg, #123f46, #0f4f4a) !important;
  border-color: rgba(15, 79, 74, 0.5) !important;
  color: #ffffff !important;
}

.model-banner p,
.model-banner strong,
.model-banner code{
  color: #ffffff !important;
}

.stats-grid{
  gap: 7px !important;
}

.stat-item{
  border-radius: 8px !important;
  background: #ffffff !important;
  border-color: var(--cmd-line) !important;
  padding: 8px !important;
}

.stat-item span{
  color: var(--cmd-muted) !important;
  font-size: 0.66rem !important;
}

.stat-item strong{
  color: var(--cmd-teal-2) !important;
  font-size: 1.02rem !important;
}

.hotspot-list,
.other-list,
.table-wrap{
  background: #ffffff !important;
}

.hotspot-item{
  border-radius: 8px !important;
  background: #ffffff !important;
  border-left: 4px solid var(--cmd-risk) !important;
}

.hotspot-item[data-hotspot-level="A"]{
  border-left-color: var(--cmd-danger) !important;
}

.hotspot-item[data-hotspot-level="B"]{
  border-left-color: var(--cmd-risk) !important;
}

.hotspot-item[data-hotspot-level="C"]{
  border-left-color: var(--cmd-visible) !important;
}

.hotspot-item.is-active{
  border-color: rgba(15, 79, 74, 0.36) !important;
  box-shadow: 0 0 0 2px rgba(15, 79, 74, 0.10) !important;
}

.hotspot-field-nav-btn{
  background: linear-gradient(180deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
}

.dji-media-item{
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.dji-media-item[data-media-type="visible"]{
  border-left-color: var(--cmd-visible) !important;
}

.dji-media-item[data-media-type="ndvi"]{
  border-left-color: var(--cmd-ndvi) !important;
}

.media-type-visible{
  background: rgba(22, 163, 74, 0.12) !important;
  color: #15803d !important;
}

.media-type-ndvi{
  background: rgba(124, 58, 237, 0.12) !important;
  color: var(--cmd-ndvi) !important;
}

.flight-command-card{
  background: #ffffff !important;
}

.flight-kpi-grid div,
.flight-now-row,
.flight-event,
.dji-live-item{
  border-radius: 7px !important;
  background: #f8fbfa !important;
  border-color: var(--cmd-line) !important;
}

.flight-live-dot.is-online{
  background: var(--cmd-visible) !important;
}

#dji-gallery-modal .map-image-panel.dji-gallery-panel{
  border-radius: 8px !important;
  border-color: var(--cmd-line-strong) !important;
  background: #ffffff !important;
}

#dji-gallery-modal .map-image-head{
  background: #f8fbfa !important;
  border-bottom: 1px solid var(--cmd-line) !important;
}

@media (max-width: 1280px){
  .workspace{
    grid-template-columns: 300px minmax(520px, 1fr) 300px !important;
  }
  .system-header{
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px){
  html,
  body{
    overflow: auto !important;
  }
  .app-shell{
    height: auto !important;
    min-height: 100vh !important;
  }
  .system-header,
  .workspace{
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .system-status-strip{
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}

/* Atelier command system: disciplined palette and button hierarchy (v50) */
:root{
  --atelier-bg: #dfe7e5;
  --atelier-bg-deep: #cfd9d6;
  --atelier-panel: #eaf0ee;
  --atelier-module: #f1f5f3;
  --atelier-card: #f6f8f7;
  --atelier-card-2: #edf3f1;
  --atelier-line: #c3cfcc;
  --atelier-line-soft: #d7dfdd;
  --atelier-ink: #1e2933;
  --atelier-muted: #667783;
  --atelier-teal: #0f4f4a;
  --atelier-teal-2: #173f43;
  --atelier-bluegrey: #50616b;
  --atelier-visible: #168754;
  --atelier-ndvi: #7257c8;
  --atelier-risk-a: #c73e32;
  --atelier-risk-b: #c77718;
  --atelier-risk-c: #2f8f57;
  --atelier-shadow: 0 14px 34px rgba(30, 41, 51, 0.10);
}

body{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 34%),
    linear-gradient(135deg, var(--atelier-bg), var(--atelier-bg-deep)) !important;
  color: var(--atelier-ink) !important;
}

.app-shell{
  width: calc(100vw - 18px) !important;
  height: calc(100vh - 14px) !important;
  gap: 7px !important;
}

.system-header{
  min-height: 48px !important;
  padding: 7px 10px !important;
  border-color: rgba(23, 63, 67, 0.38) !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 34%),
    linear-gradient(135deg, #142b2f, #173f43) !important;
  box-shadow: 0 10px 24px rgba(30, 41, 51, 0.18) !important;
}

.system-header h1{
  font-size: 0.98rem !important;
  font-weight: 900 !important;
}

.system-title-block span{
  color: rgba(224, 236, 232, 0.68) !important;
  font-size: 0.64rem !important;
}

.system-status-strip{
  gap: 5px !important;
}

.system-status-strip span{
  height: 25px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  border-color: rgba(218, 228, 224, 0.18) !important;
  background: rgba(218, 228, 224, 0.08) !important;
  color: rgba(245, 250, 248, 0.86) !important;
  font-size: 0.63rem !important;
  font-weight: 850 !important;
}

.workspace{
  grid-template-columns: 306px minmax(700px, 1fr) 314px !important;
  gap: 9px !important;
}

.panel{
  background: var(--atelier-panel) !important;
  border-color: var(--atelier-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--atelier-shadow) !important;
}

.left-panel,
.right-panel,
.center-panel{
  padding: 9px !important;
}

.center-panel{
  background: #e7eeec !important;
}

.panel h2{
  color: var(--atelier-teal-2) !important;
  border-color: var(--atelier-line) !important;
  font-size: 0.84rem !important;
}

.panel h3{
  color: #40515a !important;
  font-size: 0.72rem !important;
  margin: 9px 0 5px !important;
}

.left-module,
.dji-live-panel,
.upload-form,
.viewer-toolbar,
.canvas-foot,
.model-banner,
.table-wrap,
.hotspot-list,
.other-list,
.flight-command-card,
.dji-folder-task,
.file-picker,
.stat-item,
.dji-media-item,
.flight-kpi-grid div,
.flight-now-row,
.flight-event,
.dji-live-item{
  background: var(--atelier-module) !important;
  border-color: var(--atelier-line-soft) !important;
  box-shadow: none !important;
}

.file-picker,
.params label,
.dji-config-grid input,
.dji-folder-task-label select,
.dji-gallery-filter select,
input,
select{
  background: var(--atelier-card) !important;
  border-color: var(--atelier-line) !important;
  color: var(--atelier-ink) !important;
}

.dji-selected-summary,
.pick-hint,
.dji-media-status,
.dji-gallery-status,
.dji-task-folder-summary,
.meta,
.time{
  color: var(--atelier-muted) !important;
}

/* Base button: quiet secondary by default */
.tool-btn,
.upload-form button,
.dji-media-preview-btn,
.hotspot-locate-btn,
.hotspot-popup-image-btn,
.dji-gallery-folder-pick-btn{
  min-height: 30px !important;
  border: 1px solid #b9c7c4 !important;
  border-radius: 6px !important;
  background: #e8eeec !important;
  color: #344850 !important;
  box-shadow: none !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.tool-btn:hover,
.upload-form button:hover,
.dji-media-preview-btn:hover,
.hotspot-locate-btn:hover,
.hotspot-popup-image-btn:hover,
.dji-gallery-folder-pick-btn:hover{
  border-color: #96aaa5 !important;
  background: #dde7e4 !important;
  color: #223840 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary actions: only recognition and active realtime */
.upload-form button[type="submit"],
#dji-gallery-detect-selected-btn,
#dji-auto-detect-btn.is-active,
#dji-auto-detect-btn.is-running{
  border-color: #0f4f4a !important;
  background: #0f4f4a !important;
  color: #f8faf9 !important;
  box-shadow: 0 8px 18px rgba(15, 79, 74, 0.18) !important;
}

.upload-form button[type="submit"]:hover,
#dji-gallery-detect-selected-btn:hover,
#dji-auto-detect-btn.is-active:hover,
#dji-auto-detect-btn.is-running:hover{
  background: #173f43 !important;
  border-color: #173f43 !important;
  color: #ffffff !important;
}

/* Navigation is a business action, not a generic primary button */
.hotspot-field-nav-btn{
  min-height: 30px !important;
  border: 1px solid #157347 !important;
  border-radius: 6px !important;
  background: #168754 !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(22, 135, 84, 0.18) !important;
  font-size: 0.66rem !important;
  font-weight: 900 !important;
}

.hotspot-field-nav-btn:hover{
  border-color: #11643d !important;
  background: #11643d !important;
  color: #ffffff !important;
}

/* Hotspot navigation action set (v56) */
.hotspot-nav-state{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 22px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(188, 113, 19, 0.24) !important;
  border-radius: 999px !important;
  background: rgba(255, 247, 237, 0.94) !important;
  color: #9a3412 !important;
  font-size: 0.6rem !important;
  font-weight: 900 !important;
}

.hotspot-nav-state.is-navigated{
  border-color: rgba(37, 99, 235, 0.24) !important;
  background: rgba(239, 246, 255, 0.94) !important;
  color: #1d4ed8 !important;
}

.hotspot-nav-state.is-handled{
  border-color: rgba(15, 118, 110, 0.26) !important;
  background: rgba(236, 253, 245, 0.94) !important;
  color: #0f766e !important;
}

.hotspot-nav-state.is-arrived{
  border-color: rgba(22, 163, 74, 0.24) !important;
  background: rgba(240, 253, 244, 0.94) !important;
  color: #15803d !important;
}

.hotspot-nav-state.is-review{
  border-color: rgba(245, 158, 11, 0.28) !important;
  background: rgba(255, 251, 235, 0.96) !important;
  color: #92400e !important;
}

.hotspot-nav-state.is-false{
  border-color: rgba(100, 116, 139, 0.24) !important;
  background: rgba(248, 250, 252, 0.96) !important;
  color: #475569 !important;
}

.hotspot-nav-state.is-shared{
  border-color: rgba(124, 58, 237, 0.24) !important;
  background: rgba(245, 243, 255, 0.94) !important;
  color: #6d28d9 !important;
}

.hotspot-actions,
.hotspot-popup-actions{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.hotspot-share-btn,
.hotspot-copy-btn,
.hotspot-handled-btn{
  min-height: 30px !important;
  min-width: 0 !important;
  border: 1px solid #b9c7c4 !important;
  border-radius: 7px !important;
  background: #eef4f2 !important;
  color: #263f3a !important;
  font-size: 0.66rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.hotspot-share-btn:hover,
.hotspot-copy-btn:hover,
.hotspot-handled-btn:hover{
  border-color: #96aaa5 !important;
  background: #dde7e4 !important;
}

.hotspot-handled-btn.is-done{
  border-color: rgba(15, 118, 110, 0.34) !important;
  background: rgba(220, 252, 231, 0.96) !important;
  color: #0f766e !important;
}

.hotspot-copy-btn:disabled,
.hotspot-share-btn:disabled,
.hotspot-field-nav-btn:disabled{
  opacity: 0.48 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.hotspot-item:has(.hotspot-nav-state.is-handled){
  opacity: 0.76 !important;
}

/* Segmented controls: filters and map mode are their own language */
.dji-media-filters,
.dji-gallery-type-filters,
.viewer-toolbar{
  border: 1px solid var(--atelier-line) !important;
  border-radius: 7px !important;
  background: #dbe5e2 !important;
  padding: 3px !important;
  gap: 3px !important;
}

.dji-media-filters .tool-btn,
.dji-gallery-type-filters .tool-btn,
.viewer-toolbar .tool-btn{
  min-height: 28px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: #52636b !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

.dji-media-filters .tool-btn:hover,
.dji-gallery-type-filters .tool-btn:hover,
.viewer-toolbar .tool-btn:hover{
  background: rgba(246, 248, 247, 0.72) !important;
  color: #223840 !important;
}

#dji-media-filter-visible.is-active,
#dji-gallery-type-visible.is-active{
  background: rgba(22, 135, 84, 0.15) !important;
  color: #11643d !important;
  border-color: rgba(22, 135, 84, 0.26) !important;
  box-shadow: none !important;
}

#dji-media-filter-ndvi.is-active,
#dji-gallery-type-ndvi.is-active{
  background: rgba(114, 87, 200, 0.15) !important;
  color: var(--atelier-ndvi) !important;
  border-color: rgba(114, 87, 200, 0.26) !important;
  box-shadow: none !important;
}

#dji-media-filter-all.is-active,
#dji-gallery-type-all.is-active,
.viewer-toolbar .tool-btn.is-active,
#map-standard.is-active,
#map-satellite.is-active{
  background: var(--atelier-card) !important;
  color: var(--atelier-teal-2) !important;
  border-color: rgba(23, 63, 67, 0.18) !important;
  box-shadow: 0 1px 2px rgba(30, 41, 51, 0.06) !important;
}

.dji-media-actions{
  gap: 5px !important;
}

.dji-media-actions .tool-btn{
  min-height: 31px !important;
}

#dji-auto-detect-btn:not(.is-active):not(.is-running){
  background: #e3ebe8 !important;
  border-color: #b7c8c3 !important;
  color: #2f4a50 !important;
}

#dji-refresh-btn,
#dji-connect-btn,
#dji-sync-btn,
#dji-gallery-open-btn{
  background: #e8eeec !important;
  color: #344850 !important;
}

.file-trigger-btn{
  background: #edf3f1 !important;
  color: #223840 !important;
}

#dji-gallery-detect-selected-btn:disabled,
#dji-gallery-select-current-btn:disabled,
#dji-gallery-clear-selection-btn:disabled,
.tool-btn:disabled{
  opacity: 0.42 !important;
  background: #dde4e1 !important;
  color: #7a8a91 !important;
  border-color: #c9d3d0 !important;
  box-shadow: none !important;
}

.canvas-frame{
  border: 1px solid #1f2937 !important;
  background: #1f2937 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 16px 30px rgba(30, 41, 51, 0.16) !important;
}

.viewer-toolbar{
  min-height: 36px !important;
  margin-bottom: 0 !important;
}

.canvas-foot{
  background: #dfe8e5 !important;
}

.model-banner{
  background: #173f43 !important;
  border-color: #173f43 !important;
}

.stat-item{
  background: var(--atelier-card) !important;
}

.stat-item strong{
  color: var(--atelier-teal-2) !important;
}

.hotspot-list,
.other-list,
.table-wrap{
  background: var(--atelier-module) !important;
}

.hotspot-item,
.result-item{
  background: var(--atelier-card) !important;
  border-color: var(--atelier-line) !important;
}

.hotspot-item[data-hotspot-level="A"]{
  border-left-color: var(--atelier-risk-a) !important;
}

.hotspot-item[data-hotspot-level="B"]{
  border-left-color: var(--atelier-risk-b) !important;
}

.hotspot-item[data-hotspot-level="C"]{
  border-left-color: var(--atelier-risk-c) !important;
}

.hotspot-level-badge.lv-a{
  background: rgba(199, 62, 50, 0.13) !important;
  color: var(--atelier-risk-a) !important;
}

.hotspot-level-badge.lv-b{
  background: rgba(199, 119, 24, 0.13) !important;
  color: var(--atelier-risk-b) !important;
}

.hotspot-level-badge.lv-c{
  background: rgba(47, 143, 87, 0.13) !important;
  color: var(--atelier-risk-c) !important;
}

.dji-media-item{
  background: var(--atelier-card) !important;
  border-color: var(--atelier-line) !important;
}

.dji-media-item[data-media-type="visible"]{
  background: linear-gradient(180deg, #f6f8f7, #edf5f1) !important;
}

.dji-media-item[data-media-type="ndvi"]{
  background: linear-gradient(180deg, #f6f8f7, #f1eff8) !important;
}

.dji-media-item[data-media-type="visible"] .thumb-wrap::after{
  background: rgba(22, 135, 84, 0.92) !important;
}

.dji-media-item[data-media-type="ndvi"] .thumb-wrap::after{
  background: rgba(114, 87, 200, 0.92) !important;
}

.flight-command-card,
.flight-kpi-grid div,
.flight-now-row,
.flight-event,
.dji-live-item{
  background: var(--atelier-card) !important;
}

#dji-gallery-modal .map-image-panel.dji-gallery-panel{
  background: var(--atelier-panel) !important;
}

#dji-gallery-modal .map-image-head{
  background: #dfe8e5 !important;
}

#dji-gallery-modal .dji-gallery-item{
  background: var(--atelier-card) !important;
}

@media (max-width: 1280px){
  .workspace{
    grid-template-columns: 292px minmax(540px, 1fr) 300px !important;
  }
}

/* Left command panel cleanup (v51) */
.left-panel > .dji-live-panel{
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px !important;
  background: #e9f0ee !important;
  border: 1px solid #cbd9d6 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.62) !important;
}

.dji-live-panel > .dji-live-head{
  order: 1 !important;
  min-height: 36px !important;
  padding: 0 2px 8px !important;
  border-bottom: 1px solid #ccd9d6 !important;
}

.dji-live-head h3{
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
}

.dji-live-head-actions{
  flex: 0 0 auto !important;
}

#dji-refresh-btn{
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  background: #f2f6f5 !important;
  border-color: #b9cbc8 !important;
  box-shadow: none !important;
  color: #263a40 !important;
  font-size: 0.72rem !important;
}

.dji-live-panel > .flight-command-card{
  order: 2 !important;
  padding: 10px !important;
  border-radius: 8px !important;
  border: 1px solid #ccd9d6 !important;
  background: #f7faf9 !important;
  box-shadow: none !important;
}

.flight-command-top{
  gap: 8px !important;
}

.flight-command-top strong{
  color: #17383d !important;
  font-size: 0.84rem !important;
}

.flight-command-top span:not(.flight-live-dot){
  color: #6a7b82 !important;
  font-size: 0.68rem !important;
}

.flight-kpi-grid{
  gap: 5px !important;
  margin-top: 8px !important;
}

.flight-kpi-grid div{
  min-width: 0 !important;
  padding: 7px 6px !important;
  border-radius: 6px !important;
  border: 1px solid #d5dfdc !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.flight-kpi-grid span{
  font-size: 0.62rem !important;
  color: #6d7f84 !important;
}

.flight-kpi-grid strong{
  font-size: 0.98rem !important;
  color: #164448 !important;
}

.flight-now-row{
  min-height: 27px !important;
  padding: 5px 8px !important;
  border-radius: 6px !important;
  border: 1px solid #d5dfdc !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.flight-now-row span,
.flight-now-row strong{
  font-size: 0.68rem !important;
}

.dji-realtime-action-row{
  order: 3 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  padding: 8px !important;
  border: 1px solid #b8cac6 !important;
  border-radius: 8px !important;
  background: #dfe9e6 !important;
}

.dji-realtime-action-row #dji-auto-detect-btn{
  width: 100% !important;
  min-height: 36px !important;
  border-radius: 6px !important;
  background: #233b40 !important;
  border-color: #233b40 !important;
  color: #f9fbfb !important;
  box-shadow: 0 8px 18px rgba(24, 50, 54, 0.14) !important;
}

.dji-realtime-action-row #dji-auto-detect-btn:not(.is-active):not(.is-running){
  background: #233b40 !important;
  border-color: #233b40 !important;
  color: #f9fbfb !important;
}

.dji-realtime-action-row #dji-auto-detect-btn.is-active,
.dji-realtime-action-row #dji-auto-detect-btn.is-running{
  background: #147b5a !important;
  border-color: #147b5a !important;
  color: #ffffff !important;
}

.dji-live-panel > details.dji-media-module{
  order: 4 !important;
}

.dji-live-panel > details.dji-advanced-module{
  order: 5 !important;
}

.dji-live-panel > details.dji-status-module{
  order: 6 !important;
}

.dji-live-panel > details.left-module{
  border-radius: 8px !important;
  border: 1px solid #cbd9d6 !important;
  background: #f3f7f6 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.dji-live-panel > details.left-module > summary{
  min-height: 34px !important;
  padding: 0 10px !important;
  background: #eef4f2 !important;
  border-radius: 0 !important;
  color: #1d3e43 !important;
  font-size: 0.78rem !important;
}

.dji-live-panel > details.left-module > summary .fold-hint{
  color: #5f747b !important;
  font-size: 0.68rem !important;
}

.dji-live-panel > details.left-module > summary .fold-hint::before{
  content: "" !important;
}

.dji-live-panel > details.dji-advanced-module,
.dji-live-panel > details.dji-status-module{
  background: #e8efed !important;
  border-color: #d0dcda !important;
}

.dji-live-panel > details.dji-advanced-module > summary,
.dji-live-panel > details.dji-status-module > summary{
  background: #e7eeec !important;
  color: #52656b !important;
}

.dji-live-panel > details.dji-media-module > .dji-media-inner{
  gap: 8px !important;
  padding: 8px !important;
  background: #f7faf9 !important;
}

.dji-media-actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.dji-media-actions .tool-btn{
  min-height: 34px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 0.74rem !important;
}

#dji-gallery-open-btn{
  background: #ffffff !important;
  border-color: #bacbc8 !important;
  color: #223940 !important;
}

#dji-sync-btn{
  background: #eef4f2 !important;
  border-color: #b5c9c5 !important;
  color: #26444a !important;
}

.dji-media-filters{
  border-radius: 7px !important;
  background: #d8e2df !important;
  padding: 3px !important;
}

.dji-media-filters .tool-btn{
  min-height: 31px !important;
  border-radius: 5px !important;
  font-size: 0.7rem !important;
}

.dji-folder-task{
  gap: 5px !important;
  padding: 8px !important;
  border-radius: 8px !important;
  border: 1px solid #d2ddda !important;
  background: #ffffff !important;
}

.dji-folder-task-label{
  gap: 5px !important;
}

.dji-folder-task-label span{
  font-size: 0.68rem !important;
  color: #5e7278 !important;
}

.dji-folder-task select{
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 6px !important;
  background: #f7faf9 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
}

#dji-task-folder-summary,
.dji-media-status{
  min-height: 24px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  border-radius: 6px !important;
  border: 1px solid #d4dfdc !important;
  background: #f5f8f7 !important;
  color: #50656c !important;
  box-shadow: none !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.dji-media-status.is-online{
  border-color: #d4dfdc !important;
  background: #f5f8f7 !important;
  color: #50656c !important;
}

.dji-media-list{
  max-height: 188px !important;
  gap: 7px !important;
  padding-right: 2px !important;
  overflow-y: auto !important;
}

.dji-media-item{
  grid-template-columns: 68px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 76px !important;
  padding: 7px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.dji-media-item .thumb-wrap{
  height: 62px !important;
  border-radius: 6px !important;
}

.dji-media-topline{
  gap: 5px !important;
}

.dji-media-check-wrap{
  font-size: 0.64rem !important;
}

.dji-media-preview-btn{
  min-height: 25px !important;
  padding: 0 9px !important;
  border-radius: 5px !important;
  font-size: 0.64rem !important;
}

.dji-media-item .name{
  min-height: auto !important;
  font-size: 0.7rem !important;
  line-height: 1.25 !important;
  -webkit-line-clamp: 1 !important;
}

.dji-media-item .time,
.dji-media-item .meta{
  font-size: 0.62rem !important;
  line-height: 1.25 !important;
  -webkit-line-clamp: 1 !important;
}

.dji-media-item .tag-row{
  margin-top: 3px !important;
}

.dji-media-item .tag{
  padding: 2px 6px !important;
  border-radius: 999px !important;
  font-size: 0.58rem !important;
}

/* Live workflow visibility (v52) */
.flight-progress-panel{
  margin: 10px 0 12px !important;
  padding: 12px !important;
  border: 1px solid #c7d5d1 !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, #f7faf9 0%, #eef5f2 100%) !important;
  box-shadow: 0 8px 18px rgba(21, 48, 52, 0.06) !important;
}

.flight-progress-head{
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.flight-progress-head h3{
  margin: 0 !important;
  color: #17383d !important;
  font-size: 0.86rem !important;
  letter-spacing: 0 !important;
}

.flight-progress-head span{
  display: block !important;
  margin-top: 3px !important;
  color: #697d83 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
}

.flight-progress-head > strong{
  min-width: 42px !important;
  text-align: right !important;
  color: #126244 !important;
  font-family: var(--ui-heading) !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
}

.flight-progress-bar{
  height: 7px !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #d5dfdc !important;
}

.flight-progress-bar span{
  display: block !important;
  width: 0;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #147b5a, #2a9d72 58%, #77b77b) !important;
  transition: width 0.35s ease !important;
}

.flight-progress-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.flight-progress-grid div{
  min-width: 0 !important;
  padding: 8px !important;
  border: 1px solid #d3dfdc !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

.flight-progress-grid span{
  display: block !important;
  color: #6d7f84 !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
}

.flight-progress-grid strong{
  display: block !important;
  margin-top: 3px !important;
  color: #17383d !important;
  font-family: var(--ui-heading) !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
}

.dji-media-item{
  position: relative !important;
}

.dji-media-item .thumb-wrap{
  position: relative !important;
}

.dji-media-item.is-new-data{
  border-color: rgba(16, 132, 103, 0.5) !important;
  background: linear-gradient(180deg, #f8fcfa, #eaf7f0) !important;
  box-shadow: inset 3px 0 0 #1a936f, 0 0 0 1px rgba(26, 147, 111, 0.08) !important;
}

.dji-media-item.is-recognizing{
  border-color: rgba(34, 94, 168, 0.42) !important;
  background:
    linear-gradient(90deg, rgba(47, 109, 186, 0.08), rgba(255, 255, 255, 0.72), rgba(47, 109, 186, 0.08)),
    #f7faf9 !important;
  background-size: 220% 100% !important;
  animation: djiRecognizingSweep 1.45s ease-in-out infinite !important;
  box-shadow: inset 3px 0 0 #2e6fba !important;
}

.dji-media-item.is-completed{
  border-color: rgba(39, 132, 86, 0.34) !important;
  background: linear-gradient(180deg, #f8fbf9, #eef8f1) !important;
  box-shadow: inset 3px 0 0 #278456 !important;
}

.dji-status-tag{
  border-color: transparent !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

.dji-status-returned{
  background: #6c7f86 !important;
}

.dji-status-new{
  background: #168754 !important;
}

.dji-status-recognizing{
  background: #2e6fba !important;
}

.dji-status-completed{
  background: #126244 !important;
}

.dji-media-item.is-new-data .thumb-wrap::before,
.dji-media-item.is-recognizing .thumb-wrap::before,
.dji-media-item.is-completed .thumb-wrap::before{
  position: absolute !important;
  z-index: 2 !important;
  top: 5px !important;
  left: 5px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-size: 0.54rem !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  box-shadow: 0 4px 10px rgba(15, 36, 42, 0.18) !important;
}

.dji-media-item.is-new-data .thumb-wrap::before{
  content: "新" !important;
  background: #168754 !important;
}

.dji-media-item.is-recognizing .thumb-wrap::before{
  content: "识别中" !important;
  background: #2e6fba !important;
}

.dji-media-item.is-completed .thumb-wrap::before{
  content: "完成" !important;
  background: #126244 !important;
}

@keyframes djiRecognizingSweep{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Background detection jobs and flight timeline (v54) */
.detect-job-panel{
  display: grid !important;
  gap: 6px !important;
  margin: 8px 0 !important;
  padding: 9px !important;
  border: 1px solid #c7d7d3 !important;
  border-radius: 8px !important;
  background: #f6faf8 !important;
  box-shadow: inset 3px 0 0 #2e6fba !important;
}

.detect-job-panel.hidden{
  display: none !important;
}

.detect-job-panel[data-status="completed"]{
  box-shadow: inset 3px 0 0 #147b5a !important;
}

.detect-job-panel[data-status="failed"]{
  box-shadow: inset 3px 0 0 #b8453b !important;
}

.detect-job-head{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.detect-job-head strong{
  min-width: 0 !important;
  color: #17383d !important;
  font-size: 0.72rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.detect-job-head span{
  color: #2e6fba !important;
  font-family: var(--ui-heading) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

.detect-job-bar{
  height: 6px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #d7e1de !important;
}

.detect-job-bar span{
  display: block !important;
  width: 0;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #2e6fba, #2f9f86) !important;
  transition: width 0.25s ease !important;
}

.detect-job-panel p{
  margin: 0 !important;
  color: #5f747b !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.flight-timeline-panel{
  margin: 10px 0 12px !important;
  padding: 12px !important;
  border: 1px solid #c7d5d1 !important;
  border-radius: 8px !important;
  background: #f6faf8 !important;
  box-shadow: 0 8px 18px rgba(21, 48, 52, 0.05) !important;
}

.flight-timeline-head{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 9px !important;
}

.flight-timeline-head h3{
  margin: 0 !important;
  color: #17383d !important;
  font-size: 0.84rem !important;
  letter-spacing: 0 !important;
}

.flight-timeline-head span{
  color: #667a80 !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
}

.flight-timeline{
  display: grid !important;
  gap: 7px !important;
}

.flight-timeline-step{
  position: relative !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  padding: 8px !important;
  border: 1px solid #d4dfdc !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

.flight-timeline-index{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: #dfe8e5 !important;
  color: #61767c !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
}

.flight-timeline-step strong{
  display: block !important;
  color: #263d42 !important;
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
}

.flight-timeline-step span:not(.flight-timeline-index){
  display: block !important;
  margin-top: 2px !important;
  color: #6c7f84 !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.flight-timeline-step.is-done{
  border-color: rgba(20, 123, 90, 0.32) !important;
  background: #f1f8f4 !important;
}

.flight-timeline-step.is-done .flight-timeline-index{
  background: #147b5a !important;
  color: #ffffff !important;
}

.flight-timeline-step.is-active{
  border-color: rgba(46, 111, 186, 0.34) !important;
  background: #f2f7fb !important;
  box-shadow: inset 3px 0 0 #2e6fba !important;
}

.flight-timeline-step.is-active .flight-timeline-index{
  background: #2e6fba !important;
  color: #ffffff !important;
}

.flight-timeline-step.is-warn{
  border-color: rgba(184, 69, 59, 0.34) !important;
  background: #fbf4f2 !important;
}

.flight-timeline-step.is-warn .flight-timeline-index{
  background: #b8453b !important;
  color: #ffffff !important;
}

/* Deduplicated disease point layer (v55) */
.disease-point-map-popup .leaflet-popup-content{
  margin: 10px 12px !important;
}

.disease-point-popup{
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 172px !important;
  color: #1f2f2d !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.disease-point-popup strong{
  color: #7f1d1d !important;
  font-size: 13px !important;
}

.disease-point-popup span{
  color: #536865 !important;
}

/* Mobile workbench fallback (v62)
   The full command desk remains desktop-first; phones get a single-column flow. */
@media (max-width: 860px){
  html,
  body{
    min-height: 100% !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  *{
    scrollbar-width: thin !important;
  }

  *::-webkit-scrollbar{
    width: 6px !important;
    height: 6px !important;
  }

  *::-webkit-scrollbar-thumb{
    border-radius: 999px !important;
    background: rgba(52, 91, 89, 0.28) !important;
  }

  body{
    min-width: 0 !important;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
    background:
      linear-gradient(180deg, #d8e8e2 0%, #c9ddd5 48%, #bfd5cd 100%) !important;
  }

  body::before,
  body::after,
  .bg-orb{
    display: none !important;
  }

  .app-shell{
    width: 100% !important;
    min-height: 100vh !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .system-header{
    position: static !important;
    margin: 0 !important;
    padding: 10px 10px 8px !important;
    border: 1px solid rgba(22, 76, 70, 0.12) !important;
    border-radius: 16px !important;
    background: rgba(244, 250, 247, 0.9) !important;
    box-shadow: 0 10px 24px rgba(13, 48, 53, 0.1) !important;
  }

  .system-header h1{
    font-size: clamp(1.25rem, 7vw, 1.75rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  .system-title-block span{
    display: block !important;
    margin-top: 4px !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  .system-status-strip{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .system-status-strip span{
    min-width: 0 !important;
    justify-content: center !important;
    padding: 6px 7px !important;
    font-size: 0.64rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .workspace{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "center"
      "right"
      "left" !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .left-panel{
    grid-area: left !important;
    order: 3 !important;
  }

  .center-panel{
    grid-area: center !important;
    order: 1 !important;
  }

  .right-panel{
    grid-area: right !important;
    order: 2 !important;
  }

  .left-panel,
  .center-panel,
  .right-panel,
  .panel{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 16px !important;
    padding: 10px !important;
  }

  .panel h2{
    margin-bottom: 9px !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
  }

  .panel h3{
    margin: 11px 0 7px !important;
    font-size: 0.84rem !important;
    line-height: 1.25 !important;
  }

  .viewer-toolbar{
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  .viewer-toolbar .tool-btn,
  .tool-btn,
  .hotspot-actions button,
  .dji-media-preview-btn,
  .file-trigger-btn,
  button[type="submit"],
  #dji-auto-detect-btn{
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 8px !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  .viewer-toolbar .mode-pill{
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .canvas-frame{
    width: 100% !important;
    min-height: 360px !important;
    height: min(62vh, 520px) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: 14px !important;
  }

  .geo-map-canvas,
  .layout-canvas,
  #geo-map{
    width: 100% !important;
    height: 100% !important;
    min-height: 360px !important;
  }

  .canvas-foot{
    display: grid !important;
    gap: 4px !important;
  }

  .canvas-foot p,
  .canvas-foot span{
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.66rem !important;
  }

  .model-banner,
  .stats-grid,
  .flight-progress-panel,
  .flight-timeline-panel,
  .flight-event-stream,
  .hotspot-list,
  .other-list,
  .table-wrap,
  .dji-live-panel,
  .upload-form{
    max-width: 100% !important;
  }

  .stats-grid,
  .flight-progress-grid,
  .flight-kpi-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hotspot-list,
  .other-list,
  #hotspot-list,
  #result-list{
    max-height: none !important;
    overflow: visible !important;
  }

  .hotspot-item,
  .result-item{
    width: 100% !important;
    min-width: 0 !important;
  }

  .hotspot-item .title,
  .hotspot-item .meta,
  .hotspot-item .coord,
  .result-item .name,
  .result-item .meta{
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .hotspot-actions{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .table-wrap{
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .table-wrap table{
    min-width: 520px !important;
  }

  .left-panel > .file-select-wrap.left-module,
  .left-panel > .dji-live-panel,
  .dji-live-panel > details.left-module{
    max-height: none !important;
    overflow: visible !important;
  }

  .dji-live-panel{
    display: grid !important;
    gap: 8px !important;
  }

  .dji-live-panel > details.dji-advanced-module,
  .dji-live-panel > details.dji-status-module{
    display: block !important;
  }

  .dji-media-inner,
  .dji-gallery-list,
  #dji-media-list{
    max-height: none !important;
    overflow: visible !important;
  }

  .dji-media-item{
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .dji-media-item .thumb-wrap{
    width: 72px !important;
    min-width: 72px !important;
    aspect-ratio: 1.18 !important;
  }

  .params,
  .dji-config-grid,
  .dji-media-actions,
  .dji-media-filters,
  .dji-gallery-type-filters,
  .dji-gallery-action-bar{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .map-image-modal{
    padding: 8px !important;
  }

  .map-image-panel{
    width: 100% !important;
    max-width: 100% !important;
    height: min(92vh, 760px) !important;
    border-radius: 16px !important;
  }

  .map-image-head{
    display: grid !important;
    gap: 8px !important;
  }

  .map-image-tools{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .map-image-body,
  .map-image-stage{
    min-height: 0 !important;
  }
}

@media (max-width: 430px){
  .app-shell{
    padding: 6px !important;
  }

  .system-status-strip{
    grid-template-columns: 1fr !important;
  }

  .viewer-toolbar{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .canvas-frame,
  .geo-map-canvas,
  .layout-canvas,
  #geo-map{
    min-height: 330px !important;
  }

  .stats-grid,
  .flight-progress-grid,
  .flight-kpi-grid,
  .params,
  .dji-config-grid,
  .dji-media-actions,
  .dji-media-filters,
  .dji-gallery-type-filters,
  .dji-gallery-action-bar{
    grid-template-columns: 1fr !important;
  }

  .hotspot-actions{
    grid-template-columns: 1fr !important;
  }
}

/* Mission command bar (v66). Keeps UAV realtime runs recoverable across refreshes. */
.mission-dock{
  width: min(1120px, 100%);
  margin: 10px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(21, 79, 73, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(245, 250, 247, 0.94), rgba(231, 241, 236, 0.9));
  box-shadow: 0 14px 32px rgba(18, 62, 58, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 8px;
}

.mission-dock-main{
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) repeat(5, auto);
  gap: 8px;
  align-items: center;
}

.mission-dock-label{
  color: #244c48;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.mission-select{
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(28, 97, 88, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #153f3b;
  font: 800 0.82rem "Manrope", "Noto Sans SC", sans-serif;
  padding: 0 10px;
  outline: none;
}

.mission-select:focus{
  border-color: rgba(35, 126, 112, 0.45);
  box-shadow: 0 0 0 3px rgba(42, 147, 130, 0.12);
}

.mission-dock .tool-btn{
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 0.74rem !important;
  white-space: nowrap;
}

.mission-dock-summary{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #58736e;
  font-size: 0.72rem;
  font-weight: 800;
}

#mission-stat-text{
  color: #1e655d;
}

@media (max-width: 980px){
  .mission-dock{
    margin-top: 8px;
    border-radius: 14px;
  }

  .mission-dock-main{
    grid-template-columns: 1fr 1fr;
  }

  .mission-dock-label,
  .mission-select{
    grid-column: 1 / -1;
  }

  .mission-dock-summary{
    display: grid;
    gap: 4px;
  }
}

@media (max-width: 430px){
  .mission-dock-main{
    grid-template-columns: 1fr;
  }

  .mission-dock .tool-btn{
    width: 100% !important;
  }
}

.confidence-panel{
  border: 1px solid rgba(15, 87, 82, 0.18);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(245, 253, 249, 0.92), rgba(232, 246, 241, 0.82));
  box-shadow: 0 12px 28px rgba(15, 74, 78, 0.08);
}

.confidence-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.confidence-head h3{
  margin: 0;
}

.confidence-head span{
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f5f59;
  font-size: 0.74rem;
  font-weight: 900;
}

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

.confidence-grid div{
  min-width: 0;
  border: 1px solid rgba(15, 87, 82, 0.12);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.confidence-grid span{
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.confidence-grid strong{
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.confidence-panel p{
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

/* =========================================================
   Compact professional workbench (v69)
   Reduce header height and make side panels scan in two columns.
   ========================================================= */

.app-shell{
  width: min(2280px, calc(100vw - 12px)) !important;
  height: calc(100vh - 12px) !important;
  margin: 6px auto !important;
  padding: 0 !important;
}

.system-header{
  min-height: 96px !important;
  margin: 0 0 8px !important;
  padding: 14px 16px !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 360px) minmax(520px, 1fr) auto !important;
  grid-template-areas: "brand mission status" !important;
  align-items: center !important;
  gap: 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(10, 47, 48, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(16, 50, 53, 0.98), rgba(13, 79, 72, 0.94)) !important;
  box-shadow: 0 16px 34px rgba(10, 35, 38, 0.12) !important;
  text-align: left !important;
}

.system-title-block{
  grid-area: brand !important;
  align-items: flex-start !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.system-header h1{
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f5fffb !important;
  font-size: clamp(1.05rem, 1.15vw, 1.45rem) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.system-title-block span{
  color: rgba(231, 250, 244, 0.74) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.system-status-strip{
  grid-area: status !important;
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(2, max-content) !important;
  gap: 6px !important;
  justify-content: end !important;
  align-items: center !important;
  margin: 0 !important;
  width: auto !important;
}

.system-status-strip span{
  min-height: 24px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(208, 247, 236, 0.16) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(242, 255, 251, 0.9) !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  line-height: 24px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.system-status-strip span.is-online{
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(74, 222, 128, 0.32) !important;
  color: #dcfce7 !important;
}

.mission-dock{
  grid-area: mission !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(223, 245, 239, 0.34) !important;
  background: rgba(244, 251, 247, 0.94) !important;
  box-shadow: 0 12px 24px rgba(7, 31, 34, 0.13) !important;
  gap: 6px !important;
}

.mission-dock-main{
  grid-template-columns: auto minmax(230px, 1fr) repeat(5, minmax(58px, auto)) !important;
  gap: 6px !important;
}

.mission-dock-label{
  color: #17443f !important;
  font-size: 0.72rem !important;
}

.mission-select{
  min-height: 34px !important;
  border-radius: 9px !important;
  font-size: 0.76rem !important;
}

.mission-dock .tool-btn{
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.7rem !important;
}

.mission-dock-summary{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  color: #52706b !important;
  font-size: 0.68rem !important;
}

.workspace{
  grid-template-columns: minmax(340px, 18.5vw) minmax(0, 1fr) minmax(350px, 18.8vw) !important;
  gap: 8px !important;
}

.left-panel,
.right-panel{
  padding: 8px !important;
  gap: 8px !important;
  font-size: 0.78rem !important;
}

.left-panel *,
.right-panel *{
  letter-spacing: 0 !important;
}

.left-panel h2,
.right-panel h2{
  font-size: 0.88rem !important;
  margin-bottom: 6px !important;
}

.left-panel h3,
.right-panel h3,
.dji-live-head h3,
.flight-timeline-head h3,
.flight-progress-head h3{
  font-size: 0.82rem !important;
  margin: 0 !important;
}

.left-panel summary,
.right-panel .model-banner p,
.right-panel .empty,
.left-panel .pick-hint,
.left-panel .dji-media-status,
.left-panel .dji-task-folder-summary{
  font-size: 0.68rem !important;
}

.file-select-wrap > summary,
.dji-live-panel > details.left-module > summary{
  min-height: 30px !important;
  padding: 0 8px !important;
  font-size: 0.74rem !important;
}

.upload-form{
  gap: 8px !important;
  padding: 8px !important;
}

.file-picker-btns,
.params,
.dji-media-actions,
.dji-media-filters,
.dji-gallery-type-filters,
.dji-gallery-action-bar{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.dji-media-filters{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.file-picker{
  padding: 7px !important;
  border-radius: 9px !important;
}

.file-trigger-btn,
button[type="submit"],
.tool-btn,
#dji-auto-detect-btn,
.dji-media-preview-btn{
  min-height: 32px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  font-size: 0.68rem !important;
}

.params label span,
.dji-folder-task-label span,
.dji-live-item span,
.stat-item span,
.flight-kpi-grid span,
.flight-progress-grid span,
.confidence-grid span{
  font-size: 0.62rem !important;
}

.params input,
.dji-folder-task select,
.dji-config-grid input{
  min-height: 32px !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
}

.dji-live-panel{
  padding: 8px !important;
  gap: 8px !important;
}

.dji-live-head{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  margin: 0 !important;
}

.flight-command-card{
  padding: 9px !important;
  border-radius: 11px !important;
  gap: 8px !important;
}

.flight-command-top{
  gap: 7px !important;
}

.flight-command-top strong{
  font-size: 0.76rem !important;
}

.flight-command-top span:not(.flight-live-dot),
.flight-now-row span,
.flight-now-row strong{
  font-size: 0.66rem !important;
}

.flight-kpi-grid,
.stats-grid,
.flight-progress-grid,
.confidence-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.flight-kpi-grid div,
.stat-item,
.flight-progress-grid div,
.confidence-grid div,
.dji-live-item{
  min-height: 48px !important;
  padding: 7px 8px !important;
  border-radius: 9px !important;
}

.flight-kpi-grid strong,
.stat-item strong,
.flight-progress-grid strong,
.confidence-grid strong{
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
}

.dji-live-grid,
.dji-config-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.dji-live-item strong{
  font-size: 0.82rem !important;
}

.left-panel .dji-media-module #dji-media-list{
  max-height: 220px !important;
}

.dji-media-module .dji-media-item{
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 7px !important;
  padding: 6px !important;
}

.dji-media-module .dji-media-item .thumb-wrap{
  width: 72px !important;
  min-width: 72px !important;
  height: 58px !important;
  border-radius: 8px !important;
}

.dji-media-module .dji-media-item .meta-wrap{
  gap: 3px !important;
}

.dji-media-module .dji-media-item .name{
  font-size: 0.68rem !important;
}

.dji-media-module .dji-media-item .time,
.dji-media-module .dji-media-item .meta,
.dji-media-module .dji-media-item .tag{
  font-size: 0.6rem !important;
}

.right-panel .model-banner{
  padding: 10px !important;
  border-radius: 10px !important;
}

.right-panel .model-banner p{
  margin: 2px 0 !important;
}

.right-panel .model-banner code{
  font-size: 0.68rem !important;
}

.confidence-panel,
.flight-progress-panel,
.flight-timeline-panel{
  padding: 9px !important;
  border-radius: 10px !important;
}

.confidence-head{
  margin-bottom: 7px !important;
}

.confidence-head span{
  font-size: 0.62rem !important;
  padding: 3px 7px !important;
}

.confidence-panel p{
  font-size: 0.66rem !important;
  margin-top: 6px !important;
}

.right-panel #hotspot-list,
.right-panel #result-list,
.right-panel .table-wrap{
  max-height: 150px !important;
}

.right-panel #hotspot-list .hotspot-item,
.right-panel #result-list .result-item{
  padding: 7px 8px !important;
  border-radius: 8px !important;
  gap: 3px !important;
}

.right-panel #hotspot-list .hotspot-item .title,
.right-panel #result-list .result-item .name{
  font-size: 0.7rem !important;
}

.right-panel #hotspot-list .hotspot-item .meta,
.right-panel #result-list .result-item .meta,
.right-panel #hotspot-list .hotspot-item .coord{
  font-size: 0.62rem !important;
}

.right-panel .table-wrap table{
  font-size: 0.64rem !important;
}

.right-panel .table-wrap thead th,
.right-panel .table-wrap tbody td{
  padding: 5px 6px !important;
}

.center-panel{
  padding: 10px !important;
}

.center-panel h2{
  font-size: 0.88rem !important;
}

.viewer-toolbar{
  min-height: 42px !important;
  margin-bottom: 8px !important;
  padding: 7px !important;
  gap: 6px !important;
}

.canvas-frame{
  border-radius: 8px !important;
}

.canvas-foot{
  min-height: 46px !important;
  padding: 8px 10px !important;
  font-size: 0.72rem !important;
}

@media (max-width: 1480px){
  .system-header{
    grid-template-columns: minmax(190px, 290px) minmax(420px, 1fr) auto !important;
  }

  .workspace{
    grid-template-columns: 320px minmax(0, 1fr) 320px !important;
  }

  .system-status-strip{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1120px){
  .system-header{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "mission"
      "status" !important;
    align-items: stretch !important;
  }

  .system-status-strip{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
  }

  .workspace{
    grid-template-columns: 1fr !important;
    overflow: auto !important;
  }

  .left-panel,
  .right-panel{
    max-height: none !important;
  }
}

@media (max-width: 620px){
  .mission-dock-main,
  .file-picker-btns,
  .dji-media-actions,
  .params,
  .dji-live-grid,
  .dji-config-grid{
    grid-template-columns: 1fr !important;
  }

  .system-status-strip,
  .dji-media-filters{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* =========================================================
   Bottom insight rail (v70)
   Keep post-recognition details visible without scrolling the right panel.
   ========================================================= */

.center-panel{
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.canvas-frame{
  min-height: 0 !important;
  height: auto !important;
}

.bottom-insight-grid{
  min-height: 150px !important;
  max-height: 185px !important;
  display: grid !important;
  grid-template-columns: 0.95fr 1.12fr 1.08fr 1.22fr !important;
  gap: 8px !important;
}

.bottom-insight-card{
  min-width: 0 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 6px !important;
  padding: 8px !important;
  border: 1px solid rgba(18, 87, 82, 0.14) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(248, 253, 250, 0.95), rgba(235, 247, 242, 0.9)) !important;
  box-shadow: 0 8px 20px rgba(10, 42, 43, 0.06) !important;
  overflow: hidden !important;
}

.bottom-insight-card h3{
  min-height: 20px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  color: #123f3b !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.bottom-insight-card .flight-event-stream,
.bottom-insight-card #hotspot-list,
.bottom-insight-card #result-list,
.bottom-insight-card .table-wrap{
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
  overflow: auto !important;
  border-radius: 8px !important;
}

.bottom-insight-card .flight-event-stream,
.bottom-insight-card #hotspot-list,
.bottom-insight-card #result-list,
.bottom-insight-card .table-wrap{
  border: 1px solid rgba(18, 87, 82, 0.1) !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

.bottom-insight-card .flight-event-stream{
  padding: 6px !important;
}

.bottom-insight-card .flight-event-item,
.bottom-insight-card #hotspot-list .hotspot-item,
.bottom-insight-card #result-list .result-item{
  min-height: 0 !important;
  padding: 6px 7px !important;
  border-radius: 7px !important;
  gap: 3px !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .title,
.bottom-insight-card #result-list .result-item .name{
  color: #133f3a !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .meta,
.bottom-insight-card #result-list .result-item .meta,
.bottom-insight-card #hotspot-list .hotspot-item .coord,
.bottom-insight-card .flight-event-item span,
.bottom-insight-card .empty{
  font-size: 0.6rem !important;
  line-height: 1.25 !important;
}

.bottom-insight-card .hotspot-actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
  margin-top: 4px !important;
}

.bottom-insight-card .hotspot-actions button,
.bottom-insight-card .hotspot-share-btn,
.bottom-insight-card .hotspot-copy-btn,
.bottom-insight-card .hotspot-field-nav-btn,
.bottom-insight-card .hotspot-handled-btn,
.bottom-insight-card .hotspot-locate-btn{
  min-height: 26px !important;
  padding: 0 7px !important;
  border-radius: 7px !important;
  font-size: 0.62rem !important;
}

.bottom-insight-card .table-wrap table{
  min-width: 360px !important;
  font-size: 0.62rem !important;
}

.bottom-insight-card .table-wrap th,
.bottom-insight-card .table-wrap td{
  padding: 5px 6px !important;
  line-height: 1.2 !important;
}

.right-panel{
  display: grid !important;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) !important;
  align-content: start !important;
}

.right-panel .flight-timeline-panel{
  min-height: 0 !important;
  overflow: hidden !important;
}

.right-panel .flight-timeline{
  max-height: none !important;
}

.tool-btn,
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
.dji-media-preview-btn,
.hotspot-actions button,
.map-image-tools .tool-btn{
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

button[type="submit"],
#dji-auto-detect-btn{
  min-height: 38px !important;
  font-size: 0.76rem !important;
}

.viewer-toolbar .tool-btn{
  min-width: 42px !important;
  height: 34px !important;
}

.mission-dock .tool-btn{
  min-height: 32px !important;
  font-size: 0.72rem !important;
}

.dji-media-filters .tool-btn,
.dji-gallery-type-filters .tool-btn,
.dji-media-actions .tool-btn{
  min-height: 34px !important;
}

@media (max-width: 1580px){
  .bottom-insight-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: 260px !important;
  }
}

@media (max-width: 1120px){
  .center-panel{
    overflow: visible !important;
  }

  .bottom-insight-grid{
    grid-template-columns: 1fr !important;
    max-height: none !important;
  }

  .bottom-insight-card{
    min-height: 160px !important;
  }
}

/* =========================================================
   Clean map and insight polish (v71)
   Make hotspot areas readable, keep bottom rail compact, reduce UI noise.
   ========================================================= */

.panel{
  border-color: rgba(18, 73, 70, 0.1) !important;
  box-shadow: 0 10px 24px rgba(12, 38, 38, 0.06) !important;
}

.center-panel{
  gap: 7px !important;
  background: linear-gradient(180deg, rgba(250, 254, 252, 0.96), rgba(238, 248, 243, 0.94)) !important;
}

.viewer-toolbar{
  min-height: 38px !important;
  padding: 5px 7px !important;
  border-radius: 8px !important;
  background: rgba(235, 247, 242, 0.78) !important;
  border: 1px solid rgba(19, 82, 79, 0.1) !important;
}

.canvas-frame{
  border-radius: 8px !important;
  border-color: rgba(13, 60, 58, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55) !important;
}

.canvas-foot{
  min-height: 38px !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  background: rgba(230, 242, 238, 0.72) !important;
}

.canvas-foot p,
.canvas-foot span{
  font-size: 0.66rem !important;
  line-height: 1.25 !important;
}

.bottom-insight-grid{
  min-height: 128px !important;
  max-height: 148px !important;
  grid-template-columns: 0.9fr 1fr 1fr 1.08fr !important;
  gap: 7px !important;
}

.bottom-insight-card{
  padding: 7px !important;
  border-radius: 9px !important;
  border-color: rgba(18, 87, 82, 0.1) !important;
  background: rgba(249, 253, 251, 0.84) !important;
  box-shadow: none !important;
}

.bottom-insight-card h3{
  min-height: 18px !important;
  color: #183f3b !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
}

.bottom-insight-card .flight-event-stream,
.bottom-insight-card #hotspot-list,
.bottom-insight-card #result-list,
.bottom-insight-card .table-wrap{
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bottom-insight-card .flight-event-stream{
  padding: 0 !important;
}

.bottom-insight-card .flight-event,
.bottom-insight-card #hotspot-list .hotspot-item,
.bottom-insight-card #result-list .result-item{
  position: relative !important;
  min-height: 32px !important;
  padding: 6px 7px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(18, 87, 82, 0.08) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.bottom-insight-card .flight-event + .flight-event,
.bottom-insight-card #hotspot-list .hotspot-item + .hotspot-item,
.bottom-insight-card #result-list .result-item + .result-item{
  margin-top: 5px !important;
}

.bottom-insight-card #hotspot-list .hotspot-item.is-active,
.bottom-insight-card #result-list .result-item.active{
  border-color: rgba(15, 118, 110, 0.28) !important;
  background: rgba(232, 248, 242, 0.86) !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .title,
.bottom-insight-card #result-list .result-item .name,
.bottom-insight-card .flight-event strong{
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #163d39 !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .meta,
.bottom-insight-card #result-list .result-item .meta,
.bottom-insight-card #hotspot-list .hotspot-item .coord,
.bottom-insight-card .flight-event span,
.bottom-insight-card .empty{
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #607a76 !important;
  font-size: 0.56rem !important;
}

.bottom-insight-card #hotspot-list .hotspot-nav-target,
.bottom-insight-card #hotspot-list .hotspot-actions,
.bottom-insight-card #hotspot-list .hotspot-nav-state{
  display: none !important;
}

.bottom-insight-card .table-wrap{
  overflow: auto !important;
}

.bottom-insight-card .table-wrap table{
  min-width: 330px !important;
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.58rem !important;
}

.bottom-insight-card .table-wrap th,
.bottom-insight-card .table-wrap td{
  padding: 4px 5px !important;
  border-color: rgba(18, 87, 82, 0.08) !important;
  white-space: nowrap !important;
}

.bottom-insight-card .table-wrap th{
  background: rgba(223, 239, 235, 0.72) !important;
  color: #28524e !important;
}

.tool-btn,
.file-trigger-btn,
button[type="submit"],
#dji-auto-detect-btn,
.dji-media-preview-btn,
.map-image-tools .tool-btn{
  min-height: 32px !important;
  height: auto !important;
  padding: 0 11px !important;
  border-radius: 7px !important;
  border-color: rgba(17, 77, 74, 0.16) !important;
  background: rgba(248, 252, 250, 0.9) !important;
  color: #173f3b !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.tool-btn:hover,
.file-trigger-btn:hover,
.dji-media-preview-btn:hover{
  border-color: rgba(15, 118, 110, 0.28) !important;
  background: rgba(237, 249, 244, 0.98) !important;
}

.tool-btn.is-active,
.viewer-toolbar .tool-btn.is-active,
.dji-media-filters .tool-btn.is-active,
.dji-gallery-type-filters .tool-btn.is-active{
  border-color: rgba(15, 118, 110, 0.42) !important;
  background: rgba(196, 231, 221, 0.92) !important;
  color: #0c514b !important;
}

button[type="submit"],
#dji-auto-detect-btn{
  min-height: 36px !important;
  background: linear-gradient(135deg, #0f766e, #0b5f59) !important;
  color: #fff !important;
  font-size: 0.76rem !important;
}

.mission-dock .tool-btn{
  min-height: 31px !important;
  padding: 0 10px !important;
  font-size: 0.7rem !important;
}

.viewer-toolbar .tool-btn{
  min-width: 38px !important;
  min-height: 30px !important;
  padding: 0 9px !important;
}

.leaflet-overlay-pane .hotspot-zone{
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.82)) !important;
}

.leaflet-pane.diseasePointPane,
.disease-point-marker{
  mix-blend-mode: normal !important;
}

.disease-point-marker{
  filter: none !important;
}

@media (max-width: 1580px){
  .bottom-insight-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-height: 150px !important;
  }
}

@media (max-width: 1280px){
  .bottom-insight-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: 255px !important;
  }
}

@media (max-width: 1120px){
  .bottom-insight-grid{
    grid-template-columns: 1fr !important;
    max-height: none !important;
  }
}

/* =========================================================
   Bottom rail cleanup (v72)
   Keep the lower recognition rail compact, readable, and stable.
   ========================================================= */

.bottom-insight-grid{
  min-height: 138px !important;
  max-height: 158px !important;
  grid-template-columns: 0.82fr 1.08fr 1fr 1.12fr !important;
  align-items: stretch !important;
}

.bottom-insight-card{
  gap: 5px !important;
  padding: 7px 8px !important;
}

.bottom-insight-card h3{
  height: 18px !important;
  min-height: 18px !important;
  font-size: 0.71rem !important;
  letter-spacing: 0 !important;
}

.bottom-insight-card .flight-event-stream,
.bottom-insight-card #hotspot-list,
.bottom-insight-card #result-list,
.bottom-insight-card .table-wrap{
  min-height: 0 !important;
  height: 100% !important;
  overflow: auto !important;
  scrollbar-width: thin !important;
}

.bottom-insight-card .flight-event{
  min-height: 38px !important;
  display: grid !important;
  grid-template-columns: 10px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 7px !important;
  padding: 7px 8px !important;
}

.bottom-insight-card .flight-event:nth-of-type(n+2){
  display: none !important;
}

.bottom-insight-card .flight-event > div{
  min-width: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 7px !important;
  white-space: nowrap !important;
}

.bottom-insight-card .flight-event strong,
.bottom-insight-card .flight-event span:not(.flight-event-dot){
  min-width: 0 !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.bottom-insight-card .flight-event strong{
  flex: 1 1 auto !important;
  font-size: 0.68rem !important;
}

.bottom-insight-card .flight-event span:not(.flight-event-dot){
  flex: 0 1 auto !important;
  max-width: 42% !important;
  font-size: 0.58rem !important;
}

.bottom-insight-card .flight-event-dot{
  width: 7px !important;
  height: 7px !important;
  align-self: center !important;
}

.bottom-insight-card #hotspot-list{
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
}

.bottom-insight-card #hotspot-list .hotspot-item{
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  grid-template-areas:
    "rank title"
    "rank meta"
    "rank coord" !important;
  align-items: center !important;
  gap: 2px 8px !important;
  padding: 7px 8px !important;
  border-left-width: 3px !important;
  overflow: hidden !important;
}

.bottom-insight-card #hotspot-list .hotspot-rank{
  grid-area: rank !important;
  justify-self: start !important;
  align-self: center !important;
  min-width: 44px !important;
  padding: 4px 6px !important;
  border-radius: 999px !important;
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0e5b54 !important;
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .title{
  grid-area: title !important;
  color: #143f3a !important;
  font-size: 0.68rem !important;
  line-height: 1.18 !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .meta{
  grid-area: meta !important;
  color: #5c7772 !important;
  font-size: 0.58rem !important;
  line-height: 1.2 !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .coord{
  grid-area: coord !important;
  color: #355a56 !important;
  font-size: 0.58rem !important;
  line-height: 1.2 !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .title,
.bottom-insight-card #hotspot-list .hotspot-item .meta,
.bottom-insight-card #hotspot-list .hotspot-item .coord{
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.bottom-insight-card #hotspot-list .hotspot-level-badge,
.bottom-insight-card #hotspot-list .hotspot-nav-hint,
.bottom-insight-card #hotspot-list .hotspot-nav-target,
.bottom-insight-card #hotspot-list .hotspot-actions,
.bottom-insight-card #hotspot-list .hotspot-nav-state{
  display: none !important;
}

.bottom-insight-card #hotspot-list .hotspot-item[data-hotspot-level="A"] .hotspot-rank{
  background: rgba(239, 68, 68, 0.12) !important;
  color: #a11d2e !important;
}

.bottom-insight-card #hotspot-list .hotspot-item[data-hotspot-level="B"] .hotspot-rank{
  background: rgba(245, 158, 11, 0.16) !important;
  color: #8a4b0b !important;
}

.bottom-insight-card #hotspot-list .hotspot-item[data-hotspot-level="C"] .hotspot-rank{
  background: rgba(34, 197, 94, 0.14) !important;
  color: #166534 !important;
}

.bottom-insight-card #result-list .result-item{
  min-height: 32px !important;
  display: grid !important;
  align-content: center !important;
}

.bottom-insight-card .table-wrap{
  overflow: auto !important;
  border-radius: 7px !important;
}

.bottom-insight-card .table-wrap table{
  min-width: 390px !important;
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.6rem !important;
}

.bottom-insight-card .table-wrap th,
.bottom-insight-card .table-wrap td{
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 6px !important;
  line-height: 24px !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}

.bottom-insight-card .table-wrap thead th{
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #e5f2ee !important;
  color: #234f4a !important;
  font-weight: 900 !important;
}

.bottom-insight-card .table-wrap tbody td{
  background: rgba(255, 255, 255, 0.74) !important;
  color: #355c58 !important;
}

.bottom-insight-card .table-wrap th:nth-child(1),
.bottom-insight-card .table-wrap td:nth-child(1){
  width: 44px !important;
  text-align: center !important;
}

.bottom-insight-card .table-wrap th:nth-child(2),
.bottom-insight-card .table-wrap td:nth-child(2){
  width: 56px !important;
  text-align: center !important;
}

.bottom-insight-card .table-wrap th:nth-child(3),
.bottom-insight-card .table-wrap td:nth-child(3){
  width: 74px !important;
  text-align: center !important;
}

.bottom-insight-card .table-wrap th:nth-child(4),
.bottom-insight-card .table-wrap td:nth-child(4){
  width: auto !important;
}

@media (max-width: 1580px){
  .bottom-insight-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-height: 164px !important;
  }
}

@media (max-width: 1280px){
  .bottom-insight-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: 290px !important;
  }
}

/* =========================================================
   Bottom nav + result list fix (v73)
   Restore hotspot navigation and prevent result rows from clipping.
   ========================================================= */

.bottom-insight-grid{
  min-height: 152px !important;
  max-height: 176px !important;
  grid-template-columns: 0.78fr 1.22fr 1.12fr 1.08fr !important;
}

.bottom-insight-card #hotspot-list .hotspot-item{
  min-height: 58px !important;
  grid-template-columns: 50px minmax(0, 1fr) 46px !important;
  grid-template-areas:
    "rank title action"
    "rank meta action"
    "rank coord action" !important;
  column-gap: 8px !important;
  padding: 7px 7px !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn{
  grid-area: action !important;
  align-self: center !important;
  justify-self: end !important;
  display: inline-flex !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 7px !important;
  border: 1px solid rgba(13, 116, 105, 0.34) !important;
  background: linear-gradient(135deg, #0f766e, #0b5f59) !important;
  color: #ffffff !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn:hover{
  background: linear-gradient(135deg, #11877e, #0d6b64) !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn:disabled{
  cursor: not-allowed !important;
  opacity: 0.45 !important;
  background: rgba(148, 163, 184, 0.28) !important;
  color: #64748b !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

.bottom-insight-card #result-list{
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
  padding-right: 2px !important;
}

.bottom-insight-card #result-list .result-item{
  width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  display: grid !important;
  grid-template-rows: 18px 16px !important;
  align-content: center !important;
  justify-items: stretch !important;
  gap: 2px !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  text-align: left !important;
}

.bottom-insight-card #result-list .result-item + .result-item{
  margin-top: 0 !important;
}

.bottom-insight-card #result-list .result-item .name,
.bottom-insight-card #result-list .result-item .meta{
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.bottom-insight-card #result-list .result-item .name{
  color: #123f3b !important;
  font-size: 0.67rem !important;
  font-weight: 900 !important;
  line-height: 18px !important;
}

.bottom-insight-card #result-list .result-item .meta{
  color: #5c7772 !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  line-height: 16px !important;
}

@media (max-width: 1580px){
  .bottom-insight-grid{
    max-height: 182px !important;
  }
}

/* =========================================================
   Hotspot share + field navigation compact actions (v74)
   Keep phone sharing and on-site navigation available in the bottom rail.
   ========================================================= */

.bottom-insight-card #hotspot-list .hotspot-mini-actions{
  grid-area: action !important;
  align-self: center !important;
  justify-self: end !important;
  display: grid !important;
  grid-template-rows: repeat(2, 24px) !important;
  gap: 4px !important;
  width: 48px !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-share-btn,
.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn{
  display: inline-flex !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 24px !important;
  min-height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 7px !important;
  font-size: 0.6rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-share-btn{
  border: 1px solid rgba(99, 102, 241, 0.28) !important;
  background: rgba(238, 242, 255, 0.9) !important;
  color: #3730a3 !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-share-btn:hover{
  background: rgba(224, 231, 255, 0.98) !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn{
  border: 1px solid rgba(13, 116, 105, 0.34) !important;
  background: linear-gradient(135deg, #0f766e, #0b5f59) !important;
  color: #ffffff !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn:hover{
  background: linear-gradient(135deg, #11877e, #0d6b64) !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-share-btn:disabled,
.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn:disabled{
  cursor: not-allowed !important;
  opacity: 0.45 !important;
  background: rgba(148, 163, 184, 0.24) !important;
  color: #64748b !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

/* =========================================================
   Phone share wording tune (v75)
   Make hotspot action buttons explicit without crowding the card.
   ========================================================= */

.bottom-insight-card #hotspot-list .hotspot-item{
  grid-template-columns: 50px minmax(0, 1fr) 56px !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-actions{
  width: 56px !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-share-btn,
.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn{
  width: 56px !important;
  min-width: 56px !important;
}

/* =========================================================
   Hotspot action panel behavior and compact dual buttons (v76)
   Bottom hotspot cards expose both share and navigation.
   ========================================================= */

.bottom-insight-card #hotspot-list .hotspot-item{
  min-height: 60px !important;
  grid-template-columns: 50px minmax(0, 1fr) 104px !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-actions{
  grid-area: action !important;
  align-self: center !important;
  justify-self: end !important;
  width: 104px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 50px) !important;
  grid-template-rows: 28px !important;
  gap: 4px !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-share-btn,
.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn{
  grid-area: auto !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 50px !important;
  min-width: 50px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
}

/* =========================================================
   Mission list modal (v77)
   Manage historical drone realtime tasks without occupying map space.
   ========================================================= */

.mission-list-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 3600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(7, 31, 32, 0.42) !important;
  backdrop-filter: blur(10px) !important;
}

.mission-list-modal.hidden{
  display: none !important;
}

.mission-list-panel{
  width: min(1180px, calc(100vw - 36px)) !important;
  max-height: min(78vh, 760px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(190, 221, 214, 0.78) !important;
  background: linear-gradient(180deg, rgba(248, 253, 251, 0.98), rgba(232, 245, 240, 0.96)) !important;
  box-shadow: 0 24px 70px rgba(6, 24, 28, 0.28) !important;
  overflow: hidden !important;
}

.mission-list-head{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(20, 81, 75, 0.1) !important;
}

.mission-list-head h2{
  margin: 0 !important;
  color: #123f3b !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.mission-list-head p{
  margin: 4px 0 0 !important;
  color: #607a76 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

.mission-list-head-actions{
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.mission-list-head-actions .tool-btn{
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
}

.mission-list-table-wrap{
  min-height: 0 !important;
  overflow: auto !important;
  border-radius: 10px !important;
  border: 1px solid rgba(18, 87, 82, 0.12) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.mission-list-table{
  width: 100% !important;
  min-width: 920px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.72rem !important;
}

.mission-list-table th,
.mission-list-table td{
  padding: 9px 10px !important;
  border-bottom: 1px solid rgba(18, 87, 82, 0.08) !important;
  color: #315954 !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.mission-list-table th{
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #e4f1ed !important;
  color: #214c47 !important;
  font-weight: 900 !important;
}

.mission-list-table tbody tr.is-active{
  background: rgba(213, 241, 232, 0.62) !important;
}

.mission-list-table td:first-child{
  min-width: 230px !important;
  white-space: normal !important;
}

.mission-list-table td:first-child strong,
.mission-list-table td:first-child span{
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mission-list-table td:first-child strong{
  color: #113f3a !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
}

.mission-list-table td:first-child span{
  margin-top: 3px !important;
  color: #6a817c !important;
  font-size: 0.62rem !important;
  line-height: 1.2 !important;
}

.mission-status-chip{
  display: inline-flex !important;
  min-width: 54px !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 118, 110, 0.18) !important;
  background: rgba(226, 246, 239, 0.88) !important;
  color: #0f766e !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
}

.mission-status-chip.is-running{
  border-color: rgba(34, 197, 94, 0.28) !important;
  background: rgba(220, 252, 231, 0.9) !important;
  color: #166534 !important;
}

.mission-status-chip.is-paused{
  border-color: rgba(245, 158, 11, 0.32) !important;
  background: rgba(255, 247, 218, 0.9) !important;
  color: #92400e !important;
}

.mission-status-chip.is-completed{
  border-color: rgba(99, 102, 241, 0.28) !important;
  background: rgba(238, 242, 255, 0.92) !important;
  color: #3730a3 !important;
}

.mission-status-chip.is-failed{
  border-color: rgba(239, 68, 68, 0.28) !important;
  background: rgba(254, 226, 226, 0.92) !important;
  color: #991b1b !important;
}

.mission-row-actions{
  display: grid !important;
  grid-template-columns: repeat(4, 52px) !important;
  gap: 5px !important;
}

.mission-row-actions button{
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 1px solid rgba(18, 87, 82, 0.16) !important;
  border-radius: 7px !important;
  background: rgba(248, 252, 250, 0.94) !important;
  color: #16443f !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.mission-row-actions button:hover{
  border-color: rgba(15, 118, 110, 0.34) !important;
  background: rgba(229, 247, 240, 0.98) !important;
}

.mission-row-actions button:disabled{
  cursor: not-allowed !important;
  opacity: 0.45 !important;
}

.mission-list-empty{
  height: 88px !important;
  text-align: center !important;
  color: #6b817d !important;
  font-weight: 800 !important;
}

.mission-dock-main{
  grid-template-columns: auto minmax(230px, 1fr) repeat(6, minmax(58px, auto)) !important;
}

@media (max-width: 980px){
  .mission-list-modal{
    padding: 12px !important;
    align-items: stretch !important;
  }

  .mission-list-panel{
    width: 100% !important;
    max-height: calc(100vh - 24px) !important;
  }

  .mission-list-head{
    grid-template-columns: 1fr !important;
  }

  .mission-list-head-actions{
    justify-content: stretch !important;
  }

  .mission-list-head-actions .tool-btn{
    flex: 1 1 0 !important;
  }
}

/* =========================================================
   Mobile field navigation handoff (v82)
   - QR modal for scanning hotspot navigation links.
   ========================================================= */
.hotspot-qr-btn,
.hotspot-mini-qr-btn{
  border: 1px solid rgba(15, 118, 110, 0.24) !important;
  background: linear-gradient(180deg, rgba(247, 255, 252, 0.98), rgba(229, 245, 240, 0.94)) !important;
  color: #0f4f49 !important;
  font-weight: 900 !important;
}

.hotspot-qr-btn:hover,
.hotspot-mini-qr-btn:hover{
  border-color: rgba(15, 118, 110, 0.48) !important;
  background: linear-gradient(180deg, rgba(230, 251, 244, 0.98), rgba(198, 235, 224, 0.94)) !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-qr-btn{
  min-width: 58px !important;
  padding: 0 8px !important;
  font-size: 0.68rem !important;
}

.hotspot-qr-modal{
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 24, 28, 0.48);
  backdrop-filter: blur(8px);
}

.hotspot-qr-modal.hidden{
  display: none !important;
}

.hotspot-qr-dialog{
  position: relative;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(214, 240, 231, 0.94);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(250, 255, 253, 0.98), rgba(235, 247, 241, 0.96));
  box-shadow: 0 28px 80px rgba(4, 25, 30, 0.28);
}

.hotspot-qr-dialog strong{
  color: #0d403d;
  font-size: 1rem;
  font-weight: 950;
}

.hotspot-qr-meta{
  color: #5d7379;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.hotspot-qr-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(15, 82, 75, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #0f4f49;
  font-size: 18px;
  line-height: 1;
}

.hotspot-qr-image-wrap{
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 82, 75, 0.12);
  background: #fff;
}

.hotspot-qr-image-wrap img{
  width: min(220px, 72vw);
  height: min(220px, 72vw);
  image-rendering: pixelated;
}

#hotspot-qr-link{
  width: 100%;
  min-height: 64px;
  resize: none;
  border: 1px solid rgba(15, 82, 75, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
  color: #234b4c;
  background: #f8fffc;
  font-size: 0.72rem;
  line-height: 1.35;
}

.hotspot-qr-copy{
  min-height: 38px;
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, #0f766e, #159685);
  color: #fff;
  font-weight: 950;
}

/* Navigation choice handoff (v84) */
.hotspot-nav-choice-modal{
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 24, 28, 0.52);
  backdrop-filter: blur(8px);
}

.hotspot-nav-choice-modal.hidden{
  display: none !important;
}

.hotspot-nav-choice-dialog{
  position: relative;
  width: min(440px, calc(100vw - 28px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(210, 231, 225, 0.94);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(250, 255, 253, 0.99), rgba(236, 246, 242, 0.97));
  box-shadow: 0 30px 90px rgba(4, 25, 30, 0.32);
}

.hotspot-nav-choice-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(20, 83, 76, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #32514d;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.hotspot-nav-choice-close:hover{
  background: #ffffff;
  color: #0f4f4a;
}

.hotspot-nav-choice-head{
  display: grid;
  gap: 5px;
  padding-right: 34px;
}

.hotspot-nav-choice-head strong{
  color: #0d403d;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
}

.hotspot-nav-choice-head span{
  color: #5c7378;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
}

.hotspot-nav-choice-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hotspot-nav-choice-btn{
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 13px 12px;
  border: 1px solid rgba(15, 79, 74, 0.18);
  border-radius: 12px;
  background: #f7fbfa;
  color: #183f3e;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 79, 74, 0.08);
}

.hotspot-nav-choice-btn span{
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.1;
}

.hotspot-nav-choice-btn small{
  color: #61767a;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.35;
}

.hotspot-nav-choice-btn.is-field{
  border-color: rgba(15, 118, 110, 0.38);
  background: linear-gradient(180deg, #0f766e, #0f4f4a);
  color: #ffffff;
}

.hotspot-nav-choice-btn.is-field small{
  color: rgba(236, 253, 245, 0.84);
}

.hotspot-nav-choice-btn.is-gaode{
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, #ffffff, #eef7ff);
}

.hotspot-nav-choice-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 79, 74, 0.14);
}

.hotspot-nav-choice-note{
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(15, 82, 75, 0.12);
  border-radius: 10px;
  background: rgba(239, 248, 245, 0.86);
  color: #4a6467;
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.45;
}

@media (max-width: 560px){
  .hotspot-nav-choice-dialog{
    width: min(380px, calc(100vw - 24px));
    padding: 15px;
  }

  .hotspot-nav-choice-actions{
    grid-template-columns: minmax(0, 1fr);
  }

  .hotspot-nav-choice-btn{
    min-height: 82px;
  }
}

/* Hotspot bottom rail no-overlap layout (v86) */
.bottom-insight-card #hotspot-list .hotspot-item{
  min-height: 88px !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  grid-template-areas:
    "rank title"
    "rank meta"
    "rank coord"
    "actions actions" !important;
  align-content: start !important;
  gap: 3px 8px !important;
  padding: 7px 8px !important;
  overflow: visible !important;
}

.bottom-insight-card #hotspot-list .hotspot-rank{
  grid-area: rank !important;
  align-self: start !important;
  justify-self: start !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .title{
  grid-area: title !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .meta{
  grid-area: meta !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .coord{
  grid-area: coord !important;
}

.bottom-insight-card #hotspot-list .hotspot-item .title,
.bottom-insight-card #hotspot-list .hotspot-item .meta,
.bottom-insight-card #hotspot-list .hotspot-item .coord{
  min-width: 0 !important;
  padding-right: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-actions{
  grid-area: actions !important;
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: 28px !important;
  gap: 5px !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  margin-top: 3px !important;
}

.bottom-insight-card #hotspot-list .hotspot-mini-share-btn,
.bottom-insight-card #hotspot-list .hotspot-mini-qr-btn,
.bottom-insight-card #hotspot-list .hotspot-mini-nav-btn{
  width: 100% !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 6px !important;
  border-radius: 7px !important;
  font-size: 0.66rem !important;
  line-height: 1 !important;
}

/* Wide map workbench refinement (v88)
   Use large desktop width for the map and keep both command panels compact. */
@media (min-width: 1121px){
  .app-shell{
    width: min(2540px, calc(100vw - 18px)) !important;
    height: calc(100vh - 10px) !important;
    margin: 5px auto !important;
  }

  .system-header{
    min-height: 88px !important;
    padding: 12px 14px !important;
    grid-template-columns: minmax(210px, 330px) minmax(560px, 1fr) auto !important;
    gap: 12px !important;
  }

  .workspace{
    grid-template-columns:
      clamp(300px, 14.2vw, 360px)
      minmax(0, 1fr)
      clamp(312px, 14.6vw, 370px) !important;
    gap: 7px !important;
  }

  .left-panel,
  .right-panel{
    padding: 7px !important;
    gap: 7px !important;
  }

  .center-panel{
    padding: 8px !important;
    gap: 6px !important;
  }

  .viewer-toolbar{
    min-height: 34px !important;
    padding: 5px 7px !important;
  }

  .map-image-status{
    min-height: 38px !important;
    padding: 7px 10px !important;
  }
}

@media (min-width: 1121px) and (max-width: 1480px){
  .app-shell{
    width: min(100vw - 12px, 1468px) !important;
  }

  .workspace{
    grid-template-columns: 292px minmax(0, 1fr) 300px !important;
  }

  .system-header{
    grid-template-columns: minmax(190px, 280px) minmax(420px, 1fr) auto !important;
  }
}

@media (max-width: 1120px){
  html,
  body{
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .app-shell{
    height: auto !important;
    min-height: calc(100vh - 12px) !important;
    overflow: visible !important;
  }

  .workspace{
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    overflow: visible !important;
  }

  .center-panel{
    height: 680px !important;
    min-height: 680px !important;
    overflow: hidden !important;
  }

  .center-panel .canvas-frame{
    min-height: 360px !important;
    height: 360px !important;
    flex: 0 0 360px !important;
  }

  .right-panel{
    height: 680px !important;
    min-height: 680px !important;
    max-height: none !important;
  }

  .left-panel{
    height: 760px !important;
    min-height: 760px !important;
    max-height: none !important;
  }
}

@media (max-width: 560px){
  .center-panel{
    height: 620px !important;
    min-height: 620px !important;
  }

  .center-panel .canvas-frame{
    min-height: 300px !important;
    height: 300px !important;
    flex-basis: 300px !important;
  }

  .flight-point-legend{
    width: calc(100% - 20px);
    flex-wrap: wrap;
  }
}

.dji-realtime-action-row{
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.demo-flight-btn{
  min-height: 34px !important;
  padding: 0 12px !important;
  border-color: rgba(80, 97, 107, 0.28) !important;
  background: rgba(246, 248, 247, 0.78) !important;
  color: #50616b !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.demo-flight-btn:hover{
  border-color: rgba(15, 79, 74, 0.34) !important;
  color: #0f4f4a !important;
}

.demo-flight-btn.is-running{
  background: rgba(15, 118, 110, 0.12) !important;
  border-color: rgba(15, 118, 110, 0.34) !important;
  color: #0f766e !important;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12) !important;
}

.demo-flight-status{
  margin: 4px 0 0 !important;
  color: #50616b;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
}

/* =========================================================
   Hotspot layer switch + single target navigation controls
   ========================================================= */
.hotspot-panel-head{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.hotspot-overlay-toggle{
  min-width: 72px !important;
  height: 26px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(15, 79, 74, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f4f4a !important;
  font-size: 0.66rem !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.hotspot-overlay-toggle.is-active{
  border-color: rgba(15, 79, 74, 0.58) !important;
  background: linear-gradient(180deg, #0f766e, #0f4f4a) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 79, 74, 0.18) !important;
}

.disease-point-map-popup .leaflet-popup-content{
  margin: 10px 12px !important;
}

.disease-point-popup{
  min-width: 208px !important;
  display: grid !important;
  gap: 6px !important;
  color: #123f46 !important;
}

.disease-point-popup strong{
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  color: #0f4f4a !important;
}

.disease-point-popup span{
  font-size: 0.7rem !important;
  font-weight: 720 !important;
  color: #55706d !important;
}

.disease-point-actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 3px !important;
}

.disease-point-actions button{
  min-height: 30px !important;
  border: 1px solid rgba(15, 79, 74, 0.22) !important;
  border-radius: 8px !important;
  background: #f8fffc !important;
  color: #0f4f4a !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.disease-point-actions .disease-point-nav-btn{
  border-color: rgba(15, 79, 74, 0.48) !important;
  background: linear-gradient(180deg, #0f766e, #0f4f4a) !important;
  color: #ffffff !important;
}

.disease-point-hit-marker{
  cursor: pointer !important;
}

/* =========================================================
   Agricultural remote-sensing command surface (v94)
   ========================================================= */
:root{
  --ink: #102f35;
  --muted: #587078;
  --bg-a: #e5efed;
  --bg-b: #d8e7e3;
  --card: #f7fbfa;
  --line: rgba(30, 83, 87, 0.2);
  --accent: #0c8e8a;
  --accent-2: #20b8ad;
  --shadow: 0 12px 30px rgba(18, 55, 60, 0.12);
  --radius: 8px;
}

body{
  background-color: #e5eeec !important;
  background-image:
    linear-gradient(rgba(24, 91, 91, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 91, 91, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #edf4f2 0%, #dce9e6 55%, #e8f0ee 100%) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
}

body::before,
body::after,
.bg-orb{
  display: none !important;
}

.app-shell{
  border: 1px solid rgba(25, 76, 81, 0.2) !important;
  border-radius: 8px !important;
  background: rgba(241, 247, 245, 0.94) !important;
  box-shadow: 0 20px 52px rgba(13, 48, 54, 0.16) !important;
  overflow: hidden !important;
}

.system-header{
  position: relative !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(126, 231, 216, 0.38) !important;
  border-radius: 0 !important;
  background: linear-gradient(112deg, #0b3137 0%, #12464a 62%, #15594f 100%) !important;
  box-shadow: 0 8px 24px rgba(5, 37, 43, 0.2) !important;
}

.system-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60e7d2 24%, #b8f36b 68%, transparent);
  opacity: 0.72;
  pointer-events: none;
}

.system-title-block h1{
  color: #ffffff !important;
  font-size: 1.38rem !important;
  font-weight: 800 !important;
}

.system-title-block > span{
  color: rgba(205, 244, 237, 0.82) !important;
  font-weight: 650 !important;
}

.system-status-strip > span{
  border-color: rgba(174, 239, 228, 0.24) !important;
  border-radius: 5px !important;
  background: rgba(7, 48, 53, 0.4) !important;
  color: #d9f6ef !important;
}

.system-status-strip > span.is-online{
  border-color: rgba(109, 240, 190, 0.46) !important;
  background: rgba(22, 125, 91, 0.38) !important;
  color: #ddffed !important;
}

.mission-dock{
  border-color: rgba(167, 210, 205, 0.72) !important;
  border-radius: 7px !important;
  background: rgba(247, 252, 250, 0.97) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 7px 18px rgba(4, 30, 34, 0.15) !important;
}

.workspace{
  background: #eaf1ef !important;
}

.panel{
  border-color: rgba(43, 88, 91, 0.2) !important;
  border-radius: 7px !important;
  background: #f8fbfa !important;
  box-shadow: 0 7px 20px rgba(30, 67, 70, 0.08) !important;
}

.left-panel,
.right-panel{
  background: #f4f8f7 !important;
}

.center-panel{
  background: #f7faf9 !important;
}

.center-panel-titlebar,
.right-panel-titlebar{
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 2px 7px;
  border-bottom: 1px solid rgba(34, 87, 91, 0.18);
}

.center-panel-titlebar > div,
.right-panel-titlebar > div{
  min-width: 0;
  display: grid;
  gap: 2px;
}

.center-panel-titlebar h2,
.right-panel-titlebar h2{
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  color: #12373c !important;
  font-size: 0.98rem !important;
  line-height: 1.15 !important;
}

.module-code{
  color: #128b87;
  font-family: "Manrope", sans-serif;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0;
}

.workspace-live-state,
.result-live-indicator{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(19, 128, 119, 0.26);
  border-radius: 999px;
  background: #ecf8f4;
  color: #176f69;
  font-size: 0.63rem;
  font-weight: 800;
}

.workspace-live-state i,
.result-live-indicator i{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20c777;
  box-shadow: 0 0 0 3px rgba(32, 199, 119, 0.13), 0 0 9px rgba(32, 199, 119, 0.62);
}

.viewer-toolbar{
  border: 1px solid rgba(34, 87, 91, 0.18) !important;
  border-radius: 6px !important;
  background: #e8f0ee !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.viewer-toolbar .tool-btn{
  border-radius: 5px !important;
}

.viewer-toolbar .tool-btn.is-active{
  border-color: #176f72 !important;
  background: #174f56 !important;
  color: #ffffff !important;
  box-shadow: 0 5px 12px rgba(13, 67, 73, 0.18) !important;
}

.canvas-frame{
  position: relative !important;
  isolation: isolate;
  border: 1px solid rgba(19, 66, 72, 0.52) !important;
  border-radius: 6px !important;
  background: #0b282e !important;
  box-shadow:
    inset 0 0 0 1px rgba(165, 239, 226, 0.12),
    0 10px 24px rgba(10, 43, 48, 0.15) !important;
  overflow: hidden !important;
}

.canvas-frame:has(.geo-map-canvas:not(.hidden))::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 720;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 238, 218, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 238, 218, 0.13) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.13;
}

.flight-point-legend{
  position: absolute;
  z-index: 940;
  left: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(176, 235, 226, 0.35);
  border-radius: 6px;
  background: rgba(8, 41, 47, 0.9);
  color: #e8f8f5;
  box-shadow: 0 8px 20px rgba(4, 25, 30, 0.2);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.canvas-frame:has(.geo-map-canvas.hidden) .flight-point-legend{
  display: none;
}

.flight-point-legend strong,
.flight-point-legend span{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 0.63rem;
  line-height: 1;
}

.flight-point-legend strong{
  padding-right: 10px;
  border-right: 1px solid rgba(205, 240, 235, 0.22);
  color: #ffffff;
  font-weight: 850;
}

.legend-point{
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 7px currentColor;
}

.legend-point.is-clear{
  color: #22d463;
  background: #22d463;
}

.legend-point.is-disease{
  color: #f6c945;
  background: #f6c945;
}

.legend-point.is-processing{
  color: #22d3ee;
  background: #0ea5e9;
}

.geo-map-canvas{
  background: #123239 !important;
}

.leaflet-tooltip{
  border: 1px solid rgba(154, 226, 216, 0.38) !important;
  border-radius: 5px !important;
  background: rgba(8, 41, 47, 0.94) !important;
  color: #eefbf8 !important;
  box-shadow: 0 8px 20px rgba(4, 25, 30, 0.2) !important;
}

.leaflet-tooltip::before{
  border-top-color: rgba(8, 41, 47, 0.94) !important;
}

.flight-media-point,
.geo-hit-point{
  filter: drop-shadow(0 0 3px rgba(1, 22, 26, 0.72));
}

.flight-media-point-healthy,
.geo-result-point-healthy{
  filter: drop-shadow(0 0 4px rgba(34, 212, 99, 0.9));
}

.flight-media-point-disease,
.geo-result-point-disease{
  filter: drop-shadow(0 0 5px rgba(246, 201, 69, 0.94));
}

.flight-media-point-recognizing{
  transform-box: fill-box;
  transform-origin: center;
  animation: flight-point-pulse 1.35s ease-in-out infinite;
}

@keyframes flight-point-pulse{
  0%, 100%{ opacity: 0.72; transform: scale(0.88); }
  50%{ opacity: 1; transform: scale(1.18); }
}

.dji-media-item.is-clear-result{
  border-color: rgba(34, 180, 94, 0.4) !important;
  box-shadow: inset 3px 0 0 #22c55e !important;
}

.dji-media-item.has-disease-result{
  border-color: rgba(214, 165, 29, 0.46) !important;
  box-shadow: inset 3px 0 0 #eab72e !important;
}

.left-module,
.dji-live-panel,
.model-banner,
.stat-item,
.confidence-panel,
.flight-progress-panel,
.flight-timeline-panel,
.bottom-insight-card{
  border-radius: 6px !important;
}

.canvas-foot{
  border: 1px solid rgba(34, 87, 91, 0.15) !important;
  border-radius: 5px !important;
  background: #eef5f3 !important;
}

@media (max-width: 900px){
  .center-panel-titlebar,
  .right-panel-titlebar{
    min-height: 38px;
  }

  .flight-point-legend{
    right: 10px;
    left: 10px;
    bottom: 10px;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce){
  .canvas-frame::after,
  .flight-media-point-recognizing{
    animation: none !important;
  }
}

@media (min-width: 1121px) and (max-width: 1480px){
  .system-header{
    grid-template-columns: 270px minmax(0, 1fr) 230px !important;
    align-items: center !important;
  }

  .system-status-strip{
    width: 230px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .system-status-strip > span:last-child{
    grid-column: 1 / -1;
  }
}
