/* ==========================================================================
   Melior — Persistent Compact Menu «Срочные дела»
   Section Selection Screen Integration (360p Partner Presentations Link)
   ========================================================================== */

.urgent-tasks-widget {
  position: absolute;
  top: 68px;
  right: 14px;
  width: calc(100% - 28px);
  max-width: 320px;
  background: rgba(11, 19, 44, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 150;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (min-width: 480px) {
  .urgent-tasks-widget {
    right: calc(50% - 200px);
    max-width: 340px;
  }
}

/* Header */
.urgent-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.urgent-widget-header:hover {
  background: linear-gradient(90deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
}

.urgent-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.urgent-pulse-indicator {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 8px #f59e0b;
  animation: urgentPulse 1.8s infinite;
}
@keyframes urgentPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #f59e0b; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.urgent-fire-icon {
  font-size: 1rem;
  line-height: 1;
}

.urgent-widget-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.urgent-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.urgent-badge {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #000;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 5px;
}

.urgent-toggle-chevron {
  background: transparent;
  border: none;
  color: var(--accent-cyan, #00f0ff);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: transform 0.25s ease;
}

/* Collapsed state */
.urgent-tasks-widget.is-collapsed {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  max-width: 175px;
}
.urgent-tasks-widget.is-collapsed .urgent-widget-header {
  border-bottom: none;
}
.urgent-tasks-widget.is-collapsed .urgent-toggle-chevron {
  transform: rotate(-90deg);
}
.urgent-tasks-widget.is-collapsed .urgent-widget-body {
  display: none !important;
}

/* Body */
.urgent-widget-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Prominent Partner Link */
.urgent-partner-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(0, 240, 255, 0.15) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.urgent-partner-link:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.28) 0%, rgba(0, 240, 255, 0.28) 100%);
  border-color: #00f0ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.25);
}

.urgent-partner-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
}
.urgent-partner-anime-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.urgent-partner-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.urgent-partner-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.urgent-partner-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.urgent-partner-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

.urgent-partner-arrow {
  color: #00f0ff;
  font-weight: 900;
  font-size: 0.85rem;
  margin-left: 2px;
}

/* Tasks Slot */
.urgent-tasks-section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 6px;
}
.urgent-task-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.35;
}
.urgent-task-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00f0ff;
  flex-shrink: 0;
}
