.watch-desk {
  position: fixed;
  top: var(--total-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: var(--color-bg-primary, #0a0a10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wd-ep-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.wd-ep-sidebar {
  width: 340px;
  min-width: 340px;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 14, 20, 0.99) 0%, rgba(12, 12, 18, 0.98) 100%);
  border-right: 1px solid rgba(90, 90, 100, 0.15);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.7), 1px 0 0 rgba(130, 21, 44, 0.05);
}

.wd-ep-sidebar-header {
  padding: 16px 14px 10px;
  border-bottom: 1px solid rgba(65, 65, 75, 0.25);
  flex-shrink: 0;
}

.wd-ep-sidebar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-brand-red, #82152c);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wd-ep-sidebar-sub {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-text-faint, #6b7280);
  margin-top: 2px;
}

.wd-ep-focus-select-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(65, 65, 75, 0.15);
  flex-shrink: 0;
}

.wd-ep-focus-dropdown {
  flex: 1;
  background: rgba(24, 24, 32, 0.7);
  border: 1px solid rgba(65, 65, 75, 0.3);
  border-radius: 6px;
  color: var(--color-text-secondary, #d1d5db);
  padding: 5px 8px;
  font-size: 0.75rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.wd-ep-focus-dropdown:focus {
  border-color: rgba(130, 21, 44, 0.5);
}

.wd-ep-focus-add {
  background: rgba(130, 21, 44, 0.2);
  border: 1px solid rgba(130, 21, 44, 0.4);
  border-radius: 6px;
  color: var(--color-text-accent, #e8c4c4);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.wd-ep-focus-add:hover {
  background: rgba(130, 21, 44, 0.4);
}

.wd-ep-stats-strip {
  display: flex;
  gap: 2px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(65, 65, 75, 0.15);
  flex-shrink: 0;
}

.wd-ep-stat {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: 1px solid rgba(65, 65, 75, 0.12);
}

.wd-ep-stat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-heading, #f3f4f6);
  font-family: 'Courier New', monospace;
}

.wd-ep-stat-lbl {
  display: block;
  font-size: 0.6rem;
  color: var(--color-text-faint, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.wd-ep-sidebar-tabs {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(65, 65, 75, 0.2);
}

.wd-ep-stab {
  flex: 1;
  padding: 8px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-text-faint, #6b7280);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.wd-ep-stab:hover {
  color: var(--color-text-secondary, #d1d5db);
  background: rgba(130, 21, 44, 0.05);
}
.wd-ep-stab.active {
  color: var(--color-brand-red, #82152c);
  border-bottom-color: var(--color-brand-red, #82152c);
}

.wd-ep-sidebar-body {
  flex: 1;
  overflow: hidden;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#wd-ep-focus-list {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.wd-ep-tab-content {
  display: none;
  padding: 10px 14px;
}
.wd-ep-tab-content.active {
  display: block;
}

.wd-ep-section-actions {
  margin-bottom: 8px;
}

.wd-ep-add-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  background: rgba(130, 21, 44, 0.15);
  border: 1px solid rgba(130, 21, 44, 0.35);
  border-radius: 6px;
  color: var(--color-text-accent, #e8c4c4);
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.wd-ep-add-btn:hover {
  background: rgba(130, 21, 44, 0.3);
}

.wd-ep-subsection-label {
  display: flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-faint, rgba(161, 161, 170, 0.7));
  padding: 4px 2px 2px;
}

.wd-ep-collapsible-header {
  cursor: pointer;
  user-select: none;
  gap: 5px;
  padding: 6px 2px;
  border-radius: 4px;
  transition: background 0.15s;
}
.wd-ep-collapsible-header:hover {
  background: rgba(130, 21, 44, 0.05);
}

.wd-ep-collapse-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.wd-ep-collapsible-header.collapsed .wd-ep-collapse-chevron {
  transform: rotate(-90deg);
}

.wd-ep-collapsible-section {
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.wd-ep-collapsible-section.collapsed {
  max-height: 0 !important;
  overflow: hidden;
}

.wd-ep-incident-count {
  font-size: 0.5625rem;
  background: rgba(130, 21, 44, 0.2);
  color: var(--color-text-accent, #e8c4c4);
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

.wd-ep-incident-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.wd-ep-incident-feed-wrap-flex {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wd-ep-incident-card {
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  background: rgba(0, 0, 0, 0.15);
}
.wd-ep-incident-card:hover {
  background: rgba(130, 21, 44, 0.06);
}
.wd-ep-incident-card.impact-critical { border-left-color: #ef4444; }
.wd-ep-incident-card.impact-high { border-left-color: #f97316; }
.wd-ep-incident-card.impact-medium { border-left-color: #eab308; }
.wd-ep-incident-card.impact-low { border-left-color: #22c55e; }

.wd-ep-incident-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-heading, #f3f4f6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.wd-ep-incident-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.625rem;
  color: var(--color-text-faint, #6b7280);
}

.wd-ep-incident-impact {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 1px 4px;
  border-radius: 3px;
}
.wd-ep-incident-impact.impact-critical { background: rgba(239,68,68,0.15); color: #ef4444; }
.wd-ep-incident-impact.impact-high { background: rgba(249,115,22,0.15); color: #f97316; }
.wd-ep-incident-impact.impact-medium { background: rgba(234,179,8,0.15); color: #eab308; }
.wd-ep-incident-impact.impact-low { background: rgba(34,197,94,0.15); color: #22c55e; }

.wd-ep-item-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-ep-item-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(65, 65, 75, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.wd-ep-item-card:hover {
  border-color: rgba(130, 21, 44, 0.35);
  background: rgba(130, 21, 44, 0.05);
}
.wd-ep-item-card.active {
  border-color: rgba(130, 21, 44, 0.5);
  background: rgba(130, 21, 44, 0.1);
}

.wd-ep-focus-card {
  background: rgba(24, 24, 32, 0.9);
  border: 1px solid rgba(65, 65, 75, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.2s;
  cursor: pointer;
  border-left: 3px solid rgba(130, 21, 44, 0.5);
}
.wd-ep-focus-card:hover {
  border-color: rgba(130, 21, 44, 0.6);
  border-left-color: var(--color-brand-red, #82152c);
  background: rgba(30, 30, 42, 0.95);
}
.wd-ep-focus-card.active {
  border-color: rgba(130, 21, 44, 0.8);
  border-left-color: var(--color-brand-red, #82152c);
  background: rgba(20, 20, 28, 0.95);
  box-shadow: 0 0 8px rgba(130, 21, 44, 0.3);
}

.wd-ep-focus-card .fpc-header { padding: 0; background: none; border: none; }
.wd-ep-focus-card .fpc-name { font-size: 0.8125rem; }
.wd-ep-focus-card .fpc-scope { margin-bottom: 2px; }
.wd-ep-focus-card .fpc-tags { margin-top: 4px; }

.wd-ep-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.wd-ep-card-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
}

.wd-ep-card-name {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--color-text-heading, #f3f4f6);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-ep-card-badge {
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.wd-ep-card-badge.threat-critical { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.wd-ep-card-badge.threat-high { background: rgba(249,115,22,0.2); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.wd-ep-card-badge.threat-medium { background: rgba(234,179,8,0.2); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.wd-ep-card-badge.threat-low { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }

.wd-ep-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  color: var(--color-text-faint, #6b7280);
}

.wd-ep-card-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.wd-ep-card-action {
  background: none;
  border: none;
  color: var(--color-text-faint, #6b7280);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.2s;
}
.wd-ep-card-action:hover {
  color: var(--color-brand-red, #82152c);
}

.wd-ep-bolo-unread {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

.wd-ep-bolo-count-badge {
  font-size: 0.55rem;
  background: rgba(239,68,68,0.2);
  color: #ef4444;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 700;
}

.wd-ep-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
  color: var(--color-text-faint, #6b7280);
  gap: 6px;
}
.wd-ep-empty p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-dim, #9ca3af);
}
.wd-ep-empty span {
  font-size: 0.6875rem;
}

.wd-ep-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.wd-ep-main-top {
  display: flex;
  height: 240px;
  min-height: 200px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(65, 65, 75, 0.2);
}

.wd-ep-minimap-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.wd-ep-minimap {
  width: 100%;
  height: 100%;
  background: #111118;
}


.wd-ep-right-sidebar {
  width: 320px;
  min-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 14, 20, 0.99) 0%, rgba(12, 12, 18, 0.98) 100%);
  border-left: 1px solid rgba(90, 90, 100, 0.15);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.7), -1px 0 0 rgba(130, 21, 44, 0.05);
}

.wd-ep-right-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.wd-ep-feed-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wd-ep-feed-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(65, 65, 75, 0.2);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.wd-ep-feed-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-secondary, #d1d5db);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wd-ep-feed-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.wd-ep-filter-select {
  background: rgba(24, 24, 32, 0.7);
  border: 1px solid rgba(65, 65, 75, 0.3);
  border-radius: 6px;
  color: var(--color-text-secondary, #d1d5db);
  padding: 4px 6px;
  font-size: 0.6875rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.wd-ep-filter-select:focus {
  border-color: rgba(130, 21, 44, 0.5);
}

.wd-ep-scan-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  background: rgba(130, 21, 44, 0.2);
  border: 1px solid rgba(130, 21, 44, 0.4);
  border-radius: 6px;
  color: var(--color-text-accent, #e8c4c4);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.wd-ep-scan-btn:hover {
  background: rgba(130, 21, 44, 0.4);
}
.wd-ep-scan-btn.scanning {
  opacity: 0.6;
  pointer-events: none;
}
.wd-ep-scan-btn.scanning svg {
  animation: ep-spin 1s linear infinite;
}
@keyframes ep-spin {
  to { transform: rotate(360deg); }
}

.wd-ep-threat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.wd-ep-threat-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(65, 65, 75, 0.15);
  border-radius: 8px;
  transition: all 0.2s;
}
.wd-ep-threat-item:hover {
  border-color: rgba(65, 65, 75, 0.3);
  background: rgba(0, 0, 0, 0.4);
}
.wd-ep-threat-item.bolo-hit {
  border-left: 3px solid #ef4444;
}
.wd-ep-threat-item.high-threat {
  border-left: 3px solid #f97316;
}

.wd-ep-threat-score {
  width: 40px;
  min-width: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wd-ep-score-num {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  line-height: 1;
}
.wd-ep-score-num.score-critical { color: #ef4444; }
.wd-ep-score-num.score-high { color: #f97316; }
.wd-ep-score-num.score-medium { color: #eab308; }
.wd-ep-score-num.score-low { color: #22c55e; }

.wd-ep-score-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-text-faint, #6b7280);
}

.wd-ep-threat-body {
  flex: 1;
  min-width: 0;
}

.wd-ep-threat-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.wd-ep-threat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background: rgba(130, 21, 44, 0.4);
  border: 2px solid rgba(130, 21, 44, 0.6);
  overflow: hidden;
}
.wd-ep-threat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd-ep-threat-avatar.platform-twitter { border-color: #1DA1F2; }
.wd-ep-threat-avatar.platform-reddit { border-color: #FF4500; }
.wd-ep-threat-avatar.platform-bluesky { border-color: #0085FF; }
.wd-ep-threat-avatar.platform-facebook { border-color: #1877F2; }
.wd-ep-threat-avatar.platform-telegram { border-color: #26A5E4; }
.wd-ep-threat-avatar.platform-tiktok { border-color: #ff0050; }
.wd-ep-threat-avatar.platform-youtube { border-color: #FF0000; }
.wd-ep-threat-avatar.platform-instagram { border-color: #E1306C; }

.wd-ep-threat-author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.wd-ep-threat-author-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.wd-ep-threat-platform-icon {
  font-size: 0.75rem;
}

.wd-ep-threat-author-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-heading, #f3f4f6);
}

.wd-ep-threat-author-handle {
  font-size: 0.6875rem;
  color: var(--color-text-faint, #6b7280);
}

.wd-ep-threat-platform-badge {
  font-size: 0.5rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(65, 65, 75, 0.3);
  color: var(--color-text-faint, #6b7280);
}

.wd-ep-threat-verified {
  color: #1DA1F2;
  font-size: 0.625rem;
}

.wd-ep-threat-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  color: var(--color-text-faint, #6b7280);
  margin-top: 1px;
}

.wd-ep-threat-text {
  font-size: 0.8125rem;
  color: var(--color-text-secondary, #d1d5db);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wd-ep-threat-reasoning {
  font-size: 0.6875rem;
  color: var(--color-text-faint, #6b7280);
  font-style: italic;
  margin-bottom: 4px;
}

.wd-ep-threat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  color: var(--color-text-faint, #6b7280);
}

.wd-ep-threat-tag {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}
.wd-ep-threat-tag.bolo { background: rgba(239,68,68,0.15); color: #ef4444; }
.wd-ep-threat-tag.asset { background: rgba(168,85,247,0.15); color: #a855f7; }

.wd-ep-threat-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.wd-ep-threat-action-btn {
  background: rgba(65, 65, 75, 0.2);
  border: 1px solid rgba(65, 65, 75, 0.2);
  border-radius: 4px;
  color: var(--color-text-faint, #6b7280);
  cursor: pointer;
  padding: 3px 6px;
  font-size: 0.625rem;
  font-family: inherit;
  transition: all 0.2s;
}
.wd-ep-threat-action-btn:hover {
  color: var(--color-text-secondary, #d1d5db);
  border-color: rgba(130, 21, 44, 0.3);
}
.wd-ep-threat-action-btn.flag-bolo {
  color: #ef4444;
}
.wd-ep-threat-action-btn.flag-bolo:hover {
  background: rgba(239,68,68,0.15);
}

.wd-ep-feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-faint, #6b7280);
}
.wd-ep-feed-empty p {
  margin: 0 0 4px;
  font-size: 0.875rem;
  color: var(--color-text-dim, #9ca3af);
}
.wd-ep-feed-empty span {
  font-size: 0.75rem;
}

.wd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-modal {
  background: rgba(18, 18, 26, 0.98);
  border: 1px solid rgba(65, 65, 75, 0.3);
  border-radius: 12px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.wd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(65, 65, 75, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-brand-red, #82152c);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wd-modal-close {
  background: none;
  border: none;
  color: var(--color-text-faint, #6b7280);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}
.wd-modal-close:hover {
  color: #fff;
}

.wd-modal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wd-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wd-field-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-secondary, #d1d5db);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wd-input {
  background: rgba(24, 24, 32, 0.8);
  border: 1px solid rgba(65, 65, 75, 0.3);
  border-radius: 6px;
  color: var(--color-text-secondary, #d1d5db);
  padding: 7px 10px;
  font-size: 0.8125rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.wd-input:focus {
  border-color: rgba(130, 21, 44, 0.5);
}
.wd-textarea {
  resize: vertical;
  min-height: 60px;
}

.wd-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid rgba(65, 65, 75, 0.2);
}

.wd-modal-cancel {
  padding: 6px 14px;
  font-size: 0.75rem;
  background: rgba(65, 65, 75, 0.2);
  border: 1px solid rgba(65, 65, 75, 0.3);
  border-radius: 6px;
  color: var(--color-text-secondary, #d1d5db);
  cursor: pointer;
  font-family: inherit;
}
.wd-modal-cancel:hover {
  background: rgba(65, 65, 75, 0.4);
}

.wd-modal-save {
  padding: 6px 14px;
  font-size: 0.75rem;
  background: rgba(130, 21, 44, 0.3);
  border: 1px solid rgba(130, 21, 44, 0.5);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s;
}
.wd-modal-save:hover {
  background: rgba(130, 21, 44, 0.5);
}

@media (max-width: 1200px) {
  .wd-ep-sidebar {
    width: 280px;
    min-width: 280px;
  }
  .wd-ep-right-sidebar {
    width: 260px;
    min-width: 260px;
  }
}

@media (max-width: 1024px) {
  .wd-ep-layout {
    flex-wrap: wrap;
  }
  .wd-ep-sidebar {
    width: 260px;
    min-width: 260px;
  }
  .wd-ep-main {
    flex: 1;
    min-width: 0;
  }
  .wd-ep-right-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 30vh;
    border-left: none;
    border-top: 1px solid rgba(65, 65, 75, 0.2);
    box-shadow: none;
  }
  .wd-ep-right-sidebar .wd-ep-stats-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .wd-ep-layout {
    flex-direction: column;
  }
  .wd-ep-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 35vh;
  }
  .wd-ep-right-sidebar {
    display: flex;
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 30vh;
    order: 3;
    border-left: none;
    border-top: 1px solid rgba(65, 65, 75, 0.2);
  }
  .wd-ep-main {
    order: 2;
  }
  .wd-ep-main-top {
    flex-direction: column;
    height: auto;
  }
  .wd-ep-minimap-wrap {
    height: 180px;
  }
}

.wd-ep-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  gap: 16px;
}
.wd-ep-empty-state svg {
  opacity: 0.3;
}
.wd-ep-empty-state h3 {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.wd-ep-empty-state p {
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 340px;
  margin: 0;
}
.wd-ep-empty-state .btn-gold {
  margin-top: 8px;
}
