/* Bugtracker Mythos WoW */

.page-view-bugs {
  background: transparent !important;
}

/* Una sola barra: solo en el panel de tickets (debajo del título), a la derecha del contenido */
.has-page-views .page-view-bugs.page-view--active,
.page-view.page-view-bugs.page-view--active {
  justify-content: flex-start !important;
  align-items: stretch !important;
  overflow: hidden !important;
  overflow-y: hidden !important;
}

.page-view-bugs.page-view--active > .wrap.bugs-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: min(1120px, 92vw);
  max-width: 100%;
  margin-inline: auto;
  padding: 0.5rem clamp(0.75rem, 3vw, 1.25rem) 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.bugs-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Panel cristal oscuro (como referencia) */
.bugs-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.bugs-hero {
  flex-shrink: 0;
  text-align: center;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.25rem);
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.bugs-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.35rem);
  box-sizing: border-box;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.bugs-scroll::-webkit-scrollbar {
  width: 6px;
}

.bugs-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}

.bugs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin: 0.35rem 0 0.75rem;
}

.bugs-hero-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
  margin-inline: auto;
}

.bugs-root {
  min-height: 0;
  width: 100%;
  max-width: 100%;
}

.bugs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.8rem 0.9rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.bugs-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.bugs-detail-toolbar .bugs-filter-btn.is-active,
.bugs-detail-toolbar .btn.is-active {
  color: var(--gold);
  border-color: rgba(232, 201, 124, 0.65);
  background: rgba(232, 201, 124, 0.16);
  box-shadow: 0 0 12px rgba(232, 201, 124, 0.18);
}

.bugs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bugs-filter-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.bugs-filter-btn:hover {
  color: var(--text);
  border-color: rgba(232, 201, 124, 0.35);
}

.bugs-filter-btn.is-active {
  color: var(--gold);
  border-color: rgba(232, 201, 124, 0.6);
  background: rgba(232, 201, 124, 0.12);
  box-shadow: 0 0 10px rgba(232, 201, 124, 0.12);
}

.bugs-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.bugs-select,
.bugs-search {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

/* Desplegable estilo Comunidad (bugtracker, armería) */
.mythos-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.mythos-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 11rem;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--text-muted);
  text-align: left;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, text-shadow 0.2s;
}

.mythos-dropdown-trigger:hover,
.mythos-dropdown.is-open .mythos-dropdown-trigger {
  color: var(--gold);
  border-color: rgba(232, 201, 124, 0.45);
  text-shadow: 0 0 14px rgba(232, 201, 124, 0.28);
}

.mythos-dropdown-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mythos-dropdown-chevron {
  flex-shrink: 0;
  font-size: 0.7rem;
  opacity: 0.75;
  transition: transform 0.2s;
}

.mythos-dropdown.is-open .mythos-dropdown-chevron {
  transform: rotate(180deg);
}

.mythos-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 80;
  min-width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.45rem 0;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mythos-dropdown-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mythos-dropdown-option:hover,
.mythos-dropdown-option.is-active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.bugs-toolbar-right .mythos-dropdown--category {
  min-width: 12.5rem;
}

.bugs-toolbar-right .mythos-dropdown--priority {
  min-width: 11.5rem;
}

.bugs-form .mythos-dropdown {
  width: 100%;
}

.bugs-form .mythos-dropdown-trigger {
  width: 100%;
  min-width: 0;
}

.bugs-form .mythos-dropdown-panel {
  min-width: 100%;
  z-index: 320;
}

.bugs-search {
  min-width: 10rem;
}

.bugs-user {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.bugs-user strong {
  color: var(--gold);
}

.bugs-board {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
}

.bugs-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1.1rem;
  background: rgba(12, 16, 26, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 2px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* Cerrados: franja dorada (no resuelto) o verde (resuelto) */
.bugs-row--unresolved {
  border-left: 4px solid rgba(232, 201, 124, 0.88);
  background: linear-gradient(
    90deg,
    rgba(232, 201, 124, 0.14) 0%,
    rgba(12, 16, 26, 0.72) 14%,
    rgba(12, 16, 26, 0.72) 100%
  );
}

.bugs-row--resolved {
  border-left: 4px solid rgba(90, 200, 130, 0.92);
  background: linear-gradient(
    90deg,
    rgba(90, 200, 130, 0.16) 0%,
    rgba(12, 16, 26, 0.72) 14%,
    rgba(12, 16, 26, 0.72) 100%
  );
}

.bugs-row--unresolved:hover,
.bugs-row--unresolved.is-expanded {
  border-color: rgba(232, 201, 124, 0.5);
}

.bugs-row--resolved:hover,
.bugs-row--resolved.is-expanded {
  border-color: rgba(90, 200, 130, 0.52);
}

.bugs-row:hover:not(.bugs-row--resolved):not(.bugs-row--unresolved) {
  border-color: rgba(255, 255, 255, 0.14);
}

.bugs-row--unresolved:hover:not(.is-expanded),
.bugs-row--resolved:hover:not(.is-expanded) {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.bugs-row--unresolved:hover:not(.is-expanded) {
  box-shadow: 0 0 14px rgba(232, 201, 124, 0.14), 0 4px 18px rgba(0, 0, 0, 0.35);
}

.bugs-row--resolved:hover:not(.is-expanded) {
  box-shadow: 0 0 14px rgba(90, 200, 130, 0.16), 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Ticket abierto: brillo + partículas (mantiene verde/dorado de arriba) */
.bugs-row.is-expanded {
  cursor: default;
  padding: 1rem 1.15rem 1.1rem;
  overflow: hidden;
}

.bugs-row.is-expanded.bugs-row--unresolved {
  background: linear-gradient(
    105deg,
    rgba(232, 201, 124, 0.18) 0%,
    rgba(10, 16, 24, 0.9) 16%,
    rgba(10, 16, 24, 0.9) 100%
  );
}

.bugs-row.is-expanded.bugs-row--resolved {
  background: linear-gradient(
    105deg,
    rgba(90, 200, 130, 0.2) 0%,
    rgba(10, 16, 24, 0.9) 16%,
    rgba(10, 16, 24, 0.9) 100%
  );
}

.bugs-row.is-expanded::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(90, 200, 130, 0.9) 0%,
    rgba(126, 200, 255, 0.45) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.bugs-row.is-expanded::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.45;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 78% 18%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 44% 68%, rgba(200, 255, 220, 0.5), transparent),
    radial-gradient(1px 1px at 88% 72%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 26% 84%, rgba(255, 255, 255, 0.3), transparent);
}

.bugs-row.is-expanded.bugs-row--resolved {
  border-color: rgba(90, 200, 130, 0.48);
  box-shadow:
    0 0 0 1px rgba(90, 200, 130, 0.18),
    0 0 28px rgba(90, 200, 130, 0.2),
    0 10px 36px rgba(0, 0, 0, 0.45);
}

.bugs-row.is-expanded.bugs-row--unresolved {
  border-color: rgba(232, 201, 124, 0.45);
  box-shadow:
    0 0 0 1px rgba(232, 201, 124, 0.14),
    0 0 24px rgba(232, 201, 124, 0.16),
    0 10px 36px rgba(0, 0, 0, 0.45);
}

.bugs-row.is-expanded.bugs-row--unresolved::before {
  background: linear-gradient(
    90deg,
    rgba(232, 201, 124, 0.85) 0%,
    rgba(126, 200, 255, 0.35) 50%,
    transparent 100%
  );
}

.bugs-row-summary,
.bugs-row-expand {
  position: relative;
  z-index: 1;
}

.bugs-resolution-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.bugs-resolution-note--yes .bugs-resolution-dot {
  background: #7ee0a0;
  box-shadow: 0 0 8px rgba(90, 200, 130, 0.6);
}

.bugs-resolution-note--no .bugs-resolution-dot {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 201, 124, 0.45);
}

.bugs-row-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1.25rem;
  align-items: center;
  width: 100%;
}

.bugs-row-summary > div:first-child {
  min-width: 0;
}

.bugs-row-expand {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
  width: 100%;
}

.bugs-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.bugs-row-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bugs-row-meta {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.bugs-row-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.2rem;
}

.bugs-row-engagement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.bugs-row-stat {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bugs-row-stat--comments::before {
  content: "💬 ";
  opacity: 0.85;
}

.bugs-row-like {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.bugs-row-like:hover {
  color: #f0a8a8;
  border-color: rgba(240, 120, 120, 0.45);
}

.bugs-row-like.is-liked {
  color: #ff8a8a;
  border-color: rgba(255, 120, 120, 0.55);
  background: rgba(255, 100, 100, 0.12);
}

.bugs-row-like-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.bugs-row-side {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.bugs-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  vertical-align: middle;
}

.bugs-badge--status-open {
  background: rgba(100, 180, 255, 0.15);
  color: #8ec8ff;
}

.bugs-badge--status-triage {
  background: rgba(232, 201, 124, 0.18);
  color: var(--gold);
}

.bugs-badge--status-in_progress {
  background: rgba(180, 140, 255, 0.15);
  color: #c9b0ff;
}

.bugs-badge--status-fixed {
  background: rgba(90, 200, 130, 0.15);
  color: #7ee0a0;
}

.bugs-badge--resolution-yes {
  background: rgba(50, 140, 90, 0.45);
  color: #b8f0d0;
  border: 1px solid rgba(90, 200, 130, 0.45);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.74rem;
  line-height: 1.3;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  max-width: 100%;
}

.bugs-badge--resolution-no {
  background: rgba(232, 201, 124, 0.22);
  color: #edd08a;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.74rem;
  line-height: 1.3;
  padding: 0.18rem 0.55rem;
  max-width: 100%;
}

.bugs-resolution-note {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bugs-resolution-note--yes {
  background: rgba(90, 200, 130, 0.08);
  border: 1px solid rgba(90, 200, 130, 0.25);
}

.bugs-resolution-note--no {
  background: rgba(232, 201, 124, 0.08);
  border: 1px solid rgba(232, 201, 124, 0.25);
}

.bugs-resolution-note-text {
  color: var(--text-muted);
}

.bugs-staff-resolve {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-right: 0.75rem;
  margin-right: 0.75rem;
  border-right: 1px solid var(--border-subtle);
}

.bugs-detail-toolbar .bugs-staff-resolve .btn.is-active {
  box-shadow: var(--glow-gold);
}

.bugs-badge--status-closed {
  background: rgba(140, 140, 150, 0.2);
  color: #b0b0bc;
}

.bugs-badge--pri-critical {
  background: rgba(224, 85, 85, 0.2);
  color: var(--danger);
}

.bugs-badge--pri-high {
  background: rgba(255, 140, 80, 0.18);
  color: #ffb080;
}

.bugs-badge--pri-medium {
  background: rgba(232, 201, 124, 0.12);
  color: var(--gold);
}

.bugs-badge--pri-low {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.bugs-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bugs-detail-card {
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
}

.bugs-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bugs-detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.bugs-detail-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.bugs-staff-box {
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.bugs-staff-box h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.bugs-staff-hint {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
}

.bugs-staff-hint code {
  font-size: 0.85em;
}

.bugs-staff-panel {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.bugs-staff-panel-hint {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.bugs-staff-panel-hint code {
  font-size: 0.82em;
}

.bugs-staff-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.bugs-staff-add .bugs-search {
  flex: 1 1 10rem;
  min-width: 8rem;
}

.bugs-staff-roster {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.bugs-staff-roster li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.bugs-staff-roster li span {
  color: var(--text-muted);
  font-size: 0.85em;
}

.bugs-staff-panel-empty {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bugs-row-open {
  display: block;
  font-size: 0.82rem;
  color: var(--gold);
  margin-top: 0.25rem;
}

.bugs-row.is-expanded .bugs-row-open {
  color: #c8e06a;
}

.bugs-comments {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.bugs-comments-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

.bugs-comments-empty,
.bugs-comments-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bugs-comment-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bugs-comment {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.bugs-comment--staff {
  background: rgba(232, 201, 124, 0.07);
  border-color: rgba(232, 201, 124, 0.2);
}

.bugs-badge--staff {
  font-size: 0.62rem;
  padding: 0.08rem 0.4rem;
  background: rgba(232, 201, 124, 0.2);
  color: var(--gold);
  border: 1px solid rgba(232, 201, 124, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bugs-comment-meta {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bugs-comment-body {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.bugs-comment-form {
  margin-top: 1rem;
}

.bugs-textarea {
  width: 100%;
  min-height: 5rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--bg-deep, #0f1419);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  resize: vertical;
}

.bugs-staff-actions--primary {
  margin-bottom: 0.75rem;
}

.bugs-staff-sub {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bugs-staff-actions .btn.is-active {
  border-color: var(--gold-soft, #c9a227);
  color: var(--gold-soft, #c9a227);
}

.bugs-staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bugs-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
}

.bugs-empty--error {
  border-color: rgba(224, 85, 85, 0.45);
  color: var(--text);
}

.bugs-empty--error strong {
  color: var(--danger);
}

.bugs-form-error:not([hidden]) {
  display: block;
}

.bugs-note {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.88;
}

.bugs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.bugs-breadcrumb button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
}

.bugs-breadcrumb button:hover {
  text-decoration: underline;
}

.bugs-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  opacity: 0.7;
}

.bugs-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(540px, 92vw);
  color: var(--text);
}

.bugs-dialog::backdrop {
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(6px);
}

.bugs-dialog-panel {
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(232, 201, 124, 0.22);
  border-radius: var(--radius);
}

.bugs-dialog-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.bugs-form label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.bugs-form .bugs-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.bugs-input,
.bugs-textarea,
.bugs-form select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text);
  box-sizing: border-box;
}

.bugs-textarea {
  resize: vertical;
  min-height: 8rem;
}

.bugs-form-error {
  margin: 0 0 0.75rem;
  color: var(--danger);
  font-size: 0.88rem;
}

.bugs-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.bugs-form label:has(#bugs-description) {
  margin-bottom: 0.4rem;
}

.bugs-attach-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bugs-form .bugs-attach-field {
  margin-top: -0.55rem;
  margin-bottom: 1.35rem;
}

.bugs-comment-form > .field {
  margin-bottom: 0.35rem;
}

.bugs-comment-form .bugs-textarea {
  margin-bottom: 0.25rem;
}

.bugs-comment-form .bugs-attach-field {
  margin-top: -0.55rem;
  margin-bottom: 1.35rem;
}

.bugs-attach-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bugs-attach-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.bugs-attach-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.bugs-attach-choose {
  flex-shrink: 0;
}

.bugs-attach-filename {
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 100%;
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bugs-attach-filename.is-empty {
  font-style: italic;
  opacity: 0.88;
}

.bugs-attach-errors {
  margin: 0;
  font-size: 0.85rem;
  color: var(--danger);
}

.bugs-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.15rem 0 0.85rem;
  padding-top: 0.15rem;
}

.bugs-attach-preview[hidden] {
  display: none !important;
  margin: 0;
  padding: 0;
}

.bugs-comment-form > .btn {
  margin-top: 0;
}

.bugs-attach-preview-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.bugs-attach-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bugs-attach-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(8, 10, 16, 0.88);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bugs-attach-preview-remove:hover {
  background: rgba(200, 70, 70, 0.85);
  border-color: rgba(255, 120, 120, 0.5);
  color: #fff;
}

.bugs-attach-count {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bugs-attach-count[hidden] {
  display: none !important;
}

.bugs-attachments {
  margin: 1rem 0 0;
}

.bugs-attachments-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bugs-attachments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bugs-attachments-grid li {
  margin: 0;
}

.bugs-attach-link {
  display: block;
  width: 120px;
  height: 90px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bugs-attach-link:hover {
  border-color: rgba(212, 175, 110, 0.55);
  box-shadow: 0 0 0 2px rgba(212, 175, 110, 0.15);
}

.bugs-attach-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bugs-comment-attachments {
  margin-top: 0.75rem;
}

/* Modales confirm / alert (bugtracker) */
.mythos-dialog {
  margin: auto;
}

.mythos-dialog-panel {
  text-align: center;
  padding: 1.75rem 1.5rem 1.5rem;
}

.mythos-dialog-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  padding: 0 1.5rem 0 0;
}

.mythos-dialog-eyebrow {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mythos-dialog-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  margin: 0.1rem 0 0;
  max-width: 22rem;
  line-height: 1.35;
}

.mythos-dialog-highlight #mythos-confirm-highlight-id {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.mythos-dialog-highlight-sep {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-muted);
  margin: 0 0.2rem;
}

.mythos-dialog-highlight-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.mythos-dialog-desc {
  margin: 0.35rem 0 0;
  line-height: 1.45;
  max-width: 22rem;
}

.mythos-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.mythos-dialog-actions .btn {
  min-width: 7.5rem;
}

.mythos-dialog-ok--danger {
  background: linear-gradient(180deg, #a84848 0%, #7a2e2e 100%);
  border-color: rgba(255, 140, 120, 0.45);
  color: #fff;
}

.mythos-dialog-ok--danger:hover {
  background: linear-gradient(180deg, #c05858 0%, #8f3838 100%);
}

@media (max-width: 640px) {
  .bugs-row-summary {
    grid-template-columns: 1fr;
  }

  .bugs-row-side {
    text-align: left;
  }
}
