/* ==============================================================================
   Marine Fishery Monitoring Dashboard - Dark Modern Glassmorphic Theme (v2.0)
   - Absolute Geographic Map Pinning on Zoom (Zero-drift guaranteed)
   - Proportioned Viewport for 118~137°E, 28~45°N
   ============================================================================== */

:root {
  --bg-main: #070D18;
  --bg-sidebar: rgba(15, 23, 42, 0.90);
  --bg-card: rgba(30, 41, 59, 0.70);
  --bg-card-hover: rgba(51, 65, 85, 0.80);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 229, 255, 0.40);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --accent-lps: #00E5FF;
  /* 대형선망 통일 시안 */
  --accent-sps: #FF9100;
  /* 소형선망 통일 오렌지 */
  --accent-green: #00E676;
  --accent-red: #FF1744;
  --accent-carrier: #00E5FF;
  --accent-light: #00E5FF;

  --font-sans: 'Pretendard Variable', Pretendard, 'Inter', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  height: 60px;
  background: rgba(11, 19, 43, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00E5FF 0%, #0077B6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070D18;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.brand-badge {
  font-size: 0.72rem;
  background: rgba(0, 229, 255, 0.15);
  color: #00E5FF;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  margin-left: 8px;
}

.header-center {
  display: flex;
  align-items: center;
}

.feature2-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(0, 230, 118, 0.4);
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.15);
}

.pill-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  min-width: 90px;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  width: 100%;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  width: 100%;
}

.header-vessel-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-highlight {
  color: #FF5252;
}

.clock-display {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  background: #020617;
  padding: 6px 10px;
  border-radius: 6px;
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.01em;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Main Layout */
.main-container {
  display: flex;
  flex: 1 1 0%;
  min-height: 0;
  height: auto;
  position: relative;
  overflow: hidden;
}

/* Sidebar (Left Panel Fixed Width 320px) */
.sidebar {
  flex: 0 0 320px !important;
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  box-sizing: border-box !important;
  background: var(--bg-sidebar);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 900;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.sidebar-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-lps);
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2px 10px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent-lps);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.search-icon {
  color: var(--text-dim);
  margin-right: 8px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.84rem;
  padding: 8px 0;
}

.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

.search-results-dropdown {
  margin-top: 6px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-item {
  padding: 8px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.search-item:hover {
  background: rgba(0, 229, 255, 0.12);
}

.search-vname {
  font-weight: 700;
  color: var(--text-main);
}

.search-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Radio & Selects */
.mode-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  color: var(--text-muted);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--accent-lps);
}

.date-picker-wrap {
  margin-top: 10px;
}

.input-sublabel {
  font-size: 0.74rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.custom-select {
  width: 100%;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  padding: 8px 10px;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.custom-select:focus {
  border-color: var(--accent-lps);
}

/* Presets */
.preset-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-btn-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 5px 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.btn-preset:hover {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-lps);
  border-color: var(--border-active);
}

.btn-danger:hover {
  background: rgba(255, 23, 68, 0.2);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.quick-link {
  background: none;
  border: none;
  color: var(--accent-lps);
  font-size: 0.72rem;
  cursor: pointer;
}

.quick-link:hover {
  text-decoration: underline;
}

.sep {
  color: var(--text-dim);
  font-size: 0.70rem;
  margin: 0 4px;
}

/* Filter Tree */
.filter-tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tree-node {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.root-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #F1F5F9;
}

.node-children {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 6px;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.tree-subnode {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 10px;
}

.sub-header {
  margin-bottom: 6px;
}

.badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.badge-lps {
  background: rgba(0, 229, 255, 0.18);
  color: var(--accent-lps);
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.badge-sps {
  background: rgba(255, 145, 0, 0.18);
  color: var(--accent-sps);
  border: 1px solid rgba(255, 145, 0, 0.35);
}

.badge-disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-count {
  font-size: 0.70rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 10px;
}

.disabled-subnode {
  opacity: 0.45;
  pointer-events: none;
}

.fleet-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
  max-height: 95px;
  overflow-y: auto;
  padding: 4px 2px;
}

.fleet-chips-container {
  margin: 4px 0 6px 0;
}

.inactive-fleets-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.68rem;
  color: var(--text-dim);
  transition: all 0.2s;
  user-select: none;
}

.inactive-fleets-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.2);
}

.inactive-fleets-toggle .chevron-icon {
  font-size: 0.60rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.inactive-fleets-toggle.open .chevron-icon {
  transform: rotate(180deg);
}

.inactive-fleets-wrap {
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 120px;
  opacity: 1;
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 4px;
}

.inactive-fleets-wrap.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 4px;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.fleet-chip {
  font-size: 0.70rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.fleet-chip.inactive-chip {
  opacity: 0.65;
  border-style: dashed;
}

.fleet-chip.inactive-chip:hover {
  opacity: 1.0;
}

.fleet-chip.resting-chip {
  border: 1px dashed rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  opacity: 0.65;
  color: var(--text-dim);
}

.fleet-chip.resting-chip:hover {
  opacity: 0.95;
  border-color: rgba(0, 229, 255, 0.5) !important;
}

.fleet-chip.resting-chip.active {
  border: 1px dashed var(--accent-lps) !important;
  background: rgba(0, 229, 255, 0.12) !important;
  color: #E2E8F0;
  opacity: 0.90;
}

.fleet-chip.resting-chip.active.sps {
  border: 1px dashed var(--accent-sps) !important;
  background: rgba(255, 145, 0, 0.12) !important;
  color: #E2E8F0;
  opacity: 0.90;
}

.fleet-chip.active {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--accent-lps);
  color: #FFFFFF;
}

.fleet-chip.active.sps {
  background: rgba(255, 145, 0, 0.2);
  border-color: var(--accent-sps);
}

.role-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.role-selector-row label {
  cursor: pointer;
  color: var(--text-muted);
}

/* Feature 2 Live Panel */
.f2-panel {
  background: rgba(0, 230, 118, 0.04);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 8px;
  margin: 10px;
}

.f2-badge {
  font-size: 0.65rem;
  background: var(--accent-green);
  color: #070D18;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.f2-control-item {
  margin-top: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.time-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-input {
  background: #020617;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.80rem;
  color-scheme: dark;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sublabel-text {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.speed-legend-bar {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.70rem;
  color: var(--text-dim);
}

.spd-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.color-dot.red {
  background-color: var(--accent-red);
}

.color-dot.green {
  background-color: var(--accent-green);
}

.opacity-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.range-slider {
  flex: 1;
  accent-color: var(--accent-green);
}

.slider-pct {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-main);
}

/* Map Wrapper with Centered Red Framed Canvas (Point 6: 28~45°N, 118~137°E 고정 프레임) */
.map-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
  background: radial-gradient(circle at center, #0B132B 0%, #030712 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 14px 12px 14px;
  gap: 0;
  overflow: hidden;
  box-sizing: border-box;
}

#map-viewport-frame {
  flex: 1 1 auto !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: unset !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #08111e;
}

#map {
  width: 100%;
  height: 100%;
  background: #070D18;
  overflow: hidden;
}

/* Floating Overlays */
.map-floating-overlay {
  position: absolute;
  z-index: 850;
  pointer-events: auto;
}

.top-left {
  top: 16px;
  left: 16px;
}

.top-right {
  top: 16px;
  right: 16px;
}

.eez-legend-card,
.vessel-legend-card {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #E2E8F0;
  margin-bottom: 5px;
}

.legend-row:last-child {
  margin-bottom: 0;
}

.legend-line {
  width: 24px;
  height: 3px;
  display: inline-block;
  border-radius: 1px;
}

.eez-line {
  background-color: #000000;
  border-top: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
}

.prohib-line {
  background: repeating-linear-gradient(90deg, #78909C 0, #78909C 4px, transparent 4px, transparent 8px);
  height: 2px;
}

.fg-lps-line {
  background: #00E5FF;
  border-top: 1px dashed #00E5FF;
}

.fg-chub-line {
  background: #FFD600;
  border-top: 1px dashed #FFD600;
}

.vessel-legend-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.vessel-legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 0.72rem;
  color: #E2E8F0;
}

.vessel-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlight-legend {
  background: rgba(224, 64, 251, 0.16);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(224, 64, 251, 0.45);
}

.circle-legend-marker,
.circle-legend-active {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.8px solid #FF1744;
  background: rgba(255, 23, 68, 0.35);
  display: inline-block;
  flex-shrink: 0;
}

.circle-legend-done {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.8px solid #000000;
  background: rgba(0, 0, 0, 0.35);
  display: inline-block;
  flex-shrink: 0;
}

/* HSI Colorbar */
.hsi-colorbar-wrap {
  right: 16px;
  top: 175px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  width: 120px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hsi-colorbar-title {
  font-size: 0.70rem;
  font-weight: 700;
  color: #CBD5E1;
  text-align: center;
  margin-bottom: 8px;
}

.hsi-bar-outer {
  display: flex;
  height: 130px;
  gap: 8px;
}

.hsi-bar-gradient {
  width: 16px;
  height: 100%;
  border-radius: 3px;
  border: 1px solid #000;
  background: linear-gradient(to bottom,
      #7A0403 0%,
      #D02802 12%,
      #F66014 25%,
      #FEA22D 38%,
      #E1E339 50%,
      #77FA62 62%,
      #20DE8B 75%,
      #1FA6CE 88%,
      #30123B 100%);
}

.hsi-bar-ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Leaflet Zoom Control Position Adjustment (타임라인 바 겹침 방지) */
.leaflet-bottom.leaflet-right {
  bottom: 16px !important;
  right: 16px !important;
}

/* Timeline Bottom Bar (Placed outside and below map-viewport-frame, standardized 56px height) */
.timeline-bar {
  position: relative;
  width: min(940px, calc(100% - 32px));
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  background: #0f172a !important;
  /* 위경도 텍스트가 비치지 않도록 견고한 불투명 배경 */
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 12px;
  padding: 6px 18px;
  z-index: 950 !important;
  /* graticulePane(860)보다 확실히 위에 배치하여 텍스트 겹침 원천 차단 */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

body.light-theme .timeline-bar {
  background: #ffffff !important;
  /* 화이트 테마에서도 뒤쪽 경도 라벨이 투과되지 않는 순백 불투명 배경 */
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

/* Sharp distinct grid cell boundaries without blurring (User: 격자 테두리가 뚜렷하게, 뭉개지 않음) */
.crisp-hsi-layer {
  image-rendering: pixelated !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
}

.timeline-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00E5FF, #0088CC);
  border: none;
  color: #070D18;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
  transition: transform 0.15s;
}

.play-btn:hover {
  transform: scale(1.06);
}

.speed-toggle-group {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2px;
}

.spd-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.spd-btn.active {
  background: rgba(0, 229, 255, 0.25);
  color: var(--accent-lps);
}

.timeline-slider-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-slider {
  width: 100%;
  accent-color: var(--accent-lps);
  height: 6px;
  cursor: pointer;
}

.time-tick-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.current-time-badge {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-lps);
  background: #020617;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-active);
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
}

input:checked+.slider {
  background-color: var(--accent-green);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.hidden {
  display: none !important;
}

/* ==============================================================================
   ★ [핵심 수정: Point 7] 줌 확대/축소 시 좌표 100% 절대 고정 마커 스타일
   - .boat-marker-div에 어떠한 CSS transition도 주지 않음 (Leaflet transform 간섭 차단)
   - 회전(transform: rotate)은 내부의 .boat-marker-inner에만 격리 적용
   ============================================================================== */
.boat-marker-div {
  position: absolute !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  /* NO transition: transform allowed! Leaflet manages position via translate3d and negative margin */
  transition: none !important;
}

.boat-marker-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.boat-rotator {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  pointer-events: auto;
}

.boat-marker-svg {
  display: block;
  pointer-events: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

/* ==============================================================================
   ★ [조업(양망) 중 본선 고품질 소나 레이더 루핑 펄스 효과]
   - 점선 원 완전 제거 (조업 어장 원과의 혼동 차단)
   - 부드럽게 퍼져나가는 3중 컨센트릭 소나 레이더 파동 (Solid High-Tech Ripple)
   - 이동(재생) 및 정지 모든 상황에서 100% 영구 연속 루핑 보장
   ============================================================================== */
.sonar-emitter {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}

.sonar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.8px solid #E040FB;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.38) 0%, rgba(217, 70, 239, 0.10) 55%, transparent 100%);
  box-shadow: 0 0 12px rgba(224, 64, 251, 0.70), 0 0 4px rgba(244, 114, 182, 0.50);
  pointer-events: none;
  opacity: 0;
  animation: sonar-ripple 2.1s cubic-bezier(0.12, 0.55, 0.35, 1) infinite;
}

.sonar-ring.ring-1 {
  animation-delay: 0s;
}

.sonar-ring.ring-2 {
  animation-delay: 0.7s;
}

.sonar-ring.ring-3 {
  animation-delay: 1.4s;
}

@keyframes sonar-ripple {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.95;
    border-width: 2.2px;
  }

  50% {
    opacity: 0.60;
    border-width: 1.6px;
  }

  100% {
    width: 50px;
    height: 50px;
    opacity: 0;
    border-width: 0.6px;
  }
}

/* Leaflet Custom Popups */
.leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-active) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75) !important;
  padding: 4px !important;
}

.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.96) !important;
}

.custom-popup {
  padding: 8px 10px;
  font-size: 0.80rem;
  line-height: 1.45;
  min-width: 260px;
}

.popup-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.popup-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.popup-grid {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 4px 8px;
}

.popup-k {
  color: var(--text-dim);
}

.popup-v {
  color: var(--text-main);
  font-weight: 500;
}

.popup-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.popup-status-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.70rem;
}

.status-fishing {
  background: rgba(255, 23, 68, 0.25);
  color: #FF5252;
  border: 1px solid #FF5252;
}

.status-nav {
  background: rgba(0, 230, 118, 0.2);
  color: #00E676;
  border: 1px solid #00E676;
}

.status-moored {
  background: rgba(100, 116, 139, 0.25);
  color: #94A3B8;
  border: 1px solid #64748B;
}

.status-lost {
  background: rgba(148, 163, 184, 0.20);
  color: #CBD5E1;
  border: 1px solid #94A3B8;
}

.status-light {
  background: rgba(255, 214, 0, 0.18);
  color: #FFD600;
  border: 1px solid #FFD600;
}

.status-support {
  background: rgba(0, 229, 255, 0.18);
  color: #00E5FF;
  border: 1px solid #00E5FF;
}

.boat-marker-div.signal-lost {
  opacity: 0.82;
}

.boat-marker-div.signal-lost .boat-marker-svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.popup-sog-cog {
  color: #00E5FF;
}

.popup-hauls-cnt {
  color: #FF5252;
}

.popup-catch-act {
  color: #00E676;
}

.popup-market {
  color: #94A3B8;
}

/* ==============================================================================
   Right Sidebar (지도 밖 오른쪽 정렬 패널: 베이스맵, HSI 제어, 어업협정 레이어, 범례)
   ============================================================================== */
.sidebar-right {
  flex: 0 0 320px !important;
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  box-sizing: border-box !important;
  background: var(--bg-sidebar);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 900;
}

.sidebar-right::-webkit-scrollbar {
  width: 6px;
}

.sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

/* Basemap Toggle Grid */
.basemap-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.basemap-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 4px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.basemap-pill input {
  display: none;
}

.basemap-pill:hover {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-lps);
  border-color: var(--border-active);
}

.basemap-pill.active {
  background: rgba(0, 229, 255, 0.22);
  color: #00E5FF;
  border-color: #00E5FF;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

/* HSI Side Panel */
.hsi-side-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.hsi-bar-horizontal-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.hsi-bar-horizontal-wrap .hsi-bar-gradient {
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(to right,
      #30123B 0%,
      #4662D8 20%,
      #28BBEC 40%,
      #A2FC3C 60%,
      #FB8022 80%,
      #7A0403 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hsi-bar-ticks-horiz {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Layer Checkbox List */
.layer-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.layer-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.layer-check-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.layer-check-item input[type="checkbox"] {
  accent-color: var(--accent-lps);
  cursor: pointer;
}

.layer-chip {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 2.2px dotted #000000 !important;
  background: transparent !important;
  flex-shrink: 0;
}

.section-toggle-header {
  transition: background 0.15s;
  padding: 2px 4px;
  border-radius: 4px;
}

.section-toggle-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.section-toggle-header.collapsed #treatyChevron,
.section-toggle-header.collapsed #vesselLegendChevron {
  transform: rotate(-90deg);
}

.layer-checkbox-list,
.vessel-legend-grid-side {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, margin-top 0.28s ease;
  overflow: hidden;
}

.layer-checkbox-list.collapsed,
.vessel-legend-grid-side.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none !important;
}

.layer-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.eez-line-side {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 2.2px dotted #000000 !important;
  /* 조업한계선 검정 점선 */
  flex-shrink: 0;
}

.aqua-line-side {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 2.0px solid #000000 !important;
  /* 양식어장 검정 실선 */
  flex-shrink: 0;
}

.layer-item-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vessel Legend Grid in Right Sidebar */
.vessel-legend-grid-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

/* Speed Gradient Bar */
.speed-gradient-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.speed-gradient-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #D50000 0%, #FF6D00 25%, #FFD600 50%, #76FF03 75%, #00C853 100%);
}

.speed-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ==============================================================================
   Light Theme (화이트 해도 모드 지원)
   ============================================================================== */
body.light-theme {
  --bg-main: #EEF2F6;
  --bg-sidebar: rgba(255, 255, 255, 0.98);
  --bg-card: rgba(241, 245, 249, 0.95);
  --bg-card-hover: rgba(226, 232, 240, 0.95);
  --border-color: rgba(0, 0, 0, 0.10);
  --border-active: rgba(0, 119, 182, 0.50);
  --text-main: #0F172A;
  --text-muted: #334155;
  --text-dim: #64748B;
}

body.light-theme .app-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

body.light-theme .brand-title {
  color: #0F172A;
}

body.light-theme .stat-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
}

body.light-theme .stat-val {
  color: #0284C7;
}

body.light-theme .stat-highlight {
  color: #DC2626;
}

body.light-theme .clock-display {
  background: #E2E8F0;
  color: #0369A1;
  border-color: rgba(2, 132, 199, 0.3);
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

body.light-theme .map-wrapper {
  background: radial-gradient(circle at center, #F1F5F9 0%, #CBD5E1 100%);
}

body.light-theme #map-viewport-frame {
  flex: 1 1 auto !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: unset !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #08111e;
}

body.light-theme #map {
  background: #F8FAFC;
}

body.light-theme .timeline-bar {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

body.light-theme .time-tick-labels span {
  color: #475569;
  font-weight: 600;
}

body.light-theme .current-time-badge {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #38BDF8;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

body.light-theme .basemap-pill {
  background: #F1F5F9;
  color: #475569;
  border-color: #CBD5E1;
}

body.light-theme .basemap-pill.active {
  background: #E0F2FE;
  color: #0284C7;
  border-color: #0284C7;
}

body.light-theme .tree-node {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-theme .root-label {
  color: #0F172A;
}

body.light-theme .search-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

body.light-theme .custom-select,
body.light-theme .time-input {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
}

/* ==============================================================================
   ★ [화이트 해도 전용 규격] 선박 정보 팝업창 & 선박 검색창 하얀색 테마
   ============================================================================== */

/* 1. 선박 정보 팝업창 (White Background, Clean Shadow, High Contrast Text) */
body.light-theme .leaflet-popup-content-wrapper {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14) !important;
  padding: 4px !important;
}

body.light-theme .leaflet-popup-tip {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
  width: 26px !important;
  height: 26px !important;
  font-size: 18px !important;
  line-height: 24px !important;
  text-align: center !important;
  color: #64748B !important;
  border-radius: 6px !important;
  background: rgba(241, 245, 249, 0.9) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100 !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .custom-popup {
  color: #0F172A !important;
}

body.light-theme .popup-title {
  color: #0F172A !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding-right: 28px !important;
}

body.light-theme .popup-k {
  color: #64748B !important;
  font-weight: 500;
}

body.light-theme .popup-v {
  color: #1E293B !important;
  font-weight: 600;
}

body.light-theme .popup-divider {
  background: #E2E8F0 !important;
}

body.light-theme .popup-sog-cog {
  color: #0284C7 !important;
  font-weight: 700;
}

body.light-theme .popup-hauls-cnt {
  color: #DC2626 !important;
  font-weight: 700;
}

body.light-theme .popup-catch-act {
  color: #059669 !important;
  font-weight: 700;
}

body.light-theme .popup-market {
  color: #64748B !important;
}

body.light-theme .badge-lps {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border: 1px solid #BAE6FD !important;
}

body.light-theme .badge-sps {
  background: #FFEDD5 !important;
  color: #EA580C !important;
  border: 1px solid #FED7AA !important;
}

body.light-theme .status-nav {
  background: #DCFCE7 !important;
  color: #16A34A !important;
  border: 1px solid #86EFAC !important;
}

body.light-theme .status-fishing {
  background: #FEE2E2 !important;
  color: #DC2626 !important;
  border: 1px solid #FCA5A5 !important;
}

/* 2. 선박 검색창 & 자동완성 드롭다운 (Pure White, Deep Text, Soft Blue Hover) */
body.light-theme .search-box {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

body.light-theme .search-box input {
  color: #0F172A !important;
}

body.light-theme .search-box input::placeholder {
  color: #94A3B8 !important;
}

body.light-theme .search-icon {
  color: #64748B !important;
}

body.light-theme .clear-btn {
  color: #94A3B8 !important;
}

body.light-theme .clear-btn:hover {
  color: #0F172A !important;
}

body.light-theme .search-box:focus-within {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

body.light-theme .search-results-dropdown {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .search-item {
  border-bottom: 1px solid #F1F5F9 !important;
  color: #0F172A !important;
}

body.light-theme .search-item:hover {
  background: #F0F9FF !important;
}

body.light-theme .search-vname {
  color: #0F172A !important;
}

body.light-theme .search-meta {
  color: #64748B !important;
}

body.light-theme .search-empty-msg {
  color: #64748B !important;
}

/* 3. 지도 플로팅 범례 카드 (Light Theme) */
body.light-theme .eez-legend-card,
body.light-theme .vessel-legend-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .legend-row {
  color: #1E293B !important;
}

body.light-theme .vessel-legend-title {
  color: #0F172A !important;
}

body.light-theme .inactive-fleets-toggle {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #64748B !important;
}

body.light-theme .inactive-fleets-toggle:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #1E293B !important;
}

body.light-theme .inactive-fleets-wrap {
  background: rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .wave-contour-panel .wave-legend-row {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #F8FAFC !important;
}

/* ==========================================================================
   스마트 날짜 네비게이터 (Smart Date Navigator & Picker)
   ========================================================================== */
.smart-date-nav-wrap {
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.smart-date-nav-wrap:hover {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.15);
}

.smart-date-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.duration-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stepper-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

#decDayBtn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #475569;
  color: #E2E8F0;
}

#decDayBtn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #94A3B8;
  color: #FFFFFF;
}

#incDayBtn {
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid #00E5FF;
  color: #00E5FF;
}

#incDayBtn:hover {
  background: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  color: #FFFFFF;
}

.date-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-arrow-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #00E5FF;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.15s ease;
  user-select: none;
}

.date-arrow-btn:hover {
  background: rgba(0, 229, 255, 0.28);
  border-color: #00E5FF;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}

.date-arrow-btn:active {
  transform: translateY(1px);
}

.date-input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.date-input-with-icon {
  width: 100%;
  height: 32px;
  padding: 0 32px 0 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 6px;
  color: #F8FAFC;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-input-with-icon:hover,
.date-input-with-icon:focus {
  border-color: #00E5FF;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
  outline: none;
}

/* 브라우저 네이티브 달력 인디케이터 투명 전체 커버 */
.date-input-with-icon::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.calendar-icon-indicator {
  position: absolute;
  right: 10px;
  pointer-events: none;
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.5));
  transition: transform 0.2s ease;
}

.date-input-container:hover .calendar-icon-indicator {
  transform: scale(1.15);
}

#applyDateBtn {
  margin-top: 8px;
  width: 100%;
  height: 34px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(0, 180, 216, 0.4));
  border: 1px solid #00E5FF;
  border-radius: 6px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.2);
  transition: all 0.15s ease;
}

#applyDateBtn:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.45), rgba(0, 180, 216, 0.65));
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}

body.light-theme .smart-date-nav-wrap {
  background: #FFFFFF !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12) !important;
}

body.light-theme .smart-date-header-row span {
  color: #0F172A !important;
  font-weight: 800 !important;
}

body.light-theme .date-arrow-btn {
  background: #F0F9FF !important;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
}

body.light-theme .date-arrow-btn:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35) !important;
}

body.light-theme .date-input-with-icon {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
  font-weight: 800 !important;
}

body.light-theme .date-input-with-icon:focus {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

body.light-theme #durationDaysLabel {
  color: #0284C7 !important;
  font-weight: 800 !important;
}

body.light-theme .duration-stepper {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
}

body.light-theme #decDayBtn {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

body.light-theme #decDayBtn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

body.light-theme #incDayBtn {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
}

body.light-theme #incDayBtn:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
}

body.light-theme #voyageRangeDisplay {
  color: #475569 !important;
  font-weight: 700 !important;
}

body.light-theme #applyDateBtn {
  background: linear-gradient(135deg, #0284C7, #0369A1) !important;
  border-color: #0284C7 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
}

body.light-theme #applyDateBtn:hover {
  background: linear-gradient(135deg, #0369A1, #075985) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

/* 근해어업 대형선망 & 소형선망 박스 라이트 테마 (밝고 선명하게) */
body.light-theme .tree-subnode {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.tree-subnode.node-lps,
body.light-theme .tree-subnode.node-lps,
body.light-theme .tree-subnode:first-child:not(.node-sps) {
  border-color: #BAE6FD !important;
  background: #F0F9FF !important;
}

.tree-subnode.node-sps,
body.light-theme .tree-subnode.node-sps,
body.light-theme .tree-subnode:nth-child(2):not(.node-lps) {
  border-color: #FED7AA !important;
  background: #FFF7ED !important;
}

body.light-theme .badge-lps {
  background: #E0F2FE !important;
  color: #0369A1 !important;
  border-color: #7DD3FC !important;
}

body.light-theme .badge-sps {
  background: #FFEDD5 !important;
  color: #C2410C !important;
  border-color: #FDBA74 !important;
}

body.light-theme .badge-count {
  background: #E2E8F0 !important;
  color: #1E293B !important;
  font-weight: 700 !important;
}

body.light-theme .role-selector-row {
  color: #334155 !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .role-selector-row label {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.light-theme .role-label {
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.light-theme .fleet-chip {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.light-theme .fleet-chip:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}

body.light-theme .fleet-chip.active {
  background: #0284C7 !important;
  border-color: #0284C7 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3) !important;
}

body.light-theme .fleet-chip.active.sps {
  background: #EA580C !important;
  border-color: #EA580C !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3) !important;
}

body.light-theme .fleet-chip.inactive-chip {
  opacity: 0.75 !important;
  border-style: dashed !important;
  background: #F8FAFC !important;
  color: #64748B !important;
}

body.light-theme .fleet-chip.resting-chip {
  background: #F8FAFC !important;
  border: 1.5px dashed #94A3B8 !important;
  color: #64748B !important;
  opacity: 0.75 !important;
  box-shadow: none !important;
}

body.light-theme .fleet-chip.resting-chip.active {
  background: #E0F2FE !important;
  border: 1.5px dashed #0284C7 !important;
  color: #0369A1 !important;
  box-shadow: none !important;
  opacity: 0.95 !important;
}

body.light-theme .fleet-chip.resting-chip.active.sps {
  background: #FFEDD5 !important;
  border: 1.5px dashed #EA580C !important;
  color: #C2410C !important;
  box-shadow: none !important;
  opacity: 0.95 !important;
}

body.light-theme .inactive-fleets-toggle {
  background: #F8FAFC !important;
  border: 1px dashed #CBD5E1 !important;
  color: #64748B !important;
  font-weight: 600 !important;
}

body.light-theme .inactive-fleets-toggle:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}

body.light-theme .inactive-fleets-wrap {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

body.light-theme .node-children {
  border-left-color: #CBD5E1 !important;
}

body.light-theme .section-title {
  color: #0F172A !important;
  font-weight: 800 !important;
}

body.light-theme .radio-label span {
  color: #1E293B !important;
  font-weight: 700 !important;
}

body.light-theme .input-sublabel {
  color: #475569 !important;
  font-weight: 600 !important;
}

body.light-theme .preset-label {
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.light-theme .tree-node>.node-header span {
  color: #0F172A !important;
  font-weight: 800 !important;
}

/* ==============================================================================
   4-Tab Navigation & Multi-Mode System
   ============================================================================== */
.top-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  background: #00E5FF;
  color: #070D18;
  border-color: #00E5FF;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

body.light-theme .top-nav-tabs {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
}

body.light-theme .nav-tab {
  color: #475569 !important;
}

body.light-theme .nav-tab:hover {
  color: #0F172A !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .nav-tab.active {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
}

/* Floating Live Mode Pill (inside map top-left) */
.floating-live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0, 230, 118, 0.5);
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 230, 118, 0.2);
}

.floating-live-pill .pill-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #E2E8F0;
}

body.light-theme .floating-live-pill {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .floating-live-pill .pill-title {
  color: #0F172A !important;
}

/* Floating Live Cursor Coordinates Badge */
.cursor-coords-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00E5FF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

body.light-theme .cursor-coords-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #CBD5E1 !important;
  color: #0369A1 !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1) !important;
}

/* ==============================================================================
   [단기 어장예측 타임라인 바 - 기준(오늘) 중심 스크롤바 슬라이더 디자인]
   - 기준(오늘 11/19)을 중심으로 앞(-7일 과거)과 뒤(+9일 예측)를 직관적으로 탐색
   - PC: min(1080px, calc(100% - 24px)) 컴팩트 슬라이더
   - 모바일: 스마트폰 전폭 맞춤 터치 스크롤바
   ============================================================================== */
.forecast-timeline-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(1080px, calc(100% - 24px)) !important;
  max-width: calc(100% - 24px) !important;
  height: auto !important;
  min-height: 64px !important;
  max-height: none !important;
  padding: 8px 16px !important;
  margin: 0 auto 8px auto !important;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65) !important;
  box-sizing: border-box !important;
  z-index: 950 !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

body.light-theme .forecast-timeline-bar {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

.fc-slider-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 12px !important;
  min-width: 0 !important;
}

/* ◀ / ▶ 이전일/다음일 버튼 */
.forecast-timeline-bar .fc-nav-arrow-btn {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 38px !important;
  min-width: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  color: #38BDF8 !important;
  font-size: 0.90rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.forecast-timeline-bar .fc-nav-arrow-btn:hover:not(:disabled) {
  background: #38BDF8 !important;
  color: #070D18 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
}

.forecast-timeline-bar .fc-nav-arrow-btn:disabled,
.forecast-timeline-bar .fc-nav-arrow-btn.disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

body.light-theme .forecast-timeline-bar .fc-nav-arrow-btn {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0284C7 !important;
}

body.light-theme .forecast-timeline-bar .fc-nav-arrow-btn:hover:not(:disabled) {
  background: #0284C7 !important;
  color: #FFFFFF !important;
}

/* 기준(오늘) 즉시 복귀 버튼 */
.fc-today-jump-btn {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 11px !important;
  height: 38px !important;
  background: rgba(2, 132, 199, 0.15) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  color: #38BDF8 !important;
  font-size: 0.80rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.fc-today-jump-btn:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5) !important;
  border-color: #38BDF8 !important;
}

body.light-theme .fc-today-jump-btn {
  background: #E0F2FE !important;
  border-color: #BAE6FD !important;
  color: #0284C7 !important;
}

body.light-theme .fc-today-jump-btn:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
}

/* 슬라이더 트랙 & 기준 핀 래퍼 */
.fc-slider-wrap {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding: 0 4px !important;
}

.fc-slider-track-wrap {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  height: 24px !important;
}

/* 스크롤바 슬라이더 */
.fc-range-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 8px !important;
  border-radius: 4px !important;
  background: #334155 !important;
  outline: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  z-index: 2 !important;
  transition: background 0.15s ease !important;
}

body.light-theme .fc-range-slider {
  background: #CBD5E1 !important;
}

/* Webkit (Chrome, Safari, Edge) Thumb */
.fc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #0284C7 !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(2, 132, 199, 0.7) !important;
  cursor: grab !important;
  transition: transform 0.15s ease, background-color 0.15s ease !important;
}

.fc-range-slider::-webkit-slider-thumb:hover,
.fc-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.22) !important;
  background: #00E5FF !important;
  box-shadow: 0 3px 12px rgba(0, 229, 255, 0.8) !important;
}

/* Firefox Thumb */
.fc-range-slider::-moz-range-thumb {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #0284C7 !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  cursor: grab !important;
}

/* 기준(오늘) 고정 위치 핀 & 태그 */
.fc-slider-ref-pin {
  position: absolute !important;
  top: -10px !important;
  bottom: -4px !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  z-index: 1 !important;
}

.fc-slider-ref-pin .ref-pin-tag {
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  color: #00E5FF !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid #00E5FF !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  line-height: 1.1 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

.fc-slider-ref-pin .ref-pin-line {
  flex: 1 !important;
  width: 2px !important;
  background: #00E5FF !important;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.8) !important;
  margin-top: 2px !important;
}

body.light-theme .fc-slider-ref-pin .ref-pin-tag {
  color: #0284C7 !important;
  background: #FFFFFF !important;
  border-color: #0284C7 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .fc-slider-ref-pin .ref-pin-line {
  background: #0284C7 !important;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.5) !important;
}

/* 주요 눈금 스케일 라벨 */
.fc-slider-ticks {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: 3px !important;
  padding: 0 2px !important;
  box-sizing: border-box !important;
}

.fc-tick {
  font-size: 0.70rem !important;
  font-weight: 600 !important;
  color: #64748B !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
  white-space: nowrap !important;
}

.fc-tick:hover {
  color: #38BDF8 !important;
  transform: translateY(-1px) !important;
}

.fc-tick.today {
  color: #00E5FF !important;
  font-weight: 800 !important;
}

.fc-tick.active {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

body.light-theme .fc-tick {
  color: #94A3B8 !important;
}

body.light-theme .fc-tick:hover {
  color: #0284C7 !important;
}

body.light-theme .fc-tick.today {
  color: #0284C7 !important;
}

body.light-theme .fc-tick.active {
  color: #0F172A !important;
}

/* 우측 현재 선택 날짜 & 예측 구분 상태 뱃지 */
.forecast-timeline-bar .forecast-date-display {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 38px !important;
  padding: 0 12px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.fcd-date {
  font-family: monospace, var(--font-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
}

.fcd-badge {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
}

.fcd-badge.badge-today {
  background: rgba(0, 229, 255, 0.18) !important;
  color: #00E5FF !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
}

.fcd-badge.badge-future {
  background: rgba(2, 132, 199, 0.22) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
}

.fcd-badge.badge-past {
  background: rgba(148, 163, 184, 0.18) !important;
  color: #94A3B8 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

body.light-theme .forecast-timeline-bar .forecast-date-display {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .fcd-date {
  color: #0F172A !important;
}

body.light-theme .fcd-badge.badge-today {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border-color: #38BDF8 !important;
}

body.light-theme .fcd-badge.badge-future {
  background: #F0F9FF !important;
  color: #0369A1 !important;
  border-color: #BAE6FD !important;
}

body.light-theme .fcd-badge.badge-past {
  background: #F1F5F9 !important;
  color: #64748B !important;
  border-color: #CBD5E1 !important;
}

/* 모바일 전용 반응형 (<= 860px) */
@media (max-width: 860px) {
  .forecast-timeline-bar {
    position: absolute !important;
    bottom: 48px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 52px !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    z-index: 920 !important;
  }

  .fc-slider-container {
    gap: 8px !important;
  }

  .fc-today-jump-btn {
    padding: 4px 8px !important;
    height: 32px !important;
    font-size: 0.72rem !important;
  }

  .forecast-timeline-bar .fc-nav-arrow-btn {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 32px !important;
    min-width: 28px !important;
    font-size: 0.78rem !important;
  }

  .forecast-timeline-bar .forecast-date-display {
    height: 32px !important;
    padding: 0 8px !important;
    gap: 4px !important;
  }

  .fcd-date {
    font-size: 0.76rem !important;
  }

  .fcd-badge {
    font-size: 0.65rem !important;
    padding: 1px 4px !important;
  }

  .fc-slider-ticks .fc-tick:nth-child(2),
  .fc-slider-ticks .fc-tick:nth-child(6) {
    display: none !important;
    /* 모바일 폭 절약을 위해 중간 2개 눈금 숨김 */
  }
}

/* Past Historical Hauls Summary Bar */
.hist-summary-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(1200px, calc(100% - 24px)) !important;
  max-width: calc(100% - 24px) !important;
  height: auto !important;
  min-height: 52px !important;
  padding: 8px 18px !important;
  margin: 0 auto 8px auto !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  z-index: 950 !important;
}

.hist-summary-content {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hist-stat-item strong {
  color: var(--text-main);
  font-weight: 700;
}

.hist-stat-item.highlight strong {
  color: #FF9100;
  font-size: 1.05rem;
}

body.light-theme .hist-summary-content {
  color: #475569 !important;
}

body.light-theme .hist-stat-item strong {
  color: #0F172A !important;
}

body.light-theme .hist-stat-item.highlight strong {
  color: #EA580C !important;
}

/* Month Grid Buttons */
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.month-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.month-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  color: var(--text-main);
}

.month-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
}

body.light-theme .month-btn {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #64748B !important;
}

body.light-theme .month-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

body.light-theme .month-btn.active {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3) !important;
}

/* Selection Cards (Species & Gear) */
.selection-card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.selection-card:hover:not(.disabled) {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(51, 65, 85, 0.6);
}

.selection-card input[type="radio"] {
  display: none;
}

.selection-card.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: #00E5FF;
}

.selection-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.3);
  border-style: dashed;
}

.card-main-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.70rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-check-icon {
  font-size: 1.0rem;
  font-weight: 900;
  color: #00E5FF;
}

.badge-soon {
  font-size: 0.65rem;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  border-radius: 4px;
  margin-left: 5px;
  font-weight: normal;
}

body.light-theme .selection-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .selection-card:hover:not(.disabled) {
  border-color: #0284C7 !important;
  background: #F0F9FF !important;
}

body.light-theme .selection-card.active {
  background: #F0F9FF !important;
  border-color: #0284C7 !important;
}

body.light-theme .selection-card.disabled {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .card-main-title {
  color: #0F172A !important;
}

body.light-theme .card-desc {
  color: #64748B !important;
}

body.light-theme .card-check-icon {
  color: #0284C7 !important;
}

/* Graticule / Coordinate controls */
.coord-fmt-group {
  display: flex;
  gap: 6px;
}

.radio-label-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.radio-label-pill input {
  display: none;
}

.radio-label-pill.active {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00E5FF;
  color: #00E5FF;
}

body.light-theme .radio-label-pill {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

body.light-theme .radio-label-pill.active {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
  color: #0369A1 !important;
}

/* Graticule Canvas / Leaflet styling */
/* Graticule Canvas / Outer Label styling */
.graticule-outer-labels-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 860;
  overflow: visible;
}

.graticule-outer-label {
  position: absolute;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #94A3B8;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

body.light-theme .graticule-outer-label {
  color: #1E293B !important;
}

.graticule-outer-label.lat-label {
  transform: translateX(-100%) translateY(-50%);
  text-align: right;
  padding-right: 6px;
}

.graticule-outer-label.lon-label {
  transform: translateX(-50%) translateY(100%);
  text-align: center;
  padding-top: 6px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Date Card Box (Clean Modern Reference UI matching attached image)
   ========================================================================== */
.date-card-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1.5px solid #00B0FF;
  border-radius: 8px;
  padding: 12px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 176, 255, 0.12);
}

body.light-theme .date-card-box {
  background: #F8FAFC;
  border-color: #0284C7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.date-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-card-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

body.light-theme .date-card-title {
  color: #0F172A;
}

.time-mode-btn-group {
  display: flex;
  gap: 6px;
}

.btn-time-mode {
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.05);
  border: 1.2px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-time-mode:hover {
  border-color: #00E5FF;
  color: var(--text-main);
}

.btn-time-mode.active {
  background: rgba(0, 229, 255, 0.18);
  border-color: #00B0FF;
  color: #00E5FF;
  font-weight: 700;
}

body.light-theme .btn-time-mode {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .btn-time-mode:hover {
  border-color: #0284C7;
  color: #0F172A;
}

body.light-theme .btn-time-mode.active {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0369A1;
  font-weight: 700;
}

.date-card-nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-card-arrow-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid #00B0FF;
  border-radius: 6px;
  color: #00E5FF;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.date-card-arrow-btn:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.25);
  transform: scale(1.04);
}

.date-card-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #64748B;
  color: #64748B;
}

body.light-theme .date-card-arrow-btn {
  background: #FFFFFF;
  border-color: #0284C7;
  color: #0284C7;
}

body.light-theme .date-card-arrow-btn:hover:not(:disabled) {
  background: #E0F2FE;
}

body.light-theme .date-card-arrow-btn:disabled {
  opacity: 0.35;
  border-color: #CBD5E1;
  color: #94A3B8;
}

.date-card-center {
  flex: 1;
  height: 34px;
  background: rgba(2, 6, 23, 0.65);
  border: 1.2px solid rgba(0, 176, 255, 0.35);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.date-card-center:hover {
  border-color: #00E5FF;
}

body.light-theme .date-card-center {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

body.light-theme .date-card-center:hover {
  border-color: #0284C7;
}

.date-display-val {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

body.light-theme .date-display-val {
  color: #0F172A;
}

.cal-icon-emoji {
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.native-hidden-date {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.date-card-range-text {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  text-align: center;
  letter-spacing: -0.2px;
}

body.light-theme .date-card-range-text {
  color: #475569;
}

/* ==============================================================================
   4. 최적어장 찾기 & 위판장 추천 (Optimal Fishing Grounds & Market Finder)
   ============================================================================== */
.opt-species-btn-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.opt-species-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-color);
  text-align: center;
}

.opt-species-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: #38BDF8;
}

.opt-species-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(14, 165, 233, 0.15));
  border-color: #0284C7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
}

.opt-sp-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.opt-sp-gear {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.opt-species-btn.active .opt-sp-gear {
  color: #38BDF8;
  font-weight: 600;
}

body.light-theme .opt-species-btn {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #1E293B;
}

body.light-theme .opt-species-btn:hover {
  background: #F1F5F9;
  border-color: #0284C7;
}

body.light-theme .opt-species-btn.active {
  background: #EFF6FF;
  border-color: #0284C7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.2);
}

body.light-theme .opt-species-btn.active .opt-sp-gear {
  color: #0284C7;
}

/* KMI Market Pill */
.opt-market-info-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  font-size: 0.72rem;
  color: #10B981;
}

.opt-market-info-pill .market-dot {
  font-size: 0.65rem;
  animation: pulse 2s infinite;
}

body.light-theme .opt-market-info-pill {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #059669;
}

/* Port selects and pickers */
.opt-custom-select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 0.80rem;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.opt-custom-select:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.opt-select-sm {
  padding: 6px 8px;
  font-size: 0.75rem;
}

body.light-theme .opt-custom-select {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #1E293B;
}

.btn-pick-map {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pick-map:hover,
.btn-pick-map.picking {
  background: rgba(2, 132, 199, 0.2);
  border-color: #0284C7;
  color: #38BDF8;
}

.btn-pick-map.picking {
  animation: pulse-border 1.5s infinite;
}

.btn-reset-map {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reset-map:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
}

body.light-theme .btn-pick-map {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #334155;
}

body.light-theme .btn-pick-map:hover,
body.light-theme .btn-pick-map.picking {
  background: #EFF6FF;
  border-color: #0284C7;
  color: #0284C7;
}

body.light-theme .btn-reset-map {
  border-color: #CBD5E1;
  color: #64748B;
}

.opt-pick-coords-notice {
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed #F59E0B;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #F59E0B;
  text-align: center;
  animation: fadeIn 0.25s;
}

/* Arrival modes cards */
.opt-arrival-modes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opt-arr-mode-card {
  display: flex;
  align-items: flex-start;
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.opt-arr-mode-card input[type="radio"] {
  margin-top: 3px;
  margin-right: 8px;
  accent-color: #0284C7;
}

.opt-arr-mode-card:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: #64748B;
}

.opt-arr-mode-card.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: #0284C7;
}

.opt-arr-mode-content {
  flex: 1;
}

.opt-arr-mode-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-color);
}

.opt-rec-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  border-radius: 4px;
}

.opt-arr-mode-desc {
  font-size: 0.70rem;
  color: var(--text-dim);
  margin-top: 3px;
  line-height: 1.35;
}

body.light-theme .opt-arr-mode-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-theme .opt-arr-mode-card:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

body.light-theme .opt-arr-mode-card.active {
  background: #EFF6FF;
  border-color: #0284C7;
}

/* Param grid */
.opt-param-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.opt-param-item label {
  display: block;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  width: 100%;
  padding: 6px 36px 6px 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 0.80rem;
  font-weight: 700;
  outline: none;
}

.input-with-unit input:focus {
  border-color: #0284C7;
}

.input-with-unit .unit {
  position: absolute;
  right: 8px;
  font-size: 0.70rem;
  color: var(--text-dim);
  pointer-events: none;
}

body.light-theme .input-with-unit input {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #1E293B;
}

/* Execute Button */
.btn-execute-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 1px solid #38BDF8;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-execute-opt:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
}

.btn-execute-opt:active {
  transform: translateY(0);
}

/* Optimal Recommendation Cards */
.opt-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-result-card {
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.opt-result-card:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: #38BDF8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.opt-result-card.active-card {
  border-color: #00E5FF;
  background: rgba(2, 132, 199, 0.15);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.opt-card-rank-strip {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.opt-rank-1 .opt-card-rank-strip {
  background: linear-gradient(180deg, #F59E0B, #D97706);
}

.opt-rank-2 .opt-card-rank-strip {
  background: linear-gradient(180deg, #94A3B8, #64748B);
}

.opt-rank-3 .opt-card-rank-strip {
  background: linear-gradient(180deg, #B45309, #78350F);
}

.opt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.opt-rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
}

.opt-rank-1 .opt-rank-number {
  background: #0284C7;
  color: #FFFFFF;
}

.opt-rank-2 .opt-rank-number {
  background: #64748B;
  color: #FFFFFF;
}

.opt-rank-3 .opt-rank-number {
  background: #475569;
  color: #FFFFFF;
}

.opt-cost-breakdown-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 0.68rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 6px 8px;
  margin-top: 5px;
}

body.light-theme .opt-cost-breakdown-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.opt-cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opt-cost-item span {
  color: var(--text-dim);
}

.opt-cost-item strong {
  color: var(--text-color);
  font-weight: 700;
}

.opt-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.opt-rank-1 .opt-rank-badge {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.opt-rank-2 .opt-rank-badge {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.opt-rank-3 .opt-rank-badge {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FEF3C7;
}

.opt-hsi-badge {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 4px;
}

.opt-card-ground-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 6px;
}

.opt-card-route-flow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.opt-flow-arrow {
  color: #94A3B8;
  font-size: 0.70rem;
}

.opt-card-route-flow strong {
  color: var(--text-color);
}

.opt-card-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.opt-metric-box {
  display: flex;
  flex-direction: column;
}

.opt-metric-box .lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.opt-metric-box .val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 1px;
}

.opt-metric-box .val-profit {
  color: #10B981;
  font-size: 0.82rem;
}

.opt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.opt-price-pill {
  font-size: 0.70rem;
  color: #38BDF8;
}

.btn-view-route {
  padding: 3px 8px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid #0284C7;
  border-radius: 4px;
  color: #38BDF8;
  font-size: 0.70rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-view-route:hover {
  background: #0284C7;
  color: #FFFFFF;
}

body.light-theme .opt-result-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-theme .opt-result-card:hover {
  background: #F8FAFC;
  border-color: #0284C7;
}

body.light-theme .opt-result-card.active-card {
  border-color: #0284C7;
  background: #EFF6FF;
}

body.light-theme .opt-card-metrics-grid {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-theme .opt-card-departure-row {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}

body.light-theme .opt-card-departure-row strong {
  color: #0369A1 !important;
}

body.light-theme .opt-cost-breakdown-box {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

/* Market Mini Table */
.market-table-wrap {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.market-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: left;
}

.market-mini-table th,
.market-mini-table td {
  white-space: nowrap !important;
}

.market-mini-table th {
  position: sticky;
  top: 0;
  background: rgba(30, 41, 59, 0.95);
  color: var(--text-muted);
  font-weight: 700;
  padding: 6px 6px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.70rem;
}

.market-mini-table td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 0.72rem;
}

.market-mini-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.btn-basis-pill {
  transition: all 0.15s ease;
}

.btn-basis-pill.active {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  font-weight: 700;
}

/* Sea Block Grid Labels (검정색 글자, 박스/테두리 없음, 외곽 흰색 헤일로) */
.sea-block-icon-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sea-block-label {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #000000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-align: center;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  text-shadow: -1px -1px 0 #FFFFFF, 1px -1px 0 #FFFFFF, -1px 1px 0 #FFFFFF, 1px 1px 0 #FFFFFF, 0 0 2px #FFFFFF;
}

.sea-block-label.sea-block-major {
  letter-spacing: -0.3px;
}

.sea-block-label.sea-block-minor {
  letter-spacing: -0.4px;
}

body.light-theme .sea-block-label {
  color: #000000 !important;
  background: transparent !important;
  border: none !important;
}

body.light-theme .market-mini-table th {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

body.light-theme .market-mini-table td {
  border-color: #F1F5F9;
  color: #1E293B;
}

/* Optimal Summary Bar (2-Row Balanced Adaptive Design - Zero Clipping Guarantee) */
.optimal-summary-bar {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 20px !important;
  width: min(1380px, calc(100% - 24px)) !important;
  max-width: calc(100% - 24px) !important;
  height: auto !important;
  min-height: 62px !important;
  max-height: none !important;
  box-sizing: border-box !important;
  z-index: 1000 !important;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.75), 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  gap: 5px !important;
}

body.light-theme .optimal-summary-bar {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.optimal-summary-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  gap: 5px !important;
  overflow: visible !important;
}

.opt-sum-row-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  white-space: nowrap !important;
}

.opt-sum-metrics {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  white-space: nowrap !important;
  font-size: 0.80rem !important;
}

.opt-sum-metric {
  display: flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.light-theme .opt-sum-metric {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.opt-sum-metric .lbl {
  font-size: 0.70rem !important;
  font-weight: 600 !important;
  color: var(--text-dim) !important;
}

.opt-sum-metric .val {
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  color: var(--text-color) !important;
}

.opt-sum-metric .sub {
  font-size: 0.70rem !important;
  color: var(--text-dim) !important;
}

.opt-sum-metric.highlight {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

body.light-theme .opt-sum-metric.highlight {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}

.leaflet-control-attribution {
  display: none !important;
}

body.light-theme .optimal-summary-bar {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.light-theme .opt-sum-flow {
  color: #0f172a !important;
}

body.light-theme .opt-sum-flow .opt-sum-arrow {
  color: #64748b !important;
}

.optimal-summary-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
}

.opt-sum-badge-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #B45309;
  border: 1px solid #F59E0B;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.opt-sum-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-color);
}

.opt-sum-flow .opt-sum-arrow {
  color: #94A3B8;
  font-size: 0.74rem;
}

.opt-sum-node.node-dep {
  color: #38BDF8;
}

.opt-sum-node.node-ground {
  color: #F59E0B;
}

.opt-sum-node.node-arr {
  color: #10B981;
}

.opt-sum-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

.opt-sum-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
}

.opt-sum-metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.opt-sum-metric .lbl {
  font-size: 0.70rem;
  color: var(--text-dim);
}

.opt-sum-metric .val {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-color);
}

.opt-sum-metric .sub {
  font-size: 0.70rem;
  color: var(--text-dim);
}

.opt-sum-metric.highlight .val-profit {
  font-size: 0.95rem;
  color: #10B981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

body.light-theme .opt-sum-metric.highlight .val-profit {
  color: #059669;
  text-shadow: none;
}

/* -------------------------------------------------------------
   최적어장 찾기 핀포인트 & 흰색 카드 디자인 (사용자 맞춤 표준)
   ------------------------------------------------------------- */
.custom-opt-teardrop-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000 !important;
  position: relative !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-opt-teardrop-pin:hover {
  transform: scale(1.18);
  z-index: 9999;
}

/* 어장 중심점 타깃 (어장 중심 및 항로 굴절점 시인성 확보) */
.opt-ground-focal-point {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid #000000;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  position: relative;
}

.opt-ground-focal-point::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #000000;
}

/* 흰색 최적어장 카드 (조업 어장과 항로를 가리지 않도록 상단 오프셋 배치) */
.opt-pin-ground-white {
  position: relative;
  z-index: 10000 !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 2px solid #000000 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  min-width: 175px !important;
  max-width: 210px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  font-family: var(--font-display, 'Pretendard', sans-serif);
  cursor: pointer;
  transition: transform 0.18s ease;
  user-select: none;
}

.opt-pin-ground-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.opt-pin-ground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.opt-pin-ground-badge {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  letter-spacing: -0.3px;
}

.opt-pin-ground-hsi {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
  border: 1px solid #86EFAC;
}

.opt-pin-ground-title {
  font-size: 0.80rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  margin-bottom: 3px;
}

.opt-pin-ground-footer {
  font-size: 0.68rem;
  color: #475569;
  display: flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.2;
}

.opt-pin-ground-footer strong {
  color: #059669;
  font-weight: 800;
}

/* 카드 하단 포인팅 화살표 (어장 중심점을 향함) */
.opt-pin-ground-arrow {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #000000;
}

.opt-pin-ground-arrow::after {
  content: '';
  position: absolute;
  bottom: 1.5px;
  left: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #FFFFFF;
}

/* -------------------------------------------------------------
   Optimal Fishing Grounds Sidebar (혜영수산 선단 & 10대 어종 & 2대 버튼)
   ------------------------------------------------------------- */
.opt-company-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.opt-fleet-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.opt-fleet-label {
  width: 44px;
  min-width: 44px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
}

.opt-fleet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fleet-vessel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  user-select: none;
}

.fleet-vessel-chip.locked {
  cursor: default;
  border-color: #64748B;
  background: rgba(51, 65, 85, 0.6);
  color: #F1F5F9;
}

.fleet-vessel-chip.carrier-chip {
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94A3B8;
}

.fleet-vessel-chip.carrier-chip:hover {
  border-color: #38BDF8;
  color: #FFFFFF;
  background: rgba(14, 165, 233, 0.15);
}

.fleet-vessel-chip.carrier-chip.selected {
  border-color: #0284C7;
  background: rgba(2, 132, 199, 0.3);
  color: #38BDF8;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* 10대 대상어종 2열 박스 */
.opt-species-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  margin-top: 6px;
}

.opt-species-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opt-sp-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  color: #E2E8F0;
  padding: 2px 0;
  user-select: none;
}

.opt-sp-radio-label input[type="radio"] {
  accent-color: #0284C7;
  cursor: pointer;
}

.opt-sp-radio-text {
  font-weight: 500;
}

/* 출항지/입항지 선택 */
.opt-port-select-wrap {
  width: 100%;
}

.btn-pick-map {
  flex: 1;
  padding: 6px 8px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 6px;
  color: #38BDF8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-pick-map:hover,
.btn-pick-map.picking {
  background: rgba(14, 165, 233, 0.28);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.btn-reset-map {
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #94A3B8;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-map:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #FFFFFF;
}

/* 2대 액션 버튼 */
.opt-actions-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
}

.btn-opt-search {
  width: 100%;
  padding: 10px;
  background: #0284C7;
  border: 1px solid #38BDF8;
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.btn-opt-search:hover {
  background: #0369A1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}

.btn-opt-ai {
  width: 100%;
  padding: 10px;
  background: #007799;
  border: 1px solid #00E5FF;
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(0, 229, 255, 0.25);
}

.btn-opt-ai:hover {
  background: #0088AA;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.45);
}

/* Light Theme overrides for new elements */
body.light-theme .opt-company-title {
  color: #0F172A;
}

body.light-theme .fleet-vessel-chip {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #334155;
}

body.light-theme .fleet-vessel-chip.locked {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #1E293B;
}

body.light-theme .fleet-vessel-chip.carrier-chip.selected {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0369A1;
}

body.light-theme .opt-species-box {
  background: #F8FAFC;
  border-color: #BAE6FD;
}

body.light-theme .opt-sp-radio-label {
  color: #1E293B;
}

body.light-theme .btn-pick-map {
  background: #F0F9FF;
  border-color: #7DD3FC;
  color: #0284C7;
}

body.light-theme .btn-reset-map {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
}

/* -------------------------------------------------------------
   Optimal Route Click Card (Image 1 규격 & 사용자 스타일 커스텀)
   - 해구 단독 표기 (234-4해구)
   - 위경도 좌표 표기 (ddmm.mm, ddmm.mm)
   - 88% 적합 (선명하고 큰 녹색 글씨)
   - 거리 및 비용: 회색의 얇은 글씨 (color: #64748B, font-weight: 400~500)
   - 4대 상세 타임라인: 출항➔어장, 최적출항, 어장➔입항, 예상입항
   ------------------------------------------------------------- */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 2px solid #0F172A;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4;
}

.opt-route-click-card {
  background: #FFFFFF;
  color: #0F172A;
  padding: 14px 28px 14px 16px;
  width: 275px;
  font-family: var(--font-display, 'Pretendard', sans-serif);
  box-sizing: border-box;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  color: #94A3B8;
  font-size: 16px;
  padding: 4px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #0F172A;
}

/* 상단 헤더: 테마 뱃지 + 해구 단독 명칭 */
.opt-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.opt-theme-badge {
  font-size: 0.70rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: -0.3px;
}

.opt-theme-profit {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.opt-theme-cost {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #7DD3FC;
}

.opt-theme-hsi {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #D8B4FE;
}

.opt-block-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.opt-block-coords {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 6px;
}

/* 중앙 적합도 강조: 선명하고 큰 녹색 글씨 */
.opt-hsi-highlight-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #16A34A;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin: 6px 0 10px 0;
}

/* [사용자 핵심 지시] 거리와 비용: 회색의 얇은 글씨 (color: #64748B, font-weight: 400~500) */
.opt-gray-metrics-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #CBD5E1;
  margin-bottom: 10px;
}

.opt-gray-metric-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  color: #64748B;
  font-weight: 400;
  /* 얇은 글씨 */
}

.opt-gray-metric-item .metric-val {
  font-size: 0.95rem;
  color: #64748B !important;
  font-weight: 400 !important;
  /* 사용자 명시 지침: 회색의 얇은 글씨 */
}

/* 4대 상세 조업 타임라인 */
.opt-timeline-detail-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.73rem;
  color: #334155;
  background: #F8FAFC;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

.opt-timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.opt-timeline-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
}

.tag-sunset {
  background: #FEF3C7;
  color: #B45309;
  font-weight: 800;
}

.tag-dep {
  background: #DCFCE7;
  color: #166534;
}

.tag-fishing {
  background: #F3E8FF;
  color: #7E22CE;
  font-weight: 800;
}

.tag-arr {
  background: #FEE2E2;
  color: #991B1B;
}

.tag-landing {
  background: #FEF3C7;
  color: #92400E;
  font-weight: 800;
}

.opt-sub-note {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
}

.opt-auction-note {
  display: inline-block;
  color: #D97706;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 2px;
}

.opt-timeline-text {
  flex: 1;
}

.opt-timeline-text strong {
  font-weight: 700;
  color: #0F172A;
}

/* 네비게이션 테마 배지 사이드바용 */
.opt-rank-theme-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: -0.3px;
}







/* ============================================================
   [v1.3.0] Floating Basemap Switcher & Progress Version Badges
   ============================================================ */

/* Map Floating Basemap Switcher */
.floating-basemap-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.floating-basemap-switch .basemap-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.floating-basemap-switch .basemap-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.floating-basemap-switch .basemap-btn.active {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.5);
}

/* Header Version & Progress Tag */
.header-version-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.version-pill {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.date-pill {
  background: rgba(51, 65, 85, 0.8);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.progress-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-status-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  color: #a7f3d0;
  transform: translateY(-1px);
}

.progress-status-btn .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Progress Tracker Modal Overlay */
.progress-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.progress-modal-overlay.hidden {
  display: none;
}

.progress-modal-content {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.progress-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #1e293b;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.pm-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-badge {
  background: #0284c7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.pm-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.pm-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.pm-close-btn:hover {
  color: #f1f5f9;
}

.progress-modal-body {
  padding: 20px 24px;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pm-version-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 10px;
  padding: 14px 18px;
  transition: all 0.2s ease;
}

.pm-version-card.current {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.15);
}

.pm-v-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pm-v-tag {
  font-size: 0.85rem;
  font-weight: 800;
  background: #2563eb;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

.pm-v-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

.pm-status-done {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pm-v-desc ul {
  margin: 0;
  padding-left: 20px;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.6;
}

.pm-v-desc li {
  margin-bottom: 4px;
}

.pm-v-desc strong {
  color: #e2e8f0;
}

/* ============================================================
   [v1.3.0] Research Figures Gallery Modal Styles
   ============================================================ */
.research-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.research-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
  background: rgba(30, 41, 59, 0.95);
}

.rc-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background: #0b1120;
  overflow: hidden;
}

.rc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.research-card:hover .rc-img-wrap img {
  transform: scale(1.05);
}

.rc-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.rc-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rc-title {
  margin: 0 0 6px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}

.rc-desc {
  margin: 0;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==============================================================================
   [v1.5.0 / 2026-11-05] Smart Device Auto-Responsive & Orientation Adapter
   - 스마트폰 세로/가로(회전) 완벽 대응: 19:17 고정 비율 강제 해제 -> 100% 화면 자동 핏
   - 접속 기기 해상도(모바일/태블릿/노트북/대형PC)에 따른 유동형 UI 크기 자동 스케일링
   - 스마트폰 가로 모드(Landscape) 초슬림 헤더/타임라인 모드 지원
   - 터치 제스처 및 서랍식 오버레이 드로어 지원
   ============================================================================== */

/* Viewport Dynamic Height for iOS / Android */
body {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.main-container {
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  position: relative;
  width: 100%;
}

/* Mobile Panel Drawer Toggle Buttons in Header */
.mobile-panel-toggles {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.mobile-toggle-btn {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mobile-toggle-btn:hover,
.mobile-toggle-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}

/* Mobile Drawer Backdrop */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.active {
  display: block;
}

/* 1. Laptop / Mid Screen (<= 1400px) */
@media (max-width: 1400px) {
  .sidebar {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
  }

  .sidebar-right {
    flex: 0 0 270px !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
  }

  .clock-display {
    width: 165px;
    min-width: 165px;
    max-width: 165px;
    font-size: 0.78rem;
    padding: 4px 6px;
  }
}

/* 2. Tablet Screen (<= 1120px) */
@media (max-width: 1120px) {
  .header-vessel-stats {
    display: none !important;
  }

  .mobile-panel-toggles {
    display: flex;
  }

  .sidebar-right {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1100 !important;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.7) !important;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .sidebar-right.drawer-open {
    transform: translateX(0) !important;
  }
}

/* 3. Smartphone & Small Devices (<= 860px) - 해상도 비율 100% 자동 맞춤 */
@media (max-width: 860px) {
  .app-header {
    height: auto !important;
    min-height: 52px !important;
    padding: 6px 10px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .main-container {
    height: calc(100vh - 94px) !important;
    height: calc(100dvh - 94px) !important;
  }

  .brand {
    gap: 6px !important;
  }

  .brand-logo {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .brand-title {
    font-size: 0.92rem !important;
  }

  .brand-badge {
    display: none !important;
  }

  .header-version-wrap {
    margin-left: 4px !important;
    gap: 4px !important;
  }

  .version-pill,
  .date-pill {
    font-size: 0.64rem !important;
    padding: 1px 5px !important;
  }

  .progress-status-btn {
    display: none !important;
  }

  .clock-display {
    display: none !important;
  }

  /* 상단 탭 모바일 터치 가로 스크롤 */
  .top-nav-tabs {
    order: 3 !important;
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 3px 0 5px 0 !important;
    display: flex !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .top-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    flex: 0 0 auto !important;
    font-size: 0.76rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
  }

  .mobile-panel-toggles {
    display: flex !important;
    margin-left: auto !important;
  }

  /* 좌/우 사이드바를 모바일 오버레이 서랍(Drawer)으로 전환 */
  .sidebar {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1100 !important;
    width: 86% !important;
    max-width: 330px !important;
    min-width: 270px !important;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.8) !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .sidebar.drawer-open {
    transform: translateX(0) !important;
  }

  .sidebar-right {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1100 !important;
    width: 86% !important;
    max-width: 320px !important;
    min-width: 270px !important;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.8) !important;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .sidebar-right.drawer-open {
    transform: translateX(0) !important;
  }

  /* [핵심] 19:17 고정 종횡비 강제 해제 -> 모바일 화면 100% 핏 */
  .map-wrapper {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    flex: 1 1 auto !important;
  }

  #map-viewport-frame {
    flex: 1 1 auto !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: unset !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #08111e;
  }

  #map {
    width: 100% !important;
    height: 100% !important;
  }

  /* 지도 위 플로팅 컨트롤 모바일 위치 및 크기 조절 */
  .floating-basemap-switch {
    top: 8px !important;
    right: 8px !important;
    padding: 2px !important;
    gap: 2px !important;
    z-index: 850 !important;
  }

  .floating-basemap-switch .basemap-btn {
    font-size: 0.68rem !important;
    padding: 3px 6px !important;
  }

  .floating-live-pill {
    top: 8px !important;
    left: 8px !important;
    padding: 3px 7px !important;
    font-size: 0.7rem !important;
    z-index: 850 !important;
  }

  .cursor-coords-badge {
    bottom: 60px !important;
    right: 8px !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    z-index: 850 !important;
  }

  /* 하단 타임라인 바 스마트폰 최적화 (높이 묶임 해제 및 유동 크기) */
  .timeline-bar {
    position: absolute !important;
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
    width: auto !important;
    height: auto !important;
    min-height: 44px !important;
    max-height: 52px !important;
    padding: 6px 8px !important;
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 8px !important;
    z-index: 900 !important;
    display: flex !important;
    align-items: center !important;
  }

  .timeline-controls {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .play-pause-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
  }

  .time-slider-wrap {
    flex: 1 1 auto !important;
    min-width: 70px !important;
  }

  .current-time-badge {
    font-size: 0.7rem !important;
    padding: 2px 5px !important;
    min-width: 55px !important;
    white-space: nowrap !important;
  }

  .spd-btn-group,
  .time-tick-labels {
    display: none !important;
  }

  /* 과거어장 통계 요약 바 모바일 최적화 */
  .hist-summary-bar {
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
    width: auto !important;
    height: auto !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }

  .hist-summary-content {
    flex-wrap: wrap !important;
    gap: 4px 10px !important;
  }

  /* 단기 어장예측 스텝 버튼 바 모바일 최적화 (가로 스와이프 & 겹침 방지) */
  .forecast-timeline-bar {
    position: absolute !important;
    bottom: 48px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    height: auto !important;
    min-height: 44px !important;
    max-height: 52px !important;
    padding: 6px 8px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 8px !important;
    z-index: 920 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .forecast-stepper-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  .fc-days-btn-group {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex: 1 1 auto !important;
    padding: 2px 0 !important;
  }

  .fc-days-btn-group::-webkit-scrollbar {
    display: none !important;
  }

  .fc-nav-arrow-btn {
    padding: 4px 7px !important;
    font-size: 0.70rem !important;
    min-height: 30px !important;
    flex: 0 0 auto !important;
  }

  .fc-step-btn {
    flex: 0 0 auto !important;
    font-size: 0.68rem !important;
    padding: 4px 7px !important;
    border-radius: 5px !important;
    min-height: 30px !important;
    touch-action: manipulation !important;
    white-space: nowrap !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .forecast-date-display {
    flex: 0 0 auto !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    margin-left: 2px !important;
  }
}

/* 4. [회전 대응] 스마트폰 가로 모드 (Landscape: max-height <= 500px) */
@media (max-height: 500px) and (orientation: landscape) {
  .app-header {
    min-height: 38px !important;
    padding: 2px 10px !important;
    flex-wrap: nowrap !important;
  }

  .brand-logo {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .brand-title {
    font-size: 0.8rem !important;
  }

  .top-nav-tabs {
    order: unset !important;
    width: auto !important;
    padding: 0 !important;
    border-top: none !important;
    gap: 2px !important;
  }

  .nav-tab {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
  }

  .main-container {
    height: calc(100vh - 40px) !important;
    height: calc(100dvh - 40px) !important;
  }

  .timeline-bar,
  .forecast-timeline-bar,
  .hist-summary-bar {
    bottom: 4px !important;
    padding: 3px 8px !important;
    min-height: 34px !important;
    max-height: 38px !important;
  }

  .floating-basemap-switch {
    top: 4px !important;
    right: 4px !important;
  }

  .floating-live-pill {
    top: 4px !important;
    left: 4px !important;
  }

  .cursor-coords-badge {
    bottom: 42px !important;
  }
}

/* ==============================================================================
   [v1.6.0] Authentication Gate & Mobile Element Anti-Overlap Fixes
   ============================================================================== */

/* Header User Auth Pill */
.user-auth-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.74rem;
  color: #f8fafc;
}

.user-auth-pill.hidden {
  display: none !important;
}

.user-icon {
  font-size: 0.82rem;
}

.user-name {
  font-weight: 700;
  color: #38bdf8;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Auth Gate Modal Overlay */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.94) 0%, rgba(3, 7, 18, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInAuth 0.3s ease;
}

.auth-gate-overlay.hidden {
  display: none !important;
}

@keyframes fadeInAuth {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* ==============================================================================
   [만선기] 담백하고 신뢰도 높은 로그인/회원가입 UI 스타일 (Anti-AI Pure Theme)
   ============================================================================== */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-gate-overlay.hidden {
  display: none !important;
}

.auth-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  animation: popAuth 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popAuth {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-brand-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px auto;
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.auth-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.auth-tagline {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  margin-top: 2px;
  margin-bottom: 8px;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  word-break: keep-all;
}

.auth-tabs {
  display: flex;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 18px;
  gap: 3px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab.active {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form.hidden {
  display: none !important;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.auth-input-group label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
}

.auth-input-group input,
.auth-input-group select.auth-select {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 9px 12px;
  color: #f8fafc;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

.auth-input-group input:focus,
.auth-input-group select.auth-select:focus {
  border-color: #38bdf8;
}

.auth-submit-btn {
  background: #2563eb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 4px;
}

.auth-submit-btn:hover {
  background: #1d4ed8;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0;
  color: #64748b;
  font-size: 0.74rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  padding: 0 10px;
}

/* 담백한 선장 체험 바로 시작 버튼 */
.btn-quick-start {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-start:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
}

.auth-sub-links {
  text-align: center;
  margin-top: 8px;
}

.link-admin-login {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.15s;
}

.link-admin-login:hover {
  color: #94a3b8;
}


/* ==============================================================================
   [모바일 요소 겹침/간섭 완전 해결 (Anti-Overlap Engine)]
   ============================================================================== */
@media (max-width: 860px) {

  /* 1. 상단 플로팅 바 분리 & 축소: 좌상단 알약과 우상단 스위처 절대 겹침 방지 */
  .floating-live-pill {
    top: 6px !important;
    left: 6px !important;
    padding: 3px 7px !important;
    font-size: 0.68rem !important;
    max-width: 110px !important;
  }

  .floating-live-pill .pill-title {
    font-size: 0.68rem !important;
  }

  .floating-basemap-switch {
    top: 6px !important;
    right: 6px !important;
    padding: 2px !important;
    gap: 2px !important;
    max-width: 170px !important;
    overflow-x: auto !important;
  }

  .floating-basemap-switch .basemap-btn {
    font-size: 0.65rem !important;
    padding: 3px 5px !important;
  }

  /* 2. 하단 좌표 배지: 모바일 터치 환경에서는 타임라인과 간섭되므로 완전 숨김 */
  .cursor-coords-badge {
    display: none !important;
  }

  /* 3. Leaflet 줌 컨트롤: 하단 타임라인 바 위로 띄워 겹침 완전 방지 */
  .leaflet-bottom.leaflet-right {
    bottom: 58px !important;
    right: 8px !important;
    margin: 0 !important;
  }

  .leaflet-control-zoom {
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
  }

  .leaflet-control-zoom a {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 14px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    color: #38bdf8 !important;
  }

  /* 4. 하단 타임라인 바: 슬라이더와 재생버튼만 한 줄(42px)로 컴팩트 고정 */
  .timeline-bar {
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
    width: calc(100% - 12px) !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 4px 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .timeline-controls {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .play-pause-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex: 0 0 30px !important;
  }

  .time-slider-wrap {
    flex: 1 1 auto !important;
    min-width: 60px !important;
  }

  .current-time-badge {
    font-size: 0.68rem !important;
    padding: 2px 4px !important;
    min-width: 50px !important;
    flex: 0 0 auto !important;
  }

  /* 5. 헤더 유저 정보 모바일 축소 */
  .user-auth-pill {
    padding: 2px 6px !important;
    font-size: 0.68rem !important;
    gap: 4px !important;
  }

  .user-name {
    max-width: 70px !important;
  }

  .btn-logout {
    padding: 1px 4px !important;
    font-size: 0.62rem !important;
  }
}

/* ==============================================================================
   [v1.0] Admin Dashboard & Strict Mobile Anti-Overlap Engine
   ============================================================================== */

/* Admin Tabs */
.admin-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn.active {
  background: #f59e0b;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.admin-subtab-pane.hidden {
  display: none !important;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding: 8px 10px;
}

.admin-table tr:hover {
  background: rgba(51, 65, 85, 0.3);
}

.admin-action-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
}

/* ==============================================================================
   [정밀 모바일 하단 겹침 박멸: 온팟 워터마크 분리 & 3단 수직 스택]
   ============================================================================== */
@media (max-width: 860px) {

  /* 1. 타임라인 바: 온팟 배지(28px) 위로 띄워 'bottom: 40px' 공중 부양 */
  .timeline-bar {
    position: absolute !important;
    bottom: 40px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    z-index: 920 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 2. 모바일 슬라이더 컨트롤: 속도버튼 숨기고 슬라이더 폭 100% 확장 */
  .timeline-controls {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .spd-btn-group,
  .time-tick-labels {
    display: none !important;
  }

  .play-pause-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex: 0 0 32px !important;
    padding: 0 !important;
  }

  .time-slider-wrap {
    flex: 1 1 auto !important;
    min-width: 80px !important;
  }

  .current-time-badge {
    font-size: 0.72rem !important;
    padding: 3px 6px !important;
    min-width: 58px !important;
    flex: 0 0 auto !important;
  }

  /* 3. Leaflet 줌 컨트롤 & 어트리뷰션: 타임라인 바 위(bottom: 90px)로 확실히 올려서 분리 */
  .leaflet-bottom.leaflet-right {
    bottom: 90px !important;
    right: 8px !important;
    margin: 0 !important;
    z-index: 850 !important;
  }

  .leaflet-control-zoom {
    margin-bottom: 4px !important;
  }

  .leaflet-control-attribution {
    font-size: 9px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    color: #94a3b8 !important;
    padding: 0 4px !important;
  }

  /* 4. 마우스 좌표 배지: 모바일에서는 불필요하므로 완전 숨김 */
  .cursor-coords-badge {
    display: none !important;
  }

  /* 5. 과거어장 요약 바 & 단기예측 스텝 바도 온팟 배지 위로 띄움 */
  .hist-summary-bar,
  .forecast-timeline-bar,
  .optimal-summary-bar {
    position: absolute !important;
    bottom: 40px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    z-index: 920 !important;
  }
}


/* ==============================================================================
   [v1.0 정식 릴리즈] 모바일 드로어(Sidebar Drawer) 및 하단 간섭 완벽 박멸
   - 닫기 헤더 바, Onpod 워터마크 z-index 오버레이, 하단 패딩 100px 완벽 확보
   ============================================================================== */

/* 기본(데스크톱): 사이드바가 고정이므로 모바일 전용 닫기 헤더는 숨김 */
.mobile-drawer-header {
  display: none !important;
}

/* 태블릿 및 모바일 반응형 헤더 (<= 1120px) */
@media (max-width: 1120px) {
  .mobile-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  .mdh-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mdh-icon {
    font-size: 1.15rem !important;
  }

  .mdh-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    letter-spacing: -0.3px !important;
  }

  .btn-drawer-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
  }

  .btn-drawer-close:hover,
  .btn-drawer-close:active {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
  }

  /* 백드롭 및 드로어 z-index를 온팟 배지(약 10000) 위로 완전 상승 */
  .mobile-drawer-backdrop {
    z-index: 99990 !important;
  }

  .sidebar,
  .sidebar-right {
    z-index: 99999 !important;
  }
}

/* 스마트폰 전용 초정밀 해상도 및 배치 최적화 (<= 860px) */
@media (max-width: 860px) {

  /* 드로어 폭을 모바일 화면(375~430px)에 최적화하여 내용 찌그러짐 방지 */
  .sidebar {
    width: 90% !important;
    max-width: 375px !important;
    min-width: 290px !important;
    padding-bottom: 110px !important;
    /* 하단 온팟 배지 및 홈바 간섭 원천 차단 */
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .sidebar-right {
    width: 90% !important;
    max-width: 375px !important;
    min-width: 290px !important;
    padding-bottom: 110px !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  /* 라디오 버튼 줄바꿈 깔끔하게 정리 (한 글자 짤림 방지) */
  .mode-radio-group .radio-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 0.77rem !important;
    line-height: 1.38 !important;
    word-break: keep-all !important;
    padding: 4px 2px !important;
    cursor: pointer !important;
  }

  .mode-radio-group .radio-label input[type="radio"] {
    margin-top: 2px !important;
    flex: 0 0 15px !important;
    width: 15px !important;
    height: 15px !important;
  }

  /* 조업 기준일 카드 내부 패딩 및 버튼 모바일 최적화 */
  .date-card-box {
    padding: 8px 10px !important;
    margin-top: 6px !important;
  }

  .date-card-title {
    font-size: 0.78rem !important;
  }

  .btn-time-mode {
    font-size: 0.74rem !important;
    padding: 3px 8px !important;
  }

  .date-card-center {
    font-size: 0.85rem !important;
    padding: 5px 8px !important;
  }

  /* 필터링 프리셋 4개 버튼 균등 그리드 배치 */
  .preset-btn-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    margin-top: 6px !important;
  }

  .preset-btn-bar .btn-preset {
    font-size: 0.71rem !important;
    padding: 5px 2px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* 선단 칩 터치 영역 및 랩핑 여유 공간 확보 */
  .fleet-chips-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin: 6px 0 !important;
  }

  .fleet-chip {
    font-size: 0.76rem !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
  }

  /* 선박 역할(본선, 운반선, 등선) 체크박스 터치 여유 */
  .role-chks-row,
  .vessel-role-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 6px !important;
  }

  .role-chks-row .checkbox-label {
    font-size: 0.78rem !important;
    gap: 4px !important;
  }

  /* ========================================================================
     [메인 맵 뷰 하단 3단 완벽 분리]
     1층 (0 ~ 38px): Onpod 배지
     2층 (48 ~ 90px): 타임라인 바 (바닥에서 48px 떠서 가로/세로 간섭 0%)
     3층 (102 ~ 160px): Leaflet 줌 컨트롤 [+] [-]
     ======================================================================== */
  .timeline-bar {
    bottom: 48px !important;
    left: 8px !important;
    right: 8px !important;
    z-index: 920 !important;
  }

  .hist-summary-bar,
  .forecast-timeline-bar,
  .optimal-summary-bar {
    bottom: 48px !important;
    left: 8px !important;
    right: 8px !important;
    z-index: 920 !important;
  }

  .leaflet-bottom.leaflet-right {
    bottom: 102px !important;
    right: 8px !important;
    z-index: 850 !important;
  }
}


/* ==============================================================================
   [친절한 UI/UX 개선] 초보자 쉬운 가이드, AI 선장 브리핑, 모드 설명 배너
   ============================================================================== */

/* 1. 상단 헤더 '초보자 가이드' 버튼 */
.btn-guide-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-guide-help:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #f59e0b;
  color: #fef3c7;
  transform: translateY(-1px);
}

.guide-bulb {
  font-size: 0.88rem;
}

/* 2. 상단 모드별 쉬운 1줄 가이드 배너 */
.mode-guide-banner {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.77rem;
  color: #cbd5e1;
  position: relative;
  z-index: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mgb-icon {
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.mgb-content {
  flex: 1 1 auto;
  line-height: 1.4;
}

.mgb-title {
  font-weight: 800;
  color: #38bdf8;
  margin-right: 4px;
}

.mgb-desc {
  color: #e2e8f0;
}

.mgb-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.mgb-close-btn:hover {
  color: #f87171;
}

/* 3. [최적어장 찾기] AI 선장 맞춤형 추천 브리핑 카드 */
.opt-ai-captain-briefing {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(15, 23, 42, 0.85));
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.oacb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.oacb-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.oacb-robot-icon {
  font-size: 1.15rem;
}

.oacb-badge {
  font-weight: 800;
  font-size: 0.84rem;
  color: #38bdf8;
}

.oacb-tag {
  font-size: 0.70rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.oacb-lead {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.45;
  margin: 0 0 8px 0;
}

.oacb-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.oacb-reason-item {
  font-size: 0.73rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.oacb-dot {
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.oacb-profit-text {
  color: #34d399;
  font-weight: 800;
}

/* 4. 각 결과 카드별 친절한 추천 이유 박스 */
.opt-reason-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px 0;
  font-size: 0.72rem;
  line-height: 1.42;
  color: #fef3c7;
}

/* 5. [초보자 가이드 모달] 팝업 */
.guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.guide-modal-box {
  background: #0f172a;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  max-width: 650px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.guide-modal-header {
  padding: 14px 18px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gmh-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmh-icon {
  font-size: 1.25rem;
}

.gmh-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #f8fafc;
}

.btn-guide-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.btn-guide-modal-close:hover {
  color: #f87171;
}

.guide-modal-body {
  padding: 18px;
  overflow-y: auto;
}

.guide-card-intro {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.guide-card-intro h4 {
  margin: 0 0 6px 0;
  color: #38bdf8;
  font-size: 0.90rem;
}

.guide-card-intro p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.guide-step-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  position: relative;
}

.gsc-num {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gsc-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.gsc-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

.guide-terms-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gt-item {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gt-term {
  font-size: 0.76rem;
  font-weight: 800;
  color: #fbbf24;
}

.gt-meaning {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.guide-modal-footer {
  padding: 12px 18px;
  background: rgba(30, 41, 59, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.btn-guide-confirm {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-guide-confirm:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .guide-steps-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================================================================
   [v1.1 실사용 중심 UI/UX 대혁신]
   1. 헤더 컨트롤 ([🎯 맞춤 조업 설정], [🔍 돋보기])
   2. 스마트 조업 마법사 (정보 선별 질문 오버레이)
   3. 지도 인터랙티브 디지털 돋보기 렌즈 (2.5x 고해상도 확대경)
   4. 출항 조업 계획서 브리핑 시트 (A4 인쇄 및 카톡 요약 복사)
   ============================================================================== */

/* 1. 헤더 실사용 버튼들 */
.btn-wizard-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.4));
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-wizard-trigger:hover {
  background: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-magnifier-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-magnifier-toggle:hover,
.btn-magnifier-toggle.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* 2. 스마트 조업 질문 마법사 모달 */
.smart-wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.smart-wizard-overlay.hidden {
  display: none !important;
}

.smart-wizard-box {
  background: #0f172a;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
}

.sw-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.sw-badge-ai {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 6px;
}

.sw-title {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.35;
}

.sw-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

.btn-sw-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.btn-sw-close:hover {
  color: #f87171;
}

.sw-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sw-q-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sw-q-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-q-text {
  font-size: 0.88rem;
  color: #f8fafc;
}

.sw-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sw-chip {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sw-chip:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.15);
}

.sw-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.sw-chip-all {
  border-style: dashed;
}

.sw-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sw-card-opt {
  display: block;
  cursor: pointer;
  position: relative;
}

.sw-card-opt input {
  position: absolute;
  opacity: 0;
}

.sw-card-content {
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sw-card-opt:hover .sw-card-content {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 0.85);
}

.sw-card-opt.active .sw-card-content,
.sw-card-opt input:checked+.sw-card-content {
  background: rgba(2, 132, 199, 0.18);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.sw-card-icon {
  font-size: 1.3rem;
}

.sw-card-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #f8fafc;
}

.sw-card-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.35;
}

.sw-footer {
  padding: 14px 22px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sw-skip-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
  cursor: pointer;
}

.sw-footer-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sw-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.80rem;
  cursor: pointer;
}

.btn-sw-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-sw-apply {
  background: linear-gradient(135deg, #0284c7, #0284c7 50%, #0369a1);
  border: 1px solid #38bdf8;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.btn-sw-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

/* 3. 지도 인터랙티브 디지털 돋보기 렌즈 */
.map-magnifier-lens {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.6);
  z-index: 1200;
  pointer-events: none;
  overflow: hidden;
  background: #070d18;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease;
}

.map-magnifier-lens.hidden {
  display: none !important;
}

.magnifier-map-view {
  width: 100%;
  height: 100%;
}

.magnifier-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  z-index: 900;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 1.5px solid rgba(15, 23, 42, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
  border-radius: 50%;
}

.magnifier-crosshair::before,
.magnifier-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(15, 23, 42, 0.7);
}

.magnifier-crosshair::before {
  top: 7px;
  left: -8px;
  width: 32px;
  height: 2px;
}

.magnifier-crosshair::after {
  top: -8px;
  left: 7px;
  width: 2px;
  height: 32px;
}

.magnifier-glass-glare {
  position: absolute;
  inset: 0;
  z-index: 850;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 60%);
  pointer-events: none;
}

.magnifier-scale-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 900;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  pointer-events: none;
}

.btn-magnifier-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 22px;
  height: 22px;
  z-index: 950;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  font-size: 0.8rem;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 4. 출항 조업 계획서 브리핑 시트 모달 (A4 인쇄 대응) */
.plan-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.plan-modal-overlay.hidden {
  display: none !important;
}

.plan-sheet-box {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.plan-sheet-header {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 2px solid #0284c7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.psh-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.plan-sheet-header h3 {
  margin: 6px 0 2px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.psh-sub {
  margin: 0;
  font-size: 0.74rem;
  color: #64748b;
}

.btn-plan-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.btn-plan-close:hover {
  color: #ef4444;
}

.plan-sheet-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}

.plan-section-title {
  margin: 16px 0 8px 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0284c7;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.plan-table th,
.plan-table td {
  border: 1px solid #cbd5e1;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.plan-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  width: 20%;
}

.plan-table td {
  background: #ffffff;
  color: #0f172a;
}

.plan-route-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 14px;
}

.prb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.prb-tag {
  font-size: 0.65rem;
  color: #166534;
  font-weight: 700;
}

.prb-highlight strong {
  color: #0284c7;
  font-size: 0.95rem;
}

.prb-highlight small {
  color: #15803d;
  font-weight: 700;
}

.prb-arrow {
  font-size: 1.1rem;
  color: #16a34a;
}

.plan-cost-table th,
.plan-cost-table td {
  font-size: 0.76rem;
}

.plan-total-row th {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-size: 0.88rem !important;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: 700;
}

.text-success {
  color: #15803d;
}

.text-danger {
  color: #b91c1c;
}

.text-primary {
  color: #0284c7;
}

.text-large {
  font-size: 0.95rem;
}

.plan-notice-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin-top: 14px;
  font-size: 0.74rem;
  color: #92400e;
}

.plan-notice-box ul {
  margin: 4px 0 0 16px;
  padding: 0;
}

.plan-sheet-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-plan-copy {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-plan-print {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* 인쇄용 CSS (@media print) */
@media print {
  body * {
    visibility: hidden;
  }

  #departurePlanModal,
  #departurePlanModal * {
    visibility: visible;
  }

  #departurePlanModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff;
  }

  .plan-sheet-box {
    max-width: 100%;
    box-shadow: none;
    border: none;
  }

  .plan-sheet-footer,
  .btn-plan-close {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .sw-cards-grid {
    grid-template-columns: 1fr;
  }

  .plan-route-box {
    flex-direction: column;
    gap: 8px;
  }

  .prb-arrow {
    transform: rotate(90deg);
  }
}


/* ==============================================================================
   [v1.1] 1. 산출 원리 먼저 배우기 아코디언 박스
   2. 1위 vs 2위 vs 3위 디테일 비교 매트릭스 표
   ============================================================================== */

/* 산출 원리 아코디언 박스 */
.opt-method-guide-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.method-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  line-height: 1.4;
  font-size: 0.73rem;
  color: #cbd5e1;
}

.ms-num {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* 디테일 비교 매트릭스 표 */
.opt-comparison-matrix-card {
  background: #0f172a;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.ocmc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.ocmc-badge {
  font-weight: 800;
  font-size: 0.82rem;
  color: #38bdf8;
}

.ocmc-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

.ocmc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: center;
}

.ocmc-table th,
.ocmc-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 4px;
}

.ocmc-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  font-weight: 700;
}

.ocmc-table td {
  color: #cbd5e1;
}

.ocmc-table td:first-child,
.ocmc-table th:first-child {
  text-align: left;
  padding-left: 8px;
  width: 28%;
}

.rank-1-col {
  background: rgba(2, 132, 199, 0.15) !important;
  color: #f8fafc !important;
}

.ocmc-profit-row th,
.ocmc-profit-row td {
  background: rgba(16, 185, 129, 0.1) !important;
  font-size: 0.78rem !important;
}

.ocmc-footer-note {
  font-size: 0.64rem;
  color: #64748b;
  margin-top: 6px;
  text-align: right;
}


/* ==============================================================================
   [K-OASIS PRO] Professional Marine Navigational Console & Smart Notice System
   - Anti-AI Styling: Pure Maritime Instrument Theme
   - Interactive Smart Guide Modal & Real-time Ocean Inspector
   ============================================================================== */

/* 1. 공공 해양 관제 실시간 데이터 피드 상태 표시줄 */
.marine-data-feed-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background: #090e1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 20px;
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 999;
}

.marine-data-feed-bar::-webkit-scrollbar {
  display: none;
}

.marine-data-feed-bar .feed-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.marine-data-feed-bar .feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.marine-data-feed-bar .feed-dot.live {
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot-feed 2s infinite ease-in-out;
}

.marine-data-feed-bar .feed-dot.blue {
  background-color: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

@keyframes pulse-dot-feed {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.marine-data-feed-bar .feed-label {
  color: #64748b;
  font-weight: 500;
}

.marine-data-feed-bar .feed-val {
  color: #e2e8f0;
  font-weight: 600;
}

.marine-data-feed-bar .feed-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.marine-data-feed-bar .sys-time {
  margin-left: auto;
}

/* 2. 전문 관제 탭 뱃지 */
.tab-badge-pro {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  margin-right: 5px;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.tab-badge-pro.admin {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

/* 3. 스마트 관제 안내 팝업 다이얼로그 (중앙 모달) */
.marine-notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.marine-notice-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.marine-notice-card {
  background: #0e172a;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: mn-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes mn-pop {
  0% {
    transform: scale(0.94) translateY(8px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.mn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mn-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mn-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.mn-badge.info {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.mn-badge.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.mn-badge.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.mn-system-tag {
  font-size: 0.68rem;
  color: #64748b;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-mn-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.btn-mn-close:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.mn-body {
  padding: 18px 20px 14px 20px;
  display: flex;
  gap: 16px;
}

.mn-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mn-icon-wrap.info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.mn-icon-wrap.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.mn-icon-wrap.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.mn-text-wrap {
  flex: 1;
}

.mn-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
  line-height: 1.4;
}

.mn-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* 행동 가이드 스텝 박스 */
.mn-guide-container {
  margin: 0 20px 16px 20px;
  background: #090f1d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
}

.mn-guide-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mn-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mn-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.mn-step-num {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.mn-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-mn-action {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-mn-action:hover {
  background: #1d4ed8;
}

.btn-mn-action:active {
  transform: translateY(1px);
}

.btn-mn-confirm {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-mn-confirm:hover {
  background: #334155;
  color: #ffffff;
}

/* 4. 지도 클릭 실시간 해역 제원 브리핑 팝업 */
.marine-map-inspector {
  position: absolute;
  top: 70px;
  right: 360px;
  width: 290px;
  background: rgba(14, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  z-index: 998;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mn-pop 0.2s ease;
}

.marine-map-inspector.hidden {
  display: none !important;
}

.mmi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.mmi-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.btn-mmi-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
}

.btn-mmi-close:hover {
  color: #f8fafc;
}

.mmi-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mmi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
}

.mmi-label {
  color: #94a3b8;
}

.mmi-val {
  color: #f8fafc;
  font-weight: 600;
}

.mmi-actions {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-mmi-plan {
  width: 100%;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(37, 99, 235, 0.6);
  color: #60a5fa;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mmi-plan:hover {
  background: #2563eb;
  color: #ffffff;
}

/* 5. 플로팅 토스트 메시지 */
.marine-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999998;
  pointer-events: none;
}

.marine-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  color: #f8fafc;
  font-size: 0.82rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1), toast-out 0.25s ease 2.75s forwards;
  max-width: 380px;
}

@keyframes toast-in {
  0% {
    transform: translateY(12px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.marine-toast-icon {
  flex-shrink: 0;
  color: #38bdf8;
}

.marine-toast-text {
  flex: 1;
  line-height: 1.4;
}


/* ==============================================================================
   [출어계획] 헤더 겹침 방지 & 실시간 해상 기상/파고(출항 안전 판정) 스타일
   ============================================================================== */

/* 헤더 요소 자동 겹침 방지 */
.app-header {
  min-height: 54px;
  height: auto;
  padding: 6px 16px;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand {
  flex-shrink: 0;
  gap: 8px;
}

.header-version-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.top-nav-tabs {
  flex-shrink: 1;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.top-nav-tabs::-webkit-scrollbar {
  display: none;
}

.header-actions {
  flex-shrink: 0;
  gap: 8px;
  margin-left: auto;
}

/* 1. 사이드바 실시간 해상 기상 & 유의파고 & 출항 적합도 카드 */
.opt-weather-section {
  background: #0d1527 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.weather-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wch-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wch-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.safety-badge.green {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.safety-badge.yellow {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.safety-badge.red {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.weather-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.weather-metric-col {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wm-label {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 3px;
}

.wm-val {
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Inter', -apple-system, sans-serif;
  margin-bottom: 2px;
}

.wm-sub {
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
}

.weather-card-footer {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.wcf-notice {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wcf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  flex-shrink: 0;
}

/* 2. 지도 위 실시간 해역 기상 플로팅 위젯 */
.map-floating-weather-widget {
  position: absolute;
  top: 16px;
  left: 70px;
  z-index: 990;
  background: rgba(14, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
}

.mfw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mfw-port-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
}

.mfw-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.mfw-badge.green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.mfw-badge.yellow {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.mfw-badge.red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.mfw-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.mfw-stat strong {
  color: #38bdf8;
  font-weight: 600;
}


/* ==============================================================================
   [로그인 피드백] 성공 / 실패 시각적 안내 박스 스타일
   ============================================================================== */
.auth-status-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 14px;
  animation: asa-pop 0.25s ease-out;
}

@keyframes asa-pop {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-status-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.auth-status-alert.error strong {
  color: #f87171;
}

.auth-status-alert.success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #a7f3d0;
}

.auth-status-alert.success strong {
  color: #34d399;
}

.auth-status-alert.info {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #bae6fd;
}

.auth-status-alert.info strong {
  color: #38bdf8;
}

.asa-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.asa-content {
  flex: 1;
}

.asa-tip {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 4px;
}


/* ==============================================================================
   [v1.2 오늘자] 완벽한 헤더 겹침 방지 및 담백한 실무 항해 콘솔 최적화
   ============================================================================== */
.app-header {
  height: 54px !important;
  min-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 0 16px !important;
  background: rgba(11, 19, 43, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.brand-logo {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.brand-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  display: block !important;
}

.aps-logo {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2.5px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px !important;
  box-sizing: border-box !important;
}

.aps-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  display: block !important;
}

.brand-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: #f8fafc !important;
}

.brand-badge {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.header-version-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 4px !important;
  flex-shrink: 0 !important;
}

.version-pill {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  background: #1e3a8a !important;
  color: #bfdbfe !important;
  box-shadow: none !important;
}

.date-pill {
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

.progress-status-btn {
  font-size: 0.72rem !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
  box-shadow: none !important;
}

.top-nav-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  padding: 3px 6px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}

.nav-tab {
  white-space: nowrap !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  color: #94a3b8 !important;
  border: none !important;
  transition: all 0.15s ease !important;
}

.nav-tab:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.nav-tab.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* 연구용 불필요 통계 수치는 헤더에서 숨겨 실무 항해 화면 넓게 확보 */
.header-vessel-stats {
  display: none !important;
}

.btn-magnifier-toggle,
.btn-guide-help {
  font-size: 0.78rem !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(30, 41, 59, 0.8) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

.btn-magnifier-toggle:hover,
.btn-guide-help:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}

.user-auth-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: rgba(2, 132, 199, 0.15) !important;
  border: 1px solid rgba(2, 132, 199, 0.35) !important;
  font-size: 0.78rem !important;
  color: #e0f2fe !important;
}

.btn-logout {
  font-size: 0.72rem !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  background: rgba(239, 68, 68, 0.18) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  cursor: pointer !important;
}

.btn-logout:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.clock-display {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  padding: 4px 8px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  font-family: var(--font-mono) !important;
}

/* 안내 배너 담백화 */
.mode-guide-banner {
  padding: 6px 18px !important;
  font-size: 0.8rem !important;
  background: #091322 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
}

.mgb-title {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.mgb-desc {
  color: #cbd5e1 !important;
}


/* ==============================================================================
   [v1.2] 전면적인 UI 요소 겹침 완전 해소 & 담백한 마린 콘솔 레이아웃 정돈
   ============================================================================== */

/* 1. 지도 좌측 상단 플로팅 요소 포개짐 100% 박멸 */
/* 좌측 사이드바에 이미 상세한 [해상 기상 및 출항 적합도] 카드가 완벽히 존재하므로,
   지도 위에서 '준실시간 조업' 알약과 겹치던 조그만 위젯은 깔끔하게 숨겨 시야를 완전히 개방 */
.map-floating-weather-widget {
  display: none !important;
}

/* 준실시간 조업 알약만 지도 좌측 상단에 단독으로 정갈하게 배치 */
.floating-live-pill {
  top: 14px !important;
  left: 14px !important;
  z-index: 800 !important;
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* 2. 지도 우측 상단 해도 스위처 중복 제거:
   우측 사이드바에 이미 [전자해도 레이어 (항해용)] 스위처가 있으므로,
   지도 내부의 중복 플로팅 스위처는 숨겨 탁 트인 해도 뷰 보장 */
@media (min-width: 861px) {
  .floating-basemap-switch {
    display: none !important;
  }
}

/* 3. 상단 3단 바 누적(세로 압박감) 대폭 슬림화 */
/* 2단: 실시간 공공 해양 관제 데이터 피드 바 */
.marine-data-feed-bar {
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 16px !important;
  font-size: 0.72rem !important;
  background: #070d18 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.feed-item {
  gap: 5px !important;
  font-size: 0.72rem !important;
}

.feed-label {
  color: #64748b !important;
}

.feed-val {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* 3단: 안내 배너 초슬림화 */
.mode-guide-banner {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 16px !important;
  font-size: 0.75rem !important;
  background: #091322 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

/* 4. 좌측 사이드바 내부 선단/어종 칩 줄바꿈 겹침 방지 및 여유 마진 */
.opt-fleet-section {
  margin-bottom: 14px !important;
}

.opt-company-title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  margin-bottom: 10px !important;
  padding-bottom: 4px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.opt-fleet-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}

.opt-fleet-label {
  font-size: 0.76rem !important;
  color: #94a3b8 !important;
  min-width: 38px !important;
  padding-top: 4px !important;
}

.opt-fleet-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  flex: 1 !important;
}

.fleet-vessel-chip {
  font-size: 0.75rem !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

/* 5. 대상어종 선택 영역 마진 확보 */
.opt-species-box {
  margin-top: 6px !important;
  margin-bottom: 6px !important;
  gap: 8px !important;
}

/* 6. 우측 하단 컨트롤(좌표 배지, 줌 버튼, 워터마크) 겹침 분리 */
.cursor-coords-badge {
  position: absolute !important;
  bottom: 12px !important;
  right: 65px !important;
  /* 줌 컨트롤 왼쪽으로 안전하게 이동 */
  z-index: 700 !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.74rem !important;
  color: #38bdf8 !important;
  font-family: var(--font-mono) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-bottom.leaflet-right {
  bottom: 8px !important;
  right: 8px !important;
  z-index: 690 !important;
}

/* 7. 상단 헤더 브랜드 및 탭 간격 최종 정돈 */
.app-header {
  height: 52px !important;
  min-height: 52px !important;
  gap: 12px !important;
}

.top-nav-tabs {
  gap: 4px !important;
  padding: 2px 4px !important;
}

.nav-tab {
  font-size: 0.82rem !important;
  padding: 5px 11px !important;
}


/* ==============================================================================
   [v1.2] 노트북(1366px~1440px) 완벽 호환 슬림 헤더 & 스크롤 최적화
   ============================================================================== */

@media (max-width: 1440px) {
  .date-pill {
    display: none !important;
    /* 노트북 화면에서 오늘 날짜 배지 숨겨 공간 확보 */
  }

  .nav-tab {
    font-size: 0.78rem !important;
    padding: 4px 8px !important;
  }

  .btn-magnifier-toggle .btn-label,
  .btn-guide-help .guide-text {
    display: none !important;
    /* 아이콘만 표시하여 100px 절약 */
  }

  .btn-magnifier-toggle,
  .btn-guide-help {
    padding: 5px 8px !important;
  }

  .user-auth-pill {
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .user-name {
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* 좌측 사이드바 및 우측 사이드바 스무스 슬림 스크롤바 */
.sidebar,
.sidebar-right {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(56, 189, 248, 0.25) transparent !important;
}

.sidebar::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
  width: 5px !important;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25) !important;
  border-radius: 4px !important;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-right::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45) !important;
}


/* ==============================================================================
   [v1.2] 전문가 손길의 정통 해양 수산 포털 스플릿 로그인 게이트웨이
   ============================================================================== */

.auth-gate-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: radial-gradient(circle at 25% 25%, #0d1e36 0%, #060b14 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.auth-gate-overlay.hidden {
  display: none !important;
}

/* 듀얼 패널 포털 컨테이너 */
.auth-portal-container {
  width: 960px !important;
  max-width: 96vw !important;
  min-height: 560px !important;
  display: flex !important;
  flex-direction: row !important;
  background: #0a1120 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(56, 189, 248, 0.15) !important;
  animation: portalFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes portalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 좌측: 해양 쇼케이스 & 브랜드 스토리 패널 */
.auth-portal-showcase {
  flex: 1.15 !important;
  padding: 44px 38px !important;
  background: linear-gradient(155deg, #0e1e38 0%, #070e1c 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
}

.auth-portal-showcase::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 60%) !important;
  pointer-events: none !important;
}

.aps-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
}

.aps-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.aps-logo {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

.aps-brand-text {
  display: flex !important;
  flex-direction: column !important;
}

.aps-name {
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: #f8fafc !important;
  line-height: 1.2 !important;
}

.aps-sub {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  color: #38bdf8 !important;
}

.aps-badge {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.aps-title {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  letter-spacing: -0.8px !important;
  margin: 0 0 14px 0 !important;
  word-break: keep-all !important;
}

.aps-desc {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  line-height: 1.6 !important;
  margin: 0 0 24px 0 !important;
  word-break: keep-all !important;
}

.aps-features {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.aps-feature-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.af-icon-box {
  width: 32px !important;
  height: 32px !important;
  border-radius: 7px !important;
  background: rgba(56, 189, 248, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem !important;
  flex-shrink: 0 !important;
}

.af-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.af-text strong {
  font-size: 0.84rem !important;
  color: #f1f5f9 !important;
  font-weight: 700 !important;
}

.af-text span {
  font-size: 0.74rem !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

.aps-footer {
  margin-top: 24px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.aps-sources {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.source-tag {
  font-size: 0.68rem !important;
  color: #64748b !important;
  background: rgba(0, 0, 0, 0.25) !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* 우측: 폼 패널 */
.auth-portal-formbox {
  flex: 1 !important;
  padding: 38px 36px !important;
  background: #0a1120 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.apf-header {
  margin-bottom: 20px !important;
}

.auth-tabs {
  display: flex !important;
  background: #0f1a2e !important;
  padding: 3px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  gap: 4px !important;
  margin-bottom: 12px !important;
}

.auth-tab {
  flex: 1 !important;
  padding: 9px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.auth-tab.active {
  background: #1e293b !important;
  color: #f8fafc !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.apf-lead {
  font-size: 0.8rem !important;
  color: #64748b !important;
  margin: 0 !important;
}

.auth-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.auth-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  text-align: left !important;
}

.auth-input-group label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
}

.auth-input-group input,
.auth-input-group select {
  background: #0f1a2e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 0.86rem !important;
  color: #f8fafc !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.auth-input-group input:focus,
.auth-input-group select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25) !important;
  background: #13223d !important;
}

.auth-submit-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  padding: 12px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  margin-top: 4px !important;
}

.auth-submit-btn:hover {
  background: #0369a1 !important;
}

.auth-divider {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 10px 0 !important;
  color: #475569 !important;
  font-size: 0.74rem !important;
}

.auth-divider::before,
.auth-divider::after {
  content: "" !important;
  flex: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.auth-divider span {
  padding: 0 10px !important;
}

/* 선장 원클릭 시작 버튼 */
.btn-quick-start {
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
}

.btn-quick-start:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: #38bdf8 !important;
  transform: translateY(-1px) !important;
}

.bqs-icon {
  font-size: 1.3rem !important;
  line-height: 1 !important;
}

.bqs-text strong {
  display: block !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
}

.bqs-text small {
  display: block !important;
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
}

.auth-sub-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
  font-size: 0.74rem !important;
}

.link-admin-login {
  background: none !important;
  border: none !important;
  color: #64748b !important;
  font-size: 0.74rem !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  padding: 0 !important;
}

.link-admin-login:hover {
  color: #94a3b8 !important;
}

.asl-sep {
  color: #334155 !important;
}

.asl-info {
  color: #475569 !important;
}

/* 알림 박스 */
.auth-status-alert {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

.auth-status-alert.error {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

.auth-status-alert.success {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}

.auth-status-alert.hidden {
  display: none !important;
}

/* 모바일/태블릿 반응형 */
@media (max-width: 860px) {
  .auth-portal-container {
    flex-direction: column !important;
    max-width: 440px !important;
    min-height: auto !important;
  }

  .auth-portal-showcase {
    display: none !important;
  }

  .auth-portal-formbox {
    padding: 28px 24px !important;
  }
}

/* ==============================================================================
   [v1.2] 사용자 친화적 피드백 알림 팝업 모달 & 요소 겹침 완전 방지 스타일
   ============================================================================== */

/* 1. 범용 피드백 알림 팝업 모달 */
.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 15, 29, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fmcFadeIn 0.2s ease-out;
}

.feedback-modal-overlay.hidden {
  display: none !important;
}

.feedback-modal-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, #131b2e 0%, #0d1424 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(14, 165, 233, 0.15);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fmcSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fmc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.fmc-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.fmc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.fmc-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
  word-break: keep-all;
}

.fmc-body strong {
  color: #38bdf8;
}

.fmc-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.fmc-btn-confirm {
  padding: 10px 22px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: all 0.15s ease;
}

.fmc-btn-confirm:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

@keyframes fmcFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fmcSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 2. 지도 좌상단 / 우상단 겹침 절대 차단 (사이드바로 일원화) */
#mapFloatingWeatherWidget,
.map-floating-weather-widget {
  display: none !important;
}

#floatingBasemapSwitch,
.floating-basemap-switch {
  display: none !important;
}

/* 3. 지도 우하단 좌표 배지와 줌 컨트롤 분리 보장 */
.map-coords-badge {
  position: absolute !important;
  right: 65px !important;
  bottom: 18px !important;
  z-index: 1000 !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #94a3b8 !important;
  font-family: 'JetBrains Mono', 'Consolas', monospace !important;
  font-size: 0.78rem !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  pointer-events: none !important;
}

/* 4. 1366px 해상도 노트북 호환성 강화 */
@media (max-width: 1400px) {
  .user-auth-pill {
    padding: 3px 8px !important;
    font-size: 0.78rem !important;
  }

  .header-actions {
    gap: 6px !important;
  }

  .system-clock-badge {
    padding: 3px 6px !important;
    font-size: 0.75rem !important;
  }
}

/* ==============================================================================
   [v1.3] 선박 계정 / 아이디 · 비밀번호 찾기 UI & 모달 스타일
   ============================================================================== */

/* 1. 로그인 폼 내부 찾기 버튼 */
.auth-label-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 6px !important;
}

.auth-label-row label {
  margin-bottom: 0 !important;
}

.btn-find-account {
  background: transparent !important;
  border: none !important;
  color: #38bdf8 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.btn-find-account:hover {
  color: #7dd3fc !important;
  text-decoration: none !important;
}

.link-find-account {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: color 0.15s ease !important;
}

.link-find-account:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}

/* 2. 계정 찾기 모달 오버레이 */
.find-account-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100001 !important;
  background: rgba(10, 15, 29, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  animation: famFadeIn 0.2s ease-out !important;
}

.find-account-modal-overlay.hidden {
  display: none !important;
}

.find-account-modal-card {
  width: 100% !important;
  max-width: 480px !important;
  background: linear-gradient(150deg, #131b2e 0%, #0d1424 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(14, 165, 233, 0.15) !important;
  border-radius: 16px !important;
  padding: 26px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  animation: famSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fam-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 14px !important;
}

.fam-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fam-icon {
  font-size: 1.35rem !important;
  line-height: 1 !important;
}

.fam-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  margin: 0 !important;
}

.btn-fam-close {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}

.btn-fam-close:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.fam-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.fam-desc {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.fam-desc strong {
  color: #38bdf8 !important;
}

.fam-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.fam-input-group label {
  display: block !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  margin-bottom: 6px !important;
}

.fam-input-wrapper {
  display: flex !important;
  gap: 8px !important;
}

.fam-input-wrapper input {
  flex: 1 !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 8px !important;
  color: #f8fafc !important;
  font-size: 0.92rem !important;
  padding: 10px 14px !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}

.fam-input-wrapper input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

.fam-btn-submit {
  padding: 10px 18px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.fam-btn-submit:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
}

/* 조회 결과 박스 */
.fam-result-box {
  background: rgba(14, 165, 233, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  animation: famFadeIn 0.2s ease-out !important;
}

.fam-result-box.hidden {
  display: none !important;
}

.frb-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  padding-bottom: 8px !important;
}

.frb-badge-success {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
}

.frb-time {
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
  font-family: monospace !important;
}

.frb-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.frb-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.88rem !important;
}

.frb-label {
  color: #94a3b8 !important;
}

.frb-val {
  color: #e2e8f0 !important;
  font-weight: 500 !important;
}

.frb-row.highlight {
  background: rgba(15, 23, 42, 0.5) !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  border-left: 3px solid #38bdf8 !important;
}

.frb-val.key {
  color: #38bdf8 !important;
  font-family: 'JetBrains Mono', Consolas, monospace !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
}

.btn-apply-login {
  padding: 11px 16px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
  transition: all 0.15s ease !important;
  text-align: center !important;
}

.btn-apply-login:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45) !important;
}

/* 기본 등록 선단 안내 카드 */
.fam-quick-info {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
}

.fqi-title {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  margin-bottom: 6px !important;
}

.fqi-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  font-size: 0.8rem !important;
  color: #cbd5e1 !important;
}

.fqi-list li {
  line-height: 1.4 !important;
}

.fqi-list code {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-family: monospace !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

@keyframes famFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes famSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==============================================================================
   [v1.3] 전국 수협 산지위판장 (249개소) 지도 마커 핀 & 팝업 스타일
   ============================================================================== */

.leaflet-marker-icon.custom-market-pin,
.custom-market-pin {
  background: transparent !important;
  border: none !important;
  pointer-events: auto !important;
}

.market-pin-bubble {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 6px rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
  font-size: 9px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease !important;
}

.market-pin-bubble:hover {
  transform: scale(1.4) translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.9) !important;
  z-index: 99999 !important;
}

.market-popup-card {
  min-width: 250px !important;
  max-width: 320px !important;
  padding: 4px !important;
  color: #f8fafc !important;
}

.mpc-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-bottom: 6px !important;
  margin-bottom: 8px !important;
}

.mpc-badge {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 10px !important;
}

.mpc-reg {
  font-size: 0.75rem !important;
  color: #fbbf24 !important;
  font-weight: 600 !important;
}

.mpc-title {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
}

.mpc-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  font-size: 0.82rem !important;
  color: #cbd5e1 !important;
  margin-bottom: 12px !important;
}

.mpc-info p {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.mpc-info strong {
  color: #94a3b8 !important;
}

.btn-select-market-port {
  width: 100% !important;
  padding: 8px 12px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 6px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: all 0.15s ease !important;
}

.btn-select-market-port:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

body .market-leaflet-popup .leaflet-popup-content-wrapper,
body.light-theme .market-leaflet-popup .leaflet-popup-content-wrapper,
.market-leaflet-popup .leaflet-popup-content-wrapper {
  background: #0f172a !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
  color: #f8fafc !important;
}

body .market-leaflet-popup .leaflet-popup-tip,
body.light-theme .market-leaflet-popup .leaflet-popup-tip,
.market-leaflet-popup .leaflet-popup-tip {
  background: #0f172a !important;
}

.market-leaflet-popup .leaflet-popup-tip {
  background: #0f172a !important;
}

.market-leaflet-popup .leaflet-popup-close-button {
  color: #94a3b8 !important;
  font-size: 16px !important;
  padding: 6px !important;
}

.market-leaflet-popup .leaflet-popup-close-button:hover {
  color: #ffffff !important;
}


/* ==============================================================================
   [v1.6 사용자 중심 UI/UX 대개편]
   - 전문 영어 표현(HSI) -> '어장 선호도' 친화적 직관화
   - 50~60대 선장님 및 현장 관리자 맞춤 글자 크기(Font-size) 15~25% 전면 상향
   - 하단 최적 요약바, 사이드바 카드, 텍스트 배지 시인성 극대화
   ============================================================================== */

/* 1. 상단 네비게이션 탭 글자 크기 및 굵기 확대 */
.nav-tab {
  font-size: 0.90rem !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
}

/* 2. 섹션 타이틀 및 아코디언 헤더 확대 */
.section-title {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  letter-spacing: -0.3px !important;
}

/* 3. 어종 / 어법 선택 카드 글자 크기 및 가독성 향상 */
.card-main-title {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

.card-desc {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: #cbd5e1 !important;
  margin-top: 3px !important;
}

body.light-theme .card-main-title {
  color: #0f172a !important;
}

body.light-theme .card-desc {
  color: #475569 !important;
}

/* 4. 하단 최적 출어 요약바 (.optimal-summary-bar) 시원시원한 대형 폰트 */
.opt-sum-badge-pill {
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  padding: 4px 11px !important;
  border-radius: 6px !important;
}

.opt-sum-flow {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  gap: 10px !important;
}

.opt-sum-flow .opt-sum-arrow {
  font-size: 0.95rem !important;
  color: #38bdf8 !important;
  font-weight: 900 !important;
}

.opt-sum-node.node-dep {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
}

.opt-sum-node.node-ground {
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  color: #fbbf24 !important;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4) !important;
}

.opt-sum-node.node-arr {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #34d399 !important;
}

.opt-sum-metric {
  padding: 4px 10px !important;
  gap: 7px !important;
}

.opt-sum-metric .lbl {
  font-size: 0.80rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
}

.opt-sum-metric .val {
  font-size: 1.06rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px !important;
}

.opt-sum-metric .sub {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
}

.opt-sum-metric.highlight .val {
  font-size: 1.20rem !important;
  font-weight: 900 !important;
  color: #10b981 !important;
}

/* 5. 사이드바 추천 어장 결과 카드 대형화 및 선호도 배지 강조 */
.opt-card-ground-title {
  font-size: 1.20rem !important;
  font-weight: 900 !important;
  color: #f8fafc !important;
  letter-spacing: -0.5px !important;
}

body.light-theme .opt-card-ground-title {
  color: #0f172a !important;
}

.opt-hsi-badge {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
}

.opt-theme-badge {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
}

.opt-hsi-highlight-val {
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  color: #16a34a !important;
  letter-spacing: -0.8px !important;
}

/* 6. 지도 팝업 및 해양 인스펙터 폰트 확대 */
.leaflet-popup-content {
  font-size: 0.86rem !important;
  line-height: 1.6 !important;
}

/* ==============================================================================
   [v1.6] 전국 유어선(낚시어선) 실측 빅데이터 & Point 어업 관제 UI 전용 스타일
============================================================================== */
.kpi-grid-yuseon .kpi-card {
  transition: transform 0.2s, border-color 0.2s;
}

.kpi-grid-yuseon .kpi-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8 !important;
}

.yuseon-species-item {
  background: #0B132B;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yuseon-species-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.yuseon-species-name {
  font-weight: 700;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yuseon-species-count {
  font-weight: 700;
  color: #38BDF8;
  font-size: 0.75rem;
}

.yuseon-species-bar-wrap {
  width: 100%;
  height: 5px;
  background: #1E293B;
  border-radius: 3px;
  overflow: hidden;
}

.yuseon-species-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.yuseon-catch-card {
  background: #0B132B;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.yuseon-catch-card:hover {
  background: #1E293B;
  border-color: #38BDF8;
}

.yuseon-catch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  margin-bottom: 3px;
}

.yuseon-catch-ship {
  font-weight: 700;
  color: #ADE8F4;
  min-width: 0;
  line-height: 1.35;
}

.yuseon-catch-cooler-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.yuseon-catch-cooler-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.yuseon-catch-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yuseon-vessel-item {
  padding: 8px 10px;
  border-bottom: 1px solid #1E293B;
  cursor: pointer;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.yuseon-vessel-item:hover {
  background: #1E293B;
  color: #38BDF8;
}

.btn-yuseon-layer {
  transition: all 0.2s ease;
}

.btn-yuseon-layer.active {
  background: #0077B6 !important;
  border-color: #00B4D8 !important;
  color: #FFFFFF !important;
}

.yuseon-cluster-popup {
  font-family: 'Pretendard', sans-serif;
  color: #0F172A;
  min-width: 220px;
}

/* ==============================================================================
   [v1.8] 처음 사용자 -> 숙련자 점진적 온보딩 & 빠른 시작 허브 (Welcome Hub)
   ============================================================================== */
/* Fix .optimal-summary-bar overriding .hidden */
.timeline-bar.hidden,
.optimal-summary-bar.hidden,
#yuseonSummaryBar.hidden,
#optimalSummaryBar.hidden,
body.light-theme .optimal-summary-bar.hidden,
body.light-theme #optimalSummaryBar.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.btn-welcome-hub-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(56, 189, 248, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.65);
  border-radius: 999px;
  color: #E0F2FE;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-welcome-hub-trigger:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(56, 189, 248, 0.4));
  border-color: #38BDF8;
}

/* Login Portal Demo Mode Selector */
.demo-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.dms-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 11px;
  border-radius: 8px;
  background: #0F172A;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  color: #CBD5E1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: left;
}

.dms-btn:hover {
  border-color: #38BDF8;
  background: #1E293B;
}

.dms-btn.active {
  background: #0C4A6E;
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.dms-badge {
  font-size: 0.80rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.dms-desc {
  font-size: 0.70rem;
  color: #94A3B8;
}

.dms-btn.active .dms-desc {
  color: #BAE6FD;
}

/* Welcome Hub Full-Screen Overlay (Zero backdrop-filter / transform glitches) */
.welcome-hub-overlay {
  position: fixed;
  inset: 0;
  z-index: 98000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(6, 12, 26, 0.94);
  animation: hubOpacityIn 0.2s ease-out;
}

.welcome-hub-overlay.hidden {
  display: none !important;
}

@keyframes hubOpacityIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hub-container {
  position: relative;
  width: 100%;
  max-width: 980px;
  background: #0F172A;
  border: 1.5px solid #38BDF8;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 32px rgba(56, 189, 248, 0.15);
  color: #F8FAFC;
  max-height: 92vh;
  overflow-y: auto;
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.hub-pill-tag {
  margin-bottom: 8px;
}

.hub-level-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #064E3B;
  border: 1px solid #10B981;
  color: #34D399;
  font-size: 0.78rem;
  font-weight: 800;
}

.hub-greeting {
  font-size: 1.48rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.hub-subtitle {
  font-size: 0.94rem;
  color: #CBD5E1;
  margin: 0;
}

.hub-close-x {
  background: #1E293B;
  border: 1px solid #475569;
  color: #CBD5E1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.hub-close-x:hover {
  background: #DC2626;
  border-color: #EF4444;
  color: #FFFFFF;
}

/* Hero Card */
.hub-hero-card {
  position: relative;
  background: linear-gradient(135deg, #0C4A6E 0%, #0F172A 100%);
  border: 1.5px solid #38BDF8;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 18px;
}

.hub-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  background: #F59E0B;
  color: #0F172A;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hub-hero-info h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.hub-hero-info p {
  font-size: 0.88rem;
  color: #E2E8F0;
  margin: 0 0 16px 0;
}

.hub-wizard-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.hub-step-block {
  background: #020617;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
}

.hub-step-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 10px;
}

.hub-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-chip-btn {
  padding: 8px 13px;
  border-radius: 8px;
  background: #1E293B;
  border: 1.5px solid #475569;
  color: #E2E8F0;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.hub-chip-btn:hover {
  border-color: #38BDF8;
  background: #334155;
}

.hub-chip-btn.active {
  background: #0284C7;
  border-color: #7DD3FC;
  color: #FFFFFF;
}

.hub-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 1.5px solid #34D399;
  color: #FFFFFF;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  transition: opacity 0.15s;
}

.hub-cta-btn:hover {
  opacity: 0.94;
}

/* Secondary 3 Action Cards */
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.hub-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px 18px;
  background: #1E293B;
  border: 1.5px solid #334155;
  border-radius: 14px;
  color: #F8FAFC;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.hub-action-card:hover {
  border-color: #38BDF8;
  background: #273549;
}

.hac-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.hac-body h4 {
  font-size: 1.0rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.hac-body p {
  font-size: 0.80rem;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.hac-go {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 800;
  color: #38BDF8;
}

/* Hub Footer */
.hub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #334155;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-graduate-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #CBD5E1;
  cursor: pointer;
}

.hub-graduate-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #38BDF8;
  cursor: pointer;
}

.hub-expert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #1E293B;
  border: 1.5px solid #475569;
  color: #F1F5F9;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.hub-expert-btn:hover {
  background: #0C4A6E;
  border-color: #38BDF8;
  color: #FFFFFF;
}

/* Quick Result Floating Ticket Card (Centered without CSS transform or backdrop-filter) */
.quick-result-ticket {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 95000;
  width: 92%;
  max-width: 580px;
  background: #0F172A;
  border: 2px solid #10B981;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 20px rgba(16, 185, 129, 0.3);
  color: #FFFFFF;
  animation: hubOpacityIn 0.25s ease-out;
}

.quick-result-ticket.hidden {
  display: none !important;
}

.qrt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.qrt-badge {
  background: #064E3B;
  border: 1px solid #34D399;
  color: #34D399;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.qrt-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.qrt-close:hover {
  color: #FFFFFF;
}

.qrt-route {
  font-size: 1.06rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #334155;
}

.qrt-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.qrt-metric {
  background: #020617;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 10px;
}

.qrt-lbl {
  display: block;
  font-size: 0.72rem;
  color: #94A3B8;
  margin-bottom: 2px;
}

.qrt-val {
  font-size: 1.02rem;
  font-weight: 800;
  color: #F8FAFC;
}

.qrt-val.profit {
  color: #34D399;
  font-size: 1.12rem;
}

.qrt-actions {
  display: flex;
  gap: 8px;
}

.qrt-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.qrt-btn.primary {
  background: #0284C7;
  color: #FFFFFF;
}

.qrt-btn.primary:hover {
  opacity: 0.92;
}

.qrt-btn.secondary {
  background: #1E293B;
  color: #E2E8F0;
  border: 1px solid #475569;
}

.qrt-btn.secondary:hover {
  background: #334155;
}

@media (max-width: 768px) {
  .hub-container {
    padding: 18px 16px;
  }

  .hub-wizard-steps {
    grid-template-columns: 1fr;
  }

  .hub-cards-grid {
    grid-template-columns: 1fr;
  }

  .qrt-metrics {
    grid-template-columns: 1fr;
  }
}

/* [v1.8 Refined Typography] 한글 가독성 및 숫자 열 정렬 */
body,
button,
input,
select,
textarea {
  font-family: 'Pretendard Variable', Pretendard, 'Inter', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stat-val,
.qrt-val,
.opt-sum-metric .val,
.clock-display,
.date-display-val {
  font-variant-numeric: tabular-nums;
}

/* ==============================================================================
   [v1.8 Pass #2] 헤더 무오버플로·타임라인 눈금·화이트테마 대비·모바일 요약바 최종 정제
   ============================================================================== */

/* 1. 상단 헤더 가로 오버플로 0% (1280px ~ 1920px+ 시계 잘림 원천 차단) */
.app-header {
  gap: 10px !important;
  padding: 0 14px !important;
}

.brand-logo {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
}

.brand-badge {
  display: none !important;
}

.top-nav-tabs {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: max-content;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  gap: 2px !important;
  padding: 3px 4px !important;
}

.nav-tab {
  font-size: 0.78rem !important;
  padding: 5px 9px !important;
}

.header-actions {
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.btn-welcome-hub-trigger {
  padding: 5px 10px !important;
  font-size: 0.76rem !important;
}

#simClockDisplay.clock-display,
body.light-theme #simClockDisplay.clock-display {
  width: auto !important;
  min-width: 156px !important;
  max-width: none !important;
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  background: rgba(15, 23, 42, 0.78) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

@media (max-width: 1700px) {
  .date-pill {
    display: none !important;
  }

  .nav-tab {
    font-size: 0.75rem !important;
    padding: 4px 7px !important;
  }
}

@media (max-width: 1560px) {

  .btn-magnifier-toggle .btn-label,
  .btn-guide-help .guide-text {
    display: none !important;
  }

  .btn-magnifier-toggle,
  .btn-guide-help {
    padding: 5px 7px !important;
  }

  .user-auth-pill {
    padding: 3px 8px !important;
    font-size: 0.74rem !important;
    max-width: 145px !important;
  }
}

@media (max-width: 1200px) {
  .header-actions {
    display: none !important;
  }
}

/* 2. 실시간 어선 관제 하단 타임라인 슬라이더 및 눈금 균등 배치 */
.timeline-controls {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.timeline-slider-wrap {
  flex: 1 1 auto !important;
  min-width: 220px !important;
  width: 100%;
}

.time-tick-labels {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.timeline-controls .current-time-badge {
  width: auto !important;
  min-width: 168px !important;
  max-width: none !important;
  flex-shrink: 0 !important;
}

/* 3. 좌·우 사이드바 하단 Onpod 플로팅 배지 가림 방지 여유 패딩 */
.sidebar,
.sidebar-right {
  padding-bottom: 58px !important;
}

/* 4. 유어선 패널·요약바 & 파고안전 필터·레이어 체크박스 다크/화이트 테마 일관 대비 */
.yuseon-heading-main {
  color: #ADE8F4;
}

.yuseon-subdesc {
  font-size: 0.73rem;
  color: #94A3B8;
  margin-top: 4px;
  line-height: 1.45;
}

.yuseon-badge-emerald {
  background: #064E3B;
  color: #34D399;
  border: 1px solid #059669;
  font-size: 0.70rem;
  font-weight: 700;
}

.yuseon-badge-sky {
  background: #1E293B;
  color: #38BDF8;
  font-size: 0.68rem;
}

.yuseon-search-dropdown {
  max-height: 220px;
  overflow-y: auto;
  background: #0B132B;
  border: 1px solid #3A506B;
  border-radius: 6px;
  margin-top: 4px;
}

.kpi-grid-yuseon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.yuseon-kpi-card {
  background: #0B132B;
  border: 1px solid #3A506B;
  border-radius: 8px;
  padding: 10px;
}

.yuseon-kpi-card .kpi-title {
  font-size: 11px;
  color: #94A3B8;
}

.yuseon-kpi-card .kpi-value {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.yuseon-kpi-card .kpi-unit {
  font-size: 11px;
  font-weight: 400;
  color: #94A3B8;
}

.yuseon-kpi-card .kpi-sub {
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 2px;
}

.yuseon-val-sky {
  color: #38BDF8;
}

.yuseon-val-amber {
  color: #F59E0B;
}

.yuseon-val-purple {
  color: #A78BFA;
}

.yuseon-val-emerald {
  color: #34D399;
}

.yuseon-sub-emerald {
  color: #34D399 !important;
}

.yuseon-sub-amber {
  color: #FBBF24 !important;
}

.yuseon-sub-purple {
  color: #C4B5FD !important;
}

.btn-yuseon-layer {
  flex: 1;
  padding: 7px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  background: #0B132B;
  border: 1px solid #3A506B;
  color: #CBD5E1;
  cursor: pointer;
}

.yuseon-summary-bar {
  background: #0B132B !important;
  border-top: 1px solid #10B981 !important;
}

.yuseon-sum-pill {
  background: #064E3B;
  color: #34D399;
  border: 1px solid #059669;
}

.yuseon-flow-main {
  color: #ADE8F4;
}

.yuseon-flow-accent {
  color: #38BDF8;
}

.yuseon-flow-amber {
  color: #FBBF24;
}

.yuseon-sum-highlight {
  border-left: 1px solid #334155;
  padding-left: 14px;
}

/* 우측 파고안전 필터 & 레이어 칩 다크 기본 */
.opt-wave-filter-wrap {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.wave-filter-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.wave-safety-select {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.wave-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #CBD5E1;
  padding: 5px 8px;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wave-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wave-line-dash {
  display: inline-block;
  width: 18px;
  border-bottom-color: #FFFFFF;
}

.wave-dotted {
  border-bottom-width: 2px;
  border-bottom-style: dotted;
}

.wave-dashed {
  border-bottom-width: 2px;
  border-bottom-style: dashed;
}

.wave-solid {
  border-bottom-width: 2.5px;
  border-bottom-style: solid;
}

.layer-check-item.highlight-major-market {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer-chip-major-market {
  background: #d97706;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.major-market-title-accent {
  color: #fbbf24;
}

.layer-check-item.highlight-market {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer-chip-market {
  background: #0284c7;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.market-title-accent {
  color: #38bdf8;
}

.layer-check-item.highlight-harbor {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer-chip-harbor {
  background: #0d9488;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.harbor-title-accent {
  color: #2dd4bf;
}

.market-pin-major {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 8px rgba(251, 191, 36, 0.65) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease !important;
}

.harbor-pin-bubble {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 5px rgba(45, 212, 191, 0.45) !important;
  color: #ffffff !important;
  font-size: 8px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease !important;
}

.layer-check-item.highlight-yuseon {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yuseon-cluster-title {
  color: #34d399;
}

.layer-check-item.highlight-yuseon-track {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yuseon-track-title {
  color: #22d3ee;
}

/* 화이트 테마(body.light-theme) 고대비 AAA 오버라이드 */
body.light-theme .yuseon-heading-main {
  color: #0F172A !important;
}

body.light-theme .yuseon-subdesc {
  color: #475569 !important;
}

body.light-theme .yuseon-badge-emerald {
  background: #DCFCE7 !important;
  color: #047857 !important;
  border-color: #6EE7B7 !important;
}

body.light-theme .yuseon-badge-sky {
  background: #E0F2FE !important;
  color: #0369A1 !important;
  border: 1px solid #BAE6FD !important;
}

body.light-theme .yuseon-search-dropdown {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .yuseon-vessel-item {
  border-bottom-color: #E2E8F0 !important;
  color: #0F172A !important;
}

body.light-theme .yuseon-vessel-item strong {
  color: #0369A1 !important;
}

body.light-theme .yuseon-vessel-item:hover {
  background: #F1F5F9 !important;
}

body.light-theme .yuseon-kpi-card {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .yuseon-kpi-card .kpi-title,
body.light-theme .yuseon-kpi-card .kpi-unit,
body.light-theme .yuseon-kpi-card .kpi-sub {
  color: #475569 !important;
}

body.light-theme .yuseon-val-sky {
  color: #0369A1 !important;
}

body.light-theme .yuseon-val-amber {
  color: #B45309 !important;
}

body.light-theme .yuseon-val-purple {
  color: #6D28D9 !important;
}

body.light-theme .yuseon-val-emerald {
  color: #047857 !important;
}

body.light-theme .yuseon-sub-emerald {
  color: #047857 !important;
}

body.light-theme .yuseon-sub-amber {
  color: #B45309 !important;
}

body.light-theme .yuseon-sub-purple {
  color: #6D28D9 !important;
}

body.light-theme .btn-yuseon-layer {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}

body.light-theme .btn-yuseon-layer.active {
  background: #0284C7 !important;
  border-color: #0284C7 !important;
  color: #FFFFFF !important;
}

body.light-theme .yuseon-species-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .yuseon-species-name {
  color: #0F172A !important;
}

body.light-theme .yuseon-species-count {
  color: #0369A1 !important;
}

body.light-theme .yuseon-species-bar-wrap {
  background: #E2E8F0 !important;
}

body.light-theme .yuseon-catch-card {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .yuseon-catch-card:hover {
  background: #EFF6FF !important;
  border-color: #0284C7 !important;
}

body.light-theme .yuseon-catch-ship {
  color: #0F172A !important;
}

body.light-theme .yuseon-catch-sub {
  color: #475569 !important;
}

body.light-theme .yuseon-catch-cooler-badge {
  background: #DCFCE7 !important;
  color: #047857 !important;
  border-color: #6EE7B7 !important;
}

body.light-theme .yuseon-catch-cooler-badge.warning {
  background: #FEF3C7 !important;
  color: #B45309 !important;
  border-color: #FCD34D !important;
}

body.light-theme .yuseon-summary-bar {
  background: #FFFFFF !important;
  border-top: 2px solid #10B981 !important;
}

body.light-theme .yuseon-sum-pill {
  background: #DCFCE7 !important;
  color: #047857 !important;
  border-color: #6EE7B7 !important;
}

body.light-theme .yuseon-flow-main {
  color: #0F172A !important;
}

body.light-theme .yuseon-flow-accent {
  color: #0369A1 !important;
}

body.light-theme .yuseon-flow-amber {
  color: #B45309 !important;
}

body.light-theme .yuseon-sum-highlight {
  border-left-color: #CBD5E1 !important;
}

body.light-theme .opt-wave-filter-wrap {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .wave-filter-lbl {
  color: #334155 !important;
}

body.light-theme .wave-safety-select {
  background: #FFFFFF !important;
  color: #0369A1 !important;
  border-color: #0284C7 !important;
}

body.light-theme .wave-legend-row,
body.light-theme .wave-contour-panel .wave-legend-row {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
}

body.light-theme .wave-line-dash {
  border-bottom-color: #1E293B !important;
}

/* 출항 브리핑 시트 3단 경로 박스 줄바꿈 정돈 */
.plan-route-box .prb-step {
  min-width: 110px;
}

.plan-route-box .prb-step strong {
  word-break: keep-all;
  white-space: nowrap;
}

body.light-theme .layer-check-item.highlight-major-market {
  background: #FFFBEB !important;
  border-color: #FCD34D !important;
}

body.light-theme .major-market-title-accent {
  color: #B45309 !important;
}

body.light-theme .layer-check-item.highlight-market {
  background: #EFF6FF !important;
  border-color: #93C5FD !important;
}

body.light-theme .market-title-accent {
  color: #0369A1 !important;
}

body.light-theme .layer-check-item.highlight-harbor {
  background: #F0FDFA !important;
  border-color: #5EEAD4 !important;
}

body.light-theme .harbor-title-accent {
  color: #0F766E !important;
}

body.light-theme .layer-check-item.highlight-yuseon {
  background: #ECFDF5 !important;
  border-color: #6EE7B7 !important;
}

body.light-theme .yuseon-cluster-title {
  color: #047857 !important;
}

body.light-theme .layer-check-item.highlight-yuseon-track {
  background: #ECFEFF !important;
  border-color: #67E8F9 !important;
}

body.light-theme .yuseon-track-title {
  color: #0E7490 !important;
}

/* AI 브리핑 번호 배지(이모지 대체) */
.oacb-robot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.oacb-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
}

.oacb-dot-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
}

.oacb-dot-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
}

/* 5. 모바일(<= 860px) 하단 요약바 래핑·높이 클리핑 완전 해소 & 빠른시작 버튼 노출 */
.mobile-quickstart-btn {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
  color: #6EE7B7 !important;
}

@media (max-width: 860px) {
  .app-header {
    height: auto !important;
    min-height: 52px !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
    padding: 6px 10px !important;
    gap: 6px !important;
  }

  .top-nav-tabs {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
  }

  .timeline-bar.optimal-summary-bar,
  #optimalSummaryBar,
  #yuseonSummaryBar {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 10px !important;
    bottom: 40px !important;
    left: 6px !important;
    right: 6px !important;
    width: auto !important;
    max-width: none !important;
    overflow: hidden !important;
  }

  .optimal-summary-bar .optimal-summary-content {
    gap: 5px !important;
  }

  .opt-sum-row-top {
    white-space: normal !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 5px !important;
  }

  .opt-sum-badge-pill {
    font-size: 0.72rem !important;
    padding: 2px 7px !important;
  }

  .opt-sum-flow {
    white-space: normal !important;
    flex-wrap: wrap !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
    line-height: 1.3 !important;
  }

  .opt-sum-node.node-dep,
  .opt-sum-node.node-ground,
  .opt-sum-node.node-arr,
  .opt-sum-flow .opt-sum-arrow {
    font-size: 0.78rem !important;
  }

  .opt-sum-metrics {
    white-space: normal !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 5px !important;
  }

  .opt-sum-metric {
    padding: 3px 7px !important;
    gap: 4px !important;
  }

  .opt-sum-metric .lbl {
    font-size: 0.65rem !important;
  }

  .opt-sum-metric .val {
    font-size: 0.80rem !important;
  }

  .opt-sum-metric.highlight .val {
    font-size: 0.86rem !important;
  }

  .opt-sum-metric .sub {
    display: none !important;
  }

  .yuseon-sum-highlight {
    border-left: none !important;
    padding-left: 7px !important;
  }

  .leaflet-bottom.leaflet-right {
    bottom: 214px !important;
  }
}

/* ==============================================================================
   [v1.9] 담백한 실무형 인터페이스 정돈 (AI 과잉 장식 제거 · 여백 · 위계 정리)
   ============================================================================== */

/* 1. 상단 장식용 텔레메트리 티커·가이드 띠 비표시 + 단정한 단일 헤더 */
.marine-data-feed-bar,
.mode-guide-banner {
  display: none !important;
}

.app-header {
  background: #0F172A !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
}

.brand-logo {
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  box-shadow: none !important;
}

.progress-status-btn {
  background: transparent !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #94A3B8 !important;
  font-size: 0.70rem !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

.progress-status-btn:hover {
  color: #E2E8F0 !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}

.top-nav-tabs {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  gap: 2px !important;
}

.nav-tab {
  color: #94A3B8 !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
}

.nav-tab.active {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

.btn-welcome-hub-trigger {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  color: #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-weight: 600 !important;
}

.btn-welcome-hub-trigger:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}

.btn-magnifier-toggle,
.btn-guide-help {
  background: transparent !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #CBD5E1 !important;
}

.btn-magnifier-toggle:hover,
.btn-guide-help:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.btn-magnifier-toggle.active,
.btn-magnifier-toggle.active:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}

.btn-magnifier-toggle svg,
.btn-magnifier-toggle span {
  pointer-events: none;
}

.user-auth-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

#simClockDisplay.clock-display,
body.light-theme #simClockDisplay.clock-display {
  background: transparent !important;
  border: none !important;
  color: #94A3B8 !important;
}

/* 2. 데스크톱 우측 사이드바 폭 슬림화로 지도 시야 확대 */
@media (min-width: 1401px) {
  .sidebar-right {
    flex: 0 0 268px !important;
    width: 268px !important;
    min-width: 268px !important;
    max-width: 268px !important;
  }
}

@media (min-width: 1121px) and (max-width: 1400px) {
  .sidebar-right {
    flex: 0 0 248px !important;
    width: 248px !important;
    min-width: 248px !important;
    max-width: 248px !important;
  }
}

/* 3. 좌측 기상 카드 콤팩트화 + 화이트/다크 테마 일관성 */
.opt-weather-section {
  background: rgba(30, 41, 59, 0.45) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: none !important;
  padding: 10px 12px !important;
  margin-bottom: 10px !important;
}

.weather-card-header {
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
}

.wch-title {
  color: #E2E8F0 !important;
  font-size: 0.79rem !important;
}

.weather-card-body {
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.weather-metric-col {
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  padding: 6px 4px !important;
}

.weather-card-footer {
  background: transparent !important;
  padding: 2px 0 0 0 !important;
  font-size: 0.70rem !important;
}

body.light-theme .opt-weather-section {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .weather-card-header {
  border-bottom-color: #E2E8F0 !important;
}

body.light-theme .wch-title {
  color: #0F172A !important;
}

body.light-theme .safety-badge.green {
  background: #DCFCE7 !important;
  border-color: #86EFAC !important;
  color: #166534 !important;
}

body.light-theme .weather-metric-col {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .wm-label {
  color: #64748B !important;
}

body.light-theme .wm-val,
body.light-theme .wm-val.text-white {
  color: #0F172A !important;
}

body.light-theme .wm-val.text-cyan {
  color: #0369A1 !important;
}

body.light-theme .wm-val.text-primary {
  color: #1D4ED8 !important;
}

body.light-theme .wm-sub {
  color: #475569 !important;
}

body.light-theme .wm-sub.text-green {
  color: #15803D !important;
}

body.light-theme .weather-card-footer {
  color: #475569 !important;
}

body.light-theme .opt-company-title {
  color: #0F172A !important;
  border-bottom-color: #E2E8F0 !important;
}

/* 4. 플래너 액션 버튼·보조 토글 버튼 정갈화 */
.btn-opt-search {
  background: #0284C7 !important;
  border: 1px solid #0284C7 !important;
  box-shadow: none !important;
}

.btn-opt-search:hover {
  background: #0369A1 !important;
  box-shadow: none !important;
}

.btn-opt-ai {
  background: rgba(148, 163, 184, 0.14) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #E2E8F0 !important;
  box-shadow: none !important;
}

.btn-opt-ai:hover {
  background: rgba(148, 163, 184, 0.24) !important;
  box-shadow: none !important;
}

body.light-theme .btn-opt-ai {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .btn-opt-ai:hover {
  background: #E2E8F0 !important;
}

.btn-opt-plan {
  grid-column: span 2;
  background: #0F766E !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-opt-plan:hover {
  background: #115E59 !important;
}

.quick-port-layers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.btn-quick-major-toggle,
.btn-quick-harbor-toggle {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #CBD5E1;
}

.btn-quick-major-toggle.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #D97706;
  color: #FBBF24;
}

.btn-quick-harbor-toggle.active {
  background: rgba(20, 184, 166, 0.2);
  border-color: #0D9488;
  color: #2DD4BF;
}

.btn-quick-market-toggle,
.btn-quick-hauls-toggle {
  width: 100%;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #CBD5E1;
}

.btn-quick-market-toggle.active,
.btn-quick-hauls-toggle.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: #0284C7;
  color: #38BDF8;
}

body.light-theme .btn-quick-major-toggle,
body.light-theme .btn-quick-harbor-toggle,
body.light-theme .btn-quick-market-toggle,
body.light-theme .btn-quick-hauls-toggle {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #334155;
}

body.light-theme .btn-quick-major-toggle.active {
  background: #FFFBEB;
  border-color: #D97706;
  color: #B45309;
}

body.light-theme .btn-quick-harbor-toggle.active {
  background: #F0FDFA;
  border-color: #0D9488;
  color: #0F766E;
}

body.light-theme .btn-quick-market-toggle.active,
body.light-theme .btn-quick-hauls-toggle.active {
  background: #EFF6FF;
  border-color: #0284C7;
  color: #0369A1;
}

/* 5. 하단 요약바 균형 잡힌 크기 정돈 (데스크톱) */
@media (min-width: 861px) {
  .opt-sum-flow {
    font-size: 0.94rem !important;
    gap: 8px !important;
  }

  .opt-sum-node.node-dep,
  .opt-sum-node.node-ground,
  .opt-sum-node.node-arr {
    font-size: 0.94rem !important;
    text-shadow: none !important;
  }

  .opt-sum-metric .val {
    font-size: 0.96rem !important;
  }

  .opt-sum-metric.highlight .val {
    font-size: 1.05rem !important;
  }

  .opt-hsi-highlight-val {
    font-size: 1.38rem !important;
  }
}

/* 6. [v2.9] 담백한 실무형 로그인 포털 & 계정 문의 모달 (불필요한 색상 네모상자 제거) */
.auth-gate-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: #F4F6F9 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  overflow-y: auto !important;
  animation: fadeInAuth 0.2s ease !important;
}

.auth-gate-overlay.hidden {
  display: none !important;
}

.auth-portal-shell {
  width: 100% !important;
  max-width: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;
}

.auth-portal-container {
  width: 100% !important;
  max-width: 400px !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05) !important;
  padding: 34px 30px 28px 30px !important;
  overflow: visible !important;
  animation: none !important;
}

.auth-clean-brand {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  margin-bottom: 24px !important;
}

.auth-clean-logo {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.auth-clean-brand-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}

.auth-clean-name {
  font-family: var(--font-sans) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

.auth-clean-sub {
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  color: #64748B !important;
  line-height: 1.3 !important;
}

.auth-tabs {
  display: flex !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px solid #E2E8F0 !important;
  border-radius: 0 !important;
  gap: 20px !important;
  margin-bottom: 22px !important;
}

.auth-tab {
  flex: none !important;
  padding: 0 2px 10px 2px !important;
  margin-bottom: -1px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #64748B !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
}

.auth-tab:hover {
  color: #0F172A !important;
}

.auth-tab.active {
  background: transparent !important;
  color: #0F172A !important;
  font-weight: 700 !important;
  border-bottom-color: #0F172A !important;
  box-shadow: none !important;
}

.auth-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.auth-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  text-align: left !important;
}

.auth-input-group label {
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

.auth-input-group input {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  font-size: 0.90rem !important;
  color: #0F172A !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.auth-input-group input::placeholder {
  color: #94A3B8 !important;
  font-size: 0.85rem !important;
}

.auth-input-group input:focus {
  border-color: #0F2942 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(15, 41, 66, 0.08) !important;
}

.auth-options-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: -2px 0 2px 0 !important;
  font-size: 0.82rem !important;
}

.auth-checks-group {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.auth-chk-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  user-select: none !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

.auth-chk-label input[type="checkbox"] {
  accent-color: #0F2942 !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
}

.btn-find-account {
  background: transparent !important;
  border: none !important;
  color: #64748B !important;
  font-size: 0.80rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.btn-find-account:hover {
  color: #0F172A !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.auth-status-alert,
.auth-status-alert.error,
.auth-status-alert.success {
  background: transparent !important;
  border: none !important;
  padding: 2px 0 !important;
  margin: -4px 0 !important;
  border-radius: 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

.auth-status-alert.error {
  color: #DC2626 !important;
}

.auth-status-alert.success {
  color: #047857 !important;
}

.auth-submit-btn {
  width: 100% !important;
  background: #0F2942 !important;
  color: #FFFFFF !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 11px 14px !important;
  border-radius: 6px !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: background 0.15s ease !important;
  margin-top: 2px !important;
}

.auth-submit-btn:hover {
  background: #173B5E !important;
}

.auth-btn-secondary {
  width: 100% !important;
  background: #FFFFFF !important;
  color: #334155 !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  border: 1px solid #CBD5E1 !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

.auth-btn-secondary:hover {
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
}

.auth-plain-note {
  margin: 4px 0 0 0 !important;
  padding-top: 16px !important;
  border-top: 1px solid #F1F5F9 !important;
  font-size: 0.78rem !important;
  line-height: 1.6 !important;
  color: #64748B !important;
  text-align: center !important;
}

.auth-plain-note a {
  color: #334155 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.auth-plain-note a:hover {
  text-decoration: underline !important;
}

.auth-register-plain {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.arp-title {
  margin: 0 !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
}

.arp-desc {
  margin: 0 !important;
  font-size: 0.84rem !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  word-break: keep-all !important;
}

.arp-contact-row,
.fam-contact-plain {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 0 !important;
  border-top: 1px solid #E2E8F0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  font-size: 0.85rem !important;
}

.arp-k,
.fam-k {
  color: #64748B !important;
  font-weight: 500 !important;
}

.arp-v,
.fam-v {
  color: #0F172A !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.arp-v:hover,
.fam-v:hover {
  text-decoration: underline !important;
}

.arp-actions,
.fam-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.auth-portal-footer {
  font-size: 0.74rem !important;
  color: #94A3B8 !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* 계정 문의 모달 (담백한 화이트 톤 동기화) */
.find-account-modal-overlay {
  background: rgba(15, 23, 42, 0.35) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.find-account-modal-card {
  max-width: 400px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
  padding: 24px !important;
  gap: 14px !important;
}

.find-account-modal-card .fam-header {
  border-bottom: 1px solid #E2E8F0 !important;
  padding-bottom: 12px !important;
}

.find-account-modal-card .fam-title {
  color: #0F172A !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.find-account-modal-card .btn-fam-close {
  color: #64748B !important;
}

.find-account-modal-card .btn-fam-close:hover {
  color: #0F172A !important;
  background: #F1F5F9 !important;
}

.find-account-modal-card .fam-desc {
  color: #475569 !important;
  font-size: 0.84rem !important;
  line-height: 1.6 !important;
}

@media (max-width: 520px) {
  .auth-portal-container {
    padding: 28px 20px 24px 20px !important;
  }
}

.demo-mode-selector .dms-btn {
  background: #111827 !important;
  border: 1px solid #334155 !important;
}

.demo-mode-selector .dms-btn.active {
  background: #1E293B !important;
  border-color: #0284C7 !important;
  box-shadow: none !important;
}

.btn-quick-start {
  background: #111827 !important;
  border: 1px solid #334155 !important;
  box-shadow: none !important;
}

.btn-quick-start:hover {
  background: #1E293B !important;
  border-color: #475569 !important;
}

.welcome-hub-overlay {
  background: rgba(9, 13, 22, 0.84) !important;
  backdrop-filter: blur(4px) !important;
}

.hub-container {
  max-width: 860px !important;
  background: #111827 !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65) !important;
  padding: 26px 28px !important;
}

.hub-level-note {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 4px;
}

.hub-greeting {
  font-size: 1.34rem !important;
  font-weight: 700 !important;
}

.hub-subtitle {
  font-size: 0.88rem !important;
  color: #94A3B8 !important;
}

.hub-hero-card {
  background: #1E293B !important;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  box-shadow: none !important;
}

.hub-hero-info h3 {
  font-size: 1.06rem !important;
  font-weight: 700 !important;
}

.hub-hero-info p {
  font-size: 0.84rem !important;
  color: #CBD5E1 !important;
  margin-bottom: 14px !important;
}

.hub-step-block {
  background: #111827 !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
}

.hub-chip-btn {
  background: #1E293B !important;
  border: 1px solid #334155 !important;
  border-radius: 6px !important;
}

.hub-chip-btn.active {
  background: #0284C7 !important;
  border-color: #0284C7 !important;
  box-shadow: none !important;
}

.hub-cta-btn {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 11px 16px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

.hub-cta-btn:hover {
  background: #0369A1 !important;
}

.hub-action-card {
  background: #1F2937 !important;
  border: 1px solid #374151 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
}

.hub-action-card:hover {
  background: #263244 !important;
  border-color: #64748B !important;
}

.hac-body h4 {
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.hac-body p {
  font-size: 0.78rem !important;
  margin-bottom: 8px !important;
}

.hac-go {
  font-size: 0.78rem !important;
  color: #94A3B8 !important;
  font-weight: 600 !important;
}

.hub-action-card:hover .hac-go {
  color: #E2E8F0 !important;
}

.hub-expert-btn {
  border-radius: 8px !important;
  border-width: 1px !important;
}

.quick-result-ticket {
  background: #111827 !important;
  border: 1px solid #475569 !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

.qrt-badge {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #94A3B8 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

/* 7대 어업 배지 및 실측 항차 선택 드롭다운 */
.badge-anchovy {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-squid {
  background: rgba(139, 92, 246, 0.16);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge-longline {
  background: rgba(244, 63, 94, 0.16);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.badge-gillnet {
  background: rgba(234, 179, 8, 0.16);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-trap {
  background: rgba(20, 184, 166, 0.16);
  color: #2DD4BF;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

body.light-theme .badge-anchovy {
  background: #ECFDF5 !important;
  color: #047857 !important;
  border-color: #A7F3D0 !important;
}

body.light-theme .badge-squid {
  background: #F5F3FF !important;
  color: #6D28D9 !important;
  border-color: #DDD6FE !important;
}

body.light-theme .badge-longline {
  background: #FFF1F2 !important;
  color: #BE123C !important;
  border-color: #FECDD3 !important;
}

body.light-theme .badge-gillnet {
  background: #FEFCE8 !important;
  color: #A16207 !important;
  border-color: #FEF08A !important;
}

body.light-theme .badge-trap {
  background: #F0FDFA !important;
  color: #0F766E !important;
  border-color: #99F6E4 !important;
}

.voyage-quick-select-wrap {
  margin-top: 8px;
}

.voyage-quick-select-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.active-filter-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(2, 132, 199, 0.16);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-variant-numeric: tabular-nums;
}

body.light-theme .active-filter-badge {
  background: #EFF6FF;
  color: #0369A1;
  border-color: #BFDBFE;
}

.badge-count.has-active {
  color: #38BDF8;
  font-weight: 700;
}

body.light-theme .badge-count.has-active {
  color: #0369A1;
}

.badge-count.is-zero {
  opacity: 0.6;
}

/* ==============================================================================
   [v2.0] 전사 가독성 향상 · 비겹침 글자 크기 상향 시스템
   ============================================================================== */

/* 1. 뷰포트별 루트 폰트 비례 상향 (전역 rem 기준) */
@media (min-width: 1441px) {
  html {
    font-size: 17.5px;
  }
}

@media (min-width: 861px) and (max-width: 1440px) {
  html {
    font-size: 16.8px;
  }
}

@media (max-width: 860px) {
  html {
    font-size: 16.2px;
  }
}

/* 2. 데스크톱 좌·우 사이드바 및 하단 요약바 여유폭 확보 (텍스트 줄바꿈·클리핑 방지) */
@media (min-width: 1281px) {
  .sidebar {
    flex: 0 0 356px !important;
    width: 356px !important;
    min-width: 356px !important;
    max-width: 356px !important;
  }
}

@media (min-width: 861px) and (max-width: 1280px) {
  .sidebar {
    flex: 0 0 336px !important;
    width: 336px !important;
    min-width: 336px !important;
    max-width: 336px !important;
  }
}

@media (min-width: 1401px) {
  .sidebar-right {
    flex: 0 0 292px !important;
    width: 292px !important;
    min-width: 292px !important;
    max-width: 292px !important;
  }
}

@media (min-width: 1121px) and (max-width: 1400px) {
  .sidebar-right {
    flex: 0 0 264px !important;
    width: 264px !important;
    min-width: 264px !important;
    max-width: 264px !important;
  }
}

/* 3. 상단 헤더 & 하단 요약바 높낮이/글자 균형 (단일행 비겹침 유지) */
.app-header {
  height: 54px !important;
  min-height: 54px !important;
}

.brand-title {
  font-size: 1.06rem !important;
}

.nav-tab {
  font-size: 0.84rem !important;
  padding: 5px 10px !important;
  white-space: nowrap;
}

@media (max-width: 1560px) {
  .nav-tab {
    font-size: 0.80rem !important;
    padding: 4px 8px !important;
  }
}

.btn-welcome-hub-trigger {
  font-size: 0.80rem !important;
  padding: 5px 10px !important;
}

#simClockDisplay.clock-display,
body.light-theme #simClockDisplay.clock-display {
  min-width: 168px !important;
  font-size: 0.78rem !important;
}

.user-auth-pill {
  font-size: 0.80rem !important;
  max-width: 165px !important;
}

@media (min-width: 861px) {

  .timeline-bar,
  #optimalSummaryBar,
  #yuseonSummaryBar {
    height: auto !important;
    min-height: 58px !important;
    max-height: none !important;
    padding: 8px 18px !important;
  }

  .opt-sum-badge-pill {
    font-size: 0.78rem !important;
    white-space: nowrap;
  }

  .opt-sum-flow,
  .opt-sum-node.node-dep,
  .opt-sum-node.node-ground,
  .opt-sum-node.node-arr {
    font-size: 0.98rem !important;
  }

  .opt-sum-metric .lbl {
    font-size: 0.78rem !important;
  }

  .opt-sum-metric .val {
    font-size: 1.00rem !important;
  }

  .opt-sum-metric.highlight .val {
    font-size: 1.10rem !important;
  }

  .opt-sum-metric .sub {
    font-size: 0.76rem !important;
  }
}

/* 4. 사이드바 공통 제목 · 폼 · 버튼 · 배지 하한 상향 */
.section-title {
  font-size: 0.94rem !important;
  line-height: 1.35;
}

.mode-badge,
.badge,
.badge-count,
.active-filter-badge {
  font-size: 0.76rem !important;
}

.quick-link,
.input-sublabel,
.sublabel-text,
.voyage-quick-select-label,
.card-desc,
.opt-pick-coords-notice,
.opt-arr-mode-desc {
  font-size: 0.80rem !important;
  line-height: 1.45 !important;
}

.opt-custom-select,
.custom-select,
.custom-time-input,
.opt-select-sm {
  font-size: 0.86rem !important;
  min-height: 36px;
}

.btn-pick-map,
.btn-reset-map,
.btn-time-preset,
.btn-preset {
  font-size: 0.81rem !important;
  line-height: 1.35;
  height: auto !important;
  min-height: 33px;
}

.btn-opt-primary,
.btn-opt-secondary,
.btn-opt-plan,
.btn-view-route {
  font-size: 0.86rem !important;
  line-height: 1.35;
}

.btn-quick-major-toggle,
.btn-quick-harbor-toggle,
.btn-quick-market-toggle,
.btn-quick-hauls-toggle {
  font-size: 0.79rem !important;
  line-height: 1.3;
  white-space: nowrap;
  padding: 7px 8px !important;
}

.layer-check-item,
.layer-item-title {
  font-size: 0.84rem !important;
  line-height: 1.38 !important;
}

.checkbox-label,
.radio-label-pill {
  font-size: 0.82rem !important;
  line-height: 1.4;
}

/* 5. 기상 카드 · 최적 어장 추천 카드 · 시세표 가독성 강화 */
.wch-title,
.opt-arr-mode-title {
  font-size: 0.86rem !important;
}

.safety-badge,
.weather-card-footer,
.opt-sp-gear,
.opt-market-info-pill,
.opt-param-item label {
  font-size: 0.78rem !important;
  line-height: 1.42 !important;
}

.opt-rank-badge,
.opt-hsi-badge,
.opt-price-pill,
.opt-rec-tag {
  font-size: 0.78rem !important;
}

.opt-card-route-flow {
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
  flex-wrap: wrap;
}

.opt-metric-box .lbl {
  font-size: 0.76rem !important;
}

.opt-metric-box .val {
  font-size: 0.90rem !important;
}

.opt-cost-breakdown-box,
.market-mini-table {
  font-size: 0.80rem !important;
  line-height: 1.45;
}

/* 6. 유어선 패널 · 우측 범례 · 타임라인 눈금 · 지도 팝업/툴팁 · 모달 */
.yuseon-subdesc,
.yuseon-badge-emerald,
.yuseon-badge-sky,
.btn-yuseon-layer,
.yuseon-species-name,
.yuseon-species-count,
.yuseon-catch-sub,
.yuseon-catch-cooler-badge {
  font-size: 0.80rem !important;
  line-height: 1.4;
}

.yuseon-catch-ship {
  font-size: 0.90rem !important;
}

.yuseon-kpi-card .kpi-title {
  font-size: 0.80rem !important;
}

.yuseon-kpi-card .kpi-unit,
.yuseon-kpi-card .kpi-sub {
  font-size: 0.76rem !important;
}

.yuseon-kpi-card .kpi-value {
  font-size: 1.24rem !important;
}

.wave-filter-lbl,
.wave-safety-select,
.wave-legend-row,
.vessel-legend-title,
.vessel-legend-grid,
.legend-row,
.stat-label,
.fleet-chip,
.inactive-fleets-toggle,
.hsi-colorbar-title,
.hsi-bar-ticks,
.hsi-bar-ticks-horiz,
.speed-legend-bar,
.speed-labels-row,
.opacity-slider-row,
.time-tick-labels,
.spd-btn,
.btn-time-mode {
  font-size: 0.79rem !important;
  line-height: 1.4 !important;
}

.cursor-coords-badge,
.basemap-pill,
.leaflet-tooltip {
  font-size: 0.80rem !important;
  line-height: 1.35;
}

.market-popup-card,
.mpc-info p {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

.mpc-title {
  font-size: 1.02rem !important;
}

.mpc-badge,
.mpc-reg,
.popup-badge,
.popup-status-chip {
  font-size: 0.78rem !important;
}

.aps-sub,
.aps-footer-note,
.aps-spec-row,
.hub-level-note,
.hac-body p,
.hac-go,
.qrt-badge {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

.hub-subtitle {
  font-size: 0.94rem !important;
}

.hub-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.hub-step-head .hub-step-label {
  margin-bottom: 0;
}

.hub-step-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
}

.hub-port-detail-controls {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hub-detail-filter-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 6px;
}

.hub-detail-field {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 8px;
}

.hub-detail-lbl {
  font-size: 0.80rem;
  font-weight: 700;
  color: #CBD5E1;
  white-space: nowrap;
}

.hub-detail-select,
.hub-detail-input {
  width: 100%;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.82rem;
  font-family: inherit;
}

.hub-detail-select:focus,
.hub-detail-input:focus {
  outline: none;
  border-color: #38BDF8;
}

body.light-theme .hub-step-count,
body.light-theme .hub-detail-lbl {
  color: #475569 !important;
}

body.light-theme .hub-detail-select,
body.light-theme .hub-detail-input {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}


/* ==============================================================================
   [v2.6] 헤더 관리자 배지 잘림 방지 (Never truncate manager/admin badges)
   ============================================================================== */
.user-auth-pill,
body .user-auth-pill,
body .header-actions .user-auth-pill {
  max-width: none !important;
  width: auto !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.user-name,
body .user-name,
body #authUserName {
  max-width: none !important;
  width: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.header-actions,
body .header-actions {
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}


/* ==============================================================================
   [v2.7] 면세유 모달 지표 카드 가독성 최적화 및 텍스트 꺾임/줄바꿈 방지
   ============================================================================== */
.taxfree-fuel-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
}

.taxfree-card {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 96px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.taxfree-card.primary {
  border-color: #0284c7 !important;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.15) !important;
}

.taxfree-card-title {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  white-space: nowrap !important;
  letter-spacing: -0.3px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.taxfree-card-val-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.taxfree-card-val {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.taxfree-card-unit {
  font-size: 0.76rem !important;
  font-weight: normal !important;
  color: #94a3b8 !important;
  margin-left: 2px !important;
  white-space: nowrap !important;
}

.taxfree-card-badge {
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.taxfree-card-sub {
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  letter-spacing: -0.3px !important;
}

@media (max-width: 820px) {
  .taxfree-fuel-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .taxfree-fuel-grid {
    grid-template-columns: 1fr !important;
  }
}


.taxfree-fishery-select {
  background: #1e293b !important;
  color: #38bdf8 !important;
  border: 1px solid #334155 !important;
  border-radius: 4px !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  padding: 1px 4px !important;
  outline: none !important;
  cursor: pointer !important;
  max-width: 125px !important;
  height: 22px !important;
}

.taxfree-fishery-select:focus {
  border-color: #38bdf8 !important;
}

/* ==============================================================================
   [v2.5] 유어선 해역 권역별 색상 SSOT (지도 마커 색상과 100% 일치)
   서해권: #0284C7 (스카이블루)
   남해권: #0D9488 (청록 / 에메랄드)
   제주권: #EA580C (코랄 / 주황)
   동해권: #4F46E5 (인디고 / 보라)
   ============================================================================== */
.yuseon-region-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.yuseon-val-west {
  color: #0284C7 !important;
  font-weight: 800;
}

.yuseon-val-south {
  color: #0D9488 !important;
  font-weight: 800;
}

.yuseon-val-jeju {
  color: #EA580C !important;
  font-weight: 800;
}

.yuseon-val-east {
  color: #4F46E5 !important;
  font-weight: 800;
}

body.light-theme .yuseon-val-west {
  color: #0284C7 !important;
}

body.light-theme .yuseon-val-south {
  color: #0D9488 !important;
}

body.light-theme .yuseon-val-jeju {
  color: #EA580C !important;
}

body.light-theme .yuseon-val-east {
  color: #4F46E5 !important;
}


/* ==========================================================================
   출어 조건 직접 입력 및 실시간 경제성 시뮬레이션 (Simulation Inputs & Dynamic Outputs)
   ========================================================================== */
.opt-sim-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.65)) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.opt-sim-live-badge {
  font-size: 0.68rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.sim-row {
  margin-bottom: 10px;
}

.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.sim-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
}

.sim-val-text {
  font-size: 0.86rem;
  font-weight: 800;
  color: #38bdf8;
}

.sim-control-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-step-btn {
  padding: 4px 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sim-step-btn:hover {
  background: #38bdf8;
  color: #0f172a;
}

.sim-slider {
  flex: 1;
  height: 6px;
  accent-color: #38bdf8;
  cursor: pointer;
}

.sim-input-unit {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sim-num-input {
  width: 58px;
  text-align: right;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 4px;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 18px 4px 4px;
}

.sim-num-input.w-full {
  width: 100%;
}

.sim-num-input.price-val {
  color: #fbbf24;
}

.sim-num-input.fuel-val {
  color: #38bdf8;
}

.sim-input-unit span {
  position: absolute;
  right: 5px;
  font-size: 0.65rem;
  color: #64748b;
  pointer-events: none;
}

.sim-chips-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.sim-chip-btn {
  flex: 1;
  padding: 3px 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.70rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.sim-chip-btn:hover,
.sim-chip-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: #38bdf8;
  font-weight: 700;
}

.sim-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.sim-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.sim-sub-label {
  font-size: 0.72rem;
  color: #94a3b8;
}

.btn-sim-reset-price {
  font-size: 0.65rem;
  color: #38bdf8;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.sim-select,
.sim-time-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 0.76rem;
  padding: 4px 6px;
  font-weight: 600;
}

.sim-summary-card {
  background: rgba(2, 132, 199, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 8px;
}

.ssc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ssc-label {
  font-size: 0.72rem;
  color: #94a3b8;
}

.ssc-val {
  font-size: 0.80rem;
}

.ssc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  margin-top: 4px;
}

.ssc-total-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f1f5f9;
}

.ssc-total-val {
  font-size: 0.95rem;
  font-weight: 800;
}

.ssc-sub-meta {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.35;
  text-align: right;
}

/* 조업 계획서 내부 실시간 컨트롤러 */
.plan-live-controller {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
}

.plc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.plc-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plc-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #166534;
}

.plc-badge {
  font-size: 0.68rem;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.plc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .plc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plc-item label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.plc-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 4px;
}

.btn-plc-step {
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.70rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-plc-step:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.plc-stepper-wrap input {
  width: 100%;
  text-align: center;
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  background: transparent;
  outline: none;
}

.plc-unit {
  font-size: 0.72rem;
  color: #64748b;
  flex-shrink: 0;
  padding-right: 4px;
}

.plc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.plc-input-wrap input {
  width: 100%;
  border: none;
  padding: 6px 36px 6px 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  background: transparent;
  outline: none;
}

.plc-input-wrap .plc-unit {
  position: absolute;
  right: 6px;
  font-size: 0.70rem;
  color: #64748b;
  pointer-events: none;
}

.plc-item select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
}

/* ==========================================================================
   [v2.7] 원클릭 조업 계획 런처 & ong_navi 바다전용 A* 배지 & 강화된 요약 티켓
   ========================================================================== */
.oneclick-plan-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.16) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.ocp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 6px;
}

.ocp-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ong-navi-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}

body.dark-mode .ong-navi-badge,
.quick-result-ticket .ong-navi-badge,
.opt-route-click-card .ong-navi-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.ocp-desc {
  font-size: 0.71rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.ocp-presets-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.ocp-preset-chip {
  padding: 5px 6px;
  font-size: 0.71rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(255, 255, 255, 0.75);
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ocp-preset-chip:hover,
.ocp-preset-chip.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.ocp-actions-row {
  display: flex;
  gap: 6px;
}

.btn-oneclick-primary {
  flex: 1.4;
  padding: 8px 10px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.32);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-oneclick-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-oneclick-secondary {
  flex: 0.9;
  padding: 8px 8px;
  border-radius: 7px;
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-oneclick-secondary:hover {
  background: #059669;
  color: #ffffff;
}

/* Enhanced Quick Result Ticket (4-KPI + Sea-Only A* Verified) */
.quick-result-ticket {
  min-width: 390px !important;
  max-width: 460px !important;
}

.qrt-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.qrt-dist-chip {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
}

.quick-result-ticket .qrt-metrics {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

.quick-result-ticket .qrt-actions {
  display: grid !important;
  grid-template-columns: 1.3fr 1.1fr 0.85fr !important;
  gap: 6px !important;
}

.qrt-btn.copy-btn {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.qrt-btn.copy-btn:hover {
  background: #059669;
  color: #ffffff;
}

/* ==========================================================================
   [v2.7] 선단 문자 발송 (SMS/LMS) 모달 및 트리거 버튼
   ========================================================================== */
.btn-oneclick-sms {
  padding: 8px 9px;
  border-radius: 7px;
  border: 1px solid rgba(2, 132, 199, 0.45);
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-oneclick-sms:hover {
  background: #0284c7;
  color: #ffffff;
}

.btn-plan-sms {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
  transition: all 0.18s ease;
}

.btn-plan-sms:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.quick-result-ticket .qrt-actions {
  display: grid !important;
  grid-template-columns: 1.25fr 1.15fr 0.8fr 0.85fr !important;
  gap: 6px !important;
}

.qrt-btn.sms-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
}

.qrt-btn.sms-btn:hover {
  filter: brightness(1.1);
}

/* SMS Dispatch Modal Layout */
.sms-modal-box {
  max-width: 860px !important;
  width: 94% !important;
}

.sms-modal-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.92fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 760px) {
  .sms-modal-grid {
    grid-template-columns: 1fr;
  }
}

.sms-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sms-section-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
}

.sms-recipients-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 162px;
  overflow-y: auto;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.sms-recipient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.80rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sms-recipient-item.checked {
  border-color: #0284c7;
  background: #f0f9ff;
}

.sms-recipient-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sms-recipient-name {
  font-weight: 700;
  color: #0f172a;
}

.sms-recipient-phone {
  font-size: 0.74rem;
  color: #475569;
  font-family: 'Inter', monospace;
}

.sms-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.sms-status-pill.ready {
  background: #e2e8f0;
  color: #475569;
}

.sms-status-pill.sending {
  background: #fef3c7;
  color: #b45309;
}

.sms-status-pill.sent {
  background: #d1fae5;
  color: #047857;
}

.sms-add-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.sms-add-row input {
  flex: 1;
  padding: 6px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #0f172a;
  background: #ffffff;
}

.sms-add-btn {
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid #0284c7;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sms-add-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.sms-tpl-tabs {
  display: flex;
  gap: 5px;
}

.sms-tpl-btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
}

.sms-tpl-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.sms-textarea {
  width: 100%;
  min-height: 170px;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #0f172a;
  background: #ffffff;
  resize: vertical;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
  box-sizing: border-box;
}

.sms-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.sms-byte-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 0.73rem;
  color: #64748b;
}

.sms-type-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.70rem;
  background: #e0f2fe;
  color: #0369a1;
}

/* Realistic Smartphone Preview */
.sms-phone-mockup {
  background: #0f172a;
  border-radius: 22px;
  padding: 12px 12px 14px 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
  border: 3px solid #334155;
  margin-bottom: 12px;
}

.sms-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px 8px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 10px;
  color: #e2e8f0;
  font-size: 0.74rem;
}

.sms-phone-sender {
  font-weight: 800;
  color: #38bdf8;
}

.sms-phone-screen {
  background: #1e293b;
  border-radius: 12px;
  padding: 11px;
  min-height: 175px;
  max-height: 230px;
  overflow-y: auto;
}

.sms-bubble {
  background: #334155;
  color: #f8fafc;
  border-radius: 12px 12px 12px 3px;
  padding: 10px 12px;
  font-size: 0.77rem;
  line-height: 1.52;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sms-bubble-time {
  font-size: 0.66rem;
  color: #94a3b8;
  margin-top: 5px;
  text-align: right;
}

/* Dispatch Progress & Log */
.sms-progress-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.sms-progress-box.done {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.sms-progress-text {
  font-size: 0.80rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 6px;
}

.sms-progress-box.done .sms-progress-text {
  color: #047857;
}

.sms-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.sms-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  transition: width 0.25s ease;
}

.sms-history-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  max-height: 115px;
  overflow-y: auto;
}

.sms-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.72rem;
  color: #334155;
}

.sms-history-item:last-child {
  border-bottom: none;
}

.sms-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sms-native {
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.80rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-sms-native:hover {
  background: #f1f5f9;
}

.btn-sms-send-main {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: all 0.18s ease;
}

.btn-sms-send-main:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-sms-send-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   [v2.7] 가상 수신 단말기 어장·최적경로 현장 실증 검증 시스템
   ========================================================================== */
.sms-modal-box {
  max-width: 960px !important;
  width: 95% !important;
}

.sms-modal-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr !important;
  gap: 18px;
  align-items: start;
}

.ocp-verify-strip {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px dashed rgba(5, 150, 105, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.70rem;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ocp-verify-strip:hover {
  background: rgba(16, 185, 129, 0.14);
}

.sms-phone-screen {
  background: #1e293b;
  border-radius: 12px;
  padding: 10px 11px;
  min-height: 290px !important;
  max-height: 360px !important;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Interactive Verification Card inside Virtual Smartphone */
.phone-verify-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 11px;
  padding: 10px 11px;
  color: #f8fafc;
}

.pvc-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pvc-row {
  margin-bottom: 7px;
}

.pvc-label {
  font-size: 0.70rem;
  color: #cbd5e1;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.pvc-chip-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.pvc-chip {
  padding: 5px 4px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.9);
  color: #cbd5e1;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.pvc-chip.active.hit {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

.pvc-chip.active.mid {
  background: rgba(2, 132, 199, 0.28);
  border-color: #38bdf8;
  color: #7dd3fc;
}

.pvc-chip.active.miss {
  background: rgba(239, 68, 68, 0.25);
  border-color: #f87171;
  color: #fca5a5;
}

.pvc-catch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(30, 41, 59, 0.75);
  padding: 5px 8px;
  border-radius: 6px;
  margin-bottom: 7px;
  font-size: 0.71rem;
}

.pvc-catch-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pvc-step-btn {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #475569;
  background: #334155;
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.pvc-catch-input {
  width: 48px;
  text-align: center;
  padding: 2px 3px;
  border-radius: 4px;
  border: 1px solid #38bdf8;
  background: #0f172a;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
}

.btn-pvc-submit {
  width: 100%;
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
}

.btn-pvc-submit:hover {
  filter: brightness(1.08);
}

/* Outgoing Reply Bubble from Captain */
.sms-reply-bubble {
  align-self: flex-end;
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ecfdf5;
  border: 1px solid #34d399;
  border-radius: 12px 12px 3px 12px;
  padding: 9px 11px;
  font-size: 0.74rem;
  line-height: 1.48;
  width: 92%;
  white-space: pre-wrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* Verification Cumulative Scorecard */
.sms-verify-scorecard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

.svs-item {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 7px 8px;
  text-align: center;
}

.svs-lbl {
  font-size: 0.67rem;
  color: #166534;
  font-weight: 700;
  display: block;
}

.svs-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: #047857;
}


/* ==========================================================================
   [v2.8] 파일럿 실증 투망·양망 GPS 실시간 수집 및 현장 대장 시스템
   ========================================================================== */

/* 1. 스마트폰 가상 단말기 내 투망·양망 GPS 발신 카드 */
.phone-net-card {
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  border-radius: 11px;
  padding: 10px 11px;
  color: #f8fafc;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.pnc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 5px;
}

.pnc-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #34d399;
}

.pnc-badge {
  font-size: 0.62rem;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pnc-fleet-lbl {
  font-size: 0.67rem;
  color: #94a3b8;
  font-weight: 600;
}

.pnc-block {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 7px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.pnc-block.shoot {
  border-left: 3px solid #10b981;
}

.pnc-block.haul {
  border-left: 3px solid #f43f5e;
}

.pnc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.pnc-tag {
  font-size: 0.68rem;
  font-weight: 800;
}

.pnc-tag.shoot {
  color: #34d399;
}

.pnc-tag.haul {
  color: #fb7185;
}

.pnc-time {
  font-size: 0.66rem;
  color: #cbd5e1;
  font-family: monospace;
}

.pnc-coords-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 5px;
}

.pnc-coord-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pnc-coord-field label {
  font-size: 0.60rem;
  color: #94a3b8;
  font-weight: 600;
}

.pnc-input {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 0.70rem;
  color: #f1f5f9;
  font-family: monospace;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.pnc-input:focus {
  border-color: #38bdf8;
  outline: none;
}

.pnc-sub-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  color: #94a3b8;
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.pnc-sub-info strong {
  color: #f8fafc;
}

.btn-pnc-send-sms {
  width: 100%;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
  transition: all 0.15s ease;
}

.btn-pnc-send-sms:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* 2. 지도 플로팅 투망·양망 실증 센터 버튼 */
.floating-pilot-net-btn {
  position: absolute;
  top: 12px;
  right: 180px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid #10b981;
  border-radius: 20px;
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.floating-pilot-net-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  transform: translateY(-1px);
}

.fpn-badge {
  background: #059669;
  color: #ffffff;
  font-size: 0.64rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}

/* 3. 파일럿 투망·양망 실증 센터 전체 모달 */
.pilot-modal-box {
  max-width: 1020px !important;
  width: 95% !important;
}

.pilot-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.pss-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9px;
  padding: 10px 12px;
}

.pss-lbl {
  font-size: 0.69rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.pss-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.pss-sub {
  font-size: 0.64rem;
  color: #38bdf8;
  display: block;
  margin-top: 2px;
}

.pilot-content-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
}

.pilot-reg-card {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 14px 15px;
}

.prc-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prc-row {
  margin-bottom: 9px;
}

.prc-label {
  font-size: 0.70rem;
  color: #cbd5e1;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.prc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.prc-input,
.prc-select {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.75rem;
  color: #f8fafc;
  box-sizing: border-box;
}

.prc-btn-pick {
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid #0284c7;
  color: #38bdf8;
  font-size: 0.65rem;
  cursor: pointer;
  font-weight: 700;
}

.prc-btn-pick:hover {
  background: rgba(2, 132, 199, 0.45);
}

.btn-prc-submit {
  width: 100%;
  padding: 9px;
  border-radius: 7px;
  border: none;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s ease;
}

.btn-prc-submit:hover {
  background: #0369a1;
}

.pilot-table-wrap {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  overflow: hidden;
}

.ptw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ptw-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
}

.ptw-btn-export {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.70rem;
  font-weight: 700;
  cursor: pointer;
}

.ptw-btn-export:hover {
  background: rgba(16, 185, 129, 0.35);
}

.pilot-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.pilot-ledger-table th {
  background: #0f172a;
  color: #94a3b8;
  padding: 7px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  font-weight: 700;
}

.pilot-ledger-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  vertical-align: middle;
}

.pilot-ledger-table tr:hover td {
  background: rgba(30, 41, 59, 0.6);
}

.plt-channel-tag {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
}

.plt-channel-tag.sms {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.plt-channel-tag.platform {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.4);
}

.plt-btn-view-map {
  padding: 3px 7px;
  border-radius: 4px;
  background: #334155;
  border: 1px solid #475569;
  color: #f1f5f9;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.plt-btn-view-map:hover {
  background: #0284c7;
  border-color: #38bdf8;
}

/* 4. 지도 위 투망·양망 마커 스타일 (Leaflet HTML DivIcon) */
.net-pin-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.net-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 0.70rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  pointer-events: auto;
}

.net-pin-badge.shoot {
  background: #059669;
  border-color: #34d399;
}

.net-pin-badge.haul {
  background: #e11d48;
  border-color: #fb7185;
}

.net-pin-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.75;
  animation: netPulseAnim 1.8s infinite ease-out;
  pointer-events: none;
}

.net-pin-pulse.shoot {
  background: rgba(16, 185, 129, 0.6);
}

.net-pin-pulse.haul {
  background: rgba(225, 29, 72, 0.6);
}

@keyframes netPulseAnim {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.net-popup-card {
  padding: 6px 4px;
  font-family: inherit;
  color: #0f172a;
}

.net-popup-card h4 {
  margin: 0 0 6px 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.net-popup-card p {
  margin: 3px 0;
  font-size: 0.74rem;
  line-height: 1.4;
}


/* ==========================================================================
   [v2.8.2] 현장 조업 시간(투망·양망) 사용자 중심 간편 입력 UI
   ========================================================================== */
.pnc-time-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 9px;
  padding: 8px 10px;
  margin-top: 8px;
}

.pnc-time-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 7px;
}

.pnc-time-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}

.pnc-time-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pnc-time-lbl {
  font-size: 0.65rem;
  font-weight: 700;
}

.pnc-time-lbl.shoot {
  color: #34d399;
}

.pnc-time-lbl.haul {
  color: #fb7185;
}

.pnc-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pnc-time-input {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 5px;
  padding: 4px 6px;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: monospace;
  width: 100%;
  box-sizing: border-box;
}

.pnc-time-input:focus {
  border-color: #38bdf8;
  outline: none;
}

.pnc-btn-now {
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid #0284c7;
  color: #38bdf8;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pnc-btn-now:hover {
  background: #0284c7;
  color: #ffffff;
}

.pnc-arrow {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 800;
  padding-top: 14px;
}

.pnc-gap-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  color: #cbd5e1;
}

.pnc-gap-chips {
  display: flex;
  gap: 3px;
}

.pnc-gap-btn {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pnc-gap-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.pnc-gap-btn.active {
  background: rgba(2, 132, 199, 0.3);
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-pnc-send-time {
  width: 100%;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pnc-send-time:hover {
  filter: brightness(1.1);
}


/* ==========================================================================
   [v2.8.3] 테마 전면 일원화 & 콤팩트 실증 입력 스타일
   ========================================================================== */

/* 1. 통합 현장 실증 카드 내 콤팩트 조업 시각 행 */
.pvc-time-unified-row {
  margin-top: 8px;
  padding: 8px 9px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.ptur-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.70rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.ptur-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ptur-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ptur-item label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.ptur-input {
  background: #070d18;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 5px;
  padding: 3px 5px;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
  width: 100%;
  box-sizing: border-box;
}

.ptur-input:focus {
  border-color: #38bdf8;
  outline: none;
}

.ptur-btn-now {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid #0284c7;
  color: #38bdf8;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ptur-sep {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
}

.ptur-gaps {
  display: flex;
  gap: 2px;
}

.ptur-gap-chip {
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-size: 0.60rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ptur-gap-chip:hover,
.ptur-gap-chip.active {
  background: rgba(2, 132, 199, 0.35);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* 2. 모달 내 대장 열기 링크 버튼 (지도 위 상시 플로팅 제거 후 모달 내부 배치) */
.btn-ledger-open-link {
  width: 100%;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ledger-open-link:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #f8fafc;
}

/* 3. 모달 테마 전면 일원화 (Glassmorphic Dark Navy) */
.sms-modal-box,
.pilot-modal-box {
  background: rgba(11, 19, 43, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65) !important;
  border-radius: 14px !important;
}

.plan-sheet-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sms-recipients-list,
.sms-history-box {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.sms-textarea {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #f8fafc !important;
}

/* ==========================================================================
   [v2.9] 전체 UI/UX 담백한 실무형 라이트 톤 일원화
   - 불필요한 어두운 네모상자, 형광 테두리, 그라데이션, 점선 박스 일괄 제거
   - 화이트/슬레이트(#FFFFFF / #F8FAFC / #E2E8F0) + 딥네이비(#0F2942) 정갈한 통일
   ========================================================================== */

/* 1. 헤더 로그아웃 버튼·유저정보 정제 */
.btn-logout {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #e2e8f0 !important;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

/* 2. 사이드바 원클릭 계획 카드 / 시뮬레이터 / 산출안내 / 비교매트릭스 */
.oneclick-plan-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 12px !important;
  box-shadow: none !important;
}

.ocp-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.ong-navi-badge {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 600 !important;
}

.ocp-preset-chip {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  transform: none !important;
}

.ocp-preset-chip:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  transform: none !important;
}

.ocp-preset-chip.active {
  background: #0f2942 !important;
  color: #ffffff !important;
  border-color: #0f2942 !important;
}

.btn-oneclick-primary {
  background: #0f2942 !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transform: none !important;
}

.btn-oneclick-primary:hover {
  background: #173b5e !important;
  filter: none !important;
  transform: none !important;
}

.btn-oneclick-secondary,
.btn-oneclick-sms {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}

.btn-oneclick-secondary:hover,
.btn-oneclick-sms:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.ocp-verify-strip {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  color: #475569 !important;
}

.ocp-verify-strip:hover {
  background: #f1f5f9 !important;
}

.opt-sim-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.opt-sim-live-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.opt-sim-box .sim-label,
.opt-sim-box .sim-sub-label {
  color: #334155 !important;
}

.opt-sim-box .sim-val-text {
  color: #0f2942 !important;
}

.opt-sim-box .sim-step-btn,
.opt-sim-box .sim-chip-btn,
.opt-sim-box .btn-sim-reset-price {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.opt-sim-box .sim-chip-btn.active {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
}

.opt-sim-box .sim-num-input,
.opt-sim-box .sim-select,
.opt-sim-box .sim-input-unit {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.opt-sim-box .sim-summary-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.opt-sim-box .ssc-label,
.opt-sim-box .ssc-sub-meta {
  color: #64748b !important;
}

.opt-sim-box .ssc-val.text-green,
.opt-sim-box .ssc-sub-meta .text-green {
  color: #047857 !important;
}

.opt-sim-box .ssc-val.text-cyan {
  color: #0f2942 !important;
}

.opt-sim-box .ssc-total-val.text-primary {
  color: #0f2942 !important;
}

.opt-method-guide-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.opt-method-guide-box .method-step-row {
  color: #475569 !important;
}

.opt-method-guide-box .ms-num {
  background: #0f2942 !important;
}

.opt-comparison-matrix-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.ocmc-header {
  border-bottom-color: #e2e8f0 !important;
}

.ocmc-badge {
  color: #0f2942 !important;
}

.ocmc-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

.ocmc-table td {
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.rank-1-col {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.ocmc-profit-row th,
.ocmc-profit-row td {
  background: #f8fafc !important;
}

/* 3. 단기어장 하단 슬라이더 눈금 겹침 해소 및 정돈 */
.fc-slider-ref-pin .ref-pin-tag {
  display: none !important;
}

.fc-slider-ticks {
  gap: 8px !important;
  padding: 2px 2px 0 2px !important;
}

.fc-tick {
  font-size: 0.71rem !important;
}

/* 4. 유어선 하단 요약 바 & 원클릭 요약 티켓 화이트 일원화 */
body #yuseonSummaryBar.yuseon-summary-bar {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-top: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}

body #yuseonSummaryBar .yuseon-sum-pill {
  background: #f1f5f9 !important;
  color: #0f2942 !important;
  border: 1px solid #e2e8f0 !important;
}

body #yuseonSummaryBar .yuseon-flow-main,
body #yuseonSummaryBar .yuseon-flow-accent,
body #yuseonSummaryBar .yuseon-flow-amber,
body #yuseonSummaryBar .opt-sum-arrow {
  color: #334155 !important;
}

body #yuseonSummaryBar .yuseon-sum-highlight {
  border-left: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

body #yuseonSummaryBar .yuseon-val-emerald {
  color: #0f172a !important;
}

.quick-result-ticket {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

.quick-result-ticket .qrt-badge {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.quick-result-ticket .qrt-close {
  color: #64748b !important;
}

.quick-result-ticket .qrt-dist-chip {
  color: #64748b !important;
}

.quick-result-ticket .qrt-route {
  color: #0f172a !important;
}

.quick-result-ticket .qrt-metric {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.quick-result-ticket .qrt-lbl {
  color: #64748b !important;
}

.quick-result-ticket .qrt-val {
  color: #0f172a !important;
}

.quick-result-ticket .qrt-val.profit {
  color: #047857 !important;
}

.quick-result-ticket .qrt-btn.primary {
  background: #0f2942 !important;
  color: #ffffff !important;
  border: none !important;
}

.quick-result-ticket .qrt-btn.sms-btn,
.quick-result-ticket .qrt-btn.copy-btn,
.quick-result-ticket .qrt-btn.secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.quick-result-ticket .ong-navi-badge {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

/* 5. 전 모달 공통 화이트 톤 일원화 (system status, research, admin, guide, fuel, plan, sms, pilot, feedback, notice) */
.progress-modal-overlay,
.guide-modal-overlay,
.plan-modal-overlay,
.marine-notice-overlay,
.feedback-modal-overlay {
  background: rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.progress-modal-content,
.guide-modal-box,
.plan-sheet-box,
.sms-modal-box,
.pilot-modal-box,
.marine-notice-card,
.feedback-modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

.progress-modal-header,
.guide-modal-header,
.plan-sheet-header,
.mn-header,
.fmc-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 16px 22px !important;
}

.pm-badge,
.psh-badge,
.mn-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 600 !important;
}

.pm-title,
.gmh-title,
.plan-sheet-header h3,
.mn-title,
.fmc-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.pm-close-btn,
.btn-guide-modal-close,
.btn-plan-close,
.btn-mn-close {
  color: #64748b !important;
}

.pm-close-btn:hover,
.btn-guide-modal-close:hover,
.btn-plan-close:hover,
.btn-mn-close:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

/* 5-1. 시스템 현황 & 연구성과 모달 */
.pm-version-card,
.pm-version-card.current {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.pm-v-tag {
  background: #0f2942 !important;
  color: #ffffff !important;
}

.pm-v-date {
  color: #64748b !important;
}

.pm-status-done {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

.pm-v-desc ul,
.pm-v-desc li {
  color: #334155 !important;
}

.pm-v-desc strong {
  color: #0f172a !important;
}

.research-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.research-card:hover {
  border-color: #94a3b8 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
  transform: translateY(-2px) !important;
}

.rc-img-wrap {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.rc-title {
  color: #0f172a !important;
}

.rc-desc {
  color: #64748b !important;
}

/* 5-2. 관리자 제어 센터 (밑줄 탭 + 화이트 테이블) */
.admin-tab-nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0 22px !important;
  gap: 20px !important;
}

.admin-tab-btn {
  background: transparent !important;
  color: #64748b !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  padding: 12px 2px !important;
  margin-bottom: -1px !important;
  font-weight: 500 !important;
}

.admin-tab-btn:hover {
  color: #0f172a !important;
}

.admin-tab-btn.active {
  background: transparent !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border-bottom-color: #0f172a !important;
}

.admin-table td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.admin-action-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #b91c1c !important;
  border-radius: 5px !important;
  padding: 3px 8px !important;
  cursor: pointer !important;
}

/* 5-3. 운영 가이드 모달 */
.guide-card-intro {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.guide-card-intro h4 {
  color: #0f172a !important;
}

.guide-card-intro p {
  color: #475569 !important;
}

.guide-step-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.gsc-num {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.gsc-title {
  color: #0f172a !important;
}

.gsc-desc {
  color: #64748b !important;
}

.gt-item {
  background: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  padding: 10px 2px !important;
}

.gt-item:last-child {
  border-bottom: none !important;
}

.gt-term {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.gt-meaning {
  color: #475569 !important;
}

.guide-modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.btn-guide-confirm {
  background: #0f2942 !important;
  border-radius: 6px !important;
}

/* 5-4. 출항 조업 계획서 모달 */
.plan-live-controller,
.plan-route-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.plc-title,
.prb-highlight strong {
  color: #0f172a !important;
}

.plc-badge {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.prb-tag,
.prb-highlight small,
.prb-arrow {
  color: #475569 !important;
}

.plan-total-row th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.plan-notice-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3px solid #64748b !important;
  border-radius: 6px !important;
  color: #475569 !important;
}

.btn-plan-print {
  background: #0f2942 !important;
  box-shadow: none !important;
}

.btn-plan-sms {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.btn-plan-sms:hover {
  background: #f8fafc !important;
  filter: none !important;
  transform: none !important;
}

/* 5-5. 조업 계획 문자 발송 & 가상 수신 단말기 모달 (오버플로우 제거 및 화이트 통합) */
.sms-modal-grid {
  grid-template-columns: 1fr 1.08fr !important;
  gap: 20px !important;
}

.sms-modal-grid>div {
  min-width: 0 !important;
}

.sms-section-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sms-recipients-list,
.sms-history-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.sms-recipient-item.checked {
  border-color: #0f2942 !important;
  background: #f1f5f9 !important;
}

.sms-add-btn {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
}

.sms-add-btn:hover {
  background: #0f2942 !important;
  color: #ffffff !important;
}

.sms-tpl-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

.sms-tpl-btn.active {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
}

.sms-textarea {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.sms-textarea:focus {
  border-color: #0f2942 !important;
  box-shadow: 0 0 0 2px rgba(15, 41, 66, 0.08) !important;
}

.sms-type-badge {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.sms-phone-mockup {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.sms-phone-top {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  padding: 0 2px 8px 2px !important;
}

.sms-phone-sender {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sms-phone-screen {
  background: transparent !important;
  padding: 2px !important;
  max-height: none !important;
  min-height: auto !important;
  overflow-x: hidden !important;
}

.sms-bubble {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}

.sms-bubble-time {
  color: #64748b !important;
}

.phone-verify-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.pvc-title {
  color: #0f172a !important;
}

.pvc-label {
  color: #475569 !important;
}

.pvc-chip-group {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.pvc-chip {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 6px 4px !important;
}

.pvc-chip.active.hit {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  color: #047857 !important;
}

.pvc-chip.active.mid {
  background: #f1f5f9 !important;
  border-color: #0f2942 !important;
  color: #0f172a !important;
}

.pvc-chip.active.miss {
  background: #fef2f2 !important;
  border-color: #dc2626 !important;
  color: #b91c1c !important;
}

.pvc-catch-row,
.pvc-time-unified-row {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.ptur-head {
  color: #334155 !important;
}

.ptur-item label {
  color: #64748b !important;
}

.ptur-input,
.pvc-catch-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.pvc-step-btn,
.ptur-btn-now,
.ptur-gap-chip {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.ptur-gap-chip.active {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
}

.btn-pvc-submit,
.btn-sms-send-main {
  background: #0f2942 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.btn-pvc-submit:hover,
.btn-sms-send-main:hover:not(:disabled) {
  background: #173b5e !important;
  filter: none !important;
  transform: none !important;
}

.sms-reply-bubble {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.sms-verify-scorecard .svs-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.sms-verify-scorecard .svs-lbl {
  color: #64748b !important;
}

.sms-verify-scorecard .svs-val {
  color: #0f172a !important;
}

.btn-ledger-open-link {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.btn-ledger-open-link:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* 5-6. 파일럿 투망·양망 관제 모달 화이트 일원화 */
.pilot-stats-strip .pss-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.pss-lbl {
  color: #64748b !important;
}

.pss-val {
  color: #0f172a !important;
}

.pss-sub {
  color: #64748b !important;
}

.pilot-reg-card,
.pilot-table-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.prc-title,
.ptw-title {
  color: #0f172a !important;
}

.prc-label {
  color: #334155 !important;
}

.prc-input,
.prc-select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.prc-btn-pick,
.ptw-btn-export,
.plt-btn-view-map {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.prc-btn-pick:hover,
.ptw-btn-export:hover,
.plt-btn-view-map:hover {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
}

.btn-prc-submit {
  background: #0f2942 !important;
}

.pilot-ledger-table {
  color: #334155 !important;
}

.pilot-ledger-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.pilot-ledger-table td {
  border-bottom: 1px solid #f1f5f9 !important;
}

.pilot-ledger-table tr:hover td {
  background: #f8fafc !important;
}

.plt-channel-tag.sms {
  background: #f1f5f9 !important;
  color: #047857 !important;
  border: 1px solid #cbd5e1 !important;
}

.plt-channel-tag.platform {
  background: #f1f5f9 !important;
  color: #0f2942 !important;
  border: 1px solid #cbd5e1 !important;
}

/* 5-7. 관제 안내 & 피드백 알림 모달 화이트 일원화 */
.mn-desc,
.fmc-body {
  color: #475569 !important;
}

.fmc-body strong {
  color: #0f172a !important;
}

.mn-footer,
.fmc-footer {
  background: #ffffff !important;
  border-top-color: #e2e8f0 !important;
}

.btn-mn-confirm,
.fmc-btn-confirm {
  background: #0f2942 !important;
  border: none !important;
  box-shadow: none !important;
}

.mn-guide-container {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* 5-8. 출어계획(#sidebarOptimalGrounds, #optimalSummaryBar, 지도 마커, 계획서 컨트롤) 담백한 통일 */
body #optimalSummaryBar.optimal-summary-bar {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  padding: 10px 18px !important;
}

body #optimalSummaryBar .opt-sum-badge-pill {
  background: #f1f5f9 !important;
  color: #0f2942 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

body #optimalSummaryBar .opt-sum-flow {
  color: #0f172a !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
}

body #optimalSummaryBar .opt-sum-flow .opt-sum-arrow {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
}

body #optimalSummaryBar .opt-sum-node.node-dep,
body #optimalSummaryBar .opt-sum-node.node-arr {
  color: #334155 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

body #optimalSummaryBar .opt-sum-node.node-ground {
  color: #0f172a !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body #optimalSummaryBar .opt-sum-metric {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
}

body #optimalSummaryBar .opt-sum-metric .lbl {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 0.74rem !important;
}

body #optimalSummaryBar .opt-sum-metric .val {
  color: #0f172a !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
}

body #optimalSummaryBar .opt-sum-metric .sub {
  color: #64748b !important;
  font-size: 0.72rem !important;
}

body #optimalSummaryBar .opt-sum-metric.highlight {
  background: #f8fafc !important;
  border: 1px solid #0f2942 !important;
}

body #optimalSummaryBar .opt-sum-metric.highlight .val,
body #optimalSummaryBar .opt-sum-metric.highlight .val-profit {
  color: #047857 !important;
  font-size: 1rem !important;
}

/* 좌측 사이드바 출어계획 하위 카드 정돈 */
body #sidebarOptimalGrounds .opt-weather-section {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
}

body #sidebarOptimalGrounds .weather-card-header {
  border-bottom: 1px solid #f1f5f9 !important;
}

body #sidebarOptimalGrounds .wch-title {
  color: #0f172a !important;
}

body #sidebarOptimalGrounds .safety-badge.green {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
  box-shadow: none !important;
}

body #sidebarOptimalGrounds .weather-metric-col {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
}

body #sidebarOptimalGrounds .wm-val,
body #sidebarOptimalGrounds .wm-val.text-cyan,
body #sidebarOptimalGrounds .wm-val.text-primary,
body #sidebarOptimalGrounds .wm-val.text-white {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body #sidebarOptimalGrounds .wm-sub,
body #sidebarOptimalGrounds .wm-sub.text-green {
  color: #64748b !important;
}

body #sidebarOptimalGrounds .opt-company-title {
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body #sidebarOptimalGrounds .opt-fleet-label {
  color: #64748b !important;
  font-weight: 600 !important;
}

body #sidebarOptimalGrounds .fleet-vessel-chip.locked {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

body #sidebarOptimalGrounds .fleet-vessel-chip.carrier-chip {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body #sidebarOptimalGrounds .fleet-vessel-chip.carrier-chip:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

body #sidebarOptimalGrounds .fleet-vessel-chip.carrier-chip.selected {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body #sidebarOptimalGrounds .opt-species-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
}

body #sidebarOptimalGrounds .opt-sp-radio-text {
  color: #1e293b !important;
}

body #sidebarOptimalGrounds .opt-arr-mode-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

body #sidebarOptimalGrounds .opt-arr-mode-card.active {
  background: #f8fafc !important;
  border-color: #0f2942 !important;
}

body #sidebarOptimalGrounds .opt-rec-tag {
  background: #f1f5f9 !important;
  color: #0f2942 !important;
  border: 1px solid #cbd5e1 !important;
}

body #sidebarOptimalGrounds .btn-opt-search {
  background: #0f2942 !important;
  border: 1px solid #0f2942 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body #sidebarOptimalGrounds .btn-opt-search:hover {
  background: #173b5e !important;
}

body #sidebarOptimalGrounds .btn-opt-plan {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body #sidebarOptimalGrounds .btn-opt-plan:hover {
  background: #f8fafc !important;
  border-color: #0f2942 !important;
}

body #sidebarOptimalGrounds .btn-quick-major-toggle,
body #sidebarOptimalGrounds .btn-quick-harbor-toggle,
body #sidebarOptimalGrounds .btn-quick-market-toggle,
body #sidebarOptimalGrounds .btn-quick-hauls-toggle {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

body #sidebarOptimalGrounds .btn-quick-major-toggle.active,
body #sidebarOptimalGrounds .btn-quick-harbor-toggle.active,
body #sidebarOptimalGrounds .btn-quick-market-toggle.active,
body #sidebarOptimalGrounds .btn-quick-hauls-toggle.active {
  background: #f1f5f9 !important;
  border-color: #0f2942 !important;
  color: #0f2942 !important;
}

body #sidebarOptimalGrounds .opt-result-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

body #sidebarOptimalGrounds .opt-result-card.active-card {
  background: #f8fafc !important;
  border: 1.5px solid #0f2942 !important;
}

body #sidebarOptimalGrounds .opt-rank-1 .opt-card-rank-strip {
  background: #0f2942 !important;
}

body #sidebarOptimalGrounds .opt-rank-2 .opt-card-rank-strip {
  background: #64748b !important;
}

body #sidebarOptimalGrounds .opt-rank-3 .opt-card-rank-strip {
  background: #94a3b8 !important;
}

body #sidebarOptimalGrounds .opt-hsi-badge,
body #sidebarOptimalGrounds .opt-theme-badge {
  background: #f1f5f9 !important;
  color: #0f2942 !important;
  border: 1px solid #cbd5e1 !important;
}

body #sidebarOptimalGrounds .opt-card-departure-row {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body #sidebarOptimalGrounds .opt-card-departure-row strong {
  color: #0f2942 !important;
}

body #sidebarOptimalGrounds .opt-card-metrics-grid,
body #sidebarOptimalGrounds .opt-cost-breakdown-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body #sidebarOptimalGrounds .market-mini-table th {
  background: #f8fafc !important;
  color: #475569 !important;
}

/* 지도 위 추천 어장 핀 카드 */
.opt-pin-ground-white {
  border: 1.5px solid #0f2942 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16) !important;
}

.opt-pin-ground-badge {
  background: #0f2942 !important;
  color: #ffffff !important;
}

.opt-pin-ground-hsi {
  background: #f1f5f9 !important;
  color: #047857 !important;
  border: 1px solid #cbd5e1 !important;
}

.opt-pin-ground-arrow {
  border-top-color: #0f2942 !important;
}

/* 계획서 모달 상단 조건 조정 바 정돈 */
.plan-live-controller {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.plc-badge {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.btn-plc-step:hover {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
}

/* 5-9. SMS 모달 내부 클리핑(+ 추가 버튼 및 ④ 현장 조업 시각 가로 넘침) 완전 해소 */
.sms-add-row input {
  min-width: 0 !important;
}

.sms-add-btn {
  flex-shrink: 0 !important;
  padding: 6px 12px !important;
}

.ptur-inputs {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 5px !important;
}

.ptur-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  gap: 4px !important;
}

.ptur-input {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  font-size: 0.71rem !important;
  padding: 3px 4px !important;
}

.ptur-btn-now {
  flex-shrink: 0 !important;
  padding: 3px 6px !important;
}

.ptur-sep {
  flex-shrink: 0 !important;
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
}

.ptur-gaps {
  margin-top: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}

.ptur-gaps-lbl {
  font-size: 0.64rem;
  font-weight: 600;
  color: #64748b;
  margin-right: auto;
}

.ptur-gap-chip {
  padding: 3px 8px !important;
  font-size: 0.64rem !important;
  font-weight: 600 !important;
}

/* 5-10. 모바일 헤더 토글 버튼 담백한 통일 */
.mobile-toggle-btn,
.mobile-quickstart-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}

.mobile-toggle-btn:hover,
.mobile-toggle-btn.active,
.mobile-quickstart-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* 5-11. 전체 UI/UX 타원 배지·불필요 색상 전면 정제 (담백한 단색 실무 톤) */
/* A. 헤더 활성 탭, 브랜드 라벨, 스위치·우측 레이어 컨트롤 정제 */
.app-header .nav-tab.active {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.app-header .brand-badge {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  padding: 0 0 0 6px !important;
  font-weight: 500 !important;
}

.app-header .progress-status-btn,
.app-header .user-auth-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
  border-radius: 6px !important;
}

.switch input:checked+.slider {
  background-color: #0f2942 !important;
}

.basemap-btn.active,
.coord-format-btn.active {
  background: #f8fafc !important;
  border-color: #0f2942 !important;
  color: #0f2942 !important;
  font-weight: 700 !important;
}

/* B. 타원·색깔 배지 전면 해제 (단순 텍스트 라벨 또는 무채색 직각 태그로 통일) */
.mode-badge,
.ong-navi-badge,
.opt-sim-live-badge,
.yuseon-badge-sky,
.yuseon-badge-emerald,
.svs-badge {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  box-shadow: none !important;
}

.active-filter-badge,
.badge-count,
.badge-lps,
.badge-sps,
.badge-anchovy,
.badge-squid,
.badge-longline,
.badge-gillnet,
.badge-trap,
.psh-badge,
.progress-badge,
.fcd-badge,
.fcd-badge.badge-today,
.fcd-badge.badge-future,
.fcd-badge.badge-past,
.safety-badge,
.safety-badge.green,
.safety-badge.yellow,
.safety-badge.red,
.mfw-badge,
.mfw-badge.green,
.yuseon-catch-cooler-badge,
.yuseon-catch-cooler-badge.warning,
.sms-status-pill,
.sms-status-pill.ready,
.sms-status-pill.sending,
.sms-status-pill.sent,
.sms-type-badge,
.plt-channel-tag,
.plt-channel-tag.sms,
.plt-channel-tag.platform,
.opt-timeline-tag,
.opt-hsi-badge,
.opt-theme-badge,
.opt-rank-theme-tag,
.opt-price-pill,
.rc-badge {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.rc-badge {
  background: #ffffff !important;
  color: #0f172a !important;
}

.badge-count.has-active,
.badge-count.is-zero {
  background: transparent !important;
  border: none !important;
  color: #475569 !important;
  padding: 0 2px !important;
}

/* C. 4대 탭 사이드바·하단 바 불필요 색상 제거 (단일 네이비 #0F2942 + 슬레이트 체계) */
.fleet-chip,
.fleet-chip.sps,
.fleet-chip.inactive-chip,
.fleet-chip.resting-chip,
.month-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

.fleet-chip:hover,
.month-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.fleet-chip.active,
.fleet-chip.active.sps,
.fleet-chip.resting-chip.active,
.fleet-chip.resting-chip.active.sps,
.month-btn.active {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-primary,
#applyHistYearsBtn,
.btn-yuseon-layer.active,
.timeline-play-btn {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-primary:hover,
#applyHistYearsBtn:hover,
.btn-yuseon-layer.active:hover {
  background: #173b5e !important;
}

.btn-yuseon-layer,
.date-card-arrow-btn,
#btnBackToTodayForecast,
.btn-view-route {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: none !important;
  border-radius: 6px !important;
}

.btn-view-route:hover,
.date-card-arrow-btn:hover,
#btnBackToTodayForecast:hover {
  background: #f8fafc !important;
  border-color: #0f2942 !important;
  color: #0f172a !important;
}

.selection-card.active {
  border-color: #0f2942 !important;
  background: #f8fafc !important;
}

.card-check-icon {
  color: #0f2942 !important;
}

.hist-summary-bar,
.forecast-timeline-bar,
.timeline-bar {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}

.hist-stat-item.highlight strong {
  color: #0f172a !important;
}

.speed-btn.active {
  background: #0f2942 !important;
  color: #ffffff !important;
  border-color: #0f2942 !important;
}

.floating-live-pill {
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

.floating-live-pill .dot-live {
  background: #475569 !important;
  box-shadow: none !important;
  animation: none !important;
}

/* D. 출어계획 카드·유어선·모달 내 과잉 강조 색상 중립화 */
body #sidebarOptimalGrounds .safety-badge.green,
body #sidebarOptimalGrounds .safety-badge {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  border-radius: 4px !important;
}

body #sidebarOptimalGrounds .ocp-verify-strip span[style*="color:#0284c7"] {
  color: #0f2942 !important;
}

.opt-metric-box .val-profit,
.opt-card-footer strong,
.ocmc-table .text-primary,
.ocmc-table .text-danger,
.quick-result-ticket .qrt-val.profit,
body #optimalSummaryBar .opt-sum-metric.highlight .val,
body #optimalSummaryBar .opt-sum-metric.highlight .val-profit {
  color: #0f172a !important;
}

.opt-pin-ground-hsi,
.opt-pin-ground-footer strong {
  color: #0f172a !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
}

.opt-pin-ground-footer strong {
  background: transparent !important;
  border: none !important;
}

body #yuseonSummaryBar .yuseon-val-west,
body #yuseonSummaryBar .yuseon-val-south,
body #yuseonSummaryBar .yuseon-val-jeju,
body #yuseonSummaryBar .yuseon-val-east,
body #yuseonSummaryBar .yuseon-val-emerald,
.yuseon-val-sky,
.yuseon-val-amber,
.yuseon-val-purple,
.yuseon-sub-emerald,
.yuseon-sub-amber,
.yuseon-sub-purple {
  color: #0f172a !important;
}

.yuseon-sub-emerald,
.yuseon-sub-amber,
.yuseon-sub-purple {
  color: #64748b !important;
}

.yuseon-species-bar-fill {
  background: #334155 !important;
}

#yuseonSummaryBar .opt-sum-metric {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
}

/* E. 모달 내부 강조 색상 정제 (SMS 검증 칩, 파일럿 대장, 관리자 상태, 시스템 상태) */
.pvc-chip.active.hit,
.pvc-chip.active.mid,
.pvc-chip.active.miss {
  background: #f1f5f9 !important;
  border-color: #0f2942 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.pvc-chip {
  border-radius: 5px !important;
}

#pvcCatchRate {
  color: #0f172a !important;
}

.pilot-ledger-table td strong[style*="color:#047857"],
#pssAvgDev {
  color: #0f172a !important;
}

.admin-security-badge,
.admin-status-badge {
  color: #334155 !important;
  background: transparent !important;
  border: none !important;
}

.plan-sheet-header h3 {
  color: #0f172a !important;
}

/* 5-12. body.light-theme 특이성 덮어쓰기 (전 탭 칩·탭·슬라이더·우측 레이어 완전 무채/네이비 정제) */
body.light-theme .nav-tab.active,
body .app-header .nav-tab.active {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.light-theme .fleet-chip,
body.light-theme .fleet-chip.sps,
body.light-theme .fleet-chip.inactive-chip,
body.light-theme .fleet-chip.resting-chip,
body.light-theme .month-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

body.light-theme .fleet-chip:hover,
body.light-theme .month-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

body.light-theme .fleet-chip.active,
body.light-theme .fleet-chip.active.sps,
body.light-theme .fleet-chip.resting-chip.active,
body.light-theme .fleet-chip.resting-chip.active.sps,
body.light-theme .month-btn.active {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.light-theme .tree-subnode,
body .tree-subnode {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .quick-link,
body .quick-link {
  color: #475569 !important;
}

body.light-theme .quick-link:hover,
body .quick-link:hover {
  color: #0f2942 !important;
}

body.light-theme .selection-card.active {
  background: #f8fafc !important;
  border-color: #0f2942 !important;
}

body.light-theme .btn-yuseon-layer,
body .btn-yuseon-layer {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

body.light-theme .btn-yuseon-layer.active,
body .btn-yuseon-layer.active {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.light-theme .basemap-pill,
body.light-theme .radio-label-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

body.light-theme .basemap-pill.active,
body.light-theme .radio-label-pill.active,
body .basemap-pill.active,
body .radio-label-pill.active {
  background: #f8fafc !important;
  border: 1.5px solid #0f2942 !important;
  color: #0f2942 !important;
  font-weight: 700 !important;
}

body.light-theme .forecast-timeline-bar .fc-nav-arrow-btn,
body .forecast-timeline-bar .fc-nav-arrow-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.light-theme .forecast-timeline-bar .fc-nav-arrow-btn:hover:not(:disabled),
body .forecast-timeline-bar .fc-nav-arrow-btn:hover:not(:disabled) {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
}

body.light-theme .fc-today-jump-btn,
body .fc-today-jump-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.light-theme .fc-today-jump-btn:hover,
body .fc-today-jump-btn:hover {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
}

body.light-theme .fc-range-slider::-webkit-slider-thumb,
body .fc-range-slider::-webkit-slider-thumb {
  background: #0f2942 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25) !important;
}

#timelineBar .play-btn,
body.light-theme #timelineBar .play-btn {
  background: #0f2942 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#timelineBar .spd-btn,
body.light-theme #timelineBar .spd-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

#timelineBar .spd-btn.active,
body.light-theme #timelineBar .spd-btn.active {
  background: #0f2942 !important;
  border-color: #0f2942 !important;
  color: #ffffff !important;
}

#timelineBar .current-time-badge,
body.light-theme #timelineBar .current-time-badge {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

#timelineBar .time-slider {
  accent-color: #0f2942 !important;
}

body #optimalSummaryBar .opt-sum-badge-pill,
body #yuseonSummaryBar .yuseon-sum-pill {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #475569 !important;
  font-weight: 700 !important;
}

body #optimalSummaryBar .opt-sum-metric.highlight,
body #yuseonSummaryBar .yuseon-sum-highlight {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 1px solid #cbd5e1 !important;
}

body #topNavTabs .nav-tab.active,
body.light-theme #topNavTabs .nav-tab.active {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body #applyHistYearBtn,
body.light-theme #applyHistYearBtn {
  background: #0f2942 !important;
  box-shadow: none !important;
}

body #applyHistYearBtn:hover,
body.light-theme #applyHistYearBtn:hover {
  background: #173b5e !important;
}

body.light-theme .hist-stat-item.highlight strong,
body #histSummaryBar .hist-stat-item.highlight strong {
  color: #0f172a !important;
}

body.light-theme .fleet-chips-container,
body .fleet-chips-container {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .yuseon-badge-emerald,
body.light-theme .yuseon-badge-sky,
body #sidebarYuseonTracking .yuseon-badge-emerald,
body #sidebarYuseonTracking .yuseon-badge-sky {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #64748b !important;
}

body.light-theme .yuseon-val-sky,
body.light-theme .yuseon-val-amber,
body.light-theme .yuseon-val-purple,
body.light-theme .yuseon-val-emerald,
body.light-theme .yuseon-val-west,
body.light-theme .yuseon-val-south,
body.light-theme .yuseon-val-jeju,
body.light-theme .yuseon-val-east {
  color: #0f172a !important;
}

body.light-theme .yuseon-sub-emerald,
body.light-theme .yuseon-sub-amber,
body.light-theme .yuseon-sub-purple {
  color: #64748b !important;
}

/* 5-13. 로그인 화면 단일 헤더 (.auth-login-title) 정돈 */
.auth-login-title {
  margin: 4px 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* 5-14. 유어선 확장 UI (3대 플랫폼 요약, 월별 추이, 피드 필터, 시도 현황 - 화이트 정돈) */
.yuseon-platform-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.yuseon-plat-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

.yuseon-plat-cell .plat-name {
  display: block;
  font-size: 0.69rem;
  color: #64748b;
  font-weight: 600;
}

.yuseon-plat-cell .plat-cnt {
  display: block;
  font-size: 0.78rem;
  color: #0f172a;
  font-weight: 700;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.yuseon-monthly-box {
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
}

.yuseon-monthly-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.yuseon-feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.yuseon-feed-filter-btn {
  padding: 3px 8px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
}

.yuseon-feed-filter-btn:hover {
  border-color: #0f2942;
  color: #0f2942;
}

.yuseon-feed-filter-btn.active {
  background: #0f2942;
  color: #ffffff;
  border-color: #0f2942;
}

.yuseon-region-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yuseon-region-row {
  display: grid;
  grid-template-columns: 44px 1fr 68px 54px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #334155;
}

.yuseon-region-row strong {
  color: #0f172a;
}

.yuseon-region-row .reg-ports {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yuseon-region-row .reg-num {
  text-align: right;
  font-weight: 700;
  color: #0f2942;
  font-variant-numeric: tabular-nums;
}

.yuseon-catch-plat {
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 600;
  margin-left: 4px;
}

.yuseon-ais-tag {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #0f2942;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 0 4px;
}

/* 5-15. dev 배지 제거 · 데스크톱 좌/우 메뉴 접기·펼치기 & 모바일 메뉴바·드로어 완전 복원 */
.header-version-wrap {
  display: none !important;
}

.desktop-sidebar-toggle {
  position: absolute;
  top: 14px;
  z-index: 950;
  width: 26px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: #0f2942;
  border: 1px solid #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition: background 0.15s ease, color 0.15s ease;
}

.desktop-sidebar-toggle:hover {
  background: #0f2942;
  color: #ffffff;
  border-color: #0f2942;
}

.desktop-sidebar-toggle.desktop-left {
  left: 0;
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.desktop-sidebar-toggle.desktop-right {
  right: 0;
  border-right: none;
  border-radius: 6px 0 0 6px;
}

.sidebar.desktop-collapsed,
.sidebar-right.desktop-collapsed {
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

.mobile-drawer-quickbar {
  display: none;
}

@media (max-width: 1120px) {
  .desktop-sidebar-toggle {
    display: none !important;
  }

  .mobile-drawer-quickbar {
    display: flex !important;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  .mdq-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
  }

  .mdq-btn.mdq-logout {
    color: #475569;
  }

  .sidebar {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    width: 86% !important;
    max-width: 340px !important;
    min-width: 270px !important;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.55) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .sidebar.drawer-open {
    transform: translateX(0) !important;
  }

  .sidebar-right {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    transform: translateX(100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .sidebar-right.drawer-open {
    transform: translateX(0) !important;
  }
}

body #topNavTabs,
body.light-theme #topNavTabs {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body #topNavTabs .nav-tab,
body.light-theme #topNavTabs .nav-tab {
  color: #CBD5E1 !important;
}

body #topNavTabs .nav-tab.active,
body.light-theme #topNavTabs .nav-tab.active {
  background: #0284C7 !important;
  border: 1px solid #38BDF8 !important;
  color: #FFFFFF !important;
}

@media (max-width: 860px) {
  .app-header {
    height: auto !important;
    min-height: 92px !important;
    background: #0F172A !important;
    padding: 6px 10px 6px 10px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  body #topNavTabs,
  body.light-theme #topNavTabs {
    order: 3 !important;
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex: 1 1 100% !important;
    background: #0F172A !important;
    border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 0 !important;
    padding: 6px 0 2px 0 !important;
    gap: 4px !important;
    overflow-x: auto !important;
  }

  body #topNavTabs .nav-tab,
  body.light-theme #topNavTabs .nav-tab {
    color: #CBD5E1 !important;
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
  }

  body #topNavTabs .nav-tab.active,
  body.light-theme #topNavTabs .nav-tab.active {
    background: #0284C7 !important;
    border-color: #38BDF8 !important;
    color: #FFFFFF !important;
  }

  .main-container {
    height: calc(100vh - 94px) !important;
    height: calc(100dvh - 94px) !important;
  }

  .mobile-toggle-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.32) !important;
    color: #F1F5F9 !important;
    font-size: 0.74rem !important;
    padding: 5px 9px !important;
  }

  .mobile-toggle-btn.active {
    background: #0284C7 !important;
    border-color: #38BDF8 !important;
    color: #FFFFFF !important;
  }
}