#home-dialog[data-panel="report"] {width:960px;height:min(650px,calc(100svh - 28px))}
#home-dialog[data-panel="report"] .home-dialog-body {display:grid;overflow:hidden;padding:12px 16px}
#home-report {min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px}
.home-report-summary {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:9px 13px;border:1px solid var(--edge);background:linear-gradient(105deg,#1d2c29,#13211f);
}
.home-report-summary h3 {color:#ffedcb;font-size:clamp(19px,3vw,30px);line-height:1.1}
.home-report-summary small {display:block;font-size:.73rem}
.report-result {text-align:right}
.report-scroll {min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#a9895c #172321;overscroll-behavior:contain;padding:2px 3px 4px}
.report-scroll [role="tabpanel"]:focus-visible {outline-offset:-2px}
.report-matchup {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:clamp(4px,1.2vw,14px);align-items:start}
.report-versus {margin-top:10px;color:var(--gold);font:700 .75rem var(--display)}
.report-side {--side:#4f719e;min-width:0}
.report-side[data-faction="sahran"] {--side:#a28047}
.report-side[data-faction="maristel"] {--side:#a25464}
.report-side[data-faction="silvaren"] {--side:#4c8b70}
.report-side>header {
  display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:5px;
  padding:5px 8px;border:1px solid var(--edge);border-inline-start:3px solid var(--side);
  background:linear-gradient(90deg,color-mix(in srgb,var(--side),#162321 64%),#14211f);
}
#home-report h4 {font:clamp(1rem,2vw,1.25rem) var(--display);margin:0}
.report-side>header span,.report-side>header p {color:#d8d8c9;font-size:.72rem}
.report-side>header p {grid-column:1/-1}
.report-side ul,.report-rewards ul,.report-combat-log {margin:0;padding:0;list-style:none;display:grid;gap:5px}
.report-side>ul,.report-monster-group ul {margin-top:5px}
.report-unit {
  --status-color:#abd6b1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;
  padding:5px 7px;border:1px solid var(--edge);background:#152220;
}
.report-unit[data-status="defeated"] {--status-color:#ffaca4;background:#302322}
.report-unit[data-status="retreated"] {--status-color:#f1ca82}
.report-unit-portrait {
  position:relative;display:grid;place-items:center;width:clamp(34px,5vw,57px);aspect-ratio:1;
  background:radial-gradient(ellipse at top,#655842,#1a2526);border:1px solid #ba9b67a3;
}
.report-unit-portrait img {width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.report-unit[data-status="defeated"] img {filter:grayscale(.85) brightness(.74)}
.report-unit-portrait b {
  position:absolute;inset:0;display:grid;place-content:center;color:#ff625b;
  font:800 clamp(35px,5vw,56px)/.75 "Segoe UI",sans-serif;text-shadow:0 2px 4px #170000,0 0 6px #170000;
}
.report-unit-heading {display:flex;justify-content:space-between;align-items:baseline;column-gap:5px;flex-wrap:wrap}
.report-unit-heading strong {font:600 clamp(.87rem,1.6vw,1.12rem) var(--display)}
.report-unit-status {font-size:.72rem;font-weight:650;color:var(--status-color)}
.report-unit-info p,.report-unit-hp span {color:#cbccbf;font-size:.72rem}
.report-unit-hp {display:flex;align-items:center;gap:6px}
.report-unit-hp meter {width:auto;flex:1;min-width:18px;height:8px}
.report-unit-hp span {white-space:nowrap;font-variant-numeric:tabular-nums}
.report-unit-hp meter::-webkit-meter-bar {border:0;background:#0a1513}
.report-unit-hp meter::-webkit-meter-optimum-value {background:var(--status-color)}
.report-monster-group {margin-top:8px}
.report-monster-group h4 {font-size:.91rem!important;color:#e9cd9b}
.report-no-data {margin:6px 0;padding:8px;color:var(--muted);border:1px solid var(--edge);background:#152220;font-size:.85rem}
.home-report-columns {display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start}
.home-report-columns>section {min-width:0;border:1px solid var(--edge);background:#152220;padding:9px 12px}
.home-report-columns dl {margin:4px 0 0}
.report-overview dl+dl {margin-top:8px}
.report-rewards li {padding:5px 0;border-bottom:1px solid var(--edge)}
.report-rewards li>div {display:flex;gap:5px;justify-content:space-between;flex-wrap:wrap}
.report-rewards li span,.report-rewards li p {font-size:.76rem;color:var(--muted)}
.report-combat-log li {display:flex;gap:12px;border:1px solid var(--edge);background:#152220;padding:7px 10px;font-size:.87rem}
.report-combat-log li>span {min-width:60px;color:var(--gold)}
.report-combat-log li p {color:#d9d8c7}
@media(max-height:500px) {
  #home-dialog[data-panel="report"] .home-dialog-body {padding:7px 10px}
  #home-report {gap:5px}
  .home-report-summary {padding:5px 9px}
  #home-dialog .report-tabs button {min-height:34px}
}
@media(max-width:480px) {
  .report-matchup,.home-report-columns {grid-template-columns:1fr}
  .report-versus {display:none}
}
