/* Заставка бездействия */
.idle-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: idleFade .25s ease;
}
@keyframes idleFade { from { opacity: 0 } to { opacity: 1 } }

.idle-card {
  width: 100%; max-width: 1100px; max-height: 92vh;
  display: flex; flex-direction: column; color: #fff;
}
.idle-top {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.idle-clock { font-size: 44px; font-weight: 800; font-family: var(--font-mono, monospace); letter-spacing: 1px; }
.idle-shop { font-size: 18px; color: #9aa4b2; font-weight: 600; }
.idle-close {
  margin-left: auto; background: rgba(255,255,255,.1); color: #fff;
  border: none; width: 44px; height: 44px; border-radius: 12px;
  font-size: 18px; cursor: pointer;
}
.idle-close:hover { background: rgba(255,255,255,.2); }

.idle-blocks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; overflow-y: auto; padding-bottom: 8px;
}
.idle-block {
  background: rgba(255,255,255,.06); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column;
}
.idle-block-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 700; margin-bottom: 10px;
}
.idle-count {
  background: #ff3366; color: #fff; border-radius: 999px;
  min-width: 24px; height: 24px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.idle-block-chats .idle-count { background: #0088cc; }
.idle-block-tasks .idle-count { background: #f59e0b; }
.idle-block-calls .idle-count { background: #ef4444; }

.idle-block-body { display: flex; flex-direction: column; gap: 8px; }
.idle-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 12px;
  cursor: pointer; transition: background .15s;
}
.idle-item:hover { background: rgba(255,255,255,.14); }
.idle-item-main { min-width: 0; flex: 1; }
.idle-item-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idle-item-text { font-size: 13px; color: #aeb6c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idle-item-age { font-size: 12px; color: #8b95a3; white-space: nowrap; }
.idle-age-warn { color: #fbbf24; font-weight: 600; }
.idle-age-hot { color: #fff; background: #ef4444; padding: 2px 8px; border-radius: 999px; font-weight: 700; }

.idle-hint { margin-top: 16px; text-align: center; color: #6b7280; font-size: 13px; }

@media (max-width: 640px) {
  .idle-clock { font-size: 32px; }
  .idle-blocks { grid-template-columns: 1fr; }
}
