#kers-visitor-menu .bug-board:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
}
#kers-visitor-menu.bug-owner {
  padding: clamp(8px, 3vw, 32px);
  box-sizing: border-box;
  background: #eaf2f6;
}
.bug-owner > .bug-board {
  width: min(1120px, 100%);
  margin: auto;
  box-sizing: border-box;
  pointer-events: auto;
}
.bug-heading, .bug-thread-heading, .bug-index > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bug-heading span { color: #526373; font-size: .85rem; }
.bug-columns {
  display: grid;
  grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  border: 1px solid #cddce4;
}
.bug-index, .bug-thread { padding: 12px; min-height: 0; overflow: auto; }
.bug-index { border-right: 1px solid #cddce4; }
.bug-index > div:first-child { margin-bottom: 10px; }
.bug-ticket {
  width: 100%;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  overflow-wrap: anywhere;
}
#kers-visitor-menu .bug-ticket[aria-pressed=true] { background: #def7fa; }
.bug-status { border-radius: 20px; padding: 3px 7px; white-space: nowrap; }
.bug-status.open { background: #fde6ec; color: #892e51; }
.bug-status.checking { background: #dcecff; color: #185088; }
.bug-status.resolved { background: #e0f5e6; color: #225c33; }
.bug-thread { display: flex; flex-direction: column; gap: 10px; }
.bug-thread h3, .bug-post p { overflow-wrap: anywhere; white-space: pre-wrap; margin: 0; }
.bug-posts { flex: 1; min-height: 72px; overflow: auto; }
.bug-post { background: #f2f6f8; padding: 10px; margin-bottom: 8px; border-radius: 8px; }
.bug-post p { margin: 4px 0; }
.bug-post img { display: block; max-width: 100%; }
.bug-thread form:not([hidden]) { display: grid; gap: 6px; }
.bug-thread input, .bug-thread textarea { display: block; width: 100%; box-sizing: border-box; }
#kers-visitor-menu .bug-thread input,
#kers-visitor-menu .bug-thread textarea,
#kers-visitor-menu .bug-thread select {
  background: white;
  border: 1px solid #bacbd6;
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--ink);
}
.bug-thread textarea { resize: vertical; }
.bug-thread button[type=submit] { justify-self: end; }
.bug-preview { position: relative; width: fit-content; }
.bug-preview img { display: block; max-width: 100%; max-height: 95px; border-radius: 5px; }
#kers-visitor-menu .bug-preview button { position: absolute; top: 0; right: 0; min-height: 26px; padding: 2px 8px; }
.bug-thread [role=status] { margin: 0; color: #8a3547; font-size: .9rem; }
@media (max-width: 660px) {
  .bug-columns { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .bug-index { max-height: 125px; border-right: 0; border-bottom: 1px solid #cddce4; }
}
