/* PLANIFICADOR NOCTURNO. Estilos locales; no altera los demás paneles. */
.tonight-panel {
  margin: 18px 0;
  border: 1px solid #665585;
  border-radius: 16px;
  background: linear-gradient(120deg, #282242, #142c43);
  overflow: hidden;
}
.tonight-panel > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
}
.tonight-panel > summary::-webkit-details-marker {
  display: none;
}
.tonight-panel > summary::after {
  content: '+';
  font-size: 26px;
  color: #c4b5ff;
}
.tonight-panel[open] > summary::after {
  content: '−';
}
.tonight-panel > summary > span:first-child {
  display: grid;
  gap: 5px;
}
.tonight-panel > summary strong {
  font-size: 18px;
  color: #f3edff;
}
.tonight-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: #cab9ee;
  line-height: 1.5;
}
.tonight-summary {
  margin-left: auto;
  color: #b9cdeb;
  font-size: 12px;
  text-align: right;
  line-height: 1.6;
}
.tonight-content {
  border-top: 1px solid #948ac22b;
  padding: 20px;
}
.tonight-overview {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 15px;
}
.tonight-best,
.tonight-empty,
.tonight-phase {
  border-radius: 12px;
  padding: 17px;
  border: 1px solid #557da0;
  background: #183b50;
  line-height: 1.7;
}
.tonight-best > strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  color: #ebf6ff;
}
.tonight-best p {
  color: #cfdfef;
  margin: 9px 0 14px;
  font-size: 13px;
}
.tonight-phase {
  background: #382d49;
  border-color: #796185;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.tonight-phase strong {
  color: #fff0d9;
  font-size: 19px;
}
.tonight-phase > span:not(.tonight-kicker) {
  color: #f2d7ae;
}
.tonight-phase p {
  font-size: 12px;
  margin: 0;
  color: #d0c3dc;
}
.tonight-empty {
  color: #e7dbf4;
  border-color: #7d6587;
  background: #352a43;
  font-size: 14px;
}
.tonight-content h3 {
  margin: 23px 0 10px;
  font-size: 14px;
  color: #eadfff;
}
.tonight-windows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tonight-windows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #52718b;
  border-radius: 10px;
  padding: 12px;
  background: #17324a;
  font-size: 12px;
  line-height: 1.7;
}
.tonight-content button {
  border: 1px solid #9bbdea;
  border-radius: 8px;
  padding: 9px 12px;
  background: #2c4b6e;
  color: #f1f7ff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.tonight-content button:hover {
  background: #395f88;
  border-color: #d8eaff;
}
.tonight-content button:focus-visible,
.tonight-panel > summary:focus-visible {
  outline: 2px solid #e0d5ff;
  outline-offset: 3px;
}
.tonight-note {
  color: #c7c7df;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 13px;
}
.tonight-regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tonight-region {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #66577f;
  border-radius: 11px;
  background: #292642;
  padding: 15px;
}
.tonight-region[data-grazing='true'] {
  background: #443324;
  border-color: #ad8753;
}
.tonight-region strong {
  color: #eee3ff;
  font-size: 14px;
  line-height: 1.5;
}
.tonight-region[data-grazing='true'] strong {
  color: #ffe2b5;
}
.tonight-region span {
  font-size: 12px;
  color: #d7c7ec;
  line-height: 1.5;
}
.tonight-region[data-grazing='true'] span {
  color: #f8d59e;
}
.tonight-region small {
  color: #bdbcd2;
  line-height: 1.6;
}
.tonight-region button {
  margin-top: auto;
}
.tonight-criteria {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #938cb333;
  color: #b4bed2;
  font-size: 11px;
  line-height: 1.8;
}
.tonight-criteria a {
  color: #d5c4ff;
}
@media (max-width: 680px) {
  .tonight-panel > summary {
    gap: 10px;
    padding: 15px;
    flex-wrap: wrap;
  }
  .tonight-panel > summary > span:first-child {
    flex: 1;
  }
  .tonight-panel > summary::after {
    order: 1;
  }
  .tonight-summary {
    width: 100%;
    margin-left: 0;
    text-align: left;
    order: 2;
  }
  .tonight-content {
    padding: 12px;
  }
  .tonight-overview,
  .tonight-regions {
    grid-template-columns: 1fr;
  }
  .tonight-best > strong {
    font-size: 19px;
  }
  .tonight-windows li {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
}
