.portal.loot-active { grid-template-columns: 188px minmax(0, 1fr); }
.loot-active .sidebar { position: sticky; isolation: isolate; background: #0d141c; padding-inline: 14px; }
.loot-active .sidebar::before {
  content: ""; position: absolute; inset: 397px 0 0; z-index: -1; background:
    linear-gradient(180deg,#0d141c,transparent 29%,#0d141c 100%), url("/art/loot/sidebar.jpg") center/cover no-repeat;
}
.loot-active .brand { font-family: Georgia, serif; }
.loot-active .brand small { font-family: system-ui, sans-serif; }
.loot-active .brand img { object-fit: contain; border-radius: 0; }
.loot-view {
  --loot-line: #32404e; --loot-surface: #17212d; --loot-panel: #111923; --loot-bronze: #87633e;
  background: radial-gradient(ellipse at 73% 52%,#172332 0%,#0e161f 56%,#0b1119 100%);
  font-size: 14px;
}
.loot-header { position: relative; z-index: 0; height: 185px; padding: 22px 24px 0; border-bottom: 1px solid #746046; background: #141f2b; }
.loot-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,#101720 0%,#101720d9 28%,#10172000 100%),
    linear-gradient(0deg,#101720 0%,transparent 54%),url("/art/loot/header.jpg") right 46%/auto 124% no-repeat;
}
.loot-crumb { height: 21px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot-crumb span { color: var(--gold); }
.loot-header h1 { margin-top: 12px; font: 700 clamp(32px,4vw,42px)/1 Georgia, serif; letter-spacing: -.025em; }
.loot-tabs { position: absolute; inset: auto auto 0 24px; display: flex; gap: 26px; height: 42px; }
.loot-tabs button { border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 0 2px; background: transparent; font-weight: 690; }
.loot-tabs button[aria-pressed=true] { color: var(--gold); border-color: var(--gold); }
.loot-workspace {
  display: grid; grid-template-columns: clamp(174px,15vw,214px) minmax(0,1fr) clamp(294px,25vw,352px);
  gap: 16px; padding: 22px 24px 24px;
}
.loot-zone {
  height: max(570px,calc(100vh - 231px)); min-width: 0; display: flex; flex-direction: column;
  border: 1px solid var(--loot-line); border-top-color: #60543f; border-radius: 9px;
  background: linear-gradient(145deg,#131c26,var(--loot-panel)); overflow: hidden;
}
.loot-zone-header { display: grid; align-content: center; flex: none; min-width: 0; height: 65px; padding: 11px 15px; border-bottom: 1px solid var(--loot-line); }
.loot-zone-header h2, .loot-zone-header p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot-zone-header h2 { font-size: clamp(17px, 2vw, 22px); line-height: 1.21; }
.loot-zone-header p, .loot-note, .loot-meta { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.loot-zone-body { flex: auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; padding: 15px; }
.loot-zone-foot { height: 82px; display: flex; flex: none; flex-wrap: wrap; align-content: center; justify-content: space-between; gap: 6px 8px; padding: 8px 14px; border-top: 1px solid var(--loot-line); }
.loot-zone-foot:empty { visibility: hidden; }
.loot-zone-foot > .button { min-height: 36px; font-size: 12px; padding-inline: 9px; }
.loot-secondary { background: #192330; border-color: #455361; color: var(--muted); }
.loot-primary { color: #ffe0b2; background: linear-gradient(#6c4b2b,#3e2c21); }
.loot-banner { flex-basis: 100%; font-size: 12px; color: var(--positive); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loot-banner.loot-error { color: var(--problem); }
.loot-empty-area { display: grid; align-content: center; justify-items: center; min-height: 180px; height: min(100%,455px); gap: 10px; color: var(--muted); text-align: center; padding: 14px; border: 1px dashed #3b495b; border-radius: 7px; background: radial-gradient(ellipse at center,#18253370,transparent 70%); }
.loot-empty-area strong { color: var(--ink); line-height: 1.3; }
.loot-empty-area p { font-size: 12px; }
.loot-empty-area .button { font-size: 12px; }
.loot-empty-icon { color: #a0b8cf; font-size: 21px; }
.loot-raid-grid, .loot-item-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,225px),1fr)); gap: 10px; align-content: start; }
.loot-raid-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.loot-raid-card {
  display: grid; align-content: end; min-height: 194px; padding: 12px;
  border: 1px solid #47505a; border-radius: 7px; text-align: left; overflow: hidden;
  background: linear-gradient(0deg,#0a1019 9%,#0a10197a 42%,transparent 80%), var(--loot-art,url("/art/loot/header.jpg")) center/cover no-repeat;
}
.loot-raid-card strong { font: 700 21px/1.12 Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.loot-raid-card small { color: #c3cfdb; font-size: 11px; }
.loot-raid-card:hover,.loot-item-card:hover,.loot-row-btn:hover,.loot-filter:hover,.loot-boss:hover { border-color: #b28350; }
.loot-label { display: block; color: var(--muted); font-weight: 650; font-size: 12px; margin: 0 0 8px; }
.loot-difficulties { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 17px; }
.loot-boss-list,.loot-filters,.loot-rows,.loot-compare,.loot-choices,.loot-statuses { display: grid; gap: 8px; }
.loot-filter { display: block; width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid #3d4b58; border-radius: 5px; background: #121b25; color: var(--muted); text-align: left; font-size: 13px; }
.loot-difficulties .loot-filter { width: auto; min-height: 32px; }
.loot-filter[aria-pressed=true],.loot-row-btn[aria-pressed=true],.loot-item-card[aria-pressed=true] { color: var(--gold); border-color: var(--loot-bronze); background: linear-gradient(90deg,#32271f,#17212d 85%); }
.loot-boss {
  min-height: 64px; display: flex; align-items: end; padding: 8px; border: 1px solid #3f4e5f; border-radius: 5px; text-align: left;
  font-size: 13px; font-weight: 720; background: linear-gradient(0deg,#090f17 2%,#090f1780 52%,transparent),var(--loot-art,url("/art/loot/header.jpg")) center/cover no-repeat; text-shadow: 0 1px 4px #000;
}
.loot-boss[aria-pressed=true] { border-color: #d7a165; color: #ffddb0; }
.loot-item-card,.loot-row-btn {
  display: flex; align-items: center; gap: 10px; min-height: 80px; min-width: 0; padding: 9px;
  border: 1px solid #3a4657; border-radius: 7px; background: var(--loot-surface); text-align: left;
}
.loot-row-btn { width: 100%; }
.loot-view .item-icon { width: 42px; height: 42px; }
.loot-view .loot-avatar { width: 28px; height: 28px; }
.loot-item-name { color: var(--ink); font-weight: 705; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.loot-item-name.epic { color: var(--epic); }
.loot-item-name.rare { color: var(--rare); }
.loot-item-name.uncommon { color: var(--positive); }
.loot-item-name.legendary { color: #ffbc7f; }
.loot-content { min-width: 0; }
.loot-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; }
.loot-pill { display: inline-block; border: 1px solid #586274; border-radius: 20px; padding: 2px 7px; color: #d4deeb; background: #242f3d; font-size: 11px; }
.loot-pill.gold { color: var(--gold); border-color: #84623d; background: #33291f; }
.loot-pill.green { color: var(--positive); border-color: #5a7559; background: #24372c; }
.loot-pick { display: grid; gap: 5px; color: var(--muted); font-size: 12px; margin-bottom: 11px; }
.loot-pick select { min-width: 0; width: 100%; border: 1px solid #3d4b58; padding: 7px; border-radius: 5px; background: var(--loot-surface); color: var(--ink); }
.loot-compare-card { border: 1px solid #3a4657; background: var(--loot-surface); padding: 9px; border-radius: 6px; }
.loot-compare-card.target { border-color: #806039; }
.loot-compare-item { display: flex; align-items: center; gap: 8px; }
.loot-compare-item .item-icon { width: 35px; height: 35px; }
.loot-compare-card .loot-label { margin-bottom: 6px; }
.loot-delta { color: var(--positive); font-size: 12px; margin-top: 8px; }
.loot-delta.negative { color: var(--problem); }
.loot-stats { margin-top: 12px; }
.loot-stats summary { cursor: pointer; color: var(--gold); font-weight: 650; font-size: 12px; }
.loot-stats th,.loot-stats td { padding: 5px 3px; font-size: 11px; }
.loot-choices,.loot-statuses { margin-top: 13px; }
.loot-choice,.loot-status { display: flex; align-items: center; gap: 8px; padding: 7px 8px; min-height: 42px; }
.loot-choice { border: 1px solid #3d4b58; border-radius: 6px; background: var(--loot-surface); cursor: pointer; }
.loot-choice.checked { border-color: #80603e; background: #2f2923; }
.loot-choice input { margin-left: auto; accent-color: var(--gold); }
.loot-choice span,.loot-status span { min-width: 0; overflow-wrap: anywhere; }
.loot-status-menu { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.loot-remove { padding: 0 4px; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.loot-remove:hover { color: var(--problem); text-decoration: underline; }
.loot-status { border-bottom: 1px solid var(--loot-line); padding-inline: 0; }
.loot-detail-item { padding-bottom: 11px; border-bottom: 1px solid var(--loot-line); }
.loot-group + .loot-group { margin-top: 14px; }
.loot-group h3 { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.loot-reopen { white-space: nowrap; }
@media (max-width: 1190px) {
  .portal.loot-active { grid-template-columns: 164px minmax(0, 1fr); }
  .loot-workspace { padding-inline: 16px; gap: 12px; }
}
@media (min-width: 801px) and (max-width: 1040px) {
  .loot-workspace { grid-template-columns: 168px minmax(0,1fr); }
  .loot-zone[data-zone=detail] { grid-column: 1 / -1; height: 515px; }
}
@media (max-width: 800px) {
  .portal.loot-active { display: block; }
  .loot-active .sidebar { position: static; }
  .loot-active .sidebar::before { display: none; }
  .loot-header { height: 150px; padding-inline: 14px; }
  .loot-tabs { left: 14px; gap: 17px; }
  .loot-workspace { grid-template-columns: 1fr; padding: 12px; }
  .loot-zone { height: 420px; }
  .loot-zone[data-zone=context] { height: 238px; }
  .loot-zone[data-zone=detail] { height: 508px; }
  .loot-zone-header { height: 55px; }
  .loot-zone-foot:empty { display: none; }
  .loot-zone-body { padding: 11px; }
  .loot-raid-card { min-height: 133px; }
  .loot-raid-card strong { font-size: 17px; }
}
.loot-block { display: block; }
.loot-active .brand img { content: url("/art/loot/crest.png"); }
