* {
  box-sizing: border-box;
}

:root {
  --ink: #f8fbff;
  --muted: #96a1af;
  --line: rgba(255, 255, 255, 0.08);
  --panel: #0e1821;
  --panel-2: #101b26;
  --panel-3: #142331;
  --accent: #7bb9ff;
  --good: #4ec76f;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="light"] {
  --ink: #152233;
  --muted: #607084;
  --line: rgba(15, 23, 42, 0.11);
  --panel: #ffffff;
  --panel-2: #f6f9fc;
  --panel-3: #eaf0f6;
  --accent: #2563eb;
  --good: #15803d;
}

html,
body,
.app-shell {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  min-width: 0;
  overflow: hidden;
  touch-action: manipulation;
  background: #071019;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

:root[data-theme="light"] body,
:root[data-theme="light"] .app-shell {
  background: #edf3f8;
  color: var(--ink);
}

:root[data-theme="light"] .topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 250, 0.98)),
    #ffffff;
  border-bottom-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .brand {
  border-right-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(90deg, rgba(232, 239, 246, 0.72), rgba(255, 255, 255, 0.55));
}

:root[data-theme="light"] .nav-item {
  border-right-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.018);
  color: #526277;
}

:root[data-theme="light"] .nav-item.active {
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.05)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 22px rgba(37, 99, 235, 0.12);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.material-symbols-rounded {
  font-size: 24px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  line-height: 1;
}

.app-shell {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  padding-top: var(--safe-top);
  max-width: 100vw;
  overflow: hidden;
  background: #071019;
}

.topbar {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  align-items: center;
  height: 58px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(20, 29, 38, 0.98), rgba(9, 15, 22, 0.98)),
    #0b141d;
  border-bottom: 1px solid rgba(92, 111, 128, 0.26);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  z-index: 600;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 14px;
  padding: 0 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(7, 16, 24, 0.52), rgba(255, 255, 255, 0.02));
}

.brand-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
  max-height: 34px;
}

.main-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  min-width: 0;
  height: 100%;
  justify-content: stretch;
  gap: 0;
  overflow: hidden;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.06));
  color: #a7b1bf;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
}

.nav-item.active {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(42, 67, 84, 0.92), rgba(15, 28, 39, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 22px rgba(54, 159, 220, 0.16);
}

.nav-item.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 3px;
  background: #57c7ff;
  content: "";
}

.login-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(87, 199, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #0a141d, #050a0f);
}

.login-card {
  display: grid;
  width: min(390px, 100%);
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(9, 17, 25, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.login-card .brand-logo {
  width: 210px;
  margin-bottom: 8px;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: #9eabb9;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card input {
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: #f8fbff;
  font: inherit;
}

.login-card input:focus {
  border-color: rgba(87, 199, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(87, 199, 255, 0.13);
}

.login-card button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #57c7ff;
  color: #04111c;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.login-error {
  margin: 0;
  color: #ff9c9c;
  font-size: 12px;
  font-weight: 800;
}

body[data-user-role="viewer"] #newTracker,
body[data-user-role="viewer"] #importTeams,
body[data-user-role="viewer"] #newZone,
body[data-user-role="viewer"] .tracker-row-edit,
body[data-user-role="viewer"] .zone-row-edit {
  display: none !important;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-btn {
  width: 42px;
  height: 42px;
  color: #d5dce7;
}

.icon-btn.small {
  width: 34px;
  height: 34px;
}

.mobile-live-header,
.mobile-panel-title,
.mobile-panel-close,
.mobile-vessel-sheet,
.mobile-live-nav,
.mobile-page-header,
.mobile-app-nav,
.pull-refresh-indicator,
.pull-refresh-wash {
  display: none;
}

.workspace {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr) 404px;
  width: 100%;
  max-width: 100vw;
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns 220ms ease;
}

.workspace.right-collapsed {
  grid-template-columns: 316px minmax(0, 1fr) 0;
}

.workspace.left-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) 404px;
}

.workspace.left-collapsed.right-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) 0;
}

.left-panel,
.right-panel {
  min-width: 0;
  background:
    radial-gradient(circle at top left, rgba(60, 112, 148, 0.16), transparent 34%),
    linear-gradient(180deg, var(--panel-2), #0b141c);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.left-panel {
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.workspace.left-collapsed .left-panel {
  pointer-events: none;
  opacity: 0;
  transform: translateX(-28px);
}

.right-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-right: 0;
  border-left: 1px solid var(--line);
  width: 404px;
  max-width: 404px;
  min-height: 0;
  min-width: 0;
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.right-panel *,
.left-panel * {
  min-width: 0;
}

.workspace.right-collapsed .right-panel {
  pointer-events: none;
  opacity: 0;
  transform: translateX(28px);
}

.panel-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
  height: 86px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.collapse-left-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(123, 185, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(8, 15, 23, 0.38);
  color: #e9f3ff;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.collapse-left-btn:hover {
  border-color: rgba(123, 185, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(123, 185, 255, 0.18), rgba(123, 185, 255, 0.08)),
    rgba(8, 15, 23, 0.58);
  color: #ffffff;
}

.collapse-left-btn:active {
  transform: scale(0.96);
}

.collapse-left-btn .material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  font-variation-settings:
    "FILL" 0,
    "wght" 450,
    "GRAD" 0,
    "opsz" 24;
}

.vessel-search {
  display: block;
  width: 100%;
}

.vessel-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
}

.vessel-search input {
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9eef7;
}

.open-left-panel {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 535;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 29, 40, 0.96), rgba(11, 20, 30, 0.96));
  color: #edf5ff;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.27);
  cursor: pointer;
}

.open-left-panel[hidden] {
  display: none;
}

.vessel-list {
  height: calc(100vh - 144px);
  overflow: auto;
}

.empty-vessel-list {
  padding: 22px 24px;
  color: #8f9aa8;
  font-size: 13px;
}

.vessel-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 13px;
  min-width: 0;
  min-height: 96px;
  padding: 23px 24px 18px 22px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.vessel-row.active {
  background: rgba(123, 185, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(123, 185, 255, 0.1);
}

.vessel-row.offline {
  color: rgba(226, 232, 240, 0.68);
  background: rgba(255, 255, 255, 0.015);
}

.vessel-row.offline.active {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.14), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.vessel-row.measure-picked {
  background: linear-gradient(90deg, rgba(255, 189, 74, 0.18), rgba(255, 255, 255, 0.02));
}

.vessel-row.active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 0;
  background: #57c7ff;
  content: "";
}

.vessel-row.offline.active::before {
  background: #94a3b8;
}

.vessel-row.active .sidebar-arrow {
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.34));
}

.tracker-arrow,
.heading-marker {
  position: relative;
  display: inline-block;
  width: var(--tracker-size, 28px);
  height: var(--tracker-size, 28px);
  transform: rotate(var(--tracker-angle, var(--angle, -45deg)));
  transform-origin: 50% 50%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
}

.tracker-arrow::before,
.heading-marker::before {
  position: absolute;
  inset: 3px 5px;
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  background: rgba(255, 255, 255, 0.96);
  content: "";
}

.tracker-arrow::after,
.heading-marker::after {
  position: absolute;
  inset: 7px 10px 8px;
  clip-path: polygon(50% 0, 100% 100%, 50% 77%, 0 100%);
  background: var(--tracker-color, var(--marker, #4ec76f));
  content: "";
}

.tracker-arrow .tracker-core,
.heading-marker .tracker-core {
  position: absolute;
  display: none;
}

.tracker-arrow.offline,
.detail-top.offline .selected-marker {
  opacity: 0.66;
  filter: grayscale(1) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.24));
}

.tracker-arrow.offline::before,
.detail-top.offline .selected-marker::before {
  background: rgba(226, 232, 240, 0.88);
}

.tracker-arrow.offline::after,
.detail-top.offline .selected-marker::after {
  background: #7d8794;
}

.sidebar-arrow {
  --tracker-size: 30px;
}

.map-arrow {
  --tracker-size: 40px;
  filter:
    drop-shadow(0 5px 9px rgba(15, 23, 42, 0.36))
    drop-shadow(0 0 1px rgba(255, 255, 255, 1));
}

.map-arrow::before {
  inset: 2px 5px;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tracker-color) 34%, transparent));
}

.map-arrow::after {
  inset: 7px 11px 9px;
}

.map-arrow.offline {
  opacity: 0.72;
}

.map-arrow.offline::before {
  filter: drop-shadow(0 0 7px rgba(100, 116, 139, 0.26));
}

.vessel-meta {
  min-width: 0;
  overflow: hidden;
}

.vessel-meta strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vessel-meta strong.force-ellipsis {
  display: block;
  white-space: nowrap;
}

.vessel-meta span,
.course,
.list-update {
  display: block;
  overflow: hidden;
  color: #d7dde8;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vessel-row.offline .vessel-meta span,
.vessel-row.offline .course {
  color: #a5b0be;
}

.vessel-side-meta {
  align-self: center;
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px 8px;
  max-width: 104px;
  min-width: 86px;
  overflow: hidden;
  text-align: right;
}

.course {
  display: block;
  grid-column: 2;
}

.list-update {
  grid-column: 2;
  color: #8f9aa8;
  font-size: 12px;
}

.status-badge {
  grid-column: 1 / span 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.moving-badge {
  border: 1px solid rgba(78, 199, 111, 0.25);
  background: rgba(78, 199, 111, 0.12);
  color: #8ee6a5;
}

.online-badge {
  border: 1px solid rgba(123, 185, 255, 0.26);
  background: rgba(123, 185, 255, 0.12);
  color: #b7d8ff;
}

.offline-badge {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.measure-list-badge {
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 214, 139, 0.7);
  border-radius: 50%;
  background: rgba(255, 189, 74, 0.18);
  color: #ffd68b;
  font-size: 12px;
  font-weight: 900;
}

.map-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.map-stage.measuring #map {
  cursor: crosshair;
}

.map-stage.goto-active #map {
  cursor: crosshair;
}

.goto-target-icon {
  border: 0;
  background: transparent;
}

.goto-target-icon span,
.goto-target-icon span::before,
.goto-target-icon span::after {
  position: absolute;
  display: block;
  content: "";
}

.goto-target-icon span {
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(#05080c, #05080c) 50% 0 / 2px 12px no-repeat,
    linear-gradient(#05080c, #05080c) 50% 100% / 2px 12px no-repeat,
    linear-gradient(#05080c, #05080c) 0 50% / 12px 2px no-repeat,
    linear-gradient(#05080c, #05080c) 100% 50% / 12px 2px no-repeat;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.goto-target-icon span::before {
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 2px solid #05080c;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.goto-target-icon span::after {
  display: none;
}

.open-detail-panel {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 530;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 29, 40, 0.96), rgba(11, 20, 30, 0.96));
  color: #edf5ff;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.27);
  cursor: pointer;
}

.open-detail-panel[hidden] {
  display: none;
}

#map {
  position: absolute;
  inset: 0;
  touch-action: none;
  background: #eef3f8;
}

.map-zoom {
  position: absolute;
  top: 312px;
  left: 28px;
  z-index: 500;
  display: grid;
  width: 48px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
}

.map-zoom button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #0d1824;
  cursor: pointer;
}

.map-zoom button:hover {
  background: #ffffff;
}

.map-zoom button:last-child {
  border-bottom: 0;
  background: #0e1925;
  color: #dce7f5;
}

.map-zoom button:last-child:hover {
  background: #142333;
}

.map-zoom button:active {
  transform: translateY(1px);
}

.coords-box {
  position: absolute;
  right: 30px;
  bottom: calc(96px + var(--safe-bottom));
  z-index: 500;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #172032;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.leaflet-control-nautical-scale {
  margin: 0 0 calc(104px + var(--safe-bottom)) 36px !important;
  color: #0b1723;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.nautical-scale-label {
  display: block;
  margin-bottom: 2px;
}

.nautical-scale-line {
  display: block;
  height: 16px;
  border-right: 1px solid #0b1723;
  border-bottom: 2px solid #0b1723;
  border-left: 1px solid #0b1723;
}

.measure-panel,
.goto-panel {
  position: absolute;
  top: 22px;
  bottom: auto;
  left: 28px;
  z-index: 530;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 318px;
  min-height: 82px;
  padding: 15px 15px 15px 17px;
  border: 1px solid rgba(255, 189, 74, 0.28);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(16, 27, 38, 0.96), rgba(10, 18, 27, 0.96));
  color: #f8fbff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.measure-panel[hidden] {
  display: none;
}

.goto-panel {
  border-color: rgba(123, 185, 255, 0.32);
}

.workspace.left-collapsed .measure-panel,
.workspace.left-collapsed .goto-panel {
  top: 88px;
}

.measure-panel[hidden],
.goto-panel[hidden] {
  display: none;
}

.measure-panel strong,
.measure-panel small,
.measure-kicker,
.goto-panel strong,
.goto-panel small,
.goto-kicker {
  display: block;
}

.measure-kicker,
.goto-kicker {
  margin-bottom: 5px;
  color: #ffcf75;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.goto-kicker {
  color: #9dccff;
}

.measure-panel strong,
.goto-panel strong {
  font-size: 16px;
  line-height: 1.25;
}

.measure-panel small,
.goto-panel small {
  margin-top: 4px;
  color: #aeb8c6;
  font-size: 12px;
  line-height: 1.35;
}

.measure-panel button,
.goto-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
  transform 160ms ease;
}

.goto-panel:not(.has-destination) .goto-release {
  display: none;
}

.goto-panel .goto-release {
  flex-basis: auto;
  width: auto;
  min-width: 104px;
  padding: 0 13px;
  border-radius: 999px;
  gap: 7px;
}

.goto-release .material-symbols-rounded {
  font-size: 19px;
}

.goto-release strong {
  font-size: 11px;
  line-height: 1;
}

.measure-panel button:hover,
.goto-panel button:hover,
#closeDetailPanel:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
}

.measure-panel button:active,
.goto-panel button:active,
#closeDetailPanel:active {
  transform: scale(0.96);
}

.layer-panel {
  position: absolute;
  right: 22px;
  bottom: calc(92px + var(--safe-bottom));
  z-index: 520;
  display: none;
  width: 276px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(12, 22, 32, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.layer-panel.open {
  display: block;
}

.layer-panel-title {
  padding: 4px 8px 10px;
  color: #eff5ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.layer-option,
.seamark-toggle {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d8e1ec;
  text-align: left;
  cursor: pointer;
}

.layer-option.active {
  border-color: rgba(123, 185, 255, 0.36);
  background: rgba(123, 185, 255, 0.13);
}

.layer-option strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.layer-option small {
  color: #96a3b2;
  font-size: 12px;
}

.seamark-toggle {
  grid-template-columns: 1fr 46px;
  gap: 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8e1ec;
}

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

.seamark-copy {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
}

.seamark-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.seamark-copy small {
  display: block;
  color: #96a3b2;
  font-size: 12px;
  line-height: 1.25;
}

.switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a9b5c4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.seamark-toggle input:checked ~ .switch-track {
  border-color: rgba(123, 185, 255, 0.5);
  background: rgba(47, 128, 237, 0.42);
}

.seamark-toggle input:checked ~ .switch-track .switch-thumb {
  background: #eaf4ff;
  transform: translateX(20px);
}

.seamark-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}

.bottom-tools {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
  height: calc(68px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(17, 29, 40, 0.98), rgba(8, 15, 23, 0.98));
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.bottom-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #aeb9c8;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.bottom-tools button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
}

.bottom-tools button.active {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(66, 169, 224, 0.2), rgba(31, 63, 86, 0.18));
}

.tool-icon-box {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.bottom-tools button.active .tool-icon-box {
  border-color: rgba(87, 199, 255, 0.42);
  background: rgba(87, 199, 255, 0.16);
  box-shadow: 0 0 18px rgba(87, 199, 255, 0.12);
}

.tool-icon {
  font-size: 23px;
}

.tool-label {
  min-width: 76px;
  text-align: left;
}

.detail-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
  height: 96px;
  padding: 0 24px;
  min-width: 0;
}

.detail-top h1 {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#closeDetailPanel {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  line-height: 1;
}

#closeDetailPanel .material-symbols-rounded {
  display: block;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
}

.selected-marker {
  --marker: #4ec76f;
  --tracker-size: 32px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.018);
}

.tabs button {
  position: relative;
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  color: #8f9aa8;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.tabs button:last-child {
  border-right: 0;
}

.tabs button:hover {
  background: rgba(255, 255, 255, 0.035);
  color: #d7e1ed;
}

.tabs button.active {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.1), rgba(87, 199, 255, 0.035));
}

.tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.details {
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 18px 27px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 185, 255, 0.28) transparent;
}

.details::-webkit-scrollbar {
  width: 8px;
}

.details::-webkit-scrollbar-track {
  background: transparent;
}

.details::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(123, 185, 255, 0.28);
  background-clip: padding-box;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.detail-row dt {
  min-width: 0;
  overflow: hidden;
  color: #aab4c2;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-row dd {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: #f6f8fb;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-row .moving-status,
.detail-row .underway {
  color: var(--good);
}

.detail-row .online-status {
  color: #7bb9ff;
}

.detail-row .offline-status {
  color: #cbd5e1;
}

.detail-row .muted-status {
  color: #aab4c2;
}

.empty-detail dd {
  color: #9aa6b5;
}

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

.track-summary > div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.track-summary span,
.detail-state small,
.history-item small,
.history-item em,
.detail-note {
  color: #9aa6b5;
  font-size: 12px;
}

.track-summary strong {
  display: block;
  margin-top: 7px;
  color: #f8fbff;
  font-size: 18px;
  line-height: 1.15;
}

.detail-note {
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 2px solid rgba(123, 185, 255, 0.58);
  background: rgba(123, 185, 255, 0.06);
  line-height: 1.45;
}

.detail-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  gap: 8px;
  color: #dbe7f5;
  text-align: center;
}

.detail-state .material-symbols-rounded {
  color: #7bb9ff;
  font-size: 34px;
}

.detail-state strong {
  font-size: 15px;
}

.history-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.history-filter label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.history-filter label span {
  color: #9aa6b5;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.history-filter input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #f8fbff;
  font-size: 12px;
  color-scheme: dark;
  outline: 0;
}

.history-filter input:focus {
  border-color: rgba(123, 185, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(123, 185, 255, 0.1);
}

.history-filter button {
  grid-column: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  border: 1px solid rgba(123, 185, 255, 0.28);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.history-filter button .material-symbols-rounded {
  font-size: 19px;
}

.history-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 117, 117, 0.24);
  border-radius: 7px;
  background: rgba(255, 89, 89, 0.1);
  color: #ffc7c7;
  font-size: 12px;
}

.history-list {
  display: grid;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.history-item:hover,
.history-item.active {
  padding-right: 8px;
  padding-left: 8px;
  border-radius: 7px;
  background: rgba(123, 185, 255, 0.08);
}

.history-item.active {
  box-shadow: inset 2px 0 0 #7bb9ff;
}

.history-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.history-item strong,
.history-item small,
.history-item em {
  min-width: 0;
}

.history-item strong {
  color: #f8fbff;
  font-size: 13px;
  line-height: 1.2;
}

.history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

.history-item em {
  flex: 0 0 auto;
  font-style: normal;
  line-height: 1.2;
  text-align: right;
}

.history-point-icon span {
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #7bb9ff;
  box-shadow:
    0 0 0 5px rgba(123, 185, 255, 0.22),
    0 12px 24px rgba(0, 0, 0, 0.35);
}

.history-point-label {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.history-point-card {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(123, 185, 255, 0.24);
  border-radius: 7px;
  background: rgba(8, 15, 23, 0.92);
  color: #f8fbff;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24);
}

.history-point-card strong {
  font-size: 12px;
  line-height: 1.2;
}

.history-point-card span {
  color: #9aa6b5;
  font-size: 11px;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  height: 70px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(16, 27, 38, 0.92), rgba(8, 15, 23, 0.98)),
    #0b141d;
  box-shadow: 0 -18px 34px rgba(0, 0, 0, 0.22);
}

.detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-right: 0;
  background: rgba(255, 255, 255, 0.028);
  color: #b7c2d0;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.detail-actions button:first-child {
  border-radius: 0;
}

.detail-actions button:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 0;
}

.detail-actions button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.detail-actions button:active {
  transform: translateY(1px);
}

.detail-actions .material-symbols-rounded {
  font-size: 21px;
}

.detail-actions button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-actions button.active {
  border-color: rgba(87, 199, 255, 0.36);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(87, 199, 255, 0.58);
}

.leaflet-tooltip.vessel-label {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.leaflet-tooltip.vessel-label::before {
  display: none;
}

.vessel-card {
  min-width: 172px;
  padding: 12px 13px 11px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
}

.vessel-card-title {
  display: block;
}

.vessel-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.vessel-card-meta {
  display: flex;
  gap: 18px;
  margin-top: 7px;
}

.vessel-card-meta span {
  color: #334155;
  font-size: 13px;
  line-height: 1.1;
}

.vessel-card-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-top: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.vessel-card-status.moving {
  background: rgba(78, 199, 111, 0.12);
  color: #15803d;
}

.vessel-card-status.online {
  background: rgba(123, 185, 255, 0.14);
  color: #1d4ed8;
}

.vessel-card-status.offline {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.geofences-app {
  grid-template-rows: 58px minmax(0, 1fr);
}

.geofence-workspace {
  display: grid;
  grid-template-columns: 382px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.geofence-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(60, 112, 148, 0.16), transparent 34%),
    linear-gradient(180deg, var(--panel-2), #0b141c);
  overflow: hidden;
}

.geofence-panel.editor-open {
  grid-template-rows: minmax(0, 1fr);
}

.geofence-panel.editor-open .geofence-panel-head,
.geofence-panel.editor-open .geofence-list,
.geofence-panel.editor-open .add-zone-btn {
  display: none;
}

.geofence-panel-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
  height: 86px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.geofence-panel-head span,
.geofence-form label > span {
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.geofence-panel-head button,
.add-zone-btn,
.zone-row-edit,
.form-actions button,
.draw-actions button {
  cursor: pointer;
}

.geofence-panel-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(123, 185, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(8, 15, 23, 0.38);
  color: #e9f3ff;
}

.geofence-search {
  display: block;
  width: 100%;
}

.geofence-search input,
.geofence-form input[type="text"],
.geofence-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9eef7;
  outline: 0;
}

.geofence-search input,
.geofence-form input[type="text"] {
  height: 42px;
}

.geofence-search input {
  padding: 0 14px;
}

.geofence-form input[type="text"] {
  padding: 0 13px;
}

.geofence-form textarea {
  min-height: 108px;
  resize: vertical;
  padding: 11px 13px;
  line-height: 1.45;
}

.geofence-search input::placeholder,
.geofence-form input::placeholder,
.geofence-form textarea::placeholder {
  color: #7f8b99;
}

.geofence-list {
  min-height: 0;
  overflow: auto;
}

.zone-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 21px 16px 18px 22px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.zone-row.active {
  background: rgba(123, 185, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(123, 185, 255, 0.1);
}

.zone-row.active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #57c7ff;
  content: "";
}

.zone-swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--zone-color) 18%, transparent);
}

.zone-swatch::after {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--zone-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--zone-color) 38%, transparent);
  content: "";
}

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

.zone-row strong {
  color: #f8fbff;
  font-size: 14px;
  text-transform: uppercase;
}

.zone-row span {
  margin-top: 5px;
  color: #98a5b4;
  font-size: 12px;
}

.zone-row-edit {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7f5;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.zone-row-edit:hover {
  border-color: rgba(123, 185, 255, 0.36);
  background: rgba(123, 185, 255, 0.1);
  color: #ffffff;
}

.zone-row-edit:active {
  transform: scale(0.96);
}

.zone-row-edit .material-symbols-rounded {
  display: block;
  font-size: 19px;
  transform: translateY(-1px);
}

.empty-zone-list {
  padding: 18px 20px;
  color: #8f9aa8;
  font-size: 13px;
}

.geofence-form {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 20px calc(10px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(5, 10, 16, 0.28);
}

.geofence-panel.editor-open .geofence-form {
  min-height: 0;
  overflow: auto;
  padding-bottom: calc(18px + var(--safe-bottom));
  border-top: 0;
  background:
    radial-gradient(circle at top left, rgba(60, 112, 148, 0.16), transparent 34%),
    linear-gradient(180deg, var(--panel-2), #0b141c);
}

.add-zone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(87, 199, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.add-zone-btn .material-symbols-rounded {
  font-size: 20px;
}

.geofence-form label {
  display: grid;
  gap: 7px;
}

.zone-details-step {
  position: static;
  z-index: 20;
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.zone-details-step[hidden] {
  display: none;
}

.step-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-divider span {
  display: block;
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.step-divider strong {
  display: block;
  margin-top: 5px;
  color: #f8fbff;
  font-size: 14px;
}

.step-divider button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.step-divider button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
}

.step-divider button:active {
  transform: scale(0.96);
}

.step-divider button .material-symbols-rounded {
  font-size: 20px;
}

.segmented,
.draw-actions,
.form-actions {
  display: grid;
  gap: 8px;
}

.segmented {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-width: 0;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #9aa6b5;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.segmented button .material-symbols-rounded {
  font-size: 23px;
}

.segmented button strong {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.segmented button.active {
  border-color: rgba(123, 185, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.14), rgba(123, 185, 255, 0.06)),
    rgba(123, 185, 255, 0.08);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(87, 199, 255, 0.58);
}

.segmented button[data-zone-type="safe"].active {
  border-color: rgba(78, 199, 111, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(78, 199, 111, 0.62);
}

.segmented button[data-zone-type="restricted"].active {
  border-color: rgba(239, 68, 68, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(239, 68, 68, 0.66);
}

.color-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.color-row button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: var(--swatch);
  cursor: pointer;
}

.color-row button.active {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.draw-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-bottom: 0;
  border-top: 0;
}

.draw-actions button,
.coordinates-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 850;
}

.draw-actions button {
  height: 42px;
  gap: 6px;
}

.draw-actions button:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 850;
}

.draw-actions button.active,
.draw-actions button:hover,
.coordinates-apply:hover {
  border-color: rgba(123, 185, 255, 0.36);
  background: rgba(123, 185, 255, 0.11);
  color: #ffffff;
}

.draw-actions button:disabled,
.form-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.draw-actions .material-symbols-rounded,
.coordinates-apply .material-symbols-rounded,
.form-actions .material-symbols-rounded {
  font-size: 19px;
}

.coordinates-apply {
  height: 42px;
  cursor: pointer;
}

.form-actions {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.form-actions button:first-child {
  border-color: rgba(87, 199, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
}

#deleteZone {
  color: #ffc7c7;
}

.sync-message {
  min-height: 18px;
  color: #8f9aa8;
  font-size: 12px;
}

.geofence-panel:not(.editor-open) .sync-message:empty {
  display: none;
}

.sync-message.success {
  color: #8ee6a5;
}

.sync-message.error {
  color: #ffc7c7;
}

.geofence-map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#geofenceMap {
  width: 100%;
  height: 100%;
  background: #e7eef4;
}

.leaflet-tooltip.zone-label {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.leaflet-tooltip.zone-label::before {
  display: none;
}

.zone-tooltip {
  padding: 10px 11px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
}

.zone-tooltip strong,
.zone-tooltip span {
  display: block;
}

.zone-tooltip strong {
  font-size: 12px;
  text-transform: uppercase;
}

.zone-tooltip span {
  margin-top: 4px;
  color: #475569;
  font-size: 11px;
}

.leaflet-draw-toolbar a {
  background-color: #ffffff;
}

.fleet-app {
  grid-template-rows: 58px minmax(0, 1fr);
}

.fleet-workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.fleet-panel,
.fleet-editor-stage {
  min-width: 0;
  min-height: 0;
}

.fleet-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(60, 112, 148, 0.16), transparent 34%),
    linear-gradient(180deg, var(--panel-2), #0b141c);
  overflow: hidden;
}

.fleet-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
  height: 86px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.fleet-panel-head button,
.fleet-editor-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.fleet-panel-head button {
  justify-self: end;
  border-radius: 8px;
}

.fleet-panel-head button:hover,
.fleet-editor-head button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
}

.fleet-panel-head button:active,
.fleet-editor-head button:active {
  transform: scale(0.96);
}

.fleet-search input,
.fleet-editor input[type="text"],
.fleet-editor select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9eef7;
  outline: 0;
}

.fleet-search input,
.fleet-editor input[type="text"],
.fleet-editor select {
  padding: 0 13px;
}

.fleet-search input::placeholder,
.fleet-editor input::placeholder {
  color: #7f8b99;
}

.fleet-list {
  min-height: 0;
  overflow: auto;
}

.tracker-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 19px 16px 17px 22px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.tracker-row.active {
  background: rgba(123, 185, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(123, 185, 255, 0.1);
}

.tracker-row.active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #57c7ff;
  content: "";
}

.tracker-row.disabled {
  opacity: 0.56;
}

.tracker-swatch {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tracker-color) 36%, transparent), transparent),
    rgba(255, 255, 255, 0.045);
}

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

.tracker-row strong {
  color: #f8fbff;
  font-size: 14px;
  text-transform: uppercase;
}

.tracker-row span {
  margin-top: 5px;
  color: #98a5b4;
  font-size: 12px;
}

.tracker-row em {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #dbe7f5;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.tracker-row em.moving {
  color: #afffc1;
}

.tracker-row em.online {
  color: #b9ddff;
}

.tracker-row em.offline,
.tracker-row.disabled em {
  color: #ffc7c7;
}

.empty-tracker-list {
  padding: 18px 20px;
  color: #8f9aa8;
  font-size: 13px;
}

.fleet-dock {
  padding: 18px 20px calc(10px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(5, 10, 16, 0.28);
}

.add-tracker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(87, 199, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.fleet-editor-stage {
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(87, 199, 255, 0.12), transparent 38%),
    #071019;
}

.fleet-editor {
  display: grid;
  gap: 18px;
  width: min(860px, calc(100% - 48px));
  margin: 24px auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(14, 24, 33, 0.82);
}

.fleet-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fleet-editor-head span,
.fleet-editor label > span {
  display: block;
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fleet-editor-head strong {
  display: block;
  margin-top: 5px;
  color: #f8fbff;
  font-size: 18px;
  text-transform: uppercase;
}

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

.fleet-editor-wide {
  grid-column: 1 / -1;
}

.fleet-editor label {
  display: grid;
  gap: 7px;
}

.tracker-color-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.tracker-color-row button {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: var(--swatch);
  cursor: pointer;
}

.tracker-color-row button.active {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.tracker-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.tracker-toggle input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #57c7ff;
}

.tracker-toggle strong,
.tracker-toggle small {
  display: block;
}

.tracker-toggle strong {
  color: #f8fbff;
  font-size: 13px;
  text-transform: uppercase;
}

.tracker-toggle small {
  margin-top: 4px;
  color: #98a5b4;
  font-size: 12px;
  line-height: 1.35;
}

.fleet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}

.fleet-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.fleet-actions button:first-child {
  border-color: rgba(87, 199, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
}

.fleet-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

#deleteTracker {
  color: #ffc7c7;
}

.fleet-message {
  min-height: 18px;
  color: #8f9aa8;
  font-size: 12px;
}

.fleet-message.success {
  color: #8ee6a5;
}

.fleet-message.error {
  color: #ffc7c7;
}

@media (max-width: 980px) {
  .geofence-workspace {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .geofence-panel {
    font-size: 13px;
  }

  .fleet-workspace {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .geofence-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .geofence-panel {
    grid-row: 2;
    max-height: 54vh;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .geofence-map-stage {
    grid-row: 1;
  }

  .fleet-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 45vh) minmax(0, 1fr);
  }

  .fleet-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fleet-editor {
    width: calc(100% - 28px);
    margin: 14px auto;
    padding: 18px;
  }

  .fleet-editor-grid {
    grid-template-columns: 1fr;
  }

  .tracker-color-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fleet-workspace {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  background:
    radial-gradient(circle at top right, rgba(87, 199, 255, 0.1), transparent 34%),
    #071019;
}

.fleet-list-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
}

.fleet-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 38px auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fleet-toolbar > button,
.tracker-row-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe7f5;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.fleet-toolbar > button:hover,
.tracker-row-edit:hover {
  border-color: rgba(123, 185, 255, 0.36);
  background: rgba(123, 185, 255, 0.1);
  color: #ffffff;
}

.fleet-toolbar > button:active,
.tracker-row-edit:active {
  transform: scale(0.96);
}

.fleet-toolbar .add-tracker-btn {
  gap: 8px;
  width: auto;
  padding: 0 15px;
  border-color: rgba(87, 199, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
}

.fleet-toolbar .import-teams-btn {
  gap: 8px;
  width: auto;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.fleet-table {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(14, 24, 33, 0.74);
}

.fleet-table-head,
.tracker-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(150px, 0.9fr) 86px minmax(110px, 0.7fr) minmax(170px, 1fr) 42px;
  align-items: center;
  gap: 14px;
}

.fleet-table-head {
  height: 44px;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fleet-list {
  height: calc(100% - 44px);
}

.tracker-row {
  min-height: 64px;
  padding: 0 16px 0 18px;
}

.tracker-row em {
  justify-self: start;
  width: max-content;
  min-width: 0;
  height: 22px;
  padding: 0 9px;
  line-height: 22px;
}

.tracker-row::before {
  display: none;
}

.tracker-row.active {
  background: rgba(123, 185, 255, 0.08);
}

.tracker-name-cell {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tracker-name-cell .tracker-swatch {
  margin-top: 0;
}

.tracker-name-cell small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #98a5b4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-row > span {
  overflow: hidden;
  margin-top: 0;
  color: #b9c5d3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-row-edit {
  width: 34px;
  height: 34px;
  padding: 0;
}

.tracker-row-edit .material-symbols-rounded {
  display: block;
  font-size: 19px;
  transform: translateY(-1px);
}

.fleet-editor-stage {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
  background: rgba(3, 8, 13, 0.72);
  backdrop-filter: blur(8px);
}

.fleet-editor-stage[hidden] {
  display: none;
}

.fleet-editor {
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  margin: 0;
  overflow: auto;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.fleet-page-message {
  min-height: 18px;
  margin-top: 10px;
  color: #8f9aa8;
  font-size: 12px;
}

.fleet-page-message.success {
  color: #8ee6a5;
}

.fleet-page-message.error {
  color: #ffc7c7;
}

.ops-app {
  grid-template-rows: 58px minmax(0, 1fr);
}

.ops-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(87, 199, 255, 0.1), transparent 34%),
    #071019;
}

.ops-toolbar,
.reports-toolbar {
  display: grid;
  align-items: end;
  gap: 10px;
}

.ops-toolbar {
  grid-template-columns: minmax(240px, 1fr) 180px 38px;
}

.reports-toolbar {
  grid-template-columns: minmax(180px, 1fr) 210px 210px auto;
}

.ops-search input,
.ops-toolbar select,
.reports-toolbar input,
.reports-toolbar select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9eef7;
  outline: 0;
}

.reports-toolbar label {
  display: grid;
  gap: 7px;
}

.reports-toolbar label > span {
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ops-toolbar button,
.reports-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(87, 199, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.ops-toolbar button {
  width: 38px;
  padding: 0;
}

.ops-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ops-summary article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    rgba(14, 24, 33, 0.72);
}

.ops-summary span {
  display: block;
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-summary strong {
  display: block;
  margin-top: 8px;
  color: #f8fbff;
  font-size: 24px;
  line-height: 1;
}

.ops-table {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(14, 24, 33, 0.74);
}

.alerts-head,
.alert-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(150px, 0.9fr) 110px 100px minmax(160px, 0.9fr);
  align-items: center;
  gap: 14px;
}

.reports-head,
.report-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) 110px 110px;
  align-items: center;
  gap: 14px;
}

.alerts-head,
.reports-head {
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.alerts-list,
.reports-list {
  height: calc(100% - 44px);
  overflow: auto;
}

.alert-row,
.report-row {
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.alert-row strong {
  display: block;
  color: #f8fbff;
  font-size: 13px;
  text-transform: uppercase;
}

.alert-row small {
  display: block;
  margin-top: 4px;
  color: #98a5b4;
  font-size: 12px;
}

.alert-row > span,
.report-row > span {
  overflow: hidden;
  color: #b9c5d3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row em {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #dbe7f5;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.alert-row em.critical {
  color: #ffc7c7;
}

.alert-row em.warning {
  color: #ffd99a;
}

.ops-empty {
  padding: 18px;
  color: #8f9aa8;
  font-size: 13px;
}

.ops-message {
  min-height: 18px;
  color: #8f9aa8;
  font-size: 12px;
}

.ops-message.error {
  color: #ffc7c7;
}

.system-app {
  grid-template-rows: 58px minmax(0, 1fr);
}

.system-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 22px;
  overflow: auto;
  align-items: start;
  background:
    radial-gradient(circle at top right, rgba(87, 199, 255, 0.1), transparent 34%),
    #071019;
}

.system-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    rgba(14, 24, 33, 0.76);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-content: start;
  width: min(1120px, 100%);
  min-height: 0;
}

.system-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.system-card-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.system-card-head > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(123, 185, 255, 0.18);
  border-radius: 8px;
  background: rgba(123, 185, 255, 0.08);
  color: #b9ddff;
}

.system-card-head strong,
.system-card-head small {
  display: block;
}

.system-card-head strong {
  color: #f8fbff;
  font-size: 14px;
  text-transform: uppercase;
}

.system-card-head small {
  margin-top: 4px;
  color: #98a5b4;
  font-size: 12px;
  line-height: 1.35;
}

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

.theme-choice button,
.system-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.theme-choice button.active,
.system-refresh {
  border-color: rgba(87, 199, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
}

.account-details {
  display: grid;
  gap: 8px;
}

.account-details div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
}

.account-details span {
  color: #98a5b4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-details strong {
  overflow: hidden;
  color: #f8fbff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border: 1px solid rgba(87, 199, 255, 0.34);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(87, 199, 255, 0.18), rgba(35, 83, 112, 0.16)),
    rgba(123, 185, 255, 0.06);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.system-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.system-details div {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.system-details dt,
.system-details dd {
  margin: 0;
  min-width: 0;
}

.system-details dt {
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-details dd {
  overflow: hidden;
  color: #f8fbff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-message {
  min-height: 18px;
  color: #8f9aa8;
  font-size: 12px;
}

.system-message.error {
  color: #ffc7c7;
}

:root[data-theme="light"] .left-panel,
:root[data-theme="light"] .right-panel,
:root[data-theme="light"] .geofence-panel,
:root[data-theme="light"] .fleet-panel,
:root[data-theme="light"] .fleet-editor,
:root[data-theme="light"] .fleet-table,
:root[data-theme="light"] .ops-table,
:root[data-theme="light"] .ops-summary article,
:root[data-theme="light"] .system-card {
  border-color: rgba(15, 23, 42, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 253, 0.88)),
    #ffffff;
}

:root[data-theme="light"] .workspace,
:root[data-theme="light"] .fleet-workspace,
:root[data-theme="light"] .ops-workspace,
:root[data-theme="light"] .system-workspace,
:root[data-theme="light"] .fleet-editor-stage,
:root[data-theme="light"] .geofence-panel.editor-open .geofence-form {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    #edf3f8;
}

:root[data-theme="light"] .fleet-editor-stage {
  background: rgba(226, 235, 244, 0.72);
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select {
  border-color: rgba(15, 23, 42, 0.13) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #152233 !important;
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: #8290a3 !important;
}

:root[data-theme="light"] .vessel-row strong,
:root[data-theme="light"] .zone-row strong,
:root[data-theme="light"] .tracker-row strong,
:root[data-theme="light"] .fleet-editor-head strong,
:root[data-theme="light"] .ops-summary strong,
:root[data-theme="light"] .system-card-head strong,
:root[data-theme="light"] .system-details dd,
:root[data-theme="light"] .alert-row strong {
  color: #152233;
}

:root[data-theme="light"] .vessel-row span,
:root[data-theme="light"] .zone-row span,
:root[data-theme="light"] .tracker-row span,
:root[data-theme="light"] .tracker-name-cell small,
:root[data-theme="light"] .fleet-editor-head small,
:root[data-theme="light"] .system-card-head small,
:root[data-theme="light"] .alert-row small,
:root[data-theme="light"] .report-row > span,
:root[data-theme="light"] .alert-row > span,
:root[data-theme="light"] .fleet-table-head,
:root[data-theme="light"] .alerts-head,
:root[data-theme="light"] .reports-head,
:root[data-theme="light"] .ops-summary span,
:root[data-theme="light"] .system-details dt {
  color: #607084;
}

:root[data-theme="light"] .fleet-table-head,
:root[data-theme="light"] .alerts-head,
:root[data-theme="light"] .reports-head,
:root[data-theme="light"] .tracker-row,
:root[data-theme="light"] .alert-row,
:root[data-theme="light"] .report-row,
:root[data-theme="light"] .system-details div {
  border-color: rgba(15, 23, 42, 0.09);
}

:root[data-theme="light"] .account-details div {
  border-color: rgba(15, 23, 42, 0.09);
  background: rgba(15, 23, 42, 0.025);
}

:root[data-theme="light"] .account-details span {
  color: #607084;
}

:root[data-theme="light"] .account-details strong {
  color: #152233;
}

:root[data-theme="light"] .zone-row.active,
:root[data-theme="light"] .tracker-row.active,
:root[data-theme="light"] .vessel-row.active {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

:root[data-theme="light"] .theme-choice button,
:root[data-theme="light"] .system-refresh,
:root[data-theme="light"] .fleet-actions button,
:root[data-theme="light"] .draw-actions button,
:root[data-theme="light"] .coordinates-apply,
:root[data-theme="light"] .tracker-row-edit,
:root[data-theme="light"] .fleet-toolbar > button {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: #334155;
}

:root[data-theme="light"] .theme-choice button.active,
:root[data-theme="light"] .system-refresh,
:root[data-theme="light"] .fleet-actions button:first-child,
:root[data-theme="light"] .account-logout,
:root[data-theme="light"] .add-zone-btn,
:root[data-theme="light"] .add-tracker-btn,
:root[data-theme="light"] .reports-toolbar button,
:root[data-theme="light"] .ops-toolbar button {
  border-color: rgba(37, 99, 235, 0.28);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.05)),
    #ffffff;
  color: #0f172a;
}

:root[data-theme="light"] .panel-head,
:root[data-theme="light"] .geofence-panel-head,
:root[data-theme="light"] .fleet-panel-head,
:root[data-theme="light"] .detail-top,
:root[data-theme="light"] .tabs,
:root[data-theme="light"] .detail-actions,
:root[data-theme="light"] .geofence-form,
:root[data-theme="light"] .fleet-dock,
:root[data-theme="light"] .bottom-tools {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 254, 0.84)),
    rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

:root[data-theme="light"] .measure-panel,
:root[data-theme="light"] .goto-panel,
:root[data-theme="light"] .layer-panel {
  border-color: rgba(15, 23, 42, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 253, 0.96)),
    #ffffff;
  color: #152233;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

:root[data-theme="light"] .collapse-left-btn,
:root[data-theme="light"] .geofence-panel-head button,
:root[data-theme="light"] .fleet-panel-head button,
:root[data-theme="light"] .step-divider button,
:root[data-theme="light"] #closeDetailPanel,
:root[data-theme="light"] .measure-panel button,
:root[data-theme="light"] .goto-panel button,
:root[data-theme="light"] .fleet-editor-head button {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
}

:root[data-theme="light"] .bottom-tools button,
:root[data-theme="light"] .tabs button,
:root[data-theme="light"] .detail-actions button,
:root[data-theme="light"] .layer-option,
:root[data-theme="light"] .seamark-toggle {
  border-color: rgba(15, 23, 42, 0.09);
  color: #607084;
}

:root[data-theme="light"] .bottom-tools button:hover,
:root[data-theme="light"] .tabs button:hover,
:root[data-theme="light"] .layer-option:hover,
:root[data-theme="light"] .seamark-toggle:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #152233;
}

:root[data-theme="light"] .bottom-tools button.active,
:root[data-theme="light"] .tabs button.active,
:root[data-theme="light"] .layer-option.active {
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.035)),
    rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .tool-icon-box {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.035);
}

:root[data-theme="light"] .bottom-tools button.active .tool-icon-box {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: none;
}

:root[data-theme="light"] .detail-top h1,
:root[data-theme="light"] .detail-row dd,
:root[data-theme="light"] .track-summary strong,
:root[data-theme="light"] .detail-state,
:root[data-theme="light"] .layer-panel-title,
:root[data-theme="light"] .layer-option strong,
:root[data-theme="light"] .measure-panel strong,
:root[data-theme="light"] .goto-panel strong,
:root[data-theme="light"] .seamark-copy strong,
:root[data-theme="light"] .step-divider strong {
  color: #152233;
}

:root[data-theme="light"] .detail-row dt,
:root[data-theme="light"] .track-summary span,
:root[data-theme="light"] .detail-state small,
:root[data-theme="light"] .history-item small,
:root[data-theme="light"] .history-item em,
:root[data-theme="light"] .detail-note,
:root[data-theme="light"] .layer-option small,
:root[data-theme="light"] .measure-panel small,
:root[data-theme="light"] .goto-panel small,
:root[data-theme="light"] .seamark-copy small,
:root[data-theme="light"] .geofence-panel-head span,
:root[data-theme="light"] .geofence-form label > span,
:root[data-theme="light"] .step-divider span,
:root[data-theme="light"] .fleet-editor label > span,
:root[data-theme="light"] .reports-toolbar label > span {
  color: #607084;
}

:root[data-theme="light"] .detail-row,
:root[data-theme="light"] .history-item,
:root[data-theme="light"] .tabs,
:root[data-theme="light"] .track-summary > div,
:root[data-theme="light"] .tracker-toggle,
:root[data-theme="light"] .zone-row,
:root[data-theme="light"] .vessel-row {
  border-color: rgba(15, 23, 42, 0.09);
}

:root[data-theme="light"] .track-summary > div,
:root[data-theme="light"] .detail-note,
:root[data-theme="light"] .history-item,
:root[data-theme="light"] .tracker-toggle {
  background: rgba(15, 23, 42, 0.025);
}

:root[data-theme="light"] .zone-details-step {
  background: transparent;
}

:root[data-theme="light"] .segmented button,
:root[data-theme="light"] .color-row button,
:root[data-theme="light"] .tracker-color-row button {
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .segmented button {
  background: rgba(255, 255, 255, 0.68);
  color: #607084;
}

:root[data-theme="light"] .segmented button.active {
  color: #152233;
}

:root[data-theme="light"] .sync-message,
:root[data-theme="light"] .fleet-message,
:root[data-theme="light"] .fleet-page-message,
:root[data-theme="light"] .ops-message,
:root[data-theme="light"] .system-message,
:root[data-theme="light"] .empty-zone-list,
:root[data-theme="light"] .empty-tracker-list,
:root[data-theme="light"] .ops-empty {
  color: #607084;
}

:root[data-theme="light"] .sync-message.error,
:root[data-theme="light"] .fleet-message.error,
:root[data-theme="light"] .fleet-page-message.error,
:root[data-theme="light"] .ops-message.error,
:root[data-theme="light"] .system-message.error {
  color: #b91c1c;
}

:root[data-theme="light"] #deleteZone,
:root[data-theme="light"] #deleteTracker,
:root[data-theme="light"] .tracker-row em.offline,
:root[data-theme="light"] .tracker-row.disabled em,
:root[data-theme="light"] .alert-row em.critical {
  color: #b91c1c;
}

:root[data-theme="light"] .tracker-row em,
:root[data-theme="light"] .alert-row em {
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

:root[data-theme="light"] .tracker-row em.online,
:root[data-theme="light"] .detail-row .online-status {
  color: #1d4ed8;
}

:root[data-theme="light"] .tracker-row em.moving,
:root[data-theme="light"] .detail-row .moving-status,
:root[data-theme="light"] .detail-row .underway {
  color: #15803d;
}

:root[data-theme="light"] .alert-row em.warning {
  color: #b45309;
}

:root[data-theme="light"] #geofenceMap,
:root[data-theme="light"] #map {
  background: #dfe8ef;
}

@media (max-width: 760px) {
  .system-workspace {
    padding: 14px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mobile-page-app {
    grid-template-rows: minmax(0, 1fr);
    height: 100dvh;
    padding-top: 0;
  }

  .mobile-page-app > .topbar {
    display: none;
  }

  .mobile-page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    min-height: calc(60px + var(--safe-top));
    margin: calc(-14px - var(--safe-top)) -14px 12px;
    padding: calc(14px + var(--safe-top)) 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(8, 16, 24, 0.98), rgba(10, 19, 28, 0.94)),
      #071019;
    color: #f8fbff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
  }

  .mobile-page-header strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 950;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-page-header button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #f8fbff;
    cursor: pointer;
  }

  .settings-app .mobile-page-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-workspace,
  .system-workspace {
    height: 100dvh;
    padding: calc(14px + var(--safe-top)) 14px calc(84px + var(--safe-bottom));
    overflow: auto;
    gap: 12px;
  }

  .ops-toolbar {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 8px;
    margin: 0;
  }

  .ops-toolbar #reloadAlerts {
    display: none;
  }

  .ops-search input,
  .ops-toolbar select {
    height: 40px;
    border-radius: 10px;
  }

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

  .ops-summary article {
    min-height: 74px;
    padding: 12px;
    border-radius: 10px;
  }

  .ops-summary strong {
    font-size: 24px;
  }

  .ops-table {
    min-height: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .alerts-list,
  .reports-list {
    display: grid;
    gap: 10px;
    height: auto;
    overflow: visible;
  }

  .alert-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
      rgba(14, 24, 33, 0.74);
  }

  .alert-row strong {
    font-size: 13px;
  }

  .alert-row small {
    line-height: 1.35;
  }

  .alert-row > span {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .alert-row em {
    justify-self: end;
  }

  .alert-row em + em {
    grid-column: 2;
  }

  .ops-message {
    min-height: 18px;
  }

  .system-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .system-card {
    gap: 14px;
    padding: 15px;
    border-radius: 10px;
  }

  .system-card-head {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .system-card-head > .material-symbols-rounded {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .theme-choice button {
    height: 46px;
    border-radius: 10px;
  }

  .account-details div {
    min-height: 42px;
    border-radius: 10px;
  }

  .account-logout {
    height: 46px;
    border-radius: 10px;
  }

  .mobile-app-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(66px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.095);
    background: linear-gradient(180deg, rgba(12, 23, 34, 0.97), rgba(6, 12, 19, 0.99));
    box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
  }

  .mobile-app-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    color: #aeb9c8;
    font-size: 10px;
    text-decoration: none;
  }

  .mobile-app-nav .material-symbols-rounded {
    font-size: 22px;
  }

  .mobile-app-nav a.active {
    color: #57c7ff;
  }
}

@media (max-width: 860px) {
  .ops-workspace {
    padding: 14px;
  }

  .ops-toolbar,
  .reports-toolbar {
    grid-template-columns: 1fr;
  }

  .ops-toolbar button {
    width: 100%;
  }

  .ops-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alerts-head,
  .reports-head {
    display: none;
  }

  .alerts-list,
  .reports-list {
    height: 100%;
  }

  .alert-row,
  .report-row {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
    padding: 13px 14px;
  }
}

@media (max-width: 860px) {
  .fleet-list-page {
    padding: 14px;
  }

  .fleet-toolbar {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .fleet-toolbar .add-tracker-btn,
  .fleet-toolbar .import-teams-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .fleet-table-head {
    display: none;
  }

  .fleet-list {
    height: 100%;
  }

  .tracker-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 82px;
    padding: 12px 14px;
  }

  .tracker-row > span,
  .tracker-row em {
    display: none;
  }

  .tracker-row-edit {
    display: inline-flex;
  }

  .fleet-editor-grid {
    grid-template-columns: 1fr;
  }
}

.leaflet-marker-icon.ship-icon {
  border: 0;
  background: transparent;
}

.own-location-icon {
  --own-heading: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  width: 118px !important;
  height: 118px !important;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.own-location-accuracy {
  position: absolute;
  top: 44px;
  left: 44px;
  z-index: 0;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(47, 128, 237, 0.24);
  border-radius: 50%;
  background: rgba(47, 128, 237, 0.08);
  box-shadow: none;
  opacity: 0.7;
  animation: own-location-pulse 2s ease-out infinite;
}

.own-location-core,
.own-location-core img {
  display: block;
}

.own-location-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  transform: rotate(var(--own-heading));
  box-shadow:
    0 4px 14px rgba(23, 47, 79, 0.15),
    0 0 0 8px rgba(255, 255, 255, 0.16);
  filter: none;
  transition: transform 180ms linear;
}

.own-location-core img {
  width: 25px;
  height: 31px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 0 rgba(255, 255, 255, 1))
    drop-shadow(0 0 1px rgba(255, 255, 255, 1))
    drop-shadow(1px 0 0 rgba(255, 255, 255, 1))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 1))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 1))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 1))
    drop-shadow(0 0 2px rgba(255, 255, 255, 1))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.own-location-bearing {
  position: absolute;
  top: -44px;
  left: 50%;
  z-index: 1;
  display: block;
  width: 104px;
  height: 122px;
  background: transparent;
  opacity: 0;
  transform: translateX(-50%) rotate(var(--own-heading));
  transform-origin: 50% 102px;
  transition:
    opacity 160ms ease,
    transform 180ms linear;
}

.own-location-bearing::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 88px;
  height: 114px;
  background: linear-gradient(180deg, rgba(47, 128, 237, 0), rgba(47, 128, 237, 0.3));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
  transform: translateX(-50%);
}

.own-location-bearing::after {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 0;
  height: 90px;
  border-left: 2px dashed rgba(47, 128, 237, 0.95);
  content: "";
  transform: translateX(-50%);
}

.own-location-bearing span {
  position: absolute;
  top: 6px;
  left: 50%;
  display: block;
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-bottom: 11px solid #2f80ed;
  border-left: 6px solid transparent;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 2px rgba(23, 47, 79, 0.22));
}

.own-location-icon.has-orientation .own-location-bearing {
  opacity: 1;
}

.map-stage.goto-active .own-location-accuracy {
  border-color: rgba(47, 128, 237, 0.36);
  background: rgba(47, 128, 237, 0.1);
  box-shadow: none;
}

.map-stage.goto-active .own-location-core {
  width: 44px;
  height: 44px;
}

@keyframes own-location-pulse {
  0% {
    transform: scale(0.82);
    opacity: 0.88;
  }

  72% {
    transform: scale(1.22);
    opacity: 0;
  }

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

.map-arrow.measure-picked {
  filter:
    drop-shadow(0 4px 6px rgba(15, 23, 42, 0.36))
    drop-shadow(0 0 0 #ffffff)
    drop-shadow(0 0 8px rgba(255, 189, 74, 0.95));
}

.map-arrow.measure-picked::before {
  filter:
    drop-shadow(0 0 8px rgba(255, 189, 74, 0.72))
    drop-shadow(0 0 0 rgba(255, 255, 255, 1));
}

.map-arrow.measure-picked::after {
  background: #ffbd4a;
  box-shadow: 0 0 0 4px rgba(255, 189, 74, 0.2);
}

.measure-map-badge {
  position: absolute;
  right: -5px;
  bottom: -3px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: #ffbd4a;
  color: #101820;
  font-size: 11px;
  font-weight: 900;
  transform: rotate(calc(-1 * var(--tracker-angle, 0deg)));
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.25);
}

.measure-label {
  border: 0;
  background: transparent;
}

.measure-label-card {
  min-width: 118px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 189, 74, 0.34);
  border-radius: 7px;
  background: rgba(13, 23, 33, 0.96);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.27);
}

.measure-label-card strong {
  display: block;
  color: #ffcf75;
  font-size: 14px;
}

.measure-label-card span {
  color: #b9c4d2;
  font-size: 11px;
}

.leaflet-tile-pane {
  filter: grayscale(0.34) contrast(0.92) brightness(1.08) saturate(0.72);
}

.map-marine .leaflet-tile-pane {
  filter: grayscale(0.18) contrast(0.98) brightness(1.06) saturate(0.92);
}

.marine-base-tile {
  filter: hue-rotate(178deg) saturate(1.08) brightness(1.03);
}

.map-satellite .leaflet-tile-pane {
  filter: contrast(0.92) brightness(0.82) saturate(0.84);
}

@media (max-width: 1250px) {
  body {
    min-width: 0;
  }

  .workspace {
    grid-template-columns: 280px minmax(0, 1fr) 340px;
  }

  .workspace.right-collapsed {
    grid-template-columns: 280px minmax(0, 1fr) 0;
  }

  .workspace.left-collapsed {
    grid-template-columns: 0 minmax(0, 1fr) 340px;
  }

  .workspace.left-collapsed.right-collapsed {
    grid-template-columns: 0 minmax(0, 1fr) 0;
  }

  .right-panel {
    width: 340px;
  }

  .detail-actions {
    height: 68px;
    padding: 0;
  }

  .detail-actions button {
    gap: 7px;
    padding: 0 10px;
    font-size: 11px;
  }

  .topbar {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .main-nav {
    grid-auto-columns: minmax(86px, 1fr);
  }

  .bottom-tools {
    right: 0;
    left: 0;
  }
}

@media (max-width: 1024px) {
  body {
    min-width: 0;
    width: 100vw;
  }

  .app-shell {
    width: 100vw;
    overflow: hidden;
  }

  .topbar {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .brand {
    padding: 0 20px;
  }

  .main-nav {
    min-width: 0;
    grid-auto-columns: minmax(92px, 1fr);
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .nav-item {
    padding: 0 12px;
    white-space: nowrap;
  }

  .workspace,
  .workspace.right-collapsed,
  .workspace.left-collapsed,
  .workspace.left-collapsed.right-collapsed {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    width: 100vw;
    overflow: hidden;
  }

  .left-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 630;
    width: min(300px, 84vw);
    min-width: 0;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
  }

  .workspace.left-collapsed .left-panel {
    transform: translateX(-100%);
  }

  .right-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 620;
    width: min(360px, 86vw);
    min-width: 0;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.34);
  }

  .workspace.right-collapsed .right-panel {
    transform: translateX(100%);
  }

  .open-detail-panel {
    right: 18px;
  }
}

@media (max-width: 760px) {
  .live-app {
    grid-template-rows: minmax(0, 1fr);
    height: 100dvh;
    padding-top: 0;
  }

  .live-app > .topbar {
    display: none;
  }

  .workspace,
  .workspace.right-collapsed,
  .workspace.left-collapsed,
  .workspace.left-collapsed.right-collapsed {
    display: block;
    position: relative;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    background: #071019;
  }

  .mobile-live-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 650;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: calc(62px + var(--safe-top));
    padding: calc(12px + var(--safe-top)) 14px 10px;
    color: #f8fbff;
    pointer-events: none;
  }

  .mobile-live-header::before {
    position: absolute;
    inset: 0 0 -46px;
    z-index: -1;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(5, 12, 19, 0.5), rgba(5, 12, 19, 0.18) 48%, transparent 78%),
      linear-gradient(180deg, rgba(5, 12, 19, 0.56), rgba(5, 12, 19, 0.24) 48%, rgba(5, 12, 19, 0.08) 72%, transparent);
    content: "";
    pointer-events: none;
  }

  .workspace[data-mobile-view="vessels"] .mobile-live-header,
  .workspace[data-mobile-view="details"] .mobile-live-header {
    display: none;
  }

  .mobile-live-header strong {
    position: absolute;
    top: calc(23px + var(--safe-top));
    left: 50%;
    width: min(180px, calc(100vw - 128px));
    overflow: hidden;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(7, 16, 25, 0.36);
  }

  .mobile-live-actions {
    display: inline-flex;
    gap: 8px;
    justify-self: end;
  }

  .mobile-view-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: rgba(9, 17, 25, 0.88);
    color: #f8fbff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    cursor: pointer;
    pointer-events: auto;
  }

  .left-panel,
  .map-stage,
  .right-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .workspace[data-mobile-view] .left-panel,
  .workspace[data-mobile-view] .right-panel,
  .workspace[data-mobile-view].left-collapsed .left-panel,
  .workspace[data-mobile-view].right-collapsed .right-panel {
    opacity: 1;
    transform: none;
  }

  .workspace[data-mobile-view="vessels"] .left-panel,
  .workspace[data-mobile-view="map"] .map-stage,
  .workspace[data-mobile-view="details"] .right-panel {
    display: grid;
    pointer-events: auto;
  }

  .workspace[data-mobile-view="vessels"] .left-panel {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .workspace[data-mobile-view="map"] .map-stage {
    display: block;
  }

  .workspace[data-mobile-view="details"] .right-panel {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .workspace[data-mobile-view="vessels"] .map-stage,
  .workspace[data-mobile-view="vessels"] .right-panel,
  .workspace[data-mobile-view="map"] .left-panel,
  .workspace[data-mobile-view="map"] .right-panel,
  .workspace[data-mobile-view="details"] .left-panel,
  .workspace[data-mobile-view="details"] .map-stage {
    display: none;
    pointer-events: none;
  }

  .panel-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    height: auto;
    padding: calc(16px + var(--safe-top)) 18px 12px;
  }

  .mobile-panel-title {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 42px;
    text-align: center;
  }

  .mobile-panel-heading {
    display: grid;
    justify-self: center;
    gap: 2px;
    max-width: calc(100% - 88px);
  }

  .mobile-panel-title strong {
    min-width: 0;
    overflow: hidden;
    font-size: 18px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-panel-title span {
    color: #8f9aa8;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-panel-close {
    position: absolute;
    top: 50%;
    left: 0;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
      rgba(8, 15, 23, 0.52);
    color: #f8fbff;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  }

  .mobile-panel-close .material-symbols-rounded {
    font-size: 22px;
  }

  .collapse-left-btn {
    display: none;
  }

  .vessel-search input {
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
  }

  .vessel-list {
    height: auto;
    min-height: 0;
    overflow: auto;
    padding-bottom: calc(84px + var(--safe-bottom));
  }

  .vessel-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 74px;
    padding: 14px 18px;
  }

  .vessel-meta strong {
    font-size: 13px;
  }

  .vessel-meta span,
  .course {
    font-size: 12px;
  }

  .status-badge,
  .list-update {
    display: none;
  }

  .vessel-side-meta {
    grid-template-columns: auto;
    min-width: 52px;
    max-width: 64px;
  }

  .course {
    grid-column: 1;
  }

  .open-left-panel,
  .open-detail-panel,
  .coords-box {
    display: none !important;
  }

  .map-zoom {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 12px;
    width: 44px;
    border-radius: 10px;
    transform: translateY(-50%);
  }

  .map-zoom button {
    width: 44px;
    height: 44px;
  }

  .leaflet-control-nautical-scale {
    display: none;
  }

  .bottom-tools {
    right: 12px;
    bottom: calc(226px + var(--safe-bottom));
    left: auto;
    grid-template-columns: 1fr;
    width: 52px;
    height: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
  }

  .map-stage:has(.mobile-vessel-sheet[hidden]) .bottom-tools {
    bottom: calc(82px + var(--safe-bottom));
  }

  .bottom-tools button {
    width: 52px;
    height: 52px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bottom-tools button:last-child {
    border-bottom: 0;
  }

  .tool-icon-box {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
  }

  .bottom-tools button.active .tool-icon-box {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .tool-label {
    display: none;
  }

  .layer-panel {
    right: 12px;
    bottom: calc(188px + var(--safe-bottom));
    width: min(300px, calc(100vw - 24px));
    max-height: min(420px, calc(100dvh - 250px));
    overflow: auto;
  }

  .measure-panel,
  .goto-panel,
  .workspace.left-collapsed .measure-panel,
  .workspace.left-collapsed .goto-panel {
    top: calc(64px + var(--safe-top));
    left: 14px;
    width: calc(100vw - 28px);
    min-height: 70px;
  }

  .mobile-vessel-sheet {
    position: absolute;
    right: 10px;
    bottom: calc(66px + var(--safe-bottom));
    left: 10px;
    z-index: 610;
    display: grid;
    gap: 13px;
    padding: 10px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px 16px 0 0;
    background:
      radial-gradient(circle at top left, rgba(87, 199, 255, 0.13), transparent 42%),
      linear-gradient(180deg, rgba(15, 27, 38, 0.97), rgba(7, 15, 24, 0.98));
    color: #f8fbff;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
  }

  .mobile-vessel-sheet[hidden] {
    display: none;
  }

  .workspace[data-mobile-view="vessels"] .mobile-vessel-sheet {
    display: none;
  }

  .mobile-sheet-grip {
    justify-self: center;
    width: 42px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
  }

  .mobile-sheet-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 12px;
  }

  .mobile-sheet-head strong,
  .mobile-sheet-head span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-sheet-head strong {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-sheet-head span {
    margin-top: 3px;
    color: #9aa6b5;
    font-size: 12px;
  }

  .mobile-sheet-head .moving-status {
    color: #4ec76f;
  }

  .mobile-sheet-head .online-status {
    color: #7bb9ff;
  }

  .mobile-sheet-head .offline-status {
    color: #cbd5e1;
  }

  .mobile-sheet-head .muted-status {
    color: #9aa6b5;
  }

  .mobile-sheet-marker {
    --tracker-size: 30px;
  }

  .mobile-sheet-more {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #dbe7f5;
    cursor: pointer;
  }

  .mobile-sheet-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-sheet-stats div {
    min-width: 0;
    padding: 12px 8px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
  }

  .mobile-sheet-stats div:last-child {
    border-right: 0;
  }

  .mobile-sheet-stats strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-sheet-stats span {
    display: block;
    margin-top: 4px;
    color: #9aa6b5;
    font-size: 11px;
  }

  .right-panel {
    background:
      radial-gradient(circle at top left, rgba(60, 112, 148, 0.16), transparent 34%),
      linear-gradient(180deg, #101b26, #071019);
  }

  .detail-top {
    height: auto;
    min-height: calc(74px + var(--safe-top));
    padding: calc(18px + var(--safe-top)) 16px 12px;
  }

  #closeDetailPanel {
    border-radius: 10px;
  }

  .tabs {
    height: 46px;
  }

  .details {
    padding: 10px 18px 18px;
  }

  .detail-row {
    min-height: 46px;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .detail-row dt {
    font-size: 12px;
  }

  .detail-row dd {
    font-size: 13px;
  }

  .detail-actions {
    height: calc(66px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
  }

  .mobile-live-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 640;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(66px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.095);
    background: linear-gradient(180deg, rgba(12, 23, 34, 0.97), rgba(6, 12, 19, 0.99));
    box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
  }

  .workspace[data-mobile-view="details"] .mobile-live-nav {
    display: none;
  }

  .mobile-live-nav button,
  .mobile-live-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #aeb9c8;
    font-size: 10px;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-live-nav .material-symbols-rounded {
    font-size: 22px;
  }

  .mobile-live-nav button.active,
  .mobile-live-nav a.active {
    color: #57c7ff;
  }
}

@media (max-width: 760px) {
  .mobile-page-app .ops-workspace,
  .mobile-page-app .system-workspace {
    padding: calc(14px + var(--safe-top)) 14px calc(84px + var(--safe-bottom));
  }

  .mobile-page-app .alerts-list {
    display: grid;
    gap: 10px;
    height: auto;
    overflow: visible;
  }

  .mobile-page-app .alert-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: start;
    padding: 14px;
  }

  .mobile-page-app .alert-row > span {
    grid-column: 1 / -1;
  }

  :root[data-theme="light"] .mobile-page-header,
  :root[data-theme="light"] .mobile-app-nav {
    border-color: rgba(15, 23, 42, 0.1);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 253, 0.95)),
      #ffffff;
    color: #152233;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  }

  :root[data-theme="light"] .mobile-page-header button {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.035);
    color: #152233;
  }

  :root[data-theme="light"] .mobile-app-nav a {
    color: #607084;
  }

  :root[data-theme="light"] .mobile-app-nav a.active {
    color: #2563eb;
  }

  .mobile-page-app .fleet-workspace {
    height: 100dvh;
    overflow: hidden;
  }

  .mobile-page-app .fleet-list-page {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100dvh;
    padding: calc(14px + var(--safe-top)) 14px calc(84px + var(--safe-bottom));
    overflow: auto;
  }

  .mobile-page-app .fleet-toolbar {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
    margin-bottom: 12px;
  }

  .mobile-page-app #reloadTrackers {
    display: none;
  }

  .mobile-page-app .fleet-search input {
    height: 40px;
    border-radius: 10px;
  }

  .mobile-page-app .fleet-toolbar .add-tracker-btn,
  .mobile-page-app .fleet-toolbar .import-teams-btn {
    grid-column: auto;
    width: 42px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
  }

  .mobile-page-app .fleet-toolbar .add-tracker-btn span:last-child,
  .mobile-page-app .fleet-toolbar .import-teams-btn span:last-child {
    display: none;
  }

  .mobile-page-app .fleet-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .mobile-page-app .fleet-list {
    display: grid;
    gap: 10px;
    height: auto;
    overflow: visible;
  }

  .mobile-page-app .tracker-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: start;
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
      rgba(14, 24, 33, 0.74);
  }

  .mobile-page-app .tracker-row.active {
    background:
      linear-gradient(180deg, rgba(87, 199, 255, 0.1), rgba(87, 199, 255, 0.025)),
      rgba(14, 24, 33, 0.82);
  }

  .mobile-page-app .tracker-name-cell {
    grid-column: 1;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .mobile-page-app .tracker-name-cell strong {
    font-size: 13px;
  }

  .mobile-page-app .tracker-name-cell small {
    font-size: 12px;
  }

  .mobile-page-app .tracker-row-edit {
    grid-column: 2;
    grid-row: 1;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .mobile-page-app .tracker-row > .tracker-unique-id,
  .mobile-page-app .tracker-row > .tracker-category,
  .mobile-page-app .tracker-row > .tracker-last-update,
  .mobile-page-app .tracker-row > .tracker-status {
    display: block;
  }

  .mobile-page-app .tracker-row > .tracker-status {
    grid-column: 1 / -1;
    justify-self: start;
    height: 24px;
    line-height: 24px;
    border-radius: 999px;
  }

  .mobile-page-app .tracker-row > .tracker-unique-id,
  .mobile-page-app .tracker-row > .tracker-category,
  .mobile-page-app .tracker-row > .tracker-last-update {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #9aa6b5;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-page-app .tracker-row > .tracker-unique-id::before {
    content: "IMEI: ";
    color: #dbe7f5;
    font-weight: 800;
  }

  .mobile-page-app .tracker-row > .tracker-category::before {
    content: "Category: ";
    color: #dbe7f5;
    font-weight: 800;
  }

  .mobile-page-app .tracker-row > .tracker-last-update::before {
    content: "Last update: ";
    color: #dbe7f5;
    font-weight: 800;
  }

  .mobile-page-app .fleet-editor-stage {
    align-items: stretch;
    padding: 0;
  }

  .mobile-page-app .fleet-editor {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding-bottom: calc(18px + var(--safe-bottom));
  }

  .mobile-page-app .fleet-editor-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -18px -18px 0;
    padding: calc(18px + var(--safe-top)) 18px 14px;
    background: rgba(11, 20, 29, 0.98);
  }

  .mobile-page-app .fleet-editor-grid {
    grid-template-columns: 1fr;
  }

  :root[data-theme="light"] .mobile-page-app .tracker-row {
    border-color: rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.82);
  }

  :root[data-theme="light"] .mobile-page-app .tracker-row > .tracker-unique-id,
  :root[data-theme="light"] .mobile-page-app .tracker-row > .tracker-category,
  :root[data-theme="light"] .mobile-page-app .tracker-row > .tracker-last-update {
    color: #607084;
  }

  :root[data-theme="light"] .mobile-page-app .tracker-row > .tracker-unique-id::before,
  :root[data-theme="light"] .mobile-page-app .tracker-row > .tracker-category::before,
  :root[data-theme="light"] .mobile-page-app .tracker-row > .tracker-last-update::before {
    color: #152233;
  }
}

@media (max-width: 760px) {
  .mobile-page-app {
    --mobile-topbar-height: calc(56px + var(--safe-top));
    --mobile-nav-height: calc(66px + var(--safe-bottom));
  }

  .mobile-page-app .mobile-page-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 700;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    min-height: var(--mobile-topbar-height);
    margin: 0;
    padding: var(--safe-top) 12px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    overflow: visible;
  }

  .mobile-page-app .mobile-page-header::after {
    display: none;
  }

  :root[data-theme="light"] .mobile-page-app .mobile-page-header {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  }

  .mobile-page-app .mobile-page-header:not(:has(button)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-page-app .mobile-page-header strong {
    position: absolute;
    top: calc(var(--safe-top) + 18px);
    left: 50%;
    width: min(190px, calc(100vw - 128px));
    text-align: center;
    transform: translateX(-50%);
  }

  .mobile-page-app .ops-workspace,
  .mobile-page-app .system-workspace,
  .mobile-page-app .fleet-list-page {
    padding-top: calc(var(--mobile-topbar-height) + 12px);
    padding-bottom: calc(var(--mobile-nav-height) + 16px);
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-page-app .mobile-app-nav {
    height: var(--mobile-nav-height);
    padding-bottom: var(--safe-bottom);
  }

  .mobile-page-app .pull-refresh-indicator {
    position: fixed;
    top: calc(var(--mobile-topbar-height) + 34px);
    left: 50%;
    z-index: 690;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(9, 17, 25, 0.9);
    color: #f8fbff;
    opacity: 0;
    transform: translate(-50%, calc(-24px + (36px * var(--pull-progress, 0)))) scale(calc(0.82 + (0.18 * var(--pull-progress, 0))));
    transition:
      opacity 140ms ease,
      transform 140ms ease;
    pointer-events: none;
    backdrop-filter: blur(12px);
  }

  .mobile-page-app .pull-refresh-wash {
    position: fixed;
    top: var(--mobile-topbar-height);
    right: 0;
    left: 0;
    z-index: 680;
    display: block;
    height: calc(48px + (96px * var(--pull-progress, 0)));
    background:
      radial-gradient(ellipse at 50% 0%, rgba(87, 199, 255, 0.13), rgba(87, 199, 255, 0.055) 42%, transparent 76%),
      linear-gradient(180deg, rgba(87, 199, 255, 0.11), rgba(87, 199, 255, 0.052) 38%, rgba(87, 199, 255, 0.018) 68%, transparent 100%);
    opacity: 0;
    filter: blur(0.2px);
    transform: translateY(-18px);
    transition:
      opacity 140ms ease,
      height 120ms ease,
      transform 140ms ease;
    pointer-events: none;
  }

  .mobile-page-app .pull-refresh-indicator .material-symbols-rounded {
    font-size: 21px;
    transform: rotate(calc(180deg * var(--pull-progress, 0)));
  }

  .mobile-page-app .pulling > .pull-refresh-indicator,
  .mobile-page-app .refreshing > .pull-refresh-indicator,
  .mobile-page-app .pulling .pull-refresh-indicator,
  .mobile-page-app .refreshing .pull-refresh-indicator {
    opacity: 1;
  }

  .mobile-page-app .pulling > .pull-refresh-wash,
  .mobile-page-app .refreshing > .pull-refresh-wash,
  .mobile-page-app .pulling .pull-refresh-wash,
  .mobile-page-app .refreshing .pull-refresh-wash {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-page-app .pull-ready > .pull-refresh-indicator,
  .mobile-page-app .pull-ready .pull-refresh-indicator {
    border-color: rgba(87, 199, 255, 0.42);
    color: #57c7ff;
  }

  .mobile-page-app .refreshing > .pull-refresh-indicator .material-symbols-rounded,
  .mobile-page-app .refreshing .pull-refresh-indicator .material-symbols-rounded {
    animation: mobile-refresh-spin 800ms linear infinite;
  }

  :root[data-theme="light"] .mobile-page-app .alert-row {
    border-color: rgba(15, 23, 42, 0.09);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.9)),
      #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
  }

  :root[data-theme="light"] .mobile-page-app .pull-refresh-wash {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.11), rgba(37, 99, 235, 0.045) 42%, transparent 76%),
      linear-gradient(180deg, rgba(37, 99, 235, 0.085), rgba(37, 99, 235, 0.04) 38%, rgba(37, 99, 235, 0.014) 68%, transparent 100%);
  }

  :root[data-theme="light"] .mobile-page-app .alert-row strong {
    color: #152233;
  }

  :root[data-theme="light"] .mobile-page-app .alert-row small,
  :root[data-theme="light"] .mobile-page-app .alert-row > span {
    color: #607084;
  }

  :root[data-theme="light"] .mobile-page-app .alert-row em {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.035);
    color: #475569;
  }

  :root[data-theme="light"] .mobile-page-app .alert-row em.critical {
    border-color: rgba(185, 28, 28, 0.2);
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
  }

  :root[data-theme="light"] .mobile-page-app .alert-row em.warning {
    border-color: rgba(180, 83, 9, 0.22);
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
  }

  :root[data-theme="light"] .mobile-page-app .ops-summary article {
    border-color: rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.86);
  }

  :root[data-theme="light"] .mobile-sheet-head .moving-status {
    color: #15803d;
  }

  :root[data-theme="light"] .mobile-sheet-head .online-status {
    color: #1d4ed8;
  }

  :root[data-theme="light"] .mobile-sheet-head .offline-status {
    color: #64748b;
  }

  :root[data-theme="light"] .mobile-sheet-head .muted-status {
    color: #607084;
  }

  :root[data-theme="light"] .mobile-panel-close {
    border-color: rgba(15, 23, 42, 0.12);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 253, 0.86)),
      #ffffff;
    color: #152233;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  @keyframes mobile-refresh-spin {
    to {
      transform: rotate(360deg);
    }
  }
}
