:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #101622;
  --bg-panel: rgba(18, 24, 38, 0.88);
  --bg-card: rgba(28, 36, 56, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: #00e5ff;
  
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
  --text-dim: #5c6a82;

  --accent-cyan: #00e5ff;
  --accent-blue: #2979ff;
  --accent-green: #00e676;
  --accent-amber: #ffb300;
  --accent-purple: #b388ff;
  --accent-rose: #ff2969;
  
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Top Nav Header */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.drone-pulse-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 50%;
  color: var(--accent-cyan);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: pulseAnimation 2s infinite;
  opacity: 0;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.brand-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-pro {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #00e5ff, #2979ff);
  color: #000;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-nav-accent {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(41, 121, 255, 0.2));
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  transition: all 0.2s;
}

.btn-nav-accent:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* User Auth Bar */
.user-auth-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-guest, .auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost-sm {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-ghost-sm:hover {
  border-color: var(--text-muted);
}

.btn-primary-sm {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.user-info-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.user-role-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-green);
  color: #000;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.btn-ghost-icon {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-ghost-icon:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Main Workspace */
.main-workspace {
  display: grid;
  grid-template-columns: 380px 1fr 360px;
  height: calc(100vh - 58px);
  overflow: hidden;
}

.sidebar-panel, .export-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.export-panel {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.panel-section {
  background: rgba(16, 22, 34, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.section-title {
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent-cyan);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
}

.section-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Form Controls */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.select-wrapper select, input[type="text"], input[type="password"], input[type="number"], textarea {
  width: 100%;
  background: #0d121c;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.select-wrapper select:focus, input:focus, textarea:focus {
  border-color: var(--accent-cyan);
}

.search-input-group {
  display: flex;
  gap: 6px;
}

.btn-search {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Coords Box */
.coords-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.coord-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.coord-tag {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-tag { color: var(--accent-green); }
.poi-tag { color: var(--accent-rose); }

.distance-row {
  border-top: 1px dashed var(--border-color);
  padding-top: 5px;
  color: var(--text-dim);
}

.mono { font-family: var(--font-mono); }
.highlight { color: var(--accent-cyan); }

/* Shot Library */
.shot-library {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shot-card:hover {
  background: rgba(38, 48, 76, 0.8);
  border-color: rgba(0, 229, 255, 0.4);
}

.shot-card.active {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.shot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.shot-type {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.badge-lens {
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-muted);
}

.badge-lens.tele {
  background: rgba(255, 179, 0, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 179, 0, 0.4);
}

.shot-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.shot-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 6px;
}

.shot-config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 6px;
  border-radius: 4px;
}

.mini-input {
  width: 44px !important;
  padding: 2px 4px !important;
  font-size: 0.72rem !important;
  text-align: center;
  background: #000 !important;
  display: inline-block;
}

.btn-mini-accent {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Safety Box */
.safety-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.74rem;
}

.safety-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-highlight {
  color: var(--accent-green);
  font-weight: 600;
}

.mini-select {
  background: #0d121c;
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 4px 6px;
  font-size: 0.72rem;
  border-radius: 4px;
}

/* Center Map Container */
.map-container-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flight-map {
  flex: 1;
  width: 100%;
  background: #111;
  z-index: 1;
}

.map-hud-overlay {
  position: absolute;
  z-index: 10;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.map-hud-overlay.top-left {
  top: 14px;
  left: 14px;
}

.map-hud-overlay.top-right {
  top: 14px;
  right: 14px;
  pointer-events: auto;
}

.hud-item {
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
}

.hud-title {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hud-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.map-mode-toggle {
  display: flex;
  background: rgba(10, 13, 20, 0.88);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 6px 10px;
  cursor: pointer;
}

.btn-toggle.active {
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
}

.btn-hud-action {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 13, 20, 0.88);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-hud-action.green {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn-hud-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Floating Waypoint Inspector */
.wp-floating-inspector {
  position: absolute;
  top: 70px;
  right: 16px;
  width: 320px;
  background: rgba(16, 22, 34, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 20;
  padding: 14px;
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.inspector-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.btn-mini-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.inspector-grid .field label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.inspector-grid .field input, .inspector-grid .field select {
  font-size: 0.75rem;
  padding: 5px;
}

.inspector-tips {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.35;
  margin-bottom: 10px;
}

.btn-inspector-save {
  width: 100%;
  background: var(--accent-cyan);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 7px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
}

/* Bottom Timeline Bar */
.timeline-bar {
  height: 85px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 6px 14px;
  gap: 4px;
}

.timeline-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.timeline-tag {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.timeline-hint {
  color: var(--text-dim);
  font-size: 0.68rem;
  margin-left: auto;
}

.waypoint-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wp-chip {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  cursor: pointer;
  min-width: 90px;
}

.wp-chip:hover, .wp-chip.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
}

.wp-chip-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.wp-chip-desc {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Mission Summary Card */
.mission-summary-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.summary-line span:last-child {
  color: var(--text-main);
  font-weight: 500;
}

/* Buttons */
.btn-primary-large {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00e5ff, #0091ea);
  color: #000;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
  transition: all 0.2s;
}

.btn-primary-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.45);
}

.btn-subtext {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
}

/* Guide Section */
.guide-section {
  flex: 1;
}

.guide-title {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.guide-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.guide-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px;
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.guide-tab-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.guide-steps {
  padding-left: 16px;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.4;
}

.code-box {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  margin: 3px 0;
  word-break: break-all;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 92vw;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  overflow: hidden;
}

.modal-sm { width: 400px; }
.modal-lg { width: 680px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-body {
  padding: 16px 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
}

.modal-callout {
  background: rgba(0, 229, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 8px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-main);
  font-size: 0.78rem;
  line-height: 1.4;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.auth-error-msg {
  color: #ff5252;
  font-size: 0.75rem;
  background: rgba(255, 82, 82, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 8px;
}

.auth-switch-text a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.prompt-textarea {
  resize: vertical;
}

.prompt-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  cursor: pointer;
}

.ex-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.ai-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-size: 0.78rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Plans List Container */
.plans-list-container, .inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-item-card, .inquiry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-item-card:hover, .inquiry-card:hover {
  border-color: var(--accent-cyan);
}

.plan-item-info h4, .inquiry-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.plan-item-info p, .inquiry-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.plan-item-actions {
  display: flex;
  gap: 6px;
}

.inquiry-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.inquiry-header-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.inquiry-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-waiting { background: rgba(255, 179, 0, 0.2); color: var(--accent-amber); }
.badge-answered { background: rgba(0, 230, 118, 0.2); color: var(--accent-green); }

.inquiry-answer-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-left: 2px solid var(--accent-green);
  padding: 8px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.74rem;
  color: var(--text-main);
}

.admin-answer-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.plans-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.hidden {
  display: none !important;
}

/* Markers */
.home-marker-icon {
  background: rgba(0, 230, 118, 0.25);
  border: 2px solid #00e676;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px #00e676;
}

.home-center-dot {
  width: 10px;
  height: 10px;
  background: #00e676;
  border-radius: 50%;
}

.poi-marker-icon {
  background: rgba(255, 41, 105, 0.25);
  border: 2px solid #ff2969;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px #ff2969;
}

.poi-center-dot {
  width: 9px;
  height: 9px;
  background: #ff2969;
  border-radius: 50%;
}

.wp-marker-icon {
  background: #00e5ff;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
  cursor: grab;
}

.wp-marker-icon:active {
  cursor: grabbing;
}

/* Auth Gate Screen (비로그인 전체화면) */
.auth-gate-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, #151d2f 0%, #080b11 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(20px);
}

.auth-gate-card {
  width: 420px;
  max-width: 90vw;
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 229, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-gate-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drone-pulse-icon.large {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
}

.auth-gate-brand h2 {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.auth-gate-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-gate-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-gate-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.auth-gate-divider::before, .auth-gate-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-gate-divider span {
  padding: 0 10px;
}

.btn-ghost-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost-large:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
}

.modal-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.modal-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.modal-footer-inside {
  margin-top: 14px;
}

/* Prompt Logs List */
.prompt-logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.prompt-log-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-log-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}

.prompt-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.prompt-log-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.8rem;
}

.prompt-log-date {
  color: var(--text-dim);
}

.prompt-log-body {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: pre-wrap;
}

.btn-restore-prompt {
  align-self: flex-end;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* Loaded Plan Prompt Box (Sidebar) */
.loaded-plan-prompt-box {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 12px;
}

.prompt-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.prompt-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.prompt-box-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  max-height: 60px;
  overflow-y: auto;
}

/* AI Plan Target Alert (Inside Modal) */
.ai-target-alert {
  background: rgba(255, 171, 0, 0.12);
  border: 1px solid rgba(255, 171, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.target-alert-icon {
  font-size: 1.3rem;
}

.target-alert-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.target-alert-text strong {
  font-size: 0.8rem;
  color: #ffb300;
}

.target-alert-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.plan-prompt-quote {
  font-size: 0.72rem;
  color: #81d4fa;
  background: rgba(0, 229, 255, 0.06);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 6px;
  border-left: 2px solid var(--accent-cyan);
  white-space: pre-wrap;
  word-break: break-all;
}

