.melee-evidence { margin: 20px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.melee-identities { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px; gap: 20px; padding: 20px; }
.melee-identities > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.melee-identities small, .melee-identities span { color: #999; font-size: 12px; }
.melee-identities strong { font-size: 14px; }
.melee-identities code { color: #ddd; overflow-wrap: anywhere; }
.melee-layout { display: grid; grid-template-columns: 290px 1fr; border-top: 1px solid #ffffff12; align-items: center; }
.melee-layout svg { width: 100%; max-width: 300px; margin: auto; }
.melee-diagram {
  margin: 0;
  padding: 12px;
  min-width: 0;
}

.melee-diagram figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-size: 10px;
  color: #888;
  line-height: 1.6;
}

.melee-diagram figcaption strong {
  color: #ddd;
  font-size: 12px;
}

.melee-measures { padding: 24px; }
.melee-title { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.melee-title h3 { margin: 0; font-size: 15px; }
.melee-status { font-size: 11px; border-radius: 20px; padding: 5px 10px; background: #ffffff0a; color: #aaa; }
.melee-status.review { color: #fca5a5; background: #ef444418; }
.melee-status.normal { color: #86efac; background: #4ade8012; }
.melee-measures dl { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px 24px; gap: 16px 24px; margin: 24px 0; }
.melee-measures dt { color: #888; font-size: 12px; margin-bottom: 5px; }
.melee-measures dd { margin: 0; font-size: 14px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.melee-measures p { color: #888; font-size: 12px; line-height: 1.8; margin: 0; }
@media (max-width: 700px) {
  .melee-layout, .melee-identities { grid-template-columns: 1fr; }
  .melee-layout svg { max-width: 250px; }
  .melee-identities { gap: 24px; }
}

.modal-backdrop.history-fullscreen {
  padding: 0;
  background: #101114;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.modal-backdrop.history-fullscreen .modal {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: none;
}
.history-fullscreen .modal > header {
  position: relative;
  flex: 0 0 auto;
  gap: 16px;
}
.history-fullscreen .modal-heading {
  min-width: 0;
}
.history-fullscreen .modal-heading h2 {
  overflow-wrap: anywhere;
}
.history-fullscreen .combat-history {
  flex: 1 1;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.history-fullscreen .combat-history > .panel-title {
  display: none;
}
.history-fullscreen .combat-history > .critguard-tabs {
  flex: 0 0 auto;
  padding: 16px 24px;
  flex-wrap: wrap;
}
.history-fullscreen .combat-history > p {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 24px 12px;
}
.history-fullscreen .combat-history > .table-wrap {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.history-fullscreen .combat-history table {
  min-width: 860px;
}
.history-fullscreen .combat-history thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101114;
  opacity: 1;
  color: #999;
}
.history-fullscreen .combat-history > .critguard-paging {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  background: #101114;
}
@media (max-width: 700px) {
  .history-fullscreen .modal > header {
    padding: 14px 12px;
  }
  .history-fullscreen .combat-history > .critguard-tabs {
    padding: 12px;
  }
  .history-fullscreen .combat-history > .critguard-tabs > button {
    min-width: 0;
    max-width: 100%;
  }
  .history-fullscreen .combat-history > p {
    padding: 0 12px 10px;
  }
  .history-fullscreen .combat-history > .critguard-paging {
    padding: 12px;
    justify-content: space-between;
    gap: 8px;
  }
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

