:root {
  --bg: #0c0e12;
  --bg-raised: #12151b;
  --panel: #161a21;
  --panel-2: #1b2028;
  --panel-3: #20262f;
  --line: #2a303a;
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f3f2ee;
  --muted: #9197a4;
  --dim: #626977;
  --acid: #d6f24c;
  --acid-soft: rgba(214, 242, 76, 0.12);
  --red: #ff5d64;
  --red-soft: rgba(255, 93, 100, 0.12);
  --amber: #efb856;
  --amber-soft: rgba(239, 184, 86, 0.12);
  --blue: #65a5ff;
  --blue-soft: rgba(101, 165, 255, 0.12);
  --purple: #b991ff;
  --green: #71de9d;
  --sidebar: 232px;
  --radius: 14px;
  --font-sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Arial Narrow", "DIN Alternate", "Avenir Next Condensed", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

svg {
  display: block;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    #101217;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  padding: 0 8px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #0f1305;
  transform: skew(-5deg);
  box-shadow: 0 0 26px rgba(214, 242, 76, 0.12);
}

.brand-mark svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 0.86;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.18em;
  margin-top: 7px;
}

.side-nav {
  margin-top: 52px;
}

.nav-label {
  margin: 0 0 12px 12px;
  color: #59616f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.nav-item {
  position: relative;
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: #949aa7;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.nav-item + .nav-item {
  margin-top: 4px;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: transparent;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}

.nav-item:first-of-type svg {
  fill: currentColor;
  stroke: none;
}

.nav-item span {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.nav-item i {
  color: #4e5561;
  font-family: var(--font-display);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.nav-item:hover {
  color: var(--text);
  border-color: var(--line-soft);
}

.nav-item.is-active {
  color: var(--acid);
  border-color: rgba(214, 242, 76, 0.14);
  background: linear-gradient(90deg, rgba(214, 242, 76, 0.1), rgba(214, 242, 76, 0.015));
}

.nav-item.is-active::before {
  background: var(--acid);
}

.nav-item.is-active i {
  color: var(--acid);
}

.side-spacer {
  flex: 1;
}

.side-callout {
  display: flex;
  gap: 10px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 93, 100, 0.2);
  background: var(--red-soft);
}

.callout-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.side-callout strong {
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
}

.side-callout p {
  margin: 0;
  color: #a7a4a7;
  font-size: 10px;
  line-height: 1.6;
}

.side-status {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(239, 184, 86, 0.08);
}

.status-dot.is-live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(113, 222, 157, 0.08);
}

.side-status div {
  flex: 1;
  min-width: 0;
}

.side-status strong {
  display: block;
  color: #c7ccd4;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.side-status small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--dim);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}

.icon-button:hover {
  color: var(--text);
  border-color: #424a57;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.main {
  margin-left: var(--sidebar);
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 14, 18, 0.9);
  backdrop-filter: blur(14px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dim);
  font-size: 11px;
}

.breadcrumb i {
  color: #414752;
  font-style: normal;
}

.breadcrumb strong {
  color: #cfd3da;
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9fa5b0;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(214, 242, 76, 0.6);
}

.season-label {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.avatar-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #3b424e;
  border-radius: 50%;
  color: var(--acid);
  background: #1a1e25;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.page {
  width: min(100%, 1510px);
  margin: 0 auto;
  padding: 0 34px 32px;
}

.search-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(500px, 1.08fr);
  gap: 42px;
  align-items: end;
  padding: 42px 0 38px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.search-hero::after {
  content: "WCL";
  position: absolute;
  z-index: -1;
  right: 9%;
  bottom: -58px;
  color: rgba(255, 255, 255, 0.021);
  font-family: var(--font-display);
  font-size: 190px;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #717985;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow span {
  width: 16px;
  height: 1px;
  background: var(--acid);
}

.hero-copy h1 {
  margin: 17px 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.15vw, 48px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.06em;
}

.hero-copy h1 em {
  color: var(--acid);
  font-style: normal;
}

.hero-copy p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.search-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 52%),
    var(--bg-raised);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
}

.search-panel-top {
  display: flex;
  justify-content: space-between;
  padding: 0 3px 11px;
  color: #b6bbc4;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.search-hint {
  color: var(--dim);
  font-weight: 400;
  letter-spacing: 0;
}

.search-fields {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.62fr 55px;
}

.search-fields > label {
  min-width: 0;
  height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #101319;
}

.search-fields > label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 8px;
}

.search-fields input,
.search-fields select {
  width: 100%;
  padding: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.search-fields select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6e7581 50%),
    linear-gradient(135deg, #6e7581 50%, transparent 50%);
  background-position:
    calc(100% - 8px) 5px,
    calc(100% - 4px) 5px;
  background-repeat: no-repeat;
  background-size: 4px 4px;
}

.search-button {
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #111408;
  border: 0;
  background: var(--acid);
  transition: 160ms ease;
}

.search-button span {
  display: none;
}

.search-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.search-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.search-examples {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 2px 0;
  color: var(--dim);
  font-size: 9px;
}

.search-examples button {
  padding: 3px 7px;
  color: #8f96a1;
  border: 1px solid #282e37;
  background: transparent;
  font-size: 9px;
}

.search-examples button:hover {
  color: var(--acid);
  border-color: rgba(214, 242, 76, 0.3);
}

.view {
  display: none;
  padding-top: 30px;
  animation: viewIn 280ms ease both;
}

.view.is-active {
  display: block;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 20px;
}

.compact-heading {
  margin-bottom: 16px;
}

.section-heading h2,
.panel-heading h2 {
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.data-freshness {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 9px;
}

.data-freshness i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.ghost-button {
  min-height: 31px;
  padding: 0 10px;
  color: #8f96a2;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 9px;
}

.ghost-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

#refresh-data {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ghost-button:hover,
.ghost-button.is-active {
  color: var(--text);
  border-color: #48505c;
  background: #1b2027;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) minmax(340px, 0.76fr);
  gap: 14px;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 44%),
    var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.profile-card {
  min-width: 0;
  overflow: hidden;
}

.profile-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--acid), transparent 72%);
}

.profile-topline {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 25px;
  border-bottom: 1px solid var(--line-soft);
}

.spec-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 700;
}

.spec-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.profile-region {
  color: var(--dim);
  font-size: 9px;
}

.profile-body {
  min-height: 176px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px 18px;
}

.character-portrait {
  position: relative;
  flex: 0 0 auto;
  width: 136px;
  height: 136px;
}

.character-portrait > svg {
  position: relative;
  z-index: 1;
  width: 136px;
  height: 136px;
  overflow: visible;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.44));
}

.portrait-orbit {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(214, 242, 76, 0.18);
  border-radius: 50%;
  clip-path: polygon(0 0, 55% 0, 40% 100%, 0 100%);
  transform: rotate(20deg);
}

.portrait-orbit::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(214, 242, 76, 0.16);
  border-radius: 50%;
}

.portrait-level {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 10px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #10130b;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-row h3 {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.3vw, 34px);
  letter-spacing: -0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-mark {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: #11160a;
  border-radius: 50%;
  background: var(--acid);
  font-size: 10px;
  font-weight: 900;
}

.profile-copy > p {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.profile-copy > p span {
  color: #d2d5da;
  font-weight: 600;
}

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.traits span {
  padding: 6px 8px;
  color: #737b87;
  border: 1px solid #29303a;
  background: #12161c;
  font-size: 8px;
}

.traits b {
  margin-left: 3px;
  color: #b9bec7;
  font-family: var(--font-display);
  font-weight: 600;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 14, 0.25);
}

.profile-stats > div {
  position: relative;
  padding: 14px 20px 15px;
}

.profile-stats > div + div {
  border-left: 1px solid var(--line);
}

.profile-stats span,
.profile-stats small {
  display: block;
  color: var(--dim);
  font-size: 8px;
}

.profile-stats strong {
  display: block;
  margin: 3px 0 2px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.profile-stats strong.accent {
  color: var(--acid);
}

.verdict-card {
  padding: 20px;
  overflow: hidden;
  border-color: rgba(255, 93, 100, 0.22);
  background:
    linear-gradient(140deg, rgba(255, 93, 100, 0.08), transparent 48%),
    var(--panel);
}

.verdict-card::before {
  content: "!";
  position: absolute;
  right: 13px;
  bottom: -27px;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-size: 145px;
  font-weight: 900;
}

.verdict-head,
.panel-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.severity {
  padding: 5px 7px;
  color: var(--red);
  border: 1px solid rgba(255, 93, 100, 0.26);
  background: rgba(255, 93, 100, 0.08);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.grade-block {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 16px 0 9px;
}

.score-ring {
  --score: 72;
  position: relative;
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--score) * 1%), #292d35 0);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: #14181e;
}

.score-ring > div {
  position: relative;
  text-align: center;
}

.score-ring strong {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 0.95;
}

.score-ring span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 7px;
}

.grade-label {
  color: var(--dim);
  font-size: 8px;
}

.grade {
  display: block;
  margin: 1px 0 0;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.grade-block p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.verdict-line {
  position: relative;
  display: flex;
  min-height: 55px;
  padding: 9px 0 8px 23px;
  border-top: 1px solid var(--line-soft);
}

.quote-mark {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 29px;
}

.verdict-line p {
  margin: 0;
  color: #d0d0d1;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.verdict-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 5px 7px;
  font-size: 8px;
}

.tag.danger {
  color: #ff9599;
  background: var(--red-soft);
}

.tag.warning {
  color: #f4ca83;
  background: var(--amber-soft);
}

.tag.good {
  color: var(--acid);
  background: var(--acid-soft);
}

.audit-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
}

.metric-cell {
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
}

.metric-cell + .metric-cell {
  border-left: 1px solid var(--line);
}

.metric-icon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}

.metric-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.metric-icon.red {
  color: var(--red);
  background: var(--red-soft);
}

.metric-icon.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.metric-icon.green {
  color: var(--green);
  background: rgba(113, 222, 157, 0.1);
}

.metric-icon.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.metric-icon.purple {
  color: var(--purple);
  background: rgba(185, 145, 255, 0.1);
}

.metric-cell div {
  min-width: 0;
}

.metric-cell div span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-cell strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.metric-cell > small {
  display: none;
}

.two-column {
  display: grid;
  grid-template-columns: 1.17fr 0.83fr;
  gap: 14px;
  margin-top: 14px;
}

.logs-panel,
.insight-panel,
.damage-share-panel,
.recommendation-panel {
  min-width: 0;
  padding: 20px;
}

.text-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--acid);
  border: 0;
  background: none;
  font-size: 9px;
}

.text-button svg,
.primary-button svg,
.wide-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.log-list {
  margin-top: 12px;
}

.log-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.55fr 0.43fr 0.45fr 24px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  cursor: pointer;
}

.log-row:hover {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.015), transparent);
}

.boss-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.boss-emblem {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--acid);
  border: 1px solid #323a44;
  background:
    linear-gradient(135deg, rgba(214, 242, 76, 0.12), transparent),
    #1c2129;
  font-family: var(--font-serif);
  font-size: 12px;
}

.boss-cell div {
  min-width: 0;
}

.boss-cell strong {
  display: block;
  overflow: hidden;
  color: #e0e1e3;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-cell small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 8px;
}

.mini-parse {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.mini-parse.good {
  color: var(--acid);
}

.mini-parse.mid {
  color: var(--amber);
}

.mini-parse.bad {
  color: var(--red);
}

.mini-dps {
  font-family: var(--font-display);
  font-size: 11px;
}

.mini-deaths {
  color: var(--muted);
  font-size: 9px;
}

.mini-deaths.has-death {
  color: var(--red);
  font-weight: 700;
}

.row-chevron {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #5f6672;
  border: 1px solid transparent;
  background: transparent;
}

.row-chevron svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.tiny-label {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.findings {
  margin-top: 13px;
}

.finding {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.finding-index {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--red);
  border: 1px solid rgba(255, 93, 100, 0.25);
  background: rgba(255, 93, 100, 0.06);
  font-family: var(--font-display);
  font-size: 8px;
}

.finding strong {
  display: block;
  color: #d4d5d7;
  font-size: 10px;
}

.finding p {
  margin: 3px 0 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.5;
}

.finding em {
  margin-top: 2px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 9px;
  font-style: normal;
}

.finding.warning .finding-index {
  color: var(--amber);
  border-color: rgba(239, 184, 86, 0.25);
  background: var(--amber-soft);
}

.finding.warning em {
  color: var(--amber);
}

.insight-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 8px;
}

.confidence-bar {
  flex: 1;
  height: 3px;
  background: #282d35;
}

.confidence-bar i {
  display: block;
  height: 100%;
  background: var(--acid);
}

.insight-footer strong {
  color: #aeb4bd;
  font-family: var(--font-display);
  font-size: 9px;
}

.next-action {
  position: relative;
  min-height: 100px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 20px 22px 20px 0;
  overflow: hidden;
  border: 1px solid rgba(214, 242, 76, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(214, 242, 76, 0.09), transparent 58%),
    #151a19;
}

.next-number {
  height: 58px;
  display: grid;
  place-items: center;
  color: #10130b;
  background: var(--acid);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.next-action h3 {
  margin: 4px 0;
  font-family: var(--font-serif);
  font-size: 18px;
}

.next-action p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.primary-button,
.wide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 16px;
  color: #10130b;
  border: 0;
  background: var(--acid);
  font-size: 10px;
  font-weight: 700;
}

.primary-button:hover,
.wide-button:hover {
  filter: brightness(1.08);
}

/* Records view */

.segmented-control {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: #111419;
}

.segmented-control button {
  height: 28px;
  padding: 0 12px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 9px;
}

.segmented-control button.is-active {
  color: #14180b;
  background: var(--acid);
  font-weight: 700;
}

.records-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.6fr) minmax(280px, 0.6fr);
  gap: 14px;
}

.records-table-panel {
  min-width: 0;
  padding: 8px 18px 14px;
  overflow: hidden;
}

.table-header,
.record-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) 0.62fr 0.38fr 0.54fr 0.34fr 0.42fr 0.62fr;
  gap: 12px;
  align-items: center;
}

.table-header {
  height: 40px;
  color: #606873;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.record-row {
  position: relative;
  min-height: 65px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: 140ms ease;
}

.record-row:last-child {
  border-bottom: 0;
}

.record-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.record-row.is-selected {
  margin: 0 -18px;
  padding-right: 24px;
  padding-left: 24px;
  border-left: 2px solid var(--acid);
  background: var(--acid-soft);
}

.record-row .boss-cell strong {
  font-size: 11px;
}

.difficulty-chip {
  width: fit-content;
  padding: 3px 6px;
  color: #c5cad2;
  border: 1px solid #333a44;
  font-size: 8px;
}

.difficulty-chip.mythic {
  color: #f28489;
  border-color: rgba(255, 93, 100, 0.26);
  background: var(--red-soft);
}

.record-score {
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #10140b;
  background: var(--acid);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.record-score.mid {
  background: var(--amber);
}

.record-score.bad {
  color: white;
  background: #7f3039;
}

.record-value {
  color: #bac0c9;
  font-family: var(--font-display);
  font-size: 10px;
}

.record-value.danger {
  color: var(--red);
}

.record-date {
  color: var(--dim);
  font-size: 8px;
}

.selected-report-card {
  height: fit-content;
  padding: 21px;
  overflow: hidden;
}

.selected-report-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  top: -80px;
  border: 1px solid rgba(214, 242, 76, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(214, 242, 76, 0.025),
    0 0 0 50px rgba(214, 242, 76, 0.015);
}

.report-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.report-card-head h3 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 21px;
}

.report-rank {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 11px;
}

.report-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
}

.report-score-row > strong {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 55px;
  line-height: 0.9;
}

.report-score-row > div {
  flex: 1;
}

.report-score-row span {
  color: var(--muted);
  font-size: 8px;
}

.percentile-bar {
  height: 4px;
  margin-top: 7px;
  background: #292f37;
}

.percentile-bar i {
  display: block;
  height: 100%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(214, 242, 76, 0.24);
}

.report-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.report-stats > div {
  padding: 11px 12px;
}

.report-stats > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.report-stats > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.report-stats span,
.report-stats b {
  display: block;
}

.report-stats span {
  color: var(--dim);
  font-size: 8px;
}

.report-stats b {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 13px;
}

.danger-text {
  color: var(--red) !important;
}

.report-verdict {
  margin: 17px 0;
  padding: 12px;
  border-left: 2px solid var(--red);
  background: var(--red-soft);
}

.report-verdict span {
  color: var(--red);
  font-size: 8px;
  font-weight: 700;
}

.report-verdict p {
  margin: 4px 0 0;
  color: #e1d8d9;
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.6;
}

.wide-button {
  width: 100%;
}

/* Comparison view */

.select-benchmark {
  min-width: 190px;
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 3px;
  padding: 9px 11px 9px 13px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.select-benchmark span {
  grid-column: 1;
  color: var(--dim);
  font-size: 8px;
}

.select-benchmark strong {
  grid-column: 1;
  color: #d4d7dc;
  font-size: 10px;
}

.select-benchmark svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.duel-card {
  overflow: hidden;
}

.duel-head {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr 124px 1fr;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(214, 242, 76, 0.06), transparent 38%, transparent 62%, rgba(101, 165, 255, 0.06));
}

.duel-player {
  display: flex;
  align-items: center;
  gap: 11px;
}

.duel-player.benchmark {
  justify-content: flex-end;
  text-align: right;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #11140b;
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}

.benchmark .mini-avatar {
  color: #0e1520;
  background: var(--blue);
}

.duel-player strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 19px;
}

.duel-player small {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 8px;
}

.versus {
  text-align: center;
}

.versus span {
  display: block;
  color: #5c636e;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
}

.versus small {
  color: var(--dim);
  font-size: 7px;
}

.duel-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.duel-metrics > div {
  min-width: 0;
  padding: 18px 22px;
}

.duel-metrics > div + div {
  border-left: 1px solid var(--line);
}

.duel-metrics > div > span {
  color: var(--muted);
  font-size: 8px;
}

.duel-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0;
}

.duel-values strong {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 19px;
}

.duel-values small {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 10px;
}

.split-bar {
  display: flex;
  height: 3px;
  overflow: hidden;
  background: #2a3039;
}

.split-bar i {
  display: block;
  width: var(--w);
}

.you-bar {
  background: var(--acid);
}

.bench-bar {
  background: var(--blue);
}

.duel-metrics em {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  font-style: normal;
}

.duel-metrics em.loss {
  color: var(--red);
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.you-dot {
  background: var(--acid);
}

.bench-dot {
  background: var(--blue);
}

.share-chart {
  margin-top: 20px;
}

.share-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 77px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
}

.share-row + .share-row {
  border-top: 1px solid var(--line-soft);
}

.share-row > span {
  overflow: hidden;
  color: #adb3bc;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-bars {
  display: grid;
  gap: 4px;
}

.share-bar {
  position: relative;
  height: 5px;
  background: #262c34;
}

.share-bar i {
  display: block;
  height: 100%;
  background: var(--acid);
}

.share-bar.benchmark i {
  background: var(--blue);
  opacity: 0.6;
}

.share-values {
  display: flex;
  justify-content: space-between;
  color: #c3c8cf;
  font-family: var(--font-display);
  font-size: 9px;
}

.share-values small {
  color: #6f93c4;
  font-size: 8px;
}

.recommendations {
  margin-top: 14px;
}

.recommendation {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.recommendation > span {
  color: #525b67;
  font-family: var(--font-display);
  font-size: 9px;
}

.recommendation strong {
  display: block;
  color: #d7d9dc;
  font-size: 10px;
}

.recommendation p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.55;
}

.recommendation > b {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 9px;
}

.skill-table-panel {
  margin-top: 14px;
  padding: 20px;
}

.skill-table {
  margin-top: 13px;
}

.skill-table-head,
.skill-table-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) 0.65fr 0.62fr 0.72fr 1fr 0.48fr;
  gap: 12px;
  align-items: center;
}

.skill-table-head {
  height: 34px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  font-size: 8px;
}

.skill-table-row {
  min-height: 50px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
}

.ability-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ability-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--acid);
  border: 1px solid #343b45;
  background:
    radial-gradient(circle at 35% 30%, rgba(214, 242, 76, 0.22), transparent 55%),
    #1c2128;
  font-family: var(--font-serif);
  font-size: 11px;
}

.ability-cell strong {
  display: block;
  color: #d2d5d9;
  font-size: 9px;
}

.ability-cell small {
  display: block;
  color: var(--dim);
  font-size: 7px;
}

.skill-count {
  color: #d6d8dc;
  font-family: var(--font-display);
  font-size: 12px;
}

.skill-count small {
  margin-left: 4px;
  color: var(--dim);
  font-size: 8px;
}

.skill-delta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-delta-track {
  flex: 1;
  height: 3px;
  background: #2b3038;
}

.skill-delta-track i {
  display: block;
  height: 100%;
  background: var(--acid);
}

.skill-delta span {
  width: 36px;
  color: #aeb3bb;
  font-family: var(--font-display);
  font-size: 8px;
}

.judgement {
  width: fit-content;
  padding: 3px 6px;
  font-size: 7px;
}

.judgement.good {
  color: var(--acid);
  background: var(--acid-soft);
}

.judgement.warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.judgement.bad {
  color: var(--red);
  background: var(--red-soft);
}

/* Timeline view */

.timeline-actions {
  display: flex;
  gap: 4px;
}

.timeline-panel {
  padding: 18px 20px;
  overflow: hidden;
}

.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 8px;
}

.phase-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.phase-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phase-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.phase-1 {
  background: #6d7582;
}

.phase-2 {
  background: var(--acid);
}

.phase-3 {
  background: var(--amber);
}

.phase-4 {
  background: var(--red);
}

.cast-timeline {
  margin-top: 14px;
  min-width: 760px;
}

.timeline-ruler {
  display: flex;
  justify-content: space-between;
  margin-left: 76px;
  padding-bottom: 8px;
  color: #59616d;
  font-family: var(--font-display);
  font-size: 8px;
}

.timeline-lane {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 52px;
}

.lane-label {
  display: flex;
  align-items: center;
  color: #777f8b;
  border-top: 1px solid var(--line-soft);
  font-size: 8px;
}

.lane-track {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

.cast-event {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 1px;
  background: #5c6571;
}

.cast-event.buff {
  height: 4px;
  border-radius: 2px;
  background: var(--acid);
  box-shadow: 0 0 6px rgba(214, 242, 76, 0.28);
}

.cast-event.core {
  background: #9da5b0;
}

.cast-event.finisher {
  background: var(--amber);
}

.cast-event.damage {
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--red);
}

.cast-event.damage.minor {
  width: 8px;
  height: 8px;
  background: rgba(255, 93, 100, 0.42);
}

.burst-zone {
  position: absolute;
  inset: 5px auto 5px;
  border-left: 1px solid rgba(214, 242, 76, 0.18);
  border-right: 1px solid rgba(214, 242, 76, 0.18);
  background: rgba(214, 242, 76, 0.035);
}

.timeline-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.timeline-note {
  padding: 11px;
  border-top: 2px solid var(--amber);
  background: #12161c;
}

.timeline-note.danger {
  border-color: var(--red);
}

.timeline-note.good {
  border-color: var(--acid);
}

.timeline-note > span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
}

.timeline-note strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 9px;
}

.timeline-note p {
  margin: 0;
  color: var(--dim);
  font-size: 7px;
  line-height: 1.5;
}

.action-plan {
  margin-top: 14px;
  padding: 20px;
}

.action-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.action-plan-head h2 {
  margin: 5px 0 0;
  font-family: var(--font-serif);
  font-size: 20px;
}

.plan-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-score strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 24px;
}

.plan-score > span {
  color: var(--dim);
}

.plan-score b {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 30px;
}

.plan-score small {
  color: var(--dim);
  font-size: 7px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.checklist label {
  position: relative;
  min-height: 97px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #12161c;
  cursor: pointer;
}

.checklist input {
  position: absolute;
  opacity: 0;
}

.checklist label > span {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid #434b56;
  background: #0d1015;
}

.checklist input:checked + span {
  border-color: var(--acid);
  background: var(--acid);
  box-shadow: inset 0 0 0 4px #12161c;
}

.checklist strong {
  display: block;
  font-size: 10px;
}

.checklist p {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.6;
}

.checklist em {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #59616c;
  font-size: 7px;
  font-style: normal;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding: 18px 0 2px;
  color: #454c57;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* Overlays */

.loading-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  background: rgba(7, 9, 12, 0.84);
  backdrop-filter: blur(8px);
  transition: 180ms ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.scanner {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  color: var(--acid);
  border: 1px solid rgba(214, 242, 76, 0.2);
  background: #11150e;
  overflow: hidden;
}

.scanner svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: scan 1.2s linear infinite;
}

@keyframes scan {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(66px);
  }
}

.scanner-corner {
  position: absolute;
  width: 9px;
  height: 9px;
}

.scanner-corner.top-left {
  top: 4px;
  left: 4px;
  border-top: 1px solid var(--acid);
  border-left: 1px solid var(--acid);
}

.scanner-corner.top-right {
  top: 4px;
  right: 4px;
  border-top: 1px solid var(--acid);
  border-right: 1px solid var(--acid);
}

.scanner-corner.bottom-left {
  bottom: 4px;
  left: 4px;
  border-bottom: 1px solid var(--acid);
  border-left: 1px solid var(--acid);
}

.scanner-corner.bottom-right {
  bottom: 4px;
  right: 4px;
  border-bottom: 1px solid var(--acid);
  border-right: 1px solid var(--acid);
}

.loading-overlay > strong {
  font-family: var(--font-serif);
  font-size: 20px;
}

.loading-overlay > span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(214, 242, 76, 0.25);
  background: #171c17;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #11150b;
  border-radius: 50%;
  background: var(--acid);
  font-size: 11px;
  font-weight: 800;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 10px;
}

.toast div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.help-dialog {
  width: min(92vw, 500px);
  padding: 28px;
  color: var(--text);
  border: 1px solid #353c47;
  background:
    linear-gradient(135deg, rgba(214, 242, 76, 0.07), transparent 40%),
    #14181e;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.help-dialog::backdrop {
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(5px);
}

.help-dialog h2 {
  margin: 9px 0;
  font-family: var(--font-serif);
  font-size: 25px;
}

.help-dialog p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.dialog-code {
  margin: 18px 0;
  padding: 14px;
  color: var(--acid);
  border: 1px solid var(--line);
  background: #0b0e12;
  font-size: 10px;
  line-height: 1.8;
}

.dialog-note {
  font-size: 9px !important;
}

.help-dialog .primary-button {
  margin-top: 6px;
}

@media (min-width: 1450px) {
  .metric-cell > small {
    display: block;
    margin-left: auto;
    font-size: 7px;
    white-space: nowrap;
  }

  .delta.bad {
    color: var(--red);
  }

  .delta.good {
    color: var(--green);
  }

  .delta.neutral {
    color: var(--dim);
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 208px;
  }

  .page {
    padding-right: 24px;
    padding-left: 24px;
  }

  .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .search-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .profile-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .verdict-card {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 0 20px;
  }

  .verdict-head {
    grid-column: 1 / -1;
  }

  .grade-block {
    grid-row: 2 / span 2;
  }

  .verdict-line {
    align-self: end;
  }

  .verdict-tags {
    align-self: start;
  }

  .metric-cell {
    padding: 10px;
  }

  .records-layout {
    grid-template-columns: 1fr;
  }

  .selected-report-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }

  .report-card-head,
  .report-verdict,
  .selected-report-card .wide-button {
    grid-column: 1 / -1;
  }

  .report-score-row {
    grid-row: 2 / span 2;
  }

  .report-stats {
    align-self: end;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 0px;
  }

  .sidebar {
    width: 232px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.4);
  }

  .main {
    margin-left: 0;
  }

  .mobile-menu {
    display: grid;
    margin-right: 10px;
  }

  .topbar {
    justify-content: flex-start;
  }

  .topbar-right {
    margin-left: auto;
  }

  .profile-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .audit-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-cell:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-cell:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .duel-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .duel-metrics > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .duel-metrics > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .timeline-panel {
    overflow-x: auto;
  }

  .timeline-notes {
    grid-template-columns: 1fr 1fr;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .table-header,
  .record-row {
    grid-template-columns: minmax(180px, 1.4fr) 0.65fr 0.48fr 0.55fr 0.45fr;
  }

  .table-header > :nth-child(6),
  .table-header > :nth-child(7),
  .record-row > :nth-child(6),
  .record-row > :nth-child(7) {
    display: none;
  }

  .skill-table {
    overflow-x: auto;
  }

  .skill-table-head,
  .skill-table-row {
    min-width: 700px;
  }
}

@media (max-width: 620px) {
  .page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar {
    height: 56px;
    padding: 0 14px;
  }

  .breadcrumb span,
  .season-label,
  .live-pill {
    display: none;
  }

  .breadcrumb i {
    display: none;
  }

  .search-hero {
    padding: 28px 0 25px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 11px;
  }

  .search-fields {
    grid-template-columns: 1fr 1fr 55px;
  }

  .search-fields > label:first-child {
    grid-column: 1 / span 2;
  }

  .search-fields > label:nth-child(2) {
    border-top: 0;
  }

  .search-fields > label:nth-child(3) {
    border-top: 0;
  }

  .search-button {
    grid-row: 1 / span 2;
    grid-column: 3;
    height: 116px;
  }

  .search-panel-top {
    align-items: center;
  }

  .search-hint {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .profile-grid {
    display: block;
  }

  .verdict-card {
    display: block;
    margin-top: 14px;
  }

  .profile-body {
    gap: 13px;
    padding: 17px;
  }

  .character-portrait,
  .character-portrait > svg {
    width: 94px;
    height: 94px;
  }

  .profile-stats {
    grid-template-columns: 1fr 1fr;
  }

  .profile-stats > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .profile-stats > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .audit-strip {
    grid-template-columns: 1fr 1fr;
  }

  .metric-cell:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metric-cell:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .metric-cell:nth-child(5) {
    grid-column: 1 / -1;
    border-left: 0;
  }

  .next-action {
    grid-template-columns: 42px 1fr;
    padding-right: 16px;
  }

  .next-action .primary-button {
    grid-column: 1 / -1;
  }

  .table-header,
  .record-row {
    grid-template-columns: minmax(160px, 1.4fr) 0.65fr 0.5fr 0.5fr;
  }

  .table-header > :nth-child(5),
  .record-row > :nth-child(5) {
    display: none;
  }

  .selected-report-card {
    display: block;
  }

  .duel-head {
    grid-template-columns: 1fr 65px 1fr;
    padding: 13px;
  }

  .duel-player strong {
    font-size: 15px;
  }

  .duel-metrics {
    grid-template-columns: 1fr;
  }

  .duel-metrics > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .share-row {
    grid-template-columns: 93px 1fr 66px;
  }

  .timeline-notes {
    grid-template-columns: 1fr;
  }

  .page-footer {
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------ */
/* V2 additions: data-source states, comparison sequences, cast log    */
/* ------------------------------------------------------------------ */

[hidden] {
  display: none !important;
}

.live-pill.is-demo {
  color: var(--amber);
}

.live-pill.is-demo i {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(239, 184, 86, 0.55);
}

.live-pill.is-offline {
  color: var(--red);
}

.live-pill.is-offline i {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 93, 100, 0.5);
}

.status-dot.is-demo {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(239, 184, 86, 0.08);
}

.status-dot.is-error {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 93, 100, 0.08);
}

.source-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(239, 184, 86, 0.2);
  background: linear-gradient(90deg, rgba(239, 184, 86, 0.08), transparent 72%);
}

.source-strip.is-live {
  border-color: rgba(113, 222, 157, 0.18);
  background: linear-gradient(90deg, rgba(113, 222, 157, 0.07), transparent 72%);
}

.source-strip-tag {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--amber);
  border: 1px solid rgba(239, 184, 86, 0.3);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.source-strip.is-live .source-strip-tag {
  color: var(--green);
  border-color: rgba(113, 222, 157, 0.3);
}

.source-strip p {
  flex: 1;
  margin: 0;
  color: #a9afb9;
  font-size: 10px;
  line-height: 1.55;
}

.source-strip-action {
  flex: 0 0 auto;
}

.empty-panel {
  margin-top: 22px;
  padding: 52px 28px;
  text-align: center;
}

.empty-panel h2 {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-size: 28px;
}

.empty-panel > p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.empty-steps {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 30px auto 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.empty-steps > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #12161c;
  text-align: left;
}

.empty-steps b {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 16px;
}

.empty-steps span {
  color: var(--muted);
  font-size: 9px;
}

.profile-copy > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}

.profile-copy > p span + span::before {
  content: "·";
  margin-right: 6px;
  color: var(--dim);
}

#profile-data-mode {
  color: var(--acid);
}

.profile-link {
  text-decoration: none;
}

.wide-button + .wide-button {
  margin-top: 8px;
}

a.wide-button {
  text-decoration: none;
}

.wcl-link {
  color: #d4d7dc;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 9px;
}

.wcl-link:hover {
  border-color: #4a5360;
}

.benchmark-picker {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.benchmark-picker span {
  color: var(--dim);
  font-size: 8px;
}

.benchmark-picker select {
  width: 100%;
  padding: 0;
  color: #d9dce1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}

.benchmark-notice {
  margin: 0;
  padding: 10px 20px;
  color: var(--dim);
  border-top: 1px solid var(--line-soft);
  font-size: 8px;
  line-height: 1.55;
}

.compare-state {
  min-height: 230px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 38px;
  text-align: center;
}

.compare-state h3 {
  margin: 10px 0 7px;
  font-family: var(--font-serif);
  font-size: 22px;
}

.compare-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.compare-state.is-error {
  border-color: rgba(255, 93, 100, 0.25);
  background: linear-gradient(140deg, rgba(255, 93, 100, 0.05), transparent 55%);
}

.benchmark-loading .duel-metrics,
.benchmark-loading .share-chart,
.benchmark-loading .recommendations {
  opacity: 0.35;
  pointer-events: none;
}

.legend b {
  font-weight: 500;
}

.duel-metrics em.good {
  color: var(--green);
}

.duel-metrics em.neutral {
  color: var(--dim);
}

.skill-table-head,
.skill-table-row {
  grid-template-columns: minmax(160px, 1.25fr) 1fr 0.92fr 0.85fr 0.5fr;
}

.skill-table-row .skill-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.skill-table-row .skill-count small {
  margin-left: 0;
}

.share-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.share-cell b {
  color: #dce0e5;
  font-family: var(--font-display);
  font-size: 10px;
}

.share-cell small {
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 9px;
}

.share-cell .mini-share-track {
  flex: 1;
  height: 3px;
  background: #2b3038;
}

.share-cell .mini-share-track i {
  display: block;
  height: 100%;
  background: var(--acid);
}

.share-cell .mini-share-track i.bench {
  background: #697280;
}

.sequence-panel {
  margin-top: 14px;
  padding: 20px;
}

.sequence-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 15px;
}

.sequence-column {
  min-width: 0;
  border: 1px solid var(--line);
  background: #10141a;
}

.sequence-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.sequence-column-head strong {
  font-size: 10px;
}

.sequence-column-head span {
  color: var(--dim);
  font-size: 8px;
}

.sequence-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 8px;
}

.sequence-item {
  min-width: 0;
  padding: 7px;
  background: #151a21;
}

.sequence-item b {
  display: block;
  overflow: hidden;
  color: #d4d8de;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sequence-item span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 7px;
}

.sequence-item.is-cooldown {
  border-left: 2px solid var(--acid);
}

.sequence-item.is-defensive {
  border-left: 2px solid var(--amber);
}

.sequence-empty {
  padding: 22px;
  color: var(--dim);
  font-size: 9px;
  text-align: center;
}

.timeline-duration {
  padding: 5px 8px;
  color: var(--dim);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 9px;
}

.timeline-lane.lane-danger .lane-track {
  background-image:
    linear-gradient(90deg, rgba(255, 93, 100, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    calc(100% / 12) 100%,
    calc(100% / 6) 100%;
}

.cast-event.defensive {
  width: 10px;
  height: 10px;
  border: 1px solid var(--amber);
  background: transparent;
  transform: translate(-50%, -50%) rotate(45deg);
}

.cast-event.death {
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 93, 100, 0.12);
}

.cast-event.avoidable {
  width: 6px;
  height: 6px;
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(255, 93, 100, 0.55);
}

.timeline-notes .timeline-note {
  cursor: default;
}

.sequence-detail-panel {
  margin-top: 14px;
  padding: 20px;
}

.segmented-control.compact {
  padding: 2px;
}

.segmented-control.compact button {
  height: 25px;
  padding: 0 9px;
  font-size: 8px;
}

.cast-log {
  max-height: 390px;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
}

.cast-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 84px 110px 70px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
}

.cast-row:last-child {
  border-bottom: 0;
}

.cast-row.head {
  position: sticky;
  z-index: 1;
  top: 0;
  min-height: 30px;
  color: var(--dim);
  background: #151a21;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.cast-row .cast-time {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
}

.cast-row strong {
  overflow: hidden;
  color: #d8dbe0;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cast-tag {
  width: fit-content;
  padding: 3px 6px;
  color: var(--muted);
  background: #20262e;
  font-size: 7px;
}

.cast-tag.cooldown {
  color: var(--acid);
  background: var(--acid-soft);
}

.cast-tag.defensive {
  color: var(--amber);
  background: var(--amber-soft);
}

.sequence-footnote {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.help-dialog a {
  color: var(--acid);
}

.toast.is-error .toast-icon {
  color: #1a0a0b;
  background: var(--red);
}

.toast.is-error strong {
  color: #ffc0c3;
}

.loading-overlay.is-visible {
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .sequence-compare {
    grid-template-columns: 1fr;
  }

  .skill-table-head,
  .skill-table-row {
    min-width: 760px;
  }

  .skill-table {
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .source-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .source-strip p {
    flex-basis: calc(100% - 90px);
  }

  .empty-steps {
    grid-template-columns: 1fr;
  }

  .benchmark-picker {
    width: 100%;
  }

  .cast-timeline {
    min-width: 680px;
  }

  .timeline-panel {
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .source-strip {
    margin-top: 12px;
  }

  .source-strip-action {
    width: 100%;
  }

  .empty-panel {
    padding: 34px 18px;
  }

  .empty-panel h2 {
    font-size: 22px;
  }

  .benchmark-picker {
    min-width: 0;
  }

  .sequence-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cast-row {
    grid-template-columns: 54px minmax(0, 1fr) 72px 64px;
  }

  .cast-row > :nth-child(4) {
    display: none;
  }

  .sequence-detail-panel {
    padding: 15px;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-actions > * {
    width: 100%;
  }
}

/* V2 layout corrections */
.duel-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cast-event.core {
  width: 3px;
  height: 11px;
  opacity: 0.62;
}

.cast-event.finisher {
  width: 4px;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .duel-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .duel-metrics > div:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .duel-metrics > div:nth-child(5) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .duel-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duel-metrics > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .duel-metrics > div:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .duel-metrics > div:nth-child(5) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .duel-metrics {
    grid-template-columns: 1fr;
  }

  .duel-metrics > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* V2 small state helpers */
.log-list-empty,
.records-empty,
.checklist-empty,
.timeline-placeholder {
  padding: 28px 14px;
  color: var(--dim);
  font-size: 9px;
  text-align: center;
}

.timeline-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.dim-text {
  color: var(--dim);
  font-size: 8px;
}

.danger-split .you-bar {
  background: var(--red);
}

.danger-split .bench-bar {
  background: var(--green);
}

.duel-values .danger-text {
  color: var(--red);
}

.verdict-card[data-severity="CLEAN"] {
  border-color: rgba(214, 242, 76, 0.2);
  background:
    linear-gradient(140deg, rgba(214, 242, 76, 0.07), transparent 48%),
    var(--panel);
}

.verdict-card[data-severity="CLEAN"]::before {
  content: "✓";
  color: rgba(214, 242, 76, 0.04);
}

.verdict-card[data-severity="WATCH"] {
  border-color: rgba(239, 184, 86, 0.22);
  background:
    linear-gradient(140deg, rgba(239, 184, 86, 0.06), transparent 48%),
    var(--panel);
}

.log-row.is-selected {
  border-left: 2px solid var(--acid);
  background: var(--acid-soft);
}

.wcl-link {
  margin-top: 8px;
}
