/* Web/Android Holiday Modal & Mobile Adaptation */
.samgtu-lib-modal.samgtu-hol-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 10px; }
.samgtu-lib-modal__card.samgtu-hol-card { width: min(1080px, 100%); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 18px; background: #ffffff; color: #0f172a; border: 1px solid #cbd5e1; box-shadow: 0 24px 60px rgba(2,6,23,0.45); }
body:not(.is-light) .samgtu-lib-modal__card.samgtu-hol-card { background: #0d1117; color: #f0f6fc; border-color: #30363d; }
.samgtu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid #cbd5e1; background: #f8fafc; color: #0f172a; }
.samgtu-btn--sm { padding: 5px 10px; font-size: 12px; }
.samgtu-btn--primary { background: linear-gradient(135deg, #2563eb, #0284c7); border-color: transparent; color: #ffffff; }
.samgtu-btn--ghost { background: transparent; border-color: #cbd5e1; color: #334155; }
body:not(.is-light) .samgtu-btn { background: #1c2128; border-color: #30363d; color: #e6edf3; }
body:not(.is-light) .samgtu-btn--primary { background: linear-gradient(135deg, #2563eb, #0ea5e9); border-color: transparent; color: #ffffff; }
body:not(.is-light) .samgtu-btn--ghost { background: transparent; border-color: #30363d; color: #cbd5e1; }
.samgtu-btn:disabled { opacity: 0.48; cursor: not-allowed; }
/* ============================================================================
   HOLIDAY OPS STUDIO v4.0.0 («НОВОГОДНЕЕ НАСТУПЛЕНИЕ САМГТУ — WOT EDITION»)
   ============================================================================ */
.samgtu-hol-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.samgtu-hol-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45) !important;
}

.samgtu-hol-card {
  width: min(1220px, 96vw) !important;
  height: min(92vh, 920px) !important;
}

.samgtu-hol-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 13px 18px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 58%, #fef3c7 100%) !important;
  border-bottom: 1px solid #dbe4f0 !important;
  flex-shrink: 0 !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-head__left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.samgtu-hol-lvl-badge {
  padding: 7px 13px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #1d4ed8, #0284c7) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.samgtu-hol-head__title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

.samgtu-hol-atm-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.samgtu-hol-atm-bar {
  width: 150px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #e2e8f0 !important;
  overflow: hidden !important;
}

.samgtu-hol-atm-fill {
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #22c55e, #0ea5e9, #f59e0b) !important;
  transition: width 0.28s ease !important;
}

.samgtu-hol-atm-fill.is-satiety {
  background: linear-gradient(90deg, #f97316, #f59e0b, #22c55e) !important;
}

.samgtu-hol-resources {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-res-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.samgtu-hol-res-pill.is-vip {
  background: #fffbeb !important;
  border-color: #fbbf24 !important;
  color: #b45309 !important;
}

.samgtu-hol-res-pill.is-shards {
  background: #eff6ff !important;
  border-color: #60a5fa !important;
  color: #1d4ed8 !important;
}

.samgtu-hol-res-pill.is-anti {
  background: #faf5ff !important;
  border-color: #c084fc !important;
  color: #7e22ce !important;
}

.samgtu-hol-res-pill.is-treat {
  background: #fff1f2 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
}

.samgtu-hol-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 18px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  overflow-x: auto !important;
  flex-shrink: 0 !important;
}

.samgtu-hol-tab {
  padding: 7px 14px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.samgtu-hol-tab:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.samgtu-hol-tab.is-active {
  background: #0f172a !important;
  color: #ffffff !important;
}

.samgtu-hol-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 16px 18px !important;
  background: #f8fafc !important;
}

.samgtu-hol-toast {
  margin-bottom: 12px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: #ecfdf5 !important;
  border: 1px solid #34d399 !important;
  color: #065f46 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Tree + Stage layout */
.samgtu-hol-tree-layout {
  display: grid !important;
  grid-template-columns: minmax(420px, 1.55fr) minmax(300px, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

@media (max-width: 920px) {
  .samgtu-hol-tree-layout {
    grid-template-columns: 1fr !important;
  }
}

.samgtu-hol-stage {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 490px !important;
  max-height: 68vh !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  background: #081226 !important;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.45) !important;
  user-select: none !important;
}

.samgtu-hol-studio-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: none !important;
}

.samgtu-hol-stage__hud {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  z-index: 9 !important;
  pointer-events: none !important;
}

.samgtu-hol-stage__hud > * {
  pointer-events: auto !important;
}

.samgtu-hol-stage__hud .samgtu-btn--ghost {
  background: rgba(15, 23, 42, 0.72) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  backdrop-filter: blur(6px) !important;
}

.samgtu-hol-stage__hint {
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.68) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

.samgtu-hol-stage-pet {
  position: absolute !important;
  left: 24% !important;
  bottom: 6% !important;
  transform: translateX(-50%) !important;
  z-index: 7 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 10px 3px 3px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1.5px solid rgba(251, 191, 36, 0.65) !important;
  color: #fef3c7 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  backdrop-filter: blur(6px) !important;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.5) !important;
  transition: transform 0.18s ease !important;
}

.samgtu-hol-stage-pet:hover {
  transform: translateX(-50%) scale(1.06) !important;
}

.samgtu-hol-stage-pet__canvas {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  display: block !important;
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
}

/* Interactive Tree & Square Slots (Hanging 3D Models + Drag&Drop) */
@keyframes samgtu-hol-sway {
  0%, 100% { transform: rotate(-2.4deg); }
  50% { transform: rotate(2.4deg); }
}

@keyframes samgtu-hol-pulse-drop {
  0%, 100% { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.55), 0 0 14px rgba(251, 191, 36, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.85), 0 0 24px rgba(251, 191, 36, 0.75); }
}

.samgtu-hol-slot {
  position: absolute !important;
  transform: translate(-50%, -50%) !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1.5px dashed rgba(226, 232, 240, 0.72) !important;
  background: rgba(15, 23, 42, 0.46) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 5 !important;
  backdrop-filter: blur(2px) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.2s ease, border-color 0.16s ease !important;
}

.samgtu-hol-slot.is-large {
  width: 44px !important;
  height: 44px !important;
}

.samgtu-hol-slot__plus {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #e2e8f0 !important;
}

.samgtu-hol-slot.is-equipped {
  width: 56px !important;
  height: 56px !important;
  border: 1.5px solid transparent !important;
  background: transparent !important;
  backdrop-filter: none !important;
  cursor: grab !important;
}

.samgtu-hol-slot.is-equipped:hover,
.samgtu-hol-slot.is-selected.is-equipped {
  border-color: rgba(250, 204, 21, 0.72) !important;
  background: rgba(250, 204, 21, 0.08) !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35) !important;
}

.samgtu-hol-slot:hover {
  transform: translate(-50%, -50%) scale(1.16) !important;
  z-index: 8 !important;
}

.samgtu-hol-slot.is-selected.is-empty {
  border-style: solid !important;
  border-color: #fde047 !important;
  background: rgba(234, 179, 8, 0.25) !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35) !important;
}

.samgtu-hol-slot.is-selected.is-equipped .samgtu-hol-slot__model {
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.9)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) !important;
}

.samgtu-hol-slot.is-drop-target {
  border-color: #fbbf24 !important;
  border-style: solid !important;
  background: rgba(251, 191, 36, 0.28) !important;
  animation: samgtu-hol-pulse-drop 1s ease-in-out infinite !important;
  z-index: 9 !important;
}

.samgtu-hol-slot.is-drag-over {
  transform: translate(-50%, -50%) scale(1.25) !important;
  background: rgba(251, 191, 36, 0.55) !important;
}

.samgtu-hol-stage.is-clean-preview .samgtu-hol-slot.is-empty {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Right Inventory Drawer */
.samgtu-hol-picker {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 14px !important;
  padding: 12px !important;
  height: 580px !important;
  max-height: 68vh !important;
  overflow: hidden !important;
}

.samgtu-hol-picker__head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 8px !important;
}

.samgtu-hol-picker__btns {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.samgtu-hol-picker__sub {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.samgtu-hol-drawer-filters {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
  margin-bottom: 9px !important;
}

.samgtu-hol-fchip {
  padding: 4px 9px !important;
  border-radius: 999px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.samgtu-hol-fchip:hover:not(:disabled) {
  background: #e2e8f0 !important;
}

.samgtu-hol-fchip.is-active {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.samgtu-hol-fchip:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.samgtu-hol-picker__list {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding-right: 4px !important;
}

.samgtu-hol-toy-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  cursor: grab !important;
  transition: transform 0.12s ease, border-color 0.12s ease !important;
}

.samgtu-hol-toy-row:hover:not(.is-locked) {
  border-color: #3b82f6 !important;
  transform: translateY(-1px) !important;
}

.samgtu-hol-toy-row.is-equipped {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
}

.samgtu-hol-toy-row.is-locked {
  opacity: 0.6 !important;
  cursor: default !important;
}

.samgtu-hol-toy-row.rarity-5 { border-left: 4px solid #f59e0b !important; }
.samgtu-hol-toy-row.rarity-4 { border-left: 4px solid #c084fc !important; }
.samgtu-hol-toy-row.rarity-3 { border-left: 4px solid #38bdf8 !important; }
.samgtu-hol-toy-row.rarity-2 { border-left: 4px solid #22c55e !important; }
.samgtu-hol-toy-row.rarity-1 { border-left: 4px solid #94a3b8 !important; }

.samgtu-hol-toy-row__art {
  width: 54px !important;
  height: 54px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.samgtu-hol-toy-row__info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.samgtu-hol-toy-row__name {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.samgtu-hol-toy-row__meta {
  font-size: 11px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.samgtu-hol-tier-tag {
  font-weight: 800 !important;
}
.samgtu-hol-tier-tag.rarity-5 { color: #d97706 !important; }
.samgtu-hol-tier-tag.rarity-4 { color: #9333ea !important; }
.samgtu-hol-tier-tag.rarity-3 { color: #0284c7 !important; }
.samgtu-hol-tier-tag.rarity-2 { color: #16a34a !important; }

/* Sections */
.samgtu-hol-section {
  background: #ffffff !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
}

.samgtu-hol-section h3 {
  margin: 0 0 10px 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.samgtu-hol-section__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-section__head h3 {
  margin: 0 !important;
}

.samgtu-hol-p {
  margin: 0 0 12px 0 !important;
  font-size: 13px !important;
  color: #475569 !important;
}

/* Collectors */
.samgtu-hol-collectors-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(190px, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 760px) {
  .samgtu-hol-collectors-grid {
    grid-template-columns: 1fr !important;
  }
}

.samgtu-hol-collector {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 11px 12px !important;
  border-radius: 12px !important;
  border: 1px solid #dbe4f0 !important;
  background: #f8fafc !important;
}

.samgtu-hol-collector.is-claimed {
  opacity: 0.65 !important;
}

.samgtu-hol-collector__rew {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0284c7 !important;
  margin-top: 3px !important;
}

/* 14-day calendar */
.samgtu-hol-streak-14 {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(76px, 1fr)) !important;
  gap: 8px !important;
}

@media (max-width: 760px) {
  .samgtu-hol-streak-14 {
    grid-template-columns: repeat(4, minmax(66px, 1fr)) !important;
  }
}

.samgtu-hol-day {
  padding: 7px 6px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  text-align: center !important;
}

.samgtu-hol-day.is-claimed {
  background: #ecfdf5 !important;
  border-color: #34d399 !important;
}

.samgtu-hol-day.is-next {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

.samgtu-hol-day.is-vip {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  border-color: #f59e0b !important;
}

.samgtu-hol-day__num { font-size: 11px !important; font-weight: 700 !important; color: #64748b !important; }
.samgtu-hol-day__ico { font-size: 18px !important; margin: 3px 0 !important; }
.samgtu-hol-day__rew { font-size: 10.5px !important; font-weight: 800 !important; color: #0f172a !important; line-height: 1.2 !important; }

/* Chests & Drop reveal */
.samgtu-hol-chest-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

@media (max-width: 640px) {
  .samgtu-hol-chest-grid {
    grid-template-columns: 1fr !important;
  }
}

.samgtu-hol-chest {
  background: #ffffff !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 14px !important;
  padding: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 6px !important;
}

.samgtu-hol-chest.is-vip {
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 70%, #fef3c7 100%) !important;
  border-color: #f59e0b !important;
}

.samgtu-hol-chest__ico { font-size: 30px !important; line-height: 1.1 !important; }
.samgtu-hol-chest__title { font-size: 15px !important; font-weight: 800 !important; color: #0f172a !important; }
.samgtu-hol-chest__desc { font-size: 12px !important; color: #64748b !important; }
.samgtu-hol-chest__cnt { font-size: 13px !important; color: #334155 !important; margin-bottom: 4px !important; }

.samgtu-hol-drop-reveal {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important;
  border: 1px solid #93c5fd !important;
  border-radius: 14px !important;
  padding: 14px !important;
  margin-bottom: 14px !important;
}

.samgtu-hol-drop-reveal__title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 10px !important;
}

.samgtu-hol-drop-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 10px !important;
}

.samgtu-hol-drop-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

.samgtu-hol-drop-card.rarity-5 { border-color: #f59e0b !important; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important; }
.samgtu-hol-drop-card.rarity-4 { border-color: #c084fc !important; }
.samgtu-hol-drop-card.rarity-3 { border-color: #38bdf8 !important; }
.samgtu-hol-drop-card.rarity-2 { border-color: #22c55e !important; }

.samgtu-hol-drop-card__ico { flex-shrink: 0 !important; display: flex !important; align-items: center !important; }
.samgtu-hol-drop-card__meta { font-size: 11.5px !important; color: #64748b !important; margin-top: 2px !important; }
.samgtu-hol-drop-shards { margin-top: 8px !important; font-size: 12.5px !important; font-weight: 700 !important; color: #1d4ed8 !important; }

/* Quests */
.samgtu-hol-quests {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.samgtu-hol-quest {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

.samgtu-hol-quest.is-claimed { opacity: 0.68 !important; }
.samgtu-hol-quest__rew { font-size: 12px !important; color: #475569 !important; margin-top: 2px !important; }

/* Pets */
.samgtu-hol-pets-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 14px !important;
}

@media (max-width: 760px) {
  .samgtu-hol-pets-grid {
    grid-template-columns: 1fr !important;
  }
}

.samgtu-hol-pet-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
}

.samgtu-hol-pet-card.is-active {
  border-color: #f59e0b !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.14) !important;
}

.samgtu-hol-pet-card.is-locked {
  opacity: 0.85 !important;
}

.samgtu-hol-pet-card__top {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.samgtu-hol-pet-canvas {
  width: 280px !important;
  height: 196px !important;
  border-radius: 14px !important;
  border: 2px solid rgba(251, 191, 36, 0.58) !important;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.28) !important;
  cursor: pointer !important;
  display: block !important;
  flex-shrink: 0 !important;
}

@media (max-width: 1080px) {
  .samgtu-hol-pet-card__top {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .samgtu-hol-pet-canvas {
    width: 100% !important;
    height: auto !important;
  }
}

.samgtu-hol-pet-meta {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.samgtu-hol-pet-name {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-pill-active {
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #166534 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.samgtu-hol-pet-stats {
  margin-top: 8px !important;
  font-size: 12px !important;
  color: #475569 !important;
}

.samgtu-hol-pet-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-pet-acc {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  padding-top: 8px !important;
  border-top: 1px dashed #cbd5e1 !important;
}

/* Collider & 3->1 Combine */
.samgtu-hol-collider-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  margin-bottom: 12px !important;
  font-size: 13px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-combine-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 820px) {
  .samgtu-hol-combine-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.samgtu-hol-craft-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border: 1px solid #dbe4f0 !important;
  background: #f8fafc !important;
}

.samgtu-hol-collider-controls {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

@media (max-width: 720px) {
  .samgtu-hol-collider-controls {
    grid-template-columns: 1fr !important;
  }
}

.samgtu-hol-collider-controls > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

.samgtu-hol-collider-controls label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}

.samgtu-hol-anti-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: #faf5ff !important;
  border: 1px solid #d8b4fe !important;
  color: #581c87 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-bottom: 12px !important;
}

.samgtu-hol-anti-toggle.is-disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}

.samgtu-hol-launch-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* Album */
.samgtu-hol-album-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-bottom: 12px !important;
}

.samgtu-hol-mile-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-mile-btns {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-album-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important;
  gap: 10px !important;
}

.samgtu-hol-album-item {
  padding: 11px 10px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.samgtu-hol-album-item.is-locked {
  opacity: 0.45 !important;
  filter: grayscale(0.85) !important;
}

.samgtu-hol-album-item.rarity-5 { border-color: #f59e0b !important; background: linear-gradient(180deg, #fffbeb, #ffffff) !important; }
.samgtu-hol-album-item.rarity-4 { border-color: #c084fc !important; }
.samgtu-hol-album-item.rarity-3 { border-color: #38bdf8 !important; }
.samgtu-hol-album-item.rarity-2 { border-color: #4ade80 !important; }

.samgtu-hol-album-item__art { margin-bottom: 6px !important; height: 58px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.samgtu-hol-album-item__name { font-size: 12.5px !important; font-weight: 700 !important; color: #0f172a !important; line-height: 1.25 !important; }
.samgtu-hol-album-item__desc { font-size: 11px !important; color: #64748b !important; margin-top: 3px !important; }

/* Dark Theme для Holiday Ops v4.0.0 */
body:not(.is-light) .samgtu-hol-head {
  background: linear-gradient(135deg, #161b22 0%, #1c2432 58%, #261f12 100%) !important;
  border-bottom-color: #30363d !important;
}

body:not(.is-light) .samgtu-hol-head__title,
body:not(.is-light) .samgtu-hol-section h3,
body:not(.is-light) .samgtu-hol-toy-row__name,
body:not(.is-light) .samgtu-hol-chest__title,
body:not(.is-light) .samgtu-hol-drop-reveal__title,
body:not(.is-light) .samgtu-hol-album-item__name,
body:not(.is-light) .samgtu-hol-pet-name,
body:not(.is-light) .samgtu-hol-day__rew {
  color: #f0f6fc !important;
}

body:not(.is-light) .samgtu-hol-atm-row,
body:not(.is-light) .samgtu-hol-picker__sub,
body:not(.is-light) .samgtu-hol-toy-row__meta,
body:not(.is-light) .samgtu-hol-p,
body:not(.is-light) .samgtu-hol-chest__desc,
body:not(.is-light) .samgtu-hol-chest__cnt,
body:not(.is-light) .samgtu-hol-quest__rew,
body:not(.is-light) .samgtu-hol-album-item__desc,
body:not(.is-light) .samgtu-hol-drop-card__meta,
body:not(.is-light) .samgtu-hol-pet-stats,
body:not(.is-light) .samgtu-hol-pet-acc,
body:not(.is-light) .samgtu-hol-collider-controls label,
body:not(.is-light) .samgtu-hol-day__num {
  color: #8b949e !important;
}

body:not(.is-light) .samgtu-hol-atm-bar {
  background: #262c36 !important;
}

body:not(.is-light) .samgtu-hol-res-pill {
  background: #161b22 !important;
  border-color: #30363d !important;
  color: #f0f6fc !important;
}

body:not(.is-light) .samgtu-hol-res-pill.is-vip {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: #d97706 !important;
  color: #fcd34d !important;
}

body:not(.is-light) .samgtu-hol-res-pill.is-shards {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: #38bdf8 !important;
  color: #7dd3fc !important;
}

body:not(.is-light) .samgtu-hol-res-pill.is-anti {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: #c084fc !important;
  color: #e9d5ff !important;
}

body:not(.is-light) .samgtu-hol-res-pill.is-treat {
  background: rgba(244, 63, 94, 0.16) !important;
  border-color: #fb7185 !important;
  color: #fecdd3 !important;
}

body:not(.is-light) .samgtu-hol-tabs {
  background: #0d1117 !important;
  border-bottom-color: #30363d !important;
}

body:not(.is-light) .samgtu-hol-tab {
  color: #8b949e !important;
}

body:not(.is-light) .samgtu-hol-tab:hover {
  background: #21262d !important;
  color: #f0f6fc !important;
}

body:not(.is-light) .samgtu-hol-tab.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
}

body:not(.is-light) .samgtu-hol-body {
  background: #0d1117 !important;
}

body:not(.is-light) .samgtu-hol-picker,
body:not(.is-light) .samgtu-hol-section,
body:not(.is-light) .samgtu-hol-chest {
  background: #161b22 !important;
  border-color: #30363d !important;
}

body:not(.is-light) .samgtu-hol-chest.is-vip {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), #161b22) !important;
  border-color: #d97706 !important;
}

body:not(.is-light) .samgtu-hol-picker__head,
body:not(.is-light) .samgtu-hol-pet-acc {
  border-color: #30363d !important;
}

body:not(.is-light) .samgtu-hol-fchip {
  background: #1c2128 !important;
  border-color: #30363d !important;
  color: #cbd5e1 !important;
}

body:not(.is-light) .samgtu-hol-fchip:hover:not(:disabled) {
  background: #262c36 !important;
}

body:not(.is-light) .samgtu-hol-fchip.is-active {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

body:not(.is-light) .samgtu-hol-toy-row,
body:not(.is-light) .samgtu-hol-day,
body:not(.is-light) .samgtu-hol-quest,
body:not(.is-light) .samgtu-hol-craft-card,
body:not(.is-light) .samgtu-hol-album-item,
body:not(.is-light) .samgtu-hol-drop-card,
body:not(.is-light) .samgtu-hol-collector,
body:not(.is-light) .samgtu-hol-pet-card,
body:not(.is-light) .samgtu-hol-mile-bar {
  background: #1c2128 !important;
  border-color: #30363d !important;
  color: #e6edf3 !important;
}

body:not(.is-light) .samgtu-hol-album-item.rarity-5 {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), #1c2128) !important;
  border-color: #d97706 !important;
}

body:not(.is-light) .samgtu-hol-toy-row.is-equipped {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: #3b82f6 !important;
}

body:not(.is-light) .samgtu-hol-day.is-claimed {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #059669 !important;
}

body:not(.is-light) .samgtu-hol-day.is-next {
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: #3b82f6 !important;
}

body:not(.is-light) .samgtu-hol-day.is-vip {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: #d97706 !important;
}

body:not(.is-light) .samgtu-hol-drop-reveal {
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: #3b82f6 !important;
}

body:not(.is-light) .samgtu-hol-collider-bar {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: #0284c7 !important;
  color: #e6edf3 !important;
}

body:not(.is-light) .samgtu-hol-anti-toggle {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: #9333ea !important;
  color: #e9d5ff !important;
}

body:not(.is-light) .samgtu-hol-toast {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
}

body:not(.is-light) .samgtu-hol-collector__rew {
  color: #38bdf8 !important;
}

/* ==========================================================================
   РЕЙТИНГ НОВОГОДНИХ ЁЛОК СТУДЕНТОВ (v5.1.0 — Light & Dark Theme)
   ========================================================================== */

.samgtu-hol-lb-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  border: 1px solid #dbe4f0 !important;
  margin-bottom: 14px !important;
}

.samgtu-hol-lb-toolbar__left,
.samgtu-hol-lb-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-lb-rank-pill {
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

.samgtu-hol-lb-identity {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: #334155 !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-lb-name-input {
  padding: 5px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #93c5fd !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  min-width: 170px !important;
}

.samgtu-hol-lb-sort {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-lb-notice {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
  font-size: 12.5px !important;
  margin-bottom: 14px !important;
}

/* Подиум Топ-3 */
.samgtu-hol-podium {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  align-items: end !important;
  margin-bottom: 16px !important;
}

.samgtu-hol-podium-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 6px !important;
  padding: 16px 14px 14px !important;
  border-radius: 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

.samgtu-hol-podium-card.rank-1 {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%) !important;
  padding-top: 22px !important;
  padding-bottom: 18px !important;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.22) !important;
}

.samgtu-hol-podium-card.rank-2 {
  border-color: #94a3b8 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

.samgtu-hol-podium-card.rank-3 {
  border-color: #d97706 !important;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%) !important;
}

.samgtu-hol-podium-card.is-me {
  box-shadow: 0 0 0 2px #2563eb, 0 10px 24px rgba(37, 99, 235, 0.18) !important;
}

.samgtu-hol-podium-medal {
  font-size: 24px !important;
  line-height: 1 !important;
}

.samgtu-hol-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
  flex-shrink: 0 !important;
}

.samgtu-hol-avatar--sm {
  width: 36px !important;
  height: 36px !important;
  font-size: 12.5px !important;
}

.samgtu-hol-podium-name {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

.samgtu-hol-podium-meta {
  font-size: 12px !important;
  color: #64748b !important;
}

.samgtu-hol-lvl-chip {
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  background: #0f172a !important;
  color: #fde047 !important;
}

.samgtu-hol-podium-sub {
  font-size: 12px !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

.samgtu-hol-podium-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 4px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

/* Список участников */
.samgtu-hol-lb-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.samgtu-hol-lb-row {
  display: grid !important;
  grid-template-columns: 44px 36px minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.samgtu-hol-lb-row:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

.samgtu-hol-lb-row.is-me {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
}

.samgtu-hol-lb-row.is-bot-only {
  opacity: 0.9 !important;
}

.samgtu-hol-lb-rank {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #475569 !important;
  text-align: center !important;
}

.samgtu-hol-lb-main {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.samgtu-hol-lb-top {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
}

.samgtu-hol-badge-muted {
  padding: 2px 7px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.samgtu-hol-you-tag {
  padding: 1px 7px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
}

.samgtu-hol-source-pill {
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

.samgtu-hol-source-pill.is-bot {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}

.samgtu-hol-source-pill.is-both {
  background: #faf5ff !important;
  color: #7e22ce !important;
  border-color: #d8b4fe !important;
}

.samgtu-hol-lb-sub {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.samgtu-hol-lb-bar {
  width: 100% !important;
  max-width: 280px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: #e2e8f0 !important;
  overflow: hidden !important;
}

.samgtu-hol-lb-bar-fill {
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #22c55e, #3b82f6, #f59e0b) !important;
}

.samgtu-hol-lb-score {
  text-align: right !important;
  min-width: 72px !important;
}

.samgtu-hol-lb-pts {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.samgtu-hol-lb-pts span {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.samgtu-hol-lb-likes {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #e11d48 !important;
}

.samgtu-hol-lb-acts {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

/* Просмотр чужой ёлки ("В гостях") */
.samgtu-hol-visit-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.samgtu-hol-visit-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.samgtu-hol-visit-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.samgtu-hol-visit-grid {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.35fr) minmax(220px, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.samgtu-hol-visit-stage {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #cbd5e1 !important;
  background: #071022 !important;
  min-height: 260px !important;
}

.samgtu-hol-visit-canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 270px !important;
}

.samgtu-hol-visit-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  border: 1px solid #dbe4f0 !important;
  background: #f8fafc !important;
}

.samgtu-hol-visit-stat {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #475569 !important;
  padding-bottom: 6px !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

.samgtu-hol-visit-stat strong {
  color: #0f172a !important;
}

.samgtu-hol-visit-toys-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  margin-top: 2px !important;
}

.samgtu-hol-visit-toys {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-bottom: 6px !important;
}

.samgtu-hol-toy-chip {
  padding: 3px 8px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

@media (max-width: 760px) {
  .samgtu-hol-lb-row {
    grid-template-columns: 36px 32px minmax(0, 1fr) !important;
  }
  .samgtu-hol-lb-score,
  .samgtu-hol-lb-acts {
    grid-column: 1 / -1 !important;
    justify-content: flex-end !important;
    text-align: left !important;
  }
  .samgtu-hol-visit-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Тёмная тема для рейтинга ёлок (v5.1.0) */
body:not(.is-light) .samgtu-hol-lb-toolbar,
body:not(.is-light) .samgtu-hol-visit-info {
  background: #1c2128 !important;
  border-color: #30363d !important;
}

body:not(.is-light) .samgtu-hol-lb-identity,
body:not(.is-light) .samgtu-hol-lb-sub,
body:not(.is-light) .samgtu-hol-podium-meta,
body:not(.is-light) .samgtu-hol-podium-sub,
body:not(.is-light) .samgtu-hol-visit-stat,
body:not(.is-light) .samgtu-hol-visit-toys-title {
  color: #8b949e !important;
}

body:not(.is-light) .samgtu-hol-lb-rank-pill {
  background: rgba(37, 99, 235, 0.16) !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}

body:not(.is-light) .samgtu-hol-lb-name-input {
  background: #0d1117 !important;
  border-color: #30363d !important;
  color: #f0f6fc !important;
}

body:not(.is-light) .samgtu-hol-lb-notice {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: #d97706 !important;
  color: #fcd34d !important;
}

body:not(.is-light) .samgtu-hol-podium-card {
  background: linear-gradient(180deg, #1c2128 0%, #161b22 100%) !important;
  border-color: #30363d !important;
}

body:not(.is-light) .samgtu-hol-podium-card.rank-1 {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22) 0%, #1c2128 100%) !important;
}

body:not(.is-light) .samgtu-hol-podium-card.rank-2 {
  border-color: #94a3b8 !important;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.16) 0%, #1c2128 100%) !important;
}

body:not(.is-light) .samgtu-hol-podium-card.rank-3 {
  border-color: #d97706 !important;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.16) 0%, #1c2128 100%) !important;
}

body:not(.is-light) .samgtu-hol-podium-name,
body:not(.is-light) .samgtu-hol-lb-top strong,
body:not(.is-light) .samgtu-hol-lb-pts,
body:not(.is-light) .samgtu-hol-visit-title,
body:not(.is-light) .samgtu-hol-visit-stat strong {
  color: #f0f6fc !important;
}

body:not(.is-light) .samgtu-hol-lb-row {
  background: #1c2128 !important;
  border-color: #30363d !important;
}

body:not(.is-light) .samgtu-hol-lb-row.is-me {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: #3b82f6 !important;
}

body:not(.is-light) .samgtu-hol-badge-muted,
body:not(.is-light) .samgtu-hol-toy-chip {
  background: #262c36 !important;
  border-color: #363e4a !important;
  color: #cbd5e1 !important;
}

body:not(.is-light) .samgtu-hol-lb-bar {
  background: #262c36 !important;
}

body:not(.is-light) .samgtu-hol-visit-stat {
  border-bottom-color: #30363d !important;
}

body:not(.is-light) .samgtu-hol-source-pill {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #059669 !important;
  color: #6ee7b7 !important;
}

body:not(.is-light) .samgtu-hol-source-pill.is-bot {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: #0284c7 !important;
  color: #7dd3fc !important;
}

body:not(.is-light) .samgtu-hol-source-pill.is-both {
  background: rgba(168, 85, 247, 0.18) !important;
  border-color: #9333ea !important;
  color: #d8b4fe !important;
}

@media (max-width: 760px) {
  .samgtu-lib-modal.samgtu-hol-modal {
    padding: 0 !important;
  }
  .samgtu-lib-modal__card.samgtu-hol-card {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }
  .samgtu-hol-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 8px 10px !important;
  }
  .samgtu-hol-head__left {
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .samgtu-hol-lvl-badge {
    padding: 4px 8px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .samgtu-hol-head__title {
    font-size: 12.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .samgtu-hol-atm-row {
    font-size: 11px !important;
    margin-top: 2px !important;
  }
  .samgtu-hol-atm-bar {
    width: 82px !important;
    height: 6px !important;
  }
  .samgtu-hol-resources {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    gap: 5px !important;
    padding-bottom: 1px !important;
  }
  .samgtu-hol-resources::-webkit-scrollbar {
    display: none !important;
  }
  .samgtu-hol-res-pill {
    flex-shrink: 0 !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
  }
  .samgtu-hol-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding: 6px 10px !important;
    gap: 5px !important;
  }
  .samgtu-hol-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .samgtu-hol-tab {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }
  .samgtu-hol-body.is-tree-tab {
    overflow: hidden !important;
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .samgtu-hol-tree-layout {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    gap: 8px !important;
  }
  .samgtu-hol-stage {
    height: 36dvh !important;
    min-height: 205px !important;
    max-height: 265px !important;
    aspect-ratio: auto !important;
    flex-shrink: 0 !important;
  }
  .samgtu-hol-stage__hint {
    display: none !important;
  }
  .samgtu-hol-picker {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 8px 10px !important;
  }
  .samgtu-hol-picker__head {
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    font-size: 12.5px !important;
  }
  .samgtu-hol-drawer-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    margin-bottom: 6px !important;
    flex-shrink: 0 !important;
  }
  .samgtu-hol-drawer-filters::-webkit-scrollbar {
    display: none !important;
  }
  .samgtu-hol-fchip {
    flex-shrink: 0 !important;
  }
  .samgtu-hol-toy-row {
    padding: 6px 8px !important;
    gap: 8px !important;
  }
  .samgtu-hol-toy-row__art {
    width: 44px !important;
    height: 44px !important;
  }
}


@media (max-width: 720px) {
  .samgtu-hol-podium-card.rank-1 {
    order: -1;
  }
}
