/* Favorites page layout */
.dt-fav {
  padding: 8px 0 56px;
  font-family: "Golos Text", system-ui, sans-serif;
  color: #111315;
}

.dt-fav__hero { margin-bottom: 18px; }
.dt-fav__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}
.dt-fav__count {
  font-size: 15px;
  font-weight: 500;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
}

.dt-fav__share-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #FFF7F2;
  border: 1px solid #FFD8C2;
}
.dt-fav__share-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 320px);
}
.dt-fav__share-banner-text strong { font-size: 15px; font-weight: 700; }
.dt-fav__share-banner-text span { font-size: 13.5px; color: #4B5563; line-height: 1.45; }

.dt-fav__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 16px;
  background: #F4F5F7;
  border: 1px solid #EAECF0;
}
.dt-fav__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.dt-fav__chip {
  appearance: none;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  font: 500 12.5px/1 "Golos Text", system-ui, sans-serif;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.dt-fav__chip em { font-style: normal; color: #6B7280; margin-left: 2px; font-variant-numeric: tabular-nums; }
.dt-fav__chip:hover { border-color: #FF5000; color: #111315; }
.dt-fav__chip.is-active {
  background: #111315;
  border-color: #111315;
  color: #fff;
}
.dt-fav__chip.is-active em { color: rgba(255,255,255,.72); }

.dt-fav__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dt-fav__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 13.5px/1 "Golos Text", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.dt-fav__btn--orange { background: #FF5000; color: #fff; }
.dt-fav__btn--orange:hover { background: #E34800; }
.dt-fav__btn--ghost {
  background: #fff;
  border-color: #D1D5DB;
  color: #111315;
  font-weight: 500;
}
.dt-fav__btn--ghost:hover { border-color: #FF5000; color: #FF5000; }
.dt-fav__btn--text {
  background: transparent;
  color: #6B7280;
  font-weight: 500;
  font-size: 13px;
  height: 36px;
  padding: 0 8px;
}
.dt-fav__btn--text:hover { color: #DC2626; }

.dt-fav__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.dt-fav__card-wrap {
  min-width: 0;
  transition: opacity .28s ease, transform .28s ease;
}
.dt-fav__card-wrap.is-leaving {
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
}
.dt-fav__card-wrap.is-chip-hidden { display: none; }

.dt-fav__kp-strip {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #111315;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .dt-fav__kp-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.dt-fav__kp-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
}
.dt-fav__kp-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dt-fav__kp-copy span {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.72);
  font-weight: 400;
}

.dt-fav__empty { padding: 12px 0 8px; }
.dt-fav__empty-card {
  max-width: 640px;
  margin: 24px auto;
  text-align: center;
  background: #F4F5F7;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 40px 28px;
}
.dt-fav__empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #FF5000;
  border: 1px solid #EAECF0;
}
.dt-fav__empty-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.dt-fav__empty-card p {
  margin: 0 0 20px;
  color: #6B7280;
  font-size: 14.5px;
  line-height: 1.5;
}

.dt-fav__roots { margin-top: 28px; }
.dt-fav__roots-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}
.dt-fav__roots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dt-fav__root {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #EAECF0;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.dt-fav__root:hover {
  border-color: #FF5000;
  box-shadow: 0 10px 24px rgba(17, 19, 21, .06);
}
.dt-fav__root img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #F4F5F7;
  flex: 0 0 auto;
}
.dt-fav__root span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dt-fav__root strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.dt-fav__root em {
  font-style: normal;
  font-size: 12px;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .dt-fav__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt-fav__roots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .dt-fav__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .dt-fav__actions { width: 100%; }
  .dt-fav__btn--orange,
  .dt-fav__btn--ghost { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .dt-fav__grid { grid-template-columns: 1fr; }
  .dt-fav__roots-grid { grid-template-columns: 1fr; }
  .dt-fav__empty-card { padding: 28px 18px; }
}
