.raid-hero {
  margin-bottom: 24px;
}

.raid-hero p {
  color: var(--text-muted);
  max-width: 640px;
}

.raid-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.raid-tabs {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.raid-tabs button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 18px;
  font: inherit;
  cursor: pointer;
}

.raid-tabs button.is-active {
  background: var(--gradient-neon);
  color: #0a0608;
  font-weight: 600;
}

.raid-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.raid-source,
.raid-error {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.raid-error {
  color: #e88;
}

.raid-sheet.raid-table-wrap {
  border-radius: var(--radius) var(--radius) 0 0;
}

.raid-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 12, 16, 0.6);
}

.raid-sheet--fold tbody:nth-of-type(n + 3) {
  display: none;
}

.raid-sheet--fold tbody:nth-of-type(-n + 2) .raid-row:nth-child(n + 6) {
  display: none;
}

.raid-fold-btn {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(18, 12, 16, 0.85);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.raid-fold-btn:hover {
  background: rgba(74, 21, 32, 0.35);
}

.raid-dim {
  color: var(--text-muted);
  font-weight: 500;
}

.raid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.raid-table th,
.raid-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.raid-target {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: normal;
  min-width: 200px;
  max-width: 280px;
}

.raid-icon--wall {
  border-radius: 4px;
}

.raid-group-row th {
  background: rgba(74, 21, 32, 0.35);
  color: var(--neon-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.raid-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.raid-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.raid-row--open {
  background: rgba(74, 21, 32, 0.2);
}

.raid-cell {
  text-align: center;
  vertical-align: middle;
}

.raid-table--no-head thead {
  display: none;
}

.raid-name {
  display: block;
  font-weight: 600;
}

.raid-hp-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.raid-cell-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  min-width: 52px;
}

.raid-cell .raid-n {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.82rem;
}

.raid-x {
  opacity: 0.55;
  margin-right: 1px;
}

.raid-acts {
  min-width: 128px;
  text-align: right;
  white-space: nowrap;
}

.raid-acts-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.raid-row-calc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.raid-row-calc:hover {
  background: rgba(74, 21, 32, 0.45);
  border-color: var(--border-strong);
}

.raid-row-calc-ico {
  width: 14px;
  height: 14px;
  opacity: 0.85;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M8 6h8M8 10h2M12 10h2M8 14h2M12 14h2M8 18h8'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.raid-chev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.raid-chev-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 720px) {
  .raid-row-calc-text {
    display: none;
  }
  .raid-row-calc {
    padding: 6px 8px;
  }
  .raid-acts {
    min-width: 76px;
  }
}

.raid-chev {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.raid-row--open .raid-chev {
  transform: rotate(45deg);
}

.raid-det .btn-sm + .btn-sm {
  margin-left: 8px;
}

.raid-wizard {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.raid-wizard--pulse {
  animation: raid-wiz-pulse 1.2s ease;
}

@keyframes raid-wiz-pulse {
  0%,
  100% {
    box-shadow: none;
  }
  30% {
    box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.35);
    border-radius: var(--radius);
  }
}

.raid-wizard-lead {
  color: var(--text-muted);
  margin: -8px 0 20px;
}

.wiz-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
}

.wiz-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.wiz-card-head h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wiz-card-body {
  padding: 16px;
}

.wiz-yesno {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.wiz-yesno button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.wiz-yesno button.is-on {
  background: var(--gradient-neon);
  color: #0a0608;
  font-weight: 600;
}

.wiz-stock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.wiz-stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.wiz-stock-chip:hover {
  border-color: var(--border-strong);
  background: rgba(74, 21, 32, 0.25);
}

.wiz-stock-chip-plus {
  width: 18px;
  text-align: center;
  opacity: 0.7;
  font-weight: 700;
}

.wiz-res-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
}

.wiz-stock-active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.wiz-stock-active-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.wiz-stock-active-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
}

.wiz-stock-rm {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
}

.wiz-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.wiz-stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.wiz-stepper button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.wiz-stepper input {
  width: 72px;
  text-align: center;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
  box-shadow: none;
}

.wiz-stepper input:focus,
.wiz-stepper input:focus-visible {
  outline: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.04);
}

.wiz-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
}

.wiz-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.wiz-label {
  margin: 12px 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.wiz-target-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
}

.wiz-pick-zone {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 12px;
}

.wiz-pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wiz-pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
}

.wiz-pick-chip:hover {
  border-color: var(--border-strong);
  background: rgba(74, 21, 32, 0.3);
}

.wiz-pick-plus {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 700;
  opacity: 0.65;
}

.wiz-pick-ico {
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
}

.wiz-pick-ico--wall {
  border-radius: 4px;
}

.wiz-pick-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wiz-pick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.wiz-link-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--neon-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wiz-link-btn:hover {
  color: var(--neon-3);
}

.wiz-link-btn--muted {
  color: var(--text-muted);
  font-weight: 500;
}

.wiz-target-active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wiz-target-active-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(74, 21, 32, 0.15);
}

.wiz-target-ico {
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}

.wiz-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wiz-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.wiz-qty input {
  width: 48px;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font: inherit;
}

.wiz-rm {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.wiz-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wiz-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.wiz-mode img {
  object-fit: contain;
}

.wiz-mode.is-on {
  border-color: rgba(255, 77, 141, 0.55);
  background: rgba(74, 21, 32, 0.55);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 77, 141, 0.2);
}

.wiz-star {
  color: #f5c76a;
  font-size: 0.75rem;
}

.wiz-profit,
.wiz-set {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.wiz-profit-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.wiz-mix-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(74, 21, 32, 0.25);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.wiz-mix-chip img {
  border-radius: 8px;
  object-fit: contain;
}

.wiz-profit-total {
  margin: 12px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--neon-3);
}

.wiz-set-label {
  margin: 0 0 4px;
  font-weight: 600;
}

.wiz-set-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.wiz-set-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.wiz-set-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
}

.wiz-set-lead small {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.wiz-set-slider {
  flex: 1;
  min-width: 120px;
  accent-color: var(--neon-2);
}

.wiz-set-step span[data-wiz-set-val] {
  min-width: 2ch;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wiz-reserve {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.88rem;
  cursor: pointer;
}

.wiz-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wiz-mix-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(74, 21, 32, 0.2);
  font-weight: 600;
  font-size: 0.9rem;
}

.wiz-out {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 12, 16, 0.75);
}

.wiz-out-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.wiz-path-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wiz-status {
  font-weight: 700;
}

.wiz-status--ok {
  color: #6dd59a;
}

.wiz-status--bad {
  color: #f0a0a8;
}

.wiz-out--bad {
  border-color: rgba(240, 120, 120, 0.35);
}

.wiz-out--ok {
  border-color: rgba(109, 213, 154, 0.25);
}

.wiz-path {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.wiz-tree-line {
  height: 14px;
  margin: 0 auto;
  width: 2px;
  background: var(--border);
}

.wiz-tree-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.wiz-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  max-width: 120px;
  text-align: center;
}

.wiz-node-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  margin-bottom: 6px;
}

.wiz-node-body {
  font-size: 0.75rem;
}

.wiz-node-t {
  display: block;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.wiz-node-body strong {
  display: block;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.wiz-node-ok {
  display: block;
  margin-top: 4px;
  color: #6dd59a;
  font-size: 0.72rem;
}

.wiz-node-miss {
  display: block;
  margin-top: 4px;
  color: #f0a0a8;
  font-size: 0.72rem;
}

.wiz-node-part {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wiz-node-part em {
  font-style: normal;
  color: #8eb8ff;
}

.wiz-reset {
  margin-top: 12px;
}

.raid-detail td {
  padding: 0;
  border-bottom: 1px solid var(--border);
  white-space: normal;
}

.raid-det {
  padding: 12px 16px 18px;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.raid-det-block {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 12, 16, 0.65);
}

.raid-det-block--tip {
  border-style: dashed;
  background: rgba(74, 21, 32, 0.12);
}

.raid-det-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.raid-det-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.raid-det-label--tip {
  color: #b8a8e8;
}

.raid-det-sulfur {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.raid-det-hint {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.raid-det-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.raid-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-weight: 600;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.raid-chip img {
  border-radius: 6px;
  object-fit: contain;
}

.raid-det-tip {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.raid-det-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.raid-det-calc {
  border-radius: 999px;
}

.raid-way-s {
  color: var(--neon-3);
  font-weight: 600;
}

.raid-target-ico,
.raid-cell-ico,
.raid-th-ico {
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: auto;
}

.raid-num-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.raid-count {
  font-variant-numeric: tabular-nums;
}

.raid-th-tool {
  text-align: center;
  vertical-align: bottom;
}

.raid-th-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
}

.raid-modal-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.raid-table thead th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
}

.raid-cat-row th {
  background: rgba(74, 21, 32, 0.35);
  color: var(--neon-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.raid-sulfur-hint {
  color: var(--neon-3);
  font-weight: 600;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.raid-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .raid-layout {
    grid-template-columns: 1fr;
  }
}

.raid-plan {
  position: sticky;
  top: 88px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.raid-plan h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
}

.raid-plan ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.85rem;
}

.raid-plan li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.raid-plan-empty {
  color: var(--text-muted);
}

.raid-plan-total {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.raid-plan-remove {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.raid-melee-panel {
  margin-bottom: 8px;
}

.raid-melee-bar {
  margin-bottom: 12px;
}

.raid-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.raid-cat-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.raid-cat-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.raid-cat-pill.is-on {
  border-color: transparent;
  background: var(--gradient-neon);
  color: #0a0608;
  font-weight: 600;
}

.raid-melee-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #b8a8e8;
}

.raid-table--melee {
  font-size: 0.82rem;
}

.raid-melee-thead th {
  padding: 10px 6px;
  text-align: center;
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.raid-melee-target-th {
  text-align: left;
  padding-left: 12px;
  min-width: 180px;
}

.raid-melee-wth img {
  object-fit: contain;
  opacity: 0.9;
}

.raid-cell-pill--melee {
  min-width: 52px;
  padding: 4px 6px;
}

.raid-melee-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.1;
}

.raid-melee-unit {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.raid-cell-pill--fast .raid-melee-unit {
  color: rgba(109, 213, 154, 0.85);
}

.raid-cell-pill--melee .raid-cell-ico {
  width: 22px;
  height: 22px;
}

.raid-cell-pill--fast {
  border-color: rgba(46, 204, 113, 0.5);
  background: rgba(46, 204, 113, 0.1);
  box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.2);
}

.raid-cell-pill--fast .raid-n {
  color: #6dd59a;
}

.raid-row--folded {
  display: none;
}

.raid-sheet--fold-melee .raid-row--folded {
  display: none;
}

.raid-melee-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.raid-det--melee {
  gap: 12px;
}

.raid-melee-best {
  margin: 0;
  font-size: 0.9rem;
}

.raid-melee-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.raid-melee-stat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
}

.raid-melee-stat img {
  grid-row: 1 / 3;
}

.raid-melee-stat-name {
  font-weight: 500;
}

.raid-melee-stat-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.raid-melee-stat-time {
  grid-column: 2 / 4;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.raid-melee-stat--fast {
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.08);
}

.raid-melee-stat--fast .raid-melee-stat-val {
  color: #6dd59a;
}

.raid-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.raid-faq details {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--bg-card);
}

.raid-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.raid-faq p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.raid-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
}

.raid-modal[hidden] {
  display: none;
}

.raid-modal-card {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #161018;
  box-shadow: var(--shadow-neon);
}

.raid-modal-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
}

.raid-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.raid-best {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(74, 21, 32, 0.25);
  border: 1px solid var(--border);
}

.raid-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.raid-qty-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
  font-size: 0.9rem;
}

.raid-qty-label input {
  width: 100px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
}

.raid-solo-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.raid-solo-table th,
.raid-solo-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

body.raid-modal-open {
  overflow: hidden;
}