:root {
  color-scheme: dark;
  --bg: #04101d;
  --bg-soft: #081726;
  --panel: rgba(9, 22, 39, 0.8);
  --panel-strong: rgba(7, 18, 33, 0.92);
  --panel-muted: rgba(12, 29, 50, 0.74);
  --line: rgba(128, 173, 201, 0.18);
  --line-strong: rgba(97, 167, 212, 0.32);
  --text: #e7f1fa;
  --muted: #8ea9bb;
  --accent: #35d3ff;
  --accent-2: #2ae6a1;
  --accent-warm: #f8b95f;
  --danger: #ff657f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(53, 211, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(42, 230, 161, 0.09), transparent 30%),
    linear-gradient(160deg, #030c15 0%, #07111d 42%, #0a1726 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 85%);
}

body::after {
  background:
    radial-gradient(circle at 15% 18%, rgba(56, 142, 255, 0.14), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(41, 226, 165, 0.08), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(248, 185, 95, 0.05), transparent 25%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 26px auto 40px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(10, 24, 43, 0.92), rgba(7, 18, 32, 0.9));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(63, 144, 188, 0.08);
  pointer-events: none;
}

.hero {
  padding: 32px 32px 24px;
}

.hero__brand,
.command-strip,
.panel-heading,
.panel-actions,
.log-status-row,
.site-footer,
.map-toolbar {
  display: flex;
  align-items: center;
}

.hero__brand {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(53, 211, 255, 0.16), rgba(42, 230, 161, 0.08)),
    rgba(10, 26, 43, 0.92);
  border: 1px solid rgba(68, 174, 226, 0.34);
  box-shadow: inset 0 0 24px rgba(53, 211, 255, 0.12), 0 18px 48px rgba(0, 0, 0, 0.3);
}

.brand-mark svg {
  width: 46px;
  height: 46px;
  stroke: rgba(92, 224, 255, 0.95);
  fill: none;
  stroke-width: 2.4;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow--inline {
  margin-bottom: 2px;
}

.hero h1,
.panel h2 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.subcopy {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-ribbon {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(84, 162, 208, 0.18);
  border-radius: 999px;
  background: rgba(7, 19, 33, 0.82);
}

.hero-ribbon__label {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-ribbon__value {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card__label,
.field span,
.route-metric span,
.progress-copy span,
.panel-kicker,
.route-intel__label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card__meta,
.panel-heading__meta,
.map-toolbar__hint,
.site-footer,
.log-status-row__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  min-height: 156px;
  padding: 20px 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(84, 162, 208, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 21, 37, 0.9), rgba(6, 16, 28, 0.96)),
    radial-gradient(circle at top right, rgba(53, 211, 255, 0.08), transparent 60%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.stat-card--feature {
  grid-column: span 2;
  background:
    linear-gradient(180deg, rgba(9, 24, 41, 0.92), rgba(7, 17, 31, 0.98)),
    radial-gradient(circle at top right, rgba(53, 211, 255, 0.16), transparent 58%);
}

.stat-card__value {
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 2vw, 1.46rem);
  line-height: 1.2;
}

.stat-card__value--feature {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.stat-card__meta--wide {
  max-width: 38ch;
  line-height: 1.6;
}

.stat-card--live {
  background:
    linear-gradient(180deg, rgba(8, 24, 37, 0.88), rgba(7, 22, 33, 0.98)),
    radial-gradient(circle at top right, rgba(42, 230, 161, 0.16), transparent 55%);
}

.live-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-warm);
  box-shadow: 0 0 0 6px rgba(248, 185, 95, 0.14);
}

.live-dot.is-running {
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(42, 230, 161, 0.15), 0 0 20px rgba(42, 230, 161, 0.3);
}

.live-dot.is-paused {
  background: var(--accent-warm);
}

.live-dot.is-stopped {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 101, 127, 0.14);
}

.command-strip {
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(85, 162, 209, 0.18);
  background:
    linear-gradient(180deg, rgba(6, 17, 30, 0.82), rgba(5, 13, 24, 0.92)),
    radial-gradient(circle at right, rgba(53, 211, 255, 0.08), transparent 30%);
}

.command-strip__progress {
  flex: 1 1 auto;
}

.command-strip__copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.command-strip__copy strong {
  font-family: var(--font-heading);
  font-size: 1.04rem;
}

.command-strip__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(67, 133, 176, 0.2);
  background: rgba(5, 13, 24, 0.9);
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(53, 211, 255, 0.92), rgba(42, 230, 161, 0.88)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent 50%);
  box-shadow: 0 0 18px rgba(53, 211, 255, 0.28);
}

.progress-track--hero {
  height: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
  gap: 24px;
  margin-top: 24px;
}

.fleet-panel {
  margin-top: 24px;
  padding: 24px;
}

.fleet-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.field--inline {
  min-width: min(380px, 100%);
}

.fleet-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.fleet-summary-card {
  padding: 16px 18px;
  border: 1px solid rgba(89, 164, 210, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 24, 41, 0.84), rgba(7, 19, 34, 0.94));
}

.fleet-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fleet-summary-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 1.24rem;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.fleet-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(89, 164, 210, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 21, 37, 0.88), rgba(5, 14, 25, 0.96));
}

.fleet-card--active {
  border-color: rgba(53, 211, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(53, 211, 255, 0.16);
}

.fleet-card__top,
.fleet-card__stats,
.fleet-card__actions {
  display: flex;
  gap: 12px;
}

.fleet-card__top {
  align-items: flex-start;
  justify-content: space-between;
}

.fleet-card__title strong,
.fleet-card__stats strong {
  display: block;
  font-family: var(--font-heading);
}

.fleet-card__title strong {
  font-size: 1rem;
}

.fleet-card__meta,
.fleet-card__submeta {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.fleet-card__stat {
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(89, 164, 210, 0.14);
  background: rgba(8, 18, 31, 0.76);
}

.fleet-card__stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fleet-card__stat strong {
  margin-top: 6px;
  font-size: 0.98rem;
}

.fleet-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(95, 169, 215, 0.16);
  background: rgba(8, 18, 31, 0.86);
  font-family: var(--font-heading);
  font-size: 0.86rem;
}

.fleet-status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
}

.fleet-status-badge.is-running::before {
  background: var(--accent-2);
}

.fleet-status-badge.is-paused::before {
  background: var(--accent-warm);
}

.fleet-card__progress {
  display: grid;
  gap: 10px;
}

.fleet-card__progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.fleet-card__actions {
  flex-wrap: wrap;
}

.fleet-card__actions .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.route-panel {
  padding: 24px;
}

.sidebar-stack {
  display: grid;
  gap: 24px;
}

.panel-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-kicker {
  margin: 0 0 6px;
}

.panel h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.panel-heading__meta {
  max-width: 340px;
  text-align: right;
}

.route-intel {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(92, 167, 214, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 20, 35, 0.86), rgba(6, 16, 28, 0.94)),
    radial-gradient(circle at top right, rgba(53, 211, 255, 0.08), transparent 60%);
}

.route-intel__summary {
  display: grid;
  gap: 8px;
}

.route-intel__summary strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.45;
}

.route-intel__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.map-toolbar {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.map-toolbar--panel {
  padding: 14px 16px;
  border: 1px solid rgba(92, 167, 214, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 18, 31, 0.82), rgba(5, 13, 24, 0.92));
}

.map-toolbar__hint {
  margin-left: auto;
  max-width: 420px;
  text-align: right;
  line-height: 1.55;
}

.map-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 12px;
  border: 1px solid rgba(97, 167, 212, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7, 18, 30, 0.98), rgba(4, 12, 22, 0.98)),
    radial-gradient(circle at top right, rgba(53, 211, 255, 0.08), transparent 48%);
  box-shadow: inset 0 0 0 1px rgba(53, 211, 255, 0.08);
}

#map {
  width: 100%;
  height: 560px;
  border-radius: 18px;
}

.map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), transparent 20%),
    linear-gradient(transparent 80%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.map-overlay {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 500;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(97, 167, 212, 0.22);
  background: rgba(5, 16, 28, 0.76);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.map-overlay span,
.map-overlay strong {
  display: block;
}

.map-overlay span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-overlay strong {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.map-readout {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 500;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid rgba(97, 167, 212, 0.2);
  border-radius: 16px;
  background: rgba(5, 16, 28, 0.78);
  backdrop-filter: blur(10px);
}

.map-readout span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-readout strong {
  font-family: var(--font-heading);
  font-size: 0.94rem;
}

.route-metric {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(89, 164, 210, 0.18);
  background: linear-gradient(180deg, rgba(9, 24, 41, 0.84), rgba(7, 19, 34, 0.94));
}

.route-metric--chart {
  min-width: 0;
}

.route-metric strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.panel:not(.route-panel) {
  padding: 24px;
}

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

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

.field {
  display: grid;
  gap: 8px;
}

.field--wide,
.field--toggle {
  grid-column: 1 / -1;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(95, 169, 215, 0.22);
  border-radius: 16px;
  background: rgba(5, 16, 28, 0.86);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(53, 211, 255, 0.66);
  box-shadow: 0 0 0 4px rgba(53, 211, 255, 0.12);
}

.field input::placeholder {
  color: #7b94a8;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.toggle__track {
  position: relative;
  width: 62px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(95, 169, 215, 0.25);
  background: rgba(4, 13, 23, 0.92);
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d3e8f6, #8fb3c7);
  transition: transform 160ms ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.toggle input:checked + .toggle__track {
  background: rgba(24, 95, 90, 0.72);
  border-color: rgba(42, 230, 161, 0.5);
}

.toggle input:checked + .toggle__track .toggle__thumb {
  transform: translateX(26px);
  background: linear-gradient(180deg, #d7fff0, #73e4bb);
}

.toggle__label {
  color: var(--text);
  font-weight: 600;
}

.panel-actions {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.panel-actions--end {
  justify-content: flex-end;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row--end {
  margin-left: auto;
}

.panel-footnote {
  margin-top: 18px;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.progress-copy strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
}

.btn {
  position: relative;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(92, 167, 214, 0.22);
  border-radius: 16px;
  background: rgba(6, 16, 29, 0.84);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(53, 211, 255, 0.55);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(32, 139, 173, 0.92), rgba(47, 179, 210, 0.92));
  border-color: rgba(84, 223, 255, 0.35);
}

.btn--soft {
  background: linear-gradient(135deg, rgba(24, 104, 125, 0.94), rgba(38, 150, 136, 0.92));
  border-color: rgba(84, 223, 255, 0.24);
}

.btn--muted {
  background: rgba(14, 31, 51, 0.88);
}

.btn--ghost {
  background: rgba(8, 20, 35, 0.88);
}

.btn--ghost-danger {
  background: rgba(24, 10, 18, 0.86);
  border-color: rgba(255, 101, 127, 0.25);
}

.btn--danger {
  background: linear-gradient(135deg, rgba(118, 25, 47, 0.9), rgba(172, 48, 78, 0.92));
  border-color: rgba(255, 126, 155, 0.32);
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.85fr);
  gap: 24px;
  margin-top: 24px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(92, 167, 214, 0.16);
  border-radius: 20px;
}

.destinations-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.destinations-table th,
.destinations-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(128, 173, 201, 0.12);
  text-align: left;
}

.destinations-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(9, 22, 39, 0.92);
}

.destinations-table td {
  background: rgba(7, 18, 31, 0.72);
}

.table-input,
.table-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(92, 167, 214, 0.2);
  border-radius: 14px;
  background: rgba(5, 16, 28, 0.92);
  color: var(--text);
}

.table-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.table-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-2);
}

.log-panel {
  display: flex;
  flex-direction: column;
}

.log-status-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(95, 169, 215, 0.18);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.86);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.status-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 101, 127, 0.15);
}

.status-pill.is-running::before {
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(42, 230, 161, 0.12);
}

.status-pill.is-paused::before {
  background: var(--accent-warm);
  box-shadow: 0 0 0 5px rgba(248, 185, 95, 0.13);
}

.activity-log {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 440px;
  max-height: 700px;
  overflow-y: auto;
  padding: 4px;
}

.log-entry {
  padding: 14px 14px 13px;
  border-radius: 18px;
  border: 1px solid rgba(92, 167, 214, 0.15);
  background: linear-gradient(180deg, rgba(8, 21, 38, 0.9), rgba(6, 16, 29, 0.98));
}

.log-entry__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.log-entry__time {
  color: var(--muted);
  font-size: 0.82rem;
}

.log-entry__badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(53, 211, 255, 0.12);
  color: var(--accent);
}

.log-entry__badge--success {
  background: rgba(42, 230, 161, 0.14);
  color: #8effcf;
}

.log-entry__badge--warning {
  background: rgba(248, 185, 95, 0.14);
  color: #ffd08c;
}

.log-entry__badge--error {
  background: rgba(255, 101, 127, 0.14);
  color: #ff9eb0;
}

.log-entry__badge--data {
  background: rgba(125, 188, 255, 0.14);
  color: #96c8ff;
}

.log-entry p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.log-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 32px;
  border-radius: 20px;
  border: 1px dashed rgba(92, 167, 214, 0.2);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 20px 8px 0;
  border-top: 1px solid rgba(92, 167, 214, 0.12);
  color: #a9c0d1;
}

.leaflet-control-zoom a {
  background: rgba(5, 16, 28, 0.88);
  color: var(--text);
  border-bottom-color: rgba(95, 169, 215, 0.2);
}

.leaflet-bar {
  border: 1px solid rgba(95, 169, 215, 0.2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.leaflet-control-attribution {
  background: rgba(5, 16, 28, 0.82);
  color: #d3e3ef;
}

.waypoint-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(53, 211, 255, 0.85);
  background: rgba(4, 12, 22, 0.94);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(53, 211, 255, 0.15);
}

.vessel-icon {
  background: none;
  border: none;
}

.vessel-marker {
  position: relative;
  width: 36px;
  height: 36px;
}

.vessel-marker__wake {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 211, 255, 0.26), transparent 70%);
  transform: translate(-50%, -50%);
}

.vessel-marker__body {
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 78%, 58% 66%, 58% 100%, 42% 100%, 42% 66%, 0 78%);
  background: linear-gradient(180deg, #b3f5ff 0%, #4fb8d7 38%, #127697 100%);
  border: 1px solid rgba(211, 246, 255, 0.7);
  box-shadow: 0 0 22px rgba(53, 211, 255, 0.35);
  transform: rotate(0deg);
  transform-origin: center;
}

.vessel-marker--ghost {
  opacity: 0.8;
}

.vessel-marker--ghost .vessel-marker__wake {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
}

.vessel-marker--ghost .vessel-marker__body {
  background: linear-gradient(180deg, #dde8ef 0%, #7e9db0 38%, #3f6174 100%);
  border-color: rgba(235, 243, 248, 0.5);
  box-shadow: 0 0 10px rgba(180, 200, 212, 0.18);
}

@media (max-width: 1260px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-card--feature {
    grid-column: span 3;
  }

  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

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

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

  .map-toolbar__hint,
  .panel-heading__meta {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100%, calc(100% - 20px));
    margin-top: 14px;
  }

  .hero,
  .route-panel,
  .panel:not(.route-panel) {
    padding: 18px;
  }

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

  .stat-card--feature {
    grid-column: 1 / -1;
  }

  .form-grid,
  .form-grid--vessel {
    grid-template-columns: 1fr;
  }

  .command-strip,
  .fleet-toolbar,
  .panel-heading,
  .panel-actions,
  .log-status-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .command-strip__copy,
  .progress-copy,
  .hero__brand {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .route-intel__grid {
    grid-template-columns: 1fr;
  }

  .button-row--end {
    margin-left: 0;
  }

  .map-shell,
  #map {
    min-height: 420px;
    height: 420px;
  }
}

@media (max-width: 620px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card--feature {
    grid-column: auto;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .btn {
    width: 100%;
  }
}
