/* VYGENEROVANÉ z less/hladaj.less (scripts/css.sh) - needitovať, upravuj .less */
/* Našepkávač ľudí (`_hladac.html`, `hladaj.js`): pole s rozbaľovacím zoznamom výsledkov. Farby len z farby.css.
   Používa ho pozývacie okno teamu aj „Pridať člena“ na serveri. */
.hl {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.hl .form-control {
  width: 100%;
}
.hl-zoznam {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--zu-line);
  border-radius: 14px;
  box-shadow: var(--lift);
  max-height: 300px;
  overflow: auto;
}
.hl-zoznam li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--zu-ink);
  font-size: 15px;
}
.hl-zoznam li.on {
  background: var(--acc-soft);
}
.hl-meno {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hl-discord {
  flex: none;
  color: var(--zu-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}
.hl-pozn {
  margin: 6px 2px 0;
  font-size: 13.5px;
  color: var(--zu-muted);
}
.hl-chyba {
  color: var(--zla);
}
/* ---- Pozvánky cez Discord (`_dchladac.html`, `_dckarta.html`, hladaj.js) ---- */
.dc-ik {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* prepínač „Hráč zyadmap / Z Discordu“ v pozývacom okne */
.dc-prepinac {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--zu-field);
  max-width: 100%;
}
.dc-prepinac button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--zu-muted);
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-prepinac button:hover {
  color: var(--zu-ink);
}
.dc-prepinac button.on {
  background: var(--panel);
  color: var(--zu-ink);
  box-shadow: 0 0 0 1px var(--zu-line);
}
.dc-hl {
  margin-top: 2px;
}
.dc-zdroj {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--zu-muted);
}
.dc-zdroj .dc-ik {
  width: 16px;
  height: 16px;
  color: var(--acc-text);
}
.dc-zdroj span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* výsledky hľadania: zoznam v toku okna (nie plávajúci), aby ho okno neorezalo */
.dc-zoznam {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--zu-line);
  border-radius: 14px;
  background: var(--panel);
}
.dc-zoznam li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--zu-ink);
}
.dc-zoznam li.on {
  background: var(--acc-soft);
}
.dc-av {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--acc);
  color: var(--acc-ink);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.dc-av b {
  font-weight: 750;
}
.dc-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dc-meno {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.dc-meno strong {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-meno small {
  font-size: 13px;
  color: var(--zu-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-zy {
  flex: none;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--overeny-bg);
  color: var(--overeny-ink);
}
.dc-vybrany {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--zu-brand-d);
  background: var(--acc-soft);
}
.dc-vybrany .dc-vybrany-v {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* bez prepojeného Discordu / bot stratil prístup */
.dc-bez {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--zu-field);
}
.dc-bez b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.dc-bez p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--zu-muted);
}
.dc-bez .btn {
  margin-top: 2px;
}
.dc-bez-ik {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--zu-brand-soft);
  color: var(--acc-text);
  display: grid;
  place-items: center;
}
.dc-bez-ik .dc-ik {
  width: 22px;
  height: 22px;
}
.dc-bez-chyba .dc-bez-ik {
  background: var(--warn-soft);
  color: var(--warn);
}
.dc-bez-t {
  min-width: 0;
}
.dc-kto {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.dc-kto .dc-ik {
  width: 16px;
  height: 16px;
  color: var(--zu-muted);
}
.dc-kto span {
  overflow-wrap: anywhere;
}
/* karta v Nastaveniach / Bot a pozvánky */
.dc-stav {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.dc-stav b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}
.dc-stav p {
  margin: 0;
  font-size: 14.5px;
  color: var(--zu-muted);
}
.dc-stav-t {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dc-bodka {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--bodka-off);
}
.dc-bodka-ok {
  background: var(--ok);
}
.dc-bodka-chyba {
  background: var(--warn);
}
.dc-karta .zv-tlacidla {
  margin: 0;
}
.dc-pozn,
.dc-karta .st-pozn,
.dc-bez .st-pozn {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--zu-muted);
}
.dc-bez .st-pozn {
  margin: 0;
}
@media (max-width: 640px) {
  .dc-prepinac {
    display: flex;
    width: 100%;
  }
  .dc-prepinac button {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 8px;
  }
  .dc-bez {
    padding: 14px;
    gap: 12px;
  }
  .dc-zoznam {
    max-height: 240px;
  }
}
