:root {
  --bg: #020814;
  --bg-2: #061522;
  --panel: rgba(7, 20, 34, 0.86);
  --panel-strong: rgba(8, 29, 45, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(111, 219, 255, 0.18);
  --line-strong: rgba(111, 219, 255, 0.34);
  --text: #e9fbff;
  --muted: #93afbf;
  --cyan: #37d5ff;
  --teal: #2dd4bf;
  --emerald: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(6, 31, 52, 0.94), rgba(2, 8, 20, 0.98) 58%, rgba(4, 18, 32, 0.96)),
    linear-gradient(rgba(111, 219, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 219, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 14px;
}

.main-stage {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: calc(100vh - 28px);
}

.topbar,
.main-tabs,
.card,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(7, 20, 34, 0.9), rgba(9, 35, 54, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}

.brand-block {
  min-width: 0;
}

.brand-block h1 {
  margin-top: 3px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.brand-block p,
.card p {
  color: var(--muted);
  line-height: 1.45;
}

.brand-block p {
  margin-top: 5px;
  max-width: 760px;
}

.eyebrow {
  color: #9bedff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-pill,
.mini-status,
.blocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: #d7f6ff;
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 14px currentColor;
}

.status-pill.connected,
.status-pill.ok {
  color: #c9fdd9;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(74, 222, 128, 0.26);
}

.status-pill.connected i,
.status-pill.ok i {
  background: var(--emerald);
}

.status-pill.error,
.status-pill.missing_api_key,
.status-pill.dependency_missing,
.status-pill.disconnected {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.32);
}

.status-pill.error i,
.status-pill.missing_api_key i,
.status-pill.dependency_missing i,
.status-pill.disconnected i {
  background: var(--red);
}

.status-pill.connecting,
.status-pill.starting,
.status-pill.checking {
  color: #bef4ff;
  background: rgba(55, 213, 255, 0.14);
  border-color: rgba(103, 232, 249, 0.28);
}

.status-pill.connecting i,
.status-pill.starting i,
.status-pill.checking i {
  background: var(--cyan);
}

.main-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  scrollbar-width: none;
}

.main-tabs::-webkit-scrollbar {
  display: none;
}

.main-tab {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
  color: #c8e8f5;
  background: transparent;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.main-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 219, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.main-tab-active {
  color: #efffff;
  border-color: rgba(45, 212, 191, 0.42);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.42), rgba(13, 148, 136, 0.24));
  box-shadow: inset 0 0 18px rgba(55, 213, 255, 0.12);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(520px, 680px) minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.workspace-panel {
  min-width: 0;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  padding-right: 3px;
}

.workspace-view {
  display: grid;
  align-content: start;
  gap: 10px;
}

.workspace-view[hidden] {
  display: none;
}

.card {
  padding: 14px;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(145deg, rgba(8, 36, 58, 0.94), rgba(7, 20, 34, 0.84));
}

.hero-card h2,
.page-title h2,
.map-toolbar h2 {
  margin-top: 4px;
  font-size: 1.12rem;
}

.hero-card p {
  margin-top: 7px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row h3 {
  margin-top: 4px;
  font-size: 1rem;
}

.page-title {
  padding: 2px 2px 0;
}

.tab-page-header {
  align-items: flex-start;
  padding: 4px 2px 2px;
}

.tab-page-header h2 {
  margin: 0;
  color: #f8feff;
  font-size: clamp(1.18rem, 1.8vw, 1.38rem);
  line-height: 1.12;
}

.tab-page-header p {
  max-width: 720px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.tab-page-header > .mini-status,
.tab-page-header > .panel-actions,
.tab-page-header > .btn {
  margin-top: 2px;
}

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

.kpi-card,
.stats-grid div,
.preview-metric,
.history-item,
.empty-panel,
.chart-placeholder {
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  background: var(--panel-soft);
}

.kpi-card,
.stats-grid div,
.preview-metric {
  min-height: 78px;
  padding: 11px;
}

.kpi-card span,
.stats-grid span,
.preview-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.kpi-card strong,
.stats-grid strong,
.preview-metric strong {
  display: block;
  margin-top: 6px;
  color: #f5fdff;
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kpi-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
}

.product-grid,
.product-strip {
  display: grid;
  gap: 8px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.product-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.product-card.active {
  border-color: rgba(45, 212, 191, 0.42);
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.34), rgba(255, 255, 255, 0.055));
}

.product-card.blocked {
  border-style: dashed;
}

.product-code {
  display: inline-flex;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(55, 213, 255, 0.28);
  border-radius: 999px;
  padding: 0 9px;
  color: #b8f4ff;
  background: rgba(55, 213, 255, 0.1);
  font-size: 0.66rem;
  font-weight: 950;
}

.product-card h4 {
  font-size: 0.94rem;
  line-height: 1.2;
}

.product-card p {
  font-size: 0.84rem;
}

.blocked-badge {
  width: fit-content;
  color: #ffd9a6;
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(251, 191, 36, 0.32);
}

.mini-status {
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  cursor: pointer;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px rgba(8, 47, 73, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary {
  color: #03101d;
  border-color: rgba(103, 232, 249, 0.7);
  background: linear-gradient(135deg, #7dd3fc 0%, #5eead4 52%, #34d399 100%);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.18);
}

.btn-light {
  color: #dff8ff;
  background:
    linear-gradient(145deg, rgba(224, 242, 254, 0.11), rgba(14, 165, 233, 0.055));
}

.btn-danger-soft {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.32);
  background:
    linear-gradient(145deg, rgba(127, 29, 29, 0.28), rgba(248, 113, 113, 0.07));
}

.btn.compact {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #c8e6f7;
  font-size: 0.72rem;
  font-weight: 900;
}

.compact-field {
  margin-top: 0;
}

.field select,
.field textarea,
.field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(111, 219, 255, 0.2);
  border-radius: 7px;
  padding: 10px 11px;
  color: var(--text);
  background: rgba(2, 8, 23, 0.6);
  outline: none;
}

.field textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.35;
  text-transform: none;
}

.field select option {
  color: #071421;
}

.field input::placeholder {
  color: rgba(198, 231, 244, 0.46);
}

.field input[type="date"],
.field input[type="time"] {
  color-scheme: dark;
}

.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.8;
  filter: invert(1) saturate(1.35) hue-rotate(145deg);
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.button-grid .btn:first-child {
  grid-column: 1 / -1;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
  font-size: 0.82rem;
  cursor: pointer;
}

.switch-row input {
  display: none;
}

.switch-row span {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}

.switch-row span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: transform 0.18s ease;
}

.switch-row input:checked + span {
  background: linear-gradient(135deg, #0284c7, #22c55e);
}

.switch-row input:checked + span::after {
  transform: translateX(16px);
}

.error-banner,
.map-notice {
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.24);
  line-height: 1.4;
  font-weight: 800;
}

.error-banner {
  margin-top: 12px;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.split-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.selected-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #dbeafe;
  line-height: 1.4;
}

.selected-card.empty,
.empty-panel {
  color: var(--muted);
  border-style: dashed;
  padding: 12px;
}

.selected-card dl,
.popup-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 12px;
  margin: 8px 0 0;
}

.selected-card dt,
.popup-card dt {
  color: var(--muted);
  font-weight: 900;
}

.selected-card dd,
.popup-card dd {
  margin: 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.selected-card pre {
  max-height: 240px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.layer-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.layer-list span {
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 7px;
  padding: 9px 10px;
  color: #d7f6ff;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
  font-weight: 800;
}

.history-page-header {
  align-items: flex-start;
  margin-bottom: 10px;
}

.history-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.history-sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  padding: 0 11px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.history-sync-chip i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

.history-refresh-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 8px;
  color: #dffbff;
  background:
    linear-gradient(145deg, rgba(14, 165, 233, 0.18), rgba(45, 212, 191, 0.08));
  font-size: 0.62rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.history-refresh-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.54);
  box-shadow: 0 12px 24px rgba(8, 47, 73, 0.22);
}

.history-summary-grid {
  margin-bottom: 12px;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
}

.history-summary-card {
  min-height: 106px;
}

.history-summary-card strong {
  font-size: 1.22rem;
}

.history-dashboard-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(7, 24, 40, 0.92), rgba(4, 14, 27, 0.9));
}

.history-filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-search-field {
  display: flex;
  flex: 1 1 320px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 9px;
  padding: 0 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.history-search-field span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 7px;
  color: #a7f3ff;
  background: rgba(14, 165, 233, 0.12);
  font-size: 0.57rem;
  font-weight: 950;
}

.history-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f8feff;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 760;
}

.history-search-field input::placeholder {
  color: rgba(147, 175, 191, 0.78);
}

.history-count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 999px;
  padding: 0 11px;
  color: #cffafe;
  background: rgba(14, 165, 233, 0.1);
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.history-filter-groups {
  display: grid;
  gap: 10px;
}

.history-chip-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.history-chip-row > span {
  padding-top: 8px;
  color: #9ed5e8;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.history-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.history-filter-chips button {
  min-height: 32px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 999px;
  padding: 0 11px;
  color: #cde8f2;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.history-filter-chips button:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.32);
  color: #f8feff;
}

.history-filter-chips button.active {
  border-color: rgba(94, 234, 212, 0.54);
  color: #eaffff;
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.2), rgba(14, 165, 233, 0.11));
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.08), 0 10px 26px rgba(13, 148, 136, 0.12);
}

.history-custom-date-range {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.history-custom-date-range[hidden] {
  display: none;
}

.history-custom-date-range label {
  display: grid;
  gap: 5px;
  min-width: 170px;
  color: #9ed5e8;
  font-size: 0.66rem;
  font-weight: 950;
}

.history-custom-date-range input {
  min-height: 36px;
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  color: #f8feff;
  background: rgba(2, 8, 23, 0.46);
  color-scheme: dark;
}

.history-list-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(111, 219, 255, 0.11);
  padding-top: 12px;
}

.history-list-toolbar strong,
.history-list-toolbar small {
  display: block;
}

.history-list-toolbar strong {
  color: #f8feff;
  font-size: 0.92rem;
}

.history-list-toolbar small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.history-clear-btn {
  border-color: rgba(248, 113, 113, 0.24);
  color: #fecaca;
  background:
    linear-gradient(145deg, rgba(127, 29, 29, 0.22), rgba(248, 113, 113, 0.06));
}

.history-list {
  display: block;
}

.history-list-modern {
  height: clamp(420px, 48vh, 660px);
  max-height: 660px;
  min-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 10px 18px 0;
  scrollbar-gutter: stable;
}

.history-list-modern::-webkit-scrollbar,
.history-modal-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.history-list-modern::-webkit-scrollbar-track,
.history-modal-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.62);
}

.history-list-modern::-webkit-scrollbar-thumb,
.history-modal-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.6), rgba(14, 165, 233, 0.42));
}

.history-session-card {
  position: relative;
  display: block;
  min-height: 0;
  height: auto;
  margin: 0 0 16px;
  overflow: visible;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 11px;
  padding: 16px 16px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.073), rgba(255, 255, 255, 0.028));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.052);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.history-session-card:last-child {
  margin-bottom: 4px;
}

.history-session-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.52);
  opacity: 0.72;
}

.history-session-card:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.038));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.history-card-topline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.history-product-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 9px;
  color: #bdfdf6;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(45, 212, 191, 0.1));
  font-size: 0.6rem;
  font-weight: 950;
}

.history-product-emission .history-product-mark {
  border-color: rgba(251, 146, 60, 0.34);
  color: #fed7aa;
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.22), rgba(239, 68, 68, 0.08));
}

.history-product-water .history-product-mark,
.history-product-weather .history-product-mark {
  border-color: rgba(56, 189, 248, 0.34);
  color: #bae6fd;
}

.history-product-camera .history-product-mark {
  border-color: rgba(167, 139, 250, 0.34);
  color: #ddd6fe;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.18), rgba(14, 165, 233, 0.08));
}

.history-card-title {
  min-width: 0;
}

.history-card-title strong,
.history-card-title small {
  display: block;
}

.history-card-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
  color: #a7f3ff;
  background: rgba(14, 165, 233, 0.1);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.history-card-title strong {
  color: #f8feff;
  font-size: 1rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.history-card-title small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.history-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.66rem;
  font-weight: 950;
  white-space: nowrap;
}

.history-status-completed,
.history-status-exported {
  border-color: rgba(45, 212, 191, 0.34);
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.1);
}

.history-status-failed {
  border-color: rgba(248, 113, 113, 0.36);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.11);
}

.history-status-running {
  border-color: rgba(245, 158, 11, 0.36);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
}

.history-card-summary {
  margin: 0 0 14px;
  color: #ccecf7;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.48;
}

.history-card-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.history-card-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.history-card-meta span,
.history-card-meta-strip span {
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  background: rgba(2, 8, 23, 0.22);
}

.history-card-meta small,
.history-card-meta b,
.history-card-meta-strip small,
.history-card-meta-strip b {
  display: block;
}

.history-card-meta small,
.history-card-meta-strip small {
  color: rgba(147, 175, 191, 0.86);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.history-card-meta b,
.history-card-meta-strip b {
  margin-top: 4px;
  color: #eafcff;
  font-size: 0.76rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.history-card-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(111, 219, 255, 0.12);
}

.history-card-actions .btn,
.history-trash-btn {
  width: 100%;
  min-height: 38px;
}

.history-trash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  padding: 0 10px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.2);
  font-size: 0.66rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.history-trash-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.54);
  box-shadow: 0 12px 24px rgba(127, 29, 29, 0.2);
}

.history-empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(111, 219, 255, 0.2);
  border-radius: 9px;
  padding: 18px;
  color: #dff8ff;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
}

.history-empty-state strong,
.history-empty-state small {
  display: block;
}

.history-empty-state small {
  margin-top: 6px;
  color: var(--muted);
}

.history-legacy-detail {
  display: none;
}

.history-modal-panel {
  width: min(1080px, 96vw);
}

.history-details-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(320px, 1.12fr);
  gap: 12px;
}

.history-detail-preview-card,
.history-detail-summary-card,
.history-detail-exports-card,
.history-detail-technical-card {
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 11px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.history-detail-preview-card {
  min-height: 260px;
}

.history-preview-image,
.history-roi-preview {
  display: grid;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 10px;
  background: rgba(2, 8, 23, 0.56);
}

.history-preview-image img {
  width: 100%;
  height: 100%;
  min-height: 236px;
  object-fit: cover;
}

.history-roi-preview {
  place-items: center;
  padding: 18px;
  text-align: center;
}

.history-roi-preview span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 13px;
  color: #bdfdf6;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(45, 212, 191, 0.11));
  font-size: 0.72rem;
  font-weight: 950;
}

.history-roi-preview strong {
  margin-top: 12px;
  color: #f8feff;
}

.history-roi-preview small {
  margin-top: 6px;
  color: var(--muted);
}

.history-detail-summary-card {
  grid-row: span 2;
}

.history-detail-summary-card h4,
.history-detail-exports-card h4 {
  margin-bottom: 10px;
  color: #f8feff;
  font-size: 0.92rem;
}

.history-detail-summary-card dl,
.history-detail-technical-card dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
}

.history-detail-summary-card dt,
.history-detail-technical-card dt {
  color: #9ed5e8;
  font-size: 0.68rem;
  font-weight: 950;
}

.history-detail-summary-card dd,
.history-detail-technical-card dd {
  margin: 0;
  color: #eefcff;
  font-size: 0.78rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.history-export-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 7px 7px 0;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 999px;
  padding: 0 11px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.history-modal-empty {
  color: var(--muted);
  font-size: 0.78rem;
}

.history-detail-technical-card {
  grid-column: 1 / -1;
}

.history-detail-technical-card summary {
  color: #bdfdf6;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.history-detail-technical-card details[open] summary {
  margin-bottom: 10px;
}

.history-confirm-panel h3 {
  margin-top: 3px;
  color: #f8feff;
  font-size: 1.08rem;
}

.history-confirm-panel p {
  margin: 7px 0 0;
  color: rgba(214, 241, 249, 0.74);
  line-height: 1.45;
}

.history-bulk-options {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.chart-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

.satellite-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.satellite-product-tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.15);
  border-radius: 8px;
  padding: 13px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.satellite-product-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(111, 219, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(111, 219, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.65;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

.satellite-product-tile::after {
  content: "";
  position: absolute;
  inset: auto 12px 0 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.58);
  opacity: 0.64;
}

.satellite-product-tile:hover,
.satellite-product-tile.active {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.46);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(14, 116, 144, 0.3), rgba(255, 255, 255, 0.058));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.satellite-product-tile > * {
  position: relative;
  z-index: 1;
}

.satellite-product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.satellite-product-tile strong {
  color: #f8feff;
  font-size: 0.96rem;
  line-height: 1.18;
}

.satellite-product-tile em {
  color: #bdfdf6;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.satellite-product-tile small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.34;
}

.satellite-product-tile small b {
  color: #bdfdf6;
}

.satellite-selected-pill {
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.64rem;
  font-weight: 950;
}

.satellite-product-tile.active .satellite-selected-pill {
  color: #03101d;
  border-color: rgba(103, 232, 249, 0.7);
  background: linear-gradient(135deg, #7dd3fc, #6ee7b7);
}

.satellite-product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.satellite-product-facts span {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  padding: 7px 8px;
  color: #d8f8ff;
  background: rgba(2, 8, 23, 0.28);
}

.satellite-product-facts b {
  color: #8fbfd2;
  font-size: 0.58rem;
  font-weight: 950;
}

.satellite-product-facts strong {
  color: #a7f3d0;
  font-size: 0.72rem;
  line-height: 1.1;
}

.satellite-product-tile.accent-sar .product-code {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(148, 163, 184, 0.14);
}

.satellite-product-tile.accent-optical .product-code,
.satellite-product-tile.accent-hr .product-code {
  border-color: rgba(55, 213, 255, 0.36);
  background: rgba(55, 213, 255, 0.14);
}

.satellite-product-tile.accent-landsat8 .product-code {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.14);
}

.satellite-product-tile.accent-landsat9 .product-code,
.satellite-product-tile.accent-multi .product-code {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(34, 197, 94, 0.14);
}

.satellite-command-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(55, 213, 255, 0.13), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(45, 212, 191, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(7, 25, 43, 0.95), rgba(3, 18, 32, 0.88));
}

.satellite-command-card::before,
.satellite-browser-card::before,
.satellite-visualization-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(111, 219, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(111, 219, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(130deg, rgba(0, 0, 0, 0.62), transparent 68%);
}

.satellite-command-card > *,
.satellite-browser-card > *,
.satellite-visualization-card > * {
  position: relative;
  z-index: 1;
}

.satellite-workflow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.satellite-workflow-head h3 {
  font-size: 1.18rem;
}

.satellite-workflow-head p {
  max-width: 740px;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.42;
}

.satellite-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(135px, 0.8fr) minmax(135px, 0.8fr);
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.satellite-cloud-field {
  grid-column: 1 / -1;
}

.satellite-cloud-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.satellite-roi-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 12px;
}

.satellite-bbox-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 38%),
    rgba(45, 212, 191, 0.065);
}

.satellite-bbox-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.satellite-bbox-card code {
  color: #e9fbff;
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: pre-line;
  word-break: break-word;
}

.satellite-roi-status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 900;
}

.satellite-roi-status-row i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.72);
}

.satellite-action-panel {
  display: grid;
  gap: 9px;
}

.satellite-action-group {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(2, 8, 23, 0.26);
}

.satellite-action-group > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.satellite-action-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.satellite-hr-control {
  border-color: rgba(103, 232, 249, 0.34);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}

.satellite-hr-control[hidden] {
  display: none;
}

.satellite-action-group.primary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.satellite-action-group.primary > span {
  align-self: center;
}

.satellite-browser-card,
.satellite-visualization-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(7, 25, 43, 0.94), rgba(3, 18, 32, 0.86));
}

.satellite-visualization-card {
  margin-top: 14px;
}

.satellite-scene-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.satellite-scene-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  max-height: 430px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
}

.satellite-scene-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(126px, auto);
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 10px;
  padding: 9px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(14, 32, 52, 0.88), rgba(4, 16, 30, 0.82));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.satellite-scene-card:hover,
.satellite-scene-card.active {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(14, 116, 144, 0.27), rgba(8, 22, 39, 0.86));
  box-shadow: 0 14px 30px rgba(8, 47, 73, 0.28);
}

.satellite-scene-card.loaded {
  border-color: rgba(94, 234, 212, 0.38);
}

.satellite-scene-thumb {
  display: grid;
  width: 88px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(8, 22, 39, 0.94)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 9px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 18px rgba(34, 211, 238, 0.11);
}

.satellite-scene-thumb-sentinel1 {
  background:
    radial-gradient(circle at 28% 28%, rgba(248, 250, 252, 0.3), transparent 18%),
    repeating-linear-gradient(135deg, rgba(203, 213, 225, 0.16) 0 2px, rgba(15, 23, 42, 0.12) 2px 8px),
    linear-gradient(145deg, #0f172a, #334155);
}

.satellite-scene-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.satellite-thumb-placeholder {
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 0 8px;
  color: #dff8ff;
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
  text-transform: none;
}

.satellite-thumb-placeholder b {
  color: #bdfdf6;
  font-size: 0.78rem;
}

.satellite-thumb-placeholder small {
  color: rgba(223, 248, 255, 0.68);
  font-size: 0.58rem;
  line-height: 1.1;
}

.satellite-scene-body {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.satellite-scene-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.satellite-scene-title strong {
  overflow: hidden;
  color: #f5fdff;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.satellite-scene-title b,
.satellite-scene-selected-badge {
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  padding: 4px 7px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.1);
  font-size: 0.62rem;
  font-weight: 950;
  white-space: nowrap;
}

.satellite-scene-selected-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #06121f;
  background: linear-gradient(135deg, #67e8f9, #86efac);
}

.satellite-scene-subtitle {
  overflow: hidden;
  color: #9ed5e8;
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.satellite-scene-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.satellite-scene-meta span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.1);
  border-radius: 8px;
  padding: 5px 7px;
  background: rgba(2, 8, 23, 0.24);
  color: #dff8ff;
  font-size: 0.66rem;
  line-height: 1.15;
}

.satellite-scene-meta b {
  color: #89cfe4;
  font-size: 0.55rem;
  font-weight: 950;
}

.satellite-scene-body small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.satellite-scene-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.satellite-scene-id-row code {
  overflow: hidden;
  max-width: 190px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 999px;
  padding: 4px 8px;
  color: #dff8ff;
  background: rgba(2, 8, 23, 0.36);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.satellite-scene-copy {
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.08);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 900;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.satellite-scene-copy:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.16);
}

.satellite-scene-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: center;
  justify-self: end;
  min-width: 126px;
}

.satellite-scene-actions .btn {
  width: 100%;
  white-space: nowrap;
}

.satellite-viz-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.satellite-viz-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.052);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.satellite-viz-card:hover,
.satellite-viz-card.active {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.48);
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.28), rgba(255, 255, 255, 0.065));
}

.satellite-viz-card.disabled {
  cursor: default;
  opacity: 0.56;
}

.satellite-viz-card.disabled:hover {
  transform: none;
  border-color: rgba(111, 219, 255, 0.14);
  background: rgba(255, 255, 255, 0.052);
}

.satellite-viz-preview {
  width: 58px;
  height: 54px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.satellite-viz-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.satellite-viz-body strong {
  color: #f5fdff;
  font-size: 0.84rem;
}

.satellite-viz-body small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.28;
}

.satellite-viz-action {
  min-width: 72px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: #06121f;
  background: linear-gradient(135deg, #67e8f9, #6ee7b7);
  font-size: 0.74rem;
  font-weight: 950;
  text-align: center;
}

.satellite-band-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  align-items: end;
}

.satellite-band-panel-heading {
  display: grid;
  gap: 3px;
  grid-column: 1 / -1;
}

.satellite-band-panel-heading strong {
  color: #f5fdff;
  font-size: 0.86rem;
}

.satellite-band-panel-heading span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.32;
}

.layer-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.satellite-layer-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.satellite-layer-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.satellite-layer-card.selected {
  border-color: rgba(45, 212, 191, 0.44);
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.24), rgba(255, 255, 255, 0.055));
}

.satellite-layer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.satellite-layer-header strong,
.satellite-layer-header small {
  display: block;
}

.satellite-layer-header small,
.satellite-layer-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.satellite-layer-badge {
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.1);
  font-size: 0.66rem;
  font-weight: 950;
}

.satellite-layer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.satellite-layer-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.overview-workspace {
  gap: 14px;
}

.overview-workspace .tab-page-header {
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 2px 10px;
}

.overview-system-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.08);
}

.overview-dashboard-top {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(55, 213, 255, 0.18), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(45, 212, 191, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(7, 26, 43, 0.96), rgba(3, 13, 25, 0.9));
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.overview-dashboard-top::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(111, 219, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(111, 219, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.8), transparent 64%);
}

.overview-summary-panel,
.monitoring-summary-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.overview-summary-panel::before,
.monitoring-summary-panel::before {
  display: none;
}

.overview-top-actions {
  justify-content: flex-start;
}

.overview-dashboard-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.overview-dashboard-head h2 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.05;
}

.overview-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.overview-summary-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.overview-summary-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 112px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.15);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.034));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.overview-summary-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.58);
  opacity: 0.72;
}

.overview-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.044));
}

.overview-summary-card.status-watch::after {
  background: rgba(245, 158, 11, 0.74);
}

.overview-summary-card.status-alert::after {
  background: rgba(248, 113, 113, 0.78);
}

.overview-summary-card.status-muted::after {
  background: rgba(148, 163, 184, 0.72);
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 8px;
  color: #bdfdf6;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(45, 212, 191, 0.12));
  font-size: 0.6rem;
  font-weight: 950;
}

.overview-summary-card span:not(.summary-icon),
.overview-mini-metric-row span,
.overview-risk-readout span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.overview-summary-card strong {
  display: block;
  margin-top: 8px;
  color: #f8feff;
  font-size: 1.45rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.overview-summary-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 780;
  line-height: 1.28;
}

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

.overview-system-card,
.overview-vessel-type-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.09), transparent 36%),
    linear-gradient(145deg, rgba(8, 29, 45, 0.92), rgba(4, 16, 27, 0.82));
}

.overview-vessel-type-card {
  grid-column: 1 / -1;
}

.port-monitoring-workspace {
  gap: 12px;
}

.water-quality-selector-strip {
  display: grid;
  gap: 10px;
  padding: 2px 0 4px;
}

.port-monitoring-hero,
.monitoring-layer-panel,
.water-quality-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(55, 213, 255, 0.12), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(8, 29, 45, 0.93), rgba(4, 16, 27, 0.84));
}

.port-monitoring-hero::before,
.monitoring-layer-panel::before,
.water-quality-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(111, 219, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(111, 219, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.58), transparent 66%);
}

.monitoring-layer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.water-quality-product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.water-quality-selector-strip .water-quality-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.water-quality-selector-strip .water-quality-product-card {
  min-height: 58px;
  border-color: rgba(111, 219, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.06), transparent 42%),
    linear-gradient(145deg, rgba(10, 27, 42, 0.78), rgba(3, 14, 24, 0.7));
  box-shadow: none;
}

.water-quality-selector-strip .water-quality-product-card:hover,
.water-quality-selector-strip .water-quality-product-card.active {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.48);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(14, 52, 65, 0.86), rgba(4, 20, 31, 0.74));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(45, 212, 191, 0.1);
}

.water-quality-selector-strip .water-quality-product-card:not(.active) {
  opacity: 0.78;
}

.water-quality-product-card .product-code {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(45, 212, 191, 0.16));
  color: #dffbff;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.14);
}

.water-quality-selector-strip .water-quality-product-card .product-code {
  min-width: 42px;
  padding: 6px 8px;
  font-size: 0.68rem;
}

.water-quality-selector-strip .water-quality-product-card strong {
  font-size: 0.8rem;
  line-height: 1.15;
}

.water-quality-selector-strip .water-quality-product-card small {
  margin-top: 3px;
  font-size: 0.62rem;
  line-height: 1.18;
}

.water-quality-selector-strip .water-quality-product-card i {
  padding: 4px 7px;
  font-size: 0.58rem;
}

.water-quality-selector-strip .water-quality-product-card.active i::before {
  content: "✓ ";
}

.water-quality-selector-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(111, 219, 255, 0.1);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(7, 22, 35, 0.76), rgba(3, 14, 24, 0.52));
}

.water-quality-selection-count {
  color: #9ed5e8;
  font-size: 0.72rem;
  font-weight: 850;
}

.water-quality-selector-actions .btn {
  white-space: nowrap;
}

.water-quality-form-grid,
.water-quality-roi-card {
  position: relative;
  z-index: 1;
}

.water-quality-workflow-card {
  display: grid;
  gap: 14px;
}

.water-quality-workflow-card > * {
  position: relative;
  z-index: 1;
}

.water-quality-workflow-card .section-title-row {
  align-items: start;
}

.water-quality-workflow-grid {
  display: grid;
  gap: 12px;
}

.water-quality-workflow-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(111, 219, 255, 0.12);
  padding-top: 12px;
}

.water-quality-product-section {
  border-top: 0;
  padding-top: 0;
}

.water-quality-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.water-quality-step-title > span {
  display: inline-flex;
  width: 34px;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 219, 255, 0.22);
  border-radius: 999px;
  color: #bdfdf6;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(45, 212, 191, 0.1));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.12);
  font-size: 0.72rem;
  font-weight: 950;
}

.water-quality-step-title div {
  min-width: 0;
}

.water-quality-step-title strong,
.water-quality-step-title small {
  display: block;
}

.water-quality-step-title strong {
  color: #f5fdff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.water-quality-step-title small {
  margin-top: 3px;
  color: #9ed5e8;
  font-size: 0.7rem;
  font-weight: 820;
  line-height: 1.35;
}

.water-quality-workflow-card .water-quality-product-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.port-monitoring-product-group {
  display: grid;
  gap: 8px;
}

.port-monitoring-product-group + .port-monitoring-product-group {
  border-top: 1px solid rgba(111, 219, 255, 0.12);
  padding-top: 10px;
}

.port-monitoring-product-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.port-monitoring-product-group-title strong {
  color: #f5fdff;
  font-size: 0.78rem;
  font-weight: 950;
}

.port-monitoring-product-group-title small {
  color: #9ed5e8;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

.port-monitoring-product-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.water-quality-workflow-card .water-quality-product-card {
  min-height: 74px;
  border-color: rgba(111, 219, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(10, 31, 47, 0.82), rgba(3, 14, 24, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.water-quality-workflow-card .water-quality-product-card:hover,
.water-quality-workflow-card .water-quality-product-card.active {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(12, 56, 70, 0.9), rgba(4, 20, 31, 0.78));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 24px rgba(45, 212, 191, 0.12);
}

.water-quality-workflow-card .water-quality-product-card:not(.active) {
  opacity: 0.78;
}

.water-quality-workflow-card .water-quality-product-card .product-code {
  min-width: 42px;
  padding: 6px 8px;
  font-size: 0.68rem;
}

.water-quality-workflow-card .water-quality-product-card strong {
  font-size: 0.8rem;
  line-height: 1.15;
}

.water-quality-workflow-card .water-quality-product-card small {
  margin-top: 3px;
  font-size: 0.62rem;
  line-height: 1.18;
}

.water-quality-workflow-card .water-quality-product-card i {
  padding: 4px 7px;
  font-size: 0.58rem;
}

.water-quality-workflow-card .water-quality-product-card.active i {
  border-color: rgba(74, 222, 128, 0.34);
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.14);
}

.water-quality-workflow-card .water-quality-selection-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  min-height: 32px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 999px;
  padding: 0 11px;
  color: #9ed5e8;
  background: rgba(45, 212, 191, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.water-quality-workflow-card .water-quality-form-grid {
  grid-template-columns: minmax(220px, 1.45fr) minmax(154px, 0.85fr) minmax(154px, 0.85fr);
  align-items: end;
  gap: 12px;
  margin-top: 0;
}

.water-quality-cloud-field {
  grid-column: 1 / -1;
}

.water-quality-cloud-field[hidden] {
  display: none;
}

.water-quality-workflow-card .water-quality-config-section .field span {
  color: #bfeeff;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0;
}

.water-quality-workflow-card .water-quality-config-section .field input {
  min-height: 44px;
  border-radius: 10px;
  color: #f4fdff;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.08), transparent 44%),
    linear-gradient(145deg, rgba(7, 25, 43, 0.94), rgba(2, 8, 23, 0.76));
  border-color: rgba(111, 219, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.052),
    0 10px 22px rgba(0, 0, 0, 0.12);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.water-quality-workflow-card .water-quality-config-section .field input:hover {
  border-color: rgba(103, 232, 249, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.11), transparent 44%),
    linear-gradient(145deg, rgba(8, 31, 48, 0.96), rgba(2, 8, 23, 0.78));
}

.water-quality-workflow-card .water-quality-config-section .field input:focus {
  border-color: rgba(103, 232, 249, 0.62);
  box-shadow:
    0 0 0 3px rgba(103, 232, 249, 0.12),
    0 12px 26px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.water-quality-date-field input[type="date"] {
  color-scheme: dark;
  padding-right: 12px;
}

.water-quality-date-field input[type="date"]::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 4px;
  opacity: 0.9;
  filter: invert(1) saturate(1.35) hue-rotate(145deg);
  background-color: rgba(45, 212, 191, 0.12);
  cursor: pointer;
}

.water-quality-cloud-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.water-quality-workflow-card .water-quality-roi-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(111, 219, 255, 0.15);
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(7, 25, 43, 0.78), rgba(3, 14, 24, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.water-quality-roi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.water-quality-roi-mode {
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 999px;
  padding: 4px 8px;
  color: #9ed5e8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.62rem;
  font-weight: 920;
}

.water-quality-workflow-card .water-quality-roi-card code {
  display: block;
  color: #e9fbff;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

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

.water-quality-roi-metrics span {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(111, 219, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.water-quality-roi-metrics small {
  color: #8fbfd2;
  font-size: 0.62rem;
  font-weight: 900;
}

.water-quality-roi-metrics strong {
  color: #f5fdff;
  font-size: 0.86rem;
}

.water-quality-secondary-actions,
.water-quality-primary-actions {
  display: grid;
  gap: 8px;
}

.water-quality-secondary-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.water-quality-primary-actions {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
}

.water-quality-primary-actions .btn,
.water-quality-secondary-actions .btn {
  min-width: 0;
  border-radius: 10px;
}

.water-quality-workflow-card .btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.water-quality-danger-btn {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.26);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.22), rgba(248, 113, 113, 0.07));
}

.water-quality-danger-btn:hover {
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.18);
}

.water-quality-mini-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.water-quality-mini-legend span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  border: 1px solid rgba(111, 219, 255, 0.1);
  border-radius: 999px;
  padding: 5px 7px;
  color: #c5edf8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.64rem;
  font-weight: 900;
}

.water-quality-mini-legend i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
}

.water-quality-warning {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 8px;
  padding: 7px 8px;
  color: #fde68a;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.11), rgba(255, 255, 255, 0.035));
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.32;
}

.water-quality-layer-card {
  border-color: rgba(45, 212, 191, 0.18);
}

.monitoring-layer-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 11px;
  color: #f8feff;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.032));
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.monitoring-layer-card:hover,
.monitoring-layer-card.active {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.42);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.044));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 22px rgba(55, 213, 255, 0.1);
}

.monitoring-layer-card.planned {
  opacity: 0.72;
}

.monitoring-layer-card strong,
.monitoring-layer-card small {
  display: block;
  min-width: 0;
}

.monitoring-layer-card > div {
  min-width: 0;
}

.monitoring-layer-card strong {
  font-size: 0.88rem;
}

.monitoring-layer-card small {
  margin-top: 4px;
  color: #9ed5e8;
  font-size: 0.68rem;
  line-height: 1.25;
}

.monitoring-layer-card i {
  justify-self: end;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 999px;
  padding: 5px 8px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.1);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
}

.monitoring-layer-card.planned i {
  color: #9ed5e8;
  background: rgba(148, 163, 184, 0.1);
}

.monitoring-control-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(7, 22, 35, 0.78), rgba(3, 14, 24, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.monitoring-module-label {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 14px;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
}

.monitoring-analytics-block {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  border-top: 1px solid rgba(111, 219, 255, 0.12);
  padding-top: 12px;
}

.monitoring-toggle-row {
  min-height: 44px;
  border-color: rgba(111, 219, 255, 0.11);
  border-radius: 10px;
  padding: 9px 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.035);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.monitoring-toggle-row:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.052);
}

.monitoring-toggle-row strong {
  color: #e8fbff;
  font-size: 0.78rem;
}

.monitoring-opacity-field {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(111, 219, 255, 0.11);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.monitoring-opacity-field span {
  color: #9ed5e8;
  font-size: 0.72rem;
  font-weight: 900;
}

.monitoring-opacity-field b {
  color: #dffbff;
}

.monitoring-zoom-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
}

.monitoring-depth-legend {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.monitoring-depth-chip {
  display: grid;
  gap: 5px;
  min-height: 76px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.monitoring-depth-chip i {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.monitoring-depth-chip b {
  color: #f8feff;
  font-size: 0.72rem;
  line-height: 1.15;
}

.monitoring-depth-chip small {
  color: #9ed5e8;
  font-size: 0.64rem;
  line-height: 1.2;
}

.monitoring-continuous-legend {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(5, 19, 34, 0.9), rgba(7, 37, 55, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.monitoring-continuous-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.monitoring-continuous-head strong {
  color: #f8feff;
  font-size: 0.86rem;
}

.monitoring-continuous-head small {
  color: rgba(213, 241, 255, 0.58);
  font-size: 0.68rem;
}

.monitoring-gradient-bar {
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(229, 247, 255, 0.18);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.2);
}

.monitoring-gradient-ticks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(213, 241, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
}

.monitoring-analytics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.monitoring-chart-card {
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.045);
}

.monitoring-chart-card h4 {
  margin: 0;
  color: #f8feff;
  font-size: 0.88rem;
}

.monitoring-bar-chart {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.monitoring-bar-row {
  display: grid;
  gap: 6px;
}

.monitoring-bar-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.monitoring-bar-row span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #dffbff;
  font-size: 0.72rem;
  font-weight: 900;
}

.monitoring-bar-row span i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 14px currentColor;
}

.monitoring-bar-row b {
  color: #f8feff;
  font-size: 0.78rem;
}

.monitoring-bar-row em {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 219, 255, 0.1);
}

.monitoring-bar-row em strong {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.28);
}

.overview-system-card {
  display: grid;
  gap: 12px;
}

.overview-mini-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.overview-mini-metric-row div,
.overview-risk-readout {
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.052);
}

.overview-mini-metric-row strong,
.overview-risk-readout strong {
  display: block;
  margin-top: 6px;
  color: #f8feff;
  font-size: 1rem;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.overview-risk-readout strong {
  font-size: 1.45rem;
}

.overview-risk-readout small,
.overview-card-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.35;
}

.overview-camera-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.overview-camera-strip .camera-thumb-card {
  min-height: 118px;
}

.overview-command-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(55, 213, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(45, 212, 191, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(8, 34, 55, 0.98), rgba(3, 13, 25, 0.92));
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.overview-command-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(111, 219, 255, 0.08);
  border-radius: 8px;
}

.overview-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.overview-port-name {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  color: #dffcff;
  background: rgba(45, 212, 191, 0.09);
  font-size: 0.78rem;
  font-weight: 950;
}

.overview-command-card h2 {
  max-width: 560px;
  margin-top: 2px;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  letter-spacing: 0;
  line-height: 1.05;
}

.overview-hero-subtitle {
  max-width: 560px;
  font-size: 0.96rem;
}

.overview-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.overview-hero-stats article,
.overview-insight-card {
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.overview-hero-stats article {
  min-height: 102px;
  padding: 12px;
}

.overview-hero-stats span,
.overview-hero-stats small,
.overview-section-heading span,
.overview-insight-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
}

.overview-hero-stats strong {
  display: block;
  margin-top: 8px;
  color: #f8feff;
  font-size: 1.42rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.overview-hero-stats small {
  display: block;
  margin-top: 7px;
  line-height: 1.35;
  text-transform: none;
}

.overview-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-content: start;
  align-items: stretch;
  min-width: 0;
  margin-top: 16px;
}

.overview-hero-actions .btn {
  width: auto;
  min-width: 190px;
  justify-content: center;
}

.hero-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hero-actions.overview-hero-actions {
  display: flex;
  justify-content: flex-start;
}

.overview-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.overview-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.overview-section-heading h3 {
  margin-top: 3px;
  font-size: 1.05rem;
}

.overview-metric-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 108px;
  padding: 13px;
  background:
    radial-gradient(circle at 90% 0%, rgba(55, 213, 255, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.overview-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 90% 0%, rgba(45, 212, 191, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
}

.overview-metric-card .metric-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 8px;
  color: #bdfdf6;
  background:
    linear-gradient(145deg, rgba(14, 165, 233, 0.18), rgba(45, 212, 191, 0.12));
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0;
}

.overview-metric-card div > span {
  letter-spacing: 0.02em;
}

.overview-metric-card strong {
  margin-top: 7px;
  font-size: 1.52rem;
}

.overview-metric-card small {
  margin-top: 7px;
}

.overview-advanced-details {
  margin-top: 0;
}

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

.overview-metric-card.compact {
  min-height: 88px;
  padding: 11px;
}

.overview-metric-card.compact strong {
  font-size: 1.25rem;
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.overview-premium-card {
  padding: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 197, 94, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(8, 29, 45, 0.92), rgba(4, 16, 27, 0.82));
}

.overview-environment-card .section-title-row p {
  margin-top: 6px;
  max-width: 360px;
  color: var(--muted);
  font-size: 0.84rem;
}

.overview-weather-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.environment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 92px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.environment-card:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.26);
}

.environment-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 8px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.1);
  font-weight: 950;
}

.environment-card span,
.source-row span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
}

.environment-card strong {
  display: block;
  margin-top: 5px;
  color: #f5fdff;
  font-size: 1.12rem;
  line-height: 1.2;
}

.environment-card small {
  display: block;
  margin-top: 4px;
  color: #9ed5e8;
  font-size: 0.72rem;
  line-height: 1.25;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 219, 255, 0.11);
}

.layer-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.overview-insights-card,
.overview-actions-card {
  background:
    linear-gradient(145deg, rgba(8, 29, 45, 0.88), rgba(6, 20, 34, 0.78));
}

.overview-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.overview-insight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 86px;
  padding: 12px;
}

.overview-insight-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #dff8ff;
  background: rgba(56, 189, 248, 0.14);
  font-size: 0.7rem;
  font-weight: 950;
}

.overview-insight-card strong {
  display: block;
  margin-top: 4px;
  color: #f8feff;
  font-size: 0.94rem;
}

.overview-insight-card small {
  display: block;
  margin-top: 5px;
  color: #9ed5e8;
  line-height: 1.35;
}

.live-dashboard-top,
.live-visibility-card,
.live-type-filter-card,
.marine-environment-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(55, 213, 255, 0.12), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(8, 29, 45, 0.92), rgba(4, 16, 27, 0.84));
}

.live-dashboard-top .section-title-row p,
.live-visibility-card .section-title-row p,
.live-type-filter-card .section-title-row p,
.marine-environment-card .section-title-row p {
  margin-top: 6px;
  max-width: 430px;
  color: var(--muted);
  font-size: 0.84rem;
}

.live-dashboard-top {
  padding: 18px;
}

.live-vessel-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.live-vessel-card-grid .overview-summary-card {
  min-height: 118px;
}

.live-vessel-card-grid .overview-summary-card strong {
  font-size: 1.34rem;
}

.live-visibility-card .button-grid {
  margin-top: 12px;
}

.live-type-filter-row {
  margin-top: 14px;
}

.live-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.live-filter-summary span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(111, 219, 255, 0.17);
  border-radius: 999px;
  padding: 0 11px;
  color: #d8f7ff;
  font-size: 0.74rem;
  font-weight: 850;
  background: rgba(9, 31, 47, 0.72);
  box-shadow: inset 0 0 18px rgba(55, 213, 255, 0.04);
}

.live-filter-summary b {
  color: #7be7ff;
  font-size: 0.68rem;
}

.live-filter-workflow {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.live-filter-step {
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.live-filter-step > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.live-filter-step > div:first-child span {
  color: #7be7ff;
  font-size: 0.68rem;
  font-weight: 950;
}

.live-filter-step > div:first-child strong {
  color: #f7fdff;
  font-size: 0.95rem;
}

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

.live-filter-options.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-filter-option {
  display: grid;
  min-height: 54px;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  padding: 9px 10px;
  color: #e7fbff;
  background: rgba(8, 23, 37, 0.72);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.live-filter-option:hover,
.live-filter-option.active {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.18), transparent 42%),
    rgba(12, 55, 72, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 24px rgba(55, 213, 255, 0.1);
}

.live-filter-option span {
  color: #f8feff;
  font-size: 0.82rem;
  font-weight: 950;
}

.live-filter-option small {
  color: #9ed5e8;
  font-size: 0.68rem;
  font-weight: 800;
}

.live-speed-card,
.live-vessel-list-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(55, 213, 255, 0.11), transparent 32%),
    linear-gradient(145deg, rgba(8, 29, 45, 0.9), rgba(4, 16, 27, 0.82));
}

.live-speed-histogram {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  min-height: 154px;
  margin-top: 14px;
}

.live-speed-bin {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
  min-width: 0;
  height: 148px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 9px 8px;
  color: #ecfeff;
  background: rgba(7, 22, 36, 0.72);
  cursor: default;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.live-speed-bin:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(14, 55, 70, 0.76);
}

.live-speed-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 82px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.08), rgba(103, 232, 249, 0.02));
  overflow: hidden;
}

.live-speed-bar i {
  display: block;
  width: 58%;
  min-height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #80f3ff, #34d399);
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.35);
}

.live-speed-bin strong {
  color: #f8feff;
  font-size: 1.16rem;
  line-height: 1;
}

.live-speed-bin small {
  color: #9ed5e8;
  font-size: 0.68rem;
  font-weight: 900;
}

.live-vessel-list-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(140px, 0.75fr);
  gap: 10px;
  margin-top: 14px;
}

.live-vessel-search,
.live-vessel-sort {
  display: grid;
  gap: 6px;
}

.live-vessel-search span,
.live-vessel-sort span {
  color: #9ed5e8;
  font-size: 0.68rem;
  font-weight: 950;
}

.live-vessel-search input,
.live-vessel-sort select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  color: #f7fdff;
  background: rgba(5, 18, 31, 0.84);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.live-vessel-search input:focus,
.live-vessel-sort select:focus {
  border-color: rgba(103, 232, 249, 0.55);
  box-shadow: 0 0 0 3px rgba(55, 213, 255, 0.1);
}

.live-list-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.live-list-summary span {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 9px 7px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.live-list-summary b {
  color: #f8feff;
  font-size: 1.04rem;
  line-height: 1;
}

.live-list-summary small {
  color: #9ed5e8;
  font-size: 0.62rem;
  font-weight: 900;
}

.environment-intelligence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.environment-intelligence-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 96px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.09), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.034));
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.environment-intelligence-strip article {
  display: block;
  min-height: 88px;
}

.environment-intelligence-strip article:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.044));
}

.environment-intelligence-strip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
}

.environment-intelligence-strip strong {
  display: block;
  margin-top: 7px;
  color: #f8feff;
  font-size: 1.34rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.environment-intelligence-strip strong {
  font-size: 1rem;
}

.environment-intelligence-strip small {
  display: block;
  margin-top: 7px;
  color: #9ed5e8;
  font-size: 0.74rem;
  line-height: 1.28;
}

.marine-environment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-map-controls .preview-grid {
  margin-top: 12px;
}

.overview-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.vessel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.8fr) minmax(140px, 0.8fr);
  gap: 8px;
  margin-top: 12px;
}

.vessel-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.vessel-type-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.vessel-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.052);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.vessel-type-chip:hover,
.vessel-type-chip.active {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.45);
  color: #efffff;
  background: rgba(45, 212, 191, 0.1);
}

.vessel-type-chip i,
.vessel-type-dot,
.vessel-type-legend-row i,
.vessel-type-summary-card i {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.vessel-list {
  display: grid;
  gap: 8px;
  max-height: 390px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.vessel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.vessel-row:hover,
.vessel-row.selected {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.1);
}

.vessel-row strong,
.vessel-row small,
.vessel-meta span {
  display: block;
}

.vessel-row strong {
  overflow-wrap: anywhere;
}

.vessel-row strong .vessel-type-dot {
  margin-right: 7px;
  vertical-align: 1px;
}

.vessel-row small,
.vessel-meta span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.vessel-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 88px;
}

.vessel-list.live-vessel-list {
  gap: 8px;
  max-height: 520px;
  margin-top: 12px;
}

.live-vessel-card-row.vessel-row {
  position: relative;
  grid-template-columns: auto minmax(148px, 1.35fr) minmax(72px, 0.58fr) minmax(110px, 0.9fr) minmax(86px, 0.72fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  border-color: rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  padding: 10px 10px;
  background:
    radial-gradient(circle at 0% 50%, rgba(55, 213, 255, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(9, 29, 45, 0.88), rgba(4, 16, 27, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.live-vessel-card-row.vessel-row:hover,
.live-vessel-card-row.vessel-row.selected {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.5);
  background:
    radial-gradient(circle at 0% 50%, rgba(45, 212, 191, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(12, 52, 68, 0.9), rgba(5, 20, 34, 0.84));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26), 0 0 22px rgba(55, 213, 255, 0.1);
}

.live-vessel-card-row.vessel-row.selected {
  border-color: rgba(52, 211, 153, 0.72);
}

.live-vessel-status-dot {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
}

.live-vessel-status-dot.status-moving {
  color: #34d399;
  background: #34d399;
}

.live-vessel-status-dot.status-slow {
  color: #f59e0b;
  background: #f59e0b;
}

.live-vessel-status-dot.status-stopped {
  color: #f87171;
  background: #f87171;
}

.live-vessel-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-vessel-identity strong {
  color: #f8feff;
  font-size: 0.94rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-vessel-identity small {
  color: #83b9c9;
  font-size: 0.68rem;
  font-weight: 850;
}

.live-vessel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.vessel-type-badge,
.movement-state-badge {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.vessel-type-badge {
  border: 1px solid color-mix(in srgb, var(--type-color) 62%, transparent);
  color: #f7fdff;
  background: color-mix(in srgb, var(--type-color) 24%, rgba(5, 18, 31, 0.86));
}

.movement-state-badge.status-moving {
  color: #052016;
  background: #34d399;
}

.movement-state-badge.status-slow {
  color: #231604;
  background: #fbbf24;
}

.movement-state-badge.status-stopped {
  color: #2b0608;
  background: #f87171;
}

.live-vessel-measure,
.live-vessel-meta,
.live-vessel-action {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-vessel-measure small,
.live-vessel-meta small,
.live-vessel-action small {
  color: #85bfce;
  font-size: 0.62rem;
  font-weight: 900;
}

.live-vessel-measure strong,
.live-vessel-meta strong,
.live-vessel-action strong {
  color: #f8feff;
  font-size: 0.82rem;
  line-height: 1.1;
}

.live-vessel-direction strong {
  white-space: normal;
}

.movement-entering {
  color: #8cf7d0 !important;
}

.movement-leaving {
  color: #fbbf24 !important;
}

.movement-inside {
  color: #7dd3fc !important;
}

.movement-outside {
  color: #c4b5fd !important;
}

.live-vessel-action {
  justify-items: center;
  min-width: 58px;
  border-left: 1px solid rgba(111, 219, 255, 0.12);
  padding-left: 10px;
}

.live-vessel-action strong {
  color: #86f4ff;
}

.status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 8px;
  color: #04111f;
  font-size: 0.66rem;
  font-weight: 950;
  white-space: nowrap;
}

.status-moving {
  background: #34d399;
}

.status-slow {
  background: #fbbf24;
}

.status-stopped {
  background: #f87171;
}

.advanced-panel {
  margin-top: 14px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 10px;
  background: rgba(4, 18, 32, 0.56);
  padding: 12px 14px;
}

.advanced-panel summary {
  cursor: pointer;
  color: #d7f7ff;
  font-size: 0.8rem;
  font-weight: 950;
}

.advanced-panel[open] summary {
  margin-bottom: 12px;
}

.vessel-type-chart-card {
  min-height: 225px;
}

.overview-vessel-type-card {
  padding: 16px;
  background:
    radial-gradient(circle at 16% 8%, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(8, 29, 45, 0.92), rgba(5, 18, 31, 0.82));
}

.overview-vessel-type-card .section-title-row {
  align-items: start;
}

.overview-vessel-type-card .section-title-row p {
  margin-top: 5px;
  max-width: 340px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.vessel-type-chart {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(170px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 210px;
}

.overview-single-chart {
  min-height: 210px;
  margin-top: 12px;
}

.interactive-donut .vessel-type-segment {
  cursor: pointer;
  transition: opacity 0.16s ease, stroke-width 0.16s ease;
}

.interactive-donut .vessel-type-segment:hover,
.interactive-donut .vessel-type-segment.active {
  opacity: 0.86;
}

.vessel-donut-wrap {
  display: grid;
  min-width: 0;
  place-items: center;
}

.vessel-donut-wrap svg {
  width: min(190px, 100%);
  min-height: 180px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.26));
}

.chart-donut-kicker {
  fill: #9ed5e8;
  font-size: 0.63rem;
  font-weight: 900;
}

.vessel-type-chart-legend {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.vessel-type-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  min-height: 42px;
  padding: 8px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: left;
}

.vessel-type-legend-row:hover,
.vessel-type-legend-row.active {
  border-color: rgba(103, 232, 249, 0.38);
  color: #efffff;
  background: rgba(45, 212, 191, 0.1);
}

.vessel-type-legend-row b {
  color: #f8ffff;
}

.vessel-type-legend-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vessel-type-legend-row small {
  color: #8fbfd0;
  font-size: 0.64rem;
  font-weight: 850;
}

.vessel-type-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.vessel-type-summary-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.vessel-type-summary-card:hover {
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(45, 212, 191, 0.1);
}

.vessel-type-summary-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.vessel-type-summary-card strong {
  color: #f8ffff;
  font-size: 1.35rem;
}

.overview-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.overview-chart-grid article {
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.overview-chart-grid h4 {
  margin-bottom: 8px;
  color: #dff8ff;
  font-size: 0.84rem;
}

.mini-chart {
  position: relative;
  min-height: 150px;
  overflow: hidden;
}

.mini-chart svg {
  display: block;
  width: 100%;
  min-height: 150px;
}

.chart-gridline {
  stroke: rgba(148, 213, 245, 0.18);
  stroke-width: 1;
}

.chart-axis-label,
.chart-value-label {
  fill: #9bb7c9;
  font-size: 9px;
  font-weight: 800;
}

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

.chart-area {
  opacity: 0.14;
}

.chart-bar {
  fill: #37d5ff;
  opacity: 0.8;
}

.chart-donut-label {
  fill: #e9fbff;
  font-size: 12px;
  font-weight: 950;
  text-anchor: middle;
}

.legend-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.legend-row.risk-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 999px;
  padding: 0 8px;
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.72rem;
  font-weight: 850;
}

.legend-row i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.chart-empty,
.muted-chart-note {
  display: grid;
  min-height: 130px;
  place-items: center;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.35;
}

.camera-overview-card,
.camera-command-card,
.camera-list-card,
.camera-gallery-card {
  position: relative;
  overflow: hidden;
}

.camera-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 16% 0, rgba(45, 212, 191, 0.16), transparent 34%);
}

.camera-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.camera-overview-grid .overview-summary-card {
  min-height: 116px;
  align-content: start;
  border-color: rgba(111, 219, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(8, 31, 48, 0.86), rgba(4, 16, 27, 0.72));
}

.camera-overview-grid .summary-icon {
  width: 38px;
  height: 38px;
}

.camera-overview-grid .overview-summary-card strong {
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
}

.camera-overview-grid .overview-summary-card small {
  min-height: 1.9em;
}

.camera-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.camera-mini-stat {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.camera-mini-stat-wide {
  grid-column: 1 / -1;
}

.camera-mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
}

.camera-mini-stat strong {
  display: block;
  margin-top: 5px;
  color: #efffff;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.camera-preview-strip,
.camera-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.camera-thumb-card,
.camera-row,
.camera-image-card {
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.camera-thumb-card:hover,
.camera-row:hover,
.camera-row.selected,
.camera-image-card:hover,
.camera-image-card.selected {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.46);
  background: rgba(45, 212, 191, 0.1);
}

.camera-thumb-card {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.camera-thumb-card strong,
.camera-thumb-card small,
.camera-card-body strong,
.camera-card-body small,
.camera-row-body strong,
.camera-row-body small,
.camera-row-meta small {
  display: block;
}

.camera-thumb-card strong,
.camera-card-body strong,
.camera-row-body strong {
  color: #f5fdff;
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.camera-thumb-card small,
.camera-card-body small,
.camera-row-body small,
.camera-row-meta small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.camera-thumb-media,
.camera-row-media,
.camera-card-media,
.camera-image-wrap,
.camera-popup-media {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  background: rgba(2, 8, 20, 0.5);
}

.camera-thumb-media,
.camera-card-media {
  aspect-ratio: 16 / 9;
}

.camera-row-media {
  width: 96px;
  aspect-ratio: 4 / 3;
}

.camera-image-wrap {
  position: relative;
  display: grid;
  min-height: 230px;
  margin-top: 12px;
  place-items: center;
}

.camera-card-image,
.camera-preview-image,
.camera-popup-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-preview-image {
  min-height: 230px;
}

.camera-preview-open {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.camera-preview-open > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  color: #06121f;
  background: linear-gradient(135deg, #67e8f9, #6ee7b7);
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(45, 212, 191, 0.2);
}

.camera-preview-open:hover .camera-live-placeholder,
.camera-preview-open:focus-visible .camera-live-placeholder {
  border-color: rgba(45, 212, 191, 0.62);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.camera-stream-player {
  position: relative;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 30%, rgba(45, 212, 191, 0.18), transparent 36%),
    #020817;
}

.camera-stream-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020817;
}

.camera-stream-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: #e8ffff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(45, 212, 191, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(8, 47, 73, 0.94), rgba(2, 8, 23, 0.96));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.camera-stream-loading strong,
.camera-stream-loading small {
  display: block;
}

.camera-stream-loading small {
  color: #a8c7d7;
  font-size: 0.76rem;
  font-weight: 850;
}

.camera-stream-player.loaded .camera-stream-loading {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.camera-snapshot-player {
  position: relative;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #020817;
}

.camera-snapshot-preview {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.camera-snapshot-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  max-width: min(320px, calc(100% - 24px));
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  color: #e8ffff;
  background: rgba(2, 8, 23, 0.78);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.camera-snapshot-status .camera-live-orb {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
}

.camera-snapshot-status strong,
.camera-snapshot-status small {
  display: block;
  min-width: 0;
  line-height: 1.1;
}

.camera-snapshot-status strong {
  font-size: 0.72rem;
}

.camera-snapshot-status small {
  color: #a8c7d7;
  font-size: 0.68rem;
  font-weight: 850;
}

.camera-stream-unavailable {
  display: grid;
  width: 100%;
  min-height: 280px;
  place-items: center;
  gap: 8px;
  padding: 24px;
  color: #e8ffff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(248, 113, 113, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(2, 8, 23, 0.96));
}

.camera-stream-unavailable strong {
  max-width: 32rem;
  line-height: 1.25;
}

.camera-stream-unavailable small {
  max-width: 30rem;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.camera-popup-image {
  max-height: 150px;
}

.camera-image-placeholder {
  display: grid;
  width: 100%;
  min-height: 84px;
  place-items: center;
  padding: 10px;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 23, 42, 0.68));
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.camera-live-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 84px;
  place-items: center;
  gap: 8px;
  padding: 14px;
  color: #e8ffff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(45, 212, 191, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(8, 47, 73, 0.9), rgba(2, 8, 23, 0.92));
}

.camera-live-placeholder::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.camera-live-placeholder strong {
  position: relative;
  font-size: 0.9rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.camera-live-placeholder small {
  position: relative;
  max-width: 24rem;
  color: #a8c7d7;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
}

.camera-live-orb {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(103, 232, 249, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(103, 232, 249, 0.92) 0 16%, transparent 18%),
    radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 68%);
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.38);
}

.camera-live-orb::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 50%;
  animation: cameraPulse 1.8s ease-out infinite;
}

@keyframes cameraPulse {
  0% {
    transform: scale(0.72);
    opacity: 0.82;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.camera-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(110px, 0.65fr) minmax(130px, 0.8fr);
  gap: 8px;
  margin-top: 12px;
}

.camera-inline-switch {
  min-height: 48px;
  align-self: end;
}

.port-camera-spotlight {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.camera-section-tab {
  cursor: pointer;
  user-select: none;
}

.camera-section-tab:hover,
.camera-section-tab:focus-visible {
  border-color: rgba(103, 232, 249, 0.48);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.13), 0 16px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.camera-feature-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 10px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(11, 50, 74, 0.76), rgba(5, 22, 38, 0.94)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.camera-feature-card.selected {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.18);
}

.camera-feature-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.camera-feature-media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.camera-feature-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.camera-feature-body strong {
  color: #f5feff;
  font-size: 0.95rem;
}

.camera-feature-body small {
  color: var(--muted);
  font-size: 0.76rem;
}

.camera-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.camera-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.camera-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.camera-section-group {
  display: grid;
  gap: 8px;
}

.camera-section-group + .camera-section-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 219, 255, 0.12);
}

.camera-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 2px;
}

.camera-section-header strong,
.camera-section-header small {
  display: block;
}

.camera-section-header strong {
  color: #efffff;
  font-size: 0.88rem;
}

.camera-section-header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.camera-section-header span {
  display: inline-grid;
  min-width: 30px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  color: #bffaff;
  background: rgba(45, 212, 191, 0.1);
  font-size: 0.76rem;
  font-weight: 950;
}

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

.camera-row-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 78px;
}

.camera-status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 8px;
  color: #04111f;
  font-size: 0.64rem;
  font-weight: 950;
  white-space: nowrap;
}

.camera-status-online {
  background: #34d399;
}

.camera-status-stale {
  background: #f59e0b;
}

.camera-status-offline {
  background: #f87171;
}

.camera-status-live {
  background: linear-gradient(135deg, #67e8f9, #34d399);
}

.camera-status-available {
  background: #34d399;
}

.camera-status-temporarily_unavailable {
  background: #f87171;
}

.camera-status-maintenance {
  background: #f59e0b;
}

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

.camera-detail-grid div {
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.camera-detail-grid dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.camera-detail-grid dd {
  margin: 4px 0 0;
  color: #efffff;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.camera-preview-actions {
  margin-top: 12px;
}

.camera-preview-actions a {
  text-decoration: none;
}

.camera-preview-actions a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

.camera-image-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.camera-image-card .camera-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.camera-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.camera-timeline-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.055);
}

.camera-timeline-item b {
  color: #e9fbff;
  font-size: 0.76rem;
}

.camera-timeline-item small {
  color: var(--muted);
  font-size: 0.72rem;
}

.camera-popup-card {
  min-width: 230px;
}

.camera-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.camera-layer-control-card,
.camera-filter-card,
.port-camera-spotlight-card,
.camera-list-card {
  position: relative;
  overflow: hidden;
}

.camera-layer-control-card::before,
.camera-filter-card::before,
.port-camera-spotlight-card::before,
.camera-list-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 0%, rgba(45, 212, 191, 0.12), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(56, 189, 248, 0.09), transparent 35%);
}

.camera-control-center {
  padding: 13px 14px;
  overflow: hidden;
}

.camera-control-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.camera-control-status-chip {
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  color: #c8fff6;
  background: rgba(45, 212, 191, 0.12);
  font-size: 0.68rem;
  font-weight: 950;
  white-space: nowrap;
}

.camera-control-status-chip.paused {
  border-color: rgba(245, 158, 11, 0.34);
  color: #ffe5b4;
  background: rgba(245, 158, 11, 0.14);
}

.camera-layer-controls,
.camera-control-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
  width: 100%;
  min-width: 0;
}

.camera-control-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 62px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  color: #e8fbff;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.09), transparent 38%),
    linear-gradient(145deg, rgba(10, 39, 60, 0.64), rgba(3, 14, 25, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 24px rgba(0, 0, 0, 0.16);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.camera-control-panel:hover,
.camera-control-panel:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 2px rgba(45, 212, 191, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.22);
  outline: none;
}

.camera-control-panel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.camera-control-icon,
.camera-reset-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 9px;
  color: #dffbff;
  background: rgba(103, 232, 249, 0.085);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0;
}

.camera-control-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.camera-control-copy strong {
  color: #f5feff;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.15;
  white-space: normal;
}

.camera-control-copy small {
  color: rgba(214, 241, 249, 0.66);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
  white-space: normal;
}

.camera-control-switch {
  position: relative;
  width: 34px;
  height: 19px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.camera-control-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #9ed5e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, background 0.16s ease;
}

.camera-control-panel input:checked ~ .camera-control-switch {
  border-color: rgba(45, 212, 191, 0.56);
  background: rgba(45, 212, 191, 0.24);
}

.camera-control-panel input:checked ~ .camera-control-switch::after {
  transform: translateX(15px);
  background: #67e8f9;
}

.camera-control-panel-ai input:checked ~ .camera-control-switch {
  border-color: rgba(52, 211, 153, 0.58);
  background: rgba(52, 211, 153, 0.22);
}

.camera-control-panel-ai input:not(:checked) ~ .camera-control-switch {
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(245, 158, 11, 0.16);
}

.camera-control-panel-ai input:not(:checked) ~ .camera-control-switch::after {
  background: #fbbf24;
}

.camera-control-panel-ocean-ai {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(9, 33, 58, 0.64), rgba(3, 14, 25, 0.9));
}

.camera-control-reset {
  grid-column: 1 / -1;
  border-color: rgba(248, 113, 113, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 113, 113, 0.1), transparent 40%),
    linear-gradient(145deg, rgba(45, 20, 31, 0.56), rgba(4, 15, 27, 0.92));
}

.camera-control-reset:hover,
.camera-control-reset:focus-visible {
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(248, 113, 113, 0.1),
    0 20px 42px rgba(0, 0, 0, 0.25);
}

.camera-reset-action {
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  font-size: 0.62rem;
  font-weight: 950;
  white-space: nowrap;
}

.compact-toggle-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  color: #e8fbff;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.compact-toggle-row:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.052);
}

.compact-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.compact-toggle-row span {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.compact-toggle-row span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9ed5e8;
  transition: transform 0.16s ease, background 0.16s ease;
}

.compact-toggle-row input:checked + span {
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(45, 212, 191, 0.22);
}

.compact-toggle-row input:checked + span::after {
  transform: translateX(14px);
  background: #67e8f9;
}

.compact-toggle-row strong {
  color: #e8fbff;
  font-size: 0.78rem;
  font-weight: 900;
}

.camera-opacity-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.035);
}

.camera-opacity-field span,
.camera-opacity-field small {
  color: #9ed5e8;
  font-size: 0.72rem;
  font-weight: 900;
}

.camera-opacity-field input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--teal);
}

.camera-filter-grid-modern {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(190px, 1.35fr) repeat(5, minmax(128px, 0.9fr));
}

.camera-filter-header {
  position: relative;
  z-index: 1;
}

.camera-filter-modern {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.camera-filter-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.camera-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 14px;
  padding: 7px 12px 7px 8px;
  background:
    linear-gradient(145deg, rgba(11, 38, 57, 0.72), rgba(3, 14, 25, 0.92)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.camera-search-field:focus-within {
  border-color: rgba(45, 212, 191, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(45, 212, 191, 0.1),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.camera-search-field > span {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  color: #bdf7ff;
  background: rgba(103, 232, 249, 0.09);
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0;
}

.camera-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  color: #f5feff;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 800;
  outline: none;
}

.camera-search-field input::placeholder {
  color: rgba(181, 209, 219, 0.62);
  font-weight: 760;
}

.camera-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  color: #c8fff6;
  background:
    radial-gradient(circle at 0 0, rgba(45, 212, 191, 0.18), transparent 58%),
    rgba(45, 212, 191, 0.09);
  font-size: 0.7rem;
  font-weight: 950;
  white-space: nowrap;
}

.camera-filter-chip-groups {
  display: grid;
  gap: 9px;
}

.camera-filter-chip-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.1);
  border-radius: 13px;
  padding: 8px;
  background:
    linear-gradient(145deg, rgba(8, 29, 46, 0.54), rgba(2, 10, 20, 0.68)),
    rgba(255, 255, 255, 0.025);
}

.camera-filter-chip-row > span {
  color: #9fdced;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
}

.camera-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.camera-filter-chips button {
  min-height: 32px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 999px;
  padding: 6px 11px;
  color: rgba(230, 249, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(12, 35, 54, 0.74), rgba(5, 17, 31, 0.9)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.camera-filter-chips button:hover,
.camera-filter-chips button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.38);
  color: #f6feff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 0 2px rgba(45, 212, 191, 0.08);
  outline: none;
}

.camera-filter-chips button.active,
.camera-filter-chips button.is-active {
  border-color: rgba(45, 212, 191, 0.58);
  color: #eaffff;
  background:
    radial-gradient(circle at 85% 0%, rgba(103, 232, 249, 0.28), transparent 54%),
    linear-gradient(145deg, rgba(20, 103, 122, 0.64), rgba(11, 54, 78, 0.86));
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.12),
    0 0 22px rgba(45, 212, 191, 0.14);
}

.camera-grid-scroll-container {
  height: clamp(360px, calc(100vh - 560px), 520px);
  max-height: 520px;
  min-height: 320px;
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-color: rgba(103, 232, 249, 0.46) rgba(2, 8, 23, 0.48);
  scrollbar-width: thin;
}

.camera-grid-scroll-container::-webkit-scrollbar {
  width: 9px;
}

.camera-grid-scroll-container::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.48);
}

.camera-grid-scroll-container::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 8, 23, 0.62);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.74), rgba(45, 212, 191, 0.58));
}

.camera-grid-scroll-container .camera-intelligence-grid {
  padding-right: 2px;
}

.camera-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.camera-network-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.camera-tile-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.camera-tile {
  display: grid;
  gap: 11px;
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 14px;
  padding: 11px;
  background:
    radial-gradient(circle at 95% 0%, rgba(45, 212, 191, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(11, 34, 53, 0.94), rgba(3, 13, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.camera-tile:hover,
.camera-tile.selected {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.44);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.1),
    0 22px 46px rgba(0, 0, 0, 0.3),
    0 0 32px rgba(45, 212, 191, 0.08);
}

.camera-tile.selected {
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.17), transparent 42%),
    linear-gradient(145deg, rgba(11, 50, 74, 0.92), rgba(4, 18, 31, 0.96));
}

.camera-tile.risk-risky {
  border-color: rgba(248, 113, 113, 0.34);
  box-shadow:
    inset 3px 0 0 rgba(248, 113, 113, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.camera-tile.risk-no_risk {
  border-color: rgba(52, 211, 153, 0.24);
}

.camera-tile-main {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.camera-tile-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 30%, rgba(45, 212, 191, 0.16), transparent 36%),
    rgba(2, 8, 20, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.camera-tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.08), transparent 42%, rgba(2, 8, 23, 0.72)),
    linear-gradient(90deg, rgba(2, 8, 23, 0.24), transparent 38%);
}

.camera-tile-image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.camera-tile-image-button .camera-card-image,
.camera-tile-image-button .camera-live-placeholder,
.camera-tile-image-button .camera-image-placeholder {
  min-height: 100%;
}

.camera-tile-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.camera-tile-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.camera-tile-kicker {
  width: fit-content;
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 999px;
  padding: 4px 7px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.62rem;
  font-weight: 950;
}

.camera-tile-body strong {
  color: #f5fdff;
  font-size: 1.03rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.camera-tile-body small {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.camera-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.camera-tile-meta b {
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 999px;
  padding: 4px 7px;
  color: #ccefff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.62rem;
  font-weight: 900;
}

.camera-tile-ai-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.camera-tile-ai-row em {
  color: #a8c7d7;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-risk-reason {
  border-left: 2px solid rgba(248, 113, 113, 0.72);
  padding-left: 8px;
  color: #ffc9bd !important;
}

.camera-ai-box-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.camera-ai-box {
  position: absolute;
  border: 1px solid rgba(125, 249, 255, 0.9);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(2, 8, 23, 0.48),
    0 0 16px rgba(45, 212, 191, 0.22);
}

.camera-ai-box b {
  position: absolute;
  left: -1px;
  bottom: 100%;
  max-width: 170px;
  overflow: hidden;
  border: 1px solid rgba(125, 249, 255, 0.5);
  border-radius: 999px;
  padding: 2px 6px;
  color: #04111f;
  background: linear-gradient(135deg, rgba(199, 253, 255, 0.96), rgba(110, 231, 183, 0.92));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-ai-box-layer-thumb .camera-ai-box:nth-child(2n) {
  border-color: rgba(251, 191, 36, 0.9);
}

.camera-ai-box-layer-thumb .camera-ai-box:nth-child(2n) b {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.96), rgba(251, 191, 36, 0.9));
}

.camera-risk-chip,
.camera-detection-badge,
.camera-selected-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.62rem;
  font-weight: 950;
  white-space: nowrap;
}

.camera-risk-risky {
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.95), rgba(249, 115, 22, 0.86));
}

.camera-risk-no_risk {
  color: #052012;
  background: linear-gradient(135deg, #34d399, #a7f3d0);
}

.camera-risk-not_analyzed,
.camera-detection-badge.muted,
.camera-selected-badge.muted {
  color: #d9f6ff;
  background: rgba(148, 163, 184, 0.22);
}

.camera-detection-badge {
  color: #06121f;
  background: linear-gradient(135deg, #67e8f9, #6ee7b7);
}

.camera-selected-badge {
  color: #06121f;
  background: linear-gradient(135deg, #f8fafc, #8beee2);
}

.camera-tile-footer,
.camera-popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.camera-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.camera-tile-actions .btn {
  min-width: 74px;
}

.camera-action-maximize {
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.1),
    0 10px 22px rgba(45, 212, 191, 0.13);
}

.camera-popup-actions {
  margin: 8px 0;
}

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

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
}

.camera-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 16, 0.74);
  backdrop-filter: blur(14px);
}

.camera-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(111, 219, 255, 0.2);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(5, 22, 38, 0.98), rgba(2, 8, 23, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.camera-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.camera-modal-header h3 {
  margin: 4px 0 0;
  color: #f5fdff;
}

.camera-modal-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.camera-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.camera-modal-actions a {
  text-decoration: none;
}

.camera-modal-actions a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

.camera-modal-media {
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 12px;
  background: #020817;
}

.camera-modal-media .camera-stream-player,
.camera-modal-media .camera-snapshot-player {
  min-height: min(64vh, 620px);
  border-radius: 0;
}

.camera-modal-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.camera-modal-details span {
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 9px;
  padding: 9px;
  color: #e8fbff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.camera-modal-details b {
  display: block;
  margin-bottom: 4px;
  color: #9ed5e8;
  font-size: 0.66rem;
  font-weight: 950;
}

.camera-ai-modal-details {
  display: block;
}

.camera-ai-modal-insights {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1fr);
  gap: 12px;
}

.camera-ai-object-chart-card,
.camera-ai-risk-summary-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 14px;
  padding: 14px;
  color: #e8fbff;
  background:
    radial-gradient(circle at 8% 0%, rgba(103, 232, 249, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(10, 34, 51, 0.92), rgba(3, 12, 24, 0.96));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.camera-ai-risk-summary-card.risk-high {
  border-color: rgba(248, 113, 113, 0.34);
  background:
    radial-gradient(circle at 10% 0%, rgba(248, 113, 113, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(27, 17, 24, 0.94), rgba(3, 12, 24, 0.96));
}

.camera-ai-risk-summary-card.risk-moderate {
  border-color: rgba(250, 204, 21, 0.28);
  background:
    radial-gradient(circle at 10% 0%, rgba(250, 204, 21, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(28, 24, 13, 0.94), rgba(3, 12, 24, 0.96));
}

.camera-ai-risk-summary-card.risk-low {
  border-color: rgba(52, 211, 153, 0.28);
  background:
    radial-gradient(circle at 10% 0%, rgba(52, 211, 153, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(8, 30, 29, 0.94), rgba(3, 12, 24, 0.96));
}

.camera-ai-panel-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.camera-ai-panel-heading h4 {
  margin: 0;
  color: #f4feff;
  font-size: 1rem;
  line-height: 1.18;
}

.camera-ai-panel-heading small {
  color: rgba(205, 236, 245, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
}

.camera-ai-object-chart-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.camera-ai-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--camera-ai-donut);
  box-shadow: 0 0 0 1px rgba(111, 219, 255, 0.18), 0 16px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.camera-ai-donut:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.08);
}

.camera-ai-donut::before {
  content: "";
  position: absolute;
  inset: 31px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 22%, rgba(103, 232, 249, 0.11), transparent 42%),
    #041421;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.32);
}

.camera-ai-donut span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #f8feff;
}

.camera-ai-donut b {
  color: #f8feff;
  font-size: 1.55rem;
  line-height: 1;
}

.camera-ai-donut small {
  color: rgba(196, 231, 240, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
}

.camera-ai-object-legend {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.camera-ai-object-legend-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.camera-ai-object-legend-row:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.32);
  background: rgba(103, 232, 249, 0.075);
}

.camera-ai-object-legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--object-color);
  box-shadow: 0 0 12px var(--object-color);
}

.camera-ai-object-legend-row span,
.camera-ai-object-legend-row b,
.camera-ai-object-legend-row small {
  min-width: 0;
  font-size: 0.74rem;
}

.camera-ai-object-legend-row span {
  overflow: hidden;
  color: #e9fbff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-ai-object-legend-row b {
  color: #f8feff;
}

.camera-ai-object-legend-row small {
  color: rgba(196, 231, 240, 0.68);
  font-weight: 900;
}

.camera-ai-chart-empty-state {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 178px;
  border: 1px dashed rgba(111, 219, 255, 0.18);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(2, 8, 23, 0.32);
}

.camera-ai-chart-empty-state span {
  display: grid;
  place-items: center;
  width: 68px;
  aspect-ratio: 1;
  border: 1px solid rgba(111, 219, 255, 0.24);
  border-radius: 50%;
  color: #dff8ff;
  font-size: 1.3rem;
  font-weight: 950;
  background: rgba(111, 219, 255, 0.06);
}

.camera-ai-chart-empty-state strong {
  color: #f6feff;
  font-size: 0.92rem;
}

.camera-ai-chart-empty-state small {
  max-width: 280px;
  color: rgba(196, 231, 240, 0.68);
  line-height: 1.45;
}

.camera-ai-risk-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.camera-ai-risk-summary-grid span {
  display: block;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.045);
  overflow-wrap: anywhere;
}

.camera-ai-risk-summary-grid span.wide {
  grid-column: 1 / -1;
}

.camera-ai-risk-summary-grid small,
.camera-ai-risk-reason small {
  display: block;
  margin-bottom: 4px;
  color: #83dff2;
  font-size: 0.64rem;
  font-weight: 950;
}

.camera-ai-risk-summary-grid b {
  color: #f8feff;
  font-size: 0.82rem;
}

.camera-ai-risk-reason {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(2, 8, 23, 0.34);
}

.camera-ai-risk-reason p {
  margin: 0;
  color: #dff8ff;
  font-size: 0.8rem;
  line-height: 1.45;
}

.camera-reset-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  width: min(520px, 94vw);
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 16px;
  padding: 18px;
  color: #f8feff;
  background:
    radial-gradient(circle at 0% 0%, rgba(248, 113, 113, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(8, 25, 40, 0.98), rgba(3, 11, 22, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.camera-reset-copy h3 {
  margin: 4px 0 0;
  color: #f8feff;
  font-size: 1.08rem;
}

.camera-reset-copy p {
  margin: 7px 0 0;
  color: rgba(214, 241, 249, 0.74);
  line-height: 1.45;
}

.camera-reset-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.btn.danger {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(190, 18, 60, 0.88));
}

.btn.danger:hover {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16), 0 14px 28px rgba(0, 0, 0, 0.24);
}

.camera-ai-card {
  position: relative;
  overflow: hidden;
}

.camera-ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(103, 232, 249, 0.13), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(52, 211, 153, 0.1), transparent 36%);
}

.camera-ai-header-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.camera-ai-timeline-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at 4% 0%, rgba(103, 232, 249, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(9, 31, 48, 0.86), rgba(3, 12, 24, 0.92));
  border-color: rgba(111, 219, 255, 0.16);
}

.camera-ai-timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.1), transparent 34%);
}

.camera-ai-timeline-header,
.camera-ai-status-details {
  position: relative;
  z-index: 1;
}

.camera-ai-timeline-header {
  margin-bottom: 10px;
}

.camera-ai-timeline-header p {
  margin: 4px 0 0;
  color: rgba(196, 231, 240, 0.7);
  font-size: 0.78rem;
}

.camera-ai-status-details {
  margin-top: 12px;
}

.camera-ai-timeline-content {
  margin-top: 0;
}

.camera-ai-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(103, 232, 249, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(8, 29, 45, 0.9), rgba(3, 12, 24, 0.95));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.camera-ai-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.1), transparent 36%);
}

.camera-ai-overview-paused {
  border-color: rgba(251, 191, 36, 0.26);
}

.camera-ai-overview-paused::before {
  background: radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.12), transparent 36%);
}

.camera-ai-overview-watch {
  border-color: rgba(103, 232, 249, 0.18);
}

.camera-ai-overview-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.camera-ai-overview-header h4 {
  margin: 4px 0 0;
  color: #f5fdff;
  font-size: 1rem;
}

.camera-ai-overview-header p {
  max-width: 640px;
  margin: 5px 0 0;
  color: rgba(205, 236, 245, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}

.camera-ai-overview-status {
  flex: 0 0 auto;
  border: 1px solid rgba(111, 219, 255, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  color: #dbfeff;
  background: rgba(45, 212, 191, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.73rem;
  font-weight: 950;
}

.camera-ai-overview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.camera-ai-overview-grid span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 11px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.camera-ai-overview-grid span:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.3);
  background: rgba(103, 232, 249, 0.075);
}

.camera-ai-overview-grid small {
  color: #8fdff0;
  font-size: 0.62rem;
  font-weight: 950;
}

.camera-ai-overview-grid b {
  color: #f8feff;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.05;
}

.camera-ai-overview-grid em {
  color: rgba(196, 231, 240, 0.67);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.camera-ai-trend-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 0;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(15, 44, 64, 0.52), rgba(2, 8, 23, 0.46));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.camera-ai-trend-paused {
  border-color: rgba(251, 191, 36, 0.18);
  background:
    linear-gradient(135deg, rgba(68, 52, 14, 0.32), rgba(2, 8, 23, 0.5));
}

.camera-ai-trend-card strong {
  display: block;
  color: #f8feff;
  font-size: 0.88rem;
}

.camera-ai-trend-card small {
  display: block;
  margin-top: 3px;
  color: rgba(196, 231, 240, 0.66);
  font-size: 0.7rem;
  font-weight: 800;
}

.camera-ai-trend-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(28px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 84px;
}

.camera-ai-trend-bars span {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  color: rgba(210, 244, 250, 0.74);
}

.camera-ai-trend-bars i {
  display: block;
  width: 100%;
  height: var(--trend-height);
  min-height: 8px;
  max-height: 84px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #9bf6ff, #2dd4bf 72%, #0e7490);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.2);
  transition: filter 0.16s ease, transform 0.16s ease;
}

.camera-ai-trend-bars span:hover i {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.camera-ai-trend-bars b {
  color: #f8feff;
  font-size: 0.68rem;
}

.camera-ai-trend-bars small {
  margin: 0;
  color: rgba(196, 231, 240, 0.58);
  font-size: 0.58rem;
}

.camera-ai-filter-grid,
.camera-ai-table-wrap {
  position: relative;
  z-index: 1;
}

.camera-ai-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(103, 232, 249, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(10, 34, 52, 0.72), rgba(2, 8, 23, 0.64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.camera-ai-filter-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  gap: 8px;
}

.camera-ai-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 12px;
  padding: 7px 10px;
  color: #dff8ff;
  background: rgba(2, 8, 23, 0.54);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.camera-ai-search-field:focus-within {
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(6, 21, 36, 0.78);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.08);
}

.camera-ai-search-field span {
  display: inline-flex;
  min-width: 38px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  color: #b8f7ff;
  background: rgba(103, 232, 249, 0.11);
  font-size: 0.58rem;
  font-weight: 950;
}

.camera-ai-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #efffff;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.camera-ai-search-field input::placeholder {
  color: rgba(196, 231, 240, 0.52);
}

.camera-ai-filter-chip-groups {
  display: grid;
  gap: 9px;
}

.camera-ai-filter-chip-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.camera-ai-filter-chip-row > span {
  color: #9ed5e8;
  font-size: 0.66rem;
  font-weight: 950;
}

.camera-ai-filter-chips {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.camera-ai-filter-chips button {
  min-height: 28px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  color: #cfeef7;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.camera-ai-filter-chips button:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.38);
  color: #f8feff;
  background: rgba(103, 232, 249, 0.1);
}

.camera-ai-filter-chips button.active {
  color: #04111f;
  border-color: rgba(103, 232, 249, 0.58);
  background: linear-gradient(135deg, #67e8f9, #6ee7b7);
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.14);
}

.camera-ai-table-wrap {
  margin-top: 12px;
  height: clamp(300px, calc(100vh - 430px), 440px);
  max-height: 440px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(103, 232, 249, 0.08), transparent 34%),
    rgba(2, 8, 23, 0.42);
  scrollbar-color: rgba(103, 232, 249, 0.46) rgba(2, 8, 23, 0.48);
  scrollbar-width: thin;
}

.camera-ai-table-wrap::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.camera-ai-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.48);
}

.camera-ai-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 8, 23, 0.62);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.74), rgba(45, 212, 191, 0.58));
}

.camera-ai-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.camera-ai-table th,
.camera-ai-table td {
  border-bottom: 1px solid rgba(111, 219, 255, 0.1);
  padding: 8px 9px;
  color: #dff8ff;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.camera-ai-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #9ed5e8;
  background:
    linear-gradient(180deg, rgba(10, 38, 58, 0.98), rgba(4, 17, 30, 0.98));
  box-shadow: 0 1px 0 rgba(111, 219, 255, 0.14), 0 10px 20px rgba(0, 0, 0, 0.18);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: normal;
}

.camera-ai-table th:nth-child(1),
.camera-ai-table td:nth-child(1) {
  width: 112px;
}

.camera-ai-table th:nth-child(2),
.camera-ai-table td:nth-child(2) {
  width: 135px;
}

.camera-ai-table th:nth-child(3),
.camera-ai-table td:nth-child(3) {
  width: 66px;
}

.camera-ai-table th:nth-child(4),
.camera-ai-table td:nth-child(4) {
  width: 140px;
}

.camera-ai-table th:nth-child(5),
.camera-ai-table td:nth-child(5),
.camera-ai-table th:nth-child(6),
.camera-ai-table td:nth-child(6) {
  width: 86px;
}

.camera-ai-table th:nth-child(7),
.camera-ai-table td:nth-child(7) {
  width: 185px;
}

.camera-ai-table th:nth-child(8),
.camera-ai-table td:nth-child(8) {
  width: 72px;
}

.camera-ai-table th:nth-child(9),
.camera-ai-table td:nth-child(9) {
  width: 158px;
}

.camera-ai-table th:first-child {
  border-top-left-radius: 11px;
}

.camera-ai-table th:last-child {
  border-top-right-radius: 11px;
}

.camera-ai-table td strong,
.camera-ai-table td small {
  display: block;
}

.camera-ai-table td strong {
  color: #f5fdff;
  font-size: 0.8rem;
}

.camera-ai-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.camera-ai-row {
  transition: background 0.16s ease;
}

.camera-ai-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.camera-ai-row:hover {
  background: rgba(45, 212, 191, 0.07);
}

.camera-ai-row.risky {
  background: rgba(248, 113, 113, 0.055);
}

.camera-ai-row:not(.risky):hover {
  background: rgba(52, 211, 153, 0.055);
}

.camera-ai-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 8px;
  color: #06121f;
  font-size: 0.64rem;
  font-weight: 950;
  white-space: nowrap;
}

.camera-ai-low {
  background: #34d399;
}

.camera-ai-moderate {
  background: #facc15;
}

.camera-ai-high {
  background: #f87171;
}

.camera-ai-unavailable {
  color: #dff8ff;
  background: rgba(148, 163, 184, 0.24);
}

.camera-ai-object-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.camera-ai-object-tags.empty span,
.camera-ai-object-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 999px;
  padding: 0 8px;
  color: #dff8ff;
  background: rgba(103, 232, 249, 0.075);
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.camera-ai-object-tag small {
  display: inline-flex;
  min-width: 18px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 999px;
  color: #04111f;
  background: #67e8f9;
  font-size: 0.58rem;
}

.camera-ai-object-tag b {
  color: inherit;
  font-size: inherit;
}

.camera-ai-object-tags.empty span {
  color: rgba(196, 231, 240, 0.68);
  background: rgba(148, 163, 184, 0.11);
}

.camera-ai-reason-cell {
  color: #cfeef7;
}

.camera-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.camera-ai-actions .btn {
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.64rem;
}

.camera-ai-modal-image {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #020817;
}

.camera-ai-box-layer-modal .camera-ai-box {
  border-width: 2px;
  border-radius: 6px;
}

.camera-ai-box-layer-modal .camera-ai-box b {
  top: 0;
  bottom: auto;
  transform: translateY(-55%);
  font-size: 0.68rem;
  padding: 4px 8px;
}

.camera-ai-image-viewer {
  display: grid;
  gap: 10px;
  padding: 10px;
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.12), transparent 36%),
    rgba(2, 8, 23, 0.72);
}

.camera-ai-image-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.camera-ai-image-toolbar .btn.active {
  color: #04111f;
  border-color: rgba(103, 232, 249, 0.5);
  background: linear-gradient(135deg, #67e8f9, #6ee7b7);
}

.camera-ai-image-stage {
  display: grid;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 12px;
  background: #020817;
}

.camera-ai-image-canvas {
  position: relative;
  overflow: hidden;
  background: #020817;
}

.camera-ai-image-stage figcaption {
  padding: 0 12px 12px;
  color: #9ed5e8;
  font-size: 0.72rem;
  font-weight: 900;
}

.camera-ai-image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.camera-ai-thumb {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 10px;
  padding: 7px;
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.camera-ai-thumb:hover,
.camera-ai-thumb.active-thumb {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.09);
}

.camera-ai-thumb img {
  width: 70px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #020817;
}

.camera-ai-thumb span {
  color: #efffff;
  font-size: 0.74rem;
  font-weight: 950;
}

@media (max-width: 1280px) {
  .camera-layer-controls {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .camera-filter-chip-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .camera-intelligence-grid {
    grid-template-columns: 1fr;
  }

  .camera-ai-filter-chip-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .camera-layer-controls,
  .camera-ai-filter-grid,
  .camera-tile-main,
  .camera-modal-header {
    grid-template-columns: 1fr;
  }

  .camera-filter-search-row {
    grid-template-columns: 1fr;
  }

  .camera-filter-count {
    justify-self: start;
  }

  .camera-ai-modal-insights,
  .camera-ai-object-chart-layout,
  .camera-ai-risk-summary-grid,
  .camera-ai-trend-card {
    grid-template-columns: 1fr;
  }

  .camera-ai-donut {
    justify-self: center;
  }

  .camera-ai-overview-header {
    display: grid;
  }

  .camera-ai-overview-status {
    justify-self: start;
  }

  .camera-modal-header {
    display: grid;
  }

  .camera-control-header,
  .camera-reset-actions {
    align-items: stretch;
    display: grid;
    justify-content: stretch;
  }

  .camera-control-status-chip,
  .camera-reset-actions .btn {
    width: 100%;
    text-align: center;
  }

  .camera-modal {
    padding: 10px;
  }

  .camera-modal-panel {
    width: 100%;
    max-height: 96vh;
  }

  .camera-tile-media {
    aspect-ratio: 16 / 9;
  }
}

.emission-overview-card,
.emission-command-card,
.emission-list-card,
.emission-detail-card,
.emission-layer-card {
  position: relative;
  overflow: hidden;
}

.emission-overview-card::before,
.emission-command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0, rgba(249, 115, 22, 0.16), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(34, 211, 238, 0.12), transparent 32%);
}

.emission-product-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.emission-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.emission-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 10px;
}

.emission-hotspot-list {
  display: grid;
  gap: 8px;
  max-height: 460px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.emission-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.emission-row:hover,
.emission-row.selected {
  transform: translateY(-1px);
  border-color: rgba(251, 146, 60, 0.46);
  background: rgba(249, 115, 22, 0.1);
}

.emission-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.emission-dot-low {
  color: #38bdf8;
  background: #38bdf8;
}

.emission-dot-moderate {
  color: #22c55e;
  background: #22c55e;
}

.emission-dot-high {
  color: #facc15;
  background: #facc15;
}

.emission-dot-extreme {
  color: #ef4444;
  background: #ef4444;
}

.emission-row-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.emission-row-body strong,
.emission-row-body small {
  display: block;
}

.emission-row-body strong {
  color: #f5fdff;
  font-size: 0.84rem;
  line-height: 1.25;
}

.emission-row-body small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.emission-rate {
  min-width: 76px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 999px;
  padding: 7px 9px;
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.12);
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
}

.emission-popup-card {
  min-width: 245px;
}

.emission-summary-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.emission-summary-cards .overview-summary-card {
  min-height: 122px;
}

.emission-summary-cards .overview-summary-card em {
  display: block;
  margin-top: 5px;
  color: rgba(191, 238, 255, 0.74);
  font-size: 0.66rem;
  font-style: normal;
  line-height: 1.28;
}

.emission-workspace .btn.danger-soft {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 113, 113, 0.16), transparent 46%),
    rgba(127, 29, 29, 0.14);
}

.emission-workflow-card,
.emission-history-card,
.emission-detail-card,
.emission-layer-card {
  border-color: rgba(111, 219, 255, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.11), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(7, 19, 35, 0.95), rgba(2, 8, 23, 0.9));
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.22);
}

.emission-workflow-card > *,
.emission-history-card > *,
.emission-detail-card > *,
.emission-layer-card > * {
  position: relative;
  z-index: 1;
}

.emission-workflow-card .section-title-row {
  align-items: start;
}

.emission-workflow-steps {
  display: grid;
  gap: 12px;
}

.emission-workflow-step {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(111, 219, 255, 0.12);
  padding-top: 12px;
}

.emission-workflow-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.emission-step-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.emission-step-heading span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  color: #9deeff;
  background: rgba(14, 116, 144, 0.18);
  font-size: 0.64rem;
  font-weight: 950;
}

.emission-step-heading strong {
  color: #f4fdff;
  font-size: 0.92rem;
  font-weight: 950;
}

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

.emission-product-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 10px;
  min-height: 118px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 12px;
  padding: 13px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(15, 34, 53, 0.92), rgba(5, 14, 27, 0.88));
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.emission-product-card:hover,
.emission-product-card.active {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(94, 234, 212, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(14, 116, 144, 0.24), rgba(255, 255, 255, 0.055));
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.11);
}

.emission-product-card:not(.active) {
  opacity: 0.82;
}

.emission-product-card .product-code {
  grid-row: 1 / span 3;
  min-width: 42px;
  height: 32px;
  padding: 0 8px;
  font-size: 0.67rem;
}

.emission-product-card strong {
  color: #f8feff;
  font-size: 0.84rem;
  line-height: 1.18;
}

.emission-product-card small,
.emission-product-card em,
.emission-product-card i {
  grid-column: 2;
  color: #a7d3e4;
  font-size: 0.66rem;
  font-style: normal;
  line-height: 1.25;
}

.emission-product-card i,
.emission-product-card em {
  width: fit-content;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(14, 116, 144, 0.15);
}

.emission-product-card.active i::before {
  content: "Selected / ";
  color: #bbf7d0;
}

.emission-roi-panel,
.emission-run-panel {
  display: grid;
  gap: 10px;
}

.emission-roi-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(111, 219, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.emission-roi-status-card strong,
.emission-roi-status-card small {
  display: block;
}

.emission-roi-status-card strong {
  color: #f8feff;
  font-size: 0.86rem;
}

.emission-roi-status-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.emission-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emission-action-row .btn {
  min-height: 38px;
  white-space: nowrap;
}

.emission-config-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr);
  gap: 10px;
  align-items: end;
}

.emission-config-grid .field span,
.emission-sensitivity-panel > span {
  color: #bfeeff;
  font-size: 0.7rem;
  font-weight: 950;
}

.emission-config-grid .field input,
.emission-config-grid .field select {
  min-height: 42px;
  border-radius: 10px;
  color: #f4fdff;
  border-color: rgba(111, 219, 255, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.09), transparent 42%),
    rgba(6, 18, 33, 0.78);
}

.emission-config-grid .field input:hover,
.emission-config-grid .field select:hover {
  border-color: rgba(103, 232, 249, 0.38);
}

.emission-plume-only,
.emission-sector-field,
.emission-sensitivity-panel {
  grid-column: span 1;
}

.emission-sensitivity-panel {
  display: grid;
  gap: 7px;
  align-self: stretch;
}

.emission-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 12px;
  padding: 5px;
  background: rgba(2, 8, 23, 0.36);
}

.emission-segmented-control button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #cdeaf4;
  background: transparent;
  font-size: 0.69rem;
  font-weight: 950;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.emission-segmented-control button:hover,
.emission-segmented-control button.active {
  color: #03101d;
  border-color: rgba(103, 232, 249, 0.52);
  background: linear-gradient(135deg, #7dd3fc, #5eead4);
}

.emission-run-actions .btn {
  flex: 1 1 190px;
}

.emission-hidden-compat {
  display: none !important;
}

.emission-date-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}

.emission-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.emission-layer-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.emission-continuous-legend-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(15, 34, 53, 0.9), rgba(5, 14, 27, 0.84));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.emission-legend-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.emission-legend-header strong,
.emission-legend-header small {
  display: block;
}

.emission-legend-header strong {
  color: #f5fdff;
  font-size: 0.92rem;
  line-height: 1.25;
}

.emission-legend-header small {
  margin-top: 3px;
  color: rgba(191, 238, 255, 0.74);
  font-size: 0.72rem;
  line-height: 1.3;
}

.emission-gradient-bar {
  height: 12px;
  border: 1px solid rgba(236, 254, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.12);
}

.emission-gradient-values,
.emission-legend-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.emission-gradient-values span {
  color: rgba(224, 242, 254, 0.86);
  font-size: 0.68rem;
  font-weight: 850;
}

.emission-legend-meta {
  flex-wrap: wrap;
}

.emission-legend-meta span {
  border: 1px solid rgba(111, 219, 255, 0.15);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(191, 238, 255, 0.8);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.67rem;
  font-weight: 900;
}

.emission-control-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  min-height: 76px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.09), transparent 42%),
    linear-gradient(145deg, rgba(15, 34, 53, 0.88), rgba(5, 14, 27, 0.82));
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.emission-control-card:hover:not(:disabled),
.emission-control-card.active {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.46);
  background:
    radial-gradient(circle at 100% 0%, rgba(94, 234, 212, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(14, 116, 144, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.1);
}

.emission-control-card:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.emission-control-card strong,
.emission-control-card small {
  grid-column: 2;
  display: block;
  min-width: 0;
}

.emission-control-card strong {
  color: #f8feff;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.2;
}

.emission-control-card small {
  color: #a7d3e4;
  font-size: 0.66rem;
  line-height: 1.2;
}

.emission-opacity-card input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #5eead4;
}

.emission-inline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.emission-inline-summary div {
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.emission-inline-summary span,
.emission-inline-summary strong {
  display: block;
}

.emission-inline-summary span {
  color: #9ed5e8;
  font-size: 0.65rem;
  font-weight: 950;
}

.emission-inline-summary strong {
  margin-top: 5px;
  color: #f8feff;
  font-size: 0.92rem;
  font-weight: 950;
}

.emission-history-card {
  display: grid;
  gap: 12px;
}

.emission-history-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.emission-history-list::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.emission-history-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.48);
}

.emission-history-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 8, 23, 0.62);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.9), rgba(45, 212, 191, 0.78));
}

.emission-history-header,
.emission-history-row {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) minmax(130px, 0.9fr) minmax(88px, 0.62fr) minmax(110px, 0.8fr) minmax(82px, 0.55fr) minmax(84px, 0.58fr);
  gap: 8px;
  align-items: center;
  min-width: 680px;
}

.emission-history-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 10px;
  padding: 9px 10px;
  color: #9ed5e8;
  background: rgba(3, 14, 26, 0.95);
  font-size: 0.62rem;
  font-weight: 950;
}

.emission-history-row.emission-row {
  width: 100%;
  border-color: rgba(111, 219, 255, 0.13);
  border-radius: 12px;
  padding: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.emission-history-row span {
  min-width: 0;
}

.emission-history-row strong,
.emission-history-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emission-history-row strong {
  color: #f4fdff;
  font-size: 0.72rem;
}

.emission-history-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.emission-risk-badge,
.emission-status-pill,
.emission-view-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 0.62rem;
  font-weight: 950;
  white-space: nowrap;
}

.emission-risk-low {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(14, 165, 233, 0.12);
}

.emission-risk-moderate {
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(22, 163, 74, 0.13);
}

.emission-risk-high {
  color: #fef3c7;
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(217, 119, 6, 0.16);
}

.emission-risk-extreme {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(220, 38, 38, 0.16);
}

.emission-status-pill {
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, 0.26);
  background: rgba(34, 197, 94, 0.12);
}

.emission-view-action {
  color: #cffafe;
  border-color: rgba(103, 232, 249, 0.26);
  background: rgba(14, 116, 144, 0.16);
}

.emission-layer-state-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.emission-layer-state-readout span {
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.68rem;
  font-weight: 850;
}

.emission-layer-state-readout b {
  display: block;
  margin-top: 4px;
  color: #f8feff;
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .emission-summary-cards,
  .emission-product-grid,
  .emission-split-grid,
  .emission-controls-grid,
  .emission-inline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emission-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .emission-summary-cards,
  .emission-config-grid,
  .emission-product-grid,
  .emission-split-grid,
  .emission-layer-state-readout,
  .emission-controls-grid,
  .emission-inline-summary {
    grid-template-columns: 1fr;
  }
}

.maritime-overview-card,
.maritime-command-card,
.maritime-list-card,
.maritime-detail-card,
.maritime-layer-card,
.maritime-chart-card,
.maritime-product-panel {
  position: relative;
  overflow: hidden;
}

.maritime-overview-card::before,
.maritime-command-card::before,
.maritime-product-panel::before,
.maritime-list-card::before,
.maritime-layer-card::before,
.maritime-chart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0, rgba(56, 189, 248, 0.16), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(45, 212, 191, 0.12), transparent 31%);
}

.maritime-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(182px, 1fr));
}

.maritime-product-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.maritime-product-tile {
  min-height: 164px;
  align-content: start;
}

.maritime-product-tile .maritime-ready-pill {
  margin-top: auto;
  width: fit-content;
}

.maritime-product-tile.accent-heatmap .product-code {
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.18);
}

.maritime-product-tile.accent-events .product-code,
.maritime-product-tile.accent-risk .product-code {
  border-color: rgba(251, 146, 60, 0.42);
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
}

.maritime-product-tile.accent-vessel .product-code {
  border-color: rgba(52, 211, 153, 0.42);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
}

.maritime-product-tile.accent-blocked {
  opacity: 0.72;
}

.maritime-workflow-card {
  display: grid;
  gap: 14px;
}

.maritime-workflow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.maritime-workflow-step {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.08), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.maritime-step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.maritime-step-heading span {
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 4px 8px;
  color: #a5f3fc;
  background: rgba(14, 165, 233, 0.12);
  font-size: 0.66rem;
  font-weight: 950;
}

.maritime-step-heading strong {
  color: #f8feff;
  font-size: 0.96rem;
}

.maritime-roi-panel {
  display: grid;
  gap: 10px;
}

.maritime-roi-card {
  margin: 0;
}

.maritime-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

.maritime-run-step .btn {
  width: 100%;
}

.maritime-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maritime-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(270px, 0.94fr);
  gap: 10px;
}

.maritime-result-list {
  display: block;
  max-height: 500px;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: auto;
  padding-right: 4px;
}

.maritime-results-table {
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 10, 18, 0.22);
}

.maritime-table-header,
.maritime-table-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(150px, 1.05fr) minmax(85px, 0.72fr) minmax(94px, 0.72fr) minmax(88px, 0.7fr) minmax(76px, 0.62fr) minmax(205px, 1.2fr);
  gap: 10px;
  align-items: center;
  min-width: 930px;
}

.maritime-table-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  color: #a5f3fc;
  background: rgba(4, 19, 32, 0.96);
  border-bottom: 1px solid rgba(111, 219, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 950;
}

.maritime-table-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(111, 219, 255, 0.1);
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.maritime-table-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.052);
}

.maritime-table-row:hover,
.maritime-table-row.selected {
  background: rgba(14, 165, 233, 0.1);
  box-shadow: inset 2px 0 0 rgba(45, 212, 191, 0.72);
}

.maritime-table-row span {
  min-width: 0;
  color: #dff8ff;
  font-size: 0.75rem;
  line-height: 1.35;
}

.maritime-table-row b,
.maritime-table-row small {
  display: block;
}

.maritime-table-row b {
  color: #f8feff;
  font-size: 0.76rem;
}

.maritime-table-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.69rem;
}

.maritime-table-row em {
  display: inline-flex;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.1);
  font-style: normal;
  font-weight: 950;
}

.maritime-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.maritime-table-actions .btn {
  min-height: 30px;
  padding: 7px 9px;
}

.maritime-selected-inline {
  margin-top: 10px;
}

.maritime-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.maritime-row:hover,
.maritime-row.selected {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.11);
}

.maritime-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.maritime-dot-low {
  color: #2dd4bf;
}

.maritime-dot-moderate {
  color: #facc15;
}

.maritime-dot-high {
  color: #f97316;
}

.maritime-dot-critical {
  color: #ef4444;
}

.maritime-row-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.maritime-row-body strong,
.maritime-row-body small {
  display: block;
}

.maritime-row-body strong {
  color: #f5fdff;
  font-size: 0.84rem;
  line-height: 1.25;
}

.maritime-row-body small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.maritime-rate {
  min-width: 76px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  padding: 7px 9px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.13);
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
  text-transform: capitalize;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: capitalize;
  background: rgba(148, 163, 184, 0.1);
}

.risk-low {
  color: #99f6e4;
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.1);
}

.risk-moderate {
  color: #fef3c7;
  border-color: rgba(250, 204, 21, 0.32);
  background: rgba(250, 204, 21, 0.1);
}

.risk-high {
  color: #fed7aa;
  border-color: rgba(249, 115, 22, 0.36);
  background: rgba(249, 115, 22, 0.12);
}

.risk-critical {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(239, 68, 68, 0.12);
}

.maritime-layer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.maritime-popup-card {
  min-width: 245px;
}

.marine-command-card,
.marine-intelligence-card,
.marine-summary-card,
.marine-chart-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(55, 213, 255, 0.12), transparent 32%),
    radial-gradient(circle at 100% 6%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(8, 29, 45, 0.92), rgba(4, 16, 27, 0.84));
}

.marine-command-card::before,
.marine-intelligence-card::before,
.marine-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0, rgba(45, 212, 191, 0.13), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(56, 189, 248, 0.11), transparent 30%);
}

.marine-location-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr);
  gap: 10px;
  margin-top: 14px;
}

.marine-location-controls .marine-coordinate-card,
.marine-location-controls .marine-button-grid {
  margin-top: 0;
}

.marine-location-controls .marine-button-grid {
  grid-column: 1 / -1;
}

.marine-coordinate-card {
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.055);
}

.marine-coordinate-card span,
.marine-data-card span,
.marine-warning-card span {
  display: block;
}

.marine-coordinate-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.marine-coordinate-card strong {
  display: block;
  margin-top: 5px;
  color: #efffff;
  font-size: 0.9rem;
}

.marine-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.marine-location-card .section-title-row,
.marine-environment-card .section-title-row {
  margin-bottom: 12px;
}

.marine-segmented-control {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 8px;
  background: rgba(2, 11, 21, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.marine-segmented-control button {
  min-height: 38px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 7px;
  color: #b9d8e6;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.marine-segmented-control button:hover,
.marine-segmented-control button.active {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.42);
  color: #ecfeff;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.38), rgba(45, 212, 191, 0.15));
}

.marine-location-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.marine-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.marine-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 0;
}

.marine-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.marine-card-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.marine-data-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 94px;
  min-width: 0;
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 11px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.052);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.marine-data-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.068);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22), 0 0 22px rgba(55, 213, 255, 0.08);
}

.marine-card-icon {
  display: grid !important;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  color: #e0f2fe;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(45, 212, 191, 0.13));
  font-size: 0.68rem;
  font-weight: 950;
}

.marine-tone-good .marine-card-icon {
  border-color: rgba(52, 211, 153, 0.36);
  color: #bbf7d0;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.24), rgba(14, 165, 233, 0.08));
}

.marine-tone-watch .marine-card-icon {
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.22), rgba(14, 165, 233, 0.08));
}

.marine-tone-alert .marine-card-icon {
  border-color: rgba(248, 113, 113, 0.48);
  color: #fecaca;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.24), rgba(14, 165, 233, 0.08));
}

.marine-data-card div {
  min-width: 0;
}

.marine-data-card span:not(.marine-card-icon) {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.marine-data-card strong {
  display: block;
  margin-top: 3px;
  color: #f8fdff;
  font-size: 1.08rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.marine-data-card small {
  display: block;
  margin-top: 2px;
  color: #8db0c3;
  font-size: 0.68rem;
  line-height: 1.3;
}

.marine-warning-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.marine-warning-list.compact {
  gap: 7px;
}

.marine-warning-card {
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.marine-warning-card strong {
  display: block;
  color: #f8fdff;
  font-size: 0.86rem;
}

.marine-warning-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.marine-warning-high {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(239, 68, 68, 0.1);
}

.marine-warning-moderate {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.1);
}

.marine-warning-nominal {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(34, 197, 94, 0.09);
}

.marine-warning-info {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(14, 165, 233, 0.09);
}

.marine-chart-panel {
  margin-top: 12px;
}

.marine-selected-point-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.marine-point-head span,
.marine-point-head small,
.marine-point-metrics small,
.marine-point-footer span {
  display: block;
}

.marine-point-head span {
  color: #7be7ff;
  font-size: 0.68rem;
  font-weight: 950;
}

.marine-point-head strong {
  display: block;
  margin-top: 4px;
  color: #f8feff;
  font-size: 1.04rem;
}

.marine-point-head small {
  margin-top: 3px;
  color: #9ed5e8;
  font-size: 0.74rem;
  font-weight: 850;
}

.marine-point-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.marine-point-metrics span {
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.042);
}

.marine-point-metrics small {
  color: #86b9ca;
  font-size: 0.64rem;
  font-weight: 900;
}

.marine-point-metrics strong {
  display: block;
  margin-top: 4px;
  color: #f8feff;
  font-size: 0.84rem;
  line-height: 1.2;
}

.marine-point-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(111, 219, 255, 0.12);
  padding-top: 10px;
}

.marine-point-footer span {
  color: #9ed5e8;
  font-size: 0.72rem;
  font-weight: 850;
}

.marine-alert-severity {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.marine-severity-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 999px;
  padding: 6px 9px;
  color: #9fbacd;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.68rem;
  font-weight: 950;
}

.marine-severity-pill i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

.marine-severity-pill.active {
  color: #ecfeff;
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(20, 184, 166, 0.12);
}

.marine-severity-advisory.active {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.12);
}

.marine-severity-nodata.active {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.1);
}

.marine-alert-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.marine-alert-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 98px;
  overflow: hidden;
  border: 1px solid rgba(111, 219, 255, 0.15);
  border-radius: 8px;
  padding: 11px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.09), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.034));
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.marine-alert-card::after {
  content: "";
  position: absolute;
  inset: auto 10px 0 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.58);
}

.marine-alert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.043));
}

.marine-alert-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 8px;
  color: #bdfdf6;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(45, 212, 191, 0.12));
  font-size: 0.58rem;
  font-weight: 950;
}

.marine-alert-card span:not(.marine-alert-icon),
.marine-alert-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.marine-alert-card strong {
  display: block;
  margin-top: 7px;
  color: #f8feff;
  font-size: 1.08rem;
  line-height: 1.08;
}

.marine-alert-card small {
  display: block;
  margin-top: 7px;
  line-height: 1.28;
}

.marine-alert-advisory {
  border-color: rgba(245, 158, 11, 0.3);
}

.marine-alert-advisory::after {
  background: rgba(245, 158, 11, 0.74);
}

.marine-alert-monitoring {
  border-color: rgba(56, 189, 248, 0.28);
}

.marine-alert-monitoring::after {
  background: rgba(56, 189, 248, 0.68);
}

.marine-alert-nodata {
  border-color: rgba(148, 163, 184, 0.24);
}

.marine-alert-nodata::after {
  background: rgba(148, 163, 184, 0.68);
}

.marine-alert-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.marine-timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.045);
}

.marine-timeline-item i {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.32);
}

.marine-timeline-item strong,
.marine-timeline-item span {
  display: block;
}

.marine-timeline-item strong {
  color: #f8feff;
  font-size: 0.78rem;
}

.marine-timeline-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.marine-timeline-item.marine-alert-advisory i {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.34);
}

.marine-timeline-item.marine-alert-monitoring i {
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.32);
}

.marine-timeline-item.marine-alert-nodata i {
  background: #94a3b8;
  box-shadow: none;
}

.marine-environment-strip {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 14px;
}

.marine-chart-grid article {
  border: 1px solid rgba(111, 219, 255, 0.13);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 213, 255, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.marine-chart-grid article h4 {
  margin: 0;
  color: #f8feff;
  font-size: 0.86rem;
}

.marine-forecast-chart-card {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.marine-forecast-chart-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2), 0 0 22px rgba(55, 213, 255, 0.07);
}

.marine-chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.marine-chart-status {
  flex: 0 1 auto;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  padding: 4px 7px;
  color: #a7f3d0;
  background: rgba(20, 184, 166, 0.1);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: right;
}

.marine-forecast-chart {
  min-height: 168px;
  border-radius: 8px;
}

.marine-forecast-chart .empty-panel {
  min-height: 150px;
}

.marine-forecast-svg {
  display: block;
  width: 100%;
  min-height: 168px;
}

.marine-chart-past-zone {
  fill: rgba(15, 23, 42, 0.2);
}

.marine-chart-forecast-zone {
  fill: rgba(14, 165, 233, 0.075);
}

.marine-chart-area {
  opacity: 0.14;
}

.marine-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.16));
}

.marine-chart-line-forecast {
  stroke-dasharray: 6 5;
  opacity: 0.9;
}

.marine-chart-now-line {
  stroke: rgba(248, 250, 252, 0.46);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}

.marine-chart-current-dot {
  fill: #ecfeff;
  stroke: rgba(45, 212, 191, 0.85);
  stroke-width: 2;
  filter: drop-shadow(0 0 7px rgba(45, 212, 191, 0.48));
  pointer-events: none;
}

.marine-chart-point {
  fill: rgba(236, 254, 255, 0.1);
  stroke: rgba(236, 254, 255, 0.34);
  stroke-width: 1.4;
  cursor: crosshair;
  transition: fill 0.14s ease, stroke 0.14s ease, r 0.14s ease;
}

.marine-chart-point:hover {
  fill: #ecfeff;
  stroke: rgba(45, 212, 191, 0.95);
}

.marine-chart-zone-label,
.marine-chart-now-label {
  fill: rgba(190, 230, 244, 0.76);
  font-size: 8px;
  font-weight: 950;
}

.marine-chart-now-label {
  fill: #dffcff;
}

.marine-chart-tooltip {
  position: absolute;
  z-index: 4;
  max-width: 190px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  padding: 7px 9px;
  color: #effcff;
  background: rgba(4, 16, 27, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), 0 0 18px rgba(56, 189, 248, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.chart-gridline.muted {
  opacity: 0.52;
}

.marine-popup-card {
  min-width: 235px;
}

.mapboxgl-popup-content .mini-tooltip {
  min-width: 150px;
}

.mini-tooltip strong,
.mini-tooltip small {
  display: block;
}

.mini-tooltip small {
  margin-top: 4px;
  color: var(--muted);
}

.emission-tooltip-card {
  min-width: 215px;
}

.emission-tooltip-card strong {
  color: #ecfeff;
  letter-spacing: 0;
}

.emission-tooltip-card small {
  color: #fbbf24;
}

.emission-tooltip-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(125, 211, 252, 0.18);
}

.emission-tooltip-grid span {
  color: rgba(203, 213, 225, 0.78);
  font-size: 11px;
}

.emission-tooltip-grid b {
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.map-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: calc(100vh - 132px);
  overflow: hidden;
}

.map-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(111, 219, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(4, 18, 31, 0.88), rgba(7, 31, 48, 0.74));
  backdrop-filter: blur(14px);
}

.map-toolbar-title {
  min-width: 0;
}

.map-toolbar-title small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.map-canvas-wrap {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.map-root {
  width: 100%;
  height: 100%;
  min-height: 640px;
}

.map-notice {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  right: 14px;
  box-shadow: var(--shadow);
}

.platform-progress-card {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 20px;
  width: min(360px, calc(100% - 40px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(111, 219, 255, 0.24);
  border-radius: 8px;
  color: #f5fdff;
  background: rgba(5, 19, 32, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.platform-progress-icon {
  position: relative;
  width: 30px;
  height: 38px;
  border: 3px solid #e9fbff;
  border-radius: 8px;
  animation: hourglass-flip 1.8s ease-in-out infinite;
}

.platform-progress-icon::before,
.platform-progress-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.platform-progress-icon::before {
  top: 6px;
  border-top: 11px solid var(--cyan);
}

.platform-progress-icon::after {
  bottom: 6px;
  border-bottom: 11px solid var(--teal);
}

@keyframes hourglass-flip {
  0%,
  42% {
    transform: rotate(0deg);
  }
  58%,
  100% {
    transform: rotate(180deg);
  }
}

.platform-progress-content {
  min-width: 0;
}

.platform-progress-content strong,
.platform-progress-content span,
.platform-progress-content small {
  display: block;
}

.platform-progress-content strong {
  font-size: 0.9rem;
}

.platform-progress-content span {
  margin-top: 3px;
  color: rgba(233, 251, 255, 0.76);
  font-size: 0.78rem;
  line-height: 1.35;
}

.platform-progress-content small {
  margin-top: 7px;
  color: rgba(233, 251, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 780;
}

.platform-progress-track {
  position: relative;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.platform-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--teal), var(--emerald));
  animation: model-progress 1.25s ease-in-out infinite;
}

.platform-progress-card.failed {
  border-color: rgba(111, 219, 255, 0.24);
  box-shadow: var(--shadow), inset 0 -2px 0 rgba(239, 68, 68, 0.55);
}

.platform-progress-card.failed .platform-progress-fill {
  width: 100%;
  animation: none;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.86), rgba(245, 158, 11, 0.76));
}

.platform-progress-card.complete {
  border-color: rgba(111, 219, 255, 0.24);
  box-shadow: var(--shadow), inset 0 -2px 0 rgba(34, 197, 94, 0.52);
}

.platform-progress-card.complete .platform-progress-fill {
  width: 100%;
  animation: none;
  background: linear-gradient(90deg, var(--cyan), var(--teal), var(--emerald));
}

.platform-progress-card.cancelled {
  border-color: rgba(111, 219, 255, 0.24);
  box-shadow: var(--shadow), inset 0 -2px 0 rgba(148, 163, 184, 0.48);
}

.platform-progress-card.cancelled .platform-progress-fill {
  width: 100%;
  animation: none;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.72), rgba(111, 219, 255, 0.5));
}

@keyframes model-progress {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(225%);
  }
}

.map-tools-control {
  position: absolute;
  z-index: 80;
  top: 16px;
  left: 16px;
  width: auto;
  min-width: 190px;
  border: 1px solid rgba(111, 219, 255, 0.22);
  border-radius: 10px;
  padding: 12px;
  color: #e9fbff;
  background: rgba(5, 19, 32, 0.88);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  transition: width 0.16s ease, padding 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.map-tools-control:not(.open) {
  width: auto;
  min-width: 156px;
  padding: 9px 11px;
}

.map-tools-control:not(.open) .map-tools-menu {
  display: none;
}

.port-selector-control {
  position: absolute;
  z-index: 79;
  top: 16px;
  left: 216px;
  right: auto;
  display: grid;
  gap: 8px;
  width: min(258px, calc(100% - 32px));
}

.map-tools-control.open ~ .port-selector-control {
  top: 16px;
}

.map-tools-control:not(.open) ~ .port-selector-control {
  top: 16px;
}

.port-selector-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  min-height: 48px;
  border: 1px solid rgba(111, 219, 255, 0.22);
  border-radius: 14px;
  padding: 9px 11px;
  color: #e9fbff;
  background: rgba(5, 19, 32, 0.84);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.port-selector-trigger:hover,
.port-selector-trigger[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.46);
  background: rgba(8, 31, 48, 0.9);
}

.port-selector-trigger span {
  color: rgba(233, 251, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 850;
}

.port-selector-trigger strong {
  grid-column: 1;
  color: #f8feff;
  font-size: 0.86rem;
  font-weight: 950;
}

.port-selector-trigger i {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  color: #bdfdf6;
  background: rgba(45, 212, 191, 0.1);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
}

.port-selector-menu {
  border: 1px solid rgba(111, 219, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  color: #e9fbff;
  background: rgba(5, 19, 32, 0.92);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.port-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.port-selector-header span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.port-selector-header strong {
  min-width: 0;
  color: #bdfdf6;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: right;
}

.port-option-list {
  display: grid;
  gap: 7px;
}

.port-option-card {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  color: rgba(233, 251, 255, 0.86);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.port-option-card:hover,
.port-option-card.active {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.48);
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.32), rgba(255, 255, 255, 0.065));
}

.port-option-card strong {
  color: #f8feff;
  font-size: 0.82rem;
  font-weight: 950;
}

.port-option-card small {
  color: rgba(233, 251, 255, 0.64);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
}

.port-active-camera-toggle {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  border-top: 1px solid rgba(111, 219, 255, 0.14);
  padding-top: 9px;
  color: rgba(233, 251, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.port-active-camera-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.port-active-camera-toggle span {
  position: relative;
  width: 34px;
  height: 19px;
  border: 1px solid rgba(111, 219, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.port-active-camera-toggle span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(233, 251, 255, 0.72);
  content: "";
  transition: transform 0.16s ease, background 0.16s ease;
}

.port-active-camera-toggle input:checked + span {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.18);
}

.port-active-camera-toggle input:checked + span::after {
  transform: translateX(15px);
  background: #5eead4;
}

.map-tools-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.map-tools-trigger:hover,
.map-tools-trigger[aria-expanded="true"] {
  color: #ffffff;
}

.map-tools-trigger span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #05202a;
  background: #e9fbff;
  font-size: 0.72rem;
  font-weight: 950;
}

.map-tools-trigger strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.map-tools-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(302px, calc(100vw - 32px));
  border: 1px solid rgba(111, 219, 255, 0.22);
  border-radius: 10px;
  padding: 12px;
  background: rgba(5, 19, 32, 0.9);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.map-basemap-select span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

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

.map-tool-btn {
  min-height: 32px;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 8px;
  color: rgba(233, 251, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.map-tool-btn:hover,
.map-tool-active {
  color: #ffffff;
  border-color: rgba(45, 212, 191, 0.56);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.42), rgba(45, 212, 191, 0.22));
}

.map-tool-wide {
  grid-column: 1 / -1;
}

.map-basemap-select {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.map-basemap-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(111, 219, 255, 0.14);
  border-radius: 10px;
  padding: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.map-basemap-option {
  min-height: 32px;
  border: 1px solid rgba(111, 219, 255, 0.16);
  border-radius: 8px;
  color: rgba(233, 251, 255, 0.78);
  background: rgba(3, 13, 25, 0.54);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.map-basemap-option:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.38);
  color: #ffffff;
  background: rgba(8, 31, 48, 0.9);
}

.map-basemap-option.active {
  border-color: rgba(45, 212, 191, 0.58);
  color: #05202a;
  background: linear-gradient(135deg, #67e8f9, #5eead4);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.2);
}

.map-tools-coordinates {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  border: 1px solid rgba(111, 219, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.map-tools-coordinates span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(233, 251, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 850;
}

.map-tools-coordinates strong {
  color: #e9fbff;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: right;
}

.measure-result {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(111, 219, 255, 0.14);
  color: rgba(233, 251, 255, 0.75);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.measurement-popup {
  color: #ecfeff;
  font-size: 0.82rem;
  font-weight: 850;
}

.mapboxgl-popup-content {
  border: 1px solid rgba(111, 219, 255, 0.28);
  border-radius: 8px;
  color: #ecfeff;
  background: rgba(6, 19, 31, 0.94);
  box-shadow: var(--shadow);
}

.mapboxgl-popup-close-button {
  color: #ecfeff;
}

@media (max-width: 1180px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-panel {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .map-panel {
    min-height: 620px;
  }

  .overview-hero-actions {
    min-width: 220px;
  }

  .vessel-type-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .satellite-form-grid,
  .satellite-roi-panel,
  .satellite-viz-list {
    grid-template-columns: 1fr;
  }

  .satellite-command-card .satellite-form-grid {
    grid-template-columns: minmax(220px, 1.4fr) minmax(135px, 0.8fr) minmax(135px, 0.8fr);
  }

  .water-quality-workflow-card .water-quality-form-grid {
    grid-template-columns: minmax(220px, 1.45fr) minmax(154px, 0.85fr) minmax(154px, 0.85fr);
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 10px;
  }

  .main-stage {
    min-height: calc(100vh - 20px);
  }

  .topbar,
  .hero-card,
  .section-title-row,
  .map-toolbar {
    display: grid;
  }

  .overview-dashboard-head {
    display: grid;
  }

  .overview-dashboard-actions {
    justify-content: flex-start;
  }

  .overview-summary-card-grid,
  .overview-operational-grid,
  .overview-mini-metric-row,
  .overview-camera-strip {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .kpi-grid,
  .stats-grid,
  .preview-grid,
  .overview-hero-stats,
  .overview-metric-grid,
  .overview-advanced-grid,
  .environment-grid,
  .overview-insights-grid,
  .environment-intelligence-strip,
  .overview-action-grid,
  .layer-toggle-grid,
  .vessel-toolbar,
  .overview-chart-grid,
  .vessel-control-grid,
  .vessel-type-chart,
  .vessel-type-summary-grid,
  .camera-summary-grid,
  .camera-preview-strip,
  .camera-kpi-grid,
  .camera-filter-grid,
  .camera-detail-grid,
    .camera-image-grid,
    .emission-product-strip,
    .emission-kpi-grid,
    .emission-split-grid,
    .marine-segmented-control,
    .marine-location-actions,
    .marine-location-controls,
    .marine-point-metrics,
    .marine-alert-card-grid,
    .marine-dashboard-grid,
    .marine-card-grid,
    .marine-summary-grid,
    .marine-detail-grid,
    .marine-chart-grid,
    .monitoring-layer-grid,
    .monitoring-control-grid,
    .monitoring-depth-legend,
    .monitoring-analytics-grid,
    .port-monitoring-product-card-grid,
    .water-quality-product-grid,
    .water-quality-secondary-actions,
    .water-quality-primary-actions,
    .water-quality-workflow-card .water-quality-form-grid,
    .maritime-summary-grid,
    .maritime-product-grid,
    .maritime-kpi-grid,
    .maritime-date-grid,
    .maritime-filter-grid,
    .maritime-split-grid,
    .maritime-layer-actions,
    .satellite-product-grid,
  .satellite-scene-toolbar,
  .satellite-form-grid,
  .satellite-roi-panel,
  .satellite-action-group.primary,
  .satellite-band-panel,
  .satellite-layer-actions,
  .product-grid,
  .product-strip,
  .button-grid {
    grid-template-columns: 1fr;
  }

  .button-grid .btn:first-child {
    grid-column: auto;
  }

  .satellite-scene-card {
    grid-template-columns: 1fr;
  }

  .satellite-scene-thumb {
    width: 100%;
    height: 128px;
  }

  .satellite-action-group > div,
  .satellite-scene-title,
  .satellite-scene-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .satellite-scene-actions {
    min-width: 0;
    justify-content: stretch;
  }

  .satellite-scene-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .satellite-command-card .satellite-form-grid {
    grid-template-columns: 1fr;
  }

  .overview-command-card {
    min-height: 0;
  }

  .overview-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-hero-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .hero-actions.overview-hero-actions {
    grid-template-columns: 1fr;
  }

  .overview-hero-actions .btn,
  .overview-action-grid .btn {
    width: 100%;
  }

  .map-canvas-wrap,
  .map-root {
    min-height: 560px;
  }

  .map-tools-control {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .port-selector-control {
    top: 76px;
    right: auto;
    left: 10px;
    width: min(258px, calc(100% - 20px));
  }

  .map-tools-control.open ~ .port-selector-control {
    top: 414px;
  }

  .map-tools-control:not(.open) ~ .port-selector-control {
    top: 76px;
  }

  .live-filter-options,
  .live-filter-options.two-col {
    grid-template-columns: 1fr;
  }

  .live-speed-histogram {
    gap: 6px;
  }

  .live-speed-bin {
    height: 132px;
    padding: 8px 5px;
  }

  .live-speed-bar {
    height: 70px;
  }

  .live-vessel-list-tools,
  .live-list-summary {
    grid-template-columns: 1fr;
  }

  .live-vessel-card-row.vessel-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .live-vessel-measure,
  .live-vessel-meta,
  .live-vessel-action {
    grid-column: 2;
    grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1fr);
    align-items: center;
  }

  .live-vessel-action {
    justify-items: stretch;
    border-left: 0;
    border-top: 1px solid rgba(111, 219, 255, 0.12);
    padding: 8px 0 0;
  }

  .camera-row {
    grid-template-columns: 1fr;
  }

  .emission-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .emission-rate {
    grid-column: 1 / -1;
    width: 100%;
  }

  .maritime-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .maritime-rate {
    grid-column: 1 / -1;
    width: 100%;
  }

  .camera-row-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .camera-row-meta {
    justify-items: start;
  }

  .satellite-scene-card,
  .satellite-viz-card {
    grid-template-columns: 1fr;
  }

  .satellite-scene-thumb,
  .satellite-viz-preview {
    width: 100%;
  }

  .satellite-scene-thumb {
    height: 128px;
  }

  .satellite-viz-preview {
    height: 64px;
  }

  .satellite-scene-select,
  .satellite-viz-action {
    width: 100%;
  }

}

@media (max-width: 1180px) {
  .history-card-meta {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .history-details-body {
    grid-template-columns: 1fr;
  }

  .history-detail-summary-card {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .history-header-actions,
  .history-filter-header,
  .history-list-toolbar,
  .history-card-topline,
  .history-card-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .history-sync-chip,
  .history-refresh-btn,
  .history-clear-btn,
  .history-card-actions .btn,
  .history-trash-btn {
    width: 100%;
  }

  .history-chip-row {
    grid-template-columns: 1fr;
  }

  .history-chip-row > span {
    padding-top: 0;
  }

  .history-custom-date-range {
    grid-column: auto;
  }

  .history-card-meta,
  .history-card-meta-strip {
    grid-template-columns: 1fr;
  }

  .history-list-modern {
    height: 560px;
    max-height: 560px;
  }

  .history-detail-summary-card dl,
  .history-detail-technical-card dl {
    grid-template-columns: 1fr;
  }
}
