/* ==========================================================================
   l2m-boss/public/boss-style.css
   Extension styles for L2M Raid Boss Tracker (Page #2 of L2M Map)
   Builds directly on top of /style.css design system
   ========================================================================== */

/* --- Unified line-icon system (#ic-* sprite, codicon-style) --- */
/* Icons inherit the color (currentColor) and are sized in em by default so they
   scale with the surrounding font. Explicit width/height attrs override. */
.l2m-ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
  flex-shrink: 0;
  overflow: visible;
  pointer-events: none;
}

/* --- Region Tabs in Sidebar --- */
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow-x: hidden;
  scrollbar-width: none;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 2px;
}
.region-tabs::-webkit-scrollbar {
  display: none;
}
.region-tabs .tab-btn {
  flex: 1 1 22%;
  text-align: center;
  padding: 5px 4px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}
.region-tabs .tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.region-tabs .tab-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.4);
  color: #ffd700;
}

/* --- Unified Smart Bar (Input Wrap Extension) --- */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
/* Keep placeholder text clear of the absolute 🕒 time chip + 📷 OCR button */
.search-input-wrap .search-input {
  padding-right: 132px;
  text-overflow: ellipsis;
}
.smart-bar-ocr-btn {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffd700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.smart-bar-ocr-btn:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
}
.smart-bar-ocr-btn.busy {
  opacity: 0.55;
  pointer-events: none;
  animation: ocr-btn-pulse 1.2s ease-in-out infinite;
}
.smart-bar-ocr-btn .l2m-ic {
  display: block;
}
@keyframes ocr-btn-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.smart-bar-actions {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}
.smart-bar-help-btn {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.smart-bar-help-btn:hover {
  border-color: rgba(212, 175, 55, 0.7);
  color: #ffd700;
}
.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.help-table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}
.help-table tr:last-child td {
  border-bottom: none;
}
.help-cmd {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: #ffd700;
  white-space: nowrap;
}
.help-role {
  white-space: nowrap;
  color: #94a3b8;
}
.smart-bar-now-chip {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffd700;
  border-radius: 4px;
  height: 22px;
  box-sizing: border-box;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  user-select: none;
}
.smart-bar-now-chip:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
}
.smart-bar-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 12px;
  right: 12px;
  background: #141923;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  z-index: 1100;
  max-height: 220px;
  overflow-y: auto;
}
.smart-bar-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  transition: background 0.1s ease;
}
.smart-bar-suggestion:last-child {
  border-bottom: none;
}
.smart-bar-suggestion:hover,
.smart-bar-suggestion.active {
  background: rgba(212, 175, 55, 0.15);
}
.sug-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sug-name {
  font-weight: 700;
  color: #f1f5f9;
}
.sug-meta {
  font-size: 11px;
  color: #94a3b8;
}
.sug-hint {
  font-size: 10px;
  color: #d4af37;
  font-weight: 600;
}
/* --- Single prioritized server-start badge inline in the clock row --- */
.hud-start-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  padding: 2px 6px;
  min-width: 32px;
  max-width: 90px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
  text-align: center;
  flex-shrink: 0;
}
.hud-start-badge:hover {
  border-color: rgba(212, 175, 55, 0.6);
}
.hud-start-badge.is-set {
  color: #ffd700;
}
.hud-start-badge .l2m-ic {
  stroke-width: 2.2;
}
#btnConfirmClearConfirm {
  background: linear-gradient(180deg, #dc2626, #991b1b);
  border-color: #ef4444;
  color: #fff;
}
#btnConfirmClearConfirm:hover {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border-color: #f87171;
}
.smart-bar-empty {
  padding: 8px 12px;
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

/* --- Telemetry Summary in List Header --- */
/* Boss-local override: shared .list-header is a plain block, so the active
   filter outline (painted outside the box) overlapped the label. Flex with
   a guaranteed gap keeps the gold outline off the text. */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.boss-summary-counters {
  display: flex;
  align-items: center;
  gap: 6px;
}
.boss-counter-pill {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s;
}
.boss-counter-pill:hover {
  border-color: rgba(212, 175, 55, 0.55);
}
.boss-counter-pill .pdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.boss-counter-pill.upcoming .pdot { background: #38bdf8; }
.boss-counter-pill.expired .pdot { background: #f59e0b; }
.boss-counter-pill.unknown .pdot { background: #94a3b8; }
.boss-counter-pill .pnum { min-width: 14px; text-align: right; }
.boss-counter-pill.upcoming {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}
.boss-counter-pill.expired {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.boss-counter-pill.unknown {
  color: #cbd5e1;
  border-color: rgba(100, 116, 139, 0.3);
}
.boss-counter-pill.active {
  outline: 2px solid rgba(212, 175, 55, 0.9);
  outline-offset: 1px;
  color: #ffd700;
  border-color: rgba(212, 175, 55, 0.6);
}
.boss-total-muted {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #94a3b8;
  padding: 1px 2px;
}
.boss-item-info-btn:hover {
  color: #ffd700 !important;
}

/* --- Location Items for Bosses (extends .location-item) --- */
.location-item.boss-item {
  position: relative;
}
.location-item.boss-item.alive {
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.05);
}
.location-item.boss-item.upcoming {
  border-left: 3px solid #38bdf8;
}
.location-item.boss-item.expired {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.04);
}
.boss-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.boss-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.boss-item-sub {
  font-size: 11px;
  color: #94a3b8;
}
.boss-badge-pill {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  white-space: nowrap;
}
.boss-badge-pill.alive {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
}
.boss-badge-pill.upcoming {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.boss-badge-pill.expired {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

/* --- Quick inline marking: compact 2-tier box on the right (replaces the long badge) ---
   Tier 1: stepper "- ДД.ММ ЧЧ:ММ +", tier 2: segmented "Убит | Скип".
   Both buttons eat the displayed time. Row stays single-line height. */
.location-item.boss-item.has-quick {
  align-items: center;
}
.boss-quick-box {
  display: flex;
  flex-direction: column;
  width: 148px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
}
.boss-quick-box.expired {
  border-color: rgba(245, 158, 11, 0.55);
}
.boss-quick-box.alive {
  border-color: rgba(239, 68, 68, 0.55);
}
.boss-quick-box .boss-stepper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1px;
}
.boss-step-btn {
  width: 24px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.boss-step-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.25);
  color: #ffd700;
}
.boss-step-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.boss-step-time {
  flex: 1;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
}
.boss-quick-box.expired .boss-step-time {
  color: #fbbf24;
}
.boss-quick-box.alive .boss-step-time {
  color: #f87171;
}
.boss-quick-actions {
  display: flex;
}
.boss-quick-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  padding: 0 4px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.boss-quick-btn.kill {
  color: #4ade80;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}
.boss-quick-btn.kill:hover:not(:disabled) {
  background: rgba(52, 149, 92, 0.3);
}
.boss-quick-btn.skip {
  color: #6aa9e8;
}
.boss-quick-btn.skip:hover:not(:disabled) {
  background: rgba(47, 127, 196, 0.28);
}
.boss-quick-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* --- Map Canvas (Strictly Absolute to Prevent Shifting / Black Strips) --- */
#map,
.leaflet-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(ellipse at 50% 50%, #6d7b8b 0%, #3d4a57 45%, #222b35 75%, #141a22 100%) !important;
  overflow: hidden !important;
  contain: strict;
  isolation: isolate;
}

.leaflet-image-layer {
  image-rendering: -webkit-optimize-contrast !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  pointer-events: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: 1px solid transparent;
}

/* Authentic In-Game Cloud System */
.l2m-clouds-frame-layer {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  mix-blend-mode: normal;
  image-rendering: auto;
  transition: opacity 0.3s ease;
}

.leaflet-marker-pane {
  will-change: transform;
  transform: translateZ(0);
}

/* While dragging, disable pointer events on markers to eliminate hover/restyle CPU spikes */
.leaflet-dragging .leaflet-marker-pane {
  pointer-events: none !important;
}

/* Markers containment: keeps style/layout changes strictly internal */
.boss-leaflet-div-icon,
.custom-l2m-marker,
.custom-region-title-icon {
  contain: layout style;
}

/* --- Floating Tactical Right Stack on Map (Fixed for all screen sizes) --- */
.tactical-right-stack {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 320px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 1200 !important;
  pointer-events: none !important;
}
.tactical-right-stack > * {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  pointer-events: auto !important;
}
.user-clan-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 4px 8px 4px 10px !important;
  white-space: nowrap !important;
}
.user-badge-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
.boss-clock-text {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  font-family: ui-monospace, monospace;
  white-space: nowrap !important;
  letter-spacing: 0.5px;
  flex-shrink: 0 !important;
}

/* User Role Pill matching l2m-map design tokens (icon-only in tactical HUD stack) */
.user-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}
.user-role-pill .role-icon {
  font-size: 11px;
  line-height: 1;
  display: inline-block;
}
.user-role-pill .role-text {
  display: none !important;
}
.user-role-pill.admin {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.user-role-pill.leader {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fde047;
}
.user-role-pill.officer {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}
.user-role-pill.member {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}
.user-role-pill.viewer {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

/* --- Leaflet Boss Pins (60 FPS, all 52 bosses clearly visible) --- */
.boss-map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.boss-pin-skull {
  width: 30px;
  height: 30px;
  display: block;
  /* Light shadow so the thin traced skull reads on any map background.
     Static nodes only — no animation, negligible GPU cost. */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}
/* Stronger dark halo for map pins: muted tones (sage/steel/bone) lose to
   forests, water and snow without an edge. Sidebar/chips have dark
   backings already — scope is pins only. */
.boss-map-pin .boss-pin-skull {
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 1)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}
.loc-icon .boss-pin-skull {
  width: 30px;
  height: 30px;
}
.boss-map-pin-label {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  margin-top: 1px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
/* Provenance tone borders (skull color set inline via currentColor).
   Category classes stay on the pin for sorting/filters — tones are additive. */
.boss-map-pin.tone-red .boss-map-pin-label {
  border-color: #ef4444;
  background: rgba(30, 10, 15, 0.95);
}
.boss-map-pin.tone-amber .boss-map-pin-label {
  border-color: #f59e0b;
  background: rgba(30, 20, 5, 0.95);
}
.boss-map-pin.tone-bone .boss-map-pin-label {
  border-color: rgba(217, 212, 197, 0.5);
  background: rgba(15, 23, 42, 0.88);
  font-weight: 600;
}
.boss-map-pin.tone-green .boss-map-pin-label {
  border-color: rgba(52, 149, 92, 0.65);
}
.boss-map-pin.tone-steel .boss-map-pin-label {
  border-color: rgba(47, 127, 196, 0.6);
}
.boss-map-pin.tone-sky .boss-map-pin-label {
  border-color: rgba(56, 189, 248, 0.45);
}
.boss-map-pin.unknown .boss-pin-skull {
  opacity: 0.85;
}

/* --- Popup for Bosses on Map (matching l2m-popup-card) --- */
.boss-popup-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f1f5f9;
  padding: 4px;
}
.boss-popup-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 4px;
}
.boss-popup-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.boss-popup-status {
  font-size: 12px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
}
.boss-popup-btns {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.btn-popup-action {
  width: 100%;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-popup-action.kill {
  background: #dc2626;
  color: #fff;
  border-color: #ef4444;
}
.btn-popup-action.kill:hover {
  background: #ef4444;
}
.btn-popup-action.extend {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}
.btn-popup-action.extend:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}
.btn-popup-action.clear {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-popup-action.clear:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* --- Chains Floating Dock (Matching Dungeon Tactical Banner & Alerts Hub) --- */
.chains-floating-dock {
  background: rgba(10, 13, 20, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
  color: #f1f5f9;
  width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 0 !important;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chains-floating-dock:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}
.chains-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.98) 0%, rgba(8, 10, 15, 0.98) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chains-card-header:hover {
  border-bottom-color: rgba(212, 175, 55, 0.45);
}
.chains-floating-dock.is-collapsed .chains-card-header {
  border-bottom: none;
}
.chains-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chains-pulse-dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: background-color 0.3s, box-shadow 0.3s;
}
/* Urgency-only dot: appears when the nearest chain boss is due in <5 min
   (alive included). No dot at all otherwise — avoids permanent noise. */
.chains-pulse-dot.chain-urgent {
  display: block;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.85);
  animation: chains-pulse-anim 1.2s infinite;
}
@keyframes chains-pulse-anim {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px rgba(239, 68, 68, 0.95); }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.chains-title-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffd700;
  white-space: nowrap;
}
.chain-count-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s;
  display: none;
}
.chains-floating-dock.has-chains .chain-count-badge {
  background: #d4af37;
  color: #0f172a;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}
.btn-chain-minimize {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: transform 0.2s;
  user-select: none;
}
.btn-chain-minimize:hover {
  color: #fff;
}
.chains-floating-dock.is-collapsed .btn-chain-minimize {
  transform: rotate(-90deg);
}
.chains-floating-dock.is-collapsed .chains-card-body {
  display: none !important;
}
.chains-card-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 6px 10px;
  background: rgba(10, 13, 20, 0.98);
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}
.chains-card-body::-webkit-scrollbar {
  width: 6px;
}
.chains-card-body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}
.chains-card-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}
.chains-card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}
/* Same thin gold scrollbar for the sidebar list and SmartBar dropdown */
.locations-list,
.smart-bar-dropdown {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}
.locations-list::-webkit-scrollbar,
.smart-bar-dropdown::-webkit-scrollbar {
  width: 6px;
}
.locations-list::-webkit-scrollbar-track,
.smart-bar-dropdown::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}
.locations-list::-webkit-scrollbar-thumb,
.smart-bar-dropdown::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}
.locations-list::-webkit-scrollbar-thumb:hover,
.smart-bar-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

/* Приглушённое золото 6px для списков хаба боссов: подтверждение продления,
   тело модалки, таблицы extend/backups и превью batch (тонкие, в цвет темы). */
#extendConfirmList,
.hub-modal-body,
.extend-table-wrap,
.backups-table-wrap,
.batch-items-preview {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}
#extendConfirmList::-webkit-scrollbar,
.hub-modal-body::-webkit-scrollbar,
.extend-table-wrap::-webkit-scrollbar,
.backups-table-wrap::-webkit-scrollbar,
.batch-items-preview::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
#extendConfirmList::-webkit-scrollbar-track,
.hub-modal-body::-webkit-scrollbar-track,
.extend-table-wrap::-webkit-scrollbar-track,
.backups-table-wrap::-webkit-scrollbar-track,
.batch-items-preview::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}
#extendConfirmList::-webkit-scrollbar-thumb,
.hub-modal-body::-webkit-scrollbar-thumb,
.extend-table-wrap::-webkit-scrollbar-thumb,
.backups-table-wrap::-webkit-scrollbar-thumb,
.batch-items-preview::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}
#extendConfirmList::-webkit-scrollbar-thumb:hover,
.hub-modal-body::-webkit-scrollbar-thumb:hover,
.extend-table-wrap::-webkit-scrollbar-thumb:hover,
.backups-table-wrap::-webkit-scrollbar-thumb:hover,
.batch-items-preview::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}
.chains-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #d4af37;
  text-transform: uppercase;
  padding: 6px 2px 4px;
}
.chains-section-title:first-child {
  padding-top: 0;
}
.chains-card-body.collapsed {
  display: none;
}
.chain-boss-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  height: 28px;
  padding: 0 4px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.chain-boss-row:last-child {
  border-bottom: none;
}
.chain-boss-row:hover {
  background: rgba(212, 175, 55, 0.12);
}
/* Fixed badge block: boss names always start on one vertical line.
   Badges flow left with no gaps (status / ×N / 100%). */
.chain-badges {
  width: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  overflow: hidden;
  line-height: 0;
  color: #cbd5e1;
}
.chain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chain-badge .l2m-ic {
  display: block;
}
.chain-depthn {
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #ffd700;
  font-variant-numeric: tabular-nums;
}
.chain-aim {
  flex-shrink: 0;
  color: #ffd700;
  line-height: 0;
}
.chain-aim .l2m-ic {
  display: block;
}
.chain-boss-name {
  display: block;
  line-height: 1.2;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.chain-boss-text {
  min-width: 0;
}
.chain-boss-time {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: #ffd700;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 15ch;
}

/* Extend preview cards: name left / new timer right, color-coded meta,
   route with the target highlighted. Mass case stacks the same cards. */
.ext-card {
  padding: 8px 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}
.ext-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ext-card-name {
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ext-card-target {
  font-family: ui-monospace, monospace;
  font-size: 15px;
  font-weight: 800;
  color: #ffd700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ext-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 2px;
  font-size: 11px;
}
.ext-src, .ext-dimm {
  color: #94a3b8;
}
.ext-sep {
  color: rgba(255, 255, 255, 0.25);
}
.ext-steps {
  color: #38bdf8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ext-depth.is-deep {
  color: #fb923c;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ext-route-inline {
  font-family: ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.ext-route-inline b {
  color: #ffd700;
}
.ext-arrow {
  color: rgba(255, 255, 255, 0.35);
}
#extendConfirmList {
  max-height: min(52vh, 380px);
  overflow-y: auto;
}
.chains-empty-hint,
.chains-empty-state {
  padding: 12px 14px;
  text-align: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  background: rgba(13, 17, 26, 0.9);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}
.chains-empty-state .empty-icon {
  font-size: 14px;
}

/* --- Overview Mode (minZoom): Hide boss pins and static cities, show region floating labels --- */
/* Chain links stay visible (radar parity with .has-combat-alert): everything
   else hides, so the overview shows exactly where the chain lives. */
.map-overview-mode .boss-leaflet-div-icon:not(.has-chain) {
  display: none !important;
  pointer-events: none !important;
}
.map-overview-mode .boss-map-pin.in-chain {
  transform: scale(0.85);
}
.map-overview-mode .static-city {
  display: none !important;
  pointer-events: none !important;
}
.custom-region-title-icon {
  display: none !important;
  pointer-events: none !important;
  background: transparent !important;
}
.map-overview-mode .custom-region-title-icon {
  display: flex !important;
  pointer-events: auto !important;
}
.region-floating-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
}
.region-text {
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 5px;
  color: #ffd875;
  text-transform: uppercase;
  text-shadow: 
    0 0 12px rgba(212, 175, 55, 0.8),
    0 0 24px rgba(212, 175, 55, 0.4),
    -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000,
    0 3px 8px rgba(0, 0, 0, 0.95);
  transition: color 0.2s, text-shadow 0.2s;
}
.region-floating-label:hover .region-text {
  color: #ffffff;
  text-shadow: 
    0 0 18px rgba(255, 230, 130, 1),
    0 0 32px rgba(212, 175, 55, 0.9),
    -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000,
    0 4px 12px rgba(0, 0, 0, 1);
}

/* Chain-count chip under the region name (radar parity with .region-war-chip,
   but gold: red means war, gold means bosses). Lives inside the region label,
   so it shows only in overview mode. */
.region-boss-chip {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  font-variant-numeric: tabular-nums;
}
/* getSkullSvg carries width/height attrs, but the base .boss-pin-skull rule
   (36px map pins) overrides attributes — pin it back down for the chip. */
.region-boss-chip .boss-pin-skull {
  width: 14px;
  height: 14px;
}

/* --- Permissions matrix editor --- */
.perms-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.perms-row:last-child {
  border-bottom: none;
}
.perms-label {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.perms-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.perms-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
}
.perms-radio input[type="radio"] {
  accent-color: #d4af37;
}

/* --- Layout edit mode (admin boss placement) --- */
.layout-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}
.layout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #f1f5f9;
  cursor: pointer;
  white-space: nowrap;
}
.layout-toggle input[type="checkbox"] {
  accent-color: #d4af37;
}
.layout-counter {
  font-size: 11px;
  color: #94a3b8;
}
.hud-mini-btn.active {
  border-color: rgba(212, 175, 55, 0.8);
  background: rgba(212, 175, 55, 0.25);
}
.boss-map-pin.layout-edit {
  outline: 1px dashed rgba(212, 175, 55, 0.8);
  outline-offset: 2px;
  border-radius: 6px;
  cursor: grab;
}
.boss-map-pin.layout-edit:active {
  cursor: grabbing;
}
.drag-hint {
  position: absolute;
  z-index: 1300;
  pointer-events: none;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
  white-space: nowrap;
  transform: translate(-50%, -130%);
}
.anchor-label {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
}
.anchor-label.city {
  border-color: rgba(212, 175, 55, 0.55);
  color: #ffd700;
  font-size: 11px;
}
.layout-suggest-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* --- Static city landmarks: fully click-transparent, look owned by /style.css --- */
.l2m-pin.static-city {
  pointer-events: none;
  cursor: default;
}
.l2m-pin.static-city:hover {
  transform: none;
}

/* --- Bottom-left collapsible legend --- */
.boss-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1100;
  background: rgba(6, 10, 16, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  font-size: 12px;
  color: #cbd5e1;
  max-width: 250px;
  user-select: none;
}
.boss-legend-header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  color: #ffd700;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  cursor: pointer;
}
.boss-legend-body {
  padding: 0 10px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
}
.boss-legend.collapsed .boss-legend-body {
  display: none;
}
.boss-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 18px;
}
.boss-legend-glyph {
  width: 2.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 0 0 auto;
  line-height: 0;
}
.legend-depth-n {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.alive { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.7); }
.legend-dot.upcoming { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.6); }
.legend-dot.expired { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.legend-dot.unknown { background: #d9d4c5; }
.boss-legend-caption {
  grid-column: 1 / -1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.75);
  padding: 2px 0 0;
  white-space: nowrap;
}

/* --- Boss Control Hub Modal Internals --- */
.modal-card-wide {
  max-width: 780px;
  width: 95vw;
}

/* Modal Tabs Navigation */
.hub-modal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0 12px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hub-modal-tabs::-webkit-scrollbar {
  display: none;
}
.hub-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.hub-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.03);
}
.hub-tab-btn.active {
  color: #ffd700;
  border-bottom-color: #ffd700;
  background: rgba(212, 175, 55, 0.08);
}

.hub-modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 14px;
}

.control-section-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Server Timing Grid & Cards */
.server-timing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .server-timing-grid {
    grid-template-columns: 1fr;
  }
}
.timing-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.timing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.timing-lbl {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.timing-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.timing-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.timing-action-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #fff;
  border-color: #d4af37;
}
.timing-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-color: #ef4444;
}
/* Permission-locked hub buttons: visible but inert, role named in title. */
.timing-action-btn:disabled,
.timing-action-btn.is-locked,
.action-btn:disabled,
.action-btn.is-locked {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.timing-action-btn:disabled:hover,
.action-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
}
.timing-card-val {
  font-size: 18px;
  font-weight: 700;
  color: #ffd700;
  font-family: ui-monospace, monospace;
  margin: 4px 0 2px 0;
}
.timing-card-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
}

/* Quick Inputs */
.timing-quick-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 600px) {
  .timing-quick-inputs {
    grid-template-columns: 1fr;
  }
}
.quick-input-group label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.input-with-btn {
  display: flex;
  gap: 6px;
}
.input-with-btn input {
  flex: 1;
}

/* Hub Action Cards Grid */
.hub-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hub-actions-grid.single-col {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  .hub-actions-grid {
    grid-template-columns: 1fr;
  }
}
.hub-action-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.action-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.action-card-icon {
  font-size: 16px;
}
/* Restart card: red stroke accent (parity with the danger button) */
.hub-action-card.danger-card {
  border-color: rgba(239, 68, 68, 0.35);
}
.hub-action-card.danger-card .action-card-icon {
  color: #ef4444;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}
.hub-action-card.danger-card .action-card-title {
  color: #fca5a5;
}
.action-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}
.action-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 10px 0;
  flex: 1;
}
.hub-full-btn {
  width: 100%;
  padding: 8px;
  font-weight: 700;
}

/* Mass Extend (Selective Extend) Table */
.extend-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}
.extend-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #f1f5f9;
  cursor: pointer;
  user-select: none;
}
.extend-selected-count {
  font-size: 11px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
/* Mass Extend status filter pills (built on project .boss-counter-pill) */
.extend-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.extend-filter-row:empty {
  display: none;
}
.extend-filter-pill.st-alive { color: #ef4444; border-color: rgba(239, 68, 68, 0.45); }
.extend-filter-pill.st-alive .pdot { background: #ef4444; }
.extend-filter-pill.st-expired { color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); }
.extend-filter-pill.st-expired .pdot { background: #f59e0b; }
.extend-filter-pill.st-null { color: #cbd5e1; border-color: rgba(100, 116, 139, 0.35); }
.extend-filter-pill.st-null .pdot { background: #94a3b8; }
/* Project-themed checkboxes (gold accent, parity with perms/layout toggles) */
.extend-cb,
#extendSelectAll {
  accent-color: #d4af37;
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.extend-toolbar-actions {
  display: flex;
  gap: 8px;
}
.extend-table-wrap {
  max-height: 320px;
  overflow-y: auto;
}
.extend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.extend-table th {
  position: sticky;
  top: 0;
  background: #1a202c;
  padding: 6px 8px;
  text-align: left;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.extend-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}
.extend-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.empty-state-notice {
  text-align: center;
  padding: 24px 10px;
  color: #64748b;
  font-size: 12px;
}

/* Backups Table */
.backups-table-wrap {
  max-height: 240px;
  overflow-y: auto;
}
.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.hub-table th {
  position: sticky;
  top: 0;
  background: #1a202c;
  padding: 6px 8px;
  text-align: left;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.hub-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}
.hub-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.hub-btn-mini {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: all 0.15s ease;
}
.hub-btn-mini:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
  border-color: #d4af37;
}

/* Danger Zone */
.danger-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #fca5a5;
  margin-bottom: 14px;
  line-height: 1.4;
}
.danger-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.danger-action-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.danger-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fca5a5;
}
.danger-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 6px 0;
}

/* Candidate Time Hero Box */
.candidate-time-hero {
  background: #0b0e14;
  border: 2px solid #ffd700;
  border-radius: 8px;
  color: #ffd700;
  font-size: 28px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  text-align: center;
  padding: 12px;
  margin: 12px 0;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
  letter-spacing: 1px;
}

/* Batch Preview Items */
.batch-items-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.batch-preview-card {
  padding: 6px 10px;
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 12px;
}
.batch-preview-card.batch-card-warn {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.07);
}
/* OCR rows: per-row remove toggle + unknown (event) rows + removed state */
.batch-preview-card.ocr-unknown {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.06);
}
.batch-preview-card.ocr-removed {
  opacity: 0.55;
  border-style: dashed;
}
.ocr-row-remove {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #94a3b8;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ocr-row-remove:hover {
  border-color: #ef4444;
  color: #ef4444;
}
.batch-preview-card.ocr-removed .ocr-row-remove {
  border-color: rgba(34, 197, 94, 0.6);
  color: #22c55e;
}
.ocr-note-line {
  font-size: 11px;
  color: #94a3b8;
  padding: 2px 2px 0;
}
.batch-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.batch-warn-line {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
}
/* Batch/OCR confirm modal: roomy single-row cards, ~5 visible, no wrap */
#batchConfirmModal .modal-card {
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
}
#batchConfirmModal .modal-body {
  overflow-y: auto;
  min-height: 0;
}
#batchConfirmModal .batch-items-preview {
  max-height: 420px;
}
#batchConfirmModal .batch-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 22px;
  align-items: center;
  gap: 8px;
}
#batchConfirmModal .batch-kill-cell,
#batchConfirmModal .batch-spawn-cell {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
}
#batchConfirmModal .batch-lbl {
  color: #94a3b8;
  flex-shrink: 0;
}
#batchConfirmModal .batch-kill-time,
#batchConfirmModal .batch-next-spawn {
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
#batchConfirmModal .batch-card-left {
  min-width: 0;
  flex: 1 1 auto;
}
#batchConfirmModal .batch-boss-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#batchConfirmModal .batch-kill-time,
#batchConfirmModal .batch-next-spawn {
  white-space: nowrap;
  flex-shrink: 0;
}
.batch-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.batch-boss-name {
  font-weight: 700;
  color: #ffd700;
}
.batch-kill-time {
  color: #ef4444;
  font-family: ui-monospace, monospace;
}
.batch-next-spawn {
  color: #38bdf8;
  font-family: ui-monospace, monospace;
}

/* =============================================================================
   HUD TOAST NOTIFICATIONS & EXTENDED MODALS
   ============================================================================= */

/* HUD Toast Container */
.hud-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100vw - 48px);
}

.hud-toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #f1f5f9;
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

.hud-toast.success {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}
.hud-toast.info {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}
.hud-toast.warning {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}
.hud-toast.danger {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.hud-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
}
.hud-toast-icon .l2m-ic {
  display: block;
}
.hud-toast.success .hud-toast-icon { color: #4ade80; }
.hud-toast.info .hud-toast-icon { color: #38bdf8; }
.hud-toast.warning .hud-toast-icon { color: #fbbf24; }
.hud-toast.danger .hud-toast-icon { color: #f87171; }
.hud-toast-content {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}
.hud-toast-title {
  font-weight: 700;
  margin-bottom: 2px;
  color: #ffd700;
}
.hud-toast.success .hud-toast-title { color: #4ade80; }
.hud-toast.info .hud-toast-title { color: #38bdf8; }
.hud-toast.warning .hud-toast-title { color: #fbbf24; }
.hud-toast.danger .hud-toast-title { color: #f87171; }

.hud-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}
.hud-toast-close:hover {
  color: #fff;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Quick Offset Chips */
.quick-offset-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 8px 0 12px 0;
}

.chip-btn {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #ffd700;
}
.chip-btn.active {
  background: #d4af37;
  color: #0b0e14;
  border-color: #ffd700;
}

/* Boss Metadata Card in Kill Modal */
.boss-kill-info-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.boss-kill-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffd700;
}
.boss-kill-meta {
  font-size: 11px;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}

/* Kill calculation preview */
.kill-calc-preview {
  background: #0b0e14;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kill-calc-preview b {
  color: #38bdf8;
  font-size: 15px;
  font-family: ui-monospace, monospace;
}

/* Candidate Details Grid */
.candidate-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 10px 0;
  font-size: 11px;
}
.candidate-detail-item {
  display: flex;
  flex-direction: column;
}
.candidate-detail-lbl {
  color: #94a3b8;
  font-size: 10px;
  text-transform: uppercase;
}
.candidate-detail-val {
  color: #f1f5f9;
  font-weight: 600;
  font-family: ui-monospace, monospace;
}

/* Candidate Edit Section */
.candidate-edit-wrap {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
}

/* Boss Dossier Grid */
.boss-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.dossier-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 8px 10px;
}
.dossier-lbl {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.dossier-val {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}
.dossier-val.mono {
  font-family: ui-monospace, monospace;
}
.dossier-val.gold {
  color: #ffd700;
}
.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================================================================
   MODAL STACKING ARCHITECTURE & Z-INDEX SYSTEM
   ============================================================================= */

/* Base Overlay (Overrides map canvas, markers, popups, and sidebars) */
.modal-overlay {
  z-index: 3000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Primary Hub & Dossier Modals (Layer 1: z-index 3000) */
#bossControlModal,
#bossDossierModal,
#batchConfirmModal {
  z-index: 3000 !important;
}

/* Secondary Dialogs replacing browser prompt / confirm (Layer 2: z-index 3500)
   Guaranteed to render ON TOP of #bossControlModal and #bossDossierModal */
#serverTimeModal,
#restartConfirmModal,
#recordKillModal,
#exactStartConfirmModal,
#preliminaryStartModal {
  z-index: 3500 !important;
}

/* Secondary Dialog Cards (Enhanced elevation when opened over another modal) */
#serverTimeModal .modal-card,
#restartConfirmModal .modal-card,
#recordKillModal .modal-card,
#exactStartConfirmModal .modal-card,
#preliminaryStartModal .modal-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(212, 175, 55, 0.4);
}

/* Tertiary Sub-Modals (Layer 3: z-index 3600 - 3700)
   Overriding prompts like Boss Edit from Dossier or Login Required from Kill Record */
#bossEditModal {
  z-index: 3600 !important;
}
#bossEditModal .modal-card {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(212, 175, 55, 0.5);
}

#loginRequiredModal {
  z-index: 3700 !important;
}
#loginRequiredModal .modal-card {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(239, 68, 68, 0.6);
}

/* HUD Toast Container: Always visible floating above all modals (Layer 4: z-index 9999) */
.hud-toast-container {
  z-index: 9999 !important;
}

/* Compact HUD: 4 buttons must fit the 320px bar (dot + pill + clock +
   start badge + buttons overflowed and cut the logout). Clock may ellipsis
   as a last resort; role pill hides on narrow screens (role stays in title). */
.user-clan-bar {
  gap: 6px;
  padding: 4px 6px 4px 8px;
}
.hud-btn-group {
  gap: 3px;
}
.hud-mini-btn {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
/* Notifications popover (unified HUD: bell before logout on all pages).
   Zero-coupling копия из l2m-map/style.css — не ссылаться, только копировать. */
.notify-pop {
  position: absolute;
  top: 46px;
  right: 0;
  width: 220px;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.98) 0%, rgba(8, 10, 15, 0.99) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1300;
}
.notify-pop[hidden] { display: none; }
.notify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #e2e8f0;
  cursor: pointer;
}
.notify-test-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(180deg, #1e2636, #151b26);
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s;
}
.notify-test-btn:hover { border-color: #d4af37; color: #d4af37; }
.notify-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #d4af37;
  text-transform: uppercase;
  margin-top: 2px;
}
.notify-test-row {
  display: flex;
  gap: 6px;
}
.notify-test-row .notify-test-btn { flex: 1; }
.hud-start-badge {
  padding: 2px 4px;
}
.boss-clock-text {
  flex-shrink: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 560px) {
  #userClanBar .user-role-pill {
    display: none;
  }
}

/* Top clan announcements ticker: single 38px strip from zoom controls to HUD
   (mirror of /radar; zero-coupling copy). Zoom geometry is shared with radar
   via /style.css (themed 32px at left:16 → right edge ≈50), HUD column is
   fixed 320px at right:12 — gaps are 12px on both sides, same as /radar. */
.announce-ticker {
  position: absolute;
  top: 12px;
  left: 62px;
  right: 344px;
  height: 38px;
  box-sizing: border-box;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.96) 0%, rgba(8, 10, 15, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  pointer-events: auto;
  user-select: none;
  contain: paint;
  isolation: isolate;
}

.announce-ticker.pulse-highlight {
  animation: ticker-glow 1.5s ease-in-out 3;
}

@keyframes ticker-glow {
  0%, 100% { border-color: rgba(212, 175, 55, 0.35); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }
  50% { border-color: #ffd700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.65); }
}

.ticker-icon {
  font-size: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}
.ticker-icon .l2m-ic {
  width: 14px;
  height: 14px;
  stroke: #ffd700;
  display: block;
}

.ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
  animation: ticker-scroll 20s linear infinite;
}

.ticker-chunk {
  font-size: 12px;
  line-height: 1.45;
  color: #f1f5f9;
  padding-right: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-chunk a {
  color: #ffd700;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  word-break: break-all;
}

.ticker-chunk a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.announce-ticker:hover .ticker-track,
.announce-ticker:focus-within .ticker-track,
.ticker-viewport:active .ticker-track {
  animation-play-state: paused;
}

.announce-ticker.is-static .ticker-track {
  animation: none;
}

.announce-ticker.is-static .ticker-chunk[data-dup] {
  display: none;
}

/* Раскрытый вид: полный текст до 3 строк, marquee остановлен. */
.announce-ticker.is-expanded {
  height: auto;
  min-height: 38px;
}

.announce-ticker.is-expanded .ticker-viewport {
  white-space: normal;
  cursor: pointer;
}

.announce-ticker.is-expanded .ticker-track {
  animation: none;
  display: block;
  max-height: calc(1.45em * 3 + 8px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.announce-ticker.is-expanded .ticker-track::-webkit-scrollbar {
  width: 6px;
}

.announce-ticker.is-expanded .ticker-track::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.announce-ticker.is-expanded .ticker-track::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}

.announce-ticker.is-expanded .ticker-track::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

.announce-ticker.is-expanded .ticker-chunk {
  white-space: pre-wrap;
  word-break: break-word;
  padding-right: 0;
  overflow: visible;
  text-overflow: clip;
}

.announce-ticker.is-expanded .ticker-chunk[data-dup] {
  display: none;
}

.ticker-counter {
  font-size: 10px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-nav-btn,
.ticker-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  width: 22px;
  line-height: 1;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -0.5px;
}

.ticker-nav-btn:hover,
.ticker-close-btn:hover {
  color: #ffd700;
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* Mobile: ticker goes second row; in-flow chains dock is pushed down via
   margin so "Следующие спавны" never overlap (expanded ticker pushes more). */
@media (max-width: 768px) {
  /* Top row: full-width column, HUD hugs right so the menu button keeps ~104px. */
  .tactical-right-stack {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
  }

  .tactical-right-stack > .map-hud-top {
    margin-left: auto !important;
    width: 320px !important;
    max-width: calc(100vw - 116px) !important;
  }

  .announce-ticker {
    top: 58px !important;
    left: 12px !important;
    right: 12px !important;
  }

  body.has-announce-ticker #chainsDock {
    margin-top: 46px !important;
  }

  body.has-announce-ticker.ticker-expanded #chainsDock {
    margin-top: 100px !important;
  }
}





