.model-panel-page {
  min-height: 100vh;
  background: #151312;
  color: #f7efdf;
}
.model-panel {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.model-panel__header,
.panel-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.model-panel h1,
.model-panel h2 {
  margin-top: 0;
}
.model-panel h1 {
  color: #f2c879;
}
.eyebrow {
  margin: 0 0 0.35rem;
  color: #d6b36a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}
.panel-card {
  margin-top: 1.25rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: #211e1b;
  border: 1px solid rgba(214, 179, 106, 0.3);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}
.panel-card form {
  display: grid;
  gap: 1rem;
}
.panel-card label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}
.panel-card input,
.panel-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #68573d;
  border-radius: 5px;
  padding: 0.7rem;
  background: #12100f;
  color: #fff8eb;
  font: inherit;
}
.panel-card input:focus,
.panel-card textarea:focus {
  outline: 2px solid #d6b36a;
  outline-offset: 1px;
}
.panel-button {
  width: fit-content;
  border: 0;
  border-radius: 5px;
  padding: 0.72rem 1rem;
  background: #d6b36a;
  color: #211b11;
  font-weight: 800;
  cursor: pointer;
}
.panel-button:hover {
  background: #f1d28e;
}
.panel-button--quiet {
  background: transparent;
  border: 1px solid #d6b36a;
  color: #f7efdf;
}
.panel-link {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: #f2c879;
  text-decoration: underline;
  cursor: pointer;
}
.panel-muted,
.panel-card__title span {
  color: #c8bca8;
}
.panel-status {
  min-height: 1.4rem;
  margin-bottom: 1rem;
  color: #f2c879;
}
.panel-status[data-type='error'] {
  color: #ff9d8c;
}
.panel-status[data-type='success'] {
  color: #9fe0af;
}
.panel-divider {
  height: 1px;
  margin: 2rem 0;
  background: rgba(214, 179, 106, 0.25);
}
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.5rem;
}
.location-option {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid #514735;
  border-radius: 5px;
  font-weight: 400 !important;
}
.location-option input {
  width: auto;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.media-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0c0b0a;
  border-radius: 5px;
}
.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-delete {
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  padding: 0.25rem 0.4rem;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  cursor: pointer;
}
.story-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.story-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem;
  border: 1px solid #514735;
  border-radius: 5px;
}
.story-row small {
  color: #c8bca8;
}

/* Comentarios en el panel */
.comments-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.comment-card {
  padding: 1rem;
  border: 1px solid #514735;
  border-radius: 5px;
  background: #1a1816;
}
.comment-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.comment-card__date {
  color: #c8bca8;
  font-size: 0.875rem;
}
.comment-card__rating {
  color: #d6b36a;
}
.comment-card__text {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.comment-card__reply {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #252220;
  border-left: 3px solid #d6b36a;
  border-radius: 0 4px 4px 0;
}
.comment-card__reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.comment-card__reply p {
  margin: 0.5rem 0;
}
.comment-card__reply small {
  color: #c8bca8;
}
.comment-reply-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.comment-reply-form textarea {
  min-height: 80px;
  resize: vertical;
}
.panel-button--small {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

@media (max-width: 560px) {
  .model-panel__header,
  .panel-card__title {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel-button {
    width: 100%;
  }
}
